@rsdoctor/client 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.html +1 -1
- package/dist/resource/js/monaco-1.cbaae4ad.js +5 -0
- package/dist/resource/js/{monaco-1.6a6d9fbd.js.LICENSE.txt → monaco-1.cbaae4ad.js.LICENSE.txt} +319 -340
- package/dist/resource/js/{monaco-13.dd2ff536.js → monaco-12.e2a3ecd4.js} +2 -2
- package/dist/resource/js/{monaco-14.2fef89fc.js → monaco-13.cc63a6b1.js} +2 -2
- package/dist/resource/js/{monaco-14.2fef89fc.js.LICENSE.txt → monaco-13.cc63a6b1.js.LICENSE.txt} +171 -163
- package/dist/resource/js/{monaco-12.6dc645fd.js → monaco-14.88babdfb.js} +3 -3
- package/dist/resource/js/{monaco-12.6dc645fd.js.LICENSE.txt → monaco-14.88babdfb.js.LICENSE.txt} +226 -214
- package/dist/resource/js/monaco-2.5e6b3e6c.js +25 -0
- package/dist/resource/js/{monaco-7.8e6e32f9.js.LICENSE.txt → monaco-2.5e6b3e6c.js.LICENSE.txt} +308 -332
- package/dist/resource/js/{monaco-2.89e3d3e1.js → monaco-3.993fc057.js} +2 -2
- package/dist/resource/js/{monaco-3.ae0e86c1.js → monaco-4.73c5efca.js} +2 -2
- package/dist/resource/js/{monaco-5.521603f3.js → monaco-5.91d0f99a.js} +4 -4
- package/dist/resource/js/{monaco-5.521603f3.js.LICENSE.txt → monaco-5.91d0f99a.js.LICENSE.txt} +174 -156
- package/dist/resource/js/monaco-7.e19e48d5.js +2 -0
- package/dist/resource/js/{monaco-4.afbf6d73.js.LICENSE.txt → monaco-7.e19e48d5.js.LICENSE.txt} +314 -321
- package/dist/resource/js/{monaco-8.e8d2f2de.js → monaco-8.48f5e877.js} +3 -3
- package/dist/resource/js/{monaco-8.e8d2f2de.js.LICENSE.txt → monaco-8.48f5e877.js.LICENSE.txt} +192 -204
- package/dist/resource/js/monaco-9.eb8aef3e.js +71 -0
- package/dist/resource/js/{monaco-9.d66d09e1.js.LICENSE.txt → monaco-9.eb8aef3e.js.LICENSE.txt} +364 -338
- package/package.json +3 -3
- package/dist/resource/js/monaco-1.6a6d9fbd.js +0 -5
- package/dist/resource/js/monaco-4.afbf6d73.js +0 -2
- package/dist/resource/js/monaco-7.8e6e32f9.js +0 -25
- package/dist/resource/js/monaco-9.d66d09e1.js +0 -71
- /package/dist/resource/css/{monaco-13.86c79c6e.css → monaco-12.86c79c6e.css} +0 -0
- /package/dist/resource/css/{monaco-14.f69f0e8c.css → monaco-13.f69f0e8c.css} +0 -0
- /package/dist/resource/css/{monaco-12.d38f1964.css → monaco-14.d38f1964.css} +0 -0
- /package/dist/resource/css/{monaco-7.681f0305.css → monaco-2.681f0305.css} +0 -0
- /package/dist/resource/css/{monaco-2.bc87f9b2.css → monaco-3.bc87f9b2.css} +0 -0
- /package/dist/resource/css/{monaco-3.37d5626c.css → monaco-4.37d5626c.css} +0 -0
- /package/dist/resource/css/{monaco-4.b782cd98.css → monaco-7.b782cd98.css} +0 -0
- /package/dist/resource/js/{monaco-13.dd2ff536.js.LICENSE.txt → monaco-12.e2a3ecd4.js.LICENSE.txt} +0 -0
- /package/dist/resource/js/{monaco-2.89e3d3e1.js.LICENSE.txt → monaco-3.993fc057.js.LICENSE.txt} +0 -0
- /package/dist/resource/js/{monaco-3.ae0e86c1.js.LICENSE.txt → monaco-4.73c5efca.js.LICENSE.txt} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see monaco-
|
|
2
|
-
(self.webpackChunk_rsdoctor_client=self.webpackChunk_rsdoctor_client||[]).push([["310"],{863307:function(e,t,i){"use strict";i.r(t),i.d(t,{renderMarkdown:function(){return w}});var n=i("409737"),o=i("293665"),s=i("449697"),r=i("251661"),l=i("919219"),a=i("572740"),u=i("161111"),d=i("916904"),h=i("670691"),c=i("947578"),p=i("520467"),g=i("919527"),f=i("878427"),m=i("703751"),b=i("24342"),_=i("500777"),v=i("437454"),C=i("266763"),y=i("938505");function w(e,t={},i={}){var o;let v=new g.DisposableStore,w=!1,x=(0,r.createElement)(t),I=function(t){let i;try{i=(0,m.parse)(decodeURIComponent(t))}catch(e){}return i?encodeURIComponent(JSON.stringify(i=(0,_.cloneAndChange)(i,t=>e.uris&&e.uris[t]?y.URI.revive(e.uris[t]):void 0))):t},L=function(t,i){let n=e.uris&&e.uris[t],o=y.URI.revive(n);if(i)return t.startsWith(b.Schemas.data+":")?t:(!o&&(o=y.URI.parse(t)),b.FileAccess.asBrowserUri(o).toString(!0));return o&&y.URI.parse(t).toString()!==o.toString()?(o.query&&(o=o.with({query:I(o.query)})),o.toString()):t},E=new f.marked.Renderer;E.image=(e,t,i)=>{let n=[],o=[];return e&&({href:e,dimensions:n}=(0,h.parseHrefAndDimensions)(e),o.push(`src="${(0,h.escapeDoubleQuotes)(e)}"`)),i&&o.push(`alt="${(0,h.escapeDoubleQuotes)(i)}"`),t&&o.push(`title="${(0,h.escapeDoubleQuotes)(t)}"`),n.length&&(o=o.concat(n)),"<img "+o.join(" ")+">"},E.link=(e,t,i)=>"string"!=typeof e?"":(e===i&&(i=(0,h.removeMarkdownEscapes)(i)),t="string"==typeof t?(0,h.escapeDoubleQuotes)((0,h.removeMarkdownEscapes)(t)):"",e=(e=(0,h.removeMarkdownEscapes)(e)).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),`<a href="${e}" title="${t||e}">${i}</a>`),E.paragraph=e=>`<p>${e}</p>`;let T=[];if(t.codeBlockRenderer&&(E.code=(e,i)=>{let n=p.defaultGenerator.nextId(),o=t.codeBlockRenderer(null!=i?i:"",e);return T.push(o.then(e=>[n,e])),`<div class="code" data-code="${n}">${(0,C.escape)(e)}</div>`}),t.actionHandler){let i=t.actionHandler.disposables.add(new s.DomEmitter(x,"click")),n=t.actionHandler.disposables.add(new s.DomEmitter(x,"auxclick"));t.actionHandler.disposables.add(d.Event.any(i.event,n.event)(i=>{let n=new l.StandardMouseEvent(i);if(!n.leftButton&&!n.middleButton)return;let o=n.target;if("A"===o.tagName||!!(o=o.parentElement)&&"A"===o.tagName)try{let i=o.dataset.href;i&&(e.baseUri&&(i=k(y.URI.from(e.baseUri),i)),t.actionHandler.callback(i,n))}catch(e){(0,u.onUnexpectedError)(e)}finally{n.preventDefault()}}))}!e.supportHtml&&(i.sanitizer=t=>(e.isTrusted?t.match(/^(<span[^>]+>)|(<\/\s*span>)$/):void 0)?t:"",i.sanitize=!0,i.silent=!0),i.renderer=E;let N=null!==(o=e.value)&&void 0!==o?o:"";N.length>1e5&&(N=`${N.substr(0,1e5)}\u{2026}`),e.supportThemeIcons&&(N=(0,c.markdownEscapeEscapedIcons)(N));let D=f.marked.parse(N,i);e.supportThemeIcons&&(D=(0,a.renderLabelWithIcons)(D).map(e=>"string"==typeof e?e:e.outerHTML).join(""));let M=new DOMParser().parseFromString(S(e,D),"text/html");if(M.body.querySelectorAll("img").forEach(t=>{let i=t.getAttribute("src");if(i){let n=i;try{e.baseUri&&(n=k(y.URI.from(e.baseUri),n))}catch(e){}t.src=L(n,!0)}}),M.body.querySelectorAll("a").forEach(t=>{let i=t.getAttribute("href");if(t.setAttribute("href",""),!i||/^data:|javascript:/i.test(i)||/^command:/i.test(i)&&!e.isTrusted||/^command:(\/\/\/)?_workbench\.downloadResource/i.test(i))t.replaceWith(...t.childNodes);else{let n=L(i,!1);e.baseUri&&(n=k(y.URI.from(e.baseUri),i)),t.dataset.href=n}}),x.innerHTML=S(e,M.body.innerHTML),T.length>0&&Promise.all(T).then(e=>{var i,o;if(w)return;let s=new Map(e);for(let e of x.querySelectorAll("div[data-code]")){let t=s.get(null!==(i=e.dataset.code)&&void 0!==i?i:"");t&&n.reset(e,t)}null===(o=t.asyncRenderCallback)||void 0===o||o.call(t)}),t.asyncRenderCallback)for(let e of x.getElementsByTagName("img")){let i=v.add(n.addDisposableListener(e,"load",()=>{i.dispose(),t.asyncRenderCallback()}))}return{element:x,dispose:()=>{w=!0,v.dispose()}}}function k(e,t){return/^\w[\w\d+.-]*:/.test(t)?t:e.path.endsWith("/")?(0,v.resolvePath)(e,t).toString():(0,v.resolvePath)((0,v.dirname)(e),t).toString()}function S(e,t){let{config:i,allowedSchemes:s}=function(e){let t=[b.Schemas.http,b.Schemas.https,b.Schemas.mailto,b.Schemas.data,b.Schemas.file,b.Schemas.vscodeFileResource,b.Schemas.vscodeRemote,b.Schemas.vscodeRemoteResource];return e.isTrusted&&t.push(b.Schemas.command),{config:{ALLOWED_TAGS:["ul","li","p","b","i","code","blockquote","ol","h1","h2","h3","h4","h5","h6","hr","em","pre","table","thead","tbody","tr","th","td","div","del","a","strong","br","img","span"],ALLOWED_ATTR:["href","data-href","target","title","src","alt","class","style","data-code","width","height","align"],ALLOW_UNKNOWN_PROTOCOLS:!0},allowedSchemes:t}}(e);o.addHook("uponSanitizeAttribute",(e,t)=>{if("style"===t.attrName||"class"===t.attrName){if("SPAN"===e.tagName){if("style"===t.attrName){t.keepAttr=/^(color\:#[0-9a-fA-F]+;)?(background-color\:#[0-9a-fA-F]+;)?$/.test(t.attrValue);return}if("class"===t.attrName){t.keepAttr=/^codicon codicon-[a-z\-]+( codicon-modifier-[a-z\-]+)?$/.test(t.attrValue);return}}t.keepAttr=!1;return}});let r=n.hookDomPurifyHrefAndSrcSanitizer(s);try{return o.sanitize(t,Object.assign(Object.assign({},i),{RETURN_TRUSTED_TYPE:!0}))}finally{o.removeHook("uponSanitizeAttribute"),r.dispose()}}},919219:function(e,t,i){"use strict";i.r(t),i.d(t,{StandardMouseEvent:function(){return r},StandardWheelEvent:function(){return l}});var n=i("259527"),o=i("53182"),s=i("207875");class r{constructor(e){this.timestamp=Date.now(),this.browserEvent=e,this.leftButton=0===e.button,this.middleButton=1===e.button,this.rightButton=2===e.button,this.buttons=e.buttons,this.target=e.target,this.detail=e.detail||1,"dblclick"===e.type&&(this.detail=2),this.ctrlKey=e.ctrlKey,this.shiftKey=e.shiftKey,this.altKey=e.altKey,this.metaKey=e.metaKey,"number"==typeof e.pageX?(this.posx=e.pageX,this.posy=e.pageY):(this.posx=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,this.posy=e.clientY+document.body.scrollTop+document.documentElement.scrollTop);let t=o.IframeUtils.getPositionOfChildWindowRelativeToAncestorWindow(self,e.view);this.posx-=t.left,this.posy-=t.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}}class l{constructor(e,t=0,i=0){this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=i,this.deltaX=t,e&&(void 0!==e.wheelDeltaY?this.deltaY=e.wheelDeltaY/120:void 0!==e.VERTICAL_AXIS&&e.axis===e.VERTICAL_AXIS?this.deltaY=-e.detail/3:"wheel"===e.type&&(e.deltaMode===e.DOM_DELTA_LINE?n.isFirefox&&!s.isMacintosh?this.deltaY=-e.deltaY/3:this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40),void 0!==e.wheelDeltaX?n.isSafari&&s.isWindows?this.deltaX=-(e.wheelDeltaX/120):this.deltaX=e.wheelDeltaX/120:void 0!==e.HORIZONTAL_AXIS&&e.axis===e.HORIZONTAL_AXIS?this.deltaX=-e.detail/3:"wheel"===e.type&&(e.deltaMode===e.DOM_DELTA_LINE?n.isFirefox&&!s.isMacintosh?this.deltaX=-e.deltaX/3:this.deltaX=-e.deltaX:this.deltaX=-e.deltaX/40),0===this.deltaY&&0===this.deltaX&&e.wheelDelta&&(this.deltaY=e.wheelDelta/120))}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation()}}},720184:function(e,t,i){"use strict";i.r(t),i.d(t,{FindInput:function(){return u}});var n=i("409737"),o=i("25806"),s=i("785710"),r=i("795832"),l=i("916904");i("411249");let a=i("708339").localize("defaultLabel","input");class u extends r.Widget{constructor(e,t,i,r){var u;super(),this._showOptionButtons=i,this.fixFocusOnOptionClickEnabled=!0,this.imeSessionInProgress=!1,this.additionalToggles=[],this._onDidOptionChange=this._register(new l.Emitter),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new l.Emitter),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new l.Emitter),this.onMouseDown=this._onMouseDown.event,this._onInput=this._register(new l.Emitter),this._onKeyUp=this._register(new l.Emitter),this._onCaseSensitiveKeyDown=this._register(new l.Emitter),this.onCaseSensitiveKeyDown=this._onCaseSensitiveKeyDown.event,this._onRegexKeyDown=this._register(new l.Emitter),this.onRegexKeyDown=this._onRegexKeyDown.event,this._lastHighlightFindOptions=0,this.contextViewProvider=t,this.placeholder=r.placeholder||"",this.validation=r.validation,this.label=r.label||a,this.inputActiveOptionBorder=r.inputActiveOptionBorder,this.inputActiveOptionForeground=r.inputActiveOptionForeground,this.inputActiveOptionBackground=r.inputActiveOptionBackground,this.inputBackground=r.inputBackground,this.inputForeground=r.inputForeground,this.inputBorder=r.inputBorder,this.inputValidationInfoBorder=r.inputValidationInfoBorder,this.inputValidationInfoBackground=r.inputValidationInfoBackground,this.inputValidationInfoForeground=r.inputValidationInfoForeground,this.inputValidationWarningBorder=r.inputValidationWarningBorder,this.inputValidationWarningBackground=r.inputValidationWarningBackground,this.inputValidationWarningForeground=r.inputValidationWarningForeground,this.inputValidationErrorBorder=r.inputValidationErrorBorder,this.inputValidationErrorBackground=r.inputValidationErrorBackground,this.inputValidationErrorForeground=r.inputValidationErrorForeground;let d=r.appendCaseSensitiveLabel||"",h=r.appendWholeWordsLabel||"",c=r.appendRegexLabel||"",p=r.history||[],g=!!r.flexibleHeight,f=!!r.flexibleWidth,m=r.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new s.HistoryInputBox(this.domNode,this.contextViewProvider,{placeholder:this.placeholder||"",ariaLabel:this.label||"",validationOptions:{validation:this.validation},inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder,history:p,showHistoryHint:r.showHistoryHint,flexibleHeight:g,flexibleWidth:f,flexibleMaxHeight:m})),this.regex=this._register(new o.RegexToggle({appendTitle:c,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.regex.onChange(e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.regex.onKeyDown(e=>{this._onRegexKeyDown.fire(e)})),this.wholeWords=this._register(new o.WholeWordsToggle({appendTitle:h,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.wholeWords.onChange(e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this.caseSensitive=this._register(new o.CaseSensitiveToggle({appendTitle:d,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.caseSensitive.onChange(e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.caseSensitive.onKeyDown(e=>{this._onCaseSensitiveKeyDown.fire(e)}));let b=[this.caseSensitive.domNode,this.wholeWords.domNode,this.regex.domNode];for(let e of(this.onkeydown(this.domNode,e=>{if(e.equals(15)||e.equals(17)||e.equals(9)){let t=b.indexOf(document.activeElement);if(t>=0){let i=-1;e.equals(17)?i=(t+1)%b.length:e.equals(15)&&(i=0===t?b.length-1:t-1),e.equals(9)?(b[t].blur(),this.inputBox.focus()):i>=0&&b[i].focus(),n.EventHelper.stop(e,!0)}}}),this.controls=document.createElement("div"),this.controls.className="controls",this.controls.style.display=this._showOptionButtons?"block":"none",this.controls.appendChild(this.caseSensitive.domNode),this.controls.appendChild(this.wholeWords.domNode),this.controls.appendChild(this.regex.domNode),!this._showOptionButtons&&(this.caseSensitive.domNode.style.display="none",this.wholeWords.domNode.style.display="none",this.regex.domNode.style.display="none"),null!==(u=null==r?void 0:r.additionalToggles)&&void 0!==u?u:[]))this._register(e),this.controls.appendChild(e.domNode),this._register(e.onChange(e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus()})),this.additionalToggles.push(e);this.additionalToggles.length>0&&(this.controls.style.display="block"),this.inputBox.paddingRight=(this._showOptionButtons?this.caseSensitive.width()+this.wholeWords.width()+this.regex.width():0)+this.additionalToggles.reduce((e,t)=>e+t.width(),0),this.domNode.appendChild(this.controls),null==e||e.appendChild(this.domNode),this._register(n.addDisposableListener(this.inputBox.inputElement,"compositionstart",e=>{this.imeSessionInProgress=!0})),this._register(n.addDisposableListener(this.inputBox.inputElement,"compositionend",e=>{this.imeSessionInProgress=!1,this._onInput.fire()})),this.onkeydown(this.inputBox.inputElement,e=>this._onKeyDown.fire(e)),this.onkeyup(this.inputBox.inputElement,e=>this._onKeyUp.fire(e)),this.oninput(this.inputBox.inputElement,e=>this._onInput.fire()),this.onmousedown(this.inputBox.inputElement,e=>this._onMouseDown.fire(e))}get onDidChange(){return this.inputBox.onDidChange}enable(){for(let e of(this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.regex.enable(),this.wholeWords.enable(),this.caseSensitive.enable(),this.additionalToggles))e.enable()}disable(){for(let e of(this.domNode.classList.add("disabled"),this.inputBox.disable(),this.regex.disable(),this.wholeWords.disable(),this.caseSensitive.disable(),this.additionalToggles))e.disable()}setFocusInputOnOptionClick(e){this.fixFocusOnOptionClickEnabled=e}setEnabled(e){e?this.enable():this.disable()}getValue(){return this.inputBox.value}setValue(e){this.inputBox.value!==e&&(this.inputBox.value=e)}style(e){this.inputActiveOptionBorder=e.inputActiveOptionBorder,this.inputActiveOptionForeground=e.inputActiveOptionForeground,this.inputActiveOptionBackground=e.inputActiveOptionBackground,this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()}applyStyles(){if(this.domNode){let e={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground};for(let t of(this.regex.style(e),this.wholeWords.style(e),this.caseSensitive.style(e),this.additionalToggles))t.style(e);let t={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(t)}}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getCaseSensitive(){return this.caseSensitive.checked}setCaseSensitive(e){this.caseSensitive.checked=e}getWholeWords(){return this.wholeWords.checked}setWholeWords(e){this.wholeWords.checked=e}getRegex(){return this.regex.checked}setRegex(e){this.regex.checked=e,this.validate()}focusOnCaseSensitive(){this.caseSensitive.focus()}highlightFindOptions(){this.domNode.classList.remove("highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,this.domNode.classList.add("highlight-"+this._lastHighlightFindOptions)}validate(){this.inputBox.validate()}showMessage(e){this.inputBox.showMessage(e)}clearMessage(){this.inputBox.hideMessage()}}},572740:function(e,t,i){"use strict";i.r(t),i.d(t,{renderLabelWithIcons:function(){return r}});var n=i("409737"),o=i("871628");let s=RegExp(`(\\\\)?\\$\\((${o.CSSIcon.iconNameExpression}(?:${o.CSSIcon.iconModifierExpression})?)\\)`,"g");function r(e){let t;let i=[],r=0,l=0;for(;null!==(t=s.exec(e));){l=t.index||0,i.push(e.substring(r,l)),r=(t.index||0)+t[0].length;let[,s,a]=t;i.push(s?`$(${a})`:function(e){let t=n.$("span");return t.classList.add(...o.CSSIcon.asClassNameArray(e)),t}({id:a}))}return r<e.length&&i.push(e.substring(r)),i}},926573:function(e,t,i){"use strict";i.r(t),i.d(t,{KeybindingLabel:function(){return a}});var n=i("409737"),o=i("102881"),s=i("500777");i("832687");var r=i("708339");let l=n.$;class a{constructor(e,t,i){this.os=t,this.keyElements=new Set,this.options=i||Object.create(null),this.labelBackground=this.options.keybindingLabelBackground,this.labelForeground=this.options.keybindingLabelForeground,this.labelBorder=this.options.keybindingLabelBorder,this.labelBottomBorder=this.options.keybindingLabelBottomBorder,this.labelShadow=this.options.keybindingLabelShadow,this.domNode=n.append(e,l(".monaco-keybinding")),this.didEverRender=!1,e.appendChild(this.domNode)}get element(){return this.domNode}set(e,t){!(this.didEverRender&&this.keybinding===e&&a.areSame(this.matches,t))&&(this.keybinding=e,this.matches=t,this.render())}render(){if(this.clear(),this.keybinding){let[e,t]=this.keybinding.getParts();e&&this.renderPart(this.domNode,e,this.matches?this.matches.firstPart:null),t&&(n.append(this.domNode,l("span.monaco-keybinding-key-chord-separator",void 0," ")),this.renderPart(this.domNode,t,this.matches?this.matches.chordPart:null)),this.domNode.title=this.keybinding.getAriaLabel()||""}else this.options&&this.options.renderUnboundKeybindings&&this.renderUnbound(this.domNode);this.applyStyles(),this.didEverRender=!0}clear(){n.clearNode(this.domNode),this.keyElements.clear()}renderPart(e,t,i){let n=o.UILabelProvider.modifierLabels[this.os];t.ctrlKey&&this.renderKey(e,n.ctrlKey,!!(null==i?void 0:i.ctrlKey),n.separator),t.shiftKey&&this.renderKey(e,n.shiftKey,!!(null==i?void 0:i.shiftKey),n.separator),t.altKey&&this.renderKey(e,n.altKey,!!(null==i?void 0:i.altKey),n.separator),t.metaKey&&this.renderKey(e,n.metaKey,!!(null==i?void 0:i.metaKey),n.separator);let s=t.keyLabel;s&&this.renderKey(e,s,!!(null==i?void 0:i.keyCode),"")}renderKey(e,t,i,o){n.append(e,this.createKeyElement(t,i?".highlight":"")),o&&n.append(e,l("span.monaco-keybinding-key-separator",void 0,o))}renderUnbound(e){n.append(e,this.createKeyElement((0,r.localize)("unbound","Unbound")))}createKeyElement(e,t=""){let i=l("span.monaco-keybinding-key"+t,void 0,e);return this.keyElements.add(i),i}style(e){this.labelBackground=e.keybindingLabelBackground,this.labelForeground=e.keybindingLabelForeground,this.labelBorder=e.keybindingLabelBorder,this.labelBottomBorder=e.keybindingLabelBottomBorder,this.labelShadow=e.keybindingLabelShadow,this.applyStyles()}applyStyles(){var e;if(this.element){for(let t of this.keyElements)this.labelBackground&&(t.style.backgroundColor=null===(e=this.labelBackground)||void 0===e?void 0:e.toString()),this.labelBorder&&(t.style.borderColor=this.labelBorder.toString()),this.labelBottomBorder&&(t.style.borderBottomColor=this.labelBottomBorder.toString()),this.labelShadow&&(t.style.boxShadow=`inset 0 -1px 0 ${this.labelShadow}`);this.labelForeground&&(this.element.style.color=this.labelForeground.toString())}}static areSame(e,t){return e===t||!e&&!t||!!e&&!!t&&(0,s.equals)(e.firstPart,t.firstPart)&&(0,s.equals)(e.chordPart,t.chordPart)}}},785976:function(e,t,i){"use strict";i.r(t),i.d(t,{DataTree:function(){return s}});var n=i("855498"),o=i("203692");class s extends n.AbstractTree{constructor(e,t,i,n,o,s={}){super(e,t,i,n,s),this.user=e,this.dataSource=o,this.identityProvider=s.identityProvider}createModel(e,t,i){return new o.ObjectTreeModel(e,t,i)}}},203692:function(e,t,i){"use strict";i.r(t),i.d(t,{ObjectTreeModel:function(){return r}});var n=i("485142"),o=i("700507"),s=i("780189");class r{constructor(e,t,i={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new n.IndexTreeModel(e,t,null,i),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,i.sorter&&(this.sorter={compare:(e,t)=>i.sorter.compare(e.element,t.element)}),this.identityProvider=i.identityProvider}setChildren(e,t=s.Iterable.empty(),i={}){let n=this.getElementLocation(e);this._setChildren(n,this.preserveCollapseState(t),i)}_setChildren(e,t=s.Iterable.empty(),i){let n=new Set,o=new Set;this.model.splice([...e,0],Number.MAX_VALUE,t,Object.assign(Object.assign({},i),{onDidCreateNode:e=>{var t;if(null!==e.element){if(n.add(e.element),this.nodes.set(e.element,e),this.identityProvider){let t=this.identityProvider.getId(e.element).toString();o.add(t),this.nodesByIdentity.set(t,e)}null===(t=i.onDidCreateNode)||void 0===t||t.call(i,e)}},onDidDeleteNode:e=>{var t;if(null!==e.element){if(!n.has(e.element)&&this.nodes.delete(e.element),this.identityProvider){let t=this.identityProvider.getId(e.element).toString();!o.has(t)&&this.nodesByIdentity.delete(t)}null===(t=i.onDidDeleteNode)||void 0===t||t.call(i,e)}}}))}preserveCollapseState(e=s.Iterable.empty()){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),s.Iterable.map(e,e=>{let t=this.nodes.get(e.element);if(!t&&this.identityProvider){let i=this.identityProvider.getId(e.element).toString();t=this.nodesByIdentity.get(i)}if(!t)return Object.assign(Object.assign({},e),{children:this.preserveCollapseState(e.children)});let i="boolean"==typeof e.collapsible?e.collapsible:t.collapsible,n=void 0!==e.collapsed?e.collapsed:t.collapsed;return Object.assign(Object.assign({},e),{collapsible:i,collapsed:n,children:this.preserveCollapseState(e.children)})})}rerender(e){let t=this.getElementLocation(e);this.model.rerender(t)}getFirstElementChild(e=null){let t=this.getElementLocation(e);return this.model.getFirstElementChild(t)}has(e){return this.nodes.has(e)}getListIndex(e){let t=this.getElementLocation(e);return this.model.getListIndex(t)}getListRenderCount(e){let t=this.getElementLocation(e);return this.model.getListRenderCount(t)}isCollapsible(e){let t=this.getElementLocation(e);return this.model.isCollapsible(t)}setCollapsible(e,t){let i=this.getElementLocation(e);return this.model.setCollapsible(i,t)}isCollapsed(e){let t=this.getElementLocation(e);return this.model.isCollapsed(t)}setCollapsed(e,t,i){let n=this.getElementLocation(e);return this.model.setCollapsed(n,t,i)}expandTo(e){let t=this.getElementLocation(e);this.model.expandTo(t)}refilter(){this.model.refilter()}getNode(e=null){if(null===e)return this.model.getNode(this.model.rootRef);let t=this.nodes.get(e);if(!t)throw new o.TreeError(this.user,`Tree element not found: ${e}`);return t}getNodeLocation(e){return e.element}getParentNodeLocation(e){if(null===e)throw new o.TreeError(this.user,"Invalid getParentNodeLocation call");let t=this.nodes.get(e);if(!t)throw new o.TreeError(this.user,`Tree element not found: ${e}`);let i=this.model.getNodeLocation(t),n=this.model.getParentNodeLocation(i);return this.model.getNode(n).element}getElementLocation(e){if(null===e)return[];let t=this.nodes.get(e);if(!t)throw new o.TreeError(this.user,`Tree element not found: ${e}`);return this.model.getNodeLocation(t)}}},467518:function(e,t,i){"use strict";let n;i.r(t),i.d(t,{AsyncIterableObject:function(){return T},DeferredPromise:function(){return E},Delayer:function(){return C},IdleValue:function(){return L},IntervalTimer:function(){return x},MicrotaskDelay:function(){return v},Promises:function(){return s},RunOnceScheduler:function(){return I},ThrottledDelayer:function(){return y},TimeoutTimer:function(){return S},createCancelableAsyncIterable:function(){return D},createCancelablePromise:function(){return g},disposableTimeout:function(){return w},first:function(){return k},isThenable:function(){return p},raceCancellation:function(){return f},runWhenIdle:function(){return n},timeout:function(){return function e(t,i){return i?new Promise((e,n)=>{let o=setTimeout(()=>{s.dispose(),e()},t),s=i.onCancellationRequested(()=>{clearTimeout(o),s.dispose(),n(new l.CancellationError)})}):g(i=>e(t,i))}}});var o,s,r=i("500862"),l=i("161111"),a=i("916904"),u=i("919527"),d=i("207875"),h=function(e,t,i,n){return new(i||(i=Promise))(function(o,s){function r(e){try{a(n.next(e))}catch(e){s(e)}}function l(e){try{a(n.throw(e))}catch(e){s(e)}}function a(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(r,l)}a((n=n.apply(e,t||[])).next())})},c=function(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,i=e[Symbol.asyncIterator];return i?i.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(i){t[i]=e[i]&&function(t){return new Promise(function(n,o){(function(e,t,i,n){Promise.resolve(n).then(function(t){e({value:t,done:i})},t)})(n,o,(t=e[i](t)).done,t.value)})}}};function p(e){return!!e&&"function"==typeof e.then}function g(e){let t=new r.CancellationTokenSource,i=e(t.token),n=new Promise((e,n)=>{let o=t.token.onCancellationRequested(()=>{o.dispose(),t.dispose(),n(new l.CancellationError)});Promise.resolve(i).then(i=>{o.dispose(),t.dispose(),e(i)},e=>{o.dispose(),t.dispose(),n(e)})});return new class{cancel(){t.cancel()}then(e,t){return n.then(e,t)}catch(e){return this.then(void 0,e)}finally(e){return n.finally(e)}}}function f(e,t,i){return new Promise((n,o)=>{let s=t.onCancellationRequested(()=>{s.dispose(),n(i)});e.then(n,o).finally(()=>s.dispose())})}class m{constructor(){this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(e){if(this.activePromise){if(this.queuedPromiseFactory=e,!this.queuedPromise){let e=()=>{this.queuedPromise=null;let e=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,e};this.queuedPromise=new Promise(t=>{this.activePromise.then(e,e).then(t)})}return new Promise((e,t)=>{this.queuedPromise.then(e,t)})}return this.activePromise=e(),new Promise((e,t)=>{this.activePromise.then(t=>{this.activePromise=null,e(t)},e=>{this.activePromise=null,t(e)})})}}let b=(e,t)=>{let i=!0,n=setTimeout(()=>{i=!1,t()},e);return{isTriggered:()=>i,dispose:()=>{clearTimeout(n),i=!1}}},_=e=>{let t=!0;return queueMicrotask(()=>{t&&(t=!1,e())}),{isTriggered:()=>t,dispose:()=>{t=!1}}},v=Symbol("MicrotaskDelay");class C{constructor(e){this.defaultDelay=e,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(e,t=this.defaultDelay){this.task=e,this.cancelTimeout(),!this.completionPromise&&(this.completionPromise=new Promise((e,t)=>{this.doResolve=e,this.doReject=t}).then(()=>{if(this.completionPromise=null,this.doResolve=null,this.task){let e=this.task;return this.task=null,e()}}));let i=()=>{var e;this.deferred=null,null===(e=this.doResolve)||void 0===e||e.call(this,null)};return this.deferred=t===v?_(i):b(t,i),this.completionPromise}isTriggered(){var e;return!!(null===(e=this.deferred)||void 0===e?void 0:e.isTriggered())}cancel(){var e;this.cancelTimeout(),this.completionPromise&&(null===(e=this.doReject)||void 0===e||e.call(this,new l.CancellationError),this.completionPromise=null)}cancelTimeout(){var e;null===(e=this.deferred)||void 0===e||e.dispose(),this.deferred=null}dispose(){this.cancel()}}class y{constructor(e){this.delayer=new C(e),this.throttler=new m}trigger(e,t){return this.delayer.trigger(()=>this.throttler.queue(e),t)}dispose(){this.delayer.dispose()}}function w(e,t=0){let i=setTimeout(e,t);return(0,u.toDisposable)(()=>clearTimeout(i))}function k(e,t=e=>!!e,i=null){let n=0,o=e.length,s=()=>n>=o?Promise.resolve(i):Promise.resolve((0,e[n++])()).then(e=>t(e)?Promise.resolve(e):s());return s()}class S{constructor(e,t){this._token=-1,"function"==typeof e&&"number"==typeof t&&this.setIfNotSet(e,t)}dispose(){this.cancel()}cancel(){-1!==this._token&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setTimeout(()=>{this._token=-1,e()},t)}setIfNotSet(e,t){-1===this._token&&(this._token=setTimeout(()=>{this._token=-1,e()},t))}}class x{constructor(){this._token=-1}dispose(){this.cancel()}cancel(){-1!==this._token&&(clearInterval(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setInterval(()=>{e()},t)}}class I{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return -1!==this.timeoutToken}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){var e;null===(e=this.runner)||void 0===e||e.call(this)}}n="function"!=typeof requestIdleCallback||"function"!=typeof cancelIdleCallback?e=>{(0,d.setTimeout0)(()=>{if(t)return;let i=Date.now()+15;e(Object.freeze({didTimeout:!0,timeRemaining:()=>Math.max(0,i-Date.now())}))});let t=!1;return{dispose(){!t&&(t=!0)}}}:(e,t)=>{let i=requestIdleCallback(e,"number"==typeof t?{timeout:t}:void 0),n=!1;return{dispose(){!n&&(n=!0,cancelIdleCallback(i))}}};class L{constructor(e){this._didRun=!1,this._executor=()=>{try{this._value=e()}catch(e){this._error=e}finally{this._didRun=!0}},this._handle=n(()=>this._executor())}dispose(){this._handle.dispose()}get value(){if(!this._didRun&&(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}get isInitialized(){return this._didRun}}class E{constructor(){this.rejected=!1,this.resolved=!1,this.p=new Promise((e,t)=>{this.completeCallback=e,this.errorCallback=t})}get isRejected(){return this.rejected}get isSettled(){return this.rejected||this.resolved}complete(e){return new Promise(t=>{this.completeCallback(e),this.resolved=!0,t()})}cancel(){new Promise(e=>{this.errorCallback(new l.CancellationError),this.rejected=!0,e()})}}(o=s||(s={})).settled=function(e){return h(this,void 0,void 0,function*(){let t;let i=yield Promise.all(e.map(e=>e.then(e=>e,e=>{!t&&(t=e)})));if(void 0!==t)throw t;return i})},o.withAsyncBody=function(e){return new Promise((t,i)=>h(this,void 0,void 0,function*(){try{yield e(t,i)}catch(e){i(e)}}))};class T{constructor(e){this._state=0,this._results=[],this._error=null,this._onStateChanged=new a.Emitter,queueMicrotask(()=>h(this,void 0,void 0,function*(){let t={emitOne:e=>this.emitOne(e),emitMany:e=>this.emitMany(e),reject:e=>this.reject(e)};try{yield Promise.resolve(e(t)),this.resolve()}catch(e){this.reject(e)}finally{t.emitOne=void 0,t.emitMany=void 0,t.reject=void 0}}))}static fromArray(e){return new T(t=>{t.emitMany(e)})}static fromPromise(e){return new T(t=>h(this,void 0,void 0,function*(){t.emitMany((yield e))}))}static fromPromises(e){return new T(t=>h(this,void 0,void 0,function*(){yield Promise.all(e.map(e=>h(this,void 0,void 0,function*(){return t.emitOne((yield e))})))}))}static merge(e){return new T(t=>h(this,void 0,void 0,function*(){yield Promise.all(e.map(e=>{var i,n;return h(this,void 0,void 0,function*(){var o,s;try{for(i=c(e);!(n=yield i.next()).done;){let e=n.value;t.emitOne(e)}}catch(e){o={error:e}}finally{try{n&&!n.done&&(s=i.return)&&(yield s.call(i))}finally{if(o)throw o.error}}})}))}))}[Symbol.asyncIterator](){let e=0;return{next:()=>h(this,void 0,void 0,function*(){for(;;){if(2===this._state)throw this._error;if(e<this._results.length)return{done:!1,value:this._results[e++]};if(1===this._state)return{done:!0,value:void 0};yield a.Event.toPromise(this._onStateChanged.event)}})}}static map(e,t){return new T(i=>h(this,void 0,void 0,function*(){var n,o;try{for(var s,r=c(e);!(s=yield r.next()).done;){let e=s.value;i.emitOne(t(e))}}catch(e){n={error:e}}finally{try{s&&!s.done&&(o=r.return)&&(yield o.call(r))}finally{if(n)throw n.error}}}))}map(e){return T.map(this,e)}static filter(e,t){return new T(i=>h(this,void 0,void 0,function*(){var n,o;try{for(var s,r=c(e);!(s=yield r.next()).done;){let e=s.value;t(e)&&i.emitOne(e)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(o=r.return)&&(yield o.call(r))}finally{if(n)throw n.error}}}))}filter(e){return T.filter(this,e)}static coalesce(e){return T.filter(e,e=>!!e)}coalesce(){return T.coalesce(this)}static toPromise(e){var t,i,n,o;return h(this,void 0,void 0,function*(){let s=[];try{for(t=c(e);!(i=yield t.next()).done;){let e=i.value;s.push(e)}}catch(e){n={error:e}}finally{try{i&&!i.done&&(o=t.return)&&(yield o.call(t))}finally{if(n)throw n.error}}return s})}toPromise(){return T.toPromise(this)}emitOne(e){0===this._state&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){0===this._state&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){0===this._state&&(this._state=1,this._onStateChanged.fire())}reject(e){0===this._state&&(this._state=2,this._error=e,this._onStateChanged.fire())}}T.EMPTY=T.fromArray([]);class N extends T{constructor(e,t){super(t),this._source=e}cancel(){this._source.cancel()}}function D(e){let t=new r.CancellationTokenSource,i=e(t.token);return new N(t,e=>h(this,void 0,void 0,function*(){var n,o;let s=t.token.onCancellationRequested(()=>{s.dispose(),t.dispose(),e.reject(new l.CancellationError)});try{try{for(var r,a=c(i);!(r=yield a.next()).done;){let i=r.value;if(t.token.isCancellationRequested)return;e.emitOne(i)}}catch(e){n={error:e}}finally{try{r&&!r.done&&(o=a.return)&&(yield o.call(a))}finally{if(n)throw n.error}}s.dispose(),t.dispose()}catch(i){s.dispose(),t.dispose(),e.reject(i)}}))}},916904:function(e,t,i){"use strict";i.r(t),i.d(t,{DebounceEmitter:function(){return b},Emitter:function(){return c},Event:function(){return n},EventBufferer:function(){return _},EventDeliveryQueue:function(){return p},PauseableEmitter:function(){return m},Relay:function(){return v}});var n,o=i("161111"),s=i("919527"),r=i("662300"),l=i("130039");!function(e){function t(e){}function i(e){return(t,i=null,n)=>{let o,s=!1;return o=e(e=>s?void 0:(o?o.dispose():s=!0,t.call(i,e)),null,n),s&&o.dispose(),o}}function n(e,t,i){return a((i,n=null,o)=>e(e=>i.call(n,t(e)),null,o),i)}function o(e,t,i){return a((i,n=null,o)=>e(e=>{t(e),i.call(n,e)},null,o),i)}function r(e,t,i){return a((i,n=null,o)=>e(e=>t(e)&&i.call(n,e),null,o),i)}e.None=()=>s.Disposable.None,e.once=i,e.map=n,e.forEach=o,e.filter=r;e.signal=function(e){return e};function l(e,t,i,o){let s=i;return n(e,e=>s=t(s,e),o)}function a(e,i){let n;let o={onFirstListenerAdd(){n=e(s.fire,s)},onLastListenerRemove(){null==n||n.dispose()}};!i&&t(o);let s=new c(o);return null==i||i.add(s),s.event}function u(e,i,n=100,o=!1,s,r){let l,a,u;let d=0,h={leakWarningThreshold:s,onFirstListenerAdd(){l=e(e=>{d++,a=i(a,e),o&&!u&&(p.fire(a),a=void 0),clearTimeout(u),u=setTimeout(()=>{let e=a;a=void 0,u=void 0,(!o||d>1)&&p.fire(e),d=0},n)})},onLastListenerRemove(){l.dispose()}};!r&&t(h);let p=new c(h);return null==r||r.add(p),p.event}function d(e,t=(e,t)=>e===t,i){let n,o=!0;return r(e,e=>{let i=o||!t(e,n);return o=!1,n=e,i},i)}e.any=function(...e){return(t,i=null,n)=>(0,s.combinedDisposable)(...e.map(e=>e(e=>t.call(i,e),null,n)))},e.reduce=l,e.debounce=u,e.latch=d;e.split=function(t,i,n){return[e.filter(t,i,n),e.filter(t,e=>!i(e),n)]};e.buffer=function(e,t=!1,i=[]){let n=i.slice(),o=e(e=>{n?n.push(e):r.fire(e)}),s=()=>{null==n||n.forEach(e=>r.fire(e)),n=null},r=new c({onFirstListenerAdd(){!o&&(o=e(e=>r.fire(e)))},onFirstListenerDidAdd(){n&&(t?setTimeout(s):s())},onLastListenerRemove(){o&&o.dispose(),o=null}});return r.event};class h{constructor(e){this.event=e,this.disposables=new s.DisposableStore}map(e){return new h(n(this.event,e,this.disposables))}forEach(e){return new h(o(this.event,e,this.disposables))}filter(e){return new h(r(this.event,e,this.disposables))}reduce(e,t){return new h(l(this.event,e,t,this.disposables))}latch(){return new h(d(this.event,void 0,this.disposables))}debounce(e,t=100,i=!1,n){return new h(u(this.event,e,t,i,n,this.disposables))}on(e,t,i){return this.event(e,t,i)}once(e,t,n){return i(this.event)(e,t,n)}dispose(){this.disposables.dispose()}}e.chain=function(e){return new h(e)};e.fromNodeEventEmitter=function(e,t,i=e=>e){let n=(...e)=>o.fire(i(...e)),o=new c({onFirstListenerAdd:()=>e.on(t,n),onLastListenerRemove:()=>e.removeListener(t,n)});return o.event};e.fromDOMEventEmitter=function(e,t,i=e=>e){let n=(...e)=>o.fire(i(...e)),o=new c({onFirstListenerAdd:()=>e.addEventListener(t,n),onLastListenerRemove:()=>e.removeEventListener(t,n)});return o.event};e.toPromise=function(e){return new Promise(t=>i(e)(t))};e.runAndSubscribe=function(e,t){return t(void 0),e(e=>t(e))};e.runAndSubscribeWithStore=function(e,t){let i=null;function n(e){null==i||i.dispose(),t(e,i=new s.DisposableStore)}n(void 0);let o=e(e=>n(e));return(0,s.toDisposable)(()=>{o.dispose(),null==i||i.dispose()})};class p{constructor(e,i){this.obs=e,this._counter=0,this._hasChanged=!1;let n={onFirstListenerAdd:()=>{e.addObserver(this)},onLastListenerRemove:()=>{e.removeObserver(this)}};!i&&t(n),this.emitter=new c(n),i&&i.add(this.emitter)}beginUpdate(e){this._counter++}handleChange(e,t){this._hasChanged=!0}endUpdate(e){0==--this._counter&&this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this.obs.get()))}}e.fromObservable=function(e,t){return new p(e,t).emitter.event}}(n||(n={}));class a{constructor(e){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${e}_${a._idPool++}`}start(e){this._stopWatch=new l.StopWatch(!0),this._listenerCount=e}stop(){if(this._stopWatch){let e=this._stopWatch.elapsed();this._elapsedOverall+=e,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${e.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}a._idPool=0;class u{constructor(e,t=Math.random().toString(18).slice(2,5)){this.customThreshold=e,this.name=t,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(e,t){let i=-1;if("number"==typeof this.customThreshold&&(i=this.customThreshold),i<=0||t<i)return;!this._stacks&&(this._stacks=new Map);let n=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,n+1),this._warnCountdown-=1,this._warnCountdown<=0){let e;this._warnCountdown=.5*i;let n=0;for(let[t,i]of this._stacks)(!e||n<i)&&(e=t,n=i);console.warn(`[${this.name}] potential listener LEAK detected, having ${t} listeners already. MOST frequent listener (${n}):`),console.warn(e)}return()=>{let t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}}class d{constructor(e){this.value=e}static create(){var e;return new d(null!==(e=Error().stack)&&void 0!==e?e:"")}print(){console.warn(this.value.split("\n").slice(2).join("\n"))}}class h{constructor(e,t,i){this.callback=e,this.callbackThis=t,this.stack=i,this.subscription=new s.SafeDisposable}invoke(e){this.callback.call(this.callbackThis,e)}}class c{constructor(e){var t,i;this._disposed=!1,this._options=e,this._leakageMon=void 0,this._perfMon=(null===(t=this._options)||void 0===t?void 0:t._profName)?new a(this._options._profName):void 0,this._deliveryQueue=null===(i=this._options)||void 0===i?void 0:i.deliveryQueue}dispose(){var e,t,i,n,o;if(!this._disposed){if(this._disposed=!0,this._listeners){;this._listeners.clear()}null===(e=this._deliveryQueue)||void 0===e||e.clear(this),null===(i=null===(t=this._options)||void 0===t?void 0:t.onLastListenerRemove)||void 0===i||i.call(t),null===(n=this._leakageMon)||void 0===n||n.dispose()}}get event(){return!this._event&&(this._event=(e,t,i)=>{var n,o,l;let a,u;!this._listeners&&(this._listeners=new r.LinkedList);let c=this._listeners.isEmpty();c&&(null===(n=this._options)||void 0===n?void 0:n.onFirstListenerAdd)&&this._options.onFirstListenerAdd(this),this._leakageMon&&this._listeners.size>=30&&(u=d.create(),a=this._leakageMon.check(u,this._listeners.size+1));let p=new h(e,t,u),g=this._listeners.push(p);c&&(null===(o=this._options)||void 0===o?void 0:o.onFirstListenerDidAdd)&&this._options.onFirstListenerDidAdd(this),(null===(l=this._options)||void 0===l?void 0:l.onListenerDidAdd)&&this._options.onListenerDidAdd(this,e,t);let f=p.subscription.set(()=>{null==a||a(),!this._disposed&&(g(),this._options&&this._options.onLastListenerRemove&&!(this._listeners&&!this._listeners.isEmpty())&&this._options.onLastListenerRemove(this))});return i instanceof s.DisposableStore?i.add(f):Array.isArray(i)&&i.push(f),f}),this._event}fire(e){var t,i;if(this._listeners){for(let t of(!this._deliveryQueue&&(this._deliveryQueue=new g),this._listeners))this._deliveryQueue.push(this,t,e);null===(t=this._perfMon)||void 0===t||t.start(this._deliveryQueue.size),this._deliveryQueue.deliver(),null===(i=this._perfMon)||void 0===i||i.stop()}}}class p{constructor(){this._queue=new r.LinkedList}get size(){return this._queue.size}push(e,t,i){this._queue.push(new f(e,t,i))}clear(e){let t=new r.LinkedList;for(let i of this._queue)i.emitter!==e&&t.push(i);this._queue=t}deliver(){for(;this._queue.size>0;){let e=this._queue.shift();try{e.listener.invoke(e.event)}catch(e){(0,o.onUnexpectedError)(e)}}}}class g extends p{clear(e){this._queue.clear()}}class f{constructor(e,t,i){this.emitter=e,this.listener=t,this.event=i}}class m extends c{constructor(e){super(e),this._isPaused=0,this._eventQueue=new r.LinkedList,this._mergeFn=null==e?void 0:e.merge}pause(){this._isPaused++}resume(){if(0!==this._isPaused&&0==--this._isPaused){if(this._mergeFn){let e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}else for(;!this._isPaused&&0!==this._eventQueue.size;)super.fire(this._eventQueue.shift())}}fire(e){this._listeners&&(0!==this._isPaused?this._eventQueue.push(e):super.fire(e))}}class b extends m{constructor(e){var t;super(e),this._delay=null!==(t=e.delay)&&void 0!==t?t:100}fire(e){!this._handle&&(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(e)}}class _{constructor(){this.buffers=[]}wrapEvent(e){return(t,i,n)=>e(e=>{let n=this.buffers[this.buffers.length-1];n?n.push(()=>t.call(i,e)):t.call(i,e)},void 0,n)}bufferEvents(e){let t=[];this.buffers.push(t);let i=e();return this.buffers.pop(),t.forEach(e=>e()),i}}class v{constructor(){this.listening=!1,this.inputEvent=n.None,this.inputEventListener=s.Disposable.None,this.emitter=new c({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},780189:function(e,t,i){"use strict";var n;i.r(t),i.d(t,{Iterable:function(){return n}}),!function(e){e.is=function(e){return e&&"object"==typeof e&&"function"==typeof e[Symbol.iterator]};let t=Object.freeze([]);e.empty=function(){return t};e.single=function*(e){yield e};e.from=function(e){return e||t};e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done};e.first=function(e){return e[Symbol.iterator]().next().value};e.some=function(e,t){for(let i of e)if(t(i))return!0;return!1};e.find=function(e,t){for(let i of e)if(t(i))return i};e.filter=function*(e,t){for(let i of e)t(i)&&(yield i)};e.map=function*(e,t){let i=0;for(let n of e)yield t(n,i++)};e.concat=function*(...e){for(let t of e)for(let e of t)yield e};e.concatNested=function*(e){for(let t of e)for(let e of t)yield e};e.reduce=function(e,t,i){let n=i;for(let i of e)n=t(n,i);return n};e.forEach=function(e,t){let i=0;for(let n of e)t(n,i++)};function i(t,i=Number.POSITIVE_INFINITY){let n=[];if(0===i)return[n,t];let o=t[Symbol.iterator]();for(let t=0;t<i;t++){let t=o.next();if(t.done)return[n,e.empty()];n.push(t.value)}return[n,{[Symbol.iterator]:()=>o}]}e.slice=function*(e,t,i=e.length){for(t<0&&(t+=e.length),i<0?i+=e.length:i>e.length&&(i=e.length);t<i;t++)yield e[t]},e.consume=i;e.collect=function(e){return i(e)[0]};e.equals=function(e,t,i=(e,t)=>e===t){let n=e[Symbol.iterator](),o=t[Symbol.iterator]();for(;;){let e=n.next(),t=o.next();if(e.done!==t.done)return!1;if(e.done)return!0;else if(!i(e.value,t.value))return!1}}}(n||(n={}))},963368:function(e,t,i){"use strict";i.r(t),i.d(t,{QuickInputList:function(){return E},QuickInputListFocus:function(){return o}});var n,o,s=i("409737"),r=i("85763"),l=i("362880"),a=i("96479"),u=i("926573"),d=i("431453"),h=i("603868"),c=i("871628"),p=i("309778"),g=i("449714"),f=i("916904"),m=i("947578"),b=i("919527"),_=i("207875"),v=i("266763"),C=i("744138"),y=i("686329");i("664014");var w=i("708339"),k=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};let S=s.$;class x{constructor(e){this.hidden=!1,this._onChecked=new f.Emitter,this.onChecked=this._onChecked.event,Object.assign(this,e)}get checked(){return!!this._checked}set checked(e){e!==this._checked&&(this._checked=e,this._onChecked.fire(e))}dispose(){this._onChecked.dispose()}}class I{get templateId(){return I.ID}renderTemplate(e){let t=Object.create(null);t.toDisposeElement=[],t.toDisposeTemplate=[],t.entry=s.append(e,S(".quick-input-list-entry"));let i=s.append(t.entry,S("label.quick-input-list-label"));t.toDisposeTemplate.push(s.addStandardDisposableListener(i,s.EventType.CLICK,e=>{!t.checkbox.offsetParent&&e.preventDefault()})),t.checkbox=s.append(i,S("input.quick-input-list-checkbox")),t.checkbox.type="checkbox",t.toDisposeTemplate.push(s.addStandardDisposableListener(t.checkbox,s.EventType.CHANGE,e=>{t.element.checked=t.checkbox.checked}));let n=s.append(i,S(".quick-input-list-rows")),o=s.append(n,S(".quick-input-list-row")),r=s.append(n,S(".quick-input-list-row"));t.label=new a.IconLabel(o,{supportHighlights:!0,supportDescriptionHighlights:!0,supportIcons:!0});let d=s.append(o,S(".quick-input-list-entry-keybinding"));t.keybinding=new u.KeybindingLabel(d,_.OS);let h=s.append(r,S(".quick-input-list-label-meta"));return t.detail=new a.IconLabel(h,{supportHighlights:!0,supportIcons:!0}),t.separator=s.append(t.entry,S(".quick-input-list-separator")),t.actionBar=new l.ActionBar(t.entry),t.actionBar.domNode.classList.add("quick-input-list-entry-action-bar"),t.toDisposeTemplate.push(t.actionBar),t}renderElement(e,t,i){i.toDisposeElement=(0,b.dispose)(i.toDisposeElement),i.element=e,i.checkbox.checked=e.checked,i.toDisposeElement.push(e.onChecked(e=>i.checkbox.checked=e));let{labelHighlights:n,descriptionHighlights:o,detailHighlights:s}=e,r=Object.create(null);r.matches=n||[],r.descriptionTitle=e.saneDescription,r.descriptionMatches=o||[],r.extraClasses=e.item.iconClasses,r.italic=e.item.italic,r.strikethrough=e.item.strikethrough,i.label.setLabel(e.saneLabel,e.saneDescription,r),i.keybinding.set(e.item.keybinding),e.saneDetail&&i.detail.setLabel(e.saneDetail,void 0,{matches:s,title:e.saneDetail}),e.separator&&e.separator.label?(i.separator.textContent=e.separator.label,i.separator.style.display=""):i.separator.style.display="none",i.entry.classList.toggle("quick-input-list-separator-border",!!e.separator),i.actionBar.clear();let l=e.item.buttons;l&&l.length?(i.actionBar.push(l.map((t,i)=>{let n=t.iconClass||(t.iconPath?(0,y.getIconClass)(t.iconPath):void 0);t.alwaysVisible&&(n=n?`${n} always-visible`:"always-visible");let o=new d.Action(`id-${i}`,"",n,!0,()=>{var i,n,o,s;return i=this,n=void 0,o=void 0,s=function*(){e.fireButtonTriggered({button:t,item:e.item})},new(o||(o=Promise))(function(e,t){function r(e){try{a(s.next(e))}catch(e){t(e)}}function l(e){try{a(s.throw(e))}catch(e){t(e)}}function a(t){var i;t.done?e(t.value):((i=t.value)instanceof o?i:new o(function(e){e(i)})).then(r,l)}a((s=s.apply(i,n||[])).next())})});return o.tooltip=t.tooltip||"",o}),{icon:!0,label:!1}),i.entry.classList.add("has-actions")):i.entry.classList.remove("has-actions")}disposeElement(e,t,i){i.toDisposeElement=(0,b.dispose)(i.toDisposeElement)}disposeTemplate(e){e.toDisposeElement=(0,b.dispose)(e.toDisposeElement),e.toDisposeTemplate=(0,b.dispose)(e.toDisposeTemplate)}}I.ID="listelement";class L{getHeight(e){return e.saneDetail?44:22}getTemplateId(e){return I.ID}}(n=o||(o={}))[n.First=1]="First",n[n.Second=2]="Second",n[n.Last=3]="Last",n[n.Next=4]="Next",n[n.Previous=5]="Previous",n[n.NextPage=6]="NextPage",n[n.PreviousPage=7]="PreviousPage";class E{constructor(e,t,i){this.parent=e,this.inputElements=[],this.elements=[],this.elementsToIndexes=new Map,this.matchOnDescription=!1,this.matchOnDetail=!1,this.matchOnLabel=!0,this.matchOnLabelMode="fuzzy",this.matchOnMeta=!0,this.sortByLabel=!0,this._onChangedAllVisibleChecked=new f.Emitter,this.onChangedAllVisibleChecked=this._onChangedAllVisibleChecked.event,this._onChangedCheckedCount=new f.Emitter,this.onChangedCheckedCount=this._onChangedCheckedCount.event,this._onChangedVisibleCount=new f.Emitter,this.onChangedVisibleCount=this._onChangedVisibleCount.event,this._onChangedCheckedElements=new f.Emitter,this.onChangedCheckedElements=this._onChangedCheckedElements.event,this._onButtonTriggered=new f.Emitter,this.onButtonTriggered=this._onButtonTriggered.event,this._onKeyDown=new f.Emitter,this.onKeyDown=this._onKeyDown.event,this._onLeave=new f.Emitter,this.onLeave=this._onLeave.event,this._fireCheckedEvents=!0,this.elementDisposables=[],this.disposables=[],this.id=t,this.container=s.append(this.parent,S(".quick-input-list"));let n=new L,o=new N;this.list=i.createList("QuickInput",this.container,n,[new I],{identityProvider:{getId:e=>e.saneLabel},setRowLineHeight:!1,multipleSelectionSupport:!1,horizontalScrolling:!1,accessibilityProvider:o}),this.list.getHTMLElement().id=t,this.disposables.push(this.list),this.disposables.push(this.list.onKeyDown(e=>{let t=new r.StandardKeyboardEvent(e);switch(t.keyCode){case 10:this.toggleCheckbox();break;case 31:(_.isMacintosh?e.metaKey:e.ctrlKey)&&this.list.setFocus((0,h.range)(this.list.length));break;case 16:{let e=this.list.getFocus();1===e.length&&0===e[0]&&this._onLeave.fire();break}case 18:{let e=this.list.getFocus();1===e.length&&e[0]===this.list.length-1&&this._onLeave.fire()}}this._onKeyDown.fire(t)})),this.disposables.push(this.list.onMouseDown(e=>{2!==e.browserEvent.button&&e.browserEvent.preventDefault()})),this.disposables.push(s.addDisposableListener(this.container,s.EventType.CLICK,e=>{(e.x||e.y)&&this._onLeave.fire()})),this.disposables.push(this.list.onMouseMiddleClick(e=>{this._onLeave.fire()})),this.disposables.push(this.list.onContextMenu(e=>{"number"==typeof e.index&&(e.browserEvent.preventDefault(),this.list.setSelection([e.index]))})),this.disposables.push(this._onChangedAllVisibleChecked,this._onChangedCheckedCount,this._onChangedVisibleCount,this._onChangedCheckedElements,this._onButtonTriggered,this._onLeave,this._onKeyDown)}get onDidChangeFocus(){return f.Event.map(this.list.onDidChangeFocus,e=>e.elements.map(e=>e.item))}get onDidChangeSelection(){return f.Event.map(this.list.onDidChangeSelection,e=>({items:e.elements.map(e=>e.item),event:e.browserEvent}))}get scrollTop(){return this.list.scrollTop}set scrollTop(e){this.list.scrollTop=e}getAllVisibleChecked(){return this.allVisibleChecked(this.elements,!1)}allVisibleChecked(e,t=!0){for(let i=0,n=e.length;i<n;i++){let n=e[i];if(!n.hidden){if(!n.checked)return!1;t=!0}}return t}getCheckedCount(){let e=0,t=this.elements;for(let i=0,n=t.length;i<n;i++)t[i].checked&&e++;return e}getVisibleCount(){let e=0,t=this.elements;for(let i=0,n=t.length;i<n;i++)!t[i].hidden&&e++;return e}setAllVisibleChecked(e){try{this._fireCheckedEvents=!1,this.elements.forEach(t=>{!t.hidden&&(t.checked=e)})}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}setElements(e){this.elementDisposables=(0,b.dispose)(this.elementDisposables);let t=e=>this.fireButtonTriggered(e);this.inputElements=e,this.elements=e.reduce((i,n,o)=>{var s,r,l;if("separator"!==n.type){let a=o&&e[o-1],u=n.label&&n.label.replace(/\r?\n/g," "),d=(0,m.parseLabelWithIcons)(u).text.trim(),h=n.meta&&n.meta.replace(/\r?\n/g," "),p=n.description&&n.description.replace(/\r?\n/g," "),g=n.detail&&n.detail.replace(/\r?\n/g," "),f=n.ariaLabel||[u,p,g].map(e=>(0,c.getCodiconAriaLabel)(e)).filter(e=>!!e).join(", "),b=this.parent.classList.contains("show-checkboxes");i.push(new x({hasCheckbox:b,index:o,item:n,saneLabel:u,saneSortLabel:d,saneMeta:h,saneAriaLabel:f,saneDescription:p,saneDetail:g,labelHighlights:null===(s=n.highlights)||void 0===s?void 0:s.label,descriptionHighlights:null===(r=n.highlights)||void 0===r?void 0:r.description,detailHighlights:null===(l=n.highlights)||void 0===l?void 0:l.detail,checked:!1,separator:a&&"separator"===a.type?a:void 0,fireButtonTriggered:t}))}return i},[]),this.elementDisposables.push(...this.elements),this.elementDisposables.push(...this.elements.map(e=>e.onChecked(()=>this.fireCheckedEvents()))),this.elementsToIndexes=this.elements.reduce((e,t,i)=>(e.set(t.item,i),e),new Map),this.list.splice(0,this.list.length),this.list.splice(0,this.list.length,this.elements),this._onChangedVisibleCount.fire(this.elements.length)}getFocusedElements(){return this.list.getFocusedElements().map(e=>e.item)}setFocusedElements(e){if(this.list.setFocus(e.filter(e=>this.elementsToIndexes.has(e)).map(e=>this.elementsToIndexes.get(e))),e.length>0){let e=this.list.getFocus()[0];"number"==typeof e&&this.list.reveal(e)}}getActiveDescendant(){return this.list.getHTMLElement().getAttribute("aria-activedescendant")}setSelectedElements(e){this.list.setSelection(e.filter(e=>this.elementsToIndexes.has(e)).map(e=>this.elementsToIndexes.get(e)))}getCheckedElements(){return this.elements.filter(e=>e.checked).map(e=>e.item)}setCheckedElements(e){try{this._fireCheckedEvents=!1;let t=new Set;for(let i of e)t.add(i);for(let e of this.elements)e.checked=t.has(e.item)}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}set enabled(e){this.list.getHTMLElement().style.pointerEvents=e?"":"none"}focus(e){if(!this.list.length)return;switch(e===o.Next&&this.list.getFocus()[0]===this.list.length-1&&(e=o.First),e===o.Previous&&0===this.list.getFocus()[0]&&(e=o.Last),e===o.Second&&this.list.length<2&&(e=o.First),e){case o.First:this.list.focusFirst();break;case o.Second:this.list.focusNth(1);break;case o.Last:this.list.focusLast();break;case o.Next:this.list.focusNext();break;case o.Previous:this.list.focusPrevious();break;case o.NextPage:this.list.focusNextPage();break;case o.PreviousPage:this.list.focusPreviousPage()}let t=this.list.getFocus()[0];"number"==typeof t&&this.list.reveal(t)}clearFocus(){this.list.setFocus([])}domFocus(){this.list.domFocus()}layout(e){this.list.getHTMLElement().style.maxHeight=e?`calc(${44*Math.floor(e/44)}px)`:"",this.list.layout()}filter(e){if(!(this.sortByLabel||this.matchOnLabel||this.matchOnDescription||this.matchOnDetail))return this.list.layout(),!1;let t=e;if((e=e.trim())&&(this.matchOnLabel||this.matchOnDescription||this.matchOnDetail)){let i;this.elements.forEach(n=>{let o;o="fuzzy"===this.matchOnLabelMode?this.matchOnLabel?(0,C.withNullAsUndefined)((0,m.matchesFuzzyIconAware)(e,(0,m.parseLabelWithIcons)(n.saneLabel))):void 0:this.matchOnLabel?(0,C.withNullAsUndefined)(function(e,t){let{text:i,iconOffsets:n}=t;if(!n||0===n.length)return T(e,i);let o=(0,v.ltrim)(i," "),s=i.length-o.length,r=T(e,o);if(r)for(let e of r){let t=n[e.start+s]+s;e.start+=t,e.end+=t}return r}(t,(0,m.parseLabelWithIcons)(n.saneLabel))):void 0;let s=this.matchOnDescription?(0,C.withNullAsUndefined)((0,m.matchesFuzzyIconAware)(e,(0,m.parseLabelWithIcons)(n.saneDescription||""))):void 0,r=this.matchOnDetail?(0,C.withNullAsUndefined)((0,m.matchesFuzzyIconAware)(e,(0,m.parseLabelWithIcons)(n.saneDetail||""))):void 0,l=this.matchOnMeta?(0,C.withNullAsUndefined)((0,m.matchesFuzzyIconAware)(e,(0,m.parseLabelWithIcons)(n.saneMeta||""))):void 0;if(o||s||r||l?(n.labelHighlights=o,n.descriptionHighlights=s,n.detailHighlights=r,n.hidden=!1):(n.labelHighlights=void 0,n.descriptionHighlights=void 0,n.detailHighlights=void 0,n.hidden=!n.item.alwaysShow),n.separator=void 0,!this.sortByLabel){let e=n.index&&this.inputElements[n.index-1];(i=e&&"separator"===e.type?e:i)&&!n.hidden&&(n.separator=i,i=void 0)}})}else this.elements.forEach(e=>{e.labelHighlights=void 0,e.descriptionHighlights=void 0,e.detailHighlights=void 0,e.hidden=!1;let t=e.index&&this.inputElements[e.index-1];e.separator=t&&"separator"===t.type?t:void 0});let i=this.elements.filter(e=>!e.hidden);if(this.sortByLabel&&e){let t=e.toLowerCase();i.sort((e,i)=>(function(e,t,i){let n=e.labelHighlights||[],o=t.labelHighlights||[];return n.length&&!o.length?-1:!n.length&&o.length?1:0===n.length&&0===o.length?0:(0,p.compareAnything)(e.saneSortLabel,t.saneSortLabel,i)})(e,i,t))}return this.elementsToIndexes=i.reduce((e,t,i)=>(e.set(t.item,i),e),new Map),this.list.splice(0,this.list.length,i),this.list.setFocus([]),this.list.layout(),this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedVisibleCount.fire(i.length),!0}toggleCheckbox(){try{this._fireCheckedEvents=!1;let e=this.list.getFocusedElements(),t=this.allVisibleChecked(e);for(let i of e)i.checked=!t}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}display(e){this.container.style.display=e?"":"none"}isDisplayed(){return"none"!==this.container.style.display}dispose(){this.elementDisposables=(0,b.dispose)(this.elementDisposables),this.disposables=(0,b.dispose)(this.disposables)}fireCheckedEvents(){this._fireCheckedEvents&&(this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedCheckedCount.fire(this.getCheckedCount()),this._onChangedCheckedElements.fire(this.getCheckedElements()))}fireButtonTriggered(e){this._onButtonTriggered.fire(e)}style(e){this.list.style(e)}}k([g.memoize],E.prototype,"onDidChangeFocus",null),k([g.memoize],E.prototype,"onDidChangeSelection",null);function T(e,t){let i=t.toLowerCase().indexOf(e.toLowerCase());return -1!==i?[{start:i,end:i+e.length}]:null}class N{getWidgetAriaLabel(){return(0,w.localize)("quickInput","Quick Input")}getAriaLabel(e){var t;return(null===(t=e.separator)||void 0===t?void 0:t.label)?`${e.saneAriaLabel}, ${e.separator.label}`:e.saneAriaLabel}getWidgetRole(){return"listbox"}getRole(e){return e.hasCheckbox?"checkbox":"option"}isChecked(e){if(e.hasCheckbox)return{value:e.checked,onDidChange:e.onChecked}}}},652603:function(e,t,i){"use strict";i.r(t),(0,i("354606").registerLanguage)({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310")]).then(i.bind(i,"723517"))})},37429:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return n},language:function(){return o}});var n={comments:{lineComment:"REM"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],folding:{markers:{start:RegExp("^\\s*(::\\s*|REM\\s+)#region"),end:RegExp("^\\s*(::\\s*|REM\\s+)#endregion")}}},o={defaultToken:"",ignoreCase:!0,tokenPostfix:".bat",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:/call|defined|echo|errorlevel|exist|for|goto|if|pause|set|shift|start|title|not|pushd|popd/,symbols:/[=><!~?&|+\-*\/\^;\.,]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/^(\s*)(rem(?:\s.*|))$/,["","comment"]],[/(\@?)(@keywords)(?!\w)/,[{token:"keyword"},{token:"keyword.$2"}]],[/[ \t\r\n]+/,""],[/setlocal(?!\w)/,"keyword.tag-setlocal"],[/endlocal(?!\w)/,"keyword.tag-setlocal"],[/[a-zA-Z_]\w*/,""],[/:\w*/,"metatag"],[/%[^%]+%/,"variable"],[/%%[\w]+(?!\w)/,"variable"],[/[{}()\[\]]/,"@brackets"],[/@symbols/,"delimiter"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],string:[[/[^\\"'%]+/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/%[\w ]+%/,"variable"],[/%%[\w]+(?!\w)/,"variable"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/$/,"string","@popall"]]}}},304458:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return n},language:function(){return o}});var n={comments:{lineComment:"#"},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:'"'}],folding:{offSide:!0}},o={defaultToken:"invalid",tokenPostfix:".gql",keywords:["null","true","false","query","mutation","subscription","extend","schema","directive","scalar","type","interface","union","enum","input","implements","fragment","on"],typeKeywords:["Int","Float","String","Boolean","ID"],directiveLocations:["SCHEMA","SCALAR","OBJECT","FIELD_DEFINITION","ARGUMENT_DEFINITION","INTERFACE","UNION","ENUM","ENUM_VALUE","INPUT_OBJECT","INPUT_FIELD_DEFINITION","QUERY","MUTATION","SUBSCRIPTION","FIELD","FRAGMENT_DEFINITION","FRAGMENT_SPREAD","INLINE_FRAGMENT","VARIABLE_DEFINITION"],operators:["=","!","?",":","&","|"],symbols:/[=!?:&|]+/,escapes:/\\(?:["\\\/bfnrt]|u[0-9A-Fa-f]{4})/,tokenizer:{root:[[/[a-z_][\w$]*/,{cases:{"@keywords":"keyword","@default":"key.identifier"}}],[/[$][\w$]*/,{cases:{"@keywords":"keyword","@default":"argument.identifier"}}],[/[A-Z][\w\$]*/,{cases:{"@typeKeywords":"keyword","@default":"type.identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,{token:"annotation",log:"annotation token: $0"}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/"""/,{token:"string",next:"@mlstring",nextEmbedded:"markdown"}],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}]],mlstring:[[/[^"]+/,"string"],['"""',{token:"string",next:"@pop",nextEmbedded:"@pop"}]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/#.*$/,"comment"]]}}},734667:function(e,t,i){"use strict";let n,o;i.r(t),i.d(t,{conf:function(){return p},language:function(){return g}});var s=i("299334"),r=Object.defineProperty,l=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,d=(e,t,i,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of a(t))!u.call(e,o)&&o!==i&&r(e,o,{get:()=>t[o],enumerable:!(n=l(t,o))||n.enumerable});return e},h={};d(h,n=s,"default"),o&&d(o,n,"default");var c=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],p={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[["\x3c!--","-->"],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:RegExp(`<(?!(?:${c.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:h.languages.IndentAction.IndentOutdent}},{beforeText:RegExp(`<(?!(?:${c.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:h.languages.IndentAction.Indent}}]},g={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@commentHtml"],[/(<)(\w+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/\{/,"delimiter.html"],[/[^<{]+/]],doctype:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}}},601696:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return n},language:function(){return o}});var n={comments:{lineComment:"//"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]}],folding:{offSide:!0}},o={defaultToken:"",tokenPostfix:".pug",ignoreCase:!0,brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"}],keywords:["append","block","case","default","doctype","each","else","extends","for","if","in","include","mixin","typeof","unless","var","when"],tags:["a","abbr","acronym","address","area","article","aside","audio","b","base","basefont","bdi","bdo","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","datalist","dd","del","details","dfn","div","dl","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","keygen","kbd","label","li","link","map","mark","menu","meta","meter","nav","noframes","noscript","object","ol","optgroup","option","output","p","param","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strike","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","tracks","tt","u","ul","video","wbr"],symbols:/[\+\-\*\%\&\|\!\=\/\.\,\:]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/^(\s*)([a-zA-Z_-][\w-]*)/,{cases:{"$2@tags":{cases:{"@eos":["","tag"],"@default":["",{token:"tag",next:"@tag.$1"}]}},"$2@keywords":["",{token:"keyword.$2"}],"@default":["",""]}}],[/^(\s*)(#[a-zA-Z_-][\w-]*)/,{cases:{"@eos":["","tag.id"],"@default":["",{token:"tag.id",next:"@tag.$1"}]}}],[/^(\s*)(\.[a-zA-Z_-][\w-]*)/,{cases:{"@eos":["","tag.class"],"@default":["",{token:"tag.class",next:"@tag.$1"}]}}],[/^(\s*)(\|.*)$/,""],{include:"@whitespace"},[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":""}}],[/[{}()\[\]]/,"@brackets"],[/@symbols/,"delimiter"],[/\d+\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\d+/,"number"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],tag:[[/(\.)(\s*$)/,[{token:"delimiter",next:"@blockText.$S2."},""]],[/\s+/,{token:"",next:"@simpleText"}],[/#[a-zA-Z_-][\w-]*/,{cases:{"@eos":{token:"tag.id",next:"@pop"},"@default":"tag.id"}}],[/\.[a-zA-Z_-][\w-]*/,{cases:{"@eos":{token:"tag.class",next:"@pop"},"@default":"tag.class"}}],[/\(/,{token:"delimiter.parenthesis",next:"@attributeList"}]],simpleText:[[/[^#]+$/,{token:"",next:"@popall"}],[/[^#]+/,{token:""}],[/(#{)([^}]*)(})/,{cases:{"@eos":["interpolation.delimiter","interpolation",{token:"interpolation.delimiter",next:"@popall"}],"@default":["interpolation.delimiter","interpolation","interpolation.delimiter"]}}],[/#$/,{token:"",next:"@popall"}],[/#/,""]],attributeList:[[/\s+/,""],[/(\w+)(\s*=\s*)("|')/,["attribute.name","delimiter",{token:"attribute.value",next:"@value.$3"}]],[/\w+/,"attribute.name"],[/,/,{cases:{"@eos":{token:"attribute.delimiter",next:"@popall"},"@default":"attribute.delimiter"}}],[/\)$/,{token:"delimiter.parenthesis",next:"@popall"}],[/\)/,{token:"delimiter.parenthesis",next:"@pop"}]],whitespace:[[/^(\s*)(\/\/.*)$/,{token:"comment",next:"@blockText.$1.comment"}],[/[ \t\r\n]+/,""],[/<!--/,{token:"comment",next:"@comment"}]],blockText:[[/^\s+.*$/,{cases:{"($S2\\s+.*$)":{token:"$S3"},"@default":{token:"@rematch",next:"@popall"}}}],[/./,{token:"@rematch",next:"@popall"}]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,{token:"comment",next:"@pop"}],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]],string:[[/[^\\"'#]+/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/@escapes/,{cases:{"@eos":{token:"string.escape",next:"@popall"},"@default":"string.escape"}}],[/\\./,{cases:{"@eos":{token:"string.escape.invalid",next:"@popall"},"@default":"string.escape.invalid"}}],[/(#{)([^}]*)(})/,["interpolation.delimiter","interpolation","interpolation.delimiter"]],[/#/,"string"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":{token:"string"}}}]],value:[[/[^\\"']+/,{cases:{"@eos":{token:"attribute.value",next:"@popall"},"@default":"attribute.value"}}],[/\\./,{cases:{"@eos":{token:"attribute.value",next:"@popall"},"@default":"attribute.value"}}],[/["']/,{cases:{"$#==$S2":{token:"attribute.value",next:"@pop"},"@default":{token:"attribute.value"}}}]]}}},594575:function(e,t,i){"use strict";i.r(t),(0,i("354606").registerLanguage)({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310")]).then(i.bind(i,"868490"))})},769927:function(e,t,i){"use strict";i.r(t),(0,i("354606").registerLanguage)({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310")]).then(i.bind(i,"244192"))})},405690:function(e,t,i){"use strict";let n,o;i.r(t),i.d(t,{conf:function(){return c},language:function(){return p}});var s=i("299334"),r=Object.defineProperty,l=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,d=(e,t,i,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of a(t))!u.call(e,o)&&o!==i&&r(e,o,{get:()=>t[o],enumerable:!(n=l(t,o))||n.enumerable});return e},h={};d(h,n=s,"default"),o&&d(o,n,"default");var c={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:h.languages.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:h.languages.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:h.languages.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:h.languages.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:RegExp("^\\s*//\\s*#?region\\b"),end:RegExp("^\\s*//\\s*#?endregion\\b")}}},p={defaultToken:"invalid",tokenPostfix:".ts",keywords:["abstract","any","as","asserts","bigint","boolean","break","case","catch","class","continue","const","constructor","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","implements","import","in","infer","instanceof","interface","is","keyof","let","module","namespace","never","new","null","number","object","out","package","private","protected","public","override","readonly","require","global","return","set","static","string","super","switch","symbol","this","throw","true","try","type","typeof","undefined","unique","unknown","var","void","while","with","yield","async","await","of"],operators:["<=",">=","==","!=","===","!==","=>","+","-","**","*","/","%","++","--","<<","</",">>",">>>","&","|","^","!","~","&&","||","??","?",":","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=","@"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/,regexpesc:/\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,tokenizer:{root:[[/[{}]/,"delimiter.bracket"],{include:"common"}],common:[[/[a-z_$][\w$]*/,{cases:{"@keywords":"keyword","@default":"identifier"}}],[/[A-Z][\w\$]*/,"type.identifier"],{include:"@whitespace"},[/\/(?=([^\\\/]|\\.)+\/([dgimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,{token:"regexp",bracket:"@open",next:"@regexp"}],[/[()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/`/,"string","@string_backtick"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([dgimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_backtick:[[/\$\{/,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]],bracketCounting:[[/\{/,"delimiter.bracket","@bracketCounting"],[/\}/,"delimiter.bracket","@pop"],{include:"common"}]}}},36790:function(e,t,i){"use strict";i.r(t),i.d(t,{TabFocus:function(){return o}});var n=i("916904");let o=new class e{constructor(){this._tabFocus=!1,this._onDidChangeTabFocus=new n.Emitter,this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}getTabFocusMode(){return this._tabFocus}setTabFocusMode(e){this._tabFocus!==e&&(this._tabFocus=e,this._onDidChangeTabFocus.fire(this._tabFocus))}}},748379:function(e,t,i){"use strict";i.r(t),i.d(t,{MouseHandler:function(){return g}});var n=i("409737"),o=i("919219"),s=i("467518"),r=i("919527"),l=i("207875"),a=i("647388"),u=i("865646"),d=i("183140"),h=i("457938"),c=i("861065"),p=i("448331");class g extends p.ViewEventHandler{constructor(e,t,i){super(),this._mouseLeaveMonitor=null,this._context=e,this.viewController=t,this.viewHelper=i,this.mouseTargetFactory=new a.MouseTargetFactory(this._context,i),this._mouseDownOperation=this._register(new f(this._context,this.viewController,this.viewHelper,(e,t)=>this._createMouseTarget(e,t),e=>this._getMouseColumn(e))),this.lastMouseLeaveTime=-1,this._height=this._context.configuration.options.get(133).height;let s=new u.EditorMouseEventFactory(this.viewHelper.viewDomNode);this._register(s.onContextMenu(this.viewHelper.viewDomNode,e=>this._onContextMenu(e,!0))),this._register(s.onMouseMove(this.viewHelper.viewDomNode,e=>{this._onMouseMove(e),!this._mouseLeaveMonitor&&(this._mouseLeaveMonitor=n.addDisposableListener(document,"mousemove",e=>{!this.viewHelper.viewDomNode.contains(e.target)&&this._onMouseLeave(new u.EditorMouseEvent(e,!1,this.viewHelper.viewDomNode))}))})),this._register(s.onMouseUp(this.viewHelper.viewDomNode,e=>this._onMouseUp(e))),this._register(s.onMouseLeave(this.viewHelper.viewDomNode,e=>this._onMouseLeave(e)));let r=0;this._register(s.onPointerDown(this.viewHelper.viewDomNode,(e,t)=>{r=t})),this._register(n.addDisposableListener(this.viewHelper.viewDomNode,n.EventType.POINTER_UP,e=>{this._mouseDownOperation.onPointerUp()})),this._register(s.onMouseDown(this.viewHelper.viewDomNode,e=>this._onMouseDown(e,r)));this._register(n.addDisposableListener(this.viewHelper.viewDomNode,n.EventType.MOUSE_WHEEL,e=>{if(this.viewController.emitMouseWheel(e),!this._context.configuration.options.get(70))return;let t=new o.StandardWheelEvent(e);if(l.isMacintosh?(e.metaKey||e.ctrlKey)&&!e.shiftKey&&!e.altKey:e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey){let e=d.EditorZoom.getZoomLevel(),i=t.deltaY>0?1:-1;d.EditorZoom.setZoomLevel(e+i),t.preventDefault(),t.stopPropagation()}},{capture:!0,passive:!1})),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._mouseLeaveMonitor&&(this._mouseLeaveMonitor.dispose(),this._mouseLeaveMonitor=null),super.dispose()}onConfigurationChanged(e){if(e.hasChanged(133)){let e=this._context.configuration.options.get(133).height;this._height!==e&&(this._height=e,this._mouseDownOperation.onHeightChanged())}return!1}onCursorStateChanged(e){return this._mouseDownOperation.onCursorStateChanged(e),!1}onFocusChanged(e){return!1}onScrollChanged(e){return this._mouseDownOperation.onScrollChanged(),!1}getTargetAtClientPoint(e,t){let i=new u.ClientCoordinates(e,t).toPageCoordinates(),n=(0,u.createEditorPagePosition)(this.viewHelper.viewDomNode);if(i.y<n.y||i.y>n.y+n.height||i.x<n.x||i.x>n.x+n.width)return null;let o=(0,u.createCoordinatesRelativeToEditor)(this.viewHelper.viewDomNode,n,i);return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),n,i,o,null)}_createMouseTarget(e,t){let i=e.target;if(!this.viewHelper.viewDomNode.contains(i)){let t=n.getShadowRoot(this.viewHelper.viewDomNode);t&&(i=t.elementsFromPoint(e.posx,e.posy).find(e=>this.viewHelper.viewDomNode.contains(e)))}return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),e.editorPos,e.pos,e.relativePos,t?i:null)}_getMouseColumn(e){return this.mouseTargetFactory.getMouseColumn(e.relativePos)}_onContextMenu(e,t){this.viewController.emitContextMenu({event:e,target:this._createMouseTarget(e,t)})}_onMouseMove(e){if(!this.mouseTargetFactory.mouseTargetIsWidget(e)&&e.preventDefault(),!this._mouseDownOperation.isActive())!(e.timestamp<this.lastMouseLeaveTime)&&this.viewController.emitMouseMove({event:e,target:this._createMouseTarget(e,!0)})}_onMouseLeave(e){this._mouseLeaveMonitor&&(this._mouseLeaveMonitor.dispose(),this._mouseLeaveMonitor=null),this.lastMouseLeaveTime=new Date().getTime(),this.viewController.emitMouseLeave({event:e,target:null})}_onMouseUp(e){this.viewController.emitMouseUp({event:e,target:this._createMouseTarget(e,!0)})}_onMouseDown(e,t){let i=this._createMouseTarget(e,!0),n=6===i.type||7===i.type,o=2===i.type||3===i.type||4===i.type,s=3===i.type,r=this._context.configuration.options.get(100),a=8===i.type||5===i.type,u=9===i.type,d=e.leftButton||e.middleButton;l.isMacintosh&&e.leftButton&&e.ctrlKey&&(d=!1);let h=()=>{e.preventDefault(),this.viewHelper.focusTextArea()};if(d&&(n||s&&r))h(),this._mouseDownOperation.start(i.type,e,t);else if(o)e.preventDefault();else if(a){let n=i.detail;d&&this.viewHelper.shouldSuppressMouseDownOnViewZone(n.viewZoneId)&&(h(),this._mouseDownOperation.start(i.type,e,t),e.preventDefault())}else u&&this.viewHelper.shouldSuppressMouseDownOnWidget(i.detail)&&(h(),e.preventDefault());this.viewController.emitMouseDown({event:e,target:i})}}class f extends r.Disposable{constructor(e,t,i,n,o){super(),this._context=e,this._viewController=t,this._viewHelper=i,this._createMouseTarget=n,this._getMouseColumn=o,this._mouseMoveMonitor=this._register(new u.GlobalEditorPointerMoveMonitor(this._viewHelper.viewDomNode)),this._onScrollTimeout=this._register(new s.TimeoutTimer),this._mouseState=new m,this._currentSelection=new c.Selection(1,1,1,1),this._isActive=!1,this._lastMouseEvent=null}dispose(){super.dispose()}isActive(){return this._isActive}_onMouseDownThenMove(e){this._lastMouseEvent=e,this._mouseState.setModifiers(e);let t=this._findMousePosition(e,!1);t&&(this._mouseState.isDragAndDrop?this._viewController.emitMouseDrag({event:e,target:t}):this._dispatchMouse(t,!0))}start(e,t,i){this._lastMouseEvent=t,this._mouseState.setStartedOnLineNumbers(3===e),this._mouseState.setStartButtons(t),this._mouseState.setModifiers(t);let n=this._findMousePosition(t,!0);if(!n||!n.position)return;this._mouseState.trySetCount(t.detail,n.position),t.detail=this._mouseState.count;let o=this._context.configuration.options;if(!o.get(83)&&o.get(31)&&!o.get(18)&&!this._mouseState.altKey&&t.detail<2&&!this._isActive&&!this._currentSelection.isEmpty()&&6===n.type&&n.position&&this._currentSelection.containsPosition(n.position)){this._mouseState.isDragAndDrop=!0,this._isActive=!0,this._mouseMoveMonitor.startMonitoring(this._viewHelper.viewLinesDomNode,i,t.buttons,e=>this._onMouseDownThenMove(e),e=>{let t=this._findMousePosition(this._lastMouseEvent,!1);e&&e instanceof KeyboardEvent?this._viewController.emitMouseDropCanceled():this._viewController.emitMouseDrop({event:this._lastMouseEvent,target:t?this._createMouseTarget(this._lastMouseEvent,!0):null}),this._stop()});return}this._mouseState.isDragAndDrop=!1,this._dispatchMouse(n,t.shiftKey),!this._isActive&&(this._isActive=!0,this._mouseMoveMonitor.startMonitoring(this._viewHelper.viewLinesDomNode,i,t.buttons,e=>this._onMouseDownThenMove(e),()=>this._stop()))}_stop(){this._isActive=!1,this._onScrollTimeout.cancel()}onHeightChanged(){this._mouseMoveMonitor.stopMonitoring()}onPointerUp(){this._mouseMoveMonitor.stopMonitoring()}onScrollChanged(){this._isActive&&this._onScrollTimeout.setIfNotSet(()=>{if(!this._lastMouseEvent)return;let e=this._findMousePosition(this._lastMouseEvent,!1);if(!!e)!this._mouseState.isDragAndDrop&&this._dispatchMouse(e,!0)},10)}onCursorStateChanged(e){this._currentSelection=e.selections[0]}_getPositionOutsideEditor(e){let t=e.editorPos,i=this._context.viewModel,n=this._context.viewLayout,o=this._getMouseColumn(e);if(e.posy<t.y){let i=Math.max(n.getCurrentScrollTop()-(t.y-e.posy),0),s=a.HitTestContext.getZoneAtCoord(this._context,i);if(s){let e=this._helpPositionJumpOverViewZone(s);if(e)return a.MouseTarget.createOutsideEditor(o,e)}let r=n.getLineNumberAtVerticalOffset(i);return a.MouseTarget.createOutsideEditor(o,new h.Position(r,1))}if(e.posy>t.y+t.height){let t=n.getCurrentScrollTop()+e.relativePos.y,s=a.HitTestContext.getZoneAtCoord(this._context,t);if(s){let e=this._helpPositionJumpOverViewZone(s);if(e)return a.MouseTarget.createOutsideEditor(o,e)}let r=n.getLineNumberAtVerticalOffset(t);return a.MouseTarget.createOutsideEditor(o,new h.Position(r,i.getLineMaxColumn(r)))}let s=n.getLineNumberAtVerticalOffset(n.getCurrentScrollTop()+e.relativePos.y);return e.posx<t.x?a.MouseTarget.createOutsideEditor(o,new h.Position(s,1)):e.posx>t.x+t.width?a.MouseTarget.createOutsideEditor(o,new h.Position(s,i.getLineMaxColumn(s))):null}_findMousePosition(e,t){let i=this._getPositionOutsideEditor(e);if(i)return i;let n=this._createMouseTarget(e,t);if(!n.position)return null;if(8===n.type||5===n.type){let e=this._helpPositionJumpOverViewZone(n.detail);if(e)return a.MouseTarget.createViewZone(n.type,n.element,n.mouseColumn,e,n.detail)}return n}_helpPositionJumpOverViewZone(e){let t=new h.Position(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),i=e.positionBefore,n=e.positionAfter;if(i&&n)return i.isBefore(t)?i:n;return null}_dispatchMouse(e,t){e.position&&this._viewController.dispatchMouse({position:e.position,mouseColumn:e.mouseColumn,startedOnLineNumbers:this._mouseState.startedOnLineNumbers,inSelectionMode:t,mouseDownCount:this._mouseState.count,altKey:this._mouseState.altKey,ctrlKey:this._mouseState.ctrlKey,metaKey:this._mouseState.metaKey,shiftKey:this._mouseState.shiftKey,leftButton:this._mouseState.leftButton,middleButton:this._mouseState.middleButton,onInjectedText:6===e.type&&null!==e.detail.injectedText})}}class m{constructor(){this._altKey=!1,this._ctrlKey=!1,this._metaKey=!1,this._shiftKey=!1,this._leftButton=!1,this._middleButton=!1,this._startedOnLineNumbers=!1,this._lastMouseDownPosition=null,this._lastMouseDownPositionEqualCount=0,this._lastMouseDownCount=0,this._lastSetMouseDownCountTime=0,this.isDragAndDrop=!1}get altKey(){return this._altKey}get ctrlKey(){return this._ctrlKey}get metaKey(){return this._metaKey}get shiftKey(){return this._shiftKey}get leftButton(){return this._leftButton}get middleButton(){return this._middleButton}get startedOnLineNumbers(){return this._startedOnLineNumbers}get count(){return this._lastMouseDownCount}setModifiers(e){this._altKey=e.altKey,this._ctrlKey=e.ctrlKey,this._metaKey=e.metaKey,this._shiftKey=e.shiftKey}setStartButtons(e){this._leftButton=e.leftButton,this._middleButton=e.middleButton}setStartedOnLineNumbers(e){this._startedOnLineNumbers=e}trySetCount(e,t){let i=new Date().getTime();i-this._lastSetMouseDownCountTime>m.CLEAR_MOUSE_DOWN_COUNT_TIME&&(e=1),this._lastSetMouseDownCountTime=i,e>this._lastMouseDownCount+1&&(e=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(t)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=t,this._lastMouseDownCount=Math.min(e,this._lastMouseDownPositionEqualCount)}}m.CLEAR_MOUSE_DOWN_COUNT_TIME=400},394019:function(e,t,i){"use strict";i.r(t),i.d(t,{PointerHandler:function(){return p}});var n=i("409737"),o=i("207875"),s=i("266569"),r=i("919527"),l=i("748379"),a=i("865646"),u=i("972646"),d=i("637717");class h extends l.MouseHandler{constructor(e,t,i){super(e,t,i),this._register(s.Gesture.addTarget(this.viewHelper.linesContentDomNode)),this._register(n.addDisposableListener(this.viewHelper.linesContentDomNode,s.EventType.Tap,e=>this.onTap(e))),this._register(n.addDisposableListener(this.viewHelper.linesContentDomNode,s.EventType.Change,e=>this.onChange(e))),this._register(n.addDisposableListener(this.viewHelper.linesContentDomNode,s.EventType.Contextmenu,e=>this._onContextMenu(new a.EditorMouseEvent(e,!1,this.viewHelper.viewDomNode),!1))),this._lastPointerType="mouse",this._register(n.addDisposableListener(this.viewHelper.linesContentDomNode,"pointerdown",e=>{let t=e.pointerType;if("mouse"===t){this._lastPointerType="mouse";return}"touch"===t?this._lastPointerType="touch":this._lastPointerType="pen"}));let o=new a.EditorPointerEventFactory(this.viewHelper.viewDomNode);this._register(o.onPointerMove(this.viewHelper.viewDomNode,e=>this._onMouseMove(e))),this._register(o.onPointerUp(this.viewHelper.viewDomNode,e=>this._onMouseUp(e))),this._register(o.onPointerLeave(this.viewHelper.viewDomNode,e=>this._onMouseLeave(e))),this._register(o.onPointerDown(this.viewHelper.viewDomNode,(e,t)=>this._onMouseDown(e,t)))}onTap(e){if(!e.initialTarget||!this.viewHelper.linesContentDomNode.contains(e.initialTarget))return;e.preventDefault(),this.viewHelper.focusTextArea();let t=this._createMouseTarget(new a.EditorMouseEvent(e,!1,this.viewHelper.viewDomNode),!1);t.position&&this.viewController.dispatchMouse({position:t.position,mouseColumn:t.position.column,startedOnLineNumbers:!1,mouseDownCount:e.tapCount,inSelectionMode:!1,altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,leftButton:!1,middleButton:!1,onInjectedText:6===t.type&&null!==t.detail.injectedText})}onChange(e){"touch"===this._lastPointerType&&this._context.viewModel.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)}_onMouseDown(e,t){"touch"!==e.browserEvent.pointerType&&super._onMouseDown(e,t)}}class c extends l.MouseHandler{constructor(e,t,i){super(e,t,i),this._register(s.Gesture.addTarget(this.viewHelper.linesContentDomNode)),this._register(n.addDisposableListener(this.viewHelper.linesContentDomNode,s.EventType.Tap,e=>this.onTap(e))),this._register(n.addDisposableListener(this.viewHelper.linesContentDomNode,s.EventType.Change,e=>this.onChange(e))),this._register(n.addDisposableListener(this.viewHelper.linesContentDomNode,s.EventType.Contextmenu,e=>this._onContextMenu(new a.EditorMouseEvent(e,!1,this.viewHelper.viewDomNode),!1)))}onTap(e){e.preventDefault(),this.viewHelper.focusTextArea();let t=this._createMouseTarget(new a.EditorMouseEvent(e,!1,this.viewHelper.viewDomNode),!1);if(t.position){let e=document.createEvent("CustomEvent");e.initEvent(d.TextAreaSyntethicEvents.Tap,!1,!0),this.viewHelper.dispatchTextAreaEvent(e),this.viewController.moveTo(t.position)}}onChange(e){this._context.viewModel.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)}}class p extends r.Disposable{constructor(e,t,i){super(),o.isIOS&&u.BrowserFeatures.pointerEvents?this.handler=this._register(new h(e,t,i)):window.TouchEvent?this.handler=this._register(new c(e,t,i)):this.handler=this._register(new l.MouseHandler(e,t,i))}getTargetAtClientPoint(e,t){return this.handler.getTargetAtClientPoint(e,t)}}},661493:function(e,t,i){"use strict";i.r(t),i.d(t,{LinesDecorationsOverlay:function(){return o}}),i("237713");var n=i("511428");class o extends n.DedupOverlay{constructor(e){super(),this._context=e;let t=this._context.configuration.options.get(133);this._decorationsLeft=t.decorationsLeft,this._decorationsWidth=t.decorationsWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){let t=this._context.configuration.options.get(133);return this._decorationsLeft=t.decorationsLeft,this._decorationsWidth=t.decorationsWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getDecorations(e){let t=e.getDecorationsInViewport(),i=[],o=0;for(let e=0,s=t.length;e<s;e++){let s=t[e],r=s.options.linesDecorationsClassName;r&&(i[o++]=new n.DecorationToRender(s.range.startLineNumber,s.range.endLineNumber,r));let l=s.options.firstLineDecorationClassName;l&&(i[o++]=new n.DecorationToRender(s.range.startLineNumber,s.range.startLineNumber,l))}return i}prepareRender(e){let t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,n=this._render(t,i,this._getDecorations(e)),o=this._decorationsLeft.toString(),s='" style="left:'+o+"px;width:"+this._decorationsWidth.toString()+'px;"></div>',r=[];for(let e=t;e<=i;e++){let i=e-t,o=n[i],l="";for(let e=0,t=o.length;e<t;e++)l+='<div class="cldr '+o[e]+s;r[i]=l}this._renderResult=r}render(e,t){return this._renderResult?this._renderResult[t-e]:""}}},153049:function(e,t,i){"use strict";i.r(t),i.d(t,{CharacterClassifier:function(){return o},CharacterSet:function(){return s}});var n=i("979673");class o{constructor(e){let t=(0,n.toUint8)(e);this._defaultValue=t,this._asciiMap=o._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){let t=new Uint8Array(256);for(let i=0;i<256;i++)t[i]=e;return t}set(e,t){let i=(0,n.toUint8)(t);e>=0&&e<256?this._asciiMap[e]=i:this._map.set(e,i)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}}class s{constructor(){this._actual=new o(0)}add(e){this._actual.set(e,1)}has(e){return 1===this._actual.get(e)}}},912952:function(e,t,i){"use strict";i.r(t),i.d(t,{CompositionOutcome:function(){return v},TypeOperations:function(){return b},TypeWithAutoClosingCommand:function(){return _}});var n=i("161111"),o=i("266763"),s=i("838846"),r=i("739379"),l=i("808932"),a=i("607910"),u=i("840890"),d=i("761045"),h=i("457938"),c=i("49286"),p=i("962785"),g=i("965633"),f=i("545477"),m=i("79125");class b{static indent(e,t,i){if(null===t||null===i)return[];let n=[];for(let t=0,o=i.length;t<o;t++)n[t]=new r.ShiftCommand(i[t],{isUnshift:!1,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent},e.languageConfigurationService);return n}static outdent(e,t,i){let n=[];for(let t=0,o=i.length;t<o;t++)n[t]=new r.ShiftCommand(i[t],{isUnshift:!0,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent},e.languageConfigurationService);return n}static shiftIndent(e,t,i){return i=i||1,r.ShiftCommand.shiftIndent(t,t.length+i,e.tabSize,e.indentSize,e.insertSpaces)}static unshiftIndent(e,t,i){return i=i||1,r.ShiftCommand.unshiftIndent(t,t.length+i,e.tabSize,e.indentSize,e.insertSpaces)}static _distributedPaste(e,t,i,n){let o=[];for(let e=0,t=i.length;e<t;e++)o[e]=new s.ReplaceCommand(i[e],n[e]);return new a.EditOperationResult(0,o,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _simplePaste(e,t,i,n,o){let r=[];for(let e=0,t=i.length;e<t;e++){let t=i[e],l=t.getPosition();if(o&&!t.isEmpty()&&(o=!1),o&&n.indexOf("\n")!==n.length-1&&(o=!1),o){let i=new d.Range(l.lineNumber,1,l.lineNumber,1);r[e]=new s.ReplaceCommandThatPreservesSelection(i,n,t,!0)}else r[e]=new s.ReplaceCommand(t,n)}return new a.EditOperationResult(0,r,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _distributePasteToCursors(e,t,i,n,s){if(n||1===t.length)return null;if(s&&s.length===t.length)return s;if("spread"===e.multiCursorPaste){10===i.charCodeAt(i.length-1)&&(i=i.substr(0,i.length-1)),13===i.charCodeAt(i.length-1)&&(i=i.substr(0,i.length-1));let e=o.splitLines(i);if(e.length===t.length)return e}return null}static paste(e,t,i,n,o,s){let r=this._distributePasteToCursors(e,i,n,o,s);return r?(i=i.sort(d.Range.compareRangesUsingStarts),this._distributedPaste(e,t,i,r)):this._simplePaste(e,t,i,n,o)}static _goodIndentForLine(e,t,i){let n=null,s="",r=(0,f.getInheritIndentForLine)(e.autoIndent,t,i,!1,e.languageConfigurationService);if(r)n=r.action,s=r.indentation;else if(i>1){let n;for(n=i-1;n>=1;n--){let e=t.getLineContent(n);if(o.lastNonWhitespaceIndex(e)>=0)break}if(n<1)return null;let r=t.getLineMaxColumn(n),l=(0,m.getEnterAction)(e.autoIndent,t,new d.Range(n,r,n,r),e.languageConfigurationService);l&&(s=l.indentation+l.appendText)}return(n&&(n===c.IndentAction.Indent&&(s=b.shiftIndent(e,s)),n===c.IndentAction.Outdent&&(s=b.unshiftIndent(e,s)),s=e.normalizeIndentation(s)),s)?s:null}static _replaceJumpToNextIndent(e,t,i,n){let o="",r=i.getStartPosition();if(e.insertSpaces){let i=e.visibleColumnFromColumn(t,r),n=e.indentSize,s=n-i%n;for(let e=0;e<s;e++)o+=" "}else o=" ";return new s.ReplaceCommand(i,o,n)}static tab(e,t,i){let n=[];for(let o=0,l=i.length;o<l;o++){let l=i[o];if(l.isEmpty()){let i=t.getLineContent(l.startLineNumber);if(/^\s*$/.test(i)&&t.tokenization.isCheapToTokenize(l.startLineNumber)){let r=this._goodIndentForLine(e,t,l.startLineNumber);r=r||" ";let a=e.normalizeIndentation(r);if(!i.startsWith(a)){n[o]=new s.ReplaceCommand(new d.Range(l.startLineNumber,1,l.startLineNumber,i.length+1),a,!0);continue}}n[o]=this._replaceJumpToNextIndent(e,t,l,!0)}else{if(l.startLineNumber===l.endLineNumber){let i=t.getLineMaxColumn(l.startLineNumber);if(1!==l.startColumn||l.endColumn!==i){n[o]=this._replaceJumpToNextIndent(e,t,l,!1);continue}}n[o]=new r.ShiftCommand(l,{isUnshift:!1,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent},e.languageConfigurationService)}}return n}static compositionType(e,t,i,n,o,s,r,l){let u=n.map(e=>this._compositionType(i,e,o,s,r,l));return new a.EditOperationResult(4,u,{shouldPushStackElementBefore:y(e,4),shouldPushStackElementAfter:!1})}static _compositionType(e,t,i,n,o,r){if(!t.isEmpty())return null;let l=t.getPosition(),a=Math.max(1,l.column-n),u=Math.min(e.getLineMaxColumn(l.lineNumber),l.column+o),h=new d.Range(l.lineNumber,a,l.lineNumber,u);return e.getValueInRange(h)===i&&0===r?null:new s.ReplaceCommandWithOffsetCursorState(h,i,0,r)}static _typeCommand(e,t,i){return i?new s.ReplaceCommandWithoutChangingPosition(e,t,!0):new s.ReplaceCommand(e,t,!0)}static _enter(e,t,i,n){if(0===e.autoIndent)return b._typeCommand(n,"\n",i);if(!t.tokenization.isCheapToTokenize(n.getStartPosition().lineNumber)||1===e.autoIndent){let s=t.getLineContent(n.startLineNumber),r=o.getLeadingWhitespace(s).substring(0,n.startColumn-1);return b._typeCommand(n,"\n"+e.normalizeIndentation(r),i)}let r=(0,m.getEnterAction)(e.autoIndent,t,n,e.languageConfigurationService);if(r){if(r.indentAction===c.IndentAction.None)return b._typeCommand(n,"\n"+e.normalizeIndentation(r.indentation+r.appendText),i);if(r.indentAction===c.IndentAction.Indent)return b._typeCommand(n,"\n"+e.normalizeIndentation(r.indentation+r.appendText),i);else if(r.indentAction===c.IndentAction.IndentOutdent){let t=e.normalizeIndentation(r.indentation),o=e.normalizeIndentation(r.indentation+r.appendText),l="\n"+o+"\n"+t;return i?new s.ReplaceCommandWithoutChangingPosition(n,l,!0):new s.ReplaceCommandWithOffsetCursorState(n,l,-1,o.length-t.length,!0)}else if(r.indentAction===c.IndentAction.Outdent){let t=b.unshiftIndent(e,r.indentation);return b._typeCommand(n,"\n"+e.normalizeIndentation(t+r.appendText),i)}}let l=t.getLineContent(n.startLineNumber),a=o.getLeadingWhitespace(l).substring(0,n.startColumn-1);if(e.autoIndent>=4){let r=(0,f.getIndentForEnter)(e.autoIndent,t,n,{unshiftIndent:t=>b.unshiftIndent(e,t),shiftIndent:t=>b.shiftIndent(e,t),normalizeIndentation:t=>e.normalizeIndentation(t)},e.languageConfigurationService);if(r){let l=e.visibleColumnFromColumn(t,n.getEndPosition()),a=n.endColumn,u=t.getLineContent(n.endLineNumber),d=o.firstNonWhitespaceIndex(u);if(n=d>=0?n.setEndPosition(n.endLineNumber,Math.max(n.endColumn,d+1)):n.setEndPosition(n.endLineNumber,t.getLineMaxColumn(n.endLineNumber)),i)return new s.ReplaceCommandWithoutChangingPosition(n,"\n"+e.normalizeIndentation(r.afterEnter),!0);{let t=0;return a<=d+1&&(!e.insertSpaces&&(l=Math.ceil(l/e.indentSize)),t=Math.min(l+1-e.normalizeIndentation(r.afterEnter).length-1,0)),new s.ReplaceCommandWithOffsetCursorState(n,"\n"+e.normalizeIndentation(r.afterEnter),0,t,!0)}}}return b._typeCommand(n,"\n"+e.normalizeIndentation(a),i)}static _isAutoIndentType(e,t,i){if(e.autoIndent<4)return!1;for(let e=0,n=i.length;e<n;e++)if(!t.tokenization.isCheapToTokenize(i[e].getEndPosition().lineNumber))return!1;return!0}static _runAutoIndentType(e,t,i,n){let o=(0,p.getIndentationAtPosition)(t,i.startLineNumber,i.startColumn),s=(0,f.getIndentActionForType)(e.autoIndent,t,i,n,{shiftIndent:t=>b.shiftIndent(e,t),unshiftIndent:t=>b.unshiftIndent(e,t)},e.languageConfigurationService);if(null===s)return null;if(s!==e.normalizeIndentation(o)){let o=t.getLineFirstNonWhitespaceColumn(i.startLineNumber);return 0===o?b._typeCommand(new d.Range(i.startLineNumber,1,i.endLineNumber,i.endColumn),e.normalizeIndentation(s)+n,!1):b._typeCommand(new d.Range(i.startLineNumber,1,i.endLineNumber,i.endColumn),e.normalizeIndentation(s)+t.getLineContent(i.startLineNumber).substring(o-1,i.startColumn-1)+n,!1)}return null}static _isAutoClosingOvertype(e,t,i,n,o){if("never"===e.autoClosingOvertype||!e.autoClosingPairs.autoClosingPairsCloseSingleChar.has(o))return!1;for(let s=0,r=i.length;s<r;s++){let r=i[s];if(!r.isEmpty())return!1;let l=r.getPosition(),u=t.getLineContent(l.lineNumber);if(u.charAt(l.column-1)!==o)return!1;let d=(0,a.isQuote)(o);if(92===(l.column>2?u.charCodeAt(l.column-2):0)&&d)return!1;if("auto"===e.autoClosingOvertype){let e=!1;for(let t=0,i=n.length;t<i;t++){let i=n[t];if(l.lineNumber===i.startLineNumber&&l.column===i.startColumn){e=!0;break}}if(!e)return!1}}return!0}static _runAutoClosingOvertype(e,t,i,n,o){let r=[];for(let e=0,t=n.length;e<t;e++){let t=n[e].getPosition(),i=new d.Range(t.lineNumber,t.column,t.lineNumber,t.column+1);r[e]=new s.ReplaceCommand(i,o)}return new a.EditOperationResult(4,r,{shouldPushStackElementBefore:y(e,4),shouldPushStackElementAfter:!1})}static _isBeforeClosingBrace(e,t){let i=t.charAt(0),n=e.autoClosingPairs.autoClosingPairsOpenByStart.get(i)||[],o=e.autoClosingPairs.autoClosingPairsCloseByStart.get(i)||[],s=n.some(e=>t.startsWith(e.open)),r=o.some(e=>t.startsWith(e.close));return!s&&r}static _findAutoClosingPairOpen(e,t,i,n){let o=e.autoClosingPairs.autoClosingPairsOpenByEnd.get(n);if(!o)return null;let s=null;for(let e of o)if(null===s||e.open.length>s.open.length){let o=!0;for(let s of i)if(t.getValueInRange(new d.Range(s.lineNumber,s.column-e.open.length+1,s.lineNumber,s.column))+n!==e.open){o=!1;break}o&&(s=e)}return s}static _findContainedAutoClosingPair(e,t){if(t.open.length<=1)return null;let i=t.close.charAt(t.close.length-1),n=e.autoClosingPairs.autoClosingPairsCloseByEnd.get(i)||[],o=null;for(let e of n)e.open!==t.open&&t.open.includes(e.open)&&t.close.endsWith(e.close)&&(!o||e.open.length>o.open.length)&&(o=e);return o}static _getAutoClosingPairClose(e,t,i,n,o){let s=(0,a.isQuote)(n),r=s?e.autoClosingQuotes:e.autoClosingBrackets,l=s?e.shouldAutoCloseBefore.quote:e.shouldAutoCloseBefore.bracket;if("never"===r)return null;for(let e of i)if(!e.isEmpty())return null;let d=i.map(e=>{let t=e.getPosition();return o?{lineNumber:t.lineNumber,beforeColumn:t.column-n.length,afterColumn:t.column}:{lineNumber:t.lineNumber,beforeColumn:t.column,afterColumn:t.column}}),c=this._findAutoClosingPairOpen(e,t,d.map(e=>new h.Position(e.lineNumber,e.beforeColumn)),n);if(!c)return null;let p=this._findContainedAutoClosingPair(e,c),f=p?p.close:"",m=!0;for(let i of d){let{lineNumber:o,beforeColumn:s,afterColumn:a}=i,d=t.getLineContent(o),h=d.substring(0,s-1),p=d.substring(a-1);if(!p.startsWith(f)&&(m=!1),p.length>0){let t=p.charAt(0);if(!b._isBeforeClosingBrace(e,p)&&!l(t))return null}if(1===c.open.length&&("'"===n||'"'===n)&&"always"!==r){let t=(0,u.getMapForWordSeparators)(e.wordSeparators);if(h.length>0){let e=h.charCodeAt(h.length-1);if(0===t.get(e))return null}}if(!t.tokenization.isCheapToTokenize(o))return null;t.tokenization.forceTokenization(o);let _=t.tokenization.getLineTokens(o),v=(0,g.createScopedLineTokens)(_,s-1);if(!c.shouldAutoClose(v,s-v.firstCharOffset))return null;let C=c.findNeutralCharacter();if(C){let e=t.tokenization.getTokenTypeIfInsertingCharacter(o,s,C);if(!c.isOK(e))return null}}return m?c.close.substring(0,c.close.length-f.length):c.close}static _runAutoClosingOpenCharType(e,t,i,n,o,s,r){let l=[];for(let e=0,t=n.length;e<t;e++){let t=n[e];l[e]=new _(t,o,!s,r)}return new a.EditOperationResult(4,l,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}static _shouldSurroundChar(e,t){return(0,a.isQuote)(t)?"quotes"===e.autoSurround||"languageDefined"===e.autoSurround:"brackets"===e.autoSurround||"languageDefined"===e.autoSurround}static _isSurroundSelectionType(e,t,i,n){if(!b._shouldSurroundChar(e,n)||!e.surroundingPairs.hasOwnProperty(n))return!1;let o=(0,a.isQuote)(n);for(let e of i){if(e.isEmpty())return!1;let i=!0;for(let n=e.startLineNumber;n<=e.endLineNumber;n++){let o=t.getLineContent(n),s=n===e.startLineNumber?e.startColumn-1:0,r=n===e.endLineNumber?e.endColumn-1:o.length,l=o.substring(s,r);if(/[^ \t]/.test(l)){i=!1;break}}if(i)return!1;if(o&&e.startLineNumber===e.endLineNumber&&e.startColumn+1===e.endColumn){let i=t.getValueInRange(e);if((0,a.isQuote)(i))return!1}}return!0}static _runSurroundSelectionType(e,t,i,n,o){let s=[];for(let e=0,i=n.length;e<i;e++){let i=n[e],r=t.surroundingPairs[o];s[e]=new l.SurroundSelectionCommand(i,o,r)}return new a.EditOperationResult(0,s,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _isTypeInterceptorElectricChar(e,t,i){return!!(1===i.length&&t.tokenization.isCheapToTokenize(i[0].getEndPosition().lineNumber))||!1}static _typeInterceptorElectricChar(e,t,i,r,l){let u;if(!t.electricChars.hasOwnProperty(l)||!r.isEmpty())return null;let h=r.getPosition();i.tokenization.forceTokenization(h.lineNumber);let c=i.tokenization.getLineTokens(h.lineNumber);try{u=t.onElectricCharacter(l,c,h.column)}catch(e){return(0,n.onUnexpectedError)(e),null}if(!u)return null;if(u.matchOpenBracket){let n=(c.getLineContent()+l).lastIndexOf(u.matchOpenBracket)+1,r=i.bracketPairs.findMatchingBracketUp(u.matchOpenBracket,{lineNumber:h.lineNumber,column:n},500);if(r){if(r.startLineNumber===h.lineNumber)return null;let n=i.getLineContent(r.startLineNumber),u=o.getLeadingWhitespace(n),c=t.normalizeIndentation(u),p=i.getLineContent(h.lineNumber),g=i.getLineFirstNonWhitespaceColumn(h.lineNumber)||h.column,f=c+p.substring(g-1,h.column-1)+l,m=new d.Range(h.lineNumber,1,h.lineNumber,h.column),b=new s.ReplaceCommand(m,f);return new a.EditOperationResult(C(f,e),[b],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!0})}}return null}static compositionEndWithInterceptors(e,t,i,n,o,r){if(!n)return null;let u=null;for(let e of n)if(null===u)u=e.insertedText;else if(u!==e.insertedText)return null;if(!u||1!==u.length)return null;let h=u,c=!1;for(let e of n)if(0!==e.deletedText.length){c=!0;break}if(c){if(!b._shouldSurroundChar(t,h)||!t.surroundingPairs.hasOwnProperty(h))return null;let e=(0,a.isQuote)(h);for(let t of n)if(0!==t.deletedSelectionStart||t.deletedSelectionEnd!==t.deletedText.length||/^[ \t]+$/.test(t.deletedText)||e&&(0,a.isQuote)(t.deletedText))return null;let i=[];for(let e of o){if(!e.isEmpty())return null;i.push(e.getPosition())}if(i.length!==n.length)return null;let s=[];for(let e=0,t=i.length;e<t;e++)s.push(new l.CompositionSurroundSelectionCommand(i[e],n[e].deletedText,h));return new a.EditOperationResult(4,s,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(this._isAutoClosingOvertype(t,i,o,r,h)){let e=o.map(e=>new s.ReplaceCommand(new d.Range(e.positionLineNumber,e.positionColumn,e.positionLineNumber,e.positionColumn+1),"",!1));return new a.EditOperationResult(4,e,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}let p=this._getAutoClosingPairClose(t,i,o,h,!0);return null!==p?this._runAutoClosingOpenCharType(e,t,i,o,h,!0,p):null}static typeWithInterceptors(e,t,i,n,o,r,l){if(!e&&"\n"===l){let e=[];for(let t=0,s=o.length;t<s;t++)e[t]=b._enter(i,n,!1,o[t]);return new a.EditOperationResult(4,e,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(!e&&this._isAutoIndentType(i,n,o)){let e=[],t=!1;for(let s=0,r=o.length;s<r;s++)if(e[s]=this._runAutoIndentType(i,n,o[s],l),!e[s]){t=!0;break}if(!t)return new a.EditOperationResult(4,e,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(this._isAutoClosingOvertype(i,n,o,r,l))return this._runAutoClosingOvertype(t,i,n,o,l);if(!e){let e=this._getAutoClosingPairClose(i,n,o,l,!1);if(e)return this._runAutoClosingOpenCharType(t,i,n,o,l,!1,e)}if(!e&&this._isSurroundSelectionType(i,n,o,l))return this._runSurroundSelectionType(t,i,n,o,l);if(!e&&this._isTypeInterceptorElectricChar(i,n,o)){let e=this._typeInterceptorElectricChar(t,i,n,o[0],l);if(e)return e}let u=[];for(let e=0,t=o.length;e<t;e++)u[e]=new s.ReplaceCommand(o[e],l);let d=C(l,t);return new a.EditOperationResult(d,u,{shouldPushStackElementBefore:y(t,d),shouldPushStackElementAfter:!1})}static typeWithoutInterceptors(e,t,i,n,o){let r=[];for(let e=0,t=n.length;e<t;e++)r[e]=new s.ReplaceCommand(n[e],o);let l=C(o,e);return new a.EditOperationResult(l,r,{shouldPushStackElementBefore:y(e,l),shouldPushStackElementAfter:!1})}static lineInsertBefore(e,t,i){if(null===t||null===i)return[];let n=[];for(let o=0,r=i.length;o<r;o++){let r=i[o].positionLineNumber;if(1===r)n[o]=new s.ReplaceCommandWithoutChangingPosition(new d.Range(1,1,1,1),"\n");else{r--;let i=t.getLineMaxColumn(r);n[o]=this._enter(e,t,!1,new d.Range(r,i,r,i))}}return n}static lineInsertAfter(e,t,i){if(null===t||null===i)return[];let n=[];for(let o=0,s=i.length;o<s;o++){let s=i[o].positionLineNumber,r=t.getLineMaxColumn(s);n[o]=this._enter(e,t,!1,new d.Range(s,r,s,r))}return n}static lineBreakInsert(e,t,i){let n=[];for(let o=0,s=i.length;o<s;o++)n[o]=this._enter(e,t,!0,i[o]);return n}}class _ extends s.ReplaceCommandWithOffsetCursorState{constructor(e,t,i,n){super(e,(i?t:"")+n,0,-n.length),this._openCharacter=t,this._closeCharacter=n,this.closeCharacterRange=null,this.enclosingRange=null}computeCursorState(e,t){let i=t.getInverseEditOperations()[0].range;return this.closeCharacterRange=new d.Range(i.startLineNumber,i.endColumn-this._closeCharacter.length,i.endLineNumber,i.endColumn),this.enclosingRange=new d.Range(i.startLineNumber,i.endColumn-this._openCharacter.length-this._closeCharacter.length,i.endLineNumber,i.endColumn),super.computeCursorState(e,t)}}class v{constructor(e,t,i,n,o,s){this.deletedText=e,this.deletedSelectionStart=t,this.deletedSelectionEnd=i,this.insertedText=n,this.insertedSelectionStart=o,this.insertedSelectionEnd=s}}function C(e,t){return" "===e?5===t||6===t?6:5:4}function y(e,t){return!!k(e)&&!k(t)||5!==e&&w(e)!==w(t)}function w(e){return 6===e||5===e?"space":e}function k(e){return 4===e||5===e||6===e}},431468:function(e,t,i){"use strict";i.r(t),i.d(t,{BracketElectricCharacterSupport:function(){return r}});var n=i("603868"),o=i("965633"),s=i("223865");class r{constructor(e){this._richEditBrackets=e}getElectricCharacters(){let e=[];if(this._richEditBrackets)for(let t of this._richEditBrackets.brackets)for(let i of t.close){let t=i.charAt(i.length-1);e.push(t)}return(0,n.distinct)(e)}onElectricCharacter(e,t,i){if(!this._richEditBrackets||0===this._richEditBrackets.brackets.length)return null;let n=t.findTokenIndexAtOffset(i-1);if((0,o.ignoreBracketsInToken)(t.getStandardTokenType(n)))return null;let r=this._richEditBrackets.reversedRegex,l=t.getLineContent().substring(0,i-1)+e,a=s.BracketsUtils.findPrevBracketInRange(r,1,l,0,l.length);if(!a)return null;let u=l.substring(a.startColumn-1,a.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[u])return null;let d=t.getActualLineContentBefore(a.startColumn-1);return/^\s*$/.test(d)?{matchOpenBracket:u}:null}}},617291:function(e,t,i){"use strict";i.r(t),i.d(t,{tokenizeLineToHTML:function(){return u},tokenizeToString:function(){return a}});var n=i("266763"),o=i("815776"),s=i("274854"),r=i("143972");let l={getInitialState:()=>r.NullState,tokenizeEncoded:(e,t,i)=>(0,r.nullTokenizeEncoded)(0,i)};function a(e,t,i){var n,o,r,a;return n=this,o=void 0,r=void 0,a=function*(){if(!i)return d(t,e.languageIdCodec,l);let n=yield s.TokenizationRegistry.getOrCreate(i);return d(t,e.languageIdCodec,n||l)},new(r||(r=Promise))(function(e,t){function i(e){try{l(a.next(e))}catch(e){t(e)}}function s(e){try{l(a.throw(e))}catch(e){t(e)}}function l(t){var n;t.done?e(t.value):((n=t.value)instanceof r?n:new r(function(e){e(n)})).then(i,s)}l((a=a.apply(n,o||[])).next())})}function u(e,t,i,n,o,s,r){let l="<div>",a=n,u=0,d=!0;for(let h=0,c=t.getCount();h<c;h++){let c=t.getEndOffset(h);if(c<=n)continue;let p="";for(;a<c&&a<o;a++){let t=e.charCodeAt(a);switch(t){case 9:{let e=s-(a+u)%s;for(u+=e-1;e>0;)r&&d?(p+=" ",d=!1):(p+=" ",d=!0),e--;break}case 60:p+="<",d=!1;break;case 62:p+=">",d=!1;break;case 38:p+="&",d=!1;break;case 0:p+="�",d=!1;break;case 65279:case 8232:case 8233:case 133:p+="\uFFFD",d=!1;break;case 13:p+="​",d=!1;break;case 32:r&&d?(p+=" ",d=!1):(p+=" ",d=!0);break;default:p+=String.fromCharCode(t),d=!1}}if(l+=`<span style="${t.getInlineStyle(h,i)}">${p}</span>`,c>o||a>=o)break}return l+="</div>"}function d(e,t,i){let s='<div class="monaco-tokenized-source">',r=n.splitLines(e),l=i.getInitialState();for(let e=0,a=r.length;e<a;e++){let a=r[e];e>0&&(s+="<br/>");let u=i.tokenizeEncoded(a,!0,l);o.LineTokens.convertToEndOffset(u.tokens,a.length);let d=new o.LineTokens(u.tokens,a,t).inflate(),h=0;for(let e=0,t=d.getCount();e<t;e++){let t=d.getClassName(e),i=d.getEndOffset(e);s+=`<span class="${t}">${n.escape(a.substring(h,i))}</span>`,h=i}l=u.endState}return s+="</div>"}},669131:function(e,t,i){"use strict";i.r(t),i.d(t,{PieceTreeBase:function(){return m},StringBuffer:function(){return p},createLineStarts:function(){return h},createLineStartsFast:function(){return d}});var n=i("457938"),o=i("761045"),s=i("63681"),r=i("231802"),l=i("783968");function a(e){let t;return(t=e[e.length-1]<65536?new Uint16Array(e.length):new Uint32Array(e.length)).set(e,0),t}class u{constructor(e,t,i,n,o){this.lineStarts=e,this.cr=t,this.lf=i,this.crlf=n,this.isBasicASCII=o}}function d(e,t=!0){let i=[0],n=1;for(let t=0,o=e.length;t<o;t++){let s=e.charCodeAt(t);13===s?t+1<o&&10===e.charCodeAt(t+1)?(i[n++]=t+2,t++):i[n++]=t+1:10===s&&(i[n++]=t+1)}return t?a(i):i}function h(e,t){e.length=0,e[0]=0;let i=1,n=0,o=0,s=0,r=!0;for(let l=0,a=t.length;l<a;l++){let u=t.charCodeAt(l);13===u?l+1<a&&10===t.charCodeAt(l+1)?(s++,e[i++]=l+2,l++):(n++,e[i++]=l+1):10===u?(o++,e[i++]=l+1):r&&9!==u&&(u<32||u>126)&&(r=!1)}let l=new u(a(e),n,o,s,r);return e.length=0,l}class c{constructor(e,t,i,n,o){this.bufferIndex=e,this.start=t,this.end=i,this.lineFeedCnt=n,this.length=o}}class p{constructor(e,t){this.buffer=e,this.lineStarts=t}}class g{constructor(e,t){this._pieces=[],this._tree=e,this._BOM=t,this._index=0,e.root!==r.SENTINEL&&e.iterate(e.root,e=>(e!==r.SENTINEL&&this._pieces.push(e.piece),!0))}read(){if(0===this._pieces.length)return 0===this._index?(this._index++,this._BOM):null;return this._index>this._pieces.length-1?null:0===this._index?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])}}class f{constructor(e){this._limit=e,this._cache=[]}get(e){for(let t=this._cache.length-1;t>=0;t--){let i=this._cache[t];if(i.nodeStartOffset<=e&&i.nodeStartOffset+i.node.piece.length>=e)return i}return null}get2(e){for(let t=this._cache.length-1;t>=0;t--){let i=this._cache[t];if(i.nodeStartLineNumber&&i.nodeStartLineNumber<e&&i.nodeStartLineNumber+i.node.piece.lineFeedCnt>=e)return i}return null}set(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)}validate(e){let t=!1,i=this._cache;for(let n=0;n<i.length;n++){let o=i[n];if(null===o.node.parent||o.nodeStartOffset>=e){i[n]=null,t=!0;continue}}if(t){let e=[];for(let t of i)null!==t&&e.push(t);this._cache=e}}}class m{constructor(e,t,i){this.create(e,t,i)}create(e,t,i){this._buffers=[new p("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=r.SENTINEL,this._lineCnt=1,this._length=0,this._EOL=t,this._EOLLength=t.length,this._EOLNormalized=i;let n=null;for(let t=0,i=e.length;t<i;t++)if(e[t].buffer.length>0){!e[t].lineStarts&&(e[t].lineStarts=d(e[t].buffer));let i=new c(t+1,{line:0,column:0},{line:e[t].lineStarts.length-1,column:e[t].buffer.length-e[t].lineStarts[e[t].lineStarts.length-1]},e[t].lineStarts.length-1,e[t].buffer.length);this._buffers.push(e[t]),n=this.rbInsertRight(n,i)}this._searchCache=new f(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}normalizeEOL(e){let t=65535-Math.floor(21845),i=2*t,n="",o=0,s=[];if(this.iterate(this.root,r=>{let l=this.getNodeContent(r),a=l.length;if(o<=t||o+a<i)return n+=l,o+=a,!0;let u=n.replace(/\r\n|\r|\n/g,e);return s.push(new p(u,d(u))),n=l,o=a,!0}),o>0){let t=n.replace(/\r\n|\r|\n/g,e);s.push(new p(t,d(t)))}this.create(s,e,!0)}getEOL(){return this._EOL}setEOL(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)}createSnapshot(e){return new g(this,e)}getOffsetAt(e,t){let i=0,n=this.root;for(;n!==r.SENTINEL;)if(n.left!==r.SENTINEL&&n.lf_left+1>=e)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt+1>=e)return i+=n.size_left,i+(this.getAccumulatedValue(n,e-n.lf_left-2)+t-1);e-=n.lf_left+n.piece.lineFeedCnt,i+=n.size_left+n.piece.length,n=n.right}return i}getPositionAt(e){e=Math.max(0,e=Math.floor(e));let t=this.root,i=0,o=e;for(;t!==r.SENTINEL;)if(0!==t.size_left&&t.size_left>=e)t=t.left;else if(t.size_left+t.piece.length>=e){let s=this.getIndexOf(t,e-t.size_left);if(i+=t.lf_left+s.index,0===s.index){let e=o-this.getOffsetAt(i+1,1);return new n.Position(i+1,e+1)}return new n.Position(i+1,s.remainder+1)}else{if(e-=t.size_left+t.piece.length,i+=t.lf_left+t.piece.lineFeedCnt,t.right===r.SENTINEL){let t=this.getOffsetAt(i+1,1),s=o-e-t;return new n.Position(i+1,s+1)}t=t.right}return new n.Position(1,1)}getValueInRange(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";let i=this.nodeAt2(e.startLineNumber,e.startColumn),n=this.nodeAt2(e.endLineNumber,e.endColumn),o=this.getValueInRange2(i,n);if(t)return t===this._EOL&&this._EOLNormalized?t===this.getEOL()&&this._EOLNormalized?o:o.replace(/\r\n|\r|\n/g,t):o.replace(/\r\n|\r|\n/g,t);return o}getValueInRange2(e,t){if(e.node===t.node){let i=e.node,n=this._buffers[i.piece.bufferIndex].buffer,o=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return n.substring(o+e.remainder,o+t.remainder)}let i=e.node,n=this._buffers[i.piece.bufferIndex].buffer,o=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start),s=n.substring(o+e.remainder,o+i.piece.length);for(i=i.next();i!==r.SENTINEL;){let e=this._buffers[i.piece.bufferIndex].buffer,n=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);if(i===t.node){s+=e.substring(n,n+t.remainder);break}s+=e.substr(n,i.piece.length);i=i.next()}return s}getLinesContent(){let e=[],t=0,i="",n=!1;return this.iterate(this.root,o=>{if(o===r.SENTINEL)return!0;let s=o.piece,l=s.length;if(0===l)return!0;let a=this._buffers[s.bufferIndex].buffer,u=this._buffers[s.bufferIndex].lineStarts,d=s.start.line,h=s.end.line,c=u[d]+s.start.column;if(n&&(10===a.charCodeAt(c)&&(c++,l--),e[t++]=i,i="",n=!1,0===l))return!0;if(d===h)return this._EOLNormalized||13!==a.charCodeAt(c+l-1)?i+=a.substr(c,l):(n=!0,i+=a.substr(c,l-1)),!0;i+=this._EOLNormalized?a.substring(c,Math.max(c,u[d+1]-this._EOLLength)):a.substring(c,u[d+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=i;for(let n=d+1;n<h;n++)i=this._EOLNormalized?a.substring(u[n],u[n+1]-this._EOLLength):a.substring(u[n],u[n+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=i;return this._EOLNormalized||13!==a.charCodeAt(u[h]+s.end.column-1)?i=a.substr(u[h],s.end.column):(n=!0,0===s.end.column?t--:i=a.substr(u[h],s.end.column-1)),!0}),n&&(e[t++]=i,i=""),e[t++]=i,e}getLength(){return this._length}getLineCount(){return this._lineCnt}getLineContent(e){return this._lastVisitedLine.lineNumber===e?this._lastVisitedLine.value:(this._lastVisitedLine.lineNumber=e,e===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(e):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(e,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(e).replace(/(\r\n|\r|\n)$/,""),this._lastVisitedLine.value)}_getCharCode(e){if(e.remainder===e.node.piece.length){let t=e.node.next();if(!t)return 0;let i=this._buffers[t.piece.bufferIndex],n=this.offsetInBuffer(t.piece.bufferIndex,t.piece.start);return i.buffer.charCodeAt(n)}{let t=this._buffers[e.node.piece.bufferIndex],i=this.offsetInBuffer(e.node.piece.bufferIndex,e.node.piece.start)+e.remainder;return t.buffer.charCodeAt(i)}}getLineCharCode(e,t){let i=this.nodeAt2(e,t+1);return this._getCharCode(i)}getLineLength(e){if(e===this.getLineCount()){let t=this.getOffsetAt(e,1);return this.getLength()-t}return this.getOffsetAt(e+1,1)-this.getOffsetAt(e,1)-this._EOLLength}findMatchesInNode(e,t,i,n,s,r,a,u,d,h,c){let p,g,f;let m=this._buffers[e.piece.bufferIndex],b=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start),_=this.offsetInBuffer(e.piece.bufferIndex,s),v=this.offsetInBuffer(e.piece.bufferIndex,r),C={line:0,column:0};t._wordSeparators?(g=m.buffer.substring(_,v),f=e=>e+_,t.reset(0)):(g=m.buffer,f=e=>e,t.reset(_));do if(p=t.next(g)){if(f(p.index)>=v)return h;this.positionInBuffer(e,f(p.index)-b,C);let t=this.getLineFeedCnt(e.piece.bufferIndex,s,C),r=C.line===s.line?C.column-s.column+n:C.column+1,a=r+p[0].length;if(c[h++]=(0,l.createFindMatch)(new o.Range(i+t,r,i+t,a),p,u),f(p.index)+p[0].length>=v)return h;if(h>=d)break}while(p);return h}findMatchesLineByLine(e,t,i,n){let o=[],s=0,r=new l.Searcher(t.wordSeparators,t.regex),a=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===a)return[];let u=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===u)return[];let d=this.positionInBuffer(a.node,a.remainder),h=this.positionInBuffer(u.node,u.remainder);if(a.node===u.node)return this.findMatchesInNode(a.node,r,e.startLineNumber,e.startColumn,d,h,t,i,n,s,o),o;let c=e.startLineNumber,p=a.node;for(;p!==u.node;){let l=this.getLineFeedCnt(p.piece.bufferIndex,d,p.piece.end);if(l>=1){let a=this._buffers[p.piece.bufferIndex].lineStarts,u=this.offsetInBuffer(p.piece.bufferIndex,p.piece.start),h=a[d.line+l],g=c===e.startLineNumber?e.startColumn:1;if((s=this.findMatchesInNode(p,r,c,g,d,this.positionInBuffer(p,h-u),t,i,n,s,o))>=n)return o;c+=l}let u=c===e.startLineNumber?e.startColumn-1:0;if(c===e.endLineNumber){let l=this.getLineContent(c).substring(u,e.endColumn-1);return s=this._findMatchesInLine(t,r,l,e.endLineNumber,u,s,o,i,n),o}if((s=this._findMatchesInLine(t,r,this.getLineContent(c).substr(u),c,u,s,o,i,n))>=n)return o;c++,p=(a=this.nodeAt2(c,1)).node,d=this.positionInBuffer(a.node,a.remainder)}if(c===e.endLineNumber){let l=c===e.startLineNumber?e.startColumn-1:0,a=this.getLineContent(c).substring(l,e.endColumn-1);return s=this._findMatchesInLine(t,r,a,e.endLineNumber,l,s,o,i,n),o}let g=c===e.startLineNumber?e.startColumn:1;return s=this.findMatchesInNode(u.node,r,c,g,d,h,t,i,n,s,o),o}_findMatchesInLine(e,t,i,n,r,a,u,d,h){let c;let p=e.wordSeparators;if(!d&&e.simpleSearch){let t=e.simpleSearch,d=t.length,c=i.length,g=-d;for(;-1!==(g=i.indexOf(t,g+d))&&(!(!p||(0,l.isValidMatch)(p,i,c,g,d))||(u[a++]=new s.FindMatch(new o.Range(n,g+1+r,n,g+1+d+r),null),!(a>=h))););return a}t.reset(0);do if((c=t.next(i))&&(u[a++]=(0,l.createFindMatch)(new o.Range(n,c.index+1+r,n,c.index+1+c[0].length+r),c,d),a>=h))break;while(c);return a}insert(e,t,i=!1){if(this._EOLNormalized=this._EOLNormalized&&i,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==r.SENTINEL){let{node:i,remainder:n,nodeStartOffset:o}=this.nodeAt(e),s=i.piece,r=s.bufferIndex,l=this.positionInBuffer(i,n);if(0===i.piece.bufferIndex&&s.end.line===this._lastChangeBufferPos.line&&s.end.column===this._lastChangeBufferPos.column&&o+s.length===e&&t.length<65535){this.appendToNode(i,t),this.computeBufferMetadata();return}if(o===e)this.insertContentToNodeLeft(t,i),this._searchCache.validate(e);else if(o+i.piece.length>e){let e=[],o=new c(s.bufferIndex,l,s.end,this.getLineFeedCnt(s.bufferIndex,l,s.end),this.offsetInBuffer(r,s.end)-this.offsetInBuffer(r,l));if(this.shouldCheckCRLF()&&this.endWithCR(t)&&10===this.nodeCharCodeAt(i,n)){let e={line:o.start.line+1,column:0};o=new c(o.bufferIndex,e,o.end,this.getLineFeedCnt(o.bufferIndex,e,o.end),o.length-1),t+="\n"}if(this.shouldCheckCRLF()&&this.startWithLF(t)){if(13===this.nodeCharCodeAt(i,n-1)){let o=this.positionInBuffer(i,n-1);this.deleteNodeTail(i,o),t="\r"+t,0===i.piece.length&&e.push(i)}else this.deleteNodeTail(i,l)}else this.deleteNodeTail(i,l);let a=this.createNewPieces(t);o.length>0&&this.rbInsertRight(i,o);let u=i;for(let e=0;e<a.length;e++)u=this.rbInsertRight(u,a[e]);this.deleteNodes(e)}else this.insertContentToNodeRight(t,i)}else{let e=this.createNewPieces(t),i=this.rbInsertLeft(null,e[0]);for(let t=1;t<e.length;t++)i=this.rbInsertRight(i,e[t])}this.computeBufferMetadata()}delete(e,t){if(this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",t<=0||this.root===r.SENTINEL)return;let i=this.nodeAt(e),n=this.nodeAt(e+t),o=i.node,s=n.node;if(o===s){let s=this.positionInBuffer(o,i.remainder),l=this.positionInBuffer(o,n.remainder);if(i.nodeStartOffset===e){if(t===o.piece.length){let e=o.next();(0,r.rbDelete)(this,o),this.validateCRLFWithPrevNode(e),this.computeBufferMetadata();return}this.deleteNodeHead(o,l),this._searchCache.validate(e),this.validateCRLFWithPrevNode(o),this.computeBufferMetadata();return}if(i.nodeStartOffset+o.piece.length===e+t){this.deleteNodeTail(o,s),this.validateCRLFWithNextNode(o),this.computeBufferMetadata();return}this.shrinkNode(o,s,l),this.computeBufferMetadata();return}let l=[],a=this.positionInBuffer(o,i.remainder);this.deleteNodeTail(o,a),this._searchCache.validate(e),0===o.piece.length&&l.push(o);let u=this.positionInBuffer(s,n.remainder);this.deleteNodeHead(s,u),0===s.piece.length&&l.push(s);let d=o.next();for(let e=d;e!==r.SENTINEL&&e!==s;e=e.next())l.push(e);let h=0===o.piece.length?o.prev():o;this.deleteNodes(l),this.validateCRLFWithNextNode(h),this.computeBufferMetadata()}insertContentToNodeLeft(e,t){let i=[];if(this.shouldCheckCRLF()&&this.endWithCR(e)&&this.startWithLF(t)){let n=t.piece,o={line:n.start.line+1,column:0},s=new c(n.bufferIndex,o,n.end,this.getLineFeedCnt(n.bufferIndex,o,n.end),n.length-1);t.piece=s,e+="\n",(0,r.updateTreeMetadata)(this,t,-1,-1),0===t.piece.length&&i.push(t)}let n=this.createNewPieces(e),o=this.rbInsertLeft(t,n[n.length-1]);for(let e=n.length-2;e>=0;e--)o=this.rbInsertLeft(o,n[e]);this.validateCRLFWithPrevNode(o),this.deleteNodes(i)}insertContentToNodeRight(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+="\n");let i=this.createNewPieces(e),n=this.rbInsertRight(t,i[0]),o=n;for(let e=1;e<i.length;e++)o=this.rbInsertRight(o,i[e]);this.validateCRLFWithPrevNode(n)}positionInBuffer(e,t,i){let n=e.piece,o=e.piece.bufferIndex,s=this._buffers[o].lineStarts,r=s[n.start.line]+n.start.column+t,l=n.start.line,a=n.end.line,u=0,d=0,h=0;for(;l<=a&&(h=s[u=l+(a-l)/2|0],u!==a);){;if(d=s[u+1],r<h)a=u-1;else if(r>=d)l=u+1;else break}return i?(i.line=u,i.column=r-h,null):{line:u,column:r-h}}getLineFeedCnt(e,t,i){if(0===i.column)return i.line-t.line;let n=this._buffers[e].lineStarts;if(i.line===n.length-1)return i.line-t.line;let o=n[i.line+1],s=n[i.line]+i.column;return o>s+1?i.line-t.line:13===this._buffers[e].buffer.charCodeAt(s-1)?i.line-t.line+1:i.line-t.line}offsetInBuffer(e,t){return this._buffers[e].lineStarts[t.line]+t.column}deleteNodes(e){for(let t=0;t<e.length;t++)(0,r.rbDelete)(this,e[t])}createNewPieces(e){if(e.length>65535){let t=[];for(;e.length>65535;){let i;let n=e.charCodeAt(65534);13===n||n>=55296&&n<=56319?(i=e.substring(0,65534),e=e.substring(65534)):(i=e.substring(0,65535),e=e.substring(65535));let o=d(i);t.push(new c(this._buffers.length,{line:0,column:0},{line:o.length-1,column:i.length-o[o.length-1]},o.length-1,i.length)),this._buffers.push(new p(i,o))}let i=d(e);return t.push(new c(this._buffers.length,{line:0,column:0},{line:i.length-1,column:e.length-i[i.length-1]},i.length-1,e.length)),this._buffers.push(new p(e,i)),t}let t=this._buffers[0].buffer.length,i=d(e,!1),n=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===t&&0!==t&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},n=this._lastChangeBufferPos;for(let e=0;e<i.length;e++)i[e]+=t+1;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(i.slice(1)),this._buffers[0].buffer+="_"+e,t+=1}else{if(0!==t)for(let e=0;e<i.length;e++)i[e]+=t;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(i.slice(1)),this._buffers[0].buffer+=e}let o=this._buffers[0].buffer.length,s=this._buffers[0].lineStarts.length-1,r=o-this._buffers[0].lineStarts[s],l={line:s,column:r},a=new c(0,n,l,this.getLineFeedCnt(0,n,l),o-t);return this._lastChangeBufferPos=l,[a]}getLineRawContent(e,t=0){let i=this.root,n="",o=this._searchCache.get2(e);if(o){i=o.node;let s=this.getAccumulatedValue(i,e-o.nodeStartLineNumber-1),r=this._buffers[i.piece.bufferIndex].buffer,l=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);if(o.nodeStartLineNumber+i.piece.lineFeedCnt===e)n=r.substring(l+s,l+i.piece.length);else{let n=this.getAccumulatedValue(i,e-o.nodeStartLineNumber);return r.substring(l+s,l+n-t)}}else{let o=0,s=e;for(;i!==r.SENTINEL;)if(i.left!==r.SENTINEL&&i.lf_left>=e-1)i=i.left;else if(i.lf_left+i.piece.lineFeedCnt>e-1){let n=this.getAccumulatedValue(i,e-i.lf_left-2),r=this.getAccumulatedValue(i,e-i.lf_left-1),l=this._buffers[i.piece.bufferIndex].buffer,a=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return o+=i.size_left,this._searchCache.set({node:i,nodeStartOffset:o,nodeStartLineNumber:s-(e-1-i.lf_left)}),l.substring(a+n,a+r-t)}else if(i.lf_left+i.piece.lineFeedCnt===e-1){let t=this.getAccumulatedValue(i,e-i.lf_left-2),o=this._buffers[i.piece.bufferIndex].buffer,s=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);n=o.substring(s+t,s+i.piece.length);break}else e-=i.lf_left+i.piece.lineFeedCnt,o+=i.size_left+i.piece.length,i=i.right}for(i=i.next();i!==r.SENTINEL;){let e=this._buffers[i.piece.bufferIndex].buffer;if(i.piece.lineFeedCnt>0){let o=this.getAccumulatedValue(i,0),s=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);n+=e.substring(s,s+o-t);break}{let t=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);n+=e.substr(t,i.piece.length)}i=i.next()}return n}computeBufferMetadata(){let e=this.root,t=1,i=0;for(;e!==r.SENTINEL;)t+=e.lf_left+e.piece.lineFeedCnt,i+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=i,this._searchCache.validate(this._length)}getIndexOf(e,t){let i=e.piece,n=this.positionInBuffer(e,t),o=n.line-i.start.line;if(this.offsetInBuffer(i.bufferIndex,i.end)-this.offsetInBuffer(i.bufferIndex,i.start)===t){let t=this.getLineFeedCnt(e.piece.bufferIndex,i.start,n);if(t!==o)return{index:t,remainder:0}}return{index:o,remainder:n.column}}getAccumulatedValue(e,t){if(t<0)return 0;let i=e.piece,n=this._buffers[i.bufferIndex].lineStarts,o=i.start.line+t+1;return o>i.end.line?n[i.end.line]+i.end.column-n[i.start.line]-i.start.column:n[o]-n[i.start.line]-i.start.column}deleteNodeTail(e,t){let i=e.piece,n=i.lineFeedCnt,o=this.offsetInBuffer(i.bufferIndex,i.end),s=this.offsetInBuffer(i.bufferIndex,t),l=this.getLineFeedCnt(i.bufferIndex,i.start,t),a=l-n,u=s-o,d=i.length+u;e.piece=new c(i.bufferIndex,i.start,t,l,d),(0,r.updateTreeMetadata)(this,e,u,a)}deleteNodeHead(e,t){let i=e.piece,n=i.lineFeedCnt,o=this.offsetInBuffer(i.bufferIndex,i.start),s=this.getLineFeedCnt(i.bufferIndex,t,i.end),l=this.offsetInBuffer(i.bufferIndex,t),a=s-n,u=o-l,d=i.length+u;e.piece=new c(i.bufferIndex,t,i.end,s,d),(0,r.updateTreeMetadata)(this,e,u,a)}shrinkNode(e,t,i){let n=e.piece,o=n.start,s=n.end,l=n.length,a=n.lineFeedCnt,u=this.getLineFeedCnt(n.bufferIndex,n.start,t),d=this.offsetInBuffer(n.bufferIndex,t)-this.offsetInBuffer(n.bufferIndex,o);e.piece=new c(n.bufferIndex,n.start,t,u,d),(0,r.updateTreeMetadata)(this,e,d-l,u-a);let h=new c(n.bufferIndex,i,s,this.getLineFeedCnt(n.bufferIndex,i,s),this.offsetInBuffer(n.bufferIndex,s)-this.offsetInBuffer(n.bufferIndex,i)),p=this.rbInsertRight(e,h);this.validateCRLFWithPrevNode(p)}appendToNode(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+="\n");let i=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),n=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;let o=d(t,!1);for(let e=0;e<o.length;e++)o[e]+=n;if(i){let e=this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-2];this._buffers[0].lineStarts.pop(),this._lastChangeBufferPos={line:this._lastChangeBufferPos.line-1,column:n-e}}this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(o.slice(1));let s=this._buffers[0].lineStarts.length-1,l=this._buffers[0].buffer.length-this._buffers[0].lineStarts[s],a={line:s,column:l},u=e.piece.length+t.length,h=e.piece.lineFeedCnt,p=this.getLineFeedCnt(0,e.piece.start,a),g=p-h;e.piece=new c(e.piece.bufferIndex,e.piece.start,a,p,u),this._lastChangeBufferPos=a,(0,r.updateTreeMetadata)(this,e,t.length,g)}nodeAt(e){let t=this.root,i=this._searchCache.get(e);if(i)return{node:i.node,nodeStartOffset:i.nodeStartOffset,remainder:e-i.nodeStartOffset};let n=0;for(;t!==r.SENTINEL;)if(t.size_left>e)t=t.left;else if(t.size_left+t.piece.length>=e){n+=t.size_left;let i={node:t,remainder:e-t.size_left,nodeStartOffset:n};return this._searchCache.set(i),i}else e-=t.size_left+t.piece.length,n+=t.size_left+t.piece.length,t=t.right;return null}nodeAt2(e,t){let i=this.root,n=0;for(;i!==r.SENTINEL;)if(i.left!==r.SENTINEL&&i.lf_left>=e-1)i=i.left;else if(i.lf_left+i.piece.lineFeedCnt>e-1){let o=this.getAccumulatedValue(i,e-i.lf_left-2),s=this.getAccumulatedValue(i,e-i.lf_left-1);return n+=i.size_left,{node:i,remainder:Math.min(o+t-1,s),nodeStartOffset:n}}else if(i.lf_left+i.piece.lineFeedCnt===e-1){let o=this.getAccumulatedValue(i,e-i.lf_left-2);if(o+t-1<=i.piece.length)return{node:i,remainder:o+t-1,nodeStartOffset:n};t-=i.piece.length-o;break}else e-=i.lf_left+i.piece.lineFeedCnt,n+=i.size_left+i.piece.length,i=i.right;for(i=i.next();i!==r.SENTINEL;){if(i.piece.lineFeedCnt>0){let e=this.getAccumulatedValue(i,0),n=this.offsetOfNode(i);return{node:i,remainder:Math.min(t-1,e),nodeStartOffset:n}}if(i.piece.length>=t-1){let e=this.offsetOfNode(i);return{node:i,remainder:t-1,nodeStartOffset:e}}else t-=i.piece.length;i=i.next()}return null}nodeCharCodeAt(e,t){if(e.piece.lineFeedCnt<1)return -1;let i=this._buffers[e.piece.bufferIndex],n=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return i.buffer.charCodeAt(n)}offsetOfNode(e){if(!e)return 0;let t=e.size_left;for(;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t}shouldCheckCRLF(){return!(this._EOLNormalized&&"\n"===this._EOL)}startWithLF(e){if("string"==typeof e)return 10===e.charCodeAt(0);if(e===r.SENTINEL||0===e.piece.lineFeedCnt)return!1;let t=e.piece,i=this._buffers[t.bufferIndex].lineStarts,n=t.start.line,o=i[n]+t.start.column;return n!==i.length-1&&!(i[n+1]>o+1)&&10===this._buffers[t.bufferIndex].buffer.charCodeAt(o)}endWithCR(e){return"string"==typeof e?13===e.charCodeAt(e.length-1):e!==r.SENTINEL&&0!==e.piece.lineFeedCnt&&13===this.nodeCharCodeAt(e,e.piece.length-1)}validateCRLFWithPrevNode(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){let t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}}validateCRLFWithNextNode(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){let t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}}fixCRLF(e,t){let i;let n=[],o=this._buffers[e.piece.bufferIndex].lineStarts;i=0===e.piece.end.column?{line:e.piece.end.line-1,column:o[e.piece.end.line]-o[e.piece.end.line-1]-1}:{line:e.piece.end.line,column:e.piece.end.column-1};let s=e.piece.length-1,l=e.piece.lineFeedCnt-1;e.piece=new c(e.piece.bufferIndex,e.piece.start,i,l,s),(0,r.updateTreeMetadata)(this,e,-1,-1),0===e.piece.length&&n.push(e);let a={line:t.piece.start.line+1,column:0},u=t.piece.length-1,d=this.getLineFeedCnt(t.piece.bufferIndex,a,t.piece.end);t.piece=new c(t.piece.bufferIndex,a,t.piece.end,d,u),(0,r.updateTreeMetadata)(this,t,-1,-1),0===t.piece.length&&n.push(t);let h=this.createNewPieces("\r\n");this.rbInsertRight(e,h[0]);for(let e=0;e<n.length;e++)(0,r.rbDelete)(this,n[e])}adjustCarriageReturnFromNext(e,t){if(this.shouldCheckCRLF()&&this.endWithCR(e)){let i=t.next();if(this.startWithLF(i)){if(e+="\n",1===i.piece.length)(0,r.rbDelete)(this,i);else{let e=i.piece,t={line:e.start.line+1,column:0},n=e.length-1,o=this.getLineFeedCnt(e.bufferIndex,t,e.end);i.piece=new c(e.bufferIndex,t,e.end,o,n),(0,r.updateTreeMetadata)(this,i,-1,-1)}return!0}}return!1}iterate(e,t){if(e===r.SENTINEL)return t(r.SENTINEL);let i=this.iterate(e.left,t);return i?t(e)&&this.iterate(e.right,t):i}getNodeContent(e){if(e===r.SENTINEL)return"";let t=this._buffers[e.piece.bufferIndex],i=e.piece,n=this.offsetInBuffer(i.bufferIndex,i.start),o=this.offsetInBuffer(i.bufferIndex,i.end);return t.buffer.substring(n,o)}getPieceContent(e){let t=this._buffers[e.bufferIndex],i=this.offsetInBuffer(e.bufferIndex,e.start),n=this.offsetInBuffer(e.bufferIndex,e.end);return t.buffer.substring(i,n)}rbInsertRight(e,t){let i=new r.TreeNode(t,1);if(i.left=r.SENTINEL,i.right=r.SENTINEL,i.parent=r.SENTINEL,i.size_left=0,i.lf_left=0,this.root===r.SENTINEL)this.root=i,i.color=0;else if(e.right===r.SENTINEL)e.right=i,i.parent=e;else{let t=(0,r.leftest)(e.right);t.left=i,i.parent=t}return(0,r.fixInsert)(this,i),i}rbInsertLeft(e,t){let i=new r.TreeNode(t,1);if(i.left=r.SENTINEL,i.right=r.SENTINEL,i.parent=r.SENTINEL,i.size_left=0,i.lf_left=0,this.root===r.SENTINEL)this.root=i,i.color=0;else if(e.left===r.SENTINEL)e.left=i,i.parent=e;else{let t=(0,r.righttest)(e.left);t.right=i,i.parent=t}return(0,r.fixInsert)(this,i),i}}},878936:function(e,t,i){"use strict";i.r(t),i.d(t,{ITextModelService:function(){return n}});let n=(0,i("706301").createDecorator)("textModelService")},891685:function(e,t,i){"use strict";i.r(t),i.d(t,{createModelLineProjection:function(){return l}});var n=i("815776"),o=i("457938"),s=i("486043"),r=i("838643");function l(e,t){return null!==e?new a(e,t):t?u.INSTANCE:d.INSTANCE}class a{constructor(e,t){this._projectionData=e,this._isVisible=t}isVisible(){return this._isVisible}setVisible(e){return this._isVisible=e,this}getProjectionData(){return this._projectionData}getViewLineCount(){return this._isVisible?this._projectionData.getOutputLineCount():0}getViewLineContent(e,t,i){let n;this._assertVisible();let o=i>0?this._projectionData.breakOffsets[i-1]:0,r=this._projectionData.breakOffsets[i];if(null!==this._projectionData.injectionOffsets){let i=this._projectionData.injectionOffsets.map((e,t)=>new s.LineInjectedText(0,0,e+1,this._projectionData.injectionOptions[t],0));n=s.LineInjectedText.applyInjectedText(e.getLineContent(t),i).substring(o,r)}else n=e.getValueInRange({startLineNumber:t,startColumn:o+1,endLineNumber:t,endColumn:r+1});return i>0&&(n=c(this._projectionData.wrappedTextIndentLength)+n),n}getViewLineLength(e,t,i){return this._assertVisible(),this._projectionData.getLineLength(i)}getViewLineMinColumn(e,t,i){return this._assertVisible(),this._projectionData.getMinOutputOffset(i)+1}getViewLineMaxColumn(e,t,i){return this._assertVisible(),this._projectionData.getMaxOutputOffset(i)+1}getViewLineData(e,t,i){let n=[];return this.getViewLinesData(e,t,i,1,0,[!0],n),n[0]}getViewLinesData(e,t,i,o,s,l,a){let u;this._assertVisible();let d=this._projectionData,h=d.injectionOffsets,c=d.injectionOptions,p=null;if(h){p=[];let e=0,t=0;for(let i=0;i<d.getOutputLineCount();i++){let n=[];p[i]=n;let o=i>0?d.breakOffsets[i-1]:0,s=d.breakOffsets[i];for(;t<h.length;){let l=c[t].content.length,a=h[t]+e,u=a+l;if(a>s)break;if(o<u){let e=c[t];if(e.inlineClassName){let t=i>0?d.wrappedTextIndentLength:0,l=t+Math.max(a-o,0),h=t+Math.min(u-o,s);l!==h&&n.push(new r.SingleLineInlineDecoration(l,h,e.inlineClassName,e.inlineClassNameAffectsLetterSpacing))}}if(u<=s)e+=l,t++;else break}}}u=h?e.tokenization.getLineTokens(t).withInserted(h.map((e,t)=>({offset:e,text:c[t].content,tokenMetadata:n.LineTokens.defaultTokenMetadata}))):e.tokenization.getLineTokens(t);for(let e=i;e<i+o;e++){let t=s+e-i;if(!l[t]){a[t]=null;continue}a[t]=this._getViewLineData(u,p?p[e]:null,e)}}_getViewLineData(e,t,i){this._assertVisible();let n=this._projectionData,o=i>0?n.wrappedTextIndentLength:0,s=i>0?n.breakOffsets[i-1]:0,l=n.breakOffsets[i],a=e.sliceAndInflate(s,l,o),u=a.getLineContent();i>0&&(u=c(n.wrappedTextIndentLength)+u);let d=this._projectionData.getMinOutputOffset(i)+1,h=u.length+1,p=i+1<this.getViewLineCount(),g=0===i?0:n.breakOffsetsVisibleColumn[i-1];return new r.ViewLineData(u,p,d,h,g,a,t)}getModelColumnOfViewPosition(e,t){return this._assertVisible(),this._projectionData.translateToInputOffset(e,t-1)+1}getViewPositionOfModelPosition(e,t,i=2){return this._assertVisible(),this._projectionData.translateToOutputPosition(t-1,i).toPosition(e)}getViewLineNumberOfModelPosition(e,t){return this._assertVisible(),e+this._projectionData.translateToOutputPosition(t-1).outputLineIndex}normalizePosition(e,t,i){let n=t.lineNumber-e;return this._projectionData.normalizeOutputPosition(e,t.column-1,i).toPosition(n)}getInjectedTextAt(e,t){return this._projectionData.getInjectedText(e,t-1)}_assertVisible(){if(!this._isVisible)throw Error("Not supported")}}class u{constructor(){}isVisible(){return!0}setVisible(e){return e?this:d.INSTANCE}getProjectionData(){return null}getViewLineCount(){return 1}getViewLineContent(e,t,i){return e.getLineContent(t)}getViewLineLength(e,t,i){return e.getLineLength(t)}getViewLineMinColumn(e,t,i){return e.getLineMinColumn(t)}getViewLineMaxColumn(e,t,i){return e.getLineMaxColumn(t)}getViewLineData(e,t,i){let n=e.tokenization.getLineTokens(t),o=n.getLineContent();return new r.ViewLineData(o,!1,1,o.length+1,0,n.inflate(),null)}getViewLinesData(e,t,i,n,o,s,r){if(!s[o]){r[o]=null;return}r[o]=this.getViewLineData(e,t,0)}getModelColumnOfViewPosition(e,t){return t}getViewPositionOfModelPosition(e,t){return new o.Position(e,t)}getViewLineNumberOfModelPosition(e,t){return e}normalizePosition(e,t,i){return t}getInjectedTextAt(e,t){return null}}u.INSTANCE=new u;class d{constructor(){}isVisible(){return!1}setVisible(e){return e?u.INSTANCE:this}getProjectionData(){return null}getViewLineCount(){return 0}getViewLineContent(e,t,i){throw Error("Not supported")}getViewLineLength(e,t,i){throw Error("Not supported")}getViewLineMinColumn(e,t,i){throw Error("Not supported")}getViewLineMaxColumn(e,t,i){throw Error("Not supported")}getViewLineData(e,t,i){throw Error("Not supported")}getViewLinesData(e,t,i,n,o,s,r){throw Error("Not supported")}getModelColumnOfViewPosition(e,t){throw Error("Not supported")}getViewPositionOfModelPosition(e,t){throw Error("Not supported")}getViewLineNumberOfModelPosition(e,t){throw Error("Not supported")}normalizePosition(e,t,i){throw Error("Not supported")}getInjectedTextAt(e,t){throw Error("Not supported")}}d.INSTANCE=new d;let h=[""];function c(e){if(e>=h.length)for(let t=1;t<=e;t++)h[t]=function(e){return Array(e+1).join(" ")}(t);return h[e]}},863636:function(e,t,i){"use strict";i.r(t),i.d(t,{ViewModelDecorations:function(){return l},isModelDecorationInComment:function(){return u},isModelDecorationInString:function(){return d},isModelDecorationVisible:function(){return a}});var n=i("457938"),o=i("761045"),s=i("838643"),r=i("416637");class l{constructor(e,t,i,n,o){this.editorId=e,this.model=t,this.configuration=i,this._linesCollection=n,this._coordinatesConverter=o,this._decorationsCache=Object.create(null),this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}_clearCachedModelDecorationsResolver(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}dispose(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}reset(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onModelDecorationsChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onLineMappingChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}_getOrCreateViewModelDecoration(e){let t=e.id,i=this._decorationsCache[t];if(!i){let r;let l=e.range,a=e.options;if(a.isWholeLine){let e=this._coordinatesConverter.convertModelPositionToViewPosition(new n.Position(l.startLineNumber,1),0),t=this._coordinatesConverter.convertModelPositionToViewPosition(new n.Position(l.endLineNumber,this.model.getLineMaxColumn(l.endLineNumber)),1);r=new o.Range(e.lineNumber,e.column,t.lineNumber,t.column)}else r=this._coordinatesConverter.convertModelRangeToViewRange(l,1);i=new s.ViewModelDecoration(r,a),this._decorationsCache[t]=i}return i}getDecorationsViewportData(e){let t=null!==this._cachedModelDecorationsResolver;return!(t=t&&e.equalsRange(this._cachedModelDecorationsResolverViewRange))&&(this._cachedModelDecorationsResolver=this._getDecorationsInRange(e),this._cachedModelDecorationsResolverViewRange=e),this._cachedModelDecorationsResolver}getInlineDecorationsOnLine(e){let t=new o.Range(e,this._linesCollection.getViewLineMinColumn(e),e,this._linesCollection.getViewLineMaxColumn(e));return this._getDecorationsInRange(t).inlineDecorations[0]}_getDecorationsInRange(e){let t=this._linesCollection.getDecorationsInRange(e,this.editorId,(0,r.filterValidationDecorations)(this.configuration.options)),i=e.startLineNumber,n=e.endLineNumber,l=[],u=0,d=[];for(let e=i;e<=n;e++)d[e-i]=[];for(let e=0,r=t.length;e<r;e++){let r=t[e],h=r.options;if(!a(this.model,r))continue;let c=this._getOrCreateViewModelDecoration(r),p=c.range;if(l[u++]=c,h.inlineClassName){let e=new s.InlineDecoration(p,h.inlineClassName,h.inlineClassNameAffectsLetterSpacing?3:0),t=Math.max(i,p.startLineNumber),o=Math.min(n,p.endLineNumber);for(let n=t;n<=o;n++)d[n-i].push(e)}if(h.beforeContentClassName&&i<=p.startLineNumber&&p.startLineNumber<=n){let e=new s.InlineDecoration(new o.Range(p.startLineNumber,p.startColumn,p.startLineNumber,p.startColumn),h.beforeContentClassName,1);d[p.startLineNumber-i].push(e)}if(h.afterContentClassName&&i<=p.endLineNumber&&p.endLineNumber<=n){let e=new s.InlineDecoration(new o.Range(p.endLineNumber,p.endColumn,p.endLineNumber,p.endColumn),h.afterContentClassName,2);d[p.endLineNumber-i].push(e)}}return{decorations:l,inlineDecorations:d}}}function a(e,t){return!(t.options.hideInCommentTokens&&u(e,t)||t.options.hideInStringTokens&&d(e,t))&&!0}function u(e,t){return h(e,t.range,e=>1===e)}function d(e,t){return h(e,t.range,e=>2===e)}function h(e,t,i){for(let n=t.startLineNumber;n<=t.endLineNumber;n++){let o=e.tokenization.getLineTokens(n),s=n===t.startLineNumber,r=n===t.endLineNumber,l=s?o.findTokenIndexAtOffset(t.startColumn-1):0;for(;l<o.getCount()&&!(r&&o.getStartOffset(l)>t.endColumn-1);){;if(!i(o.getStandardTokenType(l)))return!1;l++}}return!0}},987092:function(e,t,i){"use strict";i.r(t);var n=i("159923"),o=i("976617"),s=i("412188"),r=i("708339");class l extends n.EditorAction{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;let i=[];for(let e of t.getSelections())i.push(new s.MoveCaretCommand(e,this.left));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}(0,n.registerEditorAction)(class e extends l{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:r.localize("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:o.EditorContextKeys.writable})}}),(0,n.registerEditorAction)(class e extends l{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:r.localize("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:o.EditorContextKeys.writable})}})},710798:function(e,t,i){"use strict";i.r(t);var n=i("159923"),o=i("838846"),s=i("377287"),r=i("761045"),l=i("976617"),a=i("708339");class u extends n.EditorAction{constructor(){super({id:"editor.action.transposeLetters",label:a.localize("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:l.EditorContextKeys.writable,kbOpts:{kbExpr:l.EditorContextKeys.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;let i=t.getModel(),n=[];for(let e of t.getSelections()){if(!e.isEmpty())continue;let t=e.startLineNumber,l=e.startColumn,a=i.getLineMaxColumn(t);if(1===t&&(1===l||2===l&&2===a))continue;let u=l===a?e.getPosition():s.MoveOperations.rightPosition(i,e.getPosition().lineNumber,e.getPosition().column),d=s.MoveOperations.leftPosition(i,u),h=s.MoveOperations.leftPosition(i,d),c=i.getValueInRange(r.Range.fromPositions(h,d)),p=i.getValueInRange(r.Range.fromPositions(d,u)),g=r.Range.fromPositions(h,u);n.push(new o.ReplaceCommand(g,p+c))}n.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}}(0,n.registerEditorAction)(u)},164228:function(e,t,i){"use strict";i.r(t);var n=i("259527"),o=i("207875"),s=i("637717"),r=i("159923"),l=i("583368"),a=i("976617"),u=i("708339"),d=i("351553"),h=i("704264");let c="9_cutcopypaste",p=o.isNative||document.queryCommandSupported("cut"),g=o.isNative||document.queryCommandSupported("copy"),f=void 0!==navigator.clipboard&&!n.isFirefox||document.queryCommandSupported("paste");function m(e){return e.register(),e}let b=p?m(new r.MultiCommand({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:o.isNative?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:d.MenuId.MenubarEditMenu,group:"2_ccp",title:u.localize({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:d.MenuId.EditorContext,group:c,title:u.localize("actions.clipboard.cutLabel","Cut"),when:a.EditorContextKeys.writable,order:1},{menuId:d.MenuId.CommandPalette,group:"",title:u.localize("actions.clipboard.cutLabel","Cut"),order:1},{menuId:d.MenuId.SimpleEditorContext,group:c,title:u.localize("actions.clipboard.cutLabel","Cut"),when:a.EditorContextKeys.writable,order:1}]})):void 0,_=g?m(new r.MultiCommand({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:o.isNative?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:d.MenuId.MenubarEditMenu,group:"2_ccp",title:u.localize({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:d.MenuId.EditorContext,group:c,title:u.localize("actions.clipboard.copyLabel","Copy"),order:2},{menuId:d.MenuId.CommandPalette,group:"",title:u.localize("actions.clipboard.copyLabel","Copy"),order:1},{menuId:d.MenuId.SimpleEditorContext,group:c,title:u.localize("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;d.MenuRegistry.appendMenuItem(d.MenuId.MenubarEditMenu,{submenu:d.MenuId.MenubarCopy,title:{value:u.localize("copy as","Copy As"),original:"Copy As"},group:"2_ccp",order:3}),d.MenuRegistry.appendMenuItem(d.MenuId.EditorContext,{submenu:d.MenuId.EditorContextCopy,title:{value:u.localize("copy as","Copy As"),original:"Copy As"},group:c,order:3}),d.MenuRegistry.appendMenuItem(d.MenuId.EditorContext,{submenu:d.MenuId.EditorContextShare,title:{value:u.localize("share","Share"),original:"Share"},group:"11_share",order:-1});let v=f?m(new r.MultiCommand({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:o.isNative?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:d.MenuId.MenubarEditMenu,group:"2_ccp",title:u.localize({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:d.MenuId.EditorContext,group:c,title:u.localize("actions.clipboard.pasteLabel","Paste"),when:a.EditorContextKeys.writable,order:4},{menuId:d.MenuId.CommandPalette,group:"",title:u.localize("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:d.MenuId.SimpleEditorContext,group:c,title:u.localize("actions.clipboard.pasteLabel","Paste"),when:a.EditorContextKeys.writable,order:4}]})):void 0;class C extends r.EditorAction{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:u.localize("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:a.EditorContextKeys.textInputFocus,primary:0,weight:100}})}run(e,t){if(!!t.hasModel())!(!t.getOption(33)&&t.getSelection().isEmpty())&&(s.CopyOptions.forceCopyWithSyntaxHighlighting=!0,t.focus(),document.execCommand("copy"),s.CopyOptions.forceCopyWithSyntaxHighlighting=!1)}}function y(e,t){e&&(e.addImplementation(1e4,"code-editor",(e,i)=>{let n=e.get(l.ICodeEditorService).getFocusedCodeEditor();if(n&&n.hasTextFocus()){let e=n.getOption(33),i=n.getSelection();return!!(i&&i.isEmpty())&&!e||(document.execCommand(t),!0)}return!1}),e.addImplementation(0,"generic-dom",(e,i)=>(document.execCommand(t),!0)))}y(b,"cut"),y(_,"copy"),v&&(v.addImplementation(1e4,"code-editor",(e,t)=>{let i=e.get(l.ICodeEditorService),n=e.get(h.IClipboardService),r=i.getFocusedCodeEditor();if(r&&r.hasTextFocus()){if(!document.execCommand("paste")&&o.isWeb){var a,u,d,c;return a=void 0,u=void 0,d=void 0,c=function*(){let e=yield n.readText();if(""!==e){let t=s.InMemoryClipboardMetadataManager.INSTANCE.get(e),i=!1,n=null,o=null;t&&(i=r.getOption(33)&&!!t.isFromEmptySelection,n=void 0!==t.multicursorText?t.multicursorText:null,o=t.mode),r.trigger("keyboard","paste",{text:e,pasteOnNewLine:i,multicursorText:n,mode:o})}},new(d||(d=Promise))(function(e,t){function i(e){try{o(c.next(e))}catch(e){t(e)}}function n(e){try{o(c.throw(e))}catch(e){t(e)}}function o(t){var o;t.done?e(t.value):((o=t.value)instanceof d?o:new d(function(e){e(o)})).then(i,n)}o((c=c.apply(a,u||[])).next())})}return!0}return!1}),v.addImplementation(0,"generic-dom",(e,t)=>(document.execCommand("paste"),!0))),g&&(0,r.registerEditorAction)(C)},684315:function(e,t,i){"use strict";i.r(t),i.d(t,{ColorHoverParticipant:function(){return b}});var n,o,s=i("467518"),r=i("500862"),l=i("835271"),a=i("919527"),u=i("761045"),d=i("844126"),h=i("568487"),c=i("382524"),p=i("598048"),g=i("439703"),f=function(e,t,i,n){return new(i||(i=Promise))(function(o,s){function r(e){try{a(n.next(e))}catch(e){s(e)}}function l(e){try{a(n.throw(e))}catch(e){s(e)}}function a(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(r,l)}a((n=n.apply(e,t||[])).next())})};class m{constructor(e,t,i,n){this.owner=e,this.range=t,this.model=i,this.provider=n,this.forceShowAtRange=!0}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let b=class{constructor(e,t){this._editor=e,this._themeService=t,this.hoverOrdinal=1}computeSync(e,t){return[]}computeAsync(e,t,i){return s.AsyncIterableObject.fromPromise(this._computeAsync(e,t,i))}_computeAsync(e,t,i){return f(this,void 0,void 0,function*(){if(!this._editor.hasModel())return[];let e=h.ColorDetector.get(this._editor);if(!e)return[];for(let i of t){if(!e.isColorDecoration(i))continue;let t=e.getColorData(i.range.getStartPosition());if(t)return[(yield this._createColorHover(this._editor.getModel(),t.colorInfo,t.provider))]}return[]})}_createColorHover(e,t,i){return f(this,void 0,void 0,function*(){let n=e.getValueInRange(t.range),{red:o,green:s,blue:a,alpha:h}=t.color,p=new l.RGBA(Math.round(255*o),Math.round(255*s),Math.round(255*a),h),g=new l.Color(p),f=yield(0,d.getColorPresentations)(e,t,i,r.CancellationToken.None),b=new c.ColorPickerModel(g,[],0);return b.colorPresentations=f||[],b.guessColorPresentation(g,n),new m(this,u.Range.lift(t.range),b,i)})}renderHoverParts(e,t){if(0===t.length||!this._editor.hasModel())return a.Disposable.None;let i=new a.DisposableStore,n=t[0],o=this._editor.getModel(),s=n.model,l=i.add(new p.ColorPickerWidget(e.fragment,s,this._editor.getOption(131),this._themeService));e.setColorPicker(l);let h=new u.Range(n.range.startLineNumber,n.range.startColumn,n.range.endLineNumber,n.range.endColumn),c=()=>{let t,i;if(s.presentation.textEdit){t=[s.presentation.textEdit],i=new u.Range(s.presentation.textEdit.range.startLineNumber,s.presentation.textEdit.range.startColumn,s.presentation.textEdit.range.endLineNumber,s.presentation.textEdit.range.endColumn);let e=this._editor.getModel()._setTrackedRange(null,i,3);this._editor.pushUndoStop(),this._editor.executeEdits("colorpicker",t),i=this._editor.getModel()._getTrackedRange(e)||i}else t=[{range:h,text:s.presentation.label,forceMoveMarkers:!1}],i=h.setEndPosition(h.endLineNumber,h.startColumn+s.presentation.label.length),this._editor.pushUndoStop(),this._editor.executeEdits("colorpicker",t);s.presentation.additionalTextEdits&&(t=[...s.presentation.additionalTextEdits],this._editor.executeEdits("colorpicker",t),e.hide()),this._editor.pushUndoStop(),h=i},g=e=>(0,d.getColorPresentations)(o,{range:h,color:{red:e.rgba.r/255,green:e.rgba.g/255,blue:e.rgba.b/255,alpha:e.rgba.a}},n.provider,r.CancellationToken.None).then(e=>{s.colorPresentations=e||[]});return i.add(s.onColorFlushed(e=>{g(e).then(c)})),i.add(s.onDidChangeColor(g)),i}};b=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(n=1,o=g.IThemeService,function(e,t){o(e,t,1)})],b)},744739:function(e,t,i){"use strict";i.r(t),i.d(t,{InlineCompletionsHoverParticipant:function(){return C}});var n=i("409737"),o=i("670691"),s=i("919527"),r=i("377403"),l=i("761045"),a=i("810870"),u=i("88936"),d=i("49429"),h=i("708339"),c=i("138204"),p=i("351553"),g=i("326896"),f=i("549436"),m=i("180204"),b=i("837623"),_=function(e,t){return function(i,n){t(i,n,e)}};class v{constructor(e,t,i){this.owner=e,this.range=t,this.controller=i}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}hasMultipleSuggestions(){return this.controller.hasMultipleInlineCompletions()}get commands(){var e,t,i;return(null===(i=null===(t=null===(e=this.controller.activeModel)||void 0===e?void 0:e.activeInlineCompletionsModel)||void 0===t?void 0:t.completionSession.value)||void 0===i?void 0:i.commands)||[]}}let C=class{constructor(e,t,i,n,o,s,r){this._editor=e,this._commandService=t,this._menuService=i,this._contextKeyService=n,this._languageService=o,this._openerService=s,this.accessibilityService=r,this.hoverOrdinal=3}suggestHoverAnchor(e){let t=d.GhostTextController.get(this._editor);if(!t)return null;let i=e.target;if(8===i.type){let e=i.detail;if(t.shouldShowHoverAtViewZone(e.viewZoneId))return new u.HoverForeignElementAnchor(1e3,this,l.Range.fromPositions(e.positionBefore||e.position,e.positionBefore||e.position))}return 7===i.type&&t.shouldShowHoverAt(i.range)||6===i.type&&i.detail.mightBeForeignElement&&t.shouldShowHoverAt(i.range)?new u.HoverForeignElementAnchor(1e3,this,i.range):null}computeSync(e,t){let i=d.GhostTextController.get(this._editor);return i&&i.shouldShowHoverAt(e.range)?[new v(this,e.range,i)]:[]}renderHoverParts(e,t){let i=new s.DisposableStore,n=t[0];this.accessibilityService.isScreenReaderOptimized()&&this.renderScreenReaderText(e,n,i);let o=i.add(this._menuService.createMenu(p.MenuId.InlineCompletionsActions,this._contextKeyService)),r=e.statusBar.addAction({label:h.localize("showNextInlineSuggestion","Next"),commandId:d.ShowNextInlineSuggestionAction.ID,run:()=>this._commandService.executeCommand(d.ShowNextInlineSuggestionAction.ID)}),l=e.statusBar.addAction({label:h.localize("showPreviousInlineSuggestion","Previous"),commandId:d.ShowPreviousInlineSuggestionAction.ID,run:()=>this._commandService.executeCommand(d.ShowPreviousInlineSuggestionAction.ID)});e.statusBar.addAction({label:h.localize("acceptInlineSuggestion","Accept"),commandId:b.inlineSuggestCommitId,run:()=>this._commandService.executeCommand(b.inlineSuggestCommitId)});let a=[r,l];for(let e of a)e.setEnabled(!1);for(let t of(n.hasMultipleSuggestions().then(e=>{for(let t of a)t.setEnabled(e)}),n.commands))e.statusBar.addAction({label:t.title,commandId:t.id,run:()=>this._commandService.executeCommand(t.id,...t.arguments||[])});for(let[t,i]of o.getActions())for(let t of i)t instanceof p.MenuItemAction&&e.statusBar.addAction({label:t.label,commandId:t.item.id,run:()=>this._commandService.executeCommand(t.item.id)});return i}renderScreenReaderText(e,t,i){var s,l;let a=n.$,u=a("div.hover-row.markdown-hover"),d=n.append(u,a("div.hover-contents")),c=i.add(new r.MarkdownRenderer({editor:this._editor},this._languageService,this._openerService)),p=null===(l=null===(s=t.controller.activeModel)||void 0===s?void 0:s.inlineCompletionsModel)||void 0===l?void 0:l.ghostText;if(p){let t=this._editor.getModel().getLineContent(p.lineNumber);(t=>{i.add(c.onDidRenderAsync(()=>{d.className="hover-contents code-hover-contents",e.onContentsChanged()}));let n=h.localize("inlineSuggestionFollows","Suggestion:"),s=i.add(c.render(new o.MarkdownString().appendText(n).appendCodeblock("text",t)));d.replaceChildren(s.element)})(p.renderForScreenReader(t))}e.fragment.appendChild(u)}};C=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([_(1,g.ICommandService),_(2,p.IMenuService),_(3,f.IContextKeyService),_(4,a.ILanguageService),_(5,m.IOpenerService),_(6,c.IAccessibilityService)],C)},236684:function(e,t,i){"use strict";i.r(t),i.d(t,{AbstractEditorCommandsQuickAccessProvider:function(){return s}});var n=i("947578"),o=i("782168");class s extends o.AbstractCommandsQuickAccessProvider{constructor(e,t,i,n,o,s){super(e,t,i,n,o,s)}getCodeEditorCommandPicks(){let e=this.activeTextEditorControl;if(!e)return[];let t=[];for(let i of e.getSupportedActions())t.push({commandId:i.id,commandAlias:i.alias,label:(0,n.stripIcons)(i.label)||i.id});return t}}},261810:function(e,t,i){"use strict";i.r(t);var n,o,s,r=i("919527"),l=i("159923"),a=i("678540"),u=i("232633"),d=i("500862"),h=i("409737"),c=i("234630"),p=i("281161"),g=i("30751"),f=i("467518"),m=i("457938"),b=function(e,t,i,n){return new(i||(i=Promise))(function(o,s){function r(e){try{a(n.next(e))}catch(e){s(e)}}function l(e){try{a(n.throw(e))}catch(e){s(e)}}function a(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(r,l)}a((n=n.apply(e,t||[])).next())})};let _=class extends r.Disposable{constructor(e,t){super(),this._sessionStore=new r.DisposableStore,this._ranges=[],this._rangesVersionId=0,this._editor=e,this._languageFeaturesService=t,this.stickyScrollWidget=new y(this._editor),this._register(this._editor.onDidChangeConfiguration(e=>{e.hasChanged(34)&&this.onConfigurationChange()})),this._updateSoon=this._register(new f.RunOnceScheduler(()=>this._update(!0),50)),this.onConfigurationChange()}onConfigurationChange(){if(!1===this._editor.getOption(34).stickyScroll.enabled){this.stickyScrollWidget.emptyRootNode(),this._editor.removeOverlayWidget(this.stickyScrollWidget),this._sessionStore.clear();return}this._editor.addOverlayWidget(this.stickyScrollWidget),this._sessionStore.add(this._editor.onDidChangeModel(()=>this._update(!0))),this._sessionStore.add(this._editor.onDidScrollChange(()=>this._update(!1))),this._sessionStore.add(this._editor.onDidChangeHiddenAreas(()=>this._update(!0))),this._sessionStore.add(this._editor.onDidChangeModelTokens(e=>this._onTokensChange(e))),this._sessionStore.add(this._editor.onDidChangeModelContent(()=>this._updateSoon.schedule())),this._sessionStore.add(this._languageFeaturesService.documentSymbolProvider.onDidChange(()=>this._update(!0))),this._update(!0)}_needsUpdate(e){for(let t of this.stickyScrollWidget.getCurrentLines())for(let i of e.ranges)if(t>=i.fromLineNumber&&t<=i.toLineNumber)return!0;return!1}_onTokensChange(e){this._needsUpdate(e)&&this._update(!1)}_update(e=!1){var t,i;return b(this,void 0,void 0,function*(){e&&(null===(t=this._cts)||void 0===t||t.dispose(!0),this._cts=new d.CancellationTokenSource,yield this._updateOutlineModel(this._cts.token));let n=null===(i=this._editor._getViewModel())||void 0===i?void 0:i.getHiddenAreas();if(n)for(let e of n)this._ranges=this._ranges.filter(t=>!(t[0]>=e.startLineNumber&&t[1]<=e.endLineNumber+1));this._renderStickyScroll()})}_findLineRanges(e,t){if(null==e?void 0:e.children.size){let i=!1;for(let n of null==e?void 0:e.children.values()){let e=n.symbol.kind;(4===e||8===e||11===e||10===e||5===e||1===e)&&(i=!0,this._findLineRanges(n,t+1))}!i&&this._addOutlineRanges(e,t)}else this._addOutlineRanges(e,t)}_addOutlineRanges(e,t){let i=0,n=0;for(;e;){let o=e.symbol.kind;if((4===o||8===o||11===o||10===o||5===o||1===o)&&(i=null==e?void 0:e.symbol.range.startLineNumber,n=null==e?void 0:e.symbol.range.endLineNumber,this._ranges.push([i,n,t]),t--),e.parent instanceof u.OutlineElement)e=e.parent;else break}}_updateOutlineModel(e){return b(this,void 0,void 0,function*(){if(this._editor.hasModel()){let t=this._editor.getModel(),i=t.getVersionId(),n=yield u.OutlineModel.create(this._languageFeaturesService.documentSymbolProvider,t,e);if(!e.isCancellationRequested)for(let e of(this._ranges=[],this._rangesVersionId=i,n.children.values())){if(e instanceof u.OutlineElement){let t=e.symbol.kind;4===t||8===t||11===t||10===t||5===t||1===t?this._findLineRanges(e,1):this._findLineRanges(e,0)}this._ranges=this._ranges.sort(function(e,t){return e[0]!==t[0]?e[0]-t[0]:e[1]!==t[1]?t[1]-e[1]:e[2]-t[2]});let t=[];for(let[e,i]of this._ranges.entries()){let[n,o,s]=i;t[0]===n&&t[1]===o?this._ranges.splice(e,1):t=i}}}})}_renderStickyScroll(){if(!this._editor.hasModel())return;let e=this._editor.getOption(61),t=this._editor.getModel();if(this._rangesVersionId!==t.getVersionId())return;let i=this._editor.getScrollTop();this.stickyScrollWidget.emptyRootNode();let n=new Set;for(let[o,s]of this._ranges.entries()){let[r,l,a]=s;if(l-r>0&&""!==t.getLineContent(r)){let t=(a-1)*e,s=a*e,u=this._editor.getBottomForLineNumber(r)-i,d=this._editor.getTopForLineNumber(l)-i,h=this._editor.getBottomForLineNumber(l)-i;if(n.has(r))this._ranges.splice(o,1);else{if(t>=d-1&&t<h-2){n.add(r),this.stickyScrollWidget.pushCodeLine(new C(r,a,this._editor,-1,h-s));break}s>u&&s<h-1&&(n.add(r),this.stickyScrollWidget.pushCodeLine(new C(r,a,this._editor,0,0)))}}}this.stickyScrollWidget.updateRootNode()}dispose(){super.dispose(),this._sessionStore.dispose()}};_.ID="store.contrib.stickyScrollController",_=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(n=1,o=a.ILanguageFeaturesService,function(e,t){o(e,t,1)})],_);let v=null===(s=window.trustedTypes)||void 0===s?void 0:s.createPolicy("stickyScrollViewLayer",{createHTML:e=>e});class C{constructor(e,t,i,n,o){this._lineNumber=e,this._depth=t,this._editor=i,this._zIndex=n,this._relativePosition=o,this.effectiveLineHeight=0,this.effectiveLineHeight=this._editor.getOption(61)+this._relativePosition}get lineNumber(){return this._lineNumber}getDomNode(){let e,t;let i=document.createElement("div"),n=this._editor._getViewModel(),o=n.coordinatesConverter.convertModelPositionToViewPosition(new m.Position(this._lineNumber,1)).lineNumber,s=n.getViewLineRenderingData(o);try{e=g.LineDecoration.filter(s.inlineDecorations,o,s.minColumn,s.maxColumn)}catch(t){e=[]}let r=new p.RenderLineInput(!0,!0,s.content,s.continuesWithWrappedLine,s.isBasicASCII,s.containsRTL,0,s.tokens,e,s.tabSize,s.startVisibleColumn,1,1,1,100,"none",!0,!0,null),l=(0,c.createStringBuilder)(400);(0,p.renderViewLine)(r,l),t=v?v.createHTML(l.build()):l.build();let a=document.createElement("span");a.style.backgroundColor="var(--vscode-editorStickyScroll-background)",a.style.overflow="hidden",a.style.whiteSpace="nowrap",a.style.display="inline-block",a.style.lineHeight=this._editor.getOption(61).toString()+"px",a.innerHTML=t;let u=document.createElement("span");u.style.width=this._editor.getLayoutInfo().contentLeft.toString()+"px",u.style.backgroundColor="var(--vscode-editorStickyScroll-background)",u.style.color="var(--vscode-editorLineNumber-foreground)",u.style.display="inline-block",u.style.lineHeight=this._editor.getOption(61).toString()+"px";let d=document.createElement("span");return d.innerText=this._lineNumber.toString(),d.style.paddingLeft=this._editor.getLayoutInfo().lineNumbersLeft.toString()+"px",d.style.width=this._editor.getLayoutInfo().lineNumbersWidth.toString()+"px",d.style.backgroundColor="var(--vscode-editorStickyScroll-background)",d.style.textAlign="right",d.style.float="left",d.style.lineHeight=this._editor.getOption(61).toString()+"px",u.appendChild(d),i.onclick=e=>{e.stopPropagation(),e.preventDefault(),this._editor.revealPosition({lineNumber:this._lineNumber-this._depth+1,column:1})},i.onmouseover=e=>{d.style.background="var(--vscode-editorStickyScrollHover-background)",a.style.backgroundColor="var(--vscode-editorStickyScrollHover-background)",u.style.backgroundColor="var(--vscode-editorStickyScrollHover-background)",i.style.backgroundColor="var(--vscode-editorStickyScrollHover-background)",d.style.cursor="pointer",a.style.cursor="pointer",i.style.cursor="pointer",u.style.cursor="pointer"},i.onmouseleave=e=>{d.style.background="var(--vscode-editorStickyScroll-background)",a.style.backgroundColor="var(--vscode-editorStickyScroll-background)",u.style.backgroundColor="var(--vscode-editorStickyScroll-background)",i.style.backgroundColor="var(--vscode-editorStickyScroll-background)"},this._editor.applyFontInfo(a),this._editor.applyFontInfo(d),i.appendChild(u),i.appendChild(a),i.style.zIndex=this._zIndex.toString(),i.style.backgroundColor="var(--vscode-editorStickyScroll-background)",i.style.overflow="hidden",i.style.whiteSpace="nowrap",i.style.width="100%",i.style.lineHeight=this._editor.getOption(61).toString()+"px",i.style.height=this._editor.getOption(61).toString()+"px",this._relativePosition&&(i.style.position="relative",i.style.top=this._relativePosition+"px",i.style.width="100%"),i}}class y{constructor(e){this._editor=e,this.arrayOfCodeLines=[],this.rootDomNode=document.createElement("div"),this.rootDomNode=document.createElement("div"),this.rootDomNode.style.width="100%",this.rootDomNode.style.boxShadow="var(--vscode-scrollbar-shadow) 0 6px 6px -6px"}getCurrentLines(){let e=[];for(let t of this.arrayOfCodeLines)e.push(t.lineNumber);return e}pushCodeLine(e){this.arrayOfCodeLines.push(e)}updateRootNode(){let e=0;for(let t of this.arrayOfCodeLines)e+=t.effectiveLineHeight,this.rootDomNode.appendChild(t.getDomNode());this.rootDomNode.style.height=e.toString()+"px"}emptyRootNode(){this.arrayOfCodeLines.length=0,h.clearNode(this.rootDomNode)}getId(){return"editor.contrib.stickyScrollWidget"}getDomNode(){return this.rootDomNode.style.zIndex="2",this.rootDomNode.style.backgroundColor="var(--vscode-editorStickyScroll-background)",this.rootDomNode}getPosition(){return{preference:null}}}(0,l.registerEditorContribution)(_.ID,_)},642356:function(e,t,i){"use strict";i.r(t),i.d(t,{ToggleTabFocusModeAction:function(){return l}});var n=i("794555"),o=i("36790"),s=i("159923"),r=i("708339");class l extends s.EditorAction{constructor(){super({id:l.ID,label:r.localize({key:"toggle.tabMovesFocus",comment:["Turn on/off use of tab key for moving focus around VS Code"]},"Toggle Tab Key Moves Focus"),alias:"Toggle Tab Key Moves Focus",precondition:void 0,kbOpts:{kbExpr:null,primary:2091,mac:{primary:1323},weight:100}})}run(e,t){let i=!o.TabFocus.getTabFocusMode();o.TabFocus.setTabFocusMode(i),i?(0,n.alert)(r.localize("toggle.tabMovesFocus.on","Pressing Tab will now move focus to the next focusable element")):(0,n.alert)(r.localize("toggle.tabMovesFocus.off","Pressing Tab will now insert the tab character"))}}l.ID="editor.action.toggleTabFocusMode",(0,s.registerEditorAction)(l)},689239:function(e,t,i){"use strict";i.r(t),i.d(t,{MonarchTokenizer:function(){return m}});var n,o,s=i("274854"),r=i("143972"),l=i("398367"),a=i("753861");class u{constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}static create(e,t){return this._INSTANCE.create(e,t)}create(e,t){if(null!==e&&e.depth>=this._maxCacheDepth)return new d(e,t);let i=d.getStackElementId(e);i.length>0&&(i+="|"),i+=t;let n=this._entries[i];return n?n:(n=new d(e,t),this._entries[i]=n,n)}}u._INSTANCE=new u(5);class d{constructor(e,t){this.parent=e,this.state=t,this.depth=(this.parent?this.parent.depth:0)+1}static getStackElementId(e){let t="";for(;null!==e;)t.length>0&&(t+="|"),t+=e.state,e=e.parent;return t}static _equals(e,t){for(;null!==e&&null!==t;){if(e===t)return!0;if(e.state!==t.state)return!1;e=e.parent,t=t.parent}return null===e&&null===t||!1}equals(e){return d._equals(this,e)}push(e){return u.create(this,e)}pop(){return this.parent}popall(){let e=this;for(;e.parent;)e=e.parent;return e}switchTo(e){return u.create(this.parent,e)}}class h{constructor(e,t){this.languageId=e,this.state=t}equals(e){return this.languageId===e.languageId&&this.state.equals(e.state)}clone(){return this.state.clone()===this.state?this:new h(this.languageId,this.state)}}class c{constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}static create(e,t){return this._INSTANCE.create(e,t)}create(e,t){if(null!==t||null!==e&&e.depth>=this._maxCacheDepth)return new p(e,t);let i=d.getStackElementId(e),n=this._entries[i];return n?n:(n=new p(e,null),this._entries[i]=n,n)}}c._INSTANCE=new c(5);class p{constructor(e,t){this.stack=e,this.embeddedLanguageData=t}clone(){return(this.embeddedLanguageData?this.embeddedLanguageData.clone():null)===this.embeddedLanguageData?this:c.create(this.stack,this.embeddedLanguageData)}equals(e){return!!(e instanceof p&&this.stack.equals(e.stack))&&(null===this.embeddedLanguageData&&null===e.embeddedLanguageData||null!==this.embeddedLanguageData&&null!==e.embeddedLanguageData&&this.embeddedLanguageData.equals(e.embeddedLanguageData))}}class g{constructor(){this._tokens=[],this._languageId=null,this._lastTokenType=null,this._lastTokenLanguage=null}enterLanguage(e){this._languageId=e}emit(e,t){(this._lastTokenType!==t||this._lastTokenLanguage!==this._languageId)&&(this._lastTokenType=t,this._lastTokenLanguage=this._languageId,this._tokens.push(new s.Token(e,t,this._languageId)))}nestedLanguageTokenize(e,t,i,n){let o=i.languageId,r=i.state,l=s.TokenizationRegistry.get(o);if(!l)return this.enterLanguage(o),this.emit(n,""),r;let a=l.tokenize(e,t,r);if(0!==n)for(let e of a.tokens)this._tokens.push(new s.Token(e.offset+n,e.type,e.language));else this._tokens=this._tokens.concat(a.tokens);return this._lastTokenType=null,this._lastTokenLanguage=null,this._languageId=null,a.endState}finalize(e){return new s.TokenizationResult(this._tokens,e)}}class f{constructor(e,t){this._languageService=e,this._theme=t,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}enterLanguage(e){this._currentLanguageId=this._languageService.languageIdCodec.encodeLanguageId(e)}emit(e,t){let i=this._theme.match(this._currentLanguageId,t);this._lastTokenMetadata!==i&&(this._lastTokenMetadata=i,this._tokens.push(e),this._tokens.push(i))}static _merge(e,t,i){let n=null!==e?e.length:0,o=t.length,s=null!==i?i.length:0;if(0===n&&0===o&&0===s)return new Uint32Array(0);if(0===n&&0===o)return i;if(0===o&&0===s)return e;let r=new Uint32Array(n+o+s);null!==e&&r.set(e);for(let e=0;e<o;e++)r[n+e]=t[e];return null!==i&&r.set(i,n+o),r}nestedLanguageTokenize(e,t,i,n){let o=i.languageId,r=i.state,l=s.TokenizationRegistry.get(o);if(!l)return this.enterLanguage(o),this.emit(n,""),r;let a=l.tokenizeEncoded(e,t,r);if(0!==n)for(let e=0,t=a.tokens.length;e<t;e+=2)a.tokens[e]+=n;return this._prependTokens=f._merge(this._prependTokens,this._tokens,a.tokens),this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0,a.endState}finalize(e){return new s.EncodedTokenizationResult(f._merge(this._prependTokens,this._tokens,null),e)}}let m=class e{constructor(e,t,i,n,o){this._configurationService=o,this._languageService=e,this._standaloneThemeService=t,this._languageId=i,this._lexer=n,this._embeddedLanguages=Object.create(null),this.embeddedLoaded=Promise.resolve(void 0);let r=!1;this._tokenizationRegistryListener=s.TokenizationRegistry.onDidChange(e=>{if(r)return;let t=!1;for(let i=0,n=e.changedLanguages.length;i<n;i++){let n=e.changedLanguages[i];if(this._embeddedLanguages[n]){t=!0;break}}t&&(r=!0,s.TokenizationRegistry.fire([this._languageId]),r=!1)}),this._maxTokenizationLineLength=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:this._languageId}),this._configurationService.onDidChangeConfiguration(e=>{e.affectsConfiguration("editor.maxTokenizationLineLength")&&(this._maxTokenizationLineLength=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:this._languageId}))})}dispose(){this._tokenizationRegistryListener.dispose()}getLoadStatus(){let t=[];for(let i in this._embeddedLanguages){let n=s.TokenizationRegistry.get(i);if(n){if(n instanceof e){let e=n.getLoadStatus();!1===e.loaded&&t.push(e.promise)}continue}!s.TokenizationRegistry.isResolved(i)&&t.push(s.TokenizationRegistry.getOrCreate(i))}return 0===t.length?{loaded:!0}:{loaded:!1,promise:Promise.all(t).then(e=>void 0)}}getInitialState(){let e=u.create(null,this._lexer.start);return c.create(e,null)}tokenize(e,t,i){if(e.length>=this._maxTokenizationLineLength)return(0,r.nullTokenize)(this._languageId,i);let n=new g,o=this._tokenize(e,t,i,n);return n.finalize(o)}tokenizeEncoded(e,t,i){if(e.length>=this._maxTokenizationLineLength)return(0,r.nullTokenizeEncoded)(this._languageService.languageIdCodec.encodeLanguageId(this._languageId),i);let n=new f(this._languageService,this._standaloneThemeService.getColorTheme().tokenTheme),o=this._tokenize(e,t,i,n);return n.finalize(o)}_tokenize(e,t,i,n){return i.embeddedLanguageData?this._nestedTokenize(e,t,i,0,n):this._myTokenize(e,t,i,0,n)}_findLeavingNestedLanguageOffset(e,t){let i=this._lexer.tokenizer[t.stack.state];if(!i&&!(i=l.findRules(this._lexer,t.stack.state)))throw l.createError(this._lexer,"tokenizer state is not defined: "+t.stack.state);let n=-1,o=!1;for(let t of i){if(!l.isIAction(t.action)||"@pop"!==t.action.nextEmbedded)continue;o=!0;let i=t.regex,s=t.regex.source;if("^(?:"===s.substr(0,4)&&")"===s.substr(s.length-1,1)){let e=(i.ignoreCase?"i":"")+(i.unicode?"u":"");i=new RegExp(s.substr(4,s.length-5),e)}let r=e.search(i);-1!==r&&(0===r||!t.matchOnlyAtLineStart)&&(-1===n||r<n)&&(n=r)}if(!o)throw l.createError(this._lexer,'no rule containing nextEmbedded: "@pop" in tokenizer embedded state: '+t.stack.state);return n}_nestedTokenize(e,t,i,n,o){let s=this._findLeavingNestedLanguageOffset(e,i);if(-1===s){let s=o.nestedLanguageTokenize(e,t,i.embeddedLanguageData,n);return c.create(i.stack,new h(i.embeddedLanguageData.languageId,s))}let r=e.substring(0,s);r.length>0&&o.nestedLanguageTokenize(r,!1,i.embeddedLanguageData,n);let l=e.substring(s);return this._myTokenize(l,t,i,n+s,o)}_safeRuleName(e){return e?e.name:"(unknown)"}_myTokenize(e,t,i,n,o){o.enterLanguage(this._languageId);let s=e.length,r=t&&this._lexer.includeLF?e+"\n":e,a=r.length,u=i.embeddedLanguageData,d=i.stack,h=0,p=null,g=!0;for(;g||h<a;){let i=h,f=d.depth,m=p?p.groups.length:0,b=d.state,_=null,v=null,C=null,y=null,w=null;if(p){_=p.matches;let e=p.groups.shift();v=e.matched,C=e.action,y=p.rule,0===p.groups.length&&(p=null)}else{if(!g&&h>=a)break;g=!1;let e=this._lexer.tokenizer[b];if(!e&&!(e=l.findRules(this._lexer,b)))throw l.createError(this._lexer,"tokenizer state is not defined: "+b);let t=r.substr(h);for(let i of e)if((0===h||!i.matchOnlyAtLineStart)&&(_=t.match(i.regex))){v=_[0],C=i.action;break}}if(!_&&(_=[""],v=""),!C&&(h<a&&(v=(_=[r.charAt(h)])[0]),C=this._lexer.defaultToken),null===v)break;for(h+=v.length;l.isFuzzyAction(C)&&l.isIAction(C)&&C.test;)C=C.test(v,_,b,h===a);let k=null;if("string"==typeof C||Array.isArray(C))k=C;else if(C.group)k=C.group;else if(null!==C.token&&void 0!==C.token){if(k=C.tokenSubst?l.substituteMatches(this._lexer,C.token,v,_,b):C.token,C.nextEmbedded){if("@pop"===C.nextEmbedded){if(!u)throw l.createError(this._lexer,"cannot pop embedded language if not inside one");u=null}else if(u)throw l.createError(this._lexer,"cannot enter embedded language from within an embedded language");else w=l.substituteMatches(this._lexer,C.nextEmbedded,v,_,b)}if(C.goBack&&(h=Math.max(0,h-C.goBack)),C.switchTo&&"string"==typeof C.switchTo){let e=l.substituteMatches(this._lexer,C.switchTo,v,_,b);if("@"===e[0]&&(e=e.substr(1)),l.findRules(this._lexer,e))d=d.switchTo(e);else throw l.createError(this._lexer,"trying to switch to a state '"+e+"' that is undefined in rule: "+this._safeRuleName(y))}else if(C.transform&&"function"==typeof C.transform)throw l.createError(this._lexer,"action.transform not supported");else if(C.next){if("@push"===C.next){if(d.depth>=this._lexer.maxStack)throw l.createError(this._lexer,"maximum tokenizer stack size reached: ["+d.state+","+d.parent.state+",...]");d=d.push(b)}else if("@pop"===C.next){if(d.depth<=1)throw l.createError(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(y));d=d.pop()}else if("@popall"===C.next)d=d.popall();else{let e=l.substituteMatches(this._lexer,C.next,v,_,b);if("@"===e[0]&&(e=e.substr(1)),l.findRules(this._lexer,e))d=d.push(e);else throw l.createError(this._lexer,"trying to set a next state '"+e+"' that is undefined in rule: "+this._safeRuleName(y))}}C.log&&"string"==typeof C.log&&l.log(this._lexer,this._lexer.languageId+": "+l.substituteMatches(this._lexer,C.log,v,_,b))}if(null===k)throw l.createError(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(y));let S=i=>{let s=this._languageService.getLanguageIdByLanguageName(i)||this._languageService.getLanguageIdByMimeType(i)||i,r=this._getNestedEmbeddedLanguageData(s);if(!(h<a))return c.create(d,r);{let i=e.substr(h);return this._nestedTokenize(i,t,c.create(d,r),n+h,o)}};if(Array.isArray(k)){if(p&&p.groups.length>0)throw l.createError(this._lexer,"groups cannot be nested: "+this._safeRuleName(y));if(_.length!==k.length+1)throw l.createError(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(y));let e=0;for(let t=1;t<_.length;t++)e+=_[t].length;if(e!==v.length)throw l.createError(this._lexer,"with groups, all characters should be matched in consecutive groups in rule: "+this._safeRuleName(y));p={rule:y,matches:_,groups:[]};for(let e=0;e<k.length;e++)p.groups[e]={action:k[e],matched:_[e+1]};h-=v.length;continue}{if("@rematch"===k&&(h-=v.length,v="",_=null,k="",null!==w))return S(w);if(0===v.length){if(0===a||f!==d.depth||b!==d.state||(p?p.groups.length:0)!==m)continue;throw l.createError(this._lexer,"no progress in tokenizer in rule: "+this._safeRuleName(y))}let e=null;if(l.isString(k)&&0===k.indexOf("@brackets")){let t=k.substr(9),i=function(e,t){if(!t)return null;for(let i of(t=l.fixCase(e,t),e.brackets)){if(i.open===t)return{token:i.token,bracketType:1};if(i.close===t)return{token:i.token,bracketType:-1}}return null}(this._lexer,v);if(!i)throw l.createError(this._lexer,"@brackets token returned but no bracket defined as: "+v);e=l.sanitize(i.token+t)}else{let t=""===k?"":k+this._lexer.tokenPostfix;e=l.sanitize(t)}i<s&&o.emit(i+n,e)}if(null!==w)return S(w)}return c.create(d,u)}_getNestedEmbeddedLanguageData(e){if(!this._languageService.isRegisteredLanguageId(e))return new h(e,r.NullState);e!==this._languageId&&(s.TokenizationRegistry.getOrCreate(e),this._embeddedLanguages[e]=!0);let t=s.TokenizationRegistry.get(e);return t?new h(e,t.getInitialState()):new h(e,r.NullState)}};m=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(n=4,o=a.IConfigurationService,function(e,t){o(e,t,4)})],m)},336588:function(e,t,i){"use strict";let n,o;i.r(t);var s=i("299334"),r=Object.defineProperty,l=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,d=(e,t,i,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of a(t))!u.call(e,o)&&o!==i&&r(e,o,{get:()=>t[o],enumerable:!(n=l(t,o))||n.enumerable});return e},h={};d(h,n=s,"default"),o&&d(o,n,"default");var c=class{_onDidChange=new h.Emitter;_diagnosticsOptions;_modeConfiguration;_languageId;constructor(e,t,i){this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},p=new c("json",{validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},{documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0});h.languages.json={jsonDefaults:p};h.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]}),h.languages.onLanguage("json",()=>{Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310")]).then(i.bind(i,"42410")).then(e=>e.setupMode(p))})},588635:function(e,t,i){"use strict";i.r(t),i.d(t,{MenuService:function(){return f}});var n=i("467518"),o=i("916904"),s=i("919527"),r=i("351553"),l=i("326896"),a=i("549436"),u=i("431453"),d=i("243692"),h=i("603868"),c=i("708339"),p=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},g=function(e,t){return function(i,n){t(i,n,e)}};let f=class{constructor(e,t){this._commandService=e,this._hiddenStates=new m(t)}createMenu(e,t,i){return new b(e,this._hiddenStates,Object.assign({emitEventsForSubmenuChanges:!1,eventDebounceDelay:50},i),this._commandService,t,this)}};f=p([g(0,l.ICommandService),g(1,d.IStorageService)],f);let m=class e{constructor(t){this._storageService=t,this._disposables=new s.DisposableStore,this._onDidChange=new o.Emitter,this.onDidChange=this._onDidChange.event,this._ignoreChangeEvent=!1;try{let i=t.get(e._key,0,"{}");this._data=JSON.parse(i)}catch(e){this._data=Object.create(null)}this._disposables.add(t.onDidChangeValue(i=>{if(i.key===e._key){if(!this._ignoreChangeEvent)try{let i=t.get(e._key,0,"{}");this._data=JSON.parse(i)}catch(e){console.log("FAILED to read storage after UPDATE",e)}this._onDidChange.fire()}}))}dispose(){this._onDidChange.dispose(),this._disposables.dispose()}isHidden(e,t){var i,n;return null!==(n=null===(i=this._data[e.id])||void 0===i?void 0:i.includes(t))&&void 0!==n&&n}updateHidden(e,t,i){let n=this._data[e.id];if(i)n?0>n.indexOf(t)&&n.push(t):this._data[e.id]=[t];else if(n){let i=n.indexOf(t);i>=0&&(0,h.removeFastWithoutKeepingOrder)(n,i),0===n.length&&delete this._data[e.id]}this._persist()}_persist(){try{this._ignoreChangeEvent=!0;let t=JSON.stringify(this._data);this._storageService.store(e._key,t,0,0)}finally{this._ignoreChangeEvent=!1}}};m._key="menu.hiddenCommands",m=p([g(0,d.IStorageService)],m);let b=class e{constructor(e,t,i,l,a,u){this._id=e,this._hiddenStates=t,this._options=i,this._commandService=l,this._contextKeyService=a,this._menuService=u,this._disposables=new s.DisposableStore,this._menuGroups=[],this._contextKeys=new Set,this._build();let d=new n.RunOnceScheduler(()=>{this._build(),this._onDidChange.fire(this)},i.eventDebounceDelay);this._disposables.add(d),this._disposables.add(r.MenuRegistry.onDidChangeMenu(t=>{t.has(e)&&d.schedule()}));let h=this._disposables.add(new s.DisposableStore);this._onDidChange=new o.Emitter({onFirstListenerAdd:()=>{let e=new n.RunOnceScheduler(()=>this._onDidChange.fire(this),i.eventDebounceDelay);h.add(e),h.add(a.onDidChangeContext(t=>{t.affectsSome(this._contextKeys)&&e.schedule()})),h.add(t.onDidChange(()=>{e.schedule()}))},onLastListenerRemove:h.clear.bind(h)}),this.onDidChange=this._onDidChange.event}dispose(){this._disposables.dispose(),this._onDidChange.dispose()}_build(){let t;this._menuGroups.length=0,this._contextKeys.clear();let i=r.MenuRegistry.getMenuItems(this._id);for(let n of(i.sort(e._compareMenuItems),i)){let e=n.group||"";(!t||t[0]!==e)&&(t=[e,[]],this._menuGroups.push(t)),t[1].push(n),this._collectContextKeys(n)}}_collectContextKeys(t){if(e._fillInKbExprKeys(t.when,this._contextKeys),(0,r.isIMenuItem)(t)){if(t.command.precondition&&e._fillInKbExprKeys(t.command.precondition,this._contextKeys),t.command.toggled){let i=t.command.toggled.condition||t.command.toggled;e._fillInKbExprKeys(i,this._contextKeys)}}else this._options.emitEventsForSubmenuChanges&&r.MenuRegistry.getMenuItems(t.submenu).forEach(this._collectContextKeys,this)}getActions(e){let t=[],i=[];for(let n of this._menuGroups){let[o,s]=n,l=[],a=[];for(let t of s)if(this._contextKeyService.contextMatchesRules(t.when)){let i;if((0,r.isIMenuItem)(t)){let n=function(e,t,i){let n=`${e.id}/${t.id}`,o="string"==typeof t.title?t.title:t.title.value,s=(0,u.toAction)({id:n,label:(0,c.localize)("hide.label","Hide '{0}'",o),run(){i.updateHidden(e,t.id,!0)}}),r=(0,u.toAction)({id:n,label:o,get checked(){return!i.isHidden(e,t.id)},run(){let n=!i.isHidden(e,t.id);i.updateHidden(e,t.id,n)}});return{hide:s,toggle:r,get isHidden(){return!r.checked}}}(this._id,t.command,this._hiddenStates);i=new r.MenuItemAction(t.command,t.alt,e,n,this._contextKeyService,this._commandService)}else 0===(i=new r.SubmenuItemAction(t,this._menuService,this._contextKeyService,e)).actions.length&&(i.dispose(),i=void 0);i&&a.push(i)}a.length>0&&t.push([o,a]),l.length>0&&i.push(l)}return t}static _fillInKbExprKeys(e,t){if(e)for(let i of e.keys())t.add(i)}static _compareMenuItems(t,i){let n=t.group,o=i.group;if(n!==o){if(!n)return 1;if(!o)return -1;if("navigation"===n)return -1;if("navigation"===o)return 1;let e=n.localeCompare(o);if(0!==e)return e}let s=t.order||0,l=i.order||0;return s<l?-1:s>l?1:e._compareTitles((0,r.isIMenuItem)(t)?t.command.title:t.title,(0,r.isIMenuItem)(i)?i.command.title:i.title)}static _compareTitles(e,t){let i="string"==typeof e?e:e.original,n="string"==typeof t?t:t.original;return i.localeCompare(n)}};b=p([g(3,l.ICommandService),g(4,a.IContextKeyService),g(5,r.IMenuService)],b)},664641:function(e,t,i){"use strict";i.r(t),i.d(t,{IDialogService:function(){return n}});let n=(0,i("706301").createDecorator)("dialogService")},296709:function(e,t,i){"use strict";let n;i.r(t),i.d(t,{ContextScopedFindInput:function(){return _},ContextScopedReplaceInput:function(){return v},historyNavigationVisible:function(){return c}});var o=i("720184"),s=i("778853"),r=i("549436"),l=i("187528"),a=i("708339"),u=i("919527"),d=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},h=function(e,t){return function(i,n){t(i,n,e)}};let c=new r.RawContextKey("suggestWidgetVisible",!1,(0,a.localize)("suggestWidgetVisible","Whether suggestion are visible")),p="historyNavigationWidgetFocus",g="historyNavigationForwardsEnabled",f="historyNavigationBackwardsEnabled";let m=[];function b(e,t){if(m.includes(t))throw Error("Cannot register the same widget multiple times");m.push(t);let i=new u.DisposableStore,o=i.add(e.createScoped(t.element)),s=new r.RawContextKey(p,!1).bindTo(o),l=new r.RawContextKey(g,!0).bindTo(o),a=new r.RawContextKey(f,!0).bindTo(o),d=()=>{s.set(!0),n=t},h=()=>{s.set(!1),n===t&&(n=void 0)};return t.element===document.activeElement&&d(),i.add(t.onDidFocus(()=>d())),i.add(t.onDidBlur(()=>h())),i.add((0,u.toDisposable)(()=>{m.splice(m.indexOf(t),1),h()})),{scopedContextKeyService:o,historyNavigationForwardsEnablement:l,historyNavigationBackwardsEnablement:a,dispose(){i.dispose()}}}let _=class extends o.FindInput{constructor(e,t,i,n,o=!1){super(e,t,o,i),this._register(b(n,this.inputBox))}};_=d([h(3,r.IContextKeyService)],_);let v=class extends s.ReplaceInput{constructor(e,t,i,n,o=!1){super(e,t,o,i),this._register(b(n,this.inputBox))}};v=d([h(3,r.IContextKeyService)],v),l.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:r.ContextKeyExpr.and(r.ContextKeyExpr.has(p),r.ContextKeyExpr.equals(f,!0),c.isEqualTo(!1)),primary:16,secondary:[528],handler:e=>{n&&n.showPreviousValue()}}),l.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:r.ContextKeyExpr.and(r.ContextKeyExpr.has(p),r.ContextKeyExpr.equals(g,!0),c.isEqualTo(!1)),primary:18,secondary:[530],handler:e=>{n&&n.showNextValue()}})},384193:function(e,t,i){"use strict";i.r(t),i.d(t,{ServiceCollection:function(){return n}});class n{constructor(...e){for(let[t,i]of(this._entries=new Map,e))this.set(t,i)}set(e,t){let i=this._entries.get(e);return this._entries.set(e,t),i}get(e){return this._entries.get(e)}}},809064:function(e,t,i){"use strict";i.r(t),i.d(t,{BaseResolvedKeybinding:function(){return r}});var n=i("161111"),o=i("102881"),s=i("210109");class r extends s.ResolvedKeybinding{constructor(e,t){if(super(),0===t.length)throw(0,n.illegalArgument)("parts");this._os=e,this._parts=t}getLabel(){return o.UILabelProvider.toLabel(this._os,this._parts,e=>this._getLabel(e))}getAriaLabel(){return o.AriaLabelProvider.toLabel(this._os,this._parts,e=>this._getAriaLabel(e))}getElectronAccelerator(){return this._parts.length>1||this._parts[0].isDuplicateModifierCase()?null:o.ElectronAcceleratorLabelProvider.toLabel(this._os,this._parts,e=>this._getElectronAccelerator(e))}isChord(){return this._parts.length>1}getParts(){return this._parts.map(e=>this._getPart(e))}_getPart(e){return new s.ResolvedKeybindingPart(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,this._getLabel(e),this._getAriaLabel(e))}getDispatchParts(){return this._parts.map(e=>this._getDispatchPart(e))}getSingleModifierDispatchParts(){return this._parts.map(e=>this._getSingleModifierDispatchPart(e))}}},297669:function(e,t,i){"use strict";i.r(t),i.d(t,{INotificationService:function(){return r},NoOpNotification:function(){return l},Severity:function(){return s}});var n=i("596608"),o=i("706301"),s=n.default;let r=(0,o.createDecorator)("notificationService");class l{}},112721:function(e,t,i){"use strict";i.r(t),i.d(t,{Registry:function(){return s}});var n=i("733665"),o=i("744138");let s=new class e{constructor(){this.data=new Map}add(e,t){n.ok(o.isString(e)),n.ok(o.isObject(t)),n.ok(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)}as(e){return this.data.get(e)||null}}},338842:function(e,t,i){"use strict";i.r(t),i.d(t,{getIconRegistry:function(){return b},registerIcon:function(){return m},widgetClose:function(){return y}});var n,o,s,r=i("467518"),l=i("871628"),a=i("916904"),u=i("744138"),d=i("938505"),h=i("708339"),c=i("629711"),p=i("112721"),g=i("439703");(o||(o={})).getDefinition=function(e,t){let i=e.defaults;for(;g.ThemeIcon.isThemeIcon(i);){let e=f.getIcon(i.id);if(!e)return;i=e.defaults}return i},(n=s||(s={})).toJSONObject=function(e){return{weight:e.weight,style:e.style,src:e.src.map(e=>({format:e.format,location:e.location.toString()}))}},n.fromJSONObject=function(e){let t=e=>(0,u.isString)(e)?e:void 0;if(e&&Array.isArray(e.src)&&e.src.every(e=>(0,u.isString)(e.format)&&(0,u.isString)(e.location)))return{weight:t(e.weight),style:t(e.style),src:e.src.map(e=>({format:e.format,location:d.URI.parse(e.location)}))}};let f=new class e{constructor(){this._onDidChange=new a.Emitter,this.onDidChange=this._onDidChange.event,this.iconSchema={definitions:{icons:{type:"object",properties:{fontId:{type:"string",description:(0,h.localize)("iconDefinition.fontId","The id of the font to use. If not set, the font that is defined first is used.")},fontCharacter:{type:"string",description:(0,h.localize)("iconDefinition.fontCharacter","The font character associated with the icon definition.")}},additionalProperties:!1,defaultSnippets:[{body:{fontCharacter:"\\\\e030"}}]}},type:"object",properties:{}},this.iconReferenceSchema={type:"string",pattern:`^${l.CSSIcon.iconNameExpression}$`,enum:[],enumDescriptions:[]},this.iconsById={},this.iconFontsById={}}registerIcon(e,t,i,n){let o=this.iconsById[e];if(o){if(i&&!o.description){o.description=i,this.iconSchema.properties[e].markdownDescription=`${i} $(${e})`;let t=this.iconReferenceSchema.enum.indexOf(e);-1!==t&&(this.iconReferenceSchema.enumDescriptions[t]=i),this._onDidChange.fire()}return o}this.iconsById[e]={id:e,description:i,defaults:t,deprecationMessage:n};let s={$ref:"#/definitions/icons"};return n&&(s.deprecationMessage=n),i&&(s.markdownDescription=`${i}: $(${e})`),this.iconSchema.properties[e]=s,this.iconReferenceSchema.enum.push(e),this.iconReferenceSchema.enumDescriptions.push(i||""),this._onDidChange.fire(),{id:e}}getIcons(){return Object.keys(this.iconsById).map(e=>this.iconsById[e])}getIcon(e){return this.iconsById[e]}getIconSchema(){return this.iconSchema}toString(){let e=(e,t)=>e.id.localeCompare(t.id),t=e=>{for(;g.ThemeIcon.isThemeIcon(e.defaults);)e=this.iconsById[e.defaults.id];return`codicon codicon-${e?e.id:""}`},i=[];i.push("| preview | identifier | default codicon ID | description"),i.push("| ----------- | --------------------------------- | --------------------------------- | --------------------------------- |");let n=Object.keys(this.iconsById).map(e=>this.iconsById[e]);for(let o of n.filter(e=>!!e.description).sort(e))i.push(`|<i class="${t(o)}"></i>|${o.id}|${g.ThemeIcon.isThemeIcon(o.defaults)?o.defaults.id:o.id}|${o.description||""}|`);for(let o of(i.push("| preview | identifier "),i.push("| ----------- | --------------------------------- |"),n.filter(e=>!g.ThemeIcon.isThemeIcon(e.defaults)).sort(e)))i.push(`|<i class="${t(o)}"></i>|${o.id}|`);return i.join("\n")}};function m(e,t,i,n){return f.registerIcon(e,t,i,n)}function b(){return f}p.Registry.add("base.contributions.icons",f);!function(){for(let e of l.Codicon.getAll())f.registerIcon(e.id,e.definition,e.description)}();let _="vscode://schemas/icons",v=p.Registry.as(c.Extensions.JSONContribution);v.registerSchema(_,f.getIconSchema());let C=new r.RunOnceScheduler(()=>v.notifySchemaChanged(_),200);f.onDidChange(()=>{!C.isScheduled()&&C.schedule()});let y=m("widget-close",l.Codicon.close,(0,h.localize)("widgetClose","Icon for the close action in widgets."));m("goto-previous-location",l.Codicon.arrowUp,(0,h.localize)("previousChangeIcon","Icon for goto previous editor location.")),m("goto-next-location",l.Codicon.arrowDown,(0,h.localize)("nextChangeIcon","Icon for goto next editor location.")),g.ThemeIcon.modify(l.Codicon.sync,"spin"),g.ThemeIcon.modify(l.Codicon.loading,"spin")},117882:function(e,t,i){"use strict";i.r(t),i.d(t,{attachBadgeStyler:function(){return r},attachListStyler:function(){return l},attachMenuStyler:function(){return d},computeStyles:function(){return o},defaultListStyles:function(){return a}});var n=i("897085");function o(e,t){let i=Object.create(null);for(let o in t){let s=t[o];s&&(i[o]=(0,n.resolveColorValue)(s,e))}return i}function s(e,t,i){function n(){let n=o(e.getColorTheme(),t);"function"==typeof i?i(n):i.style(n)}return n(),e.onDidColorThemeChange(n)}function r(e,t,i){return s(t,{badgeBackground:(null==i?void 0:i.badgeBackground)||n.badgeBackground,badgeForeground:(null==i?void 0:i.badgeForeground)||n.badgeForeground,badgeBorder:n.contrastBorder},e)}function l(e,t,i){return s(t,Object.assign(Object.assign({},a),i||{}),e)}let a={listFocusBackground:n.listFocusBackground,listFocusForeground:n.listFocusForeground,listFocusOutline:n.listFocusOutline,listActiveSelectionBackground:n.listActiveSelectionBackground,listActiveSelectionForeground:n.listActiveSelectionForeground,listActiveSelectionIconForeground:n.listActiveSelectionIconForeground,listFocusAndSelectionOutline:n.listFocusAndSelectionOutline,listFocusAndSelectionBackground:n.listActiveSelectionBackground,listFocusAndSelectionForeground:n.listActiveSelectionForeground,listInactiveSelectionBackground:n.listInactiveSelectionBackground,listInactiveSelectionIconForeground:n.listInactiveSelectionIconForeground,listInactiveSelectionForeground:n.listInactiveSelectionForeground,listInactiveFocusBackground:n.listInactiveFocusBackground,listInactiveFocusOutline:n.listInactiveFocusOutline,listHoverBackground:n.listHoverBackground,listHoverForeground:n.listHoverForeground,listDropBackground:n.listDropBackground,listSelectionOutline:n.activeContrastBorder,listHoverOutline:n.activeContrastBorder,listFilterWidgetBackground:n.listFilterWidgetBackground,listFilterWidgetOutline:n.listFilterWidgetOutline,listFilterWidgetNoMatchesOutline:n.listFilterWidgetNoMatchesOutline,listFilterWidgetShadow:n.listFilterWidgetShadow,treeIndentGuidesStroke:n.treeIndentGuidesStroke,tableColumnsBorder:n.tableColumnsBorder,tableOddRowsBackgroundColor:n.tableOddRowsBackgroundColor,inputActiveOptionBorder:n.inputActiveOptionBorder,inputActiveOptionForeground:n.inputActiveOptionForeground,inputActiveOptionBackground:n.inputActiveOptionBackground,inputBackground:n.inputBackground,inputForeground:n.inputForeground,inputBorder:n.inputBorder,inputValidationInfoBackground:n.inputValidationInfoBackground,inputValidationInfoForeground:n.inputValidationInfoForeground,inputValidationInfoBorder:n.inputValidationInfoBorder,inputValidationWarningBackground:n.inputValidationWarningBackground,inputValidationWarningForeground:n.inputValidationWarningForeground,inputValidationWarningBorder:n.inputValidationWarningBorder,inputValidationErrorBackground:n.inputValidationErrorBackground,inputValidationErrorForeground:n.inputValidationErrorForeground,inputValidationErrorBorder:n.inputValidationErrorBorder},u={shadowColor:n.widgetShadow,borderColor:n.menuBorder,foregroundColor:n.menuForeground,backgroundColor:n.menuBackground,selectionForegroundColor:n.menuSelectionForeground,selectionBackgroundColor:n.menuSelectionBackground,selectionBorderColor:n.menuSelectionBorder,separatorColor:n.menuSeparatorBackground,scrollbarShadow:n.scrollbarShadow,scrollbarSliderBackground:n.scrollbarSliderBackground,scrollbarSliderHoverBackground:n.scrollbarSliderHoverBackground,scrollbarSliderActiveBackground:n.scrollbarSliderActiveBackground};function d(e,t,i){return s(t,Object.assign(Object.assign({},u),i),e)}},398306:function(e){},384542:function(e){},891234:function(e){},855600:function(e){},960957:function(e){},543087:function(e){},198255:function(e){},241163:function(e){}}]);
|
|
1
|
+
/*! For license information please see monaco-13.cc63a6b1.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunk_rsdoctor_client=self.webpackChunk_rsdoctor_client||[]).push([["606"],{863307:function(e,t,i){"use strict";i.r(t),i.d(t,{renderMarkdown:function(){return w}});var n=i("409737"),o=i("293665"),s=i("449697"),r=i("251661"),l=i("919219"),a=i("572740"),u=i("161111"),d=i("916904"),h=i("670691"),c=i("947578"),p=i("520467"),g=i("919527"),f=i("878427"),m=i("703751"),b=i("24342"),_=i("500777"),v=i("437454"),C=i("266763"),y=i("938505");function w(e,t={},i={}){var o;let v=new g.DisposableStore,w=!1,x=(0,r.createElement)(t),I=function(t){let i;try{i=(0,m.parse)(decodeURIComponent(t))}catch(e){}return i?encodeURIComponent(JSON.stringify(i=(0,_.cloneAndChange)(i,t=>e.uris&&e.uris[t]?y.URI.revive(e.uris[t]):void 0))):t},L=function(t,i){let n=e.uris&&e.uris[t],o=y.URI.revive(n);if(i)return t.startsWith(b.Schemas.data+":")?t:(!o&&(o=y.URI.parse(t)),b.FileAccess.asBrowserUri(o).toString(!0));return o&&y.URI.parse(t).toString()!==o.toString()?(o.query&&(o=o.with({query:I(o.query)})),o.toString()):t},E=new f.marked.Renderer;E.image=(e,t,i)=>{let n=[],o=[];return e&&({href:e,dimensions:n}=(0,h.parseHrefAndDimensions)(e),o.push(`src="${(0,h.escapeDoubleQuotes)(e)}"`)),i&&o.push(`alt="${(0,h.escapeDoubleQuotes)(i)}"`),t&&o.push(`title="${(0,h.escapeDoubleQuotes)(t)}"`),n.length&&(o=o.concat(n)),"<img "+o.join(" ")+">"},E.link=(e,t,i)=>"string"!=typeof e?"":(e===i&&(i=(0,h.removeMarkdownEscapes)(i)),t="string"==typeof t?(0,h.escapeDoubleQuotes)((0,h.removeMarkdownEscapes)(t)):"",e=(e=(0,h.removeMarkdownEscapes)(e)).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),`<a href="${e}" title="${t||e}">${i}</a>`),E.paragraph=e=>`<p>${e}</p>`;let T=[];if(t.codeBlockRenderer&&(E.code=(e,i)=>{let n=p.defaultGenerator.nextId(),o=t.codeBlockRenderer(null!=i?i:"",e);return T.push(o.then(e=>[n,e])),`<div class="code" data-code="${n}">${(0,C.escape)(e)}</div>`}),t.actionHandler){let i=t.actionHandler.disposables.add(new s.DomEmitter(x,"click")),n=t.actionHandler.disposables.add(new s.DomEmitter(x,"auxclick"));t.actionHandler.disposables.add(d.Event.any(i.event,n.event)(i=>{let n=new l.StandardMouseEvent(i);if(!n.leftButton&&!n.middleButton)return;let o=n.target;if("A"===o.tagName||!!(o=o.parentElement)&&"A"===o.tagName)try{let i=o.dataset.href;i&&(e.baseUri&&(i=k(y.URI.from(e.baseUri),i)),t.actionHandler.callback(i,n))}catch(e){(0,u.onUnexpectedError)(e)}finally{n.preventDefault()}}))}!e.supportHtml&&(i.sanitizer=t=>(e.isTrusted?t.match(/^(<span[^>]+>)|(<\/\s*span>)$/):void 0)?t:"",i.sanitize=!0,i.silent=!0),i.renderer=E;let N=null!==(o=e.value)&&void 0!==o?o:"";N.length>1e5&&(N=`${N.substr(0,1e5)}\u{2026}`),e.supportThemeIcons&&(N=(0,c.markdownEscapeEscapedIcons)(N));let D=f.marked.parse(N,i);e.supportThemeIcons&&(D=(0,a.renderLabelWithIcons)(D).map(e=>"string"==typeof e?e:e.outerHTML).join(""));let M=new DOMParser().parseFromString(S(e,D),"text/html");if(M.body.querySelectorAll("img").forEach(t=>{let i=t.getAttribute("src");if(i){let n=i;try{e.baseUri&&(n=k(y.URI.from(e.baseUri),n))}catch(e){}t.src=L(n,!0)}}),M.body.querySelectorAll("a").forEach(t=>{let i=t.getAttribute("href");if(t.setAttribute("href",""),!i||/^data:|javascript:/i.test(i)||/^command:/i.test(i)&&!e.isTrusted||/^command:(\/\/\/)?_workbench\.downloadResource/i.test(i))t.replaceWith(...t.childNodes);else{let n=L(i,!1);e.baseUri&&(n=k(y.URI.from(e.baseUri),i)),t.dataset.href=n}}),x.innerHTML=S(e,M.body.innerHTML),T.length>0&&Promise.all(T).then(e=>{var i,o;if(w)return;let s=new Map(e);for(let e of x.querySelectorAll("div[data-code]")){let t=s.get(null!==(i=e.dataset.code)&&void 0!==i?i:"");t&&n.reset(e,t)}null===(o=t.asyncRenderCallback)||void 0===o||o.call(t)}),t.asyncRenderCallback)for(let e of x.getElementsByTagName("img")){let i=v.add(n.addDisposableListener(e,"load",()=>{i.dispose(),t.asyncRenderCallback()}))}return{element:x,dispose:()=>{w=!0,v.dispose()}}}function k(e,t){return/^\w[\w\d+.-]*:/.test(t)?t:e.path.endsWith("/")?(0,v.resolvePath)(e,t).toString():(0,v.resolvePath)((0,v.dirname)(e),t).toString()}function S(e,t){let{config:i,allowedSchemes:s}=function(e){let t=[b.Schemas.http,b.Schemas.https,b.Schemas.mailto,b.Schemas.data,b.Schemas.file,b.Schemas.vscodeFileResource,b.Schemas.vscodeRemote,b.Schemas.vscodeRemoteResource];return e.isTrusted&&t.push(b.Schemas.command),{config:{ALLOWED_TAGS:["ul","li","p","b","i","code","blockquote","ol","h1","h2","h3","h4","h5","h6","hr","em","pre","table","thead","tbody","tr","th","td","div","del","a","strong","br","img","span"],ALLOWED_ATTR:["href","data-href","target","title","src","alt","class","style","data-code","width","height","align"],ALLOW_UNKNOWN_PROTOCOLS:!0},allowedSchemes:t}}(e);o.addHook("uponSanitizeAttribute",(e,t)=>{if("style"===t.attrName||"class"===t.attrName){if("SPAN"===e.tagName){if("style"===t.attrName){t.keepAttr=/^(color\:#[0-9a-fA-F]+;)?(background-color\:#[0-9a-fA-F]+;)?$/.test(t.attrValue);return}if("class"===t.attrName){t.keepAttr=/^codicon codicon-[a-z\-]+( codicon-modifier-[a-z\-]+)?$/.test(t.attrValue);return}}t.keepAttr=!1;return}});let r=n.hookDomPurifyHrefAndSrcSanitizer(s);try{return o.sanitize(t,Object.assign(Object.assign({},i),{RETURN_TRUSTED_TYPE:!0}))}finally{o.removeHook("uponSanitizeAttribute"),r.dispose()}}},919219:function(e,t,i){"use strict";i.r(t),i.d(t,{StandardMouseEvent:function(){return r},StandardWheelEvent:function(){return l}});var n=i("259527"),o=i("53182"),s=i("207875");class r{constructor(e){this.timestamp=Date.now(),this.browserEvent=e,this.leftButton=0===e.button,this.middleButton=1===e.button,this.rightButton=2===e.button,this.buttons=e.buttons,this.target=e.target,this.detail=e.detail||1,"dblclick"===e.type&&(this.detail=2),this.ctrlKey=e.ctrlKey,this.shiftKey=e.shiftKey,this.altKey=e.altKey,this.metaKey=e.metaKey,"number"==typeof e.pageX?(this.posx=e.pageX,this.posy=e.pageY):(this.posx=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,this.posy=e.clientY+document.body.scrollTop+document.documentElement.scrollTop);let t=o.IframeUtils.getPositionOfChildWindowRelativeToAncestorWindow(self,e.view);this.posx-=t.left,this.posy-=t.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}}class l{constructor(e,t=0,i=0){this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=i,this.deltaX=t,e&&(void 0!==e.wheelDeltaY?this.deltaY=e.wheelDeltaY/120:void 0!==e.VERTICAL_AXIS&&e.axis===e.VERTICAL_AXIS?this.deltaY=-e.detail/3:"wheel"===e.type&&(e.deltaMode===e.DOM_DELTA_LINE?n.isFirefox&&!s.isMacintosh?this.deltaY=-e.deltaY/3:this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40),void 0!==e.wheelDeltaX?n.isSafari&&s.isWindows?this.deltaX=-(e.wheelDeltaX/120):this.deltaX=e.wheelDeltaX/120:void 0!==e.HORIZONTAL_AXIS&&e.axis===e.HORIZONTAL_AXIS?this.deltaX=-e.detail/3:"wheel"===e.type&&(e.deltaMode===e.DOM_DELTA_LINE?n.isFirefox&&!s.isMacintosh?this.deltaX=-e.deltaX/3:this.deltaX=-e.deltaX:this.deltaX=-e.deltaX/40),0===this.deltaY&&0===this.deltaX&&e.wheelDelta&&(this.deltaY=e.wheelDelta/120))}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation()}}},720184:function(e,t,i){"use strict";i.r(t),i.d(t,{FindInput:function(){return u}});var n=i("409737"),o=i("25806"),s=i("785710"),r=i("795832"),l=i("916904");i("411249");let a=i("708339").localize("defaultLabel","input");class u extends r.Widget{constructor(e,t,i,r){var u;super(),this._showOptionButtons=i,this.fixFocusOnOptionClickEnabled=!0,this.imeSessionInProgress=!1,this.additionalToggles=[],this._onDidOptionChange=this._register(new l.Emitter),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new l.Emitter),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new l.Emitter),this.onMouseDown=this._onMouseDown.event,this._onInput=this._register(new l.Emitter),this._onKeyUp=this._register(new l.Emitter),this._onCaseSensitiveKeyDown=this._register(new l.Emitter),this.onCaseSensitiveKeyDown=this._onCaseSensitiveKeyDown.event,this._onRegexKeyDown=this._register(new l.Emitter),this.onRegexKeyDown=this._onRegexKeyDown.event,this._lastHighlightFindOptions=0,this.contextViewProvider=t,this.placeholder=r.placeholder||"",this.validation=r.validation,this.label=r.label||a,this.inputActiveOptionBorder=r.inputActiveOptionBorder,this.inputActiveOptionForeground=r.inputActiveOptionForeground,this.inputActiveOptionBackground=r.inputActiveOptionBackground,this.inputBackground=r.inputBackground,this.inputForeground=r.inputForeground,this.inputBorder=r.inputBorder,this.inputValidationInfoBorder=r.inputValidationInfoBorder,this.inputValidationInfoBackground=r.inputValidationInfoBackground,this.inputValidationInfoForeground=r.inputValidationInfoForeground,this.inputValidationWarningBorder=r.inputValidationWarningBorder,this.inputValidationWarningBackground=r.inputValidationWarningBackground,this.inputValidationWarningForeground=r.inputValidationWarningForeground,this.inputValidationErrorBorder=r.inputValidationErrorBorder,this.inputValidationErrorBackground=r.inputValidationErrorBackground,this.inputValidationErrorForeground=r.inputValidationErrorForeground;let d=r.appendCaseSensitiveLabel||"",h=r.appendWholeWordsLabel||"",c=r.appendRegexLabel||"",p=r.history||[],g=!!r.flexibleHeight,f=!!r.flexibleWidth,m=r.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new s.HistoryInputBox(this.domNode,this.contextViewProvider,{placeholder:this.placeholder||"",ariaLabel:this.label||"",validationOptions:{validation:this.validation},inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder,history:p,showHistoryHint:r.showHistoryHint,flexibleHeight:g,flexibleWidth:f,flexibleMaxHeight:m})),this.regex=this._register(new o.RegexToggle({appendTitle:c,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.regex.onChange(e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.regex.onKeyDown(e=>{this._onRegexKeyDown.fire(e)})),this.wholeWords=this._register(new o.WholeWordsToggle({appendTitle:h,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.wholeWords.onChange(e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this.caseSensitive=this._register(new o.CaseSensitiveToggle({appendTitle:d,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.caseSensitive.onChange(e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.caseSensitive.onKeyDown(e=>{this._onCaseSensitiveKeyDown.fire(e)}));let b=[this.caseSensitive.domNode,this.wholeWords.domNode,this.regex.domNode];for(let e of(this.onkeydown(this.domNode,e=>{if(e.equals(15)||e.equals(17)||e.equals(9)){let t=b.indexOf(document.activeElement);if(t>=0){let i=-1;e.equals(17)?i=(t+1)%b.length:e.equals(15)&&(i=0===t?b.length-1:t-1),e.equals(9)?(b[t].blur(),this.inputBox.focus()):i>=0&&b[i].focus(),n.EventHelper.stop(e,!0)}}}),this.controls=document.createElement("div"),this.controls.className="controls",this.controls.style.display=this._showOptionButtons?"block":"none",this.controls.appendChild(this.caseSensitive.domNode),this.controls.appendChild(this.wholeWords.domNode),this.controls.appendChild(this.regex.domNode),!this._showOptionButtons&&(this.caseSensitive.domNode.style.display="none",this.wholeWords.domNode.style.display="none",this.regex.domNode.style.display="none"),null!==(u=null==r?void 0:r.additionalToggles)&&void 0!==u?u:[]))this._register(e),this.controls.appendChild(e.domNode),this._register(e.onChange(e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus()})),this.additionalToggles.push(e);this.additionalToggles.length>0&&(this.controls.style.display="block"),this.inputBox.paddingRight=(this._showOptionButtons?this.caseSensitive.width()+this.wholeWords.width()+this.regex.width():0)+this.additionalToggles.reduce((e,t)=>e+t.width(),0),this.domNode.appendChild(this.controls),null==e||e.appendChild(this.domNode),this._register(n.addDisposableListener(this.inputBox.inputElement,"compositionstart",e=>{this.imeSessionInProgress=!0})),this._register(n.addDisposableListener(this.inputBox.inputElement,"compositionend",e=>{this.imeSessionInProgress=!1,this._onInput.fire()})),this.onkeydown(this.inputBox.inputElement,e=>this._onKeyDown.fire(e)),this.onkeyup(this.inputBox.inputElement,e=>this._onKeyUp.fire(e)),this.oninput(this.inputBox.inputElement,e=>this._onInput.fire()),this.onmousedown(this.inputBox.inputElement,e=>this._onMouseDown.fire(e))}get onDidChange(){return this.inputBox.onDidChange}enable(){for(let e of(this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.regex.enable(),this.wholeWords.enable(),this.caseSensitive.enable(),this.additionalToggles))e.enable()}disable(){for(let e of(this.domNode.classList.add("disabled"),this.inputBox.disable(),this.regex.disable(),this.wholeWords.disable(),this.caseSensitive.disable(),this.additionalToggles))e.disable()}setFocusInputOnOptionClick(e){this.fixFocusOnOptionClickEnabled=e}setEnabled(e){e?this.enable():this.disable()}getValue(){return this.inputBox.value}setValue(e){this.inputBox.value!==e&&(this.inputBox.value=e)}style(e){this.inputActiveOptionBorder=e.inputActiveOptionBorder,this.inputActiveOptionForeground=e.inputActiveOptionForeground,this.inputActiveOptionBackground=e.inputActiveOptionBackground,this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()}applyStyles(){if(this.domNode){let e={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground};for(let t of(this.regex.style(e),this.wholeWords.style(e),this.caseSensitive.style(e),this.additionalToggles))t.style(e);let t={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(t)}}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getCaseSensitive(){return this.caseSensitive.checked}setCaseSensitive(e){this.caseSensitive.checked=e}getWholeWords(){return this.wholeWords.checked}setWholeWords(e){this.wholeWords.checked=e}getRegex(){return this.regex.checked}setRegex(e){this.regex.checked=e,this.validate()}focusOnCaseSensitive(){this.caseSensitive.focus()}highlightFindOptions(){this.domNode.classList.remove("highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,this.domNode.classList.add("highlight-"+this._lastHighlightFindOptions)}validate(){this.inputBox.validate()}showMessage(e){this.inputBox.showMessage(e)}clearMessage(){this.inputBox.hideMessage()}}},572740:function(e,t,i){"use strict";i.r(t),i.d(t,{renderLabelWithIcons:function(){return r}});var n=i("409737"),o=i("871628");let s=RegExp(`(\\\\)?\\$\\((${o.CSSIcon.iconNameExpression}(?:${o.CSSIcon.iconModifierExpression})?)\\)`,"g");function r(e){let t;let i=[],r=0,l=0;for(;null!==(t=s.exec(e));){l=t.index||0,i.push(e.substring(r,l)),r=(t.index||0)+t[0].length;let[,s,a]=t;i.push(s?`$(${a})`:function(e){let t=n.$("span");return t.classList.add(...o.CSSIcon.asClassNameArray(e)),t}({id:a}))}return r<e.length&&i.push(e.substring(r)),i}},926573:function(e,t,i){"use strict";i.r(t),i.d(t,{KeybindingLabel:function(){return a}});var n=i("409737"),o=i("102881"),s=i("500777");i("832687");var r=i("708339");let l=n.$;class a{constructor(e,t,i){this.os=t,this.keyElements=new Set,this.options=i||Object.create(null),this.labelBackground=this.options.keybindingLabelBackground,this.labelForeground=this.options.keybindingLabelForeground,this.labelBorder=this.options.keybindingLabelBorder,this.labelBottomBorder=this.options.keybindingLabelBottomBorder,this.labelShadow=this.options.keybindingLabelShadow,this.domNode=n.append(e,l(".monaco-keybinding")),this.didEverRender=!1,e.appendChild(this.domNode)}get element(){return this.domNode}set(e,t){!(this.didEverRender&&this.keybinding===e&&a.areSame(this.matches,t))&&(this.keybinding=e,this.matches=t,this.render())}render(){if(this.clear(),this.keybinding){let[e,t]=this.keybinding.getParts();e&&this.renderPart(this.domNode,e,this.matches?this.matches.firstPart:null),t&&(n.append(this.domNode,l("span.monaco-keybinding-key-chord-separator",void 0," ")),this.renderPart(this.domNode,t,this.matches?this.matches.chordPart:null)),this.domNode.title=this.keybinding.getAriaLabel()||""}else this.options&&this.options.renderUnboundKeybindings&&this.renderUnbound(this.domNode);this.applyStyles(),this.didEverRender=!0}clear(){n.clearNode(this.domNode),this.keyElements.clear()}renderPart(e,t,i){let n=o.UILabelProvider.modifierLabels[this.os];t.ctrlKey&&this.renderKey(e,n.ctrlKey,!!(null==i?void 0:i.ctrlKey),n.separator),t.shiftKey&&this.renderKey(e,n.shiftKey,!!(null==i?void 0:i.shiftKey),n.separator),t.altKey&&this.renderKey(e,n.altKey,!!(null==i?void 0:i.altKey),n.separator),t.metaKey&&this.renderKey(e,n.metaKey,!!(null==i?void 0:i.metaKey),n.separator);let s=t.keyLabel;s&&this.renderKey(e,s,!!(null==i?void 0:i.keyCode),"")}renderKey(e,t,i,o){n.append(e,this.createKeyElement(t,i?".highlight":"")),o&&n.append(e,l("span.monaco-keybinding-key-separator",void 0,o))}renderUnbound(e){n.append(e,this.createKeyElement((0,r.localize)("unbound","Unbound")))}createKeyElement(e,t=""){let i=l("span.monaco-keybinding-key"+t,void 0,e);return this.keyElements.add(i),i}style(e){this.labelBackground=e.keybindingLabelBackground,this.labelForeground=e.keybindingLabelForeground,this.labelBorder=e.keybindingLabelBorder,this.labelBottomBorder=e.keybindingLabelBottomBorder,this.labelShadow=e.keybindingLabelShadow,this.applyStyles()}applyStyles(){var e;if(this.element){for(let t of this.keyElements)this.labelBackground&&(t.style.backgroundColor=null===(e=this.labelBackground)||void 0===e?void 0:e.toString()),this.labelBorder&&(t.style.borderColor=this.labelBorder.toString()),this.labelBottomBorder&&(t.style.borderBottomColor=this.labelBottomBorder.toString()),this.labelShadow&&(t.style.boxShadow=`inset 0 -1px 0 ${this.labelShadow}`);this.labelForeground&&(this.element.style.color=this.labelForeground.toString())}}static areSame(e,t){return e===t||!e&&!t||!!e&&!!t&&(0,s.equals)(e.firstPart,t.firstPart)&&(0,s.equals)(e.chordPart,t.chordPart)}}},785976:function(e,t,i){"use strict";i.r(t),i.d(t,{DataTree:function(){return s}});var n=i("855498"),o=i("203692");class s extends n.AbstractTree{constructor(e,t,i,n,o,s={}){super(e,t,i,n,s),this.user=e,this.dataSource=o,this.identityProvider=s.identityProvider}createModel(e,t,i){return new o.ObjectTreeModel(e,t,i)}}},203692:function(e,t,i){"use strict";i.r(t),i.d(t,{ObjectTreeModel:function(){return r}});var n=i("485142"),o=i("700507"),s=i("780189");class r{constructor(e,t,i={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new n.IndexTreeModel(e,t,null,i),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,i.sorter&&(this.sorter={compare:(e,t)=>i.sorter.compare(e.element,t.element)}),this.identityProvider=i.identityProvider}setChildren(e,t=s.Iterable.empty(),i={}){let n=this.getElementLocation(e);this._setChildren(n,this.preserveCollapseState(t),i)}_setChildren(e,t=s.Iterable.empty(),i){let n=new Set,o=new Set;this.model.splice([...e,0],Number.MAX_VALUE,t,Object.assign(Object.assign({},i),{onDidCreateNode:e=>{var t;if(null!==e.element){if(n.add(e.element),this.nodes.set(e.element,e),this.identityProvider){let t=this.identityProvider.getId(e.element).toString();o.add(t),this.nodesByIdentity.set(t,e)}null===(t=i.onDidCreateNode)||void 0===t||t.call(i,e)}},onDidDeleteNode:e=>{var t;if(null!==e.element){if(!n.has(e.element)&&this.nodes.delete(e.element),this.identityProvider){let t=this.identityProvider.getId(e.element).toString();!o.has(t)&&this.nodesByIdentity.delete(t)}null===(t=i.onDidDeleteNode)||void 0===t||t.call(i,e)}}}))}preserveCollapseState(e=s.Iterable.empty()){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),s.Iterable.map(e,e=>{let t=this.nodes.get(e.element);if(!t&&this.identityProvider){let i=this.identityProvider.getId(e.element).toString();t=this.nodesByIdentity.get(i)}if(!t)return Object.assign(Object.assign({},e),{children:this.preserveCollapseState(e.children)});let i="boolean"==typeof e.collapsible?e.collapsible:t.collapsible,n=void 0!==e.collapsed?e.collapsed:t.collapsed;return Object.assign(Object.assign({},e),{collapsible:i,collapsed:n,children:this.preserveCollapseState(e.children)})})}rerender(e){let t=this.getElementLocation(e);this.model.rerender(t)}getFirstElementChild(e=null){let t=this.getElementLocation(e);return this.model.getFirstElementChild(t)}has(e){return this.nodes.has(e)}getListIndex(e){let t=this.getElementLocation(e);return this.model.getListIndex(t)}getListRenderCount(e){let t=this.getElementLocation(e);return this.model.getListRenderCount(t)}isCollapsible(e){let t=this.getElementLocation(e);return this.model.isCollapsible(t)}setCollapsible(e,t){let i=this.getElementLocation(e);return this.model.setCollapsible(i,t)}isCollapsed(e){let t=this.getElementLocation(e);return this.model.isCollapsed(t)}setCollapsed(e,t,i){let n=this.getElementLocation(e);return this.model.setCollapsed(n,t,i)}expandTo(e){let t=this.getElementLocation(e);this.model.expandTo(t)}refilter(){this.model.refilter()}getNode(e=null){if(null===e)return this.model.getNode(this.model.rootRef);let t=this.nodes.get(e);if(!t)throw new o.TreeError(this.user,`Tree element not found: ${e}`);return t}getNodeLocation(e){return e.element}getParentNodeLocation(e){if(null===e)throw new o.TreeError(this.user,"Invalid getParentNodeLocation call");let t=this.nodes.get(e);if(!t)throw new o.TreeError(this.user,`Tree element not found: ${e}`);let i=this.model.getNodeLocation(t),n=this.model.getParentNodeLocation(i);return this.model.getNode(n).element}getElementLocation(e){if(null===e)return[];let t=this.nodes.get(e);if(!t)throw new o.TreeError(this.user,`Tree element not found: ${e}`);return this.model.getNodeLocation(t)}}},467518:function(e,t,i){"use strict";let n;i.r(t),i.d(t,{AsyncIterableObject:function(){return T},DeferredPromise:function(){return E},Delayer:function(){return C},IdleValue:function(){return L},IntervalTimer:function(){return x},MicrotaskDelay:function(){return v},Promises:function(){return s},RunOnceScheduler:function(){return I},ThrottledDelayer:function(){return y},TimeoutTimer:function(){return S},createCancelableAsyncIterable:function(){return D},createCancelablePromise:function(){return g},disposableTimeout:function(){return w},first:function(){return k},isThenable:function(){return p},raceCancellation:function(){return f},runWhenIdle:function(){return n},timeout:function(){return function e(t,i){return i?new Promise((e,n)=>{let o=setTimeout(()=>{s.dispose(),e()},t),s=i.onCancellationRequested(()=>{clearTimeout(o),s.dispose(),n(new l.CancellationError)})}):g(i=>e(t,i))}}});var o,s,r=i("500862"),l=i("161111"),a=i("916904"),u=i("919527"),d=i("207875"),h=function(e,t,i,n){return new(i||(i=Promise))(function(o,s){function r(e){try{a(n.next(e))}catch(e){s(e)}}function l(e){try{a(n.throw(e))}catch(e){s(e)}}function a(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(r,l)}a((n=n.apply(e,t||[])).next())})},c=function(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,i=e[Symbol.asyncIterator];return i?i.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(i){t[i]=e[i]&&function(t){return new Promise(function(n,o){(function(e,t,i,n){Promise.resolve(n).then(function(t){e({value:t,done:i})},t)})(n,o,(t=e[i](t)).done,t.value)})}}};function p(e){return!!e&&"function"==typeof e.then}function g(e){let t=new r.CancellationTokenSource,i=e(t.token),n=new Promise((e,n)=>{let o=t.token.onCancellationRequested(()=>{o.dispose(),t.dispose(),n(new l.CancellationError)});Promise.resolve(i).then(i=>{o.dispose(),t.dispose(),e(i)},e=>{o.dispose(),t.dispose(),n(e)})});return new class{cancel(){t.cancel()}then(e,t){return n.then(e,t)}catch(e){return this.then(void 0,e)}finally(e){return n.finally(e)}}}function f(e,t,i){return new Promise((n,o)=>{let s=t.onCancellationRequested(()=>{s.dispose(),n(i)});e.then(n,o).finally(()=>s.dispose())})}class m{constructor(){this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(e){if(this.activePromise){if(this.queuedPromiseFactory=e,!this.queuedPromise){let e=()=>{this.queuedPromise=null;let e=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,e};this.queuedPromise=new Promise(t=>{this.activePromise.then(e,e).then(t)})}return new Promise((e,t)=>{this.queuedPromise.then(e,t)})}return this.activePromise=e(),new Promise((e,t)=>{this.activePromise.then(t=>{this.activePromise=null,e(t)},e=>{this.activePromise=null,t(e)})})}}let b=(e,t)=>{let i=!0,n=setTimeout(()=>{i=!1,t()},e);return{isTriggered:()=>i,dispose:()=>{clearTimeout(n),i=!1}}},_=e=>{let t=!0;return queueMicrotask(()=>{t&&(t=!1,e())}),{isTriggered:()=>t,dispose:()=>{t=!1}}},v=Symbol("MicrotaskDelay");class C{constructor(e){this.defaultDelay=e,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(e,t=this.defaultDelay){this.task=e,this.cancelTimeout(),!this.completionPromise&&(this.completionPromise=new Promise((e,t)=>{this.doResolve=e,this.doReject=t}).then(()=>{if(this.completionPromise=null,this.doResolve=null,this.task){let e=this.task;return this.task=null,e()}}));let i=()=>{var e;this.deferred=null,null===(e=this.doResolve)||void 0===e||e.call(this,null)};return this.deferred=t===v?_(i):b(t,i),this.completionPromise}isTriggered(){var e;return!!(null===(e=this.deferred)||void 0===e?void 0:e.isTriggered())}cancel(){var e;this.cancelTimeout(),this.completionPromise&&(null===(e=this.doReject)||void 0===e||e.call(this,new l.CancellationError),this.completionPromise=null)}cancelTimeout(){var e;null===(e=this.deferred)||void 0===e||e.dispose(),this.deferred=null}dispose(){this.cancel()}}class y{constructor(e){this.delayer=new C(e),this.throttler=new m}trigger(e,t){return this.delayer.trigger(()=>this.throttler.queue(e),t)}dispose(){this.delayer.dispose()}}function w(e,t=0){let i=setTimeout(e,t);return(0,u.toDisposable)(()=>clearTimeout(i))}function k(e,t=e=>!!e,i=null){let n=0,o=e.length,s=()=>n>=o?Promise.resolve(i):Promise.resolve((0,e[n++])()).then(e=>t(e)?Promise.resolve(e):s());return s()}class S{constructor(e,t){this._token=-1,"function"==typeof e&&"number"==typeof t&&this.setIfNotSet(e,t)}dispose(){this.cancel()}cancel(){-1!==this._token&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setTimeout(()=>{this._token=-1,e()},t)}setIfNotSet(e,t){-1===this._token&&(this._token=setTimeout(()=>{this._token=-1,e()},t))}}class x{constructor(){this._token=-1}dispose(){this.cancel()}cancel(){-1!==this._token&&(clearInterval(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setInterval(()=>{e()},t)}}class I{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return -1!==this.timeoutToken}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){var e;null===(e=this.runner)||void 0===e||e.call(this)}}n="function"!=typeof requestIdleCallback||"function"!=typeof cancelIdleCallback?e=>{(0,d.setTimeout0)(()=>{if(t)return;let i=Date.now()+15;e(Object.freeze({didTimeout:!0,timeRemaining:()=>Math.max(0,i-Date.now())}))});let t=!1;return{dispose(){!t&&(t=!0)}}}:(e,t)=>{let i=requestIdleCallback(e,"number"==typeof t?{timeout:t}:void 0),n=!1;return{dispose(){!n&&(n=!0,cancelIdleCallback(i))}}};class L{constructor(e){this._didRun=!1,this._executor=()=>{try{this._value=e()}catch(e){this._error=e}finally{this._didRun=!0}},this._handle=n(()=>this._executor())}dispose(){this._handle.dispose()}get value(){if(!this._didRun&&(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}get isInitialized(){return this._didRun}}class E{constructor(){this.rejected=!1,this.resolved=!1,this.p=new Promise((e,t)=>{this.completeCallback=e,this.errorCallback=t})}get isRejected(){return this.rejected}get isSettled(){return this.rejected||this.resolved}complete(e){return new Promise(t=>{this.completeCallback(e),this.resolved=!0,t()})}cancel(){new Promise(e=>{this.errorCallback(new l.CancellationError),this.rejected=!0,e()})}}(o=s||(s={})).settled=function(e){return h(this,void 0,void 0,function*(){let t;let i=yield Promise.all(e.map(e=>e.then(e=>e,e=>{!t&&(t=e)})));if(void 0!==t)throw t;return i})},o.withAsyncBody=function(e){return new Promise((t,i)=>h(this,void 0,void 0,function*(){try{yield e(t,i)}catch(e){i(e)}}))};class T{constructor(e){this._state=0,this._results=[],this._error=null,this._onStateChanged=new a.Emitter,queueMicrotask(()=>h(this,void 0,void 0,function*(){let t={emitOne:e=>this.emitOne(e),emitMany:e=>this.emitMany(e),reject:e=>this.reject(e)};try{yield Promise.resolve(e(t)),this.resolve()}catch(e){this.reject(e)}finally{t.emitOne=void 0,t.emitMany=void 0,t.reject=void 0}}))}static fromArray(e){return new T(t=>{t.emitMany(e)})}static fromPromise(e){return new T(t=>h(this,void 0,void 0,function*(){t.emitMany((yield e))}))}static fromPromises(e){return new T(t=>h(this,void 0,void 0,function*(){yield Promise.all(e.map(e=>h(this,void 0,void 0,function*(){return t.emitOne((yield e))})))}))}static merge(e){return new T(t=>h(this,void 0,void 0,function*(){yield Promise.all(e.map(e=>{var i,n;return h(this,void 0,void 0,function*(){var o,s;try{for(i=c(e);!(n=yield i.next()).done;){let e=n.value;t.emitOne(e)}}catch(e){o={error:e}}finally{try{n&&!n.done&&(s=i.return)&&(yield s.call(i))}finally{if(o)throw o.error}}})}))}))}[Symbol.asyncIterator](){let e=0;return{next:()=>h(this,void 0,void 0,function*(){for(;;){if(2===this._state)throw this._error;if(e<this._results.length)return{done:!1,value:this._results[e++]};if(1===this._state)return{done:!0,value:void 0};yield a.Event.toPromise(this._onStateChanged.event)}})}}static map(e,t){return new T(i=>h(this,void 0,void 0,function*(){var n,o;try{for(var s,r=c(e);!(s=yield r.next()).done;){let e=s.value;i.emitOne(t(e))}}catch(e){n={error:e}}finally{try{s&&!s.done&&(o=r.return)&&(yield o.call(r))}finally{if(n)throw n.error}}}))}map(e){return T.map(this,e)}static filter(e,t){return new T(i=>h(this,void 0,void 0,function*(){var n,o;try{for(var s,r=c(e);!(s=yield r.next()).done;){let e=s.value;t(e)&&i.emitOne(e)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(o=r.return)&&(yield o.call(r))}finally{if(n)throw n.error}}}))}filter(e){return T.filter(this,e)}static coalesce(e){return T.filter(e,e=>!!e)}coalesce(){return T.coalesce(this)}static toPromise(e){var t,i,n,o;return h(this,void 0,void 0,function*(){let s=[];try{for(t=c(e);!(i=yield t.next()).done;){let e=i.value;s.push(e)}}catch(e){n={error:e}}finally{try{i&&!i.done&&(o=t.return)&&(yield o.call(t))}finally{if(n)throw n.error}}return s})}toPromise(){return T.toPromise(this)}emitOne(e){0===this._state&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){0===this._state&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){0===this._state&&(this._state=1,this._onStateChanged.fire())}reject(e){0===this._state&&(this._state=2,this._error=e,this._onStateChanged.fire())}}T.EMPTY=T.fromArray([]);class N extends T{constructor(e,t){super(t),this._source=e}cancel(){this._source.cancel()}}function D(e){let t=new r.CancellationTokenSource,i=e(t.token);return new N(t,e=>h(this,void 0,void 0,function*(){var n,o;let s=t.token.onCancellationRequested(()=>{s.dispose(),t.dispose(),e.reject(new l.CancellationError)});try{try{for(var r,a=c(i);!(r=yield a.next()).done;){let i=r.value;if(t.token.isCancellationRequested)return;e.emitOne(i)}}catch(e){n={error:e}}finally{try{r&&!r.done&&(o=a.return)&&(yield o.call(a))}finally{if(n)throw n.error}}s.dispose(),t.dispose()}catch(i){s.dispose(),t.dispose(),e.reject(i)}}))}},916904:function(e,t,i){"use strict";i.r(t),i.d(t,{DebounceEmitter:function(){return b},Emitter:function(){return c},Event:function(){return n},EventBufferer:function(){return _},EventDeliveryQueue:function(){return p},PauseableEmitter:function(){return m},Relay:function(){return v}});var n,o=i("161111"),s=i("919527"),r=i("662300"),l=i("130039");!function(e){function t(e){}function i(e){return(t,i=null,n)=>{let o,s=!1;return o=e(e=>s?void 0:(o?o.dispose():s=!0,t.call(i,e)),null,n),s&&o.dispose(),o}}function n(e,t,i){return a((i,n=null,o)=>e(e=>i.call(n,t(e)),null,o),i)}function o(e,t,i){return a((i,n=null,o)=>e(e=>{t(e),i.call(n,e)},null,o),i)}function r(e,t,i){return a((i,n=null,o)=>e(e=>t(e)&&i.call(n,e),null,o),i)}e.None=()=>s.Disposable.None,e.once=i,e.map=n,e.forEach=o,e.filter=r;e.signal=function(e){return e};function l(e,t,i,o){let s=i;return n(e,e=>s=t(s,e),o)}function a(e,i){let n;let o={onFirstListenerAdd(){n=e(s.fire,s)},onLastListenerRemove(){null==n||n.dispose()}};!i&&t(o);let s=new c(o);return null==i||i.add(s),s.event}function u(e,i,n=100,o=!1,s,r){let l,a,u;let d=0,h={leakWarningThreshold:s,onFirstListenerAdd(){l=e(e=>{d++,a=i(a,e),o&&!u&&(p.fire(a),a=void 0),clearTimeout(u),u=setTimeout(()=>{let e=a;a=void 0,u=void 0,(!o||d>1)&&p.fire(e),d=0},n)})},onLastListenerRemove(){l.dispose()}};!r&&t(h);let p=new c(h);return null==r||r.add(p),p.event}function d(e,t=(e,t)=>e===t,i){let n,o=!0;return r(e,e=>{let i=o||!t(e,n);return o=!1,n=e,i},i)}e.any=function(...e){return(t,i=null,n)=>(0,s.combinedDisposable)(...e.map(e=>e(e=>t.call(i,e),null,n)))},e.reduce=l,e.debounce=u,e.latch=d;e.split=function(t,i,n){return[e.filter(t,i,n),e.filter(t,e=>!i(e),n)]};e.buffer=function(e,t=!1,i=[]){let n=i.slice(),o=e(e=>{n?n.push(e):r.fire(e)}),s=()=>{null==n||n.forEach(e=>r.fire(e)),n=null},r=new c({onFirstListenerAdd(){!o&&(o=e(e=>r.fire(e)))},onFirstListenerDidAdd(){n&&(t?setTimeout(s):s())},onLastListenerRemove(){o&&o.dispose(),o=null}});return r.event};class h{constructor(e){this.event=e,this.disposables=new s.DisposableStore}map(e){return new h(n(this.event,e,this.disposables))}forEach(e){return new h(o(this.event,e,this.disposables))}filter(e){return new h(r(this.event,e,this.disposables))}reduce(e,t){return new h(l(this.event,e,t,this.disposables))}latch(){return new h(d(this.event,void 0,this.disposables))}debounce(e,t=100,i=!1,n){return new h(u(this.event,e,t,i,n,this.disposables))}on(e,t,i){return this.event(e,t,i)}once(e,t,n){return i(this.event)(e,t,n)}dispose(){this.disposables.dispose()}}e.chain=function(e){return new h(e)};e.fromNodeEventEmitter=function(e,t,i=e=>e){let n=(...e)=>o.fire(i(...e)),o=new c({onFirstListenerAdd:()=>e.on(t,n),onLastListenerRemove:()=>e.removeListener(t,n)});return o.event};e.fromDOMEventEmitter=function(e,t,i=e=>e){let n=(...e)=>o.fire(i(...e)),o=new c({onFirstListenerAdd:()=>e.addEventListener(t,n),onLastListenerRemove:()=>e.removeEventListener(t,n)});return o.event};e.toPromise=function(e){return new Promise(t=>i(e)(t))};e.runAndSubscribe=function(e,t){return t(void 0),e(e=>t(e))};e.runAndSubscribeWithStore=function(e,t){let i=null;function n(e){null==i||i.dispose(),t(e,i=new s.DisposableStore)}n(void 0);let o=e(e=>n(e));return(0,s.toDisposable)(()=>{o.dispose(),null==i||i.dispose()})};class p{constructor(e,i){this.obs=e,this._counter=0,this._hasChanged=!1;let n={onFirstListenerAdd:()=>{e.addObserver(this)},onLastListenerRemove:()=>{e.removeObserver(this)}};!i&&t(n),this.emitter=new c(n),i&&i.add(this.emitter)}beginUpdate(e){this._counter++}handleChange(e,t){this._hasChanged=!0}endUpdate(e){0==--this._counter&&this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this.obs.get()))}}e.fromObservable=function(e,t){return new p(e,t).emitter.event}}(n||(n={}));class a{constructor(e){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${e}_${a._idPool++}`}start(e){this._stopWatch=new l.StopWatch(!0),this._listenerCount=e}stop(){if(this._stopWatch){let e=this._stopWatch.elapsed();this._elapsedOverall+=e,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${e.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}a._idPool=0;class u{constructor(e,t=Math.random().toString(18).slice(2,5)){this.customThreshold=e,this.name=t,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(e,t){let i=-1;if("number"==typeof this.customThreshold&&(i=this.customThreshold),i<=0||t<i)return;!this._stacks&&(this._stacks=new Map);let n=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,n+1),this._warnCountdown-=1,this._warnCountdown<=0){let e;this._warnCountdown=.5*i;let n=0;for(let[t,i]of this._stacks)(!e||n<i)&&(e=t,n=i);console.warn(`[${this.name}] potential listener LEAK detected, having ${t} listeners already. MOST frequent listener (${n}):`),console.warn(e)}return()=>{let t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}}class d{constructor(e){this.value=e}static create(){var e;return new d(null!==(e=Error().stack)&&void 0!==e?e:"")}print(){console.warn(this.value.split("\n").slice(2).join("\n"))}}class h{constructor(e,t,i){this.callback=e,this.callbackThis=t,this.stack=i,this.subscription=new s.SafeDisposable}invoke(e){this.callback.call(this.callbackThis,e)}}class c{constructor(e){var t,i;this._disposed=!1,this._options=e,this._leakageMon=void 0,this._perfMon=(null===(t=this._options)||void 0===t?void 0:t._profName)?new a(this._options._profName):void 0,this._deliveryQueue=null===(i=this._options)||void 0===i?void 0:i.deliveryQueue}dispose(){var e,t,i,n,o;if(!this._disposed){if(this._disposed=!0,this._listeners){;this._listeners.clear()}null===(e=this._deliveryQueue)||void 0===e||e.clear(this),null===(i=null===(t=this._options)||void 0===t?void 0:t.onLastListenerRemove)||void 0===i||i.call(t),null===(n=this._leakageMon)||void 0===n||n.dispose()}}get event(){return!this._event&&(this._event=(e,t,i)=>{var n,o,l;let a,u;!this._listeners&&(this._listeners=new r.LinkedList);let c=this._listeners.isEmpty();c&&(null===(n=this._options)||void 0===n?void 0:n.onFirstListenerAdd)&&this._options.onFirstListenerAdd(this),this._leakageMon&&this._listeners.size>=30&&(u=d.create(),a=this._leakageMon.check(u,this._listeners.size+1));let p=new h(e,t,u),g=this._listeners.push(p);c&&(null===(o=this._options)||void 0===o?void 0:o.onFirstListenerDidAdd)&&this._options.onFirstListenerDidAdd(this),(null===(l=this._options)||void 0===l?void 0:l.onListenerDidAdd)&&this._options.onListenerDidAdd(this,e,t);let f=p.subscription.set(()=>{null==a||a(),!this._disposed&&(g(),this._options&&this._options.onLastListenerRemove&&!(this._listeners&&!this._listeners.isEmpty())&&this._options.onLastListenerRemove(this))});return i instanceof s.DisposableStore?i.add(f):Array.isArray(i)&&i.push(f),f}),this._event}fire(e){var t,i;if(this._listeners){for(let t of(!this._deliveryQueue&&(this._deliveryQueue=new g),this._listeners))this._deliveryQueue.push(this,t,e);null===(t=this._perfMon)||void 0===t||t.start(this._deliveryQueue.size),this._deliveryQueue.deliver(),null===(i=this._perfMon)||void 0===i||i.stop()}}}class p{constructor(){this._queue=new r.LinkedList}get size(){return this._queue.size}push(e,t,i){this._queue.push(new f(e,t,i))}clear(e){let t=new r.LinkedList;for(let i of this._queue)i.emitter!==e&&t.push(i);this._queue=t}deliver(){for(;this._queue.size>0;){let e=this._queue.shift();try{e.listener.invoke(e.event)}catch(e){(0,o.onUnexpectedError)(e)}}}}class g extends p{clear(e){this._queue.clear()}}class f{constructor(e,t,i){this.emitter=e,this.listener=t,this.event=i}}class m extends c{constructor(e){super(e),this._isPaused=0,this._eventQueue=new r.LinkedList,this._mergeFn=null==e?void 0:e.merge}pause(){this._isPaused++}resume(){if(0!==this._isPaused&&0==--this._isPaused){if(this._mergeFn){let e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}else for(;!this._isPaused&&0!==this._eventQueue.size;)super.fire(this._eventQueue.shift())}}fire(e){this._listeners&&(0!==this._isPaused?this._eventQueue.push(e):super.fire(e))}}class b extends m{constructor(e){var t;super(e),this._delay=null!==(t=e.delay)&&void 0!==t?t:100}fire(e){!this._handle&&(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(e)}}class _{constructor(){this.buffers=[]}wrapEvent(e){return(t,i,n)=>e(e=>{let n=this.buffers[this.buffers.length-1];n?n.push(()=>t.call(i,e)):t.call(i,e)},void 0,n)}bufferEvents(e){let t=[];this.buffers.push(t);let i=e();return this.buffers.pop(),t.forEach(e=>e()),i}}class v{constructor(){this.listening=!1,this.inputEvent=n.None,this.inputEventListener=s.Disposable.None,this.emitter=new c({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},780189:function(e,t,i){"use strict";var n;i.r(t),i.d(t,{Iterable:function(){return n}}),!function(e){e.is=function(e){return e&&"object"==typeof e&&"function"==typeof e[Symbol.iterator]};let t=Object.freeze([]);e.empty=function(){return t};e.single=function*(e){yield e};e.from=function(e){return e||t};e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done};e.first=function(e){return e[Symbol.iterator]().next().value};e.some=function(e,t){for(let i of e)if(t(i))return!0;return!1};e.find=function(e,t){for(let i of e)if(t(i))return i};e.filter=function*(e,t){for(let i of e)t(i)&&(yield i)};e.map=function*(e,t){let i=0;for(let n of e)yield t(n,i++)};e.concat=function*(...e){for(let t of e)for(let e of t)yield e};e.concatNested=function*(e){for(let t of e)for(let e of t)yield e};e.reduce=function(e,t,i){let n=i;for(let i of e)n=t(n,i);return n};e.forEach=function(e,t){let i=0;for(let n of e)t(n,i++)};function i(t,i=Number.POSITIVE_INFINITY){let n=[];if(0===i)return[n,t];let o=t[Symbol.iterator]();for(let t=0;t<i;t++){let t=o.next();if(t.done)return[n,e.empty()];n.push(t.value)}return[n,{[Symbol.iterator]:()=>o}]}e.slice=function*(e,t,i=e.length){for(t<0&&(t+=e.length),i<0?i+=e.length:i>e.length&&(i=e.length);t<i;t++)yield e[t]},e.consume=i;e.collect=function(e){return i(e)[0]};e.equals=function(e,t,i=(e,t)=>e===t){let n=e[Symbol.iterator](),o=t[Symbol.iterator]();for(;;){let e=n.next(),t=o.next();if(e.done!==t.done)return!1;if(e.done)return!0;else if(!i(e.value,t.value))return!1}}}(n||(n={}))},963368:function(e,t,i){"use strict";i.r(t),i.d(t,{QuickInputList:function(){return E},QuickInputListFocus:function(){return o}});var n,o,s=i("409737"),r=i("85763"),l=i("362880"),a=i("96479"),u=i("926573"),d=i("431453"),h=i("603868"),c=i("871628"),p=i("309778"),g=i("449714"),f=i("916904"),m=i("947578"),b=i("919527"),_=i("207875"),v=i("266763"),C=i("744138"),y=i("686329");i("664014");var w=i("708339"),k=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};let S=s.$;class x{constructor(e){this.hidden=!1,this._onChecked=new f.Emitter,this.onChecked=this._onChecked.event,Object.assign(this,e)}get checked(){return!!this._checked}set checked(e){e!==this._checked&&(this._checked=e,this._onChecked.fire(e))}dispose(){this._onChecked.dispose()}}class I{get templateId(){return I.ID}renderTemplate(e){let t=Object.create(null);t.toDisposeElement=[],t.toDisposeTemplate=[],t.entry=s.append(e,S(".quick-input-list-entry"));let i=s.append(t.entry,S("label.quick-input-list-label"));t.toDisposeTemplate.push(s.addStandardDisposableListener(i,s.EventType.CLICK,e=>{!t.checkbox.offsetParent&&e.preventDefault()})),t.checkbox=s.append(i,S("input.quick-input-list-checkbox")),t.checkbox.type="checkbox",t.toDisposeTemplate.push(s.addStandardDisposableListener(t.checkbox,s.EventType.CHANGE,e=>{t.element.checked=t.checkbox.checked}));let n=s.append(i,S(".quick-input-list-rows")),o=s.append(n,S(".quick-input-list-row")),r=s.append(n,S(".quick-input-list-row"));t.label=new a.IconLabel(o,{supportHighlights:!0,supportDescriptionHighlights:!0,supportIcons:!0});let d=s.append(o,S(".quick-input-list-entry-keybinding"));t.keybinding=new u.KeybindingLabel(d,_.OS);let h=s.append(r,S(".quick-input-list-label-meta"));return t.detail=new a.IconLabel(h,{supportHighlights:!0,supportIcons:!0}),t.separator=s.append(t.entry,S(".quick-input-list-separator")),t.actionBar=new l.ActionBar(t.entry),t.actionBar.domNode.classList.add("quick-input-list-entry-action-bar"),t.toDisposeTemplate.push(t.actionBar),t}renderElement(e,t,i){i.toDisposeElement=(0,b.dispose)(i.toDisposeElement),i.element=e,i.checkbox.checked=e.checked,i.toDisposeElement.push(e.onChecked(e=>i.checkbox.checked=e));let{labelHighlights:n,descriptionHighlights:o,detailHighlights:s}=e,r=Object.create(null);r.matches=n||[],r.descriptionTitle=e.saneDescription,r.descriptionMatches=o||[],r.extraClasses=e.item.iconClasses,r.italic=e.item.italic,r.strikethrough=e.item.strikethrough,i.label.setLabel(e.saneLabel,e.saneDescription,r),i.keybinding.set(e.item.keybinding),e.saneDetail&&i.detail.setLabel(e.saneDetail,void 0,{matches:s,title:e.saneDetail}),e.separator&&e.separator.label?(i.separator.textContent=e.separator.label,i.separator.style.display=""):i.separator.style.display="none",i.entry.classList.toggle("quick-input-list-separator-border",!!e.separator),i.actionBar.clear();let l=e.item.buttons;l&&l.length?(i.actionBar.push(l.map((t,i)=>{let n=t.iconClass||(t.iconPath?(0,y.getIconClass)(t.iconPath):void 0);t.alwaysVisible&&(n=n?`${n} always-visible`:"always-visible");let o=new d.Action(`id-${i}`,"",n,!0,()=>{var i,n,o,s;return i=this,n=void 0,o=void 0,s=function*(){e.fireButtonTriggered({button:t,item:e.item})},new(o||(o=Promise))(function(e,t){function r(e){try{a(s.next(e))}catch(e){t(e)}}function l(e){try{a(s.throw(e))}catch(e){t(e)}}function a(t){var i;t.done?e(t.value):((i=t.value)instanceof o?i:new o(function(e){e(i)})).then(r,l)}a((s=s.apply(i,n||[])).next())})});return o.tooltip=t.tooltip||"",o}),{icon:!0,label:!1}),i.entry.classList.add("has-actions")):i.entry.classList.remove("has-actions")}disposeElement(e,t,i){i.toDisposeElement=(0,b.dispose)(i.toDisposeElement)}disposeTemplate(e){e.toDisposeElement=(0,b.dispose)(e.toDisposeElement),e.toDisposeTemplate=(0,b.dispose)(e.toDisposeTemplate)}}I.ID="listelement";class L{getHeight(e){return e.saneDetail?44:22}getTemplateId(e){return I.ID}}(n=o||(o={}))[n.First=1]="First",n[n.Second=2]="Second",n[n.Last=3]="Last",n[n.Next=4]="Next",n[n.Previous=5]="Previous",n[n.NextPage=6]="NextPage",n[n.PreviousPage=7]="PreviousPage";class E{constructor(e,t,i){this.parent=e,this.inputElements=[],this.elements=[],this.elementsToIndexes=new Map,this.matchOnDescription=!1,this.matchOnDetail=!1,this.matchOnLabel=!0,this.matchOnLabelMode="fuzzy",this.matchOnMeta=!0,this.sortByLabel=!0,this._onChangedAllVisibleChecked=new f.Emitter,this.onChangedAllVisibleChecked=this._onChangedAllVisibleChecked.event,this._onChangedCheckedCount=new f.Emitter,this.onChangedCheckedCount=this._onChangedCheckedCount.event,this._onChangedVisibleCount=new f.Emitter,this.onChangedVisibleCount=this._onChangedVisibleCount.event,this._onChangedCheckedElements=new f.Emitter,this.onChangedCheckedElements=this._onChangedCheckedElements.event,this._onButtonTriggered=new f.Emitter,this.onButtonTriggered=this._onButtonTriggered.event,this._onKeyDown=new f.Emitter,this.onKeyDown=this._onKeyDown.event,this._onLeave=new f.Emitter,this.onLeave=this._onLeave.event,this._fireCheckedEvents=!0,this.elementDisposables=[],this.disposables=[],this.id=t,this.container=s.append(this.parent,S(".quick-input-list"));let n=new L,o=new N;this.list=i.createList("QuickInput",this.container,n,[new I],{identityProvider:{getId:e=>e.saneLabel},setRowLineHeight:!1,multipleSelectionSupport:!1,horizontalScrolling:!1,accessibilityProvider:o}),this.list.getHTMLElement().id=t,this.disposables.push(this.list),this.disposables.push(this.list.onKeyDown(e=>{let t=new r.StandardKeyboardEvent(e);switch(t.keyCode){case 10:this.toggleCheckbox();break;case 31:(_.isMacintosh?e.metaKey:e.ctrlKey)&&this.list.setFocus((0,h.range)(this.list.length));break;case 16:{let e=this.list.getFocus();1===e.length&&0===e[0]&&this._onLeave.fire();break}case 18:{let e=this.list.getFocus();1===e.length&&e[0]===this.list.length-1&&this._onLeave.fire()}}this._onKeyDown.fire(t)})),this.disposables.push(this.list.onMouseDown(e=>{2!==e.browserEvent.button&&e.browserEvent.preventDefault()})),this.disposables.push(s.addDisposableListener(this.container,s.EventType.CLICK,e=>{(e.x||e.y)&&this._onLeave.fire()})),this.disposables.push(this.list.onMouseMiddleClick(e=>{this._onLeave.fire()})),this.disposables.push(this.list.onContextMenu(e=>{"number"==typeof e.index&&(e.browserEvent.preventDefault(),this.list.setSelection([e.index]))})),this.disposables.push(this._onChangedAllVisibleChecked,this._onChangedCheckedCount,this._onChangedVisibleCount,this._onChangedCheckedElements,this._onButtonTriggered,this._onLeave,this._onKeyDown)}get onDidChangeFocus(){return f.Event.map(this.list.onDidChangeFocus,e=>e.elements.map(e=>e.item))}get onDidChangeSelection(){return f.Event.map(this.list.onDidChangeSelection,e=>({items:e.elements.map(e=>e.item),event:e.browserEvent}))}get scrollTop(){return this.list.scrollTop}set scrollTop(e){this.list.scrollTop=e}getAllVisibleChecked(){return this.allVisibleChecked(this.elements,!1)}allVisibleChecked(e,t=!0){for(let i=0,n=e.length;i<n;i++){let n=e[i];if(!n.hidden){if(!n.checked)return!1;t=!0}}return t}getCheckedCount(){let e=0,t=this.elements;for(let i=0,n=t.length;i<n;i++)t[i].checked&&e++;return e}getVisibleCount(){let e=0,t=this.elements;for(let i=0,n=t.length;i<n;i++)!t[i].hidden&&e++;return e}setAllVisibleChecked(e){try{this._fireCheckedEvents=!1,this.elements.forEach(t=>{!t.hidden&&(t.checked=e)})}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}setElements(e){this.elementDisposables=(0,b.dispose)(this.elementDisposables);let t=e=>this.fireButtonTriggered(e);this.inputElements=e,this.elements=e.reduce((i,n,o)=>{var s,r,l;if("separator"!==n.type){let a=o&&e[o-1],u=n.label&&n.label.replace(/\r?\n/g," "),d=(0,m.parseLabelWithIcons)(u).text.trim(),h=n.meta&&n.meta.replace(/\r?\n/g," "),p=n.description&&n.description.replace(/\r?\n/g," "),g=n.detail&&n.detail.replace(/\r?\n/g," "),f=n.ariaLabel||[u,p,g].map(e=>(0,c.getCodiconAriaLabel)(e)).filter(e=>!!e).join(", "),b=this.parent.classList.contains("show-checkboxes");i.push(new x({hasCheckbox:b,index:o,item:n,saneLabel:u,saneSortLabel:d,saneMeta:h,saneAriaLabel:f,saneDescription:p,saneDetail:g,labelHighlights:null===(s=n.highlights)||void 0===s?void 0:s.label,descriptionHighlights:null===(r=n.highlights)||void 0===r?void 0:r.description,detailHighlights:null===(l=n.highlights)||void 0===l?void 0:l.detail,checked:!1,separator:a&&"separator"===a.type?a:void 0,fireButtonTriggered:t}))}return i},[]),this.elementDisposables.push(...this.elements),this.elementDisposables.push(...this.elements.map(e=>e.onChecked(()=>this.fireCheckedEvents()))),this.elementsToIndexes=this.elements.reduce((e,t,i)=>(e.set(t.item,i),e),new Map),this.list.splice(0,this.list.length),this.list.splice(0,this.list.length,this.elements),this._onChangedVisibleCount.fire(this.elements.length)}getFocusedElements(){return this.list.getFocusedElements().map(e=>e.item)}setFocusedElements(e){if(this.list.setFocus(e.filter(e=>this.elementsToIndexes.has(e)).map(e=>this.elementsToIndexes.get(e))),e.length>0){let e=this.list.getFocus()[0];"number"==typeof e&&this.list.reveal(e)}}getActiveDescendant(){return this.list.getHTMLElement().getAttribute("aria-activedescendant")}setSelectedElements(e){this.list.setSelection(e.filter(e=>this.elementsToIndexes.has(e)).map(e=>this.elementsToIndexes.get(e)))}getCheckedElements(){return this.elements.filter(e=>e.checked).map(e=>e.item)}setCheckedElements(e){try{this._fireCheckedEvents=!1;let t=new Set;for(let i of e)t.add(i);for(let e of this.elements)e.checked=t.has(e.item)}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}set enabled(e){this.list.getHTMLElement().style.pointerEvents=e?"":"none"}focus(e){if(!this.list.length)return;switch(e===o.Next&&this.list.getFocus()[0]===this.list.length-1&&(e=o.First),e===o.Previous&&0===this.list.getFocus()[0]&&(e=o.Last),e===o.Second&&this.list.length<2&&(e=o.First),e){case o.First:this.list.focusFirst();break;case o.Second:this.list.focusNth(1);break;case o.Last:this.list.focusLast();break;case o.Next:this.list.focusNext();break;case o.Previous:this.list.focusPrevious();break;case o.NextPage:this.list.focusNextPage();break;case o.PreviousPage:this.list.focusPreviousPage()}let t=this.list.getFocus()[0];"number"==typeof t&&this.list.reveal(t)}clearFocus(){this.list.setFocus([])}domFocus(){this.list.domFocus()}layout(e){this.list.getHTMLElement().style.maxHeight=e?`calc(${44*Math.floor(e/44)}px)`:"",this.list.layout()}filter(e){if(!(this.sortByLabel||this.matchOnLabel||this.matchOnDescription||this.matchOnDetail))return this.list.layout(),!1;let t=e;if((e=e.trim())&&(this.matchOnLabel||this.matchOnDescription||this.matchOnDetail)){let i;this.elements.forEach(n=>{let o;o="fuzzy"===this.matchOnLabelMode?this.matchOnLabel?(0,C.withNullAsUndefined)((0,m.matchesFuzzyIconAware)(e,(0,m.parseLabelWithIcons)(n.saneLabel))):void 0:this.matchOnLabel?(0,C.withNullAsUndefined)(function(e,t){let{text:i,iconOffsets:n}=t;if(!n||0===n.length)return T(e,i);let o=(0,v.ltrim)(i," "),s=i.length-o.length,r=T(e,o);if(r)for(let e of r){let t=n[e.start+s]+s;e.start+=t,e.end+=t}return r}(t,(0,m.parseLabelWithIcons)(n.saneLabel))):void 0;let s=this.matchOnDescription?(0,C.withNullAsUndefined)((0,m.matchesFuzzyIconAware)(e,(0,m.parseLabelWithIcons)(n.saneDescription||""))):void 0,r=this.matchOnDetail?(0,C.withNullAsUndefined)((0,m.matchesFuzzyIconAware)(e,(0,m.parseLabelWithIcons)(n.saneDetail||""))):void 0,l=this.matchOnMeta?(0,C.withNullAsUndefined)((0,m.matchesFuzzyIconAware)(e,(0,m.parseLabelWithIcons)(n.saneMeta||""))):void 0;if(o||s||r||l?(n.labelHighlights=o,n.descriptionHighlights=s,n.detailHighlights=r,n.hidden=!1):(n.labelHighlights=void 0,n.descriptionHighlights=void 0,n.detailHighlights=void 0,n.hidden=!n.item.alwaysShow),n.separator=void 0,!this.sortByLabel){let e=n.index&&this.inputElements[n.index-1];(i=e&&"separator"===e.type?e:i)&&!n.hidden&&(n.separator=i,i=void 0)}})}else this.elements.forEach(e=>{e.labelHighlights=void 0,e.descriptionHighlights=void 0,e.detailHighlights=void 0,e.hidden=!1;let t=e.index&&this.inputElements[e.index-1];e.separator=t&&"separator"===t.type?t:void 0});let i=this.elements.filter(e=>!e.hidden);if(this.sortByLabel&&e){let t=e.toLowerCase();i.sort((e,i)=>(function(e,t,i){let n=e.labelHighlights||[],o=t.labelHighlights||[];return n.length&&!o.length?-1:!n.length&&o.length?1:0===n.length&&0===o.length?0:(0,p.compareAnything)(e.saneSortLabel,t.saneSortLabel,i)})(e,i,t))}return this.elementsToIndexes=i.reduce((e,t,i)=>(e.set(t.item,i),e),new Map),this.list.splice(0,this.list.length,i),this.list.setFocus([]),this.list.layout(),this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedVisibleCount.fire(i.length),!0}toggleCheckbox(){try{this._fireCheckedEvents=!1;let e=this.list.getFocusedElements(),t=this.allVisibleChecked(e);for(let i of e)i.checked=!t}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}display(e){this.container.style.display=e?"":"none"}isDisplayed(){return"none"!==this.container.style.display}dispose(){this.elementDisposables=(0,b.dispose)(this.elementDisposables),this.disposables=(0,b.dispose)(this.disposables)}fireCheckedEvents(){this._fireCheckedEvents&&(this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedCheckedCount.fire(this.getCheckedCount()),this._onChangedCheckedElements.fire(this.getCheckedElements()))}fireButtonTriggered(e){this._onButtonTriggered.fire(e)}style(e){this.list.style(e)}}k([g.memoize],E.prototype,"onDidChangeFocus",null),k([g.memoize],E.prototype,"onDidChangeSelection",null);function T(e,t){let i=t.toLowerCase().indexOf(e.toLowerCase());return -1!==i?[{start:i,end:i+e.length}]:null}class N{getWidgetAriaLabel(){return(0,w.localize)("quickInput","Quick Input")}getAriaLabel(e){var t;return(null===(t=e.separator)||void 0===t?void 0:t.label)?`${e.saneAriaLabel}, ${e.separator.label}`:e.saneAriaLabel}getWidgetRole(){return"listbox"}getRole(e){return e.hasCheckbox?"checkbox":"option"}isChecked(e){if(e.hasCheckbox)return{value:e.checked,onDidChange:e.onChecked}}}},652603:function(e,t,i){"use strict";i.r(t),(0,i("354606").registerLanguage)({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310")]).then(i.bind(i,"723517"))})},37429:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return n},language:function(){return o}});var n={comments:{lineComment:"REM"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],folding:{markers:{start:RegExp("^\\s*(::\\s*|REM\\s+)#region"),end:RegExp("^\\s*(::\\s*|REM\\s+)#endregion")}}},o={defaultToken:"",ignoreCase:!0,tokenPostfix:".bat",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:/call|defined|echo|errorlevel|exist|for|goto|if|pause|set|shift|start|title|not|pushd|popd/,symbols:/[=><!~?&|+\-*\/\^;\.,]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/^(\s*)(rem(?:\s.*|))$/,["","comment"]],[/(\@?)(@keywords)(?!\w)/,[{token:"keyword"},{token:"keyword.$2"}]],[/[ \t\r\n]+/,""],[/setlocal(?!\w)/,"keyword.tag-setlocal"],[/endlocal(?!\w)/,"keyword.tag-setlocal"],[/[a-zA-Z_]\w*/,""],[/:\w*/,"metatag"],[/%[^%]+%/,"variable"],[/%%[\w]+(?!\w)/,"variable"],[/[{}()\[\]]/,"@brackets"],[/@symbols/,"delimiter"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],string:[[/[^\\"'%]+/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/%[\w ]+%/,"variable"],[/%%[\w]+(?!\w)/,"variable"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/$/,"string","@popall"]]}}},304458:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return n},language:function(){return o}});var n={comments:{lineComment:"#"},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:'"'}],folding:{offSide:!0}},o={defaultToken:"invalid",tokenPostfix:".gql",keywords:["null","true","false","query","mutation","subscription","extend","schema","directive","scalar","type","interface","union","enum","input","implements","fragment","on"],typeKeywords:["Int","Float","String","Boolean","ID"],directiveLocations:["SCHEMA","SCALAR","OBJECT","FIELD_DEFINITION","ARGUMENT_DEFINITION","INTERFACE","UNION","ENUM","ENUM_VALUE","INPUT_OBJECT","INPUT_FIELD_DEFINITION","QUERY","MUTATION","SUBSCRIPTION","FIELD","FRAGMENT_DEFINITION","FRAGMENT_SPREAD","INLINE_FRAGMENT","VARIABLE_DEFINITION"],operators:["=","!","?",":","&","|"],symbols:/[=!?:&|]+/,escapes:/\\(?:["\\\/bfnrt]|u[0-9A-Fa-f]{4})/,tokenizer:{root:[[/[a-z_][\w$]*/,{cases:{"@keywords":"keyword","@default":"key.identifier"}}],[/[$][\w$]*/,{cases:{"@keywords":"keyword","@default":"argument.identifier"}}],[/[A-Z][\w\$]*/,{cases:{"@typeKeywords":"keyword","@default":"type.identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,{token:"annotation",log:"annotation token: $0"}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/"""/,{token:"string",next:"@mlstring",nextEmbedded:"markdown"}],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}]],mlstring:[[/[^"]+/,"string"],['"""',{token:"string",next:"@pop",nextEmbedded:"@pop"}]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/#.*$/,"comment"]]}}},734667:function(e,t,i){"use strict";let n,o;i.r(t),i.d(t,{conf:function(){return p},language:function(){return g}});var s=i("299334"),r=Object.defineProperty,l=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,d=(e,t,i,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of a(t))!u.call(e,o)&&o!==i&&r(e,o,{get:()=>t[o],enumerable:!(n=l(t,o))||n.enumerable});return e},h={};d(h,n=s,"default"),o&&d(o,n,"default");var c=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],p={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[["\x3c!--","-->"],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:RegExp(`<(?!(?:${c.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:h.languages.IndentAction.IndentOutdent}},{beforeText:RegExp(`<(?!(?:${c.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:h.languages.IndentAction.Indent}}]},g={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@commentHtml"],[/(<)(\w+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/\{/,"delimiter.html"],[/[^<{]+/]],doctype:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}}},601696:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return n},language:function(){return o}});var n={comments:{lineComment:"//"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]}],folding:{offSide:!0}},o={defaultToken:"",tokenPostfix:".pug",ignoreCase:!0,brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"}],keywords:["append","block","case","default","doctype","each","else","extends","for","if","in","include","mixin","typeof","unless","var","when"],tags:["a","abbr","acronym","address","area","article","aside","audio","b","base","basefont","bdi","bdo","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","datalist","dd","del","details","dfn","div","dl","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","keygen","kbd","label","li","link","map","mark","menu","meta","meter","nav","noframes","noscript","object","ol","optgroup","option","output","p","param","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strike","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","tracks","tt","u","ul","video","wbr"],symbols:/[\+\-\*\%\&\|\!\=\/\.\,\:]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/^(\s*)([a-zA-Z_-][\w-]*)/,{cases:{"$2@tags":{cases:{"@eos":["","tag"],"@default":["",{token:"tag",next:"@tag.$1"}]}},"$2@keywords":["",{token:"keyword.$2"}],"@default":["",""]}}],[/^(\s*)(#[a-zA-Z_-][\w-]*)/,{cases:{"@eos":["","tag.id"],"@default":["",{token:"tag.id",next:"@tag.$1"}]}}],[/^(\s*)(\.[a-zA-Z_-][\w-]*)/,{cases:{"@eos":["","tag.class"],"@default":["",{token:"tag.class",next:"@tag.$1"}]}}],[/^(\s*)(\|.*)$/,""],{include:"@whitespace"},[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":""}}],[/[{}()\[\]]/,"@brackets"],[/@symbols/,"delimiter"],[/\d+\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\d+/,"number"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],tag:[[/(\.)(\s*$)/,[{token:"delimiter",next:"@blockText.$S2."},""]],[/\s+/,{token:"",next:"@simpleText"}],[/#[a-zA-Z_-][\w-]*/,{cases:{"@eos":{token:"tag.id",next:"@pop"},"@default":"tag.id"}}],[/\.[a-zA-Z_-][\w-]*/,{cases:{"@eos":{token:"tag.class",next:"@pop"},"@default":"tag.class"}}],[/\(/,{token:"delimiter.parenthesis",next:"@attributeList"}]],simpleText:[[/[^#]+$/,{token:"",next:"@popall"}],[/[^#]+/,{token:""}],[/(#{)([^}]*)(})/,{cases:{"@eos":["interpolation.delimiter","interpolation",{token:"interpolation.delimiter",next:"@popall"}],"@default":["interpolation.delimiter","interpolation","interpolation.delimiter"]}}],[/#$/,{token:"",next:"@popall"}],[/#/,""]],attributeList:[[/\s+/,""],[/(\w+)(\s*=\s*)("|')/,["attribute.name","delimiter",{token:"attribute.value",next:"@value.$3"}]],[/\w+/,"attribute.name"],[/,/,{cases:{"@eos":{token:"attribute.delimiter",next:"@popall"},"@default":"attribute.delimiter"}}],[/\)$/,{token:"delimiter.parenthesis",next:"@popall"}],[/\)/,{token:"delimiter.parenthesis",next:"@pop"}]],whitespace:[[/^(\s*)(\/\/.*)$/,{token:"comment",next:"@blockText.$1.comment"}],[/[ \t\r\n]+/,""],[/<!--/,{token:"comment",next:"@comment"}]],blockText:[[/^\s+.*$/,{cases:{"($S2\\s+.*$)":{token:"$S3"},"@default":{token:"@rematch",next:"@popall"}}}],[/./,{token:"@rematch",next:"@popall"}]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,{token:"comment",next:"@pop"}],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]],string:[[/[^\\"'#]+/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/@escapes/,{cases:{"@eos":{token:"string.escape",next:"@popall"},"@default":"string.escape"}}],[/\\./,{cases:{"@eos":{token:"string.escape.invalid",next:"@popall"},"@default":"string.escape.invalid"}}],[/(#{)([^}]*)(})/,["interpolation.delimiter","interpolation","interpolation.delimiter"]],[/#/,"string"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":{token:"string"}}}]],value:[[/[^\\"']+/,{cases:{"@eos":{token:"attribute.value",next:"@popall"},"@default":"attribute.value"}}],[/\\./,{cases:{"@eos":{token:"attribute.value",next:"@popall"},"@default":"attribute.value"}}],[/["']/,{cases:{"$#==$S2":{token:"attribute.value",next:"@pop"},"@default":{token:"attribute.value"}}}]]}}},594575:function(e,t,i){"use strict";i.r(t),(0,i("354606").registerLanguage)({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310")]).then(i.bind(i,"868490"))})},769927:function(e,t,i){"use strict";i.r(t),(0,i("354606").registerLanguage)({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310")]).then(i.bind(i,"244192"))})},405690:function(e,t,i){"use strict";let n,o;i.r(t),i.d(t,{conf:function(){return c},language:function(){return p}});var s=i("299334"),r=Object.defineProperty,l=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,d=(e,t,i,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of a(t))!u.call(e,o)&&o!==i&&r(e,o,{get:()=>t[o],enumerable:!(n=l(t,o))||n.enumerable});return e},h={};d(h,n=s,"default"),o&&d(o,n,"default");var c={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:h.languages.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:h.languages.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:h.languages.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:h.languages.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:RegExp("^\\s*//\\s*#?region\\b"),end:RegExp("^\\s*//\\s*#?endregion\\b")}}},p={defaultToken:"invalid",tokenPostfix:".ts",keywords:["abstract","any","as","asserts","bigint","boolean","break","case","catch","class","continue","const","constructor","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","implements","import","in","infer","instanceof","interface","is","keyof","let","module","namespace","never","new","null","number","object","out","package","private","protected","public","override","readonly","require","global","return","set","static","string","super","switch","symbol","this","throw","true","try","type","typeof","undefined","unique","unknown","var","void","while","with","yield","async","await","of"],operators:["<=",">=","==","!=","===","!==","=>","+","-","**","*","/","%","++","--","<<","</",">>",">>>","&","|","^","!","~","&&","||","??","?",":","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=","@"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/,regexpesc:/\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,tokenizer:{root:[[/[{}]/,"delimiter.bracket"],{include:"common"}],common:[[/[a-z_$][\w$]*/,{cases:{"@keywords":"keyword","@default":"identifier"}}],[/[A-Z][\w\$]*/,"type.identifier"],{include:"@whitespace"},[/\/(?=([^\\\/]|\\.)+\/([dgimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,{token:"regexp",bracket:"@open",next:"@regexp"}],[/[()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/`/,"string","@string_backtick"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([dgimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_backtick:[[/\$\{/,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]],bracketCounting:[[/\{/,"delimiter.bracket","@bracketCounting"],[/\}/,"delimiter.bracket","@pop"],{include:"common"}]}}},36790:function(e,t,i){"use strict";i.r(t),i.d(t,{TabFocus:function(){return o}});var n=i("916904");let o=new class e{constructor(){this._tabFocus=!1,this._onDidChangeTabFocus=new n.Emitter,this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}getTabFocusMode(){return this._tabFocus}setTabFocusMode(e){this._tabFocus!==e&&(this._tabFocus=e,this._onDidChangeTabFocus.fire(this._tabFocus))}}},748379:function(e,t,i){"use strict";i.r(t),i.d(t,{MouseHandler:function(){return g}});var n=i("409737"),o=i("919219"),s=i("467518"),r=i("919527"),l=i("207875"),a=i("647388"),u=i("865646"),d=i("183140"),h=i("457938"),c=i("861065"),p=i("448331");class g extends p.ViewEventHandler{constructor(e,t,i){super(),this._mouseLeaveMonitor=null,this._context=e,this.viewController=t,this.viewHelper=i,this.mouseTargetFactory=new a.MouseTargetFactory(this._context,i),this._mouseDownOperation=this._register(new f(this._context,this.viewController,this.viewHelper,(e,t)=>this._createMouseTarget(e,t),e=>this._getMouseColumn(e))),this.lastMouseLeaveTime=-1,this._height=this._context.configuration.options.get(133).height;let s=new u.EditorMouseEventFactory(this.viewHelper.viewDomNode);this._register(s.onContextMenu(this.viewHelper.viewDomNode,e=>this._onContextMenu(e,!0))),this._register(s.onMouseMove(this.viewHelper.viewDomNode,e=>{this._onMouseMove(e),!this._mouseLeaveMonitor&&(this._mouseLeaveMonitor=n.addDisposableListener(document,"mousemove",e=>{!this.viewHelper.viewDomNode.contains(e.target)&&this._onMouseLeave(new u.EditorMouseEvent(e,!1,this.viewHelper.viewDomNode))}))})),this._register(s.onMouseUp(this.viewHelper.viewDomNode,e=>this._onMouseUp(e))),this._register(s.onMouseLeave(this.viewHelper.viewDomNode,e=>this._onMouseLeave(e)));let r=0;this._register(s.onPointerDown(this.viewHelper.viewDomNode,(e,t)=>{r=t})),this._register(n.addDisposableListener(this.viewHelper.viewDomNode,n.EventType.POINTER_UP,e=>{this._mouseDownOperation.onPointerUp()})),this._register(s.onMouseDown(this.viewHelper.viewDomNode,e=>this._onMouseDown(e,r)));this._register(n.addDisposableListener(this.viewHelper.viewDomNode,n.EventType.MOUSE_WHEEL,e=>{if(this.viewController.emitMouseWheel(e),!this._context.configuration.options.get(70))return;let t=new o.StandardWheelEvent(e);if(l.isMacintosh?(e.metaKey||e.ctrlKey)&&!e.shiftKey&&!e.altKey:e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey){let e=d.EditorZoom.getZoomLevel(),i=t.deltaY>0?1:-1;d.EditorZoom.setZoomLevel(e+i),t.preventDefault(),t.stopPropagation()}},{capture:!0,passive:!1})),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._mouseLeaveMonitor&&(this._mouseLeaveMonitor.dispose(),this._mouseLeaveMonitor=null),super.dispose()}onConfigurationChanged(e){if(e.hasChanged(133)){let e=this._context.configuration.options.get(133).height;this._height!==e&&(this._height=e,this._mouseDownOperation.onHeightChanged())}return!1}onCursorStateChanged(e){return this._mouseDownOperation.onCursorStateChanged(e),!1}onFocusChanged(e){return!1}onScrollChanged(e){return this._mouseDownOperation.onScrollChanged(),!1}getTargetAtClientPoint(e,t){let i=new u.ClientCoordinates(e,t).toPageCoordinates(),n=(0,u.createEditorPagePosition)(this.viewHelper.viewDomNode);if(i.y<n.y||i.y>n.y+n.height||i.x<n.x||i.x>n.x+n.width)return null;let o=(0,u.createCoordinatesRelativeToEditor)(this.viewHelper.viewDomNode,n,i);return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),n,i,o,null)}_createMouseTarget(e,t){let i=e.target;if(!this.viewHelper.viewDomNode.contains(i)){let t=n.getShadowRoot(this.viewHelper.viewDomNode);t&&(i=t.elementsFromPoint(e.posx,e.posy).find(e=>this.viewHelper.viewDomNode.contains(e)))}return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),e.editorPos,e.pos,e.relativePos,t?i:null)}_getMouseColumn(e){return this.mouseTargetFactory.getMouseColumn(e.relativePos)}_onContextMenu(e,t){this.viewController.emitContextMenu({event:e,target:this._createMouseTarget(e,t)})}_onMouseMove(e){if(!this.mouseTargetFactory.mouseTargetIsWidget(e)&&e.preventDefault(),!this._mouseDownOperation.isActive())!(e.timestamp<this.lastMouseLeaveTime)&&this.viewController.emitMouseMove({event:e,target:this._createMouseTarget(e,!0)})}_onMouseLeave(e){this._mouseLeaveMonitor&&(this._mouseLeaveMonitor.dispose(),this._mouseLeaveMonitor=null),this.lastMouseLeaveTime=new Date().getTime(),this.viewController.emitMouseLeave({event:e,target:null})}_onMouseUp(e){this.viewController.emitMouseUp({event:e,target:this._createMouseTarget(e,!0)})}_onMouseDown(e,t){let i=this._createMouseTarget(e,!0),n=6===i.type||7===i.type,o=2===i.type||3===i.type||4===i.type,s=3===i.type,r=this._context.configuration.options.get(100),a=8===i.type||5===i.type,u=9===i.type,d=e.leftButton||e.middleButton;l.isMacintosh&&e.leftButton&&e.ctrlKey&&(d=!1);let h=()=>{e.preventDefault(),this.viewHelper.focusTextArea()};if(d&&(n||s&&r))h(),this._mouseDownOperation.start(i.type,e,t);else if(o)e.preventDefault();else if(a){let n=i.detail;d&&this.viewHelper.shouldSuppressMouseDownOnViewZone(n.viewZoneId)&&(h(),this._mouseDownOperation.start(i.type,e,t),e.preventDefault())}else u&&this.viewHelper.shouldSuppressMouseDownOnWidget(i.detail)&&(h(),e.preventDefault());this.viewController.emitMouseDown({event:e,target:i})}}class f extends r.Disposable{constructor(e,t,i,n,o){super(),this._context=e,this._viewController=t,this._viewHelper=i,this._createMouseTarget=n,this._getMouseColumn=o,this._mouseMoveMonitor=this._register(new u.GlobalEditorPointerMoveMonitor(this._viewHelper.viewDomNode)),this._onScrollTimeout=this._register(new s.TimeoutTimer),this._mouseState=new m,this._currentSelection=new c.Selection(1,1,1,1),this._isActive=!1,this._lastMouseEvent=null}dispose(){super.dispose()}isActive(){return this._isActive}_onMouseDownThenMove(e){this._lastMouseEvent=e,this._mouseState.setModifiers(e);let t=this._findMousePosition(e,!1);t&&(this._mouseState.isDragAndDrop?this._viewController.emitMouseDrag({event:e,target:t}):this._dispatchMouse(t,!0))}start(e,t,i){this._lastMouseEvent=t,this._mouseState.setStartedOnLineNumbers(3===e),this._mouseState.setStartButtons(t),this._mouseState.setModifiers(t);let n=this._findMousePosition(t,!0);if(!n||!n.position)return;this._mouseState.trySetCount(t.detail,n.position),t.detail=this._mouseState.count;let o=this._context.configuration.options;if(!o.get(83)&&o.get(31)&&!o.get(18)&&!this._mouseState.altKey&&t.detail<2&&!this._isActive&&!this._currentSelection.isEmpty()&&6===n.type&&n.position&&this._currentSelection.containsPosition(n.position)){this._mouseState.isDragAndDrop=!0,this._isActive=!0,this._mouseMoveMonitor.startMonitoring(this._viewHelper.viewLinesDomNode,i,t.buttons,e=>this._onMouseDownThenMove(e),e=>{let t=this._findMousePosition(this._lastMouseEvent,!1);e&&e instanceof KeyboardEvent?this._viewController.emitMouseDropCanceled():this._viewController.emitMouseDrop({event:this._lastMouseEvent,target:t?this._createMouseTarget(this._lastMouseEvent,!0):null}),this._stop()});return}this._mouseState.isDragAndDrop=!1,this._dispatchMouse(n,t.shiftKey),!this._isActive&&(this._isActive=!0,this._mouseMoveMonitor.startMonitoring(this._viewHelper.viewLinesDomNode,i,t.buttons,e=>this._onMouseDownThenMove(e),()=>this._stop()))}_stop(){this._isActive=!1,this._onScrollTimeout.cancel()}onHeightChanged(){this._mouseMoveMonitor.stopMonitoring()}onPointerUp(){this._mouseMoveMonitor.stopMonitoring()}onScrollChanged(){this._isActive&&this._onScrollTimeout.setIfNotSet(()=>{if(!this._lastMouseEvent)return;let e=this._findMousePosition(this._lastMouseEvent,!1);if(!!e)!this._mouseState.isDragAndDrop&&this._dispatchMouse(e,!0)},10)}onCursorStateChanged(e){this._currentSelection=e.selections[0]}_getPositionOutsideEditor(e){let t=e.editorPos,i=this._context.viewModel,n=this._context.viewLayout,o=this._getMouseColumn(e);if(e.posy<t.y){let i=Math.max(n.getCurrentScrollTop()-(t.y-e.posy),0),s=a.HitTestContext.getZoneAtCoord(this._context,i);if(s){let e=this._helpPositionJumpOverViewZone(s);if(e)return a.MouseTarget.createOutsideEditor(o,e)}let r=n.getLineNumberAtVerticalOffset(i);return a.MouseTarget.createOutsideEditor(o,new h.Position(r,1))}if(e.posy>t.y+t.height){let t=n.getCurrentScrollTop()+e.relativePos.y,s=a.HitTestContext.getZoneAtCoord(this._context,t);if(s){let e=this._helpPositionJumpOverViewZone(s);if(e)return a.MouseTarget.createOutsideEditor(o,e)}let r=n.getLineNumberAtVerticalOffset(t);return a.MouseTarget.createOutsideEditor(o,new h.Position(r,i.getLineMaxColumn(r)))}let s=n.getLineNumberAtVerticalOffset(n.getCurrentScrollTop()+e.relativePos.y);return e.posx<t.x?a.MouseTarget.createOutsideEditor(o,new h.Position(s,1)):e.posx>t.x+t.width?a.MouseTarget.createOutsideEditor(o,new h.Position(s,i.getLineMaxColumn(s))):null}_findMousePosition(e,t){let i=this._getPositionOutsideEditor(e);if(i)return i;let n=this._createMouseTarget(e,t);if(!n.position)return null;if(8===n.type||5===n.type){let e=this._helpPositionJumpOverViewZone(n.detail);if(e)return a.MouseTarget.createViewZone(n.type,n.element,n.mouseColumn,e,n.detail)}return n}_helpPositionJumpOverViewZone(e){let t=new h.Position(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),i=e.positionBefore,n=e.positionAfter;if(i&&n)return i.isBefore(t)?i:n;return null}_dispatchMouse(e,t){e.position&&this._viewController.dispatchMouse({position:e.position,mouseColumn:e.mouseColumn,startedOnLineNumbers:this._mouseState.startedOnLineNumbers,inSelectionMode:t,mouseDownCount:this._mouseState.count,altKey:this._mouseState.altKey,ctrlKey:this._mouseState.ctrlKey,metaKey:this._mouseState.metaKey,shiftKey:this._mouseState.shiftKey,leftButton:this._mouseState.leftButton,middleButton:this._mouseState.middleButton,onInjectedText:6===e.type&&null!==e.detail.injectedText})}}class m{constructor(){this._altKey=!1,this._ctrlKey=!1,this._metaKey=!1,this._shiftKey=!1,this._leftButton=!1,this._middleButton=!1,this._startedOnLineNumbers=!1,this._lastMouseDownPosition=null,this._lastMouseDownPositionEqualCount=0,this._lastMouseDownCount=0,this._lastSetMouseDownCountTime=0,this.isDragAndDrop=!1}get altKey(){return this._altKey}get ctrlKey(){return this._ctrlKey}get metaKey(){return this._metaKey}get shiftKey(){return this._shiftKey}get leftButton(){return this._leftButton}get middleButton(){return this._middleButton}get startedOnLineNumbers(){return this._startedOnLineNumbers}get count(){return this._lastMouseDownCount}setModifiers(e){this._altKey=e.altKey,this._ctrlKey=e.ctrlKey,this._metaKey=e.metaKey,this._shiftKey=e.shiftKey}setStartButtons(e){this._leftButton=e.leftButton,this._middleButton=e.middleButton}setStartedOnLineNumbers(e){this._startedOnLineNumbers=e}trySetCount(e,t){let i=new Date().getTime();i-this._lastSetMouseDownCountTime>m.CLEAR_MOUSE_DOWN_COUNT_TIME&&(e=1),this._lastSetMouseDownCountTime=i,e>this._lastMouseDownCount+1&&(e=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(t)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=t,this._lastMouseDownCount=Math.min(e,this._lastMouseDownPositionEqualCount)}}m.CLEAR_MOUSE_DOWN_COUNT_TIME=400},394019:function(e,t,i){"use strict";i.r(t),i.d(t,{PointerHandler:function(){return p}});var n=i("409737"),o=i("207875"),s=i("266569"),r=i("919527"),l=i("748379"),a=i("865646"),u=i("972646"),d=i("637717");class h extends l.MouseHandler{constructor(e,t,i){super(e,t,i),this._register(s.Gesture.addTarget(this.viewHelper.linesContentDomNode)),this._register(n.addDisposableListener(this.viewHelper.linesContentDomNode,s.EventType.Tap,e=>this.onTap(e))),this._register(n.addDisposableListener(this.viewHelper.linesContentDomNode,s.EventType.Change,e=>this.onChange(e))),this._register(n.addDisposableListener(this.viewHelper.linesContentDomNode,s.EventType.Contextmenu,e=>this._onContextMenu(new a.EditorMouseEvent(e,!1,this.viewHelper.viewDomNode),!1))),this._lastPointerType="mouse",this._register(n.addDisposableListener(this.viewHelper.linesContentDomNode,"pointerdown",e=>{let t=e.pointerType;if("mouse"===t){this._lastPointerType="mouse";return}"touch"===t?this._lastPointerType="touch":this._lastPointerType="pen"}));let o=new a.EditorPointerEventFactory(this.viewHelper.viewDomNode);this._register(o.onPointerMove(this.viewHelper.viewDomNode,e=>this._onMouseMove(e))),this._register(o.onPointerUp(this.viewHelper.viewDomNode,e=>this._onMouseUp(e))),this._register(o.onPointerLeave(this.viewHelper.viewDomNode,e=>this._onMouseLeave(e))),this._register(o.onPointerDown(this.viewHelper.viewDomNode,(e,t)=>this._onMouseDown(e,t)))}onTap(e){if(!e.initialTarget||!this.viewHelper.linesContentDomNode.contains(e.initialTarget))return;e.preventDefault(),this.viewHelper.focusTextArea();let t=this._createMouseTarget(new a.EditorMouseEvent(e,!1,this.viewHelper.viewDomNode),!1);t.position&&this.viewController.dispatchMouse({position:t.position,mouseColumn:t.position.column,startedOnLineNumbers:!1,mouseDownCount:e.tapCount,inSelectionMode:!1,altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,leftButton:!1,middleButton:!1,onInjectedText:6===t.type&&null!==t.detail.injectedText})}onChange(e){"touch"===this._lastPointerType&&this._context.viewModel.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)}_onMouseDown(e,t){"touch"!==e.browserEvent.pointerType&&super._onMouseDown(e,t)}}class c extends l.MouseHandler{constructor(e,t,i){super(e,t,i),this._register(s.Gesture.addTarget(this.viewHelper.linesContentDomNode)),this._register(n.addDisposableListener(this.viewHelper.linesContentDomNode,s.EventType.Tap,e=>this.onTap(e))),this._register(n.addDisposableListener(this.viewHelper.linesContentDomNode,s.EventType.Change,e=>this.onChange(e))),this._register(n.addDisposableListener(this.viewHelper.linesContentDomNode,s.EventType.Contextmenu,e=>this._onContextMenu(new a.EditorMouseEvent(e,!1,this.viewHelper.viewDomNode),!1)))}onTap(e){e.preventDefault(),this.viewHelper.focusTextArea();let t=this._createMouseTarget(new a.EditorMouseEvent(e,!1,this.viewHelper.viewDomNode),!1);if(t.position){let e=document.createEvent("CustomEvent");e.initEvent(d.TextAreaSyntethicEvents.Tap,!1,!0),this.viewHelper.dispatchTextAreaEvent(e),this.viewController.moveTo(t.position)}}onChange(e){this._context.viewModel.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)}}class p extends r.Disposable{constructor(e,t,i){super(),o.isIOS&&u.BrowserFeatures.pointerEvents?this.handler=this._register(new h(e,t,i)):window.TouchEvent?this.handler=this._register(new c(e,t,i)):this.handler=this._register(new l.MouseHandler(e,t,i))}getTargetAtClientPoint(e,t){return this.handler.getTargetAtClientPoint(e,t)}}},661493:function(e,t,i){"use strict";i.r(t),i.d(t,{LinesDecorationsOverlay:function(){return o}}),i("237713");var n=i("511428");class o extends n.DedupOverlay{constructor(e){super(),this._context=e;let t=this._context.configuration.options.get(133);this._decorationsLeft=t.decorationsLeft,this._decorationsWidth=t.decorationsWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){let t=this._context.configuration.options.get(133);return this._decorationsLeft=t.decorationsLeft,this._decorationsWidth=t.decorationsWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getDecorations(e){let t=e.getDecorationsInViewport(),i=[],o=0;for(let e=0,s=t.length;e<s;e++){let s=t[e],r=s.options.linesDecorationsClassName;r&&(i[o++]=new n.DecorationToRender(s.range.startLineNumber,s.range.endLineNumber,r));let l=s.options.firstLineDecorationClassName;l&&(i[o++]=new n.DecorationToRender(s.range.startLineNumber,s.range.startLineNumber,l))}return i}prepareRender(e){let t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,n=this._render(t,i,this._getDecorations(e)),o=this._decorationsLeft.toString(),s='" style="left:'+o+"px;width:"+this._decorationsWidth.toString()+'px;"></div>',r=[];for(let e=t;e<=i;e++){let i=e-t,o=n[i],l="";for(let e=0,t=o.length;e<t;e++)l+='<div class="cldr '+o[e]+s;r[i]=l}this._renderResult=r}render(e,t){return this._renderResult?this._renderResult[t-e]:""}}},153049:function(e,t,i){"use strict";i.r(t),i.d(t,{CharacterClassifier:function(){return o},CharacterSet:function(){return s}});var n=i("979673");class o{constructor(e){let t=(0,n.toUint8)(e);this._defaultValue=t,this._asciiMap=o._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){let t=new Uint8Array(256);for(let i=0;i<256;i++)t[i]=e;return t}set(e,t){let i=(0,n.toUint8)(t);e>=0&&e<256?this._asciiMap[e]=i:this._map.set(e,i)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}}class s{constructor(){this._actual=new o(0)}add(e){this._actual.set(e,1)}has(e){return 1===this._actual.get(e)}}},912952:function(e,t,i){"use strict";i.r(t),i.d(t,{CompositionOutcome:function(){return v},TypeOperations:function(){return b},TypeWithAutoClosingCommand:function(){return _}});var n=i("161111"),o=i("266763"),s=i("838846"),r=i("739379"),l=i("808932"),a=i("607910"),u=i("840890"),d=i("761045"),h=i("457938"),c=i("49286"),p=i("962785"),g=i("965633"),f=i("545477"),m=i("79125");class b{static indent(e,t,i){if(null===t||null===i)return[];let n=[];for(let t=0,o=i.length;t<o;t++)n[t]=new r.ShiftCommand(i[t],{isUnshift:!1,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent},e.languageConfigurationService);return n}static outdent(e,t,i){let n=[];for(let t=0,o=i.length;t<o;t++)n[t]=new r.ShiftCommand(i[t],{isUnshift:!0,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent},e.languageConfigurationService);return n}static shiftIndent(e,t,i){return i=i||1,r.ShiftCommand.shiftIndent(t,t.length+i,e.tabSize,e.indentSize,e.insertSpaces)}static unshiftIndent(e,t,i){return i=i||1,r.ShiftCommand.unshiftIndent(t,t.length+i,e.tabSize,e.indentSize,e.insertSpaces)}static _distributedPaste(e,t,i,n){let o=[];for(let e=0,t=i.length;e<t;e++)o[e]=new s.ReplaceCommand(i[e],n[e]);return new a.EditOperationResult(0,o,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _simplePaste(e,t,i,n,o){let r=[];for(let e=0,t=i.length;e<t;e++){let t=i[e],l=t.getPosition();if(o&&!t.isEmpty()&&(o=!1),o&&n.indexOf("\n")!==n.length-1&&(o=!1),o){let i=new d.Range(l.lineNumber,1,l.lineNumber,1);r[e]=new s.ReplaceCommandThatPreservesSelection(i,n,t,!0)}else r[e]=new s.ReplaceCommand(t,n)}return new a.EditOperationResult(0,r,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _distributePasteToCursors(e,t,i,n,s){if(n||1===t.length)return null;if(s&&s.length===t.length)return s;if("spread"===e.multiCursorPaste){10===i.charCodeAt(i.length-1)&&(i=i.substr(0,i.length-1)),13===i.charCodeAt(i.length-1)&&(i=i.substr(0,i.length-1));let e=o.splitLines(i);if(e.length===t.length)return e}return null}static paste(e,t,i,n,o,s){let r=this._distributePasteToCursors(e,i,n,o,s);return r?(i=i.sort(d.Range.compareRangesUsingStarts),this._distributedPaste(e,t,i,r)):this._simplePaste(e,t,i,n,o)}static _goodIndentForLine(e,t,i){let n=null,s="",r=(0,f.getInheritIndentForLine)(e.autoIndent,t,i,!1,e.languageConfigurationService);if(r)n=r.action,s=r.indentation;else if(i>1){let n;for(n=i-1;n>=1;n--){let e=t.getLineContent(n);if(o.lastNonWhitespaceIndex(e)>=0)break}if(n<1)return null;let r=t.getLineMaxColumn(n),l=(0,m.getEnterAction)(e.autoIndent,t,new d.Range(n,r,n,r),e.languageConfigurationService);l&&(s=l.indentation+l.appendText)}return(n&&(n===c.IndentAction.Indent&&(s=b.shiftIndent(e,s)),n===c.IndentAction.Outdent&&(s=b.unshiftIndent(e,s)),s=e.normalizeIndentation(s)),s)?s:null}static _replaceJumpToNextIndent(e,t,i,n){let o="",r=i.getStartPosition();if(e.insertSpaces){let i=e.visibleColumnFromColumn(t,r),n=e.indentSize,s=n-i%n;for(let e=0;e<s;e++)o+=" "}else o=" ";return new s.ReplaceCommand(i,o,n)}static tab(e,t,i){let n=[];for(let o=0,l=i.length;o<l;o++){let l=i[o];if(l.isEmpty()){let i=t.getLineContent(l.startLineNumber);if(/^\s*$/.test(i)&&t.tokenization.isCheapToTokenize(l.startLineNumber)){let r=this._goodIndentForLine(e,t,l.startLineNumber);r=r||" ";let a=e.normalizeIndentation(r);if(!i.startsWith(a)){n[o]=new s.ReplaceCommand(new d.Range(l.startLineNumber,1,l.startLineNumber,i.length+1),a,!0);continue}}n[o]=this._replaceJumpToNextIndent(e,t,l,!0)}else{if(l.startLineNumber===l.endLineNumber){let i=t.getLineMaxColumn(l.startLineNumber);if(1!==l.startColumn||l.endColumn!==i){n[o]=this._replaceJumpToNextIndent(e,t,l,!1);continue}}n[o]=new r.ShiftCommand(l,{isUnshift:!1,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent},e.languageConfigurationService)}}return n}static compositionType(e,t,i,n,o,s,r,l){let u=n.map(e=>this._compositionType(i,e,o,s,r,l));return new a.EditOperationResult(4,u,{shouldPushStackElementBefore:y(e,4),shouldPushStackElementAfter:!1})}static _compositionType(e,t,i,n,o,r){if(!t.isEmpty())return null;let l=t.getPosition(),a=Math.max(1,l.column-n),u=Math.min(e.getLineMaxColumn(l.lineNumber),l.column+o),h=new d.Range(l.lineNumber,a,l.lineNumber,u);return e.getValueInRange(h)===i&&0===r?null:new s.ReplaceCommandWithOffsetCursorState(h,i,0,r)}static _typeCommand(e,t,i){return i?new s.ReplaceCommandWithoutChangingPosition(e,t,!0):new s.ReplaceCommand(e,t,!0)}static _enter(e,t,i,n){if(0===e.autoIndent)return b._typeCommand(n,"\n",i);if(!t.tokenization.isCheapToTokenize(n.getStartPosition().lineNumber)||1===e.autoIndent){let s=t.getLineContent(n.startLineNumber),r=o.getLeadingWhitespace(s).substring(0,n.startColumn-1);return b._typeCommand(n,"\n"+e.normalizeIndentation(r),i)}let r=(0,m.getEnterAction)(e.autoIndent,t,n,e.languageConfigurationService);if(r){if(r.indentAction===c.IndentAction.None)return b._typeCommand(n,"\n"+e.normalizeIndentation(r.indentation+r.appendText),i);if(r.indentAction===c.IndentAction.Indent)return b._typeCommand(n,"\n"+e.normalizeIndentation(r.indentation+r.appendText),i);else if(r.indentAction===c.IndentAction.IndentOutdent){let t=e.normalizeIndentation(r.indentation),o=e.normalizeIndentation(r.indentation+r.appendText),l="\n"+o+"\n"+t;return i?new s.ReplaceCommandWithoutChangingPosition(n,l,!0):new s.ReplaceCommandWithOffsetCursorState(n,l,-1,o.length-t.length,!0)}else if(r.indentAction===c.IndentAction.Outdent){let t=b.unshiftIndent(e,r.indentation);return b._typeCommand(n,"\n"+e.normalizeIndentation(t+r.appendText),i)}}let l=t.getLineContent(n.startLineNumber),a=o.getLeadingWhitespace(l).substring(0,n.startColumn-1);if(e.autoIndent>=4){let r=(0,f.getIndentForEnter)(e.autoIndent,t,n,{unshiftIndent:t=>b.unshiftIndent(e,t),shiftIndent:t=>b.shiftIndent(e,t),normalizeIndentation:t=>e.normalizeIndentation(t)},e.languageConfigurationService);if(r){let l=e.visibleColumnFromColumn(t,n.getEndPosition()),a=n.endColumn,u=t.getLineContent(n.endLineNumber),d=o.firstNonWhitespaceIndex(u);if(n=d>=0?n.setEndPosition(n.endLineNumber,Math.max(n.endColumn,d+1)):n.setEndPosition(n.endLineNumber,t.getLineMaxColumn(n.endLineNumber)),i)return new s.ReplaceCommandWithoutChangingPosition(n,"\n"+e.normalizeIndentation(r.afterEnter),!0);{let t=0;return a<=d+1&&(!e.insertSpaces&&(l=Math.ceil(l/e.indentSize)),t=Math.min(l+1-e.normalizeIndentation(r.afterEnter).length-1,0)),new s.ReplaceCommandWithOffsetCursorState(n,"\n"+e.normalizeIndentation(r.afterEnter),0,t,!0)}}}return b._typeCommand(n,"\n"+e.normalizeIndentation(a),i)}static _isAutoIndentType(e,t,i){if(e.autoIndent<4)return!1;for(let e=0,n=i.length;e<n;e++)if(!t.tokenization.isCheapToTokenize(i[e].getEndPosition().lineNumber))return!1;return!0}static _runAutoIndentType(e,t,i,n){let o=(0,p.getIndentationAtPosition)(t,i.startLineNumber,i.startColumn),s=(0,f.getIndentActionForType)(e.autoIndent,t,i,n,{shiftIndent:t=>b.shiftIndent(e,t),unshiftIndent:t=>b.unshiftIndent(e,t)},e.languageConfigurationService);if(null===s)return null;if(s!==e.normalizeIndentation(o)){let o=t.getLineFirstNonWhitespaceColumn(i.startLineNumber);return 0===o?b._typeCommand(new d.Range(i.startLineNumber,1,i.endLineNumber,i.endColumn),e.normalizeIndentation(s)+n,!1):b._typeCommand(new d.Range(i.startLineNumber,1,i.endLineNumber,i.endColumn),e.normalizeIndentation(s)+t.getLineContent(i.startLineNumber).substring(o-1,i.startColumn-1)+n,!1)}return null}static _isAutoClosingOvertype(e,t,i,n,o){if("never"===e.autoClosingOvertype||!e.autoClosingPairs.autoClosingPairsCloseSingleChar.has(o))return!1;for(let s=0,r=i.length;s<r;s++){let r=i[s];if(!r.isEmpty())return!1;let l=r.getPosition(),u=t.getLineContent(l.lineNumber);if(u.charAt(l.column-1)!==o)return!1;let d=(0,a.isQuote)(o);if(92===(l.column>2?u.charCodeAt(l.column-2):0)&&d)return!1;if("auto"===e.autoClosingOvertype){let e=!1;for(let t=0,i=n.length;t<i;t++){let i=n[t];if(l.lineNumber===i.startLineNumber&&l.column===i.startColumn){e=!0;break}}if(!e)return!1}}return!0}static _runAutoClosingOvertype(e,t,i,n,o){let r=[];for(let e=0,t=n.length;e<t;e++){let t=n[e].getPosition(),i=new d.Range(t.lineNumber,t.column,t.lineNumber,t.column+1);r[e]=new s.ReplaceCommand(i,o)}return new a.EditOperationResult(4,r,{shouldPushStackElementBefore:y(e,4),shouldPushStackElementAfter:!1})}static _isBeforeClosingBrace(e,t){let i=t.charAt(0),n=e.autoClosingPairs.autoClosingPairsOpenByStart.get(i)||[],o=e.autoClosingPairs.autoClosingPairsCloseByStart.get(i)||[],s=n.some(e=>t.startsWith(e.open)),r=o.some(e=>t.startsWith(e.close));return!s&&r}static _findAutoClosingPairOpen(e,t,i,n){let o=e.autoClosingPairs.autoClosingPairsOpenByEnd.get(n);if(!o)return null;let s=null;for(let e of o)if(null===s||e.open.length>s.open.length){let o=!0;for(let s of i)if(t.getValueInRange(new d.Range(s.lineNumber,s.column-e.open.length+1,s.lineNumber,s.column))+n!==e.open){o=!1;break}o&&(s=e)}return s}static _findContainedAutoClosingPair(e,t){if(t.open.length<=1)return null;let i=t.close.charAt(t.close.length-1),n=e.autoClosingPairs.autoClosingPairsCloseByEnd.get(i)||[],o=null;for(let e of n)e.open!==t.open&&t.open.includes(e.open)&&t.close.endsWith(e.close)&&(!o||e.open.length>o.open.length)&&(o=e);return o}static _getAutoClosingPairClose(e,t,i,n,o){let s=(0,a.isQuote)(n),r=s?e.autoClosingQuotes:e.autoClosingBrackets,l=s?e.shouldAutoCloseBefore.quote:e.shouldAutoCloseBefore.bracket;if("never"===r)return null;for(let e of i)if(!e.isEmpty())return null;let d=i.map(e=>{let t=e.getPosition();return o?{lineNumber:t.lineNumber,beforeColumn:t.column-n.length,afterColumn:t.column}:{lineNumber:t.lineNumber,beforeColumn:t.column,afterColumn:t.column}}),c=this._findAutoClosingPairOpen(e,t,d.map(e=>new h.Position(e.lineNumber,e.beforeColumn)),n);if(!c)return null;let p=this._findContainedAutoClosingPair(e,c),f=p?p.close:"",m=!0;for(let i of d){let{lineNumber:o,beforeColumn:s,afterColumn:a}=i,d=t.getLineContent(o),h=d.substring(0,s-1),p=d.substring(a-1);if(!p.startsWith(f)&&(m=!1),p.length>0){let t=p.charAt(0);if(!b._isBeforeClosingBrace(e,p)&&!l(t))return null}if(1===c.open.length&&("'"===n||'"'===n)&&"always"!==r){let t=(0,u.getMapForWordSeparators)(e.wordSeparators);if(h.length>0){let e=h.charCodeAt(h.length-1);if(0===t.get(e))return null}}if(!t.tokenization.isCheapToTokenize(o))return null;t.tokenization.forceTokenization(o);let _=t.tokenization.getLineTokens(o),v=(0,g.createScopedLineTokens)(_,s-1);if(!c.shouldAutoClose(v,s-v.firstCharOffset))return null;let C=c.findNeutralCharacter();if(C){let e=t.tokenization.getTokenTypeIfInsertingCharacter(o,s,C);if(!c.isOK(e))return null}}return m?c.close.substring(0,c.close.length-f.length):c.close}static _runAutoClosingOpenCharType(e,t,i,n,o,s,r){let l=[];for(let e=0,t=n.length;e<t;e++){let t=n[e];l[e]=new _(t,o,!s,r)}return new a.EditOperationResult(4,l,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}static _shouldSurroundChar(e,t){return(0,a.isQuote)(t)?"quotes"===e.autoSurround||"languageDefined"===e.autoSurround:"brackets"===e.autoSurround||"languageDefined"===e.autoSurround}static _isSurroundSelectionType(e,t,i,n){if(!b._shouldSurroundChar(e,n)||!e.surroundingPairs.hasOwnProperty(n))return!1;let o=(0,a.isQuote)(n);for(let e of i){if(e.isEmpty())return!1;let i=!0;for(let n=e.startLineNumber;n<=e.endLineNumber;n++){let o=t.getLineContent(n),s=n===e.startLineNumber?e.startColumn-1:0,r=n===e.endLineNumber?e.endColumn-1:o.length,l=o.substring(s,r);if(/[^ \t]/.test(l)){i=!1;break}}if(i)return!1;if(o&&e.startLineNumber===e.endLineNumber&&e.startColumn+1===e.endColumn){let i=t.getValueInRange(e);if((0,a.isQuote)(i))return!1}}return!0}static _runSurroundSelectionType(e,t,i,n,o){let s=[];for(let e=0,i=n.length;e<i;e++){let i=n[e],r=t.surroundingPairs[o];s[e]=new l.SurroundSelectionCommand(i,o,r)}return new a.EditOperationResult(0,s,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _isTypeInterceptorElectricChar(e,t,i){return!!(1===i.length&&t.tokenization.isCheapToTokenize(i[0].getEndPosition().lineNumber))||!1}static _typeInterceptorElectricChar(e,t,i,r,l){let u;if(!t.electricChars.hasOwnProperty(l)||!r.isEmpty())return null;let h=r.getPosition();i.tokenization.forceTokenization(h.lineNumber);let c=i.tokenization.getLineTokens(h.lineNumber);try{u=t.onElectricCharacter(l,c,h.column)}catch(e){return(0,n.onUnexpectedError)(e),null}if(!u)return null;if(u.matchOpenBracket){let n=(c.getLineContent()+l).lastIndexOf(u.matchOpenBracket)+1,r=i.bracketPairs.findMatchingBracketUp(u.matchOpenBracket,{lineNumber:h.lineNumber,column:n},500);if(r){if(r.startLineNumber===h.lineNumber)return null;let n=i.getLineContent(r.startLineNumber),u=o.getLeadingWhitespace(n),c=t.normalizeIndentation(u),p=i.getLineContent(h.lineNumber),g=i.getLineFirstNonWhitespaceColumn(h.lineNumber)||h.column,f=c+p.substring(g-1,h.column-1)+l,m=new d.Range(h.lineNumber,1,h.lineNumber,h.column),b=new s.ReplaceCommand(m,f);return new a.EditOperationResult(C(f,e),[b],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!0})}}return null}static compositionEndWithInterceptors(e,t,i,n,o,r){if(!n)return null;let u=null;for(let e of n)if(null===u)u=e.insertedText;else if(u!==e.insertedText)return null;if(!u||1!==u.length)return null;let h=u,c=!1;for(let e of n)if(0!==e.deletedText.length){c=!0;break}if(c){if(!b._shouldSurroundChar(t,h)||!t.surroundingPairs.hasOwnProperty(h))return null;let e=(0,a.isQuote)(h);for(let t of n)if(0!==t.deletedSelectionStart||t.deletedSelectionEnd!==t.deletedText.length||/^[ \t]+$/.test(t.deletedText)||e&&(0,a.isQuote)(t.deletedText))return null;let i=[];for(let e of o){if(!e.isEmpty())return null;i.push(e.getPosition())}if(i.length!==n.length)return null;let s=[];for(let e=0,t=i.length;e<t;e++)s.push(new l.CompositionSurroundSelectionCommand(i[e],n[e].deletedText,h));return new a.EditOperationResult(4,s,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(this._isAutoClosingOvertype(t,i,o,r,h)){let e=o.map(e=>new s.ReplaceCommand(new d.Range(e.positionLineNumber,e.positionColumn,e.positionLineNumber,e.positionColumn+1),"",!1));return new a.EditOperationResult(4,e,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}let p=this._getAutoClosingPairClose(t,i,o,h,!0);return null!==p?this._runAutoClosingOpenCharType(e,t,i,o,h,!0,p):null}static typeWithInterceptors(e,t,i,n,o,r,l){if(!e&&"\n"===l){let e=[];for(let t=0,s=o.length;t<s;t++)e[t]=b._enter(i,n,!1,o[t]);return new a.EditOperationResult(4,e,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(!e&&this._isAutoIndentType(i,n,o)){let e=[],t=!1;for(let s=0,r=o.length;s<r;s++)if(e[s]=this._runAutoIndentType(i,n,o[s],l),!e[s]){t=!0;break}if(!t)return new a.EditOperationResult(4,e,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(this._isAutoClosingOvertype(i,n,o,r,l))return this._runAutoClosingOvertype(t,i,n,o,l);if(!e){let e=this._getAutoClosingPairClose(i,n,o,l,!1);if(e)return this._runAutoClosingOpenCharType(t,i,n,o,l,!1,e)}if(!e&&this._isSurroundSelectionType(i,n,o,l))return this._runSurroundSelectionType(t,i,n,o,l);if(!e&&this._isTypeInterceptorElectricChar(i,n,o)){let e=this._typeInterceptorElectricChar(t,i,n,o[0],l);if(e)return e}let u=[];for(let e=0,t=o.length;e<t;e++)u[e]=new s.ReplaceCommand(o[e],l);let d=C(l,t);return new a.EditOperationResult(d,u,{shouldPushStackElementBefore:y(t,d),shouldPushStackElementAfter:!1})}static typeWithoutInterceptors(e,t,i,n,o){let r=[];for(let e=0,t=n.length;e<t;e++)r[e]=new s.ReplaceCommand(n[e],o);let l=C(o,e);return new a.EditOperationResult(l,r,{shouldPushStackElementBefore:y(e,l),shouldPushStackElementAfter:!1})}static lineInsertBefore(e,t,i){if(null===t||null===i)return[];let n=[];for(let o=0,r=i.length;o<r;o++){let r=i[o].positionLineNumber;if(1===r)n[o]=new s.ReplaceCommandWithoutChangingPosition(new d.Range(1,1,1,1),"\n");else{r--;let i=t.getLineMaxColumn(r);n[o]=this._enter(e,t,!1,new d.Range(r,i,r,i))}}return n}static lineInsertAfter(e,t,i){if(null===t||null===i)return[];let n=[];for(let o=0,s=i.length;o<s;o++){let s=i[o].positionLineNumber,r=t.getLineMaxColumn(s);n[o]=this._enter(e,t,!1,new d.Range(s,r,s,r))}return n}static lineBreakInsert(e,t,i){let n=[];for(let o=0,s=i.length;o<s;o++)n[o]=this._enter(e,t,!0,i[o]);return n}}class _ extends s.ReplaceCommandWithOffsetCursorState{constructor(e,t,i,n){super(e,(i?t:"")+n,0,-n.length),this._openCharacter=t,this._closeCharacter=n,this.closeCharacterRange=null,this.enclosingRange=null}computeCursorState(e,t){let i=t.getInverseEditOperations()[0].range;return this.closeCharacterRange=new d.Range(i.startLineNumber,i.endColumn-this._closeCharacter.length,i.endLineNumber,i.endColumn),this.enclosingRange=new d.Range(i.startLineNumber,i.endColumn-this._openCharacter.length-this._closeCharacter.length,i.endLineNumber,i.endColumn),super.computeCursorState(e,t)}}class v{constructor(e,t,i,n,o,s){this.deletedText=e,this.deletedSelectionStart=t,this.deletedSelectionEnd=i,this.insertedText=n,this.insertedSelectionStart=o,this.insertedSelectionEnd=s}}function C(e,t){return" "===e?5===t||6===t?6:5:4}function y(e,t){return!!k(e)&&!k(t)||5!==e&&w(e)!==w(t)}function w(e){return 6===e||5===e?"space":e}function k(e){return 4===e||5===e||6===e}},431468:function(e,t,i){"use strict";i.r(t),i.d(t,{BracketElectricCharacterSupport:function(){return r}});var n=i("603868"),o=i("965633"),s=i("223865");class r{constructor(e){this._richEditBrackets=e}getElectricCharacters(){let e=[];if(this._richEditBrackets)for(let t of this._richEditBrackets.brackets)for(let i of t.close){let t=i.charAt(i.length-1);e.push(t)}return(0,n.distinct)(e)}onElectricCharacter(e,t,i){if(!this._richEditBrackets||0===this._richEditBrackets.brackets.length)return null;let n=t.findTokenIndexAtOffset(i-1);if((0,o.ignoreBracketsInToken)(t.getStandardTokenType(n)))return null;let r=this._richEditBrackets.reversedRegex,l=t.getLineContent().substring(0,i-1)+e,a=s.BracketsUtils.findPrevBracketInRange(r,1,l,0,l.length);if(!a)return null;let u=l.substring(a.startColumn-1,a.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[u])return null;let d=t.getActualLineContentBefore(a.startColumn-1);return/^\s*$/.test(d)?{matchOpenBracket:u}:null}}},617291:function(e,t,i){"use strict";i.r(t),i.d(t,{tokenizeLineToHTML:function(){return u},tokenizeToString:function(){return a}});var n=i("266763"),o=i("815776"),s=i("274854"),r=i("143972");let l={getInitialState:()=>r.NullState,tokenizeEncoded:(e,t,i)=>(0,r.nullTokenizeEncoded)(0,i)};function a(e,t,i){var n,o,r,a;return n=this,o=void 0,r=void 0,a=function*(){if(!i)return d(t,e.languageIdCodec,l);let n=yield s.TokenizationRegistry.getOrCreate(i);return d(t,e.languageIdCodec,n||l)},new(r||(r=Promise))(function(e,t){function i(e){try{l(a.next(e))}catch(e){t(e)}}function s(e){try{l(a.throw(e))}catch(e){t(e)}}function l(t){var n;t.done?e(t.value):((n=t.value)instanceof r?n:new r(function(e){e(n)})).then(i,s)}l((a=a.apply(n,o||[])).next())})}function u(e,t,i,n,o,s,r){let l="<div>",a=n,u=0,d=!0;for(let h=0,c=t.getCount();h<c;h++){let c=t.getEndOffset(h);if(c<=n)continue;let p="";for(;a<c&&a<o;a++){let t=e.charCodeAt(a);switch(t){case 9:{let e=s-(a+u)%s;for(u+=e-1;e>0;)r&&d?(p+=" ",d=!1):(p+=" ",d=!0),e--;break}case 60:p+="<",d=!1;break;case 62:p+=">",d=!1;break;case 38:p+="&",d=!1;break;case 0:p+="�",d=!1;break;case 65279:case 8232:case 8233:case 133:p+="\uFFFD",d=!1;break;case 13:p+="​",d=!1;break;case 32:r&&d?(p+=" ",d=!1):(p+=" ",d=!0);break;default:p+=String.fromCharCode(t),d=!1}}if(l+=`<span style="${t.getInlineStyle(h,i)}">${p}</span>`,c>o||a>=o)break}return l+="</div>"}function d(e,t,i){let s='<div class="monaco-tokenized-source">',r=n.splitLines(e),l=i.getInitialState();for(let e=0,a=r.length;e<a;e++){let a=r[e];e>0&&(s+="<br/>");let u=i.tokenizeEncoded(a,!0,l);o.LineTokens.convertToEndOffset(u.tokens,a.length);let d=new o.LineTokens(u.tokens,a,t).inflate(),h=0;for(let e=0,t=d.getCount();e<t;e++){let t=d.getClassName(e),i=d.getEndOffset(e);s+=`<span class="${t}">${n.escape(a.substring(h,i))}</span>`,h=i}l=u.endState}return s+="</div>"}},669131:function(e,t,i){"use strict";i.r(t),i.d(t,{PieceTreeBase:function(){return m},StringBuffer:function(){return p},createLineStarts:function(){return h},createLineStartsFast:function(){return d}});var n=i("457938"),o=i("761045"),s=i("63681"),r=i("231802"),l=i("783968");function a(e){let t;return(t=e[e.length-1]<65536?new Uint16Array(e.length):new Uint32Array(e.length)).set(e,0),t}class u{constructor(e,t,i,n,o){this.lineStarts=e,this.cr=t,this.lf=i,this.crlf=n,this.isBasicASCII=o}}function d(e,t=!0){let i=[0],n=1;for(let t=0,o=e.length;t<o;t++){let s=e.charCodeAt(t);13===s?t+1<o&&10===e.charCodeAt(t+1)?(i[n++]=t+2,t++):i[n++]=t+1:10===s&&(i[n++]=t+1)}return t?a(i):i}function h(e,t){e.length=0,e[0]=0;let i=1,n=0,o=0,s=0,r=!0;for(let l=0,a=t.length;l<a;l++){let u=t.charCodeAt(l);13===u?l+1<a&&10===t.charCodeAt(l+1)?(s++,e[i++]=l+2,l++):(n++,e[i++]=l+1):10===u?(o++,e[i++]=l+1):r&&9!==u&&(u<32||u>126)&&(r=!1)}let l=new u(a(e),n,o,s,r);return e.length=0,l}class c{constructor(e,t,i,n,o){this.bufferIndex=e,this.start=t,this.end=i,this.lineFeedCnt=n,this.length=o}}class p{constructor(e,t){this.buffer=e,this.lineStarts=t}}class g{constructor(e,t){this._pieces=[],this._tree=e,this._BOM=t,this._index=0,e.root!==r.SENTINEL&&e.iterate(e.root,e=>(e!==r.SENTINEL&&this._pieces.push(e.piece),!0))}read(){if(0===this._pieces.length)return 0===this._index?(this._index++,this._BOM):null;return this._index>this._pieces.length-1?null:0===this._index?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])}}class f{constructor(e){this._limit=e,this._cache=[]}get(e){for(let t=this._cache.length-1;t>=0;t--){let i=this._cache[t];if(i.nodeStartOffset<=e&&i.nodeStartOffset+i.node.piece.length>=e)return i}return null}get2(e){for(let t=this._cache.length-1;t>=0;t--){let i=this._cache[t];if(i.nodeStartLineNumber&&i.nodeStartLineNumber<e&&i.nodeStartLineNumber+i.node.piece.lineFeedCnt>=e)return i}return null}set(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)}validate(e){let t=!1,i=this._cache;for(let n=0;n<i.length;n++){let o=i[n];if(null===o.node.parent||o.nodeStartOffset>=e){i[n]=null,t=!0;continue}}if(t){let e=[];for(let t of i)null!==t&&e.push(t);this._cache=e}}}class m{constructor(e,t,i){this.create(e,t,i)}create(e,t,i){this._buffers=[new p("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=r.SENTINEL,this._lineCnt=1,this._length=0,this._EOL=t,this._EOLLength=t.length,this._EOLNormalized=i;let n=null;for(let t=0,i=e.length;t<i;t++)if(e[t].buffer.length>0){!e[t].lineStarts&&(e[t].lineStarts=d(e[t].buffer));let i=new c(t+1,{line:0,column:0},{line:e[t].lineStarts.length-1,column:e[t].buffer.length-e[t].lineStarts[e[t].lineStarts.length-1]},e[t].lineStarts.length-1,e[t].buffer.length);this._buffers.push(e[t]),n=this.rbInsertRight(n,i)}this._searchCache=new f(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}normalizeEOL(e){let t=65535-Math.floor(21845),i=2*t,n="",o=0,s=[];if(this.iterate(this.root,r=>{let l=this.getNodeContent(r),a=l.length;if(o<=t||o+a<i)return n+=l,o+=a,!0;let u=n.replace(/\r\n|\r|\n/g,e);return s.push(new p(u,d(u))),n=l,o=a,!0}),o>0){let t=n.replace(/\r\n|\r|\n/g,e);s.push(new p(t,d(t)))}this.create(s,e,!0)}getEOL(){return this._EOL}setEOL(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)}createSnapshot(e){return new g(this,e)}getOffsetAt(e,t){let i=0,n=this.root;for(;n!==r.SENTINEL;)if(n.left!==r.SENTINEL&&n.lf_left+1>=e)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt+1>=e)return i+=n.size_left,i+(this.getAccumulatedValue(n,e-n.lf_left-2)+t-1);e-=n.lf_left+n.piece.lineFeedCnt,i+=n.size_left+n.piece.length,n=n.right}return i}getPositionAt(e){e=Math.max(0,e=Math.floor(e));let t=this.root,i=0,o=e;for(;t!==r.SENTINEL;)if(0!==t.size_left&&t.size_left>=e)t=t.left;else if(t.size_left+t.piece.length>=e){let s=this.getIndexOf(t,e-t.size_left);if(i+=t.lf_left+s.index,0===s.index){let e=o-this.getOffsetAt(i+1,1);return new n.Position(i+1,e+1)}return new n.Position(i+1,s.remainder+1)}else{if(e-=t.size_left+t.piece.length,i+=t.lf_left+t.piece.lineFeedCnt,t.right===r.SENTINEL){let t=this.getOffsetAt(i+1,1),s=o-e-t;return new n.Position(i+1,s+1)}t=t.right}return new n.Position(1,1)}getValueInRange(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";let i=this.nodeAt2(e.startLineNumber,e.startColumn),n=this.nodeAt2(e.endLineNumber,e.endColumn),o=this.getValueInRange2(i,n);if(t)return t===this._EOL&&this._EOLNormalized?t===this.getEOL()&&this._EOLNormalized?o:o.replace(/\r\n|\r|\n/g,t):o.replace(/\r\n|\r|\n/g,t);return o}getValueInRange2(e,t){if(e.node===t.node){let i=e.node,n=this._buffers[i.piece.bufferIndex].buffer,o=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return n.substring(o+e.remainder,o+t.remainder)}let i=e.node,n=this._buffers[i.piece.bufferIndex].buffer,o=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start),s=n.substring(o+e.remainder,o+i.piece.length);for(i=i.next();i!==r.SENTINEL;){let e=this._buffers[i.piece.bufferIndex].buffer,n=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);if(i===t.node){s+=e.substring(n,n+t.remainder);break}s+=e.substr(n,i.piece.length);i=i.next()}return s}getLinesContent(){let e=[],t=0,i="",n=!1;return this.iterate(this.root,o=>{if(o===r.SENTINEL)return!0;let s=o.piece,l=s.length;if(0===l)return!0;let a=this._buffers[s.bufferIndex].buffer,u=this._buffers[s.bufferIndex].lineStarts,d=s.start.line,h=s.end.line,c=u[d]+s.start.column;if(n&&(10===a.charCodeAt(c)&&(c++,l--),e[t++]=i,i="",n=!1,0===l))return!0;if(d===h)return this._EOLNormalized||13!==a.charCodeAt(c+l-1)?i+=a.substr(c,l):(n=!0,i+=a.substr(c,l-1)),!0;i+=this._EOLNormalized?a.substring(c,Math.max(c,u[d+1]-this._EOLLength)):a.substring(c,u[d+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=i;for(let n=d+1;n<h;n++)i=this._EOLNormalized?a.substring(u[n],u[n+1]-this._EOLLength):a.substring(u[n],u[n+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=i;return this._EOLNormalized||13!==a.charCodeAt(u[h]+s.end.column-1)?i=a.substr(u[h],s.end.column):(n=!0,0===s.end.column?t--:i=a.substr(u[h],s.end.column-1)),!0}),n&&(e[t++]=i,i=""),e[t++]=i,e}getLength(){return this._length}getLineCount(){return this._lineCnt}getLineContent(e){return this._lastVisitedLine.lineNumber===e?this._lastVisitedLine.value:(this._lastVisitedLine.lineNumber=e,e===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(e):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(e,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(e).replace(/(\r\n|\r|\n)$/,""),this._lastVisitedLine.value)}_getCharCode(e){if(e.remainder===e.node.piece.length){let t=e.node.next();if(!t)return 0;let i=this._buffers[t.piece.bufferIndex],n=this.offsetInBuffer(t.piece.bufferIndex,t.piece.start);return i.buffer.charCodeAt(n)}{let t=this._buffers[e.node.piece.bufferIndex],i=this.offsetInBuffer(e.node.piece.bufferIndex,e.node.piece.start)+e.remainder;return t.buffer.charCodeAt(i)}}getLineCharCode(e,t){let i=this.nodeAt2(e,t+1);return this._getCharCode(i)}getLineLength(e){if(e===this.getLineCount()){let t=this.getOffsetAt(e,1);return this.getLength()-t}return this.getOffsetAt(e+1,1)-this.getOffsetAt(e,1)-this._EOLLength}findMatchesInNode(e,t,i,n,s,r,a,u,d,h,c){let p,g,f;let m=this._buffers[e.piece.bufferIndex],b=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start),_=this.offsetInBuffer(e.piece.bufferIndex,s),v=this.offsetInBuffer(e.piece.bufferIndex,r),C={line:0,column:0};t._wordSeparators?(g=m.buffer.substring(_,v),f=e=>e+_,t.reset(0)):(g=m.buffer,f=e=>e,t.reset(_));do if(p=t.next(g)){if(f(p.index)>=v)return h;this.positionInBuffer(e,f(p.index)-b,C);let t=this.getLineFeedCnt(e.piece.bufferIndex,s,C),r=C.line===s.line?C.column-s.column+n:C.column+1,a=r+p[0].length;if(c[h++]=(0,l.createFindMatch)(new o.Range(i+t,r,i+t,a),p,u),f(p.index)+p[0].length>=v)return h;if(h>=d)break}while(p);return h}findMatchesLineByLine(e,t,i,n){let o=[],s=0,r=new l.Searcher(t.wordSeparators,t.regex),a=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===a)return[];let u=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===u)return[];let d=this.positionInBuffer(a.node,a.remainder),h=this.positionInBuffer(u.node,u.remainder);if(a.node===u.node)return this.findMatchesInNode(a.node,r,e.startLineNumber,e.startColumn,d,h,t,i,n,s,o),o;let c=e.startLineNumber,p=a.node;for(;p!==u.node;){let l=this.getLineFeedCnt(p.piece.bufferIndex,d,p.piece.end);if(l>=1){let a=this._buffers[p.piece.bufferIndex].lineStarts,u=this.offsetInBuffer(p.piece.bufferIndex,p.piece.start),h=a[d.line+l],g=c===e.startLineNumber?e.startColumn:1;if((s=this.findMatchesInNode(p,r,c,g,d,this.positionInBuffer(p,h-u),t,i,n,s,o))>=n)return o;c+=l}let u=c===e.startLineNumber?e.startColumn-1:0;if(c===e.endLineNumber){let l=this.getLineContent(c).substring(u,e.endColumn-1);return s=this._findMatchesInLine(t,r,l,e.endLineNumber,u,s,o,i,n),o}if((s=this._findMatchesInLine(t,r,this.getLineContent(c).substr(u),c,u,s,o,i,n))>=n)return o;c++,p=(a=this.nodeAt2(c,1)).node,d=this.positionInBuffer(a.node,a.remainder)}if(c===e.endLineNumber){let l=c===e.startLineNumber?e.startColumn-1:0,a=this.getLineContent(c).substring(l,e.endColumn-1);return s=this._findMatchesInLine(t,r,a,e.endLineNumber,l,s,o,i,n),o}let g=c===e.startLineNumber?e.startColumn:1;return s=this.findMatchesInNode(u.node,r,c,g,d,h,t,i,n,s,o),o}_findMatchesInLine(e,t,i,n,r,a,u,d,h){let c;let p=e.wordSeparators;if(!d&&e.simpleSearch){let t=e.simpleSearch,d=t.length,c=i.length,g=-d;for(;-1!==(g=i.indexOf(t,g+d))&&(!(!p||(0,l.isValidMatch)(p,i,c,g,d))||(u[a++]=new s.FindMatch(new o.Range(n,g+1+r,n,g+1+d+r),null),!(a>=h))););return a}t.reset(0);do if((c=t.next(i))&&(u[a++]=(0,l.createFindMatch)(new o.Range(n,c.index+1+r,n,c.index+1+c[0].length+r),c,d),a>=h))break;while(c);return a}insert(e,t,i=!1){if(this._EOLNormalized=this._EOLNormalized&&i,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==r.SENTINEL){let{node:i,remainder:n,nodeStartOffset:o}=this.nodeAt(e),s=i.piece,r=s.bufferIndex,l=this.positionInBuffer(i,n);if(0===i.piece.bufferIndex&&s.end.line===this._lastChangeBufferPos.line&&s.end.column===this._lastChangeBufferPos.column&&o+s.length===e&&t.length<65535){this.appendToNode(i,t),this.computeBufferMetadata();return}if(o===e)this.insertContentToNodeLeft(t,i),this._searchCache.validate(e);else if(o+i.piece.length>e){let e=[],o=new c(s.bufferIndex,l,s.end,this.getLineFeedCnt(s.bufferIndex,l,s.end),this.offsetInBuffer(r,s.end)-this.offsetInBuffer(r,l));if(this.shouldCheckCRLF()&&this.endWithCR(t)&&10===this.nodeCharCodeAt(i,n)){let e={line:o.start.line+1,column:0};o=new c(o.bufferIndex,e,o.end,this.getLineFeedCnt(o.bufferIndex,e,o.end),o.length-1),t+="\n"}if(this.shouldCheckCRLF()&&this.startWithLF(t)){if(13===this.nodeCharCodeAt(i,n-1)){let o=this.positionInBuffer(i,n-1);this.deleteNodeTail(i,o),t="\r"+t,0===i.piece.length&&e.push(i)}else this.deleteNodeTail(i,l)}else this.deleteNodeTail(i,l);let a=this.createNewPieces(t);o.length>0&&this.rbInsertRight(i,o);let u=i;for(let e=0;e<a.length;e++)u=this.rbInsertRight(u,a[e]);this.deleteNodes(e)}else this.insertContentToNodeRight(t,i)}else{let e=this.createNewPieces(t),i=this.rbInsertLeft(null,e[0]);for(let t=1;t<e.length;t++)i=this.rbInsertRight(i,e[t])}this.computeBufferMetadata()}delete(e,t){if(this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",t<=0||this.root===r.SENTINEL)return;let i=this.nodeAt(e),n=this.nodeAt(e+t),o=i.node,s=n.node;if(o===s){let s=this.positionInBuffer(o,i.remainder),l=this.positionInBuffer(o,n.remainder);if(i.nodeStartOffset===e){if(t===o.piece.length){let e=o.next();(0,r.rbDelete)(this,o),this.validateCRLFWithPrevNode(e),this.computeBufferMetadata();return}this.deleteNodeHead(o,l),this._searchCache.validate(e),this.validateCRLFWithPrevNode(o),this.computeBufferMetadata();return}if(i.nodeStartOffset+o.piece.length===e+t){this.deleteNodeTail(o,s),this.validateCRLFWithNextNode(o),this.computeBufferMetadata();return}this.shrinkNode(o,s,l),this.computeBufferMetadata();return}let l=[],a=this.positionInBuffer(o,i.remainder);this.deleteNodeTail(o,a),this._searchCache.validate(e),0===o.piece.length&&l.push(o);let u=this.positionInBuffer(s,n.remainder);this.deleteNodeHead(s,u),0===s.piece.length&&l.push(s);let d=o.next();for(let e=d;e!==r.SENTINEL&&e!==s;e=e.next())l.push(e);let h=0===o.piece.length?o.prev():o;this.deleteNodes(l),this.validateCRLFWithNextNode(h),this.computeBufferMetadata()}insertContentToNodeLeft(e,t){let i=[];if(this.shouldCheckCRLF()&&this.endWithCR(e)&&this.startWithLF(t)){let n=t.piece,o={line:n.start.line+1,column:0},s=new c(n.bufferIndex,o,n.end,this.getLineFeedCnt(n.bufferIndex,o,n.end),n.length-1);t.piece=s,e+="\n",(0,r.updateTreeMetadata)(this,t,-1,-1),0===t.piece.length&&i.push(t)}let n=this.createNewPieces(e),o=this.rbInsertLeft(t,n[n.length-1]);for(let e=n.length-2;e>=0;e--)o=this.rbInsertLeft(o,n[e]);this.validateCRLFWithPrevNode(o),this.deleteNodes(i)}insertContentToNodeRight(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+="\n");let i=this.createNewPieces(e),n=this.rbInsertRight(t,i[0]),o=n;for(let e=1;e<i.length;e++)o=this.rbInsertRight(o,i[e]);this.validateCRLFWithPrevNode(n)}positionInBuffer(e,t,i){let n=e.piece,o=e.piece.bufferIndex,s=this._buffers[o].lineStarts,r=s[n.start.line]+n.start.column+t,l=n.start.line,a=n.end.line,u=0,d=0,h=0;for(;l<=a&&(h=s[u=l+(a-l)/2|0],u!==a);){;if(d=s[u+1],r<h)a=u-1;else if(r>=d)l=u+1;else break}return i?(i.line=u,i.column=r-h,null):{line:u,column:r-h}}getLineFeedCnt(e,t,i){if(0===i.column)return i.line-t.line;let n=this._buffers[e].lineStarts;if(i.line===n.length-1)return i.line-t.line;let o=n[i.line+1],s=n[i.line]+i.column;return o>s+1?i.line-t.line:13===this._buffers[e].buffer.charCodeAt(s-1)?i.line-t.line+1:i.line-t.line}offsetInBuffer(e,t){return this._buffers[e].lineStarts[t.line]+t.column}deleteNodes(e){for(let t=0;t<e.length;t++)(0,r.rbDelete)(this,e[t])}createNewPieces(e){if(e.length>65535){let t=[];for(;e.length>65535;){let i;let n=e.charCodeAt(65534);13===n||n>=55296&&n<=56319?(i=e.substring(0,65534),e=e.substring(65534)):(i=e.substring(0,65535),e=e.substring(65535));let o=d(i);t.push(new c(this._buffers.length,{line:0,column:0},{line:o.length-1,column:i.length-o[o.length-1]},o.length-1,i.length)),this._buffers.push(new p(i,o))}let i=d(e);return t.push(new c(this._buffers.length,{line:0,column:0},{line:i.length-1,column:e.length-i[i.length-1]},i.length-1,e.length)),this._buffers.push(new p(e,i)),t}let t=this._buffers[0].buffer.length,i=d(e,!1),n=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===t&&0!==t&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},n=this._lastChangeBufferPos;for(let e=0;e<i.length;e++)i[e]+=t+1;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(i.slice(1)),this._buffers[0].buffer+="_"+e,t+=1}else{if(0!==t)for(let e=0;e<i.length;e++)i[e]+=t;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(i.slice(1)),this._buffers[0].buffer+=e}let o=this._buffers[0].buffer.length,s=this._buffers[0].lineStarts.length-1,r=o-this._buffers[0].lineStarts[s],l={line:s,column:r},a=new c(0,n,l,this.getLineFeedCnt(0,n,l),o-t);return this._lastChangeBufferPos=l,[a]}getLineRawContent(e,t=0){let i=this.root,n="",o=this._searchCache.get2(e);if(o){i=o.node;let s=this.getAccumulatedValue(i,e-o.nodeStartLineNumber-1),r=this._buffers[i.piece.bufferIndex].buffer,l=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);if(o.nodeStartLineNumber+i.piece.lineFeedCnt===e)n=r.substring(l+s,l+i.piece.length);else{let n=this.getAccumulatedValue(i,e-o.nodeStartLineNumber);return r.substring(l+s,l+n-t)}}else{let o=0,s=e;for(;i!==r.SENTINEL;)if(i.left!==r.SENTINEL&&i.lf_left>=e-1)i=i.left;else if(i.lf_left+i.piece.lineFeedCnt>e-1){let n=this.getAccumulatedValue(i,e-i.lf_left-2),r=this.getAccumulatedValue(i,e-i.lf_left-1),l=this._buffers[i.piece.bufferIndex].buffer,a=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return o+=i.size_left,this._searchCache.set({node:i,nodeStartOffset:o,nodeStartLineNumber:s-(e-1-i.lf_left)}),l.substring(a+n,a+r-t)}else if(i.lf_left+i.piece.lineFeedCnt===e-1){let t=this.getAccumulatedValue(i,e-i.lf_left-2),o=this._buffers[i.piece.bufferIndex].buffer,s=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);n=o.substring(s+t,s+i.piece.length);break}else e-=i.lf_left+i.piece.lineFeedCnt,o+=i.size_left+i.piece.length,i=i.right}for(i=i.next();i!==r.SENTINEL;){let e=this._buffers[i.piece.bufferIndex].buffer;if(i.piece.lineFeedCnt>0){let o=this.getAccumulatedValue(i,0),s=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);n+=e.substring(s,s+o-t);break}{let t=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);n+=e.substr(t,i.piece.length)}i=i.next()}return n}computeBufferMetadata(){let e=this.root,t=1,i=0;for(;e!==r.SENTINEL;)t+=e.lf_left+e.piece.lineFeedCnt,i+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=i,this._searchCache.validate(this._length)}getIndexOf(e,t){let i=e.piece,n=this.positionInBuffer(e,t),o=n.line-i.start.line;if(this.offsetInBuffer(i.bufferIndex,i.end)-this.offsetInBuffer(i.bufferIndex,i.start)===t){let t=this.getLineFeedCnt(e.piece.bufferIndex,i.start,n);if(t!==o)return{index:t,remainder:0}}return{index:o,remainder:n.column}}getAccumulatedValue(e,t){if(t<0)return 0;let i=e.piece,n=this._buffers[i.bufferIndex].lineStarts,o=i.start.line+t+1;return o>i.end.line?n[i.end.line]+i.end.column-n[i.start.line]-i.start.column:n[o]-n[i.start.line]-i.start.column}deleteNodeTail(e,t){let i=e.piece,n=i.lineFeedCnt,o=this.offsetInBuffer(i.bufferIndex,i.end),s=this.offsetInBuffer(i.bufferIndex,t),l=this.getLineFeedCnt(i.bufferIndex,i.start,t),a=l-n,u=s-o,d=i.length+u;e.piece=new c(i.bufferIndex,i.start,t,l,d),(0,r.updateTreeMetadata)(this,e,u,a)}deleteNodeHead(e,t){let i=e.piece,n=i.lineFeedCnt,o=this.offsetInBuffer(i.bufferIndex,i.start),s=this.getLineFeedCnt(i.bufferIndex,t,i.end),l=this.offsetInBuffer(i.bufferIndex,t),a=s-n,u=o-l,d=i.length+u;e.piece=new c(i.bufferIndex,t,i.end,s,d),(0,r.updateTreeMetadata)(this,e,u,a)}shrinkNode(e,t,i){let n=e.piece,o=n.start,s=n.end,l=n.length,a=n.lineFeedCnt,u=this.getLineFeedCnt(n.bufferIndex,n.start,t),d=this.offsetInBuffer(n.bufferIndex,t)-this.offsetInBuffer(n.bufferIndex,o);e.piece=new c(n.bufferIndex,n.start,t,u,d),(0,r.updateTreeMetadata)(this,e,d-l,u-a);let h=new c(n.bufferIndex,i,s,this.getLineFeedCnt(n.bufferIndex,i,s),this.offsetInBuffer(n.bufferIndex,s)-this.offsetInBuffer(n.bufferIndex,i)),p=this.rbInsertRight(e,h);this.validateCRLFWithPrevNode(p)}appendToNode(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+="\n");let i=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),n=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;let o=d(t,!1);for(let e=0;e<o.length;e++)o[e]+=n;if(i){let e=this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-2];this._buffers[0].lineStarts.pop(),this._lastChangeBufferPos={line:this._lastChangeBufferPos.line-1,column:n-e}}this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(o.slice(1));let s=this._buffers[0].lineStarts.length-1,l=this._buffers[0].buffer.length-this._buffers[0].lineStarts[s],a={line:s,column:l},u=e.piece.length+t.length,h=e.piece.lineFeedCnt,p=this.getLineFeedCnt(0,e.piece.start,a),g=p-h;e.piece=new c(e.piece.bufferIndex,e.piece.start,a,p,u),this._lastChangeBufferPos=a,(0,r.updateTreeMetadata)(this,e,t.length,g)}nodeAt(e){let t=this.root,i=this._searchCache.get(e);if(i)return{node:i.node,nodeStartOffset:i.nodeStartOffset,remainder:e-i.nodeStartOffset};let n=0;for(;t!==r.SENTINEL;)if(t.size_left>e)t=t.left;else if(t.size_left+t.piece.length>=e){n+=t.size_left;let i={node:t,remainder:e-t.size_left,nodeStartOffset:n};return this._searchCache.set(i),i}else e-=t.size_left+t.piece.length,n+=t.size_left+t.piece.length,t=t.right;return null}nodeAt2(e,t){let i=this.root,n=0;for(;i!==r.SENTINEL;)if(i.left!==r.SENTINEL&&i.lf_left>=e-1)i=i.left;else if(i.lf_left+i.piece.lineFeedCnt>e-1){let o=this.getAccumulatedValue(i,e-i.lf_left-2),s=this.getAccumulatedValue(i,e-i.lf_left-1);return n+=i.size_left,{node:i,remainder:Math.min(o+t-1,s),nodeStartOffset:n}}else if(i.lf_left+i.piece.lineFeedCnt===e-1){let o=this.getAccumulatedValue(i,e-i.lf_left-2);if(o+t-1<=i.piece.length)return{node:i,remainder:o+t-1,nodeStartOffset:n};t-=i.piece.length-o;break}else e-=i.lf_left+i.piece.lineFeedCnt,n+=i.size_left+i.piece.length,i=i.right;for(i=i.next();i!==r.SENTINEL;){if(i.piece.lineFeedCnt>0){let e=this.getAccumulatedValue(i,0),n=this.offsetOfNode(i);return{node:i,remainder:Math.min(t-1,e),nodeStartOffset:n}}if(i.piece.length>=t-1){let e=this.offsetOfNode(i);return{node:i,remainder:t-1,nodeStartOffset:e}}else t-=i.piece.length;i=i.next()}return null}nodeCharCodeAt(e,t){if(e.piece.lineFeedCnt<1)return -1;let i=this._buffers[e.piece.bufferIndex],n=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return i.buffer.charCodeAt(n)}offsetOfNode(e){if(!e)return 0;let t=e.size_left;for(;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t}shouldCheckCRLF(){return!(this._EOLNormalized&&"\n"===this._EOL)}startWithLF(e){if("string"==typeof e)return 10===e.charCodeAt(0);if(e===r.SENTINEL||0===e.piece.lineFeedCnt)return!1;let t=e.piece,i=this._buffers[t.bufferIndex].lineStarts,n=t.start.line,o=i[n]+t.start.column;return n!==i.length-1&&!(i[n+1]>o+1)&&10===this._buffers[t.bufferIndex].buffer.charCodeAt(o)}endWithCR(e){return"string"==typeof e?13===e.charCodeAt(e.length-1):e!==r.SENTINEL&&0!==e.piece.lineFeedCnt&&13===this.nodeCharCodeAt(e,e.piece.length-1)}validateCRLFWithPrevNode(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){let t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}}validateCRLFWithNextNode(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){let t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}}fixCRLF(e,t){let i;let n=[],o=this._buffers[e.piece.bufferIndex].lineStarts;i=0===e.piece.end.column?{line:e.piece.end.line-1,column:o[e.piece.end.line]-o[e.piece.end.line-1]-1}:{line:e.piece.end.line,column:e.piece.end.column-1};let s=e.piece.length-1,l=e.piece.lineFeedCnt-1;e.piece=new c(e.piece.bufferIndex,e.piece.start,i,l,s),(0,r.updateTreeMetadata)(this,e,-1,-1),0===e.piece.length&&n.push(e);let a={line:t.piece.start.line+1,column:0},u=t.piece.length-1,d=this.getLineFeedCnt(t.piece.bufferIndex,a,t.piece.end);t.piece=new c(t.piece.bufferIndex,a,t.piece.end,d,u),(0,r.updateTreeMetadata)(this,t,-1,-1),0===t.piece.length&&n.push(t);let h=this.createNewPieces("\r\n");this.rbInsertRight(e,h[0]);for(let e=0;e<n.length;e++)(0,r.rbDelete)(this,n[e])}adjustCarriageReturnFromNext(e,t){if(this.shouldCheckCRLF()&&this.endWithCR(e)){let i=t.next();if(this.startWithLF(i)){if(e+="\n",1===i.piece.length)(0,r.rbDelete)(this,i);else{let e=i.piece,t={line:e.start.line+1,column:0},n=e.length-1,o=this.getLineFeedCnt(e.bufferIndex,t,e.end);i.piece=new c(e.bufferIndex,t,e.end,o,n),(0,r.updateTreeMetadata)(this,i,-1,-1)}return!0}}return!1}iterate(e,t){if(e===r.SENTINEL)return t(r.SENTINEL);let i=this.iterate(e.left,t);return i?t(e)&&this.iterate(e.right,t):i}getNodeContent(e){if(e===r.SENTINEL)return"";let t=this._buffers[e.piece.bufferIndex],i=e.piece,n=this.offsetInBuffer(i.bufferIndex,i.start),o=this.offsetInBuffer(i.bufferIndex,i.end);return t.buffer.substring(n,o)}getPieceContent(e){let t=this._buffers[e.bufferIndex],i=this.offsetInBuffer(e.bufferIndex,e.start),n=this.offsetInBuffer(e.bufferIndex,e.end);return t.buffer.substring(i,n)}rbInsertRight(e,t){let i=new r.TreeNode(t,1);if(i.left=r.SENTINEL,i.right=r.SENTINEL,i.parent=r.SENTINEL,i.size_left=0,i.lf_left=0,this.root===r.SENTINEL)this.root=i,i.color=0;else if(e.right===r.SENTINEL)e.right=i,i.parent=e;else{let t=(0,r.leftest)(e.right);t.left=i,i.parent=t}return(0,r.fixInsert)(this,i),i}rbInsertLeft(e,t){let i=new r.TreeNode(t,1);if(i.left=r.SENTINEL,i.right=r.SENTINEL,i.parent=r.SENTINEL,i.size_left=0,i.lf_left=0,this.root===r.SENTINEL)this.root=i,i.color=0;else if(e.left===r.SENTINEL)e.left=i,i.parent=e;else{let t=(0,r.righttest)(e.left);t.right=i,i.parent=t}return(0,r.fixInsert)(this,i),i}}},397319:function(e,t,i){"use strict";i.r(t),i.d(t,{getIconClasses:function(){return a}});var n=i("24342"),o=i("437454"),s=i("595394"),r=i("612416");let l=/(?:\/|^)(?:([^\/]+)\/)?([^\/]+)$/;function a(e,t,i,a){let d=a===r.FileKind.ROOT_FOLDER?["rootfolder-icon"]:a===r.FileKind.FOLDER?["folder-icon"]:["file-icon"];if(i){let h;if(i.scheme===n.Schemas.data)h=o.DataUri.parseMetaData(i).get(o.DataUri.META_DATA_LABEL);else{let e=i.path.match(l);e?(h=u(e[2].toLowerCase()),e[1]&&d.push(`${u(e[1].toLowerCase())}-name-dir-icon`)):h=u(i.authority.toLowerCase())}if(a===r.FileKind.FOLDER)d.push(`${h}-name-folder-icon`);else{if(h){if(d.push(`${h}-name-file-icon`),d.push("name-file-icon"),h.length<=255){let e=h.split(".");for(let t=1;t<e.length;t++)d.push(`${e.slice(t).join(".")}-ext-file-icon`)}d.push("ext-file-icon")}let r=function(e,t,i){if(!i)return null;let r=null;if(i.scheme===n.Schemas.data){let e=o.DataUri.parseMetaData(i).get(o.DataUri.META_DATA_MIME);e&&(r=t.getLanguageIdByMimeType(e))}else{let t=e.getModel(i);t&&(r=t.getLanguageId())}return r&&r!==s.PLAINTEXT_LANGUAGE_ID?r:t.guessLanguageIdByFilepathOrFirstLine(i)}(e,t,i);r&&d.push(`${u(r)}-lang-file-icon`)}}return d}function u(e){return e.replace(/[\11\12\14\15\40]/g,"/")}},878936:function(e,t,i){"use strict";i.r(t),i.d(t,{ITextModelService:function(){return n}});let n=(0,i("706301").createDecorator)("textModelService")},891685:function(e,t,i){"use strict";i.r(t),i.d(t,{createModelLineProjection:function(){return l}});var n=i("815776"),o=i("457938"),s=i("486043"),r=i("838643");function l(e,t){return null!==e?new a(e,t):t?u.INSTANCE:d.INSTANCE}class a{constructor(e,t){this._projectionData=e,this._isVisible=t}isVisible(){return this._isVisible}setVisible(e){return this._isVisible=e,this}getProjectionData(){return this._projectionData}getViewLineCount(){return this._isVisible?this._projectionData.getOutputLineCount():0}getViewLineContent(e,t,i){let n;this._assertVisible();let o=i>0?this._projectionData.breakOffsets[i-1]:0,r=this._projectionData.breakOffsets[i];if(null!==this._projectionData.injectionOffsets){let i=this._projectionData.injectionOffsets.map((e,t)=>new s.LineInjectedText(0,0,e+1,this._projectionData.injectionOptions[t],0));n=s.LineInjectedText.applyInjectedText(e.getLineContent(t),i).substring(o,r)}else n=e.getValueInRange({startLineNumber:t,startColumn:o+1,endLineNumber:t,endColumn:r+1});return i>0&&(n=c(this._projectionData.wrappedTextIndentLength)+n),n}getViewLineLength(e,t,i){return this._assertVisible(),this._projectionData.getLineLength(i)}getViewLineMinColumn(e,t,i){return this._assertVisible(),this._projectionData.getMinOutputOffset(i)+1}getViewLineMaxColumn(e,t,i){return this._assertVisible(),this._projectionData.getMaxOutputOffset(i)+1}getViewLineData(e,t,i){let n=[];return this.getViewLinesData(e,t,i,1,0,[!0],n),n[0]}getViewLinesData(e,t,i,o,s,l,a){let u;this._assertVisible();let d=this._projectionData,h=d.injectionOffsets,c=d.injectionOptions,p=null;if(h){p=[];let e=0,t=0;for(let i=0;i<d.getOutputLineCount();i++){let n=[];p[i]=n;let o=i>0?d.breakOffsets[i-1]:0,s=d.breakOffsets[i];for(;t<h.length;){let l=c[t].content.length,a=h[t]+e,u=a+l;if(a>s)break;if(o<u){let e=c[t];if(e.inlineClassName){let t=i>0?d.wrappedTextIndentLength:0,l=t+Math.max(a-o,0),h=t+Math.min(u-o,s);l!==h&&n.push(new r.SingleLineInlineDecoration(l,h,e.inlineClassName,e.inlineClassNameAffectsLetterSpacing))}}if(u<=s)e+=l,t++;else break}}}u=h?e.tokenization.getLineTokens(t).withInserted(h.map((e,t)=>({offset:e,text:c[t].content,tokenMetadata:n.LineTokens.defaultTokenMetadata}))):e.tokenization.getLineTokens(t);for(let e=i;e<i+o;e++){let t=s+e-i;if(!l[t]){a[t]=null;continue}a[t]=this._getViewLineData(u,p?p[e]:null,e)}}_getViewLineData(e,t,i){this._assertVisible();let n=this._projectionData,o=i>0?n.wrappedTextIndentLength:0,s=i>0?n.breakOffsets[i-1]:0,l=n.breakOffsets[i],a=e.sliceAndInflate(s,l,o),u=a.getLineContent();i>0&&(u=c(n.wrappedTextIndentLength)+u);let d=this._projectionData.getMinOutputOffset(i)+1,h=u.length+1,p=i+1<this.getViewLineCount(),g=0===i?0:n.breakOffsetsVisibleColumn[i-1];return new r.ViewLineData(u,p,d,h,g,a,t)}getModelColumnOfViewPosition(e,t){return this._assertVisible(),this._projectionData.translateToInputOffset(e,t-1)+1}getViewPositionOfModelPosition(e,t,i=2){return this._assertVisible(),this._projectionData.translateToOutputPosition(t-1,i).toPosition(e)}getViewLineNumberOfModelPosition(e,t){return this._assertVisible(),e+this._projectionData.translateToOutputPosition(t-1).outputLineIndex}normalizePosition(e,t,i){let n=t.lineNumber-e;return this._projectionData.normalizeOutputPosition(e,t.column-1,i).toPosition(n)}getInjectedTextAt(e,t){return this._projectionData.getInjectedText(e,t-1)}_assertVisible(){if(!this._isVisible)throw Error("Not supported")}}class u{constructor(){}isVisible(){return!0}setVisible(e){return e?this:d.INSTANCE}getProjectionData(){return null}getViewLineCount(){return 1}getViewLineContent(e,t,i){return e.getLineContent(t)}getViewLineLength(e,t,i){return e.getLineLength(t)}getViewLineMinColumn(e,t,i){return e.getLineMinColumn(t)}getViewLineMaxColumn(e,t,i){return e.getLineMaxColumn(t)}getViewLineData(e,t,i){let n=e.tokenization.getLineTokens(t),o=n.getLineContent();return new r.ViewLineData(o,!1,1,o.length+1,0,n.inflate(),null)}getViewLinesData(e,t,i,n,o,s,r){if(!s[o]){r[o]=null;return}r[o]=this.getViewLineData(e,t,0)}getModelColumnOfViewPosition(e,t){return t}getViewPositionOfModelPosition(e,t){return new o.Position(e,t)}getViewLineNumberOfModelPosition(e,t){return e}normalizePosition(e,t,i){return t}getInjectedTextAt(e,t){return null}}u.INSTANCE=new u;class d{constructor(){}isVisible(){return!1}setVisible(e){return e?u.INSTANCE:this}getProjectionData(){return null}getViewLineCount(){return 0}getViewLineContent(e,t,i){throw Error("Not supported")}getViewLineLength(e,t,i){throw Error("Not supported")}getViewLineMinColumn(e,t,i){throw Error("Not supported")}getViewLineMaxColumn(e,t,i){throw Error("Not supported")}getViewLineData(e,t,i){throw Error("Not supported")}getViewLinesData(e,t,i,n,o,s,r){throw Error("Not supported")}getModelColumnOfViewPosition(e,t){throw Error("Not supported")}getViewPositionOfModelPosition(e,t){throw Error("Not supported")}getViewLineNumberOfModelPosition(e,t){throw Error("Not supported")}normalizePosition(e,t,i){throw Error("Not supported")}getInjectedTextAt(e,t){throw Error("Not supported")}}d.INSTANCE=new d;let h=[""];function c(e){if(e>=h.length)for(let t=1;t<=e;t++)h[t]=function(e){return Array(e+1).join(" ")}(t);return h[e]}},863636:function(e,t,i){"use strict";i.r(t),i.d(t,{ViewModelDecorations:function(){return l},isModelDecorationInComment:function(){return u},isModelDecorationInString:function(){return d},isModelDecorationVisible:function(){return a}});var n=i("457938"),o=i("761045"),s=i("838643"),r=i("416637");class l{constructor(e,t,i,n,o){this.editorId=e,this.model=t,this.configuration=i,this._linesCollection=n,this._coordinatesConverter=o,this._decorationsCache=Object.create(null),this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}_clearCachedModelDecorationsResolver(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}dispose(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}reset(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onModelDecorationsChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onLineMappingChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}_getOrCreateViewModelDecoration(e){let t=e.id,i=this._decorationsCache[t];if(!i){let r;let l=e.range,a=e.options;if(a.isWholeLine){let e=this._coordinatesConverter.convertModelPositionToViewPosition(new n.Position(l.startLineNumber,1),0),t=this._coordinatesConverter.convertModelPositionToViewPosition(new n.Position(l.endLineNumber,this.model.getLineMaxColumn(l.endLineNumber)),1);r=new o.Range(e.lineNumber,e.column,t.lineNumber,t.column)}else r=this._coordinatesConverter.convertModelRangeToViewRange(l,1);i=new s.ViewModelDecoration(r,a),this._decorationsCache[t]=i}return i}getDecorationsViewportData(e){let t=null!==this._cachedModelDecorationsResolver;return!(t=t&&e.equalsRange(this._cachedModelDecorationsResolverViewRange))&&(this._cachedModelDecorationsResolver=this._getDecorationsInRange(e),this._cachedModelDecorationsResolverViewRange=e),this._cachedModelDecorationsResolver}getInlineDecorationsOnLine(e){let t=new o.Range(e,this._linesCollection.getViewLineMinColumn(e),e,this._linesCollection.getViewLineMaxColumn(e));return this._getDecorationsInRange(t).inlineDecorations[0]}_getDecorationsInRange(e){let t=this._linesCollection.getDecorationsInRange(e,this.editorId,(0,r.filterValidationDecorations)(this.configuration.options)),i=e.startLineNumber,n=e.endLineNumber,l=[],u=0,d=[];for(let e=i;e<=n;e++)d[e-i]=[];for(let e=0,r=t.length;e<r;e++){let r=t[e],h=r.options;if(!a(this.model,r))continue;let c=this._getOrCreateViewModelDecoration(r),p=c.range;if(l[u++]=c,h.inlineClassName){let e=new s.InlineDecoration(p,h.inlineClassName,h.inlineClassNameAffectsLetterSpacing?3:0),t=Math.max(i,p.startLineNumber),o=Math.min(n,p.endLineNumber);for(let n=t;n<=o;n++)d[n-i].push(e)}if(h.beforeContentClassName&&i<=p.startLineNumber&&p.startLineNumber<=n){let e=new s.InlineDecoration(new o.Range(p.startLineNumber,p.startColumn,p.startLineNumber,p.startColumn),h.beforeContentClassName,1);d[p.startLineNumber-i].push(e)}if(h.afterContentClassName&&i<=p.endLineNumber&&p.endLineNumber<=n){let e=new s.InlineDecoration(new o.Range(p.endLineNumber,p.endColumn,p.endLineNumber,p.endColumn),h.afterContentClassName,2);d[p.endLineNumber-i].push(e)}}return{decorations:l,inlineDecorations:d}}}function a(e,t){return!(t.options.hideInCommentTokens&&u(e,t)||t.options.hideInStringTokens&&d(e,t))&&!0}function u(e,t){return h(e,t.range,e=>1===e)}function d(e,t){return h(e,t.range,e=>2===e)}function h(e,t,i){for(let n=t.startLineNumber;n<=t.endLineNumber;n++){let o=e.tokenization.getLineTokens(n),s=n===t.startLineNumber,r=n===t.endLineNumber,l=s?o.findTokenIndexAtOffset(t.startColumn-1):0;for(;l<o.getCount()&&!(r&&o.getStartOffset(l)>t.endColumn-1);){;if(!i(o.getStandardTokenType(l)))return!1;l++}}return!0}},987092:function(e,t,i){"use strict";i.r(t);var n=i("159923"),o=i("976617"),s=i("412188"),r=i("708339");class l extends n.EditorAction{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;let i=[];for(let e of t.getSelections())i.push(new s.MoveCaretCommand(e,this.left));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}(0,n.registerEditorAction)(class e extends l{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:r.localize("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:o.EditorContextKeys.writable})}}),(0,n.registerEditorAction)(class e extends l{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:r.localize("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:o.EditorContextKeys.writable})}})},710798:function(e,t,i){"use strict";i.r(t);var n=i("159923"),o=i("838846"),s=i("377287"),r=i("761045"),l=i("976617"),a=i("708339");class u extends n.EditorAction{constructor(){super({id:"editor.action.transposeLetters",label:a.localize("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:l.EditorContextKeys.writable,kbOpts:{kbExpr:l.EditorContextKeys.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;let i=t.getModel(),n=[];for(let e of t.getSelections()){if(!e.isEmpty())continue;let t=e.startLineNumber,l=e.startColumn,a=i.getLineMaxColumn(t);if(1===t&&(1===l||2===l&&2===a))continue;let u=l===a?e.getPosition():s.MoveOperations.rightPosition(i,e.getPosition().lineNumber,e.getPosition().column),d=s.MoveOperations.leftPosition(i,u),h=s.MoveOperations.leftPosition(i,d),c=i.getValueInRange(r.Range.fromPositions(h,d)),p=i.getValueInRange(r.Range.fromPositions(d,u)),g=r.Range.fromPositions(h,u);n.push(new o.ReplaceCommand(g,p+c))}n.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}}(0,n.registerEditorAction)(u)},164228:function(e,t,i){"use strict";i.r(t);var n=i("259527"),o=i("207875"),s=i("637717"),r=i("159923"),l=i("583368"),a=i("976617"),u=i("708339"),d=i("351553"),h=i("704264");let c="9_cutcopypaste",p=o.isNative||document.queryCommandSupported("cut"),g=o.isNative||document.queryCommandSupported("copy"),f=void 0!==navigator.clipboard&&!n.isFirefox||document.queryCommandSupported("paste");function m(e){return e.register(),e}let b=p?m(new r.MultiCommand({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:o.isNative?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:d.MenuId.MenubarEditMenu,group:"2_ccp",title:u.localize({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:d.MenuId.EditorContext,group:c,title:u.localize("actions.clipboard.cutLabel","Cut"),when:a.EditorContextKeys.writable,order:1},{menuId:d.MenuId.CommandPalette,group:"",title:u.localize("actions.clipboard.cutLabel","Cut"),order:1},{menuId:d.MenuId.SimpleEditorContext,group:c,title:u.localize("actions.clipboard.cutLabel","Cut"),when:a.EditorContextKeys.writable,order:1}]})):void 0,_=g?m(new r.MultiCommand({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:o.isNative?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:d.MenuId.MenubarEditMenu,group:"2_ccp",title:u.localize({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:d.MenuId.EditorContext,group:c,title:u.localize("actions.clipboard.copyLabel","Copy"),order:2},{menuId:d.MenuId.CommandPalette,group:"",title:u.localize("actions.clipboard.copyLabel","Copy"),order:1},{menuId:d.MenuId.SimpleEditorContext,group:c,title:u.localize("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;d.MenuRegistry.appendMenuItem(d.MenuId.MenubarEditMenu,{submenu:d.MenuId.MenubarCopy,title:{value:u.localize("copy as","Copy As"),original:"Copy As"},group:"2_ccp",order:3}),d.MenuRegistry.appendMenuItem(d.MenuId.EditorContext,{submenu:d.MenuId.EditorContextCopy,title:{value:u.localize("copy as","Copy As"),original:"Copy As"},group:c,order:3}),d.MenuRegistry.appendMenuItem(d.MenuId.EditorContext,{submenu:d.MenuId.EditorContextShare,title:{value:u.localize("share","Share"),original:"Share"},group:"11_share",order:-1});let v=f?m(new r.MultiCommand({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:o.isNative?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:d.MenuId.MenubarEditMenu,group:"2_ccp",title:u.localize({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:d.MenuId.EditorContext,group:c,title:u.localize("actions.clipboard.pasteLabel","Paste"),when:a.EditorContextKeys.writable,order:4},{menuId:d.MenuId.CommandPalette,group:"",title:u.localize("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:d.MenuId.SimpleEditorContext,group:c,title:u.localize("actions.clipboard.pasteLabel","Paste"),when:a.EditorContextKeys.writable,order:4}]})):void 0;class C extends r.EditorAction{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:u.localize("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:a.EditorContextKeys.textInputFocus,primary:0,weight:100}})}run(e,t){if(!!t.hasModel())!(!t.getOption(33)&&t.getSelection().isEmpty())&&(s.CopyOptions.forceCopyWithSyntaxHighlighting=!0,t.focus(),document.execCommand("copy"),s.CopyOptions.forceCopyWithSyntaxHighlighting=!1)}}function y(e,t){e&&(e.addImplementation(1e4,"code-editor",(e,i)=>{let n=e.get(l.ICodeEditorService).getFocusedCodeEditor();if(n&&n.hasTextFocus()){let e=n.getOption(33),i=n.getSelection();return!!(i&&i.isEmpty())&&!e||(document.execCommand(t),!0)}return!1}),e.addImplementation(0,"generic-dom",(e,i)=>(document.execCommand(t),!0)))}y(b,"cut"),y(_,"copy"),v&&(v.addImplementation(1e4,"code-editor",(e,t)=>{let i=e.get(l.ICodeEditorService),n=e.get(h.IClipboardService),r=i.getFocusedCodeEditor();if(r&&r.hasTextFocus()){if(!document.execCommand("paste")&&o.isWeb){var a,u,d,c;return a=void 0,u=void 0,d=void 0,c=function*(){let e=yield n.readText();if(""!==e){let t=s.InMemoryClipboardMetadataManager.INSTANCE.get(e),i=!1,n=null,o=null;t&&(i=r.getOption(33)&&!!t.isFromEmptySelection,n=void 0!==t.multicursorText?t.multicursorText:null,o=t.mode),r.trigger("keyboard","paste",{text:e,pasteOnNewLine:i,multicursorText:n,mode:o})}},new(d||(d=Promise))(function(e,t){function i(e){try{o(c.next(e))}catch(e){t(e)}}function n(e){try{o(c.throw(e))}catch(e){t(e)}}function o(t){var o;t.done?e(t.value):((o=t.value)instanceof d?o:new d(function(e){e(o)})).then(i,n)}o((c=c.apply(a,u||[])).next())})}return!0}return!1}),v.addImplementation(0,"generic-dom",(e,t)=>(document.execCommand("paste"),!0))),g&&(0,r.registerEditorAction)(C)},684315:function(e,t,i){"use strict";i.r(t),i.d(t,{ColorHoverParticipant:function(){return b}});var n,o,s=i("467518"),r=i("500862"),l=i("835271"),a=i("919527"),u=i("761045"),d=i("844126"),h=i("568487"),c=i("382524"),p=i("598048"),g=i("439703"),f=function(e,t,i,n){return new(i||(i=Promise))(function(o,s){function r(e){try{a(n.next(e))}catch(e){s(e)}}function l(e){try{a(n.throw(e))}catch(e){s(e)}}function a(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(r,l)}a((n=n.apply(e,t||[])).next())})};class m{constructor(e,t,i,n){this.owner=e,this.range=t,this.model=i,this.provider=n,this.forceShowAtRange=!0}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let b=class{constructor(e,t){this._editor=e,this._themeService=t,this.hoverOrdinal=1}computeSync(e,t){return[]}computeAsync(e,t,i){return s.AsyncIterableObject.fromPromise(this._computeAsync(e,t,i))}_computeAsync(e,t,i){return f(this,void 0,void 0,function*(){if(!this._editor.hasModel())return[];let e=h.ColorDetector.get(this._editor);if(!e)return[];for(let i of t){if(!e.isColorDecoration(i))continue;let t=e.getColorData(i.range.getStartPosition());if(t)return[(yield this._createColorHover(this._editor.getModel(),t.colorInfo,t.provider))]}return[]})}_createColorHover(e,t,i){return f(this,void 0,void 0,function*(){let n=e.getValueInRange(t.range),{red:o,green:s,blue:a,alpha:h}=t.color,p=new l.RGBA(Math.round(255*o),Math.round(255*s),Math.round(255*a),h),g=new l.Color(p),f=yield(0,d.getColorPresentations)(e,t,i,r.CancellationToken.None),b=new c.ColorPickerModel(g,[],0);return b.colorPresentations=f||[],b.guessColorPresentation(g,n),new m(this,u.Range.lift(t.range),b,i)})}renderHoverParts(e,t){if(0===t.length||!this._editor.hasModel())return a.Disposable.None;let i=new a.DisposableStore,n=t[0],o=this._editor.getModel(),s=n.model,l=i.add(new p.ColorPickerWidget(e.fragment,s,this._editor.getOption(131),this._themeService));e.setColorPicker(l);let h=new u.Range(n.range.startLineNumber,n.range.startColumn,n.range.endLineNumber,n.range.endColumn),c=()=>{let t,i;if(s.presentation.textEdit){t=[s.presentation.textEdit],i=new u.Range(s.presentation.textEdit.range.startLineNumber,s.presentation.textEdit.range.startColumn,s.presentation.textEdit.range.endLineNumber,s.presentation.textEdit.range.endColumn);let e=this._editor.getModel()._setTrackedRange(null,i,3);this._editor.pushUndoStop(),this._editor.executeEdits("colorpicker",t),i=this._editor.getModel()._getTrackedRange(e)||i}else t=[{range:h,text:s.presentation.label,forceMoveMarkers:!1}],i=h.setEndPosition(h.endLineNumber,h.startColumn+s.presentation.label.length),this._editor.pushUndoStop(),this._editor.executeEdits("colorpicker",t);s.presentation.additionalTextEdits&&(t=[...s.presentation.additionalTextEdits],this._editor.executeEdits("colorpicker",t),e.hide()),this._editor.pushUndoStop(),h=i},g=e=>(0,d.getColorPresentations)(o,{range:h,color:{red:e.rgba.r/255,green:e.rgba.g/255,blue:e.rgba.b/255,alpha:e.rgba.a}},n.provider,r.CancellationToken.None).then(e=>{s.colorPresentations=e||[]});return i.add(s.onColorFlushed(e=>{g(e).then(c)})),i.add(s.onDidChangeColor(g)),i}};b=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(n=1,o=g.IThemeService,function(e,t){o(e,t,1)})],b)},744739:function(e,t,i){"use strict";i.r(t),i.d(t,{InlineCompletionsHoverParticipant:function(){return C}});var n=i("409737"),o=i("670691"),s=i("919527"),r=i("377403"),l=i("761045"),a=i("810870"),u=i("88936"),d=i("49429"),h=i("708339"),c=i("138204"),p=i("351553"),g=i("326896"),f=i("549436"),m=i("180204"),b=i("837623"),_=function(e,t){return function(i,n){t(i,n,e)}};class v{constructor(e,t,i){this.owner=e,this.range=t,this.controller=i}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}hasMultipleSuggestions(){return this.controller.hasMultipleInlineCompletions()}get commands(){var e,t,i;return(null===(i=null===(t=null===(e=this.controller.activeModel)||void 0===e?void 0:e.activeInlineCompletionsModel)||void 0===t?void 0:t.completionSession.value)||void 0===i?void 0:i.commands)||[]}}let C=class{constructor(e,t,i,n,o,s,r){this._editor=e,this._commandService=t,this._menuService=i,this._contextKeyService=n,this._languageService=o,this._openerService=s,this.accessibilityService=r,this.hoverOrdinal=3}suggestHoverAnchor(e){let t=d.GhostTextController.get(this._editor);if(!t)return null;let i=e.target;if(8===i.type){let e=i.detail;if(t.shouldShowHoverAtViewZone(e.viewZoneId))return new u.HoverForeignElementAnchor(1e3,this,l.Range.fromPositions(e.positionBefore||e.position,e.positionBefore||e.position))}return 7===i.type&&t.shouldShowHoverAt(i.range)||6===i.type&&i.detail.mightBeForeignElement&&t.shouldShowHoverAt(i.range)?new u.HoverForeignElementAnchor(1e3,this,i.range):null}computeSync(e,t){let i=d.GhostTextController.get(this._editor);return i&&i.shouldShowHoverAt(e.range)?[new v(this,e.range,i)]:[]}renderHoverParts(e,t){let i=new s.DisposableStore,n=t[0];this.accessibilityService.isScreenReaderOptimized()&&this.renderScreenReaderText(e,n,i);let o=i.add(this._menuService.createMenu(p.MenuId.InlineCompletionsActions,this._contextKeyService)),r=e.statusBar.addAction({label:h.localize("showNextInlineSuggestion","Next"),commandId:d.ShowNextInlineSuggestionAction.ID,run:()=>this._commandService.executeCommand(d.ShowNextInlineSuggestionAction.ID)}),l=e.statusBar.addAction({label:h.localize("showPreviousInlineSuggestion","Previous"),commandId:d.ShowPreviousInlineSuggestionAction.ID,run:()=>this._commandService.executeCommand(d.ShowPreviousInlineSuggestionAction.ID)});e.statusBar.addAction({label:h.localize("acceptInlineSuggestion","Accept"),commandId:b.inlineSuggestCommitId,run:()=>this._commandService.executeCommand(b.inlineSuggestCommitId)});let a=[r,l];for(let e of a)e.setEnabled(!1);for(let t of(n.hasMultipleSuggestions().then(e=>{for(let t of a)t.setEnabled(e)}),n.commands))e.statusBar.addAction({label:t.title,commandId:t.id,run:()=>this._commandService.executeCommand(t.id,...t.arguments||[])});for(let[t,i]of o.getActions())for(let t of i)t instanceof p.MenuItemAction&&e.statusBar.addAction({label:t.label,commandId:t.item.id,run:()=>this._commandService.executeCommand(t.item.id)});return i}renderScreenReaderText(e,t,i){var s,l;let a=n.$,u=a("div.hover-row.markdown-hover"),d=n.append(u,a("div.hover-contents")),c=i.add(new r.MarkdownRenderer({editor:this._editor},this._languageService,this._openerService)),p=null===(l=null===(s=t.controller.activeModel)||void 0===s?void 0:s.inlineCompletionsModel)||void 0===l?void 0:l.ghostText;if(p){let t=this._editor.getModel().getLineContent(p.lineNumber);(t=>{i.add(c.onDidRenderAsync(()=>{d.className="hover-contents code-hover-contents",e.onContentsChanged()}));let n=h.localize("inlineSuggestionFollows","Suggestion:"),s=i.add(c.render(new o.MarkdownString().appendText(n).appendCodeblock("text",t)));d.replaceChildren(s.element)})(p.renderForScreenReader(t))}e.fragment.appendChild(u)}};C=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([_(1,g.ICommandService),_(2,p.IMenuService),_(3,f.IContextKeyService),_(4,a.ILanguageService),_(5,m.IOpenerService),_(6,c.IAccessibilityService)],C)},236684:function(e,t,i){"use strict";i.r(t),i.d(t,{AbstractEditorCommandsQuickAccessProvider:function(){return s}});var n=i("947578"),o=i("782168");class s extends o.AbstractCommandsQuickAccessProvider{constructor(e,t,i,n,o,s){super(e,t,i,n,o,s)}getCodeEditorCommandPicks(){let e=this.activeTextEditorControl;if(!e)return[];let t=[];for(let i of e.getSupportedActions())t.push({commandId:i.id,commandAlias:i.alias,label:(0,n.stripIcons)(i.label)||i.id});return t}}},261810:function(e,t,i){"use strict";i.r(t);var n,o,s,r=i("919527"),l=i("159923"),a=i("678540"),u=i("232633"),d=i("500862"),h=i("409737"),c=i("234630"),p=i("281161"),g=i("30751"),f=i("467518"),m=i("457938"),b=function(e,t,i,n){return new(i||(i=Promise))(function(o,s){function r(e){try{a(n.next(e))}catch(e){s(e)}}function l(e){try{a(n.throw(e))}catch(e){s(e)}}function a(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(r,l)}a((n=n.apply(e,t||[])).next())})};let _=class extends r.Disposable{constructor(e,t){super(),this._sessionStore=new r.DisposableStore,this._ranges=[],this._rangesVersionId=0,this._editor=e,this._languageFeaturesService=t,this.stickyScrollWidget=new y(this._editor),this._register(this._editor.onDidChangeConfiguration(e=>{e.hasChanged(34)&&this.onConfigurationChange()})),this._updateSoon=this._register(new f.RunOnceScheduler(()=>this._update(!0),50)),this.onConfigurationChange()}onConfigurationChange(){if(!1===this._editor.getOption(34).stickyScroll.enabled){this.stickyScrollWidget.emptyRootNode(),this._editor.removeOverlayWidget(this.stickyScrollWidget),this._sessionStore.clear();return}this._editor.addOverlayWidget(this.stickyScrollWidget),this._sessionStore.add(this._editor.onDidChangeModel(()=>this._update(!0))),this._sessionStore.add(this._editor.onDidScrollChange(()=>this._update(!1))),this._sessionStore.add(this._editor.onDidChangeHiddenAreas(()=>this._update(!0))),this._sessionStore.add(this._editor.onDidChangeModelTokens(e=>this._onTokensChange(e))),this._sessionStore.add(this._editor.onDidChangeModelContent(()=>this._updateSoon.schedule())),this._sessionStore.add(this._languageFeaturesService.documentSymbolProvider.onDidChange(()=>this._update(!0))),this._update(!0)}_needsUpdate(e){for(let t of this.stickyScrollWidget.getCurrentLines())for(let i of e.ranges)if(t>=i.fromLineNumber&&t<=i.toLineNumber)return!0;return!1}_onTokensChange(e){this._needsUpdate(e)&&this._update(!1)}_update(e=!1){var t,i;return b(this,void 0,void 0,function*(){e&&(null===(t=this._cts)||void 0===t||t.dispose(!0),this._cts=new d.CancellationTokenSource,yield this._updateOutlineModel(this._cts.token));let n=null===(i=this._editor._getViewModel())||void 0===i?void 0:i.getHiddenAreas();if(n)for(let e of n)this._ranges=this._ranges.filter(t=>!(t[0]>=e.startLineNumber&&t[1]<=e.endLineNumber+1));this._renderStickyScroll()})}_findLineRanges(e,t){if(null==e?void 0:e.children.size){let i=!1;for(let n of null==e?void 0:e.children.values()){let e=n.symbol.kind;(4===e||8===e||11===e||10===e||5===e||1===e)&&(i=!0,this._findLineRanges(n,t+1))}!i&&this._addOutlineRanges(e,t)}else this._addOutlineRanges(e,t)}_addOutlineRanges(e,t){let i=0,n=0;for(;e;){let o=e.symbol.kind;if((4===o||8===o||11===o||10===o||5===o||1===o)&&(i=null==e?void 0:e.symbol.range.startLineNumber,n=null==e?void 0:e.symbol.range.endLineNumber,this._ranges.push([i,n,t]),t--),e.parent instanceof u.OutlineElement)e=e.parent;else break}}_updateOutlineModel(e){return b(this,void 0,void 0,function*(){if(this._editor.hasModel()){let t=this._editor.getModel(),i=t.getVersionId(),n=yield u.OutlineModel.create(this._languageFeaturesService.documentSymbolProvider,t,e);if(!e.isCancellationRequested)for(let e of(this._ranges=[],this._rangesVersionId=i,n.children.values())){if(e instanceof u.OutlineElement){let t=e.symbol.kind;4===t||8===t||11===t||10===t||5===t||1===t?this._findLineRanges(e,1):this._findLineRanges(e,0)}this._ranges=this._ranges.sort(function(e,t){return e[0]!==t[0]?e[0]-t[0]:e[1]!==t[1]?t[1]-e[1]:e[2]-t[2]});let t=[];for(let[e,i]of this._ranges.entries()){let[n,o,s]=i;t[0]===n&&t[1]===o?this._ranges.splice(e,1):t=i}}}})}_renderStickyScroll(){if(!this._editor.hasModel())return;let e=this._editor.getOption(61),t=this._editor.getModel();if(this._rangesVersionId!==t.getVersionId())return;let i=this._editor.getScrollTop();this.stickyScrollWidget.emptyRootNode();let n=new Set;for(let[o,s]of this._ranges.entries()){let[r,l,a]=s;if(l-r>0&&""!==t.getLineContent(r)){let t=(a-1)*e,s=a*e,u=this._editor.getBottomForLineNumber(r)-i,d=this._editor.getTopForLineNumber(l)-i,h=this._editor.getBottomForLineNumber(l)-i;if(n.has(r))this._ranges.splice(o,1);else{if(t>=d-1&&t<h-2){n.add(r),this.stickyScrollWidget.pushCodeLine(new C(r,a,this._editor,-1,h-s));break}s>u&&s<h-1&&(n.add(r),this.stickyScrollWidget.pushCodeLine(new C(r,a,this._editor,0,0)))}}}this.stickyScrollWidget.updateRootNode()}dispose(){super.dispose(),this._sessionStore.dispose()}};_.ID="store.contrib.stickyScrollController",_=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(n=1,o=a.ILanguageFeaturesService,function(e,t){o(e,t,1)})],_);let v=null===(s=window.trustedTypes)||void 0===s?void 0:s.createPolicy("stickyScrollViewLayer",{createHTML:e=>e});class C{constructor(e,t,i,n,o){this._lineNumber=e,this._depth=t,this._editor=i,this._zIndex=n,this._relativePosition=o,this.effectiveLineHeight=0,this.effectiveLineHeight=this._editor.getOption(61)+this._relativePosition}get lineNumber(){return this._lineNumber}getDomNode(){let e,t;let i=document.createElement("div"),n=this._editor._getViewModel(),o=n.coordinatesConverter.convertModelPositionToViewPosition(new m.Position(this._lineNumber,1)).lineNumber,s=n.getViewLineRenderingData(o);try{e=g.LineDecoration.filter(s.inlineDecorations,o,s.minColumn,s.maxColumn)}catch(t){e=[]}let r=new p.RenderLineInput(!0,!0,s.content,s.continuesWithWrappedLine,s.isBasicASCII,s.containsRTL,0,s.tokens,e,s.tabSize,s.startVisibleColumn,1,1,1,100,"none",!0,!0,null),l=(0,c.createStringBuilder)(400);(0,p.renderViewLine)(r,l),t=v?v.createHTML(l.build()):l.build();let a=document.createElement("span");a.style.backgroundColor="var(--vscode-editorStickyScroll-background)",a.style.overflow="hidden",a.style.whiteSpace="nowrap",a.style.display="inline-block",a.style.lineHeight=this._editor.getOption(61).toString()+"px",a.innerHTML=t;let u=document.createElement("span");u.style.width=this._editor.getLayoutInfo().contentLeft.toString()+"px",u.style.backgroundColor="var(--vscode-editorStickyScroll-background)",u.style.color="var(--vscode-editorLineNumber-foreground)",u.style.display="inline-block",u.style.lineHeight=this._editor.getOption(61).toString()+"px";let d=document.createElement("span");return d.innerText=this._lineNumber.toString(),d.style.paddingLeft=this._editor.getLayoutInfo().lineNumbersLeft.toString()+"px",d.style.width=this._editor.getLayoutInfo().lineNumbersWidth.toString()+"px",d.style.backgroundColor="var(--vscode-editorStickyScroll-background)",d.style.textAlign="right",d.style.float="left",d.style.lineHeight=this._editor.getOption(61).toString()+"px",u.appendChild(d),i.onclick=e=>{e.stopPropagation(),e.preventDefault(),this._editor.revealPosition({lineNumber:this._lineNumber-this._depth+1,column:1})},i.onmouseover=e=>{d.style.background="var(--vscode-editorStickyScrollHover-background)",a.style.backgroundColor="var(--vscode-editorStickyScrollHover-background)",u.style.backgroundColor="var(--vscode-editorStickyScrollHover-background)",i.style.backgroundColor="var(--vscode-editorStickyScrollHover-background)",d.style.cursor="pointer",a.style.cursor="pointer",i.style.cursor="pointer",u.style.cursor="pointer"},i.onmouseleave=e=>{d.style.background="var(--vscode-editorStickyScroll-background)",a.style.backgroundColor="var(--vscode-editorStickyScroll-background)",u.style.backgroundColor="var(--vscode-editorStickyScroll-background)",i.style.backgroundColor="var(--vscode-editorStickyScroll-background)"},this._editor.applyFontInfo(a),this._editor.applyFontInfo(d),i.appendChild(u),i.appendChild(a),i.style.zIndex=this._zIndex.toString(),i.style.backgroundColor="var(--vscode-editorStickyScroll-background)",i.style.overflow="hidden",i.style.whiteSpace="nowrap",i.style.width="100%",i.style.lineHeight=this._editor.getOption(61).toString()+"px",i.style.height=this._editor.getOption(61).toString()+"px",this._relativePosition&&(i.style.position="relative",i.style.top=this._relativePosition+"px",i.style.width="100%"),i}}class y{constructor(e){this._editor=e,this.arrayOfCodeLines=[],this.rootDomNode=document.createElement("div"),this.rootDomNode=document.createElement("div"),this.rootDomNode.style.width="100%",this.rootDomNode.style.boxShadow="var(--vscode-scrollbar-shadow) 0 6px 6px -6px"}getCurrentLines(){let e=[];for(let t of this.arrayOfCodeLines)e.push(t.lineNumber);return e}pushCodeLine(e){this.arrayOfCodeLines.push(e)}updateRootNode(){let e=0;for(let t of this.arrayOfCodeLines)e+=t.effectiveLineHeight,this.rootDomNode.appendChild(t.getDomNode());this.rootDomNode.style.height=e.toString()+"px"}emptyRootNode(){this.arrayOfCodeLines.length=0,h.clearNode(this.rootDomNode)}getId(){return"editor.contrib.stickyScrollWidget"}getDomNode(){return this.rootDomNode.style.zIndex="2",this.rootDomNode.style.backgroundColor="var(--vscode-editorStickyScroll-background)",this.rootDomNode}getPosition(){return{preference:null}}}(0,l.registerEditorContribution)(_.ID,_)},642356:function(e,t,i){"use strict";i.r(t),i.d(t,{ToggleTabFocusModeAction:function(){return l}});var n=i("794555"),o=i("36790"),s=i("159923"),r=i("708339");class l extends s.EditorAction{constructor(){super({id:l.ID,label:r.localize({key:"toggle.tabMovesFocus",comment:["Turn on/off use of tab key for moving focus around VS Code"]},"Toggle Tab Key Moves Focus"),alias:"Toggle Tab Key Moves Focus",precondition:void 0,kbOpts:{kbExpr:null,primary:2091,mac:{primary:1323},weight:100}})}run(e,t){let i=!o.TabFocus.getTabFocusMode();o.TabFocus.setTabFocusMode(i),i?(0,n.alert)(r.localize("toggle.tabMovesFocus.on","Pressing Tab will now move focus to the next focusable element")):(0,n.alert)(r.localize("toggle.tabMovesFocus.off","Pressing Tab will now insert the tab character"))}}l.ID="editor.action.toggleTabFocusMode",(0,s.registerEditorAction)(l)},689239:function(e,t,i){"use strict";i.r(t),i.d(t,{MonarchTokenizer:function(){return m}});var n,o,s=i("274854"),r=i("143972"),l=i("398367"),a=i("753861");class u{constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}static create(e,t){return this._INSTANCE.create(e,t)}create(e,t){if(null!==e&&e.depth>=this._maxCacheDepth)return new d(e,t);let i=d.getStackElementId(e);i.length>0&&(i+="|"),i+=t;let n=this._entries[i];return n?n:(n=new d(e,t),this._entries[i]=n,n)}}u._INSTANCE=new u(5);class d{constructor(e,t){this.parent=e,this.state=t,this.depth=(this.parent?this.parent.depth:0)+1}static getStackElementId(e){let t="";for(;null!==e;)t.length>0&&(t+="|"),t+=e.state,e=e.parent;return t}static _equals(e,t){for(;null!==e&&null!==t;){if(e===t)return!0;if(e.state!==t.state)return!1;e=e.parent,t=t.parent}return null===e&&null===t||!1}equals(e){return d._equals(this,e)}push(e){return u.create(this,e)}pop(){return this.parent}popall(){let e=this;for(;e.parent;)e=e.parent;return e}switchTo(e){return u.create(this.parent,e)}}class h{constructor(e,t){this.languageId=e,this.state=t}equals(e){return this.languageId===e.languageId&&this.state.equals(e.state)}clone(){return this.state.clone()===this.state?this:new h(this.languageId,this.state)}}class c{constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}static create(e,t){return this._INSTANCE.create(e,t)}create(e,t){if(null!==t||null!==e&&e.depth>=this._maxCacheDepth)return new p(e,t);let i=d.getStackElementId(e),n=this._entries[i];return n?n:(n=new p(e,null),this._entries[i]=n,n)}}c._INSTANCE=new c(5);class p{constructor(e,t){this.stack=e,this.embeddedLanguageData=t}clone(){return(this.embeddedLanguageData?this.embeddedLanguageData.clone():null)===this.embeddedLanguageData?this:c.create(this.stack,this.embeddedLanguageData)}equals(e){return!!(e instanceof p&&this.stack.equals(e.stack))&&(null===this.embeddedLanguageData&&null===e.embeddedLanguageData||null!==this.embeddedLanguageData&&null!==e.embeddedLanguageData&&this.embeddedLanguageData.equals(e.embeddedLanguageData))}}class g{constructor(){this._tokens=[],this._languageId=null,this._lastTokenType=null,this._lastTokenLanguage=null}enterLanguage(e){this._languageId=e}emit(e,t){(this._lastTokenType!==t||this._lastTokenLanguage!==this._languageId)&&(this._lastTokenType=t,this._lastTokenLanguage=this._languageId,this._tokens.push(new s.Token(e,t,this._languageId)))}nestedLanguageTokenize(e,t,i,n){let o=i.languageId,r=i.state,l=s.TokenizationRegistry.get(o);if(!l)return this.enterLanguage(o),this.emit(n,""),r;let a=l.tokenize(e,t,r);if(0!==n)for(let e of a.tokens)this._tokens.push(new s.Token(e.offset+n,e.type,e.language));else this._tokens=this._tokens.concat(a.tokens);return this._lastTokenType=null,this._lastTokenLanguage=null,this._languageId=null,a.endState}finalize(e){return new s.TokenizationResult(this._tokens,e)}}class f{constructor(e,t){this._languageService=e,this._theme=t,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}enterLanguage(e){this._currentLanguageId=this._languageService.languageIdCodec.encodeLanguageId(e)}emit(e,t){let i=this._theme.match(this._currentLanguageId,t);this._lastTokenMetadata!==i&&(this._lastTokenMetadata=i,this._tokens.push(e),this._tokens.push(i))}static _merge(e,t,i){let n=null!==e?e.length:0,o=t.length,s=null!==i?i.length:0;if(0===n&&0===o&&0===s)return new Uint32Array(0);if(0===n&&0===o)return i;if(0===o&&0===s)return e;let r=new Uint32Array(n+o+s);null!==e&&r.set(e);for(let e=0;e<o;e++)r[n+e]=t[e];return null!==i&&r.set(i,n+o),r}nestedLanguageTokenize(e,t,i,n){let o=i.languageId,r=i.state,l=s.TokenizationRegistry.get(o);if(!l)return this.enterLanguage(o),this.emit(n,""),r;let a=l.tokenizeEncoded(e,t,r);if(0!==n)for(let e=0,t=a.tokens.length;e<t;e+=2)a.tokens[e]+=n;return this._prependTokens=f._merge(this._prependTokens,this._tokens,a.tokens),this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0,a.endState}finalize(e){return new s.EncodedTokenizationResult(f._merge(this._prependTokens,this._tokens,null),e)}}let m=class e{constructor(e,t,i,n,o){this._configurationService=o,this._languageService=e,this._standaloneThemeService=t,this._languageId=i,this._lexer=n,this._embeddedLanguages=Object.create(null),this.embeddedLoaded=Promise.resolve(void 0);let r=!1;this._tokenizationRegistryListener=s.TokenizationRegistry.onDidChange(e=>{if(r)return;let t=!1;for(let i=0,n=e.changedLanguages.length;i<n;i++){let n=e.changedLanguages[i];if(this._embeddedLanguages[n]){t=!0;break}}t&&(r=!0,s.TokenizationRegistry.fire([this._languageId]),r=!1)}),this._maxTokenizationLineLength=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:this._languageId}),this._configurationService.onDidChangeConfiguration(e=>{e.affectsConfiguration("editor.maxTokenizationLineLength")&&(this._maxTokenizationLineLength=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:this._languageId}))})}dispose(){this._tokenizationRegistryListener.dispose()}getLoadStatus(){let t=[];for(let i in this._embeddedLanguages){let n=s.TokenizationRegistry.get(i);if(n){if(n instanceof e){let e=n.getLoadStatus();!1===e.loaded&&t.push(e.promise)}continue}!s.TokenizationRegistry.isResolved(i)&&t.push(s.TokenizationRegistry.getOrCreate(i))}return 0===t.length?{loaded:!0}:{loaded:!1,promise:Promise.all(t).then(e=>void 0)}}getInitialState(){let e=u.create(null,this._lexer.start);return c.create(e,null)}tokenize(e,t,i){if(e.length>=this._maxTokenizationLineLength)return(0,r.nullTokenize)(this._languageId,i);let n=new g,o=this._tokenize(e,t,i,n);return n.finalize(o)}tokenizeEncoded(e,t,i){if(e.length>=this._maxTokenizationLineLength)return(0,r.nullTokenizeEncoded)(this._languageService.languageIdCodec.encodeLanguageId(this._languageId),i);let n=new f(this._languageService,this._standaloneThemeService.getColorTheme().tokenTheme),o=this._tokenize(e,t,i,n);return n.finalize(o)}_tokenize(e,t,i,n){return i.embeddedLanguageData?this._nestedTokenize(e,t,i,0,n):this._myTokenize(e,t,i,0,n)}_findLeavingNestedLanguageOffset(e,t){let i=this._lexer.tokenizer[t.stack.state];if(!i&&!(i=l.findRules(this._lexer,t.stack.state)))throw l.createError(this._lexer,"tokenizer state is not defined: "+t.stack.state);let n=-1,o=!1;for(let t of i){if(!l.isIAction(t.action)||"@pop"!==t.action.nextEmbedded)continue;o=!0;let i=t.regex,s=t.regex.source;if("^(?:"===s.substr(0,4)&&")"===s.substr(s.length-1,1)){let e=(i.ignoreCase?"i":"")+(i.unicode?"u":"");i=new RegExp(s.substr(4,s.length-5),e)}let r=e.search(i);-1!==r&&(0===r||!t.matchOnlyAtLineStart)&&(-1===n||r<n)&&(n=r)}if(!o)throw l.createError(this._lexer,'no rule containing nextEmbedded: "@pop" in tokenizer embedded state: '+t.stack.state);return n}_nestedTokenize(e,t,i,n,o){let s=this._findLeavingNestedLanguageOffset(e,i);if(-1===s){let s=o.nestedLanguageTokenize(e,t,i.embeddedLanguageData,n);return c.create(i.stack,new h(i.embeddedLanguageData.languageId,s))}let r=e.substring(0,s);r.length>0&&o.nestedLanguageTokenize(r,!1,i.embeddedLanguageData,n);let l=e.substring(s);return this._myTokenize(l,t,i,n+s,o)}_safeRuleName(e){return e?e.name:"(unknown)"}_myTokenize(e,t,i,n,o){o.enterLanguage(this._languageId);let s=e.length,r=t&&this._lexer.includeLF?e+"\n":e,a=r.length,u=i.embeddedLanguageData,d=i.stack,h=0,p=null,g=!0;for(;g||h<a;){let i=h,f=d.depth,m=p?p.groups.length:0,b=d.state,_=null,v=null,C=null,y=null,w=null;if(p){_=p.matches;let e=p.groups.shift();v=e.matched,C=e.action,y=p.rule,0===p.groups.length&&(p=null)}else{if(!g&&h>=a)break;g=!1;let e=this._lexer.tokenizer[b];if(!e&&!(e=l.findRules(this._lexer,b)))throw l.createError(this._lexer,"tokenizer state is not defined: "+b);let t=r.substr(h);for(let i of e)if((0===h||!i.matchOnlyAtLineStart)&&(_=t.match(i.regex))){v=_[0],C=i.action;break}}if(!_&&(_=[""],v=""),!C&&(h<a&&(v=(_=[r.charAt(h)])[0]),C=this._lexer.defaultToken),null===v)break;for(h+=v.length;l.isFuzzyAction(C)&&l.isIAction(C)&&C.test;)C=C.test(v,_,b,h===a);let k=null;if("string"==typeof C||Array.isArray(C))k=C;else if(C.group)k=C.group;else if(null!==C.token&&void 0!==C.token){if(k=C.tokenSubst?l.substituteMatches(this._lexer,C.token,v,_,b):C.token,C.nextEmbedded){if("@pop"===C.nextEmbedded){if(!u)throw l.createError(this._lexer,"cannot pop embedded language if not inside one");u=null}else if(u)throw l.createError(this._lexer,"cannot enter embedded language from within an embedded language");else w=l.substituteMatches(this._lexer,C.nextEmbedded,v,_,b)}if(C.goBack&&(h=Math.max(0,h-C.goBack)),C.switchTo&&"string"==typeof C.switchTo){let e=l.substituteMatches(this._lexer,C.switchTo,v,_,b);if("@"===e[0]&&(e=e.substr(1)),l.findRules(this._lexer,e))d=d.switchTo(e);else throw l.createError(this._lexer,"trying to switch to a state '"+e+"' that is undefined in rule: "+this._safeRuleName(y))}else if(C.transform&&"function"==typeof C.transform)throw l.createError(this._lexer,"action.transform not supported");else if(C.next){if("@push"===C.next){if(d.depth>=this._lexer.maxStack)throw l.createError(this._lexer,"maximum tokenizer stack size reached: ["+d.state+","+d.parent.state+",...]");d=d.push(b)}else if("@pop"===C.next){if(d.depth<=1)throw l.createError(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(y));d=d.pop()}else if("@popall"===C.next)d=d.popall();else{let e=l.substituteMatches(this._lexer,C.next,v,_,b);if("@"===e[0]&&(e=e.substr(1)),l.findRules(this._lexer,e))d=d.push(e);else throw l.createError(this._lexer,"trying to set a next state '"+e+"' that is undefined in rule: "+this._safeRuleName(y))}}C.log&&"string"==typeof C.log&&l.log(this._lexer,this._lexer.languageId+": "+l.substituteMatches(this._lexer,C.log,v,_,b))}if(null===k)throw l.createError(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(y));let S=i=>{let s=this._languageService.getLanguageIdByLanguageName(i)||this._languageService.getLanguageIdByMimeType(i)||i,r=this._getNestedEmbeddedLanguageData(s);if(!(h<a))return c.create(d,r);{let i=e.substr(h);return this._nestedTokenize(i,t,c.create(d,r),n+h,o)}};if(Array.isArray(k)){if(p&&p.groups.length>0)throw l.createError(this._lexer,"groups cannot be nested: "+this._safeRuleName(y));if(_.length!==k.length+1)throw l.createError(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(y));let e=0;for(let t=1;t<_.length;t++)e+=_[t].length;if(e!==v.length)throw l.createError(this._lexer,"with groups, all characters should be matched in consecutive groups in rule: "+this._safeRuleName(y));p={rule:y,matches:_,groups:[]};for(let e=0;e<k.length;e++)p.groups[e]={action:k[e],matched:_[e+1]};h-=v.length;continue}{if("@rematch"===k&&(h-=v.length,v="",_=null,k="",null!==w))return S(w);if(0===v.length){if(0===a||f!==d.depth||b!==d.state||(p?p.groups.length:0)!==m)continue;throw l.createError(this._lexer,"no progress in tokenizer in rule: "+this._safeRuleName(y))}let e=null;if(l.isString(k)&&0===k.indexOf("@brackets")){let t=k.substr(9),i=function(e,t){if(!t)return null;for(let i of(t=l.fixCase(e,t),e.brackets)){if(i.open===t)return{token:i.token,bracketType:1};if(i.close===t)return{token:i.token,bracketType:-1}}return null}(this._lexer,v);if(!i)throw l.createError(this._lexer,"@brackets token returned but no bracket defined as: "+v);e=l.sanitize(i.token+t)}else{let t=""===k?"":k+this._lexer.tokenPostfix;e=l.sanitize(t)}i<s&&o.emit(i+n,e)}if(null!==w)return S(w)}return c.create(d,u)}_getNestedEmbeddedLanguageData(e){if(!this._languageService.isRegisteredLanguageId(e))return new h(e,r.NullState);e!==this._languageId&&(s.TokenizationRegistry.getOrCreate(e),this._embeddedLanguages[e]=!0);let t=s.TokenizationRegistry.get(e);return t?new h(e,t.getInitialState()):new h(e,r.NullState)}};m=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(n=4,o=a.IConfigurationService,function(e,t){o(e,t,4)})],m)},336588:function(e,t,i){"use strict";let n,o;i.r(t);var s=i("299334"),r=Object.defineProperty,l=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,d=(e,t,i,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of a(t))!u.call(e,o)&&o!==i&&r(e,o,{get:()=>t[o],enumerable:!(n=l(t,o))||n.enumerable});return e},h={};d(h,n=s,"default"),o&&d(o,n,"default");var c=class{_onDidChange=new h.Emitter;_diagnosticsOptions;_modeConfiguration;_languageId;constructor(e,t,i){this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},p=new c("json",{validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},{documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0});h.languages.json={jsonDefaults:p};h.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]}),h.languages.onLanguage("json",()=>{Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310")]).then(i.bind(i,"42410")).then(e=>e.setupMode(p))})},588635:function(e,t,i){"use strict";i.r(t),i.d(t,{MenuService:function(){return f}});var n=i("467518"),o=i("916904"),s=i("919527"),r=i("351553"),l=i("326896"),a=i("549436"),u=i("431453"),d=i("243692"),h=i("603868"),c=i("708339"),p=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},g=function(e,t){return function(i,n){t(i,n,e)}};let f=class{constructor(e,t){this._commandService=e,this._hiddenStates=new m(t)}createMenu(e,t,i){return new b(e,this._hiddenStates,Object.assign({emitEventsForSubmenuChanges:!1,eventDebounceDelay:50},i),this._commandService,t,this)}};f=p([g(0,l.ICommandService),g(1,d.IStorageService)],f);let m=class e{constructor(t){this._storageService=t,this._disposables=new s.DisposableStore,this._onDidChange=new o.Emitter,this.onDidChange=this._onDidChange.event,this._ignoreChangeEvent=!1;try{let i=t.get(e._key,0,"{}");this._data=JSON.parse(i)}catch(e){this._data=Object.create(null)}this._disposables.add(t.onDidChangeValue(i=>{if(i.key===e._key){if(!this._ignoreChangeEvent)try{let i=t.get(e._key,0,"{}");this._data=JSON.parse(i)}catch(e){console.log("FAILED to read storage after UPDATE",e)}this._onDidChange.fire()}}))}dispose(){this._onDidChange.dispose(),this._disposables.dispose()}isHidden(e,t){var i,n;return null!==(n=null===(i=this._data[e.id])||void 0===i?void 0:i.includes(t))&&void 0!==n&&n}updateHidden(e,t,i){let n=this._data[e.id];if(i)n?0>n.indexOf(t)&&n.push(t):this._data[e.id]=[t];else if(n){let i=n.indexOf(t);i>=0&&(0,h.removeFastWithoutKeepingOrder)(n,i),0===n.length&&delete this._data[e.id]}this._persist()}_persist(){try{this._ignoreChangeEvent=!0;let t=JSON.stringify(this._data);this._storageService.store(e._key,t,0,0)}finally{this._ignoreChangeEvent=!1}}};m._key="menu.hiddenCommands",m=p([g(0,d.IStorageService)],m);let b=class e{constructor(e,t,i,l,a,u){this._id=e,this._hiddenStates=t,this._options=i,this._commandService=l,this._contextKeyService=a,this._menuService=u,this._disposables=new s.DisposableStore,this._menuGroups=[],this._contextKeys=new Set,this._build();let d=new n.RunOnceScheduler(()=>{this._build(),this._onDidChange.fire(this)},i.eventDebounceDelay);this._disposables.add(d),this._disposables.add(r.MenuRegistry.onDidChangeMenu(t=>{t.has(e)&&d.schedule()}));let h=this._disposables.add(new s.DisposableStore);this._onDidChange=new o.Emitter({onFirstListenerAdd:()=>{let e=new n.RunOnceScheduler(()=>this._onDidChange.fire(this),i.eventDebounceDelay);h.add(e),h.add(a.onDidChangeContext(t=>{t.affectsSome(this._contextKeys)&&e.schedule()})),h.add(t.onDidChange(()=>{e.schedule()}))},onLastListenerRemove:h.clear.bind(h)}),this.onDidChange=this._onDidChange.event}dispose(){this._disposables.dispose(),this._onDidChange.dispose()}_build(){let t;this._menuGroups.length=0,this._contextKeys.clear();let i=r.MenuRegistry.getMenuItems(this._id);for(let n of(i.sort(e._compareMenuItems),i)){let e=n.group||"";(!t||t[0]!==e)&&(t=[e,[]],this._menuGroups.push(t)),t[1].push(n),this._collectContextKeys(n)}}_collectContextKeys(t){if(e._fillInKbExprKeys(t.when,this._contextKeys),(0,r.isIMenuItem)(t)){if(t.command.precondition&&e._fillInKbExprKeys(t.command.precondition,this._contextKeys),t.command.toggled){let i=t.command.toggled.condition||t.command.toggled;e._fillInKbExprKeys(i,this._contextKeys)}}else this._options.emitEventsForSubmenuChanges&&r.MenuRegistry.getMenuItems(t.submenu).forEach(this._collectContextKeys,this)}getActions(e){let t=[],i=[];for(let n of this._menuGroups){let[o,s]=n,l=[],a=[];for(let t of s)if(this._contextKeyService.contextMatchesRules(t.when)){let i;if((0,r.isIMenuItem)(t)){let n=function(e,t,i){let n=`${e.id}/${t.id}`,o="string"==typeof t.title?t.title:t.title.value,s=(0,u.toAction)({id:n,label:(0,c.localize)("hide.label","Hide '{0}'",o),run(){i.updateHidden(e,t.id,!0)}}),r=(0,u.toAction)({id:n,label:o,get checked(){return!i.isHidden(e,t.id)},run(){let n=!i.isHidden(e,t.id);i.updateHidden(e,t.id,n)}});return{hide:s,toggle:r,get isHidden(){return!r.checked}}}(this._id,t.command,this._hiddenStates);i=new r.MenuItemAction(t.command,t.alt,e,n,this._contextKeyService,this._commandService)}else 0===(i=new r.SubmenuItemAction(t,this._menuService,this._contextKeyService,e)).actions.length&&(i.dispose(),i=void 0);i&&a.push(i)}a.length>0&&t.push([o,a]),l.length>0&&i.push(l)}return t}static _fillInKbExprKeys(e,t){if(e)for(let i of e.keys())t.add(i)}static _compareMenuItems(t,i){let n=t.group,o=i.group;if(n!==o){if(!n)return 1;if(!o)return -1;if("navigation"===n)return -1;if("navigation"===o)return 1;let e=n.localeCompare(o);if(0!==e)return e}let s=t.order||0,l=i.order||0;return s<l?-1:s>l?1:e._compareTitles((0,r.isIMenuItem)(t)?t.command.title:t.title,(0,r.isIMenuItem)(i)?i.command.title:i.title)}static _compareTitles(e,t){let i="string"==typeof e?e:e.original,n="string"==typeof t?t:t.original;return i.localeCompare(n)}};b=p([g(3,l.ICommandService),g(4,a.IContextKeyService),g(5,r.IMenuService)],b)},664641:function(e,t,i){"use strict";i.r(t),i.d(t,{IDialogService:function(){return n}});let n=(0,i("706301").createDecorator)("dialogService")},296709:function(e,t,i){"use strict";let n;i.r(t),i.d(t,{ContextScopedFindInput:function(){return _},ContextScopedReplaceInput:function(){return v},historyNavigationVisible:function(){return c}});var o=i("720184"),s=i("778853"),r=i("549436"),l=i("187528"),a=i("708339"),u=i("919527"),d=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},h=function(e,t){return function(i,n){t(i,n,e)}};let c=new r.RawContextKey("suggestWidgetVisible",!1,(0,a.localize)("suggestWidgetVisible","Whether suggestion are visible")),p="historyNavigationWidgetFocus",g="historyNavigationForwardsEnabled",f="historyNavigationBackwardsEnabled";let m=[];function b(e,t){if(m.includes(t))throw Error("Cannot register the same widget multiple times");m.push(t);let i=new u.DisposableStore,o=i.add(e.createScoped(t.element)),s=new r.RawContextKey(p,!1).bindTo(o),l=new r.RawContextKey(g,!0).bindTo(o),a=new r.RawContextKey(f,!0).bindTo(o),d=()=>{s.set(!0),n=t},h=()=>{s.set(!1),n===t&&(n=void 0)};return t.element===document.activeElement&&d(),i.add(t.onDidFocus(()=>d())),i.add(t.onDidBlur(()=>h())),i.add((0,u.toDisposable)(()=>{m.splice(m.indexOf(t),1),h()})),{scopedContextKeyService:o,historyNavigationForwardsEnablement:l,historyNavigationBackwardsEnablement:a,dispose(){i.dispose()}}}let _=class extends o.FindInput{constructor(e,t,i,n,o=!1){super(e,t,o,i),this._register(b(n,this.inputBox))}};_=d([h(3,r.IContextKeyService)],_);let v=class extends s.ReplaceInput{constructor(e,t,i,n,o=!1){super(e,t,o,i),this._register(b(n,this.inputBox))}};v=d([h(3,r.IContextKeyService)],v),l.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:r.ContextKeyExpr.and(r.ContextKeyExpr.has(p),r.ContextKeyExpr.equals(f,!0),c.isEqualTo(!1)),primary:16,secondary:[528],handler:e=>{n&&n.showPreviousValue()}}),l.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:r.ContextKeyExpr.and(r.ContextKeyExpr.has(p),r.ContextKeyExpr.equals(g,!0),c.isEqualTo(!1)),primary:18,secondary:[530],handler:e=>{n&&n.showNextValue()}})},384193:function(e,t,i){"use strict";i.r(t),i.d(t,{ServiceCollection:function(){return n}});class n{constructor(...e){for(let[t,i]of(this._entries=new Map,e))this.set(t,i)}set(e,t){let i=this._entries.get(e);return this._entries.set(e,t),i}get(e){return this._entries.get(e)}}},809064:function(e,t,i){"use strict";i.r(t),i.d(t,{BaseResolvedKeybinding:function(){return r}});var n=i("161111"),o=i("102881"),s=i("210109");class r extends s.ResolvedKeybinding{constructor(e,t){if(super(),0===t.length)throw(0,n.illegalArgument)("parts");this._os=e,this._parts=t}getLabel(){return o.UILabelProvider.toLabel(this._os,this._parts,e=>this._getLabel(e))}getAriaLabel(){return o.AriaLabelProvider.toLabel(this._os,this._parts,e=>this._getAriaLabel(e))}getElectronAccelerator(){return this._parts.length>1||this._parts[0].isDuplicateModifierCase()?null:o.ElectronAcceleratorLabelProvider.toLabel(this._os,this._parts,e=>this._getElectronAccelerator(e))}isChord(){return this._parts.length>1}getParts(){return this._parts.map(e=>this._getPart(e))}_getPart(e){return new s.ResolvedKeybindingPart(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,this._getLabel(e),this._getAriaLabel(e))}getDispatchParts(){return this._parts.map(e=>this._getDispatchPart(e))}getSingleModifierDispatchParts(){return this._parts.map(e=>this._getSingleModifierDispatchPart(e))}}},297669:function(e,t,i){"use strict";i.r(t),i.d(t,{INotificationService:function(){return r},NoOpNotification:function(){return l},Severity:function(){return s}});var n=i("596608"),o=i("706301"),s=n.default;let r=(0,o.createDecorator)("notificationService");class l{}},112721:function(e,t,i){"use strict";i.r(t),i.d(t,{Registry:function(){return s}});var n=i("733665"),o=i("744138");let s=new class e{constructor(){this.data=new Map}add(e,t){n.ok(o.isString(e)),n.ok(o.isObject(t)),n.ok(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)}as(e){return this.data.get(e)||null}}},338842:function(e,t,i){"use strict";i.r(t),i.d(t,{getIconRegistry:function(){return b},registerIcon:function(){return m},widgetClose:function(){return y}});var n,o,s,r=i("467518"),l=i("871628"),a=i("916904"),u=i("744138"),d=i("938505"),h=i("708339"),c=i("629711"),p=i("112721"),g=i("439703");(o||(o={})).getDefinition=function(e,t){let i=e.defaults;for(;g.ThemeIcon.isThemeIcon(i);){let e=f.getIcon(i.id);if(!e)return;i=e.defaults}return i},(n=s||(s={})).toJSONObject=function(e){return{weight:e.weight,style:e.style,src:e.src.map(e=>({format:e.format,location:e.location.toString()}))}},n.fromJSONObject=function(e){let t=e=>(0,u.isString)(e)?e:void 0;if(e&&Array.isArray(e.src)&&e.src.every(e=>(0,u.isString)(e.format)&&(0,u.isString)(e.location)))return{weight:t(e.weight),style:t(e.style),src:e.src.map(e=>({format:e.format,location:d.URI.parse(e.location)}))}};let f=new class e{constructor(){this._onDidChange=new a.Emitter,this.onDidChange=this._onDidChange.event,this.iconSchema={definitions:{icons:{type:"object",properties:{fontId:{type:"string",description:(0,h.localize)("iconDefinition.fontId","The id of the font to use. If not set, the font that is defined first is used.")},fontCharacter:{type:"string",description:(0,h.localize)("iconDefinition.fontCharacter","The font character associated with the icon definition.")}},additionalProperties:!1,defaultSnippets:[{body:{fontCharacter:"\\\\e030"}}]}},type:"object",properties:{}},this.iconReferenceSchema={type:"string",pattern:`^${l.CSSIcon.iconNameExpression}$`,enum:[],enumDescriptions:[]},this.iconsById={},this.iconFontsById={}}registerIcon(e,t,i,n){let o=this.iconsById[e];if(o){if(i&&!o.description){o.description=i,this.iconSchema.properties[e].markdownDescription=`${i} $(${e})`;let t=this.iconReferenceSchema.enum.indexOf(e);-1!==t&&(this.iconReferenceSchema.enumDescriptions[t]=i),this._onDidChange.fire()}return o}this.iconsById[e]={id:e,description:i,defaults:t,deprecationMessage:n};let s={$ref:"#/definitions/icons"};return n&&(s.deprecationMessage=n),i&&(s.markdownDescription=`${i}: $(${e})`),this.iconSchema.properties[e]=s,this.iconReferenceSchema.enum.push(e),this.iconReferenceSchema.enumDescriptions.push(i||""),this._onDidChange.fire(),{id:e}}getIcons(){return Object.keys(this.iconsById).map(e=>this.iconsById[e])}getIcon(e){return this.iconsById[e]}getIconSchema(){return this.iconSchema}toString(){let e=(e,t)=>e.id.localeCompare(t.id),t=e=>{for(;g.ThemeIcon.isThemeIcon(e.defaults);)e=this.iconsById[e.defaults.id];return`codicon codicon-${e?e.id:""}`},i=[];i.push("| preview | identifier | default codicon ID | description"),i.push("| ----------- | --------------------------------- | --------------------------------- | --------------------------------- |");let n=Object.keys(this.iconsById).map(e=>this.iconsById[e]);for(let o of n.filter(e=>!!e.description).sort(e))i.push(`|<i class="${t(o)}"></i>|${o.id}|${g.ThemeIcon.isThemeIcon(o.defaults)?o.defaults.id:o.id}|${o.description||""}|`);for(let o of(i.push("| preview | identifier "),i.push("| ----------- | --------------------------------- |"),n.filter(e=>!g.ThemeIcon.isThemeIcon(e.defaults)).sort(e)))i.push(`|<i class="${t(o)}"></i>|${o.id}|`);return i.join("\n")}};function m(e,t,i,n){return f.registerIcon(e,t,i,n)}function b(){return f}p.Registry.add("base.contributions.icons",f);!function(){for(let e of l.Codicon.getAll())f.registerIcon(e.id,e.definition,e.description)}();let _="vscode://schemas/icons",v=p.Registry.as(c.Extensions.JSONContribution);v.registerSchema(_,f.getIconSchema());let C=new r.RunOnceScheduler(()=>v.notifySchemaChanged(_),200);f.onDidChange(()=>{!C.isScheduled()&&C.schedule()});let y=m("widget-close",l.Codicon.close,(0,h.localize)("widgetClose","Icon for the close action in widgets."));m("goto-previous-location",l.Codicon.arrowUp,(0,h.localize)("previousChangeIcon","Icon for goto previous editor location.")),m("goto-next-location",l.Codicon.arrowDown,(0,h.localize)("nextChangeIcon","Icon for goto next editor location.")),g.ThemeIcon.modify(l.Codicon.sync,"spin"),g.ThemeIcon.modify(l.Codicon.loading,"spin")},117882:function(e,t,i){"use strict";i.r(t),i.d(t,{attachBadgeStyler:function(){return r},attachListStyler:function(){return l},attachMenuStyler:function(){return d},computeStyles:function(){return o},defaultListStyles:function(){return a}});var n=i("897085");function o(e,t){let i=Object.create(null);for(let o in t){let s=t[o];s&&(i[o]=(0,n.resolveColorValue)(s,e))}return i}function s(e,t,i){function n(){let n=o(e.getColorTheme(),t);"function"==typeof i?i(n):i.style(n)}return n(),e.onDidColorThemeChange(n)}function r(e,t,i){return s(t,{badgeBackground:(null==i?void 0:i.badgeBackground)||n.badgeBackground,badgeForeground:(null==i?void 0:i.badgeForeground)||n.badgeForeground,badgeBorder:n.contrastBorder},e)}function l(e,t,i){return s(t,Object.assign(Object.assign({},a),i||{}),e)}let a={listFocusBackground:n.listFocusBackground,listFocusForeground:n.listFocusForeground,listFocusOutline:n.listFocusOutline,listActiveSelectionBackground:n.listActiveSelectionBackground,listActiveSelectionForeground:n.listActiveSelectionForeground,listActiveSelectionIconForeground:n.listActiveSelectionIconForeground,listFocusAndSelectionOutline:n.listFocusAndSelectionOutline,listFocusAndSelectionBackground:n.listActiveSelectionBackground,listFocusAndSelectionForeground:n.listActiveSelectionForeground,listInactiveSelectionBackground:n.listInactiveSelectionBackground,listInactiveSelectionIconForeground:n.listInactiveSelectionIconForeground,listInactiveSelectionForeground:n.listInactiveSelectionForeground,listInactiveFocusBackground:n.listInactiveFocusBackground,listInactiveFocusOutline:n.listInactiveFocusOutline,listHoverBackground:n.listHoverBackground,listHoverForeground:n.listHoverForeground,listDropBackground:n.listDropBackground,listSelectionOutline:n.activeContrastBorder,listHoverOutline:n.activeContrastBorder,listFilterWidgetBackground:n.listFilterWidgetBackground,listFilterWidgetOutline:n.listFilterWidgetOutline,listFilterWidgetNoMatchesOutline:n.listFilterWidgetNoMatchesOutline,listFilterWidgetShadow:n.listFilterWidgetShadow,treeIndentGuidesStroke:n.treeIndentGuidesStroke,tableColumnsBorder:n.tableColumnsBorder,tableOddRowsBackgroundColor:n.tableOddRowsBackgroundColor,inputActiveOptionBorder:n.inputActiveOptionBorder,inputActiveOptionForeground:n.inputActiveOptionForeground,inputActiveOptionBackground:n.inputActiveOptionBackground,inputBackground:n.inputBackground,inputForeground:n.inputForeground,inputBorder:n.inputBorder,inputValidationInfoBackground:n.inputValidationInfoBackground,inputValidationInfoForeground:n.inputValidationInfoForeground,inputValidationInfoBorder:n.inputValidationInfoBorder,inputValidationWarningBackground:n.inputValidationWarningBackground,inputValidationWarningForeground:n.inputValidationWarningForeground,inputValidationWarningBorder:n.inputValidationWarningBorder,inputValidationErrorBackground:n.inputValidationErrorBackground,inputValidationErrorForeground:n.inputValidationErrorForeground,inputValidationErrorBorder:n.inputValidationErrorBorder},u={shadowColor:n.widgetShadow,borderColor:n.menuBorder,foregroundColor:n.menuForeground,backgroundColor:n.menuBackground,selectionForegroundColor:n.menuSelectionForeground,selectionBackgroundColor:n.menuSelectionBackground,selectionBorderColor:n.menuSelectionBorder,separatorColor:n.menuSeparatorBackground,scrollbarShadow:n.scrollbarShadow,scrollbarSliderBackground:n.scrollbarSliderBackground,scrollbarSliderHoverBackground:n.scrollbarSliderHoverBackground,scrollbarSliderActiveBackground:n.scrollbarSliderActiveBackground};function d(e,t,i){return s(t,Object.assign(Object.assign({},u),i),e)}},398306:function(e){},384542:function(e){},891234:function(e){},855600:function(e){},960957:function(e){},543087:function(e){},198255:function(e){},241163:function(e){}}]);
|