~ K A L I ~
UNAME : Linux web65.extendcp.co.uk 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64SERVER IP : 10.0.187.65 -________-
CLIENT IP : 216.73.216.230 MINI SHELL D ZAB '
Current File : //usr/share/maxscale/gui/js/npm.monaco-editor~58c4d15b.2688b207.js |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["npm.monaco-editor~58c4d15b"],{2422:function(e,t,i){"use strict";i.d(t,"a",(function(){return l}));var n=i("5fe7"),o=i("2504"),s=i("fdcc"),r=i("b2cc"),a=i("7340"),c=function(e,t,i,n){function o(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,s){function r(e){try{c(n.next(e))}catch(t){s(t)}}function a(e){try{c(n["throw"](e))}catch(t){s(t)}}function c(e){e.done?i(e.value):o(e.value).then(r,a)}c((n=n.apply(e,t||[])).next())}))};class d{constructor(e,t,i){this.provider=e,this.hover=t,this.ordinal=i}}function h(e,t,i,n,o){return c(this,void 0,void 0,(function*(){try{const s=yield Promise.resolve(e.provideHover(i,n,o));if(s&&g(s))return new d(e,s,t)}catch(r){Object(s["h"])(r)}}))}function l(e,t,i,o){const s=e.ordered(t),r=s.map((e,n)=>h(e,n,t,i,o));return n["a"].fromPromises(r).coalesce()}function u(e,t,i,n){return l(e,t,i,n).map(e=>e.hover).toPromise()}function g(e){const t="undefined"!==typeof e.range,i="undefined"!==typeof e.contents&&e.contents&&e.contents.length>0;return t&&i}Object(r["n"])("_executeHoverProvider",(e,t,i)=>{const n=e.get(a["a"]);return u(n.hoverProvider,t,i,o["a"].None)})},"3eb8":function(e,t,i){"use strict";i.r(t);var n=i("5fe7"),o=i("fdcc"),s=i("f3b1"),r=i("b2cc"),a=i("6a89"),c=i("8025"),d=i("c101"),h=i("b57f"),l=i("09db"),u=i("dc81"),g=i("dff7"),p=i("b7d0");class _{constructor(e,t,i){this._editRange=e,this._originalSelection=t,this._text=i}getEditOperations(e,t){t.addTrackedEditOperation(this._editRange,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations(),n=i[0].range;return this._originalSelection.isEmpty()?new c["a"](n.endLineNumber,Math.min(this._originalSelection.positionColumn,n.endColumn),n.endLineNumber,Math.min(this._originalSelection.positionColumn,n.endColumn)):new c["a"](n.endLineNumber,n.endColumn-this._text.length,n.endLineNumber,n.endColumn)}}var f=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},m=function(e,t){return function(i,n){t(i,n,e)}};let v=class e{constructor(e,t){this.decorationIds=[],this.editor=e,this.editorWorkerService=t}static get(t){return t.getContribution(e.ID)}dispose(){}run(t,i){this.currentRequest&&this.currentRequest.cancel();const r=this.editor.getSelection(),d=this.editor.getModel();if(!d||!r)return;let h=r;if(h.startLineNumber!==h.endLineNumber)return;const l=new s["a"](this.editor,5),u=d.uri;return this.editorWorkerService.canNavigateValueSet(u)?(this.currentRequest=Object(n["l"])(e=>this.editorWorkerService.navigateValueSet(u,h,i)),this.currentRequest.then(i=>{if(!i||!i.range||!i.value)return;if(!l.validate(this.editor))return;let s=a["a"].lift(i.range),r=i.range,d=i.value.length-(h.endColumn-h.startColumn);r={startLineNumber:r.startLineNumber,startColumn:r.startColumn,endLineNumber:r.endLineNumber,endColumn:r.startColumn+i.value.length},d>1&&(h=new c["a"](h.startLineNumber,h.startColumn,h.endLineNumber,h.endColumn+d-1));const u=new _(s,h,i.value);this.editor.pushUndoStop(),this.editor.executeCommand(t,u),this.editor.pushUndoStop(),this.decorationIds=this.editor.deltaDecorations(this.decorationIds,[{range:r,options:e.DECORATION}]),this.decorationRemover&&this.decorationRemover.cancel(),this.decorationRemover=Object(n["r"])(350),this.decorationRemover.then(()=>this.decorationIds=this.editor.deltaDecorations(this.decorationIds,[])).catch(o["g"])}).catch(o["g"])):Promise.resolve(void 0)}};v.ID="editor.contrib.inPlaceReplaceController",v.DECORATION=h["b"].register({description:"in-place-replace",className:"valueSetReplacement"}),v=f([m(1,l["a"])],v);class b extends r["b"]{constructor(){super({id:"editor.action.inPlaceReplace.up",label:g["a"]("InPlaceReplaceAction.previous.label","Replace with Previous Value"),alias:"Replace with Previous Value",precondition:d["a"].writable,kbOpts:{kbExpr:d["a"].editorTextFocus,primary:3154,weight:100}})}run(e,t){const i=v.get(t);return i?i.run(this.id,!0):Promise.resolve(void 0)}}class y extends r["b"]{constructor(){super({id:"editor.action.inPlaceReplace.down",label:g["a"]("InPlaceReplaceAction.next.label","Replace with Next Value"),alias:"Replace with Next Value",precondition:d["a"].writable,kbOpts:{kbExpr:d["a"].editorTextFocus,primary:3156,weight:100}})}run(e,t){const i=v.get(t);return i?i.run(this.id,!1):Promise.resolve(void 0)}}Object(r["l"])(v.ID,v),Object(r["j"])(b),Object(r["j"])(y),Object(p["f"])((e,t)=>{const i=e.getColor(u["k"]);i&&t.addRule(`.monaco-editor.vs .valueSetReplacement { outline: solid 2px ${i}; }`)})},"3ff7":function(e,t,i){"use strict";i.r(t),i.d(t,"ModesHoverController",(function(){return he}));var n=i("fe45"),o=i("a666"),s=i("b2cc"),r=i("6a89"),a=i("c101"),c=i("0867"),d=i("85c0"),h=i("11f7"),l=i("c01d"),u=i("e8e3"),g=i("7061"),p=i("b57f"),_=i("2e5a"),f=i("5fe7"),m=i("fdcc"),v=i("308f"),b=function(e,t,i,n){function o(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,s){function r(e){try{c(n.next(e))}catch(t){s(t)}}function a(e){try{c(n["throw"](e))}catch(t){s(t)}}function c(e){e.done?i(e.value):o(e.value).then(r,a)}c((n=n.apply(e,t||[])).next())}))},y=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,i=e[Symbol.asyncIterator];return i?i.call(e):(e="function"===typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(i){t[i]=e[i]&&function(t){return new Promise((function(n,s){t=e[i](t),o(n,s,t.done,t.value)}))}}function o(e,t,i,n){Promise.resolve(n).then((function(t){e({value:t,done:i})}),t)}};class C{constructor(e,t,i){this.value=e,this.isComplete=t,this.hasLoadingMessage=i}}class w extends o["a"]{constructor(e,t){super(),this._editor=e,this._computer=t,this._onResult=this._register(new v["b"]),this.onResult=this._onResult.event,this._firstWaitScheduler=this._register(new f["h"](()=>this._triggerAsyncComputation(),0)),this._secondWaitScheduler=this._register(new f["h"](()=>this._triggerSyncComputation(),0)),this._loadingMessageScheduler=this._register(new f["h"](()=>this._triggerLoadingMessage(),0)),this._state=0,this._asyncIterable=null,this._asyncIterableDone=!1,this._result=[]}dispose(){this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),super.dispose()}get _hoverTime(){return this._editor.getOption(53).delay}get _firstWaitTime(){return this._hoverTime/2}get _secondWaitTime(){return this._hoverTime-this._firstWaitTime}get _loadingMessageTime(){return 3*this._hoverTime}_setState(e,t=!0){this._state=e,t&&this._fireResult()}_triggerAsyncComputation(){this._setState(2),this._secondWaitScheduler.schedule(this._secondWaitTime),this._computer.computeAsync?(this._asyncIterableDone=!1,this._asyncIterable=Object(f["k"])(e=>this._computer.computeAsync(e)),(()=>{b(this,void 0,void 0,(function*(){var e,t;try{try{for(var i,n=y(this._asyncIterable);i=yield n.next(),!i.done;){const e=i.value;e&&(this._result.push(e),this._fireResult())}}catch(o){e={error:o}}finally{try{i&&!i.done&&(t=n.return)&&(yield t.call(n))}finally{if(e)throw e.error}}this._asyncIterableDone=!0,3!==this._state&&4!==this._state||this._setState(0)}catch(s){Object(m["g"])(s)}}))})()):this._asyncIterableDone=!0}_triggerSyncComputation(){this._computer.computeSync&&(this._result=this._result.concat(this._computer.computeSync())),this._setState(this._asyncIterableDone?0:3)}_triggerLoadingMessage(){3===this._state&&this._setState(4)}_fireResult(){if(1===this._state||2===this._state)return;const e=0===this._state,t=4===this._state;this._onResult.fire(new C(this._result.slice(0),e,t))}start(e){if(0===e)0===this._state&&(this._setState(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}}cancel(){this._firstWaitScheduler.cancel(),this._secondWaitScheduler.cancel(),this._loadingMessageScheduler.cancel(),this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),this._result=[],this._setState(0,!1)}}var S=i("fd9b"),D=i("4fc3"),I=i("0a0f"),O=i("6dec"),k=i("4ef0"),x=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},M=function(e,t){return function(i,n){t(i,n,e)}};const L=h["a"];let R=class e extends o["a"]{constructor(e,t,i){super(),this._editor=e,this._instantiationService=t,this._keybindingService=i,this._widget=this._register(this._instantiationService.createInstance(A,this._editor)),this._decorationsChangerListener=this._register(new N(this._editor)),this._messages=[],this._messagesAreComplete=!1,this._participants=[];for(const n of S["b"].getAll())this._participants.push(this._instantiationService.createInstance(n,this._editor));this._participants.sort((e,t)=>e.hoverOrdinal-t.hoverOrdinal),this._computer=new T(this._editor,this._participants),this._hoverOperation=this._register(new w(this._editor,this._computer)),this._register(this._hoverOperation.onResult(e=>{this._withResult(e.value,e.isComplete,e.hasLoadingMessage)})),this._register(this._decorationsChangerListener.onDidChangeModelDecorations(()=>this._onModelDecorationsChanged())),this._register(h["o"](this._widget.getDomNode(),"keydown",e=>{e.equals(9)&&this.hide()})),this._register(_["l"].onDidChange(()=>{this._widget.position&&this._computer.anchor&&this._messages.length>0&&(this._widget.clear(),this._renderMessages(this._computer.anchor,this._messages))}))}_onModelDecorationsChanged(){this._widget.position&&(this._hoverOperation.cancel(),this._widget.isColorPickerVisible||this._hoverOperation.start(0))}maybeShowAt(e){const t=[];for(const n of this._participants)if(n.suggestHoverAnchor){const i=n.suggestHoverAnchor(e);i&&t.push(i)}const i=e.target;if(6===i.type&&t.push(new S["c"](0,i.range)),7===i.type){const e=this._editor.getOption(44).typicalHalfwidthCharacterWidth/2;!i.detail.isAfterLines&&"number"===typeof i.detail.horizontalDistanceToText&&i.detail.horizontalDistanceToText<e&&t.push(new S["c"](0,i.range))}return 0!==t.length&&(t.sort((e,t)=>t.priority-e.priority),this._startShowingAt(t[0],0,!1),!0)}startShowingAtRange(e,t,i){this._startShowingAt(new S["c"](0,e),t,i)}_startShowingAt(e,t,i){if(!this._computer.anchor||!this._computer.anchor.equals(e)){if(this._hoverOperation.cancel(),this._widget.position)if(this._computer.anchor&&e.canAdoptVisibleHover(this._computer.anchor,this._widget.position)){const t=this._messages.filter(t=>t.isValidForHoverAnchor(e));if(0===t.length)this.hide();else{if(t.length===this._messages.length&&this._messagesAreComplete)return;this._renderMessages(e,t)}}else this.hide();this._computer.anchor=e,this._computer.shouldFocus=i,this._hoverOperation.start(t)}}hide(){this._computer.anchor=null,this._hoverOperation.cancel(),this._widget.hide()}isColorPickerVisible(){return this._widget.isColorPickerVisible}_addLoadingMessage(e){if(this._computer.anchor)for(const t of this._participants)if(t.createLoadingMessage){const i=t.createLoadingMessage(this._computer.anchor);if(i)return e.slice(0).concat([i])}return e}_withResult(e,t,i){this._messages=i?this._addLoadingMessage(e):e,this._messagesAreComplete=t,this._computer.anchor&&this._messages.length>0?this._renderMessages(this._computer.anchor,this._messages):t&&this.hide()}_renderMessages(t,i){let n=1073741824,s=i[0].range,a=null;for(const e of i)n=Math.min(n,e.range.startColumn),s=r["a"].plusRange(s,e.range),e.forceShowAtRange&&(a=e.range);const c=new o["b"],d=c.add(new j(this._keybindingService)),h=document.createDocumentFragment();let l=null;const u={fragment:h,statusBar:d,setColorPicker:e=>l=e,onContentsChanged:()=>this._widget.onContentsChanged(),hide:()=>this.hide()};for(const e of this._participants){const t=i.filter(t=>t.owner===e);t.length>0&&c.add(e.renderHoverParts(u,t))}if(d.hasContent&&h.appendChild(d.hoverElement),h.hasChildNodes()){if(s){const t=this._decorationsChangerListener.deltaDecorations([],[{range:s,options:e._DECORATION_OPTIONS}]);c.add(Object(o["j"])(()=>{this._decorationsChangerListener.deltaDecorations(t,[])}))}this._widget.showAt(h,new P(l,a?a.getStartPosition():new g["a"](t.range.startLineNumber,n),a||s,this._editor.getOption(53).above,this._computer.shouldFocus,c))}else c.dispose()}};R._DECORATION_OPTIONS=p["b"].register({description:"content-hover-highlight",className:"hoverHighlight"}),R=x([M(1,I["a"]),M(2,O["a"])],R);class N extends o["a"]{constructor(e){super(),this._editor=e,this._onDidChangeModelDecorations=this._register(new v["b"]),this.onDidChangeModelDecorations=this._onDidChangeModelDecorations.event,this._isChangingDecorations=!1,this._register(this._editor.onDidChangeModelDecorations(e=>{this._isChangingDecorations||this._onDidChangeModelDecorations.fire(e)}))}deltaDecorations(e,t){try{return this._isChangingDecorations=!0,this._editor.deltaDecorations(e,t)}finally{this._isChangingDecorations=!1}}}class P{constructor(e,t,i,n,o,s){this.colorPicker=e,this.showAtPosition=t,this.showAtRange=i,this.preferAbove=n,this.stoleFocus=o,this.disposables=s}}let A=class e extends o["a"]{constructor(e,t){super(),this._editor=e,this._contextKeyService=t,this.allowEditorOverflow=!0,this._hoverVisibleKey=a["a"].hoverVisible.bindTo(this._contextKeyService),this._hover=this._register(new l["b"]),this._visibleData=null,this._register(this._editor.onDidLayoutChange(()=>this._layout())),this._register(this._editor.onDidChangeConfiguration(e=>{e.hasChanged(44)&&this._updateFont()})),this._setVisibleData(null),this._layout(),this._editor.addContentWidget(this)}get position(){var e,t;return null!==(t=null===(e=this._visibleData)||void 0===e?void 0:e.showAtPosition)&&void 0!==t?t:null}get isColorPickerVisible(){var e;return Boolean(null===(e=this._visibleData)||void 0===e?void 0:e.colorPicker)}dispose(){this._editor.removeContentWidget(this),this._visibleData&&this._visibleData.disposables.dispose(),super.dispose()}getId(){return e.ID}getDomNode(){return this._hover.containerDomNode}getPosition(){if(!this._visibleData)return null;let e=this._visibleData.preferAbove;return!e&&this._contextKeyService.getContextKeyValue(k["b"].Visible.key)&&(e=!0),{position:this._visibleData.showAtPosition,range:this._visibleData.showAtRange,preference:e?[1,2]:[2,1]}}_setVisibleData(e){this._visibleData&&this._visibleData.disposables.dispose(),this._visibleData=e,this._hoverVisibleKey.set(!!this._visibleData),this._hover.containerDomNode.classList.toggle("hidden",!this._visibleData)}_layout(){const e=Math.max(this._editor.getLayoutInfo().height/4,250),{fontSize:t,lineHeight:i}=this._editor.getOption(44);this._hover.contentsDomNode.style.fontSize=t+"px",this._hover.contentsDomNode.style.lineHeight=""+i/t,this._hover.contentsDomNode.style.maxHeight=e+"px",this._hover.contentsDomNode.style.maxWidth=Math.max(.66*this._editor.getLayoutInfo().width,500)+"px"}_updateFont(){const e=Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code"));e.forEach(e=>this._editor.applyFontInfo(e))}showAt(e,t){this._setVisibleData(t),this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this._hover.contentsDomNode.style.paddingBottom="",this._updateFont(),this._editor.layoutContentWidget(this),this.onContentsChanged(),this._editor.render(),this._editor.layoutContentWidget(this),this.onContentsChanged(),t.stoleFocus&&this._hover.containerDomNode.focus(),t.colorPicker&&t.colorPicker.layout()}hide(){if(this._visibleData){const e=this._visibleData.stoleFocus;this._setVisibleData(null),this._editor.layoutContentWidget(this),e&&this._editor.focus()}}onContentsChanged(){this._hover.onContentsChanged();const e=this._hover.scrollbar.getScrollDimensions(),t=e.scrollWidth>e.width;if(t){const e=this._hover.scrollbar.options.horizontalScrollbarSize+"px";this._hover.contentsDomNode.style.paddingBottom!==e&&(this._hover.contentsDomNode.style.paddingBottom=e,this._editor.layoutContentWidget(this),this._hover.onContentsChanged())}}clear(){this._hover.contentsDomNode.textContent=""}};A.ID="editor.contrib.contentHoverWidget",A=x([M(1,D["b"])],A);let j=class extends o["a"]{constructor(e){super(),this._keybindingService=e,this._hasContent=!1,this.hoverElement=L("div.hover-row.status-bar"),this.actionsElement=h["q"](this.hoverElement,L("div.actions"))}get hasContent(){return this._hasContent}addAction(e){const t=this._keybindingService.lookupKeybinding(e.commandId),i=t?t.getLabel():null;return this._hasContent=!0,this._register(l["a"].render(this.actionsElement,e,i))}append(e){const t=h["q"](this.actionsElement,e);return this._hasContent=!0,t}};j=x([M(0,O["a"])],j);class T{constructor(e,t){this._editor=e,this._participants=t,this._anchor=null,this._shouldFocus=!1}get anchor(){return this._anchor}set anchor(e){this._anchor=e}get shouldFocus(){return this._shouldFocus}set shouldFocus(e){this._shouldFocus=e}static _getLineDecorations(e,t){if(1!==t.type)return[];const i=e.getModel(),n=t.range.startLineNumber,o=i.getLineMaxColumn(n);return e.getLineDecorations(n).filter(e=>{if(e.options.isWholeLine)return!0;const i=e.range.startLineNumber===n?e.range.startColumn:1,s=e.range.endLineNumber===n?e.range.endColumn:o;if(e.options.showIfCollapsed){if(i>t.range.startColumn+1||t.range.endColumn-1>s)return!1}else if(i>t.range.startColumn||t.range.endColumn>s)return!1;return!0})}computeAsync(e){const t=this._anchor;if(!this._editor.hasModel()||!t)return f["a"].EMPTY;const i=T._getLineDecorations(this._editor,t);return f["a"].merge(this._participants.map(n=>n.computeAsync?n.computeAsync(t,i,e):f["a"].EMPTY))}computeSync(){if(!this._editor.hasModel()||!this._anchor)return[];const e=T._getLineDecorations(this._editor,this._anchor);let t=[];for(const i of this._participants)t=t.concat(i.computeSync(this._anchor,e));return Object(u["e"])(t)}}var H=i("78bc"),E=i("85c1"),F=i("5bd7");const W=h["a"];class V extends o["a"]{constructor(e,t,i=F["b"]){super(),this._renderDisposeables=this._register(new o["b"]),this._editor=e,this._isVisible=!1,this._messages=[],this._hover=this._register(new l["b"]),this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible),this._markdownRenderer=this._register(new E["a"]({editor:this._editor},t,i)),this._computer=new U(this._editor),this._hoverOperation=this._register(new w(this._editor,this._computer)),this._register(this._hoverOperation.onResult(e=>{this._withResult(e.value)})),this._register(this._editor.onDidChangeModelDecorations(()=>this._onModelDecorationsChanged())),this._register(this._editor.onDidChangeConfiguration(e=>{e.hasChanged(44)&&this._updateFont()})),this._editor.addOverlayWidget(this)}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return V.ID}getDomNode(){return this._hover.containerDomNode}getPosition(){return null}_updateFont(){const e=Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code"));e.forEach(e=>this._editor.applyFontInfo(e))}_onModelDecorationsChanged(){this._isVisible&&(this._hoverOperation.cancel(),this._hoverOperation.start(0))}startShowingAt(e){this._computer.lineNumber!==e&&(this._hoverOperation.cancel(),this.hide(),this._computer.lineNumber=e,this._hoverOperation.start(0))}hide(){this._computer.lineNumber=-1,this._hoverOperation.cancel(),this._isVisible&&(this._isVisible=!1,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible))}_withResult(e){this._messages=e,this._messages.length>0?this._renderMessages(this._computer.lineNumber,this._messages):this.hide()}_renderMessages(e,t){this._renderDisposeables.clear();const i=document.createDocumentFragment();for(const n of t){const e=W("div.hover-row.markdown-hover"),t=h["q"](e,W("div.hover-contents")),o=this._renderDisposeables.add(this._markdownRenderer.render(n.value));t.appendChild(o.element),i.appendChild(e)}this._updateContents(i),this._showAt(e)}_updateContents(e){this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this._updateFont()}_showAt(e){this._isVisible||(this._isVisible=!0,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible));const t=this._editor.getLayoutInfo(),i=this._editor.getTopForLineNumber(e),n=this._editor.getScrollTop(),o=this._editor.getOption(59),s=this._hover.containerDomNode.clientHeight,r=i-n-(s-o)/2;this._hover.containerDomNode.style.left=t.glyphMarginLeft+t.glyphMarginWidth+"px",this._hover.containerDomNode.style.top=Math.max(Math.round(r),0)+"px"}}V.ID="editor.contrib.modesGlyphHoverWidget";class U{constructor(e){this._editor=e,this._lineNumber=-1}get lineNumber(){return this._lineNumber}set lineNumber(e){this._lineNumber=e}computeSync(){const e=e=>({value:e}),t=this._editor.getLineDecorations(this._lineNumber),i=[];if(!t)return i;for(const n of t){if(!n.options.glyphMarginClassName)continue;const t=n.options.glyphMarginHoverMessage;t&&!Object(H["b"])(t)&&i.push(...Object(u["c"])(t).map(e))}return i}}var $=i("dff7"),z=i("303e"),q=i("b7d0"),K=i("ba08"),B=i("82c9"),G=i("7908"),Y=i("9603"),Q=i("46ae"),J=i("2a96"),X=i("68de"),Z=i("b400"),ee=i("b539"),te=i("7340"),ie=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},ne=function(e,t){return function(i,n){t(i,n,e)}};const oe=h["a"];class se{constructor(e,t,i){this.owner=e,this.range=t,this.marker=i}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}const re={type:1,filter:{include:J["b"].QuickFix}};let ae=class{constructor(e,t,i,n){this._editor=e,this._markerDecorationsService=t,this._openerService=i,this._languageFeaturesService=n,this.hoverOrdinal=5,this.recentMarkerCodeActionsInfo=void 0}computeSync(e,t){if(!this._editor.hasModel()||1!==e.type)return[];const i=this._editor.getModel(),n=e.range.startLineNumber,o=i.getLineMaxColumn(n),s=[];for(const a of t){const t=a.range.startLineNumber===n?a.range.startColumn:1,c=a.range.endLineNumber===n?a.range.endColumn:o,d=this._markerDecorationsService.getMarker(i.uri,a);if(!d)continue;const h=new r["a"](e.range.startLineNumber,t,e.range.startLineNumber,c);s.push(new se(this,h,d))}return s}renderHoverParts(e,t){if(!t.length)return o["a"].None;const i=new o["b"];t.forEach(t=>e.fragment.appendChild(this.renderMarkerHover(t,i)));const n=1===t.length?t[0]:t.sort((e,t)=>Z["c"].compare(e.marker.severity,t.marker.severity))[0];return this.renderMarkerStatusbar(e,n,i),i}renderMarkerHover(e,t){const i=oe("div.hover-row"),n=h["q"](i,oe("div.marker.hover-contents")),{source:o,message:s,code:r,relatedInformation:a}=e.marker;this._editor.applyFontInfo(n);const c=h["q"](n,oe("span"));if(c.style.whiteSpace="pre-wrap",c.innerText=s,o||r)if(r&&"string"!==typeof r){const e=oe("span");if(o){const t=h["q"](e,oe("span"));t.innerText=o}const i=h["q"](e,oe("a.code-link"));i.setAttribute("href",r.target.toString()),t.add(h["i"](i,"click",e=>{this._openerService.open(r.target,{allowCommands:!0}),e.preventDefault(),e.stopPropagation()}));const s=h["q"](i,oe("span"));s.innerText=r.value;const a=h["q"](n,e);a.style.opacity="0.6",a.style.paddingLeft="6px"}else{const e=h["q"](n,oe("span"));e.style.opacity="0.6",e.style.paddingLeft="6px",e.innerText=o&&r?`${o}(${r})`:o||`(${r})`}if(Object(u["r"])(a))for(const{message:d,resource:l,startLineNumber:u,startColumn:g}of a){const e=h["q"](n,oe("div"));e.style.marginTop="8px";const i=h["q"](e,oe("a"));i.innerText=`${Object(B["b"])(l)}(${u}, ${g}): `,i.style.cursor="pointer",t.add(h["i"](i,"click",e=>{e.stopPropagation(),e.preventDefault(),this._openerService&&this._openerService.open(l,{fromUserGesture:!0,editorOptions:{selection:{startLineNumber:u,startColumn:g}}}).catch(m["g"])}));const o=h["q"](e,oe("span"));o.innerText=d,this._editor.applyFontInfo(o)}return i}renderMarkerStatusbar(e,t,i){if(t.marker.severity!==Z["c"].Error&&t.marker.severity!==Z["c"].Warning&&t.marker.severity!==Z["c"].Info||e.statusBar.addAction({label:$["a"]("view problem","View Problem"),commandId:X["NextMarkerAction"].ID,run:()=>{var i;e.hide(),null===(i=X["MarkerController"].get(this._editor))||void 0===i||i.showAtMarker(t.marker),this._editor.focus()}}),!this._editor.getOption(81)){const n=e.statusBar.append(oe("div"));this.recentMarkerCodeActionsInfo&&(Z["a"].makeKey(this.recentMarkerCodeActionsInfo.marker)===Z["a"].makeKey(t.marker)?this.recentMarkerCodeActionsInfo.hasCodeActions||(n.textContent=$["a"]("noQuickFixes","No quick fixes available")):this.recentMarkerCodeActionsInfo=void 0);const s=this.recentMarkerCodeActionsInfo&&!this.recentMarkerCodeActionsInfo.hasCodeActions?o["a"].None:i.add(Object(f["m"])(()=>n.textContent=$["a"]("checkingForQuickFixes","Checking for quick fixes..."),200));n.textContent||(n.textContent=String.fromCharCode(160));const r=this.getCodeActions(t.marker);i.add(Object(o["j"])(()=>r.cancel())),r.then(r=>{if(s.dispose(),this.recentMarkerCodeActionsInfo={marker:t.marker,hasCodeActions:r.validActions.length>0},!this.recentMarkerCodeActionsInfo.hasCodeActions)return r.dispose(),void(n.textContent=$["a"]("noQuickFixes","No quick fixes available"));n.style.display="none";let a=!1;i.add(Object(o["j"])(()=>{a||r.dispose()})),e.statusBar.addAction({label:$["a"]("quick fixes","Quick Fix..."),commandId:Q["e"].Id,run:t=>{a=!0;const i=Q["f"].get(this._editor),n=h["E"](t);e.hide(),null===i||void 0===i||i.showCodeActions(re,r,{x:n.left+6,y:n.top+n.height+6})}})},m["g"])}}getCodeActions(e){return Object(f["l"])(t=>Object(Y["d"])(this._languageFeaturesService.codeActionProvider,this._editor.getModel(),new r["a"](e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),re,ee["b"].None,t))}};ae=ie([ne(1,G["a"]),ne(2,F["a"]),ne(3,te["a"])],ae),Object(q["f"])((e,t)=>{const i=e.getColor(z["Tc"]);i&&t.addRule(`.monaco-hover .hover-contents a.code-link span { color: ${i}; }`);const n=e.getColor(z["Sc"]);n&&t.addRule(`.monaco-hover .hover-contents a.code-link span:hover { color: ${n}; }`)});var ce=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},de=function(e,t){return function(i,n){t(i,n,e)}};let he=class e{constructor(e,t,i,n,s){this._editor=e,this._instantiationService=t,this._openerService=i,this._languageService=n,this._toUnhook=new o["b"],this._isMouseDown=!1,this._hoverClicked=!1,this._contentWidget=null,this._glyphWidget=null,this._hookEvents(),this._didChangeConfigurationHandler=this._editor.onDidChangeConfiguration(e=>{e.hasChanged(53)&&(this._unhookEvents(),this._hookEvents())})}static get(t){return t.getContribution(e.ID)}_hookEvents(){const e=()=>this._hideWidgets(),t=this._editor.getOption(53);this._isHoverEnabled=t.enabled,this._isHoverSticky=t.sticky,this._isHoverEnabled?(this._toUnhook.add(this._editor.onMouseDown(e=>this._onEditorMouseDown(e))),this._toUnhook.add(this._editor.onMouseUp(e=>this._onEditorMouseUp(e))),this._toUnhook.add(this._editor.onMouseMove(e=>this._onEditorMouseMove(e))),this._toUnhook.add(this._editor.onKeyDown(e=>this._onKeyDown(e)))):(this._toUnhook.add(this._editor.onMouseMove(e=>this._onEditorMouseMove(e))),this._toUnhook.add(this._editor.onKeyDown(e=>this._onKeyDown(e)))),this._toUnhook.add(this._editor.onMouseLeave(e)),this._toUnhook.add(this._editor.onDidChangeModel(e)),this._toUnhook.add(this._editor.onDidScrollChange(e=>this._onEditorScrollChanged(e)))}_unhookEvents(){this._toUnhook.clear()}_onEditorScrollChanged(e){(e.scrollTopChanged||e.scrollLeftChanged)&&this._hideWidgets()}_onEditorMouseDown(e){this._isMouseDown=!0;const t=e.target;9!==t.type||t.detail!==A.ID?12===t.type&&t.detail===V.ID||(12!==t.type&&(this._hoverClicked=!1),this._hideWidgets()):this._hoverClicked=!0}_onEditorMouseUp(e){this._isMouseDown=!1}_onEditorMouseMove(e){var t,i,n,o,s;const r=e.target;if(this._isMouseDown&&this._hoverClicked)return;if(this._isHoverSticky&&9===r.type&&r.detail===A.ID)return;if(this._isHoverSticky&&!(null===(i=null===(t=e.event.browserEvent.view)||void 0===t?void 0:t.getSelection())||void 0===i?void 0:i.isCollapsed))return;if(!this._isHoverSticky&&9===r.type&&r.detail===A.ID&&(null===(n=this._contentWidget)||void 0===n?void 0:n.isColorPickerVisible()))return;if(this._isHoverSticky&&12===r.type&&r.detail===V.ID)return;if(!this._isHoverEnabled)return void this._hideWidgets();const a=this._getOrCreateContentWidget();if(!a.maybeShowAt(e))return 2===r.type&&r.position?(null===(s=this._contentWidget)||void 0===s||s.hide(),this._glyphWidget||(this._glyphWidget=new V(this._editor,this._languageService,this._openerService)),void this._glyphWidget.startShowingAt(r.position.lineNumber)):void this._hideWidgets();null===(o=this._glyphWidget)||void 0===o||o.hide()}_onKeyDown(e){5!==e.keyCode&&6!==e.keyCode&&57!==e.keyCode&&4!==e.keyCode&&this._hideWidgets()}_hideWidgets(){var e,t,i;this._isMouseDown&&this._hoverClicked&&(null===(e=this._contentWidget)||void 0===e?void 0:e.isColorPickerVisible())||(this._hoverClicked=!1,null===(t=this._glyphWidget)||void 0===t||t.hide(),null===(i=this._contentWidget)||void 0===i||i.hide())}_getOrCreateContentWidget(){return this._contentWidget||(this._contentWidget=this._instantiationService.createInstance(R,this._editor)),this._contentWidget}isColorPickerVisible(){var e;return(null===(e=this._contentWidget)||void 0===e?void 0:e.isColorPickerVisible())||!1}showContentHover(e,t,i){this._getOrCreateContentWidget().startShowingAtRange(e,t,i)}dispose(){var e,t;this._unhookEvents(),this._toUnhook.dispose(),this._didChangeConfigurationHandler.dispose(),null===(e=this._glyphWidget)||void 0===e||e.dispose(),null===(t=this._contentWidget)||void 0===t||t.dispose()}};he.ID="editor.contrib.hover",he=ce([de(1,I["a"]),de(2,F["a"]),de(3,c["a"]),de(4,D["b"])],he);class le extends s["b"]{constructor(){super({id:"editor.action.showHover",label:$["a"]({key:"showHover",comment:["Label for action that will trigger the showing of a hover in the editor.","This allows for users to show the hover without using the mouse."]},"Show Hover"),alias:"Show Hover",precondition:void 0,kbOpts:{kbExpr:a["a"].editorTextFocus,primary:Object(n["c"])(2089,2087),weight:100}})}run(e,t){if(!t.hasModel())return;let i=he.get(t);if(!i)return;const n=t.getPosition(),o=new r["a"](n.lineNumber,n.column,n.lineNumber,n.column),s=2===t.getOption(2);i.showContentHover(o,1,s)}}class ue extends s["b"]{constructor(){super({id:"editor.action.showDefinitionPreviewHover",label:$["a"]({key:"showDefinitionPreviewHover",comment:["Label for action that will trigger the showing of definition preview hover in the editor.","This allows for users to show the definition preview hover without using the mouse."]},"Show Definition Preview Hover"),alias:"Show Definition Preview Hover",precondition:void 0})}run(e,t){const i=he.get(t);if(!i)return;const n=t.getPosition();if(!n)return;const o=new r["a"](n.lineNumber,n.column,n.lineNumber,n.column),s=d["GotoDefinitionAtPositionEditorContribution"].get(t);if(!s)return;const a=s.startFindDefinitionFromCursor(n);a.then(()=>{i.showContentHover(o,1,!0)})}}Object(s["l"])(he.ID,he),Object(s["j"])(le),Object(s["j"])(ue),S["b"].register(K["b"]),S["b"].register(ae),Object(q["f"])((e,t)=>{const i=e.getColor(z["O"]);i&&t.addRule(`.monaco-editor .hoverHighlight { background-color: ${i}; }`);const n=e.getColor(z["L"]);n&&t.addRule(`.monaco-editor .monaco-hover { background-color: ${n}; }`);const o=e.getColor(z["M"]);o&&(t.addRule(`.monaco-editor .monaco-hover { border: 1px solid ${o}; }`),t.addRule(`.monaco-editor .monaco-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${o.transparent(.5)}; }`),t.addRule(`.monaco-editor .monaco-hover hr { border-top: 1px solid ${o.transparent(.5)}; }`),t.addRule(`.monaco-editor .monaco-hover hr { border-bottom: 0px solid ${o.transparent(.5)}; }`));const s=e.getColor(z["Tc"]);s&&t.addRule(`.monaco-editor .monaco-hover a { color: ${s}; }`);const r=e.getColor(z["Sc"]);r&&t.addRule(`.monaco-editor .monaco-hover a:hover { color: ${r}; }`);const a=e.getColor(z["N"]);a&&t.addRule(`.monaco-editor .monaco-hover { color: ${a}; }`);const c=e.getColor(z["P"]);c&&t.addRule(`.monaco-editor .monaco-hover .hover-row .actions { background-color: ${c}; }`);const d=e.getColor(z["Rc"]);d&&t.addRule(`.monaco-editor .monaco-hover code { background-color: ${d}; }`)})},"6c38":function(e,t,i){"use strict";i.r(t);var n=i("b2cc"),o=i("fd9b"),s=i("5fe7"),r=i("2504"),a=i("fdcc"),c=i("a666"),d=i("4035"),h=i("ef8e"),l=i("6d8e"),u=i("411b"),g=i("fd49"),p=i("6a89"),_=i("2e5a"),f=i("3352"),m=i("b57f"),v=i("e971"),b=i("7340"),y=i("b78f"),C=i("3799"),w=i("7061"),S=i("b589"),D=function(e,t,i,n){function o(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,s){function r(e){try{c(n.next(e))}catch(t){s(t)}}function a(e){try{c(n["throw"](e))}catch(t){s(t)}}function c(e){e.done?i(e.value):o(e.value).then(r,a)}c((n=n.apply(e,t||[])).next())}))};class I{constructor(e,t){this.range=e,this.direction=t}}class O{constructor(e,t,i){this.hint=e,this.anchor=t,this.provider=i,this._isResolved=!1}with(e){const t=new O(this.hint,e.anchor,this.provider);return t._isResolved=this._isResolved,t._currentResolve=this._currentResolve,t}resolve(e){return D(this,void 0,void 0,(function*(){if("function"===typeof this.provider.resolveInlayHint){if(this._currentResolve){if(yield this._currentResolve,e.isCancellationRequested)return;return this.resolve(e)}this._isResolved||(this._currentResolve=this._doResolve(e).finally(()=>this._currentResolve=void 0)),yield this._currentResolve}}))}_doResolve(e){var t,i;return D(this,void 0,void 0,(function*(){try{const n=yield Promise.resolve(this.provider.resolveInlayHint(this.hint,e));this.hint.tooltip=null!==(t=null===n||void 0===n?void 0:n.tooltip)&&void 0!==t?t:this.hint.tooltip,this.hint.label=null!==(i=null===n||void 0===n?void 0:n.label)&&void 0!==i?i:this.hint.label,this._isResolved=!0}catch(n){Object(a["h"])(n),this._isResolved=!1}}))}}class k{constructor(e,t,i){this._disposables=new c["b"],this.ranges=e,this.provider=new Set;const n=[];for(const[o,s]of t){this._disposables.add(o),this.provider.add(s);for(const e of o.hints){let t=i.validatePosition(e.position),o="before";const r=k._getRangeAtPosition(i,t);let a;r.getStartPosition().isBefore(t)?(a=p["a"].fromPositions(r.getStartPosition(),t),o="after"):(a=p["a"].fromPositions(t,r.getEndPosition()),o="before"),n.push(new O(e,new I(a,o),s))}}this.items=n.sort((e,t)=>w["a"].compare(e.hint.position,t.hint.position))}static create(e,t,i,n){return D(this,void 0,void 0,(function*(){const o=[],s=e.ordered(t).reverse().map(e=>i.map(i=>D(this,void 0,void 0,(function*(){try{const s=yield e.provideInlayHints(t,i,n);(null===s||void 0===s?void 0:s.hints.length)&&o.push([s,e])}catch(s){Object(a["h"])(s)}}))));if(yield Promise.all(s.flat()),n.isCancellationRequested||t.isDisposed())throw new a["a"];return new k(i,o,t)}))}dispose(){this._disposables.dispose()}static _getRangeAtPosition(e,t){const i=t.lineNumber,n=e.getWordAtPosition(t);if(n)return new p["a"](i,n.startColumn,i,n.endColumn);e.tokenizeIfCheap(i);const o=e.getLineTokens(i),s=t.column-1,r=o.findTokenIndexAtOffset(s);let a=o.getStartOffset(r),c=o.getEndOffset(r);return c-a===1&&(a===s&&r>1?(a=o.getStartOffset(r-1),c=o.getEndOffset(r-1)):c===s&&r<o.getCount()-1&&(a=o.getStartOffset(r+1),c=o.getEndOffset(r+1))),new p["a"](i,a+1,i,c+1)}}function x(e){return l["a"].from({scheme:S["c"].command,path:e.id,query:e.arguments&&encodeURIComponent(JSON.stringify(e.arguments))}).toString()}var M=i("11f7"),L=i("f070"),R=i("1064"),N=i("1cd2"),P=i("7e32"),A=i("9e74"),j=i("4fc3"),T=i("533b"),H=i("0a0f"),E=i("b0cd"),F=function(e,t,i,n){function o(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,s){function r(e){try{c(n.next(e))}catch(t){s(t)}}function a(e){try{c(n["throw"](e))}catch(t){s(t)}}function c(e){e.done?i(e.value):o(e.value).then(r,a)}c((n=n.apply(e,t||[])).next())}))};function W(e,t,i,o){var s;return F(this,void 0,void 0,(function*(){const a=e.get(y["a"]),c=e.get(T["a"]),d=e.get(A["b"]),h=e.get(H["a"]),l=e.get(E["a"]);if(yield o.item.resolve(r["a"].None),!o.part.location)return;const u=o.part.location,g=[],_=new Set(P["d"].getMenuItems(P["b"].EditorContext).map(e=>Object(P["f"])(e)?e.command.id:""));for(const e of n["d"].getEditorActions())e instanceof R["SymbolNavigationAction"]&&_.has(e.id)&&g.push(new L["a"](e.id,e.label,void 0,!0,()=>F(this,void 0,void 0,(function*(){const i=yield a.createModelReference(u.uri);try{yield h.invokeFunction(e.run.bind(e),t,new R["SymbolNavigationAnchor"](i.object.textEditorModel,p["a"].getStartPosition(u.range)))}finally{i.dispose()}}))));if(o.part.command){const{command:e}=o.part;g.push(new L["d"]),g.push(new L["a"](e.id,e.title,void 0,!0,()=>F(this,void 0,void 0,(function*(){var t;try{yield d.executeCommand(e.id,...null!==(t=e.arguments)&&void 0!==t?t:[])}catch(i){l.notify({severity:E["c"].Error,source:o.item.provider.displayName,message:i})}}))))}const f=t.getOption(115);c.showContextMenu({domForShadowRoot:f&&null!==(s=t.getDomNode())&&void 0!==s?s:void 0,getAnchor:()=>{const e=M["E"](i);return{x:e.left,y:e.top+e.height+8}},getActions:()=>g,onHide:()=>{t.focus()},autoSelectFirstItem:!0})}))}function V(e,t,i,n){return F(this,void 0,void 0,(function*(){const o=e.get(y["a"]),s=yield o.createModelReference(n.uri);yield i.invokeWithinContext(e=>F(this,void 0,void 0,(function*(){const o=t.hasSideBySideModifier,r=e.get(j["b"]),a=N["b"].inPeekEditor.getValue(r),c=!o&&i.getOption(78)&&!a,d=new R["DefinitionAction"]({openToSide:o,openInPeek:c,muteMessage:!0},{alias:"",label:"",id:"",precondition:void 0});return d.run(e,i,{model:s.object.textEditorModel,position:p["a"].getStartPosition(n.range)})}))),s.dispose()}))}var U=i("f5f3"),$=i("303e"),z=i("b7d0"),q=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},K=function(e,t){return function(i,n){t(i,n,e)}},B=function(e,t,i,n){function o(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,s){function r(e){try{c(n.next(e))}catch(t){s(t)}}function a(e){try{c(n["throw"](e))}catch(t){s(t)}}function c(e){e.done?i(e.value):o(e.value).then(r,a)}c((n=n.apply(e,t||[])).next())}))};class G{constructor(){this._entries=new d["a"](50)}get(e){const t=G._key(e);return this._entries.get(t)}set(e,t){const i=G._key(e);this._entries.set(i,t)}static _key(e){return`${e.uri.toString()}/${e.getVersionId()}`}}const Y=Object(H["c"])("IInlayHintsCache");Object(U["b"])(Y,G,!0);class Q{constructor(e,t){this.item=e,this.index=t}get part(){const e=this.item.hint.label;return"string"===typeof e?{label:e}:e[this.index]}}class J{constructor(e,t){this.part=e,this.hasTriggerModifier=t}}let X=class e{constructor(e,t,i,n,o,s,r){this._editor=e,this._languageFeaturesService=t,this._inlayHintsCache=n,this._commandService=o,this._notificationService=s,this._instaService=r,this._disposables=new c["b"],this._sessionDisposables=new c["b"],this._decorationsMetadata=new Map,this._ruleFactory=new u["b"](this._editor),this._debounceInfo=i.for(t.inlayHintsProvider,"InlayHint",{min:25}),this._disposables.add(t.inlayHintsProvider.onDidChange(()=>this._update())),this._disposables.add(e.onDidChangeModel(()=>this._update())),this._disposables.add(e.onDidChangeModelLanguage(()=>this._update())),this._disposables.add(e.onDidChangeConfiguration(e=>{e.hasChanged(127)&&this._update()})),this._update()}static get(t){var i;return null!==(i=t.getContribution(e.ID))&&void 0!==i?i:void 0}dispose(){this._sessionDisposables.dispose(),this._removeAllDecorations(),this._disposables.dispose()}_update(){if(this._sessionDisposables.clear(),this._removeAllDecorations(),!this._editor.getOption(127).enabled)return;const e=this._editor.getModel();if(!e||!this._languageFeaturesService.inlayHintsProvider.has(e))return;const t=this._inlayHintsCache.get(e);let i;t&&this._updateHintsDecorators([e.getFullModelRange()],t),this._sessionDisposables.add(Object(c["j"])(()=>{e.isDisposed()||this._cacheHintsForFastRestore(e)}));let n=new Set;const o=new s["h"](()=>B(this,void 0,void 0,(function*(){const t=Date.now();null===i||void 0===i||i.dispose(!0),i=new r["b"];const s=e.onWillDispose(()=>null===i||void 0===i?void 0:i.cancel());try{const r=i.token,a=yield k.create(this._languageFeaturesService.inlayHintsProvider,e,this._getHintsRanges(),r);if(o.delay=this._debounceInfo.update(e,Date.now()-t),r.isCancellationRequested)return void a.dispose();for(const e of a.provider)"function"!==typeof e.onDidChangeInlayHints||n.has(e)||(n.add(e),this._sessionDisposables.add(e.onDidChangeInlayHints(()=>{o.isScheduled()||o.schedule()})));this._sessionDisposables.add(a),this._updateHintsDecorators(a.ranges,a.items),this._cacheHintsForFastRestore(e)}catch(c){Object(a["g"])(c)}finally{i.dispose(),s.dispose()}})),this._debounceInfo.get(e));this._sessionDisposables.add(o),this._sessionDisposables.add(Object(c["j"])(()=>null===i||void 0===i?void 0:i.dispose(!0))),o.schedule(0),this._sessionDisposables.add(this._editor.onDidScrollChange(e=>{!e.scrollTopChanged&&o.isScheduled()||o.schedule()})),this._sessionDisposables.add(this._editor.onDidChangeModelContent(e=>{const t=Math.max(o.delay,1250);o.schedule(t)})),this._sessionDisposables.add(this._installLinkGesture()),this._sessionDisposables.add(this._installDblClickGesture()),this._sessionDisposables.add(this._installContextMenu())}_installLinkGesture(){const e=new c["b"],t=e.add(new C["a"](this._editor)),i=new c["b"];return e.add(i),e.add(t.onMouseMoveOrRelevantKeyDown(e=>{const[t]=e,n=this._getInlayHintLabelPart(t),o=this._editor.getModel();if(!n||!o)return void i.clear();const s=new r["b"];i.add(Object(c["j"])(()=>s.dispose(!0))),n.item.resolve(s.token),this._activeInlayHintPart=n.part.command||n.part.location?new J(n,t.hasTriggerModifier):void 0;const a=n.item.hint.position.lineNumber,d=new p["a"](a,1,a,o.getLineMaxColumn(a)),h=new Set;for(const i of this._decorationsMetadata.values())d.containsRange(i.item.anchor.range)&&h.add(i.item);this._updateHintsDecorators([d],Array.from(h)),i.add(Object(c["j"])(()=>{this._activeInlayHintPart=void 0,this._updateHintsDecorators([d],Array.from(h))}))})),e.add(t.onCancel(()=>i.clear())),e.add(t.onExecute(e=>B(this,void 0,void 0,(function*(){const t=this._getInlayHintLabelPart(e);if(t){const i=t.part;i.location?this._instaService.invokeFunction(V,e,this._editor,i.location):_["a"].is(i.command)&&(yield this._invokeCommand(i.command,t.item))}})))),e}_installDblClickGesture(){return this._editor.onMouseUp(e=>B(this,void 0,void 0,(function*(){if(2!==e.event.detail)return;const t=this._getInlayHintLabelPart(e);t&&(e.event.preventDefault(),yield t.item.resolve(r["a"].None),t.item.hint.command&&(yield this._invokeCommand(t.item.hint.command,t.item)))})))}_installContextMenu(){return this._editor.onContextMenu(e=>B(this,void 0,void 0,(function*(){if(!(e.event.target instanceof HTMLElement))return;const t=this._getInlayHintLabelPart(e);t&&(yield this._instaService.invokeFunction(W,this._editor,e.event.target,t))})))}_getInlayHintLabelPart(e){var t;if(6!==e.target.type)return;const i=null===(t=e.target.detail.injectedText)||void 0===t?void 0:t.options;return i instanceof m["a"]&&(null===i||void 0===i?void 0:i.attachedData)instanceof Q?i.attachedData:void 0}_invokeCommand(e,t){var i;return B(this,void 0,void 0,(function*(){try{yield this._commandService.executeCommand(e.id,...null!==(i=e.arguments)&&void 0!==i?i:[])}catch(n){this._notificationService.notify({severity:E["c"].Error,source:t.provider.displayName,message:n})}}))}_cacheHintsForFastRestore(e){const t=new Map;for(const[i,n]of this._decorationsMetadata){if(t.has(n.item))continue;let o=n.item;const s=e.getDecorationRange(i);if(s){const e=new I(s,n.item.anchor.direction);o=n.item.with({anchor:e})}t.set(n.item,o)}this._inlayHintsCache.set(e,Array.from(t.values()))}_getHintsRanges(){const e=30,t=this._editor.getModel(),i=this._editor.getVisibleRangesPlusViewportAboveBelow(),n=[];for(const o of i.sort(p["a"].compareRangesUsingStarts)){const i=t.validateRange(new p["a"](o.startLineNumber-e,o.startColumn,o.endLineNumber+e,o.endColumn));0!==n.length&&p["a"].areIntersectingOrTouching(n[n.length-1],i)?n[n.length-1]=p["a"].plusRange(n[n.length-1],i):n.push(i)}return n}_updateHintsDecorators(t,i){var n,o;const s=[],r=(e,t,i,n,o)=>{s.push({item:e,classNameRef:t,decoration:{range:e.anchor.range,options:{description:"InlayHint",showIfCollapsed:e.anchor.range.isEmpty(),collapseOnReplaceEdit:!e.anchor.range.isEmpty(),stickiness:0,[e.anchor.direction]:{content:i,inlineClassNameAffectsLetterSpacing:!0,inlineClassName:t.className,cursorStops:n,attachedData:o}}}})},a=(e,t)=>{const i=this._ruleFactory.createClassNameRef({width:(c/3|0)+"px",display:"inline-block"});r(e,i," ",t?f["c"].Right:f["c"].None)},{fontSize:c,fontFamily:d}=this._getLayoutInfo(),h="--code-editorInlayHintsFontFamily";this._editor.getContainerDomNode().style.setProperty(h,d);for(const p of i){p.hint.paddingLeft&&a(p,!1);const t="string"===typeof p.hint.label?[{label:p.hint.label}]:p.hint.label;for(let e=0;e<t.length;e++){const i=t[e],o=0===e,s=e===t.length-1,a={fontSize:c+"px",fontFamily:`var(${h}), ${g["d"].fontFamily}`,verticalAlign:"middle"};p.hint.command&&(a.cursor="pointer"),this._fillInColors(a,p.hint),(i.command||i.location)&&(null===(n=this._activeInlayHintPart)||void 0===n?void 0:n.part.item)===p&&this._activeInlayHintPart.part.index===e&&(a.textDecoration="underline",this._activeInlayHintPart.hasTriggerModifier&&(a.color=Object(z["g"])($["x"]),a.cursor="pointer")),o&&s?(a.padding=`1px ${0|Math.max(1,c/4)}px`,a.borderRadius=(c/4|0)+"px"):o?(a.padding=`1px 0 1px ${0|Math.max(1,c/4)}px`,a.borderRadius=`${c/4|0}px 0 0 ${c/4|0}px`):s?(a.padding=`1px ${0|Math.max(1,c/4)}px 1px 0`,a.borderRadius=`0 ${c/4|0}px ${c/4|0}px 0`):a.padding="1px 0 1px 0",r(p,this._ruleFactory.createClassNameRef(a),Z(i.label),s&&!p.hint.paddingRight?f["c"].Right:f["c"].None,new Q(p,e))}if(p.hint.paddingRight&&a(p,!0),s.length>e._MAX_DECORATORS)break}const l=[];for(const e of t)for(const{id:t}of null!==(o=this._editor.getDecorationsInRange(e))&&void 0!==o?o:[]){const e=this._decorationsMetadata.get(t);e&&(l.push(t),e.classNameRef.dispose(),this._decorationsMetadata.delete(t))}const u=this._editor.deltaDecorations(l,s.map(e=>e.decoration));for(let e=0;e<u.length;e++){const t=s[e];this._decorationsMetadata.set(u[e],{item:t.item,classNameRef:t.classNameRef})}}_fillInColors(e,t){t.kind===_["f"].Parameter?(e.backgroundColor=Object(z["g"])($["W"]),e.color=Object(z["g"])($["X"])):t.kind===_["f"].Type?(e.backgroundColor=Object(z["g"])($["Y"]),e.color=Object(z["g"])($["Z"])):(e.backgroundColor=Object(z["g"])($["U"]),e.color=Object(z["g"])($["V"]))}_getLayoutInfo(){const e=this._editor.getOption(127),t=this._editor.getOption(46);let i=e.fontSize;(!i||i<5||i>t)&&(i=.9*t|0);const n=e.fontFamily||this._editor.getOption(43);return{fontSize:i,fontFamily:n}}_removeAllDecorations(){this._editor.deltaDecorations(Array.from(this._decorationsMetadata.keys()),[]);for(let e of this._decorationsMetadata.values())e.classNameRef.dispose();this._decorationsMetadata.clear()}};function Z(e){const t=" ";return e.replace(/[ \t]/g,t)}X.ID="editor.contrib.InlayHints",X._MAX_DECORATORS=1500,X=q([K(1,b["a"]),K(2,v["a"]),K(3,Y),K(4,A["b"]),K(5,E["a"]),K(6,H["a"])],X),A["a"].registerCommand("_executeInlayHintProvider",(e,...t)=>B(void 0,void 0,void 0,(function*(){const[i,n]=t;Object(h["c"])(l["a"].isUri(i)),Object(h["c"])(p["a"].isIRange(n));const{inlayHintsProvider:o}=e.get(b["a"]),s=yield e.get(y["a"]).createModelReference(i);try{const e=yield k.create(o,s.object.textEditorModel,[p["a"].lift(n)],r["a"].None),t=e.items.map(e=>e.hint);return setTimeout(()=>e.dispose(),0),t}finally{s.dispose()}})));var ee=i("78bc"),te=i("0867"),ie=i("2422"),ne=i("ba08"),oe=i("fbba"),se=i("5bd7"),re=i("dff7"),ae=i("30db"),ce=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},de=function(e,t){return function(i,n){t(i,n,e)}},he=function(e,t,i,n){function o(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,s){function r(e){try{c(n.next(e))}catch(t){s(t)}}function a(e){try{c(n["throw"](e))}catch(t){s(t)}}function c(e){e.done?i(e.value):o(e.value).then(r,a)}c((n=n.apply(e,t||[])).next())}))},le=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,i=e[Symbol.asyncIterator];return i?i.call(e):(e="function"===typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(i){t[i]=e[i]&&function(t){return new Promise((function(n,s){t=e[i](t),o(n,s,t.done,t.value)}))}}function o(e,t,i,n){Promise.resolve(n).then((function(t){e({value:t,done:i})}),t)}};class ue extends o["a"]{constructor(e,t){super(10,t,e.item.anchor.range),this.part=e}}let ge=class extends ne["b"]{constructor(e,t,i,n,o,s){super(e,t,i,n,s),this._resolverService=o,this.hoverOrdinal=6}suggestHoverAnchor(e){var t;const i=X.get(this._editor);if(!i)return null;if(6!==e.target.type)return null;const n=null===(t=e.target.detail.injectedText)||void 0===t?void 0:t.options;return n instanceof m["a"]&&n.attachedData instanceof Q?new ue(n.attachedData,this):null}computeSync(){return[]}computeAsync(e,t,i){return e instanceof ue?new s["a"](t=>he(this,void 0,void 0,(function*(){var n,o;const{part:s}=e;if(yield s.item.resolve(i),i.isCancellationRequested)return;let r,a;if("string"===typeof s.item.hint.tooltip?r=(new ee["a"]).appendText(s.item.hint.tooltip):s.item.hint.tooltip&&(r=s.item.hint.tooltip),r&&t.emitOne(new ne["a"](this,e.range,[r],0)),"string"===typeof s.part.tooltip?a=(new ee["a"]).appendText(s.part.tooltip):s.part.tooltip&&(a=s.part.tooltip),a&&t.emitOne(new ne["a"](this,e.range,[a],1)),s.part.location||s.part.command){let i;const n="altKey"===this._editor.getOption(70),o=n?ae["i"]?Object(re["a"])("links.navigate.kb.meta.mac","cmd + click"):Object(re["a"])("links.navigate.kb.meta","ctrl + click"):ae["i"]?Object(re["a"])("links.navigate.kb.alt.mac","option + click"):Object(re["a"])("links.navigate.kb.alt","alt + click");s.part.location&&s.part.command?i=(new ee["a"]).appendText(Object(re["a"])("hint.defAndCommand","Go to Definition ({0}), right click for more",o)):s.part.location?i=(new ee["a"]).appendText(Object(re["a"])("hint.def","Go to Definition ({0})",o)):s.part.command&&(i=new ee["a"](`[${Object(re["a"])("hint.cmd","Execute Command")}](${x(s.part.command)} "${s.part.command.title}") (${o})`,{isTrusted:!0})),i&&t.emitOne(new ne["a"](this,e.range,[i],1e4))}const c=yield this._resolveInlayHintLabelPartHover(s,i);try{for(var d,h=le(c);d=yield h.next(),!d.done;){let e=d.value;t.emitOne(e)}}catch(l){n={error:l}}finally{try{d&&!d.done&&(o=h.return)&&(yield o.call(h))}finally{if(n)throw n.error}}}))):s["a"].EMPTY}_resolveInlayHintLabelPartHover(e,t){return he(this,void 0,void 0,(function*(){if(!e.part.location)return s["a"].EMPTY;const{uri:i,range:n}=e.part.location,o=yield this._resolverService.createModelReference(i);try{const i=o.object.textEditorModel;return this._languageFeaturesService.hoverProvider.has(i)?Object(ie["a"])(this._languageFeaturesService.hoverProvider,i,new w["a"](n.startLineNumber,n.startColumn),t).filter(e=>!Object(ee["b"])(e.hover.contents)).map(t=>new ne["a"](this,e.item.anchor.range,t.hover.contents,2+t.ordinal)):s["a"].EMPTY}finally{o.dispose()}}))}};ge=ce([de(1,te["a"]),de(2,se["a"]),de(3,oe["a"]),de(4,y["a"]),de(5,b["a"])],ge),Object(n["l"])(X.ID,X),o["b"].register(ge)},ba08:function(e,t,i){"use strict";i.d(t,"a",(function(){return y})),i.d(t,"b",(function(){return C})),i.d(t,"c",(function(){return w}));var n=i("11f7"),o=i("e8e3"),s=i("5fe7"),r=i("78bc"),a=i("a666"),c=i("85c1"),d=i("7061"),h=i("6a89"),l=i("0867"),u=i("2422"),g=i("dff7"),p=i("fbba"),_=i("5bd7"),f=i("7340"),m=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},v=function(e,t){return function(i,n){t(i,n,e)}};const b=n["a"];class y{constructor(e,t,i,n){this.owner=e,this.range=t,this.contents=i,this.ordinal=n}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let C=class{constructor(e,t,i,n,o){this._editor=e,this._languageService=t,this._openerService=i,this._configurationService=n,this._languageFeaturesService=o,this.hoverOrdinal=2}createLoadingMessage(e){return new y(this,e.range,[(new r["a"]).appendText(g["a"]("modesContentHover.loading","Loading..."))],2e3)}computeSync(e,t){if(!this._editor.hasModel()||1!==e.type)return[];const i=this._editor.getModel(),n=e.range.startLineNumber,s=i.getLineMaxColumn(n),a=[];let c=1e3;const d=i.getLineLength(n),l=i.getLanguageIdAtPosition(e.range.startLineNumber,e.range.startColumn),u=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:l});"number"===typeof u&&d>=u&&a.push(new y(this,e.range,[{value:g["a"]("too many characters","Tokenization is skipped for long lines for performance reasons. This can be configured via `editor.maxTokenizationLineLength`.")}],c++));for(const g of t){const t=g.range.startLineNumber===n?g.range.startColumn:1,i=g.range.endLineNumber===n?g.range.endColumn:s,d=g.options.hoverMessage;if(!d||Object(r["b"])(d))continue;const l=new h["a"](e.range.startLineNumber,t,e.range.startLineNumber,i);a.push(new y(this,l,Object(o["c"])(d),c++))}return a}computeAsync(e,t,i){if(!this._editor.hasModel()||1!==e.type)return s["a"].EMPTY;const n=this._editor.getModel();if(!this._languageFeaturesService.hoverProvider.has(n))return s["a"].EMPTY;const o=new d["a"](e.range.startLineNumber,e.range.startColumn);return Object(u["a"])(this._languageFeaturesService.hoverProvider,n,o,i).filter(e=>!Object(r["b"])(e.hover.contents)).map(t=>{const i=t.hover.range?h["a"].lift(t.hover.range):e.range;return new y(this,i,t.hover.contents,t.ordinal)})}renderHoverParts(e,t){return w(e,t,this._editor,this._languageService,this._openerService)}};function w(e,t,i,o,s){t.sort((e,t)=>e.ordinal-t.ordinal);const d=new a["b"];for(const a of t)for(const t of a.contents){if(Object(r["b"])(t))continue;const a=b("div.hover-row.markdown-hover"),h=n["q"](a,b("div.hover-contents")),l=d.add(new c["a"]({editor:i},o,s));d.add(l.onDidRenderAsync(()=>{h.className="hover-contents code-hover-contents",e.onContentsChanged()}));const u=d.add(l.render(t));h.appendChild(u.element),e.fragment.appendChild(a)}return d}C=m([v(1,l["a"]),v(2,_["a"]),v(3,p["a"]),v(4,f["a"])],C)},bd8e:function(e,t,i){"use strict";function n(e,t){let i=0;for(let n=0;n<e.length;n++)"\t"===e.charAt(n)?i+=t:i++;return i}function o(e,t,i){e=e<0?0:e;let n="";if(!i){let i=Math.floor(e/t);e%=t;for(let e=0;e<i;e++)n+="\t"}for(let o=0;o<e;o++)n+=" ";return n}i.d(t,"b",(function(){return n})),i.d(t,"a",(function(){return o}))},e92c:function(e,t,i){"use strict";i.r(t),i.d(t,"getReindentEditOperations",(function(){return m})),i.d(t,"IndentationToSpacesAction",(function(){return v})),i.d(t,"IndentationToTabsAction",(function(){return b})),i.d(t,"ChangeIndentationSizeAction",(function(){return y})),i.d(t,"IndentUsingTabs",(function(){return C})),i.d(t,"IndentUsingSpaces",(function(){return w})),i.d(t,"DetectIndentation",(function(){return S})),i.d(t,"ReindentLinesAction",(function(){return D})),i.d(t,"ReindentSelectedLinesAction",(function(){return I})),i.d(t,"AutoIndentOnPasteCommand",(function(){return O})),i.d(t,"AutoIndentOnPaste",(function(){return k})),i.d(t,"IndentationToSpacesCommand",(function(){return M})),i.d(t,"IndentationToTabsCommand",(function(){return L}));var n=i("a666"),o=i("3742"),s=i("b2cc"),r=i("ccde"),a=i("d3f4"),c=i("6a89"),d=i("8025"),h=i("c101"),l=i("0184"),u=i("944a"),g=i("bd8e"),p=i("dff7"),_=i("66bd"),f=i("4202");function m(e,t,i,n,s){if(1===e.getLineCount()&&1===e.getLineMaxColumn(1))return[];const c=t.getLanguageConfiguration(e.getLanguageId()).indentationRules;if(!c)return[];n=Math.min(n,e.getLineCount());while(i<=n){if(!c.unIndentedLinePattern)break;let t=e.getLineContent(i);if(!c.unIndentedLinePattern.test(t))break;i++}if(i>n-1)return[];const{tabSize:h,indentSize:l,insertSpaces:u}=e.getOptions(),g=(e,t)=>(t=t||1,r["a"].shiftIndent(e,e.length+t,h,l,u)),p=(e,t)=>(t=t||1,r["a"].unshiftIndent(e,e.length+t,h,l,u));let _,m=[],v=e.getLineContent(i),b=v;if(void 0!==s&&null!==s){_=s;let e=o["x"](v);b=_+v.substring(e.length),c.decreaseIndentPattern&&c.decreaseIndentPattern.test(b)&&(_=p(_),b=_+v.substring(e.length)),v!==b&&m.push(a["a"].replaceMove(new d["a"](i,1,i,e.length+1),Object(f["a"])(_,l,u)))}else _=o["x"](v);let y=_;c.increaseIndentPattern&&c.increaseIndentPattern.test(b)?(y=g(y),_=g(_)):c.indentNextLinePattern&&c.indentNextLinePattern.test(b)&&(y=g(y)),i++;for(let r=i;r<=n;r++){let t=e.getLineContent(r),i=o["x"](t),n=y+t.substring(i.length);c.decreaseIndentPattern&&c.decreaseIndentPattern.test(n)&&(y=p(y),_=p(_)),i!==y&&m.push(a["a"].replaceMove(new d["a"](r,1,r,i.length+1),Object(f["a"])(y,l,u))),c.unIndentedLinePattern&&c.unIndentedLinePattern.test(t)||(c.increaseIndentPattern&&c.increaseIndentPattern.test(n)?(_=g(_),y=_):y=c.indentNextLinePattern&&c.indentNextLinePattern.test(n)?g(y):_)}return m}class v extends s["b"]{constructor(){super({id:v.ID,label:p["a"]("indentationToSpaces","Convert Indentation to Spaces"),alias:"Convert Indentation to Spaces",precondition:h["a"].writable})}run(e,t){let i=t.getModel();if(!i)return;let n=i.getOptions(),o=t.getSelection();if(!o)return;const s=new M(o,n.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[s]),t.pushUndoStop(),i.updateOptions({insertSpaces:!0})}}v.ID="editor.action.indentationToSpaces";class b extends s["b"]{constructor(){super({id:b.ID,label:p["a"]("indentationToTabs","Convert Indentation to Tabs"),alias:"Convert Indentation to Tabs",precondition:h["a"].writable})}run(e,t){let i=t.getModel();if(!i)return;let n=i.getOptions(),o=t.getSelection();if(!o)return;const s=new L(o,n.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[s]),t.pushUndoStop(),i.updateOptions({insertSpaces:!1})}}b.ID="editor.action.indentationToTabs";class y extends s["b"]{constructor(e,t){super(t),this.insertSpaces=e}run(e,t){const i=e.get(_["a"]),n=e.get(u["a"]);let o=t.getModel();if(!o)return;const s=n.getCreationOptions(o.getLanguageId(),o.uri,o.isForSimpleWidget),r=[1,2,3,4,5,6,7,8].map(e=>({id:e.toString(),label:e.toString(),description:e===s.tabSize?p["a"]("configuredTabSize","Configured Tab Size"):void 0})),a=Math.min(o.getOptions().tabSize-1,7);setTimeout(()=>{i.pick(r,{placeHolder:p["a"]({key:"selectTabWidth",comment:["Tab corresponds to the tab key"]},"Select Tab Size for Current File"),activeItem:r[a]}).then(e=>{e&&o&&!o.isDisposed()&&o.updateOptions({tabSize:parseInt(e.label,10),insertSpaces:this.insertSpaces})})},50)}}class C extends y{constructor(){super(!1,{id:C.ID,label:p["a"]("indentUsingTabs","Indent Using Tabs"),alias:"Indent Using Tabs",precondition:void 0})}}C.ID="editor.action.indentUsingTabs";class w extends y{constructor(){super(!0,{id:w.ID,label:p["a"]("indentUsingSpaces","Indent Using Spaces"),alias:"Indent Using Spaces",precondition:void 0})}}w.ID="editor.action.indentUsingSpaces";class S extends s["b"]{constructor(){super({id:S.ID,label:p["a"]("detectIndentation","Detect Indentation from Content"),alias:"Detect Indentation from Content",precondition:void 0})}run(e,t){const i=e.get(u["a"]);let n=t.getModel();if(!n)return;const o=i.getCreationOptions(n.getLanguageId(),n.uri,n.isForSimpleWidget);n.detectIndentation(o.insertSpaces,o.tabSize)}}S.ID="editor.action.detectIndentation";class D extends s["b"]{constructor(){super({id:"editor.action.reindentlines",label:p["a"]("editor.reindentlines","Reindent Lines"),alias:"Reindent Lines",precondition:h["a"].writable})}run(e,t){const i=e.get(l["a"]);let n=t.getModel();if(!n)return;let o=m(n,i,1,n.getLineCount());o.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,o),t.pushUndoStop())}}class I extends s["b"]{constructor(){super({id:"editor.action.reindentselectedlines",label:p["a"]("editor.reindentselectedlines","Reindent Selected Lines"),alias:"Reindent Selected Lines",precondition:h["a"].writable})}run(e,t){const i=e.get(l["a"]);let n=t.getModel();if(!n)return;let o=t.getSelections();if(null===o)return;let s=[];for(let r of o){let e=r.startLineNumber,t=r.endLineNumber;if(e!==t&&1===r.endColumn&&t--,1===e){if(e===t)continue}else e--;let o=m(n,i,e,t);s.push(...o)}s.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,s),t.pushUndoStop())}}class O{constructor(e,t){this._initialSelection=t,this._edits=[],this._selectionId=null;for(let i of e)i.range&&"string"===typeof i.text&&this._edits.push(i)}getEditOperations(e,t){for(let n of this._edits)t.addEditOperation(c["a"].lift(n.range),n.text);let i=!1;Array.isArray(this._edits)&&1===this._edits.length&&this._initialSelection.isEmpty()&&(this._edits[0].range.startColumn===this._initialSelection.endColumn&&this._edits[0].range.startLineNumber===this._initialSelection.endLineNumber?(i=!0,this._selectionId=t.trackSelection(this._initialSelection,!0)):this._edits[0].range.endColumn===this._initialSelection.startColumn&&this._edits[0].range.endLineNumber===this._initialSelection.startLineNumber&&(i=!0,this._selectionId=t.trackSelection(this._initialSelection,!1))),i||(this._selectionId=t.trackSelection(this._initialSelection))}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}class k{constructor(e){this.callOnDispose=new n["b"],this.callOnModel=new n["b"],this.editor=e,this.callOnDispose.add(e.onDidChangeConfiguration(()=>this.update())),this.callOnDispose.add(e.onDidChangeModel(()=>this.update())),this.callOnDispose.add(e.onDidChangeModelLanguage(()=>this.update()))}update(){this.callOnModel.clear(),this.editor.getOption(9)<4||this.editor.getOption(48)||this.editor.hasModel()&&this.callOnModel.add(this.editor.onDidPaste(({range:e})=>{this.trigger(e)}))}trigger(e){let t=this.editor.getSelections();if(null===t||t.length>1)return;const i=this.editor.getModel();if(!i)return;if(!i.isCheapToTokenize(e.getStartPosition().lineNumber))return;const n=this.editor.getOption(9),{tabSize:s,indentSize:a,insertSpaces:d}=i.getOptions();let h=[],u={shiftIndent:e=>r["a"].shiftIndent(e,e.length+1,s,a,d),unshiftIndent:e=>r["a"].unshiftIndent(e,e.length+1,s,a,d)},p=e.startLineNumber;while(p<=e.endLineNumber){if(!this.shouldIgnoreLine(i,p))break;p++}if(p>e.endLineNumber)return;let _=i.getLineContent(p);if(!/\S/.test(_.substring(0,e.startColumn-1))){const e=l["b"].getGoodIndentForLine(n,i,i.getLanguageId(),p,u);if(null!==e){let t=o["x"](_),n=g["b"](e,s),r=g["b"](t,s);if(n!==r){let e=g["a"](n,s,d);h.push({range:new c["a"](p,1,p,t.length+1),text:e}),_=e+_.substr(t.length)}else{let e=l["b"].getIndentMetadata(i,p);if(0===e||8===e)return}}}const f=p;while(p<e.endLineNumber){if(/\S/.test(i.getLineContent(p+1)))break;p++}if(p!==e.endLineNumber){let t={getLineTokens:e=>i.getLineTokens(e),getLanguageId:()=>i.getLanguageId(),getLanguageIdAtPosition:(e,t)=>i.getLanguageIdAtPosition(e,t),getLineContent:e=>e===f?_:i.getLineContent(e)},r=l["b"].getGoodIndentForLine(n,t,i.getLanguageId(),p+1,u);if(null!==r){let t=g["b"](r,s),n=g["b"](o["x"](i.getLineContent(p+1)),s);if(t!==n){let r=t-n;for(let t=p+1;t<=e.endLineNumber;t++){let e=i.getLineContent(t),n=o["x"](e),a=g["b"](n,s),l=a+r,u=g["a"](l,s,d);u!==n&&h.push({range:new c["a"](t,1,t,n.length+1),text:u})}}}}if(h.length>0){this.editor.pushUndoStop();let e=new O(h,this.editor.getSelection());this.editor.executeCommand("autoIndentOnPaste",e),this.editor.pushUndoStop()}}shouldIgnoreLine(e,t){e.forceTokenization(t);let i=e.getLineFirstNonWhitespaceColumn(t);if(0===i)return!0;let n=e.getLineTokens(t);if(n.getCount()>0){let e=n.findTokenIndexAtOffset(i);if(e>=0&&1===n.getStandardTokenType(e))return!0}return!1}dispose(){this.callOnDispose.dispose(),this.callOnModel.dispose()}}function x(e,t,i,n){if(1===e.getLineCount()&&1===e.getLineMaxColumn(1))return;let o="";for(let r=0;r<i;r++)o+=" ";let s=new RegExp(o,"gi");for(let r=1,a=e.getLineCount();r<=a;r++){let i=e.getLineFirstNonWhitespaceColumn(r);if(0===i&&(i=e.getLineMaxColumn(r)),1===i)continue;const a=new c["a"](r,1,r,i),d=e.getValueInRange(a),h=n?d.replace(/\t/gi,o):d.replace(s,"\t");t.addEditOperation(a,h)}}k.ID="editor.contrib.autoIndentOnPaste";class M{constructor(e,t){this.selection=e,this.tabSize=t,this.selectionId=null}getEditOperations(e,t){this.selectionId=t.trackSelection(this.selection),x(e,t,this.tabSize,!0)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}}class L{constructor(e,t){this.selection=e,this.tabSize=t,this.selectionId=null}getEditOperations(e,t){this.selectionId=t.trackSelection(this.selection),x(e,t,this.tabSize,!1)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}}Object(s["l"])(k.ID,k),Object(s["j"])(v),Object(s["j"])(b),Object(s["j"])(C),Object(s["j"])(w),Object(s["j"])(S),Object(s["j"])(D),Object(s["j"])(I)},fd9b:function(e,t,i){"use strict";i.d(t,"c",(function(){return n})),i.d(t,"a",(function(){return o})),i.d(t,"b",(function(){return s}));class n{constructor(e,t){this.priority=e,this.range=t,this.type=1}equals(e){return 1===e.type&&this.range.equalsRange(e.range)}canAdoptVisibleHover(e,t){return 1===e.type&&t.lineNumber===this.range.startLineNumber}}class o{constructor(e,t,i){this.priority=e,this.owner=t,this.range=i,this.type=2}equals(e){return 2===e.type&&this.owner===e.owner}canAdoptVisibleHover(e,t){return 2===e.type&&this.owner===e.owner}}const s=new class{constructor(){this._participants=[]}register(e){this._participants.push(e)}getAll(){return this._participants}}}}]);
Coded by KALI :v Greetz to DR HARD ../ kali.zbi@hotmail.com