(window.webpackJsonp=window.webpackJsonp||[]).push([[27],{"+3Gp":function(Lt,N,e){"use strict";e.d(N,"a",function(){return z}),e.d(N,"b",function(){return D});var T=e("MNsG"),le=e("Yr1X"),$=function(){var W=function(x,h){return W=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,w){y.__proto__=w}||function(y,w){for(var f in w)w.hasOwnProperty(f)&&(y[f]=w[f])},W(x,h)};return function(x,h){W(x,h);function y(){this.constructor=x}x.prototype=h===null?Object.create(h):(y.prototype=h.prototype,new y)}}(),R=T.e?1.5:1.35,B=8,z=function(){function W(x){this.zoomLevel=x.zoomLevel,this.fontFamily=String(x.fontFamily),this.fontWeight=String(x.fontWeight),this.fontSize=x.fontSize,this.fontFeatureSettings=x.fontFeatureSettings,this.lineHeight=x.lineHeight|0,this.letterSpacing=x.letterSpacing}return W.createFromValidatedSettings=function(x,h,y){var w=x.get(33),f=x.get(37),v=x.get(36),C=x.get(35),g=x.get(49),u=x.get(46);return W._create(w,f,v,C,g,u,h,y)},W._create=function(x,h,y,w,f,v,C,g){f===0?f=Math.round(R*y):fW.getLineMinColumn(x)?h=h-R.G(W.getLineContent(x),h-1):x>1&&(x=x-1,h=W.getLineMaxColumn(x)),new le.a(x,h)},D.left=function(W,x,h,y){var w=D.leftPosition(x,h,y);return new B(w.lineNumber,w.column,0)},D.moveLeft=function(W,x,h,y,w){var f,v;if(h.hasSelection()&&!y)f=h.selection.startLineNumber,v=h.selection.startColumn;else{var C=D.left(W,x,h.position.lineNumber,h.position.column-(w-1));f=C.lineNumber,v=C.column}return h.move(y,f,v,0)},D.rightPosition=function(W,x,h){return h
"+ue(ao.message+"",!0)+"";throw ao}}Oe.options=Oe.setOptions=function(Me){return F(Oe.defaults,Me),Oe},Oe.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new Z,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tables:!0,xhtml:!1}},Oe.defaults=Oe.getDefaults(),Oe.Parser=je,Oe.parser=je.parse,Oe.Renderer=Z,Oe.TextRenderer=ye,Oe.Lexer=ie,Oe.lexer=ie.lex,Oe.InlineLexer=ce,Oe.inlineLexer=ce.output,Oe.Slugger=Ge,Oe.parse=Oe,z=Oe}).call(void 0);var D=z,W=z.Parser,x=z.parser,h=z.Renderer,y=z.TextRenderer,w=z.Lexer,f=z.lexer,v=z.InlineLexer,C=z.inlineLexer,g=z.parse,u,u;let s;(function(){function se(ee,ie,q){function ce(je,Ge){if(!ie[je]){if(!ee[je]){var ue=typeof u=="function"&&u;if(!Ge&&ue)return u(je,!0);if(Z)return Z(je,!0);var ve=new Error("Cannot find module '"+je+"'");throw ve.code="MODULE_NOT_FOUND",ve}var Ee=ie[je]={exports:{}};ee[je][0].call(Ee.exports,function(xe){var Ce=ee[je][1][xe];return ce(Ce||xe)},Ee,Ee.exports,se,ee,ie,q)}return ie[je].exports}for(var Z=typeof u=="function"&&u,ye=0;ye
"+(se.supportThemeIcons?Object(P.c)(xe):xe)+"
"},ee.codeBlockRenderer&&(je.code=function(xe,Ce){var he=ee.codeBlockRenderer(Ce,xe),J=B.b.nextId(),b=Promise.all([he,ye]).then(function(F){var re=F[0],ne=ie.querySelector('div[data-code="'+J+'"]');ne&&(ne.innerHTML=re)}).catch(function(F){});return ee.codeBlockRenderCallback&&b.then(ee.codeBlockRenderCallback),'Q;V--)H.push(V);return H}function p(A,Q,K){var H=A.slice(0,Q),V=A.slice(Q);return H.concat(K,V)}function _(A,Q){var K=A.indexOf(Q);K>-1&&(A.splice(K,1),A.unshift(Q))}function L(A,Q){var K=A.indexOf(Q);K>-1&&(A.splice(K,1),A.push(Q))}function I(A,Q){for(var K=0;K";var y=this.text.substring(D,h.start);z+=this.supportCodicons?Object(le.c)(Object($.o)(y)):Object($.o)(y),z+="",D=h.end}h.extraClasses?z+='':z+='';var w=this.text.substring(h.start,h.end);z+=this.supportCodicons?Object(le.c)(Object($.o)(w)):Object($.o)(w),z+="",D=h.end}if(D ";var w=this.text.substring(D);z+=this.supportCodicons?Object(le.c)(Object($.o)(w)):Object($.o)(w),z+=" "}this.domNode.innerHTML=z,this.title?this.domNode.title=this.title:this.domNode.removeAttribute("title"),this.didEverRender=!0},B.escapeNewLines=function(z,D){var W=0,x=0;return z.replace(/\r\n|\r|\n/g,function(h,y){x=h===`\r `?-1:0,y+=W;for(var w=0,f=D;w=y&&(v.start+=x),v.end>=y&&(v.end+=x)}return W+=x,"\u23CE"})},B}()},"7zd4":function(Lt,N,e){},"8ATB":function(Lt,N,e){},"8HAY":function(Lt,N,e){"use strict";e.d(N,"a",function(){return z}),e.d(N,"b",function(){return D});var T=e("pmY6"),le=e("MI8n"),$=function(){var W=function(x,h){return W=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,w){y.__proto__=w}||function(y,w){for(var f in w)w.hasOwnProperty(f)&&(y[f]=w[f])},W(x,h)};return function(x,h){W(x,h);function y(){this.constructor=x}x.prototype=h===null?Object.create(h):(y.prototype=h.prototype,new y)}}(),R=function(W,x,h,y){function w(f){return f instanceof h?f:new h(function(v){v(f)})}return new(h||(h=Promise))(function(f,v){function C(s){try{u(y.next(s))}catch(l){v(l)}}function g(s){try{u(y.throw(s))}catch(l){v(l)}}function u(s){s.done?f(s.value):w(s.value).then(C,g)}u((y=y.apply(W,x||[])).next())})},B=function(W,x){var h={label:0,sent:function(){if(f[0]&1)throw f[1];return f[1]},trys:[],ops:[]},y,w,f,v;return v={next:C(0),throw:C(1),return:C(2)},typeof Symbol=="function"&&(v[Symbol.iterator]=function(){return this}),v;function C(u){return function(s){return g([u,s])}}function g(u){if(y)throw new TypeError("Generator is already executing.");for(;h;)try{if(y=1,w&&(f=u[0]&2?w.return:u[0]?w.throw||((f=w.return)&&f.call(w),0):w.next)&&!(f=f.call(w,u[1])).done)return f;(w=0,f)&&(u=[u[0]&2,f.value]);switch(u[0]){case 0:case 1:f=u;break;case 4:return h.label++,{value:u[1],done:!1};case 5:h.label++,w=u[1],u=[0];continue;case 7:u=h.ops.pop(),h.trys.pop();continue;default:if(!(f=h.trys,f=f.length>0&&f[f.length-1])&&(u[0]===6||u[0]===2)){h=0;continue}if(u[0]===3&&(!f||u[1]>f[0]&&u[1] 1&&q.push(new W.a(ee.endLineNumber,ee.endColumn,ee.endLineNumber,ee.endColumn))},se.prototype.run=function(ee,ie){var q=this;if(!ie.hasModel())return;var ce=ie.getModel(),Z=ie.getSelections(),ye=[];Z.forEach(function(je){return q.getCursorsForSelection(je,ce,ye)}),ye.length>0&&ie.setSelections(ye)},se}(B.b),p=function(ke){u(se,ke);function se(){return ke.call(this,{id:"editor.action.addCursorsToBottom",label:T.a("mutlicursor.addCursorsToBottom","Add Cursors To Bottom"),alias:"Add Cursors To Bottom",precondition:void 0})||this}return se.prototype.run=function(ee,ie){if(!ie.hasModel())return;for(var q=ie.getSelections(),ce=ie.getModel().getLineCount(),Z=[],ye=q[0].startLineNumber;ye<=ce;ye++)Z.push(new W.a(ye,q[0].startColumn,ye,q[0].endColumn));Z.length>0&&ie.setSelections(Z)},se}(B.b),_=function(ke){u(se,ke);function se(){return ke.call(this,{id:"editor.action.addCursorsToTop",label:T.a("mutlicursor.addCursorsToTop","Add Cursors To Top"),alias:"Add Cursors To Top",precondition:void 0})||this}return se.prototype.run=function(ee,ie){if(!ie.hasModel())return;for(var q=ie.getSelections(),ce=[],Z=q[0].startLineNumber;Z>=1;Z--)ce.push(new W.a(Z,q[0].startColumn,Z,q[0].endColumn));ce.length>0&&ie.setSelections(ce)},se}(B.b),L=function(){function ke(se,ee,ie){this.selections=se,this.revealRange=ee,this.revealScrollType=ie}return ke}(),I=function(){function ke(se,ee,ie,q,ce,Z,ye){this._editor=se,this.findController=ee,this.isDisconnectedFromFindController=ie,this.searchText=q,this.wholeWord=ce,this.matchCase=Z,this.currentMatch=ye}return ke.create=function(se,ee){if(!se.hasModel())return null;var ie=ee.getState();if(!se.hasTextFocus()&&ie.isRevealed&&ie.searchString.length>0)return new ke(se,ee,!1,ie.searchString,ie.wholeWord,ie.matchCase,null);var q=!1,ce,Z,ye=se.getSelections();ye.length===1&&ye[0].isEmpty()?(q=!0,ce=!0,Z=!0):(ce=ie.wholeWord,Z=ie.matchCase);var je=se.getSelection(),Ge,ue=null;if(je.isEmpty()){var ve=se.getModel().getWordAtPosition(je.getStartPosition());if(!ve)return null;Ge=ve.word,ue=new W.a(je.startLineNumber,ve.startColumn,je.startLineNumber,ve.endColumn)}else Ge=se.getModel().getValueInRange(je).replace(/\r\n/g,` `);return new ke(se,ee,q,Ge,ce,Z,ue)},ke.prototype.addSelectionToNextFindMatch=function(){if(!this._editor.hasModel())return null;var se=this._getNextMatch();if(!se)return null;var ee=this._editor.getSelections();return new L(ee.concat(se),se,0)},ke.prototype.moveSelectionToNextFindMatch=function(){if(!this._editor.hasModel())return null;var se=this._getNextMatch();if(!se)return null;var ee=this._editor.getSelections();return new L(ee.slice(0,ee.length-1).concat(se),se,0)},ke.prototype._getNextMatch=function(){if(!this._editor.hasModel())return null;if(this.currentMatch){var se=this.currentMatch;return this.currentMatch=null,se}this.findController.highlightFindOptions();var ee=this._editor.getSelections(),ie=ee[ee.length-1],q=this._editor.getModel().findNextMatch(this.searchText,ie.getEndPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(96):null,!1);return q?new W.a(q.range.startLineNumber,q.range.startColumn,q.range.endLineNumber,q.range.endColumn):null},ke.prototype.addSelectionToPreviousFindMatch=function(){if(!this._editor.hasModel())return null;var se=this._getPreviousMatch();if(!se)return null;var ee=this._editor.getSelections();return new L(ee.concat(se),se,0)},ke.prototype.moveSelectionToPreviousFindMatch=function(){if(!this._editor.hasModel())return null;var se=this._getPreviousMatch();if(!se)return null;var ee=this._editor.getSelections();return new L(ee.slice(0,ee.length-1).concat(se),se,0)},ke.prototype._getPreviousMatch=function(){if(!this._editor.hasModel())return null;if(this.currentMatch){var se=this.currentMatch;return this.currentMatch=null,se}this.findController.highlightFindOptions();var ee=this._editor.getSelections(),ie=ee[ee.length-1],q=this._editor.getModel().findPreviousMatch(this.searchText,ie.getStartPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(96):null,!1);return q?new W.a(q.range.startLineNumber,q.range.startColumn,q.range.endLineNumber,q.range.endColumn):null},ke.prototype.selectAll=function(){return this._editor.hasModel()?(this.findController.highlightFindOptions(),this._editor.getModel().findMatches(this.searchText,!0,!1,this.matchCase,this.wholeWord?this._editor.getOption(96):null,!1,1073741824)):[]},ke}(),P=function(ke){u(se,ke);function se(ee){var ie=ke.call(this)||this;return ie._sessionDispose=ie._register(new R.b),ie._editor=ee,ie._ignoreSelectionChange=!1,ie._session=null,ie}return se.get=function(ee){return ee.getContribution(se.ID)},se.prototype.dispose=function(){this._endSession(),ke.prototype.dispose.call(this)},se.prototype._beginSessionIfNeeded=function(ee){var ie=this;if(!this._session){var q=I.create(this._editor,ee);if(!q)return;this._session=q;var ce={searchString:this._session.searchText};this._session.isDisconnectedFromFindController&&(ce.wholeWordOverride=1,ce.matchCaseOverride=1,ce.isRegexOverride=2),ee.getState().change(ce,!1),this._sessionDispose.add(this._editor.onDidChangeCursorSelection(function(Z){if(ie._ignoreSelectionChange)return;ie._endSession()})),this._sessionDispose.add(this._editor.onDidBlurEditorText(function(){ie._endSession()})),this._sessionDispose.add(ee.getState().onFindReplaceStateChange(function(Z){(Z.matchCase||Z.wholeWord)&&ie._endSession()}))}},se.prototype._endSession=function(){if(this._sessionDispose.clear(),this._session&&this._session.isDisconnectedFromFindController){var ee={wholeWordOverride:0,matchCaseOverride:0,isRegexOverride:0};this._session.findController.getState().change(ee,!1)}this._session=null},se.prototype._setSelections=function(ee){this._ignoreSelectionChange=!0,this._editor.setSelections(ee),this._ignoreSelectionChange=!1},se.prototype._expandEmptyToWord=function(ee,ie){if(!ie.isEmpty())return ie;var q=ee.getWordAtPosition(ie.getStartPosition());return q?new W.a(ie.startLineNumber,q.startColumn,ie.startLineNumber,q.endColumn):ie},se.prototype._applySessionResult=function(ee){if(!ee)return;this._setSelections(ee.selections),ee.revealRange&&this._editor.revealRangeInCenterIfOutsideViewport(ee.revealRange,ee.revealScrollType)},se.prototype.getSession=function(ee){return this._session},se.prototype.addSelectionToNextFindMatch=function(ee){if(!this._editor.hasModel())return;if(!this._session){var ie=this._editor.getSelections();if(ie.length>1){var q=ee.getState(),ce=q.matchCase,Z=Pe(this._editor.getModel(),ie,ce);if(!Z){for(var ye=this._editor.getModel(),je=[],Ge=0,ue=ie.length;Ge 0&&q.isRegex)ie=this._editor.getModel().findMatches(q.searchString,!0,q.isRegex,q.matchCase,q.wholeWord?this._editor.getOption(96):null,!1,1073741824);else{if(this._beginSessionIfNeeded(ee),!this._session)return;ie=this._session.selectAll()}if(q.searchScope){for(var ce=q.searchScope,Z=[],ye=0;ye =ce.startLineNumber&&Z.push(ie[ye]);ie=Z}if(ie.length>0){for(var je=this._editor.getSelection(),ye=0,Ge=ie.length;ye 1){var Ge=Z.getState(),ue=Ge.matchCase,ve=Pe(ie.getModel(),je,ue);if(!ve)return null}ye=I.create(ie,Z)}if(!ye)return null;if(ye.currentMatch)return null;if(/^[ \t]+$/.test(ye.searchText))return null;if(ye.searchText.length>200)return null;var Ee=Z.getState(),xe=Ee.matchCase;if(Ee.isRevealed){var Ce=Ee.searchString;xe||(Ce=Ce.toLowerCase());var he=ye.searchText;if(xe||(he=he.toLowerCase()),Ce===he&&ye.matchCase===Ee.matchCase&&ye.wholeWord===Ee.wholeWord&&!Ee.isRegex)return null}return new Se(ye.searchText,ye.matchCase,ye.wholeWord?ie.getOption(96):null)},se.prototype._setState=function(ee){if(Se.softEquals(this.state,ee)){this.state=ee;return}if(this.state=ee,!this.state){this.decorations=this.editor.deltaDecorations(this.decorations,[]);return}if(!this.editor.hasModel())return;var ie=this.editor.getModel();if(ie.isTooLargeForTokenization())return;var q=w.i.has(ie),ce=ie.findMatches(this.state.searchText,!0,!1,this.state.matchCase,this.state.wordSeparators,!1).map(function(he){return he.range});ce.sort(D.a.compareRangesUsingStarts);var Z=this.editor.getSelections();Z.sort(D.a.compareRangesUsingStarts);for(var ye=[],je=0,Ge=0,ue=ce.length,ve=Z.length;je =ve)ye.push(Ee),je++;else{var xe=D.a.compareRangesUsingStarts(Ee,Z[Ge]);xe<0?((Z[Ge].isEmpty()||!D.a.areIntersecting(Ee,Z[Ge]))&&ye.push(Ee),je++):(xe>0||je++,Ge++)}}var Ce=ye.map(function(he){return{range:he,options:q?se._SELECTION_HIGHLIGHT:se._SELECTION_HIGHLIGHT_OVERVIEW}});this.decorations=this.editor.deltaDecorations(this.decorations,Ce)},se.prototype.dispose=function(){this._setState(null),ke.prototype.dispose.call(this)},se.ID="editor.contrib.selectionHighlighter",se._SELECTION_HIGHLIGHT_OVERVIEW=y.a.register({stickiness:1,className:"selectionHighlight",overviewRuler:{color:Object(C.f)(v.Mb),position:h.d.Center}}),se._SELECTION_HIGHLIGHT=y.a.register({stickiness:1,className:"selectionHighlight"}),se}(R.a);function Pe(ke,se,ee){for(var ie=Ve(ke,se[0],!ee),q=1,ce=se.length;q =0;ao--)(Kt=Ue[ao])&&(Dt=(Rt<3?Kt(Dt):Rt>3?Kt(Je,nt,Dt):Kt(Je,nt))||Dt);return Rt>3&&Dt&&Object.defineProperty(Je,nt,Dt),Dt},Se=function(Ue,Je){return function(nt,vt){Je(nt,vt,Ue)}},Ie=new s.d("hasSymbols",!1),Pe=Object(I.c)("ISymbolNavigationService"),Ve=function(){function Ue(Je,nt,vt,Rt){this._editorService=nt,this._notificationService=vt,this._keybindingService=Rt,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=Ie.bindTo(Je)}return Ue.prototype.reset=function(){this._ctxHasSymbols.reset(),Object(Q.f)(this._currentState),Object(Q.f)(this._currentMessage),this._currentModel=void 0,this._currentIdx=-1},Ue.prototype.put=function(Je){var nt=this,vt=Je.parent.parent;if(vt.references.length<=1){this.reset();return}this._currentModel=vt,this._currentIdx=vt.references.indexOf(Je),this._ctxHasSymbols.set(!0),this._showMessage();var Rt=new ke(this._editorService),Dt=Rt.onDidChange(function(Kt){if(nt._ignoreEditorChange)return;var ao=nt._editorService.getActiveCodeEditor();if(!ao)return;var lo=ao.getModel(),so=ao.getPosition();if(!lo||!so)return;for(var jt=!1,pt=!1,gt=0,Tt=vt.references;gt 0&&Dt[Dt.length-1])&&(so[0]===6||so[0]===2)){nt=0;continue}if(so[0]===3&&(!Dt||so[1]>Dt[0]&&so[1] 1)?(this._openInPeek(Rt,Dt),[3,3]):[3,1];case 1:return ao=Dt.firstReference(),lo=Dt.references.length>1&&Kt==="gotoAndPeek",[4,this._openReference(Rt,nt,ao,this._configuration.openToSide,!lo)];case 2:so=jt.sent(),lo&&so?this._openInPeek(so,Dt):Dt.dispose(),Kt==="goto"&&vt.put(ao),jt.label=3;case 3:return[2]}})})},Je.prototype._openReference=function(nt,vt,Rt,Dt,Kt){return Z(this,void 0,void 0,function(){var ao,lo,so,jt;return ye(this,function(pt){switch(pt.label){case 0:return ao=void 0,Object(y.G)(Rt)&&(ao=Rt.targetSelectionRange),ao||(ao=Rt.range),[4,vt.openCodeEditor({resource:Rt.uri,options:{selection:x.a.collapseToStart(ao),revealInCenterIfOutsideViewport:!0}},nt,Dt)];case 1:return lo=pt.sent(),lo?(Kt&&(so=lo.getModel(),jt=lo.deltaDecorations([],[{range:ao,options:{className:"symbolHighlight"}}]),setTimeout(function(){lo.getModel()===so&&lo.deltaDecorations(jt,[])},350)),[2,lo]):[2,void 0]}})})},Je.prototype._openInPeek=function(nt,vt){var Rt=v.a.get(nt);Rt&&nt.hasModel()?Rt.toggleWidget(nt.getSelection(),Object(le.f)(function(Dt){return Promise.resolve(vt)}),this._configuration.openInPeek):vt.dispose()},Je}(z.b),b=function(Ue){ce(Je,Ue);function Je(){return Ue!==null&&Ue.apply(this,arguments)||this}return Je.prototype._getLocationModel=function(nt,vt,Rt){return Z(this,void 0,void 0,function(){var Dt;return ye(this,function(Kt){switch(Kt.label){case 0:return Dt=C.c.bind,[4,Object(p.b)(nt,vt,Rt)];case 1:return[2,new(Dt.apply(C.c,[void 0,Kt.sent(),g.a("def.title","Definitions")]))]}})})},Je.prototype._getNoResultFoundMessage=function(nt){return nt&&nt.word?g.a("noResultWord","No definition found for '{0}'",nt.word):g.a("generic.noResults","No definition found")},Je.prototype._getAlternativeCommand=function(nt){return nt.getOption(41).alternativeDefinitionCommand},Je.prototype._getGoToPreference=function(nt){return nt.getOption(41).multipleDefinitions},Je}(J),F=R.g&&!se.l?2048|70:70;Object(z.f)((je=function(Ue){ce(Je,Ue);function Je(){var nt=Ue.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:Je.id,label:g.a("actions.goToDecl.label","Go to Definition"),alias:"Go to Definition",precondition:s.a.and(h.a.hasDefinitionProvider,h.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:h.a.editorTextFocus,primary:F,weight:100},contextMenuOpts:{group:"navigation",order:1.1},menuOpts:{menuId:19,group:"4_symbol_nav",order:2,title:g.a({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")}})||this;return _.a.registerCommandAlias("editor.action.goToDeclaration",Je.id),nt}return Je}(b),je.id="editor.action.revealDefinition",je)),Object(z.f)((Ge=function(Ue){ce(Je,Ue);function Je(){var nt=Ue.call(this,{openToSide:!0,openInPeek:!1,muteMessage:!1},{id:Je.id,label:g.a("actions.goToDeclToSide.label","Open Definition to the Side"),alias:"Open Definition to the Side",precondition:s.a.and(h.a.hasDefinitionProvider,h.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:h.a.editorTextFocus,primary:Object($.a)(2048|41,F),weight:100}})||this;return _.a.registerCommandAlias("editor.action.openDeclarationToTheSide",Je.id),nt}return Je}(b),Ge.id="editor.action.revealDefinitionAside",Ge)),Object(z.f)((ue=function(Ue){ce(Je,Ue);function Je(){var nt=Ue.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:Je.id,label:g.a("actions.previewDecl.label","Peek Definition"),alias:"Peek Definition",precondition:s.a.and(h.a.hasDefinitionProvider,f.b.notInPeekEditor,h.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:h.a.editorTextFocus,primary:512|70,linux:{primary:2048|1024|68},weight:100},contextMenuOpts:{menuId:8,group:"peek",order:2}})||this;return _.a.registerCommandAlias("editor.action.previewDeclaration",Je.id),nt}return Je}(b),ue.id="editor.action.peekDefinition",ue));var re=function(Ue){ce(Je,Ue);function Je(){return Ue!==null&&Ue.apply(this,arguments)||this}return Je.prototype._getLocationModel=function(nt,vt,Rt){return Z(this,void 0,void 0,function(){var Dt;return ye(this,function(Kt){switch(Kt.label){case 0:return Dt=C.c.bind,[4,Object(p.a)(nt,vt,Rt)];case 1:return[2,new(Dt.apply(C.c,[void 0,Kt.sent(),g.a("decl.title","Declarations")]))]}})})},Je.prototype._getNoResultFoundMessage=function(nt){return nt&&nt.word?g.a("decl.noResultWord","No declaration found for '{0}'",nt.word):g.a("decl.generic.noResults","No declaration found")},Je.prototype._getAlternativeCommand=function(nt){return nt.getOption(41).alternativeDeclarationCommand},Je.prototype._getGoToPreference=function(nt){return nt.getOption(41).multipleDeclarations},Je}(J);Object(z.f)((ve=function(Ue){ce(Je,Ue);function Je(){return Ue.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:Je.id,label:g.a("actions.goToDeclaration.label","Go to Declaration"),alias:"Go to Declaration",precondition:s.a.and(h.a.hasDeclarationProvider,h.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{group:"navigation",order:1.3},menuOpts:{menuId:19,group:"4_symbol_nav",order:3,title:g.a({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")}})||this}return Je.prototype._getNoResultFoundMessage=function(nt){return nt&&nt.word?g.a("decl.noResultWord","No declaration found for '{0}'",nt.word):g.a("decl.generic.noResults","No declaration found")},Je}(re),ve.id="editor.action.revealDeclaration",ve)),Object(z.f)(function(Ue){ce(Je,Ue);function Je(){return Ue.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",label:g.a("actions.peekDecl.label","Peek Declaration"),alias:"Peek Declaration",precondition:s.a.and(h.a.hasDeclarationProvider,f.b.notInPeekEditor,h.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{menuId:8,group:"peek",order:3}})||this}return Je}(re));var ne=function(Ue){ce(Je,Ue);function Je(){return Ue!==null&&Ue.apply(this,arguments)||this}return Je.prototype._getLocationModel=function(nt,vt,Rt){return Z(this,void 0,void 0,function(){var Dt;return ye(this,function(Kt){switch(Kt.label){case 0:return Dt=C.c.bind,[4,Object(p.e)(nt,vt,Rt)];case 1:return[2,new(Dt.apply(C.c,[void 0,Kt.sent(),g.a("typedef.title","Type Definitions")]))]}})})},Je.prototype._getNoResultFoundMessage=function(nt){return nt&&nt.word?g.a("goToTypeDefinition.noResultWord","No type definition found for '{0}'",nt.word):g.a("goToTypeDefinition.generic.noResults","No type definition found")},Je.prototype._getAlternativeCommand=function(nt){return nt.getOption(41).alternativeTypeDefinitionCommand},Je.prototype._getGoToPreference=function(nt){return nt.getOption(41).multipleTypeDefinitions},Je}(J);Object(z.f)((Ee=function(Ue){ce(Je,Ue);function Je(){return Ue.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:Je.ID,label:g.a("actions.goToTypeDefinition.label","Go to Type Definition"),alias:"Go to Type Definition",precondition:s.a.and(h.a.hasTypeDefinitionProvider,h.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:h.a.editorTextFocus,primary:0,weight:100},contextMenuOpts:{group:"navigation",order:1.4},menuOpts:{menuId:19,group:"4_symbol_nav",order:3,title:g.a({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")}})||this}return Je}(ne),Ee.ID="editor.action.goToTypeDefinition",Ee)),Object(z.f)((xe=function(Ue){ce(Je,Ue);function Je(){return Ue.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:Je.ID,label:g.a("actions.peekTypeDefinition.label","Peek Type Definition"),alias:"Peek Type Definition",precondition:s.a.and(h.a.hasTypeDefinitionProvider,f.b.notInPeekEditor,h.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{menuId:8,group:"peek",order:4}})||this}return Je}(ne),xe.ID="editor.action.peekTypeDefinition",xe));var fe=function(Ue){ce(Je,Ue);function Je(){return Ue!==null&&Ue.apply(this,arguments)||this}return Je.prototype._getLocationModel=function(nt,vt,Rt){return Z(this,void 0,void 0,function(){var Dt;return ye(this,function(Kt){switch(Kt.label){case 0:return Dt=C.c.bind,[4,Object(p.c)(nt,vt,Rt)];case 1:return[2,new(Dt.apply(C.c,[void 0,Kt.sent(),g.a("impl.title","Implementations")]))]}})})},Je.prototype._getNoResultFoundMessage=function(nt){return nt&&nt.word?g.a("goToImplementation.noResultWord","No implementation found for '{0}'",nt.word):g.a("goToImplementation.generic.noResults","No implementation found")},Je.prototype._getAlternativeCommand=function(nt){return nt.getOption(41).alternativeImplementationCommand},Je.prototype._getGoToPreference=function(nt){return nt.getOption(41).multipleImplementations},Je}(J);Object(z.f)((Ce=function(Ue){ce(Je,Ue);function Je(){return Ue.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:Je.ID,label:g.a("actions.goToImplementation.label","Go to Implementations"),alias:"Go to Implementations",precondition:s.a.and(h.a.hasImplementationProvider,h.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:h.a.editorTextFocus,primary:2048|70,weight:100},menuOpts:{menuId:19,group:"4_symbol_nav",order:4,title:g.a({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},contextMenuOpts:{group:"navigation",order:1.45}})||this}return Je}(fe),Ce.ID="editor.action.goToImplementation",Ce)),Object(z.f)((he=function(Ue){ce(Je,Ue);function Je(){return Ue.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:Je.ID,label:g.a("actions.peekImplementation.label","Peek Implementations"),alias:"Peek Implementations",precondition:s.a.and(h.a.hasImplementationProvider,f.b.notInPeekEditor,h.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:h.a.editorTextFocus,primary:2048|1024|70,weight:100},contextMenuOpts:{menuId:8,group:"peek",order:5}})||this}return Je}(fe),he.ID="editor.action.peekImplementation",he));var Oe=function(Ue){ce(Je,Ue);function Je(){return Ue!==null&&Ue.apply(this,arguments)||this}return Je.prototype._getNoResultFoundMessage=function(nt){return nt?g.a("references.no","No references found for '{0}'",nt.word):g.a("references.noGeneric","No references found")},Je.prototype._getAlternativeCommand=function(nt){return nt.getOption(41).alternativeReferenceCommand},Je.prototype._getGoToPreference=function(nt){return nt.getOption(41).multipleReferences},Je}(J);Object(z.f)(function(Ue){ce(Je,Ue);function Je(){return Ue.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",label:g.a("goToReferences.label","Go to References"),alias:"Go to References",precondition:s.a.and(h.a.hasReferenceProvider,f.b.notInPeekEditor,h.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:h.a.editorTextFocus,primary:1024|70,weight:100},contextMenuOpts:{group:"navigation",order:1.45},menuOpts:{menuId:19,group:"4_symbol_nav",order:5,title:g.a({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")}})||this}return Je.prototype._getLocationModel=function(nt,vt,Rt){return Z(this,void 0,void 0,function(){var Dt;return ye(this,function(Kt){switch(Kt.label){case 0:return Dt=C.c.bind,[4,Object(p.d)(nt,vt,!0,Rt)];case 1:return[2,new(Dt.apply(C.c,[void 0,Kt.sent(),g.a("ref.title","References")]))]}})})},Je}(Oe)),Object(z.f)(function(Ue){ce(Je,Ue);function Je(){return Ue.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",label:g.a("references.action.label","Peek References"),alias:"Peek References",precondition:s.a.and(h.a.hasReferenceProvider,f.b.notInPeekEditor,h.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{menuId:8,group:"peek",order:6}})||this}return Je.prototype._getLocationModel=function(nt,vt,Rt){return Z(this,void 0,void 0,function(){var Dt;return ye(this,function(Kt){switch(Kt.label){case 0:return Dt=C.c.bind,[4,Object(p.d)(nt,vt,!1,Rt)];case 1:return[2,new(Dt.apply(C.c,[void 0,Kt.sent(),g.a("ref.title","References")]))]}})})},Je}(Oe));var Me=function(Ue){ce(Je,Ue);function Je(nt,vt,Rt){var Dt=Ue.call(this,nt,{id:"editor.action.goToLocation",label:g.a("label.generic","Go To Any Symbol"),alias:"Go To Any Symbol",precondition:s.a.and(f.b.notInPeekEditor,h.a.isInEmbeddedEditor.toNegated())})||this;return Dt._references=vt,Dt._gotoMultipleBehaviour=Rt,Dt}return Je.prototype._getLocationModel=function(nt,vt,Rt){return Z(this,void 0,void 0,function(){return ye(this,function(Dt){return[2,new C.c(this._references,g.a("generic.title","Locations"))]})})},Je.prototype._getNoResultFoundMessage=function(nt){return nt&&g.a("generic.noResult","No results for '{0}'",nt.word)||""},Je.prototype._getGoToPreference=function(nt){var vt;return(vt=this._gotoMultipleBehaviour)!==null&&vt!==void 0?vt:nt.getOption(41).multipleReferences},Je.prototype._getAlternativeCommand=function(){return""},Je}(J);_.a.registerCommand({id:"editor.action.goToLocations",description:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:ee.a},{name:"position",description:"The position at which to start",constraint:W.a.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"}]},handler:function(Ue,Je,nt,vt,Rt,Dt){return Z(void 0,void 0,void 0,function(){var Kt,ao;return ye(this,function(lo){switch(lo.label){case 0:return Object(ie.a)(ee.a.isUri(Je)),Object(ie.a)(W.a.isIPosition(nt)),Object(ie.a)(Array.isArray(vt)),Object(ie.a)(typeof Rt=="undefined"||typeof Rt=="string"),Object(ie.a)(typeof Dt=="undefined"||typeof Dt=="boolean"),Kt=Ue.get(D.a),[4,Kt.openCodeEditor({resource:Je},Kt.getFocusedCodeEditor())];case 1:return ao=lo.sent(),Object(B.a)(ao)?(ao.setPosition(nt),ao.revealPositionInCenterIfOutsideViewport(nt,0),[2,ao.invokeWithinContext(function(so){var jt=new Me({muteMessage:!0,openInPeek:Boolean(Dt),openToSide:!1},vt,Rt);so.get(I.a).invokeFunction(jt.run.bind(jt),ao)})]):[2]}})})}}),_.a.registerCommand({id:"editor.action.peekLocations",description:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:ee.a},{name:"position",description:"The position at which to start",constraint:W.a.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"}]},handler:function(Ue,Je,nt,vt,Rt){return Z(void 0,void 0,void 0,function(){return ye(this,function(Dt){return Ue.get(_.b).executeCommand("editor.action.goToLocations",Je,nt,vt,Rt,!0),[2]})})}}),_.a.registerCommand({id:"editor.action.findReferences",handler:function(Ue,Je,nt){Object(ie.a)(ee.a.isUri(Je)),Object(ie.a)(W.a.isIPosition(nt));var vt=Ue.get(D.a);return vt.openCodeEditor({resource:Je},vt.getFocusedCodeEditor()).then(function(Rt){if(!Object(B.a)(Rt)||!Rt.hasModel())return;var Dt=v.a.get(Rt);if(!Dt)return;var Kt=Object(le.f)(function(lo){return Object(p.d)(Rt.getModel(),W.a.lift(nt),!1,lo).then(function(so){return new C.c(so,g.a("ref.title","References"))})}),ao=new x.a(nt.lineNumber,nt.column,nt.lineNumber,nt.column);return Promise.resolve(Dt.toggleWidget(ao,Kt,!1))})}}),_.a.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations")},"8gvo":function(Lt,N,e){},"8z58":function(Lt,N,e){"use strict";e.r(N),e.d(N,"CancellationTokenSource",function(){return Wd}),e.d(N,"Emitter",function(){return Bd}),e.d(N,"KeyCode",function(){return Ud}),e.d(N,"KeyMod",function(){return Hd}),e.d(N,"Position",function(){return Vd}),e.d(N,"Range",function(){return zd}),e.d(N,"Selection",function(){return Kd}),e.d(N,"SelectionDirection",function(){return Gd}),e.d(N,"MarkerSeverity",function(){return Xd}),e.d(N,"MarkerTag",function(){return Yd}),e.d(N,"Uri",function(){return Zd}),e.d(N,"Token",function(){return Qd}),e.d(N,"editor",function(){return $d}),e.d(N,"languages",function(){return Jd});var T=e("/UlZ"),le=e("URDS"),$=e("JQT/"),R=e("MI8n"),B=e("/kV6"),z=e("bY76"),D=e("cGHE"),W=e("aokT"),x=e("gCVg"),h=e("Tcc1"),y;(function(a){a[a.Unknown=0]="Unknown",a[a.Disabled=1]="Disabled",a[a.Enabled=2]="Enabled"})(y||(y={}));var w;(function(a){a[a.KeepWhitespace=1]="KeepWhitespace",a[a.InsertAsSnippet=4]="InsertAsSnippet"})(w||(w={}));var f;(function(a){a[a.Method=0]="Method",a[a.Function=1]="Function",a[a.Constructor=2]="Constructor",a[a.Field=3]="Field",a[a.Variable=4]="Variable",a[a.Class=5]="Class",a[a.Struct=6]="Struct",a[a.Interface=7]="Interface",a[a.Module=8]="Module",a[a.Property=9]="Property",a[a.Event=10]="Event",a[a.Operator=11]="Operator",a[a.Unit=12]="Unit",a[a.Value=13]="Value",a[a.Constant=14]="Constant",a[a.Enum=15]="Enum",a[a.EnumMember=16]="EnumMember",a[a.Keyword=17]="Keyword",a[a.Text=18]="Text",a[a.Color=19]="Color",a[a.File=20]="File",a[a.Reference=21]="Reference",a[a.Customcolor=22]="Customcolor",a[a.Folder=23]="Folder",a[a.TypeParameter=24]="TypeParameter",a[a.Snippet=25]="Snippet"})(f||(f={}));var v;(function(a){a[a.Deprecated=1]="Deprecated"})(v||(v={}));var C;(function(a){a[a.Invoke=0]="Invoke",a[a.TriggerCharacter=1]="TriggerCharacter",a[a.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(C||(C={}));var g;(function(a){a[a.EXACT=0]="EXACT",a[a.ABOVE=1]="ABOVE",a[a.BELOW=2]="BELOW"})(g||(g={}));var u;(function(a){a[a.NotSet=0]="NotSet",a[a.ContentFlush=1]="ContentFlush",a[a.RecoverFromMarkers=2]="RecoverFromMarkers",a[a.Explicit=3]="Explicit",a[a.Paste=4]="Paste",a[a.Undo=5]="Undo",a[a.Redo=6]="Redo"})(u||(u={}));var s;(function(a){a[a.LF=1]="LF",a[a.CRLF=2]="CRLF"})(s||(s={}));var l;(function(a){a[a.Text=0]="Text",a[a.Read=1]="Read",a[a.Write=2]="Write"})(l||(l={}));var c;(function(a){a[a.None=0]="None",a[a.Keep=1]="Keep",a[a.Brackets=2]="Brackets",a[a.Advanced=3]="Advanced",a[a.Full=4]="Full"})(c||(c={}));var p;(function(a){a[a.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",a[a.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",a[a.accessibilitySupport=2]="accessibilitySupport",a[a.accessibilityPageSize=3]="accessibilityPageSize",a[a.ariaLabel=4]="ariaLabel",a[a.autoClosingBrackets=5]="autoClosingBrackets",a[a.autoClosingOvertype=6]="autoClosingOvertype",a[a.autoClosingQuotes=7]="autoClosingQuotes",a[a.autoIndent=8]="autoIndent",a[a.automaticLayout=9]="automaticLayout",a[a.autoSurround=10]="autoSurround",a[a.codeLens=11]="codeLens",a[a.colorDecorators=12]="colorDecorators",a[a.comments=13]="comments",a[a.contextmenu=14]="contextmenu",a[a.copyWithSyntaxHighlighting=15]="copyWithSyntaxHighlighting",a[a.cursorBlinking=16]="cursorBlinking",a[a.cursorSmoothCaretAnimation=17]="cursorSmoothCaretAnimation",a[a.cursorStyle=18]="cursorStyle",a[a.cursorSurroundingLines=19]="cursorSurroundingLines",a[a.cursorSurroundingLinesStyle=20]="cursorSurroundingLinesStyle",a[a.cursorWidth=21]="cursorWidth",a[a.disableLayerHinting=22]="disableLayerHinting",a[a.disableMonospaceOptimizations=23]="disableMonospaceOptimizations",a[a.dragAndDrop=24]="dragAndDrop",a[a.emptySelectionClipboard=25]="emptySelectionClipboard",a[a.extraEditorClassName=26]="extraEditorClassName",a[a.fastScrollSensitivity=27]="fastScrollSensitivity",a[a.find=28]="find",a[a.fixedOverflowWidgets=29]="fixedOverflowWidgets",a[a.folding=30]="folding",a[a.foldingStrategy=31]="foldingStrategy",a[a.foldingHighlight=32]="foldingHighlight",a[a.fontFamily=33]="fontFamily",a[a.fontInfo=34]="fontInfo",a[a.fontLigatures=35]="fontLigatures",a[a.fontSize=36]="fontSize",a[a.fontWeight=37]="fontWeight",a[a.formatOnPaste=38]="formatOnPaste",a[a.formatOnType=39]="formatOnType",a[a.glyphMargin=40]="glyphMargin",a[a.gotoLocation=41]="gotoLocation",a[a.hideCursorInOverviewRuler=42]="hideCursorInOverviewRuler",a[a.highlightActiveIndentGuide=43]="highlightActiveIndentGuide",a[a.hover=44]="hover",a[a.inDiffEditor=45]="inDiffEditor",a[a.letterSpacing=46]="letterSpacing",a[a.lightbulb=47]="lightbulb",a[a.lineDecorationsWidth=48]="lineDecorationsWidth",a[a.lineHeight=49]="lineHeight",a[a.lineNumbers=50]="lineNumbers",a[a.lineNumbersMinChars=51]="lineNumbersMinChars",a[a.links=52]="links",a[a.matchBrackets=53]="matchBrackets",a[a.minimap=54]="minimap",a[a.mouseStyle=55]="mouseStyle",a[a.mouseWheelScrollSensitivity=56]="mouseWheelScrollSensitivity",a[a.mouseWheelZoom=57]="mouseWheelZoom",a[a.multiCursorMergeOverlapping=58]="multiCursorMergeOverlapping",a[a.multiCursorModifier=59]="multiCursorModifier",a[a.multiCursorPaste=60]="multiCursorPaste",a[a.occurrencesHighlight=61]="occurrencesHighlight",a[a.overviewRulerBorder=62]="overviewRulerBorder",a[a.overviewRulerLanes=63]="overviewRulerLanes",a[a.parameterHints=64]="parameterHints",a[a.peekWidgetDefaultFocus=65]="peekWidgetDefaultFocus",a[a.quickSuggestions=66]="quickSuggestions",a[a.quickSuggestionsDelay=67]="quickSuggestionsDelay",a[a.readOnly=68]="readOnly",a[a.renderControlCharacters=69]="renderControlCharacters",a[a.renderIndentGuides=70]="renderIndentGuides",a[a.renderFinalNewline=71]="renderFinalNewline",a[a.renderLineHighlight=72]="renderLineHighlight",a[a.renderValidationDecorations=73]="renderValidationDecorations",a[a.renderWhitespace=74]="renderWhitespace",a[a.revealHorizontalRightPadding=75]="revealHorizontalRightPadding",a[a.roundedSelection=76]="roundedSelection",a[a.rulers=77]="rulers",a[a.scrollbar=78]="scrollbar",a[a.scrollBeyondLastColumn=79]="scrollBeyondLastColumn",a[a.scrollBeyondLastLine=80]="scrollBeyondLastLine",a[a.selectionClipboard=81]="selectionClipboard",a[a.selectionHighlight=82]="selectionHighlight",a[a.selectOnLineNumbers=83]="selectOnLineNumbers",a[a.showFoldingControls=84]="showFoldingControls",a[a.showUnused=85]="showUnused",a[a.snippetSuggestions=86]="snippetSuggestions",a[a.smoothScrolling=87]="smoothScrolling",a[a.stopRenderingLineAfter=88]="stopRenderingLineAfter",a[a.suggest=89]="suggest",a[a.suggestFontSize=90]="suggestFontSize",a[a.suggestLineHeight=91]="suggestLineHeight",a[a.suggestOnTriggerCharacters=92]="suggestOnTriggerCharacters",a[a.suggestSelection=93]="suggestSelection",a[a.tabCompletion=94]="tabCompletion",a[a.useTabStops=95]="useTabStops",a[a.wordSeparators=96]="wordSeparators",a[a.wordWrap=97]="wordWrap",a[a.wordWrapBreakAfterCharacters=98]="wordWrapBreakAfterCharacters",a[a.wordWrapBreakBeforeCharacters=99]="wordWrapBreakBeforeCharacters",a[a.wordWrapColumn=100]="wordWrapColumn",a[a.wordWrapMinified=101]="wordWrapMinified",a[a.wrappingIndent=102]="wrappingIndent",a[a.wrappingStrategy=103]="wrappingStrategy",a[a.editorClassName=104]="editorClassName",a[a.pixelRatio=105]="pixelRatio",a[a.tabFocusMode=106]="tabFocusMode",a[a.layoutInfo=107]="layoutInfo",a[a.wrappingInfo=108]="wrappingInfo"})(p||(p={}));var _;(function(a){a[a.TextDefined=0]="TextDefined",a[a.LF=1]="LF",a[a.CRLF=2]="CRLF"})(_||(_={}));var L;(function(a){a[a.LF=0]="LF",a[a.CRLF=1]="CRLF"})(L||(L={}));var I;(function(a){a[a.None=0]="None",a[a.Indent=1]="Indent",a[a.IndentOutdent=2]="IndentOutdent",a[a.Outdent=3]="Outdent"})(I||(I={}));var P;(function(a){a[a.Unknown=0]="Unknown",a[a.Backspace=1]="Backspace",a[a.Tab=2]="Tab",a[a.Enter=3]="Enter",a[a.Shift=4]="Shift",a[a.Ctrl=5]="Ctrl",a[a.Alt=6]="Alt",a[a.PauseBreak=7]="PauseBreak",a[a.CapsLock=8]="CapsLock",a[a.Escape=9]="Escape",a[a.Space=10]="Space",a[a.PageUp=11]="PageUp",a[a.PageDown=12]="PageDown",a[a.End=13]="End",a[a.Home=14]="Home",a[a.LeftArrow=15]="LeftArrow",a[a.UpArrow=16]="UpArrow",a[a.RightArrow=17]="RightArrow",a[a.DownArrow=18]="DownArrow",a[a.Insert=19]="Insert",a[a.Delete=20]="Delete",a[a.KEY_0=21]="KEY_0",a[a.KEY_1=22]="KEY_1",a[a.KEY_2=23]="KEY_2",a[a.KEY_3=24]="KEY_3",a[a.KEY_4=25]="KEY_4",a[a.KEY_5=26]="KEY_5",a[a.KEY_6=27]="KEY_6",a[a.KEY_7=28]="KEY_7",a[a.KEY_8=29]="KEY_8",a[a.KEY_9=30]="KEY_9",a[a.KEY_A=31]="KEY_A",a[a.KEY_B=32]="KEY_B",a[a.KEY_C=33]="KEY_C",a[a.KEY_D=34]="KEY_D",a[a.KEY_E=35]="KEY_E",a[a.KEY_F=36]="KEY_F",a[a.KEY_G=37]="KEY_G",a[a.KEY_H=38]="KEY_H",a[a.KEY_I=39]="KEY_I",a[a.KEY_J=40]="KEY_J",a[a.KEY_K=41]="KEY_K",a[a.KEY_L=42]="KEY_L",a[a.KEY_M=43]="KEY_M",a[a.KEY_N=44]="KEY_N",a[a.KEY_O=45]="KEY_O",a[a.KEY_P=46]="KEY_P",a[a.KEY_Q=47]="KEY_Q",a[a.KEY_R=48]="KEY_R",a[a.KEY_S=49]="KEY_S",a[a.KEY_T=50]="KEY_T",a[a.KEY_U=51]="KEY_U",a[a.KEY_V=52]="KEY_V",a[a.KEY_W=53]="KEY_W",a[a.KEY_X=54]="KEY_X",a[a.KEY_Y=55]="KEY_Y",a[a.KEY_Z=56]="KEY_Z",a[a.Meta=57]="Meta",a[a.ContextMenu=58]="ContextMenu",a[a.F1=59]="F1",a[a.F2=60]="F2",a[a.F3=61]="F3",a[a.F4=62]="F4",a[a.F5=63]="F5",a[a.F6=64]="F6",a[a.F7=65]="F7",a[a.F8=66]="F8",a[a.F9=67]="F9",a[a.F10=68]="F10",a[a.F11=69]="F11",a[a.F12=70]="F12",a[a.F13=71]="F13",a[a.F14=72]="F14",a[a.F15=73]="F15",a[a.F16=74]="F16",a[a.F17=75]="F17",a[a.F18=76]="F18",a[a.F19=77]="F19",a[a.NumLock=78]="NumLock",a[a.ScrollLock=79]="ScrollLock",a[a.US_SEMICOLON=80]="US_SEMICOLON",a[a.US_EQUAL=81]="US_EQUAL",a[a.US_COMMA=82]="US_COMMA",a[a.US_MINUS=83]="US_MINUS",a[a.US_DOT=84]="US_DOT",a[a.US_SLASH=85]="US_SLASH",a[a.US_BACKTICK=86]="US_BACKTICK",a[a.US_OPEN_SQUARE_BRACKET=87]="US_OPEN_SQUARE_BRACKET",a[a.US_BACKSLASH=88]="US_BACKSLASH",a[a.US_CLOSE_SQUARE_BRACKET=89]="US_CLOSE_SQUARE_BRACKET",a[a.US_QUOTE=90]="US_QUOTE",a[a.OEM_8=91]="OEM_8",a[a.OEM_102=92]="OEM_102",a[a.NUMPAD_0=93]="NUMPAD_0",a[a.NUMPAD_1=94]="NUMPAD_1",a[a.NUMPAD_2=95]="NUMPAD_2",a[a.NUMPAD_3=96]="NUMPAD_3",a[a.NUMPAD_4=97]="NUMPAD_4",a[a.NUMPAD_5=98]="NUMPAD_5",a[a.NUMPAD_6=99]="NUMPAD_6",a[a.NUMPAD_7=100]="NUMPAD_7",a[a.NUMPAD_8=101]="NUMPAD_8",a[a.NUMPAD_9=102]="NUMPAD_9",a[a.NUMPAD_MULTIPLY=103]="NUMPAD_MULTIPLY",a[a.NUMPAD_ADD=104]="NUMPAD_ADD",a[a.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",a[a.NUMPAD_SUBTRACT=106]="NUMPAD_SUBTRACT",a[a.NUMPAD_DECIMAL=107]="NUMPAD_DECIMAL",a[a.NUMPAD_DIVIDE=108]="NUMPAD_DIVIDE",a[a.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",a[a.ABNT_C1=110]="ABNT_C1",a[a.ABNT_C2=111]="ABNT_C2",a[a.MAX_VALUE=112]="MAX_VALUE"})(P||(P={}));var A;(function(a){a[a.Hint=1]="Hint",a[a.Info=2]="Info",a[a.Warning=4]="Warning",a[a.Error=8]="Error"})(A||(A={}));var Q;(function(a){a[a.Unnecessary=1]="Unnecessary",a[a.Deprecated=2]="Deprecated"})(Q||(Q={}));var K;(function(a){a[a.Inline=1]="Inline",a[a.Gutter=2]="Gutter"})(K||(K={}));var H;(function(a){a[a.UNKNOWN=0]="UNKNOWN",a[a.TEXTAREA=1]="TEXTAREA",a[a.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",a[a.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",a[a.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",a[a.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",a[a.CONTENT_TEXT=6]="CONTENT_TEXT",a[a.CONTENT_EMPTY=7]="CONTENT_EMPTY",a[a.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",a[a.CONTENT_WIDGET=9]="CONTENT_WIDGET",a[a.OVERVIEW_RULER=10]="OVERVIEW_RULER",a[a.SCROLLBAR=11]="SCROLLBAR",a[a.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",a[a.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(H||(H={}));var V;(function(a){a[a.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",a[a.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",a[a.TOP_CENTER=2]="TOP_CENTER"})(V||(V={}));var de;(function(a){a[a.Left=1]="Left",a[a.Center=2]="Center",a[a.Right=4]="Right",a[a.Full=7]="Full"})(de||(de={}));var _e;(function(a){a[a.Off=0]="Off",a[a.On=1]="On",a[a.Relative=2]="Relative",a[a.Interval=3]="Interval",a[a.Custom=4]="Custom"})(_e||(_e={}));var Se;(function(a){a[a.None=0]="None",a[a.Text=1]="Text",a[a.Blocks=2]="Blocks"})(Se||(Se={}));var Ie;(function(a){a[a.Smooth=0]="Smooth",a[a.Immediate=1]="Immediate"})(Ie||(Ie={}));var Pe;(function(a){a[a.Auto=1]="Auto",a[a.Hidden=2]="Hidden",a[a.Visible=3]="Visible"})(Pe||(Pe={}));var Ve;(function(a){a[a.LTR=0]="LTR",a[a.RTL=1]="RTL"})(Ve||(Ve={}));var ke;(function(a){a[a.Invoke=1]="Invoke",a[a.TriggerCharacter=2]="TriggerCharacter",a[a.ContentChange=3]="ContentChange"})(ke||(ke={}));var se;(function(a){a[a.File=0]="File",a[a.Module=1]="Module",a[a.Namespace=2]="Namespace",a[a.Package=3]="Package",a[a.Class=4]="Class",a[a.Method=5]="Method",a[a.Property=6]="Property",a[a.Field=7]="Field",a[a.Constructor=8]="Constructor",a[a.Enum=9]="Enum",a[a.Interface=10]="Interface",a[a.Function=11]="Function",a[a.Variable=12]="Variable",a[a.Constant=13]="Constant",a[a.String=14]="String",a[a.Number=15]="Number",a[a.Boolean=16]="Boolean",a[a.Array=17]="Array",a[a.Object=18]="Object",a[a.Key=19]="Key",a[a.Null=20]="Null",a[a.EnumMember=21]="EnumMember",a[a.Struct=22]="Struct",a[a.Event=23]="Event",a[a.Operator=24]="Operator",a[a.TypeParameter=25]="TypeParameter"})(se||(se={}));var ee;(function(a){a[a.Deprecated=1]="Deprecated"})(ee||(ee={}));var ie;(function(a){a[a.Hidden=0]="Hidden",a[a.Blink=1]="Blink",a[a.Smooth=2]="Smooth",a[a.Phase=3]="Phase",a[a.Expand=4]="Expand",a[a.Solid=5]="Solid"})(ie||(ie={}));var q;(function(a){a[a.Line=1]="Line",a[a.Block=2]="Block",a[a.Underline=3]="Underline",a[a.LineThin=4]="LineThin",a[a.BlockOutline=5]="BlockOutline",a[a.UnderlineThin=6]="UnderlineThin"})(q||(q={}));var ce;(function(a){a[a.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",a[a.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",a[a.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",a[a.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(ce||(ce={}));var Z;(function(a){a[a.None=0]="None",a[a.Same=1]="Same",a[a.Indent=2]="Indent",a[a.DeepIndent=3]="DeepIndent"})(Z||(Z={}));var ye=function(){function a(){}return a.chord=function(r,n){return Object(B.a)(r,n)},a.CtrlCmd=2048,a.Shift=1024,a.Alt=512,a.WinCtrl=256,a}();function je(){return{editor:void 0,languages:void 0,CancellationTokenSource:$.b,Emitter:R.a,KeyCode:P,KeyMod:ye,Position:D.a,Range:W.a,Selection:x.a,SelectionDirection:Ve,MarkerSeverity:A,MarkerTag:Q,Uri:z.a,Token:h.a}}var Ge=e("siPX"),ue=e("Vxe3"),ve=e("EffR"),Ee=e("24hK"),xe=e("Q4rV"),Ce=e("tYmi"),he=e("gslv"),J=e("nnTU"),b=e("W9cx"),F;(function(a){a[a.API=0]="API",a[a.USER=1]="USER"})(F||(F={}));var re=function(a,r,n,d){var S=arguments.length,k=S<3?r:d===null?d=Object.getOwnPropertyDescriptor(r,n):d,we;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(a,r,n,d);else for(var We=a.length-1;We>=0;We--)(we=a[We])&&(k=(S<3?we(k):S>3?we(r,n,k):we(r,n))||k);return S>3&&k&&Object.defineProperty(r,n,k),k},ne=function(a,r){return function(n,d){r(n,d,a)}},fe=function(a,r,n,d){function S(k){return k instanceof n?k:new n(function(we){we(k)})}return new(n||(n=Promise))(function(k,we){function We(yt){try{Qe(d.next(yt))}catch(It){we(It)}}function Xe(yt){try{Qe(d.throw(yt))}catch(It){we(It)}}function Qe(yt){yt.done?k(yt.value):S(yt.value).then(We,Xe)}Qe((d=d.apply(a,r||[])).next())})},Oe=function(a,r){var n={label:0,sent:function(){if(k[0]&1)throw k[1];return k[1]},trys:[],ops:[]},d,S,k,we;return we={next:We(0),throw:We(1),return:We(2)},typeof Symbol=="function"&&(we[Symbol.iterator]=function(){return this}),we;function We(Qe){return function(yt){return Xe([Qe,yt])}}function Xe(Qe){if(d)throw new TypeError("Generator is already executing.");for(;n;)try{if(d=1,S&&(k=Qe[0]&2?S.return:Qe[0]?S.throw||((k=S.return)&&k.call(S),0):S.next)&&!(k=k.call(S,Qe[1])).done)return k;(S=0,k)&&(Qe=[Qe[0]&2,k.value]);switch(Qe[0]){case 0:case 1:k=Qe;break;case 4:return n.label++,{value:Qe[1],done:!1};case 5:n.label++,S=Qe[1],Qe=[0];continue;case 7:Qe=n.ops.pop(),n.trys.pop();continue;default:if(!(k=n.trys,k=k.length>0&&k[k.length-1])&&(Qe[0]===6||Qe[0]===2)){n=0;continue}if(Qe[0]===3&&(!k||Qe[1]>k[0]&&Qe[1] =this.ranges.length&&(this.nextIdx=0)):(this.nextIdx-=1,this.nextIdx<0&&(this.nextIdx=this.ranges.length-1));var S=this.ranges[this.nextIdx];this.ignoreSelectionChange=!0;try{var k=S.range.getStartPosition();this._editor.setPosition(k),this._editor.revealPositionInCenter(k,d)}finally{this.ignoreSelectionChange=!1}},r.prototype.canNavigate=function(){return this.ranges&&this.ranges.length>0},r.prototype.next=function(n){n===void 0&&(n=0),this._move(!0,n)},r.prototype.previous=function(n){n===void 0&&(n=0),this._move(!1,n)},r.prototype.dispose=function(){a.prototype.dispose.call(this),this.ranges=[],this.disposed=!0},r}(Rt.a),so=e("+3Gp"),jt=e("iuje"),pt=e("M1Kb"),gt=e("twdY"),Tt=e("i/Ef"),it=e("pAvP"),et=e("t49l"),ut=e("X+cX"),Ct=e("/cxE"),ht=e("MNsG"),Et=e("746U"),Yt=function(){var a=function(r,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,S){d.__proto__=S}||function(d,S){for(var k in S)S.hasOwnProperty(k)&&(d[k]=S[k])},a(r,n)};return function(r,n){a(r,n);function d(){this.constructor=r}r.prototype=n===null?Object.create(n):(d.prototype=n.prototype,new d)}}(),Nt="$initialize",bt=!1;function $e(a){if(!ht.g)return;bt||(bt=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/Microsoft/monaco-editor#faq")),console.warn(a.message)}var Ye=function(){function a(r){this._workerId=-1,this._handler=r,this._lastSentReq=0,this._pendingReplies=Object.create(null)}return a.prototype.setWorkerId=function(r){this._workerId=r},a.prototype.sendMessage=function(r,n){var d=this,S=String(++this._lastSentReq);return new Promise(function(k,we){d._pendingReplies[S]={resolve:k,reject:we},d._send({vsWorker:d._workerId,req:S,method:r,args:n})})},a.prototype.handleMessage=function(r){if(!r||!r.vsWorker)return;if(this._workerId!==-1&&r.vsWorker!==this._workerId)return;this._handleMessage(r)},a.prototype._handleMessage=function(r){var n=this;if(r.seq){var d=r;if(!this._pendingReplies[d.seq]){console.warn("Got reply to unknown seq");return}var S=this._pendingReplies[d.seq];if(delete this._pendingReplies[d.seq],d.err){var k=d.err;d.err.$isError&&(k=new Error,k.name=d.err.name,k.message=d.err.message,k.stack=d.err.stack),S.reject(k);return}S.resolve(d.res);return}var we=r,We=we.req,Xe=this._handler.handleMessage(we.method,we.args);Xe.then(function(Qe){n._send({vsWorker:n._workerId,seq:We,res:Qe,err:void 0})},function(Qe){Qe.detail instanceof Error&&(Qe.detail=Object(Ct.g)(Qe.detail)),n._send({vsWorker:n._workerId,seq:We,res:void 0,err:Object(Ct.g)(Qe)})})},a.prototype._send=function(r){var n=[];if(r.req)for(var d=r,S=0;S 0&&n.originalLength<20&&n.modifiedLength>0&&n.modifiedLength<20&&k()){var Pt=d.createCharSequence(r,n.originalStart,n.originalStart+n.originalLength-1),ro=S.createCharSequence(r,n.modifiedStart,n.modifiedStart+n.modifiedLength-1),eo=ho(Pt,ro,k,!0).changes;We&&(eo=jo(eo)),Wt=[];for(var Gt=0,Jt=eo.length;Gt 1&&Jt>1;){var co=ro.charCodeAt(Gt-2),So=eo.charCodeAt(Jt-2);if(co!==So)break;Gt--,Jt--}(Gt>1||Jt>1)&&this._pushTrimWhitespaceCharChange(We,Xe+1,1,Gt,Qe+1,1,Jt)}{for(var xo=Fo(ro,1),Po=Fo(eo,1),Go=ro.length+1,Xo=eo.length+1;xo n&&(n=Xe),We>d&&(d=We),Qe>d&&(d=Qe)}n++,d++;for(var yt=new pn(d,n,0),S=0,k=r.length;S =this._maxCharCode?0:this._states.get(r,n)},a}(),on=null;function dn(){return on===null&&(on=new rn([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),on}var Uo=null;function Bo(){if(Uo===null){Uo=new Cn.a(0);for(var a=` <>'"\u3001\u3002\uFF61\uFF64\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF01\uFF20\uFF03\uFF04\uFF05\uFF06\uFF0A\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF08\uFF3B\uFF5B\uFF62\uFF63\uFF5D\uFF3D\uFF09\u3015\u3011\u300F\u300D\u300B\u3009\u201D\u2019\uFF40\uFF5E\u2026`,r=0;r S);if(S>0){var Qe=n.charCodeAt(S-1),yt=n.charCodeAt(we);(Qe===40&&yt===41||Qe===91&&yt===93||Qe===123&&yt===125)&&we--}return{range:{startLineNumber:d,startColumn:S+1,endLineNumber:d,endColumn:we+2},url:n.substring(S,we+1)}},a.computeLinks=function(r,n){n===void 0&&(n=dn());for(var d=Bo(),S=[],k=1,we=r.getLineCount();k<=we;k++){for(var We=r.getLineContent(k),Xe=We.length,Qe=0,yt=0,It=0,Wt=1,Pt=!1,ro=!1,eo=!1;Qe =0?(S+=d?1:-1,S<0?S=r.length-1:S%=r.length,r[S]):null},a.INSTANCE=new a,a}(),Mt=function(){var a=function(r,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,S){d.__proto__=S}||function(d,S){for(var k in S)S.hasOwnProperty(k)&&(d[k]=S[k])},a(r,n)};return function(r,n){a(r,n);function d(){this.constructor=r}r.prototype=n===null?Object.create(n):(d.prototype=n.prototype,new d)}}(),be=function(a,r,n,d){function S(k){return k instanceof n?k:new n(function(we){we(k)})}return new(n||(n=Promise))(function(k,we){function We(yt){try{Qe(d.next(yt))}catch(It){we(It)}}function Xe(yt){try{Qe(d.throw(yt))}catch(It){we(It)}}function Qe(yt){yt.done?k(yt.value):S(yt.value).then(We,Xe)}Qe((d=d.apply(a,r||[])).next())})},M=function(a,r){var n={label:0,sent:function(){if(k[0]&1)throw k[1];return k[1]},trys:[],ops:[]},d,S,k,we;return we={next:We(0),throw:We(1),return:We(2)},typeof Symbol=="function"&&(we[Symbol.iterator]=function(){return this}),we;function We(Qe){return function(yt){return Xe([Qe,yt])}}function Xe(Qe){if(d)throw new TypeError("Generator is already executing.");for(;n;)try{if(d=1,S&&(k=Qe[0]&2?S.return:Qe[0]?S.throw||((k=S.return)&&k.call(S),0):S.next)&&!(k=k.call(S,Qe[1])).done)return k;(S=0,k)&&(Qe=[Qe[0]&2,k.value]);switch(Qe[0]){case 0:case 1:k=Qe;break;case 4:return n.label++,{value:Qe[1],done:!1};case 5:n.label++,S=Qe[1],Qe=[0];continue;case 7:Qe=n.ops.pop(),n.trys.pop();continue;default:if(!(k=n.trys,k=k.length>0&&k[k.length-1])&&(Qe[0]===6||Qe[0]===2)){n=0;continue}if(Qe[0]===3&&(!k||Qe[1]>k[0]&&Qe[1] =d._lines.length?Qt.c:(we=d._lines[k],Xe=d._wordenize(we,n),We=0,k+=1,Qe())};return{next:Qe}},r.prototype.getLineWords=function(n,d){for(var S=this._lines[n-1],k=this._wordenize(S,d),we=[],We=0,Xe=k;We this._lines.length)d=this._lines.length,S=this._lines[d-1].length+1,k=!0;else{var we=this._lines[d-1].length+1;S<1?(S=1,k=!0):S>we&&(S=we,k=!0)}return k?{lineNumber:d,column:S}:n},r}(un),X=function(){function a(r,n){this._host=r,this._models=Object.create(null),this._foreignModuleFactory=n,this._foreignModule=null}return a.prototype.dispose=function(){this._models=Object.create(null)},a.prototype._getModel=function(r){return this._models[r]},a.prototype._getModels=function(){var r=this,n=[];return Object.keys(this._models).forEach(function(d){return n.push(r._models[d])}),n},a.prototype.acceptNewModel=function(r){this._models[r.url]=new j(z.a.parse(r.url),r.lines,r.EOL,r.versionId)},a.prototype.acceptModelChanged=function(r,n){if(!this._models[r])return;var d=this._models[r];d.onEvents(n)},a.prototype.acceptRemovedModel=function(r){if(!this._models[r])return;delete this._models[r]},a.prototype.computeDiff=function(r,n,d,S){return be(this,void 0,void 0,function(){var k,we,We,Xe,Qe,yt,It;return M(this,function(Wt){return k=this._getModel(r),we=this._getModel(n),!k||!we?[2,null]:(We=k.getLinesContent(),Xe=we.getLinesContent(),Qe=new Wo(We,Xe,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:d,shouldMakePrettyDiff:!0,maxComputationTime:S}),yt=Qe.computeDiff(),It=yt.changes.length>0?!1:this._modelsAreIdentical(k,we),[2,{quitEarly:yt.quitEarly,identical:It,changes:yt.changes}])})})},a.prototype._modelsAreIdentical=function(r,n){var d=r.getLineCount(),S=n.getLineCount();if(d!==S)return!1;for(var k=1;k<=d;k++){var we=r.getLineContent(k),We=n.getLineContent(k);if(we!==We)return!1}return!0},a.prototype.computeMoreMinimalEdits=function(r,n){return be(this,void 0,void 0,function(){var d,S,k,we,We,Xe,Qe,yt,It,Wt,Pt,ro,eo,Gt,Jt,co,So,xo;return M(this,function(Po){if(d=this._getModel(r),!d)return[2,n];for(S=[],k=void 0,n=Object(dt.r)(n,function(Go,Xo){if(Go.range&&Xo.range)return W.a.compareRangesUsingStarts(Go.range,Xo.range);var an=Go.range?0:1,yn=Xo.range?0:1;return an-yn}),we=0,We=n;we a._diffLimit){S.push({range:Qe,text:yt});continue}for(Pt=Object(Ot.b)(Wt,yt,!1),ro=d.offsetAt(W.a.lift(Qe).getStartPosition()),eo=0,Gt=Pt;eo =0;We--)(we=a[We])&&(k=(S<3?we(k):S>3?we(r,n,k):we(r,n))||k);return S>3&&k&&Object.defineProperty(r,n,k),k},Ut=function(a,r){return function(n,d){r(n,d,a)}},Vt=function(a,r,n,d){function S(k){return k instanceof n?k:new n(function(we){we(k)})}return new(n||(n=Promise))(function(k,we){function We(yt){try{Qe(d.next(yt))}catch(It){we(It)}}function Xe(yt){try{Qe(d.throw(yt))}catch(It){we(It)}}function Qe(yt){yt.done?k(yt.value):S(yt.value).then(We,Xe)}Qe((d=d.apply(a,r||[])).next())})},oo=function(a,r){var n={label:0,sent:function(){if(k[0]&1)throw k[1];return k[1]},trys:[],ops:[]},d,S,k,we;return we={next:We(0),throw:We(1),return:We(2)},typeof Symbol=="function"&&(we[Symbol.iterator]=function(){return this}),we;function We(Qe){return function(yt){return Xe([Qe,yt])}}function Xe(Qe){if(d)throw new TypeError("Generator is already executing.");for(;n;)try{if(d=1,S&&(k=Qe[0]&2?S.return:Qe[0]?S.throw||((k=S.return)&&k.call(S),0):S.next)&&!(k=k.call(S,Qe[1])).done)return k;(S=0,k)&&(Qe=[Qe[0]&2,k.value]);switch(Qe[0]){case 0:case 1:k=Qe;break;case 4:return n.label++,{value:Qe[1],done:!1};case 5:n.label++,S=Qe[1],Qe=[0];continue;case 7:Qe=n.ops.pop(),n.trys.pop();continue;default:if(!(k=n.trys,k=k.length>0&&k[k.length-1])&&(Qe[0]===6||Qe[0]===2)){n=0;continue}if(Qe[0]===3&&(!k||Qe[1]>k[0]&&Qe[1] mo&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)},r.prototype.withWorker=function(){return this._lastWorkerUsedTime=new Date().getTime(),this._editorWorkerClient||(this._editorWorkerClient=new me(this._modelService,!1,"editorWorkerService")),Promise.resolve(this._editorWorkerClient)},r}(Rt.a),xt=function(a){At(r,a);function r(n,d,S){var k=a.call(this)||this;if(k._syncedModels=Object.create(null),k._syncedModelsLastUsedTime=Object.create(null),k._proxy=n,k._modelService=d,!S){var we=new ut.c;we.cancelAndSet(function(){return k._checkStopModelSync()},Math.round(Zt/2)),k._register(we)}return k}return r.prototype.dispose=function(){for(var n in this._syncedModels)Object(Rt.f)(this._syncedModels[n]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),a.prototype.dispose.call(this)},r.prototype.ensureSyncedResources=function(n){for(var d=0,S=n;d Zt&&d.push(S)}for(var we=0,We=d;we '"_]/g,"-")}function Qo(a,r){console.log(a.languageId+": "+r)}function Oo(a,r){return new Error(a.languageId+": "+r)}function Lo(a,r,n,d,S){var k=/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,we=null;return r.replace(k,function(We,Xe,Qe,yt,It,Wt,Pt,ro,eo){return To(Qe)?To(yt)?!To(It)&&It 0;){var d=a.tokenizer[n];if(d)return d;var S=n.lastIndexOf(".");S<0?n=null:n=n.substr(0,S)}return null}function hn(a,r){for(var n=r;n&&n.length>0;){var d=a.stateNames[n];if(d)return!0;var S=n.lastIndexOf(".");S<0?n=null:n=n.substr(0,S)}return!1}var En=5,qo=function(){function a(r){this._maxCacheDepth=r,this._entries=Object.create(null)}return a.create=function(r,n){return this._INSTANCE.create(r,n)},a.prototype.create=function(r,n){if(r!==null&&r.depth>=this._maxCacheDepth)return new xn(r,n);var d=xn.getStackElementId(r);d.length>0&&(d+="|"),d+=n;var S=this._entries[d];return S||(S=new xn(r,n),this._entries[d]=S,S)},a._INSTANCE=new a(En),a}(),xn=function(){function a(r,n){this.parent=r,this.state=n,this.depth=(this.parent?this.parent.depth:0)+1}return a.getStackElementId=function(r){for(var n="";r!==null;)n.length>0&&(n+="|"),n+=r.state,r=r.parent;return n},a._equals=function(r,n){for(;r!==null&&n!==null;){if(r===n)return!0;if(r.state!==n.state)return!1;r=r.parent,n=n.parent}return r===null&&n===null},a.prototype.equals=function(r){return a._equals(this,r)},a.prototype.push=function(r){return qo.create(this,r)},a.prototype.pop=function(){return this.parent},a.prototype.popall=function(){for(var r=this;r.parent;)r=r.parent;return r},a.prototype.switchTo=function(r){return qo.create(this.parent,r)},a}(),Un=function(){function a(r,n){this.modeId=r,this.state=n}return a.prototype.equals=function(r){return this.modeId===r.modeId&&this.state.equals(r.state)},a.prototype.clone=function(){var r=this.state.clone();return r===this.state?this:new a(this.modeId,this.state)},a}(),An=function(){function a(r){this._maxCacheDepth=r,this._entries=Object.create(null)}return a.create=function(r,n){return this._INSTANCE.create(r,n)},a.prototype.create=function(r,n){if(n!==null)return new si(r,n);if(r!==null&&r.depth>=this._maxCacheDepth)return new si(r,n);var d=xn.getStackElementId(r),S=this._entries[d];return S||(S=new si(r,null),this._entries[d]=S,S)},a._INSTANCE=new a(En),a}(),si=function(){function a(r,n){this.stack=r,this.embeddedModeData=n}return a.prototype.clone=function(){var r=this.embeddedModeData?this.embeddedModeData.clone():null;return r===this.embeddedModeData?this:An.create(this.stack,this.embeddedModeData)},a.prototype.equals=function(r){return r instanceof a&&this.stack.equals(r.stack)?this.embeddedModeData===null&&r.embeddedModeData===null?!0:this.embeddedModeData===null||r.embeddedModeData===null?!1:this.embeddedModeData.equals(r.embeddedModeData):!1},a}(),ai=function(){function a(){this._tokens=[],this._language=null,this._lastTokenType=null,this._lastTokenLanguage=null}return a.prototype.enterMode=function(r,n){this._language=n},a.prototype.emit=function(r,n){if(this._lastTokenType===n&&this._lastTokenLanguage===this._language)return;this._lastTokenType=n,this._lastTokenLanguage=this._language,this._tokens.push(new h.a(r,n,this._language))},a.prototype.nestedModeTokenize=function(r,n,d){var S=n.modeId,k=n.state,we=gt.B.get(S);if(!we)return this.enterMode(d,S),this.emit(d,""),k;var We=we.tokenize(r,k,d);return this._tokens=this._tokens.concat(We.tokens),this._lastTokenType=null,this._lastTokenLanguage=null,this._language=null,We.endState},a.prototype.finalize=function(r){return new h.b(this._tokens,r)},a}(),Pn=function(){function a(r,n){this._modeService=r,this._theme=n,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}return a.prototype.enterMode=function(r,n){this._currentLanguageId=this._modeService.getLanguageIdentifier(n).id},a.prototype.emit=function(r,n){var d=this._theme.match(this._currentLanguageId,n);if(this._lastTokenMetadata===d)return;this._lastTokenMetadata=d,this._tokens.push(r),this._tokens.push(d)},a._merge=function(r,n,d){var S=r!==null?r.length:0,k=n.length,we=d!==null?d.length:0;if(S===0&&k===0&&we===0)return new Uint32Array(0);if(S===0&&k===0)return d;if(k===0&&we===0)return r;var We=new Uint32Array(S+k+we);r!==null&&We.set(r);for(var Xe=0;Xe 0&&S.nestedModeTokenize(We,n.embeddedModeData,d);var Xe=r.substring(k);return this._myTokenize(Xe,n,d+k,S)},a.prototype._safeRuleName=function(r){return r?r.name:"(unknown)"},a.prototype._myTokenize=function(r,n,d,S){S.enterMode(d,this._modeId);for(var k=r.length,we=n.embeddedModeData,We=n.stack,Xe=0,Qe=null,yt=!0;yt||Xe =k)break;yt=!1;var Po=this._lexer.tokenizer[ro];if(!Po&&(Po=vn(this._lexer,ro),!Po))throw Oo(this._lexer,"tokenizer state is not defined: "+ro);for(var Go=r.substr(Xe),Xo=0,an=Po;Xo =this._lexer.maxStack)throw Oo(this._lexer,"maximum tokenizer stack size reached: ["+We.state+","+We.parent.state+",...]");We=We.push(ro)}else if(Jt.next==="@pop"){if(We.depth<=1)throw Oo(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(co));We=We.pop()}else if(Jt.next==="@popall")We=We.popall();else{var Yo=Lo(this._lexer,Jt.next,Gt,eo,ro);if(Yo[0]==="@"&&(Yo=Yo.substr(1)),vn(this._lexer,Yo))We=We.push(Yo);else throw Oo(this._lexer,"trying to set a next state '"+Yo+"' that is undefined in rule: "+this._safeRuleName(co))}}Jt.log&&typeof Jt.log=="string"&&Qo(this._lexer,this._lexer.languageId+": "+Lo(this._lexer,Jt.log,Gt,eo,ro))}if(Zo===null)throw Oo(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(co));if(Array.isArray(Zo)){if(Qe&&Qe.groups.length>0)throw Oo(this._lexer,"groups cannot be nested: "+this._safeRuleName(co));if(eo.length!==Zo.length+1)throw Oo(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(co));for(var mn=0,en=1;en =0&&ro()})})},a.colorizeLine=function(r,n,d,S,k){k===void 0&&(k=4);var we=Xt.d.isBasicASCII(r,n),We=Xt.d.containsRTL(r,we,d),Xe=Object(zt.e)(new zt.c(!1,!0,r,!1,we,We,0,S,[],k,0,0,0,-1,"none",!1,!1,null));return Xe.html},a.colorizeModelLine=function(r,n,d){d===void 0&&(d=4);var S=r.getLineContent(n);r.forceTokenization(n);var k=r.getLineTokens(n),we=k.inflate();return this.colorizeLine(S,r.mightContainNonBasicASCII(),r.mightContainRTL(),we,d)},a}();function Ki(a,r,n){return new Promise(function(d,S){var k=function(){var we=Gi(a,r,n);if(n instanceof bi){var We=n.getLoadStatus();if(We.loaded===!1){We.promise.then(k,S);return}}d(we)};k()})}function Zr(a,r){var n=[],d=(0<<11|1<<14|2<<23)>>>0,S=new Uint32Array(2);S[0]=0,S[1]=d;for(var k=0,we=a.length;k ")}return n.join("")}function Gi(a,r,n){for(var d=[],S=n.getInitialState(),k=0,we=a.length;k "),S=Xe.endState}return d.join("")}var $o=e("uDWl"),li=e("S3by"),Dn=e("sFUC"),yr=e("iDAx"),Qr=e("0/Sa"),On=e("+7oY"),Qn=e("QDVR"),Xi=e("CRAX"),br=function(){var a=function(r,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,S){d.__proto__=S}||function(d,S){for(var k in S)S.hasOwnProperty(k)&&(d[k]=S[k])},a(r,n)};return function(r,n){a(r,n);function d(){this.constructor=r}r.prototype=n===null?Object.create(n):(d.prototype=n.prototype,new d)}}(),Yi=function(){for(var a=0,r=0,n=arguments.length;r 5e3&&S._leaveChordMode()},500)},r.prototype._leaveChordMode=function(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChord=null},r.prototype._dispatch=function(n,d){return this._doDispatch(this.resolveKeyboardEvent(n),d)},r.prototype._doDispatch=function(n,d){var S=this,k=!1;if(n.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),!1;var we=n.getDispatchParts()[0];if(we===null)return k;var We=this._contextKeyService.getContext(d),Xe=this._currentChord?this._currentChord.keypress:null,Qe=n.getLabel(),yt=this._getResolver().resolve(We,Xe,we);return yt&&yt.enterChord?(k=!0,this._enterChordMode(we,Qe),k):(this._currentChord&&((!yt||!yt.commandId)&&(this._notificationService.status(wn.a("missing.chord","The key combination ({0}, {1}) is not a command.",this._currentChord.label,Qe),{hideAfter:10*1e3}),k=!0)),this._leaveChordMode(),yt&&yt.commandId&&(yt.bubble||(k=!0),typeof yt.commandArgs=="undefined"?this._commandService.executeCommand(yt.commandId).then(void 0,function(It){return S._notificationService.warn(It)}):this._commandService.executeCommand(yt.commandId,yt.commandArgs).then(void 0,function(It){return S._notificationService.warn(It)}),this._telemetryService.publicLog2("workbenchActionExecuted",{id:yt.commandId,from:"keybinding"})),k)},r.prototype.mightProducePrintableCharacter=function(n){return n.ctrlKey||n.metaKey?!1:n.keyCode>=31&&n.keyCode<=56||n.keyCode>=21&&n.keyCode<=30},r}(Rt.a),_n=e("T8No"),Qi=function(){function a(r,n){this._defaultKeybindings=r,this._defaultBoundCommands=new Map;for(var d=0,S=r.length;d =0;It--)this._isTargetedForRemoval(r[It],Xe,Qe,We,yt)&&r.splice(It,1)}return r.concat(d)},a.prototype._addKeyPress=function(r,n){var d=this._map.get(r);if(typeof d=="undefined"){this._map.set(r,[n]),this._addToLookupMap(n);return}for(var S=d.length-1;S>=0;S--){var k=d[S];if(k.command===n.command)continue;var we=k.keypressParts.length>1,We=n.keypressParts.length>1;if(we&&We&&k.keypressParts[1]!==n.keypressParts[1])continue;a.whenIsEntirelyIncluded(k.when,n.when)&&this._removeFromLookupMap(k)}d.push(n),this._addToLookupMap(n)},a.prototype._addToLookupMap=function(r){if(!r.command)return;var n=this._lookupMap.get(r.command);typeof n=="undefined"?(n=[r],this._lookupMap.set(r.command,n)):n.push(r)},a.prototype._removeFromLookupMap=function(r){if(!r.command)return;var n=this._lookupMap.get(r.command);if(typeof n=="undefined")return;for(var d=0,S=n.length;d1&&Qe.keypressParts[1]!==null?{enterChord:!0,commandId:null,commandArgs:null,bubble:!1}:{enterChord:!1,commandId:Qe.command,commandArgs:Qe.commandArgs,bubble:Qe.bubble}:null},a.prototype._findCommand=function(r,n){for(var d=n.length-1;d>=0;d--){var S=n[d];if(!a.contextMatchesRules(r,S.when))continue;return S}return null},a.contextMatchesRules=function(r,n){return n?n.evaluate(r):!0},a}(),qr=e("nrhi"),$i=function(){function a(r,n,d,S,k){this.resolvedKeybinding=r,this.keypressParts=r?Er(r.getDispatchParts()):[],this.bubble=n?n.charCodeAt(0)===94:!1,this.command=this.bubble?n.substr(1):n,this.commandArgs=d,this.when=S,this.isDefault=k}return a}();function Er(a){for(var r=[],n=0,d=a.length;n1},r.prototype.getParts=function(){var n=this;return this._parts.map(function(d){return n._getPart(d)})},r.prototype._getPart=function(n){return new B.d(n.ctrlKey,n.shiftKey,n.altKey,n.metaKey,this._getLabel(n),this._getAriaLabel(n))},r.prototype.getDispatchParts=function(){var n=this;return this._parts.map(function(d){return n._getDispatchPart(d)})},r}(B.c),ts=function(){var a=function(r,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,S){d.__proto__=S}||function(d,S){for(var k in S)S.hasOwnProperty(k)&&(d[k]=S[k])},a(r,n)};return function(r,n){a(r,n);function d(){this.constructor=r}r.prototype=n===null?Object.create(n):(d.prototype=n.prototype,new d)}}(),_r=function(a){ts(r,a);function r(n,d){return a.call(this,d,n.parts)||this}return r.prototype._keyCodeToUILabel=function(n){if(this._os===2)switch(n){case 15:return"\u2190";case 16:return"\u2191";case 17:return"\u2192";case 18:return"\u2193"}return B.b.toString(n)},r.prototype._getLabel=function(n){return n.isDuplicateModifierCase()?"":this._keyCodeToUILabel(n.keyCode)},r.prototype._getAriaLabel=function(n){return n.isDuplicateModifierCase()?"":B.b.toString(n.keyCode)},r.prototype._getDispatchPart=function(n){return r.getDispatchStr(n)},r.getDispatchStr=function(n){if(n.isModifierKey())return null;var d="";return n.ctrlKey&&(d+="ctrl+"),n.shiftKey&&(d+="shift+"),n.altKey&&(d+="alt+"),n.metaKey&&(d+="meta+"),d+=B.b.toString(n.keyCode),d},r}(na),Hn=e("sM1p"),Sr=e("EWX2"),Oi=e("A9l+"),os=function(){var a=function(r,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,S){d.__proto__=S}||function(d,S){for(var k in S)S.hasOwnProperty(k)&&(d[k]=S[k])},a(r,n)};return function(r,n){a(r,n);function d(){this.constructor=r}r.prototype=n===null?Object.create(n):(d.prototype=n.prototype,new d)}}(),ns=function(a,r,n,d){var S=arguments.length,k=S<3?r:d===null?d=Object.getOwnPropertyDescriptor(r,n):d,we;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(a,r,n,d);else for(var We=a.length-1;We>=0;We--)(we=a[We])&&(k=(S<3?we(k):S>3?we(r,n,k):we(r,n))||k);return S>3&&k&&Object.defineProperty(r,n,k),k},is=function(a,r){return function(n,d){r(n,d,a)}},rs=function(){for(var a=0,r=0,n=arguments.length;r 0){var xo=n[We-1];xo.originalEndLineNumber===0?co=xo.originalStartLineNumber+1:co=xo.originalEndLineNumber+1,xo.modifiedEndLineNumber===0?So=xo.modifiedStartLineNumber+1:So=xo.modifiedEndLineNumber+1}var Po=Gt-xi+1,Go=Jt-xi+1;if(Po Zo){var Xo=Zo-en;en=en+Xo,bn=bn+Xo}if(bn>Yo){var Xo=Yo-bn;en=en+Xo,bn=bn+Xo}ro[eo++]=new Ei(an,en,yn,bn)}k[we++]=new Ji(ro)}for(var Mn=k[0].entries,Bn=[],kn=0,We=1,Xe=k.length;We Wt)&&(Wt=So),xo!==0&&(Pt===0||xo ro)&&(ro=Po)}var Go=document.createElement("div");Go.className="diff-review-row";var Xo=document.createElement("div");Xo.className="diff-review-cell diff-review-summary";var an=Wt-It+1,yn=ro-Pt+1;Xo.appendChild(document.createTextNode(Xe+1+"/"+this._diffs.length+": @@ -"+It+","+an+" +"+Pt+","+yn+" @@")),Go.setAttribute("data-line",String(Pt));var Zo=function(bn){return bn===0?wn.a("no_lines","no lines"):bn===1?wn.a("one_line","1 line"):wn.a("more_lines","{0} lines",bn)},Yo=Zo(an),mn=Zo(yn);Go.setAttribute("aria-label",wn.a({key:"header",comment:["This is the ARIA label for a git diff header.","A git diff header looks like this: @@ -154,12 +159,39 @@.","That encodes that at original line 154 (which is now line 159), 12 lines were removed/changed with 39 lines.","Variables 0 and 1 refer to the diff index out of total number of diffs.","Variables 2 and 4 will be numbers (a line number).",'Variables 3 and 5 will be "no lines", "1 line" or "X lines", localized separately.']},"Difference {0} of {1}: original {2}, {3}, modified {4}, {5}",Xe+1,this._diffs.length,It,Yo,Pt,mn)),Go.appendChild(Xo),Go.setAttribute("role","listitem"),yt.appendChild(Go);for(var en=Pt,eo=0,Gt=Qe.length;eo >>0,Qe=new Uint32Array(2);Qe[0]=we.length,Qe[1]=Xe;var yt=new _t.a(Qe,we),It=Xt.d.isBasicASCII(we,n.mightContainNonBasicASCII()),Wt=Xt.d.containsRTL(we,It,n.mightContainRTL()),Pt=Object(zt.e)(new zt.c(We.isMonospace&&!d.get(23),We.canUseHalfwidthRightwardsArrow,we,!1,It,Wt,0,yt,[],S,0,We.spaceWidth,We.middotWidth,d.get(88),d.get(74),d.get(69),d.get(35)!==T.d.OFF,null));return Pt.html},r}(Rt.a);Object(Ln.e)(function(a,r){var n=a.getColor(Vn.k);n&&r.addRule(".monaco-diff-editor .diff-review-line-number { color: "+n+"; }");var d=a.getColor(gn.Vb);d&&r.addRule(".monaco-diff-editor .diff-review-shadow { box-shadow: "+d+" 0 -6px 6px -6px inset; }")});var er=function(a){Sn(r,a);function r(){return a.call(this,{id:"editor.action.diffReview.next",label:wn.a("editor.action.diffReview.next","Go to Next Difference"),alias:"Go to Next Difference",precondition:_n.a.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:65,weight:100}})||this}return r.prototype.run=function(n,d){var S=Ir(n);S&&S.diffReviewNext()},r}(ui.b),Rr=function(a){Sn(r,a);function r(){return a.call(this,{id:"editor.action.diffReview.prev",label:wn.a("editor.action.diffReview.prev","Go to Previous Difference"),alias:"Go to Previous Difference",precondition:_n.a.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:1024|65,weight:100}})||this}return r.prototype.run=function(n,d){var S=Ir(n);S&&S.diffReviewPrev()},r}(ui.b);function Ir(a){for(var r=a.get(ue.a),n=r.listDiffEditors(),d=0,S=n.length;d 0&&k[k.length-1])&&(Qe[0]===6||Qe[0]===2)){n=0;continue}if(Qe[0]===3&&(!k||Qe[1]>k[0]&&Qe[1]k.modifiedStartLineNumber?wn.a("diff.clipboard.copyDeletedLinesContent.label","Copy deleted lines"):wn.a("diff.clipboard.copyDeletedLinesContent.single.label","Copy deleted line"),void 0,!0,function(){return Ri(Xe,void 0,void 0,function(){return tr(this,function(Gt){switch(Gt.label){case 0:return[4,this._clipboardService.writeText(k.originalContent.join(yt)+yt)];case 1:return Gt.sent(),[2]}})})}));var Wt=0,Pt=void 0;k.originalEndLineNumber>k.modifiedStartLineNumber&&(Pt=new ci.a("diff.clipboard.copyDeletedLineContent",wn.a("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",k.originalStartLineNumber),void 0,!0,function(){return Ri(Xe,void 0,void 0,function(){return tr(this,function(Gt){switch(Gt.label){case 0:return[4,this._clipboardService.writeText(k.originalContent[Wt])];case 1:return Gt.sent(),[2]}})})}),It.push(Pt));var ro=S.getOption(68);ro||It.push(new ci.a("diff.inline.revertChange",wn.a("diff.inline.revertChange.label","Revert this change"),void 0,!0,function(){return Ri(Xe,void 0,void 0,function(){var Gt,Gt;return tr(this,function(Jt){return k.modifiedEndLineNumber===0?(Gt=S.getModel().getLineMaxColumn(k.modifiedStartLineNumber),S.executeEdits("diffEditor",[{range:new W.a(k.modifiedStartLineNumber,Gt,k.modifiedStartLineNumber,Gt),text:yt+k.originalContent.join(yt)}])):(Gt=S.getModel().getLineMaxColumn(k.modifiedEndLineNumber),S.executeEdits("diffEditor",[{range:new W.a(k.modifiedStartLineNumber,1,k.modifiedEndLineNumber,Gt),text:k.originalContent.join(yt)}])),[2]})})}));var eo=function(Gt,Jt){Xe._contextMenuService.showContextMenu({getAnchor:function(){return{x:Gt,y:Jt}},getActions:function(){return Pt&&(Pt.label=wn.a("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",k.originalStartLineNumber+Wt)),It},autoSelectFirstItem:!0})};return Xe._register(ve.o(Xe._diffActions,"mousedown",function(Gt){var Jt=ve.C(Xe._diffActions),co=Jt.top,So=Jt.height,xo=Math.floor(Qe/3);Gt.preventDefault(),eo(Gt.posx,co+So+xo)})),Xe._register(S.onMouseMove(function(Gt){if(Gt.target.type===8||Gt.target.type===5){var Jt=Gt.target.detail.viewZoneId;Jt===Xe._viewZoneId?(Xe.visibility=!0,Wt=Xe._updateLightBulbPosition(Xe._marginDomNode,Gt.event.browserEvent.y,Qe)):Xe.visibility=!1}else Xe.visibility=!1})),Xe._register(S.onMouseDown(function(Gt){if(!Gt.event.rightButton)return;if(Gt.target.type===8||Gt.target.type===5){var Jt=Gt.target.detail.viewZoneId;Jt===Xe._viewZoneId&&(Gt.event.preventDefault(),Wt=Xe._updateLightBulbPosition(Xe._marginDomNode,Gt.event.browserEvent.y,Qe),eo(Gt.event.posx,Gt.event.posy+Qe))}})),Xe}return Object.defineProperty(r.prototype,"visibility",{get:function(){return this._visibility},set:function(n){this._visibility!==n&&(this._visibility=n,n?this._diffActions.style.visibility="visible":this._diffActions.style.visibility="hidden")},enumerable:!0,configurable:!0}),r.prototype._updateLightBulbPosition=function(n,d,S){var k=ve.C(n).top,we=d-k,We=Math.floor(we/S),Xe=We*S;return this._diffActions.style.top=Xe+"px",We},r}(Rt.a),Ii=e("tTk5"),_s=e("o39E"),hi=function(){var a=function(r,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,S){d.__proto__=S}||function(d,S){for(var k in S)S.hasOwnProperty(k)&&(d[k]=S[k])},a(r,n)};return function(r,n){a(r,n);function d(){this.constructor=r}r.prototype=n===null?Object.create(n):(d.prototype=n.prototype,new d)}}(),Ss=function(a,r,n,d){var S=arguments.length,k=S<3?r:d===null?d=Object.getOwnPropertyDescriptor(r,n):d,we;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(a,r,n,d);else for(var We=a.length-1;We>=0;We--)(we=a[We])&&(k=(S<3?we(k):S>3?we(r,n,k):we(r,n))||k);return S>3&&k&&Object.defineProperty(r,n,k),k},$n=function(a,r){return function(n,d){r(n,d,a)}},Jn=function(){function a(r,n){this._contextMenuService=r,this._clipboardService=n,this._zones=[],this.inlineDiffMargins=[],this._zonesMap={},this._decorations=[]}return a.prototype.getForeignViewZones=function(r){var n=this;return r.filter(function(d){return!n._zonesMap[String(d.id)]})},a.prototype.clean=function(r){var n=this;this._zones.length>0&&r.changeViewZones(function(d){for(var S=0,k=n._zones.length;S 0?we/S:0,Xe=Math.max(0,Math.floor(n.height*We)),Qe=Math.floor(d*We);return{height:Xe,top:Qe}},r.prototype._createDataSource=function(){var n=this;return{getWidth:function(){return n._elementSizeObserver.getWidth()},getHeight:function(){return n._elementSizeObserver.getHeight()-n._getReviewHeight()},getContainerDomNode:function(){return n._containerDomElement},relayoutEditors:function(){n._doLayout()},getOriginalEditor:function(){return n.originalEditor},getModifiedEditor:function(){return n.modifiedEditor}}},r.prototype._setStrategy=function(n){this._strategy&&this._strategy.dispose(),this._strategy=n,n.applyColors(this._themeService.getTheme()),this._diffComputationResult&&this._updateDecorations(),this._doLayout()},r.prototype._getLineChangeAtOrBeforeLineNumber=function(n,d){var S=this._diffComputationResult?this._diffComputationResult.changes:[];if(S.length===0||n =Qe?k=We+1:(k=We,we=We)}return S[k]},r.prototype._getEquivalentLineForOriginalLineNumber=function(n){var d=this._getLineChangeAtOrBeforeLineNumber(n,function(Qe){return Qe.originalStartLineNumber});if(!d)return n;var S=d.originalStartLineNumber+(d.originalEndLineNumber>0?-1:0),k=d.modifiedStartLineNumber+(d.modifiedEndLineNumber>0?-1:0),we=d.originalEndLineNumber>0?d.originalEndLineNumber-d.originalStartLineNumber+1:0,We=d.modifiedEndLineNumber>0?d.modifiedEndLineNumber-d.modifiedStartLineNumber+1:0,Xe=n-S;return Xe<=we?k+Math.min(Xe,We):k+We-we+Xe},r.prototype._getEquivalentLineForModifiedLineNumber=function(n){var d=this._getLineChangeAtOrBeforeLineNumber(n,function(Qe){return Qe.modifiedStartLineNumber});if(!d)return n;var S=d.originalStartLineNumber+(d.originalEndLineNumber>0?-1:0),k=d.modifiedStartLineNumber+(d.modifiedEndLineNumber>0?-1:0),we=d.originalEndLineNumber>0?d.originalEndLineNumber-d.originalStartLineNumber+1:0,We=d.modifiedEndLineNumber>0?d.modifiedEndLineNumber-d.modifiedStartLineNumber+1:0,Xe=n-k;return Xe<=We?S+Math.min(Xe,we):S+we-We+Xe},r.prototype.getDiffLineInformationForOriginal=function(n){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForOriginalLineNumber(n)}:null},r.prototype.getDiffLineInformationForModified=function(n){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForModifiedLineNumber(n)}:null},r.ONE_OVERVIEW_WIDTH=15,r.ENTIRE_DIFF_OVERVIEW_WIDTH=30,r.UPDATE_DIFF_DECORATIONS_DELAY=200,r=Ss([$n(3,it.a),$n(4,_n.c),$n(5,Rn.a),$n(6,ue.a),$n(7,Ln.c),$n(8,Hn.a),$n(9,Xn.a),$n(10,Ii.a)],r),r}(Rt.a),Nr=function(a){hi(r,a);function r(n){var d=a.call(this)||this;return d._dataSource=n,d._insertColor=null,d._removeColor=null,d}return r.prototype.applyColors=function(n){var d=(n.getColor(gn.j)||gn.g).transparent(2),S=(n.getColor(gn.l)||gn.h).transparent(2),k=!d.equals(this._insertColor)||!S.equals(this._removeColor);return this._insertColor=d,this._removeColor=S,k},r.prototype.getEditorsDiffDecorations=function(n,d,S,k,we,We,Xe){we=we.sort(function(Wt,Pt){return Wt.afterLineNumber-Pt.afterLineNumber}),k=k.sort(function(Wt,Pt){return Wt.afterLineNumber-Pt.afterLineNumber});var Qe=this._getViewZones(n,k,we,We,Xe,S),yt=this._getOriginalEditorDecorations(n,d,S,We,Xe),It=this._getModifiedEditorDecorations(n,d,S,We,Xe);return{original:{decorations:yt.decorations,overviewZones:yt.overviewZones,zones:Qe.original},modified:{decorations:It.decorations,overviewZones:It.overviewZones,zones:Qe.modified}}},r}(Rt.a),nr=function(){function a(r){this._source=r,this._index=-1,this.current=null,this.advance()}return a.prototype.advance=function(){this._index++,this._index 0){var mn=Zo[Zo.length-1];if(mn.afterLineNumber===Yo.afterLineNumber&&mn.domNode===null){mn.heightInLines+=Yo.heightInLines;return}}Zo.push(Yo)},yt=new nr(this.modifiedForeignVZ),It=new nr(this.originalForeignVZ),Wt=0,Pt=this.lineChanges.length;Wt<=Pt;Wt++){var ro=Wt 0?-1:0),k=ro.modifiedStartLineNumber+(ro.modifiedEndLineNumber>0?-1:0),d=ro.originalEndLineNumber>0?ro.originalEndLineNumber-ro.originalStartLineNumber+1:0,n=ro.modifiedEndLineNumber>0?ro.modifiedEndLineNumber-ro.modifiedStartLineNumber+1:0,we=Math.max(ro.originalStartLineNumber,ro.originalEndLineNumber),We=Math.max(ro.modifiedStartLineNumber,ro.modifiedEndLineNumber)):(S+=1e7+d,k+=1e7+n,we=S,We=k);for(var eo=[],Gt=[];yt.current&&yt.current.afterLineNumber<=We;){var Jt=void 0;yt.current.afterLineNumber<=k?Jt=S-k+yt.current.afterLineNumber:Jt=we;var co=null;ro&&ro.modifiedStartLineNumber<=yt.current.afterLineNumber&&yt.current.afterLineNumber<=ro.modifiedEndLineNumber&&(co=this._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion()),eo.push({afterLineNumber:Jt,heightInLines:yt.current.height/this.modifiedLineHeight,domNode:null,marginDomNode:co}),yt.advance()}for(;It.current&&It.current.afterLineNumber<=we;){var Jt=void 0;It.current.afterLineNumber<=S?Jt=k-S+It.current.afterLineNumber:Jt=We,Gt.push({afterLineNumber:Jt,heightInLines:It.current.height/this.originalLineHeight,domNode:null}),It.advance()}if(ro!==null&&fi(ro)){var So=this._produceOriginalFromDiff(ro,d,n);So&&eo.push(So)}if(ro!==null&&oi(ro)){var So=this._produceModifiedFromDiff(ro,d,n);So&&Gt.push(So)}var xo=0,Po=0;for(eo=eo.sort(Xe),Gt=Gt.sort(Xe);xo =Xo.heightInLines?(Go.heightInLines-=Xo.heightInLines,Po++):(Xo.heightInLines-=Go.heightInLines,xo++)}for(;xo r.MINIMUM_EDITOR_WIDTH*2?(k S-r.MINIMUM_EDITOR_WIDTH&&(k=S-r.MINIMUM_EDITOR_WIDTH)):k=we,this._sashPosition!==k&&(this._sashPosition=k,this._sash.layout()),this._sashPosition},r.prototype.onSashDragStart=function(){this._startSashPosition=this._sashPosition},r.prototype.onSashDrag=function(n){var d=this._dataSource.getWidth(),S=d-or.ENTIRE_DIFF_OVERVIEW_WIDTH,k=this.layout((this._startSashPosition+(n.currentX-n.startX))/S);this._sashRatio=k/S,this._dataSource.relayoutEditors()},r.prototype.onSashDragEnd=function(){this._sash.layout()},r.prototype.onSashReset=function(){this._sashRatio=.5,this._dataSource.relayoutEditors(),this._sash.layout()},r.prototype.getVerticalSashTop=function(n){return 0},r.prototype.getVerticalSashLeft=function(n){return this._sashPosition},r.prototype.getVerticalSashHeight=function(n){return this._dataSource.getHeight()},r.prototype._getViewZones=function(n,d,S,k,we){var We=new Ms(n,d,k.getOption(49),S,we.getOption(49));return We.getViewZones()},r.prototype._getOriginalEditorDecorations=function(n,d,S,k,we){for(var We=String(this._removeColor),Xe={decorations:[],overviewZones:[]},Qe=k.getModel(),yt=0,It=n.length;yt d?{afterLineNumber:Math.max(n.originalStartLineNumber,n.originalEndLineNumber),heightInLines:S-d,domNode:null}:null},r.prototype._produceModifiedFromDiff=function(n,d,S){return d>S?{afterLineNumber:Math.max(n.modifiedStartLineNumber,n.modifiedEndLineNumber),heightInLines:d-S,domNode:null}:null},r}(ir),Ni=function(a){hi(r,a);function r(n,d){var S=a.call(this,n)||this;return S.decorationsLeft=n.getOriginalEditor().getLayoutInfo().decorationsLeft,S._register(n.getOriginalEditor().onDidLayoutChange(function(k){S.decorationsLeft!==k.decorationsLeft&&(S.decorationsLeft=k.decorationsLeft,n.relayoutEditors())})),S}return r.prototype.setEnableSplitViewResizing=function(n){},r.prototype._getViewZones=function(n,d,S,k,we,We){var Xe=new Ds(n,d,S,k,we,We);return Xe.getViewZones()},r.prototype._getOriginalEditorDecorations=function(n,d,S,k,we){for(var We=String(this._removeColor),Xe={decorations:[],overviewZones:[]},Qe=0,yt=n.length;Qe '])}Gt+=this.modifiedEditorOptions.get(79);var xo=document.createElement("div");xo.className="view-lines line-delete",xo.innerHTML=Qe.build(),Ti.a.applyFontInfoSlow(xo,Wt);var Po=document.createElement("div");return Po.className="inline-deleted-margin-view-zone",Po.innerHTML=yt.join(""),Ti.a.applyFontInfoSlow(Po,Wt),{shouldNotShrink:!0,afterLineNumber:n.modifiedEndLineNumber===0?n.modifiedStartLineNumber:n.modifiedStartLineNumber-1,heightInLines:d,minWidthInPx:Gt*eo,domNode:xo,marginDomNode:Po,diff:{originalStartLineNumber:n.originalStartLineNumber,originalEndLineNumber:n.originalEndLineNumber,modifiedStartLineNumber:n.modifiedStartLineNumber,modifiedEndLineNumber:n.modifiedEndLineNumber,originalContent:Jt}}},r.prototype._renderOriginalLine=function(n,d,S,k,we,We,Xe){var Qe=d.getLineTokens(we),yt=Qe.getLineContent(),It=S.get(34),Wt=ws.a.filter(We,we,1,yt.length+1);Xe.appendASCIIString(' ');var Pt=Xt.d.isBasicASCII(yt,d.mightContainNonBasicASCII()),ro=Xt.d.containsRTL(yt,Pt,d.mightContainRTL()),eo=Object(zt.d)(new zt.c(It.isMonospace&&!S.get(23),It.canUseHalfwidthRightwardsArrow,yt,!1,Pt,ro,0,Qe,Wt,k,0,It.spaceWidth,It.middotWidth,S.get(88),S.get(74),S.get(69),S.get(35)!==T.d.OFF,null),Xe);Xe.appendASCIIString("");var Gt=eo.characterMapping.getAbsoluteOffsets();return Gt.length>0?Gt[Gt.length-1]:0},r}(ir);function fi(a){return a.modifiedEndLineNumber>0}function oi(a){return a.originalEndLineNumber>0}function Os(){var a=document.createElement("div");return a.className="diagonal-fill",a}Object(Ln.e)(function(a,r){var n=a.getColor(gn.j);n&&(r.addRule(".monaco-editor .line-insert, .monaco-editor .char-insert { background-color: "+n+"; }"),r.addRule(".monaco-diff-editor .line-insert, .monaco-diff-editor .char-insert { background-color: "+n+"; }"),r.addRule(".monaco-editor .inline-added-margin-view-zone { background-color: "+n+"; }"));var d=a.getColor(gn.l);d&&(r.addRule(".monaco-editor .line-delete, .monaco-editor .char-delete { background-color: "+d+"; }"),r.addRule(".monaco-diff-editor .line-delete, .monaco-diff-editor .char-delete { background-color: "+d+"; }"),r.addRule(".monaco-editor .inline-deleted-margin-view-zone { background-color: "+d+"; }"));var S=a.getColor(gn.k);S&&r.addRule(".monaco-editor .line-insert, .monaco-editor .char-insert { border: 1px "+(a.type==="hc"?"dashed":"solid")+" "+S+"; }");var k=a.getColor(gn.m);k&&r.addRule(".monaco-editor .line-delete, .monaco-editor .char-delete { border: 1px "+(a.type==="hc"?"dashed":"solid")+" "+k+"; }");var we=a.getColor(gn.Vb);we&&r.addRule(".monaco-diff-editor.side-by-side .editor.modified { box-shadow: -6px 0 5px -5px "+we+"; }");var We=a.getColor(gn.i);We&&r.addRule(".monaco-diff-editor.side-by-side .editor.modified { border-left: 1px solid "+We+"; }")});var Ts=e("9Y+e"),Si=e("scqD"),Kn=e("fjLI"),ni=e("bexQ"),mi=e("R3nR"),xs=e("9XeP"),sr=function(){var a=function(r,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,S){d.__proto__=S}||function(d,S){for(var k in S)S.hasOwnProperty(k)&&(d[k]=S[k])},a(r,n)};return function(r,n){a(r,n);function d(){this.constructor=r}r.prototype=n===null?Object.create(n):(d.prototype=n.prototype,new d)}}(),ar=function(a,r,n,d){var S=arguments.length,k=S<3?r:d===null?d=Object.getOwnPropertyDescriptor(r,n):d,we;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(a,r,n,d);else for(var We=a.length-1;We>=0;We--)(we=a[We])&&(k=(S<3?we(k):S>3?we(r,n,k):we(r,n))||k);return S>3&&k&&Object.defineProperty(r,n,k),k},sn=function(a,r){return function(n,d){r(n,d,a)}},As=function(){for(var a=0,r=0,n=arguments.length;r> to now point to mime <<"+n.mime+">>"),n.filename&&d.filename===n.filename&&console.warn("Overwriting filename <<"+n.filename+">> to now point to mime <<"+n.mime+">>"),n.filepattern&&d.filepattern===n.filepattern&&console.warn("Overwriting filepattern <<"+n.filepattern+">> to now point to mime <<"+n.mime+">>"),n.firstline&&d.firstline===n.firstline&&console.warn("Overwriting firstline <<"+n.firstline+">> to now point to mime <<"+n.mime+">>")})}function ur(a){return{id:a.id,mime:a.mime,filename:a.filename,extension:a.extension,filepattern:a.filepattern,firstline:a.firstline,userConfigured:a.userConfigured,filenameLowercase:a.filename?a.filename.toLowerCase():void 0,extensionLowercase:a.extension?a.extension.toLowerCase():void 0,filepatternLowercase:a.filepattern?a.filepattern.toLowerCase():void 0,filepatternOnPath:a.filepattern?a.filepattern.indexOf(dr.posix.sep)>=0:!1}}function Li(a,r){var n;if(a)switch(a.scheme){case Ce.b.file:n=a.fsPath;break;case Ce.b.data:var d=he.a.parseMetaData(a);n=d.get(he.a.META_DATA_LABEL);break;default:n=a.path}if(!n)return[Pr];n=n.toLowerCase();var S=Object(dr.basename)(n),k=Wr(n,S,Fr);if(k)return[k,ki];var we=Wr(n,S,kr);if(we)return[we,ki];if(r){var We=ii(r);if(We)return[We,ki]}return[Pr]}function Wr(a,r,n){for(var d=null,S=null,k=null,we=n.length-1;we>=0;we--){var We=n[we];if(r===We.filenameLowercase){d=We;break}if(We.filepattern&&(!S||We.filepattern.length>S.filepattern.length)){var Xe=We.filepatternOnPath?a:r;Object(cr.a)(We.filepatternLowercase,Xe)&&(S=We)}We.extension&&((!k||We.extension.length>k.extension.length)&&(Object(to.m)(r,We.extensionLowercase)&&(k=We)))}return d?d.mime:S?S.mime:k?k.mime:null}function ii(a){if(Object(to.P)(a)&&(a=a.substr(1)),a.length>0)for(var r=Fi.length-1;r>=0;r--){var n=Fi[r];if(!n.firstline)continue;var d=a.match(n.firstline);if(d&&d.length>0)return n.mime}return null}var gi=e("MqQJ"),hr=e("ic2d"),ks=function(){var a=function(r,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,S){d.__proto__=S}||function(d,S){for(var k in S)S.hasOwnProperty(k)&&(d[k]=S[k])},a(r,n)};return function(r,n){a(r,n);function d(){this.constructor=r}r.prototype=n===null?Object.create(n):(d.prototype=n.prototype,new d)}}(),qn=Object.prototype.hasOwnProperty,Fs=function(a){ks(r,a);function r(n,d){n===void 0&&(n=!0),d===void 0&&(d=!1);var S=a.call(this)||this;return S._onDidChange=S._register(new R.a),S.onDidChange=S._onDidChange.event,S._warnOnOverwrite=d,S._nextLanguageId2=1,S._languageIdToLanguage=[],S._languageToLanguageId=Object.create(null),S._languages={},S._mimeTypesMap={},S._nameMap={},S._lowercaseNameMap={},n&&(S._initializeFromRegistry(),S._register(gi.a.onDidChangeLanguages(function(k){return S._initializeFromRegistry()}))),S}return r.prototype._initializeFromRegistry=function(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={};var n=gi.a.getLanguages();this._registerLanguages(n)},r.prototype._registerLanguages=function(n){for(var d=this,S=0,k=n;S 0&&((S=n.mimetypes).push.apply(S,d.mimetypes),we=d.mimetypes[0]),we||(we="text/x-"+k,n.mimetypes.push(we)),Array.isArray(d.extensions))for(var We=0,Xe=d.extensions;We 0){var Gt=d.firstLine;Gt.charAt(0)!=="^"&&(Gt="^"+Gt);try{var Jt=new RegExp(Gt);to.I(Jt)||pi({id:k,mime:we,firstline:Jt},this._warnOnOverwrite)}catch(an){Object(Ct.e)(an)}}n.aliases.push(k);var co=null;if(typeof d.aliases!="undefined"&&Array.isArray(d.aliases)&&(d.aliases.length===0?co=[null]:co=d.aliases),co!==null)for(var So=0,xo=co;So 0;if(!(Go&&co[0]===null)){var Xo=(Go?co[0]:null)||k;(Go||!n.name)&&(n.name=Xo)}d.configuration&&n.configurationFiles.push(d.configuration)},r.prototype.isRegisteredMode=function(n){return qn.call(this._mimeTypesMap,n)?!0:qn.call(this._languages,n)},r.prototype.getModeIdForLanguageNameLowercase=function(n){return qn.call(this._lowercaseNameMap,n)?this._lowercaseNameMap[n].language:null},r.prototype.extractModeIds=function(n){var d=this;return n?n.split(",").map(function(S){return S.trim()}).map(function(S){return qn.call(d._mimeTypesMap,S)?d._mimeTypesMap[S].language:S}).filter(function(S){return qn.call(d._languages,S)}):[]},r.prototype.getLanguageIdentifier=function(n){if(n===Tt.b||n===0)return Tt.a;var d;if(typeof n=="string")d=n;else if(d=this._languageIdToLanguage[n],!d)return null;return qn.call(this._languages,d)?this._languages[d].identifier:null},r.prototype.getModeIdsFromFilepathOrFirstLine=function(n,d){if(!n&&!d)return[];var S=Li(n,d);return this.extractModeIds(S.join(","))},r}(Rt.a),Ws=function(){var a=function(r,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,S){d.__proto__=S}||function(d,S){for(var k in S)S.hasOwnProperty(k)&&(d[k]=S[k])},a(r,n)};return function(r,n){a(r,n);function d(){this.constructor=r}r.prototype=n===null?Object.create(n):(d.prototype=n.prototype,new d)}}(),Br=function(a){Ws(r,a);function r(n,d){var S=a.call(this)||this;return S._onDidChange=S._register(new R.a),S.onDidChange=S._onDidChange.event,S._selector=d,S.languageIdentifier=S._selector(),S._register(n(function(){return S._evaluate()})),S}return r.prototype._evaluate=function(){var n=this._selector();if(n.id===this.languageIdentifier.id)return;this.languageIdentifier=n,this._onDidChange.fire(this.languageIdentifier)},r}(Rt.a),Bs=function(){function a(r){var n=this;r===void 0&&(r=!1),this._onDidCreateMode=new R.a,this.onDidCreateMode=this._onDidCreateMode.event,this._onLanguagesMaybeChanged=new R.a,this.onLanguagesMaybeChanged=this._onLanguagesMaybeChanged.event,this._instantiatedModes={},this._registry=new Fs(!0,r),this._registry.onDidChange(function(){return n._onLanguagesMaybeChanged.fire()})}return a.prototype.isRegisteredMode=function(r){return this._registry.isRegisteredMode(r)},a.prototype.getModeIdForLanguageName=function(r){return this._registry.getModeIdForLanguageNameLowercase(r)},a.prototype.getModeIdByFilepathOrFirstLine=function(r,n){var d=this._registry.getModeIdsFromFilepathOrFirstLine(r,n);return Object(dt.l)(d,null)},a.prototype.getModeId=function(r){var n=this._registry.extractModeIds(r);return Object(dt.l)(n,null)},a.prototype.getLanguageIdentifier=function(r){return this._registry.getLanguageIdentifier(r)},a.prototype.create=function(r){var n=this;return new Br(this.onLanguagesMaybeChanged,function(){var d=n.getModeId(r);return n._createModeAndGetLanguageIdentifier(d)})},a.prototype.createByFilepathOrFirstLine=function(r,n){var d=this;return new Br(this.onLanguagesMaybeChanged,function(){var S=d.getModeIdByFilepathOrFirstLine(r,n);return d._createModeAndGetLanguageIdentifier(S)})},a.prototype._createModeAndGetLanguageIdentifier=function(r){var n=this.getLanguageIdentifier(r||"plaintext")||Tt.a;return this._getOrCreateMode(n.language),n},a.prototype.triggerMode=function(r){var n=this.getModeId(r);this._getOrCreateMode(n||"plaintext")},a.prototype._getOrCreateMode=function(r){if(!this._instantiatedModes.hasOwnProperty(r)){var n=this.getLanguageIdentifier(r)||Tt.a;this._instantiatedModes[r]=new Pi(n),this._onDidCreateMode.fire(this._instantiatedModes[r])}return this._instantiatedModes[r]},a}(),Ur=e("QRHv"),vi=function(){var a=function(r,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,S){d.__proto__=S}||function(d,S){for(var k in S)S.hasOwnProperty(k)&&(d[k]=S[k])},a(r,n)};return function(r,n){a(r,n);function d(){this.constructor=r}r.prototype=n===null?Object.create(n):(d.prototype=n.prototype,new d)}}(),Us=function(a,r,n,d){var S=arguments.length,k=S<3?r:d===null?d=Object.getOwnPropertyDescriptor(r,n):d,we;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(a,r,n,d);else for(var We=a.length-1;We>=0;We--)(we=a[We])&&(k=(S<3?we(k):S>3?we(r,n,k):we(r,n))||k);return S>3&&k&&Object.defineProperty(r,n,k),k},Wi=function(a,r){return function(n,d){r(n,d,a)}};function Bi(a){return a.toString()}var U=function(){function a(r,n,d){this._modelEventListeners=new Rt.b,this.model=r,this._languageSelection=null,this._languageSelectionListener=null,this._modelEventListeners.add(r.onWillDispose(function(){return n(r)})),this._modelEventListeners.add(r.onDidChangeLanguage(function(S){return d(r,S)}))}return a.prototype._disposeLanguageSelection=function(){this._languageSelectionListener&&(this._languageSelectionListener.dispose(),this._languageSelectionListener=null),this._languageSelection&&(this._languageSelection.dispose(),this._languageSelection=null)},a.prototype.dispose=function(){this._modelEventListeners.dispose(),this._disposeLanguageSelection()},a.prototype.setLanguage=function(r){var n=this;this._disposeLanguageSelection(),this._languageSelection=r,this._languageSelectionListener=this._languageSelection.onDidChange(function(){return n.model.setMode(r.languageIdentifier)}),this.model.setMode(r.languageIdentifier)},a}(),o=ht.d||ht.e?1:2,t=function(a){vi(r,a);function r(n,d,S,k){var we=a.call(this)||this;return we._onModelAdded=we._register(new R.a),we.onModelAdded=we._onModelAdded.event,we._onModelRemoved=we._register(new R.a),we.onModelRemoved=we._onModelRemoved.event,we._onModelModeChanged=we._register(new R.a),we.onModelModeChanged=we._onModelModeChanged.event,we._configurationService=n,we._resourcePropertiesService=d,we._models={},we._modelCreationOptionsByLanguageAndResource=Object.create(null),we._configurationServiceSubscription=we._configurationService.onDidChangeConfiguration(function(We){return we._updateModelOptions()}),we._updateModelOptions(),we._register(new i(we,S,n,k)),we}return r._readModelOptions=function(n,d){var S=T.c.tabSize;if(n.editor&&typeof n.editor.tabSize!="undefined"){var k=parseInt(n.editor.tabSize,10);isNaN(k)||(S=k),S<1&&(S=1)}var we=S;if(n.editor&&typeof n.editor.indentSize!="undefined"&&n.editor.indentSize!=="tabSize"){var We=parseInt(n.editor.indentSize,10);isNaN(We)||(we=We),we<1&&(we=1)}var Xe=T.c.insertSpaces;n.editor&&typeof n.editor.insertSpaces!="undefined"&&(Xe=n.editor.insertSpaces==="false"?!1:Boolean(n.editor.insertSpaces));var Qe=o,yt=n.eol;yt===`\r `?Qe=2:yt===` `&&(Qe=1);var It=T.c.trimAutoWhitespace;n.editor&&typeof n.editor.trimAutoWhitespace!="undefined"&&(It=n.editor.trimAutoWhitespace==="false"?!1:Boolean(n.editor.trimAutoWhitespace));var Wt=T.c.detectIndentation;n.editor&&typeof n.editor.detectIndentation!="undefined"&&(Wt=n.editor.detectIndentation==="false"?!1:Boolean(n.editor.detectIndentation));var Pt=T.c.largeFileOptimizations;return n.editor&&typeof n.editor.largeFileOptimizations!="undefined"&&(Pt=n.editor.largeFileOptimizations==="false"?!1:Boolean(n.editor.largeFileOptimizations)),{isForSimpleWidget:d,tabSize:S,indentSize:we,insertSpaces:Xe,detectIndentation:Wt,defaultEOL:Qe,trimAutoWhitespace:It,largeFileOptimizations:Pt}},r.prototype.getCreationOptions=function(n,d,S){var k=this._modelCreationOptionsByLanguageAndResource[n+d];if(!k){var we=this._configurationService.getValue("editor",{overrideIdentifier:n,resource:d}),We=this._resourcePropertiesService.getEOL(d,n);k=r._readModelOptions({editor:we,eol:We},S),this._modelCreationOptionsByLanguageAndResource[n+d]=k}return k},r.prototype._updateModelOptions=function(){var n=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);for(var d=Object.keys(this._models),S=0,k=d.length;S =this._growCount){var S=this._elements;this._currentLengthIndex++,this._currentLength=a._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1 0&&Xe >1;var Qe=this._themeService.getTheme().getTokenStyleMetadata(k,we);if(typeof Qe=="undefined")S=2147483647;else{if(S=0,typeof Qe.italic!="undefined"){var yt=(Qe.italic?1:0)<<11;S|=yt|1}if(typeof Qe.bold!="undefined"){var It=(Qe.bold?2:0)<<11;S|=It|2}if(typeof Qe.underline!="undefined"){var Wt=(Qe.underline?4:0)<<11;S|=Wt|4}if(Qe.foreground){var Pt=Qe.foreground<<14;S|=Pt|8}S===0&&(S=2147483647)}this._hashTable.add(r,n,S)}if(this._logService.getLevel()===lt.b.Trace){var ro=this._legend.tokenTypes[r],eo=n?" "+this._legend.tokenModifiers.filter(function(Gt,Jt){return n&1< 0&&(n._fetchSemanticTokens.isScheduled()||n._fetchSemanticTokens.schedule())})},r._isSemanticTokens=function(n){return n&&!!n.data},r._isSemanticTokensEdits=function(n){return n&&Array.isArray(n.edits)},r._copy=function(n,d,S,k,we){for(var We=0;We =0;eo--){var yt=d.edits[eo],Gt=Pt-(yt.start+yt.deleteCount);Gt>0&&(r._copy(It,Pt-Gt,Wt,ro-Gt,Gt),ro-=Gt),yt.data&&(r._copy(yt.data,0,Wt,ro-yt.data.length,yt.data.length),ro-=yt.data.length),Pt=yt.start}Pt>0&&r._copy(It,0,Wt,0,Pt),d={resultId:d.resultId,data:Wt}}}if(r._isSemanticTokens(d)){this._currentResponse=new Le(n,d.resultId,d.data);for(var It=d.data,Jt=d.data.length/5|0,co=Math.max(Math.ceil(Jt/1024),400),So=[],xo=0,Po=1,Go=0;xo Xo&&It[5*yn]===0;)yn--;if(yn-1===Xo){for(var Zo=an;Zo+1 0){for(var qs=0,Ra=k;qs 0?n[0]:null},r}(Rt.a),ct=function(){var a=function(r,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,S){d.__proto__=S}||function(d,S){for(var k in S)S.hasOwnProperty(k)&&(d[k]=S[k])},a(r,n)};return function(r,n){a(r,n);function d(){this.constructor=r}r.prototype=n===null?Object.create(n):(d.prototype=n.prototype,new d)}}(),wt=function(a){ct(r,a);function r(){var n=a.call(this)||this;return n._onCodeEditorAdd=n._register(new R.a),n.onCodeEditorAdd=n._onCodeEditorAdd.event,n._onCodeEditorRemove=n._register(new R.a),n.onCodeEditorRemove=n._onCodeEditorRemove.event,n._onDiffEditorAdd=n._register(new R.a),n._onDiffEditorRemove=n._register(new R.a),n._codeEditors=Object.create(null),n._diffEditors=Object.create(null),n}return r.prototype.addCodeEditor=function(n){this._codeEditors[n.getId()]=n,this._onCodeEditorAdd.fire(n)},r.prototype.removeCodeEditor=function(n){delete this._codeEditors[n.getId()]&&this._onCodeEditorRemove.fire(n)},r.prototype.listCodeEditors=function(){var n=this;return Object.keys(this._codeEditors).map(function(d){return n._codeEditors[d]})},r.prototype.addDiffEditor=function(n){this._diffEditors[n.getId()]=n,this._onDiffEditorAdd.fire(n)},r.prototype.removeDiffEditor=function(n){delete this._diffEditors[n.getId()]&&this._onDiffEditorRemove.fire(n)},r.prototype.listDiffEditors=function(){var n=this;return Object.keys(this._diffEditors).map(function(d){return n._diffEditors[d]})},r.prototype.getFocusedCodeEditor=function(){for(var n=null,d=this.listCodeEditors(),S=0,k=d;S =0;We--)(we=a[We])&&(k=(S<3?we(k):S>3?we(r,n,k):we(r,n))||k);return S>3&&k&&Object.defineProperty(r,n,k),k},Bt=function(a,r){return function(n,d){r(n,d,a)}},Ht=function(){function a(r,n,d){this._parent=r,this._editorId=n,this.styleSheet=d,this._refCount=0}return a.prototype.ref=function(){this._refCount++},a.prototype.unref=function(){var r;this._refCount--,this._refCount===0&&((r=this.styleSheet.parentNode)===null||r===void 0||r.removeChild(this.styleSheet),this._parent._removeEditorStyleSheets(this._editorId))},a}(),qt=function(){function a(r){this.styleSheet=r}return a.prototype.ref=function(){},a.prototype.unref=function(){},a}(),$t=function(a){tt(r,a);function r(n,d){d===void 0&&(d=null);var S=a.call(this)||this;return S._decorationOptionProviders=new Map,S._editorStyleSheets=new Map,S._globalStyleSheet=d?new qt(d):null,S._themeService=n,S}return r.prototype._getOrCreateGlobalStyleSheet=function(){return this._globalStyleSheet||(this._globalStyleSheet=new qt(ve.w())),this._globalStyleSheet},r.prototype._getOrCreateStyleSheet=function(n){if(!n)return this._getOrCreateGlobalStyleSheet();var d=n.getContainerDomNode();if(!ve.N(d))return this._getOrCreateGlobalStyleSheet();var S=n.getId();if(!this._editorStyleSheets.has(S)){var k=new Ht(this,S,ve.w(d));this._editorStyleSheets.set(S,k)}return this._editorStyleSheets.get(S)},r.prototype._removeEditorStyleSheets=function(n){this._editorStyleSheets.delete(n)},r.prototype.registerDecorationType=function(n,d,S,k){var we=this._decorationOptionProviders.get(n);if(!we){var We=this._getOrCreateStyleSheet(k),Xe={styleSheet:We.styleSheet,key:n,parentTypeKey:S,options:d||Object.create(null)};S?we=new io(this._themeService,We,Xe):we=new yo(this._themeService,We,Xe),this._decorationOptionProviders.set(n,we)}we.refCount++},r.prototype.removeDecorationType=function(n){var d=this._decorationOptionProviders.get(n);d&&(d.refCount--,d.refCount<=0&&(this._decorationOptionProviders.delete(n),d.dispose(),this.listCodeEditors().forEach(function(S){return S.removeDecorations(n)})))},r.prototype.resolveDecorationOptions=function(n,d){var S=this._decorationOptionProviders.get(n);if(!S)throw new Error("Unknown decoration type key: "+n);return S.getOptions(this,d)},r=kt([Bt(0,Ln.c)],r),r}(wt),io=function(){function a(r,n,d){this._styleSheet=n,this._styleSheet.ref(),this._parentTypeKey=d.parentTypeKey,this.refCount=0,this._beforeContentRules=new bo(3,d,r),this._afterContentRules=new bo(4,d,r)}return a.prototype.getOptions=function(r,n){var d=r.resolveDecorationOptions(this._parentTypeKey,!0);return this._beforeContentRules&&(d.beforeContentClassName=this._beforeContentRules.className),this._afterContentRules&&(d.afterContentClassName=this._afterContentRules.className),d},a.prototype.dispose=function(){this._beforeContentRules&&(this._beforeContentRules.dispose(),this._beforeContentRules=null),this._afterContentRules&&(this._afterContentRules.dispose(),this._afterContentRules=null),this._styleSheet.unref()},a}(),yo=function(){function a(r,n,d){var S=this;this._disposables=new Rt.b,this._styleSheet=n,this._styleSheet.ref(),this.refCount=0;var k=function(It){var Wt=new bo(It,d,r);return S._disposables.add(Wt),Wt.hasContent?Wt.className:void 0},we=function(It){var Wt=new bo(It,d,r);return S._disposables.add(Wt),Wt.hasContent?{className:Wt.className,hasLetterSpacing:Wt.hasLetterSpacing}:null};this.className=k(0);var We=we(1);We&&(this.inlineClassName=We.className,this.inlineClassNameAffectsLetterSpacing=We.hasLetterSpacing),this.beforeContentClassName=k(3),this.afterContentClassName=k(4),this.glyphMarginClassName=k(2);var Xe=d.options;this.isWholeLine=Boolean(Xe.isWholeLine),this.stickiness=Xe.rangeBehavior;var Qe=Xe.light&&Xe.light.overviewRulerColor||Xe.overviewRulerColor,yt=Xe.dark&&Xe.dark.overviewRulerColor||Xe.overviewRulerColor;(typeof Qe!="undefined"||typeof yt!="undefined")&&(this.overviewRuler={color:Qe||yt,darkColor:yt||Qe,position:Xe.overviewRulerLane||pt.d.Center})}return a.prototype.getOptions=function(r,n){return n?{inlineClassName:this.inlineClassName,beforeContentClassName:this.beforeContentClassName,afterContentClassName:this.afterContentClassName,className:this.className,glyphMarginClassName:this.glyphMarginClassName,isWholeLine:this.isWholeLine,overviewRuler:this.overviewRuler,stickiness:this.stickiness}:this},a.prototype.dispose=function(){this._disposables.dispose(),this._styleSheet.unref()},a}(),po={color:"color:{0} !important;",opacity:"opacity:{0};",backgroundColor:"background-color:{0};",outline:"outline:{0};",outlineColor:"outline-color:{0};",outlineStyle:"outline-style:{0};",outlineWidth:"outline-width:{0};",border:"border:{0};",borderColor:"border-color:{0};",borderRadius:"border-radius:{0};",borderSpacing:"border-spacing:{0};",borderStyle:"border-style:{0};",borderWidth:"border-width:{0};",fontStyle:"font-style:{0};",fontWeight:"font-weight:{0};",textDecoration:"text-decoration:{0};",cursor:"cursor:{0};",letterSpacing:"letter-spacing:{0};",gutterIconPath:"background:{0} center center no-repeat;",gutterIconSize:"background-size:{0};",contentText:"content:'{0}';",contentIconPath:"content:{0};",margin:"margin:{0};",width:"width:{0};",height:"height:{0};"},bo=function(){function a(r,n,d){var S=this;this._theme=d.getTheme(),this._ruleType=r,this._providerArgs=n,this._usesThemeColors=!1,this._hasContent=!1,this._hasLetterSpacing=!1;var k=vo.getClassName(this._providerArgs.key,r);this._providerArgs.parentTypeKey&&(k=k+" "+vo.getClassName(this._providerArgs.parentTypeKey,r)),this._className=k,this._unThemedSelector=vo.getSelector(this._providerArgs.key,this._providerArgs.parentTypeKey,r),this._buildCSS(),this._usesThemeColors?this._themeListener=d.onThemeChange(function(we){S._theme=d.getTheme(),S._removeCSS(),S._buildCSS()}):this._themeListener=null}return a.prototype.dispose=function(){this._hasContent&&(this._removeCSS(),this._hasContent=!1),this._themeListener&&(this._themeListener.dispose(),this._themeListener=null)},Object.defineProperty(a.prototype,"hasContent",{get:function(){return this._hasContent},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"hasLetterSpacing",{get:function(){return this._hasLetterSpacing},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"className",{get:function(){return this._className},enumerable:!0,configurable:!0}),a.prototype._buildCSS=function(){var r=this._providerArgs.options,n,d,S;switch(this._ruleType){case 0:n=this.getCSSTextForModelDecorationClassName(r),d=this.getCSSTextForModelDecorationClassName(r.light),S=this.getCSSTextForModelDecorationClassName(r.dark);break;case 1:n=this.getCSSTextForModelDecorationInlineClassName(r),d=this.getCSSTextForModelDecorationInlineClassName(r.light),S=this.getCSSTextForModelDecorationInlineClassName(r.dark);break;case 2:n=this.getCSSTextForModelDecorationGlyphMarginClassName(r),d=this.getCSSTextForModelDecorationGlyphMarginClassName(r.light),S=this.getCSSTextForModelDecorationGlyphMarginClassName(r.dark);break;case 3:n=this.getCSSTextForModelDecorationContentClassName(r.before),d=this.getCSSTextForModelDecorationContentClassName(r.light&&r.light.before),S=this.getCSSTextForModelDecorationContentClassName(r.dark&&r.dark.before);break;case 4:n=this.getCSSTextForModelDecorationContentClassName(r.after),d=this.getCSSTextForModelDecorationContentClassName(r.light&&r.light.after),S=this.getCSSTextForModelDecorationContentClassName(r.dark&&r.dark.after);break;default:throw new Error("Unknown rule type: "+this._ruleType)}var k=this._providerArgs.styleSheet.sheet,we=!1;n.length>0&&(k.insertRule(this._unThemedSelector+" {"+n+"}",0),we=!0),d.length>0&&(k.insertRule(".vs"+this._unThemedSelector+" {"+d+"}",0),we=!0),S.length>0&&(k.insertRule(".vs-dark"+this._unThemedSelector+", .hc-black"+this._unThemedSelector+" {"+S+"}",0),we=!0),this._hasContent=we},a.prototype._removeCSS=function(){ve.O(this._unThemedSelector,this._providerArgs.styleSheet)},a.prototype.getCSSTextForModelDecorationClassName=function(r){if(!r)return"";var n=[];return this.collectCSSText(r,["backgroundColor"],n),this.collectCSSText(r,["outline","outlineColor","outlineStyle","outlineWidth"],n),this.collectBorderSettingsCSSText(r,n),n.join("")},a.prototype.getCSSTextForModelDecorationInlineClassName=function(r){if(!r)return"";var n=[];return this.collectCSSText(r,["fontStyle","fontWeight","textDecoration","cursor","color","opacity","letterSpacing"],n),r.letterSpacing&&(this._hasLetterSpacing=!0),n.join("")},a.prototype.getCSSTextForModelDecorationContentClassName=function(r){if(!r)return"";var n=[];if(typeof r!="undefined"){if(this.collectBorderSettingsCSSText(r,n),typeof r.contentIconPath!="undefined"&&n.push(to.r(po.contentIconPath,ve.r(z.a.revive(r.contentIconPath)))),typeof r.contentText=="string"){var d=r.contentText.match(/^.*$/m)[0],S=d.replace(/['\\]/g,"\\$&");n.push(to.r(po.contentText,S))}this.collectCSSText(r,["fontStyle","fontWeight","textDecoration","color","opacity","backgroundColor","margin"],n),this.collectCSSText(r,["width","height"],n)&&n.push("display:inline-block;")}return n.join("")},a.prototype.getCSSTextForModelDecorationGlyphMarginClassName=function(r){if(!r)return"";var n=[];return typeof r.gutterIconPath!="undefined"&&(n.push(to.r(po.gutterIconPath,ve.r(z.a.revive(r.gutterIconPath)))),typeof r.gutterIconSize!="undefined"&&n.push(to.r(po.gutterIconSize,r.gutterIconSize))),n.join("")},a.prototype.collectBorderSettingsCSSText=function(r,n){return this.collectCSSText(r,["border","borderColor","borderRadius","borderSpacing","borderStyle","borderWidth"],n)?(n.push(to.r("box-sizing: border-box;")),!0):!1},a.prototype.collectCSSText=function(r,n,d){for(var S=d.length,k=0,we=n;k =1&&a[0].token==="";){var k=a.shift();k.fontStyle!==-1&&(n=k.fontStyle),k.foreground!==null&&(d=k.foreground),k.background!==null&&(S=k.background)}for(var we=new ln,We=0,Xe=r;We >>0,this._cache.set(n,d)}return(d|r<<0)>>>0},a}(),cn=/\b(comment|string|regex|regexp)\b/;function Wn(a){var r=a.match(cn);if(!r)return 0;switch(r[1]){case"comment":return 1;case"string":return 2;case"regex":return 4;case"regexp":return 4}throw new Error("Unexpected match for standard token type!")}function Fn(a,r){return a r?1:0}var Ui=function(){function a(r,n,d){this._fontStyle=r,this._foreground=n,this._background=d,this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0}return a.prototype.clone=function(){return new a(this._fontStyle,this._foreground,this._background)},a.prototype.acceptOverwrite=function(r,n,d){r!==-1&&(this._fontStyle=r),n!==0&&(this._foreground=n),d!==0&&(this._background=d),this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0},a}(),fr=function(){function a(r){this._mainRule=r,this._children=new Map}return a.prototype.match=function(r){if(r==="")return this._mainRule;var n=r.indexOf("."),d,S;n===-1?(d=r,S=""):(d=r.substring(0,n),S=r.substring(n+1));var k=this._children.get(d);return typeof k!="undefined"?k.match(S):this._mainRule},a.prototype.insert=function(r,n,d,S){if(r===""){this._mainRule.acceptOverwrite(n,d,S);return}var k=r.indexOf("."),we,We;k===-1?(we=r,We=""):(we=r.substring(0,k),We=r.substring(k+1));var Xe=this._children.get(we);typeof Xe=="undefined"&&(Xe=new a(this._mainRule.clone()),this._children.set(we,Xe)),Xe.insert(We,n,d,S)},a}();function Hr(a){for(var r=[],n=1,d=a.length;n 0?(this.id=d+" "+r,this.themeName=r):(this.id=d,this.themeName=d),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}return Object.defineProperty(a.prototype,"base",{get:function(){return this.themeData.base},enumerable:!0,configurable:!0}),a.prototype.notifyBaseUpdated=function(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)},a.prototype.getColors=function(){if(!this.colors){var r=new Map;for(var n in this.themeData.colors)r.set(n,Ko.a.fromHex(this.themeData.colors[n]));if(this.themeData.inherit){var d=Vs(this.themeData.base);for(var n in d.colors)r.has(n)||r.set(n,Ko.a.fromHex(d.colors[n]))}this.colors=r}return this.colors},a.prototype.getColor=function(r,n){var d=this.getColors().get(r);return d||(n!==!1?this.getDefault(r):void 0)},a.prototype.getDefault=function(r){var n=this.defaultColors[r];return n||(n=Ba.resolveDefaultColor(r,this),this.defaultColors[r]=n,n)},a.prototype.defines=function(r){return Object.prototype.hasOwnProperty.call(this.getColors(),r)},Object.defineProperty(a.prototype,"type",{get:function(){switch(this.base){case Mi:return"light";case mr:return"hc";default:return"dark"}},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"tokenTheme",{get:function(){if(!this._tokenTheme){var r=[],n=[];if(this.themeData.inherit){var d=Vs(this.themeData.base);r=d.rules,d.encodedTokensColors&&(n=d.encodedTokensColors)}r=r.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(n=this.themeData.encodedTokensColors),this._tokenTheme=Nn.createFromRawTokenTheme(r,n)}return this._tokenTheme},enumerable:!0,configurable:!0}),a.prototype.getTokenStyleMetadata=function(r,n){return},a}();function Hs(a){return a===Mi||a===Vr||a===mr}function Vs(a){switch(a){case Mi:return Pa;case Vr:return ka;case mr:return Fa}}function zs(a){var r=Vs(a);return new la(a,r)}var Ha=function(a){Wa(r,a);function r(){var n=a.call(this)||this;return n._onThemeChange=n._register(new R.a),n.onThemeChange=n._onThemeChange.event,n._environment=Object.create(null),n._knownThemes=new Map,n._knownThemes.set(Mi,zs(Mi)),n._knownThemes.set(Vr,zs(Vr)),n._knownThemes.set(mr,zs(mr)),n._css="",n._globalStyleElement=null,n._styleElements=[],n.setTheme(Mi),n}return r.prototype.registerEditorContainer=function(n){return ve.N(n)?this._registerShadowDomContainer(n):this._registerRegularEditorContainer()},r.prototype._registerRegularEditorContainer=function(){return this._globalStyleElement||(this._globalStyleElement=ve.w(),this._globalStyleElement.className="monaco-colors",this._globalStyleElement.innerHTML=this._css,this._styleElements.push(this._globalStyleElement)),Rt.a.None},r.prototype._registerShadowDomContainer=function(n){var d=this,S=ve.w(n);return S.className="monaco-colors",S.innerHTML=this._css,this._styleElements.push(S),{dispose:function(){for(var k=0;k =0;We--)(we=a[We])&&(k=(S<3?we(k):S>3?we(r,n,k):we(r,n))||k);return S>3&&k&&Object.defineProperty(r,n,k),k},za=function(a,r){return function(n,d){r(n,d,a)}},Kr="data-keybinding-context",Ks=function(){function a(r,n){this._id=r,this._parent=n,this._value=Object.create(null),this._value._contextId=r}return a.prototype.setValue=function(r,n){return this._value[r]!==n?(this._value[r]=n,!0):!1},a.prototype.removeValue=function(r){return r in this._value?(delete this._value[r],!0):!1},a.prototype.getValue=function(r){var n=this._value[r];return typeof n=="undefined"&&this._parent?this._parent.getValue(r):n},a}(),Gr=function(a){zr(r,a);function r(){return a.call(this,-1,null)||this}return r.prototype.setValue=function(n,d){return!1},r.prototype.removeValue=function(n){return!1},r.prototype.getValue=function(n){return},r.INSTANCE=new r,r}(Ks),Ka=function(a){zr(r,a);function r(n,d,S){var k=a.call(this,n,null)||this;return k._configurationService=d,k._values=new Map,k._listener=k._configurationService.onDidChangeConfiguration(function(we){if(we.source===6){var We=Object(Qn.d)(k._values);k._values.clear(),S.fire(new ca(We))}else{for(var Xe=[],Qe=0,yt=we.affectedKeys;Qe =0;We--)(we=a[We])&&(k=(S<3?we(k):S>3?we(r,n,k):we(r,n))||k);return S>3&&k&&Object.defineProperty(r,n,k),k},pr=function(a,r){return function(n,d){r(n,d,a)}},nl=function(a){tl(r,a);function r(n,d,S,k,we){var We=a.call(this)||this;return We._onDidContextMenu=We._register(new R.a),We.contextMenuHandler=new el(S,n,d,k,we),We}return r.prototype.configure=function(n){this.contextMenuHandler.configure(n)},r.prototype.showContextMenu=function(n){this.contextMenuHandler.showContextMenu(n),this._onDidContextMenu.fire()},r=ol([pr(0,Gs.a),pr(1,Hn.a),pr(2,Xn.b),pr(3,ni.a),pr(4,Ln.c)],r),r}(Rt.a),nc=e("TT2d"),il=e("nuFA"),rl=e("CjF5"),sl=function(){var a=function(r,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,S){d.__proto__=S}||function(d,S){for(var k in S)S.hasOwnProperty(k)&&(d[k]=S[k])},a(r,n)};return function(r,n){a(r,n);function d(){this.constructor=r}r.prototype=n===null?Object.create(n):(d.prototype=n.prototype,new d)}}();function fa(a,r,n){var d=n.offset+n.size;return n.position===0?r<=a-d?d:r<=n.offset?n.offset-r:Math.max(a-r,0):r<=n.offset?n.offset-r:r<=a-d?d:0}var al=function(a){sl(r,a);function r(n){var d=a.call(this)||this;return d.container=null,d.delegate=null,d.toDisposeOnClean=Rt.a.None,d.toDisposeOnSetContainer=Rt.a.None,d.view=ve.a(".context-view"),ve.J(d.view),d.setContainer(n),d._register(Object(Rt.h)(function(){return d.setContainer(null)})),d}return r.prototype.setContainer=function(n){var d=this;if(this.container&&(this.toDisposeOnSetContainer.dispose(),this.container.removeChild(this.view),this.container=null),n){this.container=n,this.container.appendChild(this.view);var S=new Rt.b;r.BUBBLE_UP_EVENTS.forEach(function(k){S.add(ve.o(d.container,k,function(we){d.onDOMEvent(we,!1)}))}),r.BUBBLE_DOWN_EVENTS.forEach(function(k){S.add(ve.o(d.container,k,function(we){d.onDOMEvent(we,!0)},!0))}),this.toDisposeOnSetContainer=S}},r.prototype.show=function(n){this.isVisible()&&this.hide(),ve.t(this.view),this.view.className="context-view",this.view.style.top="0px",this.view.style.left="0px",ve.X(this.view),this.toDisposeOnClean=n.render(this.view)||Rt.a.None,this.delegate=n,this.doLayout(),this.delegate.focus&&this.delegate.focus()},r.prototype.layout=function(){if(!this.isVisible())return;if(this.delegate.canRelayout===!1&&!(ht.c&&rl.a.pointerEvents)){this.hide();return}this.delegate.layout&&this.delegate.layout(),this.doLayout()},r.prototype.doLayout=function(){if(!this.isVisible())return;var n=this.delegate.getAnchor(),d;if(ve.L(n)){var S=ve.C(n);d={top:S.top,left:S.left,width:S.width,height:S.height}}else d={top:n.y,left:n.x,width:n.width||1,height:n.height||2};var k=ve.H(this.view),we=ve.G(this.view),We=this.delegate.anchorPosition||0,Xe=this.delegate.anchorAlignment||0,Qe={offset:d.top-window.pageYOffset,size:d.height,position:We===0?0:1},yt;Xe===0?yt={offset:d.left,size:0,position:0}:yt={offset:d.left+d.width,size:0,position:1};var It=fa(window.innerHeight,we,Qe)+window.pageYOffset;il.a.intersects({start:It,end:It+we},{start:Qe.offset,end:Qe.offset+Qe.size})&&(yt.size=d.width,Xe===1&&(yt.offset=d.left));var Wt=fa(window.innerWidth,k,yt);ve.Q(this.view,"top","bottom","left","right"),ve.f(this.view,We===0?"bottom":"top"),ve.f(this.view,Xe===0?"left":"right");var Pt=ve.C(this.container);this.view.style.top=It-Pt.top+"px",this.view.style.left=Wt-Pt.left+"px",this.view.style.width="initial"},r.prototype.hide=function(n){var d=this.delegate;this.delegate=null,(d==null?void 0:d.onHide)&&d.onHide(n),this.toDisposeOnClean.dispose(),ve.J(this.view)},r.prototype.isVisible=function(){return!!this.delegate},r.prototype.onDOMEvent=function(n,d){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(n,document.activeElement):d&&!ve.K(n.target,this.container)&&this.hide())},r.prototype.dispose=function(){this.hide(),a.prototype.dispose.call(this)},r.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"],r.BUBBLE_DOWN_EVENTS=["click"],r}(Rt.a),ma=Object(Rn.c)("layoutService"),ll=function(){var a=function(r,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,S){d.__proto__=S}||function(d,S){for(var k in S)S.hasOwnProperty(k)&&(d[k]=S[k])},a(r,n)};return function(r,n){a(r,n);function d(){this.constructor=r}r.prototype=n===null?Object.create(n):(d.prototype=n.prototype,new d)}}(),dl=function(a,r,n,d){var S=arguments.length,k=S<3?r:d===null?d=Object.getOwnPropertyDescriptor(r,n):d,we;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(a,r,n,d);else for(var We=a.length-1;We>=0;We--)(we=a[We])&&(k=(S<3?we(k):S>3?we(r,n,k):we(r,n))||k);return S>3&&k&&Object.defineProperty(r,n,k),k},cl=function(a,r){return function(n,d){r(n,d,a)}},ul=function(a){ll(r,a);function r(n){var d=a.call(this)||this;return d.layoutService=n,d.contextView=d._register(new al(n.container)),d.layout(),d._register(n.onLayout(function(){return d.layout()})),d}return r.prototype.setContainer=function(n){this.contextView.setContainer(n)},r.prototype.showContextView=function(n){this.contextView.show(n)},r.prototype.layout=function(){this.contextView.layout()},r.prototype.hideContextView=function(n){this.contextView.hide(n)},r=dl([cl(0,ma)],r),r}(Rt.a),hl=Object(Rn.c)("dialogService"),Xs=e("vl9R");function fl(a){return{data:a,incoming:Object.create(null),outgoing:Object.create(null)}}var ml=function(){function a(r){this._hashFn=r,this._nodes=Object.create(null)}return a.prototype.roots=function(){var r=[];return Object(Xs.c)(this._nodes,function(n){Object(Et.f)(n.value.outgoing)&&r.push(n.value)}),r},a.prototype.insertEdge=function(r,n){var d=this.lookupOrInsertNode(r),S=this.lookupOrInsertNode(n);d.outgoing[this._hashFn(n)]=S,S.incoming[this._hashFn(r)]=d},a.prototype.removeNode=function(r){var n=this._hashFn(r);delete this._nodes[n],Object(Xs.c)(this._nodes,function(d){delete d.value.outgoing[n],delete d.value.incoming[n]})},a.prototype.lookupOrInsertNode=function(r){var n=this._hashFn(r),d=this._nodes[n];return d||(d=fl(r),this._nodes[n]=d),d},a.prototype.isEmpty=function(){for(var r in this._nodes)return!1;return!0},a.prototype.toString=function(){var r=[];return Object(Xs.c)(this._nodes,function(n){r.push(n.key+", (incoming)["+Object.keys(n.value.incoming).join(", ")+"], (outgoing)["+Object.keys(n.value.outgoing).join(",")+"]")}),r.join(` `)},a}(),gr=e("r0BQ"),pa=function(){var a=function(r,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,S){d.__proto__=S}||function(d,S){for(var k in S)S.hasOwnProperty(k)&&(d[k]=S[k])},a(r,n)};return function(r,n){a(r,n);function d(){this.constructor=r}r.prototype=n===null?Object.create(n):(d.prototype=n.prototype,new d)}}(),Ys=function(){for(var a=0,r=0,n=arguments.length;r 0?S[0].index:n.length;if(n.length!==yt){console.warn("[createInstance] First service dependency of "+r.name+" at position "+(yt+1)+" conflicts with "+n.length+" static arguments");var It=yt-n.length;It>0?n=n.concat(new Array(It)):n=n.slice(0,yt)}return new(r.bind.apply(r,Ys([void 0],Ys(n,k))))},a.prototype._setServiceInstance=function(r,n){if(this._services.get(r)instanceof gr.a)this._services.set(r,n);else if(this._parent)this._parent._setServiceInstance(r,n);else throw new Error("illegalState - setting UNKNOWN service instance")},a.prototype._getServiceInstanceOrDescriptor=function(r){var n=this._services.get(r);return!n&&this._parent?this._parent._getServiceInstanceOrDescriptor(r):n},a.prototype._getOrCreateServiceInstance=function(r,n){var d=this._getServiceInstanceOrDescriptor(r);return d instanceof gr.a?this._createAndCacheServiceInstance(r,d,n.branch(r,!0)):(n.branch(r,!1),d)},a.prototype._createAndCacheServiceInstance=function(r,n,d){for(var S=new ml(function(co){return co.id.toString()}),k=0,we=[{id:r,desc:n,_trace:d}];we.length;){var We=we.pop();if(S.lookupOrInsertNode(We),k++>150)throw new va(S);for(var Xe=0,Qe=Rn.b.getServiceDependencies(We.desc.ctor);Xe "+Wt);var eo=d(k+1,ro);eo&&We.push(eo)}else We.push(Xe+"uses -> "+Wt)}return We.join(` `)}var S=[(this.type===0?"CREATE":"CALL")+" "+this.name,""+d(1,this),"DONE, took "+r.toFixed(2)+"ms (grand total "+a._totals.toFixed(2)+"ms)"];(r>2||n)&&console.log(S.join(` `))},a._None=new(function(r){pa(n,r);function n(){return r.call(this,-1,null)||this}return n.prototype.stop=function(){},n.prototype.branch=function(){return this},n}(a)),a._totals=0,a}(),gl=e("R8sh"),ba=e("k9mg"),ei=e("tADe"),Di;(function(a){function r(S,k,we){return S[k]?S[k][we]:void 0}a.get=r;function n(S,k,we,We){S[k]||(S[k]=Object.create(null)),S[k][we]=We}a.set=n;function d(S,k,we){return S[k]&&S[k][we]?(delete S[k][we],Object(Et.f)(S[k])&&delete S[k],!0):!1}a.remove=d})(Di||(Di={}));var vl=function(){function a(r){this.errors=0,this.infos=0,this.warnings=0,this.unknowns=0,this._data=Object.create(null),this._service=r,this._subscription=r.onMarkerChanged(this._update,this)}return a.prototype.dispose=function(){this._subscription.dispose(),this._data=void 0},a.prototype._update=function(r){if(!this._data)return;for(var n=0,d=r;n 0?Xe:1,Qe=Qe>0?Qe:1,yt=yt>=Xe?yt:Xe,It=It>0?It:Qe,{resource:n,owner:r,code:S,severity:k,message:we,source:We,startLineNumber:Xe,startColumn:Qe,endLineNumber:yt,endColumn:It,relatedInformation:Wt,tags:Pt}):void 0},a.prototype.read=function(r){r===void 0&&(r=Object.create(null));var n=r.owner,d=r.resource,S=r.severities,k=r.take;if((!k||k<0)&&(k=-1),n&&d){var we=Di.get(this._byResource,d.toString(),n);if(we){for(var We=[],Xe=0,Qe=we;Xe 0&&It===k)break}}return We}else return[]}else if(!n&&!d){var We=[];for(var Wt in this._byResource)for(var Pt in this._byResource[Wt])for(var ro=0,eo=this._byResource[Wt][Pt];ro 0&&It===k)return We}}return We}else{var Gt=n?this._byOwner[n]:d?this._byResource[d.toString()]:void 0;if(!Gt)return[];var We=[];for(var Jt in Gt)for(var co=0,So=Gt[Jt];co 0&&It===k)return We}}return We}},a._accept=function(r,n){return n===void 0||(n&r.severity)===r.severity},a._debouncer=function(r,n){r||(a._dedupeMap=Object.create(null),r=[]);for(var d=0,S=n;d =0;We--)(we=a[We])&&(k=(S<3?we(k):S>3?we(r,n,k):we(r,n))||k);return S>3&&k&&Object.defineProperty(r,n,k),k},Qs=function(a,r){return function(n,d){r(n,d,a)}},bl=function(){function a(r){this._commandService=r}return a.prototype.createMenu=function(r,n){return new Cl(r,this._commandService,n)},a=Ea([Qs(0,J.b)],a),a}(),Cl=function(){function a(r,n,d){var S=this;this._id=r,this._commandService=n,this._contextKeyService=d,this._onDidChange=new R.a,this._dispoables=new Rt.b,this._menuGroups=[],this._contextKeys=new Set,this._build(),this._dispoables.add(R.b.debounce(R.b.filter(Kn.c.onDidChangeMenu,function(k){return k===S._id}),function(){},50)(this._build,this)),this._dispoables.add(R.b.debounce(this._contextKeyService.onDidChangeContext,function(k,we){return k||we.affectsSome(S._contextKeys)},50)(function(k){return k&&S._onDidChange.fire(void 0)},this))}return a.prototype.dispose=function(){this._dispoables.dispose(),this._onDidChange.dispose()},a.prototype._build=function(){this._menuGroups.length=0,this._contextKeys.clear();var r=Kn.c.getMenuItems(this._id),n;r.sort(a._compareMenuItems);for(var d=0,S=r;d 0&&n.push([we,Xe])}return n},a._fillInKbExprKeys=function(r,n){if(r)for(var d=0,S=r.keys();d We?1:a._compareTitles(Object(Kn.e)(r)?r.command.title:r.title,Object(Kn.e)(n)?n.command.title:n.title)},a._compareTitles=function(r,n){var d=typeof r=="string"?r:r.value,S=typeof n=="string"?n:n.value;return d.localeCompare(S)},a=Ea([Qs(1,J.b),Qs(2,_n.c)],a),a}(),El=e("79sc"),wa=function(){var a=function(r,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,S){d.__proto__=S}||function(d,S){for(var k in S)S.hasOwnProperty(k)&&(d[k]=S[k])},a(r,n)};return function(r,n){a(r,n);function d(){this.constructor=r}r.prototype=n===null?Object.create(n):(d.prototype=n.prototype,new d)}}(),wl=function(a,r,n,d){var S=arguments.length,k=S<3?r:d===null?d=Object.getOwnPropertyDescriptor(r,n):d,we;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(a,r,n,d);else for(var We=a.length-1;We>=0;We--)(we=a[We])&&(k=(S<3?we(k):S>3?we(r,n,k):we(r,n))||k);return S>3&&k&&Object.defineProperty(r,n,k),k},_a=function(a,r){return function(n,d){r(n,d,a)}};function vr(a){return a.toString()}var _l=function(a){wa(r,a);function r(n){var d=a.call(this)||this;return d.model=n,d._markersData=new Map,d._register(Object(Rt.h)(function(){d.model.deltaDecorations(Object(Qn.d)(d._markersData),[]),d._markersData.clear()})),d}return r.prototype.update=function(n,d){var S=Object(Qn.d)(this._markersData);this._markersData.clear();for(var k=this.model.deltaDecorations(S,d),we=0;we =we?S=new W.a(S.startLineNumber,we-1,S.endLineNumber,we):S=new W.a(S.startLineNumber,S.startColumn,S.endLineNumber,S.endColumn+1))}}else if(d.endColumn===Number.MAX_VALUE&&d.startColumn===1&&S.startLineNumber===S.endLineNumber){var We=n.getLineFirstNonWhitespaceColumn(d.startLineNumber);We =0:!1},r=wl([_a(0,Ae.a),_a(1,ei.b)],r),r}(Rt.a),Ll=e("9fML"),Ml=function(){var a=function(r,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,S){d.__proto__=S}||function(d,S){for(var k in S)S.hasOwnProperty(k)&&(d[k]=S[k])},a(r,n)};return function(r,n){a(r,n);function d(){this.constructor=r}r.prototype=n===null?Object.create(n):(d.prototype=n.prototype,new d)}}(),Dl=function(a,r,n,d){var S=arguments.length,k=S<3?r:d===null?d=Object.getOwnPropertyDescriptor(r,n):d,we;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(a,r,n,d);else for(var We=a.length-1;We>=0;We--)(we=a[We])&&(k=(S<3?we(k):S>3?we(r,n,k):we(r,n))||k);return S>3&&k&&Object.defineProperty(r,n,k),k},Sa=function(a,r){return function(n,d){r(n,d,a)}},Ol=function(a){Ml(r,a);function r(n,d){var S=a.call(this)||this;S._contextKeyService=n,S._configurationService=d,S._accessibilitySupport=0,S._onDidChangeScreenReaderOptimized=new R.a,S._accessibilityModeEnabledContext=mi.a.bindTo(S._contextKeyService);var k=function(){return S._accessibilityModeEnabledContext.set(S.isScreenReaderOptimized())};return S._register(S._configurationService.onDidChangeConfiguration(function(we){we.affectsConfiguration("editor.accessibilitySupport")&&(k(),S._onDidChangeScreenReaderOptimized.fire())})),k(),S.onDidChangeScreenReaderOptimized(function(){return k()}),S}return Object.defineProperty(r.prototype,"onDidChangeScreenReaderOptimized",{get:function(){return this._onDidChangeScreenReaderOptimized.event},enumerable:!0,configurable:!0}),r.prototype.isScreenReaderOptimized=function(){var n=this._configurationService.getValue("editor.accessibilitySupport");return n==="on"||n==="auto"&&this._accessibilitySupport===2},r.prototype.getAccessibilitySupport=function(){return this._accessibilitySupport},r=Dl([Sa(0,_n.c),Sa(1,On.a)],r),r}(Rt.a),Tl=function(){var a=function(r,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,S){d.__proto__=S}||function(d,S){for(var k in S)S.hasOwnProperty(k)&&(d[k]=S[k])},a(r,n)};return function(r,n){a(r,n);function d(){this.constructor=r}r.prototype=n===null?Object.create(n):(d.prototype=n.prototype,new d)}}(),nn;(function(a){var r=new wi.a,n=function(){function We(Xe,Qe){this._serviceId=Xe,this._factory=Qe,this._value=null}return Object.defineProperty(We.prototype,"id",{get:function(){return this._serviceId},enumerable:!0,configurable:!0}),We.prototype.get=function(Xe){if(!this._value){if(Xe&&(this._value=Xe[this._serviceId.toString()]),this._value||(this._value=this._factory(Xe)),!this._value)throw new Error("Service "+this._serviceId+" is missing!");r.set(this._serviceId,this._value)}return this._value},We}();a.LazyStaticService=n;var d=[];function S(We,Xe){var Qe=new n(We,Xe);return d.push(Qe),Qe}function k(We){for(var Xe=new wi.a,Qe=0,yt=Object(Ll.a)();Qe =0&&n<5;)n++,r=r.replace(/@(\w+)/g,function(d,S){var k="";if(typeof a[S]=="string")k=a[S];else if(a[S]&&a[S]instanceof RegExp)k=a[S].source;else throw a[S]===void 0?Oo(a,"language definition does not contain attribute '"+S+"', used at: "+r):Oo(a,"attribute reference '"+S+"' must be a string, used at: "+r);return To(k)?"":"(?:"+k+")"});return new RegExp(r,a.ignoreCase?"i":"")}function od(a,r,n,d){if(d<0)return a;if(d =100){d=d-100;var S=n.split(".");if(S.unshift(n),d =0&&(d.tokenSubst=!0),typeof n.bracket=="string")if(n.bracket==="@open")d.bracket=1;else if(n.bracket==="@close")d.bracket=-1;else throw Oo(a,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+r);if(n.next){if(typeof n.next!="string")throw Oo(a,"the next state must be a string value in rule: "+r);var S=n.next;if(!/^(@pop|@push|@popall)$/.test(S)&&(S[0]==="@"&&(S=S.substr(1)),S.indexOf("$")<0&&!hn(a,Lo(a,S,"",[],""))))throw Oo(a,"the next state '"+n.next+"' is not defined in rule: "+r);d.next=S}return typeof n.goBack=="number"&&(d.goBack=n.goBack),typeof n.switchTo=="string"&&(d.switchTo=n.switchTo),typeof n.log=="string"&&(d.log=n.log),typeof n.nextEmbedded=="string"&&(d.nextEmbedded=n.nextEmbedded,a.usesEmbedded=!0),d}else if(Array.isArray(n)){for(var k=[],we=0,We=n.length;we 0&&d[0]==="^",this.name=this.name+": "+d,this.regex=$s(r,"^(?:"+(this.matchOnlyAtLineStart?d.substr(1):d)+")")},a.prototype.setAction=function(r,n){this.action=Js(r,this.name,n)},a}();function rd(a,r){if(!r||typeof r!="object")throw new Error("Monarch: expecting a language definition object");var n={};n.languageId=a,n.noThrow=!1,n.maxStack=100,n.start=typeof r.start=="string"?r.start:null,n.ignoreCase=Da(r.ignoreCase,!1),n.tokenPostfix=Oa(r.tokenPostfix,"."+n.languageId),n.defaultToken=Oa(r.defaultToken,"source"),n.usesEmbedded=!1;var d=r;d.languageId=a,d.ignoreCase=n.ignoreCase,d.noThrow=n.noThrow,d.usesEmbedded=n.usesEmbedded,d.stateNames=r.tokenizer,d.defaultToken=n.defaultToken;function S(Wt,Pt,ro){for(var eo=0,Gt=ro;eo =1&&Jt.length<=3)if(So.setRegex(d,Jt[0]),Jt.length>=3)if(typeof Jt[1]=="string")So.setAction(d,{token:Jt[1],next:Jt[2]});else if(typeof Jt[1]=="object"){var xo=Jt[1];xo.next=Jt[2],So.setAction(d,xo)}else throw Oo(n,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+Wt);else So.setAction(d,Jt[1]);else{if(!Jt.regex)throw Oo(n,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+Wt);Jt.name&&(typeof Jt.name=="string"&&(So.name=Jt.name)),Jt.matchOnlyAtStart&&(So.matchOnlyAtLineStart=Da(Jt.matchOnlyAtLineStart,!1)),So.setRegex(d,Jt.regex),So.setAction(d,Jt.action)}Pt.push(So)}}}if(!r.tokenizer||typeof r.tokenizer!="object")throw Oo(n,"a language definition must define the 'tokenizer' attribute as an object");n.tokenizer=[];for(var k in r.tokenizer)if(r.tokenizer.hasOwnProperty(k)){n.start||(n.start=k);var we=r.tokenizer[k];n.tokenizer[k]=new Array,S("tokenizer."+k,n.tokenizer[k],we)}if(n.usesEmbedded=d.usesEmbedded,r.brackets){if(!Array.isArray(r.brackets))throw Oo(n,"the 'brackets' attribute must be defined as an array")}else r.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];for(var We=[],Xe=0,Qe=r.brackets;Xe 0&&k[we-1]===It)continue;var Wt=yt.startIndex;Xe===0?Wt=0:Wt 0?(v?g=(g+1)%u:g=(g+u-1)%u,C.children[g]):(g=C.parent.groups.indexOf(C),v?(g=(g+1)%s,C.parent.groups[g].children[0]):(g=(g+s-1)%s,C.parent.groups[g].children[C.parent.groups[g].children.length-1]))},w.prototype.nearestReference=function(f,v){var C=this.references.map(function(g,u){return{idx:u,prefixLen:B.c(g.uri.toString(),f.toString()),offsetDist:Math.abs(g.range.startLineNumber-v.lineNumber)*100+Math.abs(g.range.startColumn-v.column)}}).sort(function(g,u){return g.prefixLen>u.prefixLen?-1:g.prefixLen u.offsetDist?1:0})[0];return C?this.references[C.idx]:void 0},w.prototype.referenceAt=function(f,v){for(var C=0,g=this.references;C 1?L=$.r(y.b.gotoLineLabelValidLineAndColumn,l.lineNumber,l.column):L=$.r(y.b.gotoLineLabelValidLine,l.lineNumber):l.lineNumber<1||l.lineNumber>(c?c.getLineCount():0)?L=$.r(y.b.gotoLineLabelEmptyWithLineLimit,c?c.getLineCount():0):L=$.r(y.b.gotoLineLabelEmptyWithLineAndColumnLimit,c?c.getLineMaxColumn(l.lineNumber):0),{position:l,isValid:_,label:L}},g.prototype.getLabel=function(){return this.parseResult.label},g.prototype.getAriaLabel=function(){var u=this.editor.getPosition(),s=u?u.lineNumber:0;return $.r(y.b.gotoLineAriaLabel,s,this.parseResult.label)},g.prototype.run=function(u,s){return u===1?this.runOpen():this.runPreview()},g.prototype.runOpen=function(){if(!this.parseResult.isValid)return!1;var u=this.toSelection();return this.editor.setSelection(u),this.editor.revealRangeInCenter(u,0),this.editor.focus(),!0},g.prototype.runPreview=function(){if(!this.parseResult.isValid)return this.decorator.clearDecorations(),!1;var u=this.toSelection();return this.editor.revealRangeInCenter(u,0),this.decorator.decorateLine(u,this.editor),!1},g.prototype.toSelection=function(){return new W.a(this.parseResult.position.lineNumber,this.parseResult.position.column,this.parseResult.position.lineNumber,this.parseResult.position.column)},g}(R.a),v=function(C){w(g,C);function g(){return C.call(this,y.b.gotoLineActionInput,{id:"editor.action.gotoLine",label:y.b.gotoLineActionLabel,alias:"Go to Line...",precondition:void 0,kbOpts:{kbExpr:x.a.focus,primary:2048|37,mac:{primary:256|37},weight:100}})||this}return g.prototype.run=function(u,s){var l=this;this._show(this.getController(s),{getModel:function(c){return new R.c([new f(c,s,l.getController(s))])},getAutoFocus:function(c){return{autoFocusFirstEntry:c.length>0}}})},g}(h.a);Object(z.f)(v)},ApJL:function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:function(){return e.e(296).then(e.bind(null,"AoeA"))}})},BEdG:function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xsl"],firstLine:"(\\<\\?xml.*)|(\\