(window.webpackJsonp=window.webpackJsonp||[]).push([[24],{"+N8g":function(wt,P,r){},"+aX+":function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:function(){return r.e(235).then(r.bind(null,"pHlb"))}})},"+qpR":function(wt,P,r){"use strict";r.d(P,"b",function(){return A}),r.d(P,"a",function(){return z});var I=r("mTMv"),oe=r("YK2C"),ne=r("bN5T"),N=r("S7i+"),F=function(){function _(f,p){this.chr=f,this.type=p,this.width=0}return _.prototype.fulfill=function(f){this.width=f},_}(),U=function(){function _(f,p){this._bareFontInfo=f,this._requests=p,this._container=null,this._testElements=null}return _.prototype.read=function(){this._createDomElements(),document.body.appendChild(this._container),this._readFromDomElements(),document.body.removeChild(this._container),this._container=null,this._testElements=null},_.prototype._createDomElements=function(){var f=document.createElement("div");f.style.position="absolute",f.style.top="-50000px",f.style.width="50000px";var p=document.createElement("div");p.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),p.style.fontWeight=this._bareFontInfo.fontWeight,p.style.fontSize=this._bareFontInfo.fontSize+"px",p.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,p.style.lineHeight=this._bareFontInfo.lineHeight+"px",p.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",f.appendChild(p);var g=document.createElement("div");g.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),g.style.fontWeight="bold",g.style.fontSize=this._bareFontInfo.fontSize+"px",g.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,g.style.lineHeight=this._bareFontInfo.lineHeight+"px",g.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",f.appendChild(g);var m=document.createElement("div");m.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),m.style.fontWeight=this._bareFontInfo.fontWeight,m.style.fontSize=this._bareFontInfo.fontSize+"px",m.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,m.style.lineHeight=this._bareFontInfo.lineHeight+"px",m.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",m.style.fontStyle="italic",f.appendChild(m);for(var w=[],B=0,H=this._requests;B.001){J=!1;break}}var _t=!0;J&&se.width!==me&&(_t=!1),se.width>ue.width&&(_t=!1);var Pt=I.b()>2e3;return new x.b({zoomLevel:I.c(),fontFamily:p.fontFamily,fontWeight:p.fontWeight,fontSize:p.fontSize,fontFeatureSettings:p.fontFeatureSettings,lineHeight:p.lineHeight,letterSpacing:p.letterSpacing,isMonospace:J,typicalHalfwidthCharacterWidth:w.width,typicalFullwidthCharacterWidth:B.width,canUseHalfwidthRightwardsArrow:_t,spaceWidth:H.width,middotWidth:fe.width,maxDigitWidth:ie},Pt)},f.INSTANCE=new f,f}(ne.a),z=function(_){K(f,_);function f(p,g,m,w){m===void 0&&(m=null);var B=_.call(this,p,g)||this;return B.accessibilityService=w,B._elementSizeObserver=B._register(new G.a(m,g.dimension,function(){return B._onReferenceDomElementSizeChanged()})),B._register(te.INSTANCE.onDidChange(function(){return B._onCSSBasedConfigurationChanged()})),B._validatedOptions.get(9)&&B._elementSizeObserver.startObserving(),B._register(I.o(function(H){return B._recomputeOptions()})),B._register(B.accessibilityService.onDidChangeScreenReaderOptimized(function(){return B._recomputeOptions()})),B._recomputeOptions(),B}return f.applyFontInfoSlow=function(p,g){p.style.fontFamily=g.getMassagedFontFamily(),p.style.fontWeight=g.fontWeight,p.style.fontSize=g.fontSize+"px",p.style.fontFeatureSettings=g.fontFeatureSettings,p.style.lineHeight=g.lineHeight+"px",p.style.letterSpacing=g.letterSpacing+"px"},f.applyFontInfo=function(p,g){p.setFontFamily(g.getMassagedFontFamily()),p.setFontWeight(g.fontWeight),p.setFontSize(g.fontSize),p.setFontFeatureSettings(g.fontFeatureSettings),p.setLineHeight(g.lineHeight),p.setLetterSpacing(g.letterSpacing)},f.prototype._onReferenceDomElementSizeChanged=function(){this._recomputeOptions()},f.prototype._onCSSBasedConfigurationChanged=function(){this._recomputeOptions()},f.prototype.observeReferenceElement=function(p){this._elementSizeObserver.observe(p)},f.prototype.dispose=function(){_.prototype.dispose.call(this)},f.prototype._getExtraEditorClassName=function(){var p="";return!I.k&&!I.n&&(p+="no-user-select "),N.e&&(p+="mac "),p},f.prototype._getEnvConfiguration=function(){return{extraEditorClassName:this._getExtraEditorClassName(),outerWidth:this._elementSizeObserver.getWidth(),outerHeight:this._elementSizeObserver.getHeight(),emptySelectionClipboard:I.m||I.h,pixelRatio:I.a(),zoomLevel:I.c(),accessibilitySupport:this.accessibilityService.isScreenReaderOptimized()?2:this.accessibilityService.getAccessibilitySupport()}},f.prototype.readConfiguration=function(p){return te.INSTANCE.readConfiguration(p)},f}(R.a)},"+yL2":function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:function(){return r.e(226).then(r.bind(null,"eFaw"))}})},"/1i4":function(wt,P,r){"use strict";r.r(P);var I=r("DqQN"),oe=r.n(I),ne=r("g9ht"),N=r("mTMv"),F=r("S7i+"),U=r("0pVj"),j=r("Whdu"),G=r("vQ3m"),R=r("2GBI"),E=function(){var m=function(B,H){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(re,he){re.__proto__=he}||function(re,he){for(var Ee in he)he.hasOwnProperty(Ee)&&(re[Ee]=he[Ee])},m(B,H)};return function(w,B){m(w,B);function H(){this.constructor=w}w.prototype=B===null?Object.create(B):(H.prototype=B.prototype,new H)}}(),x="9_cutcopypaste",K=F.f||document.queryCommandSupported("cut"),D=F.f||document.queryCommandSupported("copy"),A=D&&!N.f,te=F.f||!N.d&&document.queryCommandSupported("paste"),z=function(m){E(w,m);function w(B,H){var re=m.call(this,H)||this;return re.browserCommand=B,re}return w.prototype.runCommand=function(B,H){var re=B.get(G.a).getFocusedCodeEditor();if(re&&re.hasTextFocus()){re.trigger("keyboard",this.id,H);return}document.execCommand(this.browserCommand)},w.prototype.run=function(B,H){H.focus(),document.execCommand(this.browserCommand)},w}(j.b),_=function(m){E(w,m);function w(){var B=this,H={kbExpr:R.a.textInputFocus,primary:2048|54,win:{primary:2048|54,secondary:[1024|20]},weight:100};return F.f||(H=void 0),B=m.call(this,"cut",{id:"editor.action.clipboardCutAction",label:ne.a("actions.clipboard.cutLabel","Cut"),alias:"Cut",precondition:R.a.writable,kbOpts:H,contextMenuOpts:{group:x,order:1},menuOpts:{menuId:17,group:"2_ccp",title:ne.a({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1}})||this,B}return w.prototype.run=function(B,H){if(!H.hasModel())return;var re=H.getOption(25);if(!re&&H.getSelection().isEmpty())return;m.prototype.run.call(this,B,H)},w}(z),f=function(m){E(w,m);function w(){var B=this,H={kbExpr:R.a.textInputFocus,primary:2048|33,win:{primary:2048|33,secondary:[2048|19]},weight:100};return F.f||(H=void 0),B=m.call(this,"copy",{id:"editor.action.clipboardCopyAction",label:ne.a("actions.clipboard.copyLabel","Copy"),alias:"Copy",precondition:void 0,kbOpts:H,contextMenuOpts:{group:x,order:2},menuOpts:{menuId:17,group:"2_ccp",title:ne.a({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2}})||this,B}return w.prototype.run=function(B,H){if(!H.hasModel())return;var re=H.getOption(25);if(!re&&H.getSelection().isEmpty())return;m.prototype.run.call(this,B,H)},w}(z),p=function(m){E(w,m);function w(){var B=this,H={kbExpr:R.a.textInputFocus,primary:2048|52,win:{primary:2048|52,secondary:[1024|19]},weight:100};return F.f||(H=void 0),B=m.call(this,"paste",{id:"editor.action.clipboardPasteAction",label:ne.a("actions.clipboard.pasteLabel","Paste"),alias:"Paste",precondition:R.a.writable,kbOpts:H,contextMenuOpts:{group:x,order:3},menuOpts:{menuId:17,group:"2_ccp",title:ne.a({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:3}})||this,B}return w}(z),g=function(m){E(w,m);function w(){return m.call(this,"copy",{id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:ne.a("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:R.a.textInputFocus,primary:0,weight:100}})||this}return w.prototype.run=function(B,H){if(!H.hasModel())return;var re=H.getOption(25);if(!re&&H.getSelection().isEmpty())return;U.a.forceCopyWithSyntaxHighlighting=!0,m.prototype.run.call(this,B,H),U.a.forceCopyWithSyntaxHighlighting=!1},w}(z);K&&Object(j.f)(_),D&&Object(j.f)(f),te&&Object(j.f)(p),A&&Object(j.f)(g)},"/L4v":function(wt,P,r){"use strict";r.d(P,"b",function(){return F}),r.d(P,"a",function(){return U});var I=r("yBOt"),oe=r("Q5rX"),ne=r("cqUj"),N={getInitialState:function(){return ne.c},tokenize2:function(R,E,x){return Object(ne.e)(0,R,E,x)}};function F(G,R){return R===void 0&&(R=N),j(G,R||N)}function U(G,R,E,x,K,D,A){for(var te="
",z=x,_=0,f=0,p=R.getCount();f0;)m+=A?" ":" ",B--;break;case 60:m+="<";break;case 62:m+=">";break;case 38:m+="&";break;case 0:m+="�";break;case 65279:case 8232:m+="\uFFFD";break;case 13:m+="​";break;case 32:m+=A?" ":" ";break;default:m+=String.fromCharCode(w)}}if(te+=''+m+"",g>K||z>=K)break}return te+="
",te}function j(G,R){for(var E='
',x=G.split(/\r\n|\r|\n/),K=R.getInitialState(),D=0,A=x.length;D0&&(E+="
");var z=R.tokenize2(te,K,0);oe.a.convertToEndOffset(z.tokens,te.length);for(var _=new oe.a(z.tokens,te),f=_.inflate(),p=0,g=0,m=f.getCount();g'+I.o(te.substring(p,B))+"",p=B}K=z.endState}return E+="
",E}},"/RM0":function(wt,P,r){"use strict";r.d(P,"a",function(){return x});var I=r("mTMv"),oe=r("Qun0"),ne=r("S7i+"),N=new Array(230),F=new Array(112);(function(){for(var K=0;K=0;B--)(w=z[B])&&(m=(g<3?w(m):g>3?w(_,f,m):w(_,f))||m);return g>3&&m&&Object.defineProperty(_,f,m),m},G=function(z,_){return function(f,p){_(f,p,z)}},R=function(){for(var z=0,_=0,f=arguments.length;_=0&&(g.splice(w,1),p._onDidChangeMenu.fire(_))}}},z.prototype.getMenuItems=function(_){var f=(this._menuItems.get(_)||[]).slice(0);return _===0&&this._appendImplicitItems(f),f},z.prototype._appendImplicitItems=function(_){for(var f=new Set,p=_.filter(function(re){return E(re)}),g=0,m=p;g/?";function oe(G){G===void 0&&(G="");for(var R="(-?\\d*\\.\\d\\w*)|([^",E=0,x=I;E=0)continue;R+="\\"+K}return R+="\\s]+)",new RegExp(R,"g")}var ne=oe();function N(G){var R=ne;if(G&&G instanceof RegExp)if(G.global)R=G;else{var E="g";G.ignoreCase&&(E+="i"),G.multiline&&(E+="m"),G.unicode&&(E+="u"),R=new RegExp(G.source,E)}return R.lastIndex=0,R}function F(G,R,E,x){var K=G-1-x,D=E.lastIndexOf(" ",K-1)+1;R.lastIndex=D;for(var A;A=R.exec(E);){var te=A.index||0;if(te<=K&&R.lastIndex>=K)return{word:A[0],startColumn:x+1+te,endColumn:x+1+R.lastIndex}}return null}function U(G,R,E,x){var K=G-1-x;R.lastIndex=0;for(var D;D=R.exec(E);){var A=D.index||0;if(A>K)return null;if(R.lastIndex>=K)return{word:D[0],startColumn:x+1+A,endColumn:x+1+R.lastIndex}}return null}function j(G,R,E,x){R.lastIndex=0;var K=R.exec(E);if(!K)return null;var D=K[0].indexOf(" ")>=0?U(G,R,E,x):F(G,R,E,x);return R.lastIndex=0,D}},"3HcJ":function(wt,P,r){"use strict";r.d(P,"a",function(){return j}),r.d(P,"b",function(){return G});var I=r("Inmo"),oe=r("bN5T"),ne=r("fF8p"),N=r("2/w6"),F=function(){var R=function(x,K){return R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,A){D.__proto__=A}||function(D,A){for(var te in A)A.hasOwnProperty(te)&&(D[te]=A[te])},R(x,K)};return function(E,x){R(E,x);function K(){this.constructor=E}E.prototype=x===null?Object.create(x):(K.prototype=x.prototype,new K)}}(),U=function(R,E,x,K){var D=arguments.length,A=D<3?E:K===null?K=Object.getOwnPropertyDescriptor(E,x):K,te;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")A=Reflect.decorate(R,E,x,K);else for(var z=R.length-1;z>=0;z--)(te=R[z])&&(A=(D<3?te(A):D>3?te(E,x,A):te(E,x))||A);return D>3&&A&&Object.defineProperty(E,x,A),A},j;(function(R){R.Tap="-monaco-gesturetap",R.Change="-monaco-gesturechange",R.Start="-monaco-gesturestart",R.End="-monaco-gesturesend",R.Contextmenu="-monaco-gesturecontextmenu"})(j||(j={}));var G=function(R){F(E,R);function E(){var x=R.call(this)||this;return x.dispatched=!1,x.activeTouches={},x.handle=null,x.targets=[],x.ignoreTargets=[],x._lastSetTapCountTime=0,x._register(ne.i(document,"touchstart",function(K){return x.onTouchStart(K)})),x._register(ne.i(document,"touchend",function(K){return x.onTouchEnd(K)})),x._register(ne.i(document,"touchmove",function(K){return x.onTouchMove(K)})),x}return E.addTarget=function(x){return E.isTouchDevice()?(E.INSTANCE||(E.INSTANCE=new E),E.INSTANCE.targets.push(x),{dispose:function(){E.INSTANCE.targets=E.INSTANCE.targets.filter(function(D){return D!==x})}}):oe.a.None},E.ignoreTarget=function(x){return E.isTouchDevice()?(E.INSTANCE||(E.INSTANCE=new E),E.INSTANCE.ignoreTargets.push(x),{dispose:function(){E.INSTANCE.ignoreTargets=E.INSTANCE.ignoreTargets.filter(function(D){return D!==x})}}):oe.a.None},E.isTouchDevice=function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0},E.prototype.dispose=function(){this.handle&&(this.handle.dispose(),this.handle=null),R.prototype.dispose.call(this)},E.prototype.onTouchStart=function(x){var K=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(var D=0,A=x.targetTouches.length;D=E.HOLD_DELAY&&Math.abs(w.initialPageX-I.v(w.rollingPageX))<30&&Math.abs(w.initialPageY-I.v(w.rollingPageY))<30){var H=te.newGestureEvent(j.Contextmenu,w.initialTarget);H.pageX=I.v(w.rollingPageX),H.pageY=I.v(w.rollingPageY),te.dispatchEvent(H)}else if(D===1){var re=I.v(w.rollingPageX),he=I.v(w.rollingPageY),Ee=I.v(w.rollingTimestamps)-w.rollingTimestamps[0],Se=re-w.rollingPageX[0],q=he-w.rollingPageY[0],Z=te.targets.filter(function(ce){return w.initialTarget instanceof Node&&ce.contains(w.initialTarget)});te.inertia(Z,K,Math.abs(Se)/Ee,Se>0?1:-1,re,Math.abs(q)/Ee,q>0?1:-1,he)}te.dispatchEvent(te.newGestureEvent(j.End,w.initialTarget)),delete te.activeTouches[m.identifier]},te=this,z=0,_=x.changedTouches.length;z<_;z++)A(z,_);this.dispatched&&(x.preventDefault(),x.stopPropagation(),this.dispatched=!1)},E.prototype.newGestureEvent=function(x,K){var D=document.createEvent("CustomEvent");return D.initEvent(x,!1,!0),D.initialTarget=K,D.tapCount=0,D},E.prototype.dispatchEvent=function(x){var K=this;if(x.type===j.Tap){var D=new Date().getTime(),A=0;D-this._lastSetTapCountTime>E.CLEAR_TAP_COUNT_TIME?A=1:A=2,this._lastSetTapCountTime=D,x.tapCount=A}else(x.type===j.Change||x.type===j.Contextmenu)&&(this._lastSetTapCountTime=0);for(var te=0;te0&&(H=!1,w=A*D*m),z>0&&(H=!1,B=_*z*m);var re=p.newGestureEvent(j.Change);re.translationX=w,re.translationY=B,x.forEach(function(he){return he.dispatchEvent(re)}),H||p.inertia(x,g,D,A,te+w,z,_,f+B)})},E.prototype.onTouchMove=function(x){for(var K=Date.now(),D=0,A=x.changedTouches.length;D3&&(z.rollingPageX.shift(),z.rollingPageY.shift(),z.rollingTimestamps.shift()),z.rollingPageX.push(te.pageX),z.rollingPageY.push(te.pageY),z.rollingTimestamps.push(K)}this.dispatched&&(x.preventDefault(),x.stopPropagation(),this.dispatched=!1)},E.SCROLL_FRICTION=-.005,E.HOLD_DELAY=700,E.CLEAR_TAP_COUNT_TIME=400,U([N.a],E,"isTouchDevice",null),E}(oe.a)},"3NxR":function(wt,P,r){"use strict";r.d(P,"a",function(){return oe}),r.d(P,"b",function(){return ne});var I=r("FRK7"),oe=function(){function N(F){var U=Object(I.b)(F);this._defaultValue=U,this._asciiMap=N._createAsciiMap(U),this._map=new Map}return N._createAsciiMap=function(F){for(var U=new Uint8Array(256),j=0;j<256;j++)U[j]=F;return U},N.prototype.set=function(F,U){var j=Object(I.b)(U);F>=0&&F<256?this._asciiMap[F]=j:this._map.set(F,j)},N.prototype.get=function(F){return F>=0&&F<256?this._asciiMap[F]:this._map.get(F)||this._defaultValue},N}(),ne=function(){function N(){this._actual=new oe(0)}return N.prototype.add=function(F){this._actual.set(F,1)},N.prototype.has=function(F){return this._actual.get(F)===1},N}()},"41id":function(wt,P,r){"use strict";r.d(P,"a",function(){return U}),r.d(P,"c",function(){return j}),r.d(P,"b",function(){return G});var I=r("PoD0"),oe=r("YK2C"),ne=r("bN5T"),N=r("yqRl"),F=function(){var R=function(x,K){return R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,A){D.__proto__=A}||function(D,A){for(var te in A)A.hasOwnProperty(te)&&(D[te]=A[te])},R(x,K)};return function(E,x){R(E,x);function K(){this.constructor=E}E.prototype=x===null?Object.create(x):(K.prototype=x.prototype,new K)}}(),U=Object(I.c)("storageService"),j;(function(R){R[R.NONE=0]="NONE",R[R.SHUTDOWN=1]="SHUTDOWN"})(j||(j={}));var G=function(R){F(E,R);function E(){var x=R!==null&&R.apply(this,arguments)||this;return x._onDidChangeStorage=x._register(new oe.a),x.onDidChangeStorage=x._onDidChangeStorage.event,x._onWillSaveState=x._register(new oe.a),x.onWillSaveState=x._onWillSaveState.event,x.globalCache=new Map,x.workspaceCache=new Map,x}return E.prototype.getCache=function(x){return x===0?this.globalCache:this.workspaceCache},E.prototype.get=function(x,K,D){var A=this.getCache(K).get(x);return Object(N.l)(A)?D:A},E.prototype.getBoolean=function(x,K,D){var A=this.getCache(K).get(x);return Object(N.l)(A)?D:A==="true"},E.prototype.store=function(x,K,D){if(Object(N.l)(K))return this.remove(x,D);var A=String(K),te=this.getCache(D).get(x);return te===A||(this.getCache(D).set(x,A),this._onDidChangeStorage.fire({scope:D,key:x})),Promise.resolve()},E.prototype.remove=function(x,K){var D=this.getCache(K).delete(x);return D&&this._onDidChangeStorage.fire({scope:K,key:x}),Promise.resolve()},E}(ne.a)},"47ao":function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml"],loader:function(){return r.e(257).then(r.bind(null,"n60k"))}})},"4Hnn":function(wt,P,r){"use strict";r.d(P,"a",function(){return ne});var I=r("E+fE"),oe=r("YK2C"),ne={JSONContribution:"base.contributions.json"};function N(j){return j.length>0&&j.charAt(j.length-1)==="#"?j.substring(0,j.length-1):j}var F=function(){function j(){this._onDidChangeSchema=new oe.a,this.schemasById={}}return j.prototype.registerSchema=function(G,R){this.schemasById[N(G)]=R,this._onDidChangeSchema.fire(G)},j.prototype.notifySchemaChanged=function(G){this._onDidChangeSchema.fire(G)},j}(),U=new F;I.a.add(ne.JSONContribution,U)},"4HoP":function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:function(){return r.e(245).then(r.bind(null,"g/9i"))}})},"4u7V":function(wt,P,r){"use strict";r.d(P,"h",function(){return F}),r.d(P,"i",function(){return U}),r.d(P,"f",function(){return x}),r.d(P,"e",function(){return K}),r.d(P,"g",function(){return A}),r.d(P,"a",function(){return te}),r.d(P,"j",function(){return z}),r.d(P,"b",function(){return f}),r.d(P,"l",function(){return p}),r.d(P,"c",function(){return m}),r.d(P,"d",function(){return w}),r.d(P,"k",function(){return B}),r.d(P,"m",function(){return re}),r.d(P,"n",function(){return he}),r.d(P,"o",function(){return Ee}),r.d(P,"q",function(){return Se}),r.d(P,"p",function(){return q});var I=r("g9ht"),oe=r("Ytku"),ne=r("0BkX"),N=r("TwZP"),F=Object(ne.Rb)("editor.lineHighlightBackground",{dark:null,light:null,hc:null},I.a("lineHighlight","Background color for the highlight of line at the cursor position.")),U=Object(ne.Rb)("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hc:"#f38518"},I.a("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),j=Object(ne.Rb)("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hc:null},I.a("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),G=Object(ne.Rb)("editor.rangeHighlightBorder",{dark:null,light:null,hc:ne.b},I.a("rangeHighlightBorder","Background color of the border around highlighted ranges."),!0),R=Object(ne.Rb)("editor.symbolHighlightBackground",{dark:ne.t,light:ne.t,hc:null},I.a("symbolHighlight","Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),E=Object(ne.Rb)("editor.symbolHighlightBorder",{dark:null,light:null,hc:ne.b},I.a("symbolHighlightBorder","Background color of the border around highlighted symbols."),!0),x=Object(ne.Rb)("editorCursor.foreground",{dark:"#AEAFAD",light:oe.a.black,hc:oe.a.white},I.a("caret","Color of the editor cursor.")),K=Object(ne.Rb)("editorCursor.background",null,I.a("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),D=Object(ne.Rb)("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hc:"#e3e4e229"},I.a("editorWhitespaces","Color of whitespace characters in the editor.")),A=Object(ne.Rb)("editorIndentGuide.background",{dark:D,light:D,hc:D},I.a("editorIndentGuides","Color of the editor indentation guides.")),te=Object(ne.Rb)("editorIndentGuide.activeBackground",{dark:D,light:D,hc:D},I.a("editorActiveIndentGuide","Color of the active editor indentation guides.")),z=Object(ne.Rb)("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hc:oe.a.white},I.a("editorLineNumbers","Color of editor line numbers.")),_=Object(ne.Rb)("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hc:ne.b},I.a("editorActiveLineNumber","Color of editor active line number"),!1,I.a("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead.")),f=Object(ne.Rb)("editorLineNumber.activeForeground",{dark:_,light:_,hc:_},I.a("editorActiveLineNumber","Color of editor active line number")),p=Object(ne.Rb)("editorRuler.foreground",{dark:"#5A5A5A",light:oe.a.lightgrey,hc:oe.a.white},I.a("editorRuler","Color of the editor rulers.")),g=Object(ne.Rb)("editorCodeLens.foreground",{dark:"#999999",light:"#999999",hc:"#999999"},I.a("editorCodeLensForeground","Foreground color of editor code lenses")),m=Object(ne.Rb)("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hc:"#0064001a"},I.a("editorBracketMatchBackground","Background color behind matching brackets")),w=Object(ne.Rb)("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hc:ne.e},I.a("editorBracketMatchBorder","Color for matching brackets boxes")),B=Object(ne.Rb)("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hc:"#7f7f7f4d"},I.a("editorOverviewRulerBorder","Color of the overview ruler border.")),H=Object(ne.Rb)("editorGutter.background",{dark:ne.o,light:ne.o,hc:ne.o},I.a("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),re=Object(ne.Rb)("editorUnnecessaryCode.border",{dark:null,light:null,hc:oe.a.fromHex("#fff").transparent(.8)},I.a("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),he=Object(ne.Rb)("editorUnnecessaryCode.opacity",{dark:oe.a.fromHex("#000a"),light:oe.a.fromHex("#0007"),hc:null},I.a("unnecessaryCodeOpacity",`Opacity of unnecessary (unused) source code in the editor. For example, "#000000c0" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out.`)),Ee=Object(ne.Rb)("editorOverviewRuler.errorForeground",{dark:new oe.a(new oe.c(255,18,18,.7)),light:new oe.a(new oe.c(255,18,18,.7)),hc:new oe.a(new oe.c(255,50,50,1))},I.a("overviewRuleError","Overview ruler marker color for errors.")),Se=Object(ne.Rb)("editorOverviewRuler.warningForeground",{dark:ne.O,light:ne.O,hc:ne.N},I.a("overviewRuleWarning","Overview ruler marker color for warnings.")),q=Object(ne.Rb)("editorOverviewRuler.infoForeground",{dark:ne.H,light:ne.H,hc:ne.G},I.a("overviewRuleInfo","Overview ruler marker color for infos."));Object(N.e)(function(Z,ce){var Me=Z.getColor(ne.o);Me&&ce.addRule(".monaco-editor, .monaco-editor-background, .monaco-editor .inputarea.ime-input { background-color: "+Me+"; }");var Ve=Z.getColor(ne.x);Ve&&ce.addRule(".monaco-editor, .monaco-editor .inputarea.ime-input { color: "+Ve+"; }");var _e=Z.getColor(H);_e&&ce.addRule(".monaco-editor .margin { background-color: "+_e+"; }");var ue=Z.getColor(j);ue&&ce.addRule(".monaco-editor .rangeHighlight { background-color: "+ue+"; }");var se=Z.getColor(G);se&&ce.addRule(".monaco-editor .rangeHighlight { border: 1px "+(Z.type==="hc"?"dotted":"solid")+" "+se+"; }");var fe=Z.getColor(R);fe&&ce.addRule(".monaco-editor .symbolHighlight { background-color: "+fe+"; }");var ie=Z.getColor(E);ie&&ce.addRule(".monaco-editor .symbolHighlight { border: 1px "+(Z.type==="hc"?"dotted":"solid")+" "+ie+"; }");var J=Z.getColor(D);J&&ce.addRule(".vs-whitespace { color: "+J+" !important; }")})},"4zlj":function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:function(){return r.e(222).then(r.bind(null,"nXTE"))}})},"5Al8":function(wt,P,r){},"5PjP":function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:function(){return r.e(204).then(r.bind(null,"XfA5"))}})},"5vbK":function(wt,P,r){},"5xAg":function(wt,P,r){"use strict";r.d(P,"b",function(){return R}),r.d(P,"a",function(){return E}),r.d(P,"c",function(){return x});var I=r("GFIr"),oe=r.n(I),ne=r("g9ht"),N=r("S7i+"),F=r("fF8p"),U,j,G;function R(te){U=document.createElement("div"),U.className="monaco-aria-container",j=document.createElement("div"),j.className="monaco-alert",j.setAttribute("role","alert"),j.setAttribute("aria-atomic","true"),U.appendChild(j),G=document.createElement("div"),G.className="monaco-status",G.setAttribute("role","status"),G.setAttribute("aria-atomic","true"),U.appendChild(G),te.appendChild(U)}function E(te,z){A(j,te,z)}function x(te,z){N.e?E(te,z):A(G,te,z)}var K=0,D=void 0;function A(te,z,_){if(!U)return;if(!_){D===z?K++:(D=z,K=0);switch(K){case 0:break;case 1:z=ne.a("repeated","{0} (occurred again)",z);break;default:z=ne.a("repeatedNtimes","{0} (occurred {1} times)",z,K);break}}F.s(te),te.textContent=z,te.style.visibility="hidden",te.style.visibility="visible"}},"6+xD":function(wt,P,r){"use strict";r.d(P,"a",function(){return oe}),r.d(P,"b",function(){return ne});var I=r("fF8p"),oe=function(){function N(F){this.domNode=F,this._maxWidth=-1,this._width=-1,this._height=-1,this._top=-1,this._left=-1,this._bottom=-1,this._right=-1,this._fontFamily="",this._fontWeight="",this._fontSize=-1,this._fontFeatureSettings="",this._lineHeight=-1,this._letterSpacing=-100,this._className="",this._display="",this._position="",this._visibility="",this._backgroundColor="",this._layerHint=!1,this._contain="none"}return N.prototype.setMaxWidth=function(F){if(this._maxWidth===F)return;this._maxWidth=F,this.domNode.style.maxWidth=this._maxWidth+"px"},N.prototype.setWidth=function(F){if(this._width===F)return;this._width=F,this.domNode.style.width=this._width+"px"},N.prototype.setHeight=function(F){if(this._height===F)return;this._height=F,this.domNode.style.height=this._height+"px"},N.prototype.setTop=function(F){if(this._top===F)return;this._top=F,this.domNode.style.top=this._top+"px"},N.prototype.unsetTop=function(){if(this._top===-1)return;this._top=-1,this.domNode.style.top=""},N.prototype.setLeft=function(F){if(this._left===F)return;this._left=F,this.domNode.style.left=this._left+"px"},N.prototype.setBottom=function(F){if(this._bottom===F)return;this._bottom=F,this.domNode.style.bottom=this._bottom+"px"},N.prototype.setRight=function(F){if(this._right===F)return;this._right=F,this.domNode.style.right=this._right+"px"},N.prototype.setFontFamily=function(F){if(this._fontFamily===F)return;this._fontFamily=F,this.domNode.style.fontFamily=this._fontFamily},N.prototype.setFontWeight=function(F){if(this._fontWeight===F)return;this._fontWeight=F,this.domNode.style.fontWeight=this._fontWeight},N.prototype.setFontSize=function(F){if(this._fontSize===F)return;this._fontSize=F,this.domNode.style.fontSize=this._fontSize+"px"},N.prototype.setFontFeatureSettings=function(F){if(this._fontFeatureSettings===F)return;this._fontFeatureSettings=F,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings},N.prototype.setLineHeight=function(F){if(this._lineHeight===F)return;this._lineHeight=F,this.domNode.style.lineHeight=this._lineHeight+"px"},N.prototype.setLetterSpacing=function(F){if(this._letterSpacing===F)return;this._letterSpacing=F,this.domNode.style.letterSpacing=this._letterSpacing+"px"},N.prototype.setClassName=function(F){if(this._className===F)return;this._className=F,this.domNode.className=this._className},N.prototype.toggleClassName=function(F,U){I.X(this.domNode,F,U),this._className=this.domNode.className},N.prototype.setDisplay=function(F){if(this._display===F)return;this._display=F,this.domNode.style.display=this._display},N.prototype.setPosition=function(F){if(this._position===F)return;this._position=F,this.domNode.style.position=this._position},N.prototype.setVisibility=function(F){if(this._visibility===F)return;this._visibility=F,this.domNode.style.visibility=this._visibility},N.prototype.setBackgroundColor=function(F){if(this._backgroundColor===F)return;this._backgroundColor=F,this.domNode.style.backgroundColor=this._backgroundColor},N.prototype.setLayerHinting=function(F){if(this._layerHint===F)return;this._layerHint=F,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":""},N.prototype.setContain=function(F){if(this._contain===F)return;this._contain=F,this.domNode.style.contain=this._contain},N.prototype.setAttribute=function(F,U){this.domNode.setAttribute(F,U)},N.prototype.removeAttribute=function(F){this.domNode.removeAttribute(F)},N.prototype.appendChild=function(F){this.domNode.appendChild(F.domNode)},N.prototype.removeChild=function(F){this.domNode.removeChild(F.domNode)},N}();function ne(N){return new oe(N)}},"67Fg":function(wt,P,r){"use strict";r.d(P,"c",function(){return R}),r.d(P,"e",function(){return x}),r.d(P,"b",function(){return K}),r.d(P,"d",function(){return D}),r.d(P,"f",function(){return A}),r.d(P,"g",function(){return te}),r.d(P,"h",function(){return _}),r.d(P,"a",function(){return f});var I=r("U9+s"),oe=r("xFpO"),ne=r("zOJ8"),N=r("yBOt"),F=r("Ojgo"),U=r("S7i+"),j=function(){for(var p=0,g=0,m=arguments.length;g1&&p.scheme===F.b.file?g="//"+p.authority+m:U.h&&m.charCodeAt(0)===47&&I.b(m.charCodeAt(1))&&m.charCodeAt(2)===58?g=m.substr(1):g=m,U.h&&(g=g.replace(/\//g,"\\")),g}function _(p,g,m){if(m===void 0&&(m=G(p)),p.scheme!==g.scheme||!E(p.authority,g.authority))return;if(p.scheme===F.b.file){var w=oe.relative(p.path,g.path);return U.h?I.c(w):w}var B=p.path||"/",H=g.path||"/";if(m){for(var re=0,he=Math.min(B.length,H.length);re0&&ee[ee.length-1])&&(Ie[0]===6||Ie[0]===2)){$e=0;continue}if(Ie[0]===3&&(!ee||Ie[1]>ee[0]&&Ie[1]=0;ve--)(Pe=Ye[ve])&&(ee=(k<3?Pe(ee):k>3?Pe(ke,$e,ee):Pe(ke,$e))||ee);return k>3&&ee&&Object.defineProperty(ke,$e,ee),ee},tt=function(Ye,ke){return function($e,we){ke($e,we,Ye)}},_t=function(Ye,ke,$e,we){function k(ee){return ee instanceof $e?ee:new $e(function(Pe){Pe(ee)})}return new($e||($e=Promise))(function(ee,Pe){function ve(pe){try{Ie(we.next(pe))}catch(nt){Pe(nt)}}function Te(pe){try{Ie(we.throw(pe))}catch(nt){Pe(nt)}}function Ie(pe){pe.done?ee(pe.value):k(pe.value).then(ve,Te)}Ie((we=we.apply(Ye,ke||[])).next())})},Pt=function(Ye,ke){var $e={label:0,sent:function(){if(ee[0]&1)throw ee[1];return ee[1]},trys:[],ops:[]},we,k,ee,Pe;return Pe={next:ve(0),throw:ve(1),return:ve(2)},typeof Symbol=="function"&&(Pe[Symbol.iterator]=function(){return this}),Pe;function ve(Ie){return function(pe){return Te([Ie,pe])}}function Te(Ie){if(we)throw new TypeError("Generator is already executing.");for(;$e;)try{if(we=1,k&&(ee=Ie[0]&2?k.return:Ie[0]?k.throw||((ee=k.return)&&ee.call(k),0):k.next)&&!(ee=ee.call(k,Ie[1])).done)return ee;(k=0,ee)&&(Ie=[Ie[0]&2,ee.value]);switch(Ie[0]){case 0:case 1:ee=Ie;break;case 4:return $e.label++,{value:Ie[1],done:!1};case 5:$e.label++,k=Ie[1],Ie=[0];continue;case 7:Ie=$e.ops.pop(),$e.trys.pop();continue;default:if(!(ee=$e.trys,ee=ee.length>0&&ee[ee.length-1])&&(Ie[0]===6||Ie[0]===2)){$e=0;continue}if(Ie[0]===3&&(!ee||Ie[1]>ee[0]&&Ie[1]1)return;var we=this._editor.getModel(),k=this._editor.getPosition(),ee=!1,Pe=this._editor.onDidChangeModelContent(function(ve){if(ve.isFlush){ee=!0,Pe.dispose();return}for(var Te=0,Ie=ve.changes.length;Te1)return;this._instantiationService.invokeFunction(Ve,this.editor,ke,2,oe.a.None).catch(D.e)},Ye.ID="editor.contrib.formatOnPaste",Ye=ze([tt(1,H.a)],Ye),Ye}(),Xe=function(Ye){ye(ke,Ye);function ke(){return Ye.call(this,{id:"editor.action.formatDocument",label:w.a("formatDocument.label","Format Document"),alias:"Format Document",precondition:me.a.and(R.a.writable,R.a.hasDocumentFormattingProvider),kbOpts:{kbExpr:me.a.and(R.a.editorTextFocus,R.a.hasDocumentFormattingProvider),primary:1024|512|36,linux:{primary:2048|1024|39},weight:100},contextMenuOpts:{when:R.a.hasDocumentFormattingProvider,group:"1_modification",order:1.3}})||this}return ke.prototype.run=function($e,we){return _t(this,void 0,void 0,function(){var k;return Pt(this,function(ee){switch(ee.label){case 0:return we.hasModel()?(k=$e.get(H.a),[4,k.invokeFunction(ue,we,1,oe.a.None)]):[3,2];case 1:ee.sent(),ee.label=2;case 2:return[2]}})})},ke}(F.b),Ze=function(Ye){ye(ke,Ye);function ke(){return Ye.call(this,{id:"editor.action.formatSelection",label:w.a("formatSelection.label","Format Selection"),alias:"Format Selection",precondition:me.a.and(R.a.writable,R.a.hasDocumentSelectionFormattingProvider),kbOpts:{kbExpr:me.a.and(R.a.editorTextFocus,R.a.hasDocumentSelectionFormattingProvider),primary:Object(ne.a)(2048|41,2048|36),weight:100},contextMenuOpts:{when:me.a.and(R.a.hasDocumentSelectionFormattingProvider,R.a.hasNonEmptySelection),group:"1_modification",order:1.31}})||this}return ke.prototype.run=function($e,we){return _t(this,void 0,void 0,function(){var k,ee,Pe;return Pt(this,function(ve){switch(ve.label){case 0:return we.hasModel()?(k=$e.get(H.a),ee=we.getModel(),Pe=we.getSelection(),Pe.isEmpty()&&(Pe=new G.a(Pe.startLineNumber,1,Pe.startLineNumber,ee.getLineMaxColumn(Pe.startLineNumber))),[4,k.invokeFunction(Ve,we,Pe,1,oe.a.None)]):[2];case 1:return ve.sent(),[2]}})})},ke}(F.b);Object(F.h)(Xt.ID,Xt),Object(F.h)(Ke.ID,Ke),Object(F.f)(Xe),Object(F.f)(Ze),he.a.registerCommand("editor.action.format",function(Ye){return _t(void 0,void 0,void 0,function(){var ke,$e;return Pt(this,function(we){switch(we.label){case 0:return ke=Ye.get(U.a).getFocusedCodeEditor(),!ke||!ke.hasModel()?[2]:($e=Ye.get(he.b),ke.getSelection().isEmpty()?[4,$e.executeCommand("editor.action.formatDocument")]:[3,2]);case 1:return we.sent(),[3,4];case 2:return[4,$e.executeCommand("editor.action.formatSelection")];case 3:we.sent(),we.label=4;case 4:return[2]}})})})},"6oPh":function(wt,P,r){},"6zAk":function(wt,P,r){"use strict";r.d(P,"a",function(){return oe});var I=r("YK2C"),oe=function(F,U,j){var G=function(x){return R.fire(x)},R=new I.a({onFirstListenerAdd:function(){F.addEventListener(U,G,j)},onLastListenerRemove:function(){F.removeEventListener(U,G,j)}});return R.event};function ne(N){return I.b.map(N,function(F){return F.preventDefault(),F.stopPropagation(),F})}},"7Ohf":function(wt,P,r){},"7jY6":function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:function(){return r.e(217).then(r.bind(null,"zO9b"))}})},"7wrl":function(wt,P,r){"use strict";r.d(P,"a",function(){return F}),r.d(P,"b",function(){return j}),r.d(P,"c",function(){return E});var I=r("0BkX"),oe=function(){return oe=Object.assign||function(x){for(var K,D=1,A=arguments.length;D=0;T--)this.editOperations[T]={operations:O.applyEdits(this.editOperations[T].operations)}},Je.prototype.redo=function(O){for(var T=0;T0){var O=this.past.pop();try{O.undo(this.model)}catch(T){return Object(I.e)(T),this.clear(),null}return this.future.push(O),{selections:O.beforeCursorState,recordedVersionId:O.beforeVersionId}}return null},Je.prototype.canUndo=function(){return this.past.length>0||this.currentOpenStackElement!==null},Je.prototype.redo=function(){if(this.future.length>0){var O=this.future.pop();try{O.redo(this.model)}catch(T){return Object(I.e)(T),this.clear(),null}return this.past.push(O),{selections:O.afterCursorState,recordedVersionId:O.afterVersionId}}return null},Je.prototype.canRedo=function(){return this.future.length>0},Je}(),te=function(){function Je(){this.spacesDiff=0,this.looksLikeAlignment=!1}return Je}();function z(Je,O,T,Y,De){De.spacesDiff=0,De.looksLikeAlignment=!1;var Re;for(Re=0;Re0&&yt>0)return;if(It>0&&kt>0)return;var Yt=Math.abs(yt-kt),Zt=Math.abs(lt-It);if(Yt===0){De.spacesDiff=Zt,Zt>0&&0<=It-1&&It-10?De++:gn>1&&Re++,z(We,ft,Zt,An,It),It.looksLikeAlignment&&!(T&&O===It.spacesDiff))continue;var ae=It.spacesDiff;ae<=yt&&xt[ae]++,We=Zt,ft=An}var Fe=T;De!==Re&&(Fe=Dect&&(ct=Ge,qe=St)}),qe===4&&xt[4]>0&&xt[2]>0&&xt[2]>=xt[4]/2&&(qe=2)}return{insertSpaces:Fe,tabSize:qe}}function f(Je){return(Je.metadata&1)>>>0}function p(Je,O){Je.metadata=Je.metadata&254|O<<0}function g(Je){return(Je.metadata&2)>>>1===1}function m(Je,O){Je.metadata=Je.metadata&253|(O?1:0)<<1}function w(Je){return(Je.metadata&4)>>>2===1}function B(Je,O){Je.metadata=Je.metadata&251|(O?1:0)<<2}function H(Je){return(Je.metadata&8)>>>3===1}function re(Je,O){Je.metadata=Je.metadata&247|(O?1:0)<<3}function he(Je){return(Je.metadata&48)>>>4}function Ee(Je,O){Je.metadata=Je.metadata&207|O<<4}function Se(Je){return(Je.metadata&64)>>>6===1}function q(Je,O){Je.metadata=Je.metadata&191|(O?1:0)<<6}var Z=function(){function Je(O,T,Y){this.metadata=0,this.parent=this,this.left=this,this.right=this,p(this,1),this.start=T,this.end=Y,this.delta=0,this.maxEnd=Y,this.id=O,this.ownerId=0,this.options=null,B(this,!1),Ee(this,1),re(this,!1),q(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=T,this.cachedAbsoluteEnd=Y,this.range=null,m(this,!1)}return Je.prototype.reset=function(O,T,Y,De){this.start=T,this.end=Y,this.maxEnd=Y,this.cachedVersionId=O,this.cachedAbsoluteStart=T,this.cachedAbsoluteEnd=Y,this.range=De},Je.prototype.setOptions=function(O){this.options=O;var T=this.options.className;B(this,T==="squiggly-error"||T==="squiggly-warning"||T==="squiggly-info"),Ee(this,this.options.stickiness),re(this,!!(this.options.overviewRuler&&this.options.overviewRuler.color)),q(this,this.options.collapseOnReplaceEdit)},Je.prototype.setCachedOffsets=function(O,T,Y){this.cachedVersionId!==Y&&(this.range=null),this.cachedVersionId=Y,this.cachedAbsoluteStart=O,this.cachedAbsoluteEnd=T},Je.prototype.detach=function(){this.parent=null,this.left=null,this.right=null},Je}(),ce=new Z(null,0,0);ce.parent=ce,ce.left=ce,ce.right=ce,p(ce,0);var Me=function(){function Je(){this.root=ce,this.requestNormalizeDelta=!1}return Je.prototype.intervalSearch=function(O,T,Y,De,Re){return this.root===ce?[]:ye(this,O,T,Y,De,Re)},Je.prototype.search=function(O,T,Y){return this.root===ce?[]:me(this,O,T,Y)},Je.prototype.collectNodesFromOwner=function(O){return ie(this,O)},Je.prototype.collectNodesPostOrder=function(){return J(this)},Je.prototype.insert=function(O){ze(this,O),this._normalizeDeltaIfNecessary()},Je.prototype.delete=function(O){_t(this,O),this._normalizeDeltaIfNecessary()},Je.prototype.resolveNode=function(O,T){for(var Y=O,De=0;O!==this.root;)O===O.parent.right&&(De+=O.parent.delta),O=O.parent;var Re=Y.start+De,We=Y.end+De;Y.setCachedOffsets(Re,We,T)},Je.prototype.acceptReplace=function(O,T,Y,De){for(var Re=se(this,O,O+T),We=0,ft=Re.length;WeT||Y===1?!1:Y===2?!0:O}function ue(Je,O,T,Y,De){var Re=he(Je),We=Re===0||Re===2,ft=Re===1||Re===2,lt=T-O,yt=Y,xt=Math.min(lt,yt),It=Je.start,kt=!1,Yt=Je.end,Zt=!1;O<=It&&Yt<=T&&Se(Je)&&(Je.start=O,kt=!0,Je.end=O,Zt=!0);{var dn=De?1:lt>0?2:0;!kt&&_e(It,We,O,dn)&&(kt=!0),!Zt&&_e(Yt,ft,O,dn)&&(Zt=!0)}if(xt>0&&!De){var dn=lt>yt?2:0;!kt&&_e(It,We,O+xt,dn)&&(kt=!0),!Zt&&_e(Yt,ft,O+xt,dn)&&(Zt=!0)}{var dn=De?1:0;!kt&&_e(It,We,T,dn)&&(Je.start=O+yt,kt=!0),!Zt&&_e(Yt,ft,T,dn)&&(Je.end=O+yt,Zt=!0)}var fn=yt-lt;kt||(Je.start=Math.max(0,It+fn)),Zt||(Je.end=Math.max(0,Yt+fn)),Je.start>Je.end&&(Je.end=Je.start)}function se(Je,O,T){for(var Y=Je.root,De=0,Re=0,We=0,ft=0,lt=[],yt=0;Y!==ce;){if(g(Y)){m(Y.left,!1),m(Y.right,!1),Y===Y.parent.right&&(De-=Y.parent.delta),Y=Y.parent;continue}if(!g(Y.left)){if(Re=De+Y.maxEnd,ReT){m(Y,!0);continue}if(ft=De+Y.end,ft>=O&&(Y.setCachedOffsets(We,ft,0),lt[yt++]=Y),m(Y,!0),Y.right!==ce&&!g(Y.right)){De+=Y.delta,Y=Y.right;continue}}return m(Je.root,!1),lt}function fe(Je,O,T,Y){for(var De=Je.root,Re=0,We=0,ft=0,lt=Y-(T-O);De!==ce;){if(g(De)){m(De.left,!1),m(De.right,!1),De===De.parent.right&&(Re-=De.parent.delta),Ye(De),De=De.parent;continue}if(!g(De.left)){if(We=Re+De.maxEnd,WeT){De.start+=lt,De.end+=lt,De.delta+=lt,(De.delta<-1073741824||De.delta>1073741824)&&(Je.requestNormalizeDelta=!0),m(De,!0);continue}if(m(De,!0),De.right!==ce&&!g(De.right)){Re+=De.delta,De=De.right;continue}}m(Je.root,!1)}function ie(Je,O){for(var T=Je.root,Y=[],De=0;T!==ce;){if(g(T)){m(T.left,!1),m(T.right,!1),T=T.parent;continue}if(T.left!==ce&&!g(T.left)){T=T.left;continue}if(T.ownerId===O&&(Y[De++]=T),m(T,!0),T.right!==ce&&!g(T.right)){T=T.right;continue}}return m(Je.root,!1),Y}function J(Je){for(var O=Je.root,T=[],Y=0;O!==ce;){if(g(O)){m(O.left,!1),m(O.right,!1),O=O.parent;continue}if(O.left!==ce&&!g(O.left)){O=O.left;continue}if(O.right!==ce&&!g(O.right)){O=O.right;continue}T[Y++]=O,m(O,!0)}return m(Je.root,!1),T}function me(Je,O,T,Y){for(var De=Je.root,Re=0,We=0,ft=0,lt=[],yt=0;De!==ce;){if(g(De)){m(De.left,!1),m(De.right,!1),De===De.parent.right&&(Re-=De.parent.delta),De=De.parent;continue}if(De.left!==ce&&!g(De.left)){De=De.left;continue}We=Re+De.start,ft=Re+De.end,De.setCachedOffsets(We,ft,Y);var xt=!0;if(O&&De.ownerId&&De.ownerId!==O&&(xt=!1),T&&w(De)&&(xt=!1),xt&&(lt[yt++]=De),m(De,!0),De.right!==ce&&!g(De.right)){Re+=De.delta,De=De.right;continue}}return m(Je.root,!1),lt}function ye(Je,O,T,Y,De,Re){for(var We=Je.root,ft=0,lt=0,yt=0,xt=0,It=[],kt=0;We!==ce;){if(g(We)){m(We.left,!1),m(We.right,!1),We===We.parent.right&&(ft-=We.parent.delta),We=We.parent;continue}if(!g(We.left)){if(lt=ft+We.maxEnd,ltT){m(We,!0);continue}if(xt=ft+We.end,xt>=O){We.setCachedOffsets(yt,xt,Re);var Yt=!0;Y&&We.ownerId&&We.ownerId!==Y&&(Yt=!1),De&&w(We)&&(Yt=!1),Yt&&(It[kt++]=We)}if(m(We,!0),We.right!==ce&&!g(We.right)){ft+=We.delta,We=We.right;continue}}return m(Je.root,!1),It}function ze(Je,O){if(Je.root===ce)return O.parent=ce,O.left=ce,O.right=ce,p(O,0),Je.root=O,Je.root;tt(Je,O),ke(O.parent);for(var T=O;T!==Je.root&&f(T.parent)===1;)if(T.parent===T.parent.parent.left){var Y=T.parent.parent.right;f(Y)===1?(p(T.parent,0),p(Y,0),p(T.parent.parent,1),T=T.parent.parent):(T===T.parent.right&&(T=T.parent,Ke(Je,T)),p(T.parent,0),p(T.parent.parent,1),Xe(Je,T.parent.parent))}else{var Y=T.parent.parent.left;f(Y)===1?(p(T.parent,0),p(Y,0),p(T.parent.parent,1),T=T.parent.parent):(T===T.parent.left&&(T=T.parent,Xe(Je,T)),p(T.parent,0),p(T.parent.parent,1),Ke(Je,T.parent.parent))}return p(Je.root,0),O}function tt(Je,O){for(var T=0,Y=Je.root,De=O.start,Re=O.end;;){var We=$e(De,Re,Y.start+T,Y.end+T);if(We<0)if(Y.left===ce){O.start-=T,O.end-=T,O.maxEnd-=T,Y.left=O;break}else Y=Y.left;else if(Y.right===ce){O.start-=T+Y.delta,O.end-=T+Y.delta,O.maxEnd-=T+Y.delta,Y.right=O;break}else T+=Y.delta,Y=Y.right}O.parent=Y,O.left=ce,O.right=ce,p(O,1)}function _t(Je,O){var T,Y;if(O.left===ce?(T=O.right,Y=O,T.delta+=O.delta,(T.delta<-1073741824||T.delta>1073741824)&&(Je.requestNormalizeDelta=!0),T.start+=O.delta,T.end+=O.delta):O.right===ce?(T=O.left,Y=O):(Y=Pt(O.right),T=Y.right,T.start+=Y.delta,T.end+=Y.delta,T.delta+=Y.delta,(T.delta<-1073741824||T.delta>1073741824)&&(Je.requestNormalizeDelta=!0),Y.start+=O.delta,Y.end+=O.delta,Y.delta=O.delta,(Y.delta<-1073741824||Y.delta>1073741824)&&(Je.requestNormalizeDelta=!0)),Y===Je.root){Je.root=T,p(T,0),O.detach(),Xt(),Ye(T),Je.root.parent=ce;return}var De=f(Y)===1;if(Y===Y.parent.left?Y.parent.left=T:Y.parent.right=T,Y===O?T.parent=Y.parent:(Y.parent===O?T.parent=Y:T.parent=Y.parent,Y.left=O.left,Y.right=O.right,Y.parent=O.parent,p(Y,f(O)),O===Je.root?Je.root=Y:O===O.parent.left?O.parent.left=Y:O.parent.right=Y,Y.left!==ce&&(Y.left.parent=Y),Y.right!==ce&&(Y.right.parent=Y)),O.detach(),De){ke(T.parent),Y!==O&&(ke(Y),ke(Y.parent)),Xt();return}ke(T),ke(T.parent),Y!==O&&(ke(Y),ke(Y.parent));for(var Re;T!==Je.root&&f(T)===0;)T===T.parent.left?(Re=T.parent.right,f(Re)===1&&(p(Re,0),p(T.parent,1),Ke(Je,T.parent),Re=T.parent.right),f(Re.left)===0&&f(Re.right)===0?(p(Re,1),T=T.parent):(f(Re.right)===0&&(p(Re.left,0),p(Re,1),Xe(Je,Re),Re=T.parent.right),p(Re,f(T.parent)),p(T.parent,0),p(Re.right,0),Ke(Je,T.parent),T=Je.root)):(Re=T.parent.left,f(Re)===1&&(p(Re,0),p(T.parent,1),Xe(Je,T.parent),Re=T.parent.left),f(Re.left)===0&&f(Re.right)===0?(p(Re,1),T=T.parent):(f(Re.left)===0&&(p(Re.right,0),p(Re,1),Ke(Je,Re),Re=T.parent.left),p(Re,f(T.parent)),p(T.parent,0),p(Re.left,0),Xe(Je,T.parent),T=Je.root));p(T,0),Xt()}function Pt(Je){for(;Je.left!==ce;)Je=Je.left;return Je}function Xt(){ce.parent=ce,ce.delta=0,ce.start=0,ce.end=0}function Ke(Je,O){var T=O.right;T.delta+=O.delta,(T.delta<-1073741824||T.delta>1073741824)&&(Je.requestNormalizeDelta=!0),T.start+=O.delta,T.end+=O.delta,O.right=T.left,T.left!==ce&&(T.left.parent=O),T.parent=O.parent,O.parent===ce?Je.root=T:O===O.parent.left?O.parent.left=T:O.parent.right=T,T.left=O,O.parent=T,Ye(O),Ye(T)}function Xe(Je,O){var T=O.left;O.delta-=T.delta,(O.delta<-1073741824||O.delta>1073741824)&&(Je.requestNormalizeDelta=!0),O.start-=T.delta,O.end-=T.delta,O.left=T.right,T.right!==ce&&(T.right.parent=O),T.parent=O.parent,O.parent===ce?Je.root=T:O===O.parent.right?O.parent.right=T:O.parent.left=T,T.right=O,O.parent=T,Ye(O),Ye(T)}function Ze(Je){var O=Je.end;if(Je.left!==ce){var T=Je.left.maxEnd;T>O&&(O=T)}if(Je.right!==ce){var Y=Je.right.maxEnd+Je.delta;Y>O&&(O=Y)}return O}function Ye(Je){Je.maxEnd=Ze(Je)}function ke(Je){for(;Je!==ce;){var O=Ze(Je);if(Je.maxEnd===O)return;Je.maxEnd=O,Je=Je.parent}}function $e(Je,O,T,Y){return Je===T?O-Y:Je-T}var we=function(){function Je(O,T){this.piece=O,this.color=T,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}return Je.prototype.next=function(){if(this.right!==k)return ee(this.right);for(var O=this;O.parent!==k&&!(O.parent.left===O);)O=O.parent;return O.parent===k?k:O.parent},Je.prototype.prev=function(){if(this.left!==k)return Pe(this.left);for(var O=this;O.parent!==k&&!(O.parent.right===O);)O=O.parent;return O.parent===k?k:O.parent},Je.prototype.detach=function(){this.parent=null,this.left=null,this.right=null},Je}(),k=new we(null,0);k.parent=k,k.left=k,k.right=k,k.color=0;function ee(Je){for(;Je.left!==k;)Je=Je.left;return Je}function Pe(Je){for(;Je.right!==k;)Je=Je.right;return Je}function ve(Je){return Je===k?0:Je.size_left+Je.piece.length+ve(Je.right)}function Te(Je){return Je===k?0:Je.lf_left+Je.piece.lineFeedCnt+Te(Je.right)}function Ie(){k.parent=k}function pe(Je,O){var T=O.right;T.size_left+=O.size_left+(O.piece?O.piece.length:0),T.lf_left+=O.lf_left+(O.piece?O.piece.lineFeedCnt:0),O.right=T.left,T.left!==k&&(T.left.parent=O),T.parent=O.parent,O.parent===k?Je.root=T:O.parent.left===O?O.parent.left=T:O.parent.right=T,T.left=O,O.parent=T}function nt(Je,O){var T=O.left;O.left=T.right,T.right!==k&&(T.right.parent=O),T.parent=O.parent,O.size_left-=T.size_left+(T.piece?T.piece.length:0),O.lf_left-=T.lf_left+(T.piece?T.piece.lineFeedCnt:0),O.parent===k?Je.root=T:O===O.parent.right?O.parent.right=T:O.parent.left=T,T.right=O,O.parent=T}function Et(Je,O){var T,Y;if(O.left===k?(Y=O,T=Y.right):O.right===k?(Y=O,T=Y.left):(Y=ee(O.right),T=Y.right),Y===Je.root){Je.root=T,T.color=0,O.detach(),Ie(),Je.root.parent=k;return}var De=Y.color===1;if(Y===Y.parent.left?Y.parent.left=T:Y.parent.right=T,Y===O?(T.parent=Y.parent,Ht(Je,T)):(Y.parent===O?T.parent=Y:T.parent=Y.parent,Ht(Je,T),Y.left=O.left,Y.right=O.right,Y.parent=O.parent,Y.color=O.color,O===Je.root?Je.root=Y:O===O.parent.left?O.parent.left=Y:O.parent.right=Y,Y.left!==k&&(Y.left.parent=Y),Y.right!==k&&(Y.right.parent=Y),Y.size_left=O.size_left,Y.lf_left=O.lf_left,Ht(Je,Y)),O.detach(),T.parent.left===T){var Re=ve(T),We=Te(T);if(Re!==T.parent.size_left||We!==T.parent.lf_left){var ft=Re-T.parent.size_left,lt=We-T.parent.lf_left;T.parent.size_left=Re,T.parent.lf_left=We,Tt(Je,T.parent,ft,lt)}}if(Ht(Je,T.parent),De){Ie();return}for(var yt;T!==Je.root&&T.color===0;)T===T.parent.left?(yt=T.parent.right,yt.color===1&&(yt.color=0,T.parent.color=1,pe(Je,T.parent),yt=T.parent.right),yt.left.color===0&&yt.right.color===0?(yt.color=1,T=T.parent):(yt.right.color===0&&(yt.left.color=0,yt.color=1,nt(Je,yt),yt=T.parent.right),yt.color=T.parent.color,T.parent.color=0,yt.right.color=0,pe(Je,T.parent),T=Je.root)):(yt=T.parent.left,yt.color===1&&(yt.color=0,T.parent.color=1,nt(Je,T.parent),yt=T.parent.left),yt.left.color===0&&yt.right.color===0?(yt.color=1,T=T.parent):(yt.left.color===0&&(yt.right.color=0,yt.color=1,pe(Je,yt),yt=T.parent.left),yt.color=T.parent.color,T.parent.color=0,yt.left.color=0,nt(Je,T.parent),T=Je.root));T.color=0,Ie()}function Rt(Je,O){for(Ht(Je,O);O!==Je.root&&O.parent.color===1;)if(O.parent===O.parent.parent.left){var T=O.parent.parent.right;T.color===1?(O.parent.color=0,T.color=0,O.parent.parent.color=1,O=O.parent.parent):(O===O.parent.right&&(O=O.parent,pe(Je,O)),O.parent.color=0,O.parent.parent.color=1,nt(Je,O.parent.parent))}else{var T=O.parent.parent.left;T.color===1?(O.parent.color=0,T.color=0,O.parent.parent.color=1,O=O.parent.parent):(O===O.parent.left&&(O=O.parent,nt(Je,O)),O.parent.color=0,O.parent.parent.color=1,pe(Je,O.parent.parent))}Je.root.color=0}function Tt(Je,O,T,Y){for(;O!==Je.root&&O!==k;)O.parent.left===O&&(O.parent.size_left+=T,O.parent.lf_left+=Y),O=O.parent}function Ht(Je,O){var T=0,Y=0;if(O===Je.root)return;if(T===0){for(;O!==Je.root&&O===O.parent.right;)O=O.parent;if(O===Je.root)return;O=O.parent,T=ve(O.left)-O.size_left,Y=Te(O.left)-O.lf_left,O.size_left+=T,O.lf_left+=Y}for(;O!==Je.root&&(T!==0||Y!==0);)O.parent.left===O&&(O.parent.size_left+=T,O.parent.lf_left+=Y),O=O.parent}var Gt=r("yCUd"),rn=65535;function Ln(Je){var O;return Je[Je.length-1]<65536?O=new Uint16Array(Je.length):O=new Uint32Array(Je.length),O.set(Je,0),O}var yn=function(){function Je(O,T,Y,De,Re){this.lineStarts=O,this.cr=T,this.lf=Y,this.crlf=De,this.isBasicASCII=Re}return Je}();function Tn(Je,O){O===void 0&&(O=!0);for(var T=[0],Y=1,De=0,Re=Je.length;De126)&&(We=!1))}var xt=new yn(Ln(Je),Y,De,Re,We);return Je.length=0,xt}var pt=function(){function Je(O,T,Y,De,Re){this.bufferIndex=O,this.start=T,this.end=Y,this.lineFeedCnt=De,this.length=Re}return Je}(),gt=function(){function Je(O,T){this.buffer=O,this.lineStarts=T}return Je}(),Dt=function(){function Je(O){this._limit=O,this._cache=[]}return Je.prototype.get=function(O){for(var T=this._cache.length-1;T>=0;T--){var Y=this._cache[T];if(Y.nodeStartOffset<=O&&Y.nodeStartOffset+Y.node.piece.length>=O)return Y}return null},Je.prototype.get2=function(O){for(var T=this._cache.length-1;T>=0;T--){var Y=this._cache[T];if(Y.nodeStartLineNumber&&Y.nodeStartLineNumber=O)return Y}return null},Je.prototype.set=function(O){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(O)},Je.prototype.valdiate=function(O){for(var T=!1,Y=this._cache,De=0;De=O){Y[De]=null,T=!0;continue}}if(T){for(var We=[],ft=0,lt=Y;ft0){O[Re].lineStarts||(O[Re].lineStarts=Tn(O[Re].buffer));var ft=new pt(Re+1,{line:0,column:0},{line:O[Re].lineStarts.length-1,column:O[Re].buffer.length-O[Re].lineStarts[O[Re].lineStarts.length-1]},O[Re].lineStarts.length-1,O[Re].buffer.length);this._buffers.push(O[Re]),De=this.rbInsertRight(De,ft)}this._searchCache=new Dt(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()},Je.prototype.normalizeEOL=function(O){var T=this,Y=rn,De=Y-Math.floor(Y/3),Re=De*2,We="",ft=0,lt=[];if(this.iterate(this.root,function(xt){var It=T.getNodeContent(xt),kt=It.length;if(ft<=De||ft+kt0){var yt=We.replace(/\r\n|\r|\n/g,O);lt.push(new gt(yt,Tn(yt)))}this.create(lt,O,!0)},Je.prototype.getEOL=function(){return this._EOL},Je.prototype.setEOL=function(O){this._EOL=O,this._EOLLength=this._EOL.length,this.normalizeEOL(O)},Je.prototype.getOffsetAt=function(O,T){for(var Y=0,De=this.root;De!==k;)if(De.left!==k&&De.lf_left+1>=O)De=De.left;else if(De.lf_left+De.piece.lineFeedCnt+1>=O){Y+=De.size_left;var Re=this.getAccumulatedValue(De,O-De.lf_left-2);return Y+=Re+T-1}else O-=De.lf_left+De.piece.lineFeedCnt,Y+=De.size_left+De.piece.length,De=De.right;return Y},Je.prototype.getPositionAt=function(O){O=Math.floor(O),O=Math.max(0,O);for(var T=this.root,Y=0,De=O;T!==k;)if(T.size_left!==0&&T.size_left>=O)T=T.left;else if(T.size_left+T.piece.length>=O){var Re=this.getIndexOf(T,O-T.size_left);if(Y+=T.lf_left+Re.index,Re.index===0){var We=this.getOffsetAt(Y+1,1),ft=De-We;return new j.a(Y+1,ft+1)}return new j.a(Y+1,Re.remainder+1)}else if(O-=T.size_left+T.piece.length,Y+=T.lf_left+T.piece.lineFeedCnt,T.right===k){var We=this.getOffsetAt(Y+1,1),ft=De-O-We;return new j.a(Y+1,ft+1)}else T=T.right;return new j.a(1,1)},Je.prototype.getValueInRange=function(O,T){if(O.startLineNumber===O.endLineNumber&&O.startColumn===O.endColumn)return"";var Y=this.nodeAt2(O.startLineNumber,O.startColumn),De=this.nodeAt2(O.endLineNumber,O.endColumn),Re=this.getValueInRange2(Y,De);return T?T!==this._EOL||!this._EOLNormalized?Re.replace(/\r\n|\r|\n/g,T):T===this.getEOL()&&this._EOLNormalized?(T===`\r `,Re):Re.replace(/\r\n|\r|\n/g,T):Re},Je.prototype.getValueInRange2=function(O,T){if(O.node===T.node){var Y=O.node,De=this._buffers[Y.piece.bufferIndex].buffer,Re=this.offsetInBuffer(Y.piece.bufferIndex,Y.piece.start);return De.substring(Re+O.remainder,Re+T.remainder)}var We=O.node,ft=this._buffers[We.piece.bufferIndex].buffer,lt=this.offsetInBuffer(We.piece.bufferIndex,We.piece.start),yt=ft.substring(lt+O.remainder,lt+We.piece.length);for(We=We.next();We!==k;){var xt=this._buffers[We.piece.bufferIndex].buffer,It=this.offsetInBuffer(We.piece.bufferIndex,We.piece.start);if(We===T.node){yt+=xt.substring(It,It+T.remainder);break}else yt+=xt.substr(It,We.piece.length);We=We.next()}return yt},Je.prototype.getLinesContent=function(){var O=this,T=[],Y=0,De="",Re=!1;return this.iterate(this.root,function(We){if(We===k)return!0;var ft=We.piece,lt=ft.length;if(lt===0)return!0;var yt=O._buffers[ft.bufferIndex].buffer,xt=O._buffers[ft.bufferIndex].lineStarts,It=ft.start.line,kt=ft.end.line,Yt=xt[It]+ft.start.column;if(Re&&(yt.charCodeAt(Yt)===10&&(Yt++,lt--),T[Y++]=De,De="",Re=!1,lt===0))return!0;if(It===kt)return!O._EOLNormalized&&yt.charCodeAt(Yt+lt-1)===13?(Re=!0,De+=yt.substr(Yt,lt-1)):De+=yt.substr(Yt,lt),!0;De+=O._EOLNormalized?yt.substring(Yt,Math.max(Yt,xt[It+1]-O._EOLLength)):yt.substring(Yt,xt[It+1]).replace(/(\r\n|\r|\n)$/,""),T[Y++]=De;for(var Zt=It+1;Zt=dn)return xt;this.positionInBuffer(O,Mn(fn.index)-Yt,An);var xn=this.getLineFeedCnt(O.piece.bufferIndex,Re,An),Le=An.line===Re.line?An.column-Re.column+De:An.column+1,W=Le+fn[0].length;if(It[xt++]=Object(Gt.d)(new G.a(Y+xn,Le,Y+xn,W),fn,lt),Mn(fn.index)+fn[0].length>=dn)return xt;if(xt>=yt)return xt}while(fn);return xt},Je.prototype.findMatchesLineByLine=function(O,T,Y,De){var Re=[],We=0,ft=new Gt.b(T.wordSeparators,T.regex),lt=this.nodeAt2(O.startLineNumber,O.startColumn);if(lt===null)return[];var yt=this.nodeAt2(O.endLineNumber,O.endColumn);if(yt===null)return[];var xt=this.positionInBuffer(lt.node,lt.remainder),It=this.positionInBuffer(yt.node,yt.remainder);if(lt.node===yt.node)return this.findMatchesInNode(lt.node,ft,O.startLineNumber,O.startColumn,xt,It,T,Y,De,We,Re),Re;for(var kt=O.startLineNumber,Yt=lt.node;Yt!==yt.node;){var Zt=this.getLineFeedCnt(Yt.piece.bufferIndex,xt,Yt.piece.end);if(Zt>=1){var dn=this._buffers[Yt.piece.bufferIndex].lineStarts,fn=this.offsetInBuffer(Yt.piece.bufferIndex,Yt.piece.start),An=dn[xt.line+Zt],gn=kt===O.startLineNumber?O.startColumn:1;if(We=this.findMatchesInNode(Yt,ft,kt,gn,xt,this.positionInBuffer(Yt,An-fn),T,Y,De,We,Re),We>=De)return Re;kt+=Zt}var Mn=kt===O.startLineNumber?O.startColumn-1:0;if(kt===O.endLineNumber){var xn=this.getLineContent(kt).substring(Mn,O.endColumn-1);return We=this._findMatchesInLine(T,ft,xn,O.endLineNumber,Mn,We,Re,Y,De),Re}if(We=this._findMatchesInLine(T,ft,this.getLineContent(kt).substr(Mn),kt,Mn,We,Re,Y,De),We>=De)return Re;kt++,lt=this.nodeAt2(kt,1),Yt=lt.node,xt=this.positionInBuffer(lt.node,lt.remainder)}if(kt===O.endLineNumber){var Le=kt===O.startLineNumber?O.startColumn-1:0,xn=this.getLineContent(kt).substring(Le,O.endColumn-1);return We=this._findMatchesInLine(T,ft,xn,O.endLineNumber,Le,We,Re,Y,De),Re}var W=kt===O.startLineNumber?O.startColumn:1;return We=this.findMatchesInNode(yt.node,ft,kt,W,xt,It,T,Y,De,We,Re),Re},Je.prototype._findMatchesInLine=function(O,T,Y,De,Re,We,ft,lt,yt){var xt=O.wordSeparators;if(!lt&&O.simpleSearch){for(var It=O.simpleSearch,kt=It.length,Yt=Y.length,Zt=-kt;(Zt=Y.indexOf(It,Zt+kt))!==-1;)if((!xt||Object(Gt.e)(xt,Y,Yt,Zt,kt))&&(ft[We++]=new E.b(new G.a(De,Zt+1+Re,De,Zt+1+kt+Re),null),We>=yt))return We;return We}var dn;T.reset(0);do if(dn=T.next(Y),dn&&(ft[We++]=Object(Gt.d)(new G.a(De,dn.index+1+Re,De,dn.index+1+dn[0].length+Re),dn,lt),We>=yt))return We;while(dn);return We},Je.prototype.insert=function(O,T,Y){if(Y===void 0&&(Y=!1),this._EOLNormalized=this._EOLNormalized&&Y,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==k){var De=this.nodeAt(O),Re=De.node,We=De.remainder,ft=De.nodeStartOffset,lt=Re.piece,yt=lt.bufferIndex,xt=this.positionInBuffer(Re,We);if(Re.piece.bufferIndex===0&<.end.line===this._lastChangeBufferPos.line&<.end.column===this._lastChangeBufferPos.column&&ft+lt.length===O&&T.lengthO){var It=[],kt=new pt(lt.bufferIndex,xt,lt.end,this.getLineFeedCnt(lt.bufferIndex,xt,lt.end),this.offsetInBuffer(yt,lt.end)-this.offsetInBuffer(yt,xt));if(this.shouldCheckCRLF()&&this.endWithCR(T)){var Yt=this.nodeCharCodeAt(Re,We);if(Yt===10){var Zt={line:kt.start.line+1,column:0};kt=new pt(kt.bufferIndex,Zt,kt.end,this.getLineFeedCnt(kt.bufferIndex,Zt,kt.end),kt.length-1),T+=` `}}if(this.shouldCheckCRLF()&&this.startWithLF(T)){var dn=this.nodeCharCodeAt(Re,We-1);if(dn===13){var fn=this.positionInBuffer(Re,We-1);this.deleteNodeTail(Re,fn),T="\r"+T,Re.piece.length===0&&It.push(Re)}else this.deleteNodeTail(Re,xt)}else this.deleteNodeTail(Re,xt);var An=this.createNewPieces(T);kt.length>0&&this.rbInsertRight(Re,kt);for(var gn=Re,Mn=0;Mn=0;yt--)lt=this.rbInsertLeft(lt,ft[yt]);this.validateCRLFWithPrevNode(lt),this.deleteNodes(Y)},Je.prototype.insertContentToNodeRight=function(O,T){this.adjustCarriageReturnFromNext(O,T)&&(O+=` `);for(var Y=this.createNewPieces(O),De=this.rbInsertRight(T,Y[0]),Re=De,We=1;We=kt)yt=It+1;else break;return Y?(Y.line=It,Y.column=lt-Yt,null):{line:It,column:lt-Yt}},Je.prototype.getLineFeedCnt=function(O,T,Y){if(Y.column===0)return Y.line-T.line;var De=this._buffers[O].lineStarts;if(Y.line===De.length-1)return Y.line-T.line;var Re=De[Y.line+1],We=De[Y.line]+Y.column;if(Re>We+1)return Y.line-T.line;var ft=We-1,lt=this._buffers[O].buffer;return lt.charCodeAt(ft)===13?Y.line-T.line+1:Y.line-T.line},Je.prototype.offsetInBuffer=function(O,T){var Y=this._buffers[O].lineStarts;return Y[T.line]+T.column},Je.prototype.deleteNodes=function(O){for(var T=0;Trn){for(var T=[];O.length>rn;){var Y=O.charCodeAt(rn-1),De=void 0;Y===13||Y>=55296&&Y<=56319?(De=O.substring(0,rn-1),O=O.substring(rn-1)):(De=O.substring(0,rn),O=O.substring(rn));var Re=Tn(De);T.push(new pt(this._buffers.length,{line:0,column:0},{line:Re.length-1,column:De.length-Re[Re.length-1]},Re.length-1,De.length)),this._buffers.push(new gt(De,Re))}var We=Tn(O);return T.push(new pt(this._buffers.length,{line:0,column:0},{line:We.length-1,column:O.length-We[We.length-1]},We.length-1,O.length)),this._buffers.push(new gt(O,We)),T}var ft=this._buffers[0].buffer.length,lt=Tn(O,!1),yt=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===ft&&ft!==0&&this.startWithLF(O)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},yt=this._lastChangeBufferPos;for(var xt=0;xt=O-1)Y=Y.left;else if(Y.lf_left+Y.piece.lineFeedCnt>O-1){var We=this.getAccumulatedValue(Y,O-Y.lf_left-2),yt=this.getAccumulatedValue(Y,O-Y.lf_left-1),ft=this._buffers[Y.piece.bufferIndex].buffer,lt=this.offsetInBuffer(Y.piece.bufferIndex,Y.piece.start);return xt+=Y.size_left,this._searchCache.set({node:Y,nodeStartOffset:xt,nodeStartLineNumber:It-(O-1-Y.lf_left)}),ft.substring(lt+We,lt+yt-T)}else if(Y.lf_left+Y.piece.lineFeedCnt===O-1){var We=this.getAccumulatedValue(Y,O-Y.lf_left-2),ft=this._buffers[Y.piece.bufferIndex].buffer,lt=this.offsetInBuffer(Y.piece.bufferIndex,Y.piece.start);De=ft.substring(lt+We,lt+Y.piece.length);break}else O-=Y.lf_left+Y.piece.lineFeedCnt,xt+=Y.size_left+Y.piece.length,Y=Y.right;for(Y=Y.next();Y!==k;){var ft=this._buffers[Y.piece.bufferIndex].buffer;if(Y.piece.lineFeedCnt>0){var yt=this.getAccumulatedValue(Y,0),lt=this.offsetInBuffer(Y.piece.bufferIndex,Y.piece.start);return De+=ft.substring(lt,lt+yt-T),De}else{var lt=this.offsetInBuffer(Y.piece.bufferIndex,Y.piece.start);De+=ft.substr(lt,Y.piece.length)}Y=Y.next()}return De},Je.prototype.computeBufferMetadata=function(){for(var O=this.root,T=1,Y=0;O!==k;)T+=O.lf_left+O.piece.lineFeedCnt,Y+=O.size_left+O.piece.length,O=O.right;this._lineCnt=T,this._length=Y,this._searchCache.valdiate(this._length)},Je.prototype.getIndexOf=function(O,T){var Y=O.piece,De=this.positionInBuffer(O,T),Re=De.line-Y.start.line;if(this.offsetInBuffer(Y.bufferIndex,Y.end)-this.offsetInBuffer(Y.bufferIndex,Y.start)===T){var We=this.getLineFeedCnt(O.piece.bufferIndex,Y.start,De);if(We!==Re)return{index:We,remainder:0}}return{index:Re,remainder:De.column}},Je.prototype.getAccumulatedValue=function(O,T){if(T<0)return 0;var Y=O.piece,De=this._buffers[Y.bufferIndex].lineStarts,Re=Y.start.line+T+1;return Re>Y.end.line?De[Y.end.line]+Y.end.column-De[Y.start.line]-Y.start.column:De[Re]-De[Y.start.line]-Y.start.column},Je.prototype.deleteNodeTail=function(O,T){var Y=O.piece,De=Y.lineFeedCnt,Re=this.offsetInBuffer(Y.bufferIndex,Y.end),We=T,ft=this.offsetInBuffer(Y.bufferIndex,We),lt=this.getLineFeedCnt(Y.bufferIndex,Y.start,We),yt=lt-De,xt=ft-Re,It=Y.length+xt;O.piece=new pt(Y.bufferIndex,Y.start,We,lt,It),Tt(this,O,xt,yt)},Je.prototype.deleteNodeHead=function(O,T){var Y=O.piece,De=Y.lineFeedCnt,Re=this.offsetInBuffer(Y.bufferIndex,Y.start),We=T,ft=this.getLineFeedCnt(Y.bufferIndex,We,Y.end),lt=this.offsetInBuffer(Y.bufferIndex,We),yt=ft-De,xt=Re-lt,It=Y.length+xt;O.piece=new pt(Y.bufferIndex,We,Y.end,ft,It),Tt(this,O,xt,yt)},Je.prototype.shrinkNode=function(O,T,Y){var De=O.piece,Re=De.start,We=De.end,ft=De.length,lt=De.lineFeedCnt,yt=T,xt=this.getLineFeedCnt(De.bufferIndex,De.start,yt),It=this.offsetInBuffer(De.bufferIndex,T)-this.offsetInBuffer(De.bufferIndex,Re);O.piece=new pt(De.bufferIndex,De.start,yt,xt,It),Tt(this,O,It-ft,xt-lt);var kt=new pt(De.bufferIndex,Y,We,this.getLineFeedCnt(De.bufferIndex,Y,We),this.offsetInBuffer(De.bufferIndex,We)-this.offsetInBuffer(De.bufferIndex,Y)),Yt=this.rbInsertRight(O,kt);this.validateCRLFWithPrevNode(Yt)},Je.prototype.appendToNode=function(O,T){this.adjustCarriageReturnFromNext(T,O)&&(T+=` `);var Y=this.shouldCheckCRLF()&&this.startWithLF(T)&&this.endWithCR(O),De=this._buffers[0].buffer.length;this._buffers[0].buffer+=T;for(var Re=Tn(T,!1),We=0;WeO)T=T.left;else if(T.size_left+T.piece.length>=O){De+=T.size_left;var Re={node:T,remainder:O-T.size_left,nodeStartOffset:De};return this._searchCache.set(Re),Re}else O-=T.size_left+T.piece.length,De+=T.size_left+T.piece.length,T=T.right;return null},Je.prototype.nodeAt2=function(O,T){for(var Y=this.root,De=0;Y!==k;)if(Y.left!==k&&Y.lf_left>=O-1)Y=Y.left;else if(Y.lf_left+Y.piece.lineFeedCnt>O-1){var Re=this.getAccumulatedValue(Y,O-Y.lf_left-2),We=this.getAccumulatedValue(Y,O-Y.lf_left-1);return De+=Y.size_left,{node:Y,remainder:Math.min(Re+T-1,We),nodeStartOffset:De}}else if(Y.lf_left+Y.piece.lineFeedCnt===O-1){var Re=this.getAccumulatedValue(Y,O-Y.lf_left-2);if(Re+T-1<=Y.piece.length)return{node:Y,remainder:Re+T-1,nodeStartOffset:De};T-=Y.piece.length-Re;break}else O-=Y.lf_left+Y.piece.lineFeedCnt,De+=Y.size_left+Y.piece.length,Y=Y.right;for(Y=Y.next();Y!==k;){if(Y.piece.lineFeedCnt>0){var We=this.getAccumulatedValue(Y,0),ft=this.offsetOfNode(Y);return{node:Y,remainder:Math.min(T-1,We),nodeStartOffset:ft}}else if(Y.piece.length>=T-1){var lt=this.offsetOfNode(Y);return{node:Y,remainder:T-1,nodeStartOffset:lt}}else T-=Y.piece.length;Y=Y.next()}return null},Je.prototype.nodeCharCodeAt=function(O,T){if(O.piece.lineFeedCnt<1)return-1;var Y=this._buffers[O.piece.bufferIndex],De=this.offsetInBuffer(O.piece.bufferIndex,O.piece.start)+T;return Y.buffer.charCodeAt(De)},Je.prototype.offsetOfNode=function(O){if(!O)return 0;for(var T=O.size_left;O!==this.root;)O.parent.right===O&&(T+=O.parent.size_left+O.parent.piece.length),O=O.parent;return T},Je.prototype.shouldCheckCRLF=function(){return!(this._EOLNormalized&&this._EOL===` `)},Je.prototype.startWithLF=function(O){if(typeof O=="string")return O.charCodeAt(0)===10;if(O===k||O.piece.lineFeedCnt===0)return!1;var T=O.piece,Y=this._buffers[T.bufferIndex].lineStarts,De=T.start.line,Re=Y[De]+T.start.column;if(De===Y.length-1)return!1;var We=Y[De+1];return We>Re+1?!1:this._buffers[T.bufferIndex].buffer.charCodeAt(Re)===10},Je.prototype.endWithCR=function(O){return typeof O=="string"?O.charCodeAt(O.length-1)===13:O===k||O.piece.lineFeedCnt===0?!1:this.nodeCharCodeAt(O,O.piece.length-1)===13},Je.prototype.validateCRLFWithPrevNode=function(O){if(this.shouldCheckCRLF()&&this.startWithLF(O)){var T=O.prev();this.endWithCR(T)&&this.fixCRLF(T,O)}},Je.prototype.validateCRLFWithNextNode=function(O){if(this.shouldCheckCRLF()&&this.endWithCR(O)){var T=O.next();this.startWithLF(T)&&this.fixCRLF(O,T)}},Je.prototype.fixCRLF=function(O,T){var Y=[],De=this._buffers[O.piece.bufferIndex].lineStarts,Re;O.piece.end.column===0?Re={line:O.piece.end.line-1,column:De[O.piece.end.line]-De[O.piece.end.line-1]-1}:Re={line:O.piece.end.line,column:O.piece.end.column-1};var We=O.piece.length-1,ft=O.piece.lineFeedCnt-1;O.piece=new pt(O.piece.bufferIndex,O.piece.start,Re,ft,We),Tt(this,O,-1,-1),O.piece.length===0&&Y.push(O);var lt={line:T.piece.start.line+1,column:0},yt=T.piece.length-1,xt=this.getLineFeedCnt(T.piece.bufferIndex,lt,T.piece.end);T.piece=new pt(T.piece.bufferIndex,lt,T.piece.end,xt,yt),Tt(this,T,-1,-1),T.piece.length===0&&Y.push(T);var It=this.createNewPieces(`\r `);this.rbInsertRight(O,It[0]);for(var kt=0;kt0){dn.sort(function(qe,ct){return ct.lineNumber-qe.lineNumber}),Le=[];for(var ft=0,W=dn.length;ft0&&dn[ft-1].lineNumber===An)continue;var ae=dn[ft].oldContent,Fe=this.getLineContent(An);if(Fe.length===0||Fe===ae||N.q(Fe)!==-1)continue;Le.push(An)}}return new E.a(Mn,xn,Le)},Je.prototype._reduceOperations=function(O){return O.length<1e3?O:[this._toSingleEditOperation(O)]},Je.prototype._toSingleEditOperation=function(O){for(var T=!1,Y=O[0].range,De=O[O.length-1].range,Re=new G.a(Y.startLineNumber,Y.startColumn,De.endLineNumber,De.endColumn),We=Y.startLineNumber,ft=Y.startColumn,lt=[],yt=0,xt=O.length;yt0){var kt=lt.lines.length,Yt=lt.lines[0],Zt=lt.lines[kt-1];kt===1?It=new G.a(yt,xt,yt,xt+Yt.length):It=new G.a(yt,xt,yt+kt-1,Zt.length+1)}else It=new G.a(yt,xt,yt,xt);Y=It.endLineNumber,De=It.endColumn,T.push(It),Re=lt}return T},Je._sortOpsAscending=function(O,T){var Y=G.a.compareRangesUsingEnds(O.range,T.range);return Y===0?O.sortIndex-T.sortIndex:Y},Je._sortOpsDescending=function(O,T){var Y=G.a.compareRangesUsingEnds(O.range,T.range);return Y===0?T.sortIndex-O.sortIndex:-Y},Je}(),Qt=function(){function Je(O,T,Y,De,Re,We,ft,lt){this._chunks=O,this._bom=T,this._cr=Y,this._lf=De,this._crlf=Re,this._containsRTL=We,this._isBasicASCII=ft,this._normalizeEOL=lt}return Je.prototype._getEOL=function(O){var T=this._cr+this._lf+this._crlf,Y=this._cr+this._crlf;return T===0?O===1?` `:`\r `:Y>T/2?`\r `:` `},Je.prototype.create=function(O){var T=this._getEOL(O),Y=this._chunks;if(this._normalizeEOL&&(T===`\r `&&(this._cr>0||this._lf>0)||T===` `&&(this._cr>0||this._crlf>0)))for(var De=0,Re=Y.length;De=55296&&T<=56319?(this._acceptChunk1(O.substr(0,O.length-1),!1),this._hasPreviousChar=!0,this._previousChar=T):(this._acceptChunk1(O,!1),this._hasPreviousChar=!1,this._previousChar=T)},Je.prototype._acceptChunk1=function(O,T){if(!T&&O.length===0)return;this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+O):this._acceptChunk2(O)},Je.prototype._acceptChunk2=function(O){var T=Ft(this._tmpLineStarts,O);this.chunks.push(new gt(O,T.lineStarts)),this.cr+=T.cr,this.lf+=T.lf,this.crlf+=T.crlf,this.isBasicASCII&&(this.isBasicASCII=T.isBasicASCII),!this.isBasicASCII&&!this.containsRTL&&(this.containsRTL=N.i(O))},Je.prototype.finish=function(O){return O===void 0&&(O=!0),this._finish(),new Qt(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.isBasicASCII,O)},Je.prototype._finish=function(){if(this.chunks.length===0&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;var O=this.chunks[this.chunks.length-1];O.buffer+=String.fromCharCode(this._previousChar);var T=Tn(O.buffer);O.lineStarts=T,this._previousChar===13&&this.cr++}},Je}(),sn=function(){function Je(){this.changeType=1}return Je}(),ln=function(){function Je(O,T){this.changeType=2,this.lineNumber=O,this.detail=T}return Je}(),En=function(){function Je(O,T){this.changeType=3,this.fromLineNumber=O,this.toLineNumber=T}return Je}(),On=function(){function Je(O,T,Y){this.changeType=4,this.fromLineNumber=O,this.toLineNumber=T,this.detail=Y}return Je}(),Pn=function(){function Je(){this.changeType=5}return Je}(),Gn=function(){function Je(O,T,Y,De){this.changes=O,this.versionId=T,this.isUndoing=Y,this.isRedoing=De}return Je.prototype.containsEvent=function(O){for(var T=0,Y=this.changes.length;T=this._len;)this._beginState[this._len]=null,this._valid[this._len]=!1,this._len++},Je.prototype._deleteLines=function(O,T){if(T===0)return;O+T>this._len&&(T=this._len-O),this._beginState.splice(O,T),this._valid.splice(O,T),this._len-=T},Je.prototype._insertLines=function(O,T){if(T===0)return;for(var Y=[],De=[],Re=0;Re=0;We--)this._invalidateLine(O.startLineNumber+We-1);this._acceptDeleteRange(O),this._acceptInsertText(new j.a(O.startLineNumber,O.startColumn),T)},Je.prototype._acceptDeleteRange=function(O){var T=O.startLineNumber-1;if(T>=this._len)return;this._deleteLines(O.startLineNumber,O.endLineNumber-O.startLineNumber)},Je.prototype._acceptInsertText=function(O,T){var Y=O.lineNumber-1;if(Y>=this._len)return;this._insertLines(O.lineNumber,T)},Je}(),Ut=function(Je){zt(O,Je);function O(T){var Y=Je.call(this)||this;return Y._isDisposed=!1,Y._textModel=T,Y._tokenizationStateStore=new tn,Y._tokenizationSupport=null,Y._register(Kn.y.onDidChange(function(De){var Re=Y._textModel.getLanguageIdentifier();if(De.changedLanguages.indexOf(Re.language)===-1)return;Y._resetTokenizationState(),Y._textModel.clearTokens()})),Y._register(Y._textModel.onDidChangeRawContentFast(function(De){if(De.containsEvent(1)){Y._resetTokenizationState();return}})),Y._register(Y._textModel.onDidChangeContentFast(function(De){for(var Re=0,We=De.changes.length;ReY);){var We=this._tokenizeOneInvalidLine(De);if(We>=T)break}this._beginBackgroundTokenization(),this._textModel.setTokens(De.tokens)},O.prototype.tokenizeViewport=function(T,Y){var De=new vt.b;this._tokenizeViewport(De,T,Y),this._textModel.setTokens(De.tokens)},O.prototype.reset=function(){this._resetTokenizationState(),this._textModel.clearTokens()},O.prototype.forceTokenization=function(T){var Y=new vt.b;this._updateTokensUntilLine(Y,T),this._textModel.setTokens(Y.tokens)},O.prototype.isCheapToTokenize=function(T){if(!this._tokenizationSupport)return!0;var Y=this._tokenizationStateStore.invalidLineStartIndex+1;return T>Y?!1:T0&<>=1;lt--){var yt=this._textModel.getLineFirstNonWhitespaceColumn(lt);if(yt===0)continue;if(yt=0;lt--){var kt=Rn(xt,this._tokenizationSupport,We[lt],It);It=kt.endState}for(var Yt=Y;Yt<=De;Yt++){var Zt=this._textModel.getLineContent(Yt),kt=Rn(xt,this._tokenizationSupport,Zt,It);T.add(Yt,kt.tokens),this._tokenizationStateStore.setFakeTokens(Yt-1),It=kt.endState}},O}(ne.a);function Sn(Je){var O=Je.getLanguageIdentifier(),T=Je.isTooLargeForTokenization()?null:Kn.y.get(O.language),Y=null;if(T)try{Y=T.getInitialState()}catch(De){Object(I.e)(De),T=null}return[T,Y]}function Rn(Je,O,T,Y){var De=null;if(O)try{De=O.tokenize2(T,Y.clone(),0)}catch(Re){Object(I.e)(Re)}return De||(De=Object(yi.e)(Je.id,T,Y,0)),gi.a.convertToEndOffset(De.tokens,T.length),De}var Bn=r("34RT"),Fn=r("tkZS"),ri=r("pLcT"),ci=r("lh12"),zi=r("yqRl"),oo=r("Ytku"),Zn=function(){var Je=function(T,Y){return Je=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(De,Re){De.__proto__=Re}||function(De,Re){for(var We in Re)Re.hasOwnProperty(We)&&(De[We]=Re[We])},Je(T,Y)};return function(O,T){Je(O,T);function Y(){this.constructor=O}O.prototype=T===null?Object.create(T):(Y.prototype=T.prototype,new Y)}}();function Ii(){return new nn}function Si(Je){var O=Ii();return O.acceptChunk(Je),O.finish()}function ji(Je,O){var T=typeof Je=="string"?Si(Je):Je;return T.create(O)}var Un=0,Ci=999,Wi=1e4,Ti=function(){throw new Error("Invalid change accessor")},Gi=function(Je){Zn(O,Je);function O(T,Y,De,Re){Re===void 0&&(Re=null);var We=Je.call(this)||this;We._onWillDispose=We._register(new oe.a),We.onWillDispose=We._onWillDispose.event,We._onDidChangeDecorations=We._register(new Mi),We.onDidChangeDecorations=We._onDidChangeDecorations.event,We._onDidChangeLanguage=We._register(new oe.a),We.onDidChangeLanguage=We._onDidChangeLanguage.event,We._onDidChangeLanguageConfiguration=We._register(new oe.a),We.onDidChangeLanguageConfiguration=We._onDidChangeLanguageConfiguration.event,We._onDidChangeTokens=We._register(new oe.a),We.onDidChangeTokens=We._onDidChangeTokens.event,We._onDidChangeOptions=We._register(new oe.a),We.onDidChangeOptions=We._onDidChangeOptions.event,We._onDidChangeAttached=We._register(new oe.a),We.onDidChangeAttached=We._onDidChangeAttached.event,We._eventEmitter=We._register(new so),Un++,We.id="$model"+Un,We.isForSimpleWidget=Y.isForSimpleWidget,typeof Re=="undefined"||Re===null?We._associatedResource=F.a.parse("inmemory://model/"+Un):We._associatedResource=Re,We._attachedEditorCount=0,We._buffer=ji(T,Y.defaultEOL),We._options=O.resolveOptions(We._buffer,Y);var ft=We._buffer.getLineCount(),lt=We._buffer.getValueLengthInRange(new G.a(1,1,ft,We._buffer.getLineLength(ft)+1),0);return Y.largeFileOptimizations?We._isTooLargeForTokenization=lt>O.LARGE_FILE_SIZE_THRESHOLD||ft>O.LARGE_FILE_LINE_COUNT_THRESHOLD:We._isTooLargeForTokenization=!1,We._isTooLargeForSyncing=lt>O.MODEL_SYNC_LIMIT,We._versionId=1,We._alternativeVersionId=1,We._isDisposed=!1,We._isDisposing=!1,We._languageIdentifier=De||yi.a,We._languageRegistryListener=Fn.a.onDidChange(function(yt){yt.languageIdentifier.id===We._languageIdentifier.id&&We._onDidChangeLanguageConfiguration.fire({})}),We._instanceId=N.L(Un),We._lastDecorationId=0,We._decorations=Object.create(null),We._decorationsTree=new Bi,We._commandManager=new A(We),We._isUndoing=!1,We._isRedoing=!1,We._trimAutoWhitespaceLines=null,We._tokens=new vt.d,We._tokens2=new vt.e,We._tokenization=new Ut(We),We}return O.createFromString=function(T,Y,De,Re){return Y===void 0&&(Y=O.DEFAULT_CREATION_OPTIONS),De===void 0&&(De=null),Re===void 0&&(Re=null),new O(T,Y,De,Re)},O.resolveOptions=function(T,Y){if(Y.detectIndentation){var De=_(T,Y.tabSize,Y.insertSpaces);return new E.e({tabSize:De.tabSize,indentSize:De.tabSize,insertSpaces:De.insertSpaces,trimAutoWhitespace:Y.trimAutoWhitespace,defaultEOL:Y.defaultEOL})}return new E.e({tabSize:Y.tabSize,indentSize:Y.indentSize,insertSpaces:Y.insertSpaces,trimAutoWhitespace:Y.trimAutoWhitespace,defaultEOL:Y.defaultEOL})},O.prototype.onDidChangeRawContentFast=function(T){return this._eventEmitter.fastEvent(function(Y){return T(Y.rawContentChangedEvent)})},O.prototype.onDidChangeRawContent=function(T){return this._eventEmitter.slowEvent(function(Y){return T(Y.rawContentChangedEvent)})},O.prototype.onDidChangeContentFast=function(T){return this._eventEmitter.fastEvent(function(Y){return T(Y.contentChangedEvent)})},O.prototype.onDidChangeContent=function(T){return this._eventEmitter.slowEvent(function(Y){return T(Y.contentChangedEvent)})},O.prototype.dispose=function(){this._isDisposing=!0,this._onWillDispose.fire(),this._languageRegistryListener.dispose(),this._tokenization.dispose(),this._isDisposed=!0,Je.prototype.dispose.call(this),this._isDisposing=!1},O.prototype._assertNotDisposed=function(){if(this._isDisposed)throw new Error("Model is disposed!")},O.prototype._emitContentChangedEvent=function(T,Y){if(this._isDisposing)return;this._eventEmitter.fire(new Qn(T,Y))},O.prototype.setValue=function(T){if(this._assertNotDisposed(),T===null)return;var Y=ji(T,this._options.defaultEOL);this.setValueFromTextBuffer(Y)},O.prototype._createContentChanged2=function(T,Y,De,Re,We,ft,lt){return{changes:[{range:T,rangeOffset:Y,rangeLength:De,text:Re}],eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:We,isRedoing:ft,isFlush:lt}},O.prototype.setValueFromTextBuffer=function(T){if(this._assertNotDisposed(),T===null)return;var Y=this.getFullModelRange(),De=this.getValueLengthInRange(Y),Re=this.getLineCount(),We=this.getLineMaxColumn(Re);this._buffer=T,this._increaseVersionId(),this._tokens.flush(),this._tokens2.flush(),this._decorations=Object.create(null),this._decorationsTree=new Bi,this._commandManager=new A(this),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new Gn([new sn],this._versionId,!1,!1),this._createContentChanged2(new G.a(1,1,Re,We),0,De,this.getValue(),!1,!1,!0))},O.prototype.setEOL=function(T){this._assertNotDisposed();var Y=T===1?`\r `:` `;if(this._buffer.getEOL()===Y)return;var De=this.getFullModelRange(),Re=this.getValueLengthInRange(De),We=this.getLineCount(),ft=this.getLineMaxColumn(We);this._onBeforeEOLChange(),this._buffer.setEOL(Y),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new Gn([new Pn],this._versionId,!1,!1),this._createContentChanged2(new G.a(1,1,We,ft),0,Re,this.getValue(),!1,!1,!1))},O.prototype._onBeforeEOLChange=function(){var T=this.getVersionId(),Y=this._decorationsTree.search(0,!1,!1,T);this._ensureNodesHaveRanges(Y)},O.prototype._onAfterEOLChange=function(){for(var T=this.getVersionId(),Y=this._decorationsTree.collectNodesPostOrder(),De=0,Re=Y.length;De0},O.prototype.getAttachedEditorCount=function(){return this._attachedEditorCount},O.prototype.isTooLargeForSyncing=function(){return this._isTooLargeForSyncing},O.prototype.isTooLargeForTokenization=function(){return this._isTooLargeForTokenization},O.prototype.isDisposed=function(){return this._isDisposed},O.prototype.isDominatedByLongLines=function(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;for(var T=0,Y=0,De=this._buffer.getLineCount(),Re=1;Re<=De;Re++){var We=this._buffer.getLineLength(Re);We>=Wi?Y+=We:T+=We}return Y>T},Object.defineProperty(O.prototype,"uri",{get:function(){return this._associatedResource},enumerable:!0,configurable:!0}),O.prototype.getOptions=function(){return this._assertNotDisposed(),this._options},O.prototype.getFormattingOptions=function(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}},O.prototype.updateOptions=function(T){this._assertNotDisposed();var Y=typeof T.tabSize!="undefined"?T.tabSize:this._options.tabSize,De=typeof T.indentSize!="undefined"?T.indentSize:this._options.indentSize,Re=typeof T.insertSpaces!="undefined"?T.insertSpaces:this._options.insertSpaces,We=typeof T.trimAutoWhitespace!="undefined"?T.trimAutoWhitespace:this._options.trimAutoWhitespace,ft=new E.e({tabSize:Y,indentSize:De,insertSpaces:Re,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:We});if(this._options.equals(ft))return;var lt=this._options.createChangeEvent(ft);this._options=ft,this._onDidChangeOptions.fire(lt)},O.prototype.detectIndentation=function(T,Y){this._assertNotDisposed();var De=_(this._buffer,Y,T);this.updateOptions({insertSpaces:De.insertSpaces,tabSize:De.tabSize,indentSize:De.tabSize})},O._normalizeIndentationFromWhitespace=function(T,Y,De){for(var Re=0,We=0;Wethis.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineContent(T)},O.prototype.getLineLength=function(T){if(this._assertNotDisposed(),T<1||T>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(T)},O.prototype.getLinesContent=function(){return this._assertNotDisposed(),this._buffer.getLinesContent()},O.prototype.getEOL=function(){return this._assertNotDisposed(),this._buffer.getEOL()},O.prototype.getLineMinColumn=function(T){return this._assertNotDisposed(),1},O.prototype.getLineMaxColumn=function(T){if(this._assertNotDisposed(),T<1||T>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(T)+1},O.prototype.getLineFirstNonWhitespaceColumn=function(T){if(this._assertNotDisposed(),T<1||T>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(T)},O.prototype.getLineLastNonWhitespaceColumn=function(T){if(this._assertNotDisposed(),T<1||T>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(T)},O.prototype._validateRangeRelaxedNoAllocations=function(T){var Y=this._buffer.getLineCount(),De=T.startLineNumber,Re=T.startColumn,We,ft;if(De<1)We=1,ft=1;else if(De>Y)We=Y,ft=this.getLineMaxColumn(We);else if(We=De|0,Re<=1)ft=1;else{var lt=this.getLineMaxColumn(We);Re>=lt?ft=lt:ft=Re|0}var yt=T.endLineNumber,xt=T.endColumn,It,kt;if(yt<1)It=1,kt=1;else if(yt>Y)It=Y,kt=this.getLineMaxColumn(It);else if(It=yt|0,xt<=1)kt=1;else{var lt=this.getLineMaxColumn(It);xt>=lt?kt=lt:kt=xt|0}return De===We&&Re===ft&&yt===It&&xt===kt&&T instanceof G.a&&!(T instanceof R.a)?T:new G.a(We,ft,It,kt)},O.prototype._isValidPosition=function(T,Y,De){if(typeof T!="number"||typeof Y!="number")return!1;if(isNaN(T)||isNaN(Y))return!1;if(T<1||Y<1)return!1;if((T|0)!==T||(Y|0)!==Y)return!1;var Re=this._buffer.getLineCount();if(T>Re)return!1;if(Y===1)return!0;var We=this.getLineMaxColumn(T);if(Y>We)return!1;if(De===1){var ft=this._buffer.getLineCharCode(T,Y-2);if(N.z(ft))return!1}return!0},O.prototype._validatePosition=function(T,Y,De){var Re=Math.floor(typeof T=="number"&&!isNaN(T)?T:1),We=Math.floor(typeof Y=="number"&&!isNaN(Y)?Y:1),ft=this._buffer.getLineCount();if(Re<1)return new j.a(1,1);if(Re>ft)return new j.a(ft,this.getLineMaxColumn(ft));if(We<=1)return new j.a(Re,1);var lt=this.getLineMaxColumn(Re);if(We>=lt)return new j.a(Re,lt);if(De===1){var yt=this._buffer.getLineCharCode(Re,We-2);if(N.z(yt))return new j.a(Re,We-1)}return new j.a(Re,We)},O.prototype.validatePosition=function(T){var Y=1;return this._assertNotDisposed(),T instanceof j.a&&this._isValidPosition(T.lineNumber,T.column,Y)?T:this._validatePosition(T.lineNumber,T.column,Y)},O.prototype._isValidRange=function(T,Y){var De=T.startLineNumber,Re=T.startColumn,We=T.endLineNumber,ft=T.endColumn;if(!this._isValidPosition(De,Re,0))return!1;if(!this._isValidPosition(We,ft,0))return!1;if(Y===1){var lt=Re>1?this._buffer.getLineCharCode(De,Re-2):0,yt=ft>1&&ft<=this._buffer.getLineLength(We)?this._buffer.getLineCharCode(We,ft-2):0,xt=N.z(lt),It=N.z(yt);return!xt&&!It}return!0},O.prototype.validateRange=function(T){var Y=1;if(this._assertNotDisposed(),T instanceof G.a&&!(T instanceof R.a)&&this._isValidRange(T,Y))return T;var De=this._validatePosition(T.startLineNumber,T.startColumn,0),Re=this._validatePosition(T.endLineNumber,T.endColumn,0),We=De.lineNumber,ft=De.column,lt=Re.lineNumber,yt=Re.column;if(Y===1){var xt=ft>1?this._buffer.getLineCharCode(We,ft-2):0,It=yt>1&&yt<=this._buffer.getLineLength(lt)?this._buffer.getLineCharCode(lt,yt-2):0,kt=N.z(xt),Yt=N.z(It);return!kt&&!Yt?new G.a(We,ft,lt,yt):We===lt&&ft===yt?new G.a(We,ft-1,lt,yt-1):kt&&Yt?new G.a(We,ft-1,lt,yt+1):kt?new G.a(We,ft-1,lt,yt):new G.a(We,ft,lt,yt+1)}return new G.a(We,ft,lt,yt)},O.prototype.modifyPosition=function(T,Y){this._assertNotDisposed();var De=this.getOffsetAt(T)+Y;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,De)))},O.prototype.getFullModelRange=function(){this._assertNotDisposed();var T=this.getLineCount();return new G.a(1,1,T,this.getLineMaxColumn(T))},O.prototype.findMatchesLineByLine=function(T,Y,De,Re){return this._buffer.findMatchesLineByLine(T,Y,De,Re)},O.prototype.findMatches=function(T,Y,De,Re,We,ft,lt){lt===void 0&&(lt=Ci),this._assertNotDisposed();var yt;if(G.a.isIRange(Y)?yt=this.validateRange(Y):yt=this.getFullModelRange(),!De&&T.indexOf(` `)<0){var xt=new Gt.a(T,De,Re,We),It=xt.parseSearchRequest();return It?this.findMatchesLineByLine(yt,It,ft,lt):[]}return Gt.c.findMatches(this,new Gt.a(T,De,Re,We),yt,ft,lt)},O.prototype.findNextMatch=function(T,Y,De,Re,We,ft){this._assertNotDisposed();var lt=this.validatePosition(Y);if(!De&&T.indexOf(` `)<0){var yt=new Gt.a(T,De,Re,We),xt=yt.parseSearchRequest();if(!xt)return null;var It=this.getLineCount(),kt=new G.a(lt.lineNumber,lt.column,It,this.getLineMaxColumn(It)),Yt=this.findMatchesLineByLine(kt,xt,ft,1);return Gt.c.findNextMatch(this,new Gt.a(T,De,Re,We),lt,ft),Yt.length>0?Yt[0]:(kt=new G.a(1,1,lt.lineNumber,this.getLineMaxColumn(lt.lineNumber)),Yt=this.findMatchesLineByLine(kt,xt,ft,1),Yt.length>0?Yt[0]:null)}return Gt.c.findNextMatch(this,new Gt.a(T,De,Re,We),lt,ft)},O.prototype.findPreviousMatch=function(T,Y,De,Re,We,ft){this._assertNotDisposed();var lt=this.validatePosition(Y);return Gt.c.findPreviousMatch(this,new Gt.a(T,De,Re,We),lt,ft)},O.prototype.pushStackElement=function(){this._commandManager.pushStackElement()},O.prototype.pushEOL=function(T){var Y=this.getEOL()===` `?0:1;if(Y===T)return;try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._commandManager.pushEOL(T)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},O.prototype.pushEditOperations=function(T,Y,De){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(T,Y,De)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},O.prototype._pushEditOperations=function(T,Y,De){var Re=this;if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){for(var We=Y.map(function(Le){return{range:Re.validateRange(Le.range),text:Le.text}}),ft=!0,lt=0,yt=T.length;ltxt.endLineNumber,fn=xt.startLineNumber>Zt.endLineNumber;if(!dn&&!fn){It=!0;break}}if(!It){ft=!1;break}}if(ft)for(var lt=0,yt=this._trimAutoWhitespaceLines.length;ltZt.endLineNumber)continue;if(An===Zt.startLineNumber&&Zt.startColumn===gn&&Zt.isEmpty()&&xn&&xn.length>0&&xn.charAt(0)===` `)continue;if(An===Zt.startLineNumber&&Zt.startColumn===1&&Zt.isEmpty()&&xn&&xn.length>0&&xn.charAt(xn.length-1)===` `)continue;Mn=!1;break}Mn&&Y.push({range:new G.a(An,1,An,gn),text:null})}this._trimAutoWhitespaceLines=null}return this._commandManager.pushEditOperation(T,Y,De)},O.prototype.applyEdits=function(T){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._applyEdits(T)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},O.prototype._applyEdits=function(T){for(var Y=0,De=T.length;Y0?It.text.charCodeAt(0):0),this._onDidChangeDecorations.fire(),this._decorationsTree.acceptReplace(It.rangeOffset,It.rangeLength,It.text.length,It.forceMoveMarkers);for(var fn=It.range.startLineNumber,An=It.range.endLineNumber,gn=An-fn,Mn=Yt,xn=Math.min(gn,Mn),Le=Mn-gn,W=xn;W>=0;W--){var ae=fn+W,Fe=ft-xt-Le+ae;yt.push(new ln(ae,this.getLineContent(Fe)))}if(xnthis.getLineCount()?[]:this.getLinesDecorations(T,T,Y,De)},O.prototype.getLinesDecorations=function(T,Y,De,Re){De===void 0&&(De=0),Re===void 0&&(Re=!1);var We=this.getLineCount(),ft=Math.min(We,Math.max(1,T)),lt=Math.min(We,Math.max(1,Y)),yt=this.getLineMaxColumn(lt);return this._getDecorationsInRange(new G.a(ft,1,lt,yt),De,Re)},O.prototype.getDecorationsInRange=function(T,Y,De){Y===void 0&&(Y=0),De===void 0&&(De=!1);var Re=this.validateRange(T);return this._getDecorationsInRange(Re,Y,De)},O.prototype.getOverviewRulerDecorations=function(T,Y){T===void 0&&(T=0),Y===void 0&&(Y=!1);var De=this.getVersionId(),Re=this._decorationsTree.search(T,Y,!0,De);return this._ensureNodesHaveRanges(Re)},O.prototype.getAllDecorations=function(T,Y){T===void 0&&(T=0),Y===void 0&&(Y=!1);var De=this.getVersionId(),Re=this._decorationsTree.search(T,Y,!1,De);return this._ensureNodesHaveRanges(Re)},O.prototype._getDecorationsInRange=function(T,Y,De){var Re=this._buffer.getOffsetAt(T.startLineNumber,T.startColumn),We=this._buffer.getOffsetAt(T.endLineNumber,T.endColumn),ft=this.getVersionId(),lt=this._decorationsTree.intervalSearch(Re,We,Y,De,ft);return this._ensureNodesHaveRanges(lt)},O.prototype._ensureNodesHaveRanges=function(T){for(var Y=0,De=T.length;Ythis.getLineCount())throw new Error("Illegal value for lineNumber");this._tokens.setTokens(this._languageIdentifier.id,T-1,this._buffer.getLineLength(T),Y)},O.prototype.setTokens=function(T){if(T.length===0)return;for(var Y=[],De=0,Re=T.length;Dethis.getLineCount())throw new Error("Illegal value for lineNumber");this._tokenization.forceTokenization(T)},O.prototype.isCheapToTokenize=function(T){return this._tokenization.isCheapToTokenize(T)},O.prototype.tokenizeIfCheap=function(T){this.isCheapToTokenize(T)&&this.forceTokenization(T)},O.prototype.getLineTokens=function(T){if(T<1||T>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._getLineTokens(T)},O.prototype._getLineTokens=function(T){var Y=this.getLineContent(T),De=this._tokens.getTokens(this._languageIdentifier.id,T-1,Y);return this._tokens2.addSemanticTokens(T,De)},O.prototype.getLanguageIdentifier=function(){return this._languageIdentifier},O.prototype.getModeId=function(){return this._languageIdentifier.language},O.prototype.setMode=function(T){if(this._languageIdentifier.id===T.id)return;var Y={oldLanguage:this._languageIdentifier.language,newLanguage:T.language};this._languageIdentifier=T,this._onDidChangeLanguage.fire(Y),this._onDidChangeLanguageConfiguration.fire({})},O.prototype.getLanguageIdAtPosition=function(T,Y){var De=this.validatePosition(new j.a(T,Y)),Re=this.getLineTokens(De.lineNumber);return Re.getLanguageId(Re.findTokenIndexAtOffset(De.column-1))},O.prototype.getWordAtPosition=function(T){this._assertNotDisposed();var Y=this.validatePosition(T),De=this.getLineContent(Y.lineNumber),Re=this._getLineTokens(Y.lineNumber),We=Re.findTokenIndexAtOffset(Y.column-1),ft=O._findLanguageBoundaries(Re,We),lt=ft[0],yt=ft[1],xt=Object(Bn.d)(Y.column,Fn.a.getWordDefinition(Re.getLanguageId(We)),De.substring(lt,yt),lt);if(xt&&xt.startColumn<=T.column&&T.column<=xt.endColumn)return xt;if(We>0&<===Y.column-1){var It=O._findLanguageBoundaries(Re,We-1),kt=It[0],Yt=It[1],Zt=Object(Bn.d)(Y.column,Fn.a.getWordDefinition(Re.getLanguageId(We-1)),De.substring(kt,Yt),kt);if(Zt&&Zt.startColumn<=T.column&&T.column<=Zt.endColumn)return Zt}return null},O._findLanguageBoundaries=function(T,Y){for(var De=T.getLanguageId(Y),Re=0,We=Y;We>=0&&T.getLanguageId(We)===De;We--)Re=T.getStartOffset(We);for(var ft=T.getLineContent().length,We=Y,lt=T.getCount();We=0;xt--){var It=De.getEndOffset(xt);if(It<=yt)break;Object(ri.b)(De.getStandardTokenType(xt))&&(yt=It)}for(var kt=Math.min(We.length,T.column-1+lt.maxBracketLength),Yt=null;;){var Zt=ci.a.findNextBracketInRange(lt.forwardRegex,Y,We,yt,kt);if(!Zt)break;if(Zt.startColumn<=T.column&&T.column<=Zt.endColumn){var dn=We.substring(Zt.startColumn-1,Zt.endColumn-1).toLowerCase(),fn=this._matchFoundBracket(Zt,lt.textIsBracket[dn],lt.textIsOpenBracket[dn]);fn&&(Yt=fn)}yt=Zt.endColumn-1}if(Yt)return Yt}if(ft>0&&De.getStartOffset(ft)===T.column-1){var An=ft-1,gn=Fn.a.getBracketsSupport(De.getLanguageId(An));if(gn&&!Object(ri.b)(De.getStandardTokenType(An))){for(var yt=Math.max(0,T.column-1-gn.maxBracketLength),kt=Math.min(We.length,T.column-1+gn.maxBracketLength),xt=An+1;xt=kt)break;Object(ri.b)(De.getStandardTokenType(xt))&&(kt=Mn)}var Zt=ci.a.findPrevBracketInRange(gn.reversedRegex,Y,We,yt,kt);if(Zt&&Zt.startColumn<=T.column&&T.column<=Zt.endColumn){var dn=We.substring(Zt.startColumn-1,Zt.endColumn-1).toLowerCase(),fn=this._matchFoundBracket(Zt,gn.textIsBracket[dn],gn.textIsOpenBracket[dn]);if(fn)return fn}}}return null},O.prototype._matchFoundBracket=function(T,Y,De){if(!Y)return null;if(De){var Re=this._findMatchingBracketDown(Y,T.getEndPosition());if(Re)return[T,Re]}else{var Re=this._findMatchingBracketUp(Y,T.getStartPosition());if(Re)return[T,Re]}return null},O.prototype._findMatchingBracketUp=function(T,Y){for(var De=T.languageIdentifier.id,Re=T.reversedRegex,We=-1,ft=function(Mn,xn,Le,W){for(;;){var ae=ci.a.findPrevBracketInRange(Re,Mn,xn,Le,W);if(!ae)break;var Fe=xn.substring(ae.startColumn-1,ae.endColumn-1).toLowerCase();if(T.isOpen(Fe)?We++:T.isClose(Fe)&&We--,We===0)return ae;W=ae.startColumn-1}return null},lt=Y.lineNumber;lt>=1;lt--){var yt=this._getLineTokens(lt),xt=yt.getCount(),It=this._buffer.getLineContent(lt),kt=xt-1,Yt=It.length,Zt=It.length;lt===Y.lineNumber&&(kt=yt.findTokenIndexAtOffset(Y.column-1),Yt=Y.column-1,Zt=Y.column-1);for(var dn=!0;kt>=0;kt--){var fn=yt.getLanguageId(kt)===De&&!Object(ri.b)(yt.getStandardTokenType(kt));if(fn)dn?Yt=yt.getStartOffset(kt):(Yt=yt.getStartOffset(kt),Zt=yt.getEndOffset(kt));else if(dn&&Yt!==Zt){var An=ft(lt,It,Yt,Zt);if(An)return An}dn=fn}if(dn&&Yt!==Zt){var An=ft(lt,It,Yt,Zt);if(An)return An}}return null},O.prototype._findMatchingBracketDown=function(T,Y){for(var De=T.languageIdentifier.id,Re=T.forwardRegex,We=1,ft=function(xn,Le,W,ae){for(;;){var Fe=ci.a.findNextBracketInRange(Re,xn,Le,W,ae);if(!Fe)break;var qe=Le.substring(Fe.startColumn-1,Fe.endColumn-1).toLowerCase();if(T.isOpen(qe)?We++:T.isClose(qe)&&We--,We===0)return Fe;W=Fe.endColumn-1}return null},lt=this.getLineCount(),yt=Y.lineNumber;yt<=lt;yt++){var xt=this._getLineTokens(yt),It=xt.getCount(),kt=this._buffer.getLineContent(yt),Yt=0,Zt=0,dn=0;yt===Y.lineNumber&&(Yt=xt.findTokenIndexAtOffset(Y.column-1),Zt=Y.column-1,dn=Y.column-1);for(var fn=!0;Yt=1;We--){var ft=this._getLineTokens(We),lt=ft.getCount(),yt=this._buffer.getLineContent(We),xt=lt-1,It=yt.length,kt=yt.length;if(We===Y.lineNumber){xt=ft.findTokenIndexAtOffset(Y.column-1),It=Y.column-1,kt=Y.column-1;var Yt=ft.getLanguageId(xt);De!==Yt&&(De=Yt,Re=Fn.a.getBracketsSupport(De))}for(var Zt=!0;xt>=0;xt--){var Yt=ft.getLanguageId(xt);if(De!==Yt){if(Re&&Zt&&It!==kt){var dn=ci.a.findPrevBracketInRange(Re.reversedRegex,We,yt,It,kt);if(dn)return this._toFoundBracket(Re,dn);Zt=!1}De=Yt,Re=Fn.a.getBracketsSupport(De)}var fn=!!Re&&!Object(ri.b)(ft.getStandardTokenType(xt));if(fn)Zt?It=ft.getStartOffset(xt):(It=ft.getStartOffset(xt),kt=ft.getEndOffset(xt));else if(Re&&Zt&&It!==kt){var dn=ci.a.findPrevBracketInRange(Re.reversedRegex,We,yt,It,kt);if(dn)return this._toFoundBracket(Re,dn)}Zt=fn}if(Re&&Zt&&It!==kt){var dn=ci.a.findPrevBracketInRange(Re.reversedRegex,We,yt,It,kt);if(dn)return this._toFoundBracket(Re,dn)}}return null},O.prototype.findNextBracket=function(T){for(var Y=this.validatePosition(T),De=this.getLineCount(),Re=-1,We=null,ft=Y.lineNumber;ft<=De;ft++){var lt=this._getLineTokens(ft),yt=lt.getCount(),xt=this._buffer.getLineContent(ft),It=0,kt=0,Yt=0;if(ft===Y.lineNumber){It=lt.findTokenIndexAtOffset(Y.column-1),kt=Y.column-1,Yt=Y.column-1;var Zt=lt.getLanguageId(It);Re!==Zt&&(Re=Zt,We=Fn.a.getBracketsSupport(Re))}for(var dn=!0;ItY)return null;var fn=this._getLineTokens(Zt),An=fn.getCount(),gn=this._buffer.getLineContent(Zt),Mn=0,xn=0,Le=0;if(Zt===Re.lineNumber){Mn=fn.findTokenIndexAtOffset(Re.column-1),xn=Re.column-1,Le=Re.column-1;var W=fn.getLanguageId(Mn);It!==W&&(It=W,kt=Fn.a.getBracketsSupport(It),yt(It,kt))}for(var ae=!0;MnWe)throw new Error("Illegal value for lineNumber");for(var ft=Fn.a.getFoldingRules(this._languageIdentifier.id),lt=Boolean(ft&&ft.offSide),yt=-2,xt=-1,It=-2,kt=-1,Yt=function(Ue){if(yt!==-1&&(yt===-2||yt>Ue-1)){yt=-1,xt=-1;for(var at=Ue-2;at>=0;at--){var et=Re._computeIndentLevel(at);if(et>=0){yt=at,xt=et;break}}}if(It===-2){It=-1,kt=-1;for(var at=Ue;at=0){It=at,kt=Q;break}}}},Zt=-2,dn=-1,fn=-2,An=-1,gn=function(Ue){if(Zt===-2){Zt=-1,dn=-1;for(var at=Ue-2;at>=0;at--){var et=Re._computeIndentLevel(at);if(et>=0){Zt=at,dn=et;break}}}if(fn!==-1&&(fn===-2||fn=0){fn=at,An=Q;break}}}},Mn=0,xn=!0,Le=0,W=!0,ae=0,Fe=0;xn||W;Fe++){var qe=T-Fe,ct=T+Fe;if(Fe!==0&&(qe<1||qeWe||ct>De)&&(W=!1),Fe>5e4&&(xn=!1,W=!1),xn){var St=void 0,Ge=this._computeIndentLevel(qe-1);if(Ge>=0?(It=qe-1,kt=Ge,St=Math.ceil(Ge/this._options.indentSize)):(Yt(qe),St=this._getIndentLevelForWhitespaceLine(lt,xt,kt)),Fe===0){if(Mn=qe,Le=ct,ae=St,ae===0)return{startLineNumber:Mn,endLineNumber:Le,indent:ae};continue}St>=ae?Mn=qe:xn=!1}if(W){var de=void 0,Ge=this._computeIndentLevel(ct-1);Ge>=0?(Zt=ct-1,dn=Ge,de=Math.ceil(Ge/this._options.indentSize)):(gn(ct),de=this._getIndentLevelForWhitespaceLine(lt,dn,An)),de>=ae?Le=ct:W=!1}}return{startLineNumber:Mn,endLineNumber:Le,indent:ae}},O.prototype.getLinesIndentGuides=function(T,Y){this._assertNotDisposed();var De=this.getLineCount();if(T<1||T>De)throw new Error("Illegal value for startLineNumber");if(Y<1||Y>De)throw new Error("Illegal value for endLineNumber");for(var Re=Fn.a.getFoldingRules(this._languageIdentifier.id),We=Boolean(Re&&Re.offSide),ft=new Array(Y-T+1),lt=-2,yt=-1,xt=-2,It=-1,kt=T;kt<=Y;kt++){var Yt=kt-T,Zt=this._computeIndentLevel(kt-1);if(Zt>=0){lt=kt-1,yt=Zt,ft[Yt]=Math.ceil(Zt/this._options.indentSize);continue}if(lt===-2){lt=-1,yt=-1;for(var dn=kt-2;dn>=0;dn--){var fn=this._computeIndentLevel(dn);if(fn>=0){lt=dn,yt=fn;break}}}if(xt!==-1&&(xt===-2||xt=0){xt=dn,It=fn;break}}}ft[Yt]=this._getIndentLevelForWhitespaceLine(We,yt,It)}return ft},O.prototype._getIndentLevelForWhitespaceLine=function(T,Y,De){return Y===-1||De===-1?0:Y0){this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(T):this._deferredEvent=T;return}this._fastEmitter.fire(T),this._slowEmitter.fire(T)},O}(ne.a)},"8hEA":function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars"],mimetypes:["text/x-handlebars-template"],loader:function(){return r.e(214).then(r.bind(null,"S7HC"))}})},"9HM1":function(wt,P,r){"use strict";r.d(P,"a",function(){return I}),r.d(P,"b",function(){return oe}),r.d(P,"c",function(){return ne});var I={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:"text/plain"},oe=function(){function N(F){this.data=F}return N.prototype.update=function(){},N.prototype.getData=function(){return this.data},N}(),ne={CurrentDragAndDropData:void 0}},"9UUe":function(wt,P,r){},"9wIi":function(wt,P,r){"use strict";r.r(P);var I=r("g9ht"),oe=r("Qun0"),ne=r("Whdu"),N=r("2GBI"),F=r("qz6B"),U=r("V0RK"),j=r("w9Cd"),G=r("F5bH"),R=r("tkZS"),E=function(){function p(g,m){this._selection=g,this._insertSpace=m,this._usedEndToken=null}return p._haystackHasNeedleAtOffset=function(g,m,w){if(w<0)return!1;var B=m.length,H=g.length;if(w+B>H)return!1;for(var re=0;re=65&&he<=90&&he+32===Ee)continue;if(Ee>=65&&Ee<=90&&Ee+32===he)continue;return!1}return!0},p.prototype._createOperationsForBlockComment=function(g,m,w,B,H,re){var he=g.startLineNumber,Ee=g.startColumn,Se=g.endLineNumber,q=g.endColumn,Z=H.getLineContent(he),ce=H.getLineContent(Se),Me=Z.lastIndexOf(m,Ee-1+m.length),Ve=ce.indexOf(w,q-1-w.length);if(Me!==-1&&Ve!==-1)if(he===Se){var _e=Z.substring(Me+m.length,Ve);_e.indexOf(w)>=0&&(Me=-1,Ve=-1)}else{var ue=Z.substring(Me+m.length),se=ce.substring(0,Ve);(ue.indexOf(w)>=0||se.indexOf(w)>=0)&&(Me=-1,Ve=-1)}var fe;Me!==-1&&Ve!==-1?(B&&Me+m.length0&&ce.charCodeAt(Ve-1)===32&&(w=" "+w,Ve-=1),fe=p._createRemoveBlockCommentOperations(new j.a(he,Me+m.length+1,Se,Ve+1),m,w)):(fe=p._createAddBlockCommentOperations(g,m,w,this._insertSpace),this._usedEndToken=fe.length===1?w:null);for(var ie=0,J=fe;ieH?m[Ee].commentStrOffset=re-1:m[Ee].commentStrOffset=re}},p}(),D=function(){var p=function(m,w){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,H){B.__proto__=H}||function(B,H){for(var re in H)H.hasOwnProperty(re)&&(B[re]=H[re])},p(m,w)};return function(g,m){p(g,m);function w(){this.constructor=g}g.prototype=m===null?Object.create(m):(w.prototype=m.prototype,new w)}}(),A=function(p){D(g,p);function g(m,w){var B=p.call(this,w)||this;return B._type=m,B}return g.prototype.run=function(m,w){if(!w.hasModel())return;for(var B=w.getModel(),H=[],re=w.getSelections(),he=B.getOptions(),Ee=w.getOption(13),Se=0,q=re;SeE)throw new Error("invalid startIndexes or endIndexes size");this._startIndexes=pt,this._endIndexes=gt,this._collapseStates=new Uint32Array(Math.ceil(pt.length/32)),this._types=Dt,this._parentsComputed=!1}return Ft.prototype.ensureParentIndices=function(){var pt=this;if(!this._parentsComputed){this._parentsComputed=!0;for(var gt=[],Dt=function(En,On){var Pn=gt[gt.length-1];return pt.getStartLineNumber(Pn)<=En&&pt.getEndLineNumber(Pn)>=On},Lt=0,Vt=this._startIndexes.length;Ltx||nn>x)throw new Error("startLineNumber or endLineNumber must not exceed "+x);for(;gt.length>0&&!Dt(Qt,nn);)gt.pop();var sn=gt.length>0?gt[gt.length-1]:-1;gt.push(Lt),this._startIndexes[Lt]=Qt+((sn&255)<<24),this._endIndexes[Lt]=nn+((sn&65280)<<16)}}},Object.defineProperty(Ft.prototype,"length",{get:function(){return this._startIndexes.length},enumerable:!0,configurable:!0}),Ft.prototype.getStartLineNumber=function(pt){return this._startIndexes[pt]&x},Ft.prototype.getEndLineNumber=function(pt){return this._endIndexes[pt]&x},Ft.prototype.getType=function(pt){return this._types?this._types[pt]:void 0},Ft.prototype.hasTypes=function(){return!!this._types},Ft.prototype.isCollapsed=function(pt){var gt=pt/32|0,Dt=pt%32;return(this._collapseStates[gt]&1<>>24)+((this._endIndexes[pt]&K)>>>16);return gt===E?-1:gt},Ft.prototype.contains=function(pt,gt){return this.getStartLineNumber(pt)<=gt&&this.getEndLineNumber(pt)>=gt},Ft.prototype.findIndex=function(pt){var gt=0,Dt=this._startIndexes.length;if(Dt===0)return-1;for(;gt=0){var Dt=this.getEndLineNumber(gt);if(Dt>=pt)return gt;for(gt=this.getParentIndex(gt);gt!==-1;){if(this.contains(gt,pt))return gt;gt=this.getParentIndex(gt)}}return-1},Ft.prototype.toString=function(){for(var pt=[],gt=0;gt=this.endLineNumber},Ft.prototype.containsLine=function(pt){return this.startLineNumber<=pt&&pt<=this.endLineNumber},Ft}(),te=function(){function Ft(pt,gt){this._updateEventEmitter=new R.a,this.onDidChange=this._updateEventEmitter.event,this._textModel=pt,this._decorationProvider=gt,this._regions=new D(new Uint32Array(0),new Uint32Array(0)),this._editorDecorationIds=[],this._isInitialized=!1}return Object.defineProperty(Ft.prototype,"regions",{get:function(){return this._regions},enumerable:!0,configurable:!0}),Object.defineProperty(Ft.prototype,"textModel",{get:function(){return this._textModel},enumerable:!0,configurable:!0}),Object.defineProperty(Ft.prototype,"isInitialized",{get:function(){return this._isInitialized},enumerable:!0,configurable:!0}),Ft.prototype.toggleCollapseState=function(pt){var gt=this;if(!pt.length)return;var Dt={};this._decorationProvider.changeDecorations(function(Lt){for(var Vt=0,Qt=pt;Vt=Gn)Qt(ln,Pn===Gn),ln++;else break}}En=sn()}for(;ln0?pt:void 0},Ft.prototype.applyMemento=function(pt){if(!Array.isArray(pt))return;for(var gt=[],Dt=0,Lt=pt;Dt=0;){var Qt=this._regions.toRegion(Lt);(!gt||gt(Qt,Vt))&&Dt.push(Qt),Vt++,Lt=Qt.parentIndex}return Dt},Ft.prototype.getRegionAtLine=function(pt){if(this._regions){var gt=this._regions.findRange(pt);if(gt>=0)return this._regions.toRegion(gt)}return null},Ft.prototype.getRegionsInside=function(pt,gt){var Dt=[],Lt=pt?pt.regionIndex+1:0,Vt=pt?pt.endLineNumber:Number.MAX_VALUE;if(gt&>.length===2)for(var Qt=[],nn=Lt,sn=this._regions.length;nn0&&!ln.containedBy(Qt[Qt.length-1]);)Qt.pop();Qt.push(ln),gt(ln,Qt.length)&&Dt.push(ln)}else break}else for(var nn=Lt,sn=this._regions.length;nn1){var Pn=Ft.getRegionsInside(En,function(Gn,Qn){return Gn.isCollapsed!==On&&Qn0)for(var Vt=0,Qt=Dt;Vt1)){var ln=Ft.getRegionsInside(sn,function(En,On){return En.isCollapsed!==pt&&On0&&Dt.push(nn[0])}Ft.toggleCollapseState(Dt)}function g(Ft,pt,gt,Dt){var Lt=function(nn,sn){return sn===pt&&nn.isCollapsed!==gt&&!Dt.some(function(ln){return nn.containsLine(ln)})},Vt=Ft.getRegionsInside(null,Lt);Ft.toggleCollapseState(Vt)}function m(Ft,pt,gt){for(var Dt=Ft.textModel,Lt=Ft.regions,Vt=[],Qt=Lt.length-1;Qt>=0;Qt--)if(gt!==Lt.isCollapsed(Qt)){var nn=Lt.getStartLineNumber(Qt);pt.test(Dt.getLineContent(nn))&&Vt.push(Lt.toRegion(Qt))}Ft.toggleCollapseState(Vt)}function w(Ft,pt,gt){for(var Dt=Ft.regions,Lt=[],Vt=Dt.length-1;Vt>=0;Vt--)gt!==Dt.isCollapsed(Vt)&&pt===Dt.getType(Vt)&&Lt.push(Dt.toRegion(Vt));Ft.toggleCollapseState(Lt)}var B=r("8ZZ4"),H=function(){function Ft(pt){this.editor=pt,this.autoHideFoldingControls=!0,this.showFoldingHighlights=!0}return Ft.prototype.getDecorationOption=function(pt){return pt?this.showFoldingHighlights?Ft.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:Ft.COLLAPSED_VISUAL_DECORATION:this.autoHideFoldingControls?Ft.EXPANDED_AUTO_HIDE_VISUAL_DECORATION:Ft.EXPANDED_VISUAL_DECORATION},Ft.prototype.deltaDecorations=function(pt,gt){return this.editor.deltaDecorations(pt,gt)},Ft.prototype.changeDecorations=function(pt){return this.editor.changeDecorations(pt)},Ft.COLLAPSED_VISUAL_DECORATION=B.a.register({stickiness:1,afterContentClassName:"inline-folded",linesDecorationsClassName:"codicon codicon-chevron-right"}),Ft.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=B.a.register({stickiness:1,afterContentClassName:"inline-folded",className:"folded-background",isWholeLine:!0,linesDecorationsClassName:"codicon codicon-chevron-right"}),Ft.EXPANDED_AUTO_HIDE_VISUAL_DECORATION=B.a.register({stickiness:1,linesDecorationsClassName:"codicon codicon-chevron-down"}),Ft.EXPANDED_VISUAL_DECORATION=B.a.register({stickiness:1,linesDecorationsClassName:"codicon codicon-chevron-down alwaysShowFoldIcons"}),Ft}(),re=r("2GBI"),he=r("w9Cd"),Ee=r("Inmo"),Se=function(){function Ft(pt){var gt=this;this._updateEventEmitter=new R.a,this._foldingModel=pt,this._foldingModelListener=pt.onDidChange(function(Dt){return gt.updateHiddenRanges()}),this._hiddenRanges=[],pt.regions.length&&this.updateHiddenRanges()}return Object.defineProperty(Ft.prototype,"onDidChange",{get:function(){return this._updateEventEmitter.event},enumerable:!0,configurable:!0}),Object.defineProperty(Ft.prototype,"hiddenRanges",{get:function(){return this._hiddenRanges},enumerable:!0,configurable:!0}),Ft.prototype.updateHiddenRanges=function(){for(var pt=!1,gt=[],Dt=0,Lt=0,Vt=Number.MAX_VALUE,Qt=-1,nn=this._foldingModel.regions;Dt0},Ft.prototype.isHidden=function(pt){return Z(this._hiddenRanges,pt)!==null},Ft.prototype.adjustSelections=function(pt){for(var gt=this,Dt=!1,Lt=this._foldingModel.textModel,Vt=null,Qt=function(Gn){return(!Vt||!q(Gn,Vt))&&(Vt=Z(gt._hiddenRanges,Gn)),Vt?Vt.startLineNumber-1:null},nn=0,sn=pt.length;nn0&&(this._hiddenRanges=[],this._updateEventEmitter.fire(this._hiddenRanges)),this._foldingModelListener&&(this._foldingModelListener.dispose(),this._foldingModelListener=null)},Ft}();function q(Ft,pt){return Ft>=pt.startLineNumber&&Ft<=pt.endLineNumber}function Z(Ft,pt){var gt=Object(Ee.i)(Ft,function(Dt){return pt=0&&Ft[gt].endLineNumber>=pt?Ft[gt]:null}var ce=r("tkZS"),Me=5e3,Ve="indent",_e=function(){function Ft(pt){this.editorModel=pt,this.id=Ve}return Ft.prototype.dispose=function(){},Ft.prototype.compute=function(pt){var gt=ce.a.getFoldingRules(this.editorModel.getLanguageIdentifier().id),Dt=gt&&!!gt.offSide,Lt=gt&>.markers;return Promise.resolve(se(this.editorModel,Dt,Lt))},Ft}(),ue=function(){function Ft(pt){this._startIndexes=[],this._endIndexes=[],this._indentOccurrences=[],this._length=0,this._foldingRangesLimit=pt}return Ft.prototype.insertFirst=function(pt,gt,Dt){if(pt>x||gt>x)return;var Lt=this._length;this._startIndexes[Lt]=pt,this._endIndexes[Lt]=gt,this._length++,Dt<1e3&&(this._indentOccurrences[Dt]=(this._indentOccurrences[Dt]||0)+1)},Ft.prototype.toIndentRanges=function(pt){if(this._length<=this._foldingRangesLimit){for(var gt=new Uint32Array(this._length),Dt=new Uint32Array(this._length),Lt=this._length-1,Vt=0;Lt>=0;Lt--,Vt++)gt[Vt]=this._startIndexes[Lt],Dt[Vt]=this._endIndexes[Lt];return new D(gt,Dt)}else{for(var Qt=0,nn=this._indentOccurrences.length,Lt=0;Ltthis._foldingRangesLimit){nn=Lt;break}Qt+=sn}}for(var ln=pt.getOptions().tabSize,gt=new Uint32Array(this._foldingRangesLimit),Dt=new Uint32Array(this._foldingRangesLimit),Lt=this._length-1,Vt=0;Lt>=0;Lt--){var En=this._startIndexes[Lt],On=pt.getLineContent(En),Pn=B.b.computeIndentLevel(On,ln);(Pn0;ln--){var En=Ft.getLineContent(ln),On=B.b.computeIndentLevel(En,Lt),Pn=nn[nn.length-1];if(On===-1){pt&&(Pn.endAbove=ln);continue}var Gn=void 0;if(Qt&&(Gn=En.match(Qt)))if(Gn[1]){for(var Qn=nn.length-1;Qn>0&&nn[Qn].indent!==-2;)Qn--;if(Qn>0){nn.length=Qn+1,Pn=nn[Qn],Vt.insertFirst(ln,Pn.line,On),Pn.line=ln,Pn.indent=On,Pn.endAbove=ln;continue}}else{nn.push({indent:-2,endAbove:ln,line:ln});continue}if(Pn.indent>On){do nn.pop(),Pn=nn[nn.length-1];while(Pn.indent>On);var Jn=Pn.endAbove-1;Jn-ln>=1&&Vt.insertFirst(ln,Jn,On)}Pn.indent===On?Pn.endAbove=ln:nn.push({indent:On,endAbove:ln,line:ln})}return Vt.toIndentRanges(Ft)}var fe=r("vqGt"),ie=r("QqjT"),J=5e3,me={},ye="syntax",ze=function(){function Ft(pt,gt,Dt){Dt===void 0&&(Dt=J),this.editorModel=pt,this.providers=gt,this.limit=Dt,this.id=ye}return Ft.prototype.compute=function(pt){var gt=this;return tt(this.providers,this.editorModel,pt).then(function(Dt){if(Dt){var Lt=Pt(Dt,gt.limit);return Lt}return null})},Ft.prototype.dispose=function(){},Ft}();function tt(Ft,pt,gt){var Dt=null,Lt=Ft.map(function(Vt,Qt){return Promise.resolve(Vt.provideFoldingRanges(pt,me,gt)).then(function(nn){if(gt.isCancellationRequested)return;if(Array.isArray(nn)){Array.isArray(Dt)||(Dt=[]);for(var sn=pt.getLineCount(),ln=0,En=nn;ln0&&On.end>On.start&&On.end<=sn&&Dt.push({start:On.start,end:On.end,rank:Qt,kind:On.kind})}}},ie.f)});return Promise.all(Lt).then(function(Vt){return Dt})}var _t=function(){function Ft(pt){this._startIndexes=[],this._endIndexes=[],this._nestingLevels=[],this._nestingLevelCounts=[],this._types=[],this._length=0,this._foldingRangesLimit=pt}return Ft.prototype.add=function(pt,gt,Dt,Lt){if(pt>x||gt>x)return;var Vt=this._length;this._startIndexes[Vt]=pt,this._endIndexes[Vt]=gt,this._nestingLevels[Vt]=Lt,this._types[Vt]=Dt,this._length++,Lt<30&&(this._nestingLevelCounts[Lt]=(this._nestingLevelCounts[Lt]||0)+1)},Ft.prototype.toIndentRanges=function(){if(this._length<=this._foldingRangesLimit){for(var pt=new Uint32Array(this._length),gt=new Uint32Array(this._length),Dt=0;Dtthis._foldingRangesLimit){Vt=Dt;break}Lt+=Qt}}for(var pt=new Uint32Array(this._foldingRangesLimit),gt=new Uint32Array(this._foldingRangesLimit),nn=[],Dt=0,sn=0;DtLt.start)if(sn.end<=Lt.end)Vt.push(Lt),Lt=sn,Dt.add(sn.start,sn.end,sn.kind&&sn.kind.value,Vt.length);else{if(sn.start>Lt.end){do Lt=Vt.pop();while(Lt&&sn.start>Lt.end);Lt&&Vt.push(Lt),Lt=sn}Dt.add(sn.start,sn.end,sn.kind&&sn.kind.value,Vt.length)}}return Dt.toIndentRanges()}var Xt="init",Ke=function(){function Ft(pt,gt,Dt,Lt){if(this.editorModel=pt,this.id=Xt,gt.length){var Vt=function(nn){return{range:{startLineNumber:nn.startLineNumber,startColumn:0,endLineNumber:nn.endLineNumber,endColumn:pt.getLineLength(nn.endLineNumber)},options:{stickiness:1}}};this.decorationIds=pt.deltaDecorations([],gt.map(Vt)),this.timeout=setTimeout(Dt,Lt)}}return Ft.prototype.dispose=function(){this.decorationIds&&(this.editorModel.deltaDecorations(this.decorationIds,[]),this.decorationIds=void 0),typeof this.timeout=="number"&&(clearTimeout(this.timeout),this.timeout=void 0)},Ft.prototype.compute=function(pt){var gt=[];if(this.decorationIds)for(var Dt=0,Lt=this.decorationIds;Dt=0;nn--)(Qt=Ft[nn])&&(Vt=(Lt<3?Qt(Vt):Lt>3?Qt(pt,gt,Vt):Qt(pt,gt))||Vt);return Lt>3&&Vt&&Object.defineProperty(pt,gt,Vt),Vt},we=function(Ft,pt){return function(gt,Dt){pt(gt,Dt,Ft)}},k=new Xe.d("foldingEnabled",!1),ee=function(Ft){ke(pt,Ft);function pt(gt,Dt){var Lt=Ft.call(this)||this;Lt.contextKeyService=Dt,Lt.localToDispose=Lt._register(new j.b),Lt.editor=gt;var Vt=Lt.editor.getOptions();return Lt._isEnabled=Vt.get(30),Lt._useFoldingProviders=Vt.get(31)!=="indentation",Lt.foldingModel=null,Lt.hiddenRangeModel=null,Lt.rangeProvider=null,Lt.foldingRegionPromise=null,Lt.foldingStateMemento=null,Lt.foldingModelPromise=null,Lt.updateScheduler=null,Lt.cursorChangedScheduler=null,Lt.mouseDownInfo=null,Lt.foldingDecorationProvider=new H(gt),Lt.foldingDecorationProvider.autoHideFoldingControls=Vt.get(84)==="mouseover",Lt.foldingDecorationProvider.showFoldingHighlights=Vt.get(32),Lt.foldingEnabled=k.bindTo(Lt.contextKeyService),Lt.foldingEnabled.set(Lt._isEnabled),Lt._register(Lt.editor.onDidChangeModel(function(){return Lt.onModelChanged()})),Lt._register(Lt.editor.onDidChangeConfiguration(function(Qt){if(Qt.hasChanged(30)){var nn=Lt.editor.getOptions();Lt._isEnabled=nn.get(30),Lt.foldingEnabled.set(Lt._isEnabled),Lt.onModelChanged()}if(Qt.hasChanged(84)||Qt.hasChanged(32)){var sn=Lt.editor.getOptions();Lt.foldingDecorationProvider.autoHideFoldingControls=sn.get(84)==="mouseover",Lt.foldingDecorationProvider.showFoldingHighlights=sn.get(32),Lt.onModelContentChanged()}if(Qt.hasChanged(31)){var ln=Lt.editor.getOptions();Lt._useFoldingProviders=ln.get(31)!=="indentation",Lt.onFoldingStrategyChanged()}})),Lt.onModelChanged(),Lt}return pt.get=function(gt){return gt.getContribution(pt.ID)},pt.prototype.saveViewState=function(){var gt=this.editor.getModel();if(!gt||!this._isEnabled||gt.isTooLargeForTokenization())return{};if(this.foldingModel){var Dt=this.foldingModel.isInitialized?this.foldingModel.getMemento():this.hiddenRangeModel.getMemento(),Lt=this.rangeProvider?this.rangeProvider.id:void 0;return{collapsedRegions:Dt,lineCount:gt.getLineCount(),provider:Lt}}return},pt.prototype.restoreViewState=function(gt){var Dt=this.editor.getModel();if(!Dt||!this._isEnabled||Dt.isTooLargeForTokenization()||!this.hiddenRangeModel)return;if(!gt||!gt.collapsedRegions||gt.lineCount!==Dt.getLineCount())return;(gt.provider===ye||gt.provider===Xt)&&(this.foldingStateMemento=gt);var Lt=gt.collapsedRegions;if(this.hiddenRangeModel.applyMemento(Lt)){var Vt=this.getFoldingModel();Vt&&Vt.then(function(Qt){Qt&&Qt.applyMemento(Lt)}).then(void 0,ie.e)}},pt.prototype.onModelChanged=function(){var gt=this;this.localToDispose.clear();var Dt=this.editor.getModel();if(!this._isEnabled||!Dt||Dt.isTooLargeForTokenization())return;this.foldingModel=new te(Dt,this.foldingDecorationProvider),this.localToDispose.add(this.foldingModel),this.hiddenRangeModel=new Se(this.foldingModel),this.localToDispose.add(this.hiddenRangeModel),this.localToDispose.add(this.hiddenRangeModel.onDidChange(function(Lt){return gt.onHiddenRangesChanges(Lt)})),this.updateScheduler=new F.a(200),this.cursorChangedScheduler=new F.d(function(){return gt.revealCursor()},200),this.localToDispose.add(this.cursorChangedScheduler),this.localToDispose.add(fe.n.onDidChange(function(){return gt.onFoldingStrategyChanged()})),this.localToDispose.add(this.editor.onDidChangeModelLanguageConfiguration(function(){return gt.onFoldingStrategyChanged()})),this.localToDispose.add(this.editor.onDidChangeModelContent(function(){return gt.onModelContentChanged()})),this.localToDispose.add(this.editor.onDidChangeCursorPosition(function(){return gt.onCursorPositionChanged()})),this.localToDispose.add(this.editor.onMouseDown(function(Lt){return gt.onEditorMouseDown(Lt)})),this.localToDispose.add(this.editor.onMouseUp(function(Lt){return gt.onEditorMouseUp(Lt)})),this.localToDispose.add({dispose:function(){gt.foldingRegionPromise&&(gt.foldingRegionPromise.cancel(),gt.foldingRegionPromise=null),gt.updateScheduler&>.updateScheduler.cancel(),gt.updateScheduler=null,gt.foldingModel=null,gt.foldingModelPromise=null,gt.hiddenRangeModel=null,gt.cursorChangedScheduler=null,gt.foldingStateMemento=null,gt.rangeProvider&>.rangeProvider.dispose(),gt.rangeProvider=null}}),this.onModelContentChanged()},pt.prototype.onFoldingStrategyChanged=function(){this.rangeProvider&&this.rangeProvider.dispose(),this.rangeProvider=null,this.onModelContentChanged()},pt.prototype.getRangeProvider=function(gt){var Dt=this;if(this.rangeProvider)return this.rangeProvider;if(this.rangeProvider=new _e(gt),this._useFoldingProviders&&this.foldingModel){var Lt=fe.n.ordered(this.foldingModel.textModel);if(Lt.length===0&&this.foldingStateMemento&&this.foldingStateMemento.collapsedRegions){var Vt=this.rangeProvider=new Ke(gt,this.foldingStateMemento.collapsedRegions,function(){Dt.foldingStateMemento=null,Dt.onFoldingStrategyChanged()},3e4);return Vt}else Lt.length>0&&(this.rangeProvider=new ze(gt,Lt))}return this.foldingStateMemento=null,this.rangeProvider},pt.prototype.getFoldingModel=function(){return this.foldingModelPromise},pt.prototype.onModelContentChanged=function(){var gt=this;this.updateScheduler&&(this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),this.foldingModelPromise=this.updateScheduler.trigger(function(){var Dt=gt.foldingModel;if(!Dt)return null;var Lt=gt.foldingRegionPromise=Object(F.f)(function(Vt){return gt.getRangeProvider(Dt.textModel).compute(Vt)});return Lt.then(function(Vt){if(Vt&&Lt===gt.foldingRegionPromise){var Qt=gt.editor.getSelections(),nn=Qt?Qt.map(function(sn){return sn.startLineNumber}):[];Dt.update(Vt,nn)}return Dt})}).then(void 0,function(Dt){return Object(ie.e)(Dt),null}))},pt.prototype.onHiddenRangesChanges=function(gt){if(this.hiddenRangeModel&>.length){var Dt=this.editor.getSelections();Dt&&(this.hiddenRangeModel.adjustSelections(Dt)&&this.editor.setSelections(Dt))}this.editor.setHiddenAreas(gt)},pt.prototype.onCursorPositionChanged=function(){this.hiddenRangeModel&&this.hiddenRangeModel.hasRanges()&&this.cursorChangedScheduler.schedule()},pt.prototype.revealCursor=function(){var gt=this,Dt=this.getFoldingModel();if(!Dt)return;Dt.then(function(Lt){if(Lt){var Vt=gt.editor.getSelections();if(Vt&&Vt.length>0){for(var Qt=[],nn=function(Pn){var Gn=Pn.selectionStartLineNumber;gt.hiddenRangeModel&>.hiddenRangeModel.isHidden(Gn)&&Qt.push.apply(Qt,Lt.getAllRegionsAtLine(Gn,function(Qn){return Qn.isCollapsed&&Gn>Qn.startLineNumber}))},sn=0,ln=Vt;sn=0?X+1:1},Ge.prototype.getCurrentMatchesPosition=function(de){for(var X=this._editor.getModel().getDecorationsInRange(de),Ue=0,at=X;Ue1e3){et=Ge._FIND_MATCH_NO_OVERVIEW_DECORATION;for(var Ce=Ue._editor.getModel().getLineCount(),Oe=Ue._editor.getLayoutInfo().height,it=Oe/Ce,Qe=Math.max(2,Math.ceil(3/it)),je=de[0].range.startLineNumber,Ct=de[0].range.endLineNumber,Ot=1,Jt=de.length;Ot=At.startLineNumber?At.endLineNumber>Ct&&(Ct=At.endLineNumber):(Q.push({range:new R.a(je,1,Ct,1),options:Ge._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),je=At.startLineNumber,Ct=At.endLineNumber)}Q.push({range:new R.a(je,1,Ct,1),options:Ge._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}for(var jt=new Array(de.length),Ot=0,Jt=de.length;Ot=0;X--){var Ue=this._decorations[X],at=this._editor.getModel().getDecorationRange(Ue);if(!at||at.endLineNumber>de.lineNumber)continue;if(at.endLineNumberde.column)continue;return at}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])},Ge.prototype.matchAfterPosition=function(de){if(this._decorations.length===0)return null;for(var X=0,Ue=this._decorations.length;Xde.lineNumber)return et;if(et.startColumn0){for(var Ue=[],at=0;at0;){if(de=Ue)break;var et=Ge.charCodeAt(X);switch(et){case 92:de.emitUnchanged(X-1),de.emitStatic("\\",X+1);break;case 110:de.emitUnchanged(X-1),de.emitStatic(` `,X+1);break;case 116:de.emitUnchanged(X-1),de.emitStatic(" ",X+1);break}continue}if(at===36){if(X++,X>=Ue)break;var et=Ge.charCodeAt(X);if(et===36){de.emitUnchanged(X-1),de.emitStatic("$",X+1);continue}if(et===48||et===38){de.emitUnchanged(X-1),de.emitMatchIndex(0,X+1);continue}if(49<=et&&et<=57){var Q=et-48;if(X+10},Ge.prototype._cannotFind=function(){if(!this._hasMatches()){var de=this._decorations.getFindScope();return de&&this._editor.revealRangeInCenterIfOutsideViewport(de,0),!0}return!1},Ge.prototype._setCurrentFindMatch=function(de){var X=this._decorations.setCurrentFindMatch(de);this._state.changeMatchInfo(X,this._decorations.getCount(),de),this._editor.setSelection(de),this._editor.revealRangeInCenterIfOutsideViewport(de,0)},Ge.prototype._prevSearchPosition=function(de){var X=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),Ue=de.lineNumber,at=de.column,et=this._editor.getModel();return X||at===1?(Ue===1?Ue=et.getLineCount():Ue--,at=et.getLineMaxColumn(Ue)):at--,new G.a(Ue,at)},Ge.prototype._moveToPrevMatch=function(de,X){if(X===void 0&&(X=!1),this._decorations.getCount()=0||this._state.searchString.indexOf("$")>=0),Ue=de.lineNumber,at=de.column,et=this._editor.getModel();return X||at===et.getLineMaxColumn(Ue)?(Ue===et.getLineCount()?Ue=1:Ue++,at=1):at++,new G.a(Ue,at)},Ge.prototype._moveToNextMatch=function(de){if(this._decorations.getCount()=se?this._largeReplaceAll():this._regularReplaceAll(de),this.research(!1)},Ge.prototype._largeReplaceAll=function(){var de=new x.a(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null),X=de.parseSearchRequest();if(!X)return;var Ue=X.regex;if(!Ue.multiline){var at="mu";Ue.ignoreCase&&(at+="i"),Ue.global&&(at+="g"),Ue=new RegExp(Ue.source,at)}var et=this._editor.getModel(),Q=et.getValue(1),Ce=et.getFullModelRange(),Oe=this._getReplacePattern(),it,Qe=this._state.preserveCase;Oe.hasReplacementPatterns||Qe?it=Q.replace(Ue,function(){return Oe.buildReplaceString(arguments,Qe)}):it=Q.replace(Ue,Oe.buildReplaceString(null,Qe));var je=new j.b(Ce,it,this._editor.getSelection());this._executeEditorCommand("replaceAll",je)},Ge.prototype._regularReplaceAll=function(de){for(var X=this._getReplacePattern(),Ue=this._findMatches(de,X.hasReplacementPatterns||this._state.preserveCase,1073741824),at=[],et=0,Q=Ue.length;etUe&&(X=Ue),this._matchesPosition!==X&&(this._matchesPosition=X,et.matchesPosition=!0,Q=!0),this._matchesCount!==Ue&&(this._matchesCount=Ue,et.matchesCount=!0,Q=!0),typeof at!="undefined"&&(R.a.equalsRange(this._currentMatch,at)||(this._currentMatch=at,et.currentMatch=!0,Q=!0)),Q&&this._onFindReplaceStateChange.fire(et)},de.prototype.change=function(X,Ue,at){at===void 0&&(at=!0);var et={moveCursor:Ue,updateHistory:at,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1},Q=!1,Ce=this.isRegex,Oe=this.wholeWord,it=this.matchCase,Qe=this.preserveCase;typeof X.searchString!="undefined"&&(this._searchString!==X.searchString&&(this._searchString=X.searchString,et.searchString=!0,Q=!0)),typeof X.replaceString!="undefined"&&(this._replaceString!==X.replaceString&&(this._replaceString=X.replaceString,et.replaceString=!0,Q=!0)),typeof X.isRevealed!="undefined"&&(this._isRevealed!==X.isRevealed&&(this._isRevealed=X.isRevealed,et.isRevealed=!0,Q=!0)),typeof X.isReplaceRevealed!="undefined"&&(this._isReplaceRevealed!==X.isReplaceRevealed&&(this._isReplaceRevealed=X.isReplaceRevealed,et.isReplaceRevealed=!0,Q=!0)),typeof X.isRegex!="undefined"&&(this._isRegex=X.isRegex),typeof X.wholeWord!="undefined"&&(this._wholeWord=X.wholeWord),typeof X.matchCase!="undefined"&&(this._matchCase=X.matchCase),typeof X.preserveCase!="undefined"&&(this._preserveCase=X.preserveCase),typeof X.searchScope!="undefined"&&(R.a.equalsRange(this._searchScope,X.searchScope)||(this._searchScope=X.searchScope,et.searchScope=!0,Q=!0)),this._isRegexOverride=typeof X.isRegexOverride!="undefined"?X.isRegexOverride:0,this._wholeWordOverride=typeof X.wholeWordOverride!="undefined"?X.wholeWordOverride:0,this._matchCaseOverride=typeof X.matchCaseOverride!="undefined"?X.matchCaseOverride:0,this._preserveCaseOverride=typeof X.preserveCaseOverride!="undefined"?X.preserveCaseOverride:0,Ce!==this.isRegex&&(Q=!0,et.isRegex=!0),Oe!==this.wholeWord&&(Q=!0,et.wholeWord=!0),it!==this.matchCase&&(Q=!0,et.matchCase=!0),Qe!==this.preserveCase&&(Q=!0,et.preserveCase=!0),Q&&this._onFindReplaceStateChange.fire(et)},de}(ne.a),pe=r("UgoW"),nt=r("5xAg"),Et=r("carD"),Rt=r("QqjT"),Tt=r("S7i+"),Ht=r("YWAb"),Gt=r("6oPh"),rn=r("mTMv"),Ln=r("mmaD"),yn=r("SPtt"),Tn=r("ywU6"),Ft=function(){function Ge(de,X){de===void 0&&(de=[]),X===void 0&&(X=10),this._initialize(de),this._limit=X,this._onChange()}return Ge.prototype.add=function(de){this._history.delete(de),this._history.add(de),this._onChange()},Ge.prototype.next=function(){return this._navigator.next()},Ge.prototype.previous=function(){return this._navigator.previous()},Ge.prototype.current=function(){return this._navigator.current()},Ge.prototype.parent=function(){return null},Ge.prototype.first=function(){return this._navigator.first()},Ge.prototype.last=function(){return this._navigator.last()},Ge.prototype.has=function(de){return this._history.has(de)},Ge.prototype._onChange=function(){this._reduceToLimit();var de=this._elements;this._navigator=new Tn.a(de,0,de.length,de.length)},Ge.prototype._reduceToLimit=function(){var de=this._elements;de.length>this._limit&&this._initialize(de.slice(de.length-this._limit))},Ge.prototype._initialize=function(de){this._history=new Set;for(var X=0,Ue=de;X=0){var bn=-1;jt.equals(17)?bn=(hn+1)%Jt.length:jt.equals(15)&&(hn===0?bn=Jt.length-1:bn=hn-1),jt.equals(9)?Jt[hn].blur():bn>=0&&Jt[bn].focus(),J.b.stop(jt,!0)}}});var At=document.createElement("div");return At.className="controls",At.style.display=Q._showOptionButtons?"block":"none",At.appendChild(Q.caseSensitive.domNode),At.appendChild(Q.wholeWords.domNode),At.appendChild(Q.regex.domNode),Q.domNode.appendChild(At),X&&X.appendChild(Q.domNode),Q.onkeydown(Q.inputBox.inputElement,function(jt){return Q._onKeyDown.fire(jt)}),Q.onkeyup(Q.inputBox.inputElement,function(jt){return Q._onKeyUp.fire(jt)}),Q.oninput(Q.inputBox.inputElement,function(jt){return Q._onInput.fire()}),Q.onmousedown(Q.inputBox.inputElement,function(jt){return Q._onMouseDown.fire(jt)}),Q}return de.prototype.enable=function(){J.O(this.domNode,"disabled"),this.inputBox.enable(),this.regex.enable(),this.wholeWords.enable(),this.caseSensitive.enable()},de.prototype.disable=function(){J.e(this.domNode,"disabled"),this.inputBox.disable(),this.regex.disable(),this.wholeWords.disable(),this.caseSensitive.disable()},de.prototype.setFocusInputOnOptionClick=function(X){this.fixFocusOnOptionClickEnabled=X},de.prototype.setEnabled=function(X){X?this.enable():this.disable()},de.prototype.getValue=function(){return this.inputBox.value},de.prototype.setValue=function(X){this.inputBox.value!==X&&(this.inputBox.value=X)},de.prototype.style=function(X){this.inputActiveOptionBorder=X.inputActiveOptionBorder,this.inputActiveOptionBackground=X.inputActiveOptionBackground,this.inputBackground=X.inputBackground,this.inputForeground=X.inputForeground,this.inputBorder=X.inputBorder,this.inputValidationInfoBackground=X.inputValidationInfoBackground,this.inputValidationInfoForeground=X.inputValidationInfoForeground,this.inputValidationInfoBorder=X.inputValidationInfoBorder,this.inputValidationWarningBackground=X.inputValidationWarningBackground,this.inputValidationWarningForeground=X.inputValidationWarningForeground,this.inputValidationWarningBorder=X.inputValidationWarningBorder,this.inputValidationErrorBackground=X.inputValidationErrorBackground,this.inputValidationErrorForeground=X.inputValidationErrorForeground,this.inputValidationErrorBorder=X.inputValidationErrorBorder,this.applyStyles()},de.prototype.applyStyles=function(){if(this.domNode){var X={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionBackground:this.inputActiveOptionBackground};this.regex.style(X),this.wholeWords.style(X),this.caseSensitive.style(X);var Ue={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(Ue)}},de.prototype.select=function(){this.inputBox.select()},de.prototype.focus=function(){this.inputBox.focus()},de.prototype.getCaseSensitive=function(){return this.caseSensitive.checked},de.prototype.setCaseSensitive=function(X){this.caseSensitive.checked=X},de.prototype.getWholeWords=function(){return this.wholeWords.checked},de.prototype.setWholeWords=function(X){this.wholeWords.checked=X},de.prototype.getRegex=function(){return this.regex.checked},de.prototype.setRegex=function(X){this.regex.checked=X,this.validate()},de.prototype.focusOnCaseSensitive=function(){this.caseSensitive.focus()},de.prototype.highlightFindOptions=function(){J.O(this.domNode,"highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,J.e(this.domNode,"highlight-"+this._lastHighlightFindOptions)},de.prototype.validate=function(){this.inputBox.validate()},de.prototype.clearMessage=function(){this.inputBox.hideMessage()},de}(ye.a),On=r("sobA"),Pn=function(){var Ge=function(X,Ue){return Ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,et){at.__proto__=et}||function(at,et){for(var Q in et)et.hasOwnProperty(Q)&&(at[Q]=et[Q])},Ge(X,Ue)};return function(de,X){Ge(de,X);function Ue(){this.constructor=de}de.prototype=X===null?Object.create(X):(Ue.prototype=X.prototype,new Ue)}}(),Gn=I.a("defaultLabel","input"),Qn=I.a("label.preserveCaseCheckbox","Preserve Case"),Jn=function(Ge){Pn(de,Ge);function de(X){return Ge.call(this,{actionClassName:"codicon-preserve-case",title:Qn+X.appendTitle,isChecked:X.isChecked,inputActiveOptionBorder:X.inputActiveOptionBorder,inputActiveOptionBackground:X.inputActiveOptionBackground})||this}return de}(Ke),gi=function(Ge){Pn(de,Ge);function de(X,Ue,at,et){var Q=Ge.call(this)||this;Q._showOptionButtons=at,Q.fixFocusOnOptionClickEnabled=!0,Q.cachedOptionsWidth=0,Q._onDidOptionChange=Q._register(new tt.a),Q.onDidOptionChange=Q._onDidOptionChange.event,Q._onKeyDown=Q._register(new tt.a),Q.onKeyDown=Q._onKeyDown.event,Q._onMouseDown=Q._register(new tt.a),Q._onInput=Q._register(new tt.a),Q._onKeyUp=Q._register(new tt.a),Q._onPreserveCaseKeyDown=Q._register(new tt.a),Q.onPreserveCaseKeyDown=Q._onPreserveCaseKeyDown.event,Q.contextViewProvider=Ue,Q.placeholder=et.placeholder||"",Q.validation=et.validation,Q.label=et.label||Gn,Q.inputActiveOptionBorder=et.inputActiveOptionBorder,Q.inputActiveOptionBackground=et.inputActiveOptionBackground,Q.inputBackground=et.inputBackground,Q.inputForeground=et.inputForeground,Q.inputBorder=et.inputBorder,Q.inputValidationInfoBorder=et.inputValidationInfoBorder,Q.inputValidationInfoBackground=et.inputValidationInfoBackground,Q.inputValidationInfoForeground=et.inputValidationInfoForeground,Q.inputValidationWarningBorder=et.inputValidationWarningBorder,Q.inputValidationWarningBackground=et.inputValidationWarningBackground,Q.inputValidationWarningForeground=et.inputValidationWarningForeground,Q.inputValidationErrorBorder=et.inputValidationErrorBorder,Q.inputValidationErrorBackground=et.inputValidationErrorBackground,Q.inputValidationErrorForeground=et.inputValidationErrorForeground;var Ce=et.history||[],Oe=!!et.flexibleHeight,it=!!et.flexibleWidth,Qe=et.flexibleMaxHeight;Q.domNode=document.createElement("div"),J.e(Q.domNode,"monaco-findInput"),Q.inputBox=Q._register(new nn(Q.domNode,Q.contextViewProvider,{ariaLabel:Q.label||"",placeholder:Q.placeholder||"",validationOptions:{validation:Q.validation},inputBackground:Q.inputBackground,inputForeground:Q.inputForeground,inputBorder:Q.inputBorder,inputValidationInfoBackground:Q.inputValidationInfoBackground,inputValidationInfoForeground:Q.inputValidationInfoForeground,inputValidationInfoBorder:Q.inputValidationInfoBorder,inputValidationWarningBackground:Q.inputValidationWarningBackground,inputValidationWarningForeground:Q.inputValidationWarningForeground,inputValidationWarningBorder:Q.inputValidationWarningBorder,inputValidationErrorBackground:Q.inputValidationErrorBackground,inputValidationErrorForeground:Q.inputValidationErrorForeground,inputValidationErrorBorder:Q.inputValidationErrorBorder,history:Ce,flexibleHeight:Oe,flexibleWidth:it,flexibleMaxHeight:Qe})),Q.preserveCase=Q._register(new Jn({appendTitle:"",isChecked:!1,inputActiveOptionBorder:Q.inputActiveOptionBorder,inputActiveOptionBackground:Q.inputActiveOptionBackground})),Q._register(Q.preserveCase.onChange(function(Ot){Q._onDidOptionChange.fire(Ot),!Ot&&Q.fixFocusOnOptionClickEnabled&&Q.inputBox.focus(),Q.validate()})),Q._register(Q.preserveCase.onKeyDown(function(Ot){Q._onPreserveCaseKeyDown.fire(Ot)})),Q._showOptionButtons?Q.cachedOptionsWidth=Q.preserveCase.width():Q.cachedOptionsWidth=0;var je=[Q.preserveCase.domNode];Q.onkeydown(Q.domNode,function(Ot){if(Ot.equals(15)||Ot.equals(17)||Ot.equals(9)){var Jt=je.indexOf(document.activeElement);if(Jt>=0){var At=-1;Ot.equals(17)?At=(Jt+1)%je.length:Ot.equals(15)&&(Jt===0?At=je.length-1:At=Jt-1),Ot.equals(9)?je[Jt].blur():At>=0&&je[At].focus(),J.b.stop(Ot,!0)}}});var Ct=document.createElement("div");return Ct.className="controls",Ct.style.display=Q._showOptionButtons?"block":"none",Ct.appendChild(Q.preserveCase.domNode),Q.domNode.appendChild(Ct),X&&X.appendChild(Q.domNode),Q.onkeydown(Q.inputBox.inputElement,function(Ot){return Q._onKeyDown.fire(Ot)}),Q.onkeyup(Q.inputBox.inputElement,function(Ot){return Q._onKeyUp.fire(Ot)}),Q.oninput(Q.inputBox.inputElement,function(Ot){return Q._onInput.fire()}),Q.onmousedown(Q.inputBox.inputElement,function(Ot){return Q._onMouseDown.fire(Ot)}),Q}return de.prototype.enable=function(){J.O(this.domNode,"disabled"),this.inputBox.enable(),this.preserveCase.enable()},de.prototype.disable=function(){J.e(this.domNode,"disabled"),this.inputBox.disable(),this.preserveCase.disable()},de.prototype.setEnabled=function(X){X?this.enable():this.disable()},de.prototype.style=function(X){this.inputActiveOptionBorder=X.inputActiveOptionBorder,this.inputActiveOptionBackground=X.inputActiveOptionBackground,this.inputBackground=X.inputBackground,this.inputForeground=X.inputForeground,this.inputBorder=X.inputBorder,this.inputValidationInfoBackground=X.inputValidationInfoBackground,this.inputValidationInfoForeground=X.inputValidationInfoForeground,this.inputValidationInfoBorder=X.inputValidationInfoBorder,this.inputValidationWarningBackground=X.inputValidationWarningBackground,this.inputValidationWarningForeground=X.inputValidationWarningForeground,this.inputValidationWarningBorder=X.inputValidationWarningBorder,this.inputValidationErrorBackground=X.inputValidationErrorBackground,this.inputValidationErrorForeground=X.inputValidationErrorForeground,this.inputValidationErrorBorder=X.inputValidationErrorBorder,this.applyStyles()},de.prototype.applyStyles=function(){if(this.domNode){var X={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionBackground:this.inputActiveOptionBackground};this.preserveCase.style(X);var Ue={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(Ue)}},de.prototype.select=function(){this.inputBox.select()},de.prototype.focus=function(){this.inputBox.focus()},de.prototype.getPreserveCase=function(){return this.preserveCase.checked},de.prototype.setPreserveCase=function(X){this.preserveCase.checked=X},de.prototype.focusOnPreserve=function(){this.preserveCase.focus()},de.prototype.validate=function(){this.inputBox&&this.inputBox.validate()},Object.defineProperty(de.prototype,"width",{set:function(Ue){this.inputBox.paddingRight=this.cachedOptionsWidth,this.inputBox.width=Ue,this.domNode.style.width=Ue+"px"},enumerable:!0,configurable:!0}),de.prototype.dispose=function(){Ge.prototype.dispose.call(this)},de}(ye.a),Kn=function(){var Ge=function(X,Ue){return Ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,et){at.__proto__=et}||function(at,et){for(var Q in et)et.hasOwnProperty(Q)&&(at[Q]=et[Q])},Ge(X,Ue)};return function(de,X){Ge(de,X);function Ue(){this.constructor=de}de.prototype=X===null?Object.create(X):(Ue.prototype=X.prototype,new Ue)}}(),yi=function(Ge,de,X,Ue){var at=arguments.length,et=at<3?de:Ue===null?Ue=Object.getOwnPropertyDescriptor(de,X):Ue,Q;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")et=Reflect.decorate(Ge,de,X,Ue);else for(var Ce=Ge.length-1;Ce>=0;Ce--)(Q=Ge[Ce])&&(et=(at<3?Q(et):at>3?Q(de,X,et):Q(de,X))||et);return at>3&&et&&Object.defineProperty(de,X,et),et},mi=function(Ge,de){return function(X,Ue){de(X,Ue,Ge)}},vt="historyNavigationWidget",Mt="historyNavigationEnabled";function zt(Ge,de,X){new Ee.d(X,de).bindTo(Ge)}function tn(Ge,de){return Ge.createScoped(de.target)}function Ut(Ge,de){return Ge.getContext(document.activeElement).getValue(de)}function Sn(Ge,de){var X=tn(Ge,de);zt(X,de,vt);var Ue=new Ee.d(Mt,!0).bindTo(X);return{scopedContextKeyService:X,historyNavigationEnablement:Ue}}var Rn=function(Ge){Kn(de,Ge);function de(X,Ue,at,et,Q){Q===void 0&&(Q=!1);var Ce=Ge.call(this,X,Ue,Q,at)||this;return Ce._register(Sn(et,{target:Ce.inputBox.element,historyNavigator:Ce.inputBox}).scopedContextKeyService),Ce}return de=yi([mi(3,Ee.c)],de),de}(En),Bn=function(Ge){Kn(de,Ge);function de(X,Ue,at,et,Q){Q===void 0&&(Q=!1);var Ce=Ge.call(this,X,Ue,Q,at)||this;return Ce._register(Sn(et,{target:Ce.inputBox.element,historyNavigator:Ce.inputBox}).scopedContextKeyService),Ce}return de=yi([mi(3,Ee.c)],de),de}(gi);On.a.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:Ee.a.and(Ee.a.has(vt),Ee.a.equals(Mt,!0)),primary:16,secondary:[512|16],handler:function(de,X){var Ue=Ut(de.get(Ee.c),vt);if(Ue){var at=Ue.historyNavigator;at.showPreviousValue()}}}),On.a.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:Ee.a.and(Ee.a.has(vt),Ee.a.equals(Mt,!0)),primary:18,secondary:[512|18],handler:function(de,X){var Ue=Ut(de.get(Ee.c),vt);if(Ue){var at=Ue.historyNavigator;at.showNextValue()}}});var Fn=function(){var Ge=function(X,Ue){return Ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,et){at.__proto__=et}||function(at,et){for(var Q in et)et.hasOwnProperty(Q)&&(at[Q]=et[Q])},Ge(X,Ue)};return function(de,X){Ge(de,X);function Ue(){this.constructor=de}de.prototype=X===null?Object.create(X):(Ue.prototype=X.prototype,new Ue)}}(),ri=I.a("label.find","Find"),ci=I.a("placeholder.find","Find"),zi=I.a("label.previousMatchButton","Previous match"),oo=I.a("label.nextMatchButton","Next match"),Zn=I.a("label.toggleSelectionFind","Find in selection"),Ii=I.a("label.closeButton","Close"),Si=I.a("label.replace","Replace"),ji=I.a("placeholder.replace","Replace"),Un=I.a("label.replaceButton","Replace"),Ci=I.a("label.replaceAllButton","Replace All"),Wi=I.a("label.toggleReplaceButton","Toggle Replace mode"),Ti=I.a("title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",se),Gi=I.a("label.matchesLocation","{0} of {1}"),Bi=I.a("label.noResults","No Results"),vi=419,qi=275,ro=qi-54,bi=69,Di=33,Xi="ctrlEnterReplaceAll.windows.donotask",lo=Tt.e?256:2048,Mi=function(){function Ge(de){this.afterLineNumber=de,this.heightInPx=Di,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"}return Ge}();function so(Ge,de,X){var Ue=!!de.match(/\n/);if(X&&Ue&&X.selectionStart>0){Ge.stopPropagation();return}}function Je(Ge,de,X){var Ue=!!de.match(/\n/);if(X&&Ue&&X.selectionEnd0&&this._state.matchesCount===0;J.X(this._domNode,"no-results",Ue),this._updateMatchesCount(),this._updateButtons()}(X.searchString||X.currentMatch)&&this._layoutViewZone(),X.updateHistory&&this._delayedUpdateHistory()},de.prototype._delayedUpdateHistory=function(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this))},de.prototype._updateHistory=function(){this._state.searchString&&this._findInput.inputBox.addToHistory(),this._state.replaceString&&this._replaceInput.inputBox.addToHistory()},de.prototype._updateMatchesCount=function(){this._matchesCount.style.minWidth=bi+"px",this._state.matchesCount>=se?this._matchesCount.title=Ti:this._matchesCount.title="",this._matchesCount.firstChild&&this._matchesCount.removeChild(this._matchesCount.firstChild);var X;if(this._state.matchesCount>0){var Ue=String(this._state.matchesCount);this._state.matchesCount>=se&&(Ue+="+");var at=String(this._state.matchesPosition);at==="0"&&(at="?"),X=N.r(Gi,at,Ue)}else X=Bi;this._matchesCount.appendChild(document.createTextNode(X)),Object(nt.a)(this._getAriaLabel(X,this._state.currentMatch,this._state.searchString),!0),bi=Math.max(bi,this._matchesCount.clientWidth)},de.prototype._getAriaLabel=function(X,Ue,at){return X===Bi?at===""?I.a("ariaSearchNoResultEmpty","{0} found",X):I.a("ariaSearchNoResult","{0} found for {1}",X,at):Ue?I.a("ariaSearchNoResultWithLineNum","{0} found for {1} at {2}",X,at,Ue.startLineNumber+":"+Ue.startColumn):I.a("ariaSearchNoResultWithLineNumNoCurrentMatch","{0} found for {1}",X,at)},de.prototype._updateToggleSelectionFindButton=function(){var X=this._codeEditor.getSelection(),Ue=X?X.startLineNumber!==X.endLineNumber||X.startColumn!==X.endColumn:!1,at=this._toggleSelectionFind.checked;this._isVisible&&(at||Ue)?this._toggleSelectionFind.enable():this._toggleSelectionFind.disable()},de.prototype._updateButtons=function(){this._findInput.setEnabled(this._isVisible),this._replaceInput.setEnabled(this._isVisible&&this._isReplaceVisible),this._updateToggleSelectionFindButton(),this._closeBtn.setEnabled(this._isVisible);var X=this._state.searchString.length>0,Ue=!!this._state.matchesCount;this._prevBtn.setEnabled(this._isVisible&&X&&Ue),this._nextBtn.setEnabled(this._isVisible&&X&&Ue),this._replaceBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&X),this._replaceAllBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&X),J.X(this._domNode,"replaceToggled",this._isReplaceVisible),this._toggleReplaceBtn.toggleClass("codicon-chevron-right",!this._isReplaceVisible),this._toggleReplaceBtn.toggleClass("codicon-chevron-down",this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible);var at=!this._codeEditor.getOption(68);this._toggleReplaceBtn.setEnabled(this._isVisible&&at)},de.prototype._reveal=function(){var X=this;if(!this._isVisible){this._isVisible=!0;var Ue=this._codeEditor.getSelection();switch(this._codeEditor.getOption(28).autoFindInSelection){case"always":this._toggleSelectionFind.checked=!0;break;case"never":this._toggleSelectionFind.checked=!1;break;case"multiline":var at=!!Ue&&Ue.startLineNumber!==Ue.endLineNumber;this._toggleSelectionFind.checked=at;break;default:break}this._tryUpdateWidgetWidth(),this._updateButtons(),setTimeout(function(){J.e(X._domNode,"visible"),X._domNode.setAttribute("aria-hidden","false")},0),setTimeout(function(){X._findInput.validate()},200),this._codeEditor.layoutOverlayWidget(this);var et=!0;if(this._codeEditor.getOption(28).seedSearchStringFromSelection&&Ue){var Q=this._codeEditor.getDomNode();if(Q){var Ce=J.B(Q),Oe=this._codeEditor.getScrolledVisiblePosition(Ue.getStartPosition()),it=Ce.left+(Oe?Oe.left:0),Qe=Oe?Oe.top:0;if(this._viewZone&&QeUe.startLineNumber&&(et=!1);var je=J.E(this._domNode).left;it>je&&(et=!1);var Ct=this._codeEditor.getScrolledVisiblePosition(Ue.getEndPosition()),Ot=Ce.left+(Ct?Ct.left:0);Ot>je&&(et=!1)}}}this._showViewZone(et)}},de.prototype._hide=function(X){this._isVisible&&(this._isVisible=!1,this._updateButtons(),J.O(this._domNode,"visible"),this._domNode.setAttribute("aria-hidden","true"),this._findInput.clearMessage(),X&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this),this._removeViewZone())},de.prototype._layoutViewZone=function(){var X=this,Ue=this._codeEditor.getOption(28).addExtraSpaceOnTop;if(!Ue){this._removeViewZone();return}if(!this._isVisible)return;var at=this._viewZone;if(this._viewZoneId!==void 0||!at)return;this._codeEditor.changeViewZones(function(et){at.heightInPx=X._getHeight(),X._viewZoneId=et.addZone(at),X._codeEditor.setScrollTop(X._codeEditor.getScrollTop()+at.heightInPx)})},de.prototype._showViewZone=function(X){var Ue=this;if(X===void 0&&(X=!0),!this._isVisible)return;var at=this._codeEditor.getOption(28).addExtraSpaceOnTop;if(!at)return;this._viewZone===void 0&&(this._viewZone=new Mi(0));var et=this._viewZone;this._codeEditor.changeViewZones(function(Q){if(Ue._viewZoneId!==void 0){var Ce=Ue._getHeight();if(Ce===et.heightInPx)return;var Oe=Ce-et.heightInPx;et.heightInPx=Ce,Q.layoutZone(Ue._viewZoneId),X&&Ue._codeEditor.setScrollTop(Ue._codeEditor.getScrollTop()+Oe);return}else{var Oe=Ue._getHeight();et.heightInPx=Oe,Ue._viewZoneId=Q.addZone(et),X&&Ue._codeEditor.setScrollTop(Ue._codeEditor.getScrollTop()+Oe)}})},de.prototype._removeViewZone=function(){var X=this;this._codeEditor.changeViewZones(function(Ue){X._viewZoneId!==void 0&&(Ue.removeZone(X._viewZoneId),X._viewZoneId=void 0,X._viewZone&&(X._codeEditor.setScrollTop(X._codeEditor.getScrollTop()-X._viewZone.heightInPx),X._viewZone=void 0))})},de.prototype._applyTheme=function(X){var Ue={inputActiveOptionBorder:X.getColor(A.X),inputActiveOptionBackground:X.getColor(A.W),inputBackground:X.getColor(A.Y),inputForeground:X.getColor(A.ab),inputBorder:X.getColor(A.Z),inputValidationInfoBackground:X.getColor(A.eb),inputValidationInfoForeground:X.getColor(A.gb),inputValidationInfoBorder:X.getColor(A.fb),inputValidationWarningBackground:X.getColor(A.hb),inputValidationWarningForeground:X.getColor(A.jb),inputValidationWarningBorder:X.getColor(A.ib),inputValidationErrorBackground:X.getColor(A.bb),inputValidationErrorForeground:X.getColor(A.db),inputValidationErrorBorder:X.getColor(A.cb)};this._findInput.style(Ue),this._replaceInput.style(Ue),this._toggleSelectionFind.style(Ue)},de.prototype._tryUpdateWidgetWidth=function(){if(!this._isVisible)return;if(!J.L(this._domNode))return;var X=this._codeEditor.getLayoutInfo(),Ue=X.contentWidth;if(Ue<=0){J.e(this._domNode,"hiddenEditor");return}else J.H(this._domNode,"hiddenEditor")&&J.O(this._domNode,"hiddenEditor");var at=X.width,et=X.minimapWidth,Q=!1,Ce=!1,Oe=!1;if(this._resized){var it=J.G(this._domNode);if(it>vi){this._domNode.style.maxWidth=at-28-et-15+"px",this._replaceInput.width=J.G(this._findInput.domNode);return}}if(vi+28+et>=at&&(Ce=!0),vi+28+et-bi>=at&&(Oe=!0),vi+28+et-bi>=at+50&&(Q=!0),J.X(this._domNode,"collapsed-find-widget",Q),J.X(this._domNode,"narrow-find-widget",Oe),J.X(this._domNode,"reduced-find-widget",Ce),!Oe&&!Q&&(this._domNode.style.maxWidth=at-28-et-15+"px"),this._resized){this._findInput.inputBox.layout();var Qe=this._findInput.inputBox.element.clientWidth;Qe>0&&(this._replaceInput.width=Qe)}else this._isReplaceVisible&&(this._replaceInput.width=J.G(this._findInput.domNode))},de.prototype._getHeight=function(){var X=0;return X+=4,X+=this._findInput.inputBox.height+2,this._isReplaceVisible&&(X+=4,X+=this._replaceInput.inputBox.height+2),X+=4,X},de.prototype._tryUpdateHeight=function(){var X=this._getHeight();return this._cachedHeight!==null&&this._cachedHeight===X?!1:(this._cachedHeight=X,this._domNode.style.height=X+"px",!0)},de.prototype.focusFindInput=function(){this._findInput.select(),this._findInput.focus()},de.prototype.focusReplaceInput=function(){this._replaceInput.select(),this._replaceInput.focus()},de.prototype.highlightFindOptions=function(){this._findInput.highlightFindOptions()},de.prototype._updateSearchScope=function(){if(!this._codeEditor.hasModel())return;if(this._toggleSelectionFind.checked){var X=this._codeEditor.getSelection();X.endColumn===1&&X.endLineNumber>X.startLineNumber&&(X=X.setEndPosition(X.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(X.endLineNumber-1)));var Ue=this._state.currentMatch;X.startLineNumber!==X.endLineNumber&&(R.a.equalsRange(X,Ue)||this._state.change({searchScope:X},!0))}},de.prototype._onFindInputMouseDown=function(X){X.middleButton&&X.stopPropagation()},de.prototype._onFindInputKeyDown=function(X){if(X.equals(lo|3)){this._findInput.inputBox.insertAtCursor(` `),X.preventDefault();return}if(X.equals(2)){this._isReplaceVisible?this._replaceInput.focus():this._findInput.focusOnCaseSensitive(),X.preventDefault();return}if(X.equals(2048|18)){this._codeEditor.focus(),X.preventDefault();return}if(X.equals(16))return so(X,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea"));if(X.equals(18))return Je(X,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea"))},de.prototype._onReplaceInputKeyDown=function(X){if(X.equals(lo|3)){Tt.h&&Tt.f&&!this._ctrlEnterReplaceAllWarningPrompted&&(this._notificationService.info(I.a("ctrlEnter.keybindingChanged","Ctrl+Enter now inserts line break instead of replacing all. You can modify the keybinding for editor.action.replaceAll to override this behavior.")),this._ctrlEnterReplaceAllWarningPrompted=!0,this._storageService.store(Xi,!0,0)),this._replaceInput.inputBox.insertAtCursor(` `),X.preventDefault();return}if(X.equals(2)){this._findInput.focusOnCaseSensitive(),X.preventDefault();return}if(X.equals(1024|2)){this._findInput.focus(),X.preventDefault();return}if(X.equals(2048|18)){this._codeEditor.focus(),X.preventDefault();return}if(X.equals(16))return so(X,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea"));if(X.equals(18))return Je(X,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea"))},de.prototype.getHorizontalSashTop=function(X){return 0},de.prototype.getHorizontalSashLeft=function(X){return 0},de.prototype.getHorizontalSashWidth=function(X){return 500},de.prototype._keybindingLabelFor=function(X){var Ue=this._keybindingService.lookupKeybinding(X);return Ue?" ("+Ue.getLabel()+")":""},de.prototype._buildDomNode=function(){var X=this,Ue=!0,at=!0;this._findInput=this._register(new Rn(null,this._contextViewProvider,{width:ro,label:ri,placeholder:ci,appendCaseSensitiveLabel:this._keybindingLabelFor(ue.ToggleCaseSensitiveCommand),appendWholeWordsLabel:this._keybindingLabelFor(ue.ToggleWholeWordCommand),appendRegexLabel:this._keybindingLabelFor(ue.ToggleRegexCommand),validation:function(je){if(je.length===0||!X._findInput.getRegex())return null;try{return new RegExp(je),null}catch(Ct){return{content:Ct.message}}},flexibleHeight:Ue,flexibleWidth:at,flexibleMaxHeight:118},this._contextKeyService,!0)),this._findInput.setRegex(!!this._state.isRegex),this._findInput.setCaseSensitive(!!this._state.matchCase),this._findInput.setWholeWords(!!this._state.wholeWord),this._register(this._findInput.onKeyDown(function(Qe){return X._onFindInputKeyDown(Qe)})),this._register(this._findInput.inputBox.onDidChange(function(){if(X._ignoreChangeEvent)return;X._state.change({searchString:X._findInput.getValue()},!0)})),this._register(this._findInput.onDidOptionChange(function(){X._state.change({isRegex:X._findInput.getRegex(),wholeWord:X._findInput.getWholeWords(),matchCase:X._findInput.getCaseSensitive()},!0)})),this._register(this._findInput.onCaseSensitiveKeyDown(function(Qe){Qe.equals(1024|2)&&(X._isReplaceVisible&&(X._replaceInput.focus(),Qe.preventDefault()))})),this._register(this._findInput.onRegexKeyDown(function(Qe){Qe.equals(2)&&(X._isReplaceVisible&&(X._replaceInput.focusOnPreserve(),Qe.preventDefault()))})),this._register(this._findInput.inputBox.onDidHeightChange(function(Qe){X._tryUpdateHeight()&&X._showViewZone()})),Tt.d&&this._register(this._findInput.onMouseDown(function(Qe){return X._onFindInputMouseDown(Qe)})),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount(),this._prevBtn=this._register(new T({label:zi+this._keybindingLabelFor(ue.PreviousMatchFindAction),className:"codicon codicon-arrow-up",onTrigger:function(){X._codeEditor.getAction(ue.PreviousMatchFindAction).run().then(void 0,Rt.e)}})),this._nextBtn=this._register(new T({label:oo+this._keybindingLabelFor(ue.NextMatchFindAction),className:"codicon codicon-arrow-down",onTrigger:function(){X._codeEditor.getAction(ue.NextMatchFindAction).run().then(void 0,Rt.e)}}));var et=document.createElement("div");et.className="find-part",et.appendChild(this._findInput.domNode);var Q=document.createElement("div");Q.className="find-actions",et.appendChild(Q),Q.appendChild(this._matchesCount),Q.appendChild(this._prevBtn.domNode),Q.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new Ke({actionClassName:"codicon codicon-selection",title:Zn+this._keybindingLabelFor(ue.ToggleSearchScopeCommand),isChecked:!1})),this._register(this._toggleSelectionFind.onChange(function(){if(X._toggleSelectionFind.checked){if(X._codeEditor.hasModel()){var Qe=X._codeEditor.getSelection();Qe.endColumn===1&&Qe.endLineNumber>Qe.startLineNumber&&(Qe=Qe.setEndPosition(Qe.endLineNumber-1,X._codeEditor.getModel().getLineMaxColumn(Qe.endLineNumber-1))),Qe.isEmpty()||X._state.change({searchScope:Qe},!0)}}else X._state.change({searchScope:null},!0)})),Q.appendChild(this._toggleSelectionFind.domNode),this._closeBtn=this._register(new T({label:Ii+this._keybindingLabelFor(ue.CloseFindWidgetCommand),className:"codicon codicon-close",onTrigger:function(){X._state.change({isRevealed:!1,searchScope:null},!1)},onKeyDown:function(je){je.equals(2)&&(X._isReplaceVisible&&(X._replaceBtn.isEnabled()?X._replaceBtn.focus():X._codeEditor.focus(),je.preventDefault()))}})),Q.appendChild(this._closeBtn.domNode),this._replaceInput=this._register(new Bn(null,void 0,{label:Si,placeholder:ji,history:[],flexibleHeight:Ue,flexibleWidth:at,flexibleMaxHeight:118},this._contextKeyService,!0)),this._replaceInput.setPreserveCase(!!this._state.preserveCase),this._register(this._replaceInput.onKeyDown(function(Qe){return X._onReplaceInputKeyDown(Qe)})),this._register(this._replaceInput.inputBox.onDidChange(function(){X._state.change({replaceString:X._replaceInput.inputBox.value},!1)})),this._register(this._replaceInput.inputBox.onDidHeightChange(function(Qe){X._isReplaceVisible&&X._tryUpdateHeight()&&X._showViewZone()})),this._register(this._replaceInput.onDidOptionChange(function(){X._state.change({preserveCase:X._replaceInput.getPreserveCase()},!0)})),this._register(this._replaceInput.onPreserveCaseKeyDown(function(Qe){Qe.equals(2)&&(X._prevBtn.isEnabled()?X._prevBtn.focus():X._nextBtn.isEnabled()?X._nextBtn.focus():X._toggleSelectionFind.enabled?X._toggleSelectionFind.focus():X._closeBtn.isEnabled()&&X._closeBtn.focus(),Qe.preventDefault())})),this._replaceBtn=this._register(new T({label:Un+this._keybindingLabelFor(ue.ReplaceOneAction),className:"codicon codicon-replace",onTrigger:function(){X._controller.replace()},onKeyDown:function(je){je.equals(1024|2)&&(X._closeBtn.focus(),je.preventDefault())}})),this._replaceAllBtn=this._register(new T({label:Ci+this._keybindingLabelFor(ue.ReplaceAllAction),className:"codicon codicon-replace-all",onTrigger:function(){X._controller.replaceAll()}}));var Ce=document.createElement("div");Ce.className="replace-part",Ce.appendChild(this._replaceInput.domNode);var Oe=document.createElement("div");Oe.className="replace-actions",Ce.appendChild(Oe),Oe.appendChild(this._replaceBtn.domNode),Oe.appendChild(this._replaceAllBtn.domNode),this._toggleReplaceBtn=this._register(new T({label:Wi,className:"codicon toggle left",onTrigger:function(){X._state.change({isReplaceRevealed:!X._isReplaceVisible},!1),X._isReplaceVisible&&(X._replaceInput.width=J.G(X._findInput.domNode),X._replaceInput.inputBox.layout()),X._showViewZone()}})),this._toggleReplaceBtn.toggleClass("codicon-chevron-down",this._isReplaceVisible),this._toggleReplaceBtn.toggleClass("codicon-chevron-right",!this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible),this._domNode=document.createElement("div"),this._domNode.className="editor-widget find-widget",this._domNode.setAttribute("aria-hidden","true"),this._domNode.style.width=vi+"px",this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(et),this._domNode.appendChild(Ce),this._resizeSash=new Et.a(this._domNode,this,{orientation:0}),this._resized=!1;var it=vi;this._register(this._resizeSash.onDidStart(function(){it=J.G(X._domNode)})),this._register(this._resizeSash.onDidChange(function(Qe){X._resized=!0;var je=it+Qe.startX-Qe.currentX;if(jeCt)return;X._domNode.style.width=je+"px",X._isReplaceVisible&&(X._replaceInput.width=J.G(X._findInput.domNode)),X._findInput.inputBox.layout(),X._tryUpdateHeight()})),this._register(this._resizeSash.onDidReset(function(){var Qe=J.G(X._domNode);if(Qe=0},de.prototype.focus=function(){this._domNode.focus()},de.prototype.setEnabled=function(X){J.X(this._domNode,"disabled",!X),this._domNode.setAttribute("aria-disabled",String(!X)),this._domNode.tabIndex=X?0:-1},de.prototype.setExpanded=function(X){this._domNode.setAttribute("aria-expanded",String(!!X))},de.prototype.toggleClass=function(X,Ue){J.X(this._domNode,X,Ue)},de}(ye.a);Object(te.e)(function(Ge,de){var X=function(At,jt){jt&&de.addRule(".monaco-editor "+At+" { background-color: "+jt+"; }")};X(".findMatch",Ge.getColor(A.t)),X(".currentFindMatch",Ge.getColor(A.r)),X(".findScope",Ge.getColor(A.v));var Ue=Ge.getColor(A.P);X(".find-widget",Ue);var at=Ge.getColor(A.fc);at&&de.addRule(".monaco-editor .find-widget { box-shadow: 0 2px 8px "+at+"; }");var et=Ge.getColor(A.u);et&&de.addRule(".monaco-editor .findMatch { border: 1px "+(Ge.type==="hc"?"dotted":"solid")+" "+et+"; box-sizing: border-box; }");var Q=Ge.getColor(A.s);Q&&de.addRule(".monaco-editor .currentFindMatch { border: 2px solid "+Q+"; padding: 1px; box-sizing: border-box; }");var Ce=Ge.getColor(A.w);Ce&&de.addRule(".monaco-editor .findScope { border: 1px "+(Ge.type==="hc"?"dashed":"solid")+" "+Ce+"; }");var Oe=Ge.getColor(A.e);Oe&&de.addRule(".monaco-editor .find-widget { border: 1px solid "+Oe+"; }");var it=Ge.getColor(A.R);it&&de.addRule(".monaco-editor .find-widget { color: "+it+"; }");var Qe=Ge.getColor(A.T);Qe&&de.addRule(".monaco-editor .find-widget.no-results .matchesCount { color: "+Qe+"; }");var je=Ge.getColor(A.S);if(je)de.addRule(".monaco-editor .find-widget .monaco-sash { background-color: "+je+"; width: 3px !important; margin-left: -4px;}");else{var Ct=Ge.getColor(A.Q);Ct&&de.addRule(".monaco-editor .find-widget .monaco-sash { background-color: "+Ct+"; width: 3px !important; margin-left: -4px;}")}var Ot=Ge.getColor(A.U);Ot&&de.addRule(".monaco-editor .find-widget .monaco-inputbox.synthetic-focus { outline-color: "+Ot+"; }")});var Y=r("0ytw"),De=r("sjWa"),Re=r("PoD0"),We=r("Qr/v"),ft=r("41id"),lt=r("Ym/J"),yt=function(){var Ge=function(X,Ue){return Ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,et){at.__proto__=et}||function(at,et){for(var Q in et)et.hasOwnProperty(Q)&&(at[Q]=et[Q])},Ge(X,Ue)};return function(de,X){Ge(de,X);function Ue(){this.constructor=de}de.prototype=X===null?Object.create(X):(Ue.prototype=X.prototype,new Ue)}}(),xt=function(Ge,de,X,Ue){var at=arguments.length,et=at<3?de:Ue===null?Ue=Object.getOwnPropertyDescriptor(de,X):Ue,Q;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")et=Reflect.decorate(Ge,de,X,Ue);else for(var Ce=Ge.length-1;Ce>=0;Ce--)(Q=Ge[Ce])&&(et=(at<3?Q(et):at>3?Q(de,X,et):Q(de,X))||et);return at>3&&et&&Object.defineProperty(de,X,et),et},It=function(Ge,de){return function(X,Ue){de(X,Ue,Ge)}},kt=524288;function Yt(Ge){if(!Ge.hasModel())return null;var de=Ge.getSelection();if(de.startLineNumber===de.endLineNumber){if(de.isEmpty()){var X=Ge.getModel().getWordAtPosition(de.getStartPosition());if(X)return X.word}else if(Ge.getModel().getValueLengthInRange(de)X.startLineNumber&&(X=X.setEndPosition(X.endLineNumber-1,this._editor.getModel().getLineMaxColumn(X.endLineNumber-1))),X.isEmpty()||this._state.change({searchScope:X},!0)}},de.prototype.setSearchString=function(X){this._state.isRegex&&(X=N.p(X)),this._state.change({searchString:X},!1)},de.prototype.highlightFindOptions=function(){},de.prototype._start=function(X){if(this.disposeModel(),!this._editor.hasModel())return;var Ue={isRevealed:!0};if(X.seedSearchStringFromSelection){var at=Yt(this._editor);at&&(this._state.isRegex?Ue.searchString=N.p(at):Ue.searchString=at)}if(!Ue.searchString&&X.seedSearchStringFromGlobalClipboard){var at=this.getGlobalBufferTerm();at&&(Ue.searchString=at)}if(X.forceRevealReplace?Ue.isReplaceRevealed=!0:this._findWidgetVisible.get()||(Ue.isReplaceRevealed=!1),X.updateSearchScope){var et=this._editor.getSelection();et.isEmpty()||(Ue.searchScope=et)}this._state.change(Ue,!1),this._model||(this._model=new ie(this._editor,this._state))},de.prototype.start=function(X){this._start(X)},de.prototype.moveToNextMatch=function(){return this._model?(this._model.moveToNextMatch(),!0):!1},de.prototype.moveToPrevMatch=function(){return this._model?(this._model.moveToPrevMatch(),!0):!1},de.prototype.replace=function(){return this._model?(this._model.replace(),!0):!1},de.prototype.replaceAll=function(){return this._model?(this._model.replaceAll(),!0):!1},de.prototype.selectAllMatches=function(){return this._model?(this._model.selectAllMatches(),this._editor.focus(),!0):!1},de.prototype.getGlobalBufferTerm=function(){return this._editor.getOption(28).globalFindClipboard&&this._clipboardService&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()?this._clipboardService.readFindText():""},de.prototype.setGlobalBufferTerm=function(X){this._editor.getOption(28).globalFindClipboard&&this._clipboardService&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()&&this._clipboardService.writeFindText(X)},de.ID="editor.contrib.findController",de=xt([It(1,Ee.c),It(2,ft.a),It(3,Y.a)],de),de}(ne.a),dn=function(Ge){yt(de,Ge);function de(X,Ue,at,et,Q,Ce,Oe,it){var Qe=Ge.call(this,X,at,Oe,it)||this;return Qe._contextViewService=Ue,Qe._keybindingService=et,Qe._themeService=Q,Qe._notificationService=Ce,Qe._widget=null,Qe._findOptionsWidget=null,Qe}return de.prototype._start=function(X){this._widget||this._createFindWidget();var Ue=this._editor.getSelection(),at=!1;switch(this._editor.getOption(28).autoFindInSelection){case"always":at=!0;break;case"never":at=!1;break;case"multiline":var et=!!Ue&&Ue.startLineNumber!==Ue.endLineNumber;at=et;break;default:break}X.updateSearchScope=at,Ge.prototype._start.call(this,X),X.shouldFocus===2?this._widget.focusReplaceInput():X.shouldFocus===1&&this._widget.focusFindInput()},de.prototype.highlightFindOptions=function(){this._widget||this._createFindWidget(),this._state.isRevealed?this._widget.highlightFindOptions():this._findOptionsWidget.highlightFindOptions()},de.prototype._createFindWidget=function(){this._widget=this._register(new O(this._editor,this,this._state,this._contextViewService,this._keybindingService,this._contextKeyService,this._themeService,this._storageService,this._notificationService)),this._findOptionsWidget=this._register(new Pe(this._editor,this._state,this._keybindingService,this._themeService))},de=xt([It(1,De.b),It(2,Ee.c),It(3,We.a),It(4,te.c),It(5,lt.a),It(6,ft.a),It(7,Object(Re.d)(Y.a))],de),de}(Zt),fn=function(Ge){yt(de,Ge);function de(){return Ge.call(this,{id:ue.StartFindAction,label:I.a("startFindAction","Find"),alias:"Find",precondition:void 0,kbOpts:{kbExpr:null,primary:2048|36,weight:100},menuOpts:{menuId:17,group:"3_find",title:I.a({key:"miFind",comment:["&& denotes a mnemonic"]},"&&Find"),order:1}})||this}return de.prototype.run=function(X,Ue){var at=Zt.get(Ue);at&&at.start({forceRevealReplace:!1,seedSearchStringFromSelection:Ue.getOption(28).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:Ue.getOption(28).globalFindClipboard,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1})},de}(F.b),An=function(Ge){yt(de,Ge);function de(){return Ge.call(this,{id:ue.StartFindWithSelection,label:I.a("startFindWithSelectionAction","Find With Selection"),alias:"Find With Selection",precondition:void 0,kbOpts:{kbExpr:null,primary:0,mac:{primary:2048|35},weight:100}})||this}return de.prototype.run=function(X,Ue){var at=Zt.get(Ue);at&&(at.start({forceRevealReplace:!1,seedSearchStringFromSelection:!0,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),at.setGlobalBufferTerm(at.getState().searchString))},de}(F.b),gn=function(Ge){yt(de,Ge);function de(){return Ge!==null&&Ge.apply(this,arguments)||this}return de.prototype.run=function(X,Ue){var at=Zt.get(Ue);at&&!this._run(at)&&(at.start({forceRevealReplace:!1,seedSearchStringFromSelection:at.getState().searchString.length===0&&Ue.getOption(28).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),this._run(at))},de}(F.b),Mn=function(Ge){yt(de,Ge);function de(){return Ge.call(this,{id:ue.NextMatchFindAction,label:I.a("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:{kbExpr:U.a.focus,primary:61,mac:{primary:2048|37,secondary:[61]},weight:100}})||this}return de.prototype._run=function(X){return X.moveToNextMatch()},de}(gn),xn=function(Ge){yt(de,Ge);function de(){return Ge.call(this,{id:ue.NextMatchFindAction,label:I.a("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:{kbExpr:Ee.a.and(U.a.focus,q),primary:3,weight:100}})||this}return de.prototype._run=function(X){return X.moveToNextMatch()},de}(gn),Le=function(Ge){yt(de,Ge);function de(){return Ge.call(this,{id:ue.PreviousMatchFindAction,label:I.a("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:{kbExpr:U.a.focus,primary:1024|61,mac:{primary:2048|1024|37,secondary:[1024|61]},weight:100}})||this}return de.prototype._run=function(X){return X.moveToPrevMatch()},de}(gn),W=function(Ge){yt(de,Ge);function de(){return Ge.call(this,{id:ue.PreviousMatchFindAction,label:I.a("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:{kbExpr:Ee.a.and(U.a.focus,q),primary:1024|3,weight:100}})||this}return de.prototype._run=function(X){return X.moveToPrevMatch()},de}(gn),ae=function(Ge){yt(de,Ge);function de(){return Ge!==null&&Ge.apply(this,arguments)||this}return de.prototype.run=function(X,Ue){var at=Zt.get(Ue);if(!at)return;var et=Yt(Ue);et&&at.setSearchString(et),this._run(at)||(at.start({forceRevealReplace:!1,seedSearchStringFromSelection:Ue.getOption(28).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),this._run(at))},de}(F.b),Fe=function(Ge){yt(de,Ge);function de(){return Ge.call(this,{id:ue.NextSelectionMatchFindAction,label:I.a("nextSelectionMatchFindAction","Find Next Selection"),alias:"Find Next Selection",precondition:void 0,kbOpts:{kbExpr:U.a.focus,primary:2048|61,weight:100}})||this}return de.prototype._run=function(X){return X.moveToNextMatch()},de}(ae),qe=function(Ge){yt(de,Ge);function de(){return Ge.call(this,{id:ue.PreviousSelectionMatchFindAction,label:I.a("previousSelectionMatchFindAction","Find Previous Selection"),alias:"Find Previous Selection",precondition:void 0,kbOpts:{kbExpr:U.a.focus,primary:2048|1024|61,weight:100}})||this}return de.prototype._run=function(X){return X.moveToPrevMatch()},de}(ae),ct=function(Ge){yt(de,Ge);function de(){return Ge.call(this,{id:ue.StartFindReplaceAction,label:I.a("startReplace","Replace"),alias:"Replace",precondition:void 0,kbOpts:{kbExpr:null,primary:2048|38,mac:{primary:2048|512|36},weight:100},menuOpts:{menuId:17,group:"3_find",title:I.a({key:"miReplace",comment:["&& denotes a mnemonic"]},"&&Replace"),order:2}})||this}return de.prototype.run=function(X,Ue){if(!Ue.hasModel()||Ue.getOption(68))return;var at=Zt.get(Ue),et=Ue.getSelection(),Q=at.isFindInputFocused(),Ce=!et.isEmpty()&&et.startLineNumber===et.endLineNumber&&Ue.getOption(28).seedSearchStringFromSelection&&!Q,Oe=Q||Ce?2:1;at&&at.start({forceRevealReplace:!0,seedSearchStringFromSelection:Ce,seedSearchStringFromGlobalClipboard:Ue.getOption(28).seedSearchStringFromSelection,shouldFocus:Oe,shouldAnimate:!0,updateSearchScope:!1})},de}(F.b);Object(F.h)(Zt.ID,dn),Object(F.f)(fn),Object(F.f)(An),Object(F.f)(Mn),Object(F.f)(xn),Object(F.f)(Le),Object(F.f)(W),Object(F.f)(Fe),Object(F.f)(qe),Object(F.f)(ct);var St=F.c.bindToContribution(Zt.get);Object(F.g)(new St({id:ue.CloseFindWidgetCommand,precondition:Se,handler:function(de){return de.closeFindWidget()},kbOpts:{weight:100+5,kbExpr:U.a.focus,primary:9,secondary:[1024|9]}})),Object(F.g)(new St({id:ue.ToggleCaseSensitiveCommand,precondition:void 0,handler:function(de){return de.toggleCaseSensitive()},kbOpts:{weight:100+5,kbExpr:U.a.focus,primary:ce.primary,mac:ce.mac,win:ce.win,linux:ce.linux}})),Object(F.g)(new St({id:ue.ToggleWholeWordCommand,precondition:void 0,handler:function(de){return de.toggleWholeWords()},kbOpts:{weight:100+5,kbExpr:U.a.focus,primary:Me.primary,mac:Me.mac,win:Me.win,linux:Me.linux}})),Object(F.g)(new St({id:ue.ToggleRegexCommand,precondition:void 0,handler:function(de){return de.toggleRegex()},kbOpts:{weight:100+5,kbExpr:U.a.focus,primary:Ve.primary,mac:Ve.mac,win:Ve.win,linux:Ve.linux}})),Object(F.g)(new St({id:ue.ToggleSearchScopeCommand,precondition:void 0,handler:function(de){return de.toggleSearchScope()},kbOpts:{weight:100+5,kbExpr:U.a.focus,primary:_e.primary,mac:_e.mac,win:_e.win,linux:_e.linux}})),Object(F.g)(new St({id:ue.ReplaceOneAction,precondition:Se,handler:function(de){return de.replace()},kbOpts:{weight:100+5,kbExpr:U.a.focus,primary:2048|1024|22}})),Object(F.g)(new St({id:ue.ReplaceOneAction,precondition:Se,handler:function(de){return de.replace()},kbOpts:{weight:100+5,kbExpr:Ee.a.and(U.a.focus,Z),primary:3}})),Object(F.g)(new St({id:ue.ReplaceAllAction,precondition:Se,handler:function(de){return de.replaceAll()},kbOpts:{weight:100+5,kbExpr:U.a.focus,primary:2048|512|3}})),Object(F.g)(new St({id:ue.ReplaceAllAction,precondition:Se,handler:function(de){return de.replaceAll()},kbOpts:{weight:100+5,kbExpr:Ee.a.and(U.a.focus,Z),primary:void 0,mac:{primary:2048|3}}})),Object(F.g)(new St({id:ue.SelectAllMatchesAction,precondition:Se,handler:function(de){return de.selectAllMatches()},kbOpts:{weight:100+5,kbExpr:U.a.focus,primary:512|3}}))},AMt9:function(wt,P,r){"use strict";r.d(P,"a",function(){return j});var I=r("fF8p"),oe=r("/RM0"),ne=r("oBNp"),N=r("bN5T"),F=r("3HcJ"),U=function(){var G=function(E,x){return G=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(K,D){K.__proto__=D}||function(K,D){for(var A in D)D.hasOwnProperty(A)&&(K[A]=D[A])},G(E,x)};return function(R,E){G(R,E);function x(){this.constructor=R}R.prototype=E===null?Object.create(E):(x.prototype=E.prototype,new x)}}(),j=function(G){U(R,G);function R(){return G!==null&&G.apply(this,arguments)||this}return R.prototype.onclick=function(E,x){this._register(I.i(E,I.c.CLICK,function(K){return x(new ne.a(K))}))},R.prototype.onmousedown=function(E,x){this._register(I.i(E,I.c.MOUSE_DOWN,function(K){return x(new ne.a(K))}))},R.prototype.onmouseover=function(E,x){this._register(I.i(E,I.c.MOUSE_OVER,function(K){return x(new ne.a(K))}))},R.prototype.onnonbubblingmouseout=function(E,x){this._register(I.j(E,function(K){return x(new ne.a(K))}))},R.prototype.onkeydown=function(E,x){this._register(I.i(E,I.c.KEY_DOWN,function(K){return x(new oe.a(K))}))},R.prototype.onkeyup=function(E,x){this._register(I.i(E,I.c.KEY_UP,function(K){return x(new oe.a(K))}))},R.prototype.oninput=function(E,x){this._register(I.i(E,I.c.INPUT,x))},R.prototype.onblur=function(E,x){this._register(I.i(E,I.c.BLUR,x))},R.prototype.onfocus=function(E,x){this._register(I.i(E,I.c.FOCUS,x))},R.prototype.ignoreGesture=function(E){F.b.ignoreTarget(E)},R}(N.a)},ARnQ:function(wt,P,r){"use strict";(function(I){r.d(P,"a",function(){return N}),r.d(P,"b",function(){return F}),r.d(P,"c",function(){return U});var oe=r("S7i+"),ne=typeof I=="undefined"?{cwd:function(){return"/"},env:Object.create(null),get platform(){return oe.h?"win32":oe.e?"darwin":"linux"},nextTick:function(G){return Object(oe.i)(G)}}:I,N=ne.cwd,F=ne.env,U=ne.platform}).call(this,r("7vYp"))},ATqw:function(wt,P,r){"use strict";r.d(P,"a",function(){return F});var I=r("3NxR"),oe=function(){var U=function(G,R){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,x){E.__proto__=x}||function(E,x){for(var K in x)x.hasOwnProperty(K)&&(E[K]=x[K])},U(G,R)};return function(j,G){U(j,G);function R(){this.constructor=j}j.prototype=G===null?Object.create(G):(R.prototype=G.prototype,new R)}}(),ne=function(U){oe(j,U);function j(G){for(var R=U.call(this,0)||this,E=0,x=G.length;E_){ze._setDesiredScrollPositionNow(Pt.getScrollPosition());return}var Ze=ze._sliderMousePosition(Xt),Ye=Ze-tt;ze._setDesiredScrollPositionNow(Pt.getDesiredScrollPositionFromDelta(Ye))},function(){ze.slider.toggleClassName("active",!1),ze._host.onDragEnd(),ye()}),this._host.onDragStart()},J.prototype._setDesiredScrollPositionNow=function(me){var ye={};this.writeScrollPosition(ye,me),this._scrollable.setScrollPositionNow(ye)},J}(j.a),p=20,g=function(){function ie(J,me,ye,ze,tt,_t){this._scrollbarSize=Math.round(me),this._oppositeScrollbarSize=Math.round(ye),this._arrowSize=Math.round(J),this._visibleSize=ze,this._scrollSize=tt,this._scrollPosition=_t,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}return ie.prototype.clone=function(){return new ie(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)},ie.prototype.setVisibleSize=function(J){var me=Math.round(J);return this._visibleSize!==me?(this._visibleSize=me,this._refreshComputedValues(),!0):!1},ie.prototype.setScrollSize=function(J){var me=Math.round(J);return this._scrollSize!==me?(this._scrollSize=me,this._refreshComputedValues(),!0):!1},ie.prototype.setScrollPosition=function(J){var me=Math.round(J);return this._scrollPosition!==me?(this._scrollPosition=me,this._refreshComputedValues(),!0):!1},ie._computeValues=function(J,me,ye,ze,tt){var _t=Math.max(0,ye-J),Pt=Math.max(0,_t-2*me),Xt=ze>0&&ze>ye;if(!Xt)return{computedAvailableSize:Math.round(_t),computedIsNeeded:Xt,computedSliderSize:Math.round(Pt),computedSliderRatio:0,computedSliderPosition:0};var Ke=Math.round(Math.max(p,Math.floor(ye*Pt/ze))),Xe=(Pt-Ke)/(ze-ye),Ze=tt*Xe;return{computedAvailableSize:Math.round(_t),computedIsNeeded:Xt,computedSliderSize:Math.round(Ke),computedSliderRatio:Xe,computedSliderPosition:Math.round(Ze)}},ie.prototype._refreshComputedValues=function(){var J=ie._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=J.computedAvailableSize,this._computedIsNeeded=J.computedIsNeeded,this._computedSliderSize=J.computedSliderSize,this._computedSliderRatio=J.computedSliderRatio,this._computedSliderPosition=J.computedSliderPosition},ie.prototype.getArrowSize=function(){return this._arrowSize},ie.prototype.getScrollPosition=function(){return this._scrollPosition},ie.prototype.getRectangleLargeSize=function(){return this._computedAvailableSize},ie.prototype.getRectangleSmallSize=function(){return this._scrollbarSize},ie.prototype.isNeeded=function(){return this._computedIsNeeded},ie.prototype.getSliderSize=function(){return this._computedSliderSize},ie.prototype.getSliderPosition=function(){return this._computedSliderPosition},ie.prototype.getDesiredScrollPositionFromOffset=function(J){if(!this._computedIsNeeded)return 0;var me=J-this._arrowSize-this._computedSliderSize/2;return Math.round(me/this._computedSliderRatio)},ie.prototype.getDesiredScrollPositionFromDelta=function(J){if(!this._computedIsNeeded)return 0;var me=this._computedSliderPosition+J;return Math.round(me/this._computedSliderRatio)},ie}(),m=function(){var ie=function(me,ye){return ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ze,tt){ze.__proto__=tt}||function(ze,tt){for(var _t in tt)tt.hasOwnProperty(_t)&&(ze[_t]=tt[_t])},ie(me,ye)};return function(J,me){ie(J,me);function ye(){this.constructor=J}J.prototype=me===null?Object.create(me):(ye.prototype=me.prototype,new ye)}}(),w=function(ie){m(J,ie);function J(me,ye,ze){var tt=this,_t=me.getScrollDimensions(),Pt=me.getCurrentScrollPosition();if(tt=ie.call(this,{lazyRender:ye.lazyRender,host:ze,scrollbarState:new g(ye.horizontalHasArrows?ye.arrowSize:0,ye.horizontal===2?0:ye.horizontalScrollbarSize,ye.vertical===2?0:ye.verticalScrollbarSize,_t.width,_t.scrollWidth,Pt.scrollLeft),visibility:ye.horizontal,extraScrollbarClassName:"horizontal",scrollable:me})||this,ye.horizontalHasArrows){var Xt=(ye.arrowSize-E)/2,Ke=(ye.horizontalScrollbarSize-E)/2;tt._createArrow({className:"left-arrow",top:Ke,left:Xt,bottom:void 0,right:void 0,bgWidth:ye.arrowSize,bgHeight:ye.horizontalScrollbarSize,onActivate:function(){return tt._host.onMouseWheel(new F.b(null,1,0))}}),tt._createArrow({className:"right-arrow",top:Ke,left:void 0,bottom:void 0,right:Xt,bgWidth:ye.arrowSize,bgHeight:ye.horizontalScrollbarSize,onActivate:function(){return tt._host.onMouseWheel(new F.b(null,-1,0))}})}return tt._createSlider(Math.floor((ye.horizontalScrollbarSize-ye.horizontalSliderSize)/2),0,void 0,ye.horizontalSliderSize),tt}return J.prototype._updateSlider=function(me,ye){this.slider.setWidth(me),this.slider.setLeft(ye)},J.prototype._renderDomNode=function(me,ye){this.domNode.setWidth(me),this.domNode.setHeight(ye),this.domNode.setLeft(0),this.domNode.setBottom(0)},J.prototype.onDidScroll=function(me){return this._shouldRender=this._onElementScrollSize(me.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(me.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(me.width)||this._shouldRender,this._shouldRender},J.prototype._mouseDownRelativePosition=function(me,ye){return me},J.prototype._sliderMousePosition=function(me){return me.posx},J.prototype._sliderOrthogonalMousePosition=function(me){return me.posy},J.prototype.writeScrollPosition=function(me,ye){me.scrollLeft=ye},J}(f),B=function(){var ie=function(me,ye){return ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ze,tt){ze.__proto__=tt}||function(ze,tt){for(var _t in tt)tt.hasOwnProperty(_t)&&(ze[_t]=tt[_t])},ie(me,ye)};return function(J,me){ie(J,me);function ye(){this.constructor=J}J.prototype=me===null?Object.create(me):(ye.prototype=me.prototype,new ye)}}(),H=function(ie){B(J,ie);function J(me,ye,ze){var tt=this,_t=me.getScrollDimensions(),Pt=me.getCurrentScrollPosition();if(tt=ie.call(this,{lazyRender:ye.lazyRender,host:ze,scrollbarState:new g(ye.verticalHasArrows?ye.arrowSize:0,ye.vertical===2?0:ye.verticalScrollbarSize,0,_t.height,_t.scrollHeight,Pt.scrollTop),visibility:ye.vertical,extraScrollbarClassName:"vertical",scrollable:me})||this,ye.verticalHasArrows){var Xt=(ye.arrowSize-E)/2,Ke=(ye.verticalScrollbarSize-E)/2;tt._createArrow({className:"up-arrow",top:Xt,left:Ke,bottom:void 0,right:void 0,bgWidth:ye.verticalScrollbarSize,bgHeight:ye.arrowSize,onActivate:function(){return tt._host.onMouseWheel(new F.b(null,0,1))}}),tt._createArrow({className:"down-arrow",top:void 0,left:Ke,bottom:Xt,right:void 0,bgWidth:ye.verticalScrollbarSize,bgHeight:ye.arrowSize,onActivate:function(){return tt._host.onMouseWheel(new F.b(null,0,-1))}})}return tt._createSlider(0,Math.floor((ye.verticalScrollbarSize-ye.verticalSliderSize)/2),ye.verticalSliderSize,void 0),tt}return J.prototype._updateSlider=function(me,ye){this.slider.setHeight(me),this.slider.setTop(ye)},J.prototype._renderDomNode=function(me,ye){this.domNode.setWidth(ye),this.domNode.setHeight(me),this.domNode.setRight(0),this.domNode.setTop(0)},J.prototype.onDidScroll=function(me){return this._shouldRender=this._onElementScrollSize(me.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(me.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(me.height)||this._shouldRender,this._shouldRender},J.prototype._mouseDownRelativePosition=function(me,ye){return ye},J.prototype._sliderMousePosition=function(me){return me.posy},J.prototype._sliderOrthogonalMousePosition=function(me){return me.posx},J.prototype.writeScrollPosition=function(me,ye){me.scrollTop=ye},J}(f),re=r("YK2C"),he=r("WO5T"),Ee=function(){var ie=function(me,ye){return ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ze,tt){ze.__proto__=tt}||function(ze,tt){for(var _t in tt)tt.hasOwnProperty(_t)&&(ze[_t]=tt[_t])},ie(me,ye)};return function(J,me){ie(J,me);function ye(){this.constructor=J}J.prototype=me===null?Object.create(me):(ye.prototype=me.prototype,new ye)}}(),Se=500,q=50,Z=!0,ce=function(){function ie(J,me,ye){this.timestamp=J,this.deltaX=me,this.deltaY=ye,this.score=0}return ie}(),Me=function(){function ie(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}return ie.prototype.isPhysicalMouseWheel=function(){if(this._front===-1&&this._rear===-1)return!1;var J=1,me=0,ye=1,ze=this._rear;do{var tt=ze===this._front?J:Math.pow(2,-ye);if(J-=tt,me+=this._memory[ze].score*tt,ze===this._front)break;ze=(this._capacity+ze-1)%this._capacity,ye++}while(!0);return me<=.5},ie.prototype.accept=function(J,me,ye){var ze=new ce(J,me,ye);ze.score=this._computeScore(ze),this._front===-1&&this._rear===-1?(this._memory[0]=ze,this._front=0,this._rear=0):(this._rear=(this._rear+1)%this._capacity,this._rear===this._front&&(this._front=(this._front+1)%this._capacity),this._memory[this._rear]=ze)},ie.prototype._computeScore=function(J){if(Math.abs(J.deltaX)>0&&Math.abs(J.deltaY)>0)return 1;var me=.5,ye=this._front===-1&&this._rear===-1?null:this._memory[this._rear];return(Math.abs(J.deltaX-Math.round(J.deltaX))>0||Math.abs(J.deltaY-Math.round(J.deltaY))>0)&&(me+=.25),Math.min(Math.max(me,0),1)},ie.INSTANCE=new ie,ie}(),Ve=function(ie){Ee(J,ie);function J(me,ye,ze){var tt=ie.call(this)||this;tt._onScroll=tt._register(new re.a),tt.onScroll=tt._onScroll.event,me.style.overflow="hidden",tt._options=fe(ye),tt._scrollable=ze,tt._register(tt._scrollable.onScroll(function(Pt){tt._onDidScroll(Pt),tt._onScroll.fire(Pt)}));var _t={onMouseWheel:function(Xt){return tt._onMouseWheel(Xt)},onDragStart:function(){return tt._onDragStart()},onDragEnd:function(){return tt._onDragEnd()}};return tt._verticalScrollbar=tt._register(new H(tt._scrollable,tt._options,_t)),tt._horizontalScrollbar=tt._register(new w(tt._scrollable,tt._options,_t)),tt._domNode=document.createElement("div"),tt._domNode.className="monaco-scrollable-element "+tt._options.className,tt._domNode.setAttribute("role","presentation"),tt._domNode.style.position="relative",tt._domNode.style.overflow="hidden",tt._domNode.appendChild(me),tt._domNode.appendChild(tt._horizontalScrollbar.domNode.domNode),tt._domNode.appendChild(tt._verticalScrollbar.domNode.domNode),tt._options.useShadows?(tt._leftShadowDomNode=Object(N.b)(document.createElement("div")),tt._leftShadowDomNode.setClassName("shadow"),tt._domNode.appendChild(tt._leftShadowDomNode.domNode),tt._topShadowDomNode=Object(N.b)(document.createElement("div")),tt._topShadowDomNode.setClassName("shadow"),tt._domNode.appendChild(tt._topShadowDomNode.domNode),tt._topLeftShadowDomNode=Object(N.b)(document.createElement("div")),tt._topLeftShadowDomNode.setClassName("shadow top-left-corner"),tt._domNode.appendChild(tt._topLeftShadowDomNode.domNode)):(tt._leftShadowDomNode=null,tt._topShadowDomNode=null,tt._topLeftShadowDomNode=null),tt._listenOnDomNode=tt._options.listenOnDomNode||tt._domNode,tt._mouseWheelToDispose=[],tt._setListeningToMouseWheel(tt._options.handleMouseWheel),tt.onmouseover(tt._listenOnDomNode,function(Pt){return tt._onMouseOver(Pt)}),tt.onnonbubblingmouseout(tt._listenOnDomNode,function(Pt){return tt._onMouseOut(Pt)}),tt._hideTimeout=tt._register(new G.e),tt._isDragging=!1,tt._mouseIsOver=!1,tt._shouldRender=!0,tt._revealOnScroll=!0,tt}return J.prototype.dispose=function(){this._mouseWheelToDispose=Object(K.f)(this._mouseWheelToDispose),ie.prototype.dispose.call(this)},J.prototype.getDomNode=function(){return this._domNode},J.prototype.getOverviewRulerLayoutInfo=function(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}},J.prototype.delegateVerticalScrollbarMouseDown=function(me){this._verticalScrollbar.delegateMouseDown(me)},J.prototype.getScrollDimensions=function(){return this._scrollable.getScrollDimensions()},J.prototype.setScrollDimensions=function(me){this._scrollable.setScrollDimensions(me)},J.prototype.updateClassName=function(me){this._options.className=me,te.e&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className},J.prototype.updateOptions=function(me){var ye=fe(me);this._options.handleMouseWheel=ye.handleMouseWheel,this._options.mouseWheelScrollSensitivity=ye.mouseWheelScrollSensitivity,this._options.fastScrollSensitivity=ye.fastScrollSensitivity,this._setListeningToMouseWheel(this._options.handleMouseWheel),this._options.lazyRender||this._render()},J.prototype._setListeningToMouseWheel=function(me){var ye=this,ze=this._mouseWheelToDispose.length>0;if(ze===me)return;if(this._mouseWheelToDispose=Object(K.f)(this._mouseWheelToDispose),me){var tt=function(Pt){ye._onMouseWheel(new F.b(Pt))};this._mouseWheelToDispose.push(ne.i(this._listenOnDomNode,oe.f?"mousewheel":"wheel",tt,{passive:!1}))}},J.prototype._onMouseWheel=function(me){var ye,ze=Me.INSTANCE;if(Z&&ze.accept(Date.now(),me.deltaX,me.deltaY),me.deltaY||me.deltaX){var tt=me.deltaY*this._options.mouseWheelScrollSensitivity,_t=me.deltaX*this._options.mouseWheelScrollSensitivity;this._options.flipAxes&&(ye=[_t,tt],tt=ye[0],_t=ye[1]);var Pt=!te.e&&me.browserEvent&&me.browserEvent.shiftKey;(this._options.scrollYToX||Pt)&&!_t&&(_t=tt,tt=0),me.browserEvent&&me.browserEvent.altKey&&(_t=_t*this._options.fastScrollSensitivity,tt=tt*this._options.fastScrollSensitivity);var Xt=this._scrollable.getFutureScrollPosition(),Ke={};if(tt){var Xe=Xt.scrollTop-q*tt;this._verticalScrollbar.writeScrollPosition(Ke,Xe)}if(_t){var Ze=Xt.scrollLeft-q*_t;this._horizontalScrollbar.writeScrollPosition(Ke,Ze)}if(Ke=this._scrollable.validateScrollPosition(Ke),Xt.scrollLeft!==Ke.scrollLeft||Xt.scrollTop!==Ke.scrollTop){var Ye=Z&&this._options.mouseWheelSmoothScroll&&ze.isPhysicalMouseWheel();Ye?this._scrollable.setScrollPositionSmooth(Ke):this._scrollable.setScrollPositionNow(Ke),this._shouldRender=!0}}(this._options.alwaysConsumeMouseWheel||this._shouldRender)&&(me.preventDefault(),me.stopPropagation())},J.prototype._onDidScroll=function(me){this._shouldRender=this._horizontalScrollbar.onDidScroll(me)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(me)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()},J.prototype.renderNow=function(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()},J.prototype._render=function(){if(!this._shouldRender)return;if(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows){var me=this._scrollable.getCurrentScrollPosition(),ye=me.scrollTop>0,ze=me.scrollLeft>0;this._leftShadowDomNode.setClassName("shadow"+(ze?" left":"")),this._topShadowDomNode.setClassName("shadow"+(ye?" top":"")),this._topLeftShadowDomNode.setClassName("shadow top-left-corner"+(ye?" top":"")+(ze?" left":""))}},J.prototype._onDragStart=function(){this._isDragging=!0,this._reveal()},J.prototype._onDragEnd=function(){this._isDragging=!1,this._hide()},J.prototype._onMouseOut=function(me){this._mouseIsOver=!1,this._hide()},J.prototype._onMouseOver=function(me){this._mouseIsOver=!0,this._reveal()},J.prototype._reveal=function(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()},J.prototype._hide=function(){!this._mouseIsOver&&!this._isDragging&&(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())},J.prototype._scheduleHide=function(){var me=this;!this._mouseIsOver&&!this._isDragging&&this._hideTimeout.cancelAndSet(function(){return me._hide()},Se)},J}(j.a),_e=function(ie){Ee(J,ie);function J(me,ye){var ze=this;ye=ye||{},ye.mouseWheelSmoothScroll=!1;var tt=new he.a(0,function(_t){return ne.V(_t)});return ze=ie.call(this,me,ye,tt)||this,ze._register(tt),ze}return J.prototype.setScrollPosition=function(me){this._scrollable.setScrollPositionNow(me)},J.prototype.getScrollPosition=function(){return this._scrollable.getCurrentScrollPosition()},J}(Ve),ue=function(ie){Ee(J,ie);function J(me,ye,ze){return ie.call(this,me,ye,ze)||this}return J}(Ve),se=function(ie){Ee(J,ie);function J(me,ye){var ze=ie.call(this,me,ye)||this;return ze._element=me,ze.onScroll(function(tt){tt.scrollTopChanged&&(ze._element.scrollTop=tt.scrollTop),tt.scrollLeftChanged&&(ze._element.scrollLeft=tt.scrollLeft)}),ze.scanDomNode(),ze}return J.prototype.scanDomNode=function(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})},J}(_e);function fe(ie){var J={lazyRender:typeof ie.lazyRender!="undefined"?ie.lazyRender:!1,className:typeof ie.className!="undefined"?ie.className:"",useShadows:typeof ie.useShadows!="undefined"?ie.useShadows:!0,handleMouseWheel:typeof ie.handleMouseWheel!="undefined"?ie.handleMouseWheel:!0,flipAxes:typeof ie.flipAxes!="undefined"?ie.flipAxes:!1,alwaysConsumeMouseWheel:typeof ie.alwaysConsumeMouseWheel!="undefined"?ie.alwaysConsumeMouseWheel:!1,scrollYToX:typeof ie.scrollYToX!="undefined"?ie.scrollYToX:!1,mouseWheelScrollSensitivity:typeof ie.mouseWheelScrollSensitivity!="undefined"?ie.mouseWheelScrollSensitivity:1,fastScrollSensitivity:typeof ie.fastScrollSensitivity!="undefined"?ie.fastScrollSensitivity:5,mouseWheelSmoothScroll:typeof ie.mouseWheelSmoothScroll!="undefined"?ie.mouseWheelSmoothScroll:!0,arrowSize:typeof ie.arrowSize!="undefined"?ie.arrowSize:11,listenOnDomNode:typeof ie.listenOnDomNode!="undefined"?ie.listenOnDomNode:null,horizontal:typeof ie.horizontal!="undefined"?ie.horizontal:1,horizontalScrollbarSize:typeof ie.horizontalScrollbarSize!="undefined"?ie.horizontalScrollbarSize:10,horizontalSliderSize:typeof ie.horizontalSliderSize!="undefined"?ie.horizontalSliderSize:0,horizontalHasArrows:typeof ie.horizontalHasArrows!="undefined"?ie.horizontalHasArrows:!1,vertical:typeof ie.vertical!="undefined"?ie.vertical:1,verticalScrollbarSize:typeof ie.verticalScrollbarSize!="undefined"?ie.verticalScrollbarSize:10,verticalHasArrows:typeof ie.verticalHasArrows!="undefined"?ie.verticalHasArrows:!1,verticalSliderSize:typeof ie.verticalSliderSize!="undefined"?ie.verticalSliderSize:0};return J.horizontalSliderSize=typeof ie.horizontalSliderSize!="undefined"?ie.horizontalSliderSize:J.horizontalScrollbarSize,J.verticalSliderSize=typeof ie.verticalSliderSize!="undefined"?ie.verticalSliderSize:J.verticalScrollbarSize,te.e&&(J.className+=" mac"),J}},B6aB:function(wt,P,r){"use strict";r.d(P,"a",function(){return U});var I=r("g2LA"),oe=r("V0RK"),ne=r("w9Cd"),N=r("yBOt"),F=function(){function j(G,R,E){this.lineNumber=G,this.column=R,this.leftoverVisibleColumns=E}return j}(),U=function(){function j(){}return j.leftPosition=function(G,R,E){return E>G.getLineMinColumn(R)?E=E-N.G(G.getLineContent(R),E-1):R>1&&(R=R-1,E=G.getLineMaxColumn(R)),new oe.a(R,E)},j.left=function(G,R,E,x){var K=j.leftPosition(R,E,x);return new F(K.lineNumber,K.column,0)},j.moveLeft=function(G,R,E,x,K){var D,A;if(E.hasSelection()&&!x)D=E.selection.startLineNumber,A=E.selection.startColumn;else{var te=j.left(G,R,E.position.lineNumber,E.position.column-(K-1));D=te.lineNumber,A=te.column}return E.move(x,D,A,0)},j.rightPosition=function(G,R,E){return Ez?(E=z,A?x=R.getLineMaxColumn(E):x=Math.min(R.getLineMaxColumn(E),x)):x=I.a.columnFromVisibleColumn2(G,R,E,te),K=te-I.a.visibleColumnFromColumn(R.getLineContent(E),x,G.tabSize),new F(E,x,K)},j.moveDown=function(G,R,E,x,K){var D,A;E.hasSelection()&&!x?(D=E.selection.endLineNumber,A=E.selection.endColumn):(D=E.position.lineNumber,A=E.position.column);var te=j.down(G,R,D,A,E.leftoverVisibleColumns,K,!0);return E.move(x,te.lineNumber,te.column,te.leftoverVisibleColumns)},j.translateDown=function(G,R,E){var x=E.selection,K=j.down(G,R,x.selectionStartLineNumber,x.selectionStartColumn,E.selectionStartLeftoverVisibleColumns,1,!1),D=j.down(G,R,x.positionLineNumber,x.positionColumn,E.leftoverVisibleColumns,1,!1);return new I.f(new ne.a(K.lineNumber,K.column,K.lineNumber,K.column),K.leftoverVisibleColumns,new oe.a(D.lineNumber,D.column),D.leftoverVisibleColumns)},j.up=function(G,R,E,x,K,D,A){var te=I.a.visibleColumnFromColumn(R.getLineContent(E),x,G.tabSize)+K;return E=E-D,E<1?(E=1,A?x=R.getLineMinColumn(E):x=Math.min(R.getLineMaxColumn(E),x)):x=I.a.columnFromVisibleColumn2(G,R,E,te),K=te-I.a.visibleColumnFromColumn(R.getLineContent(E),x,G.tabSize),new F(E,x,K)},j.moveUp=function(G,R,E,x,K){var D,A;E.hasSelection()&&!x?(D=E.selection.startLineNumber,A=E.selection.startColumn):(D=E.position.lineNumber,A=E.position.column);var te=j.up(G,R,D,A,E.leftoverVisibleColumns,K,!0);return E.move(x,te.lineNumber,te.column,te.leftoverVisibleColumns)},j.translateUp=function(G,R,E){var x=E.selection,K=j.up(G,R,x.selectionStartLineNumber,x.selectionStartColumn,E.selectionStartLeftoverVisibleColumns,1,!1),D=j.up(G,R,x.positionLineNumber,x.positionColumn,E.leftoverVisibleColumns,1,!1);return new I.f(new ne.a(K.lineNumber,K.column,K.lineNumber,K.column),K.leftoverVisibleColumns,new oe.a(D.lineNumber,D.column),D.leftoverVisibleColumns)},j.moveToBeginningOfLine=function(G,R,E,x){var K=E.position.lineNumber,D=R.getLineMinColumn(K),A=R.getLineFirstNonWhitespaceColumn(K)||D,te,z=E.position.column;return z===A?te=D:te=A,E.move(x,K,te,0)},j.moveToEndOfLine=function(G,R,E,x){var K=E.position.lineNumber,D=R.getLineMaxColumn(K);return E.move(x,K,D,0)},j.moveToBeginningOfBuffer=function(G,R,E,x){return E.move(x,1,1,0)},j.moveToEndOfBuffer=function(G,R,E,x){var K=R.getLineCount(),D=R.getLineMaxColumn(K);return E.move(x,K,D,0)},j}()},CTBJ:function(wt,P,r){"use strict";r.d(P,"a",function(){return oe});var I=r("YK2C"),oe=new(function(){function ne(){this._zoomLevel=0,this._onDidChangeZoomLevel=new I.a,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}return ne.prototype.getZoomLevel=function(){return this._zoomLevel},ne.prototype.setZoomLevel=function(N){if(N=Math.min(Math.max(-5,N),20),this._zoomLevel===N)return;this._zoomLevel=N,this._onDidChangeZoomLevel.fire(this._zoomLevel)},ne}())},CZFe:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"perl",extensions:[".pl"],aliases:["Perl","pl"],loader:function(){return r.e(228).then(r.bind(null,"rj1P"))}})},Cagm:function(wt,P,r){"use strict";r.d(P,"f",function(){return F}),r.d(P,"b",function(){return G}),r.d(P,"c",function(){return R}),r.d(P,"a",function(){return x}),r.d(P,"e",function(){return A}),r.d(P,"d",function(){return te});var I=r("Inmo"),oe=r("Q5rX"),ne=r("V0RK"),N=r("vqGt");function F(z){for(var _=0,f=0,p=0,g=0,m=z.length;g>>0}var j=new Uint32Array(0).buffer,G=function(){function z(){this.tokens=[]}return z.prototype.add=function(_,f){if(this.tokens.length>0){var p=this.tokens[this.tokens.length-1],g=p.startLineNumber+p.tokens.length-1;if(g+1===_){p.tokens.push(f);return}}this.tokens.push(new K(_,[f]))},z}(),R=function(){function z(_){this._tokens=_,this._tokenCount=_.length/4}return z.prototype.getMaxDeltaLine=function(){var _=this.getTokenCount();return _===0?-1:this.getDeltaLine(_-1)},z.prototype.getTokenCount=function(){return this._tokenCount},z.prototype.getDeltaLine=function(_){return this._tokens[4*_]},z.prototype.getStartCharacter=function(_){return this._tokens[4*_+1]},z.prototype.getEndCharacter=function(_){return this._tokens[4*_+2]},z.prototype.getMetadata=function(_){return this._tokens[4*_+3]},z.prototype.clear=function(){this._tokenCount=0},z.prototype.acceptDeleteRange=function(_,f,p,g,m){for(var w=this._tokens,B=this._tokenCount,H=g-f,re=0,he=!1,Ee=0;Eem?ce-=m-p:ce=p;else if(q===f&&Z===p)if(q===g&&ce>m)ce-=m-p;else{he=!0;continue}else if(qm)q===f?(Z=p,ce=Z+(ce-m)):(Z=0,ce=Z+(ce-m));else{he=!0;continue}else if(q>g){if(H===0&&!he){re=B;break}q-=H}else if(q===g&&Z>=m)_&&q===0&&(Z+=_,ce+=_),q-=H,Z-=m-p,ce-=m-p;else throw new Error("Not possible!");var Ve=4*re;w[Ve]=q,w[Ve+1]=Z,w[Ve+2]=ce,w[Ve+3]=Me,re++}this._tokenCount=re},z.prototype.acceptInsertText=function(_,f,p,g,m,w){for(var B=p===0&&g===1&&(w>=48&&w<=57||w>=65&&w<=90||w>=97&&w<=122),H=this._tokens,re=this._tokenCount,he=0;hef)g=m-1;else{for(var B=m;B>p&&_.getDeltaLine(B-1)===f;)B--;for(var H=m;H0?f.charCodeAt(0):0)},z.prototype.acceptEdit=function(_,f,p,g,m){this._acceptDeleteRange(_),this._acceptInsertText(new ne.a(_.startLineNumber,_.startColumn),f,p,g,m),this._updateEndLineNumber()},z.prototype._acceptDeleteRange=function(_){if(_.startLineNumber===_.endLineNumber&&_.startColumn===_.endColumn)return;var f=_.startLineNumber-this.startLineNumber,p=_.endLineNumber-this.startLineNumber;if(p<0){var g=p-f;this.startLineNumber-=g;return}var m=this.tokens.getMaxDeltaLine();if(f>=m+1)return;if(f<0&&p>=m+1){this.startLineNumber=0,this.tokens.clear();return}if(f<0){var w=-f;this.startLineNumber-=w,this.tokens.acceptDeleteRange(_.startColumn-1,0,0,p,_.endColumn-1)}else this.tokens.acceptDeleteRange(0,f,_.startColumn-1,p,_.endColumn-1)},z.prototype._acceptInsertText=function(_,f,p,g,m){if(f===0&&p===0)return;var w=_.lineNumber-this.startLineNumber;if(w<0){this.startLineNumber+=f;return}var B=this.tokens.getMaxDeltaLine();if(w>=B+1)return;this.tokens.acceptInsertText(w,_.column-1,f,p,g,m)},z}(),K=function(){function z(_,f){this.startLineNumber=_,this.tokens=f}return z}();function D(z){return z instanceof Uint32Array?z:new Uint32Array(z)}var A=function(){function z(){this._pieces=[]}return z.prototype.flush=function(){this._pieces=[]},z.prototype.set=function(_){this._pieces=_||[]},z.prototype.addSemanticTokens=function(_,f){var p=this._pieces;if(p.length===0)return f;var g=z._findFirstPieceWithLine(p,_),m=this._pieces[g].getLineTokens(_);if(!m)return f;for(var w=f.getCount(),B=m.getCount(),H=0,re=[],he=0,Ee=0;Ee>>0,Me=~ce>>>0;Hf)g=m-1;else{for(;m>p&&_[m-1].startLineNumber<=f&&f<=_[m-1].endLineNumber;)m--;return m}}return p},z.prototype.acceptEdit=function(_,f,p,g,m){for(var w=0,B=this._pieces;w1&&(m=N.x.getLanguageId(g[1])!==_),!m)return j}if(!g||g.length===0){var w=new Uint32Array(2);return w[0]=f,w[1]=U(_),w.buffer}return g[g.length-2]=f,g.byteOffset===0&&g.byteLength===g.buffer.byteLength?g.buffer:g},z.prototype._ensureLine=function(_){for(;_>=this._len;)this._lineTokens[this._len]=null,this._len++},z.prototype._deleteLines=function(_,f){if(f===0)return;_+f>this._len&&(f=this._len-_),this._lineTokens.splice(_,f),this._len-=f},z.prototype._insertLines=function(_,f){if(f===0)return;for(var p=[],g=0;g=this._len)return;if(_.startLineNumber===_.endLineNumber){if(_.startColumn===_.endColumn)return;this._lineTokens[f]=z._delete(this._lineTokens[f],_.startColumn-1,_.endColumn-1);return}this._lineTokens[f]=z._deleteEnding(this._lineTokens[f],_.startColumn-1);var p=_.endLineNumber-1,g=null;p=this._len)return;if(f===0){this._lineTokens[g]=z._insert(this._lineTokens[g],_.column-1,p);return}this._lineTokens[g]=z._deleteEnding(this._lineTokens[g],_.column-1),this._lineTokens[g]=z._insert(this._lineTokens[g],_.column-1,p),this._insertLines(_.lineNumber,f)},z._deleteBeginning=function(_,f){return _===null||_===j?_:z._delete(_,0,f)},z._deleteEnding=function(_,f){if(_===null||_===j)return _;var p=D(_),g=p[p.length-2];return z._delete(_,f,g)},z._delete=function(_,f,p){if(_===null||_===j||f===p)return _;var g=D(_),m=g.length>>>1;if(f===0&&g[g.length-2]===p)return j;var w=oe.a.findIndexInTokensArray(g,f),B=w>0?g[w-1<<1]:0,H=g[w<<1];if(pSe&&(g[Ee++]=ce,g[Ee++]=g[(Z<<1)+1],Se=ce)}if(Ee===g.length)return _;var Me=new Uint32Array(Ee);return Me.set(g.subarray(0,Ee),0),Me.buffer},z._append=function(_,f){if(f===j)return _;if(_===j)return f;if(_===null)return _;if(f===null)return null;var p=D(_),g=D(f),m=g.length>>>1,w=new Uint32Array(p.length+g.length);w.set(p,0);for(var B=p.length,H=p[p.length-2],re=0;re>>1,w=oe.a.findIndexInTokensArray(g,f);if(w>0){var B=g[w-1<<1];B===f&&w--}for(var H=w;H, selectionStart: "+this.selectionStart+", selectionEnd: "+this.selectionEnd+"]"},U.readFromTextArea=function(j){return new U(j.getValue(),j.getSelectionStart(),j.getSelectionEnd(),null,null)},U.prototype.collapseSelection=function(){return new U(this.value,this.value.length,this.value.length,null,null)},U.prototype.writeToTextArea=function(j,G,R){G.setValue(j,this.value),R&&G.setSelectionRange(j,this.selectionStart,this.selectionEnd)},U.prototype.deduceEditorPosition=function(j){if(j<=this.selectionStart){var G=this.value.substring(j,this.selectionStart);return this._finishDeduceEditorPosition(this.selectionStartPosition,G,-1)}if(j>=this.selectionEnd){var G=this.value.substring(this.selectionEnd,j);return this._finishDeduceEditorPosition(this.selectionEndPosition,G,1)}var R=this.value.substring(this.selectionStart,j);if(R.indexOf(String.fromCharCode(8230))===-1)return this._finishDeduceEditorPosition(this.selectionStartPosition,R,1);var E=this.value.substring(j,this.selectionEnd);return this._finishDeduceEditorPosition(this.selectionEndPosition,E,-1)},U.prototype._finishDeduceEditorPosition=function(j,G,R){for(var E=0,x=-1;(x=G.indexOf(` `,x+1))!==-1;)E++;return[j,R*G.length,E]},U.selectedText=function(j){return new U(j,0,j.length,null,null)},U.deduceInput=function(j,G,R){if(!j)return{text:"",replaceCharCnt:0};var E=j.value,x=j.selectionStart,K=j.selectionEnd,D=G.value,A=G.selectionStart,te=G.selectionEnd,z=E.substring(K),_=D.substring(te),f=I.d(z,_);D=D.substring(0,D.length-f),E=E.substring(0,E.length-f);var p=E.substring(0,x),g=D.substring(0,A),m=I.c(p,g);if(D=D.substring(m),E=E.substring(m),A-=m,x-=m,te-=m,K-=m,R&&A===te&&E.length>0){var w=null;if(A===D.length?I.M(D,E)&&(w=D.substring(E.length)):I.m(D,E)&&(w=D.substring(0,D.length-E.length)),w!==null&&w.length>0&&(/\uFE0F/.test(w)||I.g(w)))return{text:w,replaceCharCnt:0}}if(A===te){if(E===D&&x===0&&K===E.length&&A===D.length&&D.indexOf(` `)===-1&&I.h(D))return{text:"",replaceCharCnt:0};var B=p.length-m;return{text:D,replaceCharCnt:B}}var H=K-x;return{text:D,replaceCharCnt:H}},U.EMPTY=new U("",0,0,null,null),U}(),F=function(){function U(){}return U._getPageOfLine=function(j,G){return Math.floor((j-1)/G)},U._getRangeForPage=function(j,G){var R=j*G,E=R+1,x=R+G;return new ne.a(E,1,x+1,1)},U.fromEditorSelection=function(j,G,R,E,x){var K=U._getPageOfLine(R.startLineNumber,E),D=U._getRangeForPage(K,E),A=U._getPageOfLine(R.endLineNumber,E),te=U._getRangeForPage(A,E),z=D.intersectRanges(new ne.a(1,1,R.startLineNumber,R.startColumn)),_=G.getValueInRange(z,1),f=G.getLineCount(),p=G.getLineMaxColumn(f),g=te.intersectRanges(new ne.a(R.endLineNumber,R.endColumn,f,p)),m=G.getValueInRange(g,1),w;if(K===A||K+1===A)w=G.getValueInRange(R,1);else{var B=D.intersectRanges(R),H=te.intersectRanges(R);w=G.getValueInRange(B,1)+String.fromCharCode(8230)+G.getValueInRange(H,1)}if(x){var re=500;_.length>re&&(_=_.substring(_.length-re,_.length)),m.length>re&&(m=m.substring(0,re)),w.length>2*re&&(w=w.substring(0,re)+String.fromCharCode(8230)+w.substring(w.length-re,w.length))}return new N(_+w+m,_.length,_.length+w.length,new oe.a(R.startLineNumber,R.startColumn),new oe.a(R.endLineNumber,R.endColumn))},U}()},DIJm:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:function(){return r.e(231).then(r.bind(null,"/5I7"))}})},DqQN:function(wt,P,r){},"E+fE":function(wt,P,r){"use strict";r.d(P,"a",function(){return N});var I=r("yqRl"),oe=r("bndW"),ne=function(){function F(){this.data=new Map}return F.prototype.add=function(U,j){oe.a(I.j(U)),oe.a(I.i(j)),oe.a(!this.data.has(U),"There is already an extension with this id"),this.data.set(U,j)},F.prototype.as=function(U){return this.data.get(U)||null},F}(),N=new ne},E2Od:function(wt,P,r){"use strict";r.d(P,"a",function(){return Pr});var I=r("djTL"),oe=r("g9ht"),ne=r("fF8p"),N=r("QqjT"),F=r("YK2C"),U=r("bN5T"),j=r("Ojgo"),G=r("+qpR"),R=r("Whdu"),E=r("vQ3m"),x=r("6+xD"),K=r("S7i+"),D=r("3HcJ"),A=r("mTMv"),te=r("oBNp"),z=r("dE3Z"),_=r("pfH9"),f=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),p=function(){function L(n,e){this.x=n,this.y=e}return L.prototype.toClientCoordinates=function(){return new g(this.x-ne.d.scrollX,this.y-ne.d.scrollY)},L}(),g=function(){function L(n,e){this.clientX=n,this.clientY=e}return L.prototype.toPageCoordinates=function(){return new p(this.clientX+ne.d.scrollX,this.clientY+ne.d.scrollY)},L}(),m=function(){function L(n,e,i,d){this.x=n,this.y=e,this.width=i,this.height=d}return L}();function w(L){var n=ne.B(L);return new m(n.left,n.top,n.width,n.height)}var B=function(L){f(n,L);function n(e,i){var d=L.call(this,e)||this;return d.pos=new p(d.posx,d.posy),d.editorPos=w(i),d}return n}(te.a),H=function(){function L(n){this._editorViewDomNode=n}return L.prototype._create=function(n){return new B(n,this._editorViewDomNode)},L.prototype.onContextMenu=function(n,e){var i=this;return ne.i(n,"contextmenu",function(d){e(i._create(d))})},L.prototype.onMouseUp=function(n,e){var i=this;return ne.i(n,"mouseup",function(d){e(i._create(d))})},L.prototype.onMouseDown=function(n,e){var i=this;return ne.i(n,"mousedown",function(d){e(i._create(d))})},L.prototype.onMouseLeave=function(n,e){var i=this;return ne.j(n,function(d){e(i._create(d))})},L.prototype.onMouseMoveThrottled=function(n,e,i,d){var c=this,M=function(le,He){return i(le,c._create(He))};return ne.l(n,"mousemove",e,M,d)},L}(),re=function(){function L(n){this._editorViewDomNode=n}return L.prototype._create=function(n){return new B(n,this._editorViewDomNode)},L.prototype.onPointerUp=function(n,e){var i=this;return ne.i(n,"pointerup",function(d){e(i._create(d))})},L.prototype.onPointerDown=function(n,e){var i=this;return ne.i(n,"pointerdown",function(d){e(i._create(d))})},L.prototype.onPointerLeave=function(n,e){var i=this;return ne.k(n,function(d){e(i._create(d))})},L.prototype.onPointerMoveThrottled=function(n,e,i,d){var c=this,M=function(le,He){return i(le,c._create(He))};return ne.l(n,"pointermove",e,M,d)},L}(),he=function(L){f(n,L);function n(e){var i=L.call(this)||this;return i._editorViewDomNode=e,i._globalMouseMoveMonitor=i._register(new _.a),i._keydownListener=null,i}return n.prototype.startMonitoring=function(e,i,d,c,M){var ge=this;this._keydownListener=ne.n(document,"keydown",function(He){var st=He.toKeybinding();if(st.isModifierKey())return;ge._globalMouseMoveMonitor.stopMonitoring(!0)},!0);var le=function(st,ht){return d(st,new B(ht,ge._editorViewDomNode))};this._globalMouseMoveMonitor.startMonitoring(e,i,le,c,function(){ge._keydownListener.dispose(),M()})},n}(U.a),Ee=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Se=function(L){Ee(n,L);function n(){var e=L.call(this)||this;return e._shouldRender=!0,e}return n.prototype.shouldRender=function(){return this._shouldRender},n.prototype.forceShouldRender=function(){this._shouldRender=!0},n.prototype.setShouldRender=function(){this._shouldRender=!0},n.prototype.onDidRender=function(){this._shouldRender=!1},n.prototype.onConfigurationChanged=function(e){return!1},n.prototype.onContentSizeChanged=function(e){return!1},n.prototype.onCursorStateChanged=function(e){return!1},n.prototype.onDecorationsChanged=function(e){return!1},n.prototype.onFlushed=function(e){return!1},n.prototype.onFocusChanged=function(e){return!1},n.prototype.onLanguageConfigurationChanged=function(e){return!1},n.prototype.onLineMappingChanged=function(e){return!1},n.prototype.onLinesChanged=function(e){return!1},n.prototype.onLinesDeleted=function(e){return!1},n.prototype.onLinesInserted=function(e){return!1},n.prototype.onRevealRangeRequest=function(e){return!1},n.prototype.onScrollChanged=function(e){return!1},n.prototype.onThemeChanged=function(e){return!1},n.prototype.onTokensChanged=function(e){return!1},n.prototype.onTokensColorsChanged=function(e){return!1},n.prototype.onZonesChanged=function(e){return!1},n.prototype.handleEvents=function(e){for(var i=!1,d=0,c=e.length;d=He?c=Math.max(c,He+st-d):(e[i++]=new se(d,c),d=He,c=st)}return e[i++]=new se(d,c),e},L._createHorizontalRangesFromClientRects=function(n,e){if(!n||n.length===0)return null;for(var i=[],d=0,c=n.length;dHe)return null;e=Math.min(He,Math.max(le,e)),d=Math.min(He,Math.max(le,d)),e!==d&&(d>0&&c===0&&(d--,c=1073741824));var st=n.children[e].firstChild,ht=n.children[d].firstChild;if((!st||!ht)&&(!st&&i===0&&e>0&&(st=n.children[e-1].firstChild,i=1073741824),!ht&&c===0&&d>0&&(ht=n.children[d-1].firstChild,c=1073741824)),!st||!ht)return null;i=Math.min(st.textContent.length,Math.max(0,i)),c=Math.min(ht.textContent.length,Math.max(0,c));var y=this._readClientRects(st,i,ht,c,ge);return this._createHorizontalRangesFromClientRects(y,M)},L}(),ye=r("UFql"),ze=r("o75R"),tt=r("TwZP"),_t=r("juCB"),Pt=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Xt=function(){return K.f?!0:!(K.d||A.h||A.k)}(),Ke=A.f,Xe=function(){function L(n,e){this._domNode=n,this._clientRectDeltaLeft=0,this._clientRectDeltaLeftRead=!1,this.endNode=e}return Object.defineProperty(L.prototype,"clientRectDeltaLeft",{get:function(){return this._clientRectDeltaLeftRead||(this._clientRectDeltaLeftRead=!0,this._clientRectDeltaLeft=this._domNode.getBoundingClientRect().left),this._clientRectDeltaLeft},enumerable:!0,configurable:!0}),L}(),Ze=function(){function L(n,e){this.themeType=e;var i=n.options,d=i.get(34);this.renderWhitespace=i.get(74),this.renderControlCharacters=i.get(69),this.spaceWidth=d.spaceWidth,this.middotWidth=d.middotWidth,this.useMonospaceOptimizations=d.isMonospace&&!i.get(23),this.canUseHalfwidthRightwardsArrow=d.canUseHalfwidthRightwardsArrow,this.lineHeight=i.get(49),this.stopRenderingLineAfter=i.get(88),this.fontLigatures=i.get(35)}return L.prototype.equals=function(n){return this.themeType===n.themeType&&this.renderWhitespace===n.renderWhitespace&&this.renderControlCharacters===n.renderControlCharacters&&this.spaceWidth===n.spaceWidth&&this.middotWidth===n.middotWidth&&this.useMonospaceOptimizations===n.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===n.canUseHalfwidthRightwardsArrow&&this.lineHeight===n.lineHeight&&this.stopRenderingLineAfter===n.stopRenderingLineAfter&&this.fontLigatures===n.fontLigatures},L}(),Ye=function(){function L(n){this._options=n,this._isMaybeInvalid=!0,this._renderedViewLine=null}return L.prototype.getDomNode=function(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null},L.prototype.setDomNode=function(n){if(this._renderedViewLine)this._renderedViewLine.domNode=Object(x.b)(n);else throw new Error("I have no rendered view line to set the dom node to...")},L.prototype.onContentChanged=function(){this._isMaybeInvalid=!0},L.prototype.onTokensChanged=function(){this._isMaybeInvalid=!0},L.prototype.onDecorationsChanged=function(){this._isMaybeInvalid=!0},L.prototype.onOptionsChanged=function(n){this._isMaybeInvalid=!0,this._options=n},L.prototype.onSelectionChanged=function(){return Ke||this._options.themeType===tt.b||this._options.renderWhitespace==="selection"?(this._isMaybeInvalid=!0,!0):!1},L.prototype.renderLine=function(n,e,i,d){if(this._isMaybeInvalid===!1)return!1;this._isMaybeInvalid=!1;var c=i.getViewLineRenderingData(n),M=this._options,ge=ye.a.filter(c.inlineDecorations,n,c.minColumn,c.maxColumn),le=null;if(Ke||M.themeType===tt.b||this._options.renderWhitespace==="selection")for(var He=i.selections,st=0,ht=He;stn)continue;var u=y.startLineNumber===n?y.startColumn:c.minColumn,l=y.endLineNumber===n?y.endColumn:c.maxColumn;u');var S=Object(ze.d)(b,d);d.appendASCIIString("");var C=null;return Xt&&c.isBasicASCII&&M.useMonospaceOptimizations&&S.containsForeignElements===0&&(c.content.length<300&&b.lineTokens.getCount()<100&&(C=new ke(this._renderedViewLine?this._renderedViewLine.domNode:null,b,S.characterMapping))),C||(C=k(this._renderedViewLine?this._renderedViewLine.domNode:null,b,S.characterMapping,S.containsRTL,S.containsForeignElements)),this._renderedViewLine=C,!0},L.prototype.layoutLine=function(n,e){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(e),this._renderedViewLine.domNode.setHeight(this._options.lineHeight))},L.prototype.getWidth=function(){return this._renderedViewLine?this._renderedViewLine.getWidth():0},L.prototype.getWidthIsFast=function(){return this._renderedViewLine?this._renderedViewLine.getWidthIsFast():!0},L.prototype.getVisibleRangesForRange=function(n,e,i){if(!this._renderedViewLine)return null;n=n|0,e=e|0,n=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,n)),e=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,e));var d=this._renderedViewLine.input.stopRenderingLineAfter|0,c=!1;d!==-1&&n>d+1&&e>d+1&&(c=!0),d!==-1&&n>d+1&&(n=d+1),d!==-1&&e>d+1&&(e=d+1);var M=this._renderedViewLine.getVisibleRangesForRange(n,e,i);return M&&M.length>0?new ie(c,M):null},L.prototype.getColumnOfNodeOffset=function(n,e,i){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(n,e,i):1},L.CLASS_NAME="view-line",L}(),ke=function(){function L(n,e,i){this.domNode=n,this.input=e,this._characterMapping=i,this._charWidth=e.spaceWidth}return L.prototype.getWidth=function(){return this._getCharPosition(this._characterMapping.length)},L.prototype.getWidthIsFast=function(){return!0},L.prototype.getVisibleRangesForRange=function(n,e,i){var d=this._getCharPosition(n),c=this._getCharPosition(e);return[new se(d,c-d)]},L.prototype._getCharPosition=function(n){var e=this._characterMapping.getAbsoluteOffsets();return e.length===0?0:Math.round(this._charWidth*e[n-1])},L.prototype.getColumnOfNodeOffset=function(n,e,i){for(var d=e.textContent.length,c=-1;e;)e=e.previousSibling,c++;var M=this._characterMapping.partDataToCharOffset(c,d,i);return M+1},L}(),$e=function(){function L(n,e,i,d,c){if(this.domNode=n,this.input=e,this._characterMapping=i,this._isWhitespaceOnly=/^\s*$/.test(e.lineContent),this._containsForeignElements=c,this._cachedWidth=-1,this._pixelOffsetCache=null,!d||this._characterMapping.length===0){this._pixelOffsetCache=new Int32Array(Math.max(2,this._characterMapping.length+1));for(var M=0,ge=this._characterMapping.length;M<=ge;M++)this._pixelOffsetCache[M]=-1}}return L.prototype._getReadingTarget=function(n){return n.domNode.firstChild},L.prototype.getWidth=function(){return this.domNode?(this._cachedWidth===-1&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth),this._cachedWidth):0},L.prototype.getWidthIsFast=function(){return!(this._cachedWidth===-1)},L.prototype.getVisibleRangesForRange=function(n,e,i){if(!this.domNode)return null;if(this._pixelOffsetCache!==null){var d=this._readPixelOffset(this.domNode,n,i);if(d===-1)return null;var c=this._readPixelOffset(this.domNode,e,i);return c===-1?null:[new se(d,c-d)]}return this._readVisibleRangesForRange(this.domNode,n,e,i)},L.prototype._readVisibleRangesForRange=function(n,e,i,d){if(e===i){var c=this._readPixelOffset(n,e,d);return c===-1?null:[new se(c,0)]}else return this._readRawVisibleRangesForRange(n,e,i,d)},L.prototype._readPixelOffset=function(n,e,i){if(this._characterMapping.length===0){if(this._containsForeignElements===0)return 0;if(this._containsForeignElements===2)return 0;if(this._containsForeignElements===1)return this.getWidth();var d=this._getReadingTarget(n);return d.firstChild?d.firstChild.offsetWidth:0}if(this._pixelOffsetCache!==null){var c=this._pixelOffsetCache[e];if(c!==-1)return c;var M=this._actualReadPixelOffset(n,e,i);return this._pixelOffsetCache[e]=M,M}return this._actualReadPixelOffset(n,e,i)},L.prototype._actualReadPixelOffset=function(n,e,i){if(this._characterMapping.length===0){var d=me.readHorizontalRanges(this._getReadingTarget(n),0,0,0,0,i.clientRectDeltaLeft,i.endNode);return!d||d.length===0?-1:d[0].left}if(e===this._characterMapping.length&&this._isWhitespaceOnly&&this._containsForeignElements===0)return this.getWidth();var c=this._characterMapping.charOffsetToPartData(e-1),M=ze.a.getPartIndex(c),ge=ze.a.getCharIndex(c),le=me.readHorizontalRanges(this._getReadingTarget(n),M,ge,M,ge,i.clientRectDeltaLeft,i.endNode);return!le||le.length===0?-1:le[0].left},L.prototype._readRawVisibleRangesForRange=function(n,e,i,d){if(e===1&&i===this._characterMapping.length)return[new se(0,this.getWidth())];var c=this._characterMapping.charOffsetToPartData(e-1),M=ze.a.getPartIndex(c),ge=ze.a.getCharIndex(c),le=this._characterMapping.charOffsetToPartData(i-1),He=ze.a.getPartIndex(le),st=ze.a.getCharIndex(le);return me.readHorizontalRanges(this._getReadingTarget(n),M,ge,He,st,d.clientRectDeltaLeft,d.endNode)},L.prototype.getColumnOfNodeOffset=function(n,e,i){for(var d=e.textContent.length,c=-1;e;)e=e.previousSibling,c++;var M=this._characterMapping.partDataToCharOffset(c,d,i);return M+1},L}(),we=function(L){Pt(n,L);function n(){return L!==null&&L.apply(this,arguments)||this}return n.prototype._readVisibleRangesForRange=function(e,i,d,c){var M=L.prototype._readVisibleRangesForRange.call(this,e,i,d,c);if(!M||M.length===0||i===d||i===1&&d===this._characterMapping.length)return M;if(!this.input.containsRTL){var ge=this._readPixelOffset(e,d,c);if(ge!==-1){var le=M[M.length-1];le.left=4&&n[0]===3&&n[3]===7},L.isStrictChildOfViewLines=function(n){return n.length>4&&n[0]===3&&n[3]===7},L.isChildOfScrollableElement=function(n){return n.length>=2&&n[0]===3&&n[1]===5},L.isChildOfMinimap=function(n){return n.length>=2&&n[0]===3&&n[1]===8},L.isChildOfContentWidgets=function(n){return n.length>=4&&n[0]===3&&n[3]===1},L.isChildOfOverflowingContentWidgets=function(n){return n.length>=1&&n[0]===2},L.isChildOfOverlayWidgets=function(n){return n.length>=2&&n[0]===3&&n[1]===4},L}(),Tt=function(){function L(n,e,i){this.model=n.model;var d=n.configuration.options;this.layoutInfo=d.get(107),this.viewDomNode=e.viewDomNode,this.lineHeight=d.get(49),this.typicalHalfwidthCharacterWidth=d.get(34).typicalHalfwidthCharacterWidth,this.lastRenderData=i,this._context=n,this._viewHelper=e}return L.prototype.getZoneAtCoord=function(n){return L.getZoneAtCoord(this._context,n)},L.getZoneAtCoord=function(n,e){var i=n.viewLayout.getWhitespaceAtVerticalOffset(e);if(i){var d=i.verticalOffset+i.height/2,c=n.model.getLineCount(),M=null,ge=void 0,le=null;return i.afterLineNumber!==c&&(le=new ve.a(i.afterLineNumber+1,1)),i.afterLineNumber>0&&(M=new ve.a(i.afterLineNumber,n.model.getLineMaxColumn(i.afterLineNumber))),le===null?ge=M:M===null?ge=le:e=n.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,yn._getMouseColumn(this.mouseContentHorizontalOffset,n.typicalHalfwidthCharacterWidth))}return L}(),Gt=function(L){pe(n,L);function n(e,i,d,c){var M=L.call(this,e,i,d)||this;return M._ctx=e,c?(M.target=c,M.targetPath=ce.collect(c,e.viewDomNode)):(M.target=null,M.targetPath=new Uint8Array(0)),M}return n.prototype.toString=function(){return"pos("+this.pos.x+","+this.pos.y+"), editorPos("+this.editorPos.x+","+this.editorPos.y+"), mouseVerticalOffset: "+this.mouseVerticalOffset+", mouseContentHorizontalOffset: "+this.mouseContentHorizontalOffset+` target: `+(this.target?this.target.outerHTML:null)},n.prototype.fulfill=function(e,i,d,c){i===void 0&&(i=null),d===void 0&&(d=null),c===void 0&&(c=null);var M=this.mouseColumn;return i&&i.columnM.contentLeft+M.width)continue;var ht=n.getVerticalOffsetForLineNumber(M.position.lineNumber);if(ht<=le&&le<=ht+M.height)return e.fulfill(6,M.position)}return null},L._hitTestViewZone=function(n,e){var i=n.getZoneAtCoord(e.mouseVerticalOffset);if(i){var d=e.isInContentArea?8:5;return e.fulfill(d,i.position,null,i)}return null},L._hitTestTextArea=function(n,e){return Rt.isTextArea(e.targetPath)?n.lastRenderData.lastTextareaPosition?e.fulfill(6,n.lastRenderData.lastTextareaPosition):e.fulfill(1,n.lastRenderData.lastTextareaPosition):null},L._hitTestMargin=function(n,e){if(e.isInMarginArea){var i=n.getFullLineRangeAtCoord(e.mouseVerticalOffset),d=i.range.getStartPosition(),c=Math.abs(e.pos.x-e.editorPos.x),M={isAfterLines:i.isAfterLines,glyphMarginLeft:n.layoutInfo.glyphMarginLeft,glyphMarginWidth:n.layoutInfo.glyphMarginWidth,lineNumbersWidth:n.layoutInfo.lineNumbersWidth,offsetX:c};return c-=n.layoutInfo.glyphMarginLeft,c<=n.layoutInfo.glyphMarginWidth?e.fulfill(2,d,i.range,M):(c-=n.layoutInfo.glyphMarginWidth,c<=n.layoutInfo.lineNumbersWidth?e.fulfill(3,d,i.range,M):(c-=n.layoutInfo.lineNumbersWidth,e.fulfill(4,d,i.range,M)))}return null},L._hitTestViewLines=function(n,e,i){if(!Rt.isChildOfViewLines(e.targetPath))return null;if(n.isAfterLines(e.mouseVerticalOffset)){var d=n.model.getLineCount(),c=n.model.getLineMaxColumn(d);return e.fulfill(7,new ve.a(d,c),void 0,rn)}if(i){if(Rt.isStrictChildOfViewLines(e.targetPath)){var M=n.getLineNumberAtVerticalOffset(e.mouseVerticalOffset);if(n.model.getLineLength(M)===0){var ge=n.getLineWidth(M),le=Ln(e.mouseContentHorizontalOffset-ge);return e.fulfill(7,new ve.a(M,1),void 0,le)}var He=n.getLineWidth(M);if(e.mouseContentHorizontalOffset>=He){var le=Ln(e.mouseContentHorizontalOffset-He),st=new ve.a(M,n.model.getLineMaxColumn(M));return e.fulfill(7,st,void 0,le)}}return e.fulfill(0)}var ht=L._doHitTest(n,e);return ht.position?L.createMouseTargetFromHitTestPosition(n,e,ht.position.lineNumber,ht.position.column):this._createMouseTarget(n,e.withTarget(ht.hitTarget),!0)},L._hitTestMinimap=function(n,e){if(Rt.isChildOfMinimap(e.targetPath)){var i=n.getLineNumberAtVerticalOffset(e.mouseVerticalOffset),d=n.model.getLineMaxColumn(i);return e.fulfill(11,new ve.a(i,d))}return null},L._hitTestScrollbarSlider=function(n,e){if(Rt.isChildOfScrollableElement(e.targetPath)&&(e.target&&e.target.nodeType===1)){var i=e.target.className;if(i&&/\b(slider|scrollbar)\b/.test(i)){var d=n.getLineNumberAtVerticalOffset(e.mouseVerticalOffset),c=n.model.getLineMaxColumn(d);return e.fulfill(11,new ve.a(d,c))}}return null},L._hitTestScrollbar=function(n,e){if(Rt.isChildOfScrollableElement(e.targetPath)){var i=n.getLineNumberAtVerticalOffset(e.mouseVerticalOffset),d=n.model.getLineMaxColumn(i);return e.fulfill(11,new ve.a(i,d))}return null},L.prototype.getMouseColumn=function(n,e){var i=this._context.configuration.options,d=i.get(107),c=this._context.viewLayout.getCurrentScrollLeft()+e.x-n.x-d.contentLeft;return L._getMouseColumn(c,i.get(34).typicalHalfwidthCharacterWidth)},L._getMouseColumn=function(n,e){if(n<0)return 1;var i=Math.round(n/e);return i+1},L.createMouseTargetFromHitTestPosition=function(n,e,i,d){var c=new ve.a(i,d),M=n.getLineWidth(i);if(e.mouseContentHorizontalOffset>M){if(A.e&&c.column===1){var ge=Ln(e.mouseContentHorizontalOffset-M);return e.fulfill(7,new ve.a(i,n.model.getLineMaxColumn(i)),void 0,ge)}var le=Ln(e.mouseContentHorizontalOffset-M);return e.fulfill(7,c,void 0,le)}var He=n.visibleRangeForPosition(i,d);if(!He)return e.fulfill(0,c);var st=He.left;if(e.mouseContentHorizontalOffset===st)return e.fulfill(6,c);var ht=[];if(ht.push({offset:He.left,column:d}),d>1){var y=n.visibleRangeForPosition(i,d-1);y&&ht.push({offset:y.left,column:d-1})}var u=n.model.getLineMaxColumn(i);if(d=e.editorPos.y+n.layoutInfo.height&&(M=e.editorPos.y+n.layoutInfo.height-1);var ge=new p(e.pos.x,M),le=this._actualDoHitTestWithCaretRangeFromPoint(n,ge.toClientCoordinates());return le.position?le:this._actualDoHitTestWithCaretRangeFromPoint(n,e.pos.toClientCoordinates())},L._actualDoHitTestWithCaretRangeFromPoint=function(n,e){var i=ne.D(n.viewDomNode),d;if(i?typeof i.caretRangeFromPoint=="undefined"?d=Tn(i,e.clientX,e.clientY):d=i.caretRangeFromPoint(e.clientX,e.clientY):d=document.caretRangeFromPoint(e.clientX,e.clientY),!d||!d.startContainer)return{position:null,hitTarget:null};var c=d.startContainer,M=null;if(c.nodeType===c.TEXT_NODE){var ge=c.parentNode,le=ge?ge.parentNode:null,He=le?le.parentNode:null,st=He&&He.nodeType===He.ELEMENT_NODE?He.className:null;if(st===Ye.CLASS_NAME){var ht=n.getPositionFromDOMInfo(ge,d.startOffset);return{position:ht,hitTarget:null}}else M=c.parentNode}else if(c.nodeType===c.ELEMENT_NODE){var ge=c.parentNode,le=ge?ge.parentNode:null,y=le&&le.nodeType===le.ELEMENT_NODE?le.className:null;if(y===Ye.CLASS_NAME){var ht=n.getPositionFromDOMInfo(c,c.textContent.length);return{position:ht,hitTarget:null}}else M=c}return{position:null,hitTarget:M}},L._doHitTestWithCaretPositionFromPoint=function(n,e){var i=document.caretPositionFromPoint(e.clientX,e.clientY);if(i.offsetNode.nodeType===i.offsetNode.TEXT_NODE){var d=i.offsetNode.parentNode,c=d?d.parentNode:null,M=c?c.parentNode:null,ge=M&&M.nodeType===M.ELEMENT_NODE?M.className:null;if(ge===Ye.CLASS_NAME){var le=n.getPositionFromDOMInfo(i.offsetNode.parentNode,i.offset);return{position:le,hitTarget:null}}else return{position:null,hitTarget:i.offsetNode.parentNode}}return{position:null,hitTarget:i.offsetNode}},L._doHitTestWithMoveToPoint=function(n,e){var i=null,d=null,c=document.body.createTextRange();try{c.moveToPoint(e.clientX,e.clientY)}catch(ht){return{position:null,hitTarget:null}}c.collapse(!0);var M=c?c.parentElement():null,ge=M?M.parentNode:null,le=ge?ge.parentNode:null,He=le&&le.nodeType===le.ELEMENT_NODE?le.className:"";if(He===Ye.CLASS_NAME){var st=c.duplicate();st.moveToElementText(M),st.setEndPoint("EndToStart",c),i=n.getPositionFromDOMInfo(M,st.text.length),st.moveToElementText(n.viewDomNode)}else d=M;return c.moveToElementText(n.viewDomNode),{position:i,hitTarget:d}},L._doHitTest=function(n,e){return typeof document.caretRangeFromPoint=="function"?this._doHitTestWithCaretRangeFromPoint(n,e):document.caretPositionFromPoint?this._doHitTestWithCaretPositionFromPoint(n,e.pos.toClientCoordinates()):document.body.createTextRange?this._doHitTestWithMoveToPoint(n,e.pos.toClientCoordinates()):{position:null,hitTarget:null}},L}();function Tn(L,n,e){var i=document.createRange(),d=L.elementFromPoint(n,e);if(d!==null){for(;d&&d.firstChild&&d.firstChild.nodeType!==d.firstChild.TEXT_NODE;)d=d.lastChild;var c=d.getBoundingClientRect(),M=window.getComputedStyle(d,null).getPropertyValue("font"),ge=d.innerText,le=c.left,He=0,st=void 0;if(n>c.left+c.width)He=ge.length;else for(var ht=Ft.getInstance(),y=0;y0?1:-1;pt.a.setZoomLevel(ht+y),st.preventDefault(),st.stopPropagation()}};return c._register(ne.i(c.viewHelper.viewDomNode,A.f?"mousewheel":"wheel",ge,{capture:!0,passive:!1})),c._context.addEventHandler(c),c}return n.prototype.dispose=function(){this._context.removeEventHandler(this),L.prototype.dispose.call(this)},n.prototype.onCursorStateChanged=function(e){return this._mouseDownOperation.onCursorStateChanged(e),!1},n.prototype.onFocusChanged=function(e){return this._isFocused=e.isFocused,!1},n.prototype.onScrollChanged=function(e){return this._mouseDownOperation.onScrollChanged(),!1},n.prototype.getTargetAtClientPoint=function(e,i){var d=new g(e,i),c=d.toPageCoordinates(),M=w(this.viewHelper.viewDomNode);return c.yM.y+M.height||c.xM.x+M.width?null:this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),M,c,null)},n.prototype._createMouseTarget=function(e,i){return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),e.editorPos,e.pos,i?e.target:null)},n.prototype._getMouseColumn=function(e){return this.mouseTargetFactory.getMouseColumn(e.editorPos,e.pos)},n.prototype._onContextMenu=function(e,i){this.viewController.emitContextMenu({event:e,target:this._createMouseTarget(e,i)})},n.prototype._onMouseMove=function(e){if(this._mouseDownOperation.isActive())return;var i=e.timestamp;if(ii.y+i.height){var ge=c.getCurrentScrollTop()+(e.posy-i.y),le=Tt.getZoneAtCoord(this._context,ge);if(le){var He=this._helpPositionJumpOverViewZone(le);if(He)return new Et(null,13,M,He)}var ht=c.getLineNumberAtVerticalOffset(ge);return new Et(null,13,M,new ve.a(ht,d.getLineMaxColumn(ht)))}var y=c.getLineNumberAtVerticalOffset(c.getCurrentScrollTop()+(e.posy-i.y));return e.posxi.x+i.width?new Et(null,13,M,new ve.a(y,d.getLineMaxColumn(y))):null},n.prototype._findMousePosition=function(e,i){var d=this._getPositionOutsideEditor(e);if(d)return d;var c=this._createMouseTarget(e,i),M=c.position;if(!M)return null;if(c.type===8||c.type===5){var ge=this._helpPositionJumpOverViewZone(c.detail);if(ge)return new Et(c.element,c.type,c.mouseColumn,ge,null,c.detail)}return c},n.prototype._helpPositionJumpOverViewZone=function(e){var i=new ve.a(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),d=e.positionBefore,c=e.positionAfter;return d&&c?d.isBefore(i)?d:c:null},n.prototype._dispatchMouse=function(e,i){if(!e.position)return;this._viewController.dispatchMouse({position:e.position,mouseColumn:e.mouseColumn,startedOnLineNumbers:this._mouseState.startedOnLineNumbers,inSelectionMode:i,mouseDownCount:this._mouseState.count,altKey:this._mouseState.altKey,ctrlKey:this._mouseState.ctrlKey,metaKey:this._mouseState.metaKey,shiftKey:this._mouseState.shiftKey,leftButton:this._mouseState.leftButton,middleButton:this._mouseState.middleButton})},n}(U.a),nn=function(){function L(){this._altKey=!1,this._ctrlKey=!1,this._metaKey=!1,this._shiftKey=!1,this._leftButton=!1,this._middleButton=!1,this._startedOnLineNumbers=!1,this._lastMouseDownPosition=null,this._lastMouseDownPositionEqualCount=0,this._lastMouseDownCount=0,this._lastSetMouseDownCountTime=0,this.isDragAndDrop=!1}return Object.defineProperty(L.prototype,"altKey",{get:function(){return this._altKey},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"ctrlKey",{get:function(){return this._ctrlKey},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"metaKey",{get:function(){return this._metaKey},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"shiftKey",{get:function(){return this._shiftKey},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"leftButton",{get:function(){return this._leftButton},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"middleButton",{get:function(){return this._middleButton},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"startedOnLineNumbers",{get:function(){return this._startedOnLineNumbers},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"count",{get:function(){return this._lastMouseDownCount},enumerable:!0,configurable:!0}),L.prototype.setModifiers=function(n){this._altKey=n.altKey,this._ctrlKey=n.ctrlKey,this._metaKey=n.metaKey,this._shiftKey=n.shiftKey},L.prototype.setStartButtons=function(n){this._leftButton=n.leftButton,this._middleButton=n.middleButton},L.prototype.setStartedOnLineNumbers=function(n){this._startedOnLineNumbers=n},L.prototype.trySetCount=function(n,e){var i=new Date().getTime();i-this._lastSetMouseDownCountTime>L.CLEAR_MOUSE_DOWN_COUNT_TIME&&(n=1),this._lastSetMouseDownCountTime=i,n>this._lastMouseDownCount+1&&(n=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(e)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=e,this._lastMouseDownCount=Math.min(n,this._lastMouseDownPositionEqualCount)},L.CLEAR_MOUSE_DOWN_COUNT_TIME=400,L}(),sn=r("Uq4v"),ln=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}();function En(L,n){var e={translationY:n.translationY,translationX:n.translationX};return L&&(e.translationY+=L.translationY,e.translationX+=L.translationX),e}var On=function(L){ln(n,L);function n(e,i,d){var c=L.call(this,e,i,d)||this;return c.viewHelper.linesContentDomNode.style.msTouchAction="none",c.viewHelper.linesContentDomNode.style.msContentZooming="none",c._installGestureHandlerTimeout=window.setTimeout(function(){if(c._installGestureHandlerTimeout=-1,window.MSGesture){var M=new MSGesture,ge=new MSGesture;M.target=c.viewHelper.linesContentDomNode,ge.target=c.viewHelper.linesContentDomNode,c.viewHelper.linesContentDomNode.addEventListener("MSPointerDown",function(le){var He=le.pointerType;if(He===(le.MSPOINTER_TYPE_MOUSE||"mouse")){c._lastPointerType="mouse";return}else He===(le.MSPOINTER_TYPE_TOUCH||"touch")?(c._lastPointerType="touch",M.addPointer(le.pointerId)):(c._lastPointerType="pen",ge.addPointer(le.pointerId))}),c._register(ne.l(c.viewHelper.linesContentDomNode,"MSGestureChange",function(le){return c._onGestureChange(le)},En)),c._register(ne.i(c.viewHelper.linesContentDomNode,"MSGestureTap",function(le){return c._onCaptureGestureTap(le)},!0))}},100),c._lastPointerType="mouse",c}return n.prototype._onMouseDown=function(e){this._lastPointerType==="mouse"&&L.prototype._onMouseDown.call(this,e)},n.prototype._onCaptureGestureTap=function(e){var i=this,d=new B(e,this.viewHelper.viewDomNode),c=this._createMouseTarget(d,!1);c.position&&this.viewController.moveTo(c.position),d.browserEvent.fromElement?(d.preventDefault(),this.viewHelper.focusTextArea()):setTimeout(function(){i.viewHelper.focusTextArea()})},n.prototype._onGestureChange=function(e){this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)},n.prototype.dispose=function(){window.clearTimeout(this._installGestureHandlerTimeout),L.prototype.dispose.call(this)},n}(Vt),Pn=function(L){ln(n,L);function n(e,i,d){var c=L.call(this,e,i,d)||this;return c.viewHelper.linesContentDomNode.style.touchAction="none",c._installGestureHandlerTimeout=window.setTimeout(function(){if(c._installGestureHandlerTimeout=-1,window.MSGesture){var M=new MSGesture,ge=new MSGesture;M.target=c.viewHelper.linesContentDomNode,ge.target=c.viewHelper.linesContentDomNode,c.viewHelper.linesContentDomNode.addEventListener("pointerdown",function(le){var He=le.pointerType;if(He==="mouse"){c._lastPointerType="mouse";return}else He==="touch"?(c._lastPointerType="touch",M.addPointer(le.pointerId)):(c._lastPointerType="pen",ge.addPointer(le.pointerId))}),c._register(ne.l(c.viewHelper.linesContentDomNode,"MSGestureChange",function(le){return c._onGestureChange(le)},En)),c._register(ne.i(c.viewHelper.linesContentDomNode,"MSGestureTap",function(le){return c._onCaptureGestureTap(le)},!0))}},100),c._lastPointerType="mouse",c}return n.prototype._onMouseDown=function(e){this._lastPointerType==="mouse"&&L.prototype._onMouseDown.call(this,e)},n.prototype._onCaptureGestureTap=function(e){var i=this,d=new B(e,this.viewHelper.viewDomNode),c=this._createMouseTarget(d,!1);c.position&&this.viewController.moveTo(c.position),d.browserEvent.fromElement?(d.preventDefault(),this.viewHelper.focusTextArea()):setTimeout(function(){i.viewHelper.focusTextArea()})},n.prototype._onGestureChange=function(e){this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)},n.prototype.dispose=function(){window.clearTimeout(this._installGestureHandlerTimeout),L.prototype.dispose.call(this)},n}(Vt),Gn=function(L){ln(n,L);function n(e,i,d){var c=L.call(this,e,i,d)||this;c._register(D.b.addTarget(c.viewHelper.linesContentDomNode)),c._register(ne.i(c.viewHelper.linesContentDomNode,D.a.Tap,function(ge){return c.onTap(ge)})),c._register(ne.i(c.viewHelper.linesContentDomNode,D.a.Change,function(ge){return c.onChange(ge)})),c._register(ne.i(c.viewHelper.linesContentDomNode,D.a.Contextmenu,function(ge){return c._onContextMenu(new B(ge,c.viewHelper.viewDomNode),!1)})),c._lastPointerType="mouse",c._register(ne.i(c.viewHelper.linesContentDomNode,"pointerdown",function(ge){var le=ge.pointerType;if(le==="mouse"){c._lastPointerType="mouse";return}else le==="touch"?c._lastPointerType="touch":c._lastPointerType="pen"}));var M=new re(c.viewHelper.viewDomNode);return c._register(M.onPointerMoveThrottled(c.viewHelper.viewDomNode,function(ge){return c._onMouseMove(ge)},Lt(c.mouseTargetFactory),Vt.MOUSE_MOVE_MINIMUM_TIME)),c._register(M.onPointerUp(c.viewHelper.viewDomNode,function(ge){return c._onMouseUp(ge)})),c._register(M.onPointerLeave(c.viewHelper.viewDomNode,function(ge){return c._onMouseLeave(ge)})),c._register(M.onPointerDown(c.viewHelper.viewDomNode,function(ge){return c._onMouseDown(ge)})),c}return n.prototype.onTap=function(e){if(!e.initialTarget||!this.viewHelper.linesContentDomNode.contains(e.initialTarget))return;e.preventDefault(),this.viewHelper.focusTextArea();var i=this._createMouseTarget(new B(e,this.viewHelper.viewDomNode),!1);i.position&&this.viewController.dispatchMouse({position:i.position,mouseColumn:i.position.column,startedOnLineNumbers:!1,mouseDownCount:e.tapCount,inSelectionMode:!1,altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,leftButton:!1,middleButton:!1})},n.prototype.onChange=function(e){this._lastPointerType==="touch"&&this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)},n.prototype._onMouseDown=function(e){if(e.target&&this.viewHelper.linesContentDomNode.contains(e.target)&&this._lastPointerType==="touch")return;L.prototype._onMouseDown.call(this,e)},n}(Vt),Qn=function(L){ln(n,L);function n(e,i,d){var c=L.call(this,e,i,d)||this;return c._register(D.b.addTarget(c.viewHelper.linesContentDomNode)),c._register(ne.i(c.viewHelper.linesContentDomNode,D.a.Tap,function(M){return c.onTap(M)})),c._register(ne.i(c.viewHelper.linesContentDomNode,D.a.Change,function(M){return c.onChange(M)})),c._register(ne.i(c.viewHelper.linesContentDomNode,D.a.Contextmenu,function(M){return c._onContextMenu(new B(M,c.viewHelper.viewDomNode),!1)})),c}return n.prototype.onTap=function(e){e.preventDefault(),this.viewHelper.focusTextArea();var i=this._createMouseTarget(new B(e,this.viewHelper.viewDomNode),!1);i.position&&this.viewController.moveTo(i.position)},n.prototype.onChange=function(e){this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)},n}(Vt),Jn=function(L){ln(n,L);function n(e,i,d){var c=L.call(this)||this;return window.navigator.msPointerEnabled?c.handler=c._register(new On(e,i,d)):K.c&&sn.a.pointerEvents?c.handler=c._register(new Gn(e,i,d)):window.TouchEvent?c.handler=c._register(new Qn(e,i,d)):window.navigator.pointerEnabled||window.PointerEvent?c.handler=c._register(new Pn(e,i,d)):c.handler=c._register(new Vt(e,i,d)),c}return n.prototype.getTargetAtClientPoint=function(e,i){return this.handler.getTargetAtClientPoint(e,i)},n}(U.a),gi=r("mhhl"),Kn=r("yBOt"),yi=r("0pVj"),mi=r("Cp6c"),vt=r("jUI+"),Mt=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),zt=function(L){Mt(n,L);function n(){return L!==null&&L.apply(this,arguments)||this}return n}(Se),tn=r("4u7V"),Ut=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Sn=function(L){Ut(n,L);function n(e){var i=L.call(this)||this;return i._context=e,i._readConfig(),i._lastCursorModelPosition=new ve.a(1,1),i._renderResult=null,i._context.addEventHandler(i),i}return n.prototype._readConfig=function(){var e=this._context.configuration.options;this._lineHeight=e.get(49);var i=e.get(50);this._renderLineNumbers=i.renderType,this._renderCustomLineNumbers=i.renderFn,this._renderFinalNewline=e.get(71);var d=e.get(107);this._lineNumbersLeft=d.lineNumbersLeft,this._lineNumbersWidth=d.lineNumbersWidth},n.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,L.prototype.dispose.call(this)},n.prototype.onConfigurationChanged=function(e){return this._readConfig(),!0},n.prototype.onCursorStateChanged=function(e){var i=e.selections[0].getPosition();return this._lastCursorModelPosition=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(i),this._renderLineNumbers===2||this._renderLineNumbers===3},n.prototype.onFlushed=function(e){return!0},n.prototype.onLinesChanged=function(e){return!0},n.prototype.onLinesDeleted=function(e){return!0},n.prototype.onLinesInserted=function(e){return!0},n.prototype.onScrollChanged=function(e){return e.scrollTopChanged},n.prototype.onZonesChanged=function(e){return!0},n.prototype._getLineRenderLineNumber=function(e){var i=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new ve.a(e,1));if(i.column!==1)return"";var d=i.lineNumber;if(this._renderCustomLineNumbers)return this._renderCustomLineNumbers(d);if(this._renderLineNumbers===2){var c=Math.abs(this._lastCursorModelPosition.lineNumber-d);return c===0?''+d+"":String(c)}return this._renderLineNumbers===3?this._lastCursorModelPosition.lineNumber===d||d%10===0?String(d):"":String(d)},n.prototype.prepareRender=function(e){if(this._renderLineNumbers===0){this._renderResult=null;return}for(var i=K.d?this._lineHeight%2===0?" lh-even":" lh-odd":"",d=e.visibleRange.startLineNumber,c=e.visibleRange.endLineNumber,M='
',ge=this._context.model.getLineCount(),le=[],He=d;He<=c;He++){var st=He-d;if(!this._renderFinalNewline&&(He===ge&&this._context.model.getLineLength(He)===0)){le[st]="";continue}var ht=this._getLineRenderLineNumber(He);ht?le[st]=M+ht+"
":le[st]=""}this._renderResult=le},n.prototype.render=function(e,i){if(!this._renderResult)return"";var d=i-e;return d<0||d>=this._renderResult.length?"":this._renderResult[d]},n.CLASS_NAME="line-numbers",n}(zt);Object(tt.e)(function(L,n){var e=L.getColor(tn.j);e&&n.addRule(".monaco-editor .line-numbers { color: "+e+"; }");var i=L.getColor(tn.b);i&&n.addRule(".monaco-editor .current-line ~ .line-numbers { color: "+i+"; }")});var Rn=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Bn=function(L){Rn(n,L);function n(e){var i=L.call(this,e)||this,d=i._context.configuration.options,c=d.get(107);return i._canUseLayerHinting=!d.get(22),i._contentLeft=c.contentLeft,i._glyphMarginLeft=c.glyphMarginLeft,i._glyphMarginWidth=c.glyphMarginWidth,i._domNode=Object(x.b)(document.createElement("div")),i._domNode.setClassName(n.OUTER_CLASS_NAME),i._domNode.setPosition("absolute"),i._domNode.setAttribute("role","presentation"),i._domNode.setAttribute("aria-hidden","true"),i._glyphMarginBackgroundDomNode=Object(x.b)(document.createElement("div")),i._glyphMarginBackgroundDomNode.setClassName(n.CLASS_NAME),i._domNode.appendChild(i._glyphMarginBackgroundDomNode),i}return n.prototype.dispose=function(){L.prototype.dispose.call(this)},n.prototype.getDomNode=function(){return this._domNode},n.prototype.onConfigurationChanged=function(e){var i=this._context.configuration.options,d=i.get(107);return this._canUseLayerHinting=!i.get(22),this._contentLeft=d.contentLeft,this._glyphMarginLeft=d.glyphMarginLeft,this._glyphMarginWidth=d.glyphMarginWidth,!0},n.prototype.onScrollChanged=function(e){return L.prototype.onScrollChanged.call(this,e)||e.scrollTopChanged},n.prototype.prepareRender=function(e){},n.prototype.render=function(e){this._domNode.setLayerHinting(this._canUseLayerHinting),this._domNode.setContain("strict");var i=e.scrollTop-e.bigNumbersDelta;this._domNode.setTop(-i);var d=Math.min(e.scrollHeight,1e6);this._domNode.setHeight(d),this._domNode.setWidth(this._contentLeft),this._glyphMarginBackgroundDomNode.setLeft(this._glyphMarginLeft),this._glyphMarginBackgroundDomNode.setWidth(this._glyphMarginWidth),this._glyphMarginBackgroundDomNode.setHeight(d)},n.CLASS_NAME="glyph-margin",n.OUTER_CLASS_NAME="margin",n}(Z),Fn=r("ATqw"),ri=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),ci=function(){function L(n){this.type=1,this._source=n}return L.prototype.hasChanged=function(n){return this._source.hasChanged(n)},L}(),zi=function(){function L(n){this.type=2,this.contentWidth=n.contentWidth,this.contentHeight=n.contentHeight,this.contentWidthChanged=n.contentWidthChanged,this.contentHeightChanged=n.contentHeightChanged}return L}(),oo=function(){function L(n,e){this.type=3,this.selections=n,this.modelSelections=e}return L}(),Zn=function(){function L(){this.type=4}return L}(),Ii=function(){function L(){this.type=5}return L}(),Si=function(){function L(n){this.type=6,this.isFocused=n}return L}(),ji=function(){function L(){this.type=7}return L}(),Un=function(){function L(){this.type=8}return L}(),Ci=function(){function L(n,e){this.type=9,this.fromLineNumber=n,this.toLineNumber=e}return L}(),Wi=function(){function L(n,e){this.type=10,this.fromLineNumber=n,this.toLineNumber=e}return L}(),Ti=function(){function L(n,e){this.type=11,this.fromLineNumber=n,this.toLineNumber=e}return L}(),Gi=function(){function L(n,e,i,d,c){this.type=12,this.source=n,this.range=e,this.verticalType=i,this.revealHorizontal=d,this.scrollType=c}return L}(),Bi=function(){function L(n){this.type=13,this.scrollWidth=n.scrollWidth,this.scrollLeft=n.scrollLeft,this.scrollHeight=n.scrollHeight,this.scrollTop=n.scrollTop,this.scrollWidthChanged=n.scrollWidthChanged,this.scrollLeftChanged=n.scrollLeftChanged,this.scrollHeightChanged=n.scrollHeightChanged,this.scrollTopChanged=n.scrollTopChanged}return L}(),vi=function(){function L(){this.type=14}return L}(),qi=function(){function L(n){this.type=15,this.ranges=n}return L}(),ro=function(){function L(){this.type=16}return L}(),bi=function(){function L(){this.type=17}return L}(),Di=function(L){ri(n,L);function n(){var e=L.call(this)||this;return e._listeners=[],e._collector=null,e._collectorCnt=0,e}return n.prototype.dispose=function(){this._listeners=[],L.prototype.dispose.call(this)},n.prototype._beginEmit=function(){return this._collectorCnt++,this._collectorCnt===1&&(this._collector=new Xi),this._collector},n.prototype._endEmit=function(){if(this._collectorCnt--,this._collectorCnt===0){var e=this._collector.finalize();this._collector=null,e.length>0&&this._emit(e)}},n.prototype._emit=function(e){for(var i=this._listeners.slice(0),d=0,c=i.length;d0)return new mi.b(l,l.length,l.length,u,u)}}return mi.b.EMPTY}return mi.a.fromEditorSelection(ht,le,c._selections[0],c._accessibilityPageSize,c._accessibilitySupport===0)},deduceModelPosition:function(ht,y,u){return c._context.model.deduceModelPositionRelativeToViewPosition(ht,y,u)}};return c._textAreaInput=c._register(new yi.b(He,c.textArea)),c._register(c._textAreaInput.onKeyDown(function(st){c._viewController.emitKeyDown(st)})),c._register(c._textAreaInput.onKeyUp(function(st){c._viewController.emitKeyUp(st)})),c._register(c._textAreaInput.onPaste(function(st){var ht=!1,y=null,u=null;st.metadata&&(ht=c._emptySelectionClipboard&&!!st.metadata.isFromEmptySelection,y=typeof st.metadata.multicursorText!="undefined"?st.metadata.multicursorText:null,u=st.metadata.mode),c._viewController.paste("keyboard",st.text,ht,y,u)})),c._register(c._textAreaInput.onCut(function(){c._viewController.cut("keyboard")})),c._register(c._textAreaInput.onType(function(st){st.replaceCharCnt?c._viewController.replacePreviousChar("keyboard",st.text,st.replaceCharCnt):c._viewController.type("keyboard",st.text)})),c._register(c._textAreaInput.onSelectionChangeRequest(function(st){c._viewController.setSelection("keyboard",st)})),c._register(c._textAreaInput.onCompositionStart(function(){var st=c._selections[0].startLineNumber,ht=c._selections[0].startColumn;c._context.privateViewEventBus.emit(new Gi("keyboard",new Te.a(st,ht,st,ht),0,!0,1));var y=c._viewHelper.visibleRangeForPositionRelativeToEditor(st,ht);y&&(c._visibleTextArea=new so(c._context.viewLayout.getVerticalOffsetForLineNumber(st),y.left,Je?0:1),c._render()),c.textArea.setClassName("inputarea ime-input"),c._viewController.compositionStart("keyboard")})),c._register(c._textAreaInput.onCompositionUpdate(function(st){A.f?c._visibleTextArea=c._visibleTextArea.setWidth(0):c._visibleTextArea=c._visibleTextArea.setWidth(T(st.data,c._fontInfo)),c._render()})),c._register(c._textAreaInput.onCompositionEnd(function(){c._visibleTextArea=null,c._render(),c.textArea.setClassName("inputarea"),c._viewController.compositionEnd("keyboard")})),c._register(c._textAreaInput.onFocus(function(){c._context.privateViewEventBus.emit(new Si(!0))})),c._register(c._textAreaInput.onBlur(function(){c._context.privateViewEventBus.emit(new Si(!1))})),c}return n.prototype.dispose=function(){L.prototype.dispose.call(this)},n.prototype._getWordBeforePosition=function(e){for(var i=this._context.model.getLineContent(e.lineNumber),d=Object(Fn.a)(this._context.configuration.options.get(96)),c=e.column,M=0;c>1;){var ge=i.charCodeAt(c-2),le=d.get(ge);if(le!==0||M>50)return i.substring(c-1,e.column-1);M++,c--}return i.substring(0,e.column-1)},n.prototype._getCharacterBeforePosition=function(e){if(e.column>1){var i=this._context.model.getLineContent(e.lineNumber),d=i.charAt(e.column-2);if(!Kn.z(d.charCodeAt(0)))return d}return""},n.prototype._getAriaLabel=function(e){var i=e.get(2);return i===1?oe.a("accessibilityOffAriaLabel","The editor is not accessible at this time. Press Alt+F1 for options."):e.get(4)},n.prototype._setAccessibilityOptions=function(e){this._accessibilitySupport=e.get(2);var i=e.get(3);this._accessibilitySupport===2&&i===_t.e.accessibilityPageSize.defaultValue?this._accessibilityPageSize=160:this._accessibilityPageSize=i},n.prototype.onConfigurationChanged=function(e){var i=this._context.configuration.options,d=i.get(107);return this._setAccessibilityOptions(i),this._contentLeft=d.contentLeft,this._contentWidth=d.contentWidth,this._contentHeight=d.height,this._fontInfo=i.get(34),this._lineHeight=i.get(49),this._emptySelectionClipboard=i.get(25),this._copyWithSyntaxHighlighting=i.get(15),this.textArea.setAttribute("aria-label",this._getAriaLabel(i)),K.g&&e.hasChanged(68)&&(i.get(68)?this.textArea.setAttribute("readonly","true"):this.textArea.removeAttribute("readonly")),e.hasChanged(2)&&this._textAreaInput.writeScreenReaderContent("strategy changed"),!0},n.prototype.onCursorStateChanged=function(e){return this._selections=e.selections.slice(0),this._modelSelections=e.modelSelections.slice(0),this._textAreaInput.writeScreenReaderContent("selection changed"),!0},n.prototype.onDecorationsChanged=function(e){return!0},n.prototype.onFlushed=function(e){return!0},n.prototype.onLinesChanged=function(e){return!0},n.prototype.onLinesDeleted=function(e){return!0},n.prototype.onLinesInserted=function(e){return!0},n.prototype.onScrollChanged=function(e){return this._scrollLeft=e.scrollLeft,this._scrollTop=e.scrollTop,!0},n.prototype.onZonesChanged=function(e){return!0},n.prototype.isFocused=function(){return this._textAreaInput.isFocused()},n.prototype.focusTextArea=function(){this._textAreaInput.focusTextArea()},n.prototype.getLastRenderData=function(){return this._lastRenderPosition},n.prototype.setAriaOptions=function(e){e.activeDescendant?(this.textArea.setAttribute("aria-haspopup","true"),this.textArea.setAttribute("aria-autocomplete","list"),this.textArea.setAttribute("aria-activedescendant",e.activeDescendant)):(this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),this.textArea.removeAttribute("aria-activedescendant"))},n.prototype.prepareRender=function(e){this._primaryCursorPosition=new ve.a(this._selections[0].positionLineNumber,this._selections[0].positionColumn),this._primaryCursorVisibleRange=e.visibleRangeForPosition(this._primaryCursorPosition)},n.prototype.render=function(e){this._textAreaInput.writeScreenReaderContent("render"),this._render()},n.prototype._render=function(){if(this._visibleTextArea){this._renderInsideEditor(null,this._visibleTextArea.top-this._scrollTop,this._contentLeft+this._visibleTextArea.left-this._scrollLeft,this._visibleTextArea.width,this._lineHeight);return}if(!this._primaryCursorVisibleRange){this._renderAtTopLeft();return}var e=this._contentLeft+this._primaryCursorVisibleRange.left-this._scrollLeft;if(ethis._contentLeft+this._contentWidth){this._renderAtTopLeft();return}var i=this._context.viewLayout.getVerticalOffsetForLineNumber(this._selections[0].positionLineNumber)-this._scrollTop;if(i<0||i>this._contentHeight){this._renderAtTopLeft();return}if(K.e){this._renderInsideEditor(this._primaryCursorPosition,i,e,Je?0:1,this._lineHeight);return}this._renderInsideEditor(this._primaryCursorPosition,i,e,Je?0:1,Je?0:1)},n.prototype._renderInsideEditor=function(e,i,d,c,M){this._lastRenderPosition=e;var ge=this.textArea,le=this.textAreaCover;G.a.applyFontInfo(ge,this._fontInfo),ge.setTop(i),ge.setLeft(d),ge.setWidth(c),ge.setHeight(M),le.setTop(0),le.setLeft(0),le.setWidth(0),le.setHeight(0)},n.prototype._renderAtTopLeft=function(){this._lastRenderPosition=null;var e=this.textArea,i=this.textAreaCover;if(G.a.applyFontInfo(e,this._fontInfo),e.setTop(0),e.setLeft(0),i.setTop(0),i.setLeft(0),Je){e.setWidth(0),e.setHeight(0),i.setWidth(0),i.setHeight(0);return}e.setWidth(1),e.setHeight(1),i.setWidth(1),i.setHeight(1);var d=this._context.configuration.options;d.get(40)?i.setClassName("monaco-editor-background textAreaCover "+Bn.OUTER_CLASS_NAME):d.get(50).renderType!==0?i.setClassName("monaco-editor-background textAreaCover "+Sn.CLASS_NAME):i.setClassName("monaco-editor-background textAreaCover")},n}(Z);function T(L,n){var e=document.createElement("canvas"),i=e.getContext("2d");i.font=Y(n);var d=i.measureText(L);return A.h?d.width+2:d.width}function Y(L){return De("normal",L.fontWeight,L.fontSize,L.lineHeight,L.fontFamily)}function De(L,n,e,i,d){return L+" normal "+n+" "+e+"px / "+i+"px "+d}var Re=r("L4jf"),We=function(){function L(n,e,i,d){this.configuration=n,this.viewModel=e,this.outgoingEvents=i,this.commandDelegate=d}return L.prototype._execMouseCommand=function(n,e){e.source="mouse",this.commandDelegate.executeEditorCommand(n,e)},L.prototype.paste=function(n,e,i,d,c){this.commandDelegate.paste(n,e,i,d,c)},L.prototype.type=function(n,e){this.commandDelegate.type(n,e)},L.prototype.replacePreviousChar=function(n,e,i){this.commandDelegate.replacePreviousChar(n,e,i)},L.prototype.compositionStart=function(n){this.commandDelegate.compositionStart(n)},L.prototype.compositionEnd=function(n){this.commandDelegate.compositionEnd(n)},L.prototype.cut=function(n){this.commandDelegate.cut(n)},L.prototype.setSelection=function(n,e){this.commandDelegate.executeEditorCommand(Re.CoreNavigationCommands.SetSelection,{source:n,selection:e})},L.prototype._validateViewColumn=function(n){var e=this.viewModel.getLineMinColumn(n.lineNumber);return n.column=4?this._selectAll():n.mouseDownCount===3?this._hasMulticursorModifier(n)?n.inSelectionMode?this._lastCursorLineSelectDrag(n.position):this._lastCursorLineSelect(n.position):n.inSelectionMode?this._lineSelectDrag(n.position):this._lineSelect(n.position):n.mouseDownCount===2?this._hasMulticursorModifier(n)?this._lastCursorWordSelect(n.position):n.inSelectionMode?this._wordSelectDrag(n.position):this._wordSelect(n.position):this._hasMulticursorModifier(n)?this._hasNonMulticursorModifier(n)||(n.shiftKey?this._columnSelect(n.position,n.mouseColumn,!0):n.inSelectionMode?this._lastCursorMoveToSelect(n.position):this._createCursor(n.position,!1)):n.inSelectionMode?n.altKey?this._columnSelect(n.position,n.mouseColumn,!0):this._moveToSelect(n.position):this.moveTo(n.position)},L.prototype._usualArgs=function(n){return n=this._validateViewColumn(n),{position:this._convertViewToModelPosition(n),viewPosition:n}},L.prototype.moveTo=function(n){this._execMouseCommand(Re.CoreNavigationCommands.MoveTo,this._usualArgs(n))},L.prototype._moveToSelect=function(n){this._execMouseCommand(Re.CoreNavigationCommands.MoveToSelect,this._usualArgs(n))},L.prototype._columnSelect=function(n,e,i){n=this._validateViewColumn(n),this._execMouseCommand(Re.CoreNavigationCommands.ColumnSelect,{position:this._convertViewToModelPosition(n),viewPosition:n,mouseColumn:e,doColumnSelect:i})},L.prototype._createCursor=function(n,e){n=this._validateViewColumn(n),this._execMouseCommand(Re.CoreNavigationCommands.CreateCursor,{position:this._convertViewToModelPosition(n),viewPosition:n,wholeLine:e})},L.prototype._lastCursorMoveToSelect=function(n){this._execMouseCommand(Re.CoreNavigationCommands.LastCursorMoveToSelect,this._usualArgs(n))},L.prototype._wordSelect=function(n){this._execMouseCommand(Re.CoreNavigationCommands.WordSelect,this._usualArgs(n))},L.prototype._wordSelectDrag=function(n){this._execMouseCommand(Re.CoreNavigationCommands.WordSelectDrag,this._usualArgs(n))},L.prototype._lastCursorWordSelect=function(n){this._execMouseCommand(Re.CoreNavigationCommands.LastCursorWordSelect,this._usualArgs(n))},L.prototype._lineSelect=function(n){this._execMouseCommand(Re.CoreNavigationCommands.LineSelect,this._usualArgs(n))},L.prototype._lineSelectDrag=function(n){this._execMouseCommand(Re.CoreNavigationCommands.LineSelectDrag,this._usualArgs(n))},L.prototype._lastCursorLineSelect=function(n){this._execMouseCommand(Re.CoreNavigationCommands.LastCursorLineSelect,this._usualArgs(n))},L.prototype._lastCursorLineSelectDrag=function(n){this._execMouseCommand(Re.CoreNavigationCommands.LastCursorLineSelectDrag,this._usualArgs(n))},L.prototype._selectAll=function(){this._execMouseCommand(Re.CoreNavigationCommands.SelectAll,{})},L.prototype._convertViewToModelPosition=function(n){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(n)},L.prototype.emitKeyDown=function(n){this.outgoingEvents.emitKeyDown(n)},L.prototype.emitKeyUp=function(n){this.outgoingEvents.emitKeyUp(n)},L.prototype.emitContextMenu=function(n){this.outgoingEvents.emitContextMenu(n)},L.prototype.emitMouseMove=function(n){this.outgoingEvents.emitMouseMove(n)},L.prototype.emitMouseLeave=function(n){this.outgoingEvents.emitMouseLeave(n)},L.prototype.emitMouseUp=function(n){this.outgoingEvents.emitMouseUp(n)},L.prototype.emitMouseDown=function(n){this.outgoingEvents.emitMouseDown(n)},L.prototype.emitMouseDrag=function(n){this.outgoingEvents.emitMouseDrag(n)},L.prototype.emitMouseDrop=function(n){this.outgoingEvents.emitMouseDrop(n)},L.prototype.emitMouseWheel=function(n){this.outgoingEvents.emitMouseWheel(n)},L}(),ft=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),lt=function(L){ft(n,L);function n(e){var i=L.call(this)||this;return i.onDidContentSizeChange=null,i.onDidScroll=null,i.onDidGainFocus=null,i.onDidLoseFocus=null,i.onKeyDown=null,i.onKeyUp=null,i.onContextMenu=null,i.onMouseMove=null,i.onMouseLeave=null,i.onMouseUp=null,i.onMouseDown=null,i.onMouseDrag=null,i.onMouseDrop=null,i.onMouseWheel=null,i._viewModel=e,i}return n.prototype.emitContentSizeChange=function(e){this.onDidContentSizeChange&&this.onDidContentSizeChange(e)},n.prototype.emitScrollChanged=function(e){this.onDidScroll&&this.onDidScroll(e)},n.prototype.emitViewFocusGained=function(){this.onDidGainFocus&&this.onDidGainFocus(void 0)},n.prototype.emitViewFocusLost=function(){this.onDidLoseFocus&&this.onDidLoseFocus(void 0)},n.prototype.emitKeyDown=function(e){this.onKeyDown&&this.onKeyDown(e)},n.prototype.emitKeyUp=function(e){this.onKeyUp&&this.onKeyUp(e)},n.prototype.emitContextMenu=function(e){this.onContextMenu&&this.onContextMenu(this._convertViewToModelMouseEvent(e))},n.prototype.emitMouseMove=function(e){this.onMouseMove&&this.onMouseMove(this._convertViewToModelMouseEvent(e))},n.prototype.emitMouseLeave=function(e){this.onMouseLeave&&this.onMouseLeave(this._convertViewToModelMouseEvent(e))},n.prototype.emitMouseUp=function(e){this.onMouseUp&&this.onMouseUp(this._convertViewToModelMouseEvent(e))},n.prototype.emitMouseDown=function(e){this.onMouseDown&&this.onMouseDown(this._convertViewToModelMouseEvent(e))},n.prototype.emitMouseDrag=function(e){this.onMouseDrag&&this.onMouseDrag(this._convertViewToModelMouseEvent(e))},n.prototype.emitMouseDrop=function(e){this.onMouseDrop&&this.onMouseDrop(this._convertViewToModelMouseEvent(e))},n.prototype.emitMouseWheel=function(e){this.onMouseWheel&&this.onMouseWheel(e)},n.prototype._convertViewToModelMouseEvent=function(e){return e.target?{event:e.event,target:this._convertViewToModelMouseTarget(e.target)}:e},n.prototype._convertViewToModelMouseTarget=function(e){return n.convertViewToModelMouseTarget(e,this._viewModel.coordinatesConverter)},n.convertViewToModelMouseTarget=function(e,i){return new yt(e.element,e.type,e.mouseColumn,e.position?i.convertViewPositionToModelPosition(e.position):null,e.range?i.convertViewRangeToModelRange(e.range):null,e.detail)},n}(U.a),yt=function(){function L(n,e,i,d,c,M){this.element=n,this.type=e,this.mouseColumn=i,this.position=d,this.range=c,this.detail=M}return L.prototype.toString=function(){return Et.toString(this)},L}(),xt=r("I+kL"),It=function(){function L(n){this._createLine=n,this._set(1,[])}return L.prototype.flush=function(){this._set(1,[])},L.prototype._set=function(n,e){this._lines=e,this._rendLineNumberStart=n},L.prototype._get=function(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}},L.prototype.getStartLineNumber=function(){return this._rendLineNumberStart},L.prototype.getEndLineNumber=function(){return this._rendLineNumberStart+this._lines.length-1},L.prototype.getCount=function(){return this._lines.length},L.prototype.getLine=function(n){var e=n-this._rendLineNumberStart;if(e<0||e>=this._lines.length)throw new Error("Illegal value for lineNumber");return this._lines[e]},L.prototype.onLinesDeleted=function(n,e){if(this.getCount()===0)return null;var i=this.getStartLineNumber(),d=this.getEndLineNumber();if(ed)return null;for(var M=0,ge=0,le=i;le<=d;le++){var He=le-this._rendLineNumberStart;n<=le&&le<=e&&(ge===0?(M=He,ge=1):ge++)}if(n=i&&M<=d&&(this._lines[M-this._rendLineNumberStart].onContentChanged(),c=!0);return c},L.prototype.onLinesInserted=function(n,e){if(this.getCount()===0)return null;var i=e-n+1,d=this.getStartLineNumber(),c=this.getEndLineNumber();if(n<=d)return this._rendLineNumberStart+=i,null;if(n>c)return null;if(i+n>c){var M=this._lines.splice(n-this._rendLineNumberStart,c-n+1);return M}for(var ge=[],le=0;lei)continue;for(var le=Math.max(e,ge.fromLineNumber),He=Math.min(i,ge.toLineNumber),st=le;st<=He;st++){var ht=st-this._rendLineNumberStart;this._lines[ht].onTokensChanged(),d=!0}}return d},L}(),kt=function(){function L(n){var e=this;this._host=n,this.domNode=this._createDomNode(),this._linesCollection=new It(function(){return e._host.createVisibleLine()})}return L.prototype._createDomNode=function(){var n=Object(x.b)(document.createElement("div"));return n.setClassName("view-layer"),n.setPosition("absolute"),n.domNode.setAttribute("role","presentation"),n.domNode.setAttribute("aria-hidden","true"),n},L.prototype.onConfigurationChanged=function(n){return!!n.hasChanged(107)},L.prototype.onFlushed=function(n){return this._linesCollection.flush(),!0},L.prototype.onLinesChanged=function(n){return this._linesCollection.onLinesChanged(n.fromLineNumber,n.toLineNumber)},L.prototype.onLinesDeleted=function(n){var e=this._linesCollection.onLinesDeleted(n.fromLineNumber,n.toLineNumber);if(e)for(var i=0,d=e.length;ie){var ge=e,le=Math.min(i,c.rendLineNumberStart-1);ge<=le&&(this._insertLinesBefore(c,ge,le,d,e),c.linesLength+=le-ge+1)}else if(c.rendLineNumberStart0&&(this._removeLinesBefore(c,He),c.linesLength-=He)}if(c.rendLineNumberStart=e,c.rendLineNumberStart+c.linesLength-1i){var ge=Math.max(0,i-c.rendLineNumberStart+1),le=c.linesLength-1,He=le-ge+1;He>0&&(this._removeLinesAfter(c,He),c.linesLength-=He)}return this._finishRendering(c,!1,d),c},L.prototype._renderUntouchedLines=function(n,e,i,d,c){for(var M=n.rendLineNumberStart,ge=n.lines,le=e;le<=i;le++){var He=M+le;ge[le].layoutLine(He,d[He-c])}},L.prototype._insertLinesBefore=function(n,e,i,d,c){for(var M=[],ge=0,le=e;le<=i;le++)M[ge++]=this.host.createVisibleLine();n.lines=M.concat(n.lines)},L.prototype._removeLinesBefore=function(n,e){for(var i=0;i=0;ge--){var le=n.lines[ge];d[ge]&&(le.setDomNode(M),M=M.previousSibling)}},L.prototype._finishRenderingInvalidLines=function(n,e,i){var d=document.createElement("div");d.innerHTML=e;for(var c=0;c'),d.appendASCIIString(c),d.appendASCIIString(""),!0)},L.prototype.layoutLine=function(n,e){this._domNode&&(this._domNode.setTop(e),this._domNode.setHeight(this._lineHeight))},L}(),An=function(L){Zt(n,L);function n(e){var i=L.call(this,e)||this,d=i._context.configuration.options,c=d.get(107);return i._contentWidth=c.contentWidth,i.domNode.setHeight(0),i}return n.prototype.onConfigurationChanged=function(e){var i=this._context.configuration.options,d=i.get(107);return this._contentWidth=d.contentWidth,L.prototype.onConfigurationChanged.call(this,e)||!0},n.prototype.onScrollChanged=function(e){return L.prototype.onScrollChanged.call(this,e)||e.scrollWidthChanged},n.prototype._viewOverlaysRender=function(e){L.prototype._viewOverlaysRender.call(this,e),this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth))},n}(dn),gn=function(L){Zt(n,L);function n(e){var i=L.call(this,e)||this,d=i._context.configuration.options,c=d.get(107);return i._contentLeft=c.contentLeft,i.domNode.setClassName("margin-view-overlays"),i.domNode.setWidth(1),G.a.applyFontInfo(i.domNode,d.get(34)),i}return n.prototype.onConfigurationChanged=function(e){var i=this._context.configuration.options;G.a.applyFontInfo(this.domNode,i.get(34));var d=i.get(107);return this._contentLeft=d.contentLeft,L.prototype.onConfigurationChanged.call(this,e)||!0},n.prototype.onScrollChanged=function(e){return L.prototype.onScrollChanged.call(this,e)||e.scrollHeightChanged},n.prototype._viewOverlaysRender=function(e){L.prototype._viewOverlaysRender.call(this,e);var i=Math.min(e.scrollHeight,1e6);this.domNode.setHeight(i),this.domNode.setWidth(this._contentLeft)},n}(dn),Mn=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),xn=function(){function L(n,e){this.top=n,this.left=e}return L}(),Le=function(L){Mn(n,L);function n(e,i){var d=L.call(this,e)||this;return d._viewDomNode=i,d._widgets={},d.domNode=Object(x.b)(document.createElement("div")),ce.write(d.domNode,1),d.domNode.setClassName("contentWidgets"),d.domNode.setPosition("absolute"),d.domNode.setTop(0),d.overflowingContentWidgetsDomNode=Object(x.b)(document.createElement("div")),ce.write(d.overflowingContentWidgetsDomNode,2),d.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets"),d}return n.prototype.dispose=function(){L.prototype.dispose.call(this),this._widgets={}},n.prototype.onConfigurationChanged=function(e){for(var i=Object.keys(this._widgets),d=0,c=i;d=d,y=le,u=He>=d,l=n.left,b=e.left;return l+i>c.scrollLeft+c.viewportWidth&&(l=c.scrollLeft+c.viewportWidth-i),b+i>c.scrollLeft+c.viewportWidth&&(b=c.scrollLeft+c.viewportWidth-i),lM){var le=ge-(M-d);ge-=le,i-=le}if(ge=$,xe=st+d<=ht.height-Be;return this._fixedOverflowWidgets?{fitsAbove:ot,aboveTop:Math.max(He,$),aboveLeft:l,fitsBelow:xe,belowTop:st,belowLeft:C}:{fitsAbove:ot,aboveTop:Math.max(M,$),aboveLeft:u,fitsBelow:xe,belowTop:ge,belowLeft:S}},L.prototype._prepareRenderWidgetAtExactPositionOverflowing=function(n){return new xn(n.top,n.left+this._contentLeft)},L.prototype._getTopAndBottomLeft=function(n){if(!this._viewRange)return[null,null];var e=n.linesVisibleRangesForRange(this._viewRange,!1);if(!e||e.length===0)return[null,null];for(var i=e[0],d=e[0],c=0,M=e;cd.lineNumber&&(d=ge)}for(var le=1073741824,He=0,st=i.ranges;Hen.endLineNumber)return;this.domNode.setMaxWidth(this._maxWidth)},L.prototype.prepareRender=function(n){this._renderData=this._prepareRenderWidget(n)},L.prototype.render=function(n){if(!this._renderData){this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,this.domNode.setVisibility("hidden"));return}this.allowEditorOverflow?(this.domNode.setTop(this._renderData.top),this.domNode.setLeft(this._renderData.left)):(this.domNode.setTop(this._renderData.top+n.scrollTop-n.bigNumbersDelta),this.domNode.setLeft(this._renderData.left)),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0)},L}(),ae=r("ZE/v"),Fe=r("Inmo"),qe=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),ct=!0,St=function(L){qe(n,L);function n(e){var i=L.call(this)||this;i._context=e;var d=i._context.configuration.options,c=d.get(107);return i._lineHeight=d.get(49),i._renderLineHighlight=d.get(72),i._contentLeft=c.contentLeft,i._contentWidth=c.contentWidth,i._selectionIsEmpty=!0,i._cursorLineNumbers=[],i._selections=[],i._renderData=null,i._context.addEventHandler(i),i}return n.prototype.dispose=function(){this._context.removeEventHandler(this),L.prototype.dispose.call(this)},n.prototype._readFromSelections=function(){var e=!1,i=ct?this._selections.slice(0,1):this._selections,d=i.map(function(M){return M.positionLineNumber});d.sort(function(M,ge){return M-ge}),Fe.g(this._cursorLineNumbers,d)||(this._cursorLineNumbers=d,e=!0);var c=i.every(function(M){return M.isEmpty()});return this._selectionIsEmpty!==c&&(this._selectionIsEmpty=c,e=!0),e},n.prototype.onThemeChanged=function(e){return this._readFromSelections()},n.prototype.onConfigurationChanged=function(e){var i=this._context.configuration.options,d=i.get(107);return this._lineHeight=i.get(49),this._renderLineHighlight=i.get(72),this._contentLeft=d.contentLeft,this._contentWidth=d.contentWidth,!0},n.prototype.onCursorStateChanged=function(e){return this._selections=e.selections,this._readFromSelections()},n.prototype.onFlushed=function(e){return!0},n.prototype.onLinesDeleted=function(e){return!0},n.prototype.onLinesInserted=function(e){return!0},n.prototype.onScrollChanged=function(e){return e.scrollWidthChanged||e.scrollTopChanged},n.prototype.onZonesChanged=function(e){return!0},n.prototype.prepareRender=function(e){if(!this._shouldRenderThis()){this._renderData=null;return}for(var i=this._renderOne(e),d=e.visibleRange.startLineNumber,c=e.visibleRange.endLineNumber,M=this._cursorLineNumbers.length,ge=0,le=[],He=d;He<=c;He++){for(var st=He-d;ge=this._renderData.length?"":this._renderData[d]},n}(zt),Ge=function(L){qe(n,L);function n(){return L!==null&&L.apply(this,arguments)||this}return n.prototype._renderOne=function(e){var i="current-line"+(this._shouldRenderOther()?" current-line-both":"");return'
'},n.prototype._shouldRenderThis=function(){return(this._renderLineHighlight==="line"||this._renderLineHighlight==="all")&&this._selectionIsEmpty},n.prototype._shouldRenderOther=function(){return this._renderLineHighlight==="gutter"||this._renderLineHighlight==="all"},n}(St),de=function(L){qe(n,L);function n(){return L!==null&&L.apply(this,arguments)||this}return n.prototype._renderOne=function(e){var i="current-line current-line-margin"+(this._shouldRenderOther()?" current-line-margin-both":"");return'
'},n.prototype._shouldRenderThis=function(){return this._renderLineHighlight==="gutter"||this._renderLineHighlight==="all"},n.prototype._shouldRenderOther=function(){return(this._renderLineHighlight==="line"||this._renderLineHighlight==="all")&&this._selectionIsEmpty},n}(St);Object(tt.e)(function(L,n){ct=!1;var e=L.getColor(tn.h);if(e&&(n.addRule(".monaco-editor .view-overlays .current-line { background-color: "+e+"; }"),n.addRule(".monaco-editor .margin-view-overlays .current-line-margin { background-color: "+e+"; border: none; }")),!e||e.isTransparent()||L.defines(tn.i)){var i=L.getColor(tn.i);i&&(ct=!0,n.addRule(".monaco-editor .view-overlays .current-line { border: 2px solid "+i+"; }"),n.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border: 2px solid "+i+"; }"),L.type==="hc"&&(n.addRule(".monaco-editor .view-overlays .current-line { border-width: 1px; }"),n.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border-width: 1px; }")))}});var X=r("dZ+3"),Ue=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),at=function(L){Ue(n,L);function n(e){var i=L.call(this)||this;i._context=e;var d=i._context.configuration.options;return i._lineHeight=d.get(49),i._typicalHalfwidthCharacterWidth=d.get(34).typicalHalfwidthCharacterWidth,i._renderResult=null,i._context.addEventHandler(i),i}return n.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,L.prototype.dispose.call(this)},n.prototype.onConfigurationChanged=function(e){var i=this._context.configuration.options;return this._lineHeight=i.get(49),this._typicalHalfwidthCharacterWidth=i.get(34).typicalHalfwidthCharacterWidth,!0},n.prototype.onDecorationsChanged=function(e){return!0},n.prototype.onFlushed=function(e){return!0},n.prototype.onLinesChanged=function(e){return!0},n.prototype.onLinesDeleted=function(e){return!0},n.prototype.onLinesInserted=function(e){return!0},n.prototype.onScrollChanged=function(e){return e.scrollTopChanged||e.scrollWidthChanged},n.prototype.onZonesChanged=function(e){return!0},n.prototype.prepareRender=function(e){for(var i=e.getDecorationsInViewport(),d=[],c=0,M=0,ge=i.length;Mb.options.zIndex)return 1;var S=l.options.className,C=b.options.className;return SC?1:Te.a.compareRangesUsingStarts(l.range,b.range)});for(var He=e.visibleRange.startLineNumber,st=e.visibleRange.endLineNumber,ht=[],y=He;y<=st;y++){var u=y-He;ht[u]=""}this._renderWholeLineDecorations(e,d,ht),this._renderNormalDecorations(e,d,ht),this._renderResult=ht},n.prototype._renderWholeLineDecorations=function(e,i,d){for(var c=String(this._lineHeight),M=e.visibleRange.startLineNumber,ge=e.visibleRange.endLineNumber,le=0,He=i.length;le',y=Math.max(st.range.startLineNumber,M),u=Math.min(st.range.endLineNumber,ge),l=y;l<=u;l++){var b=l-M;d[b]+=ht}}},n.prototype._renderNormalDecorations=function(e,i,d){for(var c=String(this._lineHeight),M=e.visibleRange.startLineNumber,ge=null,le=!1,He=null,st=0,ht=i.length;st';le[u]+=$}}},n.prototype.render=function(e,i){if(!this._renderResult)return"";var d=i-e;return d<0||d>=this._renderResult.length?"":this._renderResult[d]},n}(zt),et=r("AyeG"),Q=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Ce=function(L){Q(n,L);function n(e,i,d,c){var M=L.call(this,e)||this,ge=M._context.configuration.options,le=ge.get(78),He=ge.get(56),st=ge.get(27),ht={listenOnDomNode:d.domNode,className:"editor-scrollable "+Object(tt.d)(e.theme.type),useShadows:!1,lazyRender:!0,vertical:le.vertical,horizontal:le.horizontal,verticalHasArrows:le.verticalHasArrows,horizontalHasArrows:le.horizontalHasArrows,verticalScrollbarSize:le.verticalScrollbarSize,verticalSliderSize:le.verticalSliderSize,horizontalScrollbarSize:le.horizontalScrollbarSize,horizontalSliderSize:le.horizontalSliderSize,handleMouseWheel:le.handleMouseWheel,alwaysConsumeMouseWheel:le.alwaysConsumeMouseWheel,arrowSize:le.arrowSize,mouseWheelScrollSensitivity:He,fastScrollSensitivity:st};M.scrollbar=M._register(new et.c(i.domNode,ht,M._context.viewLayout.getScrollable())),ce.write(M.scrollbar.getDomNode(),5),M.scrollbarDomNode=Object(x.b)(M.scrollbar.getDomNode()),M.scrollbarDomNode.setPosition("absolute"),M._setLayout();var y=function(l,b,S){var C={};if(b){var $=l.scrollTop;$&&(C.scrollTop=M._context.viewLayout.getCurrentScrollTop()+$,l.scrollTop=0)}if(S){var Be=l.scrollLeft;Be&&(C.scrollLeft=M._context.viewLayout.getCurrentScrollLeft()+Be,l.scrollLeft=0)}M._context.viewLayout.setScrollPositionNow(C)};return M._register(ne.i(d.domNode,"scroll",function(u){return y(d.domNode,!0,!0)})),M._register(ne.i(i.domNode,"scroll",function(u){return y(i.domNode,!0,!1)})),M._register(ne.i(c.domNode,"scroll",function(u){return y(c.domNode,!0,!1)})),M._register(ne.i(M.scrollbarDomNode.domNode,"scroll",function(u){return y(M.scrollbarDomNode.domNode,!0,!1)})),M}return n.prototype.dispose=function(){L.prototype.dispose.call(this)},n.prototype._setLayout=function(){var e=this._context.configuration.options,i=e.get(107);this.scrollbarDomNode.setLeft(i.contentLeft);var d=e.get(54),c=d.side;c==="right"?this.scrollbarDomNode.setWidth(i.contentWidth+i.minimapWidth):this.scrollbarDomNode.setWidth(i.contentWidth),this.scrollbarDomNode.setHeight(i.height)},n.prototype.getOverviewRulerLayoutInfo=function(){return this.scrollbar.getOverviewRulerLayoutInfo()},n.prototype.getDomNode=function(){return this.scrollbarDomNode},n.prototype.delegateVerticalScrollbarMouseDown=function(e){this.scrollbar.delegateVerticalScrollbarMouseDown(e)},n.prototype.onConfigurationChanged=function(e){if(e.hasChanged(78)||e.hasChanged(56)||e.hasChanged(27)){var i=this._context.configuration.options,d=i.get(78),c=i.get(56),M=i.get(27),ge={handleMouseWheel:d.handleMouseWheel,mouseWheelScrollSensitivity:c,fastScrollSensitivity:M};this.scrollbar.updateOptions(ge)}return e.hasChanged(107)&&this._setLayout(),!0},n.prototype.onScrollChanged=function(e){return!0},n.prototype.onThemeChanged=function(e){return this.scrollbar.updateClassName("editor-scrollable "+Object(tt.d)(this._context.theme.type)),!0},n.prototype.prepareRender=function(e){},n.prototype.render=function(e){this.scrollbar.renderNow()},n}(Z),Oe=r("Gt+Q"),it=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Qe=function(){function L(n,e,i){this.startLineNumber=+n,this.endLineNumber=+e,this.className=String(i)}return L}(),je=function(L){it(n,L);function n(){return L!==null&&L.apply(this,arguments)||this}return n.prototype._render=function(e,i,d){for(var c=[],M=e;M<=i;M++){var ge=M-e;c[ge]=[]}if(d.length===0)return c;d.sort(function(C,$){return C.className===$.className?C.startLineNumber===$.startLineNumber?C.endLineNumber-$.endLineNumber:C.startLineNumber-$.startLineNumber:C.className<$.className?-1:1});for(var le=null,He=0,st=0,ht=d.length;st',st=[],ht=i;ht<=d;ht++){var y=ht-i,u=c[y];u.length===0?st[y]="":st[y]='
=this._renderResult.length?"":this._renderResult[d]},n}(je),Ot=r("ZOck"),Jt=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),At=function(L){Jt(n,L);function n(e){var i=L.call(this)||this;i._context=e,i._primaryLineNumber=0;var d=i._context.configuration.options,c=d.get(108),M=d.get(34);return i._lineHeight=d.get(49),i._spaceWidth=M.spaceWidth,i._enabled=d.get(70),i._activeIndentEnabled=d.get(43),i._maxIndentLeft=c.wrappingColumn===-1?-1:c.wrappingColumn*M.typicalHalfwidthCharacterWidth,i._renderResult=null,i._context.addEventHandler(i),i}return n.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,L.prototype.dispose.call(this)},n.prototype.onConfigurationChanged=function(e){var i=this._context.configuration.options,d=i.get(108),c=i.get(34);return this._lineHeight=i.get(49),this._spaceWidth=c.spaceWidth,this._enabled=i.get(70),this._activeIndentEnabled=i.get(43),this._maxIndentLeft=d.wrappingColumn===-1?-1:d.wrappingColumn*c.typicalHalfwidthCharacterWidth,!0},n.prototype.onCursorStateChanged=function(e){var i=e.selections[0],d=i.isEmpty()?i.positionLineNumber:0;return this._primaryLineNumber!==d?(this._primaryLineNumber=d,!0):!1},n.prototype.onDecorationsChanged=function(e){return!0},n.prototype.onFlushed=function(e){return!0},n.prototype.onLinesChanged=function(e){return!0},n.prototype.onLinesDeleted=function(e){return!0},n.prototype.onLinesInserted=function(e){return!0},n.prototype.onScrollChanged=function(e){return e.scrollTopChanged},n.prototype.onZonesChanged=function(e){return!0},n.prototype.onLanguageConfigurationChanged=function(e){return!0},n.prototype.prepareRender=function(e){if(!this._enabled){this._renderResult=null;return}var i=e.visibleRange.startLineNumber,d=e.visibleRange.endLineNumber,c=this._context.model.getOptions().indentSize,M=c*this._spaceWidth,ge=e.scrollWidth,le=this._lineHeight,He=this._context.model.getLinesIndentGuides(i,d),st=0,ht=0,y=0;if(this._activeIndentEnabled&&this._primaryLineNumber){var u=this._context.model.getActiveIndentGuide(this._primaryLineNumber,i,d);st=u.startLineNumber,ht=u.endLineNumber,y=u.indent}for(var l=[],b=i;b<=d;b++){var S=st<=b&&b<=ht,C=b-i,$=He[C],Be="";if($>=1)for(var ot=e.visibleRangeForPosition(new ve.a(b,1)),xe=ot?ot.left:0,dt=1;dt<=$;dt++){var Nt=S&&dt===y?"cigra":"cigr";if(Be+='
',xe+=M,xe>ge||this._maxIndentLeft>0&&xe>this._maxIndentLeft)break}l[C]=Be}this._renderResult=l},n.prototype.render=function(e,i){if(!this._renderResult)return"";var d=i-e;return d<0||d>=this._renderResult.length?"":this._renderResult[d]},n}(zt);Object(tt.e)(function(L,n){var e=L.getColor(tn.g);e&&n.addRule(".monaco-editor .lines-content .cigr { box-shadow: 1px 0 0 0 "+e+" inset; }");var i=L.getColor(tn.a)||e;i&&n.addRule(".monaco-editor .lines-content .cigra { box-shadow: 1px 0 0 0 "+i+" inset; }")});var jt=r("HTM+"),hn=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),bn=function(){function L(){this._currentVisibleRange=new Te.a(1,1,1,1)}return L.prototype.getCurrentVisibleRange=function(){return this._currentVisibleRange},L.prototype.setCurrentVisibleRange=function(n){this._currentVisibleRange=n},L}(),mn=function(){function L(n,e,i,d,c,M){this.lineNumber=n,this.startColumn=e,this.endColumn=i,this.startScrollTop=d,this.stopScrollTop=c,this.scrollType=M}return L}(),Vn=function(L){hn(n,L);function n(e,i){var d=L.call(this,e)||this;d._linesContent=i,d._textRangeRestingSpot=document.createElement("div"),d._visibleLines=new kt(d),d.domNode=d._visibleLines.domNode;var c=d._context.configuration,M=d._context.configuration.options,ge=M.get(34),le=M.get(108);return d._lineHeight=M.get(49),d._typicalHalfwidthCharacterWidth=ge.typicalHalfwidthCharacterWidth,d._isViewportWrapping=le.isViewportWrapping,d._revealHorizontalRightPadding=M.get(75),d._cursorSurroundingLines=M.get(19),d._cursorSurroundingLinesStyle=M.get(20),d._canUseLayerHinting=!M.get(22),d._viewLineOptions=new Ze(c,d._context.theme.type),ce.write(d.domNode,7),d.domNode.setClassName("view-lines"),G.a.applyFontInfo(d.domNode,ge),d._maxLineWidth=0,d._asyncUpdateLineWidths=new z.d(function(){d._updateLineWidthsSlow()},200),d._lastRenderedData=new bn,d._horizontalRevealRequest=null,d}return n.prototype.dispose=function(){this._asyncUpdateLineWidths.dispose(),L.prototype.dispose.call(this)},n.prototype.getDomNode=function(){return this.domNode},n.prototype.createVisibleLine=function(){return new Ye(this._viewLineOptions)},n.prototype.onConfigurationChanged=function(e){this._visibleLines.onConfigurationChanged(e),e.hasChanged(108)&&(this._maxLineWidth=0);var i=this._context.configuration.options,d=i.get(34),c=i.get(108);return this._lineHeight=i.get(49),this._typicalHalfwidthCharacterWidth=d.typicalHalfwidthCharacterWidth,this._isViewportWrapping=c.isViewportWrapping,this._revealHorizontalRightPadding=i.get(75),this._cursorSurroundingLines=i.get(19),this._cursorSurroundingLinesStyle=i.get(20),this._canUseLayerHinting=!i.get(22),G.a.applyFontInfo(this.domNode,d),this._onOptionsMaybeChanged(),e.hasChanged(107)&&(this._maxLineWidth=0),!0},n.prototype._onOptionsMaybeChanged=function(){var e=this._context.configuration,i=new Ze(e,this._context.theme.type);if(!this._viewLineOptions.equals(i)){this._viewLineOptions=i;for(var d=this._visibleLines.getStartLineNumber(),c=this._visibleLines.getEndLineNumber(),M=d;M<=c;M++){var ge=this._visibleLines.getVisibleLine(M);ge.onOptionsChanged(this._viewLineOptions)}return!0}return!1},n.prototype.onCursorStateChanged=function(e){for(var i=this._visibleLines.getStartLineNumber(),d=this._visibleLines.getEndLineNumber(),c=!1,M=i;M<=d;M++)c=this._visibleLines.getVisibleLine(M).onSelectionChanged()||c;return c},n.prototype.onDecorationsChanged=function(e){for(var i=this._visibleLines.getStartLineNumber(),d=this._visibleLines.getEndLineNumber(),c=i;c<=d;c++)this._visibleLines.getVisibleLine(c).onDecorationsChanged();return!0},n.prototype.onFlushed=function(e){var i=this._visibleLines.onFlushed(e);return this._maxLineWidth=0,i},n.prototype.onLinesChanged=function(e){return this._visibleLines.onLinesChanged(e)},n.prototype.onLinesDeleted=function(e){return this._visibleLines.onLinesDeleted(e)},n.prototype.onLinesInserted=function(e){return this._visibleLines.onLinesInserted(e)},n.prototype.onRevealRangeRequest=function(e){var i=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),e.source,e.range,e.verticalType),d=this._context.viewLayout.validateScrollPosition({scrollTop:i});e.revealHorizontal?e.range.startLineNumber!==e.range.endLineNumber?d={scrollTop:d.scrollTop,scrollLeft:0}:this._horizontalRevealRequest=new mn(e.range.startLineNumber,e.range.startColumn,e.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),d.scrollTop,e.scrollType):this._horizontalRevealRequest=null;var c=Math.abs(this._context.viewLayout.getCurrentScrollTop()-d.scrollTop);return e.scrollType===0&&c>this._lineHeight?this._context.viewLayout.setScrollPositionSmooth(d):this._context.viewLayout.setScrollPositionNow(d),!0},n.prototype.onScrollChanged=function(e){if(this._horizontalRevealRequest&&e.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&e.scrollTopChanged){var i=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),d=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(e.scrollTopd)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(e.scrollWidth),this._visibleLines.onScrollChanged(e)||!0},n.prototype.onTokensChanged=function(e){return this._visibleLines.onTokensChanged(e)},n.prototype.onZonesChanged=function(e){return this._context.viewLayout.onMaxLineWidthChanged(this._maxLineWidth),this._visibleLines.onZonesChanged(e)},n.prototype.onThemeChanged=function(e){return this._onOptionsMaybeChanged()},n.prototype.getPositionFromDOMInfo=function(e,i){var d=this._getViewLineDomNode(e);if(d===null)return null;var c=this._getLineNumberFor(d);if(c===-1)return null;if(c<1||c>this._context.model.getLineCount())return null;if(this._context.model.getLineMaxColumn(c)===1)return new ve.a(c,1);var M=this._visibleLines.getStartLineNumber(),ge=this._visibleLines.getEndLineNumber();if(cge)return null;var le=this._visibleLines.getVisibleLine(c).getColumnOfNodeOffset(c,e,i),He=this._context.model.getLineMinColumn(c);return led?-1:this._visibleLines.getVisibleLine(e).getWidth()},n.prototype.linesVisibleRangesForRange=function(e,i){if(this.shouldRender())return null;var d=e.endLineNumber,c=Te.a.intersectRanges(e,this._lastRenderedData.getCurrentVisibleRange());if(!c)return null;var M=[],ge=0,le=new Xe(this.domNode.domNode,this._textRangeRestingSpot),He=0;i&&(He=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new ve.a(c.startLineNumber,1)).lineNumber);for(var st=this._visibleLines.getStartLineNumber(),ht=this._visibleLines.getEndLineNumber(),y=c.startLineNumber;y<=c.endLineNumber;y++){if(yht)continue;var u=y===c.startLineNumber?c.startColumn:1,l=y===c.endLineNumber?c.endColumn:this._context.model.getLineMaxColumn(y),b=this._visibleLines.getVisibleLine(y).getVisibleRangesForRange(u,l,le);if(!b)continue;if(i&&ythis._visibleLines.getEndLineNumber())?null:this._visibleLines.getVisibleLine(e).getVisibleRangesForRange(i,d,new Xe(this.domNode.domNode,this._textRangeRestingSpot))},n.prototype.visibleRangeForPosition=function(e){var i=this._visibleRangesForLineRange(e.lineNumber,e.column,e.column);return i?new fe(i.outsideRenderedLine,i.ranges[0].left):null},n.prototype.updateLineWidths=function(){this._updateLineWidths(!1)},n.prototype._updateLineWidthsFast=function(){return this._updateLineWidths(!0)},n.prototype._updateLineWidthsSlow=function(){this._updateLineWidths(!1)},n.prototype._updateLineWidths=function(e){for(var i=this._visibleLines.getStartLineNumber(),d=this._visibleLines.getEndLineNumber(),c=1,M=!0,ge=i;ge<=d;ge++){var le=this._visibleLines.getVisibleLine(ge);if(e&&!le.getWidthIsFast()){M=!1;continue}c=Math.max(c,le.getWidth())}return M&&i===1&&d===this._context.model.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(c),M},n.prototype.prepareRender=function(){throw new Error("Not supported")},n.prototype.render=function(){throw new Error("Not supported")},n.prototype.renderText=function(e){if(this._visibleLines.renderLines(e),this._lastRenderedData.setCurrentVisibleRange(e.visibleRange),this.domNode.setWidth(this._context.viewLayout.getScrollWidth()),this.domNode.setHeight(Math.min(this._context.viewLayout.getScrollHeight(),1e6)),this._horizontalRevealRequest){var i=this._horizontalRevealRequest.lineNumber,d=this._horizontalRevealRequest.startColumn,c=this._horizontalRevealRequest.endColumn,M=this._horizontalRevealRequest.scrollType;if(e.startLineNumber<=i&&i<=e.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();var ge=this._computeScrollLeftToRevealRange(i,d,c),le=this._isViewportWrapping;le||this._ensureMaxLineWidth(ge.maxHorizontalOffset),M===0?this._context.viewLayout.setScrollPositionSmooth({scrollLeft:ge.scrollLeft}):this._context.viewLayout.setScrollPositionNow({scrollLeft:ge.scrollLeft})}}this._updateLineWidthsFast()||this._asyncUpdateLineWidths.schedule(),this._linesContent.setLayerHinting(this._canUseLayerHinting),this._linesContent.setContain("strict");var He=this._context.viewLayout.getCurrentScrollTop()-e.bigNumbersDelta;this._linesContent.setTop(-He),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())},n.prototype._ensureMaxLineWidth=function(e){var i=Math.ceil(e);this._maxLineWidthge)u=He;else if(c===1||c===2)if(c===2&&M<=He&&st<=le)u=M;else{var l=(He+st)/2;u=Math.max(0,l-ge/2)}else u=this._computeMinimumScrolling(M,le,He,st,c===3,c===4);return u},n.prototype._computeScrollLeftToRevealRange=function(e,i,d){var c=0,M=this._context.viewLayout.getCurrentViewport(),ge=M.left,le=ge+M.width,He=this._visibleRangesForLineRange(e,i,d),st=1073741824,ht=0;if(!He)return{scrollLeft:ge,maxHorizontalOffset:c};for(var y=0,u=He.ranges;yht&&(ht=l.left+l.width)}c=ht,st=Math.max(0,st-n.HORIZONTAL_EXTRA_PX),ht+=this._revealHorizontalRightPadding;var b=this._computeMinimumScrolling(ge,le,st,ht);return{scrollLeft:b,maxHorizontalOffset:c}},n.prototype._computeMinimumScrolling=function(e,i,d,c,M,ge){e=e|0,i=i|0,d=d|0,c=c|0,M=!!M,ge=!!ge;var le=i-e,He=c-d;if(Hei)return Math.max(0,c-le)}else return d;return e},n.HORIZONTAL_EXTRA_PX=30,n}(Z),Xn=r("bq0d"),Yn=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Ui=function(L){Yn(n,L);function n(e){var i=L.call(this)||this;i._context=e;var d=i._context.configuration.options,c=d.get(107);return i._decorationsLeft=c.decorationsLeft,i._decorationsWidth=c.decorationsWidth,i._renderResult=null,i._context.addEventHandler(i),i}return n.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,L.prototype.dispose.call(this)},n.prototype.onConfigurationChanged=function(e){var i=this._context.configuration.options,d=i.get(107);return this._decorationsLeft=d.decorationsLeft,this._decorationsWidth=d.decorationsWidth,!0},n.prototype.onDecorationsChanged=function(e){return!0},n.prototype.onFlushed=function(e){return!0},n.prototype.onLinesChanged=function(e){return!0},n.prototype.onLinesDeleted=function(e){return!0},n.prototype.onLinesInserted=function(e){return!0},n.prototype.onScrollChanged=function(e){return e.scrollTopChanged},n.prototype.onZonesChanged=function(e){return!0},n.prototype._getDecorations=function(e){for(var i=e.getDecorationsInViewport(),d=[],c=0,M=0,ge=i.length;M
',He=[],st=i;st<=d;st++){for(var ht=st-i,y=c[ht],u="",l=0,b=y.length;l';M[le]=st}this._renderResult=M},n.prototype.render=function(e,i){return this._renderResult?this._renderResult[i-e]:""},n}(je),eo=r("7Ohf"),to=function(){function L(n,e,i,d){this.r=L._clamp(n),this.g=L._clamp(e),this.b=L._clamp(i),this.a=L._clamp(d)}return L._clamp=function(n){return n<0?0:n>255?255:n|0},L.Empty=new L(0,0,0,0),L}(),zn=r("vqGt"),zo=function(){function L(){var n=this;this._onDidChange=new F.a,this.onDidChange=this._onDidChange.event,this._updateColorMap(),zn.y.onDidChange(function(e){e.changedColorMap&&n._updateColorMap()})}return L.getInstance=function(){return this._INSTANCE||(this._INSTANCE=new L),this._INSTANCE},L.prototype._updateColorMap=function(){var n=zn.y.getColorMap();if(!n){this._colors=[to.Empty],this._backgroundIsLight=!0;return}this._colors=[to.Empty];for(var e=1;e=.5,this._onDidChange.fire(void 0)},L.prototype.getColor=function(n){return(n<1||n>=this._colors.length)&&(n=2),this._colors[n]},L.prototype.backgroundIsLight=function(){return this._backgroundIsLight},L._INSTANCE=null,L}(),Oi=r("0BkX"),wr=function(){for(var L=[],n=32;n<=126;n++)L.push(n);return L.push(65533),L}(),Po=function(n,e){return n-=32,n<0||n>96?e<=2?(n+96)%96:96-1:n},Ho=function(){function L(n,e){this.scale=e,this.charDataNormal=L.soften(n,12/15),this.charDataLight=L.soften(n,50/60)}return L.soften=function(n,e){for(var i=new Uint8ClampedArray(n.length),d=0,c=n.length;dn.width||i+st>n.height){console.warn("bad render request outside image data");return}for(var ht=le?this.charDataLight:this.charDataNormal,y=Po(d,ge),u=n.width*4,l=M.r,b=M.g,S=M.b,C=c.r-l,$=c.g-b,Be=c.b-S,ot=n.data,xe=y*He*st,dt=i*u+e*4,Nt=0;Ntn.width||i+le>n.height){console.warn("bad render request outside image data");return}for(var He=n.width*4,st=.5,ht=c.r,y=c.g,u=c.b,l=d.r-ht,b=d.g-y,S=d.b-u,C=ht+l*st,$=y+b*st,Be=u+S*st,ot=n.data,xe=i*He+e*4,dt=0;dt>1]=tr[n[i]]<<4|tr[n[i+1]]&15;return e},co={1:Object(Fo.a)(function(){return pr("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792")}),2:Object(Fo.a)(function(){return pr("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126")})},So=function(){function L(){}return L.create=function(n,e){if(this.lastCreated&&n===this.lastCreated.scale&&e===this.lastFontFamily)return this.lastCreated;var i;return co[n]?i=new Ho(co[n](),n):i=L.createFromSampleData(L.createSampleData(e).data,n),this.lastFontFamily=e,this.lastCreated=i,i},L.createSampleData=function(n){var e=document.createElement("canvas"),i=e.getContext("2d");e.style.height=16+"px",e.height=16,e.width=96*10,e.style.width=96*10+"px",i.fillStyle="#ffffff",i.font="bold "+16+"px "+n,i.textBaseline="middle";for(var d=0,c=0,M=wr;c0)for(var st=255/le,ht=0;ht=M+ot){var xe=1,dt=M;return new L(ge,le,$,Be,l,xe,dt)}else{var xe=Math.max(1,Math.floor(e-Be*st/ht));He&&He.scrollHeight===le&&(He.scrollTop>ge&&(xe=Math.min(xe,He.startLineNumber)),He.scrollTopKo){i._context.viewLayout.setScrollPositionNow({scrollTop:ge.scrollTop});return}var st=le.posy-c;i._context.viewLayout.setScrollPositionNow({scrollTop:ge.getDesiredScrollTopFromDelta(st)})},function(){i._slider.toggleClassName("active",!1)})}}),i._gestureDisposable=D.b.addTarget(i._domNode.domNode),i._sliderTouchStartListener=ne.i(i._domNode.domNode,D.a.Start,function(d){d.preventDefault(),d.stopPropagation(),i._lastRenderData&&(i._slider.toggleClassName("active",!0),i._gestureInProgress=!0,i.scrollDueToTouchEvent(d))}),i._sliderTouchMoveListener=ne.n(i._domNode.domNode,D.a.Change,function(d){d.preventDefault(),d.stopPropagation(),i._lastRenderData&&i._gestureInProgress&&i.scrollDueToTouchEvent(d)}),i._sliderTouchEndListener=ne.n(i._domNode.domNode,D.a.End,function(d){d.preventDefault(),d.stopPropagation(),i._gestureInProgress=!1,i._slider.toggleClassName("active",!1)}),i}return n.prototype.scrollDueToTouchEvent=function(e){var i=this._domNode.domNode.getBoundingClientRect().top,d=this._lastRenderData.renderedLayout.getDesiredScrollTopFromTouchLocation(e.pageY-i);this._context.viewLayout.setScrollPositionNow({scrollTop:d})},n.prototype.dispose=function(){this._mouseDownListener.dispose(),this._sliderMouseMoveMonitor.dispose(),this._sliderMouseDownListener.dispose(),this._gestureDisposable.dispose(),this._sliderTouchStartListener.dispose(),this._sliderTouchMoveListener.dispose(),this._sliderTouchEndListener.dispose(),L.prototype.dispose.call(this)},n.prototype._getMinimapDomNodeClassName=function(){return this._options.showSlider==="always"?"minimap slider-always":"minimap slider-mouseover"},n.prototype.getDomNode=function(){return this._domNode},n.prototype._applyLayout=function(){this._domNode.setLeft(this._options.minimapLeft),this._domNode.setWidth(this._options.minimapWidth),this._domNode.setHeight(this._options.minimapHeight),this._shadow.setHeight(this._options.minimapHeight),this._canvas.setWidth(this._options.canvasOuterWidth),this._canvas.setHeight(this._options.canvasOuterHeight),this._canvas.domNode.width=this._options.canvasInnerWidth,this._canvas.domNode.height=this._options.canvasInnerHeight,this._decorationsCanvas.setWidth(this._options.canvasOuterWidth),this._decorationsCanvas.setHeight(this._options.canvasOuterHeight),this._decorationsCanvas.domNode.width=this._options.canvasInnerWidth,this._decorationsCanvas.domNode.height=this._options.canvasInnerHeight,this._slider.setWidth(this._options.minimapWidth)},n.prototype._getBuffer=function(){return this._buffers||this._options.canvasInnerWidth>0&&this._options.canvasInnerHeight>0&&(this._buffers=new Dr(this._canvas.domNode.getContext("2d"),this._options.canvasInnerWidth,this._options.canvasInnerHeight,this._tokensColorTracker.getColor(2))),this._buffers?this._buffers.getBuffer():null},n.prototype._onOptionsMaybeChanged=function(){var e=new ko(this._context.configuration);return this._options.equals(e)?!1:(this._options=e,this._lastRenderData=null,this._buffers=null,this._applyLayout(),this._domNode.setClassName(this._getMinimapDomNodeClassName()),!0)},n.prototype.onConfigurationChanged=function(e){return this._onOptionsMaybeChanged()},n.prototype.onCursorStateChanged=function(e){return this._selections=e.selections,this._renderDecorations=!0,!0},n.prototype.onFlushed=function(e){return this._lastRenderData=null,!0},n.prototype.onLinesChanged=function(e){return this._lastRenderData?this._lastRenderData.onLinesChanged(e):!1},n.prototype.onLinesDeleted=function(e){return this._lastRenderData&&this._lastRenderData.onLinesDeleted(e),!0},n.prototype.onLinesInserted=function(e){return this._lastRenderData&&this._lastRenderData.onLinesInserted(e),!0},n.prototype.onScrollChanged=function(e){return this._renderDecorations=!0,!0},n.prototype.onTokensChanged=function(e){return this._lastRenderData?this._lastRenderData.onTokensChanged(e):!1},n.prototype.onTokensColorsChanged=function(e){return this._lastRenderData=null,this._buffers=null,!0},n.prototype.onZonesChanged=function(e){return this._lastRenderData=null,!0},n.prototype.onDecorationsChanged=function(e){return this._renderDecorations=!0,!0},n.prototype.onThemeChanged=function(e){return this._context.model.invalidateMinimapColorCache(),this._selectionColor=this._context.theme.getColor(Oi.Hb),this._renderDecorations=!0,!0},n.prototype.prepareRender=function(e){},n.prototype.render=function(e){var i=this._options.renderMinimap;if(i===0){this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),this._sliderHorizontal.setHeight(0);return}e.scrollLeft+e.viewportWidth>=e.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible");var d=os.create(this._options,e.visibleRange.startLineNumber,e.visibleRange.endLineNumber,e.viewportHeight,e.viewportData.whitespaceViewportData.length>0,this._context.model.getLineCount(),e.scrollTop,e.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setTop(d.sliderTop),this._slider.setHeight(d.sliderHeight);var c=e.scrollLeft/this._options.typicalHalfwidthCharacterWidth,M=Math.min(this._options.minimapWidth,Math.round(c*Ai(this._options.renderMinimap,this._options.fontScale)/this._options.pixelRatio));this._sliderHorizontal.setLeft(M),this._sliderHorizontal.setWidth(this._options.minimapWidth-M),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(d.sliderHeight),this.renderDecorations(d),this._lastRenderData=this.renderLines(d)},n.prototype.renderDecorations=function(e){if(this._renderDecorations){this._renderDecorations=!1;var i=this._context.model.getDecorationsInViewport(new Te.a(e.startLineNumber,1,e.endLineNumber,this._context.model.getLineMaxColumn(e.endLineNumber))),d=this._options,c=d.renderMinimap,M=d.canvasInnerWidth,ge=d.canvasInnerHeight,le=Lr(c,this._options.fontScale),He=Ai(c,this._options.fontScale),st=this._context.model.getOptions().tabSize,ht=this._decorationsCanvas.domNode.getContext("2d");ht.clearRect(0,0,M,ge);for(var y=new Map,u=0;uthis._options.canvasInnerHeight)return;var u=i.get(ge),l=!u;if(!u){var b=this._context.model.getLineContent(ge);u=[_t.f];for(var S=1;Sge?u.length-1:ot-1;if(qt>0){var en=u[qt]-Nt||2;this.renderDecoration(e,c,Nt,y,en,le)}l&&this.renderLineHighlight(e,c,y,le)},n.prototype.renderLineHighlight=function(e,i,d,c){e.fillStyle=i&&i.transparent(.5).toString()||"",e.fillRect(_t.f,d,e.canvas.width,c)},n.prototype.renderDecoration=function(e,i,d,c,M,ge){e.fillStyle=i&&i.toString()||"",e.fillRect(d,c,M,ge)},n.prototype.renderLines=function(e){var i=this._options.renderMinimap,d=this._options.charRenderer(),c=e.startLineNumber,M=e.endLineNumber,ge=Lr(i,this._options.fontScale);if(this._lastRenderData&&this._lastRenderData.linesEquals(e)){var le=this._lastRenderData._get();return new rs(e,le.imageData,le.lines)}var He=this._getBuffer();if(!He)return null;for(var st=n._renderUntouchedLines(He,c,M,ge,this._lastRenderData),ht=st[0],y=st[1],u=st[2],l=this._context.model.getMinimapLinesRenderingData(c,M,u),b=l.tabSize,S=this._tokensColorTracker.getColor(2),C=this._tokensColorTracker.backgroundIsLight(),$=0,Be=[],ot=0,xe=M-c+1;ot=0&&anb)return;var qt=y.charCodeAt(C);if(qt===9){var en=He-(C+$)%He;$+=en-1,S+=en*l}else if(qt===32)S+=l;else for(var un=Kn.y(qt)?2:1,an=0;anb)return}},n}(Z);Object(tt.e)(function(L,n){var e=L.getColor(Oi.Vb);if(e){var i=e.transparent(.5);n.addRule(".monaco-editor .minimap-slider, .monaco-editor .minimap-slider .minimap-slider-horizontal { background: "+i+"; }")}var d=L.getColor(Oi.Wb);if(d){var c=d.transparent(.5);n.addRule(".monaco-editor .minimap-slider:hover, .monaco-editor .minimap-slider:hover .minimap-slider-horizontal { background: "+c+"; }")}var M=L.getColor(Oi.Ub);if(M){var ge=M.transparent(.5);n.addRule(".monaco-editor .minimap-slider.active, .monaco-editor .minimap-slider.active .minimap-slider-horizontal { background: "+ge+"; }")}var le=L.getColor(Oi.Tb);le&&n.addRule(".monaco-editor .minimap-shadow-visible { box-shadow: "+le+" -6px 0 6px -6px inset; }")});var Os=r("TitK"),Ts=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),_i=function(L){Ts(n,L);function n(e){var i=L.call(this,e)||this,d=i._context.configuration.options,c=d.get(107);return i._widgets={},i._verticalScrollbarWidth=c.verticalScrollbarWidth,i._minimapWidth=c.minimapWidth,i._horizontalScrollbarHeight=c.horizontalScrollbarHeight,i._editorHeight=c.height,i._editorWidth=c.width,i._domNode=Object(x.b)(document.createElement("div")),ce.write(i._domNode,4),i._domNode.setClassName("overlayWidgets"),i}return n.prototype.dispose=function(){L.prototype.dispose.call(this),this._widgets={}},n.prototype.getDomNode=function(){return this._domNode},n.prototype.onConfigurationChanged=function(e){var i=this._context.configuration.options,d=i.get(107);return this._verticalScrollbarWidth=d.verticalScrollbarWidth,this._minimapWidth=d.minimapWidth,this._horizontalScrollbarHeight=d.horizontalScrollbarHeight,this._editorHeight=d.height,this._editorWidth=d.width,!0},n.prototype.addWidget=function(e){var i=Object(x.b)(e.getDomNode());this._widgets[e.getId()]={widget:e,preference:null,domNode:i},i.setPosition("absolute"),i.setAttribute("widgetId",e.getId()),this._domNode.appendChild(i),this.setShouldRender()},n.prototype.setWidgetPosition=function(e,i){var d=this._widgets[e.getId()];return d.preference===i?!1:(d.preference=i,this.setShouldRender(),!0)},n.prototype.removeWidget=function(e){var i=e.getId();if(this._widgets.hasOwnProperty(i)){var d=this._widgets[i],c=d.domNode.domNode;delete this._widgets[i],c.parentNode.removeChild(c),this.setShouldRender()}},n.prototype._renderWidget=function(e){var i=e.domNode;if(e.preference===null){i.unsetTop();return}if(e.preference===0)i.setTop(0),i.setRight(2*this._verticalScrollbarWidth+this._minimapWidth);else if(e.preference===1){var d=i.domNode.clientHeight;i.setTop(this._editorHeight-d-2*this._horizontalScrollbarHeight),i.setRight(2*this._verticalScrollbarWidth+this._minimapWidth)}else e.preference===2&&(i.setTop(0),i.domNode.style.right="50%")},n.prototype.prepareRender=function(e){},n.prototype.render=function(e){this._domNode.setWidth(this._editorWidth);for(var i=Object.keys(this._widgets),d=0,c=i.length;d=3){var c=Math.floor(d/3),M=Math.floor(d/3),ge=d-c-M,le=n,He=le+c,st=le+c+ge;return[[0,le,He,le,st,le,He,le],[0,c,ge,c+ge,M,c+ge+M,ge+M,c+ge+M]]}else if(i===2){var c=Math.floor(d/2),M=d-c,le=n,st=le+c;return[[0,le,le,le,st,le,le,le],[0,c,c,c,M,c+M,c+M,c+M]]}else{var ht=n,y=d;return[[0,ht,ht,ht,ht,ht,ht,ht],[0,y,y,y,y,y,y,y]]}},L.prototype.equals=function(n){return this.lineHeight===n.lineHeight&&this.pixelRatio===n.pixelRatio&&this.overviewRulerLanes===n.overviewRulerLanes&&this.renderBorder===n.renderBorder&&this.borderColor===n.borderColor&&this.hideCursor===n.hideCursor&&this.cursorColor===n.cursorColor&&this.themeType===n.themeType&&this.backgroundColor===n.backgroundColor&&this.top===n.top&&this.right===n.right&&this.domWidth===n.domWidth&&this.domHeight===n.domHeight&&this.canvasWidth===n.canvasWidth&&this.canvasHeight===n.canvasHeight},L}(),Ms=function(L){ss(n,L);function n(e){var i=L.call(this,e)||this;return i._domNode=Object(x.b)(document.createElement("canvas")),i._domNode.setClassName("decorationsOverviewRuler"),i._domNode.setPosition("absolute"),i._domNode.setLayerHinting(!0),i._domNode.setContain("strict"),i._domNode.setAttribute("aria-hidden","true"),i._updateSettings(!1),i._tokensColorTrackerListener=zn.y.onDidChange(function(d){d.changedColorMap&&i._updateSettings(!0)}),i._cursorPositions=[],i}return n.prototype.dispose=function(){L.prototype.dispose.call(this),this._tokensColorTrackerListener.dispose()},n.prototype._updateSettings=function(e){var i=new as(this._context.configuration,this._context.theme);return this._settings&&this._settings.equals(i)?!1:(this._settings=i,this._domNode.setTop(this._settings.top),this._domNode.setRight(this._settings.right),this._domNode.setWidth(this._settings.domWidth),this._domNode.setHeight(this._settings.domHeight),this._domNode.domNode.width=this._settings.canvasWidth,this._domNode.domNode.height=this._settings.canvasHeight,e&&this._render(),!0)},n.prototype.onConfigurationChanged=function(e){return this._updateSettings(!1)},n.prototype.onCursorStateChanged=function(e){this._cursorPositions=[];for(var i=0,d=e.selections.length;ii&&(Nn=i-st),an=Nn-st,Cn=Nn+st}an>xe+1||qt!==Be?(dt!==0&&ht.fillRect(y[Be],ot,u[Be],xe-ot),Be=qt,ot=an,xe=Cn):Cn>xe&&(xe=Cn)}ht.fillRect(y[Be],ot,u[Be],xe-ot)}if(!this._settings.hideCursor&&this._settings.cursorColor){var ti=2*this._settings.pixelRatio|0,Dn=ti/2|0,di=this._settings.x[7],qn=this._settings.w[7];ht.fillStyle=this._settings.cursorColor;for(var ot=-100,xe=-100,dt=0,Nt=this._cursorPositions.length;dti&&(Nn=i-Dn);var an=Nn-Dn,Cn=an+ti;an>xe+1?(dt!==0&&ht.fillRect(di,ot,qn,xe-ot),ot=an,xe=Cn):Cn>xe&&(xe=Cn)}ht.fillRect(di,ot,qn,xe-ot)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(ht.beginPath(),ht.lineWidth=1,ht.strokeStyle=this._settings.borderColor,ht.moveTo(0,0),ht.lineTo(0,i),ht.stroke(),ht.moveTo(0,0),ht.lineTo(e,0),ht.stroke())},n}(Z),jo=r("kEqQ"),ls=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),$s=function(L){ls(n,L);function n(e,i){var d=L.call(this)||this;d._context=e;var c=d._context.configuration.options;return d._domNode=Object(x.b)(document.createElement("canvas")),d._domNode.setClassName(i),d._domNode.setPosition("absolute"),d._domNode.setLayerHinting(!0),d._domNode.setContain("strict"),d._zoneManager=new jo.b(function(M){return d._context.viewLayout.getVerticalOffsetForLineNumber(M)}),d._zoneManager.setDOMWidth(0),d._zoneManager.setDOMHeight(0),d._zoneManager.setOuterHeight(d._context.viewLayout.getScrollHeight()),d._zoneManager.setLineHeight(c.get(49)),d._zoneManager.setPixelRatio(c.get(105)),d._context.addEventHandler(d),d}return n.prototype.dispose=function(){this._context.removeEventHandler(this),L.prototype.dispose.call(this)},n.prototype.onConfigurationChanged=function(e){var i=this._context.configuration.options;return e.hasChanged(49)&&(this._zoneManager.setLineHeight(i.get(49)),this._render()),e.hasChanged(105)&&(this._zoneManager.setPixelRatio(i.get(105)),this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render()),!0},n.prototype.onFlushed=function(e){return this._render(),!0},n.prototype.onScrollChanged=function(e){return e.scrollHeightChanged&&(this._zoneManager.setOuterHeight(e.scrollHeight),this._render()),!0},n.prototype.onZonesChanged=function(e){return this._render(),!0},n.prototype.getDomNode=function(){return this._domNode.domNode},n.prototype.setLayout=function(e){this._domNode.setTop(e.top),this._domNode.setRight(e.right);var i=!1;i=this._zoneManager.setDOMWidth(e.width)||i,i=this._zoneManager.setDOMHeight(e.height)||i,i&&(this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render())},n.prototype.setZones=function(e){this._zoneManager.setZones(e),this._render()},n.prototype._render=function(){if(this._zoneManager.getOuterHeight()===0)return!1;var e=this._zoneManager.getCanvasWidth(),i=this._zoneManager.getCanvasHeight(),d=this._zoneManager.resolveColorZones(),c=this._zoneManager.getId2Color(),M=this._domNode.domNode.getContext("2d");return M.clearRect(0,0,e,i),d.length>0&&this._renderOneLane(M,d,c,e),!0},n.prototype._renderOneLane=function(e,i,d,c){for(var M=0,ge=0,le=0,He=0,st=i;He=u?le=Math.max(le,l):(e.fillRect(0,ge,c,le-ge),ge=u,le=l)}e.fillRect(0,ge,c,le-ge)},n}(Se),da=r("5Al8"),Js=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Qs=function(L){Js(n,L);function n(e){var i=L.call(this,e)||this;i.domNode=Object(x.b)(document.createElement("div")),i.domNode.setAttribute("role","presentation"),i.domNode.setAttribute("aria-hidden","true"),i.domNode.setClassName("view-rulers"),i._renderedRulers=[];var d=i._context.configuration.options;return i._rulers=d.get(77),i._typicalHalfwidthCharacterWidth=d.get(34).typicalHalfwidthCharacterWidth,i}return n.prototype.dispose=function(){L.prototype.dispose.call(this)},n.prototype.onConfigurationChanged=function(e){var i=this._context.configuration.options;return this._rulers=i.get(77),this._typicalHalfwidthCharacterWidth=i.get(34).typicalHalfwidthCharacterWidth,!0},n.prototype.onScrollChanged=function(e){return e.scrollHeightChanged},n.prototype.prepareRender=function(e){},n.prototype._ensureRulersCount=function(){var e=this._renderedRulers.length,i=this._rulers.length;if(e===i)return;if(e0;){var ge=Object(x.b)(document.createElement("div"));ge.setClassName("view-ruler"),ge.setWidth(c),this.domNode.appendChild(ge),this._renderedRulers.push(ge),M--}return}for(var le=e-i;le>0;){var ge=this._renderedRulers.pop();this.domNode.removeChild(ge),le--}},n.prototype.render=function(e){this._ensureRulersCount();for(var i=0,d=this._rulers.length;i0;return this._shouldShow!==e?(this._shouldShow=e,!0):!1},n.prototype.getDomNode=function(){return this._domNode},n.prototype._updateWidth=function(){var e=this._context.configuration.options,i=e.get(107);i.renderMinimap===0||i.minimapWidth>0&&i.minimapLeft===0?this._width=i.width:this._width=i.width-i.minimapWidth-i.verticalScrollbarWidth},n.prototype.onConfigurationChanged=function(e){var i=this._context.configuration.options,d=i.get(78);return this._useShadows=d.useShadows,this._updateWidth(),this._updateShouldShow(),!0},n.prototype.onScrollChanged=function(e){return this._scrollTop=e.scrollTop,this._updateShouldShow()},n.prototype.prepareRender=function(e){},n.prototype.render=function(e){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")},n}(Z);Object(tt.e)(function(L,n){var e=L.getColor(Oi.Tb);e&&n.addRule(".monaco-editor .scroll-decoration { box-shadow: "+e+" 0 6px 6px -6px inset; }")});var xs=r("quOs"),Ni=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Go=function(){function L(n){this.left=n.left,this.width=n.width,this.startStyle=null,this.endStyle=null}return L}(),Xo=function(){function L(n,e){this.lineNumber=n,this.ranges=e}return L}();function us(L){return new Go(L)}function Ur(L){return new Xo(L.lineNumber,L.ranges.map(us))}var Yo=A.f,cs=function(L){Ni(n,L);function n(e){var i=L.call(this)||this;i._previousFrameVisibleRangesWithStyle=[],i._context=e;var d=i._context.configuration.options;return i._lineHeight=d.get(49),i._roundedSelection=d.get(76),i._typicalHalfwidthCharacterWidth=d.get(34).typicalHalfwidthCharacterWidth,i._selections=[],i._renderResult=null,i._context.addEventHandler(i),i}return n.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,L.prototype.dispose.call(this)},n.prototype.onConfigurationChanged=function(e){var i=this._context.configuration.options;return this._lineHeight=i.get(49),this._roundedSelection=i.get(76),this._typicalHalfwidthCharacterWidth=i.get(34).typicalHalfwidthCharacterWidth,!0},n.prototype.onCursorStateChanged=function(e){return this._selections=e.selections.slice(0),!0},n.prototype.onDecorationsChanged=function(e){return!0},n.prototype.onFlushed=function(e){return!0},n.prototype.onLinesChanged=function(e){return!0},n.prototype.onLinesDeleted=function(e){return!0},n.prototype.onLinesInserted=function(e){return!0},n.prototype.onScrollChanged=function(e){return e.scrollTopChanged},n.prototype.onZonesChanged=function(e){return!0},n.prototype._visibleRangesHaveGaps=function(e){for(var i=0,d=e.length;i1)return!0}return!1},n.prototype._enrichVisibleRangesWithStyle=function(e,i,d){var c=this._typicalHalfwidthCharacterWidth/4,M=null,ge=null;if(d&&d.length>0&&i.length>0){var le=i[0].lineNumber;if(le===e.startLineNumber)for(var He=0;!M&&He=0;He--)d[He].lineNumber===st&&(ge=d[He].ranges[0]);M&&!M.startStyle&&(M=null),ge&&!ge.startStyle&&(ge=null)}for(var He=0,ht=i.length;He0){var C=i[He-1].ranges[0].left,$=i[He-1].ranges[0].left+i[He-1].ranges[0].width;nr(u-C)C&&(b.top=1),nr(l-$)'},n.prototype._actualRenderOneSelection=function(e,i,d,c){if(c.length===0)return;for(var M=!!c[0].ranges[0].startStyle,ge=this._lineHeight.toString(),le=(this._lineHeight-1).toString(),He=c[0].lineNumber,st=c[c.length-1].lineNumber,ht=0,y=c.length;ht1,y)}this._previousFrameVisibleRangesWithStyle=le,this._renderResult=i.map(function(u){var l=u[0],b=u[1];return l+b})},n.prototype.render=function(e,i){if(!this._renderResult)return"";var d=i-e;return d<0||d>=this._renderResult.length?"":this._renderResult[d]},n.SELECTION_CLASS_NAME="selected-text",n.SELECTION_TOP_LEFT="top-left-radius",n.SELECTION_BOTTOM_LEFT="bottom-left-radius",n.SELECTION_TOP_RIGHT="top-right-radius",n.SELECTION_BOTTOM_RIGHT="bottom-right-radius",n.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background",n.ROUNDED_PIECE_WIDTH=10,n}(zt);Object(tt.e)(function(L,n){var e=L.getColor(Oi.K);e&&n.addRule(".monaco-editor .focused .selected-text { background-color: "+e+"; }");var i=L.getColor(Oi.F);i&&n.addRule(".monaco-editor .selected-text { background-color: "+i+"; }");var d=L.getColor(Oi.L);d&&n.addRule(".monaco-editor .view-line span.inline-selected-text { color: "+d+"; }")});function nr(L){return L<0?-L:L}var qs=r("9UUe"),vr=function(){function L(n,e,i,d,c,M){this.top=n,this.left=e,this.width=i,this.height=d,this.textContent=c,this.textContentClassName=M}return L}(),hs=function(){function L(n){this._context=n;var e=this._context.configuration.options,i=e.get(34);this._cursorStyle=e.get(18),this._lineHeight=e.get(49),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(e.get(21),this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=Object(x.b)(document.createElement("div")),this._domNode.setClassName("cursor"),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),G.a.applyFontInfo(this._domNode,i),this._domNode.setDisplay("none"),this._position=new ve.a(1,1),this._lastRenderedContent="",this._renderData=null}return L.prototype.getDomNode=function(){return this._domNode},L.prototype.getPosition=function(){return this._position},L.prototype.show=function(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)},L.prototype.hide=function(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)},L.prototype.onConfigurationChanged=function(n){var e=this._context.configuration.options,i=e.get(34);return this._cursorStyle=e.get(18),this._lineHeight=e.get(49),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(e.get(21),this._typicalHalfwidthCharacterWidth),G.a.applyFontInfo(this._domNode,i),!0},L.prototype.onCursorPositionChanged=function(n){return this._position=n,!0},L.prototype._prepareRender=function(n){var e="";if(this._cursorStyle===_t.g.Line||this._cursorStyle===_t.g.LineThin){var i=n.visibleRangeForPosition(this._position);if(!i||i.outsideRenderedLine)return null;var d;if(this._cursorStyle===_t.g.Line){if(d=ne.t(this._lineCursorWidth>0?this._lineCursorWidth:2),d>2){var c=this._context.model.getLineContent(this._position.lineNumber),M=Kn.E(c,this._position.column-1);e=c.substr(this._position.column-1,M)}}else d=ne.t(1);var ge=i.left;d>=2&&ge>=1&&(ge-=1);var le=n.getVerticalOffsetForLineNumber(this._position.lineNumber)-n.bigNumbersDelta;return new vr(le,ge,d,this._lineHeight,e,"")}var He=this._context.model.getLineContent(this._position.lineNumber),st=Kn.E(He,this._position.column-1),ht=n.linesVisibleRangesForRange(new Te.a(this._position.lineNumber,this._position.column,this._position.lineNumber,this._position.column+st),!1);if(!ht||ht.length===0)return null;var y=ht[0];if(y.outsideRenderedLine||y.ranges.length===0)return null;var u=y.ranges[0],l=u.width<1?this._typicalHalfwidthCharacterWidth:u.width,b="";if(this._cursorStyle===_t.g.Block){var S=this._context.model.getViewLineData(this._position.lineNumber);e=He.substr(this._position.column-1,st);var C=S.tokens.findTokenIndexAtOffset(this._position.column-1);b=S.tokens.getClassName(C)}var $=n.getVerticalOffsetForLineNumber(this._position.lineNumber)-n.bigNumbersDelta,Be=this._lineHeight;return(this._cursorStyle===_t.g.Underline||this._cursorStyle===_t.g.UnderlineThin)&&($+=this._lineHeight-2,Be=2),new vr($,u.left,l,Be,e,b)},L.prototype.prepareRender=function(n){this._renderData=this._prepareRender(n)},L.prototype.render=function(n){return this._renderData?(this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent),this._domNode.setClassName("cursor "+this._renderData.textContentClassName),this._domNode.setDisplay("block"),this._domNode.setTop(this._renderData.top),this._domNode.setLeft(this._renderData.left),this._domNode.setWidth(this._renderData.width),this._domNode.setLineHeight(this._renderData.height),this._domNode.setHeight(this._renderData.height),{domNode:this._domNode.domNode,position:this._position,contentLeft:this._renderData.left,height:this._renderData.height,width:2}):(this._domNode.setDisplay("none"),null)},L}(),ea=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),As=function(L){ea(n,L);function n(e){var i=L.call(this,e)||this,d=i._context.configuration.options;return i._readOnly=d.get(68),i._cursorBlinking=d.get(16),i._cursorStyle=d.get(18),i._cursorSmoothCaretAnimation=d.get(17),i._selectionIsEmpty=!0,i._isVisible=!1,i._primaryCursor=new hs(i._context),i._secondaryCursors=[],i._renderData=[],i._domNode=Object(x.b)(document.createElement("div")),i._domNode.setAttribute("role","presentation"),i._domNode.setAttribute("aria-hidden","true"),i._updateDomClassName(),i._domNode.appendChild(i._primaryCursor.getDomNode()),i._startCursorBlinkAnimation=new z.e,i._cursorFlatBlinkInterval=new z.c,i._blinkingEnabled=!1,i._editorHasFocus=!1,i._updateBlinking(),i}return n.prototype.dispose=function(){L.prototype.dispose.call(this),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()},n.prototype.getDomNode=function(){return this._domNode},n.prototype.onConfigurationChanged=function(e){var i=this._context.configuration.options;this._readOnly=i.get(68),this._cursorBlinking=i.get(16),this._cursorStyle=i.get(18),this._cursorSmoothCaretAnimation=i.get(17),this._updateBlinking(),this._updateDomClassName(),this._primaryCursor.onConfigurationChanged(e);for(var d=0,c=this._secondaryCursors.length;di.length)for(var ge=this._secondaryCursors.length-i.length,c=0;ci)for(var M=e-i,c=0;c=n+1&&this.lastAddedCursorIndex--,this.secondaryCursors[n].dispose(this.context),this.secondaryCursors.splice(n,1)},L.prototype._getAll=function(){var n=[];n[0]=this.primaryCursor;for(var e=0,i=this.secondaryCursors.length;eu&&en.index--}n.splice(u,1),e.splice(y,1),this._removeSecondaryCursor(u-1),c--}}},L}(),Rs=r("prEm"),ho=r("XGV8"),oi=r("/W++"),ta=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}();function Is(L){for(var n=0,e=L.length;n=e.length)return!1;if(!e[i].strictContainsRange(n[i]))return!1}return!0},L}(),Fs=function(L){ta(n,L);function n(e,i,d){var c=L.call(this)||this;c._onDidReachMaxCursorCount=c._register(new F.a),c.onDidReachMaxCursorCount=c._onDidReachMaxCursorCount.event,c._onDidAttemptReadOnlyEdit=c._register(new F.a),c.onDidAttemptReadOnlyEdit=c._onDidAttemptReadOnlyEdit.event,c._onDidChange=c._register(new F.a),c.onDidChange=c._onDidChange.event,c._configuration=e,c._model=i,c._knownModelVersionId=c._model.getVersionId(),c._viewModel=d,c.context=new Ie.c(c._configuration,c._model,c._viewModel),c._cursors=new Wo(c.context),c._isHandling=!1,c._isDoingComposition=!1,c._selectionsWhenCompositionStarted=null,c._columnSelectData=null,c._autoClosedActions=[],c._prevEditOperationType=0,c._register(c._model.onDidChangeRawContent(function(ge){if(c._knownModelVersionId=ge.versionId,c._isHandling)return;var le=ge.containsEvent(1);c._onModelContentChanged(le)})),c._register(d.addEventListener(function(ge){if(!Is(ge))return;if(c._knownModelVersionId!==c._model.getVersionId())return;c.setStates("viewModel",0,c.getAll())}));var M=function(){c.context=new Ie.c(c._configuration,c._model,c._viewModel),c._cursors.updateContext(c.context)};return c._register(c._model.onDidChangeLanguage(function(ge){M()})),c._register(c._model.onDidChangeLanguageConfiguration(function(){M()})),c._register(c._model.onDidChangeOptions(function(){M()})),c._register(c._configuration.onDidChange(function(ge){Ie.b.shouldRecreate(ge)&&M()})),c}return n.prototype.dispose=function(){this._cursors.dispose(),this._autoClosedActions=Object(U.f)(this._autoClosedActions),L.prototype.dispose.call(this)},n.prototype._validateAutoClosedActions=function(){if(this._autoClosedActions.length>0)for(var e=this._cursors.getSelections(),i=0;in.MAX_CURSOR_COUNT&&(d=d.slice(0,n.MAX_CURSOR_COUNT),this._onDidReachMaxCursorCount.fire(void 0));var c=new ms(this._model,this);this._cursors.setStates(d),this._cursors.normalize(),this._columnSelectData=null,this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,i,c)},n.prototype.setColumnSelectData=function(e){this._columnSelectData=e},n.prototype.reveal=function(e,i,d,c){this._revealRange(e,d,0,i,c)},n.prototype.revealRange=function(e,i,d,c,M){this.emitCursorRevealRange(e,d,c,i,M)},n.prototype.scrollTo=function(e){this._viewModel.viewLayout.setScrollPositionSmooth({scrollTop:e})},n.prototype.saveState=function(){for(var e=[],i=this._cursors.getSelections(),d=0,c=i.length;d0&&this._pushAutoClosedAction(d,c),this._prevEditOperationType=e.type}e.shouldPushStackElementAfter&&this._model.pushStackElement()},n.prototype._interpretCommandResult=function(e){(!e||e.length===0)&&(e=this._cursors.readSelectionFromMarkers()),this._columnSelectData=null,this._cursors.setSelections(e),this._cursors.normalize()},n.prototype._emitStateChangedIfNecessary=function(e,i,d){var c=new ms(this._model,this);if(c.equals(d))return!1;var M=this._cursors.getSelections(),ge=this._cursors.getViewSelections();try{var le=this._beginEmit();le.emit(new oo(ge,M))}finally{this._endEmit()}if(!d||d.cursorState.length!==c.cursorState.length||c.cursorState.some(function(ht,y){return!ht.modelState.equals(d.cursorState[y].modelState)})){var He=d?d.cursorState.map(function(ht){return ht.modelState.selection}):null,st=d?d.modelVersionId:0;this._onDidChange.fire(new Ps(M,c.modelVersionId,He,st,e||"keyboard",i))}return!0},n.prototype._revealRange=function(e,i,d,c,M){var ge=this._cursors.getViewPositions(),le=ge[0];if(i===1)for(var He=1;He1)return;var st=new Te.a(le.lineNumber,le.column,le.lineNumber,le.column);this.emitCursorRevealRange(e,st,d,c,M)},n.prototype.emitCursorRevealRange=function(e,i,d,c,M){try{var ge=this._beginEmit();ge.emit(new Gi(e,i,d,c,M))}finally{this._endEmit()}},n.prototype._findAutoClosingPairs=function(e){if(!e.length)return null;for(var i=[],d=0,c=e.length;d=0)return null;var ge=M.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!ge)return null;var le=ge[1],He=this.context.config.autoClosingPairsClose2.get(le);if(!He||He.length!==1)return null;var st=He[0].open,ht=M.text.length-ge[2].length-1,y=M.text.lastIndexOf(st,ht-1);if(y===-1)return null;i.push([y,ht])}return i},n.prototype.executeEdits=function(e,i,d){var c=this,M=null;e==="snippet"&&(M=this._findAutoClosingPairs(i)),M&&(i[0]._isTracked=!0);var ge=[],le=[],He=this._model.pushEditOperations(this.getSelections(),i,function(st){if(M)for(var ht=0,y=M.length;ht0&&this._pushAutoClosedAction(ge,le)},n.prototype.trigger=function(e,i,d){var c=oi.b;if(i===c.CompositionStart){this._isDoingComposition=!0,this._selectionsWhenCompositionStarted=this.getSelections().slice(0);return}if(i===c.CompositionEnd&&(this._isDoingComposition=!1),this._configuration.options.get(68)){this._onDidAttemptReadOnlyEdit.fire(void 0);return}var M=new ms(this._model,this),ge=0;i!==c.Undo&&i!==c.Redo&&this._cursors.stopTrackingSelections(),this._cursors.ensureValidState(),this._isHandling=!0;try{switch(i){case c.Type:this._type(e,d.text);break;case c.ReplacePreviousChar:this._replacePreviousChar(d.text,d.replaceCharCnt);break;case c.Paste:ge=4,this._paste(d.text,d.pasteOnNewLine,d.multicursorText||[]);break;case c.Cut:this._cut();break;case c.Undo:ge=5,this._interpretCommandResult(this._model.undo());break;case c.Redo:ge=6,this._interpretCommandResult(this._model.redo());break;case c.ExecuteCommand:this._externalExecuteCommand(d);break;case c.ExecuteCommands:this._externalExecuteCommands(d);break;case c.CompositionEnd:this._interpretCompositionEnd(e);break}}catch(le){Object(N.e)(le)}this._isHandling=!1,i!==c.Undo&&i!==c.Redo&&this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,ge,M)&&this._revealRange(e,0,0,!0,0)},n.prototype._interpretCompositionEnd=function(e){if(!this._isDoingComposition&&e==="keyboard"){var i=Mr.getAllAutoClosedCharacters(this._autoClosedActions);this._executeEditOperation(ho.a.compositionEndWithInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this._selectionsWhenCompositionStarted,this.getSelections(),i)),this._selectionsWhenCompositionStarted=null}},n.prototype._type=function(e,i){if(!this._isDoingComposition&&e==="keyboard")for(var d=i.length,c=0;c0&&(M[0]._isTracked=!0);var He=n.model.pushEditOperations(n.selectionsBefore,M,function(b){for(var S=[],C=0;C0?(S[en].sort(xe),dt[en]=e[en].computeCursorState(n.model,{getInverseEditOperations:function(){return S[en]},getTrackedSelection:function(an){var Cn=parseInt(an,10),In=n.model._getTrackedRange(n.trackedRanges[Cn]);return n.trackedRangesDirection[Cn]===0?new gt.a(In.startLineNumber,In.startColumn,In.endLineNumber,In.endColumn):new gt.a(In.endLineNumber,In.endColumn,In.startLineNumber,In.startColumn)}})):dt[en]=n.selectionsBefore[en]},C=0;Cc.identifier.major?M=d.identifier.major:M=c.identifier.major,e[M.toString()]=!0;for(var ge=0;ge0&&i--}}return e},L}(),ks=r("vN4a"),si=r("2GBI"),js=r("/L4v"),na=r("WO5T"),Mo=function(){function L(){this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[]}return L.prototype.insert=function(n){this._hasPending=!0,this._inserts.push(n)},L.prototype.change=function(n){this._hasPending=!0,this._changes.push(n)},L.prototype.remove=function(n){this._hasPending=!0,this._removes.push(n)},L.prototype.mustCommit=function(){return this._hasPending},L.prototype.commit=function(n){if(!this._hasPending)return;var e=this._inserts,i=this._changes,d=this._removes;this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[],n._commitPendingChanges(e,i,d)},L}(),or=function(){function L(n,e,i,d,c){this.id=n,this.afterLineNumber=e,this.ordinal=i,this.height=d,this.minWidth=c,this.prefixSum=0}return L}(),rr=function(){function L(n,e){this._instanceId=Kn.L(++L.INSTANCE_COUNT),this._pendingChanges=new Mo,this._lastWhitespaceId=0,this._arr=[],this._prefixSumValidIndex=-1,this._minWidth=-1,this._lineCount=n,this._lineHeight=e}return L.findInsertionIndex=function(n,e,i){for(var d=0,c=n.length;d>>1;e===n[M].afterLineNumber?i0||i.length>0)&&(this._minWidth=-1),n.length+e.length+i.length<=1){for(var d=0,c=n;de&&(this._arr[i].afterLineNumber-=e-n+1)}},L.prototype.onLinesInserted=function(n,e){this._checkPendingChanges(),n=n|0,e=e|0,this._lineCount+=e-n+1;for(var i=0,d=this._arr.length;i=e.length||e[ge+1].afterLineNumber>=n)return ge;i=ge+1|0}else d=ge-1|0}return-1},L.prototype._findFirstWhitespaceAfterLineNumber=function(n){n=n|0;var e=this._findLastWhitespaceBeforeLineNumber(n),i=e+1;return i1?e=this._lineHeight*(n-1):e=0;var i=this.getWhitespaceAccumulatedHeightBeforeLineNumber(n);return e+i},L.prototype.getWhitespaceMinWidth=function(){if(this._checkPendingChanges(),this._minWidth===-1){for(var n=0,e=0,i=this._arr.length;ee},L.prototype.getLineNumberAtOrAfterVerticalOffset=function(n){if(this._checkPendingChanges(),n=n|0,n<0)return 1;for(var e=this._lineCount|0,i=this._lineHeight,d=1,c=e;d=ge+i)d=M+1;else{if(n>=ge)return M;c=M}}return d>e?e:d},L.prototype.getLinesViewportData=function(n,e){this._checkPendingChanges(),n=n|0,e=e|0;var i=this._lineHeight,d=this.getLineNumberAtOrAfterVerticalOffset(n)|0,c=this.getVerticalOffsetForLineNumber(d)|0,M=this._lineCount|0,ge=this.getFirstWhitespaceIndexAfterLineNumber(d)|0,le=this.getWhitespacesCount()|0,He,st;ge===-1?(ge=le,st=M+1,He=0):(st=this.getAfterLineNumberForWhitespaceIndex(ge)|0,He=this.getHeightForWhitespaceIndex(ge)|0);var ht=c,y=ht,u=5e5,l=0;c>=u&&(l=Math.floor(c/u)*u,l=Math.floor(l/i)*i,y-=l);for(var b=[],S=n+(e-n)/2,C=-1,$=d;$<=M;$++){if(C===-1){var Be=ht,ot=ht+i;(Be<=S&&SS)&&(C=$)}for(ht+=i,b[$-d]=y,y+=i;st===$;)y+=He,ht+=He,ge++,ge>=le?st=M+1:(st=this.getAfterLineNumberForWhitespaceIndex(ge)|0,He=this.getHeightForWhitespaceIndex(ge)|0);if(ht>=e){M=$;break}}C===-1&&(C=M);var xe=this.getVerticalOffsetForLineNumber(M)|0,dt=d,Nt=M;return dte&&Nt--),{bigNumbersDelta:l,startLineNumber:d,endLineNumber:M,relativeVerticalOffset:b,centeredLineNumber:C,completelyVisibleStartLineNumber:dt,completelyVisibleEndLineNumber:Nt}},L.prototype.getVerticalOffsetForWhitespaceIndex=function(n){this._checkPendingChanges(),n=n|0;var e=this.getAfterLineNumberForWhitespaceIndex(n),i;e>=1?i=this._lineHeight*e:i=0;var d;return n>0?d=this.getWhitespacesAccumulatedHeight(n-1):d=0,i+d},L.prototype.getWhitespaceIndexAtOrAfterVerticallOffset=function(n){this._checkPendingChanges(),n=n|0;var e=0,i=this.getWhitespacesCount()-1;if(i<0)return-1;var d=this.getVerticalOffsetForWhitespaceIndex(i),c=this.getHeightForWhitespaceIndex(i);if(n>=d+c)return-1;for(;e=ge+le)e=M+1;else{if(n>=ge)return M;i=M}}return e},L.prototype.getWhitespaceAtVerticalOffset=function(n){this._checkPendingChanges(),n=n|0;var e=this.getWhitespaceIndexAtOrAfterVerticallOffset(n);if(e<0)return null;if(e>=this.getWhitespacesCount())return null;var i=this.getVerticalOffsetForWhitespaceIndex(e);if(i>n)return null;var d=this.getHeightForWhitespaceIndex(e),c=this.getIdForWhitespaceIndex(e),M=this.getAfterLineNumberForWhitespaceIndex(e);return{id:c,afterLineNumber:M,verticalOffset:i,height:d}},L.prototype.getWhitespaceViewportData=function(n,e){this._checkPendingChanges(),n=n|0,e=e|0;var i=this.getWhitespaceIndexAtOrAfterVerticallOffset(n),d=this.getWhitespacesCount()-1;if(i<0)return[];for(var c=[],M=i;M<=d;M++){var ge=this.getVerticalOffsetForWhitespaceIndex(M),le=this.getHeightForWhitespaceIndex(M);if(ge>=e)break;c.push({id:this.getIdForWhitespaceIndex(M),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(M),verticalOffset:ge,height:le})}return c},L.prototype.getWhitespaces=function(){return this._checkPendingChanges(),this._arr.slice(0)},L.prototype.getWhitespacesCount=function(){return this._checkPendingChanges(),this._arr.length},L.prototype.getIdForWhitespaceIndex=function(n){return this._checkPendingChanges(),n=n|0,this._arr[n].id},L.prototype.getAfterLineNumberForWhitespaceIndex=function(n){return this._checkPendingChanges(),n=n|0,this._arr[n].afterLineNumber},L.prototype.getHeightForWhitespaceIndex=function(n){return this._checkPendingChanges(),n=n|0,this._arr[n].height},L.INSTANCE_COUNT=0,L}(),no=r("khgB"),Co=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),wi=125,ki=function(){function L(n,e,i,d){n=n|0,e=e|0,i=i|0,d=d|0,n<0&&(n=0),e<0&&(e=0),i<0&&(i=0),d<0&&(d=0),this.width=n,this.contentWidth=e,this.scrollWidth=Math.max(n,e),this.height=i,this.contentHeight=d,this.scrollHeight=Math.max(i,d)}return L.prototype.equals=function(n){return this.width===n.width&&this.contentWidth===n.contentWidth&&this.height===n.height&&this.contentHeight===n.contentHeight},L}(),xr=function(L){Co(n,L);function n(e,i){var d=L.call(this)||this;return d._onDidContentSizeChange=d._register(new F.a),d.onDidContentSizeChange=d._onDidContentSizeChange.event,d._dimensions=new ki(0,0,0,0),d._scrollable=d._register(new na.a(e,i)),d.onDidScroll=d._scrollable.onScroll,d}return n.prototype.getScrollable=function(){return this._scrollable},n.prototype.setSmoothScrollDuration=function(e){this._scrollable.setSmoothScrollDuration(e)},n.prototype.validateScrollPosition=function(e){return this._scrollable.validateScrollPosition(e)},n.prototype.getScrollDimensions=function(){return this._dimensions},n.prototype.setScrollDimensions=function(e){if(this._dimensions.equals(e))return;var i=this._dimensions;this._dimensions=e,this._scrollable.setScrollDimensions({width:e.width,scrollWidth:e.scrollWidth,height:e.height,scrollHeight:e.scrollHeight});var d=i.contentWidth!==e.contentWidth,c=i.contentHeight!==e.contentHeight;(d||c)&&this._onDidContentSizeChange.fire({contentWidth:e.contentWidth,contentHeight:e.contentHeight,contentWidthChanged:d,contentHeightChanged:c})},n.prototype.getFutureScrollPosition=function(){return this._scrollable.getFutureScrollPosition()},n.prototype.getCurrentScrollPosition=function(){return this._scrollable.getCurrentScrollPosition()},n.prototype.setScrollPositionNow=function(e){this._scrollable.setScrollPositionNow(e)},n.prototype.setScrollPositionSmooth=function(e){this._scrollable.setScrollPositionSmooth(e)},n}(U.a),Ar=function(L){Co(n,L);function n(e,i,d){var c=L.call(this)||this;c._configuration=e;var M=c._configuration.options,ge=M.get(107);return c._linesLayout=new rr(i,M.get(49)),c._scrollable=c._register(new xr(0,d)),c._configureSmoothScrollDuration(),c._scrollable.setScrollDimensions(new ki(ge.contentWidth,0,ge.height,0)),c.onDidScroll=c._scrollable.onDidScroll,c.onDidContentSizeChange=c._scrollable.onDidContentSizeChange,c._updateHeight(),c}return n.prototype.dispose=function(){L.prototype.dispose.call(this)},n.prototype.getScrollable=function(){return this._scrollable.getScrollable()},n.prototype.onHeightMaybeChanged=function(){this._updateHeight()},n.prototype._configureSmoothScrollDuration=function(){this._scrollable.setSmoothScrollDuration(this._configuration.options.get(87)?wi:0)},n.prototype.onConfigurationChanged=function(e){var i=this._configuration.options;if(e.hasChanged(49)&&this._linesLayout.setLineHeight(i.get(49)),e.hasChanged(107)){var d=i.get(107),c=d.contentWidth,M=d.height,ge=this._scrollable.getScrollDimensions(),le=ge.scrollWidth;this._scrollable.setScrollDimensions(new ki(c,ge.contentWidth,M,this._getContentHeight(c,M,le)))}else this._updateHeight();e.hasChanged(87)&&this._configureSmoothScrollDuration()},n.prototype.onFlushed=function(e){this._linesLayout.onFlushed(e)},n.prototype.onLinesDeleted=function(e,i){this._linesLayout.onLinesDeleted(e,i)},n.prototype.onLinesInserted=function(e,i){this._linesLayout.onLinesInserted(e,i)},n.prototype._getHorizontalScrollbarHeight=function(e,i){var d=this._configuration.options,c=d.get(78);return c.horizontal===2||e>=i?0:c.horizontalScrollbarSize},n.prototype._getContentHeight=function(e,i,d){var c=this._configuration.options,M=this._linesLayout.getLinesTotalHeight();return c.get(80)?M+=i-c.get(49):M+=this._getHorizontalScrollbarHeight(e,d),M},n.prototype._updateHeight=function(){var e=this._scrollable.getScrollDimensions(),i=e.width,d=e.height,c=e.scrollWidth;this._scrollable.setScrollDimensions(new ki(i,e.contentWidth,d,this._getContentHeight(i,d,c)))},n.prototype.getCurrentViewport=function(){var e=this._scrollable.getScrollDimensions(),i=this._scrollable.getCurrentScrollPosition();return new no.f(i.scrollTop,i.scrollLeft,e.width,e.height)},n.prototype.getFutureViewport=function(){var e=this._scrollable.getScrollDimensions(),i=this._scrollable.getFutureScrollPosition();return new no.f(i.scrollTop,i.scrollLeft,e.width,e.height)},n.prototype._computeContentWidth=function(e){var i=this._configuration.options,d=i.get(108),c=i.get(34);if(d.isViewportWrapping){var M=i.get(107),ge=i.get(54);return e>M.contentWidth+c.typicalHalfwidthCharacterWidth&&(ge.enabled&&ge.side==="right")?e+M.verticalScrollbarWidth:e}else{var le=i.get(79)*c.typicalHalfwidthCharacterWidth,He=this._linesLayout.getWhitespaceMinWidth();return Math.max(e+le,He)}},n.prototype.onMaxLineWidthChanged=function(e){var i=this._scrollable.getScrollDimensions();this._scrollable.setScrollDimensions(new ki(i.width,this._computeContentWidth(e),i.height,i.contentHeight)),this._updateHeight()},n.prototype.saveState=function(){var e=this._scrollable.getFutureScrollPosition(),i=e.scrollTop,d=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(i),c=this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(d);return{scrollTop:i,scrollTopWithoutViewZones:i-c,scrollLeft:e.scrollLeft}},n.prototype.changeWhitespace=function(e){return this._linesLayout.changeWhitespace(e)},n.prototype.getVerticalOffsetForLineNumber=function(e){return this._linesLayout.getVerticalOffsetForLineNumber(e)},n.prototype.isAfterLines=function(e){return this._linesLayout.isAfterLines(e)},n.prototype.getLineNumberAtVerticalOffset=function(e){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(e)},n.prototype.getWhitespaceAtVerticalOffset=function(e){return this._linesLayout.getWhitespaceAtVerticalOffset(e)},n.prototype.getLinesViewportData=function(){var e=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(e.top,e.top+e.height)},n.prototype.getLinesViewportDataAtScrollTop=function(e){var i=this._scrollable.getScrollDimensions();return e+i.height>i.scrollHeight&&(e=i.scrollHeight-i.height),e<0&&(e=0),this._linesLayout.getLinesViewportData(e,e+i.height)},n.prototype.getWhitespaceViewportData=function(){var e=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(e.top,e.top+e.height)},n.prototype.getWhitespaces=function(){return this._linesLayout.getWhitespaces()},n.prototype.getContentWidth=function(){var e=this._scrollable.getScrollDimensions();return e.contentWidth},n.prototype.getScrollWidth=function(){var e=this._scrollable.getScrollDimensions();return e.scrollWidth},n.prototype.getContentHeight=function(){var e=this._scrollable.getScrollDimensions();return e.contentHeight},n.prototype.getScrollHeight=function(){var e=this._scrollable.getScrollDimensions();return e.scrollHeight},n.prototype.getCurrentScrollLeft=function(){var e=this._scrollable.getCurrentScrollPosition();return e.scrollLeft},n.prototype.getCurrentScrollTop=function(){var e=this._scrollable.getCurrentScrollPosition();return e.scrollTop},n.prototype.validateScrollPosition=function(e){return this._scrollable.validateScrollPosition(e)},n.prototype.setScrollPositionNow=function(e){this._scrollable.setScrollPositionNow(e)},n.prototype.setScrollPositionSmooth=function(e){this._scrollable.setScrollPositionSmooth(e)},n.prototype.deltaScrollNow=function(e,i){var d=this._scrollable.getCurrentScrollPosition();this._scrollable.setScrollPositionNow({scrollLeft:d.scrollLeft+e,scrollTop:d.scrollTop+i})},n}(U.a),sr=r("8ZZ4"),Kr=r("rXIE"),Nr=function(){function L(n,e){this.outputLineIndex=n,this.outputOffset=e}return L}(),ar=function(){function L(n,e,i){this.breakOffsets=n,this.breakOffsetsVisibleColumn=e,this.wrappedTextIndentLength=i}return L.getInputOffsetOfOutputPosition=function(n,e,i){return e===0?i:n[e-1]+i},L.getOutputPositionOfInputOffset=function(n,e){for(var i=0,d=n.length-1,c=0,M=0;i<=d;){c=i+(d-i)/2|0;var ge=n[c];if(M=c>0?n[c-1]:0,e=ge)i=c+1;else break}return new Nr(c,e-M)},L}(),_o=function(){function L(n){this._lines=n}return L.prototype.convertViewPositionToModelPosition=function(n){return this._lines.convertViewPositionToModelPosition(n.lineNumber,n.column)},L.prototype.convertViewRangeToModelRange=function(n){return this._lines.convertViewRangeToModelRange(n)},L.prototype.validateViewPosition=function(n,e){return this._lines.validateViewPosition(n.lineNumber,n.column,e)},L.prototype.validateViewRange=function(n,e){return this._lines.validateViewRange(n,e)},L.prototype.convertModelPositionToViewPosition=function(n){return this._lines.convertModelPositionToViewPosition(n.lineNumber,n.column)},L.prototype.convertModelRangeToViewRange=function(n){return this._lines.convertModelRangeToViewRange(n)},L.prototype.modelPositionIsVisible=function(n){return this._lines.modelPositionIsVisible(n.lineNumber,n.column)},L}(),Lo=function(){function L(n){this._counts=n,this._isValid=!1,this._validEndIndex=-1,this._modelToView=[],this._viewToModel=[]}return L.prototype._invalidate=function(n){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,n-1)},L.prototype._ensureValid=function(){if(this._isValid)return;for(var n=this._validEndIndex+1,e=this._counts.length;n0?this._modelToView[n-1]:0;this._modelToView[n]=d+i;for(var c=0;c0?this._modelToView[e-1]:0;return new Kr.b(e,n-i)},L}(),vs=function(){function L(n,e,i,d,c,M,ge,le){this.model=n,this._validModelVersionId=-1,this._domLineBreaksComputerFactory=e,this._monospaceLineBreaksComputerFactory=i,this.fontInfo=d,this.tabSize=c,this.wrappingStrategy=M,this.wrappingColumn=ge,this.wrappingIndent=le,this._constructLines(!0,null)}return L.prototype.dispose=function(){this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,[])},L.prototype.createCoordinatesConverter=function(){return new _o(this)},L.prototype._constructLines=function(n,e){var i=this;this.lines=[],n&&(this.hiddenAreasIds=[]);for(var d=this.model.getLinesContent(),c=d.length,M=this.createLineBreaksComputer(),ge=0;ge=ht&&b<=y,C=po(le[ge],!S);He[ge]=C.getViewLineCount(),this.lines[ge]=C}this._validModelVersionId=this.model.getVersionId(),this.prefixSumComputer=new Lo(He)},L.prototype.getHiddenAreas=function(){var n=this;return this.hiddenAreasIds.map(function(e){return n.model.getDecorationRange(e)})},L.prototype._reduceRanges=function(n){var e=this;if(n.length===0)return[];for(var i=n.map(function(st){return e.model.validateRange(st)}).sort(Te.a.compareRangesUsingStarts),d=[],c=i[0].startLineNumber,M=i[0].endLineNumber,ge=1,le=i.length;geM+1?(d.push(new Te.a(c,1,M,1)),c=He.startLineNumber,M=He.endLineNumber):He.endLineNumber>M&&(M=He.endLineNumber)}return d.push(new Te.a(c,1,M,1)),d},L.prototype.setHiddenAreas=function(n){var e=this,i=this._reduceRanges(n),d=this.hiddenAreasIds.map(function(ot){return e.model.getDecorationRange(ot)}).sort(Te.a.compareRangesUsingStarts);if(i.length===d.length){for(var c=!1,M=0;M=y&&C<=u?this.lines[M].isVisible()&&(this.lines[M]=this.lines[M].setVisible(!1),$=!0):(S=!0,this.lines[M].isVisible()||(this.lines[M]=this.lines[M].setVisible(!0),$=!0)),$){var Be=this.lines[M].getViewLineCount();this.prefixSumComputer.changeValue(M,Be)}}return S||this.setHiddenAreas([]),!0},L.prototype.modelPositionIsVisible=function(n,e){return n<1||n>this.lines.length?!1:this.lines[n-1].isVisible()},L.prototype.setTabSize=function(n){return this.tabSize===n?!1:(this.tabSize=n,this._constructLines(!1,null),!0)},L.prototype.setWrappingSettings=function(n,e,i,d){var c=this.fontInfo.equals(n),M=this.wrappingStrategy===e,ge=this.wrappingColumn===i,le=this.wrappingIndent===d;if(c&&M&&ge&&le)return!1;var He=c&&M&&!ge&≤this.fontInfo=n,this.wrappingStrategy=e,this.wrappingColumn=i,this.wrappingIndent=d;var st=null;if(He){st=[];for(var ht=0,y=this.lines.length;htle?(st=e===1?1:this.prefixSumComputer.getAccumulatedValue(e-2)+1,ht=st+le-1,l=ht+1,b=l+(c-le)-1,He=!0):ce?e:n|0},L.prototype.getActiveIndentGuide=function(n,e,i){n=this._toValidViewLineNumber(n),e=this._toValidViewLineNumber(e),i=this._toValidViewLineNumber(i);var d=this.convertViewPositionToModelPosition(n,this.getViewLineMinColumn(n)),c=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),M=this.convertViewPositionToModelPosition(i,this.getViewLineMinColumn(i)),ge=this.model.getActiveIndentGuide(d.lineNumber,c.lineNumber,M.lineNumber),le=this.convertModelPositionToViewPosition(ge.startLineNumber,1),He=this.convertModelPositionToViewPosition(ge.endLineNumber,this.model.getLineMaxColumn(ge.endLineNumber));return{startLineNumber:le.lineNumber,endLineNumber:He.lineNumber,indent:ge.indent}},L.prototype.getViewLinesIndentGuides=function(n,e){n=this._toValidViewLineNumber(n),e=this._toValidViewLineNumber(e);for(var i=this.convertViewPositionToModelPosition(n,this.getViewLineMinColumn(n)),d=this.convertViewPositionToModelPosition(e,this.getViewLineMaxColumn(e)),c=[],M=[],ge=[],le=i.lineNumber-1,He=d.lineNumber-1,st=null,ht=le;ht<=He;ht++){var y=this.lines[ht];if(y.isVisible()){var u=y.getViewLineNumberOfModelPosition(0,ht===le?i.column:1),l=y.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(ht+1)),b=l-u+1,S=0;b>1&&y.getViewLineMinColumn(this.model,ht+1,l)===1&&(S=u===0?1:2),M.push(b),ge.push(S),st===null&&(st=new ve.a(ht+1,0))}else st!==null&&(c=c.concat(this.model.getLinesIndentGuides(st.lineNumber,ht)),st=null)}st!==null&&(c=c.concat(this.model.getLinesIndentGuides(st.lineNumber,d.lineNumber)),st=null);for(var C=e-n+1,$=new Array(C),Be=0,ot=0,xe=c.length;ote&&(l=!0,u=e-c+1);var b=y+u;if(ht.getViewLinesData(this.model,He+1,y,b,c-n,i,le),c+=u,l)break}return le},L.prototype.validateViewPosition=function(n,e,i){n=this._toValidViewLineNumber(n);var d=this.prefixSumComputer.getIndexOf(n-1),c=d.index,M=d.remainder,ge=this.lines[c],le=ge.getViewLineMinColumn(this.model,c+1,M),He=ge.getViewLineMaxColumn(this.model,c+1,M);eHe&&(e=He);var st=ge.getModelColumnOfViewPosition(M,e),ht=this.model.validatePosition(new ve.a(c+1,st));return ht.equals(i)?new ve.a(n,e):this.convertModelPositionToViewPosition(i.lineNumber,i.column)},L.prototype.validateViewRange=function(n,e){var i=this.validateViewPosition(n.startLineNumber,n.startColumn,e.getStartPosition()),d=this.validateViewPosition(n.endLineNumber,n.endColumn,e.getEndPosition());return new Te.a(i.lineNumber,i.column,d.lineNumber,d.column)},L.prototype.convertViewPositionToModelPosition=function(n,e){n=this._toValidViewLineNumber(n);var i=this.prefixSumComputer.getIndexOf(n-1),d=i.index,c=i.remainder,M=this.lines[d].getModelColumnOfViewPosition(c,e);return this.model.validatePosition(new ve.a(d+1,M))},L.prototype.convertViewRangeToModelRange=function(n){var e=this.convertViewPositionToModelPosition(n.startLineNumber,n.startColumn),i=this.convertViewPositionToModelPosition(n.endLineNumber,n.endColumn);return new Te.a(e.lineNumber,e.column,i.lineNumber,i.column)},L.prototype.convertModelPositionToViewPosition=function(n,e){for(var i=this.model.validatePosition(new ve.a(n,e)),d=i.lineNumber,c=i.column,M=d-1,ge=!1;M>0&&!this.lines[M].isVisible();)M--,ge=!0;if(M===0&&!this.lines[M].isVisible())return new ve.a(1,1);var le=1+(M===0?0:this.prefixSumComputer.getAccumulatedValue(M-1)),He;return ge?He=this.lines[M].getViewPositionOfModelPosition(le,this.model.getLineMaxColumn(M+1)):He=this.lines[d-1].getViewPositionOfModelPosition(le,c),He},L.prototype.convertModelRangeToViewRange=function(n){var e=this.convertModelPositionToViewPosition(n.startLineNumber,n.startColumn),i=this.convertModelPositionToViewPosition(n.endLineNumber,n.endColumn);return n.startLineNumber===n.endLineNumber&&e.lineNumber!==i.lineNumber&&i.column===this.getViewLineMinColumn(i.lineNumber)?new Te.a(e.lineNumber,e.column,i.lineNumber-1,this.getViewLineMaxColumn(i.lineNumber-1)):new Te.a(e.lineNumber,e.column,i.lineNumber,i.column)},L.prototype._getViewLineNumberForModelPosition=function(n,e){var i=n-1;if(this.lines[i].isVisible()){var d=1+(i===0?0:this.prefixSumComputer.getAccumulatedValue(i-1));return this.lines[i].getViewLineNumberOfModelPosition(d,e)}for(;i>0&&!this.lines[i].isVisible();)i--;if(i===0&&!this.lines[i].isVisible())return 1;var c=1+(i===0?0:this.prefixSumComputer.getAccumulatedValue(i-1));return this.lines[i].getViewLineNumberOfModelPosition(c,this.model.getLineMaxColumn(i+1))},L.prototype.getAllOverviewRulerDecorations=function(n,e,i){for(var d=this.model.getOverviewRulerDecorations(n,e),c=new br,M=0,ge=d;Mxe.id?1:0:dt});for(var u=[],l=0,b=null,S=0,C=M;S0&&(M=Eo(this._lineBreakData.wrappedTextIndentLength)+M),M},L.prototype.getViewLineLength=function(n,e,i){if(!this._isVisible)throw new Error("Not supported");var d=this.getInputStartOffsetOfOutputLineIndex(i),c=this.getInputEndOffsetOfOutputLineIndex(n,e,i),M=c-d;return i>0&&(M=this._lineBreakData.wrappedTextIndentLength+M),M},L.prototype.getViewLineMinColumn=function(n,e,i){if(!this._isVisible)throw new Error("Not supported");return i>0?this._lineBreakData.wrappedTextIndentLength+1:1},L.prototype.getViewLineMaxColumn=function(n,e,i){if(!this._isVisible)throw new Error("Not supported");return this.getViewLineContent(n,e,i).length+1},L.prototype.getViewLineData=function(n,e,i){if(!this._isVisible)throw new Error("Not supported");var d=this.getInputStartOffsetOfOutputLineIndex(i),c=this.getInputEndOffsetOfOutputLineIndex(n,e,i),M=n.getValueInRange({startLineNumber:e,startColumn:d+1,endLineNumber:e,endColumn:c+1});i>0&&(M=Eo(this._lineBreakData.wrappedTextIndentLength)+M);var ge=i>0?this._lineBreakData.wrappedTextIndentLength+1:1,le=M.length+1,He=i+10&&(st=this._lineBreakData.wrappedTextIndentLength);var ht=n.getLineTokens(e),y=i===0?0:this._lineBreakData.breakOffsetsVisibleColumn[i-1];return new no.c(M,He,ge,le,y,ht.sliceAndInflate(d,c,st))},L.prototype.getViewLinesData=function(n,e,i,d,c,M,ge){if(!this._isVisible)throw new Error("Not supported");for(var le=i;le0&&(i0&&(c+=this._lineBreakData.wrappedTextIndentLength),new ve.a(n+d,c)},L.prototype.getViewLineNumberOfModelPosition=function(n,e){if(!this._isVisible)throw new Error("Not supported");var i=ar.getOutputPositionOfInputOffset(this._lineBreakData.breakOffsets,e-1);return n+i.outputLineIndex},L}(),Bo=[""];function Eo(L){if(L>=Bo.length)for(var n=1;n<=L;n++)Bo[n]=Bs(n);return Bo[L]}function Bs(L){return new Array(L+1).join(" ")}function po(L,n){return L===null?n?fo.INSTANCE:lr.INSTANCE:new Ws(L,n)}var dr=function(){function L(n){this._lines=n}return L.prototype._validPosition=function(n){return this._lines.model.validatePosition(n)},L.prototype._validRange=function(n){return this._lines.model.validateRange(n)},L.prototype.convertViewPositionToModelPosition=function(n){return this._validPosition(n)},L.prototype.convertViewRangeToModelRange=function(n){return this._validRange(n)},L.prototype.validateViewPosition=function(n,e){return this._validPosition(e)},L.prototype.validateViewRange=function(n,e){return this._validRange(e)},L.prototype.convertModelPositionToViewPosition=function(n){return this._validPosition(n)},L.prototype.convertModelRangeToViewRange=function(n){return this._validRange(n)},L.prototype.modelPositionIsVisible=function(n){var e=this._lines.model.getLineCount();return!(n.lineNumber<1||n.lineNumber>e)},L}(),Us=function(){function L(n){this.model=n}return L.prototype.dispose=function(){},L.prototype.createCoordinatesConverter=function(){return new dr(this)},L.prototype.getHiddenAreas=function(){return[]},L.prototype.setHiddenAreas=function(n){return!1},L.prototype.setTabSize=function(n){return!1},L.prototype.setWrappingSettings=function(n,e,i,d){return!1},L.prototype.createLineBreaksComputer=function(){var n=[];return{addRequest:function(i,d){n.push(null)},finalize:function(){return n}}},L.prototype.onModelFlushed=function(){},L.prototype.onModelLinesDeleted=function(n,e,i){return new Wi(e,i)},L.prototype.onModelLinesInserted=function(n,e,i,d){return new Ti(e,i)},L.prototype.onModelLineChanged=function(n,e,i){return[!1,new Ci(e,e),null,null]},L.prototype.acceptVersionId=function(n){},L.prototype.getViewLineCount=function(){return this.model.getLineCount()},L.prototype.getActiveIndentGuide=function(n,e,i){return{startLineNumber:n,endLineNumber:n,indent:0}},L.prototype.getViewLinesIndentGuides=function(n,e){for(var i=e-n+1,d=new Array(i),c=0;c=e){i>ge&&(c[c.length-1]=i);return}c.push(d,e,i)}else this.result[n]=[d,e,i]},L}(),Vs=function(){function L(n,e,i,d,c){this.editorId=n,this.model=e,this.configuration=i,this._linesCollection=d,this._coordinatesConverter=c,this._decorationsCache=Object.create(null),this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}return L.prototype._clearCachedModelDecorationsResolver=function(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null},L.prototype.dispose=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},L.prototype.reset=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},L.prototype.onModelDecorationsChanged=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},L.prototype.onLineMappingChanged=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},L.prototype._getOrCreateViewModelDecoration=function(n){var e=n.id,i=this._decorationsCache[e];if(!i){var d=n.range,c=n.options,M=void 0;if(c.isWholeLine){var ge=this._coordinatesConverter.convertModelPositionToViewPosition(new ve.a(d.startLineNumber,1)),le=this._coordinatesConverter.convertModelPositionToViewPosition(new ve.a(d.endLineNumber,this.model.getLineMaxColumn(d.endLineNumber)));M=new Te.a(ge.lineNumber,ge.column,le.lineNumber,le.column)}else M=this._coordinatesConverter.convertModelRangeToViewRange(d);i=new no.e(M,c),this._decorationsCache[e]=i}return i},L.prototype.getDecorationsViewportData=function(n){var e=this._cachedModelDecorationsResolver!==null;return e=e&&n.equalsRange(this._cachedModelDecorationsResolverViewRange),e||(this._cachedModelDecorationsResolver=this._getDecorationsViewportData(n),this._cachedModelDecorationsResolverViewRange=n),this._cachedModelDecorationsResolver},L.prototype._getDecorationsViewportData=function(n){for(var e=this._linesCollection.getDecorationsInRange(n,this.editorId,Object(_t.j)(this.configuration.options)),i=n.startLineNumber,d=n.endLineNumber,c=[],M=0,ge=[],le=i;le<=d;le++)ge[le-i]=[];for(var He=0,st=e.length;He=2&&e.viewportStartLineTrackedRange){var an=e.model._getTrackedRange(e.viewportStartLineTrackedRange);if(an){var Cn=e.coordinatesConverter.convertModelPositionToViewPosition(an.getStartPosition()),In=e.viewLayout.getVerticalOffsetForLineNumber(Cn.lineNumber);e.viewLayout.setScrollPositionNow({scrollTop:In+e.viewportStartLineDelta})}}})),this._register(this.model.onDidChangeTokens(function(i){for(var d=[],c=0,M=i.ranges.length;cHe)continue;ge0&&ht[u-1]===ht[u])continue;y+=this.model.getLineContent(ht[u])+c}return y}if(M&&i){for(var l=[],b=0,S=0,C=e;S'+this._getHTMLToCopy(c,le)+""}},n.prototype._getHTMLToCopy=function(e,i){for(var d=e.startLineNumber,c=e.startColumn,M=e.endLineNumber,ge=e.endColumn,le=this.getTabSize(),He="",st=d;st<=M;st++){var ht=this.model.getLineTokens(st),y=ht.getLineContent(),u=st===d?c-1:0,l=st===M?ge-1:y.length;y===""?He+="
":He+=Object(js.a)(y,ht.inflate(),i,u,l,le,K.h)}return He},n.prototype._getColorMap=function(){var e=zn.y.getColorMap(),i=["#000000"];if(e)for(var d=1,c=e.length;d=0&&e<256?this._asciiMap[e]:e>=12352&&e<=12543||e>=13312&&e<=19903||e>=19968&&e<=40959?3:this._map.get(e)||this._defaultValue},n}(Yi.a),Ao=[],Yr=[],Qo=function(){function L(n,e){this.classifier=new Xr(n,e)}return L.create=function(n){return new L(n.get(99),n.get(98))},L.prototype.createLineBreaksComputer=function(n,e,i,d){var c=this;e=e|0,i=+i;var M=[],ge=[];return{addRequest:function(He,st){M.push(He),ge.push(st)},finalize:function(){for(var He=n.typicalFullwidthCharacterWidth/n.typicalHalfwidthCharacterWidth,st=[],ht=0,y=M.length;ht=0)for(var $=Math.abs(He[C]-b);C+1=$)break;$=Be,C++}for(;Cb){qt=ti,en=un-qn,un-Nt>ht&&(dt=0),In=!1;break}an=Dn,Cn=di}if(In){l>0&&(y[l]=le[le.length-1],u[l]=He[le.length-1],l++);break}}if(dt===0){for(var un=xe,Dn=e.charCodeAt(ot),di=L.get(Dn),Ri=!1,Nn=ot-1;Nn>=0;Nn--){var ti=Nn+1,an=e.charCodeAt(Nn);if(an===9){Ri=!0;break}var Cn=void 0,li=void 0;if(Kn.A(an)?(Nn--,Cn=0,li=2):(Cn=L.get(an),li=Kn.y(an)?c:1),un<=b){if(qt===0&&(qt=ti,en=un),un<=b-ht)break;if(go(an,Cn,Dn,di)){dt=ti,Nt=un;break}}un-=li,Dn=an,di=Cn}if(dt!==0){var mo=ht-(en-Nt);if(mo<=i){var Li=e.charCodeAt(qt),qn=void 0;Kn.z(Li)?qn=2:qn=qo(Li,en,i,c),mo-qn<0&&(dt=0)}}if(Ri){C--;continue}}for(dt===0&&(dt=qt,Nt=en),y[l]=dt,u[l]=Nt,l++,b=Nt+ht;C<0||C=$)break;$=Be,C++}}return l===0?null:(y.length=l,u.length=l,Ao=n.breakOffsets,Yr=n.breakOffsetsVisibleColumn,n.breakOffsets=y,n.breakOffsetsVisibleColumn=u,n.wrappedTextIndentLength=st,n)}function Zr(L,n,e,i,d,c){if(i===-1)return null;var M=n.length;if(M<=1)return null;var ge=Ei(n,e,i,d,c),le=i-ge,He=[],st=[],ht=0,y=0,u=0,l=i,b=n.charCodeAt(0),S=L.get(b),C=qo(b,0,e,d),$=1;Kn.z(b)&&(C+=1,b=n.charCodeAt(1),S=L.get(b),$++);for(var Be=$;Bel&&((y===0||C-u>le)&&(y=ot,u=C-Nt),He[ht]=y,st[ht]=u,ht++,l=u+le,y=0),b=xe,S=dt}return ht===0?null:(He[ht]=M,st[ht]=C,new ar(He,st,ge))}function qo(L,n,e,i){return L===9?e-n%e:Kn.y(L)?i:1}function ur(L,n){return n-L%n}function go(L,n,e,i){return e!==32&&(n===2||n===3&&i!==2||i===1||i===3&&n!==1)}function Ei(L,n,e,i,d){var c=0;if(d!==0){var M=Kn.q(L);if(M!==-1){for(var ge=0;gee&&(c=0)}}return c}var Zi=function(){function L(){}return L.create=function(){return new L},L.prototype.createLineBreaksComputer=function(n,e,i,d){e=e|0,i=+i;var c=[];return{addRequest:function(ge,le){c.push(ge)},finalize:function(){return yo(c,n,e,i,d)}}},L}();function yo(L,n,e,i,d){if(i===-1){for(var c=[],M=0,ge=L.length;Mle?(C=0,$=0):Be=le-dt}var Nt=S.substr(C),qt=Cr(Nt,$,e,Be,st);ht[M]=C,y[M]=$,u[M]=Nt,l[M]=qt[0],b[M]=qt[1]}He.innerHTML=st.build(),He.style.position="absolute",He.style.top="10000",He.style.wordWrap="break-word",document.body.appendChild(He);for(var en=document.createRange(),un=Array.prototype.slice.call(He.children,0),an=[],M=0;M');for(var c=L.length,M=n,ge=0,le=[],He=[],st=0"),[le,He]}function _r(L,n,e,i){if(e.length<=1)return null;var d=n.firstChild,c=[];return ai(L,d,i,0,null,e.length-1,null,c),c.length===0?null:(c.push(e.length),c)}function ai(L,n,e,i,d,c,M,ge){if(i===c)return;if(d=d||Er(L,n,e[i],e[i+1]),M=M||Er(L,n,e[c],e[c+1]),Math.abs(d[0].top-M[0].top)<=.1)return;if(i+1===c){ge.push(c);return}var le=i+(c-i)/2|0,He=Er(L,n,e[le],e[le+1]);ai(L,n,e,i,d,le,He,ge),ai(L,n,e,le,He,c,M,ge)}function Er(L,n,e,i){return L.setStart(n,e),L.setEnd(n,i),L.getClientRects()}var er=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Rr=function(L,n,e,i){var d=arguments.length,c=d<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,e):i,M;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(L,n,e,i);else for(var ge=L.length-1;ge>=0;ge--)(M=L[ge])&&(c=(d<3?M(c):d>3?M(n,e,c):M(n,e))||c);return d>3&&c&&Object.defineProperty(n,e,c),c},No=function(L,n){return function(e,i){n(e,i,L)}},Ir=0,cr=function(){function L(n,e,i,d,c,M){this.model=n,this.viewModel=e,this.cursor=i,this.view=d,this.hasRealView=c,this.listenersToRemove=M}return L.prototype.dispose=function(){Object(U.f)(this.listenersToRemove),this.model.onBeforeDetached(),this.hasRealView&&this.view.dispose(),this.cursor.dispose(),this.viewModel.dispose()},L}(),Pr=function(L){er(n,L);function n(e,i,d,c,M,ge,le,He,st,ht){var y=L.call(this)||this;y._onDidDispose=y._register(new F.a),y.onDidDispose=y._onDidDispose.event,y._onDidChangeModelContent=y._register(new F.a),y.onDidChangeModelContent=y._onDidChangeModelContent.event,y._onDidChangeModelLanguage=y._register(new F.a),y.onDidChangeModelLanguage=y._onDidChangeModelLanguage.event,y._onDidChangeModelLanguageConfiguration=y._register(new F.a),y.onDidChangeModelLanguageConfiguration=y._onDidChangeModelLanguageConfiguration.event,y._onDidChangeModelOptions=y._register(new F.a),y.onDidChangeModelOptions=y._onDidChangeModelOptions.event,y._onDidChangeModelDecorations=y._register(new F.a),y.onDidChangeModelDecorations=y._onDidChangeModelDecorations.event,y._onDidChangeConfiguration=y._register(new F.a),y.onDidChangeConfiguration=y._onDidChangeConfiguration.event,y._onDidChangeModel=y._register(new F.a),y.onDidChangeModel=y._onDidChangeModel.event,y._onDidChangeCursorPosition=y._register(new F.a),y.onDidChangeCursorPosition=y._onDidChangeCursorPosition.event,y._onDidChangeCursorSelection=y._register(new F.a),y.onDidChangeCursorSelection=y._onDidChangeCursorSelection.event,y._onDidAttemptReadOnlyEdit=y._register(new F.a),y.onDidAttemptReadOnlyEdit=y._onDidAttemptReadOnlyEdit.event,y._onDidLayoutChange=y._register(new F.a),y.onDidLayoutChange=y._onDidLayoutChange.event,y._editorTextFocus=y._register(new $r),y.onDidFocusEditorText=y._editorTextFocus.onDidChangeToTrue,y.onDidBlurEditorText=y._editorTextFocus.onDidChangeToFalse,y._editorWidgetFocus=y._register(new $r),y.onDidFocusEditorWidget=y._editorWidgetFocus.onDidChangeToTrue,y.onDidBlurEditorWidget=y._editorWidgetFocus.onDidChangeToFalse,y._onWillType=y._register(new F.a),y.onWillType=y._onWillType.event,y._onDidType=y._register(new F.a),y.onDidType=y._onDidType.event,y._onDidCompositionStart=y._register(new F.a),y.onDidCompositionStart=y._onDidCompositionStart.event,y._onDidCompositionEnd=y._register(new F.a),y.onDidCompositionEnd=y._onDidCompositionEnd.event,y._onDidPaste=y._register(new F.a),y.onDidPaste=y._onDidPaste.event,y._onMouseUp=y._register(new F.a),y.onMouseUp=y._onMouseUp.event,y._onMouseDown=y._register(new F.a),y.onMouseDown=y._onMouseDown.event,y._onMouseDrag=y._register(new F.a),y.onMouseDrag=y._onMouseDrag.event,y._onMouseDrop=y._register(new F.a),y.onMouseDrop=y._onMouseDrop.event,y._onContextMenu=y._register(new F.a),y.onContextMenu=y._onContextMenu.event,y._onMouseMove=y._register(new F.a),y.onMouseMove=y._onMouseMove.event,y._onMouseLeave=y._register(new F.a),y.onMouseLeave=y._onMouseLeave.event,y._onMouseWheel=y._register(new F.a),y.onMouseWheel=y._onMouseWheel.event,y._onKeyUp=y._register(new F.a),y.onKeyUp=y._onKeyUp.event,y._onKeyDown=y._register(new F.a),y.onKeyDown=y._onKeyDown.event,y._onDidContentSizeChange=y._register(new F.a),y.onDidContentSizeChange=y._onDidContentSizeChange.event,y._onDidScrollChange=y._register(new F.a),y.onDidScrollChange=y._onDidScrollChange.event,y._onDidChangeViewZones=y._register(new F.a),y.onDidChangeViewZones=y._onDidChangeViewZones.event,y._domElement=e,y._id=++Ir,y._decorationTypeKeysToIds={},y._decorationTypeSubtypes={},y.isSimpleWidget=d.isSimpleWidget||!1,y._telemetryData=d.telemetryData,i=i||{},y._configuration=y._register(y._createConfiguration(i,ht)),y._register(y._configuration.onDidChange(function($){y._onDidChangeConfiguration.fire($);var Be=y._configuration.options;if($.hasChanged(107)){var ot=Be.get(107);y._onDidLayoutChange.fire(ot)}})),y._contextKeyService=y._register(le.createScoped(y._domElement)),y._notificationService=st,y._codeEditorService=M,y._commandService=ge,y._themeService=He,y._register(new _s(y,y._contextKeyService)),y._register(new Es(y,y._contextKeyService)),y._instantiationService=c.createChild(new Vo.a([bs.c,y._contextKeyService])),y._modelData=null,y._contributions={},y._actions={},y._focusTracker=new Jr(e),y._focusTracker.onChange(function(){y._editorWidgetFocus.setValue(y._focusTracker.hasFocus())}),y._contentWidgets={},y._overlayWidgets={};var u;Array.isArray(d.contributions)?u=d.contributions:u=R.d.getEditorContributions();for(var l=0,b=u;l1),this._hasNonEmptySelection.set(e.some(function(i){return!i.isEmpty()}))):(this._hasMultipleSelections.reset(),this._hasNonEmptySelection.reset())},n.prototype._updateFromFocus=function(){this._editorFocus.set(this._editor.hasWidgetFocus()&&!this._editor.isSimpleWidget),this._editorTextFocus.set(this._editor.hasTextFocus()&&!this._editor.isSimpleWidget),this._textInputFocus.set(this._editor.hasTextFocus())},n.prototype._updateFromModel=function(){var e=this._editor.getModel();this._canUndo.set(Boolean(e&&e.canUndo())),this._canRedo.set(Boolean(e&&e.canRedo()))},n}(U.a),Es=function(L){er(n,L);function n(e,i){var d=L.call(this)||this;d._editor=e,d._contextKeyService=i,d._langId=si.a.languageId.bindTo(i),d._hasCompletionItemProvider=si.a.hasCompletionItemProvider.bindTo(i),d._hasCodeActionsProvider=si.a.hasCodeActionsProvider.bindTo(i),d._hasCodeLensProvider=si.a.hasCodeLensProvider.bindTo(i),d._hasDefinitionProvider=si.a.hasDefinitionProvider.bindTo(i),d._hasDeclarationProvider=si.a.hasDeclarationProvider.bindTo(i),d._hasImplementationProvider=si.a.hasImplementationProvider.bindTo(i),d._hasTypeDefinitionProvider=si.a.hasTypeDefinitionProvider.bindTo(i),d._hasHoverProvider=si.a.hasHoverProvider.bindTo(i),d._hasDocumentHighlightProvider=si.a.hasDocumentHighlightProvider.bindTo(i),d._hasDocumentSymbolProvider=si.a.hasDocumentSymbolProvider.bindTo(i),d._hasReferenceProvider=si.a.hasReferenceProvider.bindTo(i),d._hasRenameProvider=si.a.hasRenameProvider.bindTo(i),d._hasSignatureHelpProvider=si.a.hasSignatureHelpProvider.bindTo(i),d._hasDocumentFormattingProvider=si.a.hasDocumentFormattingProvider.bindTo(i),d._hasDocumentSelectionFormattingProvider=si.a.hasDocumentSelectionFormattingProvider.bindTo(i),d._hasMultipleDocumentFormattingProvider=si.a.hasMultipleDocumentFormattingProvider.bindTo(i),d._hasMultipleDocumentSelectionFormattingProvider=si.a.hasMultipleDocumentSelectionFormattingProvider.bindTo(i),d._isInWalkThrough=si.a.isInEmbeddedEditor.bindTo(i);var c=function(){return d._update()};return d._register(e.onDidChangeModel(c)),d._register(e.onDidChangeModelLanguage(c)),d._register(zn.d.onDidChange(c)),d._register(zn.a.onDidChange(c)),d._register(zn.b.onDidChange(c)),d._register(zn.f.onDidChange(c)),d._register(zn.e.onDidChange(c)),d._register(zn.p.onDidChange(c)),d._register(zn.z.onDidChange(c)),d._register(zn.o.onDidChange(c)),d._register(zn.h.onDidChange(c)),d._register(zn.l.onDidChange(c)),d._register(zn.t.onDidChange(c)),d._register(zn.u.onDidChange(c)),d._register(zn.g.onDidChange(c)),d._register(zn.i.onDidChange(c)),d._register(zn.w.onDidChange(c)),c(),d}return n.prototype.dispose=function(){L.prototype.dispose.call(this)},n.prototype.reset=function(){var e=this;this._contextKeyService.bufferChangeEvents(function(){e._langId.reset(),e._hasCompletionItemProvider.reset(),e._hasCodeActionsProvider.reset(),e._hasCodeLensProvider.reset(),e._hasDefinitionProvider.reset(),e._hasDeclarationProvider.reset(),e._hasImplementationProvider.reset(),e._hasTypeDefinitionProvider.reset(),e._hasHoverProvider.reset(),e._hasDocumentHighlightProvider.reset(),e._hasDocumentSymbolProvider.reset(),e._hasReferenceProvider.reset(),e._hasRenameProvider.reset(),e._hasDocumentFormattingProvider.reset(),e._hasDocumentSelectionFormattingProvider.reset(),e._hasSignatureHelpProvider.reset(),e._isInWalkThrough.reset()})},n.prototype._update=function(){var e=this,i=this._editor.getModel();if(!i){this.reset();return}this._contextKeyService.bufferChangeEvents(function(){e._langId.set(i.getLanguageIdentifier().language),e._hasCompletionItemProvider.set(zn.d.has(i)),e._hasCodeActionsProvider.set(zn.a.has(i)),e._hasCodeLensProvider.set(zn.b.has(i)),e._hasDefinitionProvider.set(zn.f.has(i)),e._hasDeclarationProvider.set(zn.e.has(i)),e._hasImplementationProvider.set(zn.p.has(i)),e._hasTypeDefinitionProvider.set(zn.z.has(i)),e._hasHoverProvider.set(zn.o.has(i)),e._hasDocumentHighlightProvider.set(zn.h.has(i)),e._hasDocumentSymbolProvider.set(zn.l.has(i)),e._hasReferenceProvider.set(zn.t.has(i)),e._hasRenameProvider.set(zn.u.has(i)),e._hasSignatureHelpProvider.set(zn.w.has(i)),e._hasDocumentFormattingProvider.set(zn.g.has(i)||zn.i.has(i)),e._hasDocumentSelectionFormattingProvider.set(zn.i.has(i)),e._hasMultipleDocumentFormattingProvider.set(zn.g.all(i).length+zn.i.all(i).length>1),e._hasMultipleDocumentSelectionFormattingProvider.set(zn.i.all(i).length>1),e._isInWalkThrough.set(i.uri.scheme===j.b.walkThroughSnippet)})},n}(U.a),Jr=function(L){er(n,L);function n(e){var i=L.call(this)||this;return i._onChange=i._register(new F.a),i.onChange=i._onChange.event,i._hasFocus=!1,i._domFocusTracker=i._register(ne.Y(e)),i._register(i._domFocusTracker.onDidFocus(function(){i._hasFocus=!0,i._onChange.fire(void 0)})),i._register(i._domFocusTracker.onDidBlur(function(){i._hasFocus=!1,i._onChange.fire(void 0)})),i}return n.prototype.hasFocus=function(){return this._hasFocus},n}(U.a),Ss=encodeURIComponent("");function Fr(L){return Ss+encodeURIComponent(L.toString())+Qr}var hr=encodeURIComponent('');function qr(L){return hr+encodeURIComponent(L.toString())+kr}Object(tt.e)(function(L,n){var e=L.getColor(Oi.p);e&&n.addRule(".monaco-editor .squiggly-error { border-bottom: 4px double "+e+"; }");var i=L.getColor(Oi.q);i&&n.addRule('.monaco-editor .squiggly-error { background: url("data:image/svg+xml,'+Fr(i)+'") repeat-x bottom left; }');var d=L.getColor(Oi.N);d&&n.addRule(".monaco-editor .squiggly-warning { border-bottom: 4px double "+d+"; }");var c=L.getColor(Oi.O);c&&n.addRule('.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,'+Fr(c)+'") repeat-x bottom left; }');var M=L.getColor(Oi.G);M&&n.addRule(".monaco-editor .squiggly-info { border-bottom: 4px double "+M+"; }");var ge=L.getColor(Oi.H);ge&&n.addRule('.monaco-editor .squiggly-info { background: url("data:image/svg+xml,'+Fr(ge)+'") repeat-x bottom left; }');var le=L.getColor(Oi.y);le&&n.addRule(".monaco-editor .squiggly-hint { border-bottom: 2px dotted "+le+"; }");var He=L.getColor(Oi.z);He&&n.addRule('.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,'+qr(He)+'") no-repeat bottom left; }');var st=L.getColor(tn.n);st&&n.addRule(".monaco-editor.showUnused .squiggly-inline-unnecessary { opacity: "+st.rgba.a+"; }");var ht=L.getColor(tn.m);ht&&n.addRule(".monaco-editor.showUnused .squiggly-unnecessary { border-bottom: 2px dashed "+ht+"; }");var y=L.getColor(Oi.x)||"inherit";n.addRule(".monaco-editor .squiggly-inline-deprecated { text-decoration: line-through; text-decoration-color: "+y+"}")})},E6FT:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:function(){return r.e(224).then(r.bind(null,"whva"))}})},EAR2:function(wt,P,r){},ECuw:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:function(){return r.e(233).then(r.bind(null,"r5mX"))}})},"Eb/l":function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:function(){return r.e(221).then(r.bind(null,"t0vp"))}})},EpLq:function(wt,P,r){"use strict";r.d(P,"a",function(){return F});var I=!1,oe=null;function ne(U){if(!U.parent||U.parent===U)return null;try{var j=U.location,G=U.parent.location;if(j.protocol!==G.protocol||j.hostname!==G.hostname||j.port!==G.port)return I=!0,null}catch(R){return I=!0,null}return U.parent}function N(U,j){for(var G=U.document.getElementsByTagName("iframe"),R,E=0,x=G.length;E "+this.positionLineNumber+","+this.positionColumn+"]"},U.prototype.equalsSelection=function(j){return U.selectionsEqual(this,j)},U.selectionsEqual=function(j,G){return j.selectionStartLineNumber===G.selectionStartLineNumber&&j.selectionStartColumn===G.selectionStartColumn&&j.positionLineNumber===G.positionLineNumber&&j.positionColumn===G.positionColumn},U.prototype.getDirection=function(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1},U.prototype.setEndPosition=function(j,G){return this.getDirection()===0?new U(this.startLineNumber,this.startColumn,j,G):new U(j,G,this.startLineNumber,this.startColumn)},U.prototype.getPosition=function(){return new I.a(this.positionLineNumber,this.positionColumn)},U.prototype.setStartPosition=function(j,G){return this.getDirection()===0?new U(j,G,this.endLineNumber,this.endColumn):new U(this.endLineNumber,this.endColumn,j,G)},U.fromPositions=function(j,G){return G===void 0&&(G=j),new U(j.lineNumber,j.column,G.lineNumber,G.column)},U.liftSelection=function(j){return new U(j.selectionStartLineNumber,j.selectionStartColumn,j.positionLineNumber,j.positionColumn)},U.selectionsArrEqual=function(j,G){if(j&&!G||!j&&G)return!1;if(!j&&!G)return!0;if(j.length!==G.length)return!1;for(var R=0,E=j.length;R ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:k,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading| {0,3}>|<\/?(?:tag)(?: +|\n|\/?>)|<(?:script|pre|style|!--))[^\n]+)*)/,text:/^[^\n]+/};J._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,J._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,J.def=Ze(J.def).replace("label",J._label).replace("title",J._title).getRegex(),J.bullet=/(?:[*+-]|\d{1,9}\.)/,J.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,J.item=Ze(J.item,"gm").replace(/bull/g,J.bullet).getRegex(),J.list=Ze(J.list).replace(/bull/g,J.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+J.def.source+")").getRegex(),J._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",J._comment=//,J.html=Ze(J.html,"i").replace("comment",J._comment).replace("tag",J._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),J.paragraph=Ze(J.paragraph).replace("hr",J.hr).replace("heading",J.heading).replace("lheading",J.lheading).replace("tag",J._tag).getRegex(),J.blockquote=Ze(J.blockquote).replace("paragraph",J.paragraph).getRegex(),J.normal=ee({},J),J.gfm=ee({},J.normal,{fences:/^ {0,3}(`{3,}|~{3,})([^`\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),J.gfm.paragraph=Ze(J.paragraph).replace("(?!","(?!"+J.gfm.fences.source.replace("\\1","\\2")+"|"+J.list.source.replace("\\1","\\3")+"|").getRegex(),J.tables=ee({},J.gfm,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/}),J.pedantic=ee({},J.normal,{html:Ze(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",J._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/});function me(pe){this.tokens=[],this.tokens.links=Object.create(null),this.options=pe||Ie.defaults,this.rules=J.normal,this.options.pedantic?this.rules=J.pedantic:this.options.gfm&&(this.options.tables?this.rules=J.tables:this.rules=J.gfm)}me.rules=J,me.lex=function(pe,nt){var Et=new me(nt);return Et.lex(pe)},me.prototype.lex=function(pe){return pe=pe.replace(/\r\n|\r/g,` `).replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,` `),this.token(pe,!0)},me.prototype.token=function(pe,nt){pe=pe.replace(/^ +$/gm,"");for(var Et,Rt,Tt,Ht,Gt,rn,Ln,yn,Tn,Ft,pt,gt,Dt,Lt,Vt,Qt;pe;){if((Tt=this.rules.newline.exec(pe))&&(pe=pe.substring(Tt[0].length),Tt[0].length>1&&this.tokens.push({type:"space"})),Tt=this.rules.code.exec(pe)){pe=pe.substring(Tt[0].length),Tt=Tt[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?Tt:ve(Tt,` `)});continue}if(Tt=this.rules.fences.exec(pe)){pe=pe.substring(Tt[0].length),this.tokens.push({type:"code",lang:Tt[2]?Tt[2].trim():Tt[2],text:Tt[3]||""});continue}if(Tt=this.rules.heading.exec(pe)){pe=pe.substring(Tt[0].length),this.tokens.push({type:"heading",depth:Tt[1].length,text:Tt[2]});continue}if((Tt=this.rules.nptable.exec(pe))&&(rn={type:"table",header:Pe(Tt[1].replace(/^ *| *\| *$/g,"")),align:Tt[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Tt[3]?Tt[3].replace(/\n$/,"").split(` `):[]},rn.header.length===rn.align.length)){for(pe=pe.substring(Tt[0].length),pt=0;pt ?/gm,""),this.token(Tt,nt),this.tokens.push({type:"blockquote_end"});continue}if(Tt=this.rules.list.exec(pe)){for(pe=pe.substring(Tt[0].length),Ht=Tt[2],Lt=Ht.length>1,Ln={type:"list_start",ordered:Lt,start:Lt?+Ht:"",loose:!1},this.tokens.push(Ln),Tt=Tt[0].match(this.rules.item),yn=[],Et=!1,Dt=Tt.length,pt=0;pt1?Gt.length===1:Gt.length>1||this.options.smartLists&&Gt!==Ht)&&(pe=Tt.slice(pt+1).join(` `)+pe,pt=Dt-1)),Rt=Et||/\n\n(?!\s*$)/.test(rn),pt!==Dt-1&&(Et=rn.charAt(rn.length-1)===` `,Rt||(Rt=Et)),Rt&&(Ln.loose=!0),Vt=/^\[[ xX]\] /.test(rn),Qt=void 0,Vt&&(Qt=rn[1]!==" ",rn=rn.replace(/^\[[ xX]\] +/,"")),Tn={type:"list_item_start",task:Vt,checked:Qt,loose:Rt},yn.push(Tn),this.tokens.push(Tn),this.token(rn,!1),this.tokens.push({type:"list_item_end"});if(Ln.loose)for(Dt=yn.length,pt=0;pt?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:k,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(href(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*"<\[])\*(?!\*)|^_([^\s][\s\S]*?[^\s_])_(?!_|[^\spunctuation])|^_([^\s_][\s\S]*?[^\s])_(?!_|[^\spunctuation])|^\*([^\s"<\[][\s\S]*?[^\s*])\*(?!\*)|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:k,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[^_{|}~`,ye.em=Ze(ye.em).replace(/punctuation/g,ye._punctuation).getRegex(),ye._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,ye._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,ye._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,ye.autolink=Ze(ye.autolink).replace("scheme",ye._scheme).replace("email",ye._email).getRegex(),ye._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,ye.tag=Ze(ye.tag).replace("comment",J._comment).replace("attribute",ye._attribute).getRegex(),ye._label=/(?:\[[^\[\]]*\]|\\[\[\]]?|`[^`]*`|`(?!`)|[^\[\]\\`])*?/,ye._href=/\s*(<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*)/,ye._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,ye.link=Ze(ye.link).replace("label",ye._label).replace("href",ye._href).replace("title",ye._title).getRegex(),ye.reflink=Ze(ye.reflink).replace("label",ye._label).getRegex(),ye.normal=ee({},ye),ye.pedantic=ee({},ye.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:Ze(/^!?\[(label)\]\((.*?)\)/).replace("label",ye._label).getRegex(),reflink:Ze(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ye._label).getRegex()}),ye.gfm=ee({},ye.normal,{escape:Ze(ye.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\/i.test(Gt[0])&&(this.inLink=!1),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(Gt[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Gt[0])&&(this.inRawBlock=!1),pe=pe.substring(Gt[0].length),nt+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Gt[0]):Ke(Gt[0]):Gt[0];continue}if(Gt=this.rules.link.exec(pe)){var Ln=Te(Gt[2],"()");if(Ln>-1){var yn=Gt[0].length-(Gt[2].length-Ln)-(Gt[3]||"").length;Gt[2]=Gt[2].substring(0,Ln),Gt[0]=Gt[0].substring(0,yn).trim(),Gt[3]=""}pe=pe.substring(Gt[0].length),this.inLink=!0,Tt=Gt[2],this.options.pedantic?(Et=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Tt),Et?(Tt=Et[1],Ht=Et[3]):Ht=""):Ht=Gt[3]?Gt[3].slice(1,-1):"",Tt=Tt.trim().replace(/^<([\s\S]*)>$/,"$1"),nt+=this.outputLink(Gt,{href:ze.escapes(Tt),title:ze.escapes(Ht)}),this.inLink=!1;continue}if((Gt=this.rules.reflink.exec(pe))||(Gt=this.rules.nolink.exec(pe))){if(pe=pe.substring(Gt[0].length),Et=(Gt[2]||Gt[1]).replace(/\s+/g," "),Et=this.links[Et.toLowerCase()],!Et||!Et.href){nt+=Gt[0].charAt(0),pe=Gt[0].substring(1)+pe;continue}this.inLink=!0,nt+=this.outputLink(Gt,Et),this.inLink=!1;continue}if(Gt=this.rules.strong.exec(pe)){pe=pe.substring(Gt[0].length),nt+=this.renderer.strong(this.output(Gt[4]||Gt[3]||Gt[2]||Gt[1]));continue}if(Gt=this.rules.em.exec(pe)){pe=pe.substring(Gt[0].length),nt+=this.renderer.em(this.output(Gt[6]||Gt[5]||Gt[4]||Gt[3]||Gt[2]||Gt[1]));continue}if(Gt=this.rules.code.exec(pe)){pe=pe.substring(Gt[0].length),nt+=this.renderer.codespan(Ke(Gt[2].trim(),!0));continue}if(Gt=this.rules.br.exec(pe)){pe=pe.substring(Gt[0].length),nt+=this.renderer.br();continue}if(Gt=this.rules.del.exec(pe)){pe=pe.substring(Gt[0].length),nt+=this.renderer.del(this.output(Gt[1]));continue}if(Gt=this.rules.autolink.exec(pe)){pe=pe.substring(Gt[0].length),Gt[2]==="@"?(Rt=Ke(this.mangle(Gt[1])),Tt="mailto:"+Rt):(Rt=Ke(Gt[1]),Tt=Rt),nt+=this.renderer.link(Tt,null,Rt);continue}if(!this.inLink&&(Gt=this.rules.url.exec(pe))){if(Gt[2]==="@")Rt=Ke(Gt[0]),Tt="mailto:"+Rt;else{do rn=Gt[0],Gt[0]=this.rules._backpedal.exec(Gt[0])[0];while(rn!==Gt[0]);Rt=Ke(Gt[0]),Gt[1]==="www."?Tt="http://"+Rt:Tt=Rt}pe=pe.substring(Gt[0].length),nt+=this.renderer.link(Tt,null,Rt);continue}if(Gt=this.rules.text.exec(pe)){pe=pe.substring(Gt[0].length),this.inRawBlock?nt+=this.renderer.text(Gt[0]):nt+=this.renderer.text(Ke(this.smartypants(Gt[0])));continue}if(pe)throw new Error("Infinite loop on byte: "+pe.charCodeAt(0))}return nt},ze.escapes=function(pe){return pe&&pe.replace(ze.rules._escapes,"$1")},ze.prototype.outputLink=function(pe,nt){var Et=nt.href,Rt=nt.title?Ke(nt.title):null;return pe[0].charAt(0)!=="!"?this.renderer.link(Et,Rt,this.output(pe[1])):this.renderer.image(Et,Rt,Ke(pe[1]))},ze.prototype.smartypants=function(pe){return this.options.smartypants?pe.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026"):pe},ze.prototype.mangle=function(pe){if(!this.options.mangle)return pe;for(var nt="",Et=pe.length,Rt=0,Tt;Rt.5&&(Tt="x"+Tt.toString(16)),nt+="&#"+Tt+";";return nt};function tt(pe){this.options=pe||Ie.defaults}tt.prototype.code=function(pe,nt,Et){var Rt=(nt||"").match(/\S*/)[0];if(this.options.highlight){var Tt=this.options.highlight(pe,Rt);Tt!=null&&Tt!==pe&&(Et=!0,pe=Tt)}return Rt?'
'+(Et?pe:Ke(pe,!0))+`
`:"
"+(Et?pe:Ke(pe,!0))+"
"},tt.prototype.blockquote=function(pe){return`
`+pe+`
`},tt.prototype.html=function(pe){return pe},tt.prototype.heading=function(pe,nt,Et,Rt){return this.options.headerIds?"'+pe+" `:""+pe+" `},tt.prototype.hr=function(){return this.options.xhtml?`
`:`
`},tt.prototype.list=function(pe,nt,Et){var Rt=nt?"ol":"ul",Tt=nt&&Et!==1?' start="'+Et+'"':"";return"<"+Rt+Tt+`> `+pe+" `},tt.prototype.listitem=function(pe){return"
  • "+pe+`
  • `},tt.prototype.checkbox=function(pe){return" "},tt.prototype.paragraph=function(pe){return"

    "+pe+`

    `},tt.prototype.table=function(pe,nt){return nt&&(nt=""+nt+""),` `+pe+` `+nt+`
    `},tt.prototype.tablerow=function(pe){return` `+pe+` `},tt.prototype.tablecell=function(pe,nt){var Et=nt.header?"th":"td",Rt=nt.align?"<"+Et+' align="'+nt.align+'">':"<"+Et+">";return Rt+pe+" `},tt.prototype.strong=function(pe){return""+pe+""},tt.prototype.em=function(pe){return""+pe+""},tt.prototype.codespan=function(pe){return""+pe+""},tt.prototype.br=function(){return this.options.xhtml?"
    ":"
    "},tt.prototype.del=function(pe){return""+pe+""},tt.prototype.link=function(pe,nt,Et){if(pe=Ye(this.options.sanitize,this.options.baseUrl,pe),pe===null)return Et;var Rt='",Rt},tt.prototype.image=function(pe,nt,Et){if(pe=Ye(this.options.sanitize,this.options.baseUrl,pe),pe===null)return Et;var Rt=''+Et+'":">",Rt},tt.prototype.text=function(pe){return pe};function _t(){}_t.prototype.strong=_t.prototype.em=_t.prototype.codespan=_t.prototype.del=_t.prototype.text=function(pe){return pe},_t.prototype.link=_t.prototype.image=function(pe,nt,Et){return""+Et},_t.prototype.br=function(){return""};function Pt(pe){this.tokens=[],this.token=null,this.options=pe||Ie.defaults,this.options.renderer=this.options.renderer||new tt,this.renderer=this.options.renderer,this.renderer.options=this.options,this.slugger=new Xt}Pt.parse=function(pe,nt){var Et=new Pt(nt);return Et.parse(pe)},Pt.prototype.parse=function(pe){this.inline=new ze(pe.links,this.options),this.inlineText=new ze(pe.links,ee({},this.options,{renderer:new _t})),this.tokens=pe.reverse();for(var nt="";this.next();)nt+=this.tok();return nt},Pt.prototype.next=function(){return this.token=this.tokens.pop()},Pt.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},Pt.prototype.parseText=function(){for(var pe=this.token.text;this.peek().type==="text";)pe+=` `+this.next().text;return this.inline.output(pe)},Pt.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,Xe(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":{var pe="",nt="",Et,Rt,Tt,Ht;for(Tt="",Et=0;Et?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(nt)){var Et=nt;do this.seen[Et]++,nt=Et+"-"+this.seen[Et];while(this.seen.hasOwnProperty(nt))}return this.seen[nt]=0,nt};function Ke(pe,nt){if(nt){if(Ke.escapeTest.test(pe))return pe.replace(Ke.escapeReplace,function(Et){return Ke.replacements[Et]})}else if(Ke.escapeTestNoEncode.test(pe))return pe.replace(Ke.escapeReplaceNoEncode,function(Et){return Ke.replacements[Et]});return pe}Ke.escapeTest=/[&<>"']/,Ke.escapeReplace=/[&<>"']/g,Ke.replacements={"&":"&","<":"<",">":">",'"':""","'":"'"},Ke.escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,Ke.escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g;function Xe(pe){return pe.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,function(nt,Et){return Et=Et.toLowerCase(),Et==="colon"?":":Et.charAt(0)==="#"?Et.charAt(1)==="x"?String.fromCharCode(parseInt(Et.substring(2),16)):String.fromCharCode(+Et.substring(1)):""})}function Ze(pe,nt){return pe=pe.source||pe,nt=nt||"",{replace:function(Rt,Tt){return Tt=Tt.source||Tt,Tt=Tt.replace(/(^|[^\[])\^/g,"$1"),pe=pe.replace(Rt,Tt),this},getRegex:function(){return new RegExp(pe,nt)}}}function Ye(pe,nt,Et){if(pe){try{var Rt=decodeURIComponent(Xe(Et)).replace(/[^\w:]/g,"").toLowerCase()}catch(Tt){return null}if(Rt.indexOf("javascript:")===0||Rt.indexOf("vbscript:")===0||Rt.indexOf("data:")===0)return null}nt&&!we.test(Et)&&(Et=ke(nt,Et));try{Et=encodeURI(Et).replace(/%25/g,"%")}catch(Tt){return null}return Et}function ke(pe,nt){return $e[" "+pe]||(/^[^:]+:\/*[^/]*$/.test(pe)?$e[" "+pe]=pe+"/":$e[" "+pe]=ve(pe,"/",!0)),pe=$e[" "+pe],nt.slice(0,2)==="//"?pe.replace(/:[\s\S]*/,":")+nt:nt.charAt(0)==="/"?pe.replace(/(:\/*[^/]*)[\s\S]*/,"$1")+nt:pe+nt}var $e={},we=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function k(){}k.exec=k;function ee(pe){for(var nt=1,Et,Rt;nt=0&&rn[yn]==="\\";)Ln=!Ln;return Ln?"|":" |"}),Rt=Et.split(/ \|/),Tt=0;if(Rt.length>nt)Rt.splice(nt);else for(;Rt.lengthAn error occurred:

    "+Ke(Ln.message+"",!0)+"
    ";throw Ln}}Ie.options=Ie.setOptions=function(pe){return ee(Ie.defaults,pe),Ie},Ie.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new tt,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tables:!0,xhtml:!1}},Ie.defaults=Ie.getDefaults(),Ie.Parser=Pt,Ie.parser=Pt.parse,Ie.Renderer=tt,Ie.TextRenderer=_t,Ie.Lexer=me,Ie.lexer=me.lex,Ie.InlineLexer=ze,Ie.inlineLexer=ze.output,Ie.Slugger=Xt,Ie.parse=Ie,U=Ie}).call(void 0);var j=U,G=U.Parser,R=U.parser,E=U.Renderer,x=U.TextRenderer,K=U.Lexer,D=U.lexer,A=U.InlineLexer,te=U.inlineLexer,z=U.parse,_,_,f;(function(){function ie(J,me,ye){function ze(Pt,Xt){if(!me[Pt]){if(!J[Pt]){var Ke=typeof _=="function"&&_;if(!Xt&&Ke)return _(Pt,!0);if(tt)return tt(Pt,!0);var Xe=new Error("Cannot find module '"+Pt+"'");throw Xe.code="MODULE_NOT_FOUND",Xe}var Ze=me[Pt]={exports:{}};J[Pt][0].call(Ze.exports,function(Ye){var ke=J[Pt][1][Ye];return ze(ke||Ye)},Ze,Ze.exports,ie,J,me,ye)}return me[Pt].exports}for(var tt=typeof _=="function"&&_,_t=0;_t\s]+))?)*)\s*(\/?)\s*>/,Xt=/^<\s*\/\s*([\w:-]+)[^>]*>/,Ke=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,Xe=/^");Tt>=0&&(we.comment&&we.comment($e.substring(4,Tt)),$e=$e.substring(Tt+3),Pe=!1)}function nt(){if(!Pe)return;var Tt,Ht=$e.indexOf("<");Ht>=0?(Tt=$e.substring(0,Ht),$e=$e.substring(Ht)):(Tt=$e,$e=""),we.chars&&we.chars(Tt)}function Et(Tt,Ht,Gt,rn){var Ln={},yn=ze(Ht),Tn=_t.voids[yn]||!!rn;Gt.replace(Ke,Ft),Tn||k.push(yn),we.start&&we.start(yn,Ln,Tn);function Ft(pt,gt,Dt,Lt,Vt){Dt===void 0&&Lt===void 0&&Vt===void 0?Ln[gt]=void 0:Ln[gt]=ye.decode(Dt||Lt||Vt||"")}}function Rt(Tt,Ht){var Gt,rn=0,Ln=ze(Ht);if(Ln)for(rn=k.length-1;rn>=0&&!(k[rn]===Ln);rn--);if(rn>=0){for(Gt=k.length-1;Gt>=rn;Gt--)we.end&&we.end(k[Gt]);k.length=rn}}}J.exports=ke},{"./attributes":1,"./elements":3,"./lowercase":5,he:9}],8:[function(ie,J,me){"use strict";var ye=ie("he"),ze=ie("./lowercase"),tt=ie("./attributes"),_t=ie("./elements");function Pt(Xt,Ke){var Xe,Ze,Ye=Ke||{};return Te(),{start:$e,end:we,chars:ee};function ke(Ie){Xt.push(Ie)}function $e(Ie,pe,nt){var Et=ze(Ie);if(Ze.ignoring){Pe(Et);return}if((Ye.allowedTags||[]).indexOf(Et)===-1){Pe(Et);return}if(Ye.filter&&!Ye.filter({tag:Et,attrs:pe})){Pe(Et);return}ke("<"),ke(Et),Object.keys(pe).forEach(Rt),ke(nt?"/>":">");function Rt(Tt){var Ht=pe[Tt],Gt=(Ye.allowedClasses||{})[Et]||[],rn=(Ye.allowedAttributes||{})[Et]||[];rn=rn.concat((Ye.allowedAttributes||{})["*"]||[]);var Ln,yn=ze(Tt);yn==="class"&&rn.indexOf(yn)===-1?(Ht=Ht.split(" ").filter(Tn).join(" ").trim(),Ln=Ht.length):Ln=rn.indexOf(yn)!==-1&&(tt.uris[yn]!==!0||k(Ht)),Ln&&(ke(" "),ke(Tt),typeof Ht=="string"&&(ke('="'),ke(ye.encode(Ht)),ke('"')));function Tn(Ft){return Gt&&Gt.indexOf(Ft)!==-1}}}function we(Ie){var pe=ze(Ie),nt=(Ye.allowedTags||[]).indexOf(pe)!==-1;nt&&Ze.ignoring===!1?(ke("")):ve(pe)}function k(Ie){var pe=Ie[0];if(pe==="#"||pe==="/")return!0;var nt=Ie.indexOf(":");if(nt===-1)return!0;var Et=Ie.indexOf("?");if(Et!==-1&&nt>Et)return!0;var Rt=Ie.indexOf("#");if(Rt!==-1&&nt>Rt)return!0;return Ye.allowedSchemes.some(Tt);function Tt(Ht){return Ie.indexOf(Ht+":")===0}}function ee(Ie){Ze.ignoring===!1&&ke(Ye.transformText?Ye.transformText(Ie):Ie)}function Pe(Ie){if(_t.voids[Ie])return;Ze.ignoring===!1?Ze={ignoring:Ie,depth:1}:Ze.ignoring===Ie&&Ze.depth++}function ve(Ie){Ze.ignoring===Ie&&(--Ze.depth<=0&&Te())}function Te(){Ze={ignoring:!1,depth:0}}}J.exports=Pt},{"./attributes":1,"./elements":3,"./lowercase":5,he:9}],9:[function(ie,J,me){"use strict";var ye={"&":"&","<":"<",">":">",'"':""","'":"'"},ze={"&":"&","<":"<",">":">",""":'"',"'":"'"},tt=/(&|<|>|"|')/g,_t=/[&<>"']/g;function Pt(Ze){return ye[Ze]}function Xt(Ze){return ze[Ze]}function Ke(Ze){return Ze==null?"":String(Ze).replace(_t,Pt)}function Xe(Ze){return Ze==null?"":String(Ze).replace(tt,Xt)}Ke.options=Xe.options={},J.exports={encode:Ke,escape:Ke,decode:Xe,unescape:Xe,version:"1.0.0-browser"}},{}],10:[function(ie,J,me){"use strict";function ye(tt){return tt.reduce(ze,{})}function ze(tt,_t){return tt[_t]=!0,tt}J.exports=ye},{}]},{},[4]);var p=f,g=r("PXWS"),m=r("mucJ"),w=r("yBOt"),B=r("zOJ8"),H=r("Ojgo"),re=r("wzUm");function he(ie,J){J===void 0&&(J={});var me=Object(oe.a)(J),ye=function(ke){var $e;try{$e=Object(g.a)(decodeURIComponent(ke))}catch(we){}return $e?($e=Object(m.b)($e,function(we){return ie.uris&&ie.uris[we]?B.a.revive(ie.uris[we]):void 0}),encodeURIComponent(JSON.stringify($e))):ke},ze=function(ke,$e){var we=ie.uris&&ie.uris[ke];if(!we)return ke;var k=B.a.revive(we);return B.a.parse(ke).toString()===k.toString()?ke:($e&&(k=I.r(k)),k.query&&(k=k.with({query:ye(k.query)})),k.toString(!0))},tt,_t=new Promise(function(Ye){return tt=Ye}),Pt=new E;Pt.image=function(Ye,ke,$e){var we,k=[],ee=[];return Ye&&(we=Object(N.d)(Ye),Ye=we.href,k=we.dimensions,Ye=ze(Ye,!0),ee.push('src="'+Ye+'"')),$e&&ee.push('alt="'+$e+'"'),ke&&ee.push('title="'+ke+'"'),k.length&&(ee=ee.concat(k)),""},Pt.link=function(Ye,ke,$e){return Ye===$e&&($e=Object(N.e)($e)),Ye=ze(Ye,!1),ke=Object(N.e)(ke),Ye=Object(N.e)(Ye),!Ye||Ye.match(/^data:|javascript:/i)||Ye.match(/^command:/i)&&!ie.isTrusted||Ye.match(/^command:(\/\/\/)?_workbench\.downloadResource/i)?$e:(Ye=Ye.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),'
    '+$e+"")},Pt.paragraph=function(Ye){return"

    "+(ie.supportThemeIcons?Object(re.c)(Ye):Ye)+"

    "},J.codeBlockRenderer&&(Pt.code=function(Ye,ke){var $e=J.codeBlockRenderer(ke,Ye),we=F.b.nextId(),k=Promise.all([$e,_t]).then(function(ee){var Pe=ee[0],ve=me.querySelector('div[data-code="'+we+'"]');ve&&(ve.innerHTML=Pe)}).catch(function(ee){});return J.codeBlockRenderCallback&&k.then(J.codeBlockRenderCallback),'
    '+Object(w.o)(Ye)+"
    "});var Xt=J.actionHandler;Xt&&Xt.disposeables.add(I.n(me,"click",function(Ye){var ke=Ye.target;if(ke.tagName!=="A"&&(ke=ke.parentElement,!ke||ke.tagName!=="A"))return;try{var $e=ke.dataset.href;$e&&Xt.callback($e,Ye)}catch(we){Object(ne.e)(we)}finally{Ye.preventDefault()}}));var Ke={sanitize:!0,renderer:Pt},Xe=[H.b.http,H.b.https,H.b.mailto,H.b.data,H.b.file,H.b.vscodeRemote,H.b.vscodeRemoteResource];ie.isTrusted&&Xe.push(H.b.command);var Ze=z(ie.supportThemeIcons?Object(re.b)(ie.value):ie.value,Ke);return me.innerHTML=p(Ze,{allowedSchemes:Xe,allowedAttributes:{a:["href","name","target","data-href"],iframe:["allowfullscreen","frameborder","src"],img:["src","title","alt","width","height"],div:["class","data-code"],span:["class"]}}),tt(),me}var Ee=r("mWsY"),Se=r("rvt5"),q=r("/L4v"),Z=r("PoD0"),ce=r("YK2C"),Me=r("bN5T"),Ve=r("vqGt"),_e=function(){var ie=function(me,ye){return ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ze,tt){ze.__proto__=tt}||function(ze,tt){for(var _t in tt)tt.hasOwnProperty(_t)&&(ze[_t]=tt[_t])},ie(me,ye)};return function(J,me){ie(J,me);function ye(){this.constructor=J}J.prototype=me===null?Object.create(me):(ye.prototype=me.prototype,new ye)}}(),ue=function(ie,J,me,ye){var ze=arguments.length,tt=ze<3?J:ye===null?ye=Object.getOwnPropertyDescriptor(J,me):ye,_t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")tt=Reflect.decorate(ie,J,me,ye);else for(var Pt=ie.length-1;Pt>=0;Pt--)(_t=ie[Pt])&&(tt=(ze<3?_t(tt):ze>3?_t(J,me,tt):_t(J,me))||tt);return ze>3&&tt&&Object.defineProperty(J,me,tt),tt},se=function(ie,J){return function(me,ye){J(me,ye,ie)}},fe=function(ie){_e(J,ie);function J(me,ye,ze){ze===void 0&&(ze=Ee.b);var tt=ie.call(this)||this;return tt._editor=me,tt._modeService=ye,tt._openerService=ze,tt._onDidRenderCodeBlock=tt._register(new ce.a),tt.onDidRenderCodeBlock=tt._onDidRenderCodeBlock.event,tt}return J.prototype.getOptions=function(me){var ye=this;return{codeBlockRenderer:function(tt,_t){var Pt=null;if(tt)Pt=ye._modeService.getModeIdForLanguageName(tt);else{var Xt=ye._editor.getModel();Xt&&(Pt=Xt.getLanguageIdentifier().language)}return ye._modeService.triggerMode(Pt||""),Promise.resolve(!0).then(function(Ke){var Xe=Ve.y.getPromise(Pt||"");return Xe?Xe.then(function(Ze){return Object(q.b)(_t,Ze)}):Object(q.b)(_t,void 0)}).then(function(Ke){return''+Ke+""})},codeBlockRenderCallback:function(){return ye._onDidRenderCodeBlock.fire()},actionHandler:{callback:function(tt){ye._openerService.open(tt,{fromUserGesture:!0}).catch(ne.e)},disposeables:me}}},J.prototype.render=function(me){var ye=new Me.b,ze;return me?ze=he(me,this.getOptions(ye)):ze=document.createElement("span"),{element:ze,dispose:function(){return ye.dispose()}}},J=ue([se(1,Se.a),se(2,Object(Z.d)(Ee.a))],J),J}(Me.a)},FRK7:function(wt,P,r){"use strict";r.d(P,"b",function(){return I}),r.d(P,"a",function(){return oe});function I(ne){return ne<0?0:ne>255?255:ne|0}function oe(ne){return ne<0?0:ne>4294967295?4294967295:ne|0}},FTcp:function(wt,P,r){"use strict";r.d(P,"b",function(){return ne}),r.d(P,"a",function(){return N});var I=r("PoD0"),oe=r("bBv/"),ne=Object(I.c)("accessibilityService"),N=new oe.d("accessibilityModeEnabled",!1)},FdDt:function(wt,P,r){},G6m9:function(wt,P,r){"use strict";r.d(P,"a",function(){return U});var I=typeof monaco=="undefined"?self.monaco:monaco,oe={},ne={},N=function(){function j(G){var R=this;this._languageId=G,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise(function(E,x){R._lazyLoadPromiseResolve=E,R._lazyLoadPromiseReject=x})}return j.getOrCreate=function(G){return ne[G]||(ne[G]=new j(G)),ne[G]},j.prototype.whenLoaded=function(){return this._lazyLoadPromise},j.prototype.load=function(){var G=this;return this._loadingTriggered||(this._loadingTriggered=!0,oe[this._languageId].loader().then(function(R){return G._lazyLoadPromiseResolve(R)},function(R){return G._lazyLoadPromiseReject(R)})),this._lazyLoadPromise},j}();function F(j){return N.getOrCreate(j).load()}function U(j){var G=j.id;oe[G]=j,I.languages.register(j);var R=N.getOrCreate(G);I.languages.setMonarchTokensProvider(G,R.whenLoaded().then(function(E){return E.language})),I.languages.onLanguage(G,function(){R.load().then(function(E){I.languages.setLanguageConfiguration(G,E.conf)})})}},GFIr:function(wt,P,r){},GIAr:function(wt,P,r){"use strict";r.d(P,"a",function(){return H}),r.d(P,"b",function(){return Se});var I=r("mucJ"),oe=r("bN5T"),ne=r("3HcJ"),N=r("fF8p"),F=r("YK2C"),U=r("6zAk"),j=r("AyeG"),G=r("eAZY");function R(q,Z){for(var ce=[],Me=0,Ve=Z;Me=_e.range.end)continue;if(q.end<_e.range.start)break;var ue=G.a.intersect(q,_e.range);if(G.a.isEmpty(ue))continue;ce.push({range:ue,size:_e.size})}return ce}function E(q,Z){var ce=q.start,Me=q.end;return{start:ce+Z,end:Me+Z}}function x(q){for(var Z=[],ce=null,Me=0,Ve=q;Me=0;se--)(ue=q[se])&&(_e=(Ve<3?ue(_e):Ve>3?ue(Z,ce,_e):ue(Z,ce))||_e);return Ve>3&&_e&&Object.defineProperty(Z,ce,_e),_e},w=function(){for(var q=0,Z=0,ce=arguments.length;Z=this.items.length?(this.rangeMap=new D,this.rangeMap.splice(0,0,ze),this.items=ze,tt=[]):(this.rangeMap.splice(Z,ce,ze),tt=(Ve=this.items).splice.apply(Ve,w([Z,ce],ze)));for(var _t=Me.length-ce,Pt=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),Xt=E(me,_t),Ke=G.a.intersect(Pt,Xt),ie=Ke.start;ie=-1&&ieMe&&(this.scrollTop+=Math.min(14,Math.floor(.3*(ce-Me))))},q.prototype.teardownDragAndDropScrollTopAnimation=function(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)},q.prototype.getItemIndexFromEventTarget=function(Z){for(var ce=Z;ce instanceof HTMLElement&&ce!==this.rowsContainer;){var Me=ce.getAttribute("data-index");if(Me){var Ve=Number(Me);if(!isNaN(Ve))return Ve}ce=ce.parentElement}return},q.prototype.getRenderRange=function(Z,ce){return{start:this.rangeMap.indexAt(Z),end:this.rangeMap.indexAfter(Z+ce-1)}},q.prototype._rerender=function(Z,ce){var Me=this.getRenderRange(Z,ce),Ve,_e;Z===this.elementTop(Me.start)?(Ve=Me.start,_e=0):Me.end-Me.start>1&&(Ve=Me.start+1,_e=this.elementTop(Ve)-Z);for(var ue=0;;){for(var se=this.getRenderRange(Z,ce),fe=!1,ie=se.start;ie=this._capacity){this._flushBuffer(),this._completedStrings[this._completedStrings.length]=U;return}for(var G=0;G0&&(this._editor.setSelections(Ee),this._editor.revealRange(Ee[0]))},H.prototype._updateBrackets=function(){if(this._matchBrackets==="never")return;this._recomputeBrackets();for(var re=[],he=0,Ee=0,Se=this._lastBracketsData;Ee100){this._lastBracketsData=[],this._lastVersionId=0;return}var he=this._editor.getModel(),Ee=he.getVersionId(),Se=[];this._lastVersionId===Ee&&(Se=this._lastBracketsData);for(var q=[],Z=0,ce=0,Me=re.length;ce1&&q.sort(j.a.compare);for(var _e=[],ue=0,se=0,fe=Se.length,ce=0,Me=q.length;ce0)Z=ce-1;else return ce}return-(q+1)}function F(he,Ee){var Se=0,q=he.length;if(q===0)return 0;for(;Seq?he[_e]=ce[Ve++]:Ve>Z?he[_e]=ce[Me++]:Ee(ce[Ve],ce[Me])<0?he[_e]=ce[Ve++]:he[_e]=ce[Me++]}function G(he,Ee,Se,q,Z){if(q<=Se)return;var ce=Se+(q-Se)/2|0;if(G(he,Ee,Se,ce,Z),G(he,Ee,ce+1,q,Z),Ee(he[ce],he[ce+1])<=0)return;j(he,Ee,Se,ce,q,Z)}function R(he,Ee){for(var Se=[],q=void 0,Z=0,ce=U(he.slice(0),Ee);Z0}function D(he,Ee){if(!Ee)return he.filter(function(q,Z){return he.indexOf(q)===Z});var Se=Object.create(null);return he.filter(function(q){var Z=Ee(q);return Se[Z]?!1:(Se[Z]=!0,!0)})}function A(he){var Ee=new Set;return he.filter(function(Se){return Ee.has(Se)?!1:(Ee.add(Se),!0)})}function te(he){var Ee=[];return he.forEach(function(Se){return Ee.push(Se)}),Ee}function z(he,Ee){for(var Se=0;Se0?he[0]:Ee}function p(he){var Ee;return(Ee=[]).concat.apply(Ee,he)}function g(he,Ee){var Se=typeof Ee=="number"?he:0;typeof Ee=="number"?Se=he:(Se=0,Ee=he);var q=[];if(Se<=Ee)for(var Z=Se;ZEe;Z--)q.push(Z);return q}function m(he,Ee,Se){var q=he.slice(0,Ee),Z=he.slice(Ee);return q.concat(Se,Z)}function w(he,Ee){var Se=he.indexOf(Ee);Se>-1&&(he.splice(Se,1),he.unshift(Ee))}function B(he,Ee){var Se=he.indexOf(Ee);Se>-1&&(he.splice(Se,1),he.push(Ee))}function H(he,Ee){for(var Se=0;Se0)for(var f=0,p=_;fJ,tt=ie>me,_t=ieme)continue;if(keie)continue;if(Ye1&&ie--,_e.columnSelect(ue,se,fe.fromViewLineNumber,fe.fromViewVisualColumn,fe.toViewLineNumber,ie)},_e.columnSelectRight=function(ue,se,fe){for(var ie=0,J=Math.min(fe.fromViewLineNumber,fe.toViewLineNumber),me=Math.max(fe.fromViewLineNumber,fe.toViewLineNumber),ye=J;ye<=me;ye++){var ze=se.getLineMaxColumn(ye),tt=F.a.visibleColumnFromColumn2(ue,se,new U.a(ye,ze));ie=Math.max(ie,tt)}var _t=fe.toViewVisualColumn;return _t=0;J--){var me=ue.charCodeAt(J),ye=se.get(me);if(ye===0){if(ie===2)return this._createWord(ue,ie,ye,J+1,this._findEndOfWord(ue,se,ie,J+1));ie=1}else if(ye===2){if(ie===1)return this._createWord(ue,ie,ye,J+1,this._findEndOfWord(ue,se,ie,J+1));ie=2}else if(ye===1&&ie!==0)return this._createWord(ue,ie,ye,J+1,this._findEndOfWord(ue,se,ie,J+1))}return ie!==0?this._createWord(ue,ie,1,0,this._findEndOfWord(ue,se,ie,0)):null},_e._findEndOfWord=function(ue,se,fe,ie){for(var J=ue.length,me=ie;me=0;J--){var me=ue.charCodeAt(J),ye=se.get(me);if(ye===1)return J+1;if(fe===1&&ye===2)return J+1;if(fe===2&&ye===0)return J+1}return 0},_e.moveWordLeft=function(ue,se,fe,ie){var J=fe.lineNumber,me=fe.column,ye=!1;me===1&&(J>1&&(ye=!0,J=J-1,me=se.getLineMaxColumn(J)));var ze=_e._findPreviousWordOnLine(ue,se,new U.a(J,me));if(ie===0){if(ze&&!ye){var tt=se.getLineLastNonWhitespaceColumn(J);if(tt1?new U.a(fe-1,ue.getLineMaxColumn(fe-1)):se;for(var J=ue.getLineContent(fe),me=se.column-1;me>1;me--){var ye=J.charCodeAt(me-2),ze=J.charCodeAt(me-1);if(ye!==95&&ze===95)return new U.a(fe,me);if(x.B(ye)&&x.C(ze))return new U.a(fe,me);if(x.C(ye)&&x.C(ze)&&me+1=ze.start+1&&(ze=_e._findNextWordOnLine(ue,se,new U.a(J,ze.end+1))),ze?me=ze.start+1:me=se.getLineMaxColumn(J);return new U.a(J,me)},_e._moveWordPartRight=function(ue,se){var fe=se.lineNumber,ie=ue.getLineMaxColumn(fe);if(se.column===ie)return fe1?ze=1:(ye--,ze=se.getLineMaxColumn(ye)):(_t&&ze<=_t.end+1&&(_t=_e._findPreviousWordOnLine(ue,se,new U.a(ye,_t.start+1))),_t?ze=_t.end+1:ze>1?ze=1:(ye--,ze=se.getLineMaxColumn(ye))),new j.a(ye,ze,me.lineNumber,me.column)},_e._deleteWordPartLeft=function(ue,se){if(!se.isEmpty())return se;var fe=se.getPosition(),ie=_e._moveWordPartLeft(ue,fe);return new j.a(fe.lineNumber,fe.column,ie.lineNumber,ie.column)},_e._findFirstNonWhitespaceChar=function(ue,se){for(var fe=ue.length,ie=se;ie=Xt.start+1&&(Xt=_e._findNextWordOnLine(ue,se,new U.a(ye,Xt.end+1))),Xt?ze=Xt.start+1:ze<_t||ye===tt?ze=_t:(ye++,Xt=_e._findNextWordOnLine(ue,se,new U.a(ye,1)),Xt?ze=Xt.start+1:ze=se.getLineMaxColumn(ye))),new j.a(ye,ze,me.lineNumber,me.column)},_e._deleteWordPartRight=function(ue,se){if(!se.isEmpty())return se;var fe=se.getPosition(),ie=_e._moveWordPartRight(ue,fe);return new j.a(fe.lineNumber,fe.column,ie.lineNumber,ie.column)},_e.word=function(ue,se,fe,ie,J){var me=Object(K.a)(ue.wordSeparators),ye=_e._findPreviousWordOnLine(me,se,J),ze=_e._findNextWordOnLine(me,se,J);if(!ie){var tt,_t;return ye&&ye.wordType===1&&ye.start<=J.column-1&&J.column-1<=ye.end?(tt=ye.start+1,_t=ye.end+1):ze&&ze.wordType===1&&ze.start<=J.column-1&&J.column-1<=ze.end?(tt=ze.start+1,_t=ze.end+1):(ye?tt=ye.end+1:tt=1,ze?_t=ze.start+1:_t=se.getLineMaxColumn(J.lineNumber)),new F.f(new j.a(J.lineNumber,tt,J.lineNumber,_t),0,new U.a(J.lineNumber,_t),0)}var Pt,Xt;ye&&ye.wordType===1&&ye.startze&&(tt=ze,_t=ue.model.getLineMaxColumn(tt)),F.d.fromModelState(new F.f(new j.a(me.lineNumber,1,tt,_t),0,new U.a(tt,_t),0))}var Pt=se.modelState.selectionStart.getStartPosition().lineNumber;if(me.lineNumberPt){var ze=ue.viewModel.getLineCount(),Xt=ye.lineNumber+1,Ke=1;return Xt>ze&&(Xt=ze,Ke=ue.viewModel.getLineMaxColumn(Xt)),F.d.fromViewState(se.viewState.move(se.modelState.hasSelection(),Xt,Ke,0))}else{var Xe=se.modelState.selectionStart.getEndPosition();return F.d.fromModelState(se.modelState.move(se.modelState.hasSelection(),Xe.lineNumber,Xe.column,0))}},_e.word=function(ue,se,fe,ie){var J=ue.model.validatePosition(ie);return F.d.fromModelState(A.word(ue.config,ue.model,se.modelState,fe,J))},_e.cancelSelection=function(ue,se){if(!se.modelState.hasSelection())return new F.d(se.modelState,se.viewState);var fe=se.viewState.position.lineNumber,ie=se.viewState.position.column;return F.d.fromViewState(new F.f(new j.a(fe,ie,fe,ie),0,new U.a(fe,ie),0))},_e.moveTo=function(ue,se,fe,ie,J){var me=ue.model.validatePosition(ie),ye=J?ue.validateViewPosition(new U.a(J.lineNumber,J.column),me):ue.convertModelPositionToViewPosition(me);return F.d.fromViewState(se.viewState.move(fe,ye.lineNumber,ye.column,0))},_e.move=function(ue,se,fe){var ie=fe.select,J=fe.value;switch(fe.direction){case 0:return fe.unit===4?this._moveHalfLineLeft(ue,se,ie):this._moveLeft(ue,se,ie,J);case 1:return fe.unit===4?this._moveHalfLineRight(ue,se,ie):this._moveRight(ue,se,ie,J);case 2:return fe.unit===2?this._moveUpByViewLines(ue,se,ie,J):this._moveUpByModelLines(ue,se,ie,J);case 3:return fe.unit===2?this._moveDownByViewLines(ue,se,ie,J):this._moveDownByModelLines(ue,se,ie,J);case 4:return this._moveToViewMinColumn(ue,se,ie);case 5:return this._moveToViewFirstNonWhitespaceColumn(ue,se,ie);case 6:return this._moveToViewCenterColumn(ue,se,ie);case 7:return this._moveToViewMaxColumn(ue,se,ie);case 8:return this._moveToViewLastNonWhitespaceColumn(ue,se,ie);case 9:{var me=se[0],ye=ue.getCompletelyVisibleModelRange(),ze=this._firstLineNumberInRange(ue.model,ye,J),tt=ue.model.getLineFirstNonWhitespaceColumn(ze);return[this._moveToModelPosition(ue,me,ie,ze,tt)]}case 11:{var me=se[0],ye=ue.getCompletelyVisibleModelRange(),ze=this._lastLineNumberInRange(ue.model,ye,J),tt=ue.model.getLineFirstNonWhitespaceColumn(ze);return[this._moveToModelPosition(ue,me,ie,ze,tt)]}case 10:{var me=se[0],ye=ue.getCompletelyVisibleModelRange(),ze=Math.round((ye.startLineNumber+ye.endLineNumber)/2),tt=ue.model.getLineFirstNonWhitespaceColumn(ze);return[this._moveToModelPosition(ue,me,ie,ze,tt)]}case 12:{for(var _t=ue.getCompletelyVisibleViewRange(),Pt=[],Xt=0,Ke=se.length;Xtfe.endLineNumber-1&&(J=fe.endLineNumber-1),J1)for(var Pe=k.modelState?k.modelState.position:null,ve=k.viewState?k.viewState.position:null,Te=0,Ie=ee.length;Teee&&(k=ee);var Pe=new j.a(k,1,k,ke.context.model.getLineMaxColumn(k)),ve=0;if(we.at)switch(we.at){case Ee.RawAtArgument.Top:ve=3;break;case Ee.RawAtArgument.Center:ve=1;break;case Ee.RawAtArgument.Bottom:ve=4;break;default:break}var Te=ke.context.convertModelRangeToViewRange(Pe);ke.revealRange($e.source,!1,Te,ve,0)},Ye}(re))),_e.SelectAll=Object(ne.g)(new(function(Ze){B(Ye,Ze);function Ye(){return Ze.call(this,{id:"selectAll",precondition:void 0})||this}return Ye.prototype.runCoreEditorCommand=function(ke,$e){ke.context.model.pushStackElement(),ke.setStates($e.source,3,[_.selectAll(ke.context,ke.getPrimaryCursor())])},Ye}(re))),_e.SetSelection=Object(ne.g)(new(function(Ze){B(Ye,Ze);function Ye(){return Ze.call(this,{id:"setSelection",precondition:void 0})||this}return Ye.prototype.runCoreEditorCommand=function(ke,$e){ke.context.model.pushStackElement(),ke.setStates($e.source,3,[F.d.fromModelSelection($e.selection)])},Ye}(re)))})(Se||(Se={}));var q;(function(_e){var ue=function(se){B(fe,se);function fe(){return se!==null&&se.apply(this,arguments)||this}return fe.prototype.runEditorCommand=function(ie,J,me){var ye=J._getCursors();if(!ye)return;this.runCoreEditingCommand(J,ye,me||{})},fe}(ne.c);_e.CoreEditingCommand=ue,_e.LineBreakInsert=Object(ne.g)(new(function(se){B(fe,se);function fe(){return se.call(this,{id:"lineBreakInsert",precondition:m.a.writable,kbOpts:{weight:H,kbExpr:m.a.textInputFocus,primary:0,mac:{primary:256|45}}})||this}return fe.prototype.runCoreEditingCommand=function(ie,J,me){ie.pushUndoStop(),ie.executeCommands(this.id,p.a.lineBreakInsert(J.context.config,J.context.model,J.getAll().map(function(ye){return ye.modelState.selection})))},fe}(ue))),_e.Outdent=Object(ne.g)(new(function(se){B(fe,se);function fe(){return se.call(this,{id:"outdent",precondition:m.a.writable,kbOpts:{weight:H,kbExpr:w.a.and(m.a.editorTextFocus,m.a.tabDoesNotMoveFocus),primary:1024|2}})||this}return fe.prototype.runCoreEditingCommand=function(ie,J,me){ie.pushUndoStop(),ie.executeCommands(this.id,p.a.outdent(J.context.config,J.context.model,J.getAll().map(function(ye){return ye.modelState.selection}))),ie.pushUndoStop()},fe}(ue))),_e.Tab=Object(ne.g)(new(function(se){B(fe,se);function fe(){return se.call(this,{id:"tab",precondition:m.a.writable,kbOpts:{weight:H,kbExpr:w.a.and(m.a.editorTextFocus,m.a.tabDoesNotMoveFocus),primary:2}})||this}return fe.prototype.runCoreEditingCommand=function(ie,J,me){ie.pushUndoStop(),ie.executeCommands(this.id,p.a.tab(J.context.config,J.context.model,J.getAll().map(function(ye){return ye.modelState.selection}))),ie.pushUndoStop()},fe}(ue))),_e.DeleteLeft=Object(ne.g)(new(function(se){B(fe,se);function fe(){return se.call(this,{id:"deleteLeft",precondition:m.a.writable,kbOpts:{weight:H,kbExpr:m.a.textInputFocus,primary:1,secondary:[1024|1],mac:{primary:1,secondary:[1024|1,256|38,256|1]}}})||this}return fe.prototype.runCoreEditingCommand=function(ie,J,me){var ye=R.a.deleteLeft(J.getPrevEditOperationType(),J.context.config,J.context.model,J.getAll().map(function(_t){return _t.modelState.selection})),ze=ye[0],tt=ye[1];ze&&ie.pushUndoStop(),ie.executeCommands(this.id,tt),J.setPrevEditOperationType(2)},fe}(ue))),_e.DeleteRight=Object(ne.g)(new(function(se){B(fe,se);function fe(){return se.call(this,{id:"deleteRight",precondition:m.a.writable,kbOpts:{weight:H,kbExpr:m.a.textInputFocus,primary:20,mac:{primary:20,secondary:[256|34,256|20]}}})||this}return fe.prototype.runCoreEditingCommand=function(ie,J,me){var ye=R.a.deleteRight(J.getPrevEditOperationType(),J.context.config,J.context.model,J.getAll().map(function(_t){return _t.modelState.selection})),ze=ye[0],tt=ye[1];ze&&ie.pushUndoStop(),ie.executeCommands(this.id,tt),J.setPrevEditOperationType(3)},fe}(ue)))})(q||(q={}));function Z(_e){_e.register()}var ce=function(_e){B(ue,_e);function ue(se){var fe=_e.call(this,se)||this;return fe._editorHandler=se.editorHandler,fe._inputHandler=se.inputHandler,fe}return ue.prototype.runCommand=function(se,fe){var ie=se.get(N.a).getFocusedCodeEditor();if(ie&&ie.hasTextFocus())return this._runEditorHandler(se,ie,fe);var J=document.activeElement;if(J&&["input","textarea"].indexOf(J.tagName.toLowerCase())>=0){document.execCommand(this._inputHandler);return}var me=se.get(N.a).getActiveCodeEditor();if(me)return me.focus(),this._runEditorHandler(se,me,fe)},ue.prototype._runEditorHandler=function(se,fe,ie){var J=this._editorHandler;typeof J=="string"?fe.trigger("keyboard",J,ie):(ie=ie||{},ie.source="keyboard",J.runEditorCommand(se,fe,ie))},ue}(ne.a),Me=function(_e){B(ue,_e);function ue(se,fe,ie){var J=_e.call(this,{id:se,precondition:void 0,description:ie})||this;return J._handlerId=fe,J}return ue.prototype.runCommand=function(se,fe){var ie=se.get(N.a).getFocusedCodeEditor();if(!ie)return;ie.trigger("keyboard",this._handlerId,fe)},ue}(ne.a);Z(new ce({editorHandler:Se.SelectAll,inputHandler:"selectAll",id:"editor.action.selectAll",precondition:m.a.textInputFocus,kbOpts:{weight:H,kbExpr:null,primary:2048|31},menuOpts:{menuId:25,group:"1_basic",title:I.a({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1}})),Z(new ce({editorHandler:g.b.Undo,inputHandler:"undo",id:g.b.Undo,precondition:m.a.writable,kbOpts:{weight:H,kbExpr:m.a.textInputFocus,primary:2048|56},menuOpts:{menuId:17,group:"1_do",title:I.a({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1}})),Z(new Me("default:"+g.b.Undo,g.b.Undo)),Z(new ce({editorHandler:g.b.Redo,inputHandler:"redo",id:g.b.Redo,precondition:m.a.writable,kbOpts:{weight:H,kbExpr:m.a.textInputFocus,primary:2048|55,secondary:[2048|1024|56],mac:{primary:2048|1024|56}},menuOpts:{menuId:17,group:"1_do",title:I.a({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2}})),Z(new Me("default:"+g.b.Redo,g.b.Redo));function Ve(_e,ue){Z(new Me("default:"+_e,_e)),Z(new Me(_e,_e,ue))}Ve(g.b.Type,{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]}),Ve(g.b.ReplacePreviousChar),Ve(g.b.CompositionStart),Ve(g.b.CompositionEnd),Ve(g.b.Paste),Ve(g.b.Cut)},LLZ0:function(wt,P,r){},LrZB:function(wt,P,r){},LzG9:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:function(){return r.e(246).then(r.bind(null,"i7BE"))}})},MgSW:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:function(){return r.e(230).then(r.bind(null,"kBTG"))}})},Mn97:function(wt,P,r){"use strict";r.d(P,"a",function(){return U}),r.d(P,"b",function(){return j});var I=r("bN5T"),oe=r("YK2C"),ne=function(){var G=function(E,x){return G=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(K,D){K.__proto__=D}||function(K,D){for(var A in D)D.hasOwnProperty(A)&&(K[A]=D[A])},G(E,x)};return function(R,E){G(R,E);function x(){this.constructor=R}R.prototype=E===null?Object.create(E):(x.prototype=E.prototype,new x)}}(),N=function(G,R,E,x){function K(D){return D instanceof E?D:new E(function(A){A(D)})}return new(E||(E=Promise))(function(D,A){function te(f){try{_(x.next(f))}catch(p){A(p)}}function z(f){try{_(x.throw(f))}catch(p){A(p)}}function _(f){f.done?D(f.value):K(f.value).then(te,z)}_((x=x.apply(G,R||[])).next())})},F=function(G,R){var E={label:0,sent:function(){if(D[0]&1)throw D[1];return D[1]},trys:[],ops:[]},x,K,D,A;return A={next:te(0),throw:te(1),return:te(2)},typeof Symbol=="function"&&(A[Symbol.iterator]=function(){return this}),A;function te(_){return function(f){return z([_,f])}}function z(_){if(x)throw new TypeError("Generator is already executing.");for(;E;)try{if(x=1,K&&(D=_[0]&2?K.return:_[0]?K.throw||((D=K.return)&&D.call(K),0):K.next)&&!(D=D.call(K,_[1])).done)return D;(K=0,D)&&(_=[_[0]&2,D.value]);switch(_[0]){case 0:case 1:D=_;break;case 4:return E.label++,{value:_[1],done:!1};case 5:E.label++,K=_[1],_=[0];continue;case 7:_=E.ops.pop(),E.trys.pop();continue;default:if(!(D=E.trys,D=D.length>0&&D[D.length-1])&&(_[0]===6||_[0]===2)){E=0;continue}if(_[0]===3&&(!D||_[1]>D[0]&&_[1]=0;pe--)(Ie=we[pe])&&(Te=(ve<3?Ie(Te):ve>3?Ie(k,ee,Te):Ie(k,ee))||Te);return ve>3&&Te&&Object.defineProperty(k,ee,Te),Te},re=function(){for(var we=0,k=0,ee=arguments.length;k=0){var Te=this.renderedElements[ve];this.trait.unrender(Pe),Te.index=ee}else{var Te={index:ee,templateData:Pe};this.renderedElements.push(Te)}this.trait.renderIndex(ee,Pe)},we.prototype.splice=function(k,ee,Pe){for(var ve=[],Te=0,Ie=this.renderedElements;Te=k+ee&&ve.push({index:pe.index+Pe-ee,templateData:pe.templateData})}this.renderedElements=ve},we.prototype.renderIndexes=function(k){for(var ee=0,Pe=this.renderedElements;ee-1&&this.trait.renderIndex(Te,Ie)}},we.prototype.disposeTemplate=function(k){var ee=Object(F.k)(this.renderedElements,function(Pe){return Pe.templateData===k});if(ee<0)return;this.renderedElements.splice(ee,1)},we}(),Ee=function(){function we(k){this._trait=k,this.indexes=[],this.sortedIndexes=[],this._onChange=new x.a,this.onChange=this._onChange.event}return Object.defineProperty(we.prototype,"trait",{get:function(){return this._trait},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"renderer",{get:function(){return new he(this)},enumerable:!0,configurable:!0}),we.prototype.splice=function(k,ee,Pe){var ve=Pe.length-ee,Te=k+ee,Ie=re(this.sortedIndexes.filter(function(pe){return pe=Te}).map(function(pe){return pe+ve}));this.renderer.splice(k,ee,Pe.length),this._set(Ie,Ie)},we.prototype.renderIndex=function(k,ee){j.X(ee,this._trait,this.contains(k))},we.prototype.unrender=function(k){j.O(k,this._trait)},we.prototype.set=function(k,ee){return this._set(k,re(k).sort(Xe),ee)},we.prototype._set=function(k,ee,Pe){var ve=this.indexes,Te=this.sortedIndexes;this.indexes=k,this.sortedIndexes=ee;var Ie=Xt(Te,k);return this.renderer.renderIndexes(Ie),this._onChange.fire({indexes:k,browserEvent:Pe}),ve},we.prototype.get=function(){return this.indexes},we.prototype.contains=function(k){return Object(F.c)(this.sortedIndexes,k,Xe)>=0},we.prototype.dispose=function(){Object(ne.f)(this._onChange)},H([U.a],we.prototype,"renderer",null),we}(),Se=function(we){w(k,we);function k(){return we.call(this,"focused")||this}return k.prototype.renderIndex=function(ee,Pe){we.prototype.renderIndex.call(this,ee,Pe),this.contains(ee)?Pe.setAttribute("aria-selected","true"):Pe.removeAttribute("aria-selected")},k}(Ee),q=function(){function we(k,ee,Pe){this.trait=k,this.view=ee,this.identityProvider=Pe}return we.prototype.splice=function(k,ee,Pe){var ve=this;if(!this.identityProvider)return this.trait.splice(k,ee,Pe.map(function(){return!1}));var Te=this.trait.get().map(function(pe){return ve.identityProvider.getId(ve.view.element(pe)).toString()}),Ie=Pe.map(function(pe){return Te.indexOf(ve.identityProvider.getId(pe).toString())>-1});this.trait.splice(k,ee,Ie)},we}();function Z(we){return we.tagName==="INPUT"||we.tagName==="TEXTAREA"}var ce=function(){function we(k,ee,Pe){this.list=k,this.view=ee,this.disposables=new ne.b;var ve=Pe.multipleSelectionSupport!==!1;this.openController=Pe.openController||me;var Te=x.b.chain(Object(K.a)(ee.domNode,"keydown")).filter(function(Ie){return!Z(Ie.target)}).map(function(Ie){return new E.a(Ie)});Te.filter(function(Ie){return Ie.keyCode===3}).on(this.onEnter,this,this.disposables),Te.filter(function(Ie){return Ie.keyCode===16}).on(this.onUpArrow,this,this.disposables),Te.filter(function(Ie){return Ie.keyCode===18}).on(this.onDownArrow,this,this.disposables),Te.filter(function(Ie){return Ie.keyCode===11}).on(this.onPageUpArrow,this,this.disposables),Te.filter(function(Ie){return Ie.keyCode===12}).on(this.onPageDownArrow,this,this.disposables),Te.filter(function(Ie){return Ie.keyCode===9}).on(this.onEscape,this,this.disposables),ve&&Te.filter(function(Ie){return(G.e?Ie.metaKey:Ie.ctrlKey)&&Ie.keyCode===31}).on(this.onCtrlA,this,this.disposables)}return we.prototype.onEnter=function(k){k.preventDefault(),k.stopPropagation(),this.list.setSelection(this.list.getFocus(),k.browserEvent),this.openController.shouldOpen(k.browserEvent)&&this.list.open(this.list.getFocus(),k.browserEvent)},we.prototype.onUpArrow=function(k){k.preventDefault(),k.stopPropagation(),this.list.focusPrevious(1,!1,k.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},we.prototype.onDownArrow=function(k){k.preventDefault(),k.stopPropagation(),this.list.focusNext(1,!1,k.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},we.prototype.onPageUpArrow=function(k){k.preventDefault(),k.stopPropagation(),this.list.focusPreviousPage(k.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},we.prototype.onPageDownArrow=function(k){k.preventDefault(),k.stopPropagation(),this.list.focusNextPage(k.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},we.prototype.onCtrlA=function(k){k.preventDefault(),k.stopPropagation(),this.list.setSelection(Object(F.u)(this.list.length),k.browserEvent),this.view.domNode.focus()},we.prototype.onEscape=function(k){k.preventDefault(),k.stopPropagation(),this.list.setSelection([],k.browserEvent),this.view.domNode.focus()},we.prototype.dispose=function(){this.disposables.dispose()},we}(),Me;(function(we){we[we.Idle=0]="Idle",we[we.Typing=1]="Typing"})(Me||(Me={}));var Ve=new(function(){function we(){}return we.prototype.mightProducePrintableCharacter=function(k){return k.ctrlKey||k.metaKey||k.altKey?!1:k.keyCode>=31&&k.keyCode<=56||k.keyCode>=21&&k.keyCode<=30||k.keyCode>=93&&k.keyCode<=102||k.keyCode>=80&&k.keyCode<=90},we}()),_e=function(){function we(k,ee,Pe,ve){this.list=k,this.view=ee,this.keyboardNavigationLabelProvider=Pe,this.delegate=ve,this.enabled=!1,this.state=Me.Idle,this.automaticKeyboardNavigation=!0,this.triggered=!1,this.enabledDisposables=new ne.b,this.disposables=new ne.b,this.updateOptions(k.options)}return we.prototype.updateOptions=function(k){var ee=typeof k.enableKeyboardNavigation=="undefined"?!0:!!k.enableKeyboardNavigation;ee?this.enable():this.disable(),typeof k.automaticKeyboardNavigation!="undefined"&&(this.automaticKeyboardNavigation=k.automaticKeyboardNavigation)},we.prototype.enable=function(){var k=this;if(this.enabled)return;var ee=x.b.chain(Object(K.a)(this.view.domNode,"keydown")).filter(function(Te){return!Z(Te.target)}).filter(function(){return k.automaticKeyboardNavigation||k.triggered}).map(function(Te){return new E.a(Te)}).filter(function(Te){return k.delegate.mightProducePrintableCharacter(Te)}).forEach(function(Te){Te.stopPropagation(),Te.preventDefault()}).map(function(Te){return Te.browserEvent.key}).event,Pe=x.b.debounce(ee,function(){return null},800),ve=x.b.reduce(x.b.any(ee,Pe),function(Te,Ie){return Ie===null?null:(Te||"")+Ie});ve(this.onInput,this,this.enabledDisposables),this.enabled=!0,this.triggered=!1},we.prototype.disable=function(){if(!this.enabled)return;this.enabledDisposables.clear(),this.enabled=!1,this.triggered=!1},we.prototype.onInput=function(k){if(!k){this.state=Me.Idle,this.triggered=!1;return}var ee=this.list.getFocus(),Pe=ee.length>0?ee[0]:0,ve=this.state===Me.Idle?1:0;this.state=Me.Typing;for(var Te=0;Te=0&&we[ve]===k-(ee-ve);)Pe.push(we[ve--]);for(Pe.reverse(),ve=ee;ve=we.length)ee.push(k[ve++]);else if(ve>=k.length)ee.push(we[Pe++]);else if(we[Pe]===k[ve]){ee.push(we[Pe]),Pe++,ve++;continue}else we[Pe]=we.length)ee.push(k[ve++]);else if(ve>=k.length)ee.push(we[Pe++]);else if(we[Pe]===k[ve]){Pe++,ve++;continue}else we[Pe]-1?ee:[k];return Pe},we.prototype.getDragURI=function(k){return this.dnd.getDragURI(k)},we.prototype.getDragLabel=function(k,ee){return this.dnd.getDragLabel?this.dnd.getDragLabel(k,ee):void 0},we.prototype.onDragStart=function(k,ee){this.dnd.onDragStart&&this.dnd.onDragStart(k,ee)},we.prototype.onDragOver=function(k,ee,Pe,ve){return this.dnd.onDragOver(k,ee,Pe,ve)},we.prototype.onDragEnd=function(k){this.dnd.onDragEnd&&this.dnd.onDragEnd(k)},we.prototype.drop=function(k,ee,Pe,ve){this.dnd.drop(k,ee,Pe,ve)},we}(),$e=function(){function we(k,ee,Pe,ve,Te){Te===void 0&&(Te=_t),this.user=k,this._options=Te,this.eventBufferer=new x.c,this.disposables=new ne.b,this._onDidOpen=new x.a,this.onDidOpen=this._onDidOpen.event,this._onDidPin=new x.a,this.didJustPressContextMenuKey=!1,this._onDidDispose=new x.a,this.onDidDispose=this._onDidDispose.event,this.focus=new Se,this.selection=new Ee("selected"),Object(f.g)(Te,tt,!1);var Ie=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=Te.accessibilityProvider,this.accessibilityProvider&&(Ie.push(new Ye(this.accessibilityProvider)),this.accessibilityProvider.onDidChangeActiveDescendant&&this.accessibilityProvider.onDidChangeActiveDescendant(this.onDidChangeActiveDescendant,this,this.disposables)),ve=ve.map(function(Tt){return new Ze(Tt.templateId,re(Ie,[Tt]))});var pe=B(B({},Te),{dnd:Te.dnd&&new ke(this,Te.dnd)});if(this.view=new z.b(ee,Pe,ve,pe),typeof Te.ariaRole!="string"?this.view.domNode.setAttribute("role",A.TREE):this.view.domNode.setAttribute("role",Te.ariaRole),Te.styleController)this.styleController=Te.styleController(this.view.domId);else{var nt=j.v(this.view.domNode);this.styleController=new ze(nt,this.view.domId)}if(this.spliceable=new p([new q(this.focus,this.view,Te.identityProvider),new q(this.selection,this.view,Te.identityProvider),this.view]),this.disposables.add(this.focus),this.disposables.add(this.selection),this.disposables.add(this.view),this.disposables.add(this._onDidDispose),this.onDidFocus=x.b.map(Object(K.a)(this.view.domNode,"focus",!0),function(){return null}),this.onDidBlur=x.b.map(Object(K.a)(this.view.domNode,"blur",!0),function(){return null}),this.disposables.add(new ue(this,this.view)),typeof Te.keyboardSupport!="boolean"||Te.keyboardSupport){var Et=new ce(this,this.view,Te);this.disposables.add(Et)}if(Te.keyboardNavigationLabelProvider){var Rt=Te.keyboardNavigationDelegate||Ve;this.typeLabelController=new _e(this,this.view,Te.keyboardNavigationLabelProvider,Rt),this.disposables.add(this.typeLabelController)}this.disposables.add(this.createMouseController(Te)),this.onFocusChange(this._onFocusChange,this,this.disposables),this.onSelectionChange(this._onSelectionChange,this,this.disposables),Te.ariaLabel&&this.view.domNode.setAttribute("aria-label",Object(oe.a)("aria list","{0}. Use the navigation keys to navigate.",Te.ariaLabel))}return Object.defineProperty(we.prototype,"onFocusChange",{get:function(){var ee=this;return x.b.map(this.eventBufferer.wrapEvent(this.focus.onChange),function(Pe){return ee.toListEvent(Pe)})},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"onSelectionChange",{get:function(){var ee=this;return x.b.map(this.eventBufferer.wrapEvent(this.selection.onChange),function(Pe){return ee.toListEvent(Pe)})},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"domId",{get:function(){return this.view.domId},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"onMouseClick",{get:function(){return this.view.onMouseClick},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"onMouseDblClick",{get:function(){return this.view.onMouseDblClick},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"onMouseMiddleClick",{get:function(){return this.view.onMouseMiddleClick},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"onMouseDown",{get:function(){return this.view.onMouseDown},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"onTouchStart",{get:function(){return this.view.onTouchStart},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"onTap",{get:function(){return this.view.onTap},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"onContextMenu",{get:function(){var ee=this,Pe=x.b.chain(Object(K.a)(this.view.domNode,"keydown")).map(function(Ie){return new E.a(Ie)}).filter(function(Ie){return ee.didJustPressContextMenuKey=Ie.keyCode===58||Ie.shiftKey&&Ie.keyCode===68}).filter(function(Ie){return Ie.preventDefault(),Ie.stopPropagation(),!1}).event,ve=x.b.chain(Object(K.a)(this.view.domNode,"keyup")).filter(function(){var Ie=ee.didJustPressContextMenuKey;return ee.didJustPressContextMenuKey=!1,Ie}).filter(function(){return ee.getFocus().length>0&&!!ee.view.domElement(ee.getFocus()[0])}).map(function(Ie){var pe=ee.getFocus()[0],nt=ee.view.element(pe),Et=ee.view.domElement(pe);return{index:pe,element:nt,anchor:Et,browserEvent:Ie}}).event,Te=x.b.chain(this.view.onContextMenu).filter(function(){return!ee.didJustPressContextMenuKey}).map(function(Ie){var pe=Ie.element,nt=Ie.index,Et=Ie.browserEvent;return{element:pe,index:nt,anchor:{x:Et.clientX+1,y:Et.clientY},browserEvent:Et}}).event;return x.b.any(Pe,ve,Te)},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"onKeyDown",{get:function(){return Object(K.a)(this.view.domNode,"keydown")},enumerable:!0,configurable:!0}),we.prototype.createMouseController=function(k){return new ye(this)},we.prototype.updateOptions=function(k){k===void 0&&(k={}),this._options=B(B({},this._options),k),this.typeLabelController&&this.typeLabelController.updateOptions(this._options)},Object.defineProperty(we.prototype,"options",{get:function(){return this._options},enumerable:!0,configurable:!0}),we.prototype.splice=function(k,ee,Pe){var ve=this;if(Pe===void 0&&(Pe=[]),k<0||k>this.view.length)throw new te(this.user,"Invalid start index: "+k);if(ee<0)throw new te(this.user,"Invalid delete count: "+ee);if(ee===0&&Pe.length===0)return;this.eventBufferer.bufferEvents(function(){return ve.spliceable.splice(k,ee,Pe)})},we.prototype.rerender=function(){this.view.rerender()},we.prototype.element=function(k){return this.view.element(k)},Object.defineProperty(we.prototype,"length",{get:function(){return this.view.length},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"contentHeight",{get:function(){return this.view.contentHeight},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"scrollTop",{get:function(){return this.view.getScrollTop()},set:function(ee){this.view.setScrollTop(ee)},enumerable:!0,configurable:!0}),we.prototype.domFocus=function(){this.view.domNode.focus()},we.prototype.layout=function(k,ee){this.view.layout(k,ee)},we.prototype.setSelection=function(k,ee){for(var Pe=0,ve=k;Pe=this.length)throw new te(this.user,"Invalid index "+Te)}this.selection.set(k,ee)},we.prototype.getSelection=function(){return this.selection.get()},we.prototype.getSelectedElements=function(){var k=this;return this.getSelection().map(function(ee){return k.view.element(ee)})},we.prototype.setFocus=function(k,ee){for(var Pe=0,ve=k;Pe=this.length)throw new te(this.user,"Invalid index "+Te)}this.focus.set(k,ee)},we.prototype.focusNext=function(k,ee,Pe,ve){if(k===void 0&&(k=1),ee===void 0&&(ee=!1),this.length===0)return;var Te=this.focus.get(),Ie=this.findNextIndex(Te.length>0?Te[0]+k:0,ee,ve);Ie>-1&&this.setFocus([Ie],Pe)},we.prototype.focusPrevious=function(k,ee,Pe,ve){if(k===void 0&&(k=1),ee===void 0&&(ee=!1),this.length===0)return;var Te=this.focus.get(),Ie=this.findPreviousIndex(Te.length>0?Te[0]-k:0,ee,ve);Ie>-1&&this.setFocus([Ie],Pe)},we.prototype.focusNextPage=function(k,ee){var Pe=this,ve=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);ve=ve===0?0:ve-1;var Te=this.view.element(ve),Ie=this.getFocusedElements()[0];if(Ie!==Te){var pe=this.findPreviousIndex(ve,!1,ee);pe>-1&&Ie!==this.view.element(pe)?this.setFocus([pe],k):this.setFocus([ve],k)}else{var nt=this.view.getScrollTop();this.view.setScrollTop(nt+this.view.renderHeight-this.view.elementHeight(ve)),this.view.getScrollTop()!==nt&&setTimeout(function(){return Pe.focusNextPage(k,ee)},0)}},we.prototype.focusPreviousPage=function(k,ee){var Pe=this,ve,Te=this.view.getScrollTop();Te===0?ve=this.view.indexAt(Te):ve=this.view.indexAfter(Te-1);var Ie=this.view.element(ve),pe=this.getFocusedElements()[0];if(pe!==Ie){var nt=this.findNextIndex(ve,!1,ee);nt>-1&&pe!==this.view.element(nt)?this.setFocus([nt],k):this.setFocus([ve],k)}else{var Et=Te;this.view.setScrollTop(Te-this.view.renderHeight),this.view.getScrollTop()!==Et&&setTimeout(function(){return Pe.focusPreviousPage(k,ee)},0)}},we.prototype.focusLast=function(k,ee){if(this.length===0)return;var Pe=this.findPreviousIndex(this.length-1,!1,ee);Pe>-1&&this.setFocus([Pe],k)},we.prototype.focusFirst=function(k,ee){if(this.length===0)return;var Pe=this.findNextIndex(0,!1,ee);Pe>-1&&this.setFocus([Pe],k)},we.prototype.findNextIndex=function(k,ee,Pe){ee===void 0&&(ee=!1);for(var ve=0;ve=this.length&&!ee)return-1;if(k=k%this.length,!Pe||Pe(this.element(k)))return k;k++}return-1},we.prototype.findPreviousIndex=function(k,ee,Pe){ee===void 0&&(ee=!1);for(var ve=0;ve=this.length)throw new te(this.user,"Invalid index "+k);var Pe=this.view.getScrollTop(),ve=this.view.elementTop(k),Te=this.view.elementHeight(k);if(Object(N.h)(ee)){var Ie=Te-this.view.renderHeight;this.view.setScrollTop(Ie*Object(g.a)(ee,0,1)+ve)}else{var pe=ve+Te,nt=Pe+this.view.renderHeight;ve=nt||(ve=nt&&this.view.setScrollTop(pe-this.view.renderHeight))}},we.prototype.getRelativeTop=function(k){if(k<0||k>=this.length)throw new te(this.user,"Invalid index "+k);var ee=this.view.getScrollTop(),Pe=this.view.elementTop(k),ve=this.view.elementHeight(k);if(Peee+this.view.renderHeight)return null;var Te=ve-this.view.renderHeight;return Math.abs((ee-Pe)/Te)},we.prototype.getHTMLElement=function(){return this.view.domNode},we.prototype.open=function(k,ee){for(var Pe=this,ve=0,Te=k;ve=this.length)throw new te(this.user,"Invalid index "+Ie)}this._onDidOpen.fire({indexes:k,elements:k.map(function(pe){return Pe.view.element(pe)}),browserEvent:ee})},we.prototype.pin=function(k,ee){for(var Pe=this,ve=0,Te=k;ve=this.length)throw new te(this.user,"Invalid index "+Ie)}this._onDidPin.fire({indexes:k,elements:k.map(function(pe){return Pe.view.element(pe)}),browserEvent:ee})},we.prototype.style=function(k){this.styleController.style(k)},we.prototype.toListEvent=function(k){var ee=this,Pe=k.indexes,ve=k.browserEvent;return{indexes:Pe,elements:Pe.map(function(Te){return ee.view.element(Te)}),browserEvent:ve}},we.prototype._onFocusChange=function(){var k=this.focus.get();j.X(this.view.domNode,"element-focused",k.length>0),this.onDidChangeActiveDescendant()},we.prototype.onDidChangeActiveDescendant=function(){var k,ee=this.focus.get();if(ee.length>0){var Pe=void 0;((k=this.accessibilityProvider)===null||k===void 0?void 0:k.getActiveDescendantId)&&(Pe=this.accessibilityProvider.getActiveDescendantId(this.view.element(ee[0]))),this.view.domNode.setAttribute("aria-activedescendant",Pe||this.view.getElementDomId(ee[0]))}else this.view.domNode.removeAttribute("aria-activedescendant")},we.prototype._onSelectionChange=function(){var k=this.selection.get();j.X(this.view.domNode,"selection-none",k.length===0),j.X(this.view.domNode,"selection-single",k.length===1),j.X(this.view.domNode,"selection-multiple",k.length>1)},we.prototype.dispose=function(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidOpen.dispose(),this._onDidPin.dispose(),this._onDidDispose.dispose()},H([U.a],we.prototype,"onFocusChange",null),H([U.a],we.prototype,"onSelectionChange",null),H([U.a],we.prototype,"onContextMenu",null),we}()},NCja:function(wt,P,r){},NFtf:function(wt,P,r){"use strict";r.r(P),r.d(P,"LanguageServiceDefaultsImpl",function(){return N});var I=r("1lNs"),oe=r.n(I);"use strict";var ne=monaco.Emitter,N=function(){function E(x,K,D){this._onDidChange=new ne,this._languageId=x,this.setDiagnosticsOptions(K),this.setModeConfiguration(D)}return Object.defineProperty(E.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"diagnosticsOptions",{get:function(){return this._diagnosticsOptions},enumerable:!0,configurable:!0}),E.prototype.setDiagnosticsOptions=function(x){this._diagnosticsOptions=x||Object.create(null),this._onDidChange.fire(this)},E.prototype.setModeConfiguration=function(x){this._modeConfiguration=x||Object.create(null),this._onDidChange.fire(this)},E}(),F={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1},U={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},j=new N("json",F,U);function G(){return{jsonDefaults:j}}monaco.languages.json=G();function R(){return r.e(199).then(r.bind(null,"cm7A"))}monaco.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]}),monaco.languages.onLanguage("json",function(){R().then(function(E){return E.setupMode(j)})})},NIjb:function(wt,P,r){"use strict";r.d(P,"a",function(){return I}),r.d(P,"b",function(){return N});function I(j,G){G===void 0&&(G=0);switch(typeof j){case"object":return j===null?oe(349,G):Array.isArray(j)?F(j,G):U(j,G);case"string":return N(j,G);case"boolean":return ne(j,G);case"number":return oe(j,G);case"undefined":return oe(0,937);default:return oe(0,617)}}function oe(j,G){return(G<<5)-G+j|0}function ne(j,G){return oe(j?433:863,G)}function N(j,G){G=oe(149417,G);for(var R=0,E=j.length;R200)return N;if(typeof N=="object"){switch(N.$mid){case 1:return I.a.revive(N);case 2:return new RegExp(N.source,N.flags)}for(var U in N)Object.hasOwnProperty.call(N,U)&&(N[U]=ne(N[U],F+1))}return N}},PoD0:function(wt,P,r){"use strict";r.d(P,"b",function(){return I}),r.d(P,"a",function(){return oe}),r.d(P,"c",function(){return N}),r.d(P,"d",function(){return F});var I;(function(U){U.serviceIds=new Map,U.DI_TARGET="$di$target",U.DI_DEPENDENCIES="$di$dependencies";function j(G){return G[U.DI_DEPENDENCIES]||[]}U.getServiceDependencies=j})(I||(I={}));var oe=N("instantiationService");function ne(U,j,G,R){j[I.DI_TARGET]===j?j[I.DI_DEPENDENCIES].push({id:U,index:G,optional:R}):(j[I.DI_DEPENDENCIES]=[{id:U,index:G,optional:R}],j[I.DI_TARGET]=j)}function N(U){if(I.serviceIds.has(U))return I.serviceIds.get(U);var j=function G(R,E,x){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");ne(G,R,x,!1)};return j.toString=function(){return U},I.serviceIds.set(U,j),j}function F(U){return function(j,G,R){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");ne(U,j,R,!0)}}},Q5rX:function(wt,P,r){"use strict";r.d(P,"a",function(){return oe});var I=r("vqGt"),oe=function(){function N(F,U){this._tokens=F,this._tokensCount=this._tokens.length>>>1,this._text=U}return N.prototype.equals=function(F){return F instanceof N?this.slicedEquals(F,0,this._tokensCount):!1},N.prototype.slicedEquals=function(F,U,j){if(this._text!==F._text)return!1;if(this._tokensCount!==F._tokensCount)return!1;for(var G=U<<1,R=G+(j<<1),E=G;E0?this._tokens[F-1<<1]:0},N.prototype.getMetadata=function(F){var U=this._tokens[(F<<1)+1];return U},N.prototype.getLanguageId=function(F){var U=this._tokens[(F<<1)+1];return I.x.getLanguageId(U)},N.prototype.getStandardTokenType=function(F){var U=this._tokens[(F<<1)+1];return I.x.getTokenType(U)},N.prototype.getForeground=function(F){var U=this._tokens[(F<<1)+1];return I.x.getForeground(U)},N.prototype.getClassName=function(F){var U=this._tokens[(F<<1)+1];return I.x.getClassNameFromMetadata(U)},N.prototype.getInlineStyle=function(F,U){var j=this._tokens[(F<<1)+1];return I.x.getInlineStyleFromMetadata(j,U)},N.prototype.getEndOffset=function(F){return this._tokens[F<<1]},N.prototype.findTokenIndexAtOffset=function(F){return N.findIndexInTokensArray(this._tokens,F)},N.prototype.inflate=function(){return this},N.prototype.sliceAndInflate=function(F,U,j){return new ne(this,F,U,j)},N.convertToEndOffset=function(F,U){for(var j=F.length>>>1,G=j-1,R=0;R>>1)-1;jU&&(G=R)}return j},N}(),ne=function(){function N(F,U,j,G){this._source=F,this._startOffset=U,this._endOffset=j,this._deltaOffset=G,this._firstTokenIndex=F.findTokenIndexAtOffset(U),this._tokensCount=0;for(var R=this._firstTokenIndex,E=F.getCount();R=j)break;this._tokensCount++}}return N.prototype.equals=function(F){return F instanceof N?this._startOffset===F._startOffset&&this._endOffset===F._endOffset&&this._deltaOffset===F._deltaOffset&&this._source.slicedEquals(F._source,this._firstTokenIndex,this._tokensCount):!1},N.prototype.getCount=function(){return this._tokensCount},N.prototype.getForeground=function(F){return this._source.getForeground(this._firstTokenIndex+F)},N.prototype.getEndOffset=function(F){var U=this._source.getEndOffset(this._firstTokenIndex+F);return Math.min(this._endOffset,U)-this._startOffset+this._deltaOffset},N.prototype.getClassName=function(F){return this._source.getClassName(this._firstTokenIndex+F)},N.prototype.getInlineStyle=function(F,U){return this._source.getInlineStyle(this._firstTokenIndex+F,U)},N.prototype.findTokenIndexAtOffset=function(F){return this._source.findTokenIndexAtOffset(F+this._startOffset-this._deltaOffset)-this._firstTokenIndex},N}()},QHMs:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"redis",extensions:[".redis"],aliases:["redis"],loader:function(){return r.e(238).then(r.bind(null,"FJ/h"))}})},QMTm:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:function(){return r.e(201).then(r.bind(null,"z260"))}})},QWes:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"go",extensions:[".go"],aliases:["Go"],loader:function(){return r.e(212).then(r.bind(null,"vi59"))}})},QqjT:function(wt,P,r){"use strict";r.d(P,"e",function(){return ne}),r.d(P,"f",function(){return N}),r.d(P,"g",function(){return F}),r.d(P,"d",function(){return j}),r.d(P,"a",function(){return G}),r.d(P,"b",function(){return R}),r.d(P,"c",function(){return E});var I=function(){function x(){this.listeners=[],this.unexpectedErrorHandler=function(K){setTimeout(function(){throw K.stack?new Error(K.message+` `+K.stack):K},0)}}return x.prototype.emit=function(K){this.listeners.forEach(function(D){D(K)})},x.prototype.onUnexpectedError=function(K){this.unexpectedErrorHandler(K),this.emit(K)},x.prototype.onUnexpectedExternalError=function(K){this.unexpectedErrorHandler(K)},x}(),oe=new I;function ne(x){j(x)||oe.onUnexpectedError(x);return}function N(x){j(x)||oe.onUnexpectedExternalError(x);return}function F(x){if(x instanceof Error){var K=x.name,D=x.message,A=x.stacktrace||x.stack;return{$isError:!0,name:K,message:D,stack:A}}return x}var U="Canceled";function j(x){return x instanceof Error&&x.name===U&&x.message===U}function G(){var x=new Error(U);return x.name=x.message,x}function R(x){return x?new Error("Illegal argument: "+x):new Error("Illegal argument")}function E(x){return x?new Error("Illegal state: "+x):new Error("Illegal state")}},"Qr/v":function(wt,P,r){"use strict";r.d(P,"a",function(){return oe});var I=r("PoD0"),oe=Object(I.c)("keybindingService")},Qun0:function(wt,P,r){"use strict";r.d(P,"b",function(){return U}),r.d(P,"a",function(){return j}),r.d(P,"f",function(){return G}),r.d(P,"e",function(){return E}),r.d(P,"d",function(){return K}),r.d(P,"c",function(){return D});var I=r("QqjT"),oe=function(){function A(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}return A.prototype.define=function(te,z){this._keyCodeToStr[te]=z,this._strToKeyCode[z.toLowerCase()]=te},A.prototype.keyCodeToStr=function(te){return this._keyCodeToStr[te]},A.prototype.strToKeyCode=function(te){return this._strToKeyCode[te.toLowerCase()]||0},A}(),ne=new oe,N=new oe,F=new oe;(function(){function A(te,z,_,f){_===void 0&&(_=z),f===void 0&&(f=_),ne.define(te,z),N.define(te,_),F.define(te,f)}A(0,"unknown"),A(1,"Backspace"),A(2,"Tab"),A(3,"Enter"),A(4,"Shift"),A(5,"Ctrl"),A(6,"Alt"),A(7,"PauseBreak"),A(8,"CapsLock"),A(9,"Escape"),A(10,"Space"),A(11,"PageUp"),A(12,"PageDown"),A(13,"End"),A(14,"Home"),A(15,"LeftArrow","Left"),A(16,"UpArrow","Up"),A(17,"RightArrow","Right"),A(18,"DownArrow","Down"),A(19,"Insert"),A(20,"Delete"),A(21,"0"),A(22,"1"),A(23,"2"),A(24,"3"),A(25,"4"),A(26,"5"),A(27,"6"),A(28,"7"),A(29,"8"),A(30,"9"),A(31,"A"),A(32,"B"),A(33,"C"),A(34,"D"),A(35,"E"),A(36,"F"),A(37,"G"),A(38,"H"),A(39,"I"),A(40,"J"),A(41,"K"),A(42,"L"),A(43,"M"),A(44,"N"),A(45,"O"),A(46,"P"),A(47,"Q"),A(48,"R"),A(49,"S"),A(50,"T"),A(51,"U"),A(52,"V"),A(53,"W"),A(54,"X"),A(55,"Y"),A(56,"Z"),A(57,"Meta"),A(58,"ContextMenu"),A(59,"F1"),A(60,"F2"),A(61,"F3"),A(62,"F4"),A(63,"F5"),A(64,"F6"),A(65,"F7"),A(66,"F8"),A(67,"F9"),A(68,"F10"),A(69,"F11"),A(70,"F12"),A(71,"F13"),A(72,"F14"),A(73,"F15"),A(74,"F16"),A(75,"F17"),A(76,"F18"),A(77,"F19"),A(78,"NumLock"),A(79,"ScrollLock"),A(80,";",";","OEM_1"),A(81,"=","=","OEM_PLUS"),A(82,",",",","OEM_COMMA"),A(83,"-","-","OEM_MINUS"),A(84,".",".","OEM_PERIOD"),A(85,"/","/","OEM_2"),A(86,"`","`","OEM_3"),A(110,"ABNT_C1"),A(111,"ABNT_C2"),A(87,"[","[","OEM_4"),A(88,"\\","\\","OEM_5"),A(89,"]","]","OEM_6"),A(90,"'","'","OEM_7"),A(91,"OEM_8"),A(92,"OEM_102"),A(93,"NumPad0"),A(94,"NumPad1"),A(95,"NumPad2"),A(96,"NumPad3"),A(97,"NumPad4"),A(98,"NumPad5"),A(99,"NumPad6"),A(100,"NumPad7"),A(101,"NumPad8"),A(102,"NumPad9"),A(103,"NumPad_Multiply"),A(104,"NumPad_Add"),A(105,"NumPad_Separator"),A(106,"NumPad_Subtract"),A(107,"NumPad_Decimal"),A(108,"NumPad_Divide")})();var U;(function(A){function te(g){return ne.keyCodeToStr(g)}A.toString=te;function z(g){return ne.strToKeyCode(g)}A.fromString=z;function _(g){return N.keyCodeToStr(g)}A.toUserSettingsUS=_;function f(g){return F.keyCodeToStr(g)}A.toUserSettingsGeneral=f;function p(g){return N.strToKeyCode(g)||F.strToKeyCode(g)}A.fromUserSettings=p})(U||(U={}));function j(A,te){var z=(te&65535)<<16>>>0;return(A|z)>>>0}function G(A,te){if(A===0)return null;var z=(A&65535)>>>0,_=(A&4294901760)>>>16;return _!==0?new x([R(z,te),R(_,te)]):new x([R(z,te)])}function R(A,te){var z=!!(A&2048),_=!!(A&256),f=te===2?_:z,p=!!(A&1024),g=!!(A&512),m=te===2?z:_,w=A&255;return new E(f,p,g,m,w)}var E=function(){function A(te,z,_,f,p){this.ctrlKey=te,this.shiftKey=z,this.altKey=_,this.metaKey=f,this.keyCode=p}return A.prototype.equals=function(te){return this.ctrlKey===te.ctrlKey&&this.shiftKey===te.shiftKey&&this.altKey===te.altKey&&this.metaKey===te.metaKey&&this.keyCode===te.keyCode},A.prototype.isModifierKey=function(){return this.keyCode===0||this.keyCode===5||this.keyCode===57||this.keyCode===6||this.keyCode===4},A.prototype.toChord=function(){return new x([this])},A.prototype.isDuplicateModifierCase=function(){return this.ctrlKey&&this.keyCode===5||this.shiftKey&&this.keyCode===4||this.altKey&&this.keyCode===6||this.metaKey&&this.keyCode===57},A}(),x=function(){function A(te){if(te.length===0)throw Object(I.b)("parts");this.parts=te}return A.prototype.equals=function(te){if(te===null)return!1;if(this.parts.length!==te.parts.length)return!1;for(var z=0;z=0,F=D.indexOf("Macintosh")>=0,R=D.indexOf("Macintosh")>=0&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,U=D.indexOf("Linux")>=0,G=!0,E=navigator.language,x=E;else if(typeof I=="object"){N=I.platform==="win32",F=I.platform==="darwin",U=I.platform==="linux",E=ne,x=ne;var te=Object({NODE_ENV:"production"}).VSCODE_NLS_CONFIG;if(te)try{var z=JSON.parse(te),_=z.availableLanguages["*"];E=z.locale,x=_||ne,K=z._translationsConfigFile}catch(q){}j=!0}var f=0;F?f=1:N?f=3:U&&(f=2);var p=N,g=F,m=U,w=j,B=G,H=R,re=typeof self=="object"?self:typeof oe=="object"?oe:{},he=re,Ee=function(){if(he.setImmediate)return he.setImmediate.bind(he);if(typeof he.postMessage=="function"&&!he.importScripts){var Z=[];he.addEventListener("message",function(Ve){if(Ve.data&&Ve.data.vscodeSetImmediateId)for(var _e=0,ue=Z.length;_e=H.actionsList.children.length?(H.actionsList.appendChild(Se),H.viewItems.push(q)):(H.actionsList.insertBefore(Se,H.actionsList.children[he]),H.viewItems.splice(he,0,q),he++)})},m.prototype.clear=function(){this.viewItems=Object(F.f)(this.viewItems),j.s(this.actionsList)},m.prototype.isEmpty=function(){return this.viewItems.length===0},m.prototype.focus=function(w){var B=!1,H=void 0;w===void 0?B=!0:typeof w=="number"?H=w:typeof w=="boolean"&&(B=w),B&&typeof this.focusedItem=="undefined"?(this.focusedItem=this.viewItems.length-1,this.focusNext()):(H!==void 0&&(this.focusedItem=H),this.updateFocus())},m.prototype.focusNext=function(){typeof this.focusedItem=="undefined"&&(this.focusedItem=this.viewItems.length-1);var w=this.focusedItem,B;do this.focusedItem=(this.focusedItem+1)%this.viewItems.length,B=this.viewItems[this.focusedItem];while(this.focusedItem!==w&&!B.isEnabled());this.focusedItem===w&&!B.isEnabled()&&(this.focusedItem=void 0),this.updateFocus()},m.prototype.focusPrevious=function(){typeof this.focusedItem=="undefined"&&(this.focusedItem=0);var w=this.focusedItem,B;do this.focusedItem=this.focusedItem-1,this.focusedItem<0&&(this.focusedItem=this.viewItems.length-1),B=this.viewItems[this.focusedItem];while(this.focusedItem!==w&&!B.isEnabled());this.focusedItem===w&&!B.isEnabled()&&(this.focusedItem=void 0),this.updateFocus(!0)},m.prototype.updateFocus=function(w,B){typeof this.focusedItem=="undefined"&&this.actionsList.focus({preventScroll:B});for(var H=0;H0&&Me[Me.length-1])&&(se[0]===6||se[0]===2)){q=0;continue}if(se[0]===3&&(!Me||se[1]>Me[0]&&se[1]0&&!q.providerFilter.has(ze)?void 0:Promise.resolve(ze.provideCompletionItems(Ee,Se,Z,ce)).then(function(tt){var _t=se.length;if(tt){for(var Pt=0,Xt=tt.suggestions||[];PtSe.sortTextLow)return 1}return Ee.completion.labelSe.completion.label?1:Ee.completion.kind-Se.completion.kind}function m(Ee,Se){if(Ee.completion.kind!==Se.completion.kind){if(Ee.completion.kind===25)return-1;if(Se.completion.kind===25)return 1}return g(Ee,Se)}function w(Ee,Se){if(Ee.completion.kind!==Se.completion.kind){if(Ee.completion.kind===25)return 1;if(Se.completion.kind===25)return-1}return g(Ee,Se)}var B=new Map;B.set(0,m),B.set(2,w),B.set(1,g);function H(Ee){return B.get(Ee)}Object(N.e)("_executeCompletionItemProvider",function(Ee,Se,q){return K(void 0,void 0,void 0,function(){var Z,ce,Me,Ve,_e,ue,se,fe;return D(this,function(ie){switch(ie.label){case 0:return Z={incomplete:!1,suggestions:[]},ce=new x.b,Me=[],Ve=q.maxItemsToResolve||0,[4,p(Ee,Se)];case 1:for(_e=ie.sent(),ue=0,se=_e;ueU.length)return!1;if(G){var E=Object(I.N)(U,j);if(!E)return!1;if(j.length===U.length)return!0;var x=j.length;return j.charAt(j.length-1)===R&&x--,U.charAt(x)===R}return j.charAt(j.length-1)!==R&&(j+=R),U.indexOf(j)===0}function F(U){return U>=65&&U<=90||U>=97&&U<=122}},UFql:function(wt,P,r){"use strict";r.d(P,"a",function(){return oe}),r.d(P,"b",function(){return F});var I=r("yBOt"),oe=function(){function U(j,G,R,E){this.startColumn=j,this.endColumn=G,this.className=R,this.type=E}return U._equals=function(j,G){return j.startColumn===G.startColumn&&j.endColumn===G.endColumn&&j.className===G.className&&j.type===G.type},U.equalsArr=function(j,G){var R=j.length,E=G.length;if(R!==E)return!1;for(var x=0;xG)continue;if(z.isEmpty()&&(te.type===0||te.type===3))continue;var _=z.startLineNumber===G?z.startColumn:R,f=z.endLineNumber===G?z.endColumn:E;x[K++]=new U(_,f,te.inlineClassName,te.type)}return x},U.compare=function(j,G){return j.startColumn===G.startColumn?j.endColumn===G.endColumn?j.classNameG.className?1:0:j.endColumn-G.endColumn:j.startColumn-G.startColumn},U}(),ne=function(){function U(j,G,R){this.startOffset=j,this.endOffset=G,this.className=R}return U}(),N=function(){function U(){this.stopOffsets=[],this.classNames=[],this.count=0}return U.prototype.consumeLowerThan=function(j,G,R){for(;this.count>0&&this.stopOffsets[0]0&&G=j){this.stopOffsets.splice(R,0,j),this.classNames.splice(R,0,G);break}this.count++;return},U}(),F=function(){function U(){}return U.normalize=function(j,G){if(G.length===0)return[];for(var R=[],E=new N,x=0,K=0,D=G.length;K1){var f=j.charCodeAt(te-2);I.z(f)&&te--}if(z>1){var f=j.charCodeAt(z-2);I.z(f)&&z--}var p=te-1,g=z-2;x=E.consumeLowerThan(p,x,R),E.count===0&&(x=p),E.insert(g,_)}return E.consumeLowerThan(1073741824,x,R),R},U}()},UJ5a:function(wt,P,r){},UO9b:function(wt,P,r){"use strict";r.d(P,"a",function(){return oe});var I=r("/W++");function oe(ne){return ne&&typeof ne.getEditorType=="function"?ne.getEditorType()===I.a.ICodeEditor:!1}},UgoW:function(wt,P,r){},Uq4v:function(wt,P,r){"use strict";r.d(P,"a",function(){return ne});var I=r("mTMv"),oe=r("S7i+"),ne={clipboard:{writeText:oe.f||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:oe.f||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText),richText:function(){if(I.i)return!1;if(I.e){var N=navigator.userAgent.indexOf("Edge/"),F=parseInt(navigator.userAgent.substring(N+5,navigator.userAgent.indexOf(".",N)),10);if(!F||F>=12&&F<=16)return!1}return!0}()},keyboard:function(){return oe.f||I.l?0:navigator.keyboard||I.k?1:2}(),touch:"ontouchstart"in window||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0,pointerEvents:window.PointerEvent&&("ontouchstart"in window||window.navigator.maxTouchPoints>0||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0)}},V0RK:function(wt,P,r){"use strict";r.d(P,"a",function(){return I});var I=function(){function oe(ne,N){this.lineNumber=ne,this.column=N}return oe.prototype.with=function(ne,N){return ne===void 0&&(ne=this.lineNumber),N===void 0&&(N=this.column),ne===this.lineNumber&&N===this.column?this:new oe(ne,N)},oe.prototype.delta=function(ne,N){return ne===void 0&&(ne=0),N===void 0&&(N=0),this.with(this.lineNumber+ne,this.column+N)},oe.prototype.equals=function(ne){return oe.equals(this,ne)},oe.equals=function(ne,N){return!ne&&!N?!0:!!ne&&!!N&&ne.lineNumber===N.lineNumber&&ne.column===N.column},oe.prototype.isBefore=function(ne){return oe.isBefore(this,ne)},oe.isBefore=function(ne,N){return ne.lineNumber0){g=w[0].getStartPosition();var B=p.getTopForPosition(g.lineNumber,g.column);m=p.getScrollTop()-B}}return new f(g,m)},f.prototype.restore=function(p){if(this._visiblePosition){var g=p.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);p.setScrollTop(g+this._visiblePositionScrollDelta)}},f}()},VV9f:function(wt,P,r){"use strict";r.d(P,"f",function(){return N}),r.d(P,"b",function(){return Ee}),r.d(P,"c",function(){return Se}),r.d(P,"a",function(){return ye}),r.d(P,"d",function(){return ze}),r.d(P,"e",function(){return Ye});var I=r("emi/"),oe=r("yBOt");function ne(){for(var we=[],k=0;k0?[{start:0,end:k.length}]:[]:null}function U(we,k){var ee=k.toLowerCase().indexOf(we.toLowerCase());return ee===-1?null:[{start:ee,end:ee+we.length}]}function j(we,k){return G(we.toLowerCase(),k.toLowerCase(),0,0)}function G(we,k,ee,Pe){if(ee===we.length)return[];if(Pe===k.length)return null;if(we[ee]===k[Pe]){var ve=null;return(ve=G(we,k,ee+1,Pe+1))?te({start:Pe,end:Pe+1},ve):null}return G(we,k,ee,Pe+1)}function R(we){return 97<=we&&we<=122}function E(we){return 65<=we&&we<=90}function x(we){return 48<=we&&we<=57}function K(we){return we===32||we===9||we===10||we===13}var D=new Set;"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?".split("").forEach(function(we){return D.add(we.charCodeAt(0))});function A(we){return R(we)||E(we)||x(we)}function te(we,k){return k.length===0?k=[we]:we.end===k[0].start?k[0].start=we.start:k.unshift(we),k}function z(we,k){for(var ee=k;ee0&&!A(we.charCodeAt(ee-1)))return ee}return we.length}function _(we,k,ee,Pe){if(ee===we.length)return[];if(Pe===k.length)return null;if(we[ee]!==k[Pe].toLowerCase())return null;var ve=null,Te=Pe+1;for(ve=_(we,k,ee+1,Pe+1);!ve&&(Te=z(k,Te)).6}function g(we){var k=we.upperPercent,ee=we.lowerPercent,Pe=we.alphaPercent,ve=we.numericPercent;return ee>.2&&k<.8&&Pe>.6&&ve<.2}function m(we){for(var k=0,ee=0,Pe=0,ve=0,Te=0;Te60)return null;var ee=f(k);if(!g(ee)){if(!p(ee))return null;k=k.toLowerCase()}var Pe=null,ve=0;for(we=we.toLowerCase();ve=0)nt+=1,pe+=Math.pow(2,Tt),Et=Tt+1;else if(pe!==0)break}return[nt,pe,Te]}function Se(we){if(typeof we=="undefined")return[];for(var k=we[1].toString(2),ee=we[2],Pe=[],ve=ee;ve=we.length)return!1;var ee=we.charCodeAt(k);switch(ee){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:return!0;default:return!1}}function ie(we,k){if(k<0||k>=we.length)return!1;var ee=we.charCodeAt(k);switch(ee){case 32:case 9:return!0;default:return!1}}function J(we,k,ee){return k[we]!==ee[we]}function me(we,k,ee,Pe,ve,Te){for(;kq?q:we.length,nt=Pe.length>q?q:Pe.length;if(ee>=pe||Te>=nt||pe-ee>nt-Te)return;if(!me(k,ee,pe,ve,Te,nt))return;var Et=1,Rt=1,Tt=ee,Ht=Te;for(Et=1,Tt=ee;Tt1?1:Gt),Ln=ce[Et-1][Rt]+-1,yn=ce[Et][Rt-1]+-1;yn>=Ln?yn>rn?(ce[Et][Rt]=yn,Ve[Et][Rt]=4):yn===rn?(ce[Et][Rt]=yn,Ve[Et][Rt]=4|2):(ce[Et][Rt]=rn,Ve[Et][Rt]=2):Ln>rn?(ce[Et][Rt]=Ln,Ve[Et][Rt]=1):Ln===rn?(ce[Et][Rt]=Ln,Ve[Et][Rt]=1|2):(ce[Et][Rt]=rn,Ve[Et][Rt]=2)}return _e&&se(we,ee,Pe,Te),_t=0,Xt=-100,Ke=Te,Xe=Ie,Ze(Et-1,Rt-1,pe===nt?1:0,0,!1),_t===0?void 0:[Xt,Pt,Te]}function tt(we,k,ee,Pe,ve,Te,Ie){return k[ee]!==Te[Ie]?-1:Ie===ee-Pe||J(Ie,ve,Te)&&(Ie===0||!J(Ie-1,ve,Te))?we[ee]===ve[Ie]?7:5:fe(Te,Ie)&&(Ie===0||!fe(Te,Ie-1))||(fe(Te,Ie-1)||ie(Te,Ie-1))?5:1}var _t=0,Pt=0,Xt=0,Ke=0,Xe=!1;function Ze(we,k,ee,Pe,ve){if(_t>=10||ee<-25)return;for(var Te=0;we>0&&k>0;){var Ie=Me[we][k],pe=Ve[we][k];if(pe===4)k-=1,ve?ee-=5:Pe!==0&&(ee-=1),ve=!1,Te=0;else if(pe&2)if(pe&4&&Ze(we,k-1,Pe!==0?ee-1:ee,Pe,ve),ee+=Ie,we-=1,k-=1,ve=!0,Pe+=Math.pow(2,k+Ke),Ie===1){if(Te+=1,we===0&&!Xe)return}else ee+=1+Te*(Ie-1),Te=0;else return}ee-=k>=3?9:k*3,_t+=1,ee>Xt&&(Xt=ee,Pt=Pe)}function Ye(we,k,ee,Pe,ve,Te,Ie){return ke(we,k,ee,Pe,ve,Te,!0,Ie)}function ke(we,k,ee,Pe,ve,Te,Ie,pe){var nt=ze(we,k,ee,Pe,ve,Te,pe);if(nt&&!Ie)return nt;if(we.length>=3)for(var Et=Math.min(7,we.length-1),Rt=ee+1;Rtnt[0])&&(nt=Ht))}}return nt}function $e(we,k){if(k+1>=we.length)return;var ee=we[k],Pe=we[k+1];return ee===Pe?void 0:we.slice(0,k)+Pe+ee+we.slice(k+2)}},VoE1:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:function(){return r.e(248).then(r.bind(null,"rbDI"))}})},W03H:function(wt,P,r){"use strict";r.d(P,"a",function(){return oe});var I=r("PoD0"),oe=Object(I.c)("IWorkspaceEditService")},WKDz:function(wt,P,r){"use strict";r.d(P,"a",function(){return E});var I=r("jSiy"),oe=r.n(I),ne=r("fF8p"),N=r("WWv/"),F=r("bN5T"),U=r("eAZY"),j=r("mucJ"),G=function(){var A=function(z,_){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,p){f.__proto__=p}||function(f,p){for(var g in p)p.hasOwnProperty(g)&&(f[g]=p[g])},A(z,_)};return function(te,z){A(te,z);function _(){this.constructor=te}te.prototype=z===null?Object.create(z):(_.prototype=z.prototype,new _)}}(),R=function(){function A(te){this._element=te}return Object.defineProperty(A.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(A.prototype,"textContent",{set:function(z){if(this.disposed||z===this._textContent)return;this._textContent=z,this._element.textContent=z},enumerable:!0,configurable:!0}),Object.defineProperty(A.prototype,"className",{set:function(z){if(this.disposed||z===this._className)return;this._className=z,this._element.className=z},enumerable:!0,configurable:!0}),Object.defineProperty(A.prototype,"title",{set:function(z){if(this.disposed||z===this._title)return;this._title=z,this._title?this._element.title=z:this._element.removeAttribute("title")},enumerable:!0,configurable:!0}),Object.defineProperty(A.prototype,"empty",{set:function(z){if(this.disposed||z===this._empty)return;this._empty=z,this._element.style.marginLeft=z?"0":""},enumerable:!0,configurable:!0}),A.prototype.dispose=function(){this.disposed=!0},A}(),E=function(A){G(te,A);function te(z,_){var f=A.call(this)||this;f.domNode=f._register(new R(ne.p(z,ne.a(".monaco-icon-label"))));var p=ne.p(f.domNode.element,ne.a(".monaco-icon-label-container")),g=ne.p(p,ne.a("span.monaco-icon-name-container"));return f.descriptionContainer=f._register(new R(ne.p(p,ne.a("span.monaco-icon-description-container")))),(_==null?void 0:_.supportHighlights)?f.nameNode=new D(g,!!_.supportCodicons):f.nameNode=new x(g),(_==null?void 0:_.supportDescriptionHighlights)?f.descriptionNodeFactory=function(){return new N.a(ne.p(f.descriptionContainer.element,ne.a("span.label-description")),!!_.supportCodicons)}:f.descriptionNodeFactory=function(){return f._register(new R(ne.p(f.descriptionContainer.element,ne.a("span.label-description"))))},f}return te.prototype.setLabel=function(z,_,f){var p=["monaco-icon-label"];f&&(f.extraClasses&&p.push.apply(p,f.extraClasses),f.italic&&p.push("italic")),this.domNode.className=p.join(" "),this.domNode.title=(f==null?void 0:f.title)||"",this.nameNode.setLabel(z,f),(_||this.descriptionNode)&&(this.descriptionNode||(this.descriptionNode=this.descriptionNodeFactory()),this.descriptionNode instanceof N.a?(this.descriptionNode.set(_||"",f?f.descriptionMatches:void 0),(f==null?void 0:f.descriptionTitle)?this.descriptionNode.element.title=f.descriptionTitle:this.descriptionNode.element.removeAttribute("title")):(this.descriptionNode.textContent=_||"",this.descriptionNode.title=(f==null?void 0:f.descriptionTitle)||"",this.descriptionNode.empty=!_))},te}(F.a),x=function(){function A(te){this.container=te,this.label=void 0,this.singleLabel=void 0}return A.prototype.setLabel=function(te,z){if(this.label===te&&Object(j.e)(this.options,z))return;if(this.label=te,this.options=z,typeof te=="string")this.singleLabel||(this.container.innerHTML="",ne.O(this.container,"multiple"),this.singleLabel=ne.p(this.container,ne.a("a.label-name",{id:z==null?void 0:z.domId}))),this.singleLabel.textContent=te;else{this.container.innerHTML="",ne.e(this.container,"multiple"),this.singleLabel=void 0;for(var _=0;_A&&(te=A-D),te<0&&(te=0),z<0&&(z=0),f+z>_&&(f=_-z),f<0&&(f=0),this.width=D,this.scrollWidth=A,this.scrollLeft=te,this.height=z,this.scrollHeight=_,this.scrollTop=f}return K.prototype.equals=function(D){return this.width===D.width&&this.scrollWidth===D.scrollWidth&&this.scrollLeft===D.scrollLeft&&this.height===D.height&&this.scrollHeight===D.scrollHeight&&this.scrollTop===D.scrollTop},K.prototype.withScrollDimensions=function(D){return new K(typeof D.width!="undefined"?D.width:this.width,typeof D.scrollWidth!="undefined"?D.scrollWidth:this.scrollWidth,this.scrollLeft,typeof D.height!="undefined"?D.height:this.height,typeof D.scrollHeight!="undefined"?D.scrollHeight:this.scrollHeight,this.scrollTop)},K.prototype.withScrollPosition=function(D){return new K(this.width,this.scrollWidth,typeof D.scrollLeft!="undefined"?D.scrollLeft:this.scrollLeft,this.height,this.scrollHeight,typeof D.scrollTop!="undefined"?D.scrollTop:this.scrollTop)},K.prototype.createScrollEvent=function(D){var A=this.width!==D.width,te=this.scrollWidth!==D.scrollWidth,z=this.scrollLeft!==D.scrollLeft,_=this.height!==D.height,f=this.scrollHeight!==D.scrollHeight,p=this.scrollTop!==D.scrollTop;return{width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:A,scrollWidthChanged:te,scrollLeftChanged:z,heightChanged:_,scrollHeightChanged:f,scrollTopChanged:p}},K}(),F=function(K){ne(D,K);function D(A,te){var z=K.call(this)||this;return z._onScroll=z._register(new I.a),z.onScroll=z._onScroll.event,z._smoothScrollDuration=A,z._scheduleAtNextAnimationFrame=te,z._state=new N(0,0,0,0,0,0),z._smoothScrolling=null,z}return D.prototype.dispose=function(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),K.prototype.dispose.call(this)},D.prototype.setSmoothScrollDuration=function(A){this._smoothScrollDuration=A},D.prototype.validateScrollPosition=function(A){return this._state.withScrollPosition(A)},D.prototype.getScrollDimensions=function(){return this._state},D.prototype.setScrollDimensions=function(A){var te=this._state.withScrollDimensions(A);this._setState(te),this._smoothScrolling&&this._smoothScrolling.acceptScrollDimensions(this._state)},D.prototype.getFutureScrollPosition=function(){return this._smoothScrolling?this._smoothScrolling.to:this._state},D.prototype.getCurrentScrollPosition=function(){return this._state},D.prototype.setScrollPositionNow=function(A){var te=this._state.withScrollPosition(A);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(te)},D.prototype.setScrollPositionSmooth=function(A){var te=this;if(this._smoothScrollDuration===0)return this.setScrollPositionNow(A);if(this._smoothScrolling){A={scrollLeft:typeof A.scrollLeft=="undefined"?this._smoothScrolling.to.scrollLeft:A.scrollLeft,scrollTop:typeof A.scrollTop=="undefined"?this._smoothScrolling.to.scrollTop:A.scrollTop};var z=this._state.withScrollPosition(A);if(this._smoothScrolling.to.scrollLeft===z.scrollLeft&&this._smoothScrolling.to.scrollTop===z.scrollTop)return;var _=this._smoothScrolling.combine(this._state,z,this._smoothScrollDuration);this._smoothScrolling.dispose(),this._smoothScrolling=_}else{var z=this._state.withScrollPosition(A);this._smoothScrolling=R.start(this._state,z,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(function(){if(!te._smoothScrolling)return;te._smoothScrolling.animationFrameDisposable=null,te._performSmoothScrolling()})},D.prototype._performSmoothScrolling=function(){var A=this;if(!this._smoothScrolling)return;var te=this._smoothScrolling.tick(),z=this._state.withScrollPosition(te);if(this._setState(z),te.isDone){this._smoothScrolling.dispose(),this._smoothScrolling=null;return}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(function(){if(!A._smoothScrolling)return;A._smoothScrolling.animationFrameDisposable=null,A._performSmoothScrolling()})},D.prototype._setState=function(A){var te=this._state;if(te.equals(A))return;this._state=A,this._onScroll.fire(this._state.createScrollEvent(te))},D}(oe.a),U=function(){function K(D,A,te){this.scrollLeft=D,this.scrollTop=A,this.isDone=te}return K}();function j(K,D){var A=D-K;return function(te){return K+A*x(te)}}function G(K,D,A){return function(te){return te2.5*te){var _=void 0,f=void 0;return D";var x=this.text.substring(j,E.start);U+=this.supportCodicons?Object(oe.c)(Object(ne.o)(x)):Object(ne.o)(x),U+="",j=E.end}E.extraClasses?U+='':U+='';var K=this.text.substring(E.start,E.end);U+=this.supportCodicons?Object(oe.c)(Object(ne.o)(K)):Object(ne.o)(K),U+="",j=E.end}if(j";var K=this.text.substring(j);U+=this.supportCodicons?Object(oe.c)(Object(ne.o)(K)):Object(ne.o)(K),U+=""}this.domNode.innerHTML=U,this.title?this.domNode.title=this.title:this.domNode.removeAttribute("title"),this.didEverRender=!0},F.escapeNewLines=function(U,j){var G=0,R=0;return U.replace(/\r\n|\r|\n/g,function(E,x){R=E===`\r `?-1:0,x+=G;for(var K=0,D=j;K=x&&(A.start+=R),A.end>=x&&(A.end+=R)}return G+=R,"\u23CE"})},F}()},WcJl:function(wt,P,r){"use strict";r.d(P,"a",function(){return I});function I(oe){var ne=this,N=!1,F;return function(){return N||(N=!0,F=oe.apply(ne,arguments)),F}}},Whdu:function(wt,P,r){"use strict";r.d(P,"a",function(){return te}),r.d(P,"c",function(){return z}),r.d(P,"b",function(){return _}),r.d(P,"j",function(){return f}),r.d(P,"e",function(){return p}),r.d(P,"k",function(){return g}),r.d(P,"g",function(){return w}),r.d(P,"f",function(){return B}),r.d(P,"i",function(){return H}),r.d(P,"h",function(){return re}),r.d(P,"d",function(){return he});var I=r("QqjT"),oe=r("zOJ8"),ne=r("vQ3m"),N=r("V0RK"),F=r("1Ylb"),U=r("AhSp"),j=r("1OsU"),G=r("OJ8J"),R=r("bBv/"),E=r("sobA"),x=r("E+fE"),K=r("yimU"),D=r("yqRl"),A=function(){var q=function(ce,Me){return q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ve,_e){Ve.__proto__=_e}||function(Ve,_e){for(var ue in _e)_e.hasOwnProperty(ue)&&(Ve[ue]=_e[ue])},q(ce,Me)};return function(Z,ce){q(Z,ce);function Me(){this.constructor=Z}Z.prototype=ce===null?Object.create(ce):(Me.prototype=ce.prototype,new Me)}}(),te=function(){function q(Z){this.id=Z.id,this.precondition=Z.precondition,this._kbOpts=Z.kbOpts,this._menuOpts=Z.menuOpts,this._description=Z.description}return q.prototype.register=function(){var Z=this;if(Array.isArray(this._menuOpts)?this._menuOpts.forEach(this._registerMenuItem,this):this._menuOpts&&this._registerMenuItem(this._menuOpts),this._kbOpts){var ce=this._kbOpts.kbExpr;this.precondition&&(ce?ce=R.a.and(ce,this.precondition):ce=this.precondition),E.a.registerCommandAndKeybindingRule({id:this.id,handler:function(Ve,_e){return Z.runCommand(Ve,_e)},weight:this._kbOpts.weight,when:ce,primary:this._kbOpts.primary,secondary:this._kbOpts.secondary,win:this._kbOpts.win,linux:this._kbOpts.linux,mac:this._kbOpts.mac,description:this._description})}else G.a.registerCommand({id:this.id,handler:function(Ve,_e){return Z.runCommand(Ve,_e)},description:this._description})},q.prototype._registerMenuItem=function(Z){j.c.appendMenuItem(Z.menuId,{group:Z.group,command:{id:this.id,title:Z.title},when:Z.when,order:Z.order})},q}(),z=function(q){A(Z,q);function Z(){return q!==null&&q.apply(this,arguments)||this}return Z.bindToContribution=function(ce){return function(Me){A(Ve,Me);function Ve(_e){var ue=Me.call(this,_e)||this;return ue._callback=_e.handler,ue}return Ve.prototype.runEditorCommand=function(_e,ue,se){var fe=ce(ue);fe&&this._callback(ce(ue),se)},Ve}(Z)},Z.prototype.runCommand=function(ce,Me){var Ve=this,_e=ce.get(ne.a),ue=_e.getFocusedCodeEditor()||_e.getActiveCodeEditor();return ue?ue.invokeWithinContext(function(se){var fe=se.get(R.c);return fe.contextMatchesRules(Object(D.n)(Ve.precondition))?Ve.runEditorCommand(se,ue,Me):void 0}):void 0},Z}(te),_=function(q){A(Z,q);function Z(ce){var Me=q.call(this,Z.convertOptions(ce))||this;return Me.label=ce.label,Me.alias=ce.alias,Me}return Z.convertOptions=function(ce){var Me;Array.isArray(ce.menuOpts)?Me=ce.menuOpts:ce.menuOpts?Me=[ce.menuOpts]:Me=[];function Ve(_e){return _e.menuId||(_e.menuId=7),_e.title||(_e.title=ce.label),_e.when=R.a.and(ce.precondition,_e.when),_e}return Array.isArray(ce.contextMenuOpts)?Me.push.apply(Me,ce.contextMenuOpts.map(Ve)):ce.contextMenuOpts&&Me.push(Ve(ce.contextMenuOpts)),ce.menuOpts=Me,ce},Z.prototype.runEditorCommand=function(ce,Me,Ve){return this.reportTelemetry(ce,Me),this.run(ce,Me,Ve||{})},Z.prototype.reportTelemetry=function(ce,Me){ce.get(K.a).publicLog2("editorActionInvoked",{name:this.label,id:this.id})},Z}(z);function f(q,Z){G.a.registerCommand(q,function(ce,Me){return Z(ce,Me||{})})}function p(q,Z){f(q,function(ce,Me){var Ve=Me.resource,_e=Me.position;if(!(Ve instanceof oe.a))throw Object(I.b)("resource");if(!N.a.isIPosition(_e))throw Object(I.b)("position");var ue=ce.get(F.a).getModel(Ve);if(ue){var se=N.a.lift(_e);return Z(ue,se,Me)}return ce.get(U.a).createModelReference(Ve).then(function(fe){return new Promise(function(ie,J){try{var me=Z(fe.object.textEditorModel,N.a.lift(_e),Me);ie(me)}catch(ye){J(ye)}}).finally(function(){fe.dispose()})})})}function g(q,Z){G.a.registerCommand(q,function(ce){for(var Me=[],Ve=1;Ve=0})}q.getSomeEditorContributions=Ve;function _e(){return Se.INSTANCE.getDiffEditorContributions()}q.getDiffEditorContributions=_e})(he||(he={}));var Ee={EditorCommonContributions:"editor.contributions"},Se=function(){function q(){this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}return q.prototype.registerEditorContribution=function(Z,ce){this.editorContributions.push({id:Z,ctor:ce})},q.prototype.getEditorContributions=function(){return this.editorContributions.slice(0)},q.prototype.getDiffEditorContributions=function(){return this.diffEditorContributions.slice(0)},q.prototype.registerEditorAction=function(Z){Z.register(),this.editorActions.push(Z)},q.prototype.getEditorActions=function(){return this.editorActions.slice(0)},q.prototype.registerEditorCommand=function(Z){Z.register(),this.editorCommands[Z.id]=Z},q.prototype.getEditorCommand=function(Z){return this.editorCommands[Z]||null},q.INSTANCE=new q,q}();x.a.add(Ee.EditorCommonContributions,Se.INSTANCE)},XAYP:function(wt,P,r){"use strict";r.d(P,"a",function(){return ne});var I=r("ywU6"),oe=function(){function N(F){this.element=F,this.next=N.Undefined,this.prev=N.Undefined}return N.Undefined=new N(void 0),N}(),ne=function(){function N(){this._first=oe.Undefined,this._last=oe.Undefined,this._size=0}return Object.defineProperty(N.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),N.prototype.isEmpty=function(){return this._first===oe.Undefined},N.prototype.clear=function(){this._first=oe.Undefined,this._last=oe.Undefined,this._size=0},N.prototype.unshift=function(F){return this._insert(F,!1)},N.prototype.push=function(F){return this._insert(F,!0)},N.prototype._insert=function(F,U){var j=this,G=new oe(F);if(this._first===oe.Undefined)this._first=G,this._last=G;else if(U){var R=this._last;this._last=G,G.prev=R,R.next=G}else{var E=this._first;this._first=G,G.next=E,E.prev=G}this._size+=1;var x=!1;return function(){x||(x=!0,j._remove(G))}},N.prototype.shift=function(){if(this._first===oe.Undefined)return;var F=this._first.element;return this._remove(this._first),F},N.prototype.pop=function(){if(this._last===oe.Undefined)return;var F=this._last.element;return this._remove(this._last),F},N.prototype._remove=function(F){if(F.prev!==oe.Undefined&&F.next!==oe.Undefined){var U=F.prev;U.next=F.next,F.next.prev=U}else F.prev===oe.Undefined&&F.next===oe.Undefined?(this._first=oe.Undefined,this._last=oe.Undefined):F.next===oe.Undefined?(this._last=this._last.prev,this._last.next=oe.Undefined):F.prev===oe.Undefined&&(this._first=this._first.next,this._first.prev=oe.Undefined);this._size-=1},N.prototype.iterator=function(){var F,U=this._first;return{next:function(){return U===oe.Undefined?I.b:(F?F.value=U.element:F={done:!1,value:U.element},U=U.next,F)}}},N.prototype.toArray=function(){for(var F=[],U=this._first;U!==oe.Undefined;U=U.next)F.push(U.element);return F},N}()},XGV8:function(wt,P,r){"use strict";r.d(P,"a",function(){return te}),r.d(P,"b",function(){return z});var I=r("QqjT"),oe=r("yBOt"),ne=r("i14n"),N=r("g2LA"),F=r("w9Cd"),U=r("F5bH"),j=r("tkZS"),G=Object.create(null);function R(_,f){G[_]||(G[_]=["",_]);for(var p=G[_],g=p.length;g<=f;g++)p[g]=p[g-1]+_;return p[f]}var E=function(){function _(f,p){this._opts=p,this._selection=f,this._selectionId=null,this._useLastEditRangeForCursorEndPosition=!1,this._selectionStartColumnStaysPut=!1}return _.unshiftIndent=function(f,p,g,m,w){var B=N.a.visibleColumnFromColumn(f,p,g);if(w){var H=R(" ",m),re=N.a.prevIndentTabStop(B,m),he=re/m;return R(H,he)}else{var H=" ",re=N.a.prevRenderTabStop(B,g),he=re/g;return R(H,he)}},_.shiftIndent=function(f,p,g,m,w){var B=N.a.visibleColumnFromColumn(f,p,g);if(w){var H=R(" ",m),re=N.a.nextIndentTabStop(B,m),he=re/m;return R(H,he)}else{var H=" ",re=N.a.nextRenderTabStop(B,g),he=re/g;return R(H,he)}},_.prototype._addEditOperation=function(f,p,g){this._useLastEditRangeForCursorEndPosition?f.addTrackedEditOperation(p,g):f.addEditOperation(p,g)},_.prototype.getEditOperations=function(f,p){var g=this._selection.startLineNumber,m=this._selection.endLineNumber;this._selection.endColumn===1&&g!==m&&(m=m-1);var w=this._opts,B=w.tabSize,H=w.indentSize,re=w.insertSpaces,he=g===m;if(this._selection.isEmpty()&&(/^\s*$/.test(f.getLineContent(g))&&(this._useLastEditRangeForCursorEndPosition=!0)),this._opts.useTabStops)for(var Ee=0,Se=0,q=g;q<=m;q++,Ee=Se){Se=0;var Z=f.getLineContent(q),ce=oe.q(Z);if(this._opts.isUnshift&&(Z.length===0||ce===0))continue;if(!he&&!this._opts.isUnshift&&Z.length===0)continue;if(ce===-1&&(ce=Z.length),q>1){var Me=N.a.visibleColumnFromColumn(Z,ce+1,B);if(Me%H!==0&&f.isCheapToTokenize(q-1)){var Ve=j.a.getEnterAction(this._opts.autoIndent,f,new F.a(q-1,f.getLineMaxColumn(q-1),q-1,f.getLineMaxColumn(q-1)));if(Ve){if(Se=Ee,Ve.appendText)for(var _e=0,ue=Ve.appendText.length;_e1){var H=void 0;for(H=g-1;H>=1;H--){var re=p.getLineContent(H),he=oe.D(re);if(he>=0)break}if(H<1)return null;var Ee=p.getLineMaxColumn(H),Se=j.a.getEnterAction(f.autoIndent,p,new F.a(H,Ee,H,Ee));Se&&(w=Se.indentation+Se.appendText)}return m&&(m===D.a.Indent&&(w=_.shiftIndent(f,w)),m===D.a.Outdent&&(w=_.unshiftIndent(f,w)),w=f.normalizeIndentation(w)),w||null},_._replaceJumpToNextIndent=function(f,p,g,m){var w="",B=g.getStartPosition();if(f.insertSpaces)for(var H=N.a.visibleColumnFromColumn2(f,p,B),re=f.indentSize,he=re-H%re,Ee=0;Ee=4){var ce=j.a.getIndentForEnter(f.autoIndent,p,m,{unshiftIndent:function(J){return _.unshiftIndent(f,J)},shiftIndent:function(J){return _.shiftIndent(f,J)},normalizeIndentation:function(J){return f.normalizeIndentation(J)}});if(ce){var Me=N.a.visibleColumnFromColumn2(f,p,m.getEndPosition()),Ve=m.endColumn,_e=` `;Z!==f.normalizeIndentation(ce.beforeEnter)&&(_e=f.normalizeIndentation(ce.beforeEnter)+q.substring(Z.length,m.startColumn-1)+` `,m=new F.a(m.startLineNumber,1,m.endLineNumber,m.endColumn));var ue=p.getLineContent(m.endLineNumber),se=oe.q(ue);if(se>=0?m=m.setEndPosition(m.endLineNumber,Math.max(m.endColumn,se+1)):m=m.setEndPosition(m.endLineNumber,p.getLineMaxColumn(m.endLineNumber)),g)return new ne.d(m,_e+f.normalizeIndentation(ce.afterEnter),!0);var fe=0;return Ve<=se+1&&(f.insertSpaces||(Me=Math.ceil(Me/f.indentSize)),fe=Math.min(Me+1-f.normalizeIndentation(ce.afterEnter).length-1,0)),new ne.c(m,_e+f.normalizeIndentation(ce.afterEnter),0,fe,!0)}}return _._typeCommand(m,` `+f.normalizeIndentation(Z),g)},_._isAutoIndentType=function(f,p,g){if(f.autoIndent<4)return!1;for(var m=0,w=g.length;m2?Ee.charCodeAt(he.column-2):0;if(Z===92&&q)return!1;if(f.autoClosingOvertype==="auto"){for(var ce=!1,Me=0,Ve=m.length;Me=0||g.indexOf(p)>=0},_._isBeforeClosingBrace=function(f,p,g){var m=f.autoClosingPairsClose2.get(g);if(!m)return!1;for(var w=_._autoClosingPairIsSymmetric(p),B=0,H=m;BB.open.length){for(var Ee=!0,Se=0,q=g;SeZ.column-1){var Me=ce.charAt(Z.column-1),Ve=_._isBeforeClosingBrace(f,re,Me);if(!Ve&&!he(Me))return null}if(!p.isCheapToTokenize(Z.lineNumber))return null;if(re.open.length===1&&B&&H!=="always"){var _e=Object(K.a)(f.wordSeparators);if(w&&Z.column>1&&_e.get(ce.charCodeAt(Z.column-2))===0)return null;if(!w&&Z.column>2&&_e.get(ce.charCodeAt(Z.column-3))===0)return null}p.forceTokenization(Z.lineNumber);var ue=p.getLineTokens(Z.lineNumber),se=!1;try{se=j.a.shouldAutoClosePair(re,ue,w?Z.column:Z.column-1)}catch(fe){Object(I.e)(fe)}if(!se)return null}return re},_._runAutoClosingOpenCharType=function(f,p,g,m,w,B,H){for(var re=[],he=0,Ee=m.length;he1)&&ze.fire(Pt),ye=0},ue)})},onLastListenerRemove:function(){ie.dispose()}});return ze.event}A.debounce=B;function H(Ve){var _e=new Date().getTime();return z(te(Ve),function(ue){return new Date().getTime()-_e})}A.stopwatch=H;function re(Ve){var _e=!0,ue;return f(Ve,function(se){var fe=_e||se!==ue;return _e=!1,ue=se,fe})}A.latch=re;function he(Ve,_e,ue){_e===void 0&&(_e=!1),ue===void 0&&(ue=[]);var se=ue.slice(),fe=Ve(function(me){se?se.push(me):J.fire(me)}),ie=function(){se&&se.forEach(function(ye){return J.fire(ye)}),se=null},J=new R({onFirstListenerAdd:function(){fe||(fe=Ve(function(ye){return J.fire(ye)}))},onFirstListenerDidAdd:function(){se&&(_e?setTimeout(ie):ie())},onLastListenerRemove:function(){fe&&fe.dispose(),fe=null}});return J.event}A.buffer=he;var Ee=function(){function Ve(_e){this.event=_e}return Ve.prototype.map=function(_e){return new Ve(z(this.event,_e))},Ve.prototype.forEach=function(_e){return new Ve(_(this.event,_e))},Ve.prototype.filter=function(_e){return new Ve(f(this.event,_e))},Ve.prototype.reduce=function(_e,ue){return new Ve(m(this.event,_e,ue))},Ve.prototype.latch=function(){return new Ve(re(this.event))},Ve.prototype.debounce=function(_e,ue,se,fe){return ue===void 0&&(ue=100),se===void 0&&(se=!1),new Ve(B(this.event,_e,ue,se,fe))},Ve.prototype.on=function(_e,ue,se){return this.event(_e,ue,se)},Ve.prototype.once=function(_e,ue,se){return te(this.event)(_e,ue,se)},Ve}();function Se(Ve){return new Ee(Ve)}A.chain=Se;function q(Ve,_e,ue){ue===void 0&&(ue=function(ye){return ye});var se=function(){for(var ye=[],ze=0;ze0?new G(this._options&&this._options.leakWarningThreshold):void 0}return Object.defineProperty(A.prototype,"event",{get:function(){var z=this;return this._event||(this._event=function(_,f,p){z._listeners||(z._listeners=new N.a);var g=z._listeners.isEmpty();g&&z._options&&z._options.onFirstListenerAdd&&z._options.onFirstListenerAdd(z);var m=z._listeners.push(f?[_,f]:_);g&&z._options&&z._options.onFirstListenerDidAdd&&z._options.onFirstListenerDidAdd(z),z._options&&z._options.onListenerDidAdd&&z._options.onListenerDidAdd(z,_,f);var w;z._leakageMon&&(w=z._leakageMon.check(z._listeners.size));var B;return B={dispose:function(){if(w&&w(),B.dispose=A._noop,!z._disposed&&(m(),z._options&&z._options.onLastListenerRemove)){var re=z._listeners&&!z._listeners.isEmpty();re||z._options.onLastListenerRemove(z)}}},p instanceof ne.b?p.add(B):Array.isArray(p)&&p.push(B),B}),this._event},enumerable:!0,configurable:!0}),A.prototype.fire=function(te){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new N.a);for(var z=this._listeners.iterator(),_=z.next();!_.done;_=z.next())this._deliveryQueue.push([_.value,te]);for(;this._deliveryQueue.size>0;){var f=this._deliveryQueue.shift(),p=f[0],g=f[1];try{typeof p=="function"?p.call(void 0,g):p[0].call(p[1],g)}catch(m){Object(I.e)(m)}}}},A.prototype.dispose=function(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},A._noop=function(){},A}(),E=function(A){F(te,A);function te(z){var _=A.call(this,z)||this;return _._isPaused=0,_._eventQueue=new N.a,_._mergeFn=z&&z.merge,_}return te.prototype.pause=function(){this._isPaused++},te.prototype.resume=function(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){var z=this._eventQueue.toArray();this._eventQueue.clear(),A.prototype.fire.call(this,this._mergeFn(z))}else for(;!this._isPaused&&this._eventQueue.size!==0;)A.prototype.fire.call(this,this._eventQueue.shift())},te.prototype.fire=function(z){this._listeners&&(this._isPaused!==0?this._eventQueue.push(z):A.prototype.fire.call(this,z))},te}(R),x=function(){function A(){var te=this;this.hasListeners=!1,this.events=[],this.emitter=new R({onFirstListenerAdd:function(){return te.onFirstListenerAdd()},onLastListenerRemove:function(){return te.onLastListenerRemove()}})}return Object.defineProperty(A.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),A.prototype.add=function(te){var z=this,_={event:te,listener:null};this.events.push(_),this.hasListeners&&this.hook(_);var f=function(){z.hasListeners&&z.unhook(_);var g=z.events.indexOf(_);z.events.splice(g,1)};return Object(ne.h)(Object(oe.a)(f))},A.prototype.onFirstListenerAdd=function(){var te=this;this.hasListeners=!0,this.events.forEach(function(z){return te.hook(z)})},A.prototype.onLastListenerRemove=function(){var te=this;this.hasListeners=!1,this.events.forEach(function(z){return te.unhook(z)})},A.prototype.hook=function(te){var z=this;te.listener=te.event(function(_){return z.emitter.fire(_)})},A.prototype.unhook=function(te){te.listener&&te.listener.dispose(),te.listener=null},A.prototype.dispose=function(){this.emitter.dispose()},A}(),K=function(){function A(){this.buffers=[]}return A.prototype.wrapEvent=function(te){var z=this;return function(_,f,p){return te(function(g){var m=z.buffers[z.buffers.length-1];m?m.push(function(){return _.call(f,g)}):_.call(f,g)},void 0,p)}},A.prototype.bufferEvents=function(te){var z=[];this.buffers.push(z);var _=te();return this.buffers.pop(),z.forEach(function(f){return f()}),_},A}(),D=function(){function A(){var te=this;this.listening=!1,this.inputEvent=U.None,this.inputEventListener=ne.a.None,this.emitter=new R({onFirstListenerDidAdd:function(){te.listening=!0,te.inputEventListener=te.inputEvent(te.emitter.fire,te.emitter)},onLastListenerRemove:function(){te.listening=!1,te.inputEventListener.dispose()}}),this.event=this.emitter.event}return Object.defineProperty(A.prototype,"input",{set:function(z){this.inputEvent=z,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=z(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),A.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()},A}()},YWAb:function(wt,P,r){},"Ym/J":function(wt,P,r){"use strict";r.d(P,"a",function(){return N}),r.d(P,"b",function(){return F});var I=r("/epU"),oe=r("PoD0"),ne=I.a,N=Object(oe.c)("notificationService"),F=function(){function U(){}return U}()},YrLJ:function(wt,P,r){},Ytku:function(wt,P,r){"use strict";r.d(P,"c",function(){return oe}),r.d(P,"b",function(){return N}),r.d(P,"a",function(){return F});function I(U,j){var G=Math.pow(10,j);return Math.round(U*G)/G}var oe=function(){function U(j,G,R,E){E===void 0&&(E=1),this.r=Math.min(255,Math.max(0,j))|0,this.g=Math.min(255,Math.max(0,G))|0,this.b=Math.min(255,Math.max(0,R))|0,this.a=I(Math.max(Math.min(1,E),0),3)}return U.equals=function(j,G){return j.r===G.r&&j.g===G.g&&j.b===G.b&&j.a===G.a},U}(),ne=function(){function U(j,G,R,E){this.h=Math.max(Math.min(360,j),0)|0,this.s=I(Math.max(Math.min(1,G),0),3),this.l=I(Math.max(Math.min(1,R),0),3),this.a=I(Math.max(Math.min(1,E),0),3)}return U.equals=function(j,G){return j.h===G.h&&j.s===G.s&&j.l===G.l&&j.a===G.a},U.fromRGBA=function(j){var G=j.r/255,R=j.g/255,E=j.b/255,x=j.a,K=Math.max(G,R,E),D=Math.min(G,R,E),A=0,te=0,z=(D+K)/2,_=K-D;if(_>0){te=Math.min(z<=.5?_/(2*z):_/(2-2*z),1);switch(K){case G:A=(R-E)/_+(R1&&(R-=1),R<1/6?j+(G-j)*6*R:R<1/2?G:R<2/3?j+(G-j)*(2/3-R)*6:j},U.toRGBA=function(j){var G=j.h/360,R=j.s,E=j.l,x=j.a,K,D,A;if(R===0)K=D=A=E;else{var te=E<.5?E*(1+R):E+R-E*R,z=2*E-te;K=U._hue2rgb(z,te,G+1/3),D=U._hue2rgb(z,te,G),A=U._hue2rgb(z,te,G-1/3)}return new oe(Math.round(K*255),Math.round(D*255),Math.round(A*255),x)},U}(),N=function(){function U(j,G,R,E){this.h=Math.max(Math.min(360,j),0)|0,this.s=I(Math.max(Math.min(1,G),0),3),this.v=I(Math.max(Math.min(1,R),0),3),this.a=I(Math.max(Math.min(1,E),0),3)}return U.equals=function(j,G){return j.h===G.h&&j.s===G.s&&j.v===G.v&&j.a===G.a},U.fromRGBA=function(j){var G=j.r/255,R=j.g/255,E=j.b/255,x=Math.max(G,R,E),K=Math.min(G,R,E),D=x-K,A=x===0?0:D/x,te;return D===0?te=0:x===G?te=((R-E)/D%6+6)%6:x===R?te=(E-G)/D+2:te=(G-R)/D+4,new U(Math.round(te*60),A,x,j.a)},U.toRGBA=function(j){var G=j.h,R=j.s,E=j.v,x=j.a,K=E*R,D=K*(1-Math.abs(G/60%2-1)),A=E-K,te=[0,0,0],z=te[0],_=te[1],f=te[2];return G<60?(z=K,_=D):G<120?(z=D,_=K):G<180?(_=K,f=D):G<240?(_=D,f=K):G<300?(z=D,f=K):G<360&&(z=K,f=D),z=Math.round((z+A)*255),_=Math.round((_+A)*255),f=Math.round((f+A)*255),new oe(z,_,f,x)},U}(),F=function(){function U(j){if(j)if(j instanceof oe)this.rgba=j;else if(j instanceof ne)this._hsla=j,this.rgba=ne.toRGBA(j);else if(j instanceof N)this._hsva=j,this.rgba=N.toRGBA(j);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}return U.fromHex=function(j){return U.Format.CSS.parseHex(j)||U.red},Object.defineProperty(U.prototype,"hsla",{get:function(){return this._hsla?this._hsla:ne.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),Object.defineProperty(U.prototype,"hsva",{get:function(){return this._hsva?this._hsva:N.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),U.prototype.equals=function(j){return!!j&&oe.equals(this.rgba,j.rgba)&&ne.equals(this.hsla,j.hsla)&&N.equals(this.hsva,j.hsva)},U.prototype.getRelativeLuminance=function(){var j=U._relativeLuminanceForComponent(this.rgba.r),G=U._relativeLuminanceForComponent(this.rgba.g),R=U._relativeLuminanceForComponent(this.rgba.b),E=.2126*j+.7152*G+.0722*R;return I(E,4)},U._relativeLuminanceForComponent=function(j){var G=j/255;return G<=.03928?G/12.92:Math.pow((G+.055)/1.055,2.4)},U.prototype.isLighter=function(){var j=(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3;return j>=128},U.prototype.isLighterThan=function(j){var G=this.getRelativeLuminance(),R=j.getRelativeLuminance();return G>R},U.prototype.isDarkerThan=function(j){var G=this.getRelativeLuminance(),R=j.getRelativeLuminance();return G=48&&_<=57},z.isVariableCharacter=function(_){return _===95||_>=97&&_<=122||_>=65&&_<=90},z.prototype.text=function(_){this.value=_,this.pos=0},z.prototype.tokenText=function(_){return this.value.substr(_.pos,_.len)},z.prototype.next=function(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};var _=this.pos,f=0,p=this.value.charCodeAt(_),g;if(g=z._table[p],typeof g=="number")return this.pos+=1,{type:g,pos:_,len:1};if(z.isDigitCharacter(p)){g=8;do f+=1,p=this.value.charCodeAt(_+f);while(z.isDigitCharacter(p));return this.pos+=f,{type:g,pos:_,len:f}}if(z.isVariableCharacter(p)){g=9;do p=this.value.charCodeAt(_+ ++f);while(z.isVariableCharacter(p)||z.isDigitCharacter(p));return this.pos+=f,{type:g,pos:_,len:f}}g=10;do f+=1,p=this.value.charCodeAt(_+f);while(!isNaN(p)&&typeof z._table[p]=="undefined"&&!z.isDigitCharacter(p)&&!z.isVariableCharacter(p));return this.pos+=f,{type:g,pos:_,len:f}},z._table=(ne={},ne[36]=0,ne[58]=1,ne[44]=2,ne[123]=3,ne[125]=4,ne[92]=5,ne[47]=6,ne[124]=7,ne[43]=11,ne[45]=12,ne[63]=13,ne),z}(),F=function(){function z(){this._children=[]}return z.prototype.appendChild=function(_){return _ instanceof U&&this._children[this._children.length-1]instanceof U?this._children[this._children.length-1].value+=_.value:(_.parent=this,this._children.push(_)),this},z.prototype.replace=function(_,f){var p=_.parent,g=p.children.indexOf(_),m=p.children.slice(0);m.splice.apply(m,oe([g,1],f)),p._children=m,function w(B,H){for(var re=0,he=B;rep.index?1:0},Object.defineProperty(_.prototype,"isFinalTabstop",{get:function(){return this.index===0},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"choice",{get:function(){return this._children.length===1&&this._children[0]instanceof R?this._children[0]:void 0},enumerable:!0,configurable:!0}),_.prototype.clone=function(){var f=new _(this.index);return this.transform&&(f.transform=this.transform.clone()),f._children=this.children.map(function(p){return p.clone()}),f},_}(j),R=function(z){I(_,z);function _(){var f=z!==null&&z.apply(this,arguments)||this;return f.options=[],f}return _.prototype.appendChild=function(f){return f instanceof U&&(f.parent=this,this.options.push(f)),this},_.prototype.toString=function(){return this.options[0].value},_.prototype.len=function(){return this.options[0].len()},_.prototype.clone=function(){var f=new _;return this.options.forEach(f.appendChild,f),f},_}(F),E=function(z){I(_,z);function _(){var f=z!==null&&z.apply(this,arguments)||this;return f.regexp=new RegExp(""),f}return _.prototype.resolve=function(f){var p=this,g=!1,m=f.replace(this.regexp,function(){return g=!0,p._replace(Array.prototype.slice.call(arguments,0,-2))});return!g&&this._children.some(function(w){return w instanceof x&&Boolean(w.elseValue)})&&(m=this._replace([])),m},_.prototype._replace=function(f){for(var p="",g=0,m=this._children;g0;){var p=f.shift(),g=_(p);if(!g)break;f.unshift.apply(f,p.children)}}var A=function(z){I(_,z);function _(){return z!==null&&z.apply(this,arguments)||this}return Object.defineProperty(_.prototype,"placeholderInfo",{get:function(){if(!this._placeholders){var p=[],g;this.walk(function(m){return m instanceof G&&(p.push(m),g=!g||g.index0?m.set(Me.index,Me.children):w.push(Me)),!0});for(var H=0,re=w;H0&&f),!m.has(0)&&p&&g.appendChild(new G(0)),g},z.prototype._accept=function(_,f){if(_===void 0||this._token.type===_){var p=f?this._scanner.tokenText(this._token):!0;return this._token=this._scanner.next(),p}return!1},z.prototype._backTo=function(_){return this._scanner.pos=_.pos+_.len,this._token=_,!1},z.prototype._until=function(_){for(var f=this._token;this._token.type!==_;){if(this._token.type===14)return!1;if(this._token.type===5){var p=this._scanner.next();if(p.type!==0&&p.type!==4&&p.type!==5)return!1}this._token=this._scanner.next()}var g=this._scanner.value.substring(f.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),g},z.prototype._parse=function(_){return this._parseEscaped(_)||this._parseTabstopOrVariableName(_)||this._parseComplexPlaceholder(_)||this._parseComplexVariable(_)||this._parseAnything(_)},z.prototype._parseEscaped=function(_){var f;return(f=this._accept(5,!0))?(f=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||f,_.appendChild(new U(f)),!0):!1},z.prototype._parseTabstopOrVariableName=function(_){var f,p=this._token,g=this._accept(0)&&(f=this._accept(9,!0)||this._accept(8,!0));return g?(_.appendChild(/^\d+$/.test(f)?new G(Number(f)):new K(f)),!0):this._backTo(p)},z.prototype._parseComplexPlaceholder=function(_){var f,p=this._token,g=this._accept(0)&&this._accept(3)&&(f=this._accept(8,!0));if(!g)return this._backTo(p);var m=new G(Number(f));if(this._accept(1))for(;;){if(this._accept(4))return _.appendChild(m),!0;if(this._parse(m))continue;return _.appendChild(new U("${"+f+":")),m.children.forEach(_.appendChild,_),!0}else if(m.index>0&&this._accept(7))for(var w=new R;;){if(this._parseChoiceElement(w)){if(this._accept(2))continue;if(this._accept(7)&&(m.appendChild(w),this._accept(4)))return _.appendChild(m),!0}return this._backTo(p),!1}else return this._accept(6)?this._parseTransform(m)?(_.appendChild(m),!0):(this._backTo(p),!1):this._accept(4)?(_.appendChild(m),!0):this._backTo(p)},z.prototype._parseChoiceElement=function(_){for(var f=this._token,p=[];!(this._token.type===2||this._token.type===7);){var g=void 0;if((g=this._accept(5,!0))?g=this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||g:g=this._accept(void 0,!0),!g)return this._backTo(f),!1;p.push(g)}return p.length===0?(this._backTo(f),!1):(_.appendChild(new U(p.join(""))),!0)},z.prototype._parseComplexVariable=function(_){var f,p=this._token,g=this._accept(0)&&this._accept(3)&&(f=this._accept(9,!0));if(!g)return this._backTo(p);var m=new K(f);if(this._accept(1))for(;;){if(this._accept(4))return _.appendChild(m),!0;if(this._parse(m))continue;return _.appendChild(new U("${"+f+":")),m.children.forEach(_.appendChild,_),!0}else return this._accept(6)?this._parseTransform(m)?(_.appendChild(m),!0):(this._backTo(p),!1):this._accept(4)?(_.appendChild(m),!0):this._backTo(p)},z.prototype._parseTransform=function(_){for(var f=new E,p="",g="";!this._accept(6);){var m=void 0;if(m=this._accept(5,!0)){m=this._accept(6,!0)||m,p+=m;continue}if(this._token.type!==14){p+=this._accept(void 0,!0);continue}return!1}for(;!this._accept(6);){var m=void 0;if(m=this._accept(5,!0)){m=this._accept(5,!0)||this._accept(6,!0)||m,f.appendChild(new U(m));continue}if(this._parseFormatString(f)||this._parseAnything(f))continue;return!1}for(;!this._accept(4);){if(this._token.type!==14){g+=this._accept(void 0,!0);continue}return!1}try{f.regexp=new RegExp(p,g)}catch(w){return!1}return _.transform=f,!0},z.prototype._parseFormatString=function(_){var f=this._token;if(!this._accept(0))return!1;var p=!1;this._accept(3)&&(p=!0);var g=this._accept(8,!0);if(g)if(p){if(this._accept(4))return _.appendChild(new x(Number(g))),!0;if(!this._accept(1))return this._backTo(f),!1}else return _.appendChild(new x(Number(g))),!0;else return this._backTo(f),!1;if(this._accept(6)){var m=this._accept(9,!0);return!m||!this._accept(4)?(this._backTo(f),!1):(_.appendChild(new x(Number(g),m)),!0)}else if(this._accept(11)){var w=this._until(4);if(w)return _.appendChild(new x(Number(g),void 0,w,void 0)),!0}else if(this._accept(12)){var B=this._until(4);if(B)return _.appendChild(new x(Number(g),void 0,void 0,B)),!0}else if(this._accept(13)){var w=this._until(1);if(w){var B=this._until(4);if(B)return _.appendChild(new x(Number(g),void 0,w,B)),!0}}else{var B=this._until(4);if(B)return _.appendChild(new x(Number(g),void 0,void 0,B)),!0}return this._backTo(f),!1},z.prototype._parseAnything=function(_){return this._token.type!==14?(_.appendChild(new U(this._scanner.tokenText(this._token))),this._accept(void 0),!0):!1},z}()},aar3:function(wt,P,r){"use strict";r.d(P,"a",function(){return ne});var I=r("S7i+"),oe=I.b.performance&&typeof I.b.performance.now=="function",ne=function(){function N(F){this._highResolution=oe&&F,this._startTime=this._now(),this._stopTime=-1}return N.create=function(F){return F===void 0&&(F=!0),new N(F)},N.prototype.stop=function(){this._stopTime=this._now()},N.prototype.elapsed=function(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime},N.prototype._now=function(){return this._highResolution?I.b.performance.now():new Date().getTime()},N}()},"ab6+":function(wt,P,r){},astx:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:function(){return r.e(216).then(r.bind(null,"buUZ"))}})},awj8:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:function(){return r.e(237).then(r.bind(null,"Ywaa"))}})},b0bP:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:function(){return r.e(210).then(r.bind(null,"mzqm"))}})},"bBv/":function(wt,P,r){"use strict";r.d(P,"a",function(){return N}),r.d(P,"b",function(){return D}),r.d(P,"d",function(){return A}),r.d(P,"c",function(){return te}),r.d(P,"e",function(){return z});var I=r("yBOt"),oe=r("PoD0"),ne=function(){var _=function(p,g){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,w){m.__proto__=w}||function(m,w){for(var B in w)w.hasOwnProperty(B)&&(m[B]=w[B])},_(p,g)};return function(f,p){_(f,p);function g(){this.constructor=f}f.prototype=p===null?Object.create(p):(g.prototype=p.prototype,new g)}}(),N=function(){function _(){}return _.has=function(f){return U.create(f)},_.equals=function(f,p){return j.create(f,p)},_.regex=function(f,p){return E.create(f,p)},_.not=function(f){return R.create(f)},_.and=function(){for(var f=[],p=0;p=0){var g=f.split("!=");return G.create(g[0].trim(),this._deserializeValue(g[1],p))}if(f.indexOf("==")>=0){var g=f.split("==");return j.create(g[0].trim(),this._deserializeValue(g[1],p))}if(f.indexOf("=~")>=0){var g=f.split("=~");return E.create(g[0].trim(),this._deserializeRegexValue(g[1],p))}return/^\!\s*/.test(f)?R.create(f.substr(1).trim()):U.create(f)},_._deserializeValue=function(f,p){if(f=f.trim(),f==="true")return!0;if(f==="false")return!1;var g=/^'([^']*)'$/.exec(f);return g?g[1].trim():f},_._deserializeRegexValue=function(f,p){if(Object(I.x)(f)){if(p)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}var g=f.indexOf("/"),m=f.lastIndexOf("/");if(g===m||g<0){if(p)throw new Error("bad regexp-value '"+f+"', missing /-enclosure");return console.warn("bad regexp-value '"+f+"', missing /-enclosure"),null}var w=f.slice(g+1,m),B=f[m+1]==="i"?"i":"";try{return new RegExp(w,B)}catch(H){if(p)throw new Error("bad regexp-value '"+f+"', parse error: "+H);return console.warn("bad regexp-value '"+f+"', parse error: "+H),null}},_}();function F(_,f){var p=_.getType(),g=f.getType();if(p!==g)return p-g;switch(p){case 1:return _.cmp(f);case 2:return _.cmp(f);case 3:return _.cmp(f);case 4:return _.cmp(f);case 6:return _.cmp(f);case 7:return _.cmp(f);case 5:return _.cmp(f);default:throw new Error("Unknown ContextKeyExpr!")}}var U=function(){function _(f){this.key=f}return _.create=function(f){return new _(f)},_.prototype.getType=function(){return 1},_.prototype.cmp=function(f){return this.keyf.key?1:0},_.prototype.equals=function(f){return f instanceof _?this.key===f.key:!1},_.prototype.evaluate=function(f){return!!f.getValue(this.key)},_.prototype.keys=function(){return[this.key]},_.prototype.negate=function(){return R.create(this.key)},_}(),j=function(){function _(f,p){this.key=f,this.value=p}return _.create=function(f,p){return typeof p=="boolean"?p?U.create(f):R.create(f):new _(f,p)},_.prototype.getType=function(){return 3},_.prototype.cmp=function(f){return this.keyf.key?1:this.valuef.value?1:0},_.prototype.equals=function(f){return f instanceof _?this.key===f.key&&this.value===f.value:!1},_.prototype.evaluate=function(f){return f.getValue(this.key)==this.value},_.prototype.keys=function(){return[this.key]},_.prototype.negate=function(){return G.create(this.key,this.value)},_}(),G=function(){function _(f,p){this.key=f,this.value=p}return _.create=function(f,p){return typeof p=="boolean"?p?R.create(f):U.create(f):new _(f,p)},_.prototype.getType=function(){return 4},_.prototype.cmp=function(f){return this.keyf.key?1:this.valuef.value?1:0},_.prototype.equals=function(f){return f instanceof _?this.key===f.key&&this.value===f.value:!1},_.prototype.evaluate=function(f){return f.getValue(this.key)!=this.value},_.prototype.keys=function(){return[this.key]},_.prototype.negate=function(){return j.create(this.key,this.value)},_}(),R=function(){function _(f){this.key=f}return _.create=function(f){return new _(f)},_.prototype.getType=function(){return 2},_.prototype.cmp=function(f){return this.keyf.key?1:0},_.prototype.equals=function(f){return f instanceof _?this.key===f.key:!1},_.prototype.evaluate=function(f){return!f.getValue(this.key)},_.prototype.keys=function(){return[this.key]},_.prototype.negate=function(){return U.create(this.key)},_}(),E=function(){function _(f,p){this.key=f,this.regexp=p}return _.create=function(f,p){return new _(f,p)},_.prototype.getType=function(){return 6},_.prototype.cmp=function(f){if(this.keyf.key)return 1;var p=this.regexp?this.regexp.source:"",g=f.regexp?f.regexp.source:"";return pg?1:0},_.prototype.equals=function(f){if(f instanceof _){var p=this.regexp?this.regexp.source:"",g=f.regexp?f.regexp.source:"";return this.key===f.key&&p===g}return!1},_.prototype.evaluate=function(f){var p=f.getValue(this.key);return this.regexp?this.regexp.test(p):!1},_.prototype.keys=function(){return[this.key]},_.prototype.negate=function(){return x.create(this)},_}(),x=function(){function _(f){this._actual=f}return _.create=function(f){return new _(f)},_.prototype.getType=function(){return 7},_.prototype.cmp=function(f){return this._actual.cmp(f._actual)},_.prototype.equals=function(f){return f instanceof _?this._actual.equals(f._actual):!1},_.prototype.evaluate=function(f){return!this._actual.evaluate(f)},_.prototype.keys=function(){return this._actual.keys()},_.prototype.negate=function(){return this._actual},_}(),K=function(){function _(f){this.expr=f}return _.create=function(f){var p=_._normalizeArr(f);return p.length===0?void 0:p.length===1?p[0]:new _(p)},_.prototype.getType=function(){return 5},_.prototype.cmp=function(f){if(this.expr.lengthf.expr.length)return 1;for(var p=0,g=this.expr.length;p1;){for(var B=f.shift(),H=f.shift(),re=[],he=0,Ee=w(B);he=this.el.clientHeight-4)return this.orthogonalEndSash}else{if(f.offsetX<=4)return this.orthogonalStartSash;if(f.offsetX>=this.el.clientWidth-4)return this.orthogonalEndSash}return},_.prototype.dispose=function(){z.prototype.dispose.call(this),this.el.remove()},_}(ne.a)},clE0:function(wt,P,r){"use strict";r.r(P),r.d(P,"SnippetController2",function(){return Pt});var I=r("bN5T"),oe=r("yBOt"),ne=r("Whdu"),N=r("w9Cd"),F=r("F5bH"),U=r("2GBI"),j=r("Sn7V"),G=r("bBv/"),R=r("lgEJ"),E=r("Inmo"),x=r("KQl8"),K=r("qz6B"),D=r("8ZZ4"),A=r("0ytw"),te=r("dEFY"),z=r("PoD0"),_=r("ZiB8"),f=r("g9ht"),p=r("xFpO"),g=r("67Fg"),m=r("tkZS"),w=r("zOJ8"),B="code-workspace";function H(Ke){return Ke instanceof w.a}function re(Ke){return Ke.configuration?{configPath:Ke.configuration,id:Ke.id}:Ke.folders.length===1?Ke.folders[0].uri:void 0}var he=r("ekSf"),Ee=function(){function Ke(Xe){this._delegates=Xe}return Ke.prototype.resolve=function(Xe){for(var Ze=0,Ye=this._delegates;Ze=0){for(var Ye=[],ke=0,$e=this._placeholderGroups[this._placeholderGroupsIdx];ke<$e.length;ke++){var we=$e[ke];if(we.transform){var k=this._placeholderDecorations.get(we),ee=this._editor.getModel().getDecorationRange(k),Pe=this._editor.getModel().getValueInRange(ee);Ye.push(K.a.replaceMove(ee,we.transform.resolve(Pe)))}}Ye.length>0&&this._editor.executeEdits("snippet.placeholderTransform",Ye)}var ve=!1;Xe===!0&&this._placeholderGroupsIdx0&&(this._placeholderGroupsIdx-=1,ve=!0);var Te=this._editor.getModel().changeDecorations(function(Ie){for(var pe=new Set,nt=[],Et=0,Rt=Ze._placeholderGroups[Ze._placeholderGroupsIdx];Et0)return!0}Ze=Ze.parent}return!1},Object.defineProperty(Ke.prototype,"isAtFirstPlaceholder",{get:function(){return this._placeholderGroupsIdx<=0||this._placeholderGroups.length===0},enumerable:!0,configurable:!0}),Object.defineProperty(Ke.prototype,"isAtLastPlaceholder",{get:function(){return this._placeholderGroupsIdx===this._placeholderGroups.length-1},enumerable:!0,configurable:!0}),Object.defineProperty(Ke.prototype,"hasPlaceholder",{get:function(){return this._snippet.placeholders.length>0},enumerable:!0,configurable:!0}),Ke.prototype.computePossibleSelections=function(){for(var Xe=new Map,Ze=0,Ye=this._placeholderGroups;Ze0&&Ht!==ve.getLineFirstNonWhitespaceColumn(Tn.positionLineNumber),!0),Lt.resolveVariables(new Ee([Ie,new Z(nt,Ft,Gt.length,Xe.getOption(60)==="spread"),new Se(ve,Tn),new ce(ve),new Me,new Ve(Te),new _e]));var Qt=ve.getOffsetAt(Vt)+Et;Et+=Lt.toString().length-ve.getValueLengthInRange(Dt),ee[Ft]=K.a.replace(Dt,Lt.toString()),Pe[Ft]=new ie(Xe,Lt,Qt)}return{edits:ee,snippets:Pe}},Ke.prototype.dispose=function(){Object(I.f)(this._snippets)},Ke.prototype._logInfo=function(){return'template="'+this._template+'", merged_templates="'+this._templateMerges.join(" -> ")+'"'},Ke.prototype.insert=function(){var Xe=this;if(!this._editor.hasModel())return;var Ze=Ke.createEditsAndSnippets(this._editor,this._template,this._options.overwriteBefore,this._options.overwriteAfter,!1,this._options.adjustWhitespace,this._options.clipboardText),Ye=Ze.edits,ke=Ze.snippets;this._snippets=ke,this._editor.executeEdits("snippet",Ye,function($e){return Xe._snippets[0].hasPlaceholder?Xe._move(!0):$e.map(function(we){return F.a.fromPositions(we.range.getEndPosition())})}),this._editor.revealRange(this._editor.getSelections()[0])},Ke.prototype.merge=function(Xe,Ze){var Ye=this;if(Ze===void 0&&(Ze=J),!this._editor.hasModel())return;this._templateMerges.push([this._snippets[0]._nestingLevel,this._snippets[0]._placeholderGroupsIdx,Xe]);var ke=Ke.createEditsAndSnippets(this._editor,Xe,Ze.overwriteBefore,Ze.overwriteAfter,!0,Ze.adjustWhitespace,Ze.clipboardText),$e=ke.edits,we=ke.snippets;this._editor.executeEdits("snippet",$e,function(k){for(var ee=0,Pe=Ye._snippets;ee0},Ke}(),ye=function(){return ye=Object.assign||function(Ke){for(var Xe,Ze=1,Ye=arguments.length;Ze=0;k--)(we=Ke[k])&&($e=(ke<3?we($e):ke>3?we(Xe,Ze,$e):we(Xe,Ze))||$e);return ke>3&&$e&&Object.defineProperty(Xe,Ze,$e),$e},tt=function(Ke,Xe){return function(Ze,Ye){Xe(Ze,Ye,Ke)}},_t={overwriteBefore:0,overwriteAfter:0,undoStopBefore:!0,undoStopAfter:!0,adjustWhitespace:!0,clipboardText:void 0},Pt=function(){function Ke(Xe,Ze,Ye){this._editor=Xe,this._logService=Ze,this._snippetListener=new I.b,this._modelVersionId=-1,this._inSnippet=Ke.InSnippetMode.bindTo(Ye),this._hasNextTabstop=Ke.HasNextTabstop.bindTo(Ye),this._hasPrevTabstop=Ke.HasPrevTabstop.bindTo(Ye)}return Ke.get=function(Xe){return Xe.getContribution(Ke.ID)},Ke.prototype.dispose=function(){this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),Object(I.f)(this._session),this._snippetListener.dispose()},Ke.prototype.insert=function(Xe,Ze){try{this._doInsert(Xe,typeof Ze=="undefined"?_t:ye(ye({},_t),Ze))}catch(Ye){this.cancel(),this._logService.error(Ye),this._logService.error("snippet_error"),this._logService.error("insert_template=",Xe),this._logService.error("existing_template=",this._session?this._session._logInfo():"")}},Ke.prototype._doInsert=function(Xe,Ze){var Ye=this;if(!this._editor.hasModel())return;this._snippetListener.clear(),Ze.undoStopBefore&&this._editor.getModel().pushStackElement(),this._session?this._session.merge(Xe,Ze):(this._modelVersionId=this._editor.getModel().getAlternativeVersionId(),this._session=new me(this._editor,Xe,Ze),this._session.insert()),Ze.undoStopAfter&&this._editor.getModel().pushStackElement(),this._updateState(),this._snippetListener.add(this._editor.onDidChangeModelContent(function(ke){return ke.isFlush&&Ye.cancel()})),this._snippetListener.add(this._editor.onDidChangeModel(function(){return Ye.cancel()})),this._snippetListener.add(this._editor.onDidChangeCursorSelection(function(){return Ye._updateState()}))},Ke.prototype._updateState=function(){if(!this._session||!this._editor.hasModel())return;if(this._modelVersionId===this._editor.getModel().getAlternativeVersionId())return this.cancel();if(!this._session.hasPlaceholder)return this.cancel();if(this._session.isAtLastPlaceholder||!this._session.isSelectionWithinPlaceholders())return this.cancel();this._inSnippet.set(!0),this._hasPrevTabstop.set(!this._session.isAtFirstPlaceholder),this._hasNextTabstop.set(!this._session.isAtLastPlaceholder),this._handleChoice()},Ke.prototype._handleChoice=function(){var Xe=this;if(!this._session||!this._editor.hasModel()){this._currentChoice=void 0;return}var Ze=this._session.choice;if(!Ze){this._currentChoice=void 0;return}if(this._currentChoice!==Ze){this._currentChoice=Ze,this._editor.setSelections(this._editor.getSelections().map(function(ke){return F.a.fromPositions(ke.getStartPosition())}));var Ye=Ze.options[0];Object(j.f)(this._editor,Ze.options.map(function(ke,$e){return{kind:13,label:ke.value,insertText:ke.value,sortText:Object(oe.J)("a",$e+1),range:N.a.fromPositions(Xe._editor.getPosition(),Xe._editor.getPosition().delta(0,Ye.value.length))}}))}},Ke.prototype.finish=function(){for(;this._inSnippet.get();)this.next()},Ke.prototype.cancel=function(Xe){Xe===void 0&&(Xe=!1),this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),this._snippetListener.clear(),Object(I.f)(this._session),this._session=void 0,this._modelVersionId=-1,Xe&&this._editor.setSelections([this._editor.getSelection()])},Ke.prototype.prev=function(){this._session&&this._session.prev(),this._updateState()},Ke.prototype.next=function(){this._session&&this._session.next(),this._updateState()},Ke.prototype.isInSnippet=function(){return Boolean(this._inSnippet.get())},Ke.ID="snippetController2",Ke.InSnippetMode=new G.d("inSnippetMode",!1),Ke.HasNextTabstop=new G.d("hasNextTabstop",!1),Ke.HasPrevTabstop=new G.d("hasPrevTabstop",!1),Ke=ze([tt(1,R.a),tt(2,G.c)],Ke),Ke}();Object(ne.h)(Pt.ID,Pt);var Xt=ne.c.bindToContribution(Pt.get);Object(ne.g)(new Xt({id:"jumpToNextSnippetPlaceholder",precondition:G.a.and(Pt.InSnippetMode,Pt.HasNextTabstop),handler:function(Xe){return Xe.next()},kbOpts:{weight:100+30,kbExpr:U.a.editorTextFocus,primary:2}})),Object(ne.g)(new Xt({id:"jumpToPrevSnippetPlaceholder",precondition:G.a.and(Pt.InSnippetMode,Pt.HasPrevTabstop),handler:function(Xe){return Xe.prev()},kbOpts:{weight:100+30,kbExpr:U.a.editorTextFocus,primary:1024|2}})),Object(ne.g)(new Xt({id:"leaveSnippet",precondition:Pt.InSnippetMode,handler:function(Xe){return Xe.cancel(!0)},kbOpts:{weight:100+30,kbExpr:U.a.editorTextFocus,primary:9,secondary:[1024|9]}})),Object(ne.g)(new Xt({id:"acceptSnippet",precondition:Pt.InSnippetMode,handler:function(Xe){return Xe.finish()}}))},cqUj:function(wt,P,r){"use strict";r.d(P,"c",function(){return N}),r.d(P,"b",function(){return F}),r.d(P,"a",function(){return U}),r.d(P,"d",function(){return j}),r.d(P,"e",function(){return G});var I=r("v4mt"),oe=r("vqGt"),ne=function(){function R(){}return R.prototype.clone=function(){return this},R.prototype.equals=function(E){return this===E},R}(),N=new ne,F="vs.editor.nullMode",U=new oe.q(F,0);function j(R,E,x,K){return new I.b([new I.a(K,"",R)],x)}function G(R,E,x,K){var D=new Uint32Array(2);return D[0]=K,D[1]=(R<<0|0<<8|0<<11|1<<14|2<<23)>>>0,new I.c(D,x===null?N:x)}},d3Gc:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib"],aliases:["StructuredText","scl","stl"],loader:function(){return r.e(250).then(r.bind(null,"X66W"))}})},dBuo:function(wt,P,r){"use strict";r.r(P),r.d(P,"SuggestController",function(){return X}),r.d(P,"TriggerSuggestAction",function(){return Ue});var I=r("5xAg"),oe=r("Inmo"),ne=r("QqjT"),N=r("Qun0"),F=r("bN5T"),U=r("Whdu"),j=r("qz6B"),G=r("w9Cd"),R=r("2GBI"),E=r("clE0"),x=r("ZiB8"),K=r("emi/"),D=r("41id"),A=r("vqGt"),te=r("dE3Z"),z=r("PoD0"),_=r("gC1f"),f=r("qJsm"),p=function(){var Q=function(Oe,it){return Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Qe,je){Qe.__proto__=je}||function(Qe,je){for(var Ct in je)je.hasOwnProperty(Ct)&&(Qe[Ct]=je[Ct])},Q(Oe,it)};return function(Ce,Oe){Q(Ce,Oe);function it(){this.constructor=Ce}Ce.prototype=Oe===null?Object.create(Oe):(it.prototype=Oe.prototype,new it)}}(),g=function(Q,Ce,Oe,it){var Qe=arguments.length,je=Qe<3?Ce:it===null?it=Object.getOwnPropertyDescriptor(Ce,Oe):it,Ct;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")je=Reflect.decorate(Q,Ce,Oe,it);else for(var Ot=Q.length-1;Ot>=0;Ot--)(Ct=Q[Ot])&&(je=(Qe<3?Ct(je):Qe>3?Ct(Ce,Oe,je):Ct(Ce,Oe))||je);return Qe>3&&je&&Object.defineProperty(Ce,Oe,je),je},m=function(Q,Ce){return function(Oe,it){Ce(Oe,it,Q)}},w=function(){function Q(){}return Q.prototype.select=function(Ce,Oe,it){if(it.length===0)return 0;for(var Qe=it[0].score[0],je=1;jeAt&&bn.type===Qe[jt].completion.kind&&bn.insertText===Qe[jt].completion.insertText&&(At=bn.touch,Jt=jt),Qe[jt].completion.preselect&&Ot===-1)return Ot=jt}return Jt!==-1?Jt:Ot!==-1?Ot:0},Ce.prototype.toJSON=function(){var Oe=[];return this._cache.forEach(function(it,Qe){Oe.push([Qe,it])}),Oe},Ce.prototype.fromJSON=function(Oe){this._cache.clear();for(var it=0,Qe=0,je=Oe;Qe0){this._seq=Oe[0][1].touch+1;for(var it=0,Qe=Oe;it=0;Ot--)(Ct=Q[Ot])&&(je=(Qe<3?Ct(je):Qe>3?Ct(Ce,Oe,je):Ct(Ce,Oe))||je);return Qe>3&&je&&Object.defineProperty(Ce,Oe,je),je},_e=function(Q,Ce){return function(Oe,it){Ce(Oe,it,Q)}},ue=function(){function Q(Ce,Oe){this._editor=Ce,this._index=0,this._ckOtherSuggestions=Q.OtherSuggestions.bindTo(Oe)}return Q.prototype.dispose=function(){this.reset()},Q.prototype.reset=function(){this._ckOtherSuggestions.reset(),Object(F.f)(this._listener),this._model=void 0,this._acceptNext=void 0,this._ignore=!1},Q.prototype.set=function(Ce,Oe){var it=this,Qe=Ce.model,je=Ce.index;if(Qe.items.length===0){this.reset();return}var Ct=Q._moveIndex(!0,Qe,je);if(Ct===je){this.reset();return}this._acceptNext=Oe,this._model=Qe,this._index=je,this._listener=this._editor.onDidChangeCursorPosition(function(){it._ignore||it.reset()}),this._ckOtherSuggestions.set(!0)},Q._moveIndex=function(Ce,Oe,it){for(var Qe=it;!(Qe=(Qe+Oe.items.length+(Ce?1:-1))%Oe.items.length,Qe===it);)if(!Oe.items[Qe].completion.additionalTextEdits)break;return Qe},Q.prototype.next=function(){this._move(!0)},Q.prototype.prev=function(){this._move(!1)},Q.prototype._move=function(Ce){if(!this._model)return;try{this._ignore=!0,this._index=Q._moveIndex(Ce,this._model,this._index),this._acceptNext({index:this._index,item:this._model.items[this._index],model:this._model})}finally{this._ignore=!1}},Q.OtherSuggestions=new Z.d("hasOtherSuggestions",!1),Q=Ve([_e(1,Z.c)],Q),Q}(),se=r("YK2C"),fe=r("F5bH"),ie=r("VV9f"),J=r("yBOt"),me=function(){function Q(Ce,Oe){this.leadingLineContent=Ce,this.characterCountDelta=Oe}return Q}(),ye=function(){function Q(Ce,Oe,it,Qe,je,Ct){this._snippetCompareFn=Q._compareCompletionItems,this._items=Ce,this._column=Oe,this._wordDistance=Qe,this._options=je,this._refilterKind=1,this._lineContext=it,Ct==="top"?this._snippetCompareFn=Q._compareCompletionItemsSnippetsUp:Ct==="bottom"&&(this._snippetCompareFn=Q._compareCompletionItemsSnippetsDown)}return Object.defineProperty(Q.prototype,"lineContext",{get:function(){return this._lineContext},set:function(Oe){(this._lineContext.leadingLineContent!==Oe.leadingLineContent||this._lineContext.characterCountDelta!==Oe.characterCountDelta)&&(this._refilterKind=this._lineContext.characterCountDelta2e3?ie.d:ie.e,At=0;At=bn)jt.score=ie.a.Default;else if(typeof jt.completion.filterText=="string"){var Yn=Jt(Qe,je,mn,jt.completion.filterText,jt.filterTextLow,0,!1);if(!Yn)continue;Object(J.f)(jt.completion.filterText,Xn)===0?jt.score=Yn:(jt.score=Object(ie.b)(Qe,je,mn,Xn,jt.labelLow,0),jt.score[0]=Yn[0])}else{var Yn=Jt(Qe,je,mn,Xn,jt.labelLow,0,!1);if(!Yn)continue;jt.score=Yn}}jt.idx=At,jt.distance=this._wordDistance.distance(jt.position,jt.completion),Ot.push(jt),this._stats.suggestionCount++;switch(jt.completion.kind){case 25:this._stats.snippetCount++;break;case 18:this._stats.textCount++;break}}this._filteredItems=Ot.sort(this._snippetCompareFn),this._refilterKind=0},Q._compareCompletionItems=function(Ce,Oe){return Ce.score[0]>Oe.score[0]?-1:Ce.score[0]Oe.distance?1:Ce.idxOe.idx?1:0},Q._compareCompletionItemsSnippetsDown=function(Ce,Oe){if(Ce.completion.kind!==Oe.completion.kind){if(Ce.completion.kind===25)return 1;if(Oe.completion.kind===25)return-1}return Q._compareCompletionItems(Ce,Oe)},Q._compareCompletionItemsSnippetsUp=function(Ce,Oe){if(Ce.completion.kind!==Oe.completion.kind){if(Ce.completion.kind===25)return-1;if(Oe.completion.kind===25)return 1}return Q._compareCompletionItems(Ce,Oe)},Q}(),ze=r("l+zK"),tt=r("V0RK"),_t=r("XAYP"),Pt=function(Q,Ce,Oe,it){function Qe(je){return je instanceof Oe?je:new Oe(function(Ct){Ct(je)})}return new(Oe||(Oe=Promise))(function(je,Ct){function Ot(jt){try{At(it.next(jt))}catch(hn){Ct(hn)}}function Jt(jt){try{At(it.throw(jt))}catch(hn){Ct(hn)}}function At(jt){jt.done?je(jt.value):Qe(jt.value).then(Ot,Jt)}At((it=it.apply(Q,Ce||[])).next())})},Xt=function(Q,Ce){var Oe={label:0,sent:function(){if(je[0]&1)throw je[1];return je[1]},trys:[],ops:[]},it,Qe,je,Ct;return Ct={next:Ot(0),throw:Ot(1),return:Ot(2)},typeof Symbol=="function"&&(Ct[Symbol.iterator]=function(){return this}),Ct;function Ot(At){return function(jt){return Jt([At,jt])}}function Jt(At){if(it)throw new TypeError("Generator is already executing.");for(;Oe;)try{if(it=1,Qe&&(je=At[0]&2?Qe.return:At[0]?Qe.throw||((je=Qe.return)&&je.call(Qe),0):Qe.next)&&!(je=je.call(Qe,At[1])).done)return je;(Qe=0,je)&&(At=[At[0]&2,je.value]);switch(At[0]){case 0:case 1:je=At;break;case 4:return Oe.label++,{value:At[1],done:!1};case 5:Oe.label++,Qe=At[1],At=[0];continue;case 7:At=Oe.ops.pop(),Oe.trys.pop();continue;default:if(!(je=Oe.trys,je=je.length>0&&je[je.length-1])&&(At[0]===6||At[0]===2)){Oe=0;continue}if(At[0]===3&&(!je||At[1]>je[0]&&At[1]=Q._maxRounds){Ce();break}if(!Qe){Ce();break}var Jt=it.findNextBracket(Qe);if(!Jt){Ce();break}var At=Date.now()-Ot;if(At>Q._maxDuration){setTimeout(function(){return Q._bracketsRightYield(Ce,Oe+1,it,Qe,je)});break}var jt=Jt.close[0];if(Jt.isOpen){var hn=Ct.has(jt)?Ct.get(jt):0;Ct.set(jt,hn+1)}else{var hn=Ct.has(jt)?Ct.get(jt):0;if(hn-=1,Ct.set(jt,Math.max(0,hn)),hn<0){var bn=je.get(jt);bn||(bn=new _t.a,je.set(jt,bn)),bn.push(Jt.range)}}Qe=Jt.range.getEndPosition()}},Q._bracketsLeftYield=function(Ce,Oe,it,Qe,je,Ct){for(var Ot=new Map,Jt=Date.now();;){if(Oe>=Q._maxRounds&&je.size===0){Ce();break}if(!Qe){Ce();break}var At=it.findPrevBracket(Qe);if(!At){Ce();break}var jt=Date.now()-Jt;if(jt>Q._maxDuration){setTimeout(function(){return Q._bracketsLeftYield(Ce,Oe+1,it,Qe,je,Ct)});break}var hn=At.close[0];if(At.isOpen){var bn=Ot.has(hn)?Ot.get(hn):0;if(bn-=1,Ot.set(hn,Math.max(0,bn)),bn<0){var mn=je.get(hn);if(mn){var Vn=mn.shift();mn.size===0&&je.delete(hn);var Xn=G.a.fromPositions(At.range.getEndPosition(),Vn.getStartPosition()),Yn=G.a.fromPositions(At.range.getStartPosition(),Vn.getEndPosition());Ct.push({range:Xn}),Ct.push({range:Yn}),Q._addBracketLeading(it,Yn,Ct)}}}else{var bn=Ot.has(hn)?Ot.get(hn):0;Ot.set(hn,bn+1)}Qe=At.range.getStartPosition()}},Q._addBracketLeading=function(Ce,Oe,it){if(Oe.startLineNumber===Oe.endLineNumber)return;var Qe=Oe.startLineNumber,je=Ce.getLineFirstNonWhitespaceColumn(Qe);je!==0&&je!==Oe.startColumn&&(it.push({range:G.a.fromPositions(new tt.a(Qe,je),Oe.getEndPosition())}),it.push({range:G.a.fromPositions(new tt.a(Qe,1),Oe.getEndPosition())}));var Ct=Qe-1;if(Ct>0){var Ot=Ce.getLineFirstNonWhitespaceColumn(Ct);Ot===Oe.startColumn&&Ot!==Ce.getLineLastNonWhitespaceColumn(Ct)&&(it.push({range:G.a.fromPositions(new tt.a(Ct,Ot),Oe.getEndPosition())}),it.push({range:G.a.fromPositions(new tt.a(Ct,1),Oe.getEndPosition())}))}},Q._maxDuration=30,Q._maxRounds=2,Q}(),Xe=function(){var Q=function(Oe,it){return Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Qe,je){Qe.__proto__=je}||function(Qe,je){for(var Ct in je)je.hasOwnProperty(Ct)&&(Qe[Ct]=je[Ct])},Q(Oe,it)};return function(Ce,Oe){Q(Ce,Oe);function it(){this.constructor=Ce}Ce.prototype=Oe===null?Object.create(Oe):(it.prototype=Oe.prototype,new it)}}(),Ze=function(Q,Ce,Oe,it){function Qe(je){return je instanceof Oe?je:new Oe(function(Ct){Ct(je)})}return new(Oe||(Oe=Promise))(function(je,Ct){function Ot(jt){try{At(it.next(jt))}catch(hn){Ct(hn)}}function Jt(jt){try{At(it.throw(jt))}catch(hn){Ct(hn)}}function At(jt){jt.done?je(jt.value):Qe(jt.value).then(Ot,Jt)}At((it=it.apply(Q,Ce||[])).next())})},Ye=function(Q,Ce){var Oe={label:0,sent:function(){if(je[0]&1)throw je[1];return je[1]},trys:[],ops:[]},it,Qe,je,Ct;return Ct={next:Ot(0),throw:Ot(1),return:Ot(2)},typeof Symbol=="function"&&(Ct[Symbol.iterator]=function(){return this}),Ct;function Ot(At){return function(jt){return Jt([At,jt])}}function Jt(At){if(it)throw new TypeError("Generator is already executing.");for(;Oe;)try{if(it=1,Qe&&(je=At[0]&2?Qe.return:At[0]?Qe.throw||((je=Qe.return)&&je.call(Qe),0):Qe.next)&&!(je=je.call(Qe,At[1])).done)return je;(Qe=0,je)&&(At=[At[0]&2,je.value]);switch(At[0]){case 0:case 1:je=At;break;case 4:return Oe.label++,{value:At[1],done:!1};case 5:Oe.label++,Qe=At[1],At=[0];continue;case 7:At=Oe.ops.pop(),Oe.trys.pop();continue;default:if(!(je=Oe.trys,je=je.length>0&&je[je.length-1])&&(At[0]===6||At[0]===2)){Oe=0;continue}if(At[0]===3&&(!je||At[1]>je[0]&&At[1]=0?mn[Vn]:mn[Math.max(0,~Vn-1)],Yn=je.length,Ui=0,ii=je[0];Ui0?At={triggerKind:2}:At={triggerKind:0},this._requestToken=new ze.b;var jt=this._editor.getOption(86),hn=1;switch(jt){case"top":hn=0;break;case"bottom":hn=2;break}var bn=Q._createItemKindFilter(this._editor),mn=ke.create(this._editorWorker,this._editor),Vn=Object(Me.e)(Ct,this._editor.getPosition(),new Me.a(hn,bn,it),At,this._requestToken.token);Promise.all([Vn,mn]).then(function(Xn){var Yn=Xn[0],Ui=Xn[1];if(Object(F.f)(je._requestToken),je._state===0)return;if(!je._editor.hasModel())return;var ii=je._editor.getModel();if(Object(oe.q)(Qe)){var Pi=Object(Me.d)(hn);Yn=Yn.concat(Qe).sort(Pi)}var uo=new $e(ii,je._editor.getPosition(),Ot,Ce.shy);je._completionModel=new ye(Yn,je._context.column,{leadingLineContent:uo.leadingLineContent,characterCountDelta:uo.column-je._context.column},Ui,je._editor.getOption(89),je._editor.getOption(86));for(var eo=0,to=Yn;eothis._context.column&&this._completionModel.incomplete.size>0&&Ce.leadingWord.word.length!==0){var Oe=this._completionModel.incomplete,it=this._completionModel.adopt(Oe);this.trigger({auto:this._state===2,shy:!1},!0,Oe,it)}else{var Qe=this._completionModel.lineContext,je=!1;if(this._completionModel.lineContext={leadingLineContent:Ce.leadingLineContent,characterCountDelta:Ce.column-this._context.column},this._completionModel.items.length===0){if($e.shouldAutoTrigger(this._editor)&&this._context.leadingWord.endColumn0,je&&Ce.leadingWord.word.length===0){this.cancel();return}}this._onDidSuggest.fire({completionModel:this._completionModel,auto:this._context.auto,shy:this._context.shy,isFrozen:je})}},Q}(),k=r("htSr"),ee=r("SvGJ"),Pe=r("R8yv"),ve=r("WWf0"),Te=r("03vC"),Ie=r("UJ5a"),pe=r("TwZP"),nt=r("0BkX"),Et=Object(nt.Rb)("symbolIcon.arrayForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Rt=Object(nt.Rb)("symbolIcon.booleanForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Tt=Object(nt.Rb)("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(Se.a)("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Ht=Object(nt.Rb)("symbolIcon.colorForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Gt=Object(nt.Rb)("symbolIcon.constantForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),rn=Object(nt.Rb)("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(Se.a)("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Ln=Object(nt.Rb)("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(Se.a)("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),yn=Object(nt.Rb)("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(Se.a)("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Tn=Object(nt.Rb)("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(Se.a)("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Ft=Object(nt.Rb)("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(Se.a)("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),pt=Object(nt.Rb)("symbolIcon.fileForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),gt=Object(nt.Rb)("symbolIcon.folderForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Dt=Object(nt.Rb)("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(Se.a)("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Lt=Object(nt.Rb)("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(Se.a)("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Vt=Object(nt.Rb)("symbolIcon.keyForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Qt=Object(nt.Rb)("symbolIcon.keywordForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),nn=Object(nt.Rb)("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(Se.a)("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),sn=Object(nt.Rb)("symbolIcon.moduleForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ln=Object(nt.Rb)("symbolIcon.namespaceForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),En=Object(nt.Rb)("symbolIcon.nullForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),On=Object(nt.Rb)("symbolIcon.numberForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Pn=Object(nt.Rb)("symbolIcon.objectForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Gn=Object(nt.Rb)("symbolIcon.operatorForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Qn=Object(nt.Rb)("symbolIcon.packageForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Jn=Object(nt.Rb)("symbolIcon.propertyForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),gi=Object(nt.Rb)("symbolIcon.referenceForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Kn=Object(nt.Rb)("symbolIcon.snippetForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),yi=Object(nt.Rb)("symbolIcon.stringForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),mi=Object(nt.Rb)("symbolIcon.structForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),vt=Object(nt.Rb)("symbolIcon.textForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Mt=Object(nt.Rb)("symbolIcon.typeParameterForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),zt=Object(nt.Rb)("symbolIcon.unitForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),tn=Object(nt.Rb)("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(Se.a)("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));Object(pe.e)(function(Q,Ce){var Oe=Q.getColor(Et);Oe&&Ce.addRule(".codicon-symbol-array { color: "+Oe+" !important; }");var it=Q.getColor(Rt);it&&Ce.addRule(".codicon-symbol-boolean { color: "+it+" !important; }");var Qe=Q.getColor(Tt);Qe&&Ce.addRule(".codicon-symbol-class { color: "+Qe+" !important; }");var je=Q.getColor(nn);je&&Ce.addRule(".codicon-symbol-method { color: "+je+" !important; }");var Ct=Q.getColor(Ht);Ct&&Ce.addRule(".codicon-symbol-color { color: "+Ct+" !important; }");var Ot=Q.getColor(Gt);Ot&&Ce.addRule(".codicon-symbol-constant { color: "+Ot+" !important; }");var Jt=Q.getColor(rn);Jt&&Ce.addRule(".codicon-symbol-constructor { color: "+Jt+" !important; }");var At=Q.getColor(Ln);At&&Ce.addRule(` .codicon-symbol-value,.codicon-symbol-enum { color: `+At+" !important; }");var jt=Q.getColor(yn);jt&&Ce.addRule(".codicon-symbol-enum-member { color: "+jt+" !important; }");var hn=Q.getColor(Tn);hn&&Ce.addRule(".codicon-symbol-event { color: "+hn+" !important; }");var bn=Q.getColor(Ft);bn&&Ce.addRule(".codicon-symbol-field { color: "+bn+" !important; }");var mn=Q.getColor(pt);mn&&Ce.addRule(".codicon-symbol-file { color: "+mn+" !important; }");var Vn=Q.getColor(gt);Vn&&Ce.addRule(".codicon-symbol-folder { color: "+Vn+" !important; }");var Xn=Q.getColor(Dt);Xn&&Ce.addRule(".codicon-symbol-function { color: "+Xn+" !important; }");var Yn=Q.getColor(Lt);Yn&&Ce.addRule(".codicon-symbol-interface { color: "+Yn+" !important; }");var Ui=Q.getColor(Vt);Ui&&Ce.addRule(".codicon-symbol-key { color: "+Ui+" !important; }");var ii=Q.getColor(Qt);ii&&Ce.addRule(".codicon-symbol-keyword { color: "+ii+" !important; }");var Pi=Q.getColor(sn);Pi&&Ce.addRule(".codicon-symbol-module { color: "+Pi+" !important; }");var uo=Q.getColor(ln);uo&&Ce.addRule(".codicon-symbol-namespace { color: "+uo+" !important; }");var eo=Q.getColor(En);eo&&Ce.addRule(".codicon-symbol-null { color: "+eo+" !important; }");var to=Q.getColor(On);to&&Ce.addRule(".codicon-symbol-number { color: "+to+" !important; }");var zn=Q.getColor(Pn);zn&&Ce.addRule(".codicon-symbol-object { color: "+zn+" !important; }");var zo=Q.getColor(Gn);zo&&Ce.addRule(".codicon-symbol-operator { color: "+zo+" !important; }");var Oi=Q.getColor(Qn);Oi&&Ce.addRule(".codicon-symbol-package { color: "+Oi+" !important; }");var wr=Q.getColor(Jn);wr&&Ce.addRule(".codicon-symbol-property { color: "+wr+" !important; }");var Po=Q.getColor(gi);Po&&Ce.addRule(".codicon-symbol-reference { color: "+Po+" !important; }");var Ho=Q.getColor(Kn);Ho&&Ce.addRule(".codicon-symbol-snippet { color: "+Ho+" !important; }");var Fo=Q.getColor(yi);Fo&&Ce.addRule(".codicon-symbol-string { color: "+Fo+" !important; }");var tr=Q.getColor(mi);tr&&Ce.addRule(".codicon-symbol-struct { color: "+tr+" !important; }");var pr=Q.getColor(vt);pr&&Ce.addRule(".codicon-symbol-text { color: "+pr+" !important; }");var co=Q.getColor(Mt);co&&Ce.addRule(".codicon-symbol-type-parameter { color: "+co+" !important; }");var So=Q.getColor(zt);So&&Ce.addRule(".codicon-symbol-unit { color: "+So+" !important; }");var gr=Q.getColor(tn);gr&&Ce.addRule(".codicon-symbol-variable { color: "+gr+" !important; }")});var Ut=r("fF8p"),Sn=r("N7KK"),Rn=r("AyeG"),Bn=r("Qr/v"),Fn=r("yimU"),ri=r("7wrl"),ci=r("FCoH"),zi=r("rvt5"),oo=r("mWsY"),Zn=r("WKDz"),Ii=r("Ojgo"),Si=r("67Fg"),ji=r("jyJ4"),Un;(function(Q){Q[Q.FILE=0]="FILE",Q[Q.FOLDER=1]="FOLDER",Q[Q.ROOT_FOLDER=2]="ROOT_FOLDER"})(Un||(Un={}));function Ci(Q,Ce,Oe,it){var Qe=it===Un.ROOT_FOLDER?["rootfolder-icon"]:it===Un.FOLDER?["folder-icon"]:["file-icon"];if(Oe){var je;if(Oe.scheme===Ii.b.data){var Ct=Si.a.parseMetaData(Oe);je=Ct.get(Si.a.META_DATA_LABEL)}else je=Ti(Object(Si.c)(Oe).toLowerCase());if(it===Un.FOLDER)Qe.push(je+"-name-folder-icon");else{if(je){Qe.push(je+"-name-file-icon");for(var Ot=je.split("."),Jt=1;Jt=0;Ot--)(Ct=Q[Ot])&&(je=(Qe<3?Ct(je):Qe>3?Ct(Ce,Oe,je):Ct(Ce,Oe))||je);return Qe>3&&je&&Object.defineProperty(Ce,Oe,je),je},bi=function(Q,Ce){return function(Oe,it){Ce(Oe,it,Q)}},Di=function(Q,Ce,Oe,it){function Qe(je){return je instanceof Oe?je:new Oe(function(Ct){Ct(je)})}return new(Oe||(Oe=Promise))(function(je,Ct){function Ot(jt){try{At(it.next(jt))}catch(hn){Ct(hn)}}function Jt(jt){try{At(it.throw(jt))}catch(hn){Ct(hn)}}function At(jt){jt.done?je(jt.value):Qe(jt.value).then(Ot,Jt)}At((it=it.apply(Q,Ce||[])).next())})},Xi=function(Q,Ce){var Oe={label:0,sent:function(){if(je[0]&1)throw je[1];return je[1]},trys:[],ops:[]},it,Qe,je,Ct;return Ct={next:Ot(0),throw:Ot(1),return:Ot(2)},typeof Symbol=="function"&&(Ct[Symbol.iterator]=function(){return this}),Ct;function Ot(At){return function(jt){return Jt([At,jt])}}function Jt(At){if(it)throw new TypeError("Generator is already executing.");for(;Oe;)try{if(it=1,Qe&&(je=At[0]&2?Qe.return:At[0]?Qe.throw||((je=Qe.return)&&je.call(Qe),0):Qe.next)&&!(je=je.call(Qe,At[1])).done)return je;(Qe=0,je)&&(At=[At[0]&2,je.value]);switch(At[0]){case 0:case 1:je=At;break;case 4:return Oe.label++,{value:At[1],done:!1};case 5:Oe.label++,Qe=At[1],At=[0];continue;case 7:At=Oe.ops.pop(),Oe.trys.pop();continue;default:if(!(je=Oe.trys,je=je.length>0&&je[je.length-1])&&(At[0]===6||At[0]===2)){Oe=0;continue}if(At[0]===3&&(!je||At[1]>je[0]&&At[1]hn.length?jt:hn}else Ct.kind===23&&this._themeService.getIconTheme().hasFolderIcons?(je.icon.className="icon hide",je.iconContainer.className="icon hide",Jt.extraClasses=Object(oe.m)([Ci(this._modelService,this._modeService,Bi.a.from({scheme:"fake",path:Ot}),Un.FOLDER),Ci(this._modelService,this._modeService,Bi.a.from({scheme:"fake",path:Ct.detail}),Un.FOLDER)])):(je.icon.className="icon hide",je.iconContainer.className="",Object(Ut.f)(je.iconContainer,"suggest-icon codicon codicon-symbol-"+Object(A.C)(Ct.kind)));Ct.tags&&Ct.tags.indexOf(1)>=0&&(Jt.extraClasses=(Jt.extraClasses||[]).concat(["deprecated"]),Jt.matches=[]),je.iconLabel.setLabel(Ot,void 0,Jt),typeof Ct.label=="string"?(je.signatureLabel.textContent="",je.qualifierLabel.textContent="",je.detailsLabel.textContent=(Ct.detail||"").replace(/\n.*$/m,""),Object(Ut.O)(je.right,"always-show-details")):(je.signatureLabel.textContent=(Ct.label.signature||"").replace(/\n.*$/m,""),je.qualifierLabel.textContent=(Ct.label.qualifier||"").replace(/\n.*$/m,""),je.detailsLabel.textContent=(Ct.label.type||"").replace(/\n.*$/m,""),Object(Ut.e)(je.right,"always-show-details")),Re(Ce)?(Object(Ut.e)(je.right,"can-expand-details"),Object(Ut.W)(je.readMore),je.readMore.onmousedown=function(bn){bn.stopPropagation(),bn.preventDefault()},je.readMore.onclick=function(bn){bn.stopPropagation(),bn.preventDefault(),Qe.widget.toggleDetails()}):(Object(Ut.O)(je.right,"can-expand-details"),Object(Ut.I)(je.readMore),je.readMore.onmousedown=null,je.readMore.onclick=null)},Q.prototype.disposeTemplate=function(Ce){Ce.disposables.dispose()},Q=ro([bi(3,Gi.a),bi(4,zi.a),bi(5,pe.c)],Q),Q}(),lt=function(){function Q(Ce,Oe,it,Qe,je){var Ct=this;this.widget=Oe,this.editor=it,this.markdownRenderer=Qe,this.kbToggleDetails=je,this.borderWidth=1,this.disposables=new F.b,this.el=Object(Ut.p)(Ce,Object(Ut.a)(".details")),this.disposables.add(Object(F.h)(function(){return Ce.removeChild(Ct.el)})),this.body=Object(Ut.a)(".body"),this.scrollbar=new Rn.a(this.body,{}),Object(Ut.p)(this.el,this.scrollbar.getDomNode()),this.disposables.add(this.scrollbar),this.header=Object(Ut.p)(this.body,Object(Ut.a)(".header")),this.close=Object(Ut.p)(this.header,Object(Ut.a)("span.codicon.codicon-close")),this.close.title=Se.a("readLess","Read less...{0}",this.kbToggleDetails),this.type=Object(Ut.p)(this.header,Object(Ut.a)("p.type")),this.docs=Object(Ut.p)(this.body,Object(Ut.a)("p.docs")),this.configureFont(),se.b.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter(function(Ot){return Ot.hasChanged(34)}).on(this.configureFont,this,this.disposables),Qe.onDidRenderCodeBlock(function(){return Ct.scrollbar.scanDomNode()},this,this.disposables)}return Object.defineProperty(Q.prototype,"element",{get:function(){return this.el},enumerable:!0,configurable:!0}),Q.prototype.renderLoading=function(){this.type.textContent=Se.a("loading","Loading..."),this.docs.textContent=""},Q.prototype.renderItem=function(Ce,Oe){var it=this;this.renderDisposeable=Object(F.f)(this.renderDisposeable);var Qe=Ce.completion,je=Qe.documentation,Ct=Qe.detail;if(Oe){var Ot="";Ot+="score: "+Ce.score[0]+(Ce.word?", compared '"+(Ce.completion.filterText&&Ce.completion.filterText+" (filterText)"||Ce.completion.label)+"' with '"+Ce.word+"'":" (no prefix)")+` `,Ot+="distance: "+Ce.distance+`, see localityBonus-setting `,Ot+="index: "+Ce.idx+", based on "+(Ce.completion.sortText&&'sortText: "'+Ce.completion.sortText+'"'||"label")+` `,je=new vi.a().appendCodeblock("empty",Ot),Ct="Provider: "+Ce.provider._debugDisplayName}if(!Oe&&!Re(Ce)){this.type.textContent="",this.docs.textContent="",Object(Ut.e)(this.el,"no-docs");return}if(Object(Ut.O)(this.el,"no-docs"),typeof je=="string")Object(Ut.O)(this.docs,"markdown-docs"),this.docs.textContent=je;else{Object(Ut.e)(this.docs,"markdown-docs"),this.docs.innerHTML="";var Jt=this.markdownRenderer.render(je);this.renderDisposeable=Jt,this.docs.appendChild(Jt.element)}Ct?(this.type.innerText=Ct,Object(Ut.W)(this.type)):(this.type.innerText="",Object(Ut.I)(this.type)),this.el.style.height=this.header.offsetHeight+this.docs.offsetHeight+this.borderWidth*2+"px",this.el.style.userSelect="text",this.el.tabIndex=-1,this.close.onmousedown=function(At){At.preventDefault(),At.stopPropagation()},this.close.onclick=function(At){At.preventDefault(),At.stopPropagation(),it.widget.toggleDetails()},this.body.scrollTop=0,this.scrollbar.scanDomNode()},Q.prototype.scrollDown=function(Ce){Ce===void 0&&(Ce=8),this.body.scrollTop+=Ce},Q.prototype.scrollUp=function(Ce){Ce===void 0&&(Ce=8),this.body.scrollTop-=Ce},Q.prototype.scrollTop=function(){this.body.scrollTop=0},Q.prototype.scrollBottom=function(){this.body.scrollTop=this.body.scrollHeight},Q.prototype.pageDown=function(){this.scrollDown(80)},Q.prototype.pageUp=function(){this.scrollUp(80)},Q.prototype.setBorderWidth=function(Ce){this.borderWidth=Ce},Q.prototype.configureFont=function(){var Ce=this.editor.getOptions(),Oe=Ce.get(34),it=Oe.fontFamily,Qe=Ce.get(90)||Oe.fontSize,je=Ce.get(91)||Oe.lineHeight,Ct=Oe.fontWeight,Ot=Qe+"px",Jt=je+"px";this.el.style.fontSize=Ot,this.el.style.fontWeight=Ct,this.el.style.fontFeatureSettings=Oe.fontFeatureSettings,this.type.style.fontFamily=it,this.close.style.height=Jt,this.close.style.width=Jt},Q.prototype.dispose=function(){this.disposables.dispose(),this.renderDisposeable=Object(F.f)(this.renderDisposeable)},Q}(),yt=function(){function Q(Ce,Oe,it,Qe,je,Ct,Ot,Jt,At){var jt=this,hn,bn;this.editor=Ce,this.telemetryService=Oe,this.keybindingService=it,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.state=null,this.isAuto=!1,this.loadingTimeout=F.a.None,this.currentSuggestionDetails=null,this.ignoreFocusEvents=!1,this.completionModel=null,this.showTimeout=new te.e,this.toDispose=new F.b,this.onDidSelectEmitter=new se.a,this.onDidFocusEmitter=new se.a,this.onDidHideEmitter=new se.a,this.onDidShowEmitter=new se.a,this.onDidSelect=this.onDidSelectEmitter.event,this.onDidFocus=this.onDidFocusEmitter.event,this.onDidHide=this.onDidHideEmitter.event,this.onDidShow=this.onDidShowEmitter.event,this.maxWidgetWidth=660,this.listWidth=330,this.firstFocusInCurrentList=!1,this.preferDocPositionTop=!1,this.docsPositionPreviousWidgetY=null,this.explainMode=!1,this._onDetailsKeydown=new se.a,this.onDetailsKeyDown=this._onDetailsKeydown.event;var mn=this.toDispose.add(new ci.a(Ce,Ot,Jt)),Vn=(bn=(hn=it.lookupKeybinding("toggleSuggestionDetails"))===null||hn===void 0?void 0:hn.getLabel())!==null&&bn!==void 0?bn:"";this.msgDetailsLess=Se.a("detail.less","{0} for less...",Vn),this.msgDetailMore=Se.a("detail.more","{0} for more...",Vn),this.isAuto=!1,this.focusedItem=null,this.storageService=Ct,this.element=Object(Ut.a)(".editor-widget.suggest-widget"),this.toDispose.add(Object(Ut.i)(this.element,"click",function(ii){ii.target===jt.element&&jt.hideWidget()})),this.messageElement=Object(Ut.p)(this.element,Object(Ut.a)(".message")),this.listElement=Object(Ut.p)(this.element,Object(Ut.a)(".tree"));var Xn=function(){return Object(Ut.X)(jt.element,"with-status-bar",!jt.editor.getOption(89).hideStatusBar)};Xn(),this.statusBarElement=Object(Ut.p)(this.element,Object(Ut.a)(".suggest-status-bar")),this.statusBarLeftSpan=Object(Ut.p)(this.statusBarElement,Object(Ut.a)("span")),this.statusBarRightSpan=Object(Ut.p)(this.statusBarElement,Object(Ut.a)("span")),this.setStatusBarLeftText(""),this.setStatusBarRightText(""),this.details=At.createInstance(lt,this.element,this,this.editor,mn,Vn);var Yn=function(){return Object(Ut.X)(jt.element,"no-icons",!jt.editor.getOption(89).showIcons)};Yn();var Ui=At.createInstance(ft,this,this.editor,Vn);this.list=new Sn.c("SuggestWidget",this.listElement,this,[Ui],{useShadows:!1,openController:{shouldOpen:function(){return!1}},mouseSupport:!1,accessibilityProvider:{getAriaLabel:function(Pi){var uo=typeof Pi.completion.label=="string"?Pi.completion.label:Pi.completion.label.name;if(Pi.isResolved&&jt.expandDocsSettingFromStorage()){var eo=Pi.completion,to=eo.documentation,zn=eo.detail,zo=J.r("{0}{1}",zn||"",to?typeof to=="string"?to:to.value:"");return Se.a("ariaCurrenttSuggestionReadDetails","Item {0}, docs: {1}",uo,zo)}else return uo}}}),this.toDispose.add(Object(ri.b)(this.list,je,{listInactiveFocusBackground:O,listInactiveFocusOutline:nt.b})),this.toDispose.add(je.onThemeChange(function(ii){return jt.onThemeChange(ii)})),this.toDispose.add(Ce.onDidLayoutChange(function(){return jt.onEditorLayoutChange()})),this.toDispose.add(this.list.onMouseDown(function(ii){return jt.onListMouseDownOrTap(ii)})),this.toDispose.add(this.list.onTap(function(ii){return jt.onListMouseDownOrTap(ii)})),this.toDispose.add(this.list.onSelectionChange(function(ii){return jt.onListSelection(ii)})),this.toDispose.add(this.list.onFocusChange(function(ii){return jt.onListFocus(ii)})),this.toDispose.add(this.editor.onDidChangeCursorSelection(function(){return jt.onCursorSelectionChanged()})),this.toDispose.add(this.editor.onDidChangeConfiguration(function(ii){ii.hasChanged(89)&&(Xn(),Yn())})),this.suggestWidgetVisible=Me.b.Visible.bindTo(Qe),this.suggestWidgetMultipleSuggestions=Me.b.MultipleSuggestions.bindTo(Qe),this.editor.addContentWidget(this),this.setState(0),this.onThemeChange(je.getTheme()),this.toDispose.add(Object(Ut.n)(this.details.element,"keydown",function(ii){jt._onDetailsKeydown.fire(ii)})),this.toDispose.add(this.editor.onMouseDown(function(ii){return jt.onEditorMouseDown(ii)}))}return Q.prototype.onEditorMouseDown=function(Ce){this.details.element.contains(Ce.target.element)?this.details.element.focus():this.element.contains(Ce.target.element)&&this.editor.focus()},Q.prototype.onCursorSelectionChanged=function(){if(this.state===0)return;this.editor.layoutContentWidget(this)},Q.prototype.onEditorLayoutChange=function(){(this.state===3||this.state===5)&&this.expandDocsSettingFromStorage()&&this.expandSideOrBelow()},Q.prototype.onListMouseDownOrTap=function(Ce){if(typeof Ce.element=="undefined"||typeof Ce.index=="undefined")return;Ce.browserEvent.preventDefault(),Ce.browserEvent.stopPropagation(),this.select(Ce.element,Ce.index)},Q.prototype.onListSelection=function(Ce){if(!Ce.elements.length)return;this.select(Ce.elements[0],Ce.indexes[0])},Q.prototype.select=function(Ce,Oe){var it=this.completionModel;if(!it)return;this.onDidSelectEmitter.fire({item:Ce,index:Oe,model:it}),this.editor.focus()},Q.prototype.onThemeChange=function(Ce){var Oe=Ce.getColor(Mi);Oe&&(this.listElement.style.backgroundColor=Oe.toString(),this.statusBarElement.style.backgroundColor=Oe.toString(),this.details.element.style.backgroundColor=Oe.toString(),this.messageElement.style.backgroundColor=Oe.toString());var it=Ce.getColor(so);it&&(this.listElement.style.borderColor=it.toString(),this.statusBarElement.style.borderColor=it.toString(),this.details.element.style.borderColor=it.toString(),this.messageElement.style.borderColor=it.toString(),this.detailsBorderColor=it.toString());var Qe=Ce.getColor(nt.U);Qe&&(this.detailsFocusBorderColor=Qe.toString()),this.details.setBorderWidth(Ce.type==="hc"?2:1)},Q.prototype.onListFocus=function(Ce){var Oe=this,it,Qe;if(this.ignoreFocusEvents)return;if(!Ce.elements.length){this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null,this.focusedItem=null),this.editor.setAriaOptions({activeDescendant:void 0});return}if(!this.completionModel)return;var je=Ce.elements[0],Ct=Ce.indexes[0];if(this.firstFocusInCurrentList=!this.focusedItem,je!==this.focusedItem){var Ot=this.editor.getOption(89).insertMode==="insert",Jt=(it=this.keybindingService.lookupKeybinding("acceptSelectedSuggestion"))===null||it===void 0?void 0:it.getLabel(),At=(Qe=this.keybindingService.lookupKeybinding("acceptAlternativeSelectedSuggestion"))===null||Qe===void 0?void 0:Qe.getLabel();tt.a.equals(je.editInsertEnd,je.editReplaceEnd)?this.setStatusBarLeftText(Se.a("accept","{0} to accept",Jt)):Ot?this.setStatusBarLeftText(Se.a("insert","{0} to insert, {1} to replace",Jt,At)):this.setStatusBarLeftText(Se.a("replace","{0} to replace, {1} to insert",Jt,At)),this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null),this.focusedItem=je,this.list.reveal(Ct),this.currentSuggestionDetails=Object(te.f)(function(jt){return Di(Oe,void 0,void 0,function(){var hn,bn,mn=this;return Xi(this,function(Vn){switch(Vn.label){case 0:return hn=Object(te.g)(function(){return mn.showDetails(!0)},250),jt.onCancellationRequested(function(){return hn.dispose()}),[4,je.resolve(jt)];case 1:return bn=Vn.sent(),hn.dispose(),[2,bn]}})})}),this.currentSuggestionDetails.then(function(){if(Ct>=Oe.list.length||je!==Oe.list.element(Ct))return;Oe.ignoreFocusEvents=!0,Oe.list.splice(Ct,1,[je]),Oe.list.setFocus([Ct]),Oe.ignoreFocusEvents=!1,Oe.expandDocsSettingFromStorage()?Oe.showDetails(!1):Object(Ut.O)(Oe.element,"docs-side"),Re(Oe.focusedItem)?Oe.expandDocsSettingFromStorage()?Oe.setStatusBarRightText(Oe.msgDetailsLess):Oe.setStatusBarRightText(Oe.msgDetailMore):Oe.statusBarRightSpan.innerText="",Oe.editor.setAriaOptions({activeDescendant:We(Ct)})}).catch(ne.e)}this.onDidFocusEmitter.fire({item:je,index:Ct,model:this.completionModel})},Q.prototype.setState=function(Ce){if(!this.element)return;var Oe=this.state!==Ce;this.state=Ce,Object(Ut.X)(this.element,"frozen",Ce===4);switch(Ce){case 0:Object(Ut.I)(this.messageElement,this.details.element,this.listElement,this.statusBarElement),this.hide(),this.listHeight=0,Oe&&this.list.splice(0,this.list.length),this.focusedItem=null;break;case 1:this.messageElement.textContent=Q.LOADING_MESSAGE,Object(Ut.I)(this.listElement,this.details.element,this.statusBarElement),Object(Ut.W)(this.messageElement),Object(Ut.O)(this.element,"docs-side"),this.show(),this.focusedItem=null;break;case 2:this.messageElement.textContent=Q.NO_SUGGESTIONS_MESSAGE,Object(Ut.I)(this.listElement,this.details.element,this.statusBarElement),Object(Ut.W)(this.messageElement),Object(Ut.O)(this.element,"docs-side"),this.show(),this.focusedItem=null;break;case 3:Object(Ut.I)(this.messageElement),Object(Ut.W)(this.listElement,this.statusBarElement),this.show();break;case 4:Object(Ut.I)(this.messageElement),Object(Ut.W)(this.listElement),this.show();break;case 5:Object(Ut.I)(this.messageElement),Object(Ut.W)(this.details.element,this.listElement,this.statusBarElement),this.show();break}},Q.prototype.showTriggered=function(Ce,Oe){var it=this;if(this.state!==0)return;this.isAuto=!!Ce,this.isAuto||(this.loadingTimeout=Object(te.g)(function(){return it.setState(1)},Oe))},Q.prototype.showSuggestions=function(Ce,Oe,it,Qe){if(this.preferDocPositionTop=!1,this.docsPositionPreviousWidgetY=null,this.loadingTimeout.dispose(),this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null),this.completionModel!==Ce&&(this.completionModel=Ce),it&&this.state!==2&&this.state!==0){this.setState(4);return}var je=this.completionModel.items.length,Ct=je===0;if(this.suggestWidgetMultipleSuggestions.set(je>1),Ct)Qe?this.setState(0):this.setState(2),this.completionModel=null;else{if(this.state!==3){var Ot=this.completionModel.stats;Ot.wasAutomaticallyTriggered=!!Qe,this.telemetryService.publicLog("suggestWidget",qi({},Ot))}this.focusedItem=null,this.list.splice(0,this.list.length,this.completionModel.items),it?this.setState(4):this.setState(3),this.list.reveal(Oe,0),this.list.setFocus([Oe]),this.detailsBorderColor&&(this.details.element.style.borderColor=this.detailsBorderColor)}},Q.prototype.selectNextPage=function(){switch(this.state){case 0:return!1;case 5:return this.details.pageDown(),!0;case 1:return!this.isAuto;default:return this.list.focusNextPage(),!0}},Q.prototype.selectNext=function(){switch(this.state){case 0:return!1;case 1:return!this.isAuto;default:return this.list.focusNext(1,!0),!0}},Q.prototype.selectLast=function(){switch(this.state){case 0:return!1;case 5:return this.details.scrollBottom(),!0;case 1:return!this.isAuto;default:return this.list.focusLast(),!0}},Q.prototype.selectPreviousPage=function(){switch(this.state){case 0:return!1;case 5:return this.details.pageUp(),!0;case 1:return!this.isAuto;default:return this.list.focusPreviousPage(),!0}},Q.prototype.selectPrevious=function(){switch(this.state){case 0:return!1;case 1:return!this.isAuto;default:return this.list.focusPrevious(1,!0),!1}},Q.prototype.selectFirst=function(){switch(this.state){case 0:return!1;case 5:return this.details.scrollTop(),!0;case 1:return!this.isAuto;default:return this.list.focusFirst(),!0}},Q.prototype.getFocusedItem=function(){return this.state!==0&&this.state!==2&&this.state!==1&&this.completionModel?{item:this.list.getFocusedElements()[0],index:this.list.getFocus()[0],model:this.completionModel}:void 0},Q.prototype.toggleDetailsFocus=function(){this.state===5?(this.setState(3),this.detailsBorderColor&&(this.details.element.style.borderColor=this.detailsBorderColor)):this.state===3&&this.expandDocsSettingFromStorage()&&(this.setState(5),this.detailsFocusBorderColor&&(this.details.element.style.borderColor=this.detailsFocusBorderColor)),this.telemetryService.publicLog2("suggestWidget:toggleDetailsFocus")},Q.prototype.toggleDetails=function(){if(!Re(this.list.getFocusedElements()[0]))return;if(this.expandDocsSettingFromStorage())this.updateExpandDocsSetting(!1),Object(Ut.I)(this.details.element),Object(Ut.O)(this.element,"docs-side"),Object(Ut.O)(this.element,"docs-below"),this.editor.layoutContentWidget(this),this.setStatusBarRightText(this.msgDetailMore),this.telemetryService.publicLog2("suggestWidget:collapseDetails");else{if(this.state!==3&&this.state!==5&&this.state!==4)return;this.updateExpandDocsSetting(!0),this.showDetails(!1),this.setStatusBarRightText(this.msgDetailsLess),this.telemetryService.publicLog2("suggestWidget:expandDetails")}},Q.prototype.showDetails=function(Ce){Ce||this.expandSideOrBelow(),Object(Ut.W)(this.details.element),this.details.element.style.maxHeight=this.maxWidgetHeight+"px",Ce?this.details.renderLoading():this.details.renderItem(this.list.getFocusedElements()[0],this.explainMode),this.listElement.style.marginTop="0px",this.editor.layoutContentWidget(this),this.adjustDocsPosition(),this.editor.focus()},Q.prototype.toggleExplainMode=function(){this.list.getFocusedElements()[0]&&this.expandDocsSettingFromStorage()&&(this.explainMode=!this.explainMode,this.showDetails(!1))},Q.prototype.show=function(){var Ce=this,Oe=this.updateListHeight();Oe!==this.listHeight&&(this.editor.layoutContentWidget(this),this.listHeight=Oe),this.suggestWidgetVisible.set(!0),this.showTimeout.cancelAndSet(function(){Object(Ut.e)(Ce.element,"visible"),Ce.onDidShowEmitter.fire(Ce)},100)},Q.prototype.hide=function(){this.suggestWidgetVisible.reset(),this.suggestWidgetMultipleSuggestions.reset(),Object(Ut.O)(this.element,"visible")},Q.prototype.hideWidget=function(){this.loadingTimeout.dispose(),this.setState(0),this.onDidHideEmitter.fire(this)},Q.prototype.getPosition=function(){if(this.state===0)return null;var Ce=[2,1];return this.preferDocPositionTop&&(Ce=[1]),{position:this.editor.getPosition(),preference:Ce}},Q.prototype.getDomNode=function(){return this.element},Q.prototype.getId=function(){return Q.ID},Q.prototype.isFrozen=function(){return this.state===4},Q.prototype.updateListHeight=function(){var Ce=0;if(this.state===2||this.state===1)Ce=this.unfocusedHeight;else{var Oe=this.list.contentHeight/this.unfocusedHeight,it=this.editor.getOption(89).maxVisibleSuggestions;Ce=Math.min(Oe,it)*this.unfocusedHeight}return this.element.style.lineHeight=this.unfocusedHeight+"px",this.listElement.style.height=Ce+"px",this.statusBarElement.style.top=Ce+"px",this.list.layout(Ce),Ce},Q.prototype.adjustDocsPosition=function(){if(!this.editor.hasModel())return;var Ce=this.editor.getOption(49),Oe=this.editor.getScrolledVisiblePosition(this.editor.getPosition()),it=Object(Ut.B)(this.editor.getDomNode()),Qe=it.left+Oe.left,je=it.top+Oe.top+Oe.height,Ct=Object(Ut.B)(this.element),Ot=Ct.left,Jt=Ct.top;if(this.docsPositionPreviousWidgetY&&this.docsPositionPreviousWidgetYJt&&this.details.element.offsetHeight>this.listElement.offsetHeight&&(this.listElement.style.marginTop=this.details.element.offsetHeight-this.listElement.offsetHeight+"px")},Q.prototype.expandSideOrBelow=function(){if(!Re(this.focusedItem)&&this.firstFocusInCurrentList){Object(Ut.O)(this.element,"docs-side"),Object(Ut.O)(this.element,"docs-below");return}var Ce=this.element.style.maxWidth.match(/(\d+)px/);!Ce||Number(Ce[1])=0;Ot--)(Ct=Q[Ot])&&(je=(Qe<3?Ct(je):Qe>3?Ct(Ce,Oe,je):Ct(Ce,Oe))||je);return Qe>3&&je&&Object.defineProperty(Ce,Oe,je),je},kt=function(Q,Ce){return function(Oe,it){Ce(Oe,it,Q)}},Yt=function(Q){xt(Ce,Q);function Ce(Oe,it){var Qe=Q.call(this)||this;return Qe._editor=Oe,Qe._enabled=!1,Qe._ckAtEnd=Ce.AtEnd.bindTo(it),Qe._register(Qe._editor.onDidChangeConfiguration(function(je){return je.hasChanged(94)&&Qe._update()})),Qe._update(),Qe}return Ce.prototype.dispose=function(){Q.prototype.dispose.call(this),Object(F.f)(this._selectionListener),this._ckAtEnd.reset()},Ce.prototype._update=function(){var Oe=this,it=this._editor.getOption(94)==="on";if(this._enabled===it)return;if(this._enabled=it,this._enabled){var Qe=function(){if(!Oe._editor.hasModel()){Oe._ckAtEnd.set(!1);return}var Ct=Oe._editor.getModel(),Ot=Oe._editor.getSelection(),Jt=Ct.getWordAtPosition(Ot.getStartPosition());if(!Jt){Oe._ckAtEnd.set(!1);return}Oe._ckAtEnd.set(Jt.endColumn===Ot.getStartPosition().column)};this._selectionListener=this._editor.onDidChangeCursorSelection(Qe),Qe()}else this._selectionListener&&(this._ckAtEnd.reset(),this._selectionListener.dispose(),this._selectionListener=void 0)},Ce.AtEnd=new Z.d("atEndOfWord",!1),Ce=It([kt(1,Z.c)],Ce),Ce}(F.a),Zt=r("mRZz"),dn=r("yqRl"),fn=r("3NxR"),An=function(){function Q(Ce,Oe,it){var Qe=this;this._disposables=new F.b,this._disposables.add(Oe.onDidShow(function(){return Qe._onItem(Oe.getFocusedItem())})),this._disposables.add(Oe.onDidFocus(this._onItem,this)),this._disposables.add(Oe.onDidHide(this.reset,this)),this._disposables.add(Ce.onWillType(function(je){if(Qe._active&&!Oe.isFrozen()){var Ct=je.charCodeAt(je.length-1);Qe._active.acceptCharacters.has(Ct)&&Ce.getOption(0)&&it(Qe._active.item)}}))}return Q.prototype._onItem=function(Ce){if(!Ce||!Object(oe.q)(Ce.item.completion.commitCharacters)){this.reset();return}if(this._active&&this._active.item.item===Ce.item)return;for(var Oe=new fn.b,it=0,Qe=Ce.item.completion.commitCharacters;it0&&Oe.add(je.charCodeAt(0))}this._active={acceptCharacters:Oe,item:Ce}},Q.prototype.reset=function(){this._active=void 0},Q.prototype.dispose=function(){this._disposables.dispose()},Q}(),gn=r("S7i+"),Mn=r("6zAk"),xn=function(){var Q=function(Oe,it){return Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Qe,je){Qe.__proto__=je}||function(Qe,je){for(var Ct in je)je.hasOwnProperty(Ct)&&(Qe[Ct]=je[Ct])},Q(Oe,it)};return function(Ce,Oe){Q(Ce,Oe);function it(){this.constructor=Ce}Ce.prototype=Oe===null?Object.create(Oe):(it.prototype=Oe.prototype,new it)}}(),Le=function(){function Q(Ce){var Oe=this;this._controller=Ce,this._disposables=new F.b,this._decorations=[],this._disposables.add(Ce.model.onDidSuggest(function(it){if(!it.shy){var Qe=Oe._controller.widget.getValue(),je=Qe.getFocusedItem();je&&Oe._highlight(je.item),Oe._widgetListener||(Oe._widgetListener=Qe.onDidFocus(function(Ct){return Oe._highlight(Ct.item)}))}})),this._disposables.add(Ce.model.onDidCancel(function(){Oe._reset()}))}return Q.prototype.dispose=function(){this._reset(),this._disposables.dispose(),Object(F.f)(this._widgetListener),Object(F.f)(this._shiftKeyListener)},Q.prototype._reset=function(){this._decorations=this._controller.editor.deltaDecorations(this._decorations,[]),this._shiftKeyListener&&(this._shiftKeyListener.dispose(),this._shiftKeyListener=void 0)},Q.prototype._highlight=function(Ce){var Oe=this,it;this._currentItem=Ce;var Qe=this._controller.editor.getOption(89),je=[];if(Qe.insertHighlight){this._shiftKeyListener||(this._shiftKeyListener=W.event(function(){return Oe._highlight(Oe._currentItem)}));var Ct=this._controller.getOverwriteInfo(Ce,W.isPressed),Ot=this._controller.editor.getPosition();if(Qe.insertMode==="insert"&&Ct.overwriteAfter>0)je=[{range:new G.a(Ot.lineNumber,Ot.column,Ot.lineNumber,Ot.column+Ct.overwriteAfter),options:{inlineClassName:"suggest-insert-unexpected"}}];else if(Qe.insertMode==="replace"&&Ct.overwriteAfter===0){var Jt=(it=this._controller.editor.getModel())===null||it===void 0?void 0:it.getWordAtPosition(Ot);Jt&&Jt.endColumn>Ot.column&&(je=[{range:new G.a(Ot.lineNumber,Ot.column,Ot.lineNumber,Jt.endColumn),options:{inlineClassName:"suggest-insert-unexpected"}}])}}this._decorations=this._controller.editor.deltaDecorations(this._decorations,je)},Q}(),W=new(function(Q){xn(Ce,Q);function Ce(){var Oe=Q.call(this)||this;return Oe._subscriptions=new F.b,Oe._isPressed=!1,Oe._subscriptions.add(Object(Mn.a)(document.body,"keydown")(function(it){return Oe.isPressed=it.shiftKey})),Oe._subscriptions.add(Object(Mn.a)(document.body,"keyup")(function(){return Oe.isPressed=!1})),Oe._subscriptions.add(Object(Mn.a)(document.body,"mouseleave")(function(){return Oe.isPressed=!1})),Oe._subscriptions.add(Object(Mn.a)(document.body,"blur")(function(){return Oe.isPressed=!1})),Oe}return Object.defineProperty(Ce.prototype,"isPressed",{get:function(){return this._isPressed},set:function(it){this._isPressed!==it&&(this._isPressed=it,this.fire(it))},enumerable:!0,configurable:!0}),Ce.prototype.dispose=function(){this._subscriptions.dispose(),Q.prototype.dispose.call(this)},Ce}(se.a)),ae=function(){var Q=function(Oe,it){return Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Qe,je){Qe.__proto__=je}||function(Qe,je){for(var Ct in je)je.hasOwnProperty(Ct)&&(Qe[Ct]=je[Ct])},Q(Oe,it)};return function(Ce,Oe){Q(Ce,Oe);function it(){this.constructor=Ce}Ce.prototype=Oe===null?Object.create(Oe):(it.prototype=Oe.prototype,new it)}}(),Fe=function(){return Fe=Object.assign||function(Q){for(var Ce,Oe=1,it=arguments.length;Oe=0;Ot--)(Ct=Q[Ot])&&(je=(Qe<3?Ct(je):Qe>3?Ct(Ce,Oe,je):Ct(Ce,Oe))||je);return Qe>3&&je&&Object.defineProperty(Ce,Oe,je),je},ct=function(Q,Ce){return function(Oe,it){Ce(Oe,it,Q)}},St=function(){for(var Q=0,Ce=0,Oe=arguments.length;Ce=g)return Promise.resolve(f);var B=z[p++],H=Promise.resolve(B());return H.then(function(re){return _(re)?Promise.resolve(re):w()})};return m()}var x=function(){function z(_,f){this._token=-1,typeof _=="function"&&typeof f=="number"&&this.setIfNotSet(_,f)}return z.prototype.dispose=function(){this.cancel()},z.prototype.cancel=function(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)},z.prototype.cancelAndSet=function(_,f){var p=this;this.cancel(),this._token=setTimeout(function(){p._token=-1,_()},f)},z.prototype.setIfNotSet=function(_,f){var p=this;if(this._token!==-1)return;this._token=setTimeout(function(){p._token=-1,_()},f)},z}(),K=function(){function z(){this._token=-1}return z.prototype.dispose=function(){this.cancel()},z.prototype.cancel=function(){this._token!==-1&&(clearInterval(this._token),this._token=-1)},z.prototype.cancelAndSet=function(_,f){this.cancel(),this._token=setInterval(function(){_()},f)},z}(),D=function(){function z(_,f){this.timeoutToken=-1,this.runner=_,this.timeout=f,this.timeoutHandler=this.onTimeout.bind(this)}return z.prototype.dispose=function(){this.cancel(),this.runner=null},z.prototype.cancel=function(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)},z.prototype.schedule=function(_){_===void 0&&(_=this.timeout),this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,_)},z.prototype.isScheduled=function(){return this.timeoutToken!==-1},z.prototype.onTimeout=function(){this.timeoutToken=-1,this.runner&&this.doRun()},z.prototype.doRun=function(){this.runner&&this.runner()},z}(),A;(function(){if(typeof requestIdleCallback!="function"||typeof cancelIdleCallback!="function"){var z=Object.freeze({didTimeout:!0,timeRemaining:function(){return 15}});A=function(f){var p=setTimeout(function(){return f(z)}),g=!1;return{dispose:function(){if(g)return;g=!0,clearTimeout(p)}}}}else A=function(f,p){var g=requestIdleCallback(f,typeof p=="number"?{timeout:p}:void 0),m=!1;return{dispose:function(){if(m)return;m=!0,cancelIdleCallback(g)}}}})();var te=function(){function z(_){var f=this;this._didRun=!1,this._executor=function(){try{f._value=_()}catch(p){f._error=p}finally{f._didRun=!0}},this._handle=A(function(){return f._executor()})}return z.prototype.dispose=function(){this._handle.dispose()},z.prototype.getValue=function(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value},z}()},dEFY:function(wt,P,r){"use strict";r.d(P,"a",function(){return F}),r.d(P,"b",function(){return R});var I=r("zOJ8"),oe=r("67Fg"),ne=r("PoD0"),N=r("emi/"),F=Object(ne.c)("contextService"),U;(function(E){function x(K){return K&&typeof K=="object"&&typeof K.id=="string"&&Array.isArray(K.folders)}E.isIWorkspace=x})(U||(U={}));var j;(function(E){function x(K){return K&&typeof K=="object"&&I.a.isUri(K.uri)&&typeof K.name=="string"&&typeof K.toResource=="function"}E.isIWorkspaceFolder=x})(j||(j={}));var G=function(){function E(x,K,D){K===void 0&&(K=[]),D===void 0&&(D=null),this._id=x,this._configuration=D,this._foldersMap=N.c.forPaths(),this.folders=K}return Object.defineProperty(E.prototype,"folders",{get:function(){return this._folders},set:function(K){this._folders=K,this.updateFoldersMap()},enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"configuration",{get:function(){return this._configuration},set:function(K){this._configuration=K},enumerable:!0,configurable:!0}),E.prototype.getFolder=function(x){return x&&this._foldersMap.findSubstr(x.with({scheme:x.scheme,authority:x.authority,path:x.path}).toString())||null},E.prototype.updateFoldersMap=function(){this._foldersMap=N.c.forPaths();for(var x=0,K=this.folders;x=G.end||G.start>=j.end)return{start:0,end:0};var R=Math.max(j.start,G.start),E=Math.min(j.end,G.end);return E-R<=0?{start:0,end:0}:{start:R,end:E}}oe.intersect=ne;function N(j){return j.end-j.start<=0}oe.isEmpty=N;function F(j,G){return!N(ne(j,G))}oe.intersects=F;function U(j,G){var R=[],E={start:j.start,end:Math.min(G.start,j.end)},x={start:Math.max(G.end,j.start),end:j.end};return N(E)||R.push(E),N(x)||R.push(x),R}oe.relativeComplement=U})(I||(I={}))},ekSf:function(wt,P,r){"use strict";r.d(P,"b",function(){return j}),r.d(P,"a",function(){return G}),r.d(P,"c",function(){return E});var I=r("zOJ8"),oe=r("xFpO"),ne=r("yBOt"),N=r("Ojgo"),F=r("S7i+"),U=r("67Fg");function j(D,A,te){if(typeof D=="string"&&(D=I.a.file(D)),te){var z=te.getWorkspaceFolder(D);if(z){var _=te.getWorkspace().folders.length>1,f=void 0;if(Object(U.e)(z.uri,D)?f="":f=Object(U.h)(z.uri,D),_){var p=z.name?z.name:Object(U.b)(z.uri);f=f?p+" \u2022 "+f:p}return f}}if(D.scheme!==N.b.file&&D.scheme!==N.b.untitled)return D.with({query:null,fragment:null}).toString(!0);if(R(D.fsPath))return Object(oe.normalize)(E(D.fsPath));var g=Object(oe.normalize)(D.fsPath);return!F.h&&A&&(g=K(g,A.userHome)),g}function G(D){if(!D)return;typeof D=="string"&&(D=I.a.file(D));var A=Object(U.b)(D)||(D.scheme===N.b.file?D.fsPath:D.path);return R(A)?E(A):A}function R(D){return!!(F.h&&D&&D[1]===":")}function E(D){return R(D)?D.charAt(0).toUpperCase()+D.slice(1):D}var x=Object.create(null);function K(D,A){if(F.h||!D||!A)return D;var te=x.original===A?x.normalized:void 0;return te||(te=""+Object(ne.K)(A,oe.posix.sep)+oe.posix.sep,x={original:A,normalized:te}),(F.d?Object(ne.M)(D,te):Object(ne.N)(D,te))&&(D="~/"+D.substr(te.length)),D}},"emi/":function(wt,P,r){"use strict";r.d(P,"e",function(){return oe}),r.d(P,"d",function(){return ne}),r.d(P,"c",function(){return j}),r.d(P,"b",function(){return G}),r.d(P,"a",function(){return E});var I=function(){var x=function(D,A){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(te,z){te.__proto__=z}||function(te,z){for(var _ in z)z.hasOwnProperty(_)&&(te[_]=z[_])},x(D,A)};return function(K,D){x(K,D);function A(){this.constructor=K}K.prototype=D===null?Object.create(D):(A.prototype=D.prototype,new A)}}();function oe(x){var K=[];return x.forEach(function(D){return K.push(D)}),K}function ne(x){var K=[];return x.forEach(function(D,A){return K.push(A)}),K}var N=function(){function x(){this._value="",this._pos=0}return x.prototype.reset=function(K){return this._value=K,this._pos=0,this},x.prototype.next=function(){return this._pos+=1,this},x.prototype.hasNext=function(){return this._pos0)te.left||(te.left=new U,te.left.segment=A.value()),te=te.left;else if(z<0)te.right||(te.right=new U,te.right.segment=A.value()),te=te.right;else if(A.hasNext())A.next(),te.mid||(te.mid=new U,te.mid.segment=A.value()),te=te.mid;else break}var _=te.value;return te.value=D,te.key=K,_},x.prototype.get=function(K){for(var D=this._iter.reset(K),A=this._root;A;){var te=D.cmp(A.segment);if(te>0)A=A.left;else if(te<0)A=A.right;else if(D.hasNext())D.next(),A=A.mid;else break}return A?A.value:void 0},x.prototype.findSubstr=function(K){for(var D=this._iter.reset(K),A=this._root,te=void 0;A;){var z=D.cmp(A.segment);if(z>0)A=A.left;else if(z<0)A=A.right;else if(D.hasNext())D.next(),te=A.value||te,A=A.mid;else break}return A&&A.value||te},x.prototype.forEach=function(K){this._forEach(this._root,K)},x.prototype._forEach=function(K,D){K&&(this._forEach(K.left,D),K.value&&D(K.value,K.key),this._forEach(K.mid,D),this._forEach(K.right,D))},x}(),G=function(){function x(){this.map=new Map,this.ignoreCase=!1}return x.prototype.set=function(K,D){this.map.set(this.toKey(K),D)},x.prototype.get=function(K){return this.map.get(this.toKey(K))},x.prototype.toKey=function(K){var D=K.toString();return this.ignoreCase&&(D=D.toLowerCase()),D},x}(),R=function(){function x(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}return x.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},Object.defineProperty(x.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),x.prototype.get=function(K,D){D===void 0&&(D=0);var A=this._map.get(K);return A?(D!==0&&this.touch(A,D),A.value):void 0},x.prototype.set=function(K,D,A){A===void 0&&(A=0);var te=this._map.get(K);if(te)te.value=D,A!==0&&this.touch(te,A);else{te={key:K,value:D,next:void 0,previous:void 0};switch(A){case 0:this.addItemLast(te);break;case 1:this.addItemFirst(te);break;case 2:this.addItemLast(te);break;default:this.addItemLast(te);break}this._map.set(K,te),this._size++}},x.prototype.delete=function(K){return!!this.remove(K)},x.prototype.remove=function(K){var D=this._map.get(K);return D?(this._map.delete(K),this.removeItem(D),this._size--,D.value):void 0},x.prototype.forEach=function(K,D){for(var A=this._head;A;)D?K.bind(D)(A.value,A.key,this):K(A.value,A.key,this),A=A.next},x.prototype.trimOld=function(K){if(K>=this.size)return;if(K===0){this.clear();return}for(var D=this._head,A=this.size;D&&A>K;)this._map.delete(D.key),D=D.next,A--;this._head=D,this._size=A,D&&(D.previous=void 0)},x.prototype.addItemFirst=function(K){if(!this._head&&!this._tail)this._tail=K;else if(this._head)K.next=this._head,this._head.previous=K;else throw new Error("Invalid list");this._head=K},x.prototype.addItemLast=function(K){if(!this._head&&!this._tail)this._head=K;else if(this._tail)K.previous=this._tail,this._tail.next=K;else throw new Error("Invalid list");this._tail=K},x.prototype.removeItem=function(K){if(K===this._head&&K===this._tail)this._head=void 0,this._tail=void 0;else if(K===this._head){if(!K.next)throw new Error("Invalid list");K.next.previous=void 0,this._head=K.next}else if(K===this._tail){if(!K.previous)throw new Error("Invalid list");K.previous.next=void 0,this._tail=K.previous}else{var D=K.next,A=K.previous;if(!D||!A)throw new Error("Invalid list");D.previous=A,A.next=D}K.next=void 0,K.previous=void 0},x.prototype.touch=function(K,D){if(!this._head||!this._tail)throw new Error("Invalid list");if(D!==1&&D!==2)return;if(D===1){if(K===this._head)return;var A=K.next,te=K.previous;K===this._tail?(te.next=void 0,this._tail=te):(A.previous=te,te.next=A),K.previous=void 0,K.next=this._head,this._head.previous=K,this._head=K}else if(D===2){if(K===this._tail)return;var A=K.next,te=K.previous;K===this._head?(A.previous=void 0,this._head=A):(A.previous=te,te.next=A),K.next=void 0,K.previous=this._tail,this._tail.next=K,this._tail=K}},x.prototype.toJSON=function(){var K=[];return this.forEach(function(D,A){K.push([A,D])}),K},x}(),E=function(x){I(K,x);function K(D,A){A===void 0&&(A=1);var te=x.call(this)||this;return te._limit=D,te._ratio=Math.min(Math.max(0,A),1),te}return K.prototype.get=function(D){return x.prototype.get.call(this,D,2)},K.prototype.peek=function(D){return x.prototype.get.call(this,D,0)},K.prototype.set=function(D,A){x.prototype.set.call(this,D,A,2),this.checkTrim()},K.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))},K}(R)},epcv:function(wt,P,r){"use strict";r.d(P,"a",function(){return I});function I(oe,ne,N){return Math.min(Math.max(oe,ne),N)}},fF8p:function(wt,P,r){"use strict";r.d(P,"s",function(){return z}),r.d(P,"Q",function(){return _}),r.d(P,"L",function(){return f}),r.d(P,"H",function(){return w}),r.d(P,"e",function(){return B}),r.d(P,"f",function(){return H}),r.d(P,"O",function(){return re}),r.d(P,"P",function(){return he}),r.d(P,"X",function(){return Ee}),r.d(P,"i",function(){return q}),r.d(P,"n",function(){return Me}),r.d(P,"m",function(){return Ve}),r.d(P,"g",function(){return _e}),r.d(P,"h",function(){return ue}),r.d(P,"j",function(){return se}),r.d(P,"k",function(){return fe}),r.d(P,"T",function(){return me}),r.d(P,"V",function(){return ye}),r.d(P,"l",function(){return Xt}),r.d(P,"y",function(){return Ke}),r.d(P,"x",function(){return Xe}),r.d(P,"E",function(){return ke}),r.d(P,"B",function(){return $e}),r.d(P,"d",function(){return we}),r.d(P,"G",function(){return k}),r.d(P,"A",function(){return ee}),r.d(P,"z",function(){return Pe}),r.d(P,"F",function(){return ve}),r.d(P,"J",function(){return Te}),r.d(P,"w",function(){return Ie}),r.d(P,"M",function(){return nt}),r.d(P,"D",function(){return Et}),r.d(P,"v",function(){return Rt}),r.d(P,"u",function(){return rn}),r.d(P,"N",function(){return Ln}),r.d(P,"K",function(){return yn}),r.d(P,"c",function(){return Tn}),r.d(P,"b",function(){return Ft}),r.d(P,"U",function(){return pt}),r.d(P,"S",function(){return gt}),r.d(P,"Y",function(){return Lt}),r.d(P,"p",function(){return Vt}),r.d(P,"a",function(){return ln}),r.d(P,"W",function(){return En}),r.d(P,"I",function(){return On}),r.d(P,"R",function(){return Gn}),r.d(P,"C",function(){return Qn}),r.d(P,"t",function(){return Jn}),r.d(P,"Z",function(){return gi}),r.d(P,"o",function(){return Kn}),r.d(P,"r",function(){return yi}),r.d(P,"q",function(){return mi});var I=r("mTMv"),oe=r("6zAk"),ne=r("/RM0"),N=r("oBNp"),F=r("dE3Z"),U=r("QqjT"),j=r("YK2C"),G=r("bN5T"),R=r("S7i+"),E=r("Inmo"),x=r("Ojgo"),K=r("Uq4v"),D=function(){var vt=function(zt,tn){return vt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ut,Sn){Ut.__proto__=Sn}||function(Ut,Sn){for(var Rn in Sn)Sn.hasOwnProperty(Rn)&&(Ut[Rn]=Sn[Rn])},vt(zt,tn)};return function(Mt,zt){vt(Mt,zt);function tn(){this.constructor=Mt}Mt.prototype=zt===null?Object.create(zt):(tn.prototype=zt.prototype,new tn)}}(),A=function(){return A=Object.assign||function(vt){for(var Mt,zt=1,tn=arguments.length;zt=0;){if(Bn=Rn+Sn,(Rn===0||tn.charCodeAt(Rn-1)===32)&&tn.charCodeAt(Bn)===32){this._lastStart=Rn,this._lastEnd=Bn+1;return}if(Rn>0&&tn.charCodeAt(Rn-1)===32&&Bn===Ut){this._lastStart=Rn-1,this._lastEnd=Bn;return}if(Rn===0&&Bn===Ut){this._lastStart=0,this._lastEnd=Bn;return}}this._lastStart=-1},vt.prototype.hasClass=function(Mt,zt){return this._findClassName(Mt,zt),this._lastStart!==-1},vt.prototype.addClasses=function(Mt){for(var zt=this,tn=[],Ut=1;Ut0;){Mt.sort(ze.sort);var Rn=Mt.shift();Rn.execute()}tn=!1};ye=function(Rn,Bn){Bn===void 0&&(Bn=0);var Fn=new ze(Rn,Bn);return vt.push(Fn),zt||(zt=!0,J(Ut)),Fn},me=function(Rn,Bn){if(tn){var Fn=new ze(Rn,Bn);return Mt.push(Fn),Fn}else return ye(Rn,Bn)}})();var tt=16,_t=function(Mt,zt){return zt},Pt=function(vt){D(Mt,vt);function Mt(zt,tn,Ut,Sn,Rn){Sn===void 0&&(Sn=_t),Rn===void 0&&(Rn=tt);var Bn=vt.call(this)||this,Fn=null,ri=0,ci=Bn._register(new F.e),zi=function(){ri=new Date().getTime(),Ut(Fn),Fn=null};return Bn._register(q(zt,tn,function(oo){Fn=Sn(Fn,oo);var Zn=new Date().getTime()-ri;Zn>=Rn?(ci.cancel(),zi()):ci.setIfNotSet(zi,Rn-Zn)})),Bn}return Mt}(G.a);function Xt(vt,Mt,zt,tn,Ut){return new Pt(vt,Mt,zt,tn,Ut)}function Ke(vt){return document.defaultView.getComputedStyle(vt,null)}function Xe(vt){if(vt!==document.body)return new Ye(vt.clientWidth,vt.clientHeight);if(R.c&&window.visualViewport){var Mt=window.visualViewport.width,zt=window.visualViewport.height-(I.l?20+4:0);return new Ye(Mt,zt)}if(window.innerWidth&&window.innerHeight)return new Ye(window.innerWidth,window.innerHeight);if(document.body&&document.body.clientWidth&&document.body.clientHeight)return new Ye(document.body.clientWidth,document.body.clientHeight);if(document.documentElement&&document.documentElement.clientWidth&&document.documentElement.clientHeight)return new Ye(document.documentElement.clientWidth,document.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")}var Ze=function(){function vt(){}return vt.convertToPixels=function(Mt,zt){return parseFloat(zt)||0},vt.getDimension=function(Mt,zt,tn){var Ut=Ke(Mt),Sn="0";return Ut&&(Ut.getPropertyValue?Sn=Ut.getPropertyValue(zt):Sn=Ut.getAttribute(tn)),vt.convertToPixels(Mt,Sn)},vt.getBorderLeftWidth=function(Mt){return vt.getDimension(Mt,"border-left-width","borderLeftWidth")},vt.getBorderRightWidth=function(Mt){return vt.getDimension(Mt,"border-right-width","borderRightWidth")},vt.getBorderTopWidth=function(Mt){return vt.getDimension(Mt,"border-top-width","borderTopWidth")},vt.getBorderBottomWidth=function(Mt){return vt.getDimension(Mt,"border-bottom-width","borderBottomWidth")},vt.getPaddingLeft=function(Mt){return vt.getDimension(Mt,"padding-left","paddingLeft")},vt.getPaddingRight=function(Mt){return vt.getDimension(Mt,"padding-right","paddingRight")},vt.getPaddingTop=function(Mt){return vt.getDimension(Mt,"padding-top","paddingTop")},vt.getPaddingBottom=function(Mt){return vt.getDimension(Mt,"padding-bottom","paddingBottom")},vt.getMarginLeft=function(Mt){return vt.getDimension(Mt,"margin-left","marginLeft")},vt.getMarginTop=function(Mt){return vt.getDimension(Mt,"margin-top","marginTop")},vt.getMarginRight=function(Mt){return vt.getDimension(Mt,"margin-right","marginRight")},vt.getMarginBottom=function(Mt){return vt.getDimension(Mt,"margin-bottom","marginBottom")},vt}(),Ye=function(){function vt(Mt,zt){this.width=Mt,this.height=zt}return vt}();function ke(vt){for(var Mt=vt.offsetParent,zt=vt.offsetTop,tn=vt.offsetLeft;(vt=vt.parentNode)!==null&&vt!==document.body&&vt!==document.documentElement;){zt-=vt.scrollTop;var Ut=pe(vt)?null:Ke(vt);Ut&&(tn-=Ut.direction!=="rtl"?vt.scrollLeft:-vt.scrollLeft),vt===Mt&&(tn+=Ze.getBorderLeftWidth(vt),zt+=Ze.getBorderTopWidth(vt),zt+=vt.offsetTop,tn+=vt.offsetLeft,Mt=vt.offsetParent)}return{left:tn,top:zt}}function $e(vt){var Mt=vt.getBoundingClientRect();return{left:Mt.left+we.scrollX,top:Mt.top+we.scrollY,width:Mt.width,height:Mt.height}}var we=new(function(){function vt(){}return Object.defineProperty(vt.prototype,"scrollX",{get:function(){return typeof window.scrollX=="number"?window.scrollX:document.body.scrollLeft+document.documentElement.scrollLeft},enumerable:!0,configurable:!0}),Object.defineProperty(vt.prototype,"scrollY",{get:function(){return typeof window.scrollY=="number"?window.scrollY:document.body.scrollTop+document.documentElement.scrollTop},enumerable:!0,configurable:!0}),vt}());function k(vt){var Mt=Ze.getMarginLeft(vt)+Ze.getMarginRight(vt);return vt.offsetWidth+Mt}function ee(vt){var Mt=Ze.getBorderLeftWidth(vt)+Ze.getBorderRightWidth(vt),zt=Ze.getPaddingLeft(vt)+Ze.getPaddingRight(vt);return vt.offsetWidth-Mt-zt}function Pe(vt){var Mt=Ze.getBorderTopWidth(vt)+Ze.getBorderBottomWidth(vt),zt=Ze.getPaddingTop(vt)+Ze.getPaddingBottom(vt);return vt.offsetHeight-Mt-zt}function ve(vt){var Mt=Ze.getMarginTop(vt)+Ze.getMarginBottom(vt);return vt.offsetHeight+Mt}function Te(vt,Mt){for(;vt;){if(vt===Mt)return!0;vt=vt.parentNode}return!1}function Ie(vt,Mt,zt){for(;vt&&vt.nodeType===vt.ELEMENT_NODE;){if(w(vt,Mt))return vt;if(zt){if(typeof zt=="string"){if(w(vt,zt))return null}else if(vt===zt)return null}vt=vt.parentNode}return null}function pe(vt){return vt&&!!vt.host&&!!vt.mode}function nt(vt){return!!Et(vt)}function Et(vt){for(;vt.parentNode;){if(vt===document.body)return null;vt=vt.parentNode}return pe(vt)?vt:null}function Rt(vt){vt===void 0&&(vt=document.getElementsByTagName("head")[0]);var Mt=document.createElement("style");return Mt.type="text/css",Mt.media="screen",vt.appendChild(Mt),Mt}var Tt=null;function Ht(){return Tt||(Tt=Rt()),Tt}function Gt(vt){return vt&&vt.sheet&&vt.sheet.rules?vt.sheet.rules:vt&&vt.sheet&&vt.sheet.cssRules?vt.sheet.cssRules:[]}function rn(vt,Mt,zt){if(zt===void 0&&(zt=Ht()),!zt||!Mt)return;zt.sheet.insertRule(vt+"{"+Mt+"}",0)}function Ln(vt,Mt){if(Mt===void 0&&(Mt=Ht()),!Mt)return;for(var zt=Gt(Mt),tn=[],Ut=0;Ut=0;Ut--)Mt.sheet.deleteRule(tn[Ut])}function yn(vt){return typeof HTMLElement=="object"?vt instanceof HTMLElement:vt&&typeof vt=="object"&&vt.nodeType===1&&typeof vt.nodeName=="string"}var Tn={CLICK:"click",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:I.m?"webkitAnimationStart":"animationstart",ANIMATION_END:I.m?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:I.m?"webkitAnimationIteration":"animationiteration"},Ft={stop:function(Mt,zt){Mt.preventDefault?Mt.preventDefault():Mt.returnValue=!1,zt&&(Mt.stopPropagation?Mt.stopPropagation():Mt.cancelBubble=!0)}};function pt(vt){for(var Mt=[],zt=0;vt&&vt.nodeType===vt.ELEMENT_NODE;zt++)Mt[zt]=vt.scrollTop,vt=vt.parentNode;return Mt}function gt(vt,Mt){for(var zt=0;vt&&vt.nodeType===vt.ELEMENT_NODE;zt++)vt.scrollTop!==Mt[zt]&&(vt.scrollTop=Mt[zt]),vt=vt.parentNode}var Dt=function(vt){D(Mt,vt);function Mt(zt){var tn=vt.call(this)||this;tn._onDidFocus=tn._register(new j.a),tn.onDidFocus=tn._onDidFocus.event,tn._onDidBlur=tn._register(new j.a),tn.onDidBlur=tn._onDidBlur.event;var Ut=Te(document.activeElement,zt),Sn=!1,Rn=function(){Sn=!1,Ut||(Ut=!0,tn._onDidFocus.fire())},Bn=function(){Ut&&(Sn=!0,window.setTimeout(function(){Sn&&(Sn=!1,Ut=!1,tn._onDidBlur.fire())},0))};return tn._refreshStateHandler=function(){var Fn=Te(document.activeElement,zt);Fn!==Ut&&(Ut?Bn():Rn())},tn._register(Object(oe.a)(zt,Tn.FOCUS,!0)(Rn)),tn._register(Object(oe.a)(zt,Tn.BLUR,!0)(Bn)),tn}return Mt}(G.a);function Lt(vt){return new Dt(vt)}function Vt(vt){for(var Mt=[],zt=1;zt=65536?2:1,q===9)Ee=m.nextRenderTabStop(Ee,H);else{for(var Z=oe.s(q);Se=65536?2:1,Z=Me}oe.y(q)||oe.w(q)?Ee=Ee+2:Ee=Ee+1}}return Ee},m.visibleColumnFromColumn2=function(w,B,H){return this.visibleColumnFromColumn(B.getLineContent(H.lineNumber),H.column,w.tabSize)},m.columnFromVisibleColumn=function(w,B,H){if(B<=0)return 1;for(var re=w.length,he=0,Ee=1,Se=0;Se=65536?2:1;var Z=void 0;if(q===9)Z=m.nextRenderTabStop(he,H);else{for(var ce=oe.s(q);Se=65536?2:1,ce=Ve}oe.y(q)||oe.w(q)?Z=he+2:Z=he+1}var _e=Se+1;if(Z>=B){var ue=B-he,se=Z-B;return seSe?Se:he},m.nextRenderTabStop=function(w,B){return w+B-w%B},m.nextIndentTabStop=function(w,B){return w+B-w%B},m.prevRenderTabStop=function(w,B){return w-1-(w-1)%B},m.prevIndentTabStop=function(w,B){return w-1-(w-1)%B},m}();function g(m){return m==="'"||m==='"'||m==="`"}},g9ht:function(wt,P,r){"use strict";r.d(P,"a",function(){return oe});function I(ne,N){var F;return N.length===0?F=ne:F=ne.replace(/\{(\d+)\}/g,function(U,j){var G=j[0];return typeof N[G]!="undefined"?N[G]:U}),F}function oe(ne,N){for(var F=[],U=2;U=0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(u,l,C):$(u,l))||C);return S>3&&C&&Object.defineProperty(u,l,C),C},Ee=function(y,u){return function(l,b){u(l,b,y)}},Se=500,q=function(y){re(u,y);function u(l,b,S){var C=y.call(this)||this;return C._editor=l,C._codeEditorService=b,C._configurationService=S,C._localToDispose=C._register(new N.b),C._decorationsIds=[],C._colorDatas=new Map,C._colorDecoratorIds=[],C._decorationsTypes=new Set,C._register(l.onDidChangeModel(function($){C._isEnabled=C.isEnabled(),C.onModelChanged()})),C._register(l.onDidChangeModelLanguage(function($){return C.onModelChanged()})),C._register(te.c.onDidChange(function($){return C.onModelChanged()})),C._register(l.onDidChangeConfiguration(function($){var Be=C._isEnabled;C._isEnabled=C.isEnabled(),Be!==C._isEnabled&&(C._isEnabled?C.onModelChanged():C.removeAllDecorations())})),C._timeoutTimer=null,C._computePromise=null,C._isEnabled=C.isEnabled(),C.onModelChanged(),C}return u.prototype.isEnabled=function(){var l=this._editor.getModel();if(!l)return!1;var b=l.getLanguageIdentifier(),S=this._configurationService.getValue(b.language);if(S){var C=S.colorDecorators;if(C&&C.enable!==void 0&&!C.enable)return C.enable}return this._editor.getOption(12)},u.get=function(l){return l.getContribution(this.ID)},u.prototype.dispose=function(){this.stop(),this.removeAllDecorations(),y.prototype.dispose.call(this)},u.prototype.onModelChanged=function(){var l=this;if(this.stop(),!this._isEnabled)return;var b=this._editor.getModel();if(!b||!te.c.has(b))return;this._localToDispose.add(this._editor.onDidChangeModelContent(function(S){l._timeoutTimer||(l._timeoutTimer=new m.e,l._timeoutTimer.cancelAndSet(function(){l._timeoutTimer=null,l.beginCompute()},u.RECOMPUTE_TIME))})),this.beginCompute()},u.prototype.beginCompute=function(){var l=this;this._computePromise=Object(m.f)(function(b){var S=l._editor.getModel();return S?p(S,b):Promise.resolve([])}),this._computePromise.then(function(b){l.updateDecorations(b),l.updateColorDecorators(b),l._computePromise=null},z.e)},u.prototype.stop=function(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()},u.prototype.updateDecorations=function(l){var b=this,S=l.map(function(C){return{range:{startLineNumber:C.colorInfo.range.startLineNumber,startColumn:C.colorInfo.range.startColumn,endLineNumber:C.colorInfo.range.endLineNumber,endColumn:C.colorInfo.range.endColumn},options:A.a.EMPTY}});this._decorationsIds=this._editor.deltaDecorations(this._decorationsIds,S),this._colorDatas=new Map,this._decorationsIds.forEach(function(C,$){return b._colorDatas.set(C,l[$])})},u.prototype.updateColorDecorators=function(l){for(var b=this,S=[],C={},$=0;$l.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)},enumerable:!0,configurable:!0}),y.prototype.selectNextColorPresentation=function(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)},y.prototype.guessColorPresentation=function(u,l){for(var b=0;b0;return u&&l}var Ye=function(){function y(u,l,b,S,C){var $=this;this._computer=u,this._state=0,this._hoverTime=C,this._firstWaitScheduler=new m.d(function(){return $._triggerAsyncComputation()},0),this._secondWaitScheduler=new m.d(function(){return $._triggerSyncComputation()},0),this._loadingMessageScheduler=new m.d(function(){return $._showLoadingMessage()},0),this._asyncComputationPromise=null,this._asyncComputationPromiseDone=!1,this._completeCallback=l,this._errorCallback=b,this._progressCallback=S}return y.prototype.setHoverTime=function(u){this._hoverTime=u},y.prototype._firstWaitTime=function(){return this._hoverTime/2},y.prototype._secondWaitTime=function(){return this._hoverTime/2},y.prototype._loadingMessageTime=function(){return 3*this._hoverTime},y.prototype._triggerAsyncComputation=function(){var u=this;this._state=2,this._secondWaitScheduler.schedule(this._secondWaitTime()),this._computer.computeAsync?(this._asyncComputationPromiseDone=!1,this._asyncComputationPromise=Object(m.f)(function(l){return u._computer.computeAsync(l)}),this._asyncComputationPromise.then(function(l){u._asyncComputationPromiseDone=!0,u._withAsyncResult(l)},function(l){return u._onError(l)})):this._asyncComputationPromiseDone=!0},y.prototype._triggerSyncComputation=function(){this._computer.computeSync&&this._computer.onResult(this._computer.computeSync(),!0),this._asyncComputationPromiseDone?(this._state=0,this._onComplete(this._computer.getResult())):(this._state=3,this._onProgress(this._computer.getResult()))},y.prototype._showLoadingMessage=function(){this._state===3&&this._onProgress(this._computer.getResultWithLoadingMessage())},y.prototype._withAsyncResult=function(u){u&&this._computer.onResult(u,!1),this._state===3&&(this._state=0,this._onComplete(this._computer.getResult()))},y.prototype._onComplete=function(u){this._completeCallback&&this._completeCallback(u)},y.prototype._onError=function(u){this._errorCallback?this._errorCallback(u):Object(z.e)(u)},y.prototype._onProgress=function(u){this._progressCallback&&this._progressCallback(u)},y.prototype.start=function(u){if(u===0)this._state===0&&(this._state=1,this._firstWaitScheduler.schedule(this._firstWaitTime()),this._loadingMessageScheduler.schedule(this._loadingMessageTime()));else switch(this._state){case 0:this._triggerAsyncComputation(),this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break;case 2:this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break}},y.prototype.cancel=function(){this._loadingMessageScheduler.cancel(),this._state===1&&this._firstWaitScheduler.cancel(),this._state===2&&(this._secondWaitScheduler.cancel(),this._asyncComputationPromise&&(this._asyncComputationPromise.cancel(),this._asyncComputationPromise=null)),this._state===3&&(this._asyncComputationPromise&&(this._asyncComputationPromise.cancel(),this._asyncComputationPromise=null)),this._state=0},y}(),ke=r("AyeG"),$e=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(u,l){y(u,l);function b(){this.constructor=u}u.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),we=function(){for(var y=0,u=0,l=arguments.length;u=0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(u,l,C):$(u,l))||C);return S>3&&C&&Object.defineProperty(u,l,C),C},Lt=function(y,u){return function(l,b){u(l,b,y)}},Vt=function(y){gt(u,y);function u(l,b,S,C,$,Be,ot,xe,dt,Nt){var qt=y.call(this,l,S.getRawOptions(),{},C,$,Be,ot,xe,dt,Nt)||this;return qt._parentEditor=S,qt._overwriteOptions=b,y.prototype.updateOptions.call(qt,qt._overwriteOptions),qt._register(S.onDidChangeConfiguration(function(en){return qt._onParentConfigurationChanged(en)})),qt}return u.prototype.getParentEditor=function(){return this._parentEditor},u.prototype._onParentConfigurationChanged=function(l){y.prototype.updateOptions.call(this,this._parentEditor.getRawOptions()),y.prototype.updateOptions.call(this,this._overwriteOptions)},u.prototype.updateOptions=function(l){Gt.g(this._overwriteOptions,l,!0),y.prototype.updateOptions.call(this,this._overwriteOptions)},u=Dt([Lt(3,Tn.a),Lt(4,B.a),Lt(5,yn.b),Lt(6,pe.c),Lt(7,fe.c),Lt(8,Ft.a),Lt(9,pt.b)],u),u}(Ln.a),Qt=r("LLZ0"),nn=r("carD"),sn=r("PQix"),ln=new x.a(new x.c(0,122,204)),En={showArrow:!0,showFrame:!0,className:"",frameColor:ln,arrowColor:ln,keepEditorSelection:!1},On="vs.editor.contrib.zoneWidget",Pn=function(){function y(u,l,b,S,C,$){this.id="",this.domNode=u,this.afterLineNumber=l,this.afterColumn=b,this.heightInLines=S,this._onDomNodeTop=C,this._onComputedHeight=$}return y.prototype.onDomNodeTop=function(u){this._onDomNodeTop(u)},y.prototype.onComputedHeight=function(u){this._onComputedHeight(u)},y}(),Gn=function(){function y(u,l){this._id=u,this._domNode=l}return y.prototype.getId=function(){return this._id},y.prototype.getDomNode=function(){return this._domNode},y.prototype.getPosition=function(){return null},y}(),Qn=function(){function y(u){this._editor=u,this._ruleName=y._IdGenerator.nextId(),this._decorations=[],this._color=null,this._height=-1}return y.prototype.dispose=function(){this.hide(),R.N(this._ruleName)},Object.defineProperty(y.prototype,"color",{set:function(l){this._color!==l&&(this._color=l,this._updateStyle())},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"height",{set:function(l){this._height!==l&&(this._height=l,this._updateStyle())},enumerable:!0,configurable:!0}),y.prototype._updateStyle=function(){R.N(this._ruleName),R.u(".monaco-editor "+this._ruleName,"border-style: solid; border-color: transparent; border-bottom-color: "+this._color+"; border-width: "+this._height+"px; bottom: -"+this._height+"px; margin-left: -"+this._height+"px; ")},y.prototype.show=function(u){this._decorations=this._editor.deltaDecorations(this._decorations,[{range:U.a.fromPositions(u),options:{className:this._ruleName,stickiness:1}}])},y.prototype.hide=function(){this._editor.deltaDecorations(this._decorations,[])},y._IdGenerator=new sn.a(".arrow-decoration-"),y}(),Jn=function(){function y(u,l){var b=this;l===void 0&&(l={}),this._arrow=null,this._overlayWidget=null,this._resizeSash=null,this._positionMarkerId=[],this._viewZone=null,this._disposables=new N.b,this.container=null,this._isShowing=!1,this.editor=u,this.options=Gt.c(l),Gt.g(this.options,En,!1),this.domNode=document.createElement("div"),this.options.isAccessible||(this.domNode.setAttribute("aria-hidden","true"),this.domNode.setAttribute("role","presentation")),this._disposables.add(this.editor.onDidLayoutChange(function(S){var C=b._getWidth(S);b.domNode.style.width=C+"px",b.domNode.style.left=b._getLeft(S)+"px",b._onWidth(C)}))}return y.prototype.dispose=function(){var u=this;this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._viewZone&&this.editor.changeViewZones(function(l){u._viewZone&&l.removeZone(u._viewZone.id),u._viewZone=null}),this.editor.deltaDecorations(this._positionMarkerId,[]),this._positionMarkerId=[],this._disposables.dispose()},y.prototype.create=function(){R.e(this.domNode,"zone-widget"),this.options.className&&R.e(this.domNode,this.options.className),this.container=document.createElement("div"),R.e(this.container,"zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new Qn(this.editor),this._disposables.add(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles()},y.prototype.style=function(u){u.frameColor&&(this.options.frameColor=u.frameColor),u.arrowColor&&(this.options.arrowColor=u.arrowColor),this._applyStyles()},y.prototype._applyStyles=function(){if(this.container&&this.options.frameColor){var u=this.options.frameColor.toString();this.container.style.borderTopColor=u,this.container.style.borderBottomColor=u}if(this._arrow&&this.options.arrowColor){var l=this.options.arrowColor.toString();this._arrow.color=l}},y.prototype._getWidth=function(u){return u.width-u.minimapWidth-u.verticalScrollbarWidth},y.prototype._getLeft=function(u){return u.minimapWidth>0&&u.minimapLeft===0?u.minimapWidth:0},y.prototype._onViewZoneTop=function(u){this.domNode.style.top=u+"px"},y.prototype._onViewZoneHeight=function(u){if(this.domNode.style.height=u+"px",this.container){var l=u-this._decoratingElementsHeight();this.container.style.height=l+"px";var b=this.editor.getLayoutInfo();this._doLayout(l,this._getWidth(b))}this._resizeSash&&this._resizeSash.layout()},Object.defineProperty(y.prototype,"position",{get:function(){var l=this._positionMarkerId[0];if(!l)return;var b=this.editor.getModel();if(!b)return;var S=b.getDecorationRange(l);return S?S.getStartPosition():void 0},enumerable:!0,configurable:!0}),y.prototype.show=function(u,l){var b=U.a.isIRange(u)?U.a.lift(u):U.a.fromPositions(u);this._isShowing=!0,this._showImpl(b,l),this._isShowing=!1,this._positionMarkerId=this.editor.deltaDecorations(this._positionMarkerId,[{range:b,options:A.a.EMPTY}])},y.prototype.hide=function(){var u=this;this._viewZone&&(this.editor.changeViewZones(function(l){u._viewZone&&l.removeZone(u._viewZone.id)}),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._arrow&&this._arrow.hide()},y.prototype._decoratingElementsHeight=function(){var u=this.editor.getOption(49),l=0;if(this.options.showArrow){var b=Math.round(u/3);l+=2*b}if(this.options.showFrame){var S=Math.round(u/9);l+=2*S}return l},y.prototype._showImpl=function(u,l){var b=this,S=u.getStartPosition(),C=this.editor.getLayoutInfo(),$=this._getWidth(C);this.domNode.style.width=$+"px",this.domNode.style.left=this._getLeft(C)+"px";var Be=document.createElement("div");Be.style.overflow="hidden";var ot=this.editor.getOption(49),xe=this.editor.getLayoutInfo().height/ot*.8;l>=xe&&(l=xe);var dt=0,Nt=0;if(this._arrow&&this.options.showArrow&&(dt=Math.round(ot/3),this._arrow.height=dt,this._arrow.show(S)),this.options.showFrame&&(Nt=Math.round(ot/9)),this.editor.changeViewZones(function(Cn){b._viewZone&&Cn.removeZone(b._viewZone.id),b._overlayWidget&&(b.editor.removeOverlayWidget(b._overlayWidget),b._overlayWidget=null),b.domNode.style.top="-1000px",b._viewZone=new Pn(Be,S.lineNumber,S.column,l,function(In){return b._onViewZoneTop(In)},function(In){return b._onViewZoneHeight(In)}),b._viewZone.id=Cn.addZone(b._viewZone),b._overlayWidget=new Gn(On+b._viewZone.id,b.domNode),b.editor.addOverlayWidget(b._overlayWidget)}),this.container&&this.options.showFrame){var qt=this.options.frameWidth?this.options.frameWidth:Nt;this.container.style.borderTopWidth=qt+"px",this.container.style.borderBottomWidth=qt+"px"}var en=l*ot-this._decoratingElementsHeight();this.container&&(this.container.style.top=dt+"px",this.container.style.height=en+"px",this.container.style.overflow="hidden"),this._doLayout(en,$),this.options.keepEditorSelection||this.editor.setSelection(u);var un=this.editor.getModel();if(un){var an=u.endLineNumber+1;an<=un.getLineCount()?this.revealLine(an,!1):this.revealLine(un.getLineCount(),!0)}},y.prototype.revealLine=function(u,l){l?this.editor.revealLineInCenter(u,0):this.editor.revealLine(u,0)},y.prototype.setCssClass=function(u,l){if(!this.container)return;l&&this.container.classList.remove(l),R.e(this.container,u)},y.prototype._onWidth=function(u){},y.prototype._doLayout=function(u,l){},y.prototype._relayout=function(u){var l=this;this._viewZone&&this._viewZone.heightInLines!==u&&this.editor.changeViewZones(function(b){l._viewZone&&(l._viewZone.heightInLines=u,b.layoutZone(l._viewZone.id))})},y.prototype._initSash=function(){var u=this;if(this._resizeSash)return;this._resizeSash=this._disposables.add(new nn.a(this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.hide(),this._resizeSash.state=0);var l;this._disposables.add(this._resizeSash.onDidStart(function(b){u._viewZone&&(l={startY:b.startY,heightInLines:u._viewZone.heightInLines})})),this._disposables.add(this._resizeSash.onDidEnd(function(){l=void 0})),this._disposables.add(this._resizeSash.onDidChange(function(b){if(l){var S=(b.currentY-l.startY)/u.editor.getOption(49),C=S<0?Math.ceil(S):Math.floor(S),$=l.heightInLines+C;$>5&&$<35&&u._relayout($)}}))},y.prototype.getHorizontalSashLeft=function(){return 0},y.prototype.getHorizontalSashTop=function(){return(this.domNode.style.height===null?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2},y.prototype.getHorizontalSashWidth=function(){var u=this.editor.getLayoutInfo();return u.width-u.minimapWidth},y}(),gi=r("qJsm"),Kn=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(u,l){y(u,l);function b(){this.constructor=u}u.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),yi=function(y,u,l,b){var S=arguments.length,C=S<3?u:b===null?b=Object.getOwnPropertyDescriptor(u,l):b,$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(y,u,l,b);else for(var Be=y.length-1;Be>=0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(u,l,C):$(u,l))||C);return S>3&&C&&Object.defineProperty(u,l,C),C},mi=function(y,u){return function(l,b){u(l,b,y)}},vt=Object(Tn.c)("IPeekViewService");Object(gi.b)(vt,function(){function y(){this._widgets=new Map}return y.prototype.addExclusiveWidget=function(u,l){var b=this,S=this._widgets.get(u);S&&(S.listener.dispose(),S.widget.dispose());var C=function(){var Be=b._widgets.get(u);Be&&Be.widget===l&&(Be.listener.dispose(),b._widgets.delete(u))};this._widgets.set(u,{widget:l,listener:l.onDidClose(C)})},y}());var Mt;(function(y){y.inPeekEditor=new pe.d("inReferenceSearchEditor",!0),y.notInPeekEditor=y.inPeekEditor.toNegated()})(Mt||(Mt={}));var zt=function(){function y(u,l){u instanceof Vt&&Mt.inPeekEditor.bindTo(l)}return y.prototype.dispose=function(){},y.ID="editor.contrib.referenceController",y=yi([mi(1,pe.c)],y),y}();Object(F.h)(zt.ID,zt);function tn(y){var u=y.get(B.a).getFocusedCodeEditor();return u instanceof Vt?u.getParentEditor():u}var Ut={headerBackgroundColor:x.a.white,primaryHeadingColor:x.a.fromHex("#333333"),secondaryHeadingColor:x.a.fromHex("#6c6c6cb3")},Sn=function(y){Kn(u,y);function u(l,b){b===void 0&&(b={});var S=y.call(this,l,b)||this;return S._onDidClose=new Z.a,S.onDidClose=S._onDidClose.event,Gt.g(S.options,Ut,!1),S}return u.prototype.dispose=function(){y.prototype.dispose.call(this),this._onDidClose.fire(this)},u.prototype.style=function(l){var b=this.options;l.headerBackgroundColor&&(b.headerBackgroundColor=l.headerBackgroundColor),l.primaryHeadingColor&&(b.primaryHeadingColor=l.primaryHeadingColor),l.secondaryHeadingColor&&(b.secondaryHeadingColor=l.secondaryHeadingColor),y.prototype.style.call(this,l)},u.prototype._applyStyles=function(){y.prototype._applyStyles.call(this);var l=this.options;this._headElement&&l.headerBackgroundColor&&(this._headElement.style.backgroundColor=l.headerBackgroundColor.toString()),this._primaryHeading&&l.primaryHeadingColor&&(this._primaryHeading.style.color=l.primaryHeadingColor.toString()),this._secondaryHeading&&l.secondaryHeadingColor&&(this._secondaryHeading.style.color=l.secondaryHeadingColor.toString()),this._bodyElement&&l.frameColor&&(this._bodyElement.style.borderColor=l.frameColor.toString())},u.prototype._fillContainer=function(l){this.setCssClass("peekview-widget"),this._headElement=R.a(".head"),this._bodyElement=R.a(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),l.appendChild(this._headElement),l.appendChild(this._bodyElement)},u.prototype._fillHead=function(l){var b=this,S=R.a(".peekview-title");R.p(this._headElement,S),R.n(S,"click",function(Be){return b._onTitleClick(Be)}),this._fillTitleIcon(S),this._primaryHeading=R.a("span.filename"),this._secondaryHeading=R.a("span.dirname"),this._metaHeading=R.a("span.meta"),R.p(S,this._primaryHeading,this._secondaryHeading,this._metaHeading);var C=R.a(".peekview-actions");R.p(this._headElement,C);var $=this._getActionBarOptions();this._actionbarWidget=new Tt.a(C,$),this._disposables.add(this._actionbarWidget),this._actionbarWidget.push(new Ht.a("peekview.close",oe.a("label.close","Close"),"codicon-close",!0,function(){return b.dispose(),Promise.resolve()}),{label:!1,icon:!0})},u.prototype._fillTitleIcon=function(l){},u.prototype._getActionBarOptions=function(){return{}},u.prototype._onTitleClick=function(l){},u.prototype.setTitle=function(l,b){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerHTML=rn.o(l),this._primaryHeading.setAttribute("aria-label",l),b?this._secondaryHeading.innerHTML=rn.o(b):R.s(this._secondaryHeading))},u.prototype.setMetaTitle=function(l){this._metaHeading&&(l?(this._metaHeading.innerHTML=rn.o(l),R.W(this._metaHeading)):R.I(this._metaHeading))},u.prototype._doLayout=function(l,b){if(!this._isShowing&&l<0){this.dispose();return}var S=Math.ceil(this.editor.getOption(49)*1.2),C=Math.round(l-(S+2));this._doLayoutHead(S,b),this._doLayoutBody(C,b)},u.prototype._doLayoutHead=function(l,b){this._headElement&&(this._headElement.style.height=l+"px",this._headElement.style.lineHeight=this._headElement.style.height)},u.prototype._doLayoutBody=function(l,b){this._bodyElement&&(this._bodyElement.style.height=l+"px")},u}(Jn),Rn=Object(se.Rb)("peekViewTitle.background",{dark:"#1E1E1E",light:"#FFFFFF",hc:"#0C141F"},oe.a("peekViewTitleBackground","Background color of the peek view title area.")),Bn=Object(se.Rb)("peekViewTitleLabel.foreground",{dark:"#FFFFFF",light:"#333333",hc:"#FFFFFF"},oe.a("peekViewTitleForeground","Color of the peek view title.")),Fn=Object(se.Rb)("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161e6",hc:"#FFFFFF99"},oe.a("peekViewTitleInfoForeground","Color of the peek view title info.")),ri=Object(se.Rb)("peekView.border",{dark:"#007acc",light:"#007acc",hc:se.e},oe.a("peekViewBorder","Color of the peek view borders and arrow.")),ci=Object(se.Rb)("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hc:x.a.black},oe.a("peekViewResultsBackground","Background color of the peek view result list.")),zi=Object(se.Rb)("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hc:x.a.white},oe.a("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list.")),oo=Object(se.Rb)("peekViewResult.fileForeground",{dark:x.a.white,light:"#1E1E1E",hc:x.a.white},oe.a("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list.")),Zn=Object(se.Rb)("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hc:null},oe.a("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list.")),Ii=Object(se.Rb)("peekViewResult.selectionForeground",{dark:x.a.white,light:"#6C6C6C",hc:x.a.white},oe.a("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list.")),Si=Object(se.Rb)("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hc:x.a.black},oe.a("peekViewEditorBackground","Background color of the peek view editor.")),ji=Object(se.Rb)("peekViewEditorGutter.background",{dark:Si,light:Si,hc:Si},oe.a("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor.")),Un=Object(se.Rb)("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hc:null},oe.a("peekViewResultsMatchHighlight","Match highlight color in the peek view result list.")),Ci=Object(se.Rb)("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hc:null},oe.a("peekViewEditorMatchHighlight","Match highlight color in the peek view editor.")),Wi=Object(se.Rb)("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hc:se.b},oe.a("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor.")),Ti=r("/epU"),Gi;(function(y){function u(l){switch(l){case Ti.a.Ignore:return"severity-ignore codicon-info";case Ti.a.Info:return"codicon-info";case Ti.a.Warning:return"codicon-warning";case Ti.a.Error:return"codicon-error"}return""}y.className=u})(Gi||(Gi={})),Object(fe.e)(function(y,u){var l=y.getColor(se.Nb);l&&u.addRule(` .monaco-editor .zone-widget .codicon-error, .markers-panel .marker-icon.codicon-error, .extensions-viewlet > .extensions .codicon-error, .monaco-dialog-box .dialog-message-row .codicon-error { color: `+l+`; } `);var b=y.getColor(se.Pb);l&&u.addRule(` .monaco-editor .zone-widget .codicon-warning, .markers-panel .marker-icon.codicon-warning, .extensions-viewlet > .extensions .codicon-warning, .extension-editor .codicon-warning, .monaco-dialog-box .dialog-message-row .codicon-warning { color: `+b+`; } `);var S=y.getColor(se.Ob);l&&u.addRule(` .monaco-editor .zone-widget .codicon-info, .markers-panel .marker-icon.codicon-info, .extensions-viewlet > .extensions .codicon-info, .extension-editor .codicon-info, .monaco-dialog-box .dialog-message-row .codicon-info { color: `+S+`; } `)});var Bi=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(u,l){y(u,l);function b(){this.constructor=u}u.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),vi=function(){function y(u,l,b,S){var C=this;this._openerService=S,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new N.b,this._editor=l;var $=document.createElement("div");$.className="descriptioncontainer",$.setAttribute("aria-live","assertive"),$.setAttribute("role","alert"),this._messageBlock=document.createElement("div"),R.e(this._messageBlock,"message"),$.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),$.appendChild(this._relatedBlock),this._disposables.add(R.n(this._relatedBlock,"click",function(Be){Be.preventDefault();var ot=C._relatedDiagnostics.get(Be.target);ot&&b(ot)})),this._scrollable=new ke.b($,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:3,verticalScrollbarSize:3}),u.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll(function(Be){$.style.left="-"+Be.scrollLeft+"px",$.style.top="-"+Be.scrollTop+"px"})),this._disposables.add(this._scrollable)}return y.prototype.dispose=function(){Object(N.f)(this._disposables)},y.prototype.update=function(u){var l=this,b=u.source,S=u.message,C=u.relatedInformation,$=u.code,Be=((b==null?void 0:b.length)||0)+"()".length;$&&(typeof $=="string"?Be+=$.length:Be+=$.value.length);var ot=S.split(/\r\n|\r|\n/g);this._lines=ot.length,this._longestLineLength=0;for(var xe=0,dt=ot;xe1?oe.a("problems","{0} of {1} problems",b,S):oe.a("change","{0} of {1} problem",b,S);this.setTitle(Object(Te.b)(ot.uri),xe)}this._icon.className="codicon "+Gi.className(ve.c.toSeverity(this._severity)),this.editor.revealPositionInCenter(Be,0),this.editor.focus()},u.prototype.updateMarker=function(l){this._container.classList.remove("stale"),this._message.update(l)},u.prototype.showStale=function(){this._container.classList.add("stale"),this._relayout()},u.prototype._doLayoutBody=function(l,b){y.prototype._doLayoutBody.call(this,l,b),this._heightInPixel=l,this._message.layout(l,b),this._container.style.height=l+"px"},u.prototype._onWidth=function(l){this._message.layout(this._heightInPixel,l)},u.prototype._relayout=function(){y.prototype._relayout.call(this,this.computeRequiredHeight())},u.prototype.computeRequiredHeight=function(){return 3+this._message.getHeightInLines()},u}(Sn),ro=Object(se.Jb)(se.q,se.p),bi=Object(se.Jb)(se.O,se.N),Di=Object(se.Jb)(se.H,se.G),Xi=Object(se.Rb)("editorMarkerNavigationError.background",{dark:ro,light:ro,hc:ro},oe.a("editorMarkerNavigationError","Editor marker navigation widget error color.")),lo=Object(se.Rb)("editorMarkerNavigationWarning.background",{dark:bi,light:bi,hc:bi},oe.a("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),Mi=Object(se.Rb)("editorMarkerNavigationInfo.background",{dark:Di,light:Di,hc:Di},oe.a("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),so=Object(se.Rb)("editorMarkerNavigation.background",{dark:"#2D2D30",light:x.a.white,hc:"#0C141F"},oe.a("editorMarkerNavigationBackground","Editor marker navigation widget background."));Object(fe.e)(function(y,u){var l=y.getColor(se.cc);l&&(u.addRule(".monaco-editor .marker-widget a { color: "+l+"; }"),u.addRule(".monaco-editor .marker-widget a.code-link span:hover { color: "+l+"; }"))});var Je=r("1OsU"),O=r("Qr/v"),T=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(u,l){y(u,l);function b(){this.constructor=u}u.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),Y=function(y,u,l,b){var S=arguments.length,C=S<3?u:b===null?b=Object.getOwnPropertyDescriptor(u,l):b,$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(y,u,l,b);else for(var Be=y.length-1;Be>=0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(u,l,C):$(u,l))||C);return S>3&&C&&Object.defineProperty(u,l,C),C},De=function(y,u){return function(l,b){u(l,b,y)}},Re=function(y,u,l,b){function S(C){return C instanceof l?C:new l(function($){$(C)})}return new(l||(l=Promise))(function(C,$){function Be(dt){try{xe(b.next(dt))}catch(Nt){$(Nt)}}function ot(dt){try{xe(b.throw(dt))}catch(Nt){$(Nt)}}function xe(dt){dt.done?C(dt.value):S(dt.value).then(Be,ot)}xe((b=b.apply(y,u||[])).next())})},We=function(y,u){var l={label:0,sent:function(){if(C[0]&1)throw C[1];return C[1]},trys:[],ops:[]},b,S,C,$;return $={next:Be(0),throw:Be(1),return:Be(2)},typeof Symbol=="function"&&($[Symbol.iterator]=function(){return this}),$;function Be(xe){return function(dt){return ot([xe,dt])}}function ot(xe){if(b)throw new TypeError("Generator is already executing.");for(;l;)try{if(b=1,S&&(C=xe[0]&2?S.return:xe[0]?S.throw||((C=S.return)&&C.call(S),0):S.next)&&!(C=C.call(S,xe[1])).done)return C;(S=0,C)&&(xe=[xe[0]&2,C.value]);switch(xe[0]){case 0:case 1:C=xe;break;case 4:return l.label++,{value:xe[1],done:!1};case 5:l.label++,S=xe[1],xe=[0];continue;case 7:xe=l.ops.pop(),l.trys.pop();continue;default:if(!(C=l.trys,C=C.length>0&&C[C.length-1])&&(xe[0]===6||xe[0]===2)){l=0;continue}if(xe[0]===3&&(!C||xe[1]>C[0]&&xe[1]=0?this._markers[this._nextIdx]:void 0;this._markers=u||[],this._markers.sort(yt.compareMarker),l?this._nextIdx=Math.max(-1,Object(Ke.c)(this._markers,l,yt.compareMarker)):this._nextIdx=-1,this._onMarkerSetChanged.fire(this)},y.prototype.withoutWatchingEditorPosition=function(u){this._ignoreSelectionChange=!0;try{u()}finally{this._ignoreSelectionChange=!1}},y.prototype._initIdx=function(u){for(var l=!1,b=this._editor.getPosition(),S=0;S0?this._nextIdx=(this._nextIdx-1+this._markers.length)%this._markers.length:S=!0),b!==this._nextIdx){var C=this._markers[this._nextIdx];this._onCurrentMarkerChanged.fire(C)}return S},y.prototype.canNavigate=function(){return this._markers.length>0},y.prototype.findMarkerAtPosition=function(u){return Object(Ke.h)(this._markers,function(l){return U.a.containsPosition(l,u)})},Object.defineProperty(y.prototype,"total",{get:function(){return this._markers.length},enumerable:!0,configurable:!0}),y.prototype.indexOf=function(u){return 1+this._markers.indexOf(u)},y.prototype.dispose=function(){this._toUnbind.dispose()},y}(),lt=function(){function y(u,l,b,S,C,$,Be){this._markerService=l,this._contextKeyService=b,this._themeService=S,this._editorService=C,this._keybindingService=$,this._openerService=Be,this._model=null,this._widget=null,this._disposeOnClose=new N.b,this._editor=u,this._widgetVisible=Zt.bindTo(this._contextKeyService)}return y.get=function(u){return u.getContribution(y.ID)},y.prototype.dispose=function(){this._cleanUp(),this._disposeOnClose.dispose()},y.prototype._cleanUp=function(){this._widgetVisible.reset(),this._disposeOnClose.clear(),this._widget=null,this._model=null},y.prototype.getOrCreateModel=function(){var u=this;if(this._model)return this._model;var l=this._getMarkers();this._model=new ft(this._editor,l),this._markerService.onMarkerChanged(this._onMarkerChanged,this,this._disposeOnClose);var b=this._keybindingService.lookupKeybinding(It.ID),S=this._keybindingService.lookupKeybinding(xt.ID),C=[new Ht.a(xt.ID,xt.LABEL+(S?" ("+S.getLabel()+")":""),"show-next-problem codicon-chevron-down",this._model.canNavigate(),function(){return Re(u,void 0,void 0,function(){return We(this,function(xe){return this._model&&this._model.move(!0,!0),[2]})})}),new Ht.a(It.ID,It.LABEL+(b?" ("+b.getLabel()+")":""),"show-previous-problem codicon-chevron-up",this._model.canNavigate(),function(){return Re(u,void 0,void 0,function(){return We(this,function(xe){return this._model&&this._model.move(!1,!0),[2]})})})];this._widget=new qi(this._editor,C,this._themeService,this._openerService),this._widgetVisible.set(!0),this._widget.onDidClose(function(){return u.closeMarkersNavigation()},this,this._disposeOnClose),this._disposeOnClose.add(this._model),this._disposeOnClose.add(this._widget);for(var $=0,Be=C;$0&&C[C.length-1])&&(xe[0]===6||xe[0]===2)){l=0;continue}if(xe[0]===3&&(!C||xe[1]>C[0]&&xe[1]=0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(u,l,C):$(u,l))||C);return S>3&&C&&Object.defineProperty(u,l,C),C},Ot=function(y,u){return function(l,b){u(l,b,y)}},Jt=function(y){je(u,y);function u(l,b){var S=y.call(this)||this;return S.closeTimeout=3e3,S._messageWidget=S._register(new N.d),S._messageListeners=S._register(new N.b),S._editor=l,S._visible=u.MESSAGE_VISIBLE.bindTo(b),S._register(S._editor.onDidAttemptReadOnlyEdit(function(){return S._onDidAttemptReadOnlyEdit()})),S}return u.get=function(l){return l.getContribution(u.ID)},u.prototype.dispose=function(){y.prototype.dispose.call(this),this._visible.reset()},u.prototype.showMessage=function(l,b){var S=this;Object(Qe.a)(l),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new jt(this._editor,b,l),this._messageListeners.add(this._editor.onDidBlurEditorText(function(){return S.closeMessage()})),this._messageListeners.add(this._editor.onDidChangeCursorPosition(function(){return S.closeMessage()})),this._messageListeners.add(this._editor.onDidDispose(function(){return S.closeMessage()})),this._messageListeners.add(this._editor.onDidChangeModel(function(){return S.closeMessage()})),this._messageListeners.add(new m.e(function(){return S.closeMessage()},this.closeTimeout));var C;this._messageListeners.add(this._editor.onMouseMove(function($){if(!$.target.position)return;C?C.containsPosition($.target.position)||S.closeMessage():C=new U.a(b.lineNumber-3,1,$.target.position.lineNumber+3,1)}))},u.prototype.closeMessage=function(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(jt.fadeOut(this._messageWidget.value))},u.prototype._onDidAttemptReadOnlyEdit=function(){this._editor.hasModel()&&this.showMessage(oe.a("editor.readonly","Cannot edit in read-only editor"),this._editor.getPosition())},u.ID="editor.contrib.messageController",u.MESSAGE_VISIBLE=new pe.d("messageVisible",!1),u=Ct([Ot(1,pe.c)],u),u}(N.a),At=F.c.bindToContribution(Jt.get);Object(F.g)(new At({id:"leaveEditorMessage",precondition:Jt.MESSAGE_VISIBLE,handler:function(u){return u.closeMessage()},kbOpts:{weight:100+30,primary:9}}));var jt=function(){function y(u,l,b){var S=l.lineNumber,C=l.column;this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=u,this._editor.revealLinesInCenterIfOutsideViewport(S,S,0),this._position={lineNumber:S,column:C-1},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage");var $=document.createElement("div");$.classList.add("message"),$.textContent=b,this._domNode.appendChild($);var Be=document.createElement("div");Be.classList.add("anchor"),this._domNode.appendChild(Be),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}return y.fadeOut=function(u){var l,b=function S(){u.dispose(),clearTimeout(l),u.getDomNode().removeEventListener("animationend",S)};return l=setTimeout(b,110),u.getDomNode().addEventListener("animationend",b),u.getDomNode().classList.add("fadeOut"),{dispose:b}},y.prototype.dispose=function(){this._editor.removeContentWidget(this)},y.prototype.getId=function(){return"messageoverlay"},y.prototype.getDomNode=function(){return this._domNode},y.prototype.getPosition=function(){return{position:this._position,preference:[1,2]}},y}();Object(F.h)(Jt.ID,Jt),Object(fe.e)(function(y,u){var l=y.getColor(se.fb);if(l){var b=y.type===fe.b?2:1;u.addRule(".monaco-editor .monaco-editor-overlaymessage .anchor { border-top-color: "+l+"; }"),u.addRule(".monaco-editor .monaco-editor-overlaymessage .message { border: "+b+"px solid "+l+"; }")}var S=y.getColor(se.eb);S&&u.addRule(".monaco-editor .monaco-editor-overlaymessage .message { background-color: "+S+"; }");var C=y.getColor(se.gb);C&&u.addRule(".monaco-editor .monaco-editor-overlaymessage .message { color: "+C+"; }")});var hn=r("sjWa"),bn=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(u,l){y(u,l);function b(){this.constructor=u}u.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),mn=function(){return mn=Object.assign||function(y){for(var u,l=1,b=arguments.length;l=0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(u,l,C):$(u,l))||C);return S>3&&C&&Object.defineProperty(u,l,C),C},Xn=function(y,u){return function(l,b){u(l,b,y)}},Yn=function(y,u,l,b){function S(C){return C instanceof l?C:new l(function($){$(C)})}return new(l||(l=Promise))(function(C,$){function Be(dt){try{xe(b.next(dt))}catch(Nt){$(Nt)}}function ot(dt){try{xe(b.throw(dt))}catch(Nt){$(Nt)}}function xe(dt){dt.done?C(dt.value):S(dt.value).then(Be,ot)}xe((b=b.apply(y,u||[])).next())})},Ui=function(y,u){var l={label:0,sent:function(){if(C[0]&1)throw C[1];return C[1]},trys:[],ops:[]},b,S,C,$;return $={next:Be(0),throw:Be(1),return:Be(2)},typeof Symbol=="function"&&($[Symbol.iterator]=function(){return this}),$;function Be(xe){return function(dt){return ot([xe,dt])}}function ot(xe){if(b)throw new TypeError("Generator is already executing.");for(;l;)try{if(b=1,S&&(C=xe[0]&2?S.return:xe[0]?S.throw||((C=S.return)&&C.call(S),0):S.next)&&!(C=C.call(S,xe[1])).done)return C;(S=0,C)&&(xe=[xe[0]&2,C.value]);switch(xe[0]){case 0:case 1:C=xe;break;case 4:return l.label++,{value:xe[1],done:!1};case 5:l.label++,S=xe[1],xe=[0];continue;case 7:xe=l.ops.pop(),l.trys.pop();continue;default:if(!(C=l.trys,C=C.length>0&&C[C.length-1])&&(xe[0]===6||xe[0]===2)){l=0;continue}if(xe[0]===3&&(!C||xe[1]>C[0]&&xe[1]=0}).filter(function(b){return b.resolvedKeybinding}).map(function(b){var S=b.commandArgs;return b.command===X?S={kind:gn.SourceOrganizeImports.value}:b.command===Ue&&(S={kind:gn.SourceFixAll.value}),mn({resolvedKeybinding:b.resolvedKeybinding},W.fromUser(S,{kind:gn.None,apply:"never"}))})});return function(b){if(b.kind){var S=u.bestKeybindingForCodeAction(b,l.getValue());return S==null?void 0:S.resolvedKeybinding}return}},y.prototype.bestKeybindingForCodeAction=function(u,l){if(!u.kind)return;var b=new gn(u.kind);return l.filter(function(S){return S.kind.contains(b)}).filter(function(S){return S.preferred?u.isPreferred:!0}).reduceRight(function(S,C){return S?S.kind.contains(C.kind)?C:S:C},void 0)},y.codeActionCommands=[Ge,St,de,X,Ue],y}(),to=r("ux5E"),zn=r("3HcJ"),zo=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(u,l){y(u,l);function b(){this.constructor=u}u.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),Oi=function(y,u,l,b){var S=arguments.length,C=S<3?u:b===null?b=Object.getOwnPropertyDescriptor(u,l):b,$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(y,u,l,b);else for(var Be=y.length-1;Be>=0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(u,l,C):$(u,l))||C);return S>3&&C&&Object.defineProperty(u,l,C),C},wr=function(y,u){return function(l,b){u(l,b,y)}},Po;(function(y){y.Hidden={type:0};var u=function(){function l(b,S,C,$){this.actions=b,this.trigger=S,this.editorPosition=C,this.widgetPosition=$,this.type=1}return l}();y.Showing=u})(Po||(Po={}));var Ho=function(y){zo(u,y);function u(l,b,S,C){var $=y.call(this)||this;return $._editor=l,$._quickFixActionId=b,$._preferredFixActionId=S,$._keybindingService=C,$._onClick=$._register(new Z.a),$.onClick=$._onClick.event,$._state=Po.Hidden,$._domNode=document.createElement("div"),$._domNode.className="codicon codicon-lightbulb",$._editor.addContentWidget($),$._register($._editor.onDidChangeModelContent(function(Be){var ot=$._editor.getModel();($.state.type!==1||!ot||$.state.editorPosition.lineNumber>=ot.getLineCount())&&$.hide()})),zn.b.ignoreTarget($._domNode),$._register(R.m($._domNode,function(Be){if($.state.type!==1)return;$._editor.focus(),Be.preventDefault();var ot=R.B($._domNode),xe=ot.top,dt=ot.height,Nt=$._editor.getOption(49),qt=Math.floor(Nt/3);$.state.widgetPosition.position!==null&&$.state.widgetPosition.position.lineNumber<$.state.editorPosition.lineNumber&&(qt+=Nt),$._onClick.fire({x:Be.posx,y:xe+dt+qt,actions:$.state.actions,trigger:$.state.trigger})})),$._register(R.i($._domNode,"mouseenter",function(Be){if((Be.buttons&1)!==1)return;$.hide();var ot=new _e.a;ot.startMonitoring(Be.target,Be.buttons,_e.b,function(){},function(){ot.dispose()})})),$._register($._editor.onDidChangeConfiguration(function(Be){Be.hasChanged(47)&&!$._editor.getOption(47).enabled&&$.hide()})),$._updateLightBulbTitle(),$._register($._keybindingService.onDidUpdateKeybindings($._updateLightBulbTitle,$)),$}return u.prototype.dispose=function(){y.prototype.dispose.call(this),this._editor.removeContentWidget(this)},u.prototype.getId=function(){return"LightBulbWidget"},u.prototype.getDomNode=function(){return this._domNode},u.prototype.getPosition=function(){return this._state.type===1?this._state.widgetPosition:null},u.prototype.update=function(l,b,S){var C=this;if(l.validActions.length<=0)return this.hide();var $=this._editor.getOptions();if(!$.get(47).enabled)return this.hide();var Be=S.lineNumber,ot=S.column,xe=this._editor.getModel();if(!xe)return this.hide();var dt=xe.getOptions().tabSize,Nt=$.get(34),qt=xe.getLineContent(Be),en=A.b.computeIndentLevel(qt,dt),un=Nt.spaceWidth*en>22,an=function(Nn){return Nn>2&&C._editor.getTopForLineNumber(Nn)===C._editor.getTopForLineNumber(Nn-1)},Cn=Be;if(!un){if(Be>1&&!an(Be-1))Cn-=1;else if(!an(Be+1))Cn+=1;else if(ot*Nt.spaceWidth<22)return this.hide()}this.state=new Po.Showing(l,b,S,{position:{lineNumber:Cn,column:1},preference:u._posPref}),R.X(this._domNode,"codicon-lightbulb-autofix",l.hasAutoFix),this._editor.layoutContentWidget(this)},u.prototype.hide=function(){this.state=Po.Hidden,this._editor.layoutContentWidget(this)},Object.defineProperty(u.prototype,"state",{get:function(){return this._state},set:function(b){this._state=b,this._updateLightBulbTitle()},enumerable:!0,configurable:!0}),u.prototype._updateLightBulbTitle=function(){if(this.state.type===1&&this.state.actions.hasAutoFix){var l=this._keybindingService.lookupKeybinding(this._preferredFixActionId);if(l){this.title=oe.a("prefferedQuickFixWithKb","Show Fixes. Preferred Fix Available ({0})",l.getLabel());return}}var b=this._keybindingService.lookupKeybinding(this._quickFixActionId);b?this.title=oe.a("quickFixWithKb","Show Fixes ({0})",b.getLabel()):this.title=oe.a("quickFix","Show Fixes")},Object.defineProperty(u.prototype,"title",{set:function(b){this._domNode.title=b},enumerable:!0,configurable:!0}),u._posPref=[0],u=Oi([wr(3,O.a)],u),u}(N.a);Object(fe.e)(function(y,u){var l=y.getColor(se.J);l&&u.addRule(` .monaco-editor .contentWidgets .codicon-lightbulb { color: `+l+`; }`);var b=y.getColor(se.I);b&&u.addRule(` .monaco-editor .contentWidgets .codicon-lightbulb-autofix { color: `+b+`; }`)});var Fo=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(u,l){y(u,l);function b(){this.constructor=u}u.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),tr=function(y,u,l,b){var S=arguments.length,C=S<3?u:b===null?b=Object.getOwnPropertyDescriptor(u,l):b,$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(y,u,l,b);else for(var Be=y.length-1;Be>=0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(u,l,C):$(u,l))||C);return S>3&&C&&Object.defineProperty(u,l,C),C},pr=function(y,u){return function(l,b){u(l,b,y)}},co=function(y,u,l,b){function S(C){return C instanceof l?C:new l(function($){$(C)})}return new(l||(l=Promise))(function(C,$){function Be(dt){try{xe(b.next(dt))}catch(Nt){$(Nt)}}function ot(dt){try{xe(b.throw(dt))}catch(Nt){$(Nt)}}function xe(dt){dt.done?C(dt.value):S(dt.value).then(Be,ot)}xe((b=b.apply(y,u||[])).next())})},So=function(y,u){var l={label:0,sent:function(){if(C[0]&1)throw C[1];return C[1]},trys:[],ops:[]},b,S,C,$;return $={next:Be(0),throw:Be(1),return:Be(2)},typeof Symbol=="function"&&($[Symbol.iterator]=function(){return this}),$;function Be(xe){return function(dt){return ot([xe,dt])}}function ot(xe){if(b)throw new TypeError("Generator is already executing.");for(;l;)try{if(b=1,S&&(C=xe[0]&2?S.return:xe[0]?S.throw||((C=S.return)&&C.call(S),0):S.next)&&!(C=C.call(S,xe[1])).done)return C;(S=0,C)&&(xe=[xe[0]&2,C.value]);switch(xe[0]){case 0:case 1:C=xe;break;case 4:return l.label++,{value:xe[1],done:!1};case 5:l.label++,S=xe[1],xe=[0];continue;case 7:xe=l.ops.pop(),l.trys.pop();continue;default:if(!(C=l.trys,C=C.length>0&&C[C.length-1])&&(xe[0]===6||xe[0]===2)){l=0;continue}if(xe[0]===3&&(!C||xe[1]>C[0]&&xe[1]0||l.autoApply==="ifSingle"&&b.validActions.length===1)?b.validActions[0]:void 0},u.prototype.showCodeActionList=function(l,b,S,C){return co(this,void 0,void 0,function(){return So(this,function($){return this._codeActionWidget.getValue().show(l,b,S,C),[2]})})},u=tr([pr(4,Tn.a)],u),u}(N.a),Br=r("z5rs"),Lr=r("yimU"),Ai=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(u,l){y(u,l);function b(){this.constructor=u}u.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),Ko=new pe.d("supportedCodeAction",""),is=function(y){Ai(u,y);function u(l,b,S,C){C===void 0&&(C=250);var $=y.call(this)||this;return $._editor=l,$._markerService=b,$._signalChange=S,$._delay=C,$._autoTriggerTimer=$._register(new m.e),$._register($._markerService.onMarkerChanged(function(Be){return $._onMarkerChanges(Be)})),$._register($._editor.onDidChangeCursorPosition(function(){return $._onCursorChange()})),$}return u.prototype.trigger=function(l){var b=this._getRangeOfSelectionUnlessWhitespaceEnclosed(l);return this._createEventAndSignalChange(l,b)},u.prototype._onMarkerChanges=function(l){var b=this,S=this._editor.getModel();if(!S)return;l.some(function(C){return Object(Te.e)(C,S.uri)})&&this._autoTriggerTimer.cancelAndSet(function(){b.trigger({type:1})},this._delay)},u.prototype._onCursorChange=function(){var l=this;this._autoTriggerTimer.cancelAndSet(function(){l.trigger({type:1})},this._delay)},u.prototype._getRangeOfMarker=function(l){var b=this._editor.getModel();if(!b)return;for(var S=0,C=this._markerService.read({resource:b.uri});S=0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(u,l,C):$(u,l))||C);return S>3&&C&&Object.defineProperty(u,l,C),C},Dr=function(y,u){return function(l,b){u(l,b,y)}},pn=function(y,u,l,b){function S(C){return C instanceof l?C:new l(function($){$(C)})}return new(l||(l=Promise))(function(C,$){function Be(dt){try{xe(b.next(dt))}catch(Nt){$(Nt)}}function ot(dt){try{xe(b.throw(dt))}catch(Nt){$(Nt)}}function xe(dt){dt.done?C(dt.value):S(dt.value).then(Be,ot)}xe((b=b.apply(y,u||[])).next())})},Os=function(y,u){var l={label:0,sent:function(){if(C[0]&1)throw C[1];return C[1]},trys:[],ops:[]},b,S,C,$;return $={next:Be(0),throw:Be(1),return:Be(2)},typeof Symbol=="function"&&($[Symbol.iterator]=function(){return this}),$;function Be(xe){return function(dt){return ot([xe,dt])}}function ot(xe){if(b)throw new TypeError("Generator is already executing.");for(;l;)try{if(b=1,S&&(C=xe[0]&2?S.return:xe[0]?S.throw||((C=S.return)&&C.call(S),0):S.next)&&!(C=C.call(S,xe[1])).done)return C;(S=0,C)&&(xe=[xe[0]&2,C.value]);switch(xe[0]){case 0:case 1:C=xe;break;case 4:return l.label++,{value:xe[1],done:!1};case 5:l.label++,S=xe[1],xe=[0];continue;case 7:xe=l.ops.pop(),l.trys.pop();continue;default:if(!(C=l.trys,C=C.length>0&&C[C.length-1])&&(xe[0]===6||xe[0]===2)){l=0;continue}if(xe[0]===3&&(!C||xe[1]>C[0]&&xe[1]this._editor.getModel().getLineCount())return[];var S=q.get(this._editor),C=l.getLineMaxColumn(b),$=this._editor.getLineDecorations(b),Be=!1,ot=this._range,xe=$.map(function(dt){var Nt=dt.range.startLineNumber===b?dt.range.startColumn:1,qt=dt.range.endLineNumber===b?dt.range.endColumn:C;if(Nt>ot.startColumn||ot.endColumn>qt)return null;var en=new U.a(ot.startLineNumber,Nt,ot.startLineNumber,qt),un=u._markerDecorationsService.getMarker(l,dt);if(un)return new Xo(en,un);var an=S.getColorData(dt.range.getStartPosition());if(!Be&&an){Be=!0;var Cn=an.colorInfo,In=Cn.color,Nn=Cn.range;return new Go(Nn,In,an.provider)}else{if(Object(K.b)(dt.options.hoverMessage))return null;var ti=dt.options.hoverMessage?Object(Ke.b)(dt.options.hoverMessage):[];return{contents:ti,range:en}}});return Object(Ke.d)(xe)},y.prototype.onResult=function(u,l){l?this._result=u.concat(this._result.sort(function(b,S){return b instanceof Go?-1:S instanceof Go?1:0})):this._result=this._result.concat(u)},y.prototype.getResult=function(){return this._result.slice(0)},y.prototype.getResultWithLoadingMessage=function(){return this._result.slice(0).concat([this._getLoadingMessage()])},y.prototype._getLoadingMessage=function(){return{range:this._range,contents:[new K.a().appendText(oe.a("modesContentHover.loading","Loading..."))]}},y}(),Ur={type:2,filter:{include:gn.QuickFix}},Yo=function(y){wo(u,y);function u(l,b,S,C,$,Be){Be===void 0&&(Be=Ie.b);var ot=y.call(this,u.ID,l)||this;return ot._themeService=S,ot._keybindingService=C,ot._modeService=$,ot._openerService=Be,ot.renderDisposable=ot._register(new N.d),ot._messages=[],ot._lastRange=null,ot._computer=new us(ot._editor,b),ot._highlightDecorations=[],ot._isChangingDecorations=!1,ot._shouldFocus=!1,ot._colorPicker=null,ot._hoverOperation=new Ye(ot._computer,function(xe){return ot._withResult(xe,!0)},null,function(xe){return ot._withResult(xe,!1)},ot._editor.getOption(44).delay),ot._register(R.n(ot.getDomNode(),R.c.FOCUS,function(){ot._colorPicker&&R.e(ot.getDomNode(),"colorpicker-hover")})),ot._register(R.n(ot.getDomNode(),R.c.BLUR,function(){R.O(ot.getDomNode(),"colorpicker-hover")})),ot._register(l.onDidChangeConfiguration(function(xe){ot._hoverOperation.setHoverTime(ot._editor.getOption(44).delay)})),ot._register(te.y.onDidChange(function(xe){ot.isVisible&&ot._lastRange&&ot._messages.length>0&&(ot._domNode.textContent="",ot._renderMessages(ot._lastRange,ot._messages))})),ot}return u.prototype.dispose=function(){this._hoverOperation.cancel(),y.prototype.dispose.call(this)},u.prototype.onModelDecorationsChanged=function(){if(this._isChangingDecorations)return;this.isVisible&&(this._hoverOperation.cancel(),this._computer.clearResult(),this._colorPicker||this._hoverOperation.start(0))},u.prototype.startShowingAt=function(l,b,S){if(this._lastRange&&this._lastRange.equalsRange(l))return;if(this._hoverOperation.cancel(),this.isVisible)if(!this._showAtPosition||this._showAtPosition.lineNumber!==l.startLineNumber)this.hide();else{for(var C=[],$=0,Be=this._messages.length;$=l.endColumn&&C.push(ot)}if(C.length>0){if(cs(C,this._messages))return;this._renderMessages(l,C)}else this.hide()}this._lastRange=l,this._computer.setRange(l),this._shouldFocus=S,this._hoverOperation.start(b)},u.prototype.hide=function(){this._lastRange=null,this._hoverOperation.cancel(),y.prototype.hide.call(this),this._isChangingDecorations=!0,this._highlightDecorations=this._editor.deltaDecorations(this._highlightDecorations,[]),this._isChangingDecorations=!1,this.renderDisposable.clear(),this._colorPicker=null},u.prototype.isColorPickerVisible=function(){return!!this._colorPicker},u.prototype._withResult=function(l,b){this._messages=l,this._lastRange&&this._messages.length>0?this._renderMessages(this._lastRange,this._messages):b&&this.hide()},u.prototype._renderMessages=function(l,b){var S=this;this.renderDisposable.dispose(),this._colorPicker=null;var C=1073741824,$=b[0].range?U.a.lift(b[0].range):null,Be=document.createDocumentFragment(),ot=!0,xe=!1,dt=new N.b,Nt=[];if(b.forEach(function(en){if(!en.range)return;if(C=Math.min(C,en.range.startColumn),$=$?U.a.plusRange($,en.range):U.a.lift(en.range),en instanceof Go){xe=!0;var un=en.color,an=un.red,Cn=un.green,In=un.blue,Nn=un.alpha,ti=new x.c(Math.round(an*255),Math.round(Cn*255),Math.round(In*255),Nn),Dn=new x.a(ti);if(!S._editor.hasModel())return;var di=S._editor.getModel(),qn=new U.a(en.range.startLineNumber,en.range.startColumn,en.range.endLineNumber,en.range.endColumn),Ri={range:en.range,color:en.color},li=new ce(Dn,[],0),mo=new Xt(Be,li,S._editor.getOption(105),S._themeService);g(di,Ri,en.provider,E.a.None).then(function(Li){if(li.colorPresentations=Li||[],!S._editor.hasModel())return;var ui=S._editor.getModel().getValueInRange(en.range);li.guessColorPresentation(Dn,ui);var Hi=function(){var hi,Fi;li.presentation.textEdit?(hi=[li.presentation.textEdit],Fi=new U.a(li.presentation.textEdit.range.startLineNumber,li.presentation.textEdit.range.startColumn,li.presentation.textEdit.range.endLineNumber,li.presentation.textEdit.range.endColumn),Fi=Fi.setEndPosition(Fi.endLineNumber,Fi.startColumn+li.presentation.textEdit.text.length)):(hi=[{identifier:null,range:qn,text:li.presentation.label,forceMoveMarkers:!1}],Fi=qn.setEndPosition(qn.endLineNumber,qn.startColumn+li.presentation.label.length)),S._editor.pushUndoStop(),S._editor.executeEdits("colorpicker",hi),li.presentation.additionalTextEdits&&(hi=xs(li.presentation.additionalTextEdits),S._editor.executeEdits("colorpicker",hi),S.hide()),S._editor.pushUndoStop(),qn=Fi},$i=function(hi){return g(di,{range:qn,color:{red:hi.rgba.r/255,green:hi.rgba.g/255,blue:hi.rgba.b/255,alpha:hi.rgba.a}},en.provider,E.a.None).then(function(Fi){li.colorPresentations=Fi||[]})},Ji=li.onColorFlushed(function(Qi){$i(Qi).then(Hi)}),Vi=li.onDidChangeColor($i);S._colorPicker=mo,S.showAt(qn.getStartPosition(),qn,S._shouldFocus),S.updateContents(Be),S._colorPicker.layout(),S.renderDisposable.value=Object(N.e)(Ji,Vi,mo,dt)})}else en instanceof Xo?(Nt.push(en),ot=!1):en.contents.filter(function(Li){return!Object(K.b)(Li)}).forEach(function(Li){var ui=Ni("div.hover-row.markdown-hover"),Hi=R.p(ui,Ni("div.hover-contents")),$i=dt.add(new Pe.a(S._editor,S._modeService,S._openerService));dt.add($i.onDidRenderCodeBlock(function(){Hi.className="hover-contents code-hover-contents",S.onContentsChange()}));var Ji=dt.add($i.render(Li));Hi.appendChild(Ji.element),Be.appendChild(ui),ot=!1})}),Nt.length){Nt.forEach(function(en){return Be.appendChild(S.renderMarkerHover(en))});var qt=Nt.length===1?Nt[0]:Nt.sort(function(en,un){return ve.c.compare(en.marker.severity,un.marker.severity)})[0];Be.appendChild(this.renderMarkerStatusbar(qt))}!xe&&!ot&&(this.showAt(new D.a(l.startLineNumber,C),$,this._shouldFocus),this.updateContents(Be)),this._isChangingDecorations=!0,this._highlightDecorations=this._editor.deltaDecorations(this._highlightDecorations,$?[{range:$,options:u._DECORATION_OPTIONS}]:[]),this._isChangingDecorations=!1},u.prototype.renderMarkerHover=function(l){var b=this,S=Ni("div.hover-row"),C=R.p(S,Ni("div.marker.hover-contents")),$=l.marker,Be=$.source,ot=$.message,xe=$.code,dt=$.relatedInformation;this._editor.applyFontInfo(C);var Nt=R.p(C,Ni("span"));if(Nt.style.whiteSpace="pre-wrap",Nt.innerText=ot,Be||xe){if(typeof xe=="string"){var qt=R.p(C,Ni("span"));qt.style.opacity="0.6",qt.style.paddingLeft="6px",qt.innerText=Be&&xe?Be+"("+xe+")":Be||"("+xe+")"}else if(xe){var en=Ni("span");if(Be){var un=R.p(en,Ni("span"));un.innerText=Be}this._codeLink=R.p(en,Ni("a.code-link")),this._codeLink.setAttribute("href",xe.link.toString()),this._codeLink.onclick=function(Li){b._openerService.open(xe.link),Li.preventDefault(),Li.stopPropagation()};var an=R.p(this._codeLink,Ni("span"));an.innerText=xe.value;var qt=R.p(C,en);qt.style.opacity="0.6",qt.style.paddingLeft="6px"}}if(Object(Ke.q)(dt))for(var Cn=function(Li,ui,Hi,$i){var Ji=R.p(C,Ni("div"));Ji.style.marginTop="8px";var Vi=R.p(Ji,Ni("a"));Vi.innerText=Object(Te.b)(ui)+"("+Hi+", "+$i+"): ",Vi.style.cursor="pointer",Vi.onclick=function(hi){hi.stopPropagation(),hi.preventDefault(),b._openerService&&b._openerService.open(ui.with({fragment:Hi+","+$i}),{fromUserGesture:!0}).catch(z.e)};var Qi=R.p(Ji,Ni("span"));Qi.innerText=Li,In._editor.applyFontInfo(Qi)},In=this,Nn=0,ti=dt;Nn0?this._renderMessages(this._lastLineNumber,this._messages):this.hide()},u.prototype._renderMessages=function(l,b){this._renderDisposeables.clear();for(var S=document.createDocumentFragment(),C=0,$=b;C<$.length;C++){var Be=$[C],ot=this._markdownRenderer.render(Be.value);this._renderDisposeables.add(ot),S.appendChild(Object(R.a)("div.hover-row",void 0,ot.element))}this.updateContents(S),this.showAt(l)},u.ID="editor.contrib.modesGlyphHoverWidget",u}(ee),hs=r("XfmC"),ea=r("1W4+"),As=function(y,u,l,b){function S(C){return C instanceof l?C:new l(function($){$(C)})}return new(l||(l=Promise))(function(C,$){function Be(dt){try{xe(b.next(dt))}catch(Nt){$(Nt)}}function ot(dt){try{xe(b.throw(dt))}catch(Nt){$(Nt)}}function xe(dt){dt.done?C(dt.value):S(dt.value).then(Be,ot)}xe((b=b.apply(y,u||[])).next())})},Ns=function(y,u){var l={label:0,sent:function(){if(C[0]&1)throw C[1];return C[1]},trys:[],ops:[]},b,S,C,$;return $={next:Be(0),throw:Be(1),return:Be(2)},typeof Symbol=="function"&&($[Symbol.iterator]=function(){return this}),$;function Be(xe){return function(dt){return ot([xe,dt])}}function ot(xe){if(b)throw new TypeError("Generator is already executing.");for(;l;)try{if(b=1,S&&(C=xe[0]&2?S.return:xe[0]?S.throw||((C=S.return)&&C.call(S),0):S.next)&&!(C=C.call(S,xe[1])).done)return C;(S=0,C)&&(xe=[xe[0]&2,C.value]);switch(xe[0]){case 0:case 1:C=xe;break;case 4:return l.label++,{value:xe[1],done:!1};case 5:l.label++,S=xe[1],xe=[0];continue;case 7:xe=l.ops.pop(),l.trys.pop();continue;default:if(!(C=l.trys,C=C.length>0&&C[C.length-1])&&(xe[0]===6||xe[0]===2)){l=0;continue}if(xe[0]===3&&(!C||xe[1]>C[0]&&xe[1]0?(l?S=(S+1)%C:S=(S+C-1)%C,b.children[S]):(S=b.parent.groups.indexOf(b),l?(S=(S+1)%$,b.parent.groups[S].children[0]):(S=(S+$-1)%$,b.parent.groups[S].children[b.parent.groups[S].children.length-1]))},y.prototype.nearestReference=function(u,l){var b=this.references.map(function(S,C){return{idx:C,prefixLen:rn.c(S.uri.toString(),u.toString()),offsetDist:Math.abs(S.range.startLineNumber-l.lineNumber)*100+Math.abs(S.range.startColumn-l.column)}}).sort(function(S,C){return S.prefixLen>C.prefixLen?-1:S.prefixLenC.offsetDist?1:0})[0];return b?this.references[b.idx]:void 0},y.prototype.referenceAt=function(u,l){for(var b=0,S=this.references;b=0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(u,l,C):$(u,l))||C);return S>3&&C&&Object.defineProperty(u,l,C),C},or=function(y,u){return function(l,b){u(l,b,y)}},rr=function(){function y(u){this._resolverService=u}return y.prototype.hasChildren=function(u){return u instanceof oi?!0:u instanceof ho&&!u.failure},y.prototype.getChildren=function(u){if(u instanceof oi)return u.groups;if(u instanceof ho)return u.resolve(this._resolverService).then(function(l){return l.children});throw new Error("bad tree")},y=Mo([or(0,Or.a)],y),y}(),no=function(){function y(){}return y.prototype.getHeight=function(){return 23},y.prototype.getTemplateId=function(u){return u instanceof ho?xr.id:sr.id},y}(),Co=function(){function y(u){this._keybindingService=u}return y.prototype.getKeyboardNavigationLabel=function(u){if(u instanceof Wo){var l=u.parent.preview,b=l&&l.preview(u.range);if(b)return b.value}return Object(Te.b)(u.uri)},y=Mo([or(0,O.a)],y),y}(),wi=function(){function y(){}return y.prototype.getId=function(u){return u instanceof Wo?u.id:u.uri},y}(),ki=function(y){na(u,y);function u(l,b,S){var C=y.call(this)||this;C._uriLabel=b;var $=document.createElement("div");return R.e($,"reference-file"),C.file=C._register(new Ps.a($,{supportHighlights:!0})),C.badge=new Fs(R.p($,R.a(".count"))),C._register(Object(ks.a)(C.badge,S)),l.appendChild($),C}return u.prototype.set=function(l,b){var S=Object(Te.d)(l.uri);this.file.setLabel(Object(Et.a)(l.uri),this._uriLabel.getUriLabel(S,{relative:!0}),{title:this._uriLabel.getUriLabel(l.uri),matches:b});var C=l.children.length;this.badge.setCount(C),l.failure?this.badge.setTitleFormat(Object(oe.a)("referencesFailre","Failed to resolve file.")):C>1?this.badge.setTitleFormat(Object(oe.a)("referencesCount","{0} references",C)):this.badge.setTitleFormat(Object(oe.a)("referenceCount","{0} reference",C))},u=Mo([or(1,ir.a),or(2,fe.c)],u),u}(N.a),xr=function(){function y(u){this._instantiationService=u,this.templateId=y.id}return y.prototype.renderTemplate=function(u){return this._instantiationService.createInstance(ki,u)},y.prototype.renderElement=function(u,l,b){b.set(u.element,Object(si.c)(u.filterData))},y.prototype.disposeTemplate=function(u){u.dispose()},y.id="FileReferencesRenderer",y=Mo([or(0,Tn.a)],y),y}(),Ar=function(){function y(u){this.label=new js.a(u,!1)}return y.prototype.set=function(u,l){var b=u.parent.preview,S=b&&b.preview(u.range);if(!S)this.label.set(Object(Te.b)(u.uri)+":"+(u.range.startLineNumber+1)+":"+(u.range.startColumn+1));else{var C=S.value,$=S.highlight;l&&!si.a.isDefault(l)?(R.X(this.label.element,"referenceMatch",!1),this.label.set(C,Object(si.c)(l))):(R.X(this.label.element,"referenceMatch",!0),this.label.set(C,[$]))}},y}(),sr=function(){function y(){this.templateId=y.id}return y.prototype.renderTemplate=function(u){return new Ar(u)},y.prototype.renderElement=function(u,l,b){b.set(u.element,u.filterData)},y.prototype.disposeTemplate=function(){},y.id="OneReferenceRenderer",y}(),Kr=function(){function y(){}return y.prototype.getAriaLabel=function(u){return u.ariaMessage},y}(),Nr=r("rjb4"),ar=r("cWK8"),_o=r("yqRl"),Lo=r("epcv"),vs=r("6zAk"),fo=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(u,l){y(u,l);function b(){this.constructor=u}u.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),lr=function(){for(var y=0,u=0,l=arguments.length;u0&&(this.proportions=this.viewItems.map(function(b){return b.size/l.contentSize}))},u.prototype.onSashStart=function(l){for(var b=this,S=l.sash,C=l.start,$=l.alt,Be=0,ot=this.viewItems;Be=this.viewItems.length)return;b=typeof b=="number"?b:l.size,b=Object(Lo.a)(b,l.minimumSize,l.maximumSize),this.inverseAltBehavior&&S>0?(this.resize(S-1,Math.floor((l.size-b)/2)),this.distributeEmptySpace(),this.layoutViews()):(l.size=b,this.relayout([S],void 0))},u.prototype.resizeView=function(l,b){var S=this;if(this.state!==po.Idle)throw new Error("Cant modify splitview");if(this.state=po.Busy,l<0||l>=this.viewItems.length)return;var C=Object(Ke.u)(this.viewItems.length).filter(function(xe){return xe!==l}),$=lr(C.filter(function(xe){return S.viewItems[xe].priority===1}),[l]),Be=C.filter(function(xe){return S.viewItems[xe].priority===2}),ot=this.viewItems[l];b=Math.round(b),b=Object(Lo.a)(b,ot.minimumSize,Math.min(ot.maximumSize,this.size)),ot.size=b,this.relayout($,Be),this.state=po.Idle},u.prototype.distributeViewSizes=function(){for(var l=this,b=[],S=0,C=0,$=this.viewItems;C<$.length;C++){var Be=$[C];Be.maximumSize-Be.minimumSize>0&&(b.push(Be),S+=Be.size)}for(var ot=Math.floor(S/b.length),xe=0,dt=b;xe=this.viewItems.length?-1:this.viewItems[l].size},u.prototype.doAddView=function(l,b,S,C){var $=this;if(S===void 0&&(S=this.viewItems.length),this.state!==po.Idle)throw new Error("Cant modify splitview");this.state=po.Busy;var Be=R.a(".split-view-view");S===this.viewItems.length?this.viewContainer.appendChild(Be):this.viewContainer.insertBefore(Be,this.viewContainer.children.item(S));var ot=l.onDidChange(function(ui){return $.onViewChange(qt,ui)}),xe=Object(N.h)(function(){return $.viewContainer.removeChild(Be)}),dt=Object(N.e)(ot,xe),Nt;typeof b=="number"?Nt=b:b.type==="split"?Nt=this.getViewSize(b.index)/2:b.type==="invisible"?Nt={cachedVisibleSize:b.cachedVisibleSize}:Nt=l.minimumSize;var qt=this.orientation===0?new Eo(Be,l,Nt,dt):new Bs(Be,l,Nt,dt);if(this.viewItems.splice(S,0,qt),this.viewItems.length>1){var en=this.orientation===0?1:0,un=this.orientation===0?{getHorizontalSashTop:function(Hi){return $.getSashPosition(Hi)}}:{getVerticalSashLeft:function(Hi){return $.getSashPosition(Hi)}},an=new nn.a(this.sashContainer,un,{orientation:en,orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash}),Cn=this.orientation===0?function(ui){return{sash:an,start:ui.startY,current:ui.currentY,alt:ui.altKey}}:function(ui){return{sash:an,start:ui.startX,current:ui.currentX,alt:ui.altKey}},In=Z.b.map(an.onDidStart,Cn),Nn=In(this.onSashStart,this),ti=Z.b.map(an.onDidChange,Cn),Dn=ti(this.onSashChange,this),di=Z.b.map(an.onDidEnd,function(){return Object(Ke.k)($.sashItems,function(ui){return ui.sash===an})}),qn=di(this.onSashEnd,this),Ri=an.onDidReset(function(){var ui=Object(Ke.k)($.sashItems,function(Qi){return Qi.sash===an}),Hi=Object(Ke.u)(ui,-1),$i=Object(Ke.u)(ui+1,$.viewItems.length),Ji=$.findFirstSnapIndex(Hi),Vi=$.findFirstSnapIndex($i);if(typeof Ji=="number"&&!$.viewItems[Ji].visible)return;if(typeof Vi=="number"&&!$.viewItems[Vi].visible)return;$._onDidSashReset.fire(ui)}),li=Object(N.e)(Nn,Dn,qn,Ri,an),mo={sash:an,disposable:li};this.sashItems.splice(S-1,0,mo)}Be.appendChild(l.element);var Li;typeof b!="number"&&b.type==="split"&&(Li=[b.index]),C||this.relayout([S],Li),this.state=po.Idle,!C&&typeof b!="number"&&b.type==="distribute"&&this.distributeViewSizes()},u.prototype.relayout=function(l,b){var S=this.viewItems.reduce(function(C,$){return C+$.size},0);this.resize(this.viewItems.length-1,this.size-S,void 0,l,b),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()},u.prototype.resize=function(l,b,S,C,$,Be,ot,xe,dt){var Nt=this;if(S===void 0&&(S=this.viewItems.map(function(io){return io.size})),Be===void 0&&(Be=Number.NEGATIVE_INFINITY),ot===void 0&&(ot=Number.POSITIVE_INFINITY),l<0||l>=this.viewItems.length)return 0;var qt=Object(Ke.u)(l,-1),en=Object(Ke.u)(l+1,this.viewItems.length);if($)for(var un=0,an=$;un=xe.limitDelta;Ji=Qi!==Vi.visible,Vi.setVisible(Qi,xe.size)}if(!Ji&&dt){var Vi=this.viewItems[dt.index],Qi=b0||l});l=!1;var S=this.viewItems.map(function(Dn){return l=Dn.maximumSize-Dn.size>0||l}),C=lr(this.viewItems).reverse();l=!1;var $=C.map(function(Dn){return l=Dn.size-Dn.minimumSize>0||l}).reverse();l=!1;for(var Be=C.map(function(Dn){return l=Dn.maximumSize-Dn.size>0||l}).reverse(),ot=0,xe=0;xe0||this.startSnappingEnabled)?dt.state=1:ti&&b[xe]&&(ot0)return;if(!$.visible&&$.snap)return C}return},u.prototype.dispose=function(){y.prototype.dispose.call(this),this.viewItems.forEach(function(l){return l.dispose()}),this.viewItems=[],this.sashItems.forEach(function(l){return l.disposable.dispose()}),this.sashItems=[]},u}(N.a),br=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(u,l){y(u,l);function b(){this.constructor=u}u.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),Vs=function(y,u,l,b){var S=arguments.length,C=S<3?u:b===null?b=Object.getOwnPropertyDescriptor(u,l):b,$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(y,u,l,b);else for(var Be=y.length-1;Be>=0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(u,l,C):$(u,l))||C);return S>3&&C&&Object.defineProperty(u,l,C),C},Do=function(y,u){return function(l,b){u(l,b,y)}},zs=function(y,u,l,b){function S(C){return C instanceof l?C:new l(function($){$(C)})}return new(l||(l=Promise))(function(C,$){function Be(dt){try{xe(b.next(dt))}catch(Nt){$(Nt)}}function ot(dt){try{xe(b.throw(dt))}catch(Nt){$(Nt)}}function xe(dt){dt.done?C(dt.value):S(dt.value).then(Be,ot)}xe((b=b.apply(y,u||[])).next())})},Uo=function(y,u){var l={label:0,sent:function(){if(C[0]&1)throw C[1];return C[1]},trys:[],ops:[]},b,S,C,$;return $={next:Be(0),throw:Be(1),return:Be(2)},typeof Symbol=="function"&&($[Symbol.iterator]=function(){return this}),$;function Be(xe){return function(dt){return ot([xe,dt])}}function ot(xe){if(b)throw new TypeError("Generator is already executing.");for(;l;)try{if(b=1,S&&(C=xe[0]&2?S.return:xe[0]?S.throw||((C=S.return)&&C.call(S),0):S.next)&&!(C=C.call(S,xe[1])).done)return C;(S=0,C)&&(xe=[xe[0]&2,C.value]);switch(xe[0]){case 0:case 1:C=xe;break;case 4:return l.label++,{value:xe[1],done:!1};case 5:l.label++,S=xe[1],xe=[0];continue;case 7:xe=l.ops.pop(),l.trys.pop();continue;default:if(!(C=l.trys,C=C.length>0&&C[C.length-1])&&(xe[0]===6||xe[0]===2)){l=0;continue}if(xe[0]===3&&(!C||xe[1]>C[0]&&xe[1]0?l.children[0]:void 0},u.prototype._revealReference=function(l,b){return zs(this,void 0,void 0,function(){var S,C,$,Be,ot;return Uo(this,function(xe){switch(xe.label){case 0:return this._revealedReference===l?[2]:(this._revealedReference=l,l.uri.scheme!==Is.b.inMemory?this.setTitle(Object(Te.c)(l.uri),this._uriLabel.getUriLabel(Object(Te.d)(l.uri))):this.setTitle(oe.a("peekView.alternateTitle","References")),S=this._textModelResolverService.createModelReference(l.uri),this._tree.getInput()===l.parent?(this._tree.reveal(l),[3,3]):[3,1]);case 1:return b&&this._tree.reveal(l.parent),[4,this._tree.expand(l.parent)];case 2:xe.sent(),this._tree.reveal(l),xe.label=3;case 3:return[4,S];case 4:return C=xe.sent(),this._model?(Object(N.f)(this._previewModelReference),$=C.object,$?(Be=this._preview.getModel()===$.textEditorModel?0:1,ot=U.a.lift(l.range).collapseToStart(),this._previewModelReference=C,this._preview.setModel($.textEditorModel),this._preview.setSelection(ot),this._preview.revealRangeInCenter(ot,Be)):(this._preview.setModel(this._previewNotAvailableMessage),C.dispose()),[2]):(C.dispose(),[2])}})})},u=Vs([Do(3,fe.c),Do(4,Or.a),Do(5,Tn.a),Do(6,vt),Do(7,ir.a)],u),u}(Sn);Object(fe.e)(function(y,u){var l=y.getColor(Un);l&&u.addRule(".monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight { background-color: "+l+"; }");var b=y.getColor(Ci);b&&u.addRule(".monaco-editor .reference-zone-widget .preview .reference-decoration { background-color: "+b+"; }");var S=y.getColor(Wi);S&&u.addRule(".monaco-editor .reference-zone-widget .preview .reference-decoration { border: 2px solid "+S+"; box-sizing: border-box; }");var C=y.getColor(se.b);C&&u.addRule(".monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight { border: 1px dotted "+C+"; box-sizing: border-box; }");var $=y.getColor(ci);$&&u.addRule(".monaco-editor .reference-zone-widget .ref-tree { background-color: "+$+"; }");var Be=y.getColor(zi);Be&&u.addRule(".monaco-editor .reference-zone-widget .ref-tree { color: "+Be+"; }");var ot=y.getColor(oo);ot&&u.addRule(".monaco-editor .reference-zone-widget .ref-tree .reference-file { color: "+ot+"; }");var xe=y.getColor(Zn);xe&&u.addRule(".monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows > .monaco-list-row.selected:not(.highlighted) { background-color: "+xe+"; }");var dt=y.getColor(Ii);dt&&u.addRule(".monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows > .monaco-list-row.selected:not(.highlighted) { color: "+dt+" !important; }");var Nt=y.getColor(Si);Nt&&u.addRule(".monaco-editor .reference-zone-widget .preview .monaco-editor .monaco-editor-background,.monaco-editor .reference-zone-widget .preview .monaco-editor .inputarea.ime-input {"+(" background-color: "+Nt+";")+"}");var qt=y.getColor(ji);qt&&u.addRule(".monaco-editor .reference-zone-widget .preview .monaco-editor .margin {"+(" background-color: "+qt+";")+"}")});var Vo=r("sobA"),Cs=function(y,u,l,b){var S=arguments.length,C=S<3?u:b===null?b=Object.getOwnPropertyDescriptor(u,l):b,$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(y,u,l,b);else for(var Be=y.length-1;Be>=0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(u,l,C):$(u,l))||C);return S>3&&C&&Object.defineProperty(u,l,C),C},$o=function(y,u){return function(l,b){u(l,b,y)}},xo=function(y,u,l,b){function S(C){return C instanceof l?C:new l(function($){$(C)})}return new(l||(l=Promise))(function(C,$){function Be(dt){try{xe(b.next(dt))}catch(Nt){$(Nt)}}function ot(dt){try{xe(b.throw(dt))}catch(Nt){$(Nt)}}function xe(dt){dt.done?C(dt.value):S(dt.value).then(Be,ot)}xe((b=b.apply(y,u||[])).next())})},Yi=function(y,u){var l={label:0,sent:function(){if(C[0]&1)throw C[1];return C[1]},trys:[],ops:[]},b,S,C,$;return $={next:Be(0),throw:Be(1),return:Be(2)},typeof Symbol=="function"&&($[Symbol.iterator]=function(){return this}),$;function Be(xe){return function(dt){return ot([xe,dt])}}function ot(xe){if(b)throw new TypeError("Generator is already executing.");for(;l;)try{if(b=1,S&&(C=xe[0]&2?S.return:xe[0]?S.throw||((C=S.return)&&C.call(S),0):S.next)&&!(C=C.call(S,xe[1])).done)return C;(S=0,C)&&(xe=[xe[0]&2,C.value]);switch(xe[0]){case 0:case 1:C=xe;break;case 4:return l.label++,{value:xe[1],done:!1};case 5:l.label++,S=xe[1],xe=[0];continue;case 7:xe=l.ops.pop(),l.trys.pop();continue;default:if(!(C=l.trys,C=C.length>0&&C[C.length-1])&&(xe[0]===6||xe[0]===2)){l=0;continue}if(xe[0]===3&&(!C||xe[1]>C[0]&&xe[1]=0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(u,l,C):$(u,l))||C);return S>3&&C&&Object.defineProperty(u,l,C),C},Oo=function(y,u){return function(l,b){u(l,b,y)}},Zr=new pe.d("hasSymbols",!1),qo=Object(Tn.c)("ISymbolNavigationService"),ur=function(){function y(u,l,b,S){this._editorService=l,this._notificationService=b,this._keybindingService=S,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=Zr.bindTo(u)}return y.prototype.reset=function(){this._ctxHasSymbols.reset(),Object(N.f)(this._currentState),Object(N.f)(this._currentMessage),this._currentModel=void 0,this._currentIdx=-1},y.prototype.put=function(u){var l=this,b=u.parent.parent;if(b.references.length<=1){this.reset();return}this._currentModel=b,this._currentIdx=b.references.indexOf(u),this._ctxHasSymbols.set(!0),this._showMessage();var S=new go(this._editorService),C=S.onDidChange(function($){if(l._ignoreEditorChange)return;var Be=l._editorService.getActiveCodeEditor();if(!Be)return;var ot=Be.getModel(),xe=Be.getPosition();if(!ot||!xe)return;for(var dt=!1,Nt=!1,qt=0,en=b.references;qt0&&C[C.length-1])&&(xe[0]===6||xe[0]===2)){l=0;continue}if(xe[0]===3&&(!C||xe[1]>C[0]&&xe[1]1)?(this._openInPeek(S,C),[3,3]):[3,1];case 1:return Be=C.firstReference(),ot=C.references.length>1&&$==="gotoAndPeek",[4,this._openReference(S,l,Be,this._configuration.openToSide,!ot)];case 2:xe=dt.sent(),ot&&xe?this._openInPeek(xe,C):C.dispose(),$==="goto"&&b.put(Be),dt.label=3;case 3:return[2]}})})},u.prototype._openReference=function(l,b,S,C,$){return Zi(this,void 0,void 0,function(){var Be,ot,xe,dt;return yo(this,function(Nt){switch(Nt.label){case 0:return Be=void 0,Object(te.D)(S)&&(Be=S.targetSelectionRange),Be||(Be=S.range),[4,b.openCodeEditor({resource:S.uri,options:{selection:U.a.collapseToStart(Be),revealInCenterIfOutsideViewport:!0}},l,C)];case 1:return ot=Nt.sent(),ot?($&&(xe=ot.getModel(),dt=ot.deltaDecorations([],[{range:Be,options:{className:"symbolHighlight"}}]),setTimeout(function(){ot.getModel()===xe&&ot.deltaDecorations(dt,[])},350)),[2,ot]):[2,void 0]}})})},u.prototype._openInPeek=function(l,b){var S=Xr.get(l);S&&l.hasModel()?S.toggleWidget(l.getSelection(),Object(m.f)(function(C){return Promise.resolve(b)}),this._configuration.openInPeek):b.dispose()},u}(F.b),Pr=function(y){Ei(u,y);function u(){return y!==null&&y.apply(this,arguments)||this}return u.prototype._getLocationModel=function(l,b,S){return Zi(this,void 0,void 0,function(){var C;return yo(this,function($){switch($.label){case 0:return C=oi.bind,[4,Vr(l,b,S)];case 1:return[2,new(C.apply(oi,[void 0,$.sent(),oe.a("def.title","Definitions")]))]}})})},u.prototype._getNoResultFoundMessage=function(l){return l&&l.word?oe.a("noResultWord","No definition found for '{0}'",l.word):oe.a("generic.noResults","No definition found")},u.prototype._getAlternativeCommand=function(l){return l.getOption(41).alternativeDefinitionCommand},u.prototype._getGoToPreference=function(l){return l.getOption(41).multipleDefinitions},u}(cr),$r=Tr.g&&!Ve.l?2048|70:70;Object(F.f)((Cr=function(y){Ei(u,y);function u(){var l=y.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:u.id,label:oe.a("actions.goToDecl.label","Go to Definition"),alias:"Go to Definition",precondition:pe.a.and(j.a.hasDefinitionProvider,j.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:j.a.editorTextFocus,primary:$r,weight:100},contextMenuOpts:{group:"navigation",order:1.1},menuOpts:{menuId:19,group:"4_symbol_nav",order:2,title:oe.a({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")}})||this;return yn.a.registerCommandAlias("editor.action.goToDeclaration",u.id),l}return u}(Pr),Cr.id="editor.action.revealDefinition",Cr)),Object(F.f)((_r=function(y){Ei(u,y);function u(){var l=y.call(this,{openToSide:!0,openInPeek:!1,muteMessage:!1},{id:u.id,label:oe.a("actions.goToDeclToSide.label","Open Definition to the Side"),alias:"Open Definition to the Side",precondition:pe.a.and(j.a.hasDefinitionProvider,j.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:j.a.editorTextFocus,primary:Object(ne.a)(2048|41,$r),weight:100}})||this;return yn.a.registerCommandAlias("editor.action.openDeclarationToTheSide",u.id),l}return u}(Pr),_r.id="editor.action.revealDefinitionAside",_r)),Object(F.f)((ai=function(y){Ei(u,y);function u(){var l=y.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:u.id,label:oe.a("actions.previewDecl.label","Peek Definition"),alias:"Peek Definition",precondition:pe.a.and(j.a.hasDefinitionProvider,Mt.notInPeekEditor,j.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:j.a.editorTextFocus,primary:512|70,linux:{primary:2048|1024|68},weight:100},contextMenuOpts:{menuId:8,group:"peek",order:2}})||this;return yn.a.registerCommandAlias("editor.action.previewDeclaration",u.id),l}return u}(Pr),ai.id="editor.action.peekDefinition",ai));var _s=function(y){Ei(u,y);function u(){return y!==null&&y.apply(this,arguments)||this}return u.prototype._getLocationModel=function(l,b,S){return Zi(this,void 0,void 0,function(){var C;return yo(this,function($){switch($.label){case 0:return C=oi.bind,[4,fs(l,b,S)];case 1:return[2,new(C.apply(oi,[void 0,$.sent(),oe.a("decl.title","Declarations")]))]}})})},u.prototype._getNoResultFoundMessage=function(l){return l&&l.word?oe.a("decl.noResultWord","No declaration found for '{0}'",l.word):oe.a("decl.generic.noResults","No declaration found")},u.prototype._getAlternativeCommand=function(l){return l.getOption(41).alternativeDeclarationCommand},u.prototype._getGoToPreference=function(l){return l.getOption(41).multipleDeclarations},u}(cr);Object(F.f)((Er=function(y){Ei(u,y);function u(){return y.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:u.id,label:oe.a("actions.goToDeclaration.label","Go to Declaration"),alias:"Go to Declaration",precondition:pe.a.and(j.a.hasDeclarationProvider,j.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{group:"navigation",order:1.3},menuOpts:{menuId:19,group:"4_symbol_nav",order:3,title:oe.a({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")}})||this}return u.prototype._getNoResultFoundMessage=function(l){return l&&l.word?oe.a("decl.noResultWord","No declaration found for '{0}'",l.word):oe.a("decl.generic.noResults","No declaration found")},u}(_s),Er.id="editor.action.revealDeclaration",Er)),Object(F.f)(function(y){Ei(u,y);function u(){return y.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",label:oe.a("actions.peekDecl.label","Peek Declaration"),alias:"Peek Declaration",precondition:pe.a.and(j.a.hasDeclarationProvider,Mt.notInPeekEditor,j.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{menuId:8,group:"peek",order:3}})||this}return u}(_s));var Es=function(y){Ei(u,y);function u(){return y!==null&&y.apply(this,arguments)||this}return u.prototype._getLocationModel=function(l,b,S){return Zi(this,void 0,void 0,function(){var C;return yo(this,function($){switch($.label){case 0:return C=oi.bind,[4,zr(l,b,S)];case 1:return[2,new(C.apply(oi,[void 0,$.sent(),oe.a("typedef.title","Type Definitions")]))]}})})},u.prototype._getNoResultFoundMessage=function(l){return l&&l.word?oe.a("goToTypeDefinition.noResultWord","No type definition found for '{0}'",l.word):oe.a("goToTypeDefinition.generic.noResults","No type definition found")},u.prototype._getAlternativeCommand=function(l){return l.getOption(41).alternativeTypeDefinitionCommand},u.prototype._getGoToPreference=function(l){return l.getOption(41).multipleTypeDefinitions},u}(cr);Object(F.f)((er=function(y){Ei(u,y);function u(){return y.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:u.ID,label:oe.a("actions.goToTypeDefinition.label","Go to Type Definition"),alias:"Go to Type Definition",precondition:pe.a.and(j.a.hasTypeDefinitionProvider,j.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:j.a.editorTextFocus,primary:0,weight:100},contextMenuOpts:{group:"navigation",order:1.4},menuOpts:{menuId:19,group:"4_symbol_nav",order:3,title:oe.a({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")}})||this}return u}(Es),er.ID="editor.action.goToTypeDefinition",er)),Object(F.f)((Rr=function(y){Ei(u,y);function u(){return y.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:u.ID,label:oe.a("actions.peekTypeDefinition.label","Peek Type Definition"),alias:"Peek Type Definition",precondition:pe.a.and(j.a.hasTypeDefinitionProvider,Mt.notInPeekEditor,j.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{menuId:8,group:"peek",order:4}})||this}return u}(Es),Rr.ID="editor.action.peekTypeDefinition",Rr));var Jr=function(y){Ei(u,y);function u(){return y!==null&&y.apply(this,arguments)||this}return u.prototype._getLocationModel=function(l,b,S){return Zi(this,void 0,void 0,function(){var C;return yo(this,function($){switch($.label){case 0:return C=oi.bind,[4,ps(l,b,S)];case 1:return[2,new(C.apply(oi,[void 0,$.sent(),oe.a("impl.title","Implementations")]))]}})})},u.prototype._getNoResultFoundMessage=function(l){return l&&l.word?oe.a("goToImplementation.noResultWord","No implementation found for '{0}'",l.word):oe.a("goToImplementation.generic.noResults","No implementation found")},u.prototype._getAlternativeCommand=function(l){return l.getOption(41).alternativeImplementationCommand},u.prototype._getGoToPreference=function(l){return l.getOption(41).multipleImplementations},u}(cr);Object(F.f)((No=function(y){Ei(u,y);function u(){return y.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:u.ID,label:oe.a("actions.goToImplementation.label","Go to Implementations"),alias:"Go to Implementations",precondition:pe.a.and(j.a.hasImplementationProvider,j.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:j.a.editorTextFocus,primary:2048|70,weight:100},menuOpts:{menuId:19,group:"4_symbol_nav",order:4,title:oe.a({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},contextMenuOpts:{group:"navigation",order:1.45}})||this}return u}(Jr),No.ID="editor.action.goToImplementation",No)),Object(F.f)((Ir=function(y){Ei(u,y);function u(){return y.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:u.ID,label:oe.a("actions.peekImplementation.label","Peek Implementations"),alias:"Peek Implementations",precondition:pe.a.and(j.a.hasImplementationProvider,Mt.notInPeekEditor,j.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:j.a.editorTextFocus,primary:2048|1024|70,weight:100},contextMenuOpts:{menuId:8,group:"peek",order:5}})||this}return u}(Jr),Ir.ID="editor.action.peekImplementation",Ir));var Ss=function(y){Ei(u,y);function u(){return y!==null&&y.apply(this,arguments)||this}return u.prototype._getNoResultFoundMessage=function(l){return l?oe.a("references.no","No references found for '{0}'",l.word):oe.a("references.noGeneric","No references found")},u.prototype._getAlternativeCommand=function(l){return l.getOption(41).alternativeReferenceCommand},u.prototype._getGoToPreference=function(l){return l.getOption(41).multipleReferences},u}(cr);Object(F.f)(function(y){Ei(u,y);function u(){return y.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",label:oe.a("goToReferences.label","Go to References"),alias:"Go to References",precondition:pe.a.and(j.a.hasReferenceProvider,Mt.notInPeekEditor,j.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:j.a.editorTextFocus,primary:1024|70,weight:100},contextMenuOpts:{group:"navigation",order:1.45},menuOpts:{menuId:19,group:"4_symbol_nav",order:5,title:oe.a({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")}})||this}return u.prototype._getLocationModel=function(l,b,S){return Zi(this,void 0,void 0,function(){var C;return yo(this,function($){switch($.label){case 0:return C=oi.bind,[4,yr(l,b,!0,S)];case 1:return[2,new(C.apply(oi,[void 0,$.sent(),oe.a("ref.title","References")]))]}})})},u}(Ss)),Object(F.f)(function(y){Ei(u,y);function u(){return y.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",label:oe.a("references.action.label","Peek References"),alias:"Peek References",precondition:pe.a.and(j.a.hasReferenceProvider,Mt.notInPeekEditor,j.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{menuId:8,group:"peek",order:6}})||this}return u.prototype._getLocationModel=function(l,b,S){return Zi(this,void 0,void 0,function(){var C;return yo(this,function($){switch($.label){case 0:return C=oi.bind,[4,yr(l,b,!1,S)];case 1:return[2,new(C.apply(oi,[void 0,$.sent(),oe.a("ref.title","References")]))]}})})},u}(Ss));var Qr=function(y){Ei(u,y);function u(l,b,S){var C=y.call(this,l,{id:"editor.action.goToLocation",label:oe.a("label.generic","Go To Any Symbol"),alias:"Go To Any Symbol",precondition:pe.a.and(Mt.notInPeekEditor,j.a.isInEmbeddedEditor.toNegated())})||this;return C._references=b,C._gotoMultipleBehaviour=S,C}return u.prototype._getLocationModel=function(l,b,S){return Zi(this,void 0,void 0,function(){return yo(this,function(C){return[2,new oi(this._references,oe.a("generic.title","Locations"))]})})},u.prototype._getNoResultFoundMessage=function(l){return l&&oe.a("generic.noResult","No results for '{0}'",l.word)||""},u.prototype._getGoToPreference=function(l){var b;return(b=this._gotoMultipleBehaviour)!==null&&b!==void 0?b:l.getOption(41).multipleReferences},u.prototype._getAlternativeCommand=function(){return""},u}(cr);yn.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:_.a},{name:"position",description:"The position at which to start",constraint:D.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(u,l,b,S,C,$){return Zi(void 0,void 0,void 0,function(){var Be,ot;return yo(this,function(xe){switch(xe.label){case 0:return Object(_o.a)(_.a.isUri(l)),Object(_o.a)(D.a.isIPosition(b)),Object(_o.a)(Array.isArray(S)),Object(_o.a)(typeof C=="undefined"||typeof C=="string"),Object(_o.a)(typeof $=="undefined"||typeof $=="boolean"),Be=u.get(B.a),[4,Be.openCodeEditor({resource:l},Be.getFocusedCodeEditor())];case 1:return ot=xe.sent(),Object(Hr.a)(ot)?(ot.setPosition(b),ot.revealPositionInCenterIfOutsideViewport(b,0),[2,ot.invokeWithinContext(function(dt){var Nt=new Qr({muteMessage:!0,openInPeek:Boolean($),openToSide:!1},S,C);dt.get(Tn.a).invokeFunction(Nt.run.bind(Nt),ot)})]):[2]}})})}}),yn.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:_.a},{name:"position",description:"The position at which to start",constraint:D.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(u,l,b,S,C){return Zi(void 0,void 0,void 0,function(){return yo(this,function($){return u.get(yn.b).executeCommand("editor.action.goToLocations",l,b,S,C,!0),[2]})})}}),yn.a.registerCommand({id:"editor.action.findReferences",handler:function(u,l,b){Object(_o.a)(_.a.isUri(l)),Object(_o.a)(D.a.isIPosition(b));var S=u.get(B.a);return S.openCodeEditor({resource:l},S.getFocusedCodeEditor()).then(function(C){if(!Object(Hr.a)(C)||!C.hasModel())return;var $=Xr.get(C);if(!$)return;var Be=Object(m.f)(function(xe){return yr(C.getModel(),D.a.lift(b),!1,xe).then(function(dt){return new oi(dt,oe.a("ref.title","References"))})}),ot=new U.a(b.lineNumber,b.column,b.lineNumber,b.column);return Promise.resolve($.toggleWidget(ot,Be,!1))})}}),yn.a.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations");var Fr=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(u,l){y(u,l);function b(){this.constructor=u}u.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}();function hr(y,u){return!!y[u]}var kr=function(){function y(u,l){this.target=u.target,this.hasTriggerModifier=hr(u.event,l.triggerModifier),this.hasSideBySideModifier=hr(u.event,l.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=Ve.i||u.event.detail<=1}return y}(),qr=function(){function y(u,l){this.keyCodeIsTriggerKey=u.keyCode===l.triggerKey,this.keyCodeIsSideBySideKey=u.keyCode===l.triggerSideBySideKey,this.hasTriggerModifier=hr(u,l.triggerModifier)}return y}(),L=function(){function y(u,l,b,S){this.triggerKey=u,this.triggerModifier=l,this.triggerSideBySideKey=b,this.triggerSideBySideModifier=S}return y.prototype.equals=function(u){return this.triggerKey===u.triggerKey&&this.triggerModifier===u.triggerModifier&&this.triggerSideBySideKey===u.triggerSideBySideKey&&this.triggerSideBySideModifier===u.triggerSideBySideModifier},y}();function n(y){return y==="altKey"?Tr.e?new L(57,"metaKey",6,"altKey"):new L(5,"ctrlKey",6,"altKey"):Tr.e?new L(6,"altKey",57,"metaKey"):new L(6,"altKey",5,"ctrlKey")}var e=function(y){Fr(u,y);function u(l){var b=y.call(this)||this;return b._onMouseMoveOrRelevantKeyDown=b._register(new Z.a),b.onMouseMoveOrRelevantKeyDown=b._onMouseMoveOrRelevantKeyDown.event,b._onExecute=b._register(new Z.a),b.onExecute=b._onExecute.event,b._onCancel=b._register(new Z.a),b.onCancel=b._onCancel.event,b._editor=l,b._opts=n(b._editor.getOption(59)),b.lastMouseMoveEvent=null,b.hasTriggerKeyOnMouseDown=!1,b._register(b._editor.onDidChangeConfiguration(function(S){if(S.hasChanged(59)){var C=n(b._editor.getOption(59));if(b._opts.equals(C))return;b._opts=C,b.lastMouseMoveEvent=null,b.hasTriggerKeyOnMouseDown=!1,b._onCancel.fire()}})),b._register(b._editor.onMouseMove(function(S){return b.onEditorMouseMove(new kr(S,b._opts))})),b._register(b._editor.onMouseDown(function(S){return b.onEditorMouseDown(new kr(S,b._opts))})),b._register(b._editor.onMouseUp(function(S){return b.onEditorMouseUp(new kr(S,b._opts))})),b._register(b._editor.onKeyDown(function(S){return b.onEditorKeyDown(new qr(S,b._opts))})),b._register(b._editor.onKeyUp(function(S){return b.onEditorKeyUp(new qr(S,b._opts))})),b._register(b._editor.onMouseDrag(function(){return b.resetHandler()})),b._register(b._editor.onDidChangeCursorSelection(function(S){return b.onDidChangeCursorSelection(S)})),b._register(b._editor.onDidChangeModel(function(S){return b.resetHandler()})),b._register(b._editor.onDidChangeModelContent(function(){return b.resetHandler()})),b._register(b._editor.onDidScrollChange(function(S){(S.scrollTopChanged||S.scrollLeftChanged)&&b.resetHandler()})),b}return u.prototype.onDidChangeCursorSelection=function(l){l.selection&&l.selection.startColumn!==l.selection.endColumn&&this.resetHandler()},u.prototype.onEditorMouseMove=function(l){this.lastMouseMoveEvent=l,this._onMouseMoveOrRelevantKeyDown.fire([l,null])},u.prototype.onEditorMouseDown=function(l){this.hasTriggerKeyOnMouseDown=l.hasTriggerModifier},u.prototype.onEditorMouseUp=function(l){this.hasTriggerKeyOnMouseDown&&this._onExecute.fire(l)},u.prototype.onEditorKeyDown=function(l){this.lastMouseMoveEvent&&(l.keyCodeIsTriggerKey||l.keyCodeIsSideBySideKey&&l.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this.lastMouseMoveEvent,l]):l.hasTriggerModifier&&this._onCancel.fire()},u.prototype.onEditorKeyUp=function(l){l.keyCodeIsTriggerKey&&this._onCancel.fire()},u.prototype.resetHandler=function(){this.lastMouseMoveEvent=null,this.hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()},u}(N.a),i=function(y,u,l,b){var S=arguments.length,C=S<3?u:b===null?b=Object.getOwnPropertyDescriptor(u,l):b,$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(y,u,l,b);else for(var Be=y.length-1;Be>=0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(u,l,C):$(u,l))||C);return S>3&&C&&Object.defineProperty(u,l,C),C},d=function(y,u){return function(l,b){u(l,b,y)}},c=function(){function y(u,l,b){var S=this;this.textModelResolverService=l,this.modeService=b,this.toUnhook=new N.b,this.toUnhookForKeyboard=new N.b,this.linkDecorations=[],this.currentWordAtPosition=null,this.previousPromise=null,this.editor=u;var C=new e(u);this.toUnhook.add(C),this.toUnhook.add(C.onMouseMoveOrRelevantKeyDown(function($){var Be=$[0],ot=$[1];S.startFindDefinitionFromMouse(Be,Object(_o.n)(ot))})),this.toUnhook.add(C.onExecute(function($){S.isEnabled($)&&S.gotoDefinition($.target.position,$.hasSideBySideModifier).then(function(){S.removeLinkDecorations()},function(Be){S.removeLinkDecorations(),Object(z.e)(Be)})})),this.toUnhook.add(C.onCancel(function(){S.removeLinkDecorations(),S.currentWordAtPosition=null}))}return y.get=function(u){return u.getContribution(y.ID)},y.prototype.startFindDefinitionFromCursor=function(u){var l=this;return this.startFindDefinition(u).then(function(){l.toUnhookForKeyboard.add(l.editor.onDidChangeCursorPosition(function(){l.currentWordAtPosition=null,l.removeLinkDecorations(),l.toUnhookForKeyboard.clear()})),l.toUnhookForKeyboard.add(l.editor.onKeyDown(function(b){b&&(l.currentWordAtPosition=null,l.removeLinkDecorations(),l.toUnhookForKeyboard.clear())}))})},y.prototype.startFindDefinitionFromMouse=function(u,l){if(u.target.type===9&&this.linkDecorations.length>0)return;if(!this.editor.hasModel()||!this.isEnabled(u,l)){this.currentWordAtPosition=null,this.removeLinkDecorations();return}var b=u.target.position;this.startFindDefinition(b)},y.prototype.startFindDefinition=function(u){var l=this,b;this.toUnhookForKeyboard.clear();var S=u?(b=this.editor.getModel())===null||b===void 0?void 0:b.getWordAtPosition(u):null;if(!S)return this.currentWordAtPosition=null,this.removeLinkDecorations(),Promise.resolve(0);if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===S.startColumn&&this.currentWordAtPosition.endColumn===S.endColumn&&this.currentWordAtPosition.word===S.word)return Promise.resolve(0);this.currentWordAtPosition=S;var C=new fn.a(this.editor,4|1|2|8);return this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=Object(m.f)(function($){return l.findDefinition(u,$)}),this.previousPromise.then(function($){if(!$||!$.length||!C.validate(l.editor)){l.removeLinkDecorations();return}if($.length>1)l.addDecoration(new U.a(u.lineNumber,S.startColumn,u.lineNumber,S.endColumn),new K.a().appendText(oe.a("multipleResults","Click to show {0} definitions.",$.length)));else{var Be=$[0];if(!Be.uri)return;l.textModelResolverService.createModelReference(Be.uri).then(function(ot){if(!ot.object||!ot.object.textEditorModel){ot.dispose();return}var xe=ot.object.textEditorModel,dt=Be.range.startLineNumber;if(dt<1||dt>xe.getLineCount()){ot.dispose();return}var Nt=l.getPreviewValue(xe,dt,Be),qt;Be.originSelectionRange?qt=U.a.lift(Be.originSelectionRange):qt=new U.a(u.lineNumber,S.startColumn,u.lineNumber,S.endColumn);var en=l.modeService.getModeIdByFilepathOrFirstLine(xe.uri);l.addDecoration(qt,new K.a().appendCodeblock(en||"",Nt)),ot.dispose()})}}).then(void 0,z.e)},y.prototype.getPreviewValue=function(u,l,b){var S=b.targetSelectionRange?b.range:this.getPreviewRangeBasedOnBrackets(u,l),C=S.endLineNumber-S.startLineNumber;C>=y.MAX_SOURCE_PREVIEW_LINES&&(S=this.getPreviewRangeBasedOnIndentation(u,l));var $=this.stripIndentationFromPreviewRange(u,l,S);return $},y.prototype.stripIndentationFromPreviewRange=function(u,l,b){for(var S=u.getLineFirstNonWhitespaceColumn(l),C=S,$=l+1;$b)return new U.a(l,1,b+1,1);$=u.findNextBracket(new D.a(xe,dt))}return new U.a(l,1,b+1,1)},y.prototype.addDecoration=function(u,l){var b={range:u,options:{inlineClassName:"goto-definition-link",hoverMessage:l}};this.linkDecorations=this.editor.deltaDecorations(this.linkDecorations,[b])},y.prototype.removeLinkDecorations=function(){this.linkDecorations.length>0&&(this.linkDecorations=this.editor.deltaDecorations(this.linkDecorations,[]))},y.prototype.isEnabled=function(u,l){return this.editor.hasModel()&&u.isNoneOrSingleMouseDown&&u.target.type===6&&(u.hasTriggerModifier||(l?l.keyCodeIsTriggerKey:!1))&&te.f.has(this.editor.getModel())},y.prototype.findDefinition=function(u,l){var b=this.editor.getModel();return b?Vr(b,u,l):Promise.resolve(null)},y.prototype.gotoDefinition=function(u,l){var b=this;this.editor.setPosition(u);var S=new Pr({openToSide:l,openInPeek:!1,muteMessage:!0},{alias:"",label:"",id:"",precondition:void 0});return this.editor.invokeWithinContext(function(C){return S.run(C,b.editor)})},y.prototype.dispose=function(){this.toUnhook.dispose()},y.ID="editor.contrib.gotodefinitionatposition",y.MAX_SOURCE_PREVIEW_LINES=8,y=i([d(1,Or.a),d(2,G.a)],y),y}();Object(F.h)(c.ID,c),Object(fe.e)(function(y,u){var l=y.getColor(se.n);l&&u.addRule(".monaco-editor .goto-definition-link { color: "+l+" !important; }")});var M=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(u,l){y(u,l);function b(){this.constructor=u}u.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),ge=function(y,u,l,b){var S=arguments.length,C=S<3?u:b===null?b=Object.getOwnPropertyDescriptor(u,l):b,$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(y,u,l,b);else for(var Be=y.length-1;Be>=0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(u,l,C):$(u,l))||C);return S>3&&C&&Object.defineProperty(u,l,C),C},le=function(y,u){return function(l,b){u(l,b,y)}},He=function(){function y(u,l,b,S,C,$){var Be=this;this._editor=u,this._openerService=l,this._modeService=b,this._markerDecorationsService=S,this._keybindingService=C,this._themeService=$,this._toUnhook=new N.b,this._contentWidget=new N.d,this._glyphWidget=new N.d,this._isMouseDown=!1,this._hoverClicked=!1,this._hookEvents(),this._didChangeConfigurationHandler=this._editor.onDidChangeConfiguration(function(ot){ot.hasChanged(44)&&(Be._hideWidgets(),Be._unhookEvents(),Be._hookEvents())})}return Object.defineProperty(y.prototype,"contentWidget",{get:function(){return this._contentWidget.value||this._createHoverWidgets(),this._contentWidget.value},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"glyphWidget",{get:function(){return this._glyphWidget.value||this._createHoverWidgets(),this._glyphWidget.value},enumerable:!0,configurable:!0}),y.get=function(u){return u.getContribution(y.ID)},y.prototype._hookEvents=function(){var u=this,l=function(){return u._hideWidgets()},b=this._editor.getOption(44);this._isHoverEnabled=b.enabled,this._isHoverSticky=b.sticky,this._isHoverEnabled?(this._toUnhook.add(this._editor.onMouseDown(function(S){return u._onEditorMouseDown(S)})),this._toUnhook.add(this._editor.onMouseUp(function(S){return u._onEditorMouseUp(S)})),this._toUnhook.add(this._editor.onMouseMove(function(S){return u._onEditorMouseMove(S)})),this._toUnhook.add(this._editor.onKeyDown(function(S){return u._onKeyDown(S)})),this._toUnhook.add(this._editor.onDidChangeModelDecorations(function(){return u._onModelDecorationsChanged()}))):this._toUnhook.add(this._editor.onMouseMove(l)),this._toUnhook.add(this._editor.onMouseLeave(l)),this._toUnhook.add(this._editor.onDidChangeModel(l)),this._toUnhook.add(this._editor.onDidScrollChange(function(S){return u._onEditorScrollChanged(S)}))},y.prototype._unhookEvents=function(){this._toUnhook.clear()},y.prototype._onModelDecorationsChanged=function(){this.contentWidget.onModelDecorationsChanged(),this.glyphWidget.onModelDecorationsChanged()},y.prototype._onEditorScrollChanged=function(u){(u.scrollTopChanged||u.scrollLeftChanged)&&this._hideWidgets()},y.prototype._onEditorMouseDown=function(u){this._isMouseDown=!0;var l=u.target.type;if(l===9&&u.target.detail===Yo.ID){this._hoverClicked=!0;return}if(l===12&&u.target.detail===vr.ID)return;l!==12&&u.target.detail!==vr.ID&&(this._hoverClicked=!1),this._hideWidgets()},y.prototype._onEditorMouseUp=function(u){this._isMouseDown=!1},y.prototype._onEditorMouseMove=function(u){var l=u.target.type;if(this._isMouseDown&&this._hoverClicked&&this.contentWidget.isColorPickerVisible())return;if(this._isHoverSticky&&l===9&&u.target.detail===Yo.ID)return;if(this._isHoverSticky&&l===12&&u.target.detail===vr.ID)return;if(l===7){var b=this._editor.getOption(34).typicalHalfwidthCharacterWidth/2,S=u.target.detail;S&&!S.isAfterLines&&typeof S.horizontalDistanceToText=="number"&&S.horizontalDistanceToTextnt?nt:Ie},Te.float=function(Ie,pe){if(typeof Ie=="number")return Ie;if(typeof Ie=="undefined")return pe;var nt=parseFloat(Ie);return isNaN(nt)?pe:nt},Te.prototype.validate=function(Ie){return this.validationFn(Te.float(Ie,this.defaultValue))},Te}(x),te=function(ve){N(Te,ve);function Te(Ie,pe,nt,Et){Et===void 0&&(Et=void 0);var Rt=this;return typeof Et!="undefined"&&(Et.type="string",Et.default=nt),Rt=ve.call(this,Ie,pe,nt,Et)||this,Rt}return Te.string=function(Ie,pe){return typeof Ie!="string"?pe:Ie},Te.prototype.validate=function(Ie){return Te.string(Ie,this.defaultValue)},Te}(x),z=function(ve){N(Te,ve);function Te(Ie,pe,nt,Et,Rt){Rt===void 0&&(Rt=void 0);var Tt=this;return typeof Rt!="undefined"&&(Rt.type="string",Rt.enum=Et,Rt.default=nt),Tt=ve.call(this,Ie,pe,nt,Rt)||this,Tt._allowedValues=Et,Tt}return Te.stringSet=function(Ie,pe,nt){return typeof Ie!="string"||nt.indexOf(Ie)===-1?pe:Ie},Te.prototype.validate=function(Ie){return Te.stringSet(Ie,this.defaultValue,this._allowedValues)},Te}(x),_=function(ve){N(Te,ve);function Te(Ie,pe,nt,Et,Rt,Tt,Ht){Ht===void 0&&(Ht=void 0);var Gt=this;return typeof Ht!="undefined"&&(Ht.type="string",Ht.enum=Rt,Ht.default=Et),Gt=ve.call(this,Ie,pe,nt,Ht)||this,Gt._allowedValues=Rt,Gt._convert=Tt,Gt}return Te.prototype.validate=function(Ie){return typeof Ie!="string"?this.defaultValue:this._allowedValues.indexOf(Ie)===-1?this.defaultValue:this._convert(Ie)},Te}(R);function f(ve){switch(ve){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}var p=function(ve){N(Te,ve);function Te(){return ve.call(this,2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[I.a("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),I.a("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader."),I.a("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:"auto",description:I.a("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers.")})||this}return Te.prototype.validate=function(Ie){switch(Ie){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue},Te.prototype.compute=function(Ie,pe,nt){return nt===0?Ie.accessibilitySupport:nt},Te}(R),g=function(ve){N(Te,ve);function Te(){var Ie=this,pe={insertSpace:!0};return Ie=ve.call(this,13,"comments",pe,{"editor.comments.insertSpace":{type:"boolean",default:pe.insertSpace,description:I.a("comments.insertSpace","Controls whether a space character is inserted when commenting.")}})||this,Ie}return Te.prototype.validate=function(Ie){if(typeof Ie!="object")return this.defaultValue;var pe=Ie;return{insertSpace:K.boolean(pe.insertSpace,this.defaultValue.insertSpace)}},Te}(R);function m(ve){switch(ve){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var w;(function(ve){ve[ve.Line=1]="Line",ve[ve.Block=2]="Block",ve[ve.Underline=3]="Underline",ve[ve.LineThin=4]="LineThin",ve[ve.BlockOutline=5]="BlockOutline",ve[ve.UnderlineThin=6]="UnderlineThin"})(w||(w={}));function B(ve){switch(ve){case"line":return w.Line;case"block":return w.Block;case"underline":return w.Underline;case"line-thin":return w.LineThin;case"block-outline":return w.BlockOutline;case"underline-thin":return w.UnderlineThin}}var H=function(ve){N(Te,ve);function Te(){return ve.call(this,104,[55,26])||this}return Te.prototype.compute=function(Ie,pe,nt){var Et="monaco-editor";return pe.get(26)&&(Et+=" "+pe.get(26)),Ie.extraEditorClassName&&(Et+=" "+Ie.extraEditorClassName),pe.get(55)==="default"?Et+=" mouse-default":pe.get(55)==="copy"&&(Et+=" mouse-copy"),pe.get(85)&&(Et+=" showUnused"),Et},Te}(E),re=function(ve){N(Te,ve);function Te(){return ve.call(this,25,"emptySelectionClipboard",!0,{description:I.a("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})||this}return Te.prototype.compute=function(Ie,pe,nt){return nt&&Ie.emptySelectionClipboard},Te}(K),he=function(ve){N(Te,ve);function Te(){var Ie=this,pe={seedSearchStringFromSelection:!0,autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0};return Ie=ve.call(this,28,"find",pe,{"editor.find.seedSearchStringFromSelection":{type:"boolean",default:pe.seedSearchStringFromSelection,description:I.a("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:pe.autoFindInSelection,enumDescriptions:[I.a("editor.find.autoFindInSelection.never","Never turn on Find in selection automatically (default)"),I.a("editor.find.autoFindInSelection.always","Always turn on Find in selection automatically"),I.a("editor.find.autoFindInSelection.multiline","Turn on Find in selection automatically when multiple lines of content are selected.")],description:I.a("find.autoFindInSelection","Controls whether the find operation is carried out on selected text or the entire file in the editor.")},"editor.find.globalFindClipboard":{type:"boolean",default:pe.globalFindClipboard,description:I.a("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:oe.e},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:pe.addExtraSpaceOnTop,description:I.a("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")}})||this,Ie}return Te.prototype.validate=function(Ie){if(typeof Ie!="object")return this.defaultValue;var pe=Ie;return{seedSearchStringFromSelection:K.boolean(pe.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection),autoFindInSelection:typeof Ie.autoFindInSelection=="boolean"?Ie.autoFindInSelection?"always":"never":z.stringSet(pe.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:K.boolean(pe.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:K.boolean(pe.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop)}},Te}(R),Ee=function(ve){N(Te,ve);function Te(){return ve.call(this,35,"fontLigatures",Te.OFF,{anyOf:[{type:"boolean",description:I.a("fontLigatures","Enables/Disables font ligatures.")},{type:"string",description:I.a("fontFeatureSettings","Explicit font-feature-settings.")}],description:I.a("fontLigaturesGeneral","Configures font ligatures."),default:!1})||this}return Te.prototype.validate=function(Ie){return typeof Ie=="undefined"?this.defaultValue:typeof Ie=="string"?Ie==="false"?Te.OFF:Ie==="true"?Te.ON:Ie:Boolean(Ie)?Te.ON:Te.OFF},Te.OFF='"liga" off, "calt" off',Te.ON='"liga" on, "calt" on',Te}(R),Se=function(ve){N(Te,ve);function Te(){return ve.call(this,34)||this}return Te.prototype.compute=function(Ie,pe,nt){return Ie.fontInfo},Te}(E),q=function(ve){N(Te,ve);function Te(){return ve.call(this,36,"fontSize",$e.fontSize,{type:"number",minimum:6,maximum:100,default:$e.fontSize,description:I.a("fontSize","Controls the font size in pixels.")})||this}return Te.prototype.validate=function(Ie){var pe=A.float(Ie,this.defaultValue);return pe===0?$e.fontSize:A.clamp(pe,6,100)},Te.prototype.compute=function(Ie,pe,nt){return Ie.fontInfo.fontSize},Te}(x),Z=function(ve){N(Te,ve);function Te(){var Ie=this,pe={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},nt={type:"string",enum:["peek","gotoAndPeek","goto"],default:pe.multiple,enumDescriptions:[I.a("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),I.a("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),I.a("editor.gotoLocation.multiple.goto","Go to the primary result and enable peek-less navigation to others")]};return Ie=ve.call(this,41,"gotoLocation",pe,{"editor.gotoLocation.multiple":{deprecationMessage:I.a("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":F({description:I.a("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},nt),"editor.gotoLocation.multipleTypeDefinitions":F({description:I.a("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},nt),"editor.gotoLocation.multipleDeclarations":F({description:I.a("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},nt),"editor.gotoLocation.multipleImplementations":F({description:I.a("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},nt),"editor.gotoLocation.multipleReferences":F({description:I.a("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},nt),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:pe.alternativeDefinitionCommand,description:I.a("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:pe.alternativeTypeDefinitionCommand,description:I.a("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:pe.alternativeDeclarationCommand,description:I.a("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:pe.alternativeImplementationCommand,description:I.a("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:pe.alternativeReferenceCommand,description:I.a("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})||this,Ie}return Te.prototype.validate=function(Ie){var pe,nt,Et,Rt,Tt;if(typeof Ie!="object")return this.defaultValue;var Ht=Ie;return{multiple:z.stringSet(Ht.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(pe=Ht.multipleDefinitions)!==null&&pe!==void 0?pe:z.stringSet(Ht.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(nt=Ht.multipleTypeDefinitions)!==null&&nt!==void 0?nt:z.stringSet(Ht.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(Et=Ht.multipleDeclarations)!==null&&Et!==void 0?Et:z.stringSet(Ht.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(Rt=Ht.multipleImplementations)!==null&&Rt!==void 0?Rt:z.stringSet(Ht.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(Tt=Ht.multipleReferences)!==null&&Tt!==void 0?Tt:z.stringSet(Ht.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:te.string(Ht.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:te.string(Ht.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:te.string(Ht.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:te.string(Ht.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:te.string(Ht.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}},Te}(R),ce=function(ve){N(Te,ve);function Te(){var Ie=this,pe={enabled:!0,delay:300,sticky:!0};return Ie=ve.call(this,44,"hover",pe,{"editor.hover.enabled":{type:"boolean",default:pe.enabled,description:I.a("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:pe.delay,description:I.a("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:pe.sticky,description:I.a("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")}})||this,Ie}return Te.prototype.validate=function(Ie){if(typeof Ie!="object")return this.defaultValue;var pe=Ie;return{enabled:K.boolean(pe.enabled,this.defaultValue.enabled),delay:D.clampedInt(pe.delay,this.defaultValue.delay,0,1e4),sticky:K.boolean(pe.sticky,this.defaultValue.sticky)}},Te}(R),Me=function(ve){N(Te,ve);function Te(){return ve.call(this,107,[40,48,30,54,78,50])||this}return Te.prototype.compute=function(Ie,pe,nt){return Te.computeLayout(pe,{outerWidth:Ie.outerWidth,outerHeight:Ie.outerHeight,lineHeight:Ie.fontInfo.lineHeight,lineNumbersDigitCount:Ie.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:Ie.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:Ie.fontInfo.maxDigitWidth,pixelRatio:Ie.pixelRatio})},Te.computeLayout=function(Ie,pe){var nt=pe.outerWidth|0,Et=pe.outerHeight|0,Rt=pe.lineHeight|0,Tt=pe.lineNumbersDigitCount|0,Ht=pe.typicalHalfwidthCharacterWidth,Gt=pe.maxDigitWidth,rn=pe.pixelRatio,Ln=Ie.get(40),yn=Ie.get(50).renderType!==0,Tn=Ie.get(51)|0,Ft=Ie.get(54),pt=Ft.enabled,gt=Ft.side,Dt=Ft.renderCharacters,Lt=rn>=2?Math.round(Ft.scale*2):Ft.scale,Vt=Ft.maxColumn|0,Qt=Ie.get(78),nn=Qt.verticalScrollbarSize|0,sn=Qt.verticalHasArrows,ln=Qt.arrowSize|0,En=Qt.horizontalScrollbarSize|0,On=Ie.get(48),Pn=Ie.get(30),Gn;if(typeof On=="string"&&/^\d+(\.\d+)?ch$/.test(On)){var Qn=parseFloat(On.substr(0,On.length-2));Gn=D.clampedInt(Qn*Ht,0,0,1e3)}else Gn=D.clampedInt(On,0,0,1e3);Pn&&(Gn+=16);var Jn=0;if(yn){var gi=Math.max(Tt,Tn);Jn=Math.round(gi*Gt)}var Kn=0;Ln&&(Kn=Rt);var yi=0,mi=yi+Kn,vt=mi+Jn,Mt=vt+Gn,zt=nt-Kn-Jn-Gn,tn,Ut,Sn,Rn;if(!pt)Ut=0,Sn=0,tn=0,Rn=zt;else{var Bn=Lt/rn;tn=Dt?1:2,Sn=Math.max(0,Math.floor((zt-nn-2)*Bn/(Ht+Bn)))+U;var Fn=Sn/Bn;Fn>Vt&&(Sn=Math.floor(Vt*Bn)),Rn=zt-Sn,gt==="left"?(Ut=0,yi+=Sn,mi+=Sn,vt+=Sn,Mt+=Sn):Ut=nt-Sn-nn}var ri=Math.max(1,Math.floor((Rn-nn-2)/Ht)),ci=sn?ln:0;return{width:nt,height:Et,glyphMarginLeft:yi,glyphMarginWidth:Kn,lineNumbersLeft:mi,lineNumbersWidth:Jn,decorationsLeft:vt,decorationsWidth:Gn,contentLeft:Mt,contentWidth:Rn,renderMinimap:tn,minimapLeft:Ut,minimapWidth:Sn,viewportColumn:ri,verticalScrollbarWidth:nn,horizontalScrollbarHeight:En,overviewRuler:{top:ci,width:nn,height:Et-2*ci,right:0}}},Te}(E),Ve=function(ve){N(Te,ve);function Te(){var Ie=this,pe={enabled:!0};return Ie=ve.call(this,47,"lightbulb",pe,{"editor.lightbulb.enabled":{type:"boolean",default:pe.enabled,description:I.a("codeActions","Enables the code action lightbulb in the editor.")}})||this,Ie}return Te.prototype.validate=function(Ie){if(typeof Ie!="object")return this.defaultValue;var pe=Ie;return{enabled:K.boolean(pe.enabled,this.defaultValue.enabled)}},Te}(R),_e=function(ve){N(Te,ve);function Te(){return ve.call(this,49,"lineHeight",$e.lineHeight,0,150,{description:I.a("lineHeight","Controls the line height. Use 0 to compute the line height from the font size.")})||this}return Te.prototype.compute=function(Ie,pe,nt){return Ie.fontInfo.lineHeight},Te}(D),ue=function(ve){N(Te,ve);function Te(){var Ie=this,pe={enabled:!0,side:"right",showSlider:"mouseover",renderCharacters:!0,maxColumn:120,scale:1};return Ie=ve.call(this,54,"minimap",pe,{"editor.minimap.enabled":{type:"boolean",default:pe.enabled,description:I.a("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:pe.side,description:I.a("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:pe.showSlider,description:I.a("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:pe.scale,minimum:1,maximum:3,description:I.a("minimap.scale","Scale of content drawn in the minimap.")},"editor.minimap.renderCharacters":{type:"boolean",default:pe.renderCharacters,description:I.a("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:pe.maxColumn,description:I.a("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")}})||this,Ie}return Te.prototype.validate=function(Ie){if(typeof Ie!="object")return this.defaultValue;var pe=Ie;return{enabled:K.boolean(pe.enabled,this.defaultValue.enabled),side:z.stringSet(pe.side,this.defaultValue.side,["right","left"]),showSlider:z.stringSet(pe.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:K.boolean(pe.renderCharacters,this.defaultValue.renderCharacters),scale:D.clampedInt(pe.scale,1,1,3),maxColumn:D.clampedInt(pe.maxColumn,this.defaultValue.maxColumn,1,1e4)}},Te}(R);function se(ve){return ve==="ctrlCmd"?oe.e?"metaKey":"ctrlKey":"altKey"}var fe=function(ve){N(Te,ve);function Te(){var Ie=this,pe={enabled:!0,cycle:!1};return Ie=ve.call(this,64,"parameterHints",pe,{"editor.parameterHints.enabled":{type:"boolean",default:pe.enabled,description:I.a("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:pe.cycle,description:I.a("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})||this,Ie}return Te.prototype.validate=function(Ie){if(typeof Ie!="object")return this.defaultValue;var pe=Ie;return{enabled:K.boolean(pe.enabled,this.defaultValue.enabled),cycle:K.boolean(pe.cycle,this.defaultValue.cycle)}},Te}(R),ie=function(ve){N(Te,ve);function Te(){return ve.call(this,105)||this}return Te.prototype.compute=function(Ie,pe,nt){return Ie.pixelRatio},Te}(E),J=function(ve){N(Te,ve);function Te(){var Ie=this,pe={other:!0,comments:!1,strings:!1};return Ie=ve.call(this,66,"quickSuggestions",pe,{anyOf:[{type:"boolean"},{type:"object",properties:{strings:{type:"boolean",default:pe.strings,description:I.a("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{type:"boolean",default:pe.comments,description:I.a("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{type:"boolean",default:pe.other,description:I.a("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}}}],default:pe,description:I.a("quickSuggestions","Controls whether suggestions should automatically show up while typing.")})||this,Ie.defaultValue=pe,Ie}return Te.prototype.validate=function(Ie){if(typeof Ie=="boolean")return Ie;if(typeof Ie=="object"){var pe=Ie,nt={other:K.boolean(pe.other,this.defaultValue.other),comments:K.boolean(pe.comments,this.defaultValue.comments),strings:K.boolean(pe.strings,this.defaultValue.strings)};return nt.other&&nt.comments&&nt.strings?!0:!nt.other&&!nt.comments&&!nt.strings?!1:nt}return this.defaultValue},Te}(R),me=function(ve){N(Te,ve);function Te(){return ve.call(this,50,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[I.a("lineNumbers.off","Line numbers are not rendered."),I.a("lineNumbers.on","Line numbers are rendered as absolute number."),I.a("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),I.a("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:I.a("lineNumbers","Controls the display of line numbers.")})||this}return Te.prototype.validate=function(Ie){var pe=this.defaultValue.renderType,nt=this.defaultValue.renderFn;return typeof Ie!="undefined"&&(typeof Ie=="function"?(pe=4,nt=Ie):Ie==="interval"?pe=3:Ie==="relative"?pe=2:Ie==="on"?pe=1:pe=0),{renderType:pe,renderFn:nt}},Te}(R);function ye(ve){var Te=ve.get(73);return Te==="editable"?ve.get(68):!(Te==="on")}var ze=function(ve){N(Te,ve);function Te(){var Ie=this,pe=[];return Ie=ve.call(this,77,"rulers",pe,{type:"array",items:{type:"number"},default:pe,description:I.a("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})||this,Ie}return Te.prototype.validate=function(Ie){if(Array.isArray(Ie)){for(var pe=[],nt=0,Et=Ie;nt