@rsdoctor/client 0.3.3 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- (self.webpackChunk_rsdoctor_client=self.webpackChunk_rsdoctor_client||[]).push([["387"],{66897:function(e,t,i){"use strict";i.d(t,{BO:function(){return r},IY:function(){return s},az:function(){return o}});var n=i("55952");function s(e,t={}){let i=o(t);return i.textContent=e,i}function r(e,t={}){let i=o(t);return function e(t,i,s,r){let o;if(2===i.type)o=document.createTextNode(i.content||"");else if(3===i.type)o=document.createElement("b");else if(4===i.type)o=document.createElement("i");else if(7===i.type&&r)o=document.createElement("code");else if(5===i.type&&s){let e=document.createElement("a");s.disposables.add(n.mu(e,"click",e=>{s.callback(String(i.index),e)})),o=e}else 8===i.type?o=document.createElement("br"):1===i.type&&(o=t);o&&t!==o&&t.appendChild(o),o&&Array.isArray(i.children)&&i.children.forEach(t=>{e(o,t,s,r)})}(i,function(e,t){let i={type:1,children:[]},n=0,s=i,r=[],o=new l(e);for(;!o.eos();){let e=o.next(),i="\\"===e&&0!==a(o.peek(),t);if(i&&(e=o.next()),!i&&function(e,t){return 0!==a(e,t)}(e,t)&&e===o.peek()){o.advance(),2===s.type&&(s=r.pop());let i=a(e,t);if(s.type===i||5===s.type&&6===i)s=r.pop();else{let e={type:i,children:[]};5===i&&(e.index=n,n++),s.children.push(e),r.push(s),s=e}}else if("\n"===e)2===s.type&&(s=r.pop()),s.children.push({type:8});else if(2!==s.type){let t={type:2,content:e};s.children.push(t),r.push(s),s=t}else s.content+=e}return 2===s.type&&(s=r.pop()),r.length,i}(e,!!t.renderCodeSegments),t.actionHandler,t.renderCodeSegments),i}function o(e){let t=e.inline?"span":"div",i=document.createElement(t);return e.className&&(i.className=e.className),i}class l{constructor(e){this.source=e,this.index=0}eos(){return this.index>=this.source.length}next(){let e=this.peek();return this.advance(),e}peek(){return this.source[this.index]}advance(){this.index++}}function a(e,t){switch(e){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;case"`":return t?7:0;default:return 0}}},13848:function(e,t,i){"use strict";i.d(t,{g:function(){return g}}),i("50655");var n=i("55952"),s=i("29193"),r=i("37764"),o=i("79221"),l=i("36853"),a=i("94260"),d=i("58036"),h=i("67414"),c=i("67296");class u{constructor(e){this._element=e}get element(){return this._element}set textContent(e){!this.disposed&&e!==this._textContent&&(this._textContent=e,this._element.textContent=e)}set className(e){!this.disposed&&e!==this._className&&(this._className=e,this._element.className=e)}set empty(e){!this.disposed&&e!==this._empty&&(this._empty=e,this._element.style.marginLeft=e?"0":"")}dispose(){this.disposed=!0}}class g extends r.JT{constructor(e,t){var i;super(),this.customHovers=new Map,this.creationOptions=t,this.domNode=this._register(new u(n.R3(e,n.$(".monaco-icon-label")))),this.labelContainer=n.R3(this.domNode.element,n.$(".monaco-icon-label-container")),this.nameContainer=n.R3(this.labelContainer,n.$("span.monaco-icon-name-container")),(null==t?void 0:t.supportHighlights)||(null==t?void 0:t.supportIcons)?this.nameNode=this._register(new p(this.nameContainer,!!t.supportIcons)):this.nameNode=new m(this.nameContainer),this.hoverDelegate=null!==(i=null==t?void 0:t.hoverDelegate)&&void 0!==i?i:(0,a.tM)("mouse")}get element(){return this.domNode.element}setLabel(e,t,i){var n;let r=["monaco-icon-label"],o=["monaco-icon-label-container"],l="";if(i&&(i.extraClasses&&r.push(...i.extraClasses),i.italic&&r.push("italic"),i.strikethrough&&r.push("strikethrough"),i.disabledCommand&&o.push("disabled"),i.title&&("string"==typeof i.title?l+=i.title:l+=e)),this.domNode.className=r.join(" "),this.domNode.element.setAttribute("aria-label",l),this.labelContainer.className=o.join(" "),this.setupHover((null==i?void 0:i.descriptionTitle)?this.labelContainer:this.element,null==i?void 0:i.title),this.nameNode.setLabel(e,i),t||this.descriptionNode){let e=this.getOrCreateDescriptionNode();e instanceof s.q?(e.set(t||"",i?i.descriptionMatches:void 0,void 0,null==i?void 0:i.labelEscapeNewLines),this.setupHover(e.element,null==i?void 0:i.descriptionTitle)):(e.textContent=t&&(null==i?void 0:i.labelEscapeNewLines)?s.q.escapeNewLines(t,[]):t||"",this.setupHover(e.element,(null==i?void 0:i.descriptionTitle)||""),e.empty=!t)}((null==i?void 0:i.suffix)||this.suffixNode)&&(this.getOrCreateSuffixNode().textContent=null!==(n=null==i?void 0:i.suffix)&&void 0!==n?n:"")}setupHover(e,t){let i=this.customHovers.get(e);if(i&&(i.dispose(),this.customHovers.delete(e)),!t){e.removeAttribute("title");return}if(this.hoverDelegate.showNativeHover){var n,s;n=e,s=t,(0,h.HD)(s)?n.title=(0,c.x$)(s):(null==s?void 0:s.markdownNotSupportedFallback)?n.title=s.markdownNotSupportedFallback:n.removeAttribute("title")}else{let i=(0,d.B)().setupUpdatableHover(this.hoverDelegate,e,t);i&&this.customHovers.set(e,i)}}dispose(){for(let e of(super.dispose(),this.customHovers.values()))e.dispose();this.customHovers.clear()}getOrCreateSuffixNode(){if(!this.suffixNode){let e=this._register(new u(n.e4(this.nameContainer,n.$("span.monaco-icon-suffix-container"))));this.suffixNode=this._register(new u(n.R3(e.element,n.$("span.label-suffix"))))}return this.suffixNode}getOrCreateDescriptionNode(){var e;if(!this.descriptionNode){let t=this._register(new u(n.R3(this.labelContainer,n.$("span.monaco-icon-description-container"))));(null===(e=this.creationOptions)||void 0===e?void 0:e.supportDescriptionHighlights)?this.descriptionNode=this._register(new s.q(n.R3(t.element,n.$("span.label-description")),{supportIcons:!!this.creationOptions.supportIcons})):this.descriptionNode=this._register(new u(n.R3(t.element,n.$("span.label-description"))))}return this.descriptionNode}}class m{constructor(e){this.container=e,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(!(this.label===e&&(0,o.fS)(this.options,t))){if(this.label=e,this.options=t,"string"==typeof e)!this.singleLabel&&(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=n.R3(this.container,n.$("a.label-name",{id:null==t?void 0:t.domId}))),this.singleLabel.textContent=e;else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;for(let i=0;i<e.length;i++){let s=e[i],r=(null==t?void 0:t.domId)&&`${null==t?void 0:t.domId}_${i}`;n.R3(this.container,n.$("a.label-name",{id:r,"data-icon-label-count":e.length,"data-icon-label-index":i,role:"treeitem"},s)),i<e.length-1&&n.R3(this.container,n.$("span.label-separator",void 0,(null==t?void 0:t.separator)||"/"))}}}}}class p extends r.JT{constructor(e,t){super(),this.container=e,this.supportIcons=t,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(!(this.label===e&&(0,o.fS)(this.options,t))){if(this.label=e,this.options=t,"string"==typeof e)!this.singleLabel&&(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=this._register(new s.q(n.R3(this.container,n.$("a.label-name",{id:null==t?void 0:t.domId})),{supportIcons:this.supportIcons}))),this.singleLabel.set(e,null==t?void 0:t.matches,void 0,null==t?void 0:t.labelEscapeNewLines);else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;let i=(null==t?void 0:t.separator)||"/",r=function(e,t,i){if(!i)return;let n=0;return e.map(e=>{let s={start:n,end:n+e.length},r=i.map(e=>l.e.intersect(s,e)).filter(e=>!l.e.isEmpty(e)).map(({start:e,end:t})=>({start:e-n,end:t-n}));return n=s.end+t.length,r})}(e,i,null==t?void 0:t.matches);for(let o=0;o<e.length;o++){let l=e[o],a=r?r[o]:void 0,d=(null==t?void 0:t.domId)&&`${null==t?void 0:t.domId}_${o}`,h=n.$("a.label-name",{id:d,"data-icon-label-count":e.length,"data-icon-label-index":o,role:"treeitem"});this._register(new s.q(n.R3(this.container,h),{supportIcons:this.supportIcons})).set(l,a,void 0,null==t?void 0:t.labelEscapeNewLines),o<e.length-1&&n.R3(h,n.$("span.label-separator",void 0,i))}}}}}},90350:function(e,t,i){"use strict";i.d(t,{Bv:function(){return R},kX:function(){return S}});var n=i("73115"),s=i("55952"),r=i("44608"),o=i("19711"),l=i("99557"),a=i("47983"),d=i("1966"),h=i("59287"),c=i("98212"),u=i("37764"),g=i("36853"),m=i("80928"),p=i("70473"),f=i("49432"),_=i("45802"),v=i("45065"),E=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};let C={CurrentDragAndDropData:void 0},b={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,setRowHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements:e=>[e],getDragURI:()=>null,onDragStart(){},onDragOver:()=>!1,drop(){},dispose(){}},horizontalScrolling:!1,transformOptimization:!0,alwaysConsumeMouseWheel:!0};class S{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class N{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class T{constructor(){this.types=[],this.files=[]}update(e){if(e.types&&this.types.splice(0,this.types.length,...e.types),e.files){this.files.splice(0,this.files.length);for(let t=0;t<e.files.length;t++){let i=e.files.item(t);i&&(i.size||i.type)&&this.files.push(i)}}}getData(){return{types:this.types,files:this.files}}}class w{constructor(e){(null==e?void 0:e.getSetSize)?this.getSetSize=e.getSetSize.bind(e):this.getSetSize=(e,t,i)=>i,(null==e?void 0:e.getPosInSet)?this.getPosInSet=e.getPosInSet.bind(e):this.getPosInSet=(e,t)=>t+1,(null==e?void 0:e.getRole)?this.getRole=e.getRole.bind(e):this.getRole=e=>"listitem",(null==e?void 0:e.isChecked)?this.isChecked=e.isChecked.bind(e):this.isChecked=e=>void 0}}class R{get contentHeight(){return this.rangeMap.size}get onDidScroll(){return this.scrollableElement.onScroll}get scrollableElementDomNode(){return this.scrollableElement.getDomNode()}get horizontalScrolling(){return this._horizontalScrolling}set horizontalScrolling(e){if(e!==this._horizontalScrolling){if(e&&this.supportDynamicHeights)throw Error("Horizontal scrolling and dynamic heights not supported simultaneously");if(this._horizontalScrolling=e,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this._horizontalScrolling){for(let e of this.items)this.measureItemWidth(e);this.updateScrollWidth(),this.scrollableElement.setScrollDimensions({width:(0,s.FK)(this.domNode)}),this.rowsContainer.style.width=`${Math.max(this.scrollWidth||0,this.renderWidth)}px`}else this.scrollableElementWidthDelayer.cancel(),this.scrollableElement.setScrollDimensions({width:this.renderWidth,scrollWidth:this.renderWidth}),this.rowsContainer.style.width=""}}constructor(e,t,i,n=b){var r,a,h,g,p,_,v,E,C,S,N,T,L;if(this.virtualDelegate=t,this.domId=`list_id_${++R.InstanceCount}`,this.renderers=new Map,this.renderWidth=0,this._scrollHeight=0,this.scrollableElementUpdateDisposable=null,this.scrollableElementWidthDelayer=new d.vp(50),this.splicing=!1,this.dragOverAnimationStopDisposable=u.JT.None,this.dragOverMouseY=0,this.canDrop=!1,this.currentDragFeedbackDisposable=u.JT.None,this.onDragLeaveTimeout=u.JT.None,this.disposables=new u.SL,this._onDidChangeContentHeight=new c.Q5,this._onDidChangeContentWidth=new c.Q5,this.onDidChangeContentHeight=c.ju.latch(this._onDidChangeContentHeight.event,void 0,this.disposables),this._horizontalScrolling=!1,n.horizontalScrolling&&n.supportDynamicHeights)throw Error("Horizontal scrolling and dynamic heights not supported simultaneously");for(let e of(this.items=[],this.itemId=0,this.rangeMap=this.createRangeMap(null!==(r=n.paddingTop)&&void 0!==r?r:0),i))this.renderers.set(e.templateId,e);this.cache=this.disposables.add(new f.r(this.renderers)),this.lastRenderTop=0,this.lastRenderHeight=0,this.domNode=document.createElement("div"),this.domNode.className="monaco-list",this.domNode.classList.add(this.domId),this.domNode.tabIndex=0,this.domNode.classList.toggle("mouse-support","boolean"!=typeof n.mouseSupport||n.mouseSupport),this._horizontalScrolling=null!==(a=n.horizontalScrolling)&&void 0!==a?a:b.horizontalScrolling,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this.paddingBottom=void 0===n.paddingBottom?0:n.paddingBottom,this.accessibilityProvider=new w(n.accessibilityProvider),this.rowsContainer=document.createElement("div"),this.rowsContainer.className="monaco-list-rows",(null!==(h=n.transformOptimization)&&void 0!==h?h:b.transformOptimization)&&(this.rowsContainer.style.transform="translate3d(0px, 0px, 0px)",this.rowsContainer.style.overflow="hidden",this.rowsContainer.style.contain="strict"),this.disposables.add(o.o.addTarget(this.rowsContainer)),this.scrollable=this.disposables.add(new m.Rm({forceIntegerValues:!0,smoothScrollDuration:null!==(g=n.smoothScrolling)&&void 0!==g&&g?125:0,scheduleAtNextAnimationFrame:e=>(0,s.jL)((0,s.Jj)(this.domNode),e)})),this.scrollableElement=this.disposables.add(new l.$Z(this.rowsContainer,{alwaysConsumeMouseWheel:null!==(p=n.alwaysConsumeMouseWheel)&&void 0!==p?p:b.alwaysConsumeMouseWheel,horizontal:1,vertical:null!==(_=n.verticalScrollMode)&&void 0!==_?_:b.verticalScrollMode,useShadows:null!==(v=n.useShadows)&&void 0!==v?v:b.useShadows,mouseWheelScrollSensitivity:n.mouseWheelScrollSensitivity,fastScrollSensitivity:n.fastScrollSensitivity,scrollByPage:n.scrollByPage},this.scrollable)),this.domNode.appendChild(this.scrollableElement.getDomNode()),e.appendChild(this.domNode),this.scrollableElement.onScroll(this.onScroll,this,this.disposables),this.disposables.add((0,s.nm)(this.rowsContainer,o.t.Change,e=>this.onTouchChange(e))),this.disposables.add((0,s.nm)(this.scrollableElement.getDomNode(),"scroll",e=>e.target.scrollTop=0)),this.disposables.add((0,s.nm)(this.domNode,"dragover",e=>this.onDragOver(this.toDragEvent(e)))),this.disposables.add((0,s.nm)(this.domNode,"drop",e=>this.onDrop(this.toDragEvent(e)))),this.disposables.add((0,s.nm)(this.domNode,"dragleave",e=>this.onDragLeave(this.toDragEvent(e)))),this.disposables.add((0,s.nm)(this.domNode,"dragend",e=>this.onDragEnd(e))),this.setRowLineHeight=null!==(E=n.setRowLineHeight)&&void 0!==E?E:b.setRowLineHeight,this.setRowHeight=null!==(C=n.setRowHeight)&&void 0!==C?C:b.setRowHeight,this.supportDynamicHeights=null!==(S=n.supportDynamicHeights)&&void 0!==S?S:b.supportDynamicHeights,this.dnd=null!==(N=n.dnd)&&void 0!==N?N:this.disposables.add(b.dnd),this.layout(null===(T=n.initialSize)||void 0===T?void 0:T.height,null===(L=n.initialSize)||void 0===L?void 0:L.width)}updateOptions(e){let t;if(void 0!==e.paddingBottom&&(this.paddingBottom=e.paddingBottom,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),void 0!==e.smoothScrolling&&this.scrollable.setSmoothScrollDuration(e.smoothScrolling?125:0),void 0!==e.horizontalScrolling&&(this.horizontalScrolling=e.horizontalScrolling),void 0!==e.scrollByPage&&(t={...null!=t?t:{},scrollByPage:e.scrollByPage}),void 0!==e.mouseWheelScrollSensitivity&&(t={...null!=t?t:{},mouseWheelScrollSensitivity:e.mouseWheelScrollSensitivity}),void 0!==e.fastScrollSensitivity&&(t={...null!=t?t:{},fastScrollSensitivity:e.fastScrollSensitivity}),t&&this.scrollableElement.updateOptions(t),void 0!==e.paddingTop&&e.paddingTop!==this.rangeMap.paddingTop){let t=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),i=e.paddingTop-this.rangeMap.paddingTop;this.rangeMap.paddingTop=e.paddingTop,this.render(t,Math.max(0,this.lastRenderTop+i),this.lastRenderHeight,void 0,void 0,!0),this.setScrollTop(this.lastRenderTop),this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.lastRenderTop,this.lastRenderHeight)}}createRangeMap(e){return new p.Xl(e)}splice(e,t,i=[]){if(this.splicing)throw Error("Can't run recursive splices.");this.splicing=!0;try{return this._splice(e,t,i)}finally{this.splicing=!1,this._onDidChangeContentHeight.fire(this.contentHeight)}}_splice(e,t,i=[]){let n;let s=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),r=g.e.intersect(s,{start:e,end:e+t}),o=new Map;for(let e=r.end-1;e>=r.start;e--){let t=this.items[e];if(t.dragStartDisposable.dispose(),t.checkedDisposable.dispose(),t.row){let i=o.get(t.templateId);!i&&(i=[],o.set(t.templateId,i));let n=this.renderers.get(t.templateId);n&&n.disposeElement&&n.disposeElement(t.element,e,t.row.templateData,t.size),i.unshift(t.row)}t.row=null,t.stale=!0}let l={start:e+t,end:this.items.length},a=g.e.intersect(l,s),d=g.e.relativeComplement(l,s),h=i.map(e=>({id:String(this.itemId++),element:e,templateId:this.virtualDelegate.getTemplateId(e),size:this.virtualDelegate.getHeight(e),width:void 0,hasDynamicHeight:!!this.virtualDelegate.hasDynamicHeight&&this.virtualDelegate.hasDynamicHeight(e),lastDynamicHeightWidth:void 0,row:null,uri:void 0,dropTarget:!1,dragStartDisposable:u.JT.None,checkedDisposable:u.JT.None,stale:!1}));0===e&&t>=this.items.length?(this.rangeMap=this.createRangeMap(this.rangeMap.paddingTop),this.rangeMap.splice(0,0,h),n=this.items,this.items=h):(this.rangeMap.splice(e,t,h),n=this.items.splice(e,t,...h));let c=i.length-t,m=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),f=(0,p.uY)(a,c),_=g.e.intersect(m,f);for(let e=_.start;e<_.end;e++)this.updateItemInDOM(this.items[e],e);for(let e of g.e.relativeComplement(f,m))for(let t=e.start;t<e.end;t++)this.removeItemFromDOM(t);let v=d.map(e=>(0,p.uY)(e,c));for(let t of[{start:e,end:e+i.length},...v].map(e=>g.e.intersect(m,e)).reverse())for(let e=t.end-1;e>=t.start;e--){let t=this.items[e],i=o.get(t.templateId),n=null==i?void 0:i.pop();this.insertItemInDOM(e,n)}for(let e of o.values())for(let t of e)this.cache.release(t);return this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),n.map(e=>e.element)}eventuallyUpdateScrollDimensions(){this._scrollHeight=this.contentHeight,this.rowsContainer.style.height=`${this._scrollHeight}px`,!this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable=(0,s.jL)((0,s.Jj)(this.domNode),()=>{this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight}),this.updateScrollWidth(),this.scrollableElementUpdateDisposable=null}))}eventuallyUpdateScrollWidth(){if(!this.horizontalScrolling){this.scrollableElementWidthDelayer.cancel();return}this.scrollableElementWidthDelayer.trigger(()=>this.updateScrollWidth())}updateScrollWidth(){if(!this.horizontalScrolling)return;let e=0;for(let t of this.items)void 0!==t.width&&(e=Math.max(e,t.width));this.scrollWidth=e,this.scrollableElement.setScrollDimensions({scrollWidth:0===e?0:e+10}),this._onDidChangeContentWidth.fire(this.scrollWidth)}rerender(){if(this.supportDynamicHeights){for(let e of this.items)e.lastDynamicHeightWidth=void 0;this._rerender(this.lastRenderTop,this.lastRenderHeight)}}get length(){return this.items.length}get renderHeight(){return this.scrollableElement.getScrollDimensions().height}get firstVisibleIndex(){return this.getRenderRange(this.lastRenderTop,this.lastRenderHeight).start}element(e){return this.items[e].element}indexOf(e){return this.items.findIndex(t=>t.element===e)}domElement(e){let t=this.items[e].row;return t&&t.domNode}elementHeight(e){return this.items[e].size}elementTop(e){return this.rangeMap.positionAt(e)}indexAt(e){return this.rangeMap.indexAt(e)}indexAfter(e){return this.rangeMap.indexAfter(e)}layout(e,t){let i={height:"number"==typeof e?e:(0,s.If)(this.domNode)};this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,i.scrollHeight=this.scrollHeight),this.scrollableElement.setScrollDimensions(i),void 0!==t&&(this.renderWidth=t,this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight)),this.horizontalScrolling&&this.scrollableElement.setScrollDimensions({width:"number"==typeof t?t:(0,s.FK)(this.domNode)})}render(e,t,i,n,s,r=!1){let o=this.getRenderRange(t,i),l=g.e.relativeComplement(o,e).reverse(),a=g.e.relativeComplement(e,o);if(r){let t=g.e.intersect(e,o);for(let e=t.start;e<t.end;e++)this.updateItemInDOM(this.items[e],e)}this.cache.transact(()=>{for(let e of a)for(let t=e.start;t<e.end;t++)this.removeItemFromDOM(t);for(let e of l)for(let t=e.end-1;t>=e.start;t--)this.insertItemInDOM(t)}),void 0!==n&&(this.rowsContainer.style.left=`-${n}px`),this.rowsContainer.style.top=`-${t}px`,this.horizontalScrolling&&void 0!==s&&(this.rowsContainer.style.width=`${Math.max(s,this.renderWidth)}px`),this.lastRenderTop=t,this.lastRenderHeight=i}insertItemInDOM(e,t){var i,n,r;let o=this.items[e];if(!o.row){if(t)o.row=t,o.stale=!0;else{let e=this.cache.alloc(o.templateId);o.row=e.row,o.stale||(o.stale=e.isReusingConnectedDomNode)}}let l=this.accessibilityProvider.getRole(o.element)||"listitem";o.row.domNode.setAttribute("role",l);let a=this.accessibilityProvider.isChecked(o.element);if("boolean"==typeof a)o.row.domNode.setAttribute("aria-checked",String(!!a));else if(a){let e=e=>o.row.domNode.setAttribute("aria-checked",String(!!e));e(a.value),o.checkedDisposable=a.onDidChange(()=>e(a.value))}if(o.stale||!o.row.domNode.parentElement){let t=null!==(r=null===(n=null===(i=this.items.at(e+1))||void 0===i?void 0:i.row)||void 0===n?void 0:n.domNode)&&void 0!==r?r:null;(o.row.domNode.parentElement!==this.rowsContainer||o.row.domNode.nextElementSibling!==t)&&this.rowsContainer.insertBefore(o.row.domNode,t),o.stale=!1}this.updateItemInDOM(o,e);let d=this.renderers.get(o.templateId);if(!d)throw Error(`No renderer found for template id ${o.templateId}`);null==d||d.renderElement(o.element,e,o.row.templateData,o.size);let h=this.dnd.getDragURI(o.element);o.dragStartDisposable.dispose(),o.row.domNode.draggable=!!h,h&&(o.dragStartDisposable=(0,s.nm)(o.row.domNode,"dragstart",e=>this.onDragStart(o.element,h,e))),this.horizontalScrolling&&(this.measureItemWidth(o),this.eventuallyUpdateScrollWidth())}measureItemWidth(e){if(!e.row||!e.row.domNode)return;e.row.domNode.style.width="fit-content",e.width=(0,s.FK)(e.row.domNode);let t=(0,s.Jj)(e.row.domNode).getComputedStyle(e.row.domNode);t.paddingLeft&&(e.width+=parseFloat(t.paddingLeft)),t.paddingRight&&(e.width+=parseFloat(t.paddingRight)),e.row.domNode.style.width=""}updateItemInDOM(e,t){e.row.domNode.style.top=`${this.elementTop(t)}px`,this.setRowHeight&&(e.row.domNode.style.height=`${e.size}px`),this.setRowLineHeight&&(e.row.domNode.style.lineHeight=`${e.size}px`),e.row.domNode.setAttribute("data-index",`${t}`),e.row.domNode.setAttribute("data-last-element",t===this.length-1?"true":"false"),e.row.domNode.setAttribute("data-parity",t%2==0?"even":"odd"),e.row.domNode.setAttribute("aria-setsize",String(this.accessibilityProvider.getSetSize(e.element,t,this.length))),e.row.domNode.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(e.element,t))),e.row.domNode.setAttribute("id",this.getElementDomId(t)),e.row.domNode.classList.toggle("drop-target",e.dropTarget)}removeItemFromDOM(e){let t=this.items[e];if(t.dragStartDisposable.dispose(),t.checkedDisposable.dispose(),t.row){let i=this.renderers.get(t.templateId);i&&i.disposeElement&&i.disposeElement(t.element,e,t.row.templateData,t.size),this.cache.release(t.row),t.row=null}this.horizontalScrolling&&this.eventuallyUpdateScrollWidth()}getScrollTop(){return this.scrollableElement.getScrollPosition().scrollTop}setScrollTop(e,t){this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),this.scrollableElement.setScrollPosition({scrollTop:e,reuseAnimation:t})}get scrollTop(){return this.getScrollTop()}set scrollTop(e){this.setScrollTop(e)}get scrollHeight(){return this._scrollHeight+(this.horizontalScrolling?10:0)+this.paddingBottom}get onMouseClick(){return c.ju.map(this.disposables.add(new r.Y(this.domNode,"click")).event,e=>this.toMouseEvent(e),this.disposables)}get onMouseDblClick(){return c.ju.map(this.disposables.add(new r.Y(this.domNode,"dblclick")).event,e=>this.toMouseEvent(e),this.disposables)}get onMouseMiddleClick(){return c.ju.filter(c.ju.map(this.disposables.add(new r.Y(this.domNode,"auxclick")).event,e=>this.toMouseEvent(e),this.disposables),e=>1===e.browserEvent.button,this.disposables)}get onMouseDown(){return c.ju.map(this.disposables.add(new r.Y(this.domNode,"mousedown")).event,e=>this.toMouseEvent(e),this.disposables)}get onMouseOver(){return c.ju.map(this.disposables.add(new r.Y(this.domNode,"mouseover")).event,e=>this.toMouseEvent(e),this.disposables)}get onMouseOut(){return c.ju.map(this.disposables.add(new r.Y(this.domNode,"mouseout")).event,e=>this.toMouseEvent(e),this.disposables)}get onContextMenu(){return c.ju.any(c.ju.map(this.disposables.add(new r.Y(this.domNode,"contextmenu")).event,e=>this.toMouseEvent(e),this.disposables),c.ju.map(this.disposables.add(new r.Y(this.domNode,o.t.Contextmenu)).event,e=>this.toGestureEvent(e),this.disposables))}get onTouchStart(){return c.ju.map(this.disposables.add(new r.Y(this.domNode,"touchstart")).event,e=>this.toTouchEvent(e),this.disposables)}get onTap(){return c.ju.map(this.disposables.add(new r.Y(this.rowsContainer,o.t.Tap)).event,e=>this.toGestureEvent(e),this.disposables)}toMouseEvent(e){let t=this.getItemIndexFromEventTarget(e.target||null),i=void 0===t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element}}toTouchEvent(e){let t=this.getItemIndexFromEventTarget(e.target||null),i=void 0===t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element}}toGestureEvent(e){let t=this.getItemIndexFromEventTarget(e.initialTarget||null),i=void 0===t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element}}toDragEvent(e){let t=this.getItemIndexFromEventTarget(e.target||null),i=void 0===t?void 0:this.items[t],n=i&&i.element,s=this.getTargetSector(e,t);return{browserEvent:e,index:t,element:n,sector:s}}onScroll(e){try{let t=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight);this.render(t,e.scrollTop,e.height,e.scrollLeft,e.scrollWidth),this.supportDynamicHeights&&this._rerender(e.scrollTop,e.height,e.inSmoothScrolling)}catch(t){throw console.error("Got bad scroll event:",e),t}}onTouchChange(e){e.preventDefault(),e.stopPropagation(),this.scrollTop-=e.translationY}onDragStart(e,t,i){var r,o;if(!i.dataTransfer)return;let l=this.dnd.getDragElements(e);if(i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setData(n.g.TEXT,t),i.dataTransfer.setDragImage){let e;this.dnd.getDragLabel&&(e=this.dnd.getDragLabel(l,i)),void 0===e&&(e=String(l.length));let t=(0,s.$)(".monaco-drag-image");t.textContent=e;let n=(e=>{for(;e&&!e.classList.contains("monaco-workbench");)e=e.parentElement;return e||this.domNode.ownerDocument})(this.domNode);n.appendChild(t),i.dataTransfer.setDragImage(t,-10,-10),setTimeout(()=>n.removeChild(t),0)}this.domNode.classList.add("dragging"),this.currentDragData=new S(l),C.CurrentDragAndDropData=new N(l),null===(o=(r=this.dnd).onDragStart)||void 0===o||o.call(r,this.currentDragData,i)}onDragOver(e){var t,i,n,s;let r;if(e.browserEvent.preventDefault(),this.onDragLeaveTimeout.dispose(),C.CurrentDragAndDropData&&"vscode-ui"===C.CurrentDragAndDropData.getData())return!1;if(this.setupDragAndDropScrollTopAnimation(e.browserEvent),!e.browserEvent.dataTransfer)return!1;if(!this.currentDragData){if(C.CurrentDragAndDropData)this.currentDragData=C.CurrentDragAndDropData;else{if(!e.browserEvent.dataTransfer.types)return!1;this.currentDragData=new T}}let o=this.dnd.onDragOver(this.currentDragData,e.element,e.index,e.sector,e.browserEvent);if(this.canDrop="boolean"==typeof o?o:o.accept,!this.canDrop)return this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),!1;e.browserEvent.dataTransfer.dropEffect="boolean"!=typeof o&&(null===(t=o.effect)||void 0===t?void 0:t.type)===0?"copy":"move",r="boolean"!=typeof o&&o.feedback?o.feedback:void 0===e.index?[-1]:[e.index],r=-1===(r=(0,a.EB)(r).filter(e=>e>=-1&&e<this.length).sort((e,t)=>e-t))[0]?[-1]:r;let l="boolean"!=typeof o&&o.effect&&o.effect.position?o.effect.position:"drop-target";if(n=this.currentDragFeedback,s=r,(Array.isArray(n)&&Array.isArray(s)?(0,a.fS)(n,s):n===s)&&this.currentDragFeedbackPosition===l)return!0;if(this.currentDragFeedback=r,this.currentDragFeedbackPosition=l,this.currentDragFeedbackDisposable.dispose(),-1===r[0])this.domNode.classList.add(l),this.rowsContainer.classList.add(l),this.currentDragFeedbackDisposable=(0,u.OF)(()=>{this.domNode.classList.remove(l),this.rowsContainer.classList.remove(l)});else{if(r.length>1&&"drop-target"!==l)throw Error("Can't use multiple feedbacks with position different than 'over'");for(let e of("drop-target-after"===l&&r[0]<this.length-1&&(r[0]+=1,l="drop-target-before"),r)){let t=this.items[e];t.dropTarget=!0,null===(i=t.row)||void 0===i||i.domNode.classList.add(l)}this.currentDragFeedbackDisposable=(0,u.OF)(()=>{var e;for(let t of r){let i=this.items[t];i.dropTarget=!1,null===(e=i.row)||void 0===e||e.domNode.classList.remove(l)}})}return!0}onDragLeave(e){var t,i;this.onDragLeaveTimeout.dispose(),this.onDragLeaveTimeout=(0,d.Vg)(()=>this.clearDragOverFeedback(),100,this.disposables),this.currentDragData&&(null===(i=(t=this.dnd).onDragLeave)||void 0===i||i.call(t,this.currentDragData,e.element,e.index,e.browserEvent))}onDrop(e){if(!this.canDrop)return;let t=this.currentDragData;this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.domNode.classList.remove("dragging"),this.currentDragData=void 0,C.CurrentDragAndDropData=void 0,t&&e.browserEvent.dataTransfer&&(e.browserEvent.preventDefault(),t.update(e.browserEvent.dataTransfer),this.dnd.drop(t,e.element,e.index,e.sector,e.browserEvent))}onDragEnd(e){var t,i;this.canDrop=!1,this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.domNode.classList.remove("dragging"),this.currentDragData=void 0,C.CurrentDragAndDropData=void 0,null===(i=(t=this.dnd).onDragEnd)||void 0===i||i.call(t,e)}clearDragOverFeedback(){this.currentDragFeedback=void 0,this.currentDragFeedbackPosition=void 0,this.currentDragFeedbackDisposable.dispose(),this.currentDragFeedbackDisposable=u.JT.None}setupDragAndDropScrollTopAnimation(e){if(!this.dragOverAnimationDisposable){let e=(0,s.xQ)(this.domNode).top;this.dragOverAnimationDisposable=(0,s.jt)((0,s.Jj)(this.domNode),this.animateDragAndDropScrollTop.bind(this,e))}this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationStopDisposable=(0,d.Vg)(()=>{this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)},1e3,this.disposables),this.dragOverMouseY=e.pageY}animateDragAndDropScrollTop(e){if(void 0===this.dragOverMouseY)return;let t=this.dragOverMouseY-e,i=this.renderHeight-35;t<35?this.scrollTop+=Math.max(-14,Math.floor(.3*(t-35))):t>i&&(this.scrollTop+=Math.min(14,Math.floor(.3*(t-i))))}teardownDragAndDropScrollTopAnimation(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)}getTargetSector(e,t){if(void 0===t)return;let i=e.offsetY/this.items[t].size;return(0,v.uZ)(Math.floor(i/.25),0,3)}getItemIndexFromEventTarget(e){let t=this.scrollableElement.getDomNode(),i=e;for(;i instanceof HTMLElement&&i!==this.rowsContainer&&t.contains(i);){let e=i.getAttribute("data-index");if(e){let t=Number(e);if(!isNaN(t))return t}i=i.parentElement}}getRenderRange(e,t){return{start:this.rangeMap.indexAt(e),end:this.rangeMap.indexAfter(e+t-1)}}_rerender(e,t,i){let n,s;let r=this.getRenderRange(e,t);e===this.elementTop(r.start)?(n=r.start,s=0):r.end-r.start>1&&(n=r.start+1,s=this.elementTop(n)-e);let o=0;for(;;){let l=this.getRenderRange(e,t),a=!1;for(let e=l.start;e<l.end;e++){let t=this.probeDynamicHeight(e);0!==t&&this.rangeMap.splice(e,1,[this.items[e]]),o+=t,a=a||0!==t}if(!a){for(let e of(0!==o&&this.eventuallyUpdateScrollDimensions(),g.e.relativeComplement(r,l)))for(let t=e.start;t<e.end;t++)this.items[t].row&&this.removeItemFromDOM(t);for(let e of g.e.relativeComplement(l,r).reverse())for(let t=e.end-1;t>=e.start;t--)this.insertItemInDOM(t);for(let e=l.start;e<l.end;e++)this.items[e].row&&this.updateItemInDOM(this.items[e],e);if("number"==typeof n){let t=this.scrollable.getFutureScrollPosition().scrollTop-e,r=this.elementTop(n)-s+t;this.setScrollTop(r,i)}this._onDidChangeContentHeight.fire(this.contentHeight);return}}}probeDynamicHeight(e){var t,i,n;let r=this.items[e];if(this.virtualDelegate.getDynamicHeight){let e=this.virtualDelegate.getDynamicHeight(r.element);if(null!==e){let t=r.size;return r.size=e,r.lastDynamicHeightWidth=this.renderWidth,e-t}}if(!r.hasDynamicHeight||r.lastDynamicHeightWidth===this.renderWidth||this.virtualDelegate.hasDynamicHeight&&!this.virtualDelegate.hasDynamicHeight(r.element))return 0;let o=r.size;if(r.row)return r.row.domNode.style.height="",r.size=r.row.domNode.offsetHeight,0===r.size&&!(0,s.jg)(r.row.domNode,(0,s.Jj)(r.row.domNode).document.body)&&console.warn("Measuring item node that is not in DOM! Add ListView to the DOM before measuring row height!"),r.lastDynamicHeightWidth=this.renderWidth,r.size-o;let{row:l}=this.cache.alloc(r.templateId);l.domNode.style.height="",this.rowsContainer.appendChild(l.domNode);let a=this.renderers.get(r.templateId);if(!a)throw new _.he("Missing renderer for templateId: "+r.templateId);return a.renderElement(r.element,e,l.templateData,void 0),r.size=l.domNode.offsetHeight,null===(t=a.disposeElement)||void 0===t||t.call(a,r.element,e,l.templateData,void 0),null===(n=(i=this.virtualDelegate).setDynamicHeight)||void 0===n||n.call(i,r.element,r.size),r.lastDynamicHeightWidth=this.renderWidth,this.rowsContainer.removeChild(l.domNode),this.cache.release(l),r.size-o}getElementDomId(e){return`${this.domId}_${e}`}dispose(){var e,t;for(let t of this.items)if(t.dragStartDisposable.dispose(),t.checkedDisposable.dispose(),t.row){let i=this.renderers.get(t.row.templateId);i&&(null===(e=i.disposeElement)||void 0===e||e.call(i,t.element,-1,t.row.templateData,void 0),i.disposeTemplate(t.row.templateData))}this.items=[],this.domNode&&this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),null===(t=this.dragOverAnimationDisposable)||void 0===t||t.dispose(),this.disposables.dispose()}}R.InstanceCount=0,E([h.H],R.prototype,"onMouseClick",null),E([h.H],R.prototype,"onMouseDblClick",null),E([h.H],R.prototype,"onMouseMiddleClick",null),E([h.H],R.prototype,"onMouseDown",null),E([h.H],R.prototype,"onMouseOver",null),E([h.H],R.prototype,"onMouseOut",null),E([h.H],R.prototype,"onContextMenu",null),E([h.H],R.prototype,"onTouchStart",null),E([h.H],R.prototype,"onTap",null)},82609:function(e,t,i){"use strict";i.d(t,{Y:function(){return r}});var n=i("1966"),s=i("37764");class r extends s.JT{constructor(e,t,i){super(),this._visibility=e,this._visibleClassName=t,this._invisibleClassName=i,this._domNode=null,this._isVisible=!1,this._isNeeded=!1,this._rawShouldBeVisible=!1,this._shouldBeVisible=!1,this._revealTimer=this._register(new n._F)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this._updateShouldBeVisible())}setShouldBeVisible(e){this._rawShouldBeVisible=e,this._updateShouldBeVisible()}_applyVisibilitySetting(){return 2!==this._visibility&&(3===this._visibility||this._rawShouldBeVisible)}_updateShouldBeVisible(){let e=this._applyVisibilitySetting();this._shouldBeVisible!==e&&(this._shouldBeVisible=e,this.ensureVisibility())}setIsNeeded(e){this._isNeeded!==e&&(this._isNeeded=e,this.ensureVisibility())}setDomNode(e){this._domNode=e,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)}ensureVisibility(){if(!this._isNeeded){this._hide(!1);return}this._shouldBeVisible?this._reveal():this._hide(!0)}_reveal(){!this._isVisible&&(this._isVisible=!0,this._revealTimer.setIfNotSet(()=>{var e;null===(e=this._domNode)||void 0===e||e.setClassName(this._visibleClassName)},0))}_hide(e){var t;this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,null===(t=this._domNode)||void 0===t||t.setClassName(this._invisibleClassName+(e?" fade":"")))}}},65910:function(e,t,i){"use strict";function n(e,t){let i=function(e,t,i=e.length-1){for(let n=i;n>=0;n--)if(t(e[n]))return n;return -1}(e,t);if(-1!==i)return e[i]}i.d(t,{BS:function(){return h},Fr:function(){return g},J_:function(){return l},Jw:function(){return r},Y0:function(){return u},b1:function(){return a},cn:function(){return o},dF:function(){return n},hV:function(){return d},ti:function(){return s},vm:function(){return c}});function s(e,t){let i=r(e,t);return -1===i?void 0:e[i]}function r(e,t,i=0,n=e.length){let s=i,r=n;for(;s<r;){let i=Math.floor((s+r)/2);t(e[i])?s=i+1:r=i}return s-1}function o(e,t){let i=l(e,t);return i===e.length?void 0:e[i]}function l(e,t,i=0,n=e.length){let s=i,r=n;for(;s<r;){let i=Math.floor((s+r)/2);t(e[i])?r=i:s=i+1}return s}class a{constructor(e){this._array=e,this._findLastMonotonousLastIdx=0}findLastMonotonous(e){if(a.assertInvariants){if(this._prevFindLastPredicate){for(let t of this._array)if(this._prevFindLastPredicate(t)&&!e(t))throw Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this._prevFindLastPredicate=e}let t=r(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=t+1,-1===t?void 0:this._array[t]}}function d(e,t){if(0===e.length)return;let i=e[0];for(let n=1;n<e.length;n++){let s=e[n];t(s,i)>0&&(i=s)}return i}function h(e,t){if(0===e.length)return;let i=e[0];for(let n=1;n<e.length;n++){let s=e[n];t(s,i)>=0&&(i=s)}return i}function c(e,t){return d(e,(e,i)=>-t(e,i))}function u(e,t){if(0===e.length)return -1;let i=0;for(let n=1;n<e.length;n++)t(e[n],e[i])>0&&(i=n);return i}function g(e,t){for(let i of e){let e=t(i);if(void 0!==e)return e}}a.assertInvariants=!1},26089:function(e,t,i){"use strict";i.d(t,{DM:function(){return a},eZ:function(){return l},ok:function(){return s},vE:function(){return r},wN:function(){return o}});var n=i("45802");function s(e,t){if(!e)throw Error(t?`Assertion failed (${t})`:"Assertion Failed")}function r(e,t="Unreachable"){throw Error(t)}function o(e){!e&&(0,n.dL)(new n.he("Soft Assertion Failed"))}function l(e){!e()&&(e(),(0,n.dL)(new n.he("Assertion Failed")))}function a(e,t){let i=0;for(;i<e.length-1;){let n=e[i];if(!t(n,e[i+1]))return!1;i++}return!0}},69835:function(e,t,i){"use strict";function n(e){return e}i.d(t,{bQ:function(){return r},t2:function(){return s}});class s{constructor(e,t){this.lastCache=void 0,this.lastArgKey=void 0,"function"==typeof e?(this._fn=e,this._computeKey=n):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){let t=this._computeKey(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this._fn(e)),this.lastCache}}class r{get cachedValues(){return this._map}constructor(e,t){this._map=new Map,this._map2=new Map,"function"==typeof e?(this._fn=e,this._computeKey=n):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){let t=this._computeKey(e);if(this._map2.has(t))return this._map2.get(t);let i=this._fn(e);return this._map.set(e,i),this._map2.set(t,i),i}}},41014:function(e,t,i){"use strict";i.d(t,{y:function(){return function e(t=null,i=!1){if(!t)return r.NC("error.defaultMessage","An unknown error occurred. Please consult the log for more details.");if(Array.isArray(t)){let s=n.kX(t),o=e(s[0],i);return s.length>1?r.NC("error.moreErrors","{0} ({1} errors in total)",o,s.length):o}if(s.HD(t))return t;if(t.detail){let e=t.detail;if(e.error)return o(e.error,i);if(e.exception)return o(e.exception,i)}return t.stack?o(t,i):t.message?t.message:r.NC("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}}});var n=i("47983"),s=i("67414"),r=i("94479");function o(e,t){return t&&(e.stack||e.stacktrace)?r.NC("stackTrace.format","{0}: {1}",a(e),l(e.stack)||l(e.stacktrace)):a(e)}function l(e){return Array.isArray(e)?e.join("\n"):e}function a(e){return"ERR_UNC_HOST_NOT_ALLOWED"===e.code?`${e.message}. Please update the 'security.allowedUNCHosts' setting if you want to allow this host.`:"string"==typeof e.code&&"number"==typeof e.errno&&"string"==typeof e.syscall?r.NC("nodeExceptionMessage","A system error occurred ({0})",e.message):e.message||r.NC("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}},94508:function(e,t,i){"use strict";i.d(t,{KM:function(){return h},ej:function(){return l},fn:function(){return a},oP:function(){return u},yj:function(){return d}});var n=i("3225"),s=i("97147"),r=i("71482");function o(e){return 47===e||92===e}function l(e){return e.replace(/[\\/]/g,n.KR.sep)}function a(e){return -1===e.indexOf("/")&&(e=l(e)),/^[a-zA-Z]:(\/|$)/.test(e)&&(e="/"+e),e}function d(e,t=n.KR.sep){if(!e)return"";let i=e.length,s=e.charCodeAt(0);if(o(s)){if(o(e.charCodeAt(1))&&!o(e.charCodeAt(2))){let n=3,s=3;for(;n<i&&!o(e.charCodeAt(n));n++);if(s!==n&&!o(e.charCodeAt(n+1))){for(n+=1;n<i;n++)if(o(e.charCodeAt(n)))return e.slice(0,n+1).replace(/[\\/]/g,t)}}return t}if(c(s)&&58===e.charCodeAt(1))return o(e.charCodeAt(2))?e.slice(0,2)+t:e.slice(0,2);let r=e.indexOf("://");if(-1!==r){for(r+=3;r<i;r++)if(o(e.charCodeAt(r)))return e.slice(0,r+1)}return""}function h(e,t,i,s=n.ir){if(e===t)return!0;if(!e||!t||t.length>e.length)return!1;if(i){if(!(0,r.ok)(e,t))return!1;if(t.length===e.length)return!0;let i=t.length;return t.charAt(t.length-1)===s&&i--,e.charAt(i)===s}return t.charAt(t.length-1)!==s&&(t+=s),0===e.indexOf(t)}function c(e){return e>=65&&e<=90||e>=97&&e<=122}function u(e,t=s.ED){return!!t&&c(e.charCodeAt(0))&&58===e.charCodeAt(1)}},20522:function(e,t,i){"use strict";i.d(t,{F:function(){return s}});var n=i("98212");let s=new class e{constructor(){this._onDidChange=new n.Q5,this.onDidChange=this._onDidChange.event,this._enabled=!0}get enabled(){return this._enabled}enable(){this._enabled=!0,this._onDidChange.fire()}disable(){this._enabled=!1,this._onDidChange.fire()}}},55278:function(e,t,i){"use strict";var n;i.d(t,{$:function(){return n}}),!function(e){function t(e){return e&&"object"==typeof e&&"function"==typeof e[Symbol.iterator]}e.is=t;let i=Object.freeze([]);function*n(e){yield e}e.empty=function(){return i},e.single=n;e.wrap=function(e){return t(e)?e:n(e)};e.from=function(e){return e||i};e.reverse=function*(e){for(let t=e.length-1;t>=0;t--)yield e[t]};e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done};e.first=function(e){return e[Symbol.iterator]().next().value};e.some=function(e,t){for(let i of e)if(t(i))return!0;return!1};e.find=function(e,t){for(let i of e)if(t(i))return i};e.filter=function*(e,t){for(let i of e)t(i)&&(yield i)};e.map=function*(e,t){let i=0;for(let n of e)yield t(n,i++)};e.concat=function*(...e){for(let t of e)yield*t};e.reduce=function(e,t,i){let n=i;for(let i of e)n=t(n,i);return n};e.slice=function*(e,t,i=e.length){for(t<0&&(t+=e.length),i<0?i+=e.length:i>e.length&&(i=e.length);t<i;t++)yield e[t]};async function s(e){let t=[];for await(let i of e)t.push(i);return Promise.resolve(t)}e.consume=function(t,i=Number.POSITIVE_INFINITY){let n=[];if(0===i)return[n,t];let s=t[Symbol.iterator]();for(let t=0;t<i;t++){let t=s.next();if(t.done)return[n,e.empty()];n.push(t.value)}return[n,{[Symbol.iterator]:()=>s}]},e.asyncToArray=s}(n||(n={}))},7005:function(e,t,i){"use strict";var n,s;i.d(t,{Y9:function(){return o},YQ:function(){return h},ri:function(){return c},z6:function(){return d}});class r{constructor(e,t){this.uri=e,this.value=t}}class o{constructor(e,t){if(this[n]="ResourceMap",e instanceof o)this.map=new Map(e.map),this.toKey=null!=t?t:o.defaultToKey;else{if(Array.isArray(e))for(let[i,n]of(this.map=new Map,this.toKey=null!=t?t:o.defaultToKey,e))this.set(i,n);else this.map=new Map,this.toKey=null!=e?e:o.defaultToKey}}set(e,t){return this.map.set(this.toKey(e),new r(e,t)),this}get(e){var t;return null===(t=this.map.get(this.toKey(e)))||void 0===t?void 0:t.value}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,t){for(let[i,n]of(void 0!==t&&(e=e.bind(t)),this.map))e(n.value,n.uri,this)}*values(){for(let e of this.map.values())yield e.value}*keys(){for(let e of this.map.values())yield e.uri}*entries(){for(let e of this.map.values())yield[e.uri,e.value]}*[(n=Symbol.toStringTag,Symbol.iterator)](){for(let[,e]of this.map)yield[e.uri,e.value]}}o.defaultToKey=e=>e.toString();class l{constructor(){this[s]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var e;return null===(e=this._head)||void 0===e?void 0:e.value}get last(){var e;return null===(e=this._tail)||void 0===e?void 0:e.value}has(e){return this._map.has(e)}get(e,t=0){let i=this._map.get(e);if(i)return 0!==t&&this.touch(i,t),i.value}set(e,t,i=0){let n=this._map.get(e);if(n)n.value=t,0!==i&&this.touch(n,i);else{switch(n={key:e,value:t,next:void 0,previous:void 0},i){case 0:case 2:this.addItemLast(n);break;case 1:this.addItemFirst(n);break;default:this.addItemLast(n)}this._map.set(e,n),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){let t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw Error("Invalid list");let e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){let i=this._state,n=this._head;for(;n;){if(t?e.bind(t)(n.value,n.key,this):e(n.value,n.key,this),this._state!==i)throw Error("LinkedMap got modified during iteration.");n=n.next}}keys(){let e=this,t=this._state,i=this._head,n={[Symbol.iterator]:()=>n,next(){if(e._state!==t)throw Error("LinkedMap got modified during iteration.");if(!i)return{value:void 0,done:!0};{let e={value:i.key,done:!1};return i=i.next,e}}};return n}values(){let e=this,t=this._state,i=this._head,n={[Symbol.iterator]:()=>n,next(){if(e._state!==t)throw Error("LinkedMap got modified during iteration.");if(!i)return{value:void 0,done:!0};{let e={value:i.value,done:!1};return i=i.next,e}}};return n}entries(){let e=this,t=this._state,i=this._head,n={[Symbol.iterator]:()=>n,next(){if(e._state!==t)throw Error("LinkedMap got modified during iteration.");if(!i)return{value:void 0,done:!0};{let e={value:[i.key,i.value],done:!1};return i=i.next,e}}};return n}[(s=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e){this.clear();return}let t=this._head,i=this.size;for(;t&&i>e;)this._map.delete(t.key),t=t.next,i--;this._head=t,this._size=i,t&&(t.previous=void 0),this._state++}trimNew(e){if(e>=this.size)return;if(0===e){this.clear();return}let t=this._tail,i=this.size;for(;t&&i>e;)this._map.delete(t.key),t=t.previous,i--;this._tail=t,this._size=i,t&&(t.next=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(this._head)e.next=this._head,this._head.previous=e;else throw Error("Invalid list")}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(this._tail)e.previous=this._tail,this._tail.next=e;else throw Error("Invalid list")}else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{let t=e.next,i=e.previous;if(!t||!i)throw Error("Invalid list");t.previous=i,i.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw Error("Invalid list");if(1===t||2===t){if(1===t){if(e===this._head)return;let t=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(t.previous=i,i.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(2===t){if(e===this._tail)return;let t=e.next,i=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=i,i.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){let e=[];return this.forEach((t,i)=>{e.push([i,t])}),e}fromJSON(e){for(let[t,i]of(this.clear(),e))this.set(t,i)}}class a extends l{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,t=2){return super.get(e,t)}peek(e){return super.get(e,0)}set(e,t){return super.set(e,t,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}}class d extends a{constructor(e,t=1){super(e,t)}trim(e){this.trimOld(e)}set(e,t){return super.set(e,t),this.checkTrim(),this}}class h{constructor(e){if(this._m1=new Map,this._m2=new Map,e)for(let[t,i]of e)this.set(t,i)}clear(){this._m1.clear(),this._m2.clear()}set(e,t){this._m1.set(e,t),this._m2.set(t,e)}get(e){return this._m1.get(e)}getKey(e){return this._m2.get(e)}delete(e){let t=this._m1.get(e);return void 0!==t&&(this._m1.delete(e),this._m2.delete(t),!0)}keys(){return this._m1.keys()}values(){return this._m1.values()}}class c{constructor(){this.map=new Map}add(e,t){let i=this.map.get(e);!i&&(i=new Set,this.map.set(e,i)),i.add(t)}delete(e,t){let i=this.map.get(e);i&&(i.delete(t),0===i.size&&this.map.delete(e))}forEach(e,t){let i=this.map.get(e);i&&i.forEach(t)}get(e){let t=this.map.get(e);return t?t:new Set}}},6438:function(e,t,i){"use strict";i.d(t,{Gi:function(){return p},Gs:function(){return u},WX:function(){return g},lg:function(){return s},xn:function(){return c}});var n,s,r,o=i("45802"),l=i("97147"),a=i("71482"),d=i("98084"),h=i("3225");function c(e,t){return d.o.isUri(e)?(0,a.qq)(e.scheme,t):(0,a.ok)(e,t+":")}function u(e,...t){return t.some(t=>c(e,t))}(n=s||(s={})).inMemory="inmemory",n.vscode="vscode",n.internal="private",n.walkThrough="walkThrough",n.walkThroughSnippet="walkThroughSnippet",n.http="http",n.https="https",n.file="file",n.mailto="mailto",n.untitled="untitled",n.data="data",n.command="command",n.vscodeRemote="vscode-remote",n.vscodeRemoteResource="vscode-remote-resource",n.vscodeManagedRemoteResource="vscode-managed-remote-resource",n.vscodeUserData="vscode-userdata",n.vscodeCustomEditor="vscode-custom-editor",n.vscodeNotebookCell="vscode-notebook-cell",n.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",n.vscodeNotebookCellOutput="vscode-notebook-cell-output",n.vscodeInteractiveInput="vscode-interactive-input",n.vscodeSettings="vscode-settings",n.vscodeWorkspaceTrust="vscode-workspace-trust",n.vscodeTerminal="vscode-terminal",n.vscodeChatCodeBlock="vscode-chat-code-block",n.vscodeChatCodeCompreBlock="vscode-chat-code-compare-block",n.vscodeChatSesssion="vscode-chat-editor",n.webviewPanel="webview-panel",n.vscodeWebview="vscode-webview",n.extension="extension",n.vscodeFileResource="vscode-file",n.tmp="tmp",n.vsls="vsls",n.vscodeSourceControl="vscode-scm",n.commentsInput="comment",n.codeSetting="code-setting";let g=new class e{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(e){this._preferredWebSchema=e}get _remoteResourcesPath(){return h.KR.join(this._serverRootPath,s.vscodeRemoteResource)}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(t){return o.dL(t),e}let t=e.authority,i=this._hosts[t];i&&-1!==i.indexOf(":")&&-1===i.indexOf("[")&&(i=`[${i}]`);let n=this._ports[t],r=this._connectionTokens[t],a=`path=${encodeURIComponent(e.path)}`;return"string"==typeof r&&(a+=`&tkn=${encodeURIComponent(r)}`),d.o.from({scheme:l.$L?this._preferredWebSchema:s.vscodeRemoteResource,authority:`${i}:${n}`,path:this._remoteResourcesPath,query:a})}};class m{uriToBrowserUri(e){return e.scheme===s.vscodeRemote?g.rewrite(e):e.scheme===s.file&&(l.tY||l.qB===`${s.vscodeFileResource}://${m.FALLBACK_AUTHORITY}`)?e.with({scheme:s.vscodeFileResource,authority:e.authority||m.FALLBACK_AUTHORITY,query:null,fragment:null}):e}}m.FALLBACK_AUTHORITY="vscode-app";let p=new m;!function(e){let t=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);e.CoopAndCoep=Object.freeze(t.get("3"));let i="vscode-coi";e.getHeadersFromQuery=function(e){let n;"string"==typeof e?n=new URL(e).searchParams:e instanceof URL?n=e.searchParams:d.o.isUri(e)&&(n=new URL(e.toString(!0)).searchParams);let s=null==n?void 0:n.get(i);if(s)return t.get(s)};e.addSearchParam=function(e,t,n){if(!globalThis.crossOriginIsolated)return;let s=t&&n?"3":n?"2":"1";e instanceof URLSearchParams?e.set(i,s):e[i]=s}}(r||(r={}))},10361:function(e,t,i){"use strict";let n,s,r;i.d(t,{Bl:function(){return p},DN:function(){return S},Hr:function(){return f},Jn:function(){return h},Ku:function(){return C},MK:function(){return d},Nc:function(){return u},PS:function(){return m},c8:function(){return _},hm:function(){return g},mT:function(){return c},uh:function(){return E}});var o=i("57341"),l=i("45344"),a=i("30908");function d(e){n=e}function h(e){}function c(e){s=e}class u{get TChange(){return null}reportChanges(){this.get()}read(e){return e?e.readObservable(this):this.get()}map(e,t){let i=void 0===t?void 0:e,n=void 0===t?e:t;return s({owner:i,debugName:()=>{let e=(0,l.$P)(n);if(void 0!==e)return e;let t=/^\s*\(?\s*([a-zA-Z_$][a-zA-Z_$0-9]*)\s*\)?\s*=>\s*\1(?:\??)\.([a-zA-Z_$][a-zA-Z_$0-9]*)\s*$/.exec(n.toString());return t?`${this.debugName}.${t[2]}`:i?void 0:`${this.debugName} (mapped)`},debugReferenceFn:n},e=>n(this.read(e),e))}recomputeInitiallyAndOnChange(e,t){return e.add(n(this,t)),this}}class g extends u{constructor(){super(...arguments),this.observers=new Set}addObserver(e){let t=this.observers.size;this.observers.add(e),0===t&&this.onFirstObserverAdded()}removeObserver(e){this.observers.delete(e)&&0===this.observers.size&&this.onLastObserverRemoved()}onFirstObserverAdded(){}onLastObserverRemoved(){}}function m(e,t){let i=new v(e,t);try{e(i)}finally{i.finish()}}function p(e){if(r)e(r);else{let t=new v(e,void 0);r=t;try{e(t)}finally{t.finish(),r=void 0}}}async function f(e,t){let i=new v(e,t);try{await e(i)}finally{i.finish()}}function _(e,t,i){e?t(e):m(t,i)}class v{constructor(e,t){var i;this._fn=e,this._getDebugName=t,this.updatingObservers=[],null===(i=(0,a.jl)())||void 0===i||i.handleBeginTransaction(this)}getDebugName(){return this._getDebugName?this._getDebugName():(0,l.$P)(this._fn)}updateObserver(e,t){this.updatingObservers.push({observer:e,observable:t}),e.beginUpdate(t)}finish(){var e;let t=this.updatingObservers;for(let e=0;e<t.length;e++){let{observer:i,observable:n}=t[e];i.endUpdate(n)}this.updatingObservers=null,null===(e=(0,a.jl)())||void 0===e||e.handleEndTransaction()}}function E(e,t){let i;return new b(i="string"==typeof e?new l.IZ(void 0,e,void 0):new l.IZ(e,void 0,void 0),t,o.ht)}function C(e,t){var i;return new b(new l.IZ(e.owner,e.debugName,void 0),t,null!==(i=e.equalsFn)&&void 0!==i?i:o.ht)}class b extends g{get debugName(){var e;return null!==(e=this._debugNameData.getDebugName(this))&&void 0!==e?e:"ObservableValue"}constructor(e,t,i){super(),this._debugNameData=e,this._equalityComparator=i,this._value=t}get(){return this._value}set(e,t,i){var n;let s;if(!this._equalityComparator(this._value,e)){!t&&(t=s=new v(()=>{},()=>`Setting ${this.debugName}`));try{let s=this._value;for(let r of(this._setValue(e),null===(n=(0,a.jl)())||void 0===n||n.handleObservableChanged(this,{oldValue:s,newValue:e,change:i,didChange:!0,hadValue:!0}),this.observers))t.updateObserver(r,this),r.handleChange(this,i)}finally{s&&s.finish()}}}toString(){return`${this.debugName}: ${this._value}`}_setValue(e){this._value=e}}function S(e,t){let i;return new N(i="string"==typeof e?new l.IZ(void 0,e,void 0):new l.IZ(e,void 0,void 0),t,o.ht)}class N extends b{_setValue(e){this._value!==e&&(this._value&&this._value.dispose(),this._value=e)}dispose(){var e;null===(e=this._value)||void 0===e||e.dispose()}}},71096:function(e,t,i){"use strict";i.d(t,{L:function(){return s},r:function(){return n}});class n{constructor(){this.chunkCount=0,this.chunkOccurrences=new Map,this.documents=new Map}calculateScores(e,t){let i=this.computeEmbedding(e),n=new Map,s=[];for(let[e,r]of this.documents){if(t.isCancellationRequested)return[];for(let t of r.chunks){let r=this.computeSimilarityScore(t,i,n);r>0&&s.push({key:e,score:r})}}return s}static termFrequencies(e){return function(e){var t;let i=new Map;for(let n of e)i.set(n,(null!==(t=i.get(n))&&void 0!==t?t:0)+1);return i}(n.splitTerms(e))}static*splitTerms(e){let t=e=>e.toLowerCase();for(let[i]of e.matchAll(/\b\p{Letter}[\p{Letter}\d]{2,}\b/gu)){yield t(i);let e=i.replace(/([a-z])([A-Z])/g,"$1 $2").split(/\s+/g);if(e.length>1)for(let i of e)i.length>2&&/\p{Letter}{3,}/gu.test(i)&&(yield t(i))}}updateDocuments(e){var t;for(let{key:t}of e)this.deleteDocument(t);for(let i of e){let e=[];for(let s of i.textChunks){let i=n.termFrequencies(s);for(let e of i.keys())this.chunkOccurrences.set(e,(null!==(t=this.chunkOccurrences.get(e))&&void 0!==t?t:0)+1);e.push({text:s,tf:i})}this.chunkCount+=e.length,this.documents.set(i.key,{chunks:e})}return this}deleteDocument(e){let t=this.documents.get(e);if(t)for(let i of(this.documents.delete(e),this.chunkCount-=t.chunks.length,t.chunks))for(let e of i.tf.keys()){let t=this.chunkOccurrences.get(e);if("number"==typeof t){let i=t-1;i<=0?this.chunkOccurrences.delete(e):this.chunkOccurrences.set(e,i)}}}computeSimilarityScore(e,t,i){let n=0;for(let[s,r]of Object.entries(t)){let t=e.tf.get(s);if(!t)continue;let o=i.get(s);"number"!=typeof o&&(o=this.computeIdf(s),i.set(s,o)),n+=t*o*r}return n}computeEmbedding(e){let t=n.termFrequencies(e);return this.computeTfidf(t)}computeIdf(e){var t;let i=null!==(t=this.chunkOccurrences.get(e))&&void 0!==t?t:0;return i>0?Math.log((this.chunkCount+1)/i):0}computeTfidf(e){let t=Object.create(null);for(let[i,n]of e){let e=this.computeIdf(i);e>0&&(t[i]=n*e)}return t}}function s(e){var t,i;let n=e.slice(0);n.sort((e,t)=>t.score-e.score);let s=null!==(i=null===(t=n[0])||void 0===t?void 0:t.score)&&void 0!==i?i:0;if(s>0)for(let e of n)e.score/=s;return n}},98084:function(e,t,i){"use strict";i.d(t,{o:function(){return h},q:function(){return f}});var n=i("3225"),s=i("97147");let r=/^\w[\w\d+.-]*$/,o=/^\//,l=/^\/\//,a="/",d=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class h{static isUri(e){return e instanceof h||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString}constructor(e,t,i,n,s,d=!1){if("object"==typeof e)this.scheme=e.scheme||"",this.authority=e.authority||"",this.path=e.path||"",this.query=e.query||"",this.fragment=e.fragment||"";else{var h,c;this.scheme=(h=e,c=d,h||c?h:"file"),this.authority=t||"",this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==a&&(t=a+t):t=a}return t}(this.scheme,i||""),this.query=n||"",this.fragment=s||"",!function(e,t){if(!e.scheme&&t)throw Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!r.test(e.scheme))throw Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!o.test(e.path))throw Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(l.test(e.path))throw Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}(this,d)}}get fsPath(){return f(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:i,path:n,query:s,fragment:r}=e;return(void 0===t?t=this.scheme:null===t&&(t=""),void 0===i?i=this.authority:null===i&&(i=""),void 0===n?n=this.path:null===n&&(n=""),void 0===s?s=this.query:null===s&&(s=""),void 0===r?r=this.fragment:null===r&&(r=""),t===this.scheme&&i===this.authority&&n===this.path&&s===this.query&&r===this.fragment)?this:new u(t,i,n,s,r)}static parse(e,t=!1){let i=d.exec(e);return i?new u(i[2]||"",E(i[4]||""),E(i[5]||""),E(i[7]||""),E(i[9]||""),t):new u("","","","","")}static file(e){let t="";if(s.ED&&(e=e.replace(/\\/g,a)),e[0]===a&&e[1]===a){let i=e.indexOf(a,2);-1===i?(t=e.substring(2),e=a):(t=e.substring(2,i),e=e.substring(i)||a)}return new u("file",t,e,"","")}static from(e,t){return new u(e.scheme,e.authority,e.path,e.query,e.fragment,t)}static joinPath(e,...t){let i;if(!e.path)throw Error("[UriError]: cannot call joinPath on URI without path");return i=s.ED&&"file"===e.scheme?h.file(n.Ku.join(f(e,!0),...t)).path:n.KR.join(e.path,...t),e.with({path:i})}toString(e=!1){return _(this,e)}toJSON(){return this}static revive(e){var t,i;if(!e)return e;{if(e instanceof h)return e;let n=new u(e);return n._formatted=null!==(t=e.external)&&void 0!==t?t:null,n._fsPath=e._sep===c&&null!==(i=e.fsPath)&&void 0!==i?i:null,n}}}let c=s.ED?1:void 0;class u extends h{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return!this._fsPath&&(this._fsPath=f(this,!1)),this._fsPath}toString(e=!1){return e?_(this,!0):(!this._formatted&&(this._formatted=_(this,!1)),this._formatted)}toJSON(){let e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=c),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}let g={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function m(e,t,i){let n;let s=-1;for(let r=0;r<e.length;r++){let o=e.charCodeAt(r);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o||i&&91===o||i&&93===o||i&&58===o)-1!==s&&(n+=encodeURIComponent(e.substring(s,r)),s=-1),void 0!==n&&(n+=e.charAt(r));else{void 0===n&&(n=e.substr(0,r));let t=g[o];void 0!==t?(-1!==s&&(n+=encodeURIComponent(e.substring(s,r)),s=-1),n+=t):-1===s&&(s=r)}}return -1!==s&&(n+=encodeURIComponent(e.substring(s))),void 0!==n?n:e}function p(e){let t;for(let i=0;i<e.length;i++){let n=e.charCodeAt(i);35===n||63===n?(void 0===t&&(t=e.substr(0,i)),t+=g[n]):void 0!==t&&(t+=e[i])}return void 0!==t?t:e}function f(e,t){let i;return i=e.authority&&e.path.length>1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&90>=e.path.charCodeAt(1)||e.path.charCodeAt(1)>=97&&122>=e.path.charCodeAt(1))&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,s.ED&&(i=i.replace(/\//g,"\\")),i}function _(e,t){let i=t?p:m,n="",{scheme:s,authority:r,path:o,query:l,fragment:d}=e;if(s&&(n+=s+":"),(r||"file"===s)&&(n+=a+a),r){let e=r.indexOf("@");if(-1!==e){let t=r.substr(0,e);r=r.substr(e+1),-1===(e=t.lastIndexOf(":"))?n+=i(t,!1,!1):n+=i(t.substr(0,e),!1,!1)+":"+i(t.substr(e+1),!1,!0),n+="@"}-1===(e=(r=r.toLowerCase()).lastIndexOf(":"))?n+=i(r,!1,!0):n+=i(r.substr(0,e),!1,!0)+r.substr(e)}if(o){if(o.length>=3&&47===o.charCodeAt(0)&&58===o.charCodeAt(2)){let e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&58===o.charCodeAt(1)){let e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}n+=i(o,!0,!1)}return l&&(n+="?"+i(l,!1,!1)),d&&(n+="#"+(t?d:m(d,!1,!1))),n}let v=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function E(e){return e.match(v)?e.replace(v,e=>(function e(t){try{return decodeURIComponent(t)}catch(i){if(t.length>3)return t.substr(0,3)+e(t.substr(3));return t}})(e)):e}},64698:function(e,t,i){"use strict";(0,i("88814").H)({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310"),i.e("471"),i.e("389"),i.e("374")]).then(i.bind(i,"43638"))})},44085:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return n},language:function(){return s}});var n={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},s={defaultToken:"",tokenPostfix:".cypher",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["ALL","AND","AS","ASC","ASCENDING","BY","CALL","CASE","CONTAINS","CREATE","DELETE","DESC","DESCENDING","DETACH","DISTINCT","ELSE","END","ENDS","EXISTS","IN","IS","LIMIT","MANDATORY","MATCH","MERGE","NOT","ON","ON","OPTIONAL","OR","ORDER","REMOVE","RETURN","SET","SKIP","STARTS","THEN","UNION","UNWIND","WHEN","WHERE","WITH","XOR","YIELD"],builtinLiterals:["true","TRUE","false","FALSE","null","NULL"],builtinFunctions:["abs","acos","asin","atan","atan2","avg","ceil","coalesce","collect","cos","cot","count","degrees","e","endNode","exists","exp","floor","head","id","keys","labels","last","left","length","log","log10","lTrim","max","min","nodes","percentileCont","percentileDisc","pi","properties","radians","rand","range","relationships","replace","reverse","right","round","rTrim","sign","sin","size","split","sqrt","startNode","stDev","stDevP","substring","sum","tail","tan","timestamp","toBoolean","toFloat","toInteger","toLower","toString","toUpper","trim","type"],operators:["+","-","*","/","%","^","=","<>","<",">","<=",">=","->","<-","--\x3e","<--"],escapes:/\\(?:[tbnrf\\"'`]|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+/,octaldigits:/[0-7]+/,hexdigits:/[0-9a-fA-F]+/,tokenizer:{root:[[/[{}[\]()]/,"@brackets"],{include:"common"}],common:[{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/:[a-zA-Z_][\w]*/,"type.identifier"],[/[a-zA-Z_][\w]*(?=\()/,{cases:{"@builtinFunctions":"predefined.function"}}],[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":"keyword","@builtinLiterals":"predefined.literal","@default":"identifier"}}],[/`/,"identifier.escape","@identifierBacktick"],[/[;,.:|]/,"delimiter"],[/[<>=%+\-*/^]+/,{cases:{"@operators":"delimiter","@default":""}}]],numbers:[[/-?(@digits)[eE](-?(@digits))?/,"number.float"],[/-?(@digits)?\.(@digits)([eE]-?(@digits))?/,"number.float"],[/-?0x(@hexdigits)/,"number.hex"],[/-?0(@octaldigits)/,"number.octal"],[/-?(@digits)/,"number"]],strings:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@stringDouble"],[/'/,"string","@stringSingle"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/\/\/.*/,"comment"],[/[^/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[/*]/,"comment"]],stringDouble:[[/[^\\"]+/,"string"],[/@escapes/,"string"],[/\\./,"string.invalid"],[/"/,"string","@pop"]],stringSingle:[[/[^\\']+/,"string"],[/@escapes/,"string"],[/\\./,"string.invalid"],[/'/,"string","@pop"]],identifierBacktick:[[/[^\\`]+/,"identifier.escape"],[/@escapes/,"identifier.escape"],[/\\./,"identifier.escape.invalid"],[/`/,"identifier.escape","@pop"]]}}},94587:function(e,t,i){"use strict";(0,i("88814").H)({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310"),i.e("471"),i.e("389"),i.e("374")]).then(i.bind(i,"23937"))})},16440:function(e,t,i){"use strict";(0,i("88814").H)({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310"),i.e("471"),i.e("389"),i.e("374")]).then(i.bind(i,"86036"))})},56603:function(e,t,i){"use strict";(0,i("88814").H)({id:"mdx",extensions:[".mdx"],aliases:["MDX","mdx"],loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310"),i.e("471"),i.e("389"),i.e("374")]).then(i.bind(i,"5060"))})},48105:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return n},language:function(){return s}});var n={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},s={defaultToken:"",tokenPostfix:".perl",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["__DATA__","else","lock","__END__","elsif","lt","__FILE__","eq","__LINE__","exp","ne","sub","__PACKAGE__","for","no","and","foreach","or","unless","cmp","ge","package","until","continue","gt","while","CORE","if","xor","do","le","__DIE__","__WARN__"],builtinFunctions:["-A","END","length","setpgrp","-B","endgrent","link","setpriority","-b","endhostent","listen","setprotoent","-C","endnetent","local","setpwent","-c","endprotoent","localtime","setservent","-d","endpwent","log","setsockopt","-e","endservent","lstat","shift","-f","eof","map","shmctl","-g","eval","mkdir","shmget","-k","exec","msgctl","shmread","-l","exists","msgget","shmwrite","-M","exit","msgrcv","shutdown","-O","fcntl","msgsnd","sin","-o","fileno","my","sleep","-p","flock","next","socket","-r","fork","not","socketpair","-R","format","oct","sort","-S","formline","open","splice","-s","getc","opendir","split","-T","getgrent","ord","sprintf","-t","getgrgid","our","sqrt","-u","getgrnam","pack","srand","-w","gethostbyaddr","pipe","stat","-W","gethostbyname","pop","state","-X","gethostent","pos","study","-x","getlogin","print","substr","-z","getnetbyaddr","printf","symlink","abs","getnetbyname","prototype","syscall","accept","getnetent","push","sysopen","alarm","getpeername","quotemeta","sysread","atan2","getpgrp","rand","sysseek","AUTOLOAD","getppid","read","system","BEGIN","getpriority","readdir","syswrite","bind","getprotobyname","readline","tell","binmode","getprotobynumber","readlink","telldir","bless","getprotoent","readpipe","tie","break","getpwent","recv","tied","caller","getpwnam","redo","time","chdir","getpwuid","ref","times","CHECK","getservbyname","rename","truncate","chmod","getservbyport","require","uc","chomp","getservent","reset","ucfirst","chop","getsockname","return","umask","chown","getsockopt","reverse","undef","chr","glob","rewinddir","UNITCHECK","chroot","gmtime","rindex","unlink","close","goto","rmdir","unpack","closedir","grep","say","unshift","connect","hex","scalar","untie","cos","index","seek","use","crypt","INIT","seekdir","utime","dbmclose","int","select","values","dbmopen","ioctl","semctl","vec","defined","join","semget","wait","delete","keys","semop","waitpid","DESTROY","kill","send","wantarray","die","last","setgrent","warn","dump","lc","sethostent","write","each","lcfirst","setnetent"],builtinFileHandlers:["ARGV","STDERR","STDOUT","ARGVOUT","STDIN","ENV"],builtinVariables:["$!","$^RE_TRIE_MAXBUF","$LAST_REGEXP_CODE_RESULT",'$"',"$^S","$LIST_SEPARATOR","$#","$^T","$MATCH","$$","$^TAINT","$MULTILINE_MATCHING","$%","$^UNICODE","$NR","$&","$^UTF8LOCALE","$OFMT","$'","$^V","$OFS","$(","$^W","$ORS","$)","$^WARNING_BITS","$OS_ERROR","$*","$^WIDE_SYSTEM_CALLS","$OSNAME","$+","$^X","$OUTPUT_AUTO_FLUSH","$,","$_","$OUTPUT_FIELD_SEPARATOR","$-","$`","$OUTPUT_RECORD_SEPARATOR","$.","$a","$PERL_VERSION","$/","$ACCUMULATOR","$PERLDB","$0","$ARG","$PID","$:","$ARGV","$POSTMATCH","$;","$b","$PREMATCH","$<","$BASETIME","$PROCESS_ID","$=","$CHILD_ERROR","$PROGRAM_NAME","$>","$COMPILING","$REAL_GROUP_ID","$?","$DEBUGGING","$REAL_USER_ID","$@","$EFFECTIVE_GROUP_ID","$RS","$[","$EFFECTIVE_USER_ID","$SUBSCRIPT_SEPARATOR","$\\","$EGID","$SUBSEP","$]","$ERRNO","$SYSTEM_FD_MAX","$^","$EUID","$UID","$^A","$EVAL_ERROR","$WARNING","$^C","$EXCEPTIONS_BEING_CAUGHT","$|","$^CHILD_ERROR_NATIVE","$EXECUTABLE_NAME","$~","$^D","$EXTENDED_OS_ERROR","%!","$^E","$FORMAT_FORMFEED","%^H","$^ENCODING","$FORMAT_LINE_BREAK_CHARACTERS","%ENV","$^F","$FORMAT_LINES_LEFT","%INC","$^H","$FORMAT_LINES_PER_PAGE","%OVERLOAD","$^I","$FORMAT_NAME","%SIG","$^L","$FORMAT_PAGE_NUMBER","@+","$^M","$FORMAT_TOP_NAME","@-","$^N","$GID","@_","$^O","$INPLACE_EDIT","@ARGV","$^OPEN","$INPUT_LINE_NUMBER","@INC","$^P","$INPUT_RECORD_SEPARATOR","@LAST_MATCH_START","$^R","$LAST_MATCH_END","$^RE_DEBUG_FLAGS","$LAST_PAREN_MATCH"],symbols:/[:+\-\^*$&%@=<>!?|\/~\.]/,quoteLikeOps:["qr","m","s","q","qq","qx","qw","tr","y"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[{include:"@whitespace"},[/[a-zA-Z\-_][\w\-_]*/,{cases:{"@keywords":"keyword","@builtinFunctions":"type.identifier","@builtinFileHandlers":"variable.predefined","@quoteLikeOps":{token:"@rematch",next:"quotedConstructs"},"@default":""}}],[/[\$@%][*@#?\+\-\$!\w\\\^><~:;\.]+/,{cases:{"@builtinVariables":"variable.predefined","@default":"variable"}}],{include:"@strings"},{include:"@dblStrings"},{include:"@perldoc"},{include:"@heredoc"},[/[{}\[\]()]/,"@brackets"],[/[\/](?:(?:\[(?:\\]|[^\]])+\])|(?:\\\/|[^\]\/]))*[\/]\w*\s*(?=[).,;]|$)/,"regexp"],[/@symbols/,"operators"],{include:"@numbers"},[/[,;]/,"delimiter"]],whitespace:[[/\s+/,"white"],[/(^#!.*$)/,"metatag"],[/(^#.*$)/,"comment"]],numbers:[[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,"number.hex"],[/\d+/,"number"]],strings:[[/'/,"string","@stringBody"]],stringBody:[[/'/,"string","@popall"],[/\\'/,"string.escape"],[/./,"string"]],dblStrings:[[/"/,"string","@dblStringBody"]],dblStringBody:[[/"/,"string","@popall"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],{include:"@variables"},[/./,"string"]],quotedConstructs:[[/(q|qw|tr|y)\s*\(/,{token:"string.delim",switchTo:"@qstring.(.)"}],[/(q|qw|tr|y)\s*\[/,{token:"string.delim",switchTo:"@qstring.[.]"}],[/(q|qw|tr|y)\s*\{/,{token:"string.delim",switchTo:"@qstring.{.}"}],[/(q|qw|tr|y)\s*</,{token:"string.delim",switchTo:"@qstring.<.>"}],[/(q|qw|tr|y)#/,{token:"string.delim",switchTo:"@qstring.#.#"}],[/(q|qw|tr|y)\s*([^A-Za-z0-9#\s])/,{token:"string.delim",switchTo:"@qstring.$2.$2"}],[/(q|qw|tr|y)\s+(\w)/,{token:"string.delim",switchTo:"@qstring.$2.$2"}],[/(qr|m|s)\s*\(/,{token:"regexp.delim",switchTo:"@qregexp.(.)"}],[/(qr|m|s)\s*\[/,{token:"regexp.delim",switchTo:"@qregexp.[.]"}],[/(qr|m|s)\s*\{/,{token:"regexp.delim",switchTo:"@qregexp.{.}"}],[/(qr|m|s)\s*</,{token:"regexp.delim",switchTo:"@qregexp.<.>"}],[/(qr|m|s)#/,{token:"regexp.delim",switchTo:"@qregexp.#.#"}],[/(qr|m|s)\s*([^A-Za-z0-9_#\s])/,{token:"regexp.delim",switchTo:"@qregexp.$2.$2"}],[/(qr|m|s)\s+(\w)/,{token:"regexp.delim",switchTo:"@qregexp.$2.$2"}],[/(qq|qx)\s*\(/,{token:"string.delim",switchTo:"@qqstring.(.)"}],[/(qq|qx)\s*\[/,{token:"string.delim",switchTo:"@qqstring.[.]"}],[/(qq|qx)\s*\{/,{token:"string.delim",switchTo:"@qqstring.{.}"}],[/(qq|qx)\s*</,{token:"string.delim",switchTo:"@qqstring.<.>"}],[/(qq|qx)#/,{token:"string.delim",switchTo:"@qqstring.#.#"}],[/(qq|qx)\s*([^A-Za-z0-9#\s])/,{token:"string.delim",switchTo:"@qqstring.$2.$2"}],[/(qq|qx)\s+(\w)/,{token:"string.delim",switchTo:"@qqstring.$2.$2"}]],qstring:[[/\\./,"string.escape"],[/./,{cases:{"$#==$S3":{token:"string.delim",next:"@pop"},"$#==$S2":{token:"string.delim",next:"@push"},"@default":"string"}}]],qregexp:[{include:"@variables"},[/\\./,"regexp.escape"],[/./,{cases:{"$#==$S3":{token:"regexp.delim",next:"@regexpModifiers"},"$#==$S2":{token:"regexp.delim",next:"@push"},"@default":"regexp"}}]],regexpModifiers:[[/[msixpodualngcer]+/,{token:"regexp.modifier",next:"@popall"}]],qqstring:[{include:"@variables"},{include:"@qstring"}],heredoc:[[/<<\s*['"`]?([\w\-]+)['"`]?/,{token:"string.heredoc.delimiter",next:"@heredocBody.$1"}]],heredocBody:[[/^([\w\-]+)$/,{cases:{"$1==$S2":[{token:"string.heredoc.delimiter",next:"@popall"}],"@default":"string.heredoc"}}],[/./,"string.heredoc"]],perldoc:[[/^=\w/,"comment.doc","@perldocBody"]],perldocBody:[[/^=cut\b/,"type.identifier","@popall"],[/./,"comment.doc"]],variables:[[/\$\w+/,"variable"],[/@\w+/,"variable"],[/%\w+/,"variable"]]}}},18704:function(e,t,i){"use strict";(0,i("88814").H)({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310"),i.e("471"),i.e("389"),i.e("374")]).then(i.bind(i,"12605"))})},41929:function(e,t,i){"use strict";(0,i("88814").H)({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310"),i.e("471"),i.e("389"),i.e("374")]).then(i.bind(i,"13473"))})},56981:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return n},language:function(){return s}});var n={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},s={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["ABORT","ABSOLUTE","ACTION","ADA","ADD","AFTER","ALL","ALLOCATE","ALTER","ALWAYS","ANALYZE","AND","ANY","ARE","AS","ASC","ASSERTION","AT","ATTACH","AUTHORIZATION","AUTOINCREMENT","AVG","BACKUP","BEFORE","BEGIN","BETWEEN","BIT","BIT_LENGTH","BOTH","BREAK","BROWSE","BULK","BY","CASCADE","CASCADED","CASE","CAST","CATALOG","CHAR","CHARACTER","CHARACTER_LENGTH","CHAR_LENGTH","CHECK","CHECKPOINT","CLOSE","CLUSTERED","COALESCE","COLLATE","COLLATION","COLUMN","COMMIT","COMPUTE","CONFLICT","CONNECT","CONNECTION","CONSTRAINT","CONSTRAINTS","CONTAINS","CONTAINSTABLE","CONTINUE","CONVERT","CORRESPONDING","COUNT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DATE","DAY","DBCC","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFERRABLE","DEFERRED","DELETE","DENY","DESC","DESCRIBE","DESCRIPTOR","DETACH","DIAGNOSTICS","DISCONNECT","DISK","DISTINCT","DISTRIBUTED","DO","DOMAIN","DOUBLE","DROP","DUMP","EACH","ELSE","END","END-EXEC","ERRLVL","ESCAPE","EXCEPT","EXCEPTION","EXCLUDE","EXCLUSIVE","EXEC","EXECUTE","EXISTS","EXIT","EXPLAIN","EXTERNAL","EXTRACT","FAIL","FALSE","FETCH","FILE","FILLFACTOR","FILTER","FIRST","FLOAT","FOLLOWING","FOR","FOREIGN","FORTRAN","FOUND","FREETEXT","FREETEXTTABLE","FROM","FULL","FUNCTION","GENERATED","GET","GLOB","GLOBAL","GO","GOTO","GRANT","GROUP","GROUPS","HAVING","HOLDLOCK","HOUR","IDENTITY","IDENTITYCOL","IDENTITY_INSERT","IF","IGNORE","IMMEDIATE","IN","INCLUDE","INDEX","INDEXED","INDICATOR","INITIALLY","INNER","INPUT","INSENSITIVE","INSERT","INSTEAD","INT","INTEGER","INTERSECT","INTERVAL","INTO","IS","ISNULL","ISOLATION","JOIN","KEY","KILL","LANGUAGE","LAST","LEADING","LEFT","LEVEL","LIKE","LIMIT","LINENO","LOAD","LOCAL","LOWER","MATCH","MATERIALIZED","MAX","MERGE","MIN","MINUTE","MODULE","MONTH","NAMES","NATIONAL","NATURAL","NCHAR","NEXT","NO","NOCHECK","NONCLUSTERED","NONE","NOT","NOTHING","NOTNULL","NULL","NULLIF","NULLS","NUMERIC","OCTET_LENGTH","OF","OFF","OFFSET","OFFSETS","ON","ONLY","OPEN","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","OPTION","OR","ORDER","OTHERS","OUTER","OUTPUT","OVER","OVERLAPS","PAD","PARTIAL","PARTITION","PASCAL","PERCENT","PIVOT","PLAN","POSITION","PRAGMA","PRECEDING","PRECISION","PREPARE","PRESERVE","PRIMARY","PRINT","PRIOR","PRIVILEGES","PROC","PROCEDURE","PUBLIC","QUERY","RAISE","RAISERROR","RANGE","READ","READTEXT","REAL","RECONFIGURE","RECURSIVE","REFERENCES","REGEXP","REINDEX","RELATIVE","RELEASE","RENAME","REPLACE","REPLICATION","RESTORE","RESTRICT","RETURN","RETURNING","REVERT","REVOKE","RIGHT","ROLLBACK","ROW","ROWCOUNT","ROWGUIDCOL","ROWS","RULE","SAVE","SAVEPOINT","SCHEMA","SCROLL","SECOND","SECTION","SECURITYAUDIT","SELECT","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","SESSION","SESSION_USER","SET","SETUSER","SHUTDOWN","SIZE","SMALLINT","SOME","SPACE","SQL","SQLCA","SQLCODE","SQLERROR","SQLSTATE","SQLWARNING","STATISTICS","SUBSTRING","SUM","SYSTEM_USER","TABLE","TABLESAMPLE","TEMP","TEMPORARY","TEXTSIZE","THEN","TIES","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TOP","TRAILING","TRAN","TRANSACTION","TRANSLATE","TRANSLATION","TRIGGER","TRIM","TRUE","TRUNCATE","TRY_CONVERT","TSEQUAL","UNBOUNDED","UNION","UNIQUE","UNKNOWN","UNPIVOT","UPDATE","UPDATETEXT","UPPER","USAGE","USE","USER","USING","VACUUM","VALUE","VALUES","VARCHAR","VARYING","VIEW","VIRTUAL","WAITFOR","WHEN","WHENEVER","WHERE","WHILE","WINDOW","WITH","WITHIN GROUP","WITHOUT","WORK","WRITE","WRITETEXT","YEAR","ZONE"],operators:["ALL","AND","ANY","BETWEEN","EXISTS","IN","LIKE","NOT","OR","SOME","EXCEPT","INTERSECT","UNION","APPLY","CROSS","FULL","INNER","JOIN","LEFT","OUTER","RIGHT","CONTAINS","FREETEXT","IS","NULL","PIVOT","UNPIVOT","MATCHED"],builtinFunctions:["AVG","CHECKSUM_AGG","COUNT","COUNT_BIG","GROUPING","GROUPING_ID","MAX","MIN","SUM","STDEV","STDEVP","VAR","VARP","CUME_DIST","FIRST_VALUE","LAG","LAST_VALUE","LEAD","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","COLLATE","COLLATIONPROPERTY","TERTIARY_WEIGHTS","FEDERATION_FILTERING_VALUE","CAST","CONVERT","PARSE","TRY_CAST","TRY_CONVERT","TRY_PARSE","ASYMKEY_ID","ASYMKEYPROPERTY","CERTPROPERTY","CERT_ID","CRYPT_GEN_RANDOM","DECRYPTBYASYMKEY","DECRYPTBYCERT","DECRYPTBYKEY","DECRYPTBYKEYAUTOASYMKEY","DECRYPTBYKEYAUTOCERT","DECRYPTBYPASSPHRASE","ENCRYPTBYASYMKEY","ENCRYPTBYCERT","ENCRYPTBYKEY","ENCRYPTBYPASSPHRASE","HASHBYTES","IS_OBJECTSIGNED","KEY_GUID","KEY_ID","KEY_NAME","SIGNBYASYMKEY","SIGNBYCERT","SYMKEYPROPERTY","VERIFYSIGNEDBYCERT","VERIFYSIGNEDBYASYMKEY","CURSOR_STATUS","DATALENGTH","IDENT_CURRENT","IDENT_INCR","IDENT_SEED","IDENTITY","SQL_VARIANT_PROPERTY","CURRENT_TIMESTAMP","DATEADD","DATEDIFF","DATEFROMPARTS","DATENAME","DATEPART","DATETIME2FROMPARTS","DATETIMEFROMPARTS","DATETIMEOFFSETFROMPARTS","DAY","EOMONTH","GETDATE","GETUTCDATE","ISDATE","MONTH","SMALLDATETIMEFROMPARTS","SWITCHOFFSET","SYSDATETIME","SYSDATETIMEOFFSET","SYSUTCDATETIME","TIMEFROMPARTS","TODATETIMEOFFSET","YEAR","CHOOSE","COALESCE","IIF","NULLIF","ABS","ACOS","ASIN","ATAN","ATN2","CEILING","COS","COT","DEGREES","EXP","FLOOR","LOG","LOG10","PI","POWER","RADIANS","RAND","ROUND","SIGN","SIN","SQRT","SQUARE","TAN","APP_NAME","APPLOCK_MODE","APPLOCK_TEST","ASSEMBLYPROPERTY","COL_LENGTH","COL_NAME","COLUMNPROPERTY","DATABASE_PRINCIPAL_ID","DATABASEPROPERTYEX","DB_ID","DB_NAME","FILE_ID","FILE_IDEX","FILE_NAME","FILEGROUP_ID","FILEGROUP_NAME","FILEGROUPPROPERTY","FILEPROPERTY","FULLTEXTCATALOGPROPERTY","FULLTEXTSERVICEPROPERTY","INDEX_COL","INDEXKEY_PROPERTY","INDEXPROPERTY","OBJECT_DEFINITION","OBJECT_ID","OBJECT_NAME","OBJECT_SCHEMA_NAME","OBJECTPROPERTY","OBJECTPROPERTYEX","ORIGINAL_DB_NAME","PARSENAME","SCHEMA_ID","SCHEMA_NAME","SCOPE_IDENTITY","SERVERPROPERTY","STATS_DATE","TYPE_ID","TYPE_NAME","TYPEPROPERTY","DENSE_RANK","NTILE","RANK","ROW_NUMBER","PUBLISHINGSERVERNAME","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","CERTENCODED","CERTPRIVATEKEY","CURRENT_USER","HAS_DBACCESS","HAS_PERMS_BY_NAME","IS_MEMBER","IS_ROLEMEMBER","IS_SRVROLEMEMBER","LOGINPROPERTY","ORIGINAL_LOGIN","PERMISSIONS","PWDENCRYPT","PWDCOMPARE","SESSION_USER","SESSIONPROPERTY","SUSER_ID","SUSER_NAME","SUSER_SID","SUSER_SNAME","SYSTEM_USER","USER","USER_ID","USER_NAME","ASCII","CHAR","CHARINDEX","CONCAT","DIFFERENCE","FORMAT","LEFT","LEN","LOWER","LTRIM","NCHAR","PATINDEX","QUOTENAME","REPLACE","REPLICATE","REVERSE","RIGHT","RTRIM","SOUNDEX","SPACE","STR","STUFF","SUBSTRING","UNICODE","UPPER","BINARY_CHECKSUM","CHECKSUM","CONNECTIONPROPERTY","CONTEXT_INFO","CURRENT_REQUEST_ID","ERROR_LINE","ERROR_NUMBER","ERROR_MESSAGE","ERROR_PROCEDURE","ERROR_SEVERITY","ERROR_STATE","FORMATMESSAGE","GETANSINULL","GET_FILESTREAM_TRANSACTION_CONTEXT","HOST_ID","HOST_NAME","ISNULL","ISNUMERIC","MIN_ACTIVE_ROWVERSION","NEWID","NEWSEQUENTIALID","ROWCOUNT_BIG","XACT_STATE","TEXTPTR","TEXTVALID","COLUMNS_UPDATED","EVENTDATA","TRIGGER_NESTLEVEL","UPDATE","CHANGETABLE","CHANGE_TRACKING_CONTEXT","CHANGE_TRACKING_CURRENT_VERSION","CHANGE_TRACKING_IS_COLUMN_IN_MASK","CHANGE_TRACKING_MIN_VALID_VERSION","CONTAINSTABLE","FREETEXTTABLE","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","FILETABLEROOTPATH","GETFILENAMESPACEPATH","GETPATHLOCATOR","PATHNAME","GET_TRANSMISSION_STATUS"],builtinVariables:["@@DATEFIRST","@@DBTS","@@LANGID","@@LANGUAGE","@@LOCK_TIMEOUT","@@MAX_CONNECTIONS","@@MAX_PRECISION","@@NESTLEVEL","@@OPTIONS","@@REMSERVER","@@SERVERNAME","@@SERVICENAME","@@SPID","@@TEXTSIZE","@@VERSION","@@CURSOR_ROWS","@@FETCH_STATUS","@@DATEFIRST","@@PROCID","@@ERROR","@@IDENTITY","@@ROWCOUNT","@@TRANCOUNT","@@CONNECTIONS","@@CPU_BUSY","@@IDLE","@@IO_BUSY","@@PACKET_ERRORS","@@PACK_RECEIVED","@@PACK_SENT","@@TIMETICKS","@@TOTAL_ERRORS","@@TOTAL_READ","@@TOTAL_WRITE"],pseudoColumns:["$ACTION","$IDENTITY","$ROWGUID","$PARTITION"],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@keywords":"keyword","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/N'/,{token:"string",next:"@string"}],[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/\[/,{token:"identifier.quote",next:"@bracketedIdentifier"}],[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],bracketedIdentifier:[[/[^\]]+/,"identifier"],[/]]/,"identifier"],[/]/,{token:"identifier.quote",next:"@pop"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[[/BEGIN\s+(DISTRIBUTED\s+)?TRAN(SACTION)?\b/i,"keyword"],[/BEGIN\s+TRY\b/i,{token:"keyword.try"}],[/END\s+TRY\b/i,{token:"keyword.try"}],[/BEGIN\s+CATCH\b/i,{token:"keyword.catch"}],[/END\s+CATCH\b/i,{token:"keyword.catch"}],[/(BEGIN|CASE)\b/i,{token:"keyword.block"}],[/END\b/i,{token:"keyword.block"}],[/WHEN\b/i,{token:"keyword.choice"}],[/THEN\b/i,{token:"keyword.choice"}]]}}},19289:function(e,t,i){"use strict";(0,i("88814").H)({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310"),i.e("471"),i.e("389"),i.e("374")]).then(i.bind(i,"31408"))})},3453:function(e,t,i){"use strict";i.d(t,{n:function(){return s}});var n=i("98212");let s=new class e{constructor(){this._tabFocus=!1,this._onDidChangeTabFocus=new n.Q5,this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}getTabFocusMode(){return this._tabFocus}setTabFocusMode(e){this._tabFocus=e,this._onDidChangeTabFocus.fire(this._tabFocus)}}},89640:function(e,t,i){"use strict";i.d(t,{F:function(){return l},G:function(){return a}});var n=i("40013"),s=i("53753"),r=i("45802"),o=i("34086");class l{constructor(e){this._createLine=e,this._set(1,[])}flush(){this._set(1,[])}_set(e,t){this._lines=t,this._rendLineNumberStart=e}_get(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}}getStartLineNumber(){return this._rendLineNumberStart}getEndLineNumber(){return this._rendLineNumberStart+this._lines.length-1}getCount(){return this._lines.length}getLine(e){let t=e-this._rendLineNumberStart;if(t<0||t>=this._lines.length)throw new r.he("Illegal value for lineNumber");return this._lines[t]}onLinesDeleted(e,t){if(0===this.getCount())return null;let i=this.getStartLineNumber(),n=this.getEndLineNumber();if(t<i)return this._rendLineNumberStart-=t-e+1,null;if(e>n)return null;let s=0,r=0;for(let o=i;o<=n;o++){let i=o-this._rendLineNumberStart;e<=o&&o<=t&&(0===r?(s=i,r=1):r++)}if(e<i){let n=0;n=t<i?t-e+1:i-e,this._rendLineNumberStart-=n}return this._lines.splice(s,r)}onLinesChanged(e,t){let i=e+t-1;if(0===this.getCount())return!1;let n=this.getStartLineNumber(),s=this.getEndLineNumber(),r=!1;for(let t=e;t<=i;t++)t>=n&&t<=s&&(this._lines[t-this._rendLineNumberStart].onContentChanged(),r=!0);return r}onLinesInserted(e,t){if(0===this.getCount())return null;let i=t-e+1,n=this.getStartLineNumber(),s=this.getEndLineNumber();if(e<=n)return this._rendLineNumberStart+=i,null;if(e>s)return null;if(i+e>s)return this._lines.splice(e-this._rendLineNumberStart,s-e+1);let r=[];for(let e=0;e<i;e++)r[e]=this._createLine();let o=e-this._rendLineNumberStart,l=this._lines.slice(0,o),a=this._lines.slice(o,this._lines.length-i),d=this._lines.slice(this._lines.length-i,this._lines.length);return this._lines=l.concat(r).concat(a),d}onTokensChanged(e){if(0===this.getCount())return!1;let t=this.getStartLineNumber(),i=this.getEndLineNumber(),n=!1;for(let s=0,r=e.length;s<r;s++){let r=e[s];if(r.toLineNumber<t||r.fromLineNumber>i)continue;let o=Math.max(t,r.fromLineNumber),l=Math.min(i,r.toLineNumber);for(let e=o;e<=l;e++){let t=e-this._rendLineNumberStart;this._lines[t].onTokensChanged(),n=!0}}return n}}class a{constructor(e){this._host=e,this.domNode=this._createDomNode(),this._linesCollection=new l(()=>this._host.createVisibleLine())}_createDomNode(){let e=(0,n.X)(document.createElement("div"));return e.setClassName("view-layer"),e.setPosition("absolute"),e.domNode.setAttribute("role","presentation"),e.domNode.setAttribute("aria-hidden","true"),e}onConfigurationChanged(e){return!!e.hasChanged(145)||!1}onFlushed(e){return this._linesCollection.flush(),!0}onLinesChanged(e){return this._linesCollection.onLinesChanged(e.fromLineNumber,e.count)}onLinesDeleted(e){let t=this._linesCollection.onLinesDeleted(e.fromLineNumber,e.toLineNumber);if(t)for(let e=0,i=t.length;e<i;e++){let i=t[e].getDomNode();i&&this.domNode.domNode.removeChild(i)}return!0}onLinesInserted(e){let t=this._linesCollection.onLinesInserted(e.fromLineNumber,e.toLineNumber);if(t)for(let e=0,i=t.length;e<i;e++){let i=t[e].getDomNode();i&&this.domNode.domNode.removeChild(i)}return!0}onScrollChanged(e){return e.scrollTopChanged}onTokensChanged(e){return this._linesCollection.onTokensChanged(e.ranges)}onZonesChanged(e){return!0}getStartLineNumber(){return this._linesCollection.getStartLineNumber()}getEndLineNumber(){return this._linesCollection.getEndLineNumber()}getVisibleLine(e){return this._linesCollection.getLine(e)}renderLines(e){let t=this._linesCollection._get(),i=new d(this.domNode.domNode,this._host,e),n={rendLineNumberStart:t.rendLineNumberStart,lines:t.lines,linesLength:t.lines.length},s=i.render(n,e.startLineNumber,e.endLineNumber,e.relativeVerticalOffset);this._linesCollection._set(s.rendLineNumberStart,s.lines)}}class d{constructor(e,t,i){this.domNode=e,this.host=t,this.viewportData=i}render(e,t,i,n){let s={rendLineNumberStart:e.rendLineNumberStart,lines:e.lines.slice(0),linesLength:e.linesLength};if(s.rendLineNumberStart+s.linesLength-1<t||i<s.rendLineNumberStart){s.rendLineNumberStart=t,s.linesLength=i-t+1,s.lines=[];for(let e=t;e<=i;e++)s.lines[e-t]=this.host.createVisibleLine();return this._finishRendering(s,!0,n),s}if(this._renderUntouchedLines(s,Math.max(t-s.rendLineNumberStart,0),Math.min(i-s.rendLineNumberStart,s.linesLength-1),n,t),s.rendLineNumberStart>t){let e=Math.min(i,s.rendLineNumberStart-1);t<=e&&(this._insertLinesBefore(s,t,e,n,t),s.linesLength+=e-t+1)}else if(s.rendLineNumberStart<t){let e=Math.min(s.linesLength,t-s.rendLineNumberStart);e>0&&(this._removeLinesBefore(s,e),s.linesLength-=e)}if(s.rendLineNumberStart=t,s.rendLineNumberStart+s.linesLength-1<i){let e=s.rendLineNumberStart+s.linesLength;e<=i&&(this._insertLinesAfter(s,e,i,n,t),s.linesLength+=i-e+1)}else if(s.rendLineNumberStart+s.linesLength-1>i){let e=Math.max(0,i-s.rendLineNumberStart+1),t=s.linesLength-1-e+1;t>0&&(this._removeLinesAfter(s,t),s.linesLength-=t)}return this._finishRendering(s,!1,n),s}_renderUntouchedLines(e,t,i,n,s){let r=e.rendLineNumberStart,o=e.lines;for(let e=t;e<=i;e++){let t=r+e;o[e].layoutLine(t,n[t-s],this.viewportData.lineHeight)}}_insertLinesBefore(e,t,i,n,s){let r=[],o=0;for(let e=t;e<=i;e++)r[o++]=this.host.createVisibleLine();e.lines=r.concat(e.lines)}_removeLinesBefore(e,t){for(let i=0;i<t;i++){let t=e.lines[i].getDomNode();t&&this.domNode.removeChild(t)}e.lines.splice(0,t)}_insertLinesAfter(e,t,i,n,s){let r=[],o=0;for(let e=t;e<=i;e++)r[o++]=this.host.createVisibleLine();e.lines=e.lines.concat(r)}_removeLinesAfter(e,t){let i=e.linesLength-t;for(let n=0;n<t;n++){let t=e.lines[i+n].getDomNode();t&&this.domNode.removeChild(t)}e.lines.splice(i,t)}_finishRenderingNewLines(e,t,i,n){d._ttPolicy&&(i=d._ttPolicy.createHTML(i));let s=this.domNode.lastChild;t||!s?this.domNode.innerHTML=i:s.insertAdjacentHTML("afterend",i);let r=this.domNode.lastChild;for(let t=e.linesLength-1;t>=0;t--){let i=e.lines[t];n[t]&&(i.setDomNode(r),r=r.previousSibling)}}_finishRenderingInvalidLines(e,t,i){let n=document.createElement("div");d._ttPolicy&&(t=d._ttPolicy.createHTML(t)),n.innerHTML=t;for(let t=0;t<e.linesLength;t++){let s=e.lines[t];if(i[t]){let e=n.firstChild,t=s.getDomNode();t.parentNode.replaceChild(e,t),s.setDomNode(e)}}}_finishRendering(e,t,i){let n=d._sb,s=e.linesLength,r=e.lines,o=e.rendLineNumberStart,l=[];{n.reset();let a=!1;for(let e=0;e<s;e++){let t=r[e];if(l[e]=!1,!t.getDomNode())t.renderLine(e+o,i[e],this.viewportData.lineHeight,this.viewportData,n)&&(l[e]=!0,a=!0)}a&&this._finishRenderingNewLines(e,t,n.build(),l)}{n.reset();let t=!1,a=[];for(let e=0;e<s;e++){let s=r[e];if(a[e]=!1,!l[e])s.renderLine(e+o,i[e],this.viewportData.lineHeight,this.viewportData,n)&&(a[e]=!0,t=!0)}t&&this._finishRenderingInvalidLines(e,n.build(),a)}}}d._ttPolicy=(0,s.Z)("editorViewLayer",{createHTML:e=>e}),d._sb=new o.HT(1e5)},97513:function(e,t,i){"use strict";i.d(t,{x:function(){return d}}),i("3213");var n=i("97147"),s=i("31759"),r=i("70668"),o=i("83112"),l=i("29149"),a=i("85351");class d extends s.i{constructor(e){super(),this._context=e,this._readConfig(),this._lastCursorModelPosition=new r.L(1,1),this._renderResult=null,this._activeLineNumber=1,this._context.addEventHandler(this)}_readConfig(){let e=this._context.configuration.options;this._lineHeight=e.get(67);let t=e.get(68);this._renderLineNumbers=t.renderType,this._renderCustomLineNumbers=t.renderFn,this._renderFinalNewline=e.get(95);let i=e.get(145);this._lineNumbersLeft=i.lineNumbersLeft,this._lineNumbersWidth=i.lineNumbersWidth}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){return this._readConfig(),!0}onCursorStateChanged(e){let t=e.selections[0].getPosition();this._lastCursorModelPosition=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(t);let i=!1;return this._activeLineNumber!==t.lineNumber&&(this._activeLineNumber=t.lineNumber,i=!0),(2===this._renderLineNumbers||3===this._renderLineNumbers)&&(i=!0),i}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}onDecorationsChanged(e){return e.affectsLineNumber}_getLineRenderLineNumber(e){let t=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new r.L(e,1));if(1!==t.column)return"";let i=t.lineNumber;if(this._renderCustomLineNumbers)return this._renderCustomLineNumbers(i);if(2===this._renderLineNumbers){let e=Math.abs(this._lastCursorModelPosition.lineNumber-i);return 0===e?'<span class="relative-current-line-number">'+i+"</span>":String(e)}if(3===this._renderLineNumbers)return this._lastCursorModelPosition.lineNumber===i||i%10==0||i===this._context.viewModel.getLineCount()?String(i):"";return String(i)}prepareRender(e){if(0===this._renderLineNumbers){this._renderResult=null;return}let t=n.IJ?this._lineHeight%2==0?" lh-even":" lh-odd":"",i=e.visibleRange.startLineNumber,s=e.visibleRange.endLineNumber,r=this._context.viewModel.getDecorationsInViewport(e.visibleRange).filter(e=>!!e.options.lineNumberClassName);r.sort((e,t)=>o.e.compareRangesUsingEnds(e.range,t.range));let l=0,a=this._context.viewModel.getLineCount(),h=[];for(let e=i;e<=s;e++){let n=e-i,s=this._getLineRenderLineNumber(e),o="";for(;l<r.length&&r[l].range.endLineNumber<e;)l++;for(let t=l;t<r.length;t++){let{range:i,options:n}=r[t];i.startLineNumber<=e&&(o+=" "+n.lineNumberClassName)}if(!s&&!o){h[n]="";continue}e===a&&0===this._context.viewModel.getLineLength(e)&&("off"===this._renderFinalNewline&&(s=""),"dimmed"===this._renderFinalNewline&&(o+=" dimmed-line-number")),e===this._activeLineNumber&&(o+=" active-line-number"),h[n]=`<div class="${d.CLASS_NAME}${t}${o}" style="left:${this._lineNumbersLeft}px;width:${this._lineNumbersWidth}px;">${s}</div>`}this._renderResult=h}render(e,t){if(!this._renderResult)return"";let i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}d.CLASS_NAME="line-numbers",(0,l.Ic)((e,t)=>{let i=e.getColor(a.hw),n=e.getColor(a.Bj);n?t.addRule(`.monaco-editor .line-numbers.dimmed-line-number { color: ${n}; }`):i&&t.addRule(`.monaco-editor .line-numbers.dimmed-line-number { color: ${i.transparent(.4)}; }`)})},14540:function(e,t,i){"use strict";i.d(t,{_:function(){return o}});var n=i("55952"),s=i("45802"),r=i("37764");class o extends r.JT{constructor(){super(),this._editor=null,this._instantiationService=null,this._instances=this._register(new r.b2),this._pending=new Map,this._finishedInstantiation=[],this._finishedInstantiation[0]=!1,this._finishedInstantiation[1]=!1,this._finishedInstantiation[2]=!1,this._finishedInstantiation[3]=!1}initialize(e,t,i){for(let n of(this._editor=e,this._instantiationService=i,t)){if(this._pending.has(n.id)){(0,s.dL)(Error(`Cannot have two contributions with the same id ${n.id}`));continue}this._pending.set(n.id,n)}this._instantiateSome(0),this._register((0,n.se)((0,n.Jj)(this._editor.getDomNode()),()=>{this._instantiateSome(1)})),this._register((0,n.se)((0,n.Jj)(this._editor.getDomNode()),()=>{this._instantiateSome(2)})),this._register((0,n.se)((0,n.Jj)(this._editor.getDomNode()),()=>{this._instantiateSome(3)},5e3))}saveViewState(){let e={};for(let[t,i]of this._instances)"function"==typeof i.saveViewState&&(e[t]=i.saveViewState());return e}restoreViewState(e){for(let[t,i]of this._instances)"function"==typeof i.restoreViewState&&i.restoreViewState(e[t])}get(e){return this._instantiateById(e),this._instances.get(e)||null}onBeforeInteractionEvent(){this._instantiateSome(2)}onAfterModelAttached(){var e;return(0,n.se)((0,n.Jj)(null===(e=this._editor)||void 0===e?void 0:e.getDomNode()),()=>{this._instantiateSome(1)},50)}_instantiateSome(e){if(!this._finishedInstantiation[e])for(let t of(this._finishedInstantiation[e]=!0,this._findPendingContributionsByInstantiation(e)))this._instantiateById(t.id)}_findPendingContributionsByInstantiation(e){let t=[];for(let[,i]of this._pending)i.instantiation===e&&t.push(i);return t}_instantiateById(e){let t=this._pending.get(e);if(t){if(this._pending.delete(e),!this._instantiationService||!this._editor)throw Error("Cannot instantiate contributions before being initialized!");try{let e=this._instantiationService.createInstance(t.ctor,this._editor);this._instances.set(t.id,e),"function"==typeof e.restoreViewState&&0!==t.instantiation&&console.warn(`Editor contribution '${t.id}' should be eager instantiated because it uses saveViewState / restoreViewState.`)}catch(e){(0,s.dL)(e)}}}}},87142:function(e,t,i){"use strict";i.d(t,{U:function(){return f}});var n,s,r,o=i("55952"),l=i("40013"),a=i("32488"),d=i("37764"),h=i("56136"),c=i("68919"),u=i("70668"),g=i("67541"),m=i("94590"),p=i("29149");let f=r=class extends d.JT{constructor(e,t,i,n,s,d,p){super(),this._editors=e,this._rootElement=t,this._diffModel=i,this._rootWidth=n,this._rootHeight=s,this._modifiedEditorLayoutInfo=d,this._themeService=p,this.width=r.ENTIRE_DIFF_OVERVIEW_WIDTH;let f=(0,h.rD)(this._themeService.onDidColorThemeChange,()=>this._themeService.getColorTheme()),_=(0,h.nK)(e=>{let t=f.read(e),i=t.getColor(m.P6Y)||(t.getColor(m.ypS)||m.CzK).transparent(2);return{insertColor:i,removeColor:t.getColor(m.F9q)||(t.getColor(m.P4M)||m.keg).transparent(2)}}),v=(0,l.X)(document.createElement("div"));v.setClassName("diffViewport"),v.setPosition("absolute");let E=(0,o.h)("div.diffOverview",{style:{position:"absolute",top:"0px",width:r.ENTIRE_DIFF_OVERVIEW_WIDTH+"px"}}).root;this._register((0,c.xx)(E,v.domNode)),this._register((0,o.mu)(E,o.tw.POINTER_DOWN,e=>{this._editors.modified.delegateVerticalScrollbarPointerDown(e)})),this._register((0,o.nm)(E,o.tw.MOUSE_WHEEL,e=>{this._editors.modified.delegateScrollFromMouseWheelEvent(e)},{passive:!1})),this._register((0,c.xx)(this._rootElement,E)),this._register((0,h.gp)((e,t)=>{let i=this._diffModel.read(e),n=this._editors.original.createOverviewRuler("original diffOverviewRuler");n&&(t.add(n),t.add((0,c.xx)(E,n.getDomNode())));let s=this._editors.modified.createOverviewRuler("modified diffOverviewRuler");if(s&&(t.add(s),t.add((0,c.xx)(E,s.getDomNode()))),!n||!s)return;let o=(0,h.aq)("viewZoneChanged",this._editors.original.onDidChangeViewZones),l=(0,h.aq)("viewZoneChanged",this._editors.modified.onDidChangeViewZones),d=(0,h.aq)("hiddenRangesChanged",this._editors.original.onDidChangeHiddenAreas),m=(0,h.aq)("hiddenRangesChanged",this._editors.modified.onDidChangeHiddenAreas);t.add((0,h.EH)(e=>{var t;o.read(e),l.read(e),d.read(e),m.read(e);let r=_.read(e),a=null===(t=null==i?void 0:i.diff.read(e))||void 0===t?void 0:t.mappings;function h(e,t,i){let n=i._getViewModel();return n?e.filter(e=>e.length>0).map(e=>{let i=n.coordinatesConverter.convertModelPositionToViewPosition(new u.L(e.startLineNumber,1)),s=n.coordinatesConverter.convertModelPositionToViewPosition(new u.L(e.endLineNumberExclusive,1)),r=s.lineNumber-i.lineNumber;return new g.EY(i.lineNumber,s.lineNumber,r,t.toString())}):[]}let c=h((a||[]).map(e=>e.lineRangeMapping.original),r.removeColor,this._editors.original),p=h((a||[]).map(e=>e.lineRangeMapping.modified),r.insertColor,this._editors.modified);null==n||n.setZones(c),null==s||s.setZones(p)})),t.add((0,h.EH)(e=>{let t=this._rootHeight.read(e),i=this._rootWidth.read(e),o=this._modifiedEditorLayoutInfo.read(e);if(o){let i=r.ENTIRE_DIFF_OVERVIEW_WIDTH-2*r.ONE_OVERVIEW_WIDTH;n.setLayout({top:0,height:t,right:i+r.ONE_OVERVIEW_WIDTH,width:r.ONE_OVERVIEW_WIDTH}),s.setLayout({top:0,height:t,right:0,width:r.ONE_OVERVIEW_WIDTH});let l=this._editors.modifiedScrollTop.read(e),d=this._editors.modifiedScrollHeight.read(e),h=this._editors.modified.getOption(103),c=new a.M(h.verticalHasArrows?h.arrowSize:0,h.verticalScrollbarSize,0,o.height,d,l);v.setTop(c.getSliderPosition()),v.setHeight(c.getSliderSize())}else v.setTop(0),v.setHeight(0);E.style.height=t+"px",E.style.left=i-r.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",v.setWidth(r.ENTIRE_DIFF_OVERVIEW_WIDTH)}))}))}};f.ONE_OVERVIEW_WIDTH=15,f.ENTIRE_DIFF_OVERVIEW_WIDTH=2*r.ONE_OVERVIEW_WIDTH,f=r=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o}([(n=6,s=p.XE,function(e,t){s(e,t,6)})],f)},98008:function(e,t,i){"use strict";var n=i("94479"),s=i("94590");(0,s.P6G)("multiDiffEditor.headerBackground",{dark:"#262626",light:"tab.inactiveBackground",hcDark:"tab.inactiveBackground",hcLight:"tab.inactiveBackground"},(0,n.NC)("multiDiffEditor.headerBackground","The background color of the diff editor's header")),(0,s.P6G)("multiDiffEditor.background",{dark:"editorBackground",light:"editorBackground",hcDark:"editorBackground",hcLight:"editorBackground"},(0,n.NC)("multiDiffEditor.background","The background color of the multi file diff editor")),(0,s.P6G)("multiDiffEditor.border",{dark:"sideBarSectionHeader.border",light:"#cccccc",hcDark:"sideBarSectionHeader.border",hcLight:"#cccccc"},(0,n.NC)("multiDiffEditor.border","The border color of the multi file diff editor"))},23422:function(e,t,i){"use strict";i.d(t,{M:function(){return v},l:function(){return _}});var n,s,r=i("55952"),o=i("45695"),l=i("76115"),a=i("37764"),d=i("56136"),h=i("10361"),c=i("85854"),u=i("16771"),g=i("95316"),m=i("95449"),p=i("23448"),f=i("43236");class _{constructor(e,t){this.viewModel=e,this.deltaScrollVertical=t}getId(){return this.viewModel}}let v=class extends a.JT{constructor(e,t,i,n){super(),this._container=e,this._overflowWidgetsDomNode=t,this._workbenchUIElementFactory=i,this._instantiationService=n,this._viewModel=(0,h.uh)(this,void 0),this._collapsed=(0,d.nK)(this,e=>{var t;return null===(t=this._viewModel.read(e))||void 0===t?void 0:t.collapsed.read(e)}),this._editorContentHeight=(0,h.uh)(this,500),this.contentHeight=(0,d.nK)(this,e=>(this._collapsed.read(e)?0:this._editorContentHeight.read(e))+this._outerEditorHeight),this._modifiedContentWidth=(0,h.uh)(this,0),this._modifiedWidth=(0,h.uh)(this,0),this._originalContentWidth=(0,h.uh)(this,0),this._originalWidth=(0,h.uh)(this,0),this.maxScroll=(0,d.nK)(this,e=>{let t=this._modifiedContentWidth.read(e)-this._modifiedWidth.read(e),i=this._originalContentWidth.read(e)-this._originalWidth.read(e);return t>i?{maxScroll:t,width:this._modifiedWidth.read(e)}:{maxScroll:i,width:this._originalWidth.read(e)}}),this._elements=(0,r.h)("div.multiDiffEntry",[(0,r.h)("div.header@header",[(0,r.h)("div.header-content",[(0,r.h)("div.collapse-button@collapseButton"),(0,r.h)("div.file-path",[(0,r.h)("div.title.modified.show-file-icons@primaryPath",[]),(0,r.h)("div.status.deleted@status",["R"]),(0,r.h)("div.title.original.show-file-icons@secondaryPath",[])]),(0,r.h)("div.actions@actions")])]),(0,r.h)("div.editorParent",[(0,r.h)("div.editorContainer@editor")])]),this.editor=this._register(this._instantiationService.createInstance(c.p,this._elements.editor,{overflowWidgetsDomNode:this._overflowWidgetsDomNode},{})),this.isModifedFocused=E(this.editor.getModifiedEditor()),this.isOriginalFocused=E(this.editor.getOriginalEditor()),this.isFocused=(0,d.nK)(this,e=>this.isModifedFocused.read(e)||this.isOriginalFocused.read(e)),this._resourceLabel=this._workbenchUIElementFactory.createResourceLabel?this._register(this._workbenchUIElementFactory.createResourceLabel(this._elements.primaryPath)):void 0,this._resourceLabel2=this._workbenchUIElementFactory.createResourceLabel?this._register(this._workbenchUIElementFactory.createResourceLabel(this._elements.secondaryPath)):void 0,this._dataStore=new a.SL,this._headerHeight=40,this._lastScrollTop=-1,this._isSettingScrollTop=!1;let s=new o.z(this._elements.collapseButton,{});this._register((0,d.EH)(e=>{s.element.className="",s.icon=this._collapsed.read(e)?l.l.chevronRight:l.l.chevronDown})),this._register(s.onDidClick(()=>{var e;null===(e=this._viewModel.get())||void 0===e||e.collapsed.set(!this._collapsed.get(),void 0)})),this._register((0,d.EH)(e=>{this._elements.editor.style.display=this._collapsed.read(e)?"none":"block"})),this._register(this.editor.getModifiedEditor().onDidLayoutChange(e=>{let t=this.editor.getModifiedEditor().getLayoutInfo().contentWidth;this._modifiedWidth.set(t,void 0)})),this._register(this.editor.getOriginalEditor().onDidLayoutChange(e=>{let t=this.editor.getOriginalEditor().getLayoutInfo().contentWidth;this._originalWidth.set(t,void 0)})),this._register(this.editor.onDidContentSizeChange(e=>{(0,h.Bl)(t=>{this._editorContentHeight.set(e.contentHeight,t),this._modifiedContentWidth.set(this.editor.getModifiedEditor().getContentWidth(),t),this._originalContentWidth.set(this.editor.getOriginalEditor().getContentWidth(),t)})})),this._register(this.editor.getOriginalEditor().onDidScrollChange(e=>{if(this._isSettingScrollTop||!e.scrollTopChanged||!this._data)return;let t=e.scrollTop-this._lastScrollTop;this._data.deltaScrollVertical(t)})),this._register((0,d.EH)(e=>{var t;let i=null===(t=this._viewModel.read(e))||void 0===t?void 0:t.isActive.read(e);this._elements.root.classList.toggle("active",i)})),this._container.appendChild(this._elements.root),this._outerEditorHeight=this._headerHeight,this._register(this._instantiationService.createInstance(u.r,this._elements.actions,g.eH.MultiDiffEditorFileToolbar,{actionRunner:this._register(new p.D(()=>{var e;return null===(e=this._viewModel.get())||void 0===e?void 0:e.modifiedUri})),menuOptions:{shouldForwardArgs:!0},toolbarOptions:{primaryGroup:e=>e.startsWith("navigation")},actionViewItemProvider:(e,t)=>(0,f.Id)(n,e,t)}))}setScrollLeft(e){this._modifiedContentWidth.get()-this._modifiedWidth.get()>this._originalContentWidth.get()-this._originalWidth.get()?this.editor.getModifiedEditor().setScrollLeft(e):this.editor.getOriginalEditor().setScrollLeft(e)}setData(e){function t(e){return{...e,scrollBeyondLastLine:!1,hideUnchangedRegions:{enabled:!0},scrollbar:{vertical:"hidden",horizontal:"hidden",handleMouseWheel:!1,useShadows:!1},renderOverviewRuler:!1,fixedOverflowWidgets:!0,overviewRulerBorder:!1}}this._data=e;let i=e.viewModel.entry.value;i.onOptionsDidChange&&this._dataStore.add(i.onOptionsDidChange(()=>{var e;this.editor.updateOptions(t(null!==(e=i.options)&&void 0!==e?e:{}))})),(0,h.Bl)(n=>{var s,r,o,l;null===(s=this._resourceLabel)||void 0===s||s.setUri(null!==(r=e.viewModel.modifiedUri)&&void 0!==r?r:e.viewModel.originalUri,{strikethrough:void 0===e.viewModel.modifiedUri});let a=!1,d=!1,h=!1,c="";e.viewModel.modifiedUri&&e.viewModel.originalUri&&e.viewModel.modifiedUri.path!==e.viewModel.originalUri.path?(c="R",a=!0):e.viewModel.modifiedUri?!e.viewModel.originalUri&&(c="A",h=!0):(c="D",d=!0),this._elements.status.classList.toggle("renamed",a),this._elements.status.classList.toggle("deleted",d),this._elements.status.classList.toggle("added",h),this._elements.status.innerText=c,null===(o=this._resourceLabel2)||void 0===o||o.setUri(a?e.viewModel.originalUri:void 0,{strikethrough:!0}),this._dataStore.clear(),this._viewModel.set(e.viewModel,n),this.editor.setModel(e.viewModel.diffEditorViewModel,n),this.editor.updateOptions(t(null!==(l=i.options)&&void 0!==l?l:{}))})}render(e,t,i,n){this._elements.root.style.visibility="visible",this._elements.root.style.top=`${e.start}px`,this._elements.root.style.height=`${e.length}px`,this._elements.root.style.width=`${t}px`,this._elements.root.style.position="absolute";let s=e.length-this._headerHeight,r=Math.max(0,Math.min(n.start-e.start,s));this._elements.header.style.transform=`translateY(${r}px)`,(0,h.Bl)(i=>{this.editor.layout({width:t-16-2,height:e.length-this._outerEditorHeight})});try{this._isSettingScrollTop=!0,this._lastScrollTop=i,this.editor.getOriginalEditor().setScrollTop(i)}finally{this._isSettingScrollTop=!1}this._elements.header.classList.toggle("shadow",r>0||i>0),this._elements.header.classList.toggle("collapsed",r===s)}hide(){this._elements.root.style.top="-100000px",this._elements.root.style.visibility="hidden"}};function E(e){return(0,d.rD)(t=>{let i=new a.SL;return i.add(e.onDidFocusEditorWidget(()=>t(!0))),i.add(e.onDidBlurEditorWidget(()=>t(!1))),i},()=>e.hasTextFocus())}v=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o}([(n=3,s=m.TG,function(e,t){s(e,t,3)})],v)},33037:function(e,t,i){"use strict";i.d(t,{N:function(){return s},q:function(){return r}});var n=i("7480");class s{constructor(e){let t=(0,n.K)(e);this._defaultValue=t,this._asciiMap=s._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){let t=new Uint8Array(256);return t.fill(e),t}set(e,t){let i=(0,n.K)(t);e>=0&&e<256?this._asciiMap[e]=i:this._map.set(e,i)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class r{constructor(){this._actual=new s(0)}add(e){this._actual.set(e,1)}has(e){return 1===this._actual.get(e)}clear(){return this._actual.clear()}}},98681:function(e,t,i){"use strict";i.d(t,{Y:function(){return r}});var n=i("70668"),s=i("83112");class r extends s.e{constructor(e,t,i,n){super(e,t,i,n),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=i,this.positionColumn=n}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return r.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return 0===this.getDirection()?new r(this.startLineNumber,this.startColumn,e,t):new r(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new n.L(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new n.L(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return 0===this.getDirection()?new r(e,t,this.endLineNumber,this.endColumn):new r(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new r(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return 0===t?new r(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new r(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new r(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let i=0,n=e.length;i<n;i++)if(!this.selectionsEqual(e[i],t[i]))return!1;return!0}static isISelection(e){return e&&"number"==typeof e.selectionStartLineNumber&&"number"==typeof e.selectionStartColumn&&"number"==typeof e.positionLineNumber&&"number"==typeof e.positionColumn}static createWithDirection(e,t,i,n,s){return 0===s?new r(e,t,i,n):new r(i,n,e,t)}}},36498:function(e,t,i){"use strict";i.d(t,{At:function(){return h},MS:function(){return u},PY:function(){return d}});var n=i("26089"),s=i("45802"),r=i("70668"),o=i("27985"),l=i("83112"),a=i("2945");class d{constructor(e){this.edits=e,(0,n.eZ)(()=>(0,n.DM)(e,(e,t)=>e.range.getEndPosition().isBeforeOrEqual(t.range.getStartPosition())))}apply(e){let t="",i=new r.L(1,1);for(let n of this.edits){let s=n.range,r=s.getStartPosition(),o=s.getEndPosition(),l=c(i,r);!l.isEmpty()&&(t+=e.getValueOfRange(l)),t+=n.text,i=o}let n=c(i,e.endPositionExclusive);return!n.isEmpty()&&(t+=e.getValueOfRange(n)),t}applyToString(e){let t=new g(e);return this.apply(t)}getNewRanges(){let e=[],t=0,i=0,n=0;for(let s of this.edits){let o=a.A.ofText(s.text),l=r.L.lift({lineNumber:s.range.startLineNumber+i,column:s.range.startColumn+(s.range.startLineNumber===t?n:0)}),d=o.createRange(l);e.push(d),i=d.endLineNumber-s.range.endLineNumber,n=d.endColumn-s.range.endColumn,t=s.range.endLineNumber}return e}}class h{constructor(e,t){this.range=e,this.text=t}}function c(e,t){if(e.lineNumber===t.lineNumber&&e.column===Number.MAX_SAFE_INTEGER)return l.e.fromPositions(t,t);if(!e.isBeforeOrEqual(t))throw new s.he("start must be before end");return new l.e(e.lineNumber,e.column,t.lineNumber,t.column)}class u{get endPositionExclusive(){return this.length.addToPosition(new r.L(1,1))}}class g extends u{constructor(e){super(),this.value=e,this._t=new o.O(this.value)}getValueOfRange(e){return this._t.getOffsetRange(e).substring(this.value)}get length(){return this._t.textLength}}},74203:function(e,t,i){"use strict";i.d(t,{C:function(){return o}});var n=i("17202"),s=i("21111"),r=i("81467");class o{compute(e,t,i=s.n0.instance,o){if(0===e.length||0===t.length)return s.KU.trivial(e,t);let l=new r.dX(e.length,t.length),a=new r.dX(e.length,t.length),d=new r.dX(e.length,t.length);for(let n=0;n<e.length;n++)for(let r=0;r<t.length;r++){let h;if(!i.isValid())return s.KU.trivialTimedOut(e,t);let c=0===n?0:l.get(n-1,r),u=0===r?0:l.get(n,r-1);e.getElement(n)===t.getElement(r)?(h=0===n||0===r?0:l.get(n-1,r-1),n>0&&r>0&&3===a.get(n-1,r-1)&&(h+=d.get(n-1,r-1)),h+=o?o(n,r):1):h=-1;let g=Math.max(c,u,h);if(g===h){let e=n>0&&r>0?d.get(n-1,r-1):0;d.set(n,r,e+1),a.set(n,r,3)}else g===c?(d.set(n,r,0),a.set(n,r,1)):g===u&&(d.set(n,r,0),a.set(n,r,2));l.set(n,r,g)}let h=[],c=e.length,u=t.length;function g(e,t){(e+1!==c||t+1!==u)&&h.push(new s.i8(new n.q(e+1,c),new n.q(t+1,u))),c=e,u=t}let m=e.length-1,p=t.length-1;for(;m>=0&&p>=0;)3===a.get(m,p)?(g(m,p),m--,p--):1===a.get(m,p)?m--:p--;return g(-1,-1),h.reverse(),new s.KU(h,!1)}}},39589:function(e,t,i){"use strict";i.d(t,{p:function(){return n}});class n{constructor(e,t,i,n,s,r,o){this.id=e,this.label=t,this.alias=i,this.metadata=n,this._precondition=s,this._run=r,this._contextKeyService=o}isSupported(){return this._contextKeyService.contextMatchesRules(this._precondition)}run(e){return this.isSupported()?this._run(e):Promise.resolve(void 0)}}},54532:function(e,t,i){"use strict";i.d(t,{N:function(){return n}});class n{static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return(1024&e)!=0}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(16744448&e)>>>15}static getBackground(e){return(4278190080&e)>>>24}static getClassNameFromMetadata(e){let t="mtk"+this.getForeground(e),i=this.getFontStyle(e);return 1&i&&(t+=" mtki"),2&i&&(t+=" mtkb"),4&i&&(t+=" mtku"),8&i&&(t+=" mtks"),t}static getInlineStyleFromMetadata(e,t){let i=this.getForeground(e),n=this.getFontStyle(e),s=`color: ${t[i]};`;1&n&&(s+="font-style: italic;"),2&n&&(s+="font-weight: bold;");let r="";return 4&n&&(r+=" underline"),8&n&&(r+=" line-through"),r&&(s+=`text-decoration:${r};`),s}static getPresentationFromMetadata(e){let t=this.getForeground(e),i=this.getFontStyle(e);return{foreground:t,italic:!!(1&i),bold:!!(2&i),underline:!!(4&i),strikethrough:!!(8&i)}}}},90929:function(e,t,i){"use strict";i.d(t,{CJ:function(){return s}});var n=i("69835");class s{constructor(e,t){this.languageId=e;let i=t.brackets?r(t.brackets):[],s=new n.bQ(e=>{let t=new Set;return{info:new l(this,e,t),closing:t}}),o=new n.bQ(e=>{let t=new Set,i=new Set;return{info:new a(this,e,t,i),opening:t,openingColorized:i}});for(let[e,t]of i){let i=s.get(e),n=o.get(t);i.closing.add(n.info),n.opening.add(i.info)}for(let[e,n]of t.colorizedBracketPairs?r(t.colorizedBracketPairs):i.filter(e=>!("<"===e[0]&&">"===e[1]))){let t=s.get(e),i=o.get(n);t.closing.add(i.info),i.openingColorized.add(t.info),i.opening.add(t.info)}this._openingBrackets=new Map([...s.cachedValues].map(([e,t])=>[e,t.info])),this._closingBrackets=new Map([...o.cachedValues].map(([e,t])=>[e,t.info]))}get openingBrackets(){return[...this._openingBrackets.values()]}get closingBrackets(){return[...this._closingBrackets.values()]}getOpeningBracketInfo(e){return this._openingBrackets.get(e)}getClosingBracketInfo(e){return this._closingBrackets.get(e)}getBracketInfo(e){return this.getOpeningBracketInfo(e)||this.getClosingBracketInfo(e)}}function r(e){return e.filter(([e,t])=>""!==e&&""!==t)}class o{constructor(e,t){this.config=e,this.bracketText=t}get languageId(){return this.config.languageId}}class l extends o{constructor(e,t,i){super(e,t),this.openedBrackets=i,this.isOpeningBracket=!0}}class a extends o{constructor(e,t,i,n){super(e,t),this.openingBrackets=i,this.openingColorizedBrackets=n,this.isOpeningBracket=!1}closes(e){return e.config===this.config&&this.openingBrackets.has(e)}closesColorized(e){return e.config===this.config&&this.openingColorizedBrackets.has(e)}getOpeningBrackets(){return[...this.openingBrackets]}}},12606:function(e,t,i){"use strict";i.d(t,{H:function(){return r},S:function(){return s}});var n=i("44850");function s(e){if(0===e.length)return null;if(1===e.length)return e[0];let t=0;function i(){if(t>=e.length)return null;let i=t,n=e[i].listHeight;for(t++;t<e.length&&e[t].listHeight===n;)t++;return t-i>=2?r(0===i&&t===e.length?e:e.slice(i,t),!1):e[i]}let n=i(),s=i();if(!s)return n;for(let e=i();e;e=i())o(n,s)<=o(s,e)?(n=l(n,s),s=e):s=l(s,e);return l(n,s)}function r(e,t=!1){if(0===e.length)return null;if(1===e.length)return e[0];let i=e.length;for(;i>3;){let s=i>>1;for(let r=0;r<s;r++){let s=r<<1;e[r]=n.Y0.create23(e[s],e[s+1],s+3===i?e[s+2]:null,t)}i=s}return n.Y0.create23(e[0],e[1],i>=3?e[2]:null,t)}function o(e,t){return Math.abs(e.listHeight-t.listHeight)}function l(e,t){return e.listHeight===t.listHeight?n.Y0.create23(e,t,null,!1):e.listHeight>t.listHeight?function(e,t){let i;let s=e=e.toMutable(),r=[];for(;;){if(t.listHeight===s.listHeight){i=t;break}if(4!==s.kind)throw Error("unexpected");r.push(s),s=s.makeLastElementMutable()}for(let e=r.length-1;e>=0;e--){let t=r[e];i?t.childrenLength>=3?i=n.Y0.create23(t.unappendChild(),i,null,!1):(t.appendChildOfSameHeight(i),i=void 0):t.handleChildrenChanged()}return i?n.Y0.create23(e,i,null,!1):e}(e,t):function(e,t){let i=e=e.toMutable(),s=[];for(;t.listHeight!==i.listHeight;){if(4!==i.kind)throw Error("unexpected");s.push(i),i=i.makeFirstElementMutable()}let r=t;for(let e=s.length-1;e>=0;e--){let t=s[e];r?t.childrenLength>=3?r=n.Y0.create23(r,t.unprependChild(),null,!1):(t.prependChildOfSameHeight(r),r=void 0):t.handleChildrenChanged()}return r?n.Y0.create23(r,e,null,!1):e}(t,e)}},27470:function(e,t,i){"use strict";i.d(t,{z:function(){return a}});var n=i("98212"),s=i("37764"),r=i("83112"),o=i("85351"),l=i("29149");class a extends s.JT{constructor(e){super(),this.textModel=e,this.colorProvider=new d,this.onDidChangeEmitter=new n.Q5,this.onDidChange=this.onDidChangeEmitter.event,this.colorizationOptions=e.getOptions().bracketPairColorizationOptions,this._register(e.bracketPairs.onDidChange(e=>{this.onDidChangeEmitter.fire()}))}handleDidChangeOptions(e){this.colorizationOptions=this.textModel.getOptions().bracketPairColorizationOptions}getDecorationsInRange(e,t,i,n){return n||void 0===t||!this.colorizationOptions.enabled?[]:this.textModel.bracketPairs.getBracketsInRange(e,!0).map(e=>({id:`bracket${e.range.toString()}-${e.nestingLevel}`,options:{description:"BracketPairColorization",inlineClassName:this.colorProvider.getInlineClassName(e,this.colorizationOptions.independentColorPoolPerBracketType)},ownerId:0,range:e.range})).toArray()}getAllDecorations(e,t){return void 0!==e&&this.colorizationOptions.enabled?this.getDecorationsInRange(new r.e(1,1,this.textModel.getLineCount(),1),e,t):[]}}class d{constructor(){this.unexpectedClosingBracketClassName="unexpected-closing-bracket"}getInlineClassName(e,t){return e.isInvalid?this.unexpectedClosingBracketClassName:this.getInlineClassNameOfLevel(t?e.nestingLevelOfEqualBracketType:e.nestingLevel)}getInlineClassNameOfLevel(e){return`bracket-highlighting-${e%30}`}}(0,l.Ic)((e,t)=>{let i=[o.zJ,o.Vs,o.CE,o.UP,o.r0,o.m1],n=new d;t.addRule(`.monaco-editor .${n.unexpectedClosingBracketClassName} { color: ${e.getColor(o.ts)}; }`);let s=i.map(t=>e.getColor(t)).filter(e=>!!e).filter(e=>!e.isTransparent());for(let e=0;e<30;e++){let i=s[e%s.length];t.addRule(`.monaco-editor .${n.getInlineClassNameOfLevel(e)} { color: ${i}; }`)}})},24370:function(e,t,i){"use strict";i.d(t,{p:function(){return n}});let n=(0,i("95449").yh)("editorWorkerService")},61584:function(e,t,i){"use strict";var n=i("39207"),s=i("76891"),r=i("91114");(0,r.z)(s.p,class e{constructor(){this.referenceProvider=new n.c(this._score.bind(this)),this.renameProvider=new n.c(this._score.bind(this)),this.newSymbolNamesProvider=new n.c(this._score.bind(this)),this.codeActionProvider=new n.c(this._score.bind(this)),this.definitionProvider=new n.c(this._score.bind(this)),this.typeDefinitionProvider=new n.c(this._score.bind(this)),this.declarationProvider=new n.c(this._score.bind(this)),this.implementationProvider=new n.c(this._score.bind(this)),this.documentSymbolProvider=new n.c(this._score.bind(this)),this.inlayHintsProvider=new n.c(this._score.bind(this)),this.colorProvider=new n.c(this._score.bind(this)),this.codeLensProvider=new n.c(this._score.bind(this)),this.documentFormattingEditProvider=new n.c(this._score.bind(this)),this.documentRangeFormattingEditProvider=new n.c(this._score.bind(this)),this.onTypeFormattingEditProvider=new n.c(this._score.bind(this)),this.signatureHelpProvider=new n.c(this._score.bind(this)),this.hoverProvider=new n.c(this._score.bind(this)),this.documentHighlightProvider=new n.c(this._score.bind(this)),this.multiDocumentHighlightProvider=new n.c(this._score.bind(this)),this.selectionRangeProvider=new n.c(this._score.bind(this)),this.foldingRangeProvider=new n.c(this._score.bind(this)),this.linkProvider=new n.c(this._score.bind(this)),this.inlineCompletionsProvider=new n.c(this._score.bind(this)),this.inlineEditProvider=new n.c(this._score.bind(this)),this.completionProvider=new n.c(this._score.bind(this)),this.linkedEditingRangeProvider=new n.c(this._score.bind(this)),this.documentRangeSemanticTokensProvider=new n.c(this._score.bind(this)),this.documentSemanticTokensProvider=new n.c(this._score.bind(this)),this.documentDropEditProvider=new n.c(this._score.bind(this)),this.documentPasteEditProvider=new n.c(this._score.bind(this))}_score(e){var t;return null===(t=this._notebookTypeResolver)||void 0===t?void 0:t.call(this,e)}},1)},74303:function(e,t,i){"use strict";i.d(t,{u:function(){return r}});var n=i("47983"),s=i("89821");class r{constructor(e){this._pieces=[],this._isComplete=!1,this._languageIdCodec=e}flush(){this._pieces=[],this._isComplete=!1}isEmpty(){return 0===this._pieces.length}set(e,t){this._pieces=e||[],this._isComplete=t}setPartial(e,t){let i=e;if(t.length>0){let n=t[0].getRange(),s=t[t.length-1].getRange();if(!n||!s)return e;i=e.plusRange(n).plusRange(s)}let s=null;for(let e=0,t=this._pieces.length;e<t;e++){let n=this._pieces[e];if(n.endLineNumber<i.startLineNumber)continue;if(n.startLineNumber>i.endLineNumber){s=s||{index:e};break}if(n.removeTokens(i),n.isEmpty()){this._pieces.splice(e,1),e--,t--;continue}if(n.endLineNumber<i.startLineNumber)continue;if(n.startLineNumber>i.endLineNumber){s=s||{index:e};continue}let[r,o]=n.split(i);if(r.isEmpty()){s=s||{index:e};continue}!o.isEmpty()&&(this._pieces.splice(e,1,r,o),e++,t++,s=s||{index:e})}return s=s||{index:this._pieces.length},t.length>0&&(this._pieces=n.Zv(this._pieces,s.index,t)),i}isComplete(){return this._isComplete}addSparseTokens(e,t){if(0===t.getLineContent().length)return t;let i=this._pieces;if(0===i.length)return t;let n=r._findFirstPieceWithLine(i,e),o=i[n].getLineTokens(e);if(!o)return t;let l=t.getCount(),a=o.getCount(),d=0,h=[],c=0,u=0,g=(e,t)=>{e!==u&&(u=e,h[c++]=e,h[c++]=t)};for(let e=0;e<a;e++){let i=o.getStartCharacter(e),n=o.getEndCharacter(e),s=o.getMetadata(e),r=((1&s?2048:0)|(2&s?4096:0)|(4&s?8192:0)|(8&s?16384:0)|(16&s?16744448:0)|(32&s?4278190080:0))>>>0,a=~r>>>0;for(;d<l&&t.getEndOffset(d)<=i;)g(t.getEndOffset(d),t.getMetadata(d)),d++;for(d<l&&t.getStartOffset(d)<i&&g(i,t.getMetadata(d));d<l&&t.getEndOffset(d)<n;)g(t.getEndOffset(d),t.getMetadata(d)&a|s&r),d++;if(d<l)g(n,t.getMetadata(d)&a|s&r),t.getEndOffset(d)===n&&d++;else{let e=Math.min(Math.max(0,d-1),l-1);g(n,t.getMetadata(e)&a|s&r)}}for(;d<l;)g(t.getEndOffset(d),t.getMetadata(d)),d++;return new s.A(new Uint32Array(h),t.getLineContent(),this._languageIdCodec)}static _findFirstPieceWithLine(e,t){let i=0,n=e.length-1;for(;i<n;){let s=i+Math.floor((n-i)/2);if(e[s].endLineNumber<t)i=s+1;else if(e[s].startLineNumber>t)n=s-1;else{for(;s>i&&e[s-1].startLineNumber<=t&&t<=e[s-1].endLineNumber;)s--;return s}}return i}acceptEdit(e,t,i,n,s){for(let r of this._pieces)r.acceptEdit(e,t,i,n,s)}}},31593:function(e,t,i){"use strict";i.d(t,{L:function(){return c}});var n=i("98212"),s=i("37764"),r=i("80928"),o=i("12289"),l=i("3907"),a=i("67478");class d{constructor(e,t,i,n){(e|=0)<0&&(e=0),(t|=0)<0&&(t=0),(i|=0)<0&&(i=0),(n|=0)<0&&(n=0),this.width=e,this.contentWidth=t,this.scrollWidth=Math.max(e,t),this.height=i,this.contentHeight=n,this.scrollHeight=Math.max(i,n)}equals(e){return this.width===e.width&&this.contentWidth===e.contentWidth&&this.height===e.height&&this.contentHeight===e.contentHeight}}class h extends s.JT{constructor(e,t){super(),this._onDidContentSizeChange=this._register(new n.Q5),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._dimensions=new d(0,0,0,0),this._scrollable=this._register(new r.Rm({forceIntegerValues:!0,smoothScrollDuration:e,scheduleAtNextAnimationFrame:t})),this.onDidScroll=this._scrollable.onScroll}getScrollable(){return this._scrollable}setSmoothScrollDuration(e){this._scrollable.setSmoothScrollDuration(e)}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}getScrollDimensions(){return this._dimensions}setScrollDimensions(e){if(this._dimensions.equals(e))return;let t=this._dimensions;this._dimensions=e,this._scrollable.setScrollDimensions({width:e.width,scrollWidth:e.scrollWidth,height:e.height,scrollHeight:e.scrollHeight},!0);let i=t.contentWidth!==e.contentWidth,n=t.contentHeight!==e.contentHeight;(i||n)&&this._onDidContentSizeChange.fire(new a.zf(t.contentWidth,t.contentHeight,e.contentWidth,e.contentHeight))}getFutureScrollPosition(){return this._scrollable.getFutureScrollPosition()}getCurrentScrollPosition(){return this._scrollable.getCurrentScrollPosition()}setScrollPositionNow(e){this._scrollable.setScrollPositionNow(e)}setScrollPositionSmooth(e){this._scrollable.setScrollPositionSmooth(e)}hasPendingScrollAnimation(){return this._scrollable.hasPendingScrollAnimation()}}class c extends s.JT{constructor(e,t,i){super(),this._configuration=e;let n=this._configuration.options,s=n.get(145),r=n.get(84);this._linesLayout=new o.z(t,n.get(67),r.top,r.bottom),this._maxLineWidth=0,this._overlayWidgetsMinWidth=0,this._scrollable=this._register(new h(0,i)),this._configureSmoothScrollDuration(),this._scrollable.setScrollDimensions(new d(s.contentWidth,0,s.height,0)),this.onDidScroll=this._scrollable.onDidScroll,this.onDidContentSizeChange=this._scrollable.onDidContentSizeChange,this._updateHeight()}dispose(){super.dispose()}getScrollable(){return this._scrollable.getScrollable()}onHeightMaybeChanged(){this._updateHeight()}_configureSmoothScrollDuration(){this._scrollable.setSmoothScrollDuration(this._configuration.options.get(114)?125:0)}onConfigurationChanged(e){let t=this._configuration.options;if(e.hasChanged(67)&&this._linesLayout.setLineHeight(t.get(67)),e.hasChanged(84)){let e=t.get(84);this._linesLayout.setPadding(e.top,e.bottom)}if(e.hasChanged(145)){let e=t.get(145),i=e.contentWidth,n=e.height,s=this._scrollable.getScrollDimensions(),r=s.contentWidth;this._scrollable.setScrollDimensions(new d(i,s.contentWidth,n,this._getContentHeight(i,n,r)))}else this._updateHeight();e.hasChanged(114)&&this._configureSmoothScrollDuration()}onFlushed(e){this._linesLayout.onFlushed(e)}onLinesDeleted(e,t){this._linesLayout.onLinesDeleted(e,t)}onLinesInserted(e,t){this._linesLayout.onLinesInserted(e,t)}_getHorizontalScrollbarHeight(e,t){let i=this._configuration.options.get(103);return 2===i.horizontal||e>=t?0:i.horizontalScrollbarSize}_getContentHeight(e,t,i){let n=this._configuration.options,s=this._linesLayout.getLinesTotalHeight();return n.get(105)?s+=Math.max(0,t-n.get(67)-n.get(84).bottom):!n.get(103).ignoreHorizontalScrollbarInContentHeight&&(s+=this._getHorizontalScrollbarHeight(e,i)),s}_updateHeight(){let e=this._scrollable.getScrollDimensions(),t=e.width,i=e.height,n=e.contentWidth;this._scrollable.setScrollDimensions(new d(t,e.contentWidth,i,this._getContentHeight(t,i,n)))}getCurrentViewport(){let e=this._scrollable.getScrollDimensions(),t=this._scrollable.getCurrentScrollPosition();return new l.l_(t.scrollTop,t.scrollLeft,e.width,e.height)}getFutureViewport(){let e=this._scrollable.getScrollDimensions(),t=this._scrollable.getFutureScrollPosition();return new l.l_(t.scrollTop,t.scrollLeft,e.width,e.height)}_computeContentWidth(){let e=this._configuration.options,t=this._maxLineWidth,i=e.get(146),n=e.get(50),s=e.get(145);if(i.isViewportWrapping){let i=e.get(73);return t>s.contentWidth+n.typicalHalfwidthCharacterWidth&&i.enabled&&"right"===i.side?t+s.verticalScrollbarWidth:t}{let i=e.get(104)*n.typicalHalfwidthCharacterWidth,r=this._linesLayout.getWhitespaceMinWidth();return Math.max(t+i+s.verticalScrollbarWidth,r,this._overlayWidgetsMinWidth)}}setMaxLineWidth(e){this._maxLineWidth=e,this._updateContentWidth()}setOverlayWidgetsMinWidth(e){this._overlayWidgetsMinWidth=e,this._updateContentWidth()}_updateContentWidth(){let e=this._scrollable.getScrollDimensions();this._scrollable.setScrollDimensions(new d(e.width,this._computeContentWidth(),e.height,e.contentHeight)),this._updateHeight()}saveState(){let e=this._scrollable.getFutureScrollPosition(),t=e.scrollTop,i=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t);return{scrollTop:t,scrollTopWithoutViewZones:t-this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(i),scrollLeft:e.scrollLeft}}changeWhitespace(e){let t=this._linesLayout.changeWhitespace(e);return t&&this.onHeightMaybeChanged(),t}getVerticalOffsetForLineNumber(e,t=!1){return this._linesLayout.getVerticalOffsetForLineNumber(e,t)}getVerticalOffsetAfterLineNumber(e,t=!1){return this._linesLayout.getVerticalOffsetAfterLineNumber(e,t)}isAfterLines(e){return this._linesLayout.isAfterLines(e)}isInTopPadding(e){return this._linesLayout.isInTopPadding(e)}isInBottomPadding(e){return this._linesLayout.isInBottomPadding(e)}getLineNumberAtVerticalOffset(e){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(e)}getWhitespaceAtVerticalOffset(e){return this._linesLayout.getWhitespaceAtVerticalOffset(e)}getLinesViewportData(){let e=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(e.top,e.top+e.height)}getLinesViewportDataAtScrollTop(e){let t=this._scrollable.getScrollDimensions();return e+t.height>t.scrollHeight&&(e=t.scrollHeight-t.height),e<0&&(e=0),this._linesLayout.getLinesViewportData(e,e+t.height)}getWhitespaceViewportData(){let e=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(e.top,e.top+e.height)}getWhitespaces(){return this._linesLayout.getWhitespaces()}getContentWidth(){return this._scrollable.getScrollDimensions().contentWidth}getScrollWidth(){return this._scrollable.getScrollDimensions().scrollWidth}getContentHeight(){return this._scrollable.getScrollDimensions().contentHeight}getScrollHeight(){return this._scrollable.getScrollDimensions().scrollHeight}getCurrentScrollLeft(){return this._scrollable.getCurrentScrollPosition().scrollLeft}getCurrentScrollTop(){return this._scrollable.getCurrentScrollPosition().scrollTop}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}setScrollPosition(e,t){1===t?this._scrollable.setScrollPositionNow(e):this._scrollable.setScrollPositionSmooth(e)}hasPendingScrollAnimation(){return this._scrollable.hasPendingScrollAnimation()}deltaScrollNow(e,t){let i=this._scrollable.getCurrentScrollPosition();this._scrollable.setScrollPositionNow({scrollLeft:i.scrollLeft+e,scrollTop:i.scrollTop+t})}}},74663:function(e,t,i){"use strict";i.d(t,{H:function(){return r}});var n=i("42733");let s=n.U.Right;class r{constructor(e){this.persist=0,this._requiredLanes=1,this.lanes=new Uint8Array(Math.ceil((e+1)*s/8))}reset(e){let t=Math.ceil((e+1)*s/8);this.lanes.length<t?this.lanes=new Uint8Array(t):this.lanes.fill(0),this._requiredLanes=1}get requiredLanes(){return this._requiredLanes}push(e,t,i){i&&(this.persist|=1<<e-1);for(let i=t.startLineNumber;i<=t.endLineNumber;i++){let t=s*i+(e-1);this.lanes[t>>>3]|=1<<t%8,this._requiredLanes=Math.max(this._requiredLanes,this.countAtLine(i))}}getLanesAtLine(e){let t=[],i=s*e;for(let e=0;e<s;e++)(this.persist&1<<e||this.lanes[i>>>3]&1<<i%8)&&t.push(e+1),i++;return t.length?t:[n.U.Center]}countAtLine(e){let t=s*e,i=0;for(let e=0;e<s;e++)(this.persist&1<<e||this.lanes[t>>>3]&1<<t%8)&&i++,t++;return i}}},2682:function(e,t,i){"use strict";var n,s,r,o=i("74471"),l=i("4157"),a=i("85376");i("55244");var d=i("36809"),h=i("98681"),c=i("8109"),u=i("94479"),g=i("77667");let m=new g.uy("selectionAnchorSet",!1),p=r=class{static get(e){return e.getContribution(r.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=m.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}setSelectionAnchor(){if(this.editor.hasModel()){let e=this.editor.getPosition();this.editor.changeDecorations(t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(h.Y.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new l.W5().appendText((0,u.NC)("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),(0,o.Z9)((0,u.NC)("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){let e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){let e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){let t=this.editor.getPosition();this.editor.setSelection(h.Y.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){let e=this.decorationId;this.editor.changeDecorations(t=>{t.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};p.ID="editor.contrib.selectionAnchorController",p=r=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o}([(n=1,s=g.i6,function(e,t){s(e,t,1)})],p);class f extends d.R6{constructor(){super({id:"editor.action.setSelectionAnchor",label:(0,u.NC)("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:c.u.editorTextFocus,primary:(0,a.gx)(2089,2080),weight:100}})}async run(e,t){var i;null===(i=p.get(t))||void 0===i||i.setSelectionAnchor()}}class _ extends d.R6{constructor(){super({id:"editor.action.goToSelectionAnchor",label:(0,u.NC)("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:m})}async run(e,t){var i;null===(i=p.get(t))||void 0===i||i.goToSelectionAnchor()}}class v extends d.R6{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:(0,u.NC)("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:m,kbOpts:{kbExpr:c.u.editorTextFocus,primary:(0,a.gx)(2089,2089),weight:100}})}async run(e,t){var i;null===(i=p.get(t))||void 0===i||i.selectFromAnchorToCursor()}}class E extends d.R6{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:(0,u.NC)("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:m,kbOpts:{kbExpr:c.u.editorTextFocus,primary:9,weight:100}})}async run(e,t){var i;null===(i=p.get(t))||void 0===i||i.cancelSelectionAnchor()}}(0,d._K)(p.ID,p,4),(0,d.Qr)(f),(0,d.Qr)(_),(0,d.Qr)(v),(0,d.Qr)(E)},72844:function(e,t,i){"use strict";i.d(t,{A:function(){return s}});var n=i("98212");class s{get color(){return this._color}set color(e){!this._color.equals(e)&&(this._color=e,this._onDidChangeColor.fire(e))}get presentation(){return this.colorPresentations[this.presentationIndex]}get colorPresentations(){return this._colorPresentations}set colorPresentations(e){this._colorPresentations=e,this.presentationIndex>e.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)}constructor(e,t,i){this.presentationIndex=i,this._onColorFlushed=new n.Q5,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new n.Q5,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new n.Q5,this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=e,this._color=e,this._colorPresentations=t}selectNextColorPresentation(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)}guessColorPresentation(e,t){let i=-1;for(let e=0;e<this.colorPresentations.length;e++)if(t.toLowerCase()===this.colorPresentations[e].label){i=e;break}if(-1===i){let e=t.split("(")[0].toLowerCase();for(let t=0;t<this.colorPresentations.length;t++)if(this.colorPresentations[t].label.toLowerCase().startsWith(e)){i=t;break}}-1!==i&&i!==this.presentationIndex&&(this.presentationIndex=i,this._onDidChangePresentation.fire(this.presentation))}flushColor(){this._onColorFlushed.fire(this._color)}}},42134:function(e,t,i){"use strict";i.d(t,{C:function(){return o},n:function(){return r}});var n=i("48933"),s=i("22216");function r(e,t,i){var r,o,l,a;return("string"==typeof i.insertText?""===i.insertText:""===i.insertText.snippet)?{edits:null!==(o=null===(r=i.additionalEdit)||void 0===r?void 0:r.edits)&&void 0!==o?o:[]}:{edits:[...t.map(t=>new n.Gl(e,{range:t,text:"string"==typeof i.insertText?s.Yj.escape(i.insertText)+"$0":i.insertText.snippet,insertAsSnippet:!0})),...null!==(a=null===(l=i.additionalEdit)||void 0===l?void 0:l.edits)&&void 0!==a?a:[]]}}function o(e){var t,i,n;let s=new Map;for(let r of e)for(let o of null!==(t=r.yieldTo)&&void 0!==t?t:[])for(let t of e)if(t!==r){;if(i=o,n=t,"mimeType"in i?i.mimeType===n.handledMimeType:!!n.kind&&i.kind.contains(n.kind)){let e=s.get(r);!e&&(e=[],s.set(r,e)),e.push(t)}}if(!s.size)return Array.from(e);let r=new Set,o=[];return function e(t){if(!t.length)return[];let i=t[0];if(o.includes(i))return console.warn("Yield to cycle detected",i),t;if(r.has(i))return e(t.slice(1));let n=[],l=s.get(i);return l&&(o.push(i),n=e(l),o.pop()),r.add(i),[...n,i,...e(t.slice(1))]}(Array.from(e))}},56186:function(e,t,i){"use strict";i.d(t,{P:function(){return a}});var n=i("98212"),s=i("37764"),r=i("83112"),o=i("52305");function l(e,t){return 1===e||2!==e&&t}class a extends s.JT{get searchString(){return this._searchString}get replaceString(){return this._replaceString}get isRevealed(){return this._isRevealed}get isReplaceRevealed(){return this._isReplaceRevealed}get isRegex(){return l(this._isRegexOverride,this._isRegex)}get wholeWord(){return l(this._wholeWordOverride,this._wholeWord)}get matchCase(){return l(this._matchCaseOverride,this._matchCase)}get preserveCase(){return l(this._preserveCaseOverride,this._preserveCase)}get actualIsRegex(){return this._isRegex}get actualWholeWord(){return this._wholeWord}get actualMatchCase(){return this._matchCase}get actualPreserveCase(){return this._preserveCase}get searchScope(){return this._searchScope}get matchesPosition(){return this._matchesPosition}get matchesCount(){return this._matchesCount}get currentMatch(){return this._currentMatch}constructor(){super(),this._onFindReplaceStateChange=this._register(new n.Q5),this.onFindReplaceStateChange=this._onFindReplaceStateChange.event,this._searchString="",this._replaceString="",this._isRevealed=!1,this._isReplaceRevealed=!1,this._isRegex=!1,this._isRegexOverride=0,this._wholeWord=!1,this._wholeWordOverride=0,this._matchCase=!1,this._matchCaseOverride=0,this._preserveCase=!1,this._preserveCaseOverride=0,this._searchScope=null,this._matchesPosition=0,this._matchesCount=0,this._currentMatch=null,this._loop=!0,this._isSearching=!1,this._filters=null}changeMatchInfo(e,t,i){let n={moveCursor:!1,updateHistory:!1,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1},s=!1;0===t&&(e=0),e>t&&(e=t),this._matchesPosition!==e&&(this._matchesPosition=e,n.matchesPosition=!0,s=!0),this._matchesCount!==t&&(this._matchesCount=t,n.matchesCount=!0,s=!0),void 0!==i&&!r.e.equalsRange(this._currentMatch,i)&&(this._currentMatch=i,n.currentMatch=!0,s=!0),s&&this._onFindReplaceStateChange.fire(n)}change(e,t,i=!0){var n;let s={moveCursor:t,updateHistory:i,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1},o=!1,l=this.isRegex,a=this.wholeWord,d=this.matchCase,h=this.preserveCase;void 0!==e.searchString&&this._searchString!==e.searchString&&(this._searchString=e.searchString,s.searchString=!0,o=!0),void 0!==e.replaceString&&this._replaceString!==e.replaceString&&(this._replaceString=e.replaceString,s.replaceString=!0,o=!0),void 0!==e.isRevealed&&this._isRevealed!==e.isRevealed&&(this._isRevealed=e.isRevealed,s.isRevealed=!0,o=!0),void 0!==e.isReplaceRevealed&&this._isReplaceRevealed!==e.isReplaceRevealed&&(this._isReplaceRevealed=e.isReplaceRevealed,s.isReplaceRevealed=!0,o=!0),void 0!==e.isRegex&&(this._isRegex=e.isRegex),void 0!==e.wholeWord&&(this._wholeWord=e.wholeWord),void 0!==e.matchCase&&(this._matchCase=e.matchCase),void 0!==e.preserveCase&&(this._preserveCase=e.preserveCase),void 0!==e.searchScope&&!(null===(n=e.searchScope)||void 0===n?void 0:n.every(e=>{var t;return null===(t=this._searchScope)||void 0===t?void 0:t.some(t=>!r.e.equalsRange(t,e))}))&&(this._searchScope=e.searchScope,s.searchScope=!0,o=!0),void 0!==e.loop&&this._loop!==e.loop&&(this._loop=e.loop,s.loop=!0,o=!0),void 0!==e.isSearching&&this._isSearching!==e.isSearching&&(this._isSearching=e.isSearching,s.isSearching=!0,o=!0),void 0!==e.filters&&(this._filters?this._filters.update(e.filters):this._filters=e.filters,s.filters=!0,o=!0),this._isRegexOverride=void 0!==e.isRegexOverride?e.isRegexOverride:0,this._wholeWordOverride=void 0!==e.wholeWordOverride?e.wholeWordOverride:0,this._matchCaseOverride=void 0!==e.matchCaseOverride?e.matchCaseOverride:0,this._preserveCaseOverride=void 0!==e.preserveCaseOverride?e.preserveCaseOverride:0,l!==this.isRegex&&(o=!0,s.isRegex=!0),a!==this.wholeWord&&(o=!0,s.wholeWord=!0),d!==this.matchCase&&(o=!0,s.matchCase=!0),h!==this.preserveCase&&(o=!0,s.preserveCase=!0),o&&this._onFindReplaceStateChange.fire(s)}canNavigateBack(){return this.canNavigateInLoop()||1!==this.matchesPosition}canNavigateForward(){return this.canNavigateInLoop()||this.matchesPosition<this.matchesCount}canNavigateInLoop(){return this._loop||this.matchesCount>=o.nD}}},73912:function(e,t,i){"use strict";i.d(t,{Qq:function(){return I},Qs:function(){return O},x$:function(){return R},xC:function(){return w}});var n=i("47983"),s=i("66735"),r=i("45802"),o=i("55278"),l=i("71362"),a=i("67414"),d=i("98084"),h=i("61791"),c=i("64909"),u=i("70668"),g=i("83112"),m=i("98681"),p=i("24370"),f=i("51413"),_=i("44118"),v=i("249"),E=i("40681"),C=i("95449"),b=i("76891"),S=i("80853"),N=i("65488");function T(e,t,i){let n=[],s=new E.o;for(let t of e.ordered(i))n.push(t),t.extensionId&&s.add(t.extensionId);for(let e of t.ordered(i)){if(e.extensionId){if(s.has(e.extensionId))continue;s.add(e.extensionId)}n.push({displayName:e.displayName,extensionId:e.extensionId,provideDocumentFormattingEdits:(t,i,n)=>e.provideDocumentRangeFormattingEdits(t,t.getFullModelRange(),i,n)})}return n}class w{static setFormatterSelector(e){return{dispose:w._selectors.unshift(e)}}static async select(e,t,i,n){if(0===e.length)return;let s=o.$.first(w._selectors);if(s)return await s(e,t,i,n)}}async function R(e,t,i,n,s,r,o){let l=e.get(C.TG),{documentRangeFormattingEditProvider:a}=e.get(b.p),d=(0,c.CL)(t)?t.getModel():t,h=a.ordered(d),u=await w.select(h,d,n,2);u&&(s.report(u),await l.invokeFunction(L,u,t,i,r,o))}async function L(e,t,i,s,r,o){var l,a;let d,u;let f=e.get(p.p),v=e.get(S.VZ),E=e.get(N.IV);(0,c.CL)(i)?(d=i.getModel(),u=new h.Dl(i,5,void 0,r)):(d=i,u=new h.YQ(i,r));let C=[],b=0;for(let e of(0,n._2)(s).sort(g.e.compareRangesUsingStarts))b>0&&g.e.areIntersectingOrTouching(C[b-1],e)?C[b-1]=g.e.fromPositions(C[b-1].getStartPosition(),e.getEndPosition()):b=C.push(e);let T=async e=>{var i,n;v.trace("[format][provideDocumentRangeFormattingEdits] (request)",null===(i=t.extensionId)||void 0===i?void 0:i.value,e);let s=await t.provideDocumentRangeFormattingEdits(d,e,d.getFormattingOptions(),u.token)||[];return v.trace("[format][provideDocumentRangeFormattingEdits] (response)",null===(n=t.extensionId)||void 0===n?void 0:n.value,s),s},w=(e,t)=>{if(!e.length||!t.length)return!1;let i=e.reduce((e,t)=>g.e.plusRange(e,t.range),e[0].range);if(!t.some(e=>g.e.intersectRanges(i,e.range)))return!1;for(let i of e)for(let e of t)if(g.e.intersectRanges(i.range,e.range))return!0;return!1},R=[],L=[];try{if("function"==typeof t.provideDocumentRangesFormattingEdits){v.trace("[format][provideDocumentRangeFormattingEdits] (request)",null===(l=t.extensionId)||void 0===l?void 0:l.value,C);let e=await t.provideDocumentRangesFormattingEdits(d,C,d.getFormattingOptions(),u.token)||[];v.trace("[format][provideDocumentRangeFormattingEdits] (response)",null===(a=t.extensionId)||void 0===a?void 0:a.value,e),L.push(e)}else{for(let e of C){if(u.token.isCancellationRequested)return!0;L.push(await T(e))}for(let e=0;e<C.length;++e)for(let t=e+1;t<C.length;++t){if(u.token.isCancellationRequested)return!0;if(w(L[e],L[t])){let i=g.e.plusRange(C[e],C[t]),n=await T(i);C.splice(t,1),C.splice(e,1),C.push(i),L.splice(t,1),L.splice(e,1),L.push(n),e=0,t=0}}}for(let e of L){if(u.token.isCancellationRequested)return!0;let t=await f.computeMoreMinimalEdits(d.uri,e);t&&R.push(...t)}}finally{u.dispose()}if(0===R.length)return!1;if((0,c.CL)(i))_.V.execute(i,R,!0),i.revealPositionInCenterIfOutsideViewport(i.getPosition(),1);else{let[{range:e}]=R,t=new m.Y(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn);d.pushEditOperations([t],R.map(e=>({text:e.text,range:g.e.lift(e.range),forceMoveMarkers:!0})),e=>{for(let{range:i}of e)if(g.e.areIntersectingOrTouching(i,t))return[new m.Y(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn)];return null})}return E.playSignal(N.iP.format,{userGesture:o}),!0}async function I(e,t,i,n,s,r){let o=e.get(C.TG),l=e.get(b.p),a=(0,c.CL)(t)?t.getModel():t,d=T(l.documentFormattingEditProvider,l.documentRangeFormattingEditProvider,a),h=await w.select(d,a,i,1);h&&(n.report(h),await o.invokeFunction(D,h,t,i,s,r))}async function D(e,t,i,n,s,r){let o,l,a;let d=e.get(p.p),u=e.get(N.IV);(0,c.CL)(i)?(o=i.getModel(),l=new h.Dl(i,5,void 0,s)):(o=i,l=new h.YQ(i,s));try{let e=await t.provideDocumentFormattingEdits(o,o.getFormattingOptions(),l.token);if(a=await d.computeMoreMinimalEdits(o.uri,e),l.token.isCancellationRequested)return!0}finally{l.dispose()}if(!a||0===a.length)return!1;if((0,c.CL)(i))_.V.execute(i,a,2!==n),2!==n&&i.revealPositionInCenterIfOutsideViewport(i.getPosition(),1);else{let[{range:e}]=a,t=new m.Y(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn);o.pushEditOperations([t],a.map(e=>({text:e.text,range:g.e.lift(e.range),forceMoveMarkers:!0})),e=>{for(let{range:i}of e)if(g.e.areIntersectingOrTouching(i,t))return[new m.Y(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn)];return null})}return u.playSignal(N.iP.format,{userGesture:r}),!0}async function A(e,t,i,s,o,l){for(let a of t.documentRangeFormattingEditProvider.ordered(i)){let t=await Promise.resolve(a.provideDocumentRangeFormattingEdits(i,s,o,l)).catch(r.Cp);if((0,n.Of)(t))return await e.computeMoreMinimalEdits(i.uri,t)}}async function y(e,t,i,s,o){for(let l of T(t.documentFormattingEditProvider,t.documentRangeFormattingEditProvider,i)){let t=await Promise.resolve(l.provideDocumentFormattingEdits(i,s,o)).catch(r.Cp);if((0,n.Of)(t))return await e.computeMoreMinimalEdits(i.uri,t)}}function O(e,t,i,n,s,o,l){let a=t.onTypeFormattingEditProvider.ordered(i);return 0===a.length||0>a[0].autoFormatTriggerCharacters.indexOf(s)?Promise.resolve(void 0):Promise.resolve(a[0].provideOnTypeFormattingEdits(i,n,s,o,l)).catch(r.Cp).then(t=>e.computeMoreMinimalEdits(i.uri,t))}w._selectors=new l.S,v.P.registerCommand("_executeFormatRangeProvider",async function(e,...t){let[i,n,r]=t;(0,a.p_)(d.o.isUri(i)),(0,a.p_)(g.e.isIRange(n));let o=e.get(f.S),l=e.get(p.p),h=e.get(b.p),c=await o.createModelReference(i);try{return A(l,h,c.object.textEditorModel,g.e.lift(n),r,s.Ts.None)}finally{c.dispose()}}),v.P.registerCommand("_executeFormatDocumentProvider",async function(e,...t){let[i,n]=t;(0,a.p_)(d.o.isUri(i));let r=e.get(f.S),o=e.get(p.p),l=e.get(b.p),h=await r.createModelReference(i);try{return y(o,l,h.object.textEditorModel,n,s.Ts.None)}finally{h.dispose()}}),v.P.registerCommand("_executeFormatOnTypeProvider",async function(e,...t){let[i,n,r,o]=t;(0,a.p_)(d.o.isUri(i)),(0,a.p_)(u.L.isIPosition(n)),(0,a.p_)("string"==typeof r);let l=e.get(f.S),h=e.get(p.p),c=e.get(b.p),g=await l.createModelReference(i);try{return O(h,c,g.object.textEditorModel,u.L.lift(n),r,o,s.Ts.None)}finally{g.dispose()}})},75174:function(e,t,i){"use strict";var n=i("47983"),s=i("66735"),r=i("45802"),o=i("85376"),l=i("37764"),a=i("36809"),d=i("87294"),h=i("33037"),c=i("83112"),u=i("8109"),g=i("24370"),m=i("76891"),p=i("73912"),f=i("44118"),_=i("94479"),v=i("65488"),E=i("249"),C=i("77667"),b=i("95449"),S=i("24726"),N=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},T=function(e,t){return function(i,n){t(i,n,e)}};let w=class{constructor(e,t,i,n){this._editor=e,this._languageFeaturesService=t,this._workerService=i,this._accessibilitySignalService=n,this._disposables=new l.SL,this._sessionDisposables=new l.SL,this._disposables.add(t.onTypeFormattingEditProvider.onDidChange(this._update,this)),this._disposables.add(e.onDidChangeModel(()=>this._update())),this._disposables.add(e.onDidChangeModelLanguage(()=>this._update())),this._disposables.add(e.onDidChangeConfiguration(e=>{e.hasChanged(56)&&this._update()})),this._update()}dispose(){this._disposables.dispose(),this._sessionDisposables.dispose()}_update(){if(this._sessionDisposables.clear(),!this._editor.getOption(56)||!this._editor.hasModel())return;let e=this._editor.getModel(),[t]=this._languageFeaturesService.onTypeFormattingEditProvider.ordered(e);if(!t||!t.autoFormatTriggerCharacters)return;let i=new h.q;for(let e of t.autoFormatTriggerCharacters)i.add(e.charCodeAt(0));this._sessionDisposables.add(this._editor.onDidType(e=>{let t=e.charCodeAt(e.length-1);i.has(t)&&this._trigger(String.fromCharCode(t))}))}_trigger(e){if(!this._editor.hasModel()||this._editor.getSelections().length>1||!this._editor.getSelection().isEmpty())return;let t=this._editor.getModel(),i=this._editor.getPosition(),r=new s.AU,o=this._editor.onDidChangeModelContent(e=>{if(e.isFlush){r.cancel(),o.dispose();return}for(let t=0,n=e.changes.length;t<n;t++)if(e.changes[t].range.endLineNumber<=i.lineNumber){r.cancel(),o.dispose();return}});(0,p.Qs)(this._workerService,this._languageFeaturesService,t,i,e,t.getFormattingOptions(),r.token).then(e=>{!r.token.isCancellationRequested&&(0,n.Of)(e)&&(this._accessibilitySignalService.playSignal(v.iP.format,{userGesture:!1}),f.V.execute(this._editor,e,!0))}).finally(()=>{o.dispose()})}};w.ID="editor.contrib.autoFormat",w=N([T(1,m.p),T(2,g.p),T(3,v.IV)],w);let R=class{constructor(e,t,i){this.editor=e,this._languageFeaturesService=t,this._instantiationService=i,this._callOnDispose=new l.SL,this._callOnModel=new l.SL,this._callOnDispose.add(e.onDidChangeConfiguration(()=>this._update())),this._callOnDispose.add(e.onDidChangeModel(()=>this._update())),this._callOnDispose.add(e.onDidChangeModelLanguage(()=>this._update())),this._callOnDispose.add(t.documentRangeFormattingEditProvider.onDidChange(this._update,this))}dispose(){this._callOnDispose.dispose(),this._callOnModel.dispose()}_update(){if(this._callOnModel.clear(),!!this.editor.getOption(55)&&!!this.editor.hasModel())this._languageFeaturesService.documentRangeFormattingEditProvider.has(this.editor.getModel())&&this._callOnModel.add(this.editor.onDidPaste(({range:e})=>this._trigger(e)))}_trigger(e){if(!!this.editor.hasModel())!(this.editor.getSelections().length>1)&&this._instantiationService.invokeFunction(p.x$,this.editor,e,2,S.Ex.None,s.Ts.None,!1).catch(r.dL)}};R.ID="editor.contrib.formatOnPaste",R=N([T(1,m.p),T(2,b.TG)],R);class L extends a.R6{constructor(){super({id:"editor.action.formatDocument",label:_.NC("formatDocument.label","Format Document"),alias:"Format Document",precondition:C.Ao.and(u.u.notInCompositeEditor,u.u.writable,u.u.hasDocumentFormattingProvider),kbOpts:{kbExpr:u.u.editorTextFocus,primary:1572,linux:{primary:3111},weight:100},contextMenuOpts:{group:"1_modification",order:1.3}})}async run(e,t){if(t.hasModel()){let i=e.get(b.TG),n=e.get(S.ek);await n.showWhile(i.invokeFunction(p.Qq,t,1,S.Ex.None,s.Ts.None,!0),250)}}}class I extends a.R6{constructor(){super({id:"editor.action.formatSelection",label:_.NC("formatSelection.label","Format Selection"),alias:"Format Selection",precondition:C.Ao.and(u.u.writable,u.u.hasDocumentSelectionFormattingProvider),kbOpts:{kbExpr:u.u.editorTextFocus,primary:(0,o.gx)(2089,2084),weight:100},contextMenuOpts:{when:u.u.hasNonEmptySelection,group:"1_modification",order:1.31}})}async run(e,t){if(!t.hasModel())return;let i=e.get(b.TG),n=t.getModel(),r=t.getSelections().map(e=>e.isEmpty()?new c.e(e.startLineNumber,1,e.startLineNumber,n.getLineMaxColumn(e.startLineNumber)):e),o=e.get(S.ek);await o.showWhile(i.invokeFunction(p.x$,t,r,1,S.Ex.None,s.Ts.None,!0),250)}}(0,a._K)(w.ID,w,2),(0,a._K)(R.ID,R,2),(0,a.Qr)(L),(0,a.Qr)(I),E.P.registerCommand("editor.action.format",async e=>{let t=e.get(d.$).getFocusedCodeEditor();if(!t||!t.hasModel())return;let i=e.get(E.H);t.getSelection().isEmpty()?await i.executeCommand("editor.action.formatDocument"):await i.executeCommand("editor.action.formatSelection")})},89432:function(e,t,i){"use strict";i.d(t,{h:function(){return b}});var n,s=i("55952"),r=i("37764"),o=i("70668"),l=i("83112"),a=i("84144"),d=i("64141"),h=i("33177"),c=i("60327"),u=i("95449"),g=i("81171"),m=i("28756"),p=i("14986"),f=i("26764"),_=i("81833"),v=i("43701"),E=i("98998"),C=function(e,t){return function(i,n){t(i,n,e)}};let b=n=class extends r.JT{constructor(e,t,i){for(let n of(super(),this._editor=e,this._instantiationService=t,this._keybindingService=i,this._currentResult=null,this._widget=this._register(this._instantiationService.createInstance(f.H,this._editor)),this._participants=[],c.Ae.getAll())){let e=this._instantiationService.createInstance(n,this._editor);e instanceof m.D5&&!(e instanceof p.G)&&(this._markdownHoverParticipant=e),this._participants.push(e)}this._participants.sort((e,t)=>e.hoverOrdinal-t.hoverOrdinal),this._computer=new _.q(this._editor,this._participants),this._hoverOperation=this._register(new h.H(this._editor,this._computer)),this._register(this._hoverOperation.onResult(e=>{if(!this._computer.anchor)return;let t=e.hasLoadingMessage?this._addLoadingMessage(e.value):e.value;this._withResult(new v.vF(this._computer.anchor,t,e.isComplete))})),this._register(s.mu(this._widget.getDomNode(),"keydown",e=>{e.equals(9)&&this.hide()})),this._register(d.RW.onDidChange(()=>{this._widget.position&&this._currentResult&&this._setCurrentResult(this._currentResult)}))}_startShowingOrUpdateHover(e,t,i,n,s){if(!this._widget.position||!this._currentResult)return!!e&&(this._startHoverOperationIfNecessary(e,t,i,n,!1),!0);return this._editor.getOption(60).sticky&&s&&this._widget.isMouseGettingCloser(s.event.posx,s.event.posy)?(e&&this._startHoverOperationIfNecessary(e,t,i,n,!0),!0):e?!!(e&&this._currentResult.anchor.equals(e))||(e.canAdoptVisibleHover(this._currentResult.anchor,this._widget.position)?(this._setCurrentResult(this._currentResult.filter(e)),this._startHoverOperationIfNecessary(e,t,i,n,!1),!0):(this._setCurrentResult(null),this._startHoverOperationIfNecessary(e,t,i,n,!1),!0)):(this._setCurrentResult(null),!1)}_startHoverOperationIfNecessary(e,t,i,n,s){!(this._computer.anchor&&this._computer.anchor.equals(e))&&(this._hoverOperation.cancel(),this._computer.anchor=e,this._computer.shouldFocus=n,this._computer.source=i,this._computer.insistOnKeepingHoverVisible=s,this._hoverOperation.start(t))}_setCurrentResult(e){this._currentResult!==e&&(e&&0===e.messages.length&&(e=null),this._currentResult=e,this._currentResult?this._renderMessages(this._currentResult.anchor,this._currentResult.messages):this._widget.hide())}_addLoadingMessage(e){if(this._computer.anchor){for(let t of this._participants)if(t.createLoadingMessage){let i=t.createLoadingMessage(this._computer.anchor);if(i)return e.slice(0).concat([i])}}return e}_withResult(e){if(!this._widget.position||!this._currentResult||!this._currentResult.isComplete||!!e.isComplete&&(!this._computer.insistOnKeepingHoverVisible||0!==e.messages.length))this._setCurrentResult(e)}_renderMessages(e,t){let{showAtPosition:i,showAtSecondaryPosition:s,highlightRange:o}=n.computeHoverRanges(this._editor,e.range,t),l=new r.SL,a=l.add(new E.m(this._keybindingService)),d=document.createDocumentFragment(),h=null,c={fragment:d,statusBar:a,setColorPicker:e=>h=e,onContentsChanged:()=>this._widget.onContentsChanged(),setMinimumDimensions:e=>this._widget.setMinimumDimensions(e),hide:()=>this.hide()};for(let e of this._participants){let i=t.filter(t=>t.owner===e);i.length>0&&l.add(e.renderHoverParts(c,i))}let u=t.some(e=>e.isBeforeContent);if(a.hasContent&&d.appendChild(a.hoverElement),d.hasChildNodes()){if(o){let e=this._editor.createDecorationsCollection();e.set([{range:o,options:n._DECORATION_OPTIONS}]),l.add((0,r.OF)(()=>{e.clear()}))}this._widget.showAt(d,new v.VV(e.initialMousePosX,e.initialMousePosY,h,i,s,this._editor.getOption(60).above,this._computer.shouldFocus,this._computer.source,u,l))}else l.dispose()}static computeHoverRanges(e,t,i){let n=1;if(e.hasModel()){let i=e._getViewModel(),s=i.coordinatesConverter,r=s.convertModelRangeToViewRange(t),l=new o.L(r.startLineNumber,i.getLineMinColumn(r.startLineNumber));n=s.convertViewPositionToModelPosition(l).column}let s=t.startLineNumber,r=t.startColumn,a=i[0].range,d=null;for(let e of i)a=l.e.plusRange(a,e.range),e.range.startLineNumber===s&&e.range.endLineNumber===s&&(r=Math.max(Math.min(r,e.range.startColumn),n)),e.forceShowAtRange&&(d=e.range);let h=d?d.getStartPosition():new o.L(s,t.startColumn);return{showAtPosition:h,showAtSecondaryPosition:d?d.getStartPosition():new o.L(s,r),highlightRange:a}}showsOrWillShow(e){if(this._widget.isResizing)return!0;let t=[];for(let i of this._participants)if(i.suggestHoverAnchor){let n=i.suggestHoverAnchor(e);n&&t.push(n)}let i=e.target;if(6===i.type&&t.push(new c.Qj(0,i.range,e.event.posx,e.event.posy)),7===i.type){let n=this._editor.getOption(50).typicalHalfwidthCharacterWidth/2;!i.detail.isAfterLines&&"number"==typeof i.detail.horizontalDistanceToText&&i.detail.horizontalDistanceToText<n&&t.push(new c.Qj(0,i.range,e.event.posx,e.event.posy))}return 0===t.length?this._startShowingOrUpdateHover(null,0,0,!1,e):(t.sort((e,t)=>t.priority-e.priority),this._startShowingOrUpdateHover(t[0],0,0,!1,e))}startShowingAtRange(e,t,i,n){this._startShowingOrUpdateHover(new c.Qj(0,e,void 0,void 0),t,i,n,null)}async updateFocusedMarkdownHoverVerbosityLevel(e){var t;null===(t=this._markdownHoverParticipant)||void 0===t||t.updateFocusedMarkdownHoverPartVerbosityLevel(e)}containsNode(e){return!!e&&this._widget.getDomNode().contains(e)}focus(){this._widget.focus()}scrollUp(){this._widget.scrollUp()}scrollDown(){this._widget.scrollDown()}scrollLeft(){this._widget.scrollLeft()}scrollRight(){this._widget.scrollRight()}pageUp(){this._widget.pageUp()}pageDown(){this._widget.pageDown()}goToTop(){this._widget.goToTop()}goToBottom(){this._widget.goToBottom()}hide(){this._computer.anchor=null,this._hoverOperation.cancel(),this._setCurrentResult(null)}get isColorPickerVisible(){return this._widget.isColorPickerVisible}get isVisibleFromKeyboard(){return this._widget.isVisibleFromKeyboard}get isVisible(){return this._widget.isVisible}get isFocused(){return this._widget.isFocused}get isResizing(){return this._widget.isResizing}get widget(){return this._widget}};b._DECORATION_OPTIONS=a.qx.register({description:"content-hover-highlight",className:"hoverHighlight"}),b=n=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o}([C(1,u.TG),C(2,g.d)],b)},52929:function(e,t,i){"use strict";i.d(t,{r:function(){return f}});var n,s,r=i("55952"),o=i("1966"),l=i("76115"),a=i("37764"),d=i("71482"),h=i("34308");i("96502");var c=i("83112"),u=i("84144"),g=i("95449");let m=u.qx.register({description:"inline-progress-widget",stickiness:1,showIfCollapsed:!0,after:{content:d.B4,inlineClassName:"inline-editor-progress-decoration",inlineClassNameAffectsLetterSpacing:!0}});class p extends a.JT{constructor(e,t,i,n,s){super(),this.typeId=e,this.editor=t,this.range=i,this.delegate=s,this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this.create(n),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this)}create(e){this.domNode=r.$(".inline-progress-widget"),this.domNode.role="button",this.domNode.title=e;let t=r.$("span.icon");this.domNode.append(t),t.classList.add(...h.k.asClassNameArray(l.l.loading),"codicon-modifier-spin");let i=()=>{let e=this.editor.getOption(67);this.domNode.style.height=`${e}px`,this.domNode.style.width=`${Math.ceil(.8*e)}px`};i(),this._register(this.editor.onDidChangeConfiguration(e=>{(e.hasChanged(52)||e.hasChanged(67))&&i()})),this._register(r.nm(this.domNode,r.tw.CLICK,e=>{this.delegate.cancel()}))}getId(){return p.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:{lineNumber:this.range.startLineNumber,column:this.range.startColumn},preference:[0]}}dispose(){super.dispose(),this.editor.removeContentWidget(this)}}p.baseId="editor.widget.inlineProgressWidget";let f=class extends a.JT{constructor(e,t,i){super(),this.id=e,this._editor=t,this._instantiationService=i,this._showDelay=500,this._showPromise=this._register(new a.XK),this._currentWidget=new a.XK,this._operationIdPool=0,this._currentDecorations=t.createDecorationsCollection()}async showWhile(e,t,i){let n=this._operationIdPool++;this._currentOperation=n,this.clear(),this._showPromise.value=(0,o.Vg)(()=>{let n=c.e.fromPositions(e);this._currentDecorations.set([{range:n,options:m}]).length>0&&(this._currentWidget.value=this._instantiationService.createInstance(p,this.id,this._editor,n,t,i))},this._showDelay);try{return await i}finally{this._currentOperation===n&&(this.clear(),this._currentOperation=void 0)}}clear(){this._showPromise.clear(),this._currentDecorations.clear(),this._currentWidget.clear()}};f=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o}([(n=2,s=g.TG,function(e,t){s(e,t,2)})],f)},48502:function(e,t,i){"use strict";i.d(t,{S:function(){return m}});var n,s,r=i("71482"),o=i("77910"),l=i("83112"),a=i("98681"),d=i("73071"),h=i("38386"),c=i("24184"),u=i("58106"),g=i("71458");let m=class{constructor(e,t,i,n){this._languageConfigurationService=n,this._selection=e,this._isMovingDown=t,this._autoIndent=i,this._selectionId=null,this._moveEndLineSelectionShrink=!1}getEditOperations(e,t){let i=e.getLineCount();if(this._isMovingDown&&this._selection.endLineNumber===i||!this._isMovingDown&&1===this._selection.startLineNumber){this._selectionId=t.trackSelection(this._selection);return}this._moveEndPositionDown=!1;let n=this._selection;n.startLineNumber<n.endLineNumber&&1===n.endColumn&&(this._moveEndPositionDown=!0,n=n.setEndPosition(n.endLineNumber-1,e.getLineMaxColumn(n.endLineNumber-1)));let{tabSize:s,indentSize:o,insertSpaces:d}=e.getOptions(),h=this.buildIndentConverter(s,o,d),g={tokenization:{getLineTokens:t=>e.tokenization.getLineTokens(t),getLanguageId:()=>e.getLanguageId(),getLanguageIdAtPosition:(t,i)=>e.getLanguageIdAtPosition(t,i)},getLineContent:null};if(n.startLineNumber===n.endLineNumber&&1===e.getLineMaxColumn(n.startLineNumber)){let i=n.startLineNumber,s=this._isMovingDown?i+1:i-1;1===e.getLineMaxColumn(s)?t.addEditOperation(new l.e(1,1,1,1),null):(t.addEditOperation(new l.e(i,1,i,1),e.getLineContent(s)),t.addEditOperation(new l.e(s,1,s,e.getLineMaxColumn(s)),null)),n=new a.Y(s,1,s,1)}else{let i,o;if(this._isMovingDown){i=n.endLineNumber+1,o=e.getLineContent(i),t.addEditOperation(new l.e(i-1,e.getLineMaxColumn(i-1),i,e.getLineMaxColumn(i)),null);let a=o;if(this.shouldAutoIndent(e,n)){let m=this.matchEnterRule(e,h,s,i,n.startLineNumber-1);if(null!==m){let t=r.V8(e.getLineContent(i)),n=m+c.Y(t,s);a=c.J(n,s,d)+this.trimStart(o)}else{g.getLineContent=t=>t===n.startLineNumber?e.getLineContent(i):e.getLineContent(t);let t=(0,u.n8)(this._autoIndent,g,e.getLanguageIdAtPosition(i,1),n.startLineNumber,h,this._languageConfigurationService);if(null!==t){let n=r.V8(e.getLineContent(i)),l=c.Y(t,s);l!==c.Y(n,s)&&(a=c.J(l,s,d)+this.trimStart(o))}}t.addEditOperation(new l.e(n.startLineNumber,1,n.startLineNumber,1),a+"\n");let p=this.matchEnterRuleMovingDown(e,h,s,n.startLineNumber,i,a);if(null!==p)0!==p&&this.getIndentEditsOfMovingBlock(e,t,n,s,d,p);else{g.getLineContent=t=>t===n.startLineNumber?a:t>=n.startLineNumber+1&&t<=n.endLineNumber+1?e.getLineContent(t-1):e.getLineContent(t);let o=(0,u.n8)(this._autoIndent,g,e.getLanguageIdAtPosition(i,1),n.startLineNumber+1,h,this._languageConfigurationService);if(null!==o){let i=r.V8(e.getLineContent(n.startLineNumber)),l=c.Y(o,s),a=c.Y(i,s);l!==a&&this.getIndentEditsOfMovingBlock(e,t,n,s,d,l-a)}}}else t.addEditOperation(new l.e(n.startLineNumber,1,n.startLineNumber,1),a+"\n")}else if(i=n.startLineNumber-1,o=e.getLineContent(i),t.addEditOperation(new l.e(i,1,i+1,1),null),t.addEditOperation(new l.e(n.endLineNumber,e.getLineMaxColumn(n.endLineNumber),n.endLineNumber,e.getLineMaxColumn(n.endLineNumber)),"\n"+o),this.shouldAutoIndent(e,n)){g.getLineContent=t=>t===i?e.getLineContent(n.startLineNumber):e.getLineContent(t);let o=this.matchEnterRule(e,h,s,n.startLineNumber,n.startLineNumber-2);if(null!==o)0!==o&&this.getIndentEditsOfMovingBlock(e,t,n,s,d,o);else{let o=(0,u.n8)(this._autoIndent,g,e.getLanguageIdAtPosition(n.startLineNumber,1),i,h,this._languageConfigurationService);if(null!==o){let i=r.V8(e.getLineContent(n.startLineNumber)),l=c.Y(o,s),a=c.Y(i,s);l!==a&&this.getIndentEditsOfMovingBlock(e,t,n,s,d,l-a)}}}}this._selectionId=t.trackSelection(n)}buildIndentConverter(e,t,i){return{shiftIndent:n=>o.U.shiftIndent(n,n.length+1,e,t,i),unshiftIndent:n=>o.U.unshiftIndent(n,n.length+1,e,t,i)}}parseEnterResult(e,t,i,n,s){if(s){let o=s.indentation;s.indentAction===d.wU.None?o=s.indentation+s.appendText:s.indentAction===d.wU.Indent?o=s.indentation+s.appendText:s.indentAction===d.wU.IndentOutdent?o=s.indentation:s.indentAction===d.wU.Outdent&&(o=t.unshiftIndent(s.indentation)+s.appendText);let l=e.getLineContent(n);if(this.trimStart(l).indexOf(this.trimStart(o))>=0){let s=r.V8(e.getLineContent(n)),l=r.V8(o),a=(0,u.tI)(e,n,this._languageConfigurationService);null!==a&&2&a&&(l=t.unshiftIndent(l));let d=c.Y(l,i);return d-c.Y(s,i)}}return null}matchEnterRuleMovingDown(e,t,i,n,s,o){if(r.ow(o)>=0){let r=e.getLineMaxColumn(s),o=(0,g.A)(this._autoIndent,e,new l.e(s,r,s,r),this._languageConfigurationService);return this.parseEnterResult(e,t,i,n,o)}{let s=n-1;for(;s>=1;){let t=e.getLineContent(s);if(r.ow(t)>=0)break;s--}if(s<1||n>e.getLineCount())return null;let o=e.getLineMaxColumn(s),a=(0,g.A)(this._autoIndent,e,new l.e(s,o,s,o),this._languageConfigurationService);return this.parseEnterResult(e,t,i,n,a)}}matchEnterRule(e,t,i,n,s,o){let a=s;for(;a>=1;){let t;if(t=a===s&&void 0!==o?o:e.getLineContent(a),r.ow(t)>=0)break;a--}if(a<1||n>e.getLineCount())return null;let d=e.getLineMaxColumn(a),h=(0,g.A)(this._autoIndent,e,new l.e(a,d,a,d),this._languageConfigurationService);return this.parseEnterResult(e,t,i,n,h)}trimStart(e){return e.replace(/^\s+/,"")}shouldAutoIndent(e,t){if(this._autoIndent<4||!e.tokenization.isCheapToTokenize(t.startLineNumber))return!1;let i=e.getLanguageIdAtPosition(t.startLineNumber,1);return i===e.getLanguageIdAtPosition(t.endLineNumber,1)&&null!==this._languageConfigurationService.getLanguageConfiguration(i).indentRulesSupport&&!0}getIndentEditsOfMovingBlock(e,t,i,n,s,o){for(let a=i.startLineNumber;a<=i.endLineNumber;a++){let d=e.getLineContent(a),h=r.V8(d),u=c.Y(h,n)+o,g=c.J(u,n,s);g!==h&&(t.addEditOperation(new l.e(a,1,a,h.length+1),g),a===i.endLineNumber&&i.endColumn<=h.length+1&&""===g&&(this._moveEndLineSelectionShrink=!0))}}computeCursorState(e,t){let i=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(i=i.setEndPosition(i.endLineNumber+1,1)),this._moveEndLineSelectionShrink&&i.startLineNumber<i.endLineNumber&&(i=i.setEndPosition(i.endLineNumber,2)),i}};m=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o}([(n=3,s=h.c_,function(e,t){s(e,t,3)})],m)},57380:function(e,t,i){"use strict";i.d(t,{Cp:function(){return A},wQ:function(){return y}});var n=i("55952"),s=i("12084"),r=i("74471"),o=i("58036"),l=i("94260"),a=i("77993"),d=i("70432"),h=i("47983"),c=i("1966"),u=i("66735"),g=i("76115"),m=i("98212"),p=i("37764"),f=i("25907"),_=i("67414");i("33790");var v=i("7374"),E=i("70668"),C=i("83112"),b=i("64141"),S=i("94479"),N=i("77667"),T=i("81171"),w=i("80853"),R=i("1163"),L=i("94590"),I=i("29149"),D=function(e,t){return function(i,n){t(i,n,e)}};let A=new N.uy("renameInputVisible",!1,(0,S.NC)("renameInputVisible","Whether the rename input widget is visible"));new N.uy("renameInputFocused",!1,(0,S.NC)("renameInputFocused","Whether the rename input widget is focused"));let y=class{constructor(e,t,i,n,s,r){this._editor=e,this._acceptKeybindings=t,this._themeService=i,this._keybindingService=n,this._logService=r,this.allowEditorOverflow=!0,this._disposables=new p.SL,this._visibleContextKey=A.bindTo(s),this._isEditingRenameCandidate=!1,this._nRenameSuggestionsInvocations=0,this._hadAutomaticRenameSuggestionsInvocation=!1,this._candidates=new Set,this._beforeFirstInputFieldEditSW=new f.G,this._inputWithButton=new P,this._disposables.add(this._inputWithButton),this._editor.addContentWidget(this),this._disposables.add(this._editor.onDidChangeConfiguration(e=>{e.hasChanged(50)&&this._updateFont()})),this._disposables.add(i.onDidColorThemeChange(this._updateStyles,this))}dispose(){this._disposables.dispose(),this._editor.removeContentWidget(this)}getId(){return"__renameInputWidget"}getDomNode(){return!this._domNode&&(this._domNode=document.createElement("div"),this._domNode.className="monaco-editor rename-box",this._domNode.appendChild(this._inputWithButton.domNode),this._renameCandidateListView=this._disposables.add(new O(this._domNode,{fontInfo:this._editor.getOption(50),onFocusChange:e=>{this._inputWithButton.input.value=e,this._isEditingRenameCandidate=!1},onSelectionChange:()=>{this._isEditingRenameCandidate=!1,this.acceptInput(!1)}})),this._disposables.add(this._inputWithButton.onDidInputChange(()=>{var e,t,i,n;(null===(e=this._renameCandidateListView)||void 0===e?void 0:e.focusedCandidate)!==void 0&&(this._isEditingRenameCandidate=!0),null!==(t=this._timeBeforeFirstInputFieldEdit)&&void 0!==t||(this._timeBeforeFirstInputFieldEdit=this._beforeFirstInputFieldEditSW.elapsed()),(null===(i=this._renameCandidateProvidersCts)||void 0===i?void 0:i.token.isCancellationRequested)===!1&&this._renameCandidateProvidersCts.cancel(),null===(n=this._renameCandidateListView)||void 0===n||n.clearFocus()})),this._label=document.createElement("div"),this._label.className="rename-label",this._domNode.appendChild(this._label),this._updateFont(),this._updateStyles(this._themeService.getColorTheme())),this._domNode}_updateStyles(e){var t,i,n,s,r;if(!this._domNode)return;let o=e.getColor(L.rh),l=e.getColor(L.A42);this._domNode.style.backgroundColor=String(null!==(t=e.getColor(L.D0T))&&void 0!==t?t:""),this._domNode.style.boxShadow=o?` 0 0 8px 2px ${o}`:"",this._domNode.style.border=l?`1px solid ${l}`:"",this._domNode.style.color=String(null!==(i=e.getColor(L.zJb))&&void 0!==i?i:"");let a=e.getColor(L.dt_);this._inputWithButton.domNode.style.backgroundColor=String(null!==(n=e.getColor(L.sEe))&&void 0!==n?n:""),this._inputWithButton.input.style.backgroundColor=String(null!==(s=e.getColor(L.sEe))&&void 0!==s?s:""),this._inputWithButton.domNode.style.borderWidth=a?"1px":"0px",this._inputWithButton.domNode.style.borderStyle=a?"solid":"none",this._inputWithButton.domNode.style.borderColor=null!==(r=null==a?void 0:a.toString())&&void 0!==r?r:"none"}_updateFont(){if(void 0===this._domNode)return;(0,_.p_)(void 0!==this._label,"RenameWidget#_updateFont: _label must not be undefined given _domNode is defined"),this._editor.applyFontInfo(this._inputWithButton.input);let e=this._editor.getOption(50);this._label.style.fontSize=`${this._computeLabelFontSize(e.fontSize)}px`}_computeLabelFontSize(e){return .8*e}getPosition(){if(!this._visible||!this._editor.hasModel()||!this._editor.getDomNode())return null;let e=n.D6(this.getDomNode().ownerDocument.body),t=n.i(this._editor.getDomNode()),i=this._getTopForPosition();this._nPxAvailableAbove=i+t.top,this._nPxAvailableBelow=e.height-this._nPxAvailableAbove;let s=this._editor.getOption(67),{totalHeight:r}=k.getLayoutInfo({lineHeight:s}),o=this._nPxAvailableBelow>6*r?[2,1]:[1,2];return{position:this._position,preference:o}}beforeRender(){var e,t;let[i,n]=this._acceptKeybindings;return this._label.innerText=(0,S.NC)({key:"label",comment:['placeholders are keybindings, e.g "F2 to Rename, Shift+F2 to Preview"']},"{0} to Rename, {1} to Preview",null===(e=this._keybindingService.lookupKeybinding(i))||void 0===e?void 0:e.getLabel(),null===(t=this._keybindingService.lookupKeybinding(n))||void 0===t?void 0:t.getLabel()),this._domNode.style.minWidth="200px",null}afterRender(e){let t;if(this._trace("invoking afterRender, position: ",e?"not null":"null"),null===e){this.cancelInput(!0,"afterRender (because position is null)");return}if(!this._editor.hasModel()||!this._editor.getDomNode())return;(0,_.p_)(this._renameCandidateListView),(0,_.p_)(void 0!==this._nPxAvailableAbove),(0,_.p_)(void 0!==this._nPxAvailableBelow);let i=n.wn(this._inputWithButton.domNode),s=n.wn(this._label);t=2===e?this._nPxAvailableBelow:this._nPxAvailableAbove,this._renameCandidateListView.layout({height:t-s-i,width:n.w(this._inputWithButton.domNode)})}acceptInput(e){var t;this._trace("invoking acceptInput"),null===(t=this._currentAcceptInput)||void 0===t||t.call(this,e)}cancelInput(e,t){var i;this._trace(`invoking cancelInput, caller: ${t}, _currentCancelInput: ${this._currentAcceptInput?"not undefined":"undefined"}`),null===(i=this._currentCancelInput)||void 0===i||i.call(this,e)}focusNextRenameSuggestion(){var e;!(null===(e=this._renameCandidateListView)||void 0===e?void 0:e.focusNext())&&(this._inputWithButton.input.value=this._currentName)}focusPreviousRenameSuggestion(){var e;!(null===(e=this._renameCandidateListView)||void 0===e?void 0:e.focusPrevious())&&(this._inputWithButton.input.value=this._currentName)}getInput(e,t,i,r,o){let{start:l,end:a}=this._getSelection(e,t);this._renameCts=o;let d=new p.SL;this._nRenameSuggestionsInvocations=0,this._hadAutomaticRenameSuggestionsInvocation=!1,void 0===r?this._inputWithButton.button.style.display="none":(this._inputWithButton.button.style.display="flex",this._requestRenameCandidatesOnce=r,this._requestRenameCandidates(t,!1),d.add(n.nm(this._inputWithButton.button,"click",()=>this._requestRenameCandidates(t,!0))),d.add(n.nm(this._inputWithButton.button,n.tw.KEY_DOWN,e=>{let i=new s.y(e);(i.equals(3)||i.equals(10))&&(i.stopPropagation(),i.preventDefault(),this._requestRenameCandidates(t,!0))}))),this._isEditingRenameCandidate=!1,this._domNode.classList.toggle("preview",i),this._position=new E.L(e.startLineNumber,e.startColumn),this._currentName=t,this._inputWithButton.input.value=t,this._inputWithButton.input.setAttribute("selectionStart",l.toString()),this._inputWithButton.input.setAttribute("selectionEnd",a.toString()),this._inputWithButton.input.size=Math.max((e.endColumn-e.startColumn)*1.1,20),this._beforeFirstInputFieldEditSW.reset(),d.add((0,p.OF)(()=>{this._renameCts=void 0,o.dispose(!0)})),d.add((0,p.OF)(()=>{void 0!==this._renameCandidateProvidersCts&&(this._renameCandidateProvidersCts.dispose(!0),this._renameCandidateProvidersCts=void 0)})),d.add((0,p.OF)(()=>this._candidates.clear()));let h=new c.CR;return h.p.finally(()=>{d.dispose(),this._hide()}),this._currentCancelInput=e=>{var t;return this._trace("invoking _currentCancelInput"),this._currentAcceptInput=void 0,this._currentCancelInput=void 0,null===(t=this._renameCandidateListView)||void 0===t||t.clearCandidates(),h.complete(e),!0},this._currentAcceptInput=e=>{let n,s;this._trace("invoking _currentAcceptInput"),(0,_.p_)(void 0!==this._renameCandidateListView);let r=this._renameCandidateListView.nCandidates,o=this._renameCandidateListView.focusedCandidate;if(void 0!==o?(this._trace("using new name from renameSuggestion"),n=o,s={k:"renameSuggestion"}):(this._trace("using new name from inputField"),n=this._inputWithButton.input.value,s=this._isEditingRenameCandidate?{k:"userEditedRenameSuggestion"}:{k:"inputField"}),n===t||0===n.trim().length){this.cancelInput(!0,"_currentAcceptInput (because newName === value || newName.trim().length === 0)");return}this._currentAcceptInput=void 0,this._currentCancelInput=void 0,this._renameCandidateListView.clearCandidates(),h.complete({newName:n,wantsPreview:i&&e,stats:{source:s,nRenameSuggestions:r,timeBeforeFirstInputFieldEdit:this._timeBeforeFirstInputFieldEdit,nRenameSuggestionsInvocations:this._nRenameSuggestionsInvocations,hadAutomaticRenameSuggestionsInvocation:this._hadAutomaticRenameSuggestionsInvocation}})},d.add(o.token.onCancellationRequested(()=>this.cancelInput(!0,"cts.token.onCancellationRequested"))),d.add(this._editor.onDidBlurEditorWidget(()=>{var e;return this.cancelInput(!(null===(e=this._domNode)||void 0===e?void 0:e.ownerDocument.hasFocus()),"editor.onDidBlurEditorWidget")})),this._show(),h.p}_requestRenameCandidates(e,t){if(void 0!==this._requestRenameCandidatesOnce&&(void 0!==this._renameCandidateProvidersCts&&this._renameCandidateProvidersCts.dispose(!0),(0,_.p_)(this._renameCts),"stop"!==this._inputWithButton.buttonState)){this._renameCandidateProvidersCts=new u.AU;let i=t?b.Ll.Invoke:b.Ll.Automatic,n=this._requestRenameCandidatesOnce(i,this._renameCandidateProvidersCts.token);if(0===n.length){this._inputWithButton.setSparkleButton();return}!t&&(this._hadAutomaticRenameSuggestionsInvocation=!0),this._nRenameSuggestionsInvocations+=1,this._inputWithButton.setStopButton(),this._updateRenameCandidates(n,e,this._renameCts.token)}}_getSelection(e,t){(0,_.p_)(this._editor.hasModel());let i=this._editor.getSelection(),n=0,s=t.length;return!C.e.isEmpty(i)&&!C.e.spansMultipleLines(i)&&C.e.containsRange(e,i)&&(n=Math.max(0,i.startColumn-e.startColumn),s=Math.min(e.endColumn,i.endColumn)-e.startColumn),{start:n,end:s}}_show(){this._trace("invoking _show"),this._editor.revealLineInCenterIfOutsideViewport(this._position.lineNumber,0),this._visible=!0,this._visibleContextKey.set(!0),this._editor.layoutContentWidget(this),setTimeout(()=>{this._inputWithButton.input.focus(),this._inputWithButton.input.setSelectionRange(parseInt(this._inputWithButton.input.getAttribute("selectionStart")),parseInt(this._inputWithButton.input.getAttribute("selectionEnd")))},100)}async _updateRenameCandidates(e,t,i){let n=(...e)=>this._trace("_updateRenameCandidates",...e);n("start");let s=await (0,c.eP)(Promise.allSettled(e),i);if(this._inputWithButton.setSparkleButton(),void 0===s){n("returning early - received updateRenameCandidates results - undefined");return}let r=s.flatMap(e=>"fulfilled"===e.status&&(0,_.$K)(e.value)?e.value:[]);n(`received updateRenameCandidates results - total (unfiltered) ${r.length} candidates.`);let o=h.EB(r,e=>e.newSymbolName);n(`distinct candidates - ${o.length} candidates.`);let l=o.filter(({newSymbolName:e})=>e.trim().length>0&&e!==this._inputWithButton.input.value&&e!==t&&!this._candidates.has(e));if(n(`valid distinct candidates - ${r.length} candidates.`),l.forEach(e=>this._candidates.add(e.newSymbolName)),l.length<1){n("returning early - no valid distinct candidates");return}n("setting candidates"),this._renameCandidateListView.setCandidates(l),n("asking editor to re-layout"),this._editor.layoutContentWidget(this)}_hide(){this._trace("invoked _hide"),this._visible=!1,this._visibleContextKey.reset(),this._editor.layoutContentWidget(this)}_getTopForPosition(){let e;let t=this._editor.getVisibleRanges();return t.length>0?e=t[0].startLineNumber:(this._logService.warn("RenameWidget#_getTopForPosition: this should not happen - visibleRanges is empty"),e=Math.max(1,this._position.lineNumber-5)),this._editor.getTopForLineNumber(this._position.lineNumber)-this._editor.getTopForLineNumber(e)}_trace(...e){this._logService.trace("RenameWidget",...e)}};y=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o}([D(2,I.XE),D(3,T.d),D(4,N.i6),D(5,w.VZ)],y);class O{constructor(e,t){this._disposables=new p.SL,this._availableHeight=0,this._minimumWidth=0,this._lineHeight=t.fontInfo.lineHeight,this._typicalHalfwidthCharacterWidth=t.fontInfo.typicalHalfwidthCharacterWidth,this._listContainer=document.createElement("div"),this._listContainer.className="rename-box rename-candidate-list-container",e.appendChild(this._listContainer),this._listWidget=O._createListWidget(this._listContainer,this._candidateViewHeight,t.fontInfo),this._listWidget.onDidChangeFocus(e=>{1===e.elements.length&&t.onFocusChange(e.elements[0].newSymbolName)},this._disposables),this._listWidget.onDidChangeSelection(e=>{1===e.elements.length&&t.onSelectionChange()},this._disposables),this._disposables.add(this._listWidget.onDidBlur(e=>{this._listWidget.setFocus([])})),this._listWidget.style((0,R.TU)({listInactiveFocusForeground:L.NPS,listInactiveFocusBackground:L.Vqd}))}dispose(){this._listWidget.dispose(),this._disposables.dispose()}layout({height:e,width:t}){this._availableHeight=e,this._minimumWidth=t}setCandidates(e){this._listWidget.splice(0,0,e);let t=this._pickListHeight(this._listWidget.length),i=this._pickListWidth(e);this._listWidget.layout(t,i),this._listContainer.style.height=`${t}px`,this._listContainer.style.width=`${i}px`,r.i7((0,S.NC)("renameSuggestionsReceivedAria","Received {0} rename suggestions",e.length))}clearCandidates(){this._listContainer.style.height="0px",this._listContainer.style.width="0px",this._listWidget.splice(0,this._listWidget.length,[])}get nCandidates(){return this._listWidget.length}get focusedCandidate(){if(0===this._listWidget.length)return;let e=this._listWidget.getSelectedElements()[0];if(void 0!==e)return e.newSymbolName;let t=this._listWidget.getFocusedElements()[0];if(void 0!==t)return t.newSymbolName}focusNext(){if(0===this._listWidget.length)return!1;let e=this._listWidget.getFocus();if(0===e.length)return this._listWidget.focusFirst(),this._listWidget.reveal(0),!0;if(e[0]===this._listWidget.length-1)return this._listWidget.setFocus([]),this._listWidget.reveal(0),!1;{this._listWidget.focusNext();let e=this._listWidget.getFocus()[0];return this._listWidget.reveal(e),!0}}focusPrevious(){if(0===this._listWidget.length)return!1;let e=this._listWidget.getFocus();if(0===e.length){this._listWidget.focusLast();let e=this._listWidget.getFocus()[0];return this._listWidget.reveal(e),!0}if(0===e[0])return this._listWidget.setFocus([]),!1;{this._listWidget.focusPrevious();let e=this._listWidget.getFocus()[0];return this._listWidget.reveal(e),!0}}clearFocus(){this._listWidget.setFocus([])}get _candidateViewHeight(){let{totalHeight:e}=k.getLayoutInfo({lineHeight:this._lineHeight});return e}_pickListHeight(e){let t=this._candidateViewHeight*e;return Math.min(t,this._availableHeight,7*this._candidateViewHeight)}_pickListWidth(e){let t=Math.ceil(Math.max(...e.map(e=>e.newSymbolName.length))*this._typicalHalfwidthCharacterWidth);return Math.max(this._minimumWidth,25+t+10)}static _createListWidget(e,t,i){let n=new class{getTemplateId(e){return"candidate"}getHeight(e){return t}},s=new class{constructor(){this.templateId="candidate"}renderTemplate(e){return new k(e,i)}renderElement(e,t,i){i.populate(e)}disposeTemplate(e){e.dispose()}};return new d.aV("NewSymbolNameCandidates",e,n,[s],{keyboardSupport:!1,mouseSupport:!0,multipleSelectionSupport:!1})}}class P{constructor(){this._onDidInputChange=new m.Q5,this.onDidInputChange=this._onDidInputChange.event,this._disposables=new p.SL}get domNode(){return!this._domNode&&(this._domNode=document.createElement("div"),this._domNode.className="rename-input-with-button",this._domNode.style.display="flex",this._domNode.style.flexDirection="row",this._domNode.style.alignItems="center",this._inputNode=document.createElement("input"),this._inputNode.className="rename-input",this._inputNode.type="text",this._inputNode.style.border="none",this._inputNode.setAttribute("aria-label",(0,S.NC)("renameAriaLabel","Rename input. Type new name and press Enter to commit.")),this._domNode.appendChild(this._inputNode),this._buttonNode=document.createElement("div"),this._buttonNode.className="rename-suggestions-button",this._buttonNode.setAttribute("tabindex","0"),this._buttonGenHoverText=S.NC("generateRenameSuggestionsButton","Generate new name suggestions"),this._buttonCancelHoverText=S.NC("cancelRenameSuggestionsButton","Cancel"),this._buttonHover=(0,o.B)().setupUpdatableHover((0,l.tM)("element"),this._buttonNode,this._buttonGenHoverText),this._disposables.add(this._buttonHover),this._domNode.appendChild(this._buttonNode),this._disposables.add(n.nm(this.input,n.tw.INPUT,()=>this._onDidInputChange.fire())),this._disposables.add(n.nm(this.input,n.tw.KEY_DOWN,e=>{let t=new s.y(e);(15===t.keyCode||17===t.keyCode)&&this._onDidInputChange.fire()})),this._disposables.add(n.nm(this.input,n.tw.CLICK,()=>this._onDidInputChange.fire())),this._disposables.add(n.nm(this.input,n.tw.FOCUS,()=>{this.domNode.style.outlineWidth="1px",this.domNode.style.outlineStyle="solid",this.domNode.style.outlineOffset="-1px",this.domNode.style.outlineColor="var(--vscode-focusBorder)"})),this._disposables.add(n.nm(this.input,n.tw.BLUR,()=>{this.domNode.style.outline="none"}))),this._domNode}get input(){return(0,_.p_)(this._inputNode),this._inputNode}get button(){return(0,_.p_)(this._buttonNode),this._buttonNode}get buttonState(){return this._buttonState}setSparkleButton(){var e,t;this._buttonState="sparkle",null!==(e=this._sparkleIcon)&&void 0!==e||(this._sparkleIcon=(0,a.h)(g.l.sparkle)),n.PO(this.button),this.button.appendChild(this._sparkleIcon),this.button.setAttribute("aria-label","Generating new name suggestions"),null===(t=this._buttonHover)||void 0===t||t.update(this._buttonGenHoverText),this.input.focus()}setStopButton(){var e,t;this._buttonState="stop",null!==(e=this._stopIcon)&&void 0!==e||(this._stopIcon=(0,a.h)(g.l.primitiveSquare)),n.PO(this.button),this.button.appendChild(this._stopIcon),this.button.setAttribute("aria-label","Cancel generating new name suggestions"),null===(t=this._buttonHover)||void 0===t||t.update(this._buttonCancelHoverText),this.input.focus()}dispose(){this._disposables.dispose()}}class k{constructor(e,t){this._domNode=document.createElement("div"),this._domNode.className="rename-box rename-candidate",this._domNode.style.display="flex",this._domNode.style.columnGap="5px",this._domNode.style.alignItems="center",this._domNode.style.height=`${t.lineHeight}px`,this._domNode.style.padding=`${k._PADDING}px`;let i=document.createElement("div");i.style.display="flex",i.style.alignItems="center",i.style.width=i.style.height=`${.8*t.lineHeight}px`,this._domNode.appendChild(i),this._icon=(0,a.h)(g.l.sparkle),this._icon.style.display="none",i.appendChild(this._icon),this._label=document.createElement("div"),v.N(this._label,t),this._domNode.appendChild(this._label),e.appendChild(this._domNode)}populate(e){this._updateIcon(e),this._updateLabel(e)}_updateIcon(e){var t;let i=!!(null===(t=e.tags)||void 0===t?void 0:t.includes(b.w.AIGenerated));this._icon.style.display=i?"inherit":"none"}_updateLabel(e){this._label.innerText=e.newSymbolName}static getLayoutInfo({lineHeight:e}){return{totalHeight:e+2*k._PADDING}}dispose(){}}k._PADDING=2},82976:function(e,t,i){"use strict";i.d(t,{AF:function(){return U},Dq:function(){return B},eR:function(){return $}});var n=i("74471"),s=i("37764"),r=i("87294"),o=i("16643"),l=i("39589"),a=i("1680"),d=i("49756"),h=i("95316"),c=i("249"),u=i("756"),g=i("77667"),m=i("81844"),p=i("95449"),f=i("81171"),_=i("97717"),v=i("29149"),E=i("44279"),C=i("30410"),b=i("15266"),S=i("24726"),N=i("96468"),T=i("51405"),w=i("33925"),R=i("85829"),L=i("38386"),I=i("76891"),D=i("85854"),A=i("65488"),y=i("91867"),O=i("94260"),P=i("59955"),k=i("58036"),M=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},x=function(e,t){return function(i,n){t(i,n,e)}};let F=0,H=!1,W=class extends o.Gm{constructor(e,t,i,s,r,o,l,d,h,c,u,g,m){let p={...t};p.ariaLabel=p.ariaLabel||C.B8.editorViewAccessibleLabel,p.ariaLabel=p.ariaLabel+";"+C.B8.accessibilityHelpMessage,super(e,p,{},i,s,r,o,h,c,u,g,m),d instanceof a.zC?this._standaloneKeybindingService=d:this._standaloneKeybindingService=null,!function(e){if(!e){if(H)return;H=!0}n.wW(e||y.E.document.body)}(p.ariaContainerElement),(0,O.rM)((e,t)=>i.createInstance(P.mQ,e,t,{})),(0,k.r)(l)}addCommand(e,t,i){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;let n="DYNAMIC_"+ ++F,s=g.Ao.deserialize(i);return this._standaloneKeybindingService.addDynamicKeybinding(n,e,t,s),n}createContextKey(e,t){return this._contextKeyService.createKey(e,t)}addAction(e){if("string"!=typeof e.id||"string"!=typeof e.label||"function"!=typeof e.run)throw Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");if(!this._standaloneKeybindingService)return console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),s.JT.None;let t=e.id,i=e.label,n=g.Ao.and(g.Ao.equals("editorId",this.getId()),g.Ao.deserialize(e.precondition)),r=e.keybindings,o=g.Ao.and(n,g.Ao.deserialize(e.keybindingContext)),a=e.contextMenuGroupId||null,d=e.contextMenuOrder||0,u=(t,...i)=>Promise.resolve(e.run(this,...i)),m=new s.SL,p=this.getId()+":"+t;if(m.add(c.P.registerCommand(p,u)),a&&m.add(h.BH.appendMenuItem(h.eH.EditorContext,{command:{id:p,title:i},when:n,group:a,order:d})),Array.isArray(r))for(let e of r)m.add(this._standaloneKeybindingService.addDynamicKeybinding(p,e,u,o));let f=new l.p(p,i,i,void 0,n,(...t)=>Promise.resolve(e.run(this,...t)),this._contextKeyService);return this._actions.set(t,f),m.add((0,s.OF)(()=>{this._actions.delete(t)})),m}_triggerCommand(e,t){if(this._codeEditorService instanceof w.B)try{this._codeEditorService.setActiveCodeEditor(this),super._triggerCommand(e,t)}finally{this._codeEditorService.setActiveCodeEditor(null)}else super._triggerCommand(e,t)}};W=M([x(2,p.TG),x(3,r.$),x(4,c.H),x(5,g.i6),x(6,P.Bs),x(7,f.d),x(8,v.XE),x(9,_.lT),x(10,E.F),x(11,L.c_),x(12,I.p)],W);let B=class extends W{constructor(e,t,i,n,s,r,o,l,d,h,c,u,g,m,p,f){let _;let v={...t};(0,a.XZ)(c,v,!1);let E=d.registerEditorContainer(e);"string"==typeof v.theme&&d.setTheme(v.theme),void 0!==v.autoDetectHighContrast&&d.setAutoDetectHighContrast(!!v.autoDetectHighContrast);let C=v.model;if(delete v.model,super(e,v,i,n,s,r,o,l,d,h,u,p,f),this._configurationService=c,this._standaloneThemeService=d,this._register(E),void 0===C){let e=m.getLanguageIdByMimeType(v.language)||v.language||R.bd;_=$(g,m,v.value||"",e,void 0),this._ownsModel=!0}else _=C,this._ownsModel=!1;if(this._attachModel(_),_){let e={oldModelUrl:null,newModelUrl:_.uri};this._onDidChangeModel.fire(e)}}dispose(){super.dispose()}updateOptions(e){(0,a.XZ)(this._configurationService,e,!1),"string"==typeof e.theme&&this._standaloneThemeService.setTheme(e.theme),void 0!==e.autoDetectHighContrast&&this._standaloneThemeService.setAutoDetectHighContrast(!!e.autoDetectHighContrast),super.updateOptions(e)}_postDetachModelCleanup(e){super._postDetachModelCleanup(e),e&&this._ownsModel&&(e.dispose(),this._ownsModel=!1)}};B=M([x(2,p.TG),x(3,r.$),x(4,c.H),x(5,g.i6),x(6,P.Bs),x(7,f.d),x(8,d.Z),x(9,_.lT),x(10,u.Ui),x(11,E.F),x(12,N.q),x(13,T.O),x(14,L.c_),x(15,I.p)],B);let U=class extends D.p{constructor(e,t,i,n,s,r,o,l,d,h,c,u){let g={...t};(0,a.XZ)(l,g,!0);let m=r.registerEditorContainer(e);"string"==typeof g.theme&&r.setTheme(g.theme),void 0!==g.autoDetectHighContrast&&r.setAutoDetectHighContrast(!!g.autoDetectHighContrast),super(e,g,{},n,i,s,u,h),this._configurationService=l,this._standaloneThemeService=r,this._register(m)}dispose(){super.dispose()}updateOptions(e){(0,a.XZ)(this._configurationService,e,!0),"string"==typeof e.theme&&this._standaloneThemeService.setTheme(e.theme),void 0!==e.autoDetectHighContrast&&this._standaloneThemeService.setAutoDetectHighContrast(!!e.autoDetectHighContrast),super.updateOptions(e)}_createInnerEditor(e,t,i){return e.createInstance(W,t,i)}getOriginalEditor(){return super.getOriginalEditor()}getModifiedEditor(){return super.getModifiedEditor()}addCommand(e,t,i){return this.getModifiedEditor().addCommand(e,t,i)}createContextKey(e,t){return this.getModifiedEditor().createContextKey(e,t)}addAction(e){return this.getModifiedEditor().addAction(e)}};function $(e,t,i,n,s){if(i=i||"",!n){let n=i.indexOf("\n"),r=i;return -1!==n&&(r=i.substring(0,n)),V(e,i,t.createByFilepathOrFirstLine(s||null,r),s)}return V(e,i,t.createById(n),s)}function V(e,t,i,n){return e.createModel(t,i,n)}U=M([x(2,p.TG),x(3,g.i6),x(4,r.$),x(5,d.Z),x(6,_.lT),x(7,u.Ui),x(8,m.i),x(9,S.ek),x(10,b.p),x(11,A.IV)],U)},50216:function(e,t,i){"use strict";i.d(t,{a:function(){return d},g:function(){return h}});var n,s,r=i("64649"),o=i("37764"),l=i("55111"),a=i("55952");let d=class extends o.JT{constructor(e){super(),this.layoutService=e,this.contextView=this._register(new r.Ry(this.layoutService.mainContainer,1)),this.layout(),this._register(e.onDidLayoutContainer(()=>this.layout()))}showContextView(e,t,i){let n;n=t?t===this.layoutService.getContainer((0,a.Jj)(t))?1:i?3:2:1,this.contextView.setContainer(null!=t?t:this.layoutService.activeContainer,n),this.contextView.show(e);let s={close:()=>{this.openContextView===s&&this.hideContextView()}};return this.openContextView=s,s}layout(){this.contextView.layout()}hideContextView(e){this.contextView.hide(e),this.openContextView=void 0}};d=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o}([(n=0,s=l.F,function(e,t){s(e,t,0)})],d);class h extends d{getContextViewElement(){return this.contextView.getViewElement()}}},91278:function(e,t,i){"use strict";i.d(t,{IP:function(){return a},Ry:function(){return s}});var n,s,r=i("47983"),o=i("37764"),l=i("88928");(n=s||(s={}))[n.PRESERVE=0]="PRESERVE",n[n.LAST=1]="LAST";let a={Quickaccess:"workbench.contributions.quickaccess"};l.B.add(a.Quickaccess,new class e{constructor(){this.providers=[],this.defaultProvider=void 0}registerQuickAccessProvider(e){return 0===e.prefix.length?this.defaultProvider=e:this.providers.push(e),this.providers.sort((e,t)=>t.prefix.length-e.prefix.length),(0,o.OF)(()=>{this.providers.splice(this.providers.indexOf(e),1),this.defaultProvider===e&&(this.defaultProvider=void 0)})}getQuickAccessProviders(){return(0,r.kX)([this.defaultProvider,...this.providers])}getQuickAccessProvider(e){return e&&this.providers.find(t=>e.startsWith(t.prefix))||void 0||this.defaultProvider}})},75889:function(e,t,i){"use strict";i.d(t,{j:function(){return n}}),i("61704");var n,s=i("76115"),r=i("34308"),o=i("64138");(n||(n={})).className=function(e){switch(e){case o.Z.Ignore:return"severity-ignore "+r.k.asClassName(s.l.info);case o.Z.Info:return r.k.asClassName(s.l.info);case o.Z.Warning:return r.k.asClassName(s.l.warning);case o.Z.Error:return r.k.asClassName(s.l.error);default:return""}}},81229:function(e,t,i){"use strict";i.d(t,{$d:function(){return b},Bq:function(){return c},EQ:function(){return P},F3:function(){return E},Gw:function(){return T},Kj:function(){return y},M6:function(){return g},Oo:function(){return h},PX:function(){return w},S:function(){return I},Tn:function(){return m},Un:function(){return A},XV:function(){return N},_2:function(){return d},_b:function(){return a},dC:function(){return u},kv:function(){return _},mV:function(){return C},oS:function(){return L},pd:function(){return S},rg:function(){return p},s$:function(){return v},ux:function(){return O},vG:function(){return R},y6:function(){return D},yt:function(){return f}});var n=i("94479"),s=i("52640"),r=i("19957"),o=i("45570"),l=i("55475");let a=(0,r.P6)("list.focusBackground",{dark:null,light:null,hcDark:null,hcLight:null},n.NC("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),d=(0,r.P6)("list.focusForeground",{dark:null,light:null,hcDark:null,hcLight:null},n.NC("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),h=(0,r.P6)("list.focusOutline",{dark:o.R8,light:o.R8,hcDark:o.xL,hcLight:o.xL},n.NC("listFocusOutline","List/Tree outline color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),c=(0,r.P6)("list.focusAndSelectionOutline",{dark:null,light:null,hcDark:null,hcLight:null},n.NC("listFocusAndSelectionOutline","List/Tree outline color for the focused item when the list/tree is active and selected. An active list/tree has keyboard focus, an inactive does not.")),u=(0,r.P6)("list.activeSelectionBackground",{dark:"#04395E",light:"#0060C0",hcDark:null,hcLight:s.Il.fromHex("#0F4A85").transparent(.1)},n.NC("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),g=(0,r.P6)("list.activeSelectionForeground",{dark:s.Il.white,light:s.Il.white,hcDark:null,hcLight:null},n.NC("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),m=(0,r.P6)("list.activeSelectionIconForeground",{dark:null,light:null,hcDark:null,hcLight:null},n.NC("listActiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),p=(0,r.P6)("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hcDark:null,hcLight:s.Il.fromHex("#0F4A85").transparent(.1)},n.NC("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),f=(0,r.P6)("list.inactiveSelectionForeground",{dark:null,light:null,hcDark:null,hcLight:null},n.NC("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),_=(0,r.P6)("list.inactiveSelectionIconForeground",{dark:null,light:null,hcDark:null,hcLight:null},n.NC("listInactiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),v=(0,r.P6)("list.inactiveFocusBackground",{dark:null,light:null,hcDark:null,hcLight:null},n.NC("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),E=(0,r.P6)("list.inactiveFocusOutline",{dark:null,light:null,hcDark:null,hcLight:null},n.NC("listInactiveFocusOutline","List/Tree outline color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),C=(0,r.P6)("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:s.Il.white.transparent(.1),hcLight:s.Il.fromHex("#0F4A85").transparent(.1)},n.NC("listHoverBackground","List/Tree background when hovering over items using the mouse.")),b=(0,r.P6)("list.hoverForeground",{dark:null,light:null,hcDark:null,hcLight:null},n.NC("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),S=(0,r.P6)("list.dropBackground",{dark:"#062F4A",light:"#D6EBFF",hcDark:null,hcLight:null},n.NC("listDropBackground","List/Tree drag and drop background when moving items over other items when using the mouse.")),N=(0,r.P6)("list.dropBetweenBackground",{dark:o.XZ,light:o.XZ,hcDark:null,hcLight:null},n.NC("listDropBetweenBackground","List/Tree drag and drop border color when moving items between items when using the mouse.")),T=(0,r.P6)("list.highlightForeground",{dark:"#2AAAFF",light:"#0066BF",hcDark:o.R8,hcLight:o.R8},n.NC("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")),w=(0,r.P6)("list.focusHighlightForeground",{dark:T,light:(0,r.NS)(u,T,"#BBE7FF"),hcDark:T,hcLight:T},n.NC("listFocusHighlightForeground","List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree."));(0,r.P6)("list.invalidItemForeground",{dark:"#B89500",light:"#B89500",hcDark:"#B89500",hcLight:"#B5200D"},n.NC("invalidItemForeground","List/Tree foreground color for invalid items, for example an unresolved root in explorer.")),(0,r.P6)("list.errorForeground",{dark:"#F88070",light:"#B01011",hcDark:null,hcLight:null},n.NC("listErrorForeground","Foreground color of list items containing errors.")),(0,r.P6)("list.warningForeground",{dark:"#CCA700",light:"#855F00",hcDark:null,hcLight:null},n.NC("listWarningForeground","Foreground color of list items containing warnings."));let R=(0,r.P6)("listFilterWidget.background",{light:(0,r._j)(l.D0,0),dark:(0,r.$n)(l.D0,0),hcDark:l.D0,hcLight:l.D0},n.NC("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),L=(0,r.P6)("listFilterWidget.outline",{dark:s.Il.transparent,light:s.Il.transparent,hcDark:"#f38518",hcLight:"#007ACC"},n.NC("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),I=(0,r.P6)("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hcDark:o.lR,hcLight:o.lR},n.NC("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),D=(0,r.P6)("listFilterWidget.shadow",{dark:l.rh,light:l.rh,hcDark:l.rh,hcLight:l.rh},n.NC("listFilterWidgetShadow","Shadow color of the type filter widget in lists and trees."));(0,r.P6)("list.filterMatchBackground",{dark:l.MU,light:l.MU,hcDark:null,hcLight:null},n.NC("listFilterMatchHighlight","Background color of the filtered match.")),(0,r.P6)("list.filterMatchBorder",{dark:l.Ei,light:l.Ei,hcDark:o.lR,hcLight:o.xL},n.NC("listFilterMatchHighlightBorder","Border color of the filtered match.")),(0,r.P6)("list.deemphasizedForeground",{dark:"#8C8C8C",light:"#8E8E90",hcDark:"#A7A8A9",hcLight:"#666666"},n.NC("listDeemphasizedForeground","List/Tree foreground color for items that are deemphasized."));let A=(0,r.P6)("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hcDark:"#a9a9a9",hcLight:"#a5a5a5"},n.NC("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),y=(0,r.P6)("tree.inactiveIndentGuidesStroke",{dark:(0,r.Zn)(A,.4),light:(0,r.Zn)(A,.4),hcDark:(0,r.Zn)(A,.4),hcLight:(0,r.Zn)(A,.4)},n.NC("treeInactiveIndentGuidesStroke","Tree stroke color for the indentation guides that are not active.")),O=(0,r.P6)("tree.tableColumnsBorder",{dark:"#CCCCCC20",light:"#61616120",hcDark:null,hcLight:null},n.NC("tableColumnsBorder","Table border color between columns.")),P=(0,r.P6)("tree.tableOddRowsBackground",{dark:(0,r.Zn)(o.dR,.04),light:(0,r.Zn)(o.dR,.04),hcDark:null,hcLight:null},n.NC("tableOddRowsBackgroundColor","Background color for odd table rows."))},39666:function(e,t,i){"use strict";i.d(t,{AB:function(){return c},_w:function(){return d},et:function(){return h},g8:function(){return l},qe:function(){return a},yn:function(){return u},zR:function(){return g}});var n=i("94479"),s=i("52640"),r=i("19957"),o=i("45570");(0,r.P6)("sash.hoverBorder",{dark:o.R8,light:o.R8,hcDark:o.R8,hcLight:o.R8},n.NC("sashActiveBorder","Border color of active sashes."));let l=(0,r.P6)("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hcDark:s.Il.black,hcLight:"#0F4A85"},n.NC("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count.")),a=(0,r.P6)("badge.foreground",{dark:s.Il.white,light:"#333",hcDark:s.Il.white,hcLight:s.Il.white},n.NC("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),d=(0,r.P6)("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hcDark:null,hcLight:null},n.NC("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled.")),h=(0,r.P6)("scrollbarSlider.background",{dark:s.Il.fromHex("#797979").transparent(.4),light:s.Il.fromHex("#646464").transparent(.4),hcDark:(0,r.Zn)(o.lR,.6),hcLight:(0,r.Zn)(o.lR,.4)},n.NC("scrollbarSliderBackground","Scrollbar slider background color.")),c=(0,r.P6)("scrollbarSlider.hoverBackground",{dark:s.Il.fromHex("#646464").transparent(.7),light:s.Il.fromHex("#646464").transparent(.7),hcDark:(0,r.Zn)(o.lR,.8),hcLight:(0,r.Zn)(o.lR,.8)},n.NC("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),u=(0,r.P6)("scrollbarSlider.activeBackground",{dark:s.Il.fromHex("#BFBFBF").transparent(.4),light:s.Il.fromHex("#000000").transparent(.6),hcDark:o.lR,hcLight:o.lR},n.NC("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),g=(0,r.P6)("progressBar.background",{dark:s.Il.fromHex("#0E70C0"),light:s.Il.fromHex("#0E70C0"),hcDark:o.lR,hcLight:o.lR},n.NC("progressBarBackground","Background color of the progress bar that can show for long running operations."))}}]);
1
+ (self.webpackChunk_rsdoctor_client=self.webpackChunk_rsdoctor_client||[]).push([["488"],{66897:function(e,t,i){"use strict";i.d(t,{BO:function(){return r},IY:function(){return s},az:function(){return o}});var n=i("55952");function s(e,t={}){let i=o(t);return i.textContent=e,i}function r(e,t={}){let i=o(t);return function e(t,i,s,r){let o;if(2===i.type)o=document.createTextNode(i.content||"");else if(3===i.type)o=document.createElement("b");else if(4===i.type)o=document.createElement("i");else if(7===i.type&&r)o=document.createElement("code");else if(5===i.type&&s){let e=document.createElement("a");s.disposables.add(n.mu(e,"click",e=>{s.callback(String(i.index),e)})),o=e}else 8===i.type?o=document.createElement("br"):1===i.type&&(o=t);o&&t!==o&&t.appendChild(o),o&&Array.isArray(i.children)&&i.children.forEach(t=>{e(o,t,s,r)})}(i,function(e,t){let i={type:1,children:[]},n=0,s=i,r=[],o=new l(e);for(;!o.eos();){let e=o.next(),i="\\"===e&&0!==a(o.peek(),t);if(i&&(e=o.next()),!i&&function(e,t){return 0!==a(e,t)}(e,t)&&e===o.peek()){o.advance(),2===s.type&&(s=r.pop());let i=a(e,t);if(s.type===i||5===s.type&&6===i)s=r.pop();else{let e={type:i,children:[]};5===i&&(e.index=n,n++),s.children.push(e),r.push(s),s=e}}else if("\n"===e)2===s.type&&(s=r.pop()),s.children.push({type:8});else if(2!==s.type){let t={type:2,content:e};s.children.push(t),r.push(s),s=t}else s.content+=e}return 2===s.type&&(s=r.pop()),r.length,i}(e,!!t.renderCodeSegments),t.actionHandler,t.renderCodeSegments),i}function o(e){let t=e.inline?"span":"div",i=document.createElement(t);return e.className&&(i.className=e.className),i}class l{constructor(e){this.source=e,this.index=0}eos(){return this.index>=this.source.length}next(){let e=this.peek();return this.advance(),e}peek(){return this.source[this.index]}advance(){this.index++}}function a(e,t){switch(e){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;case"`":return t?7:0;default:return 0}}},13848:function(e,t,i){"use strict";i.d(t,{g:function(){return g}}),i("50655");var n=i("55952"),s=i("29193"),r=i("37764"),o=i("79221"),l=i("36853"),a=i("94260"),d=i("58036"),h=i("67414"),c=i("67296");class u{constructor(e){this._element=e}get element(){return this._element}set textContent(e){!this.disposed&&e!==this._textContent&&(this._textContent=e,this._element.textContent=e)}set className(e){!this.disposed&&e!==this._className&&(this._className=e,this._element.className=e)}set empty(e){!this.disposed&&e!==this._empty&&(this._empty=e,this._element.style.marginLeft=e?"0":"")}dispose(){this.disposed=!0}}class g extends r.JT{constructor(e,t){var i;super(),this.customHovers=new Map,this.creationOptions=t,this.domNode=this._register(new u(n.R3(e,n.$(".monaco-icon-label")))),this.labelContainer=n.R3(this.domNode.element,n.$(".monaco-icon-label-container")),this.nameContainer=n.R3(this.labelContainer,n.$("span.monaco-icon-name-container")),(null==t?void 0:t.supportHighlights)||(null==t?void 0:t.supportIcons)?this.nameNode=this._register(new p(this.nameContainer,!!t.supportIcons)):this.nameNode=new m(this.nameContainer),this.hoverDelegate=null!==(i=null==t?void 0:t.hoverDelegate)&&void 0!==i?i:(0,a.tM)("mouse")}get element(){return this.domNode.element}setLabel(e,t,i){var n;let r=["monaco-icon-label"],o=["monaco-icon-label-container"],l="";if(i&&(i.extraClasses&&r.push(...i.extraClasses),i.italic&&r.push("italic"),i.strikethrough&&r.push("strikethrough"),i.disabledCommand&&o.push("disabled"),i.title&&("string"==typeof i.title?l+=i.title:l+=e)),this.domNode.className=r.join(" "),this.domNode.element.setAttribute("aria-label",l),this.labelContainer.className=o.join(" "),this.setupHover((null==i?void 0:i.descriptionTitle)?this.labelContainer:this.element,null==i?void 0:i.title),this.nameNode.setLabel(e,i),t||this.descriptionNode){let e=this.getOrCreateDescriptionNode();e instanceof s.q?(e.set(t||"",i?i.descriptionMatches:void 0,void 0,null==i?void 0:i.labelEscapeNewLines),this.setupHover(e.element,null==i?void 0:i.descriptionTitle)):(e.textContent=t&&(null==i?void 0:i.labelEscapeNewLines)?s.q.escapeNewLines(t,[]):t||"",this.setupHover(e.element,(null==i?void 0:i.descriptionTitle)||""),e.empty=!t)}((null==i?void 0:i.suffix)||this.suffixNode)&&(this.getOrCreateSuffixNode().textContent=null!==(n=null==i?void 0:i.suffix)&&void 0!==n?n:"")}setupHover(e,t){let i=this.customHovers.get(e);if(i&&(i.dispose(),this.customHovers.delete(e)),!t){e.removeAttribute("title");return}if(this.hoverDelegate.showNativeHover){var n,s;n=e,s=t,(0,h.HD)(s)?n.title=(0,c.x$)(s):(null==s?void 0:s.markdownNotSupportedFallback)?n.title=s.markdownNotSupportedFallback:n.removeAttribute("title")}else{let i=(0,d.B)().setupUpdatableHover(this.hoverDelegate,e,t);i&&this.customHovers.set(e,i)}}dispose(){for(let e of(super.dispose(),this.customHovers.values()))e.dispose();this.customHovers.clear()}getOrCreateSuffixNode(){if(!this.suffixNode){let e=this._register(new u(n.e4(this.nameContainer,n.$("span.monaco-icon-suffix-container"))));this.suffixNode=this._register(new u(n.R3(e.element,n.$("span.label-suffix"))))}return this.suffixNode}getOrCreateDescriptionNode(){var e;if(!this.descriptionNode){let t=this._register(new u(n.R3(this.labelContainer,n.$("span.monaco-icon-description-container"))));(null===(e=this.creationOptions)||void 0===e?void 0:e.supportDescriptionHighlights)?this.descriptionNode=this._register(new s.q(n.R3(t.element,n.$("span.label-description")),{supportIcons:!!this.creationOptions.supportIcons})):this.descriptionNode=this._register(new u(n.R3(t.element,n.$("span.label-description"))))}return this.descriptionNode}}class m{constructor(e){this.container=e,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(!(this.label===e&&(0,o.fS)(this.options,t))){if(this.label=e,this.options=t,"string"==typeof e)!this.singleLabel&&(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=n.R3(this.container,n.$("a.label-name",{id:null==t?void 0:t.domId}))),this.singleLabel.textContent=e;else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;for(let i=0;i<e.length;i++){let s=e[i],r=(null==t?void 0:t.domId)&&`${null==t?void 0:t.domId}_${i}`;n.R3(this.container,n.$("a.label-name",{id:r,"data-icon-label-count":e.length,"data-icon-label-index":i,role:"treeitem"},s)),i<e.length-1&&n.R3(this.container,n.$("span.label-separator",void 0,(null==t?void 0:t.separator)||"/"))}}}}}class p extends r.JT{constructor(e,t){super(),this.container=e,this.supportIcons=t,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(!(this.label===e&&(0,o.fS)(this.options,t))){if(this.label=e,this.options=t,"string"==typeof e)!this.singleLabel&&(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=this._register(new s.q(n.R3(this.container,n.$("a.label-name",{id:null==t?void 0:t.domId})),{supportIcons:this.supportIcons}))),this.singleLabel.set(e,null==t?void 0:t.matches,void 0,null==t?void 0:t.labelEscapeNewLines);else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;let i=(null==t?void 0:t.separator)||"/",r=function(e,t,i){if(!i)return;let n=0;return e.map(e=>{let s={start:n,end:n+e.length},r=i.map(e=>l.e.intersect(s,e)).filter(e=>!l.e.isEmpty(e)).map(({start:e,end:t})=>({start:e-n,end:t-n}));return n=s.end+t.length,r})}(e,i,null==t?void 0:t.matches);for(let o=0;o<e.length;o++){let l=e[o],a=r?r[o]:void 0,d=(null==t?void 0:t.domId)&&`${null==t?void 0:t.domId}_${o}`,h=n.$("a.label-name",{id:d,"data-icon-label-count":e.length,"data-icon-label-index":o,role:"treeitem"});this._register(new s.q(n.R3(this.container,h),{supportIcons:this.supportIcons})).set(l,a,void 0,null==t?void 0:t.labelEscapeNewLines),o<e.length-1&&n.R3(h,n.$("span.label-separator",void 0,i))}}}}}},90350:function(e,t,i){"use strict";i.d(t,{Bv:function(){return R},kX:function(){return S}});var n=i("73115"),s=i("55952"),r=i("44608"),o=i("19711"),l=i("99557"),a=i("47983"),d=i("1966"),h=i("59287"),c=i("98212"),u=i("37764"),g=i("36853"),m=i("80928"),p=i("70473"),f=i("49432"),_=i("45802"),v=i("45065"),E=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};let C={CurrentDragAndDropData:void 0},b={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,setRowHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements:e=>[e],getDragURI:()=>null,onDragStart(){},onDragOver:()=>!1,drop(){},dispose(){}},horizontalScrolling:!1,transformOptimization:!0,alwaysConsumeMouseWheel:!0};class S{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class N{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class T{constructor(){this.types=[],this.files=[]}update(e){if(e.types&&this.types.splice(0,this.types.length,...e.types),e.files){this.files.splice(0,this.files.length);for(let t=0;t<e.files.length;t++){let i=e.files.item(t);i&&(i.size||i.type)&&this.files.push(i)}}}getData(){return{types:this.types,files:this.files}}}class w{constructor(e){(null==e?void 0:e.getSetSize)?this.getSetSize=e.getSetSize.bind(e):this.getSetSize=(e,t,i)=>i,(null==e?void 0:e.getPosInSet)?this.getPosInSet=e.getPosInSet.bind(e):this.getPosInSet=(e,t)=>t+1,(null==e?void 0:e.getRole)?this.getRole=e.getRole.bind(e):this.getRole=e=>"listitem",(null==e?void 0:e.isChecked)?this.isChecked=e.isChecked.bind(e):this.isChecked=e=>void 0}}class R{get contentHeight(){return this.rangeMap.size}get onDidScroll(){return this.scrollableElement.onScroll}get scrollableElementDomNode(){return this.scrollableElement.getDomNode()}get horizontalScrolling(){return this._horizontalScrolling}set horizontalScrolling(e){if(e!==this._horizontalScrolling){if(e&&this.supportDynamicHeights)throw Error("Horizontal scrolling and dynamic heights not supported simultaneously");if(this._horizontalScrolling=e,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this._horizontalScrolling){for(let e of this.items)this.measureItemWidth(e);this.updateScrollWidth(),this.scrollableElement.setScrollDimensions({width:(0,s.FK)(this.domNode)}),this.rowsContainer.style.width=`${Math.max(this.scrollWidth||0,this.renderWidth)}px`}else this.scrollableElementWidthDelayer.cancel(),this.scrollableElement.setScrollDimensions({width:this.renderWidth,scrollWidth:this.renderWidth}),this.rowsContainer.style.width=""}}constructor(e,t,i,n=b){var r,a,h,g,p,_,v,E,C,S,N,T,L;if(this.virtualDelegate=t,this.domId=`list_id_${++R.InstanceCount}`,this.renderers=new Map,this.renderWidth=0,this._scrollHeight=0,this.scrollableElementUpdateDisposable=null,this.scrollableElementWidthDelayer=new d.vp(50),this.splicing=!1,this.dragOverAnimationStopDisposable=u.JT.None,this.dragOverMouseY=0,this.canDrop=!1,this.currentDragFeedbackDisposable=u.JT.None,this.onDragLeaveTimeout=u.JT.None,this.disposables=new u.SL,this._onDidChangeContentHeight=new c.Q5,this._onDidChangeContentWidth=new c.Q5,this.onDidChangeContentHeight=c.ju.latch(this._onDidChangeContentHeight.event,void 0,this.disposables),this._horizontalScrolling=!1,n.horizontalScrolling&&n.supportDynamicHeights)throw Error("Horizontal scrolling and dynamic heights not supported simultaneously");for(let e of(this.items=[],this.itemId=0,this.rangeMap=this.createRangeMap(null!==(r=n.paddingTop)&&void 0!==r?r:0),i))this.renderers.set(e.templateId,e);this.cache=this.disposables.add(new f.r(this.renderers)),this.lastRenderTop=0,this.lastRenderHeight=0,this.domNode=document.createElement("div"),this.domNode.className="monaco-list",this.domNode.classList.add(this.domId),this.domNode.tabIndex=0,this.domNode.classList.toggle("mouse-support","boolean"!=typeof n.mouseSupport||n.mouseSupport),this._horizontalScrolling=null!==(a=n.horizontalScrolling)&&void 0!==a?a:b.horizontalScrolling,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this.paddingBottom=void 0===n.paddingBottom?0:n.paddingBottom,this.accessibilityProvider=new w(n.accessibilityProvider),this.rowsContainer=document.createElement("div"),this.rowsContainer.className="monaco-list-rows",(null!==(h=n.transformOptimization)&&void 0!==h?h:b.transformOptimization)&&(this.rowsContainer.style.transform="translate3d(0px, 0px, 0px)",this.rowsContainer.style.overflow="hidden",this.rowsContainer.style.contain="strict"),this.disposables.add(o.o.addTarget(this.rowsContainer)),this.scrollable=this.disposables.add(new m.Rm({forceIntegerValues:!0,smoothScrollDuration:null!==(g=n.smoothScrolling)&&void 0!==g&&g?125:0,scheduleAtNextAnimationFrame:e=>(0,s.jL)((0,s.Jj)(this.domNode),e)})),this.scrollableElement=this.disposables.add(new l.$Z(this.rowsContainer,{alwaysConsumeMouseWheel:null!==(p=n.alwaysConsumeMouseWheel)&&void 0!==p?p:b.alwaysConsumeMouseWheel,horizontal:1,vertical:null!==(_=n.verticalScrollMode)&&void 0!==_?_:b.verticalScrollMode,useShadows:null!==(v=n.useShadows)&&void 0!==v?v:b.useShadows,mouseWheelScrollSensitivity:n.mouseWheelScrollSensitivity,fastScrollSensitivity:n.fastScrollSensitivity,scrollByPage:n.scrollByPage},this.scrollable)),this.domNode.appendChild(this.scrollableElement.getDomNode()),e.appendChild(this.domNode),this.scrollableElement.onScroll(this.onScroll,this,this.disposables),this.disposables.add((0,s.nm)(this.rowsContainer,o.t.Change,e=>this.onTouchChange(e))),this.disposables.add((0,s.nm)(this.scrollableElement.getDomNode(),"scroll",e=>e.target.scrollTop=0)),this.disposables.add((0,s.nm)(this.domNode,"dragover",e=>this.onDragOver(this.toDragEvent(e)))),this.disposables.add((0,s.nm)(this.domNode,"drop",e=>this.onDrop(this.toDragEvent(e)))),this.disposables.add((0,s.nm)(this.domNode,"dragleave",e=>this.onDragLeave(this.toDragEvent(e)))),this.disposables.add((0,s.nm)(this.domNode,"dragend",e=>this.onDragEnd(e))),this.setRowLineHeight=null!==(E=n.setRowLineHeight)&&void 0!==E?E:b.setRowLineHeight,this.setRowHeight=null!==(C=n.setRowHeight)&&void 0!==C?C:b.setRowHeight,this.supportDynamicHeights=null!==(S=n.supportDynamicHeights)&&void 0!==S?S:b.supportDynamicHeights,this.dnd=null!==(N=n.dnd)&&void 0!==N?N:this.disposables.add(b.dnd),this.layout(null===(T=n.initialSize)||void 0===T?void 0:T.height,null===(L=n.initialSize)||void 0===L?void 0:L.width)}updateOptions(e){let t;if(void 0!==e.paddingBottom&&(this.paddingBottom=e.paddingBottom,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),void 0!==e.smoothScrolling&&this.scrollable.setSmoothScrollDuration(e.smoothScrolling?125:0),void 0!==e.horizontalScrolling&&(this.horizontalScrolling=e.horizontalScrolling),void 0!==e.scrollByPage&&(t={...null!=t?t:{},scrollByPage:e.scrollByPage}),void 0!==e.mouseWheelScrollSensitivity&&(t={...null!=t?t:{},mouseWheelScrollSensitivity:e.mouseWheelScrollSensitivity}),void 0!==e.fastScrollSensitivity&&(t={...null!=t?t:{},fastScrollSensitivity:e.fastScrollSensitivity}),t&&this.scrollableElement.updateOptions(t),void 0!==e.paddingTop&&e.paddingTop!==this.rangeMap.paddingTop){let t=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),i=e.paddingTop-this.rangeMap.paddingTop;this.rangeMap.paddingTop=e.paddingTop,this.render(t,Math.max(0,this.lastRenderTop+i),this.lastRenderHeight,void 0,void 0,!0),this.setScrollTop(this.lastRenderTop),this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.lastRenderTop,this.lastRenderHeight)}}createRangeMap(e){return new p.Xl(e)}splice(e,t,i=[]){if(this.splicing)throw Error("Can't run recursive splices.");this.splicing=!0;try{return this._splice(e,t,i)}finally{this.splicing=!1,this._onDidChangeContentHeight.fire(this.contentHeight)}}_splice(e,t,i=[]){let n;let s=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),r=g.e.intersect(s,{start:e,end:e+t}),o=new Map;for(let e=r.end-1;e>=r.start;e--){let t=this.items[e];if(t.dragStartDisposable.dispose(),t.checkedDisposable.dispose(),t.row){let i=o.get(t.templateId);!i&&(i=[],o.set(t.templateId,i));let n=this.renderers.get(t.templateId);n&&n.disposeElement&&n.disposeElement(t.element,e,t.row.templateData,t.size),i.unshift(t.row)}t.row=null,t.stale=!0}let l={start:e+t,end:this.items.length},a=g.e.intersect(l,s),d=g.e.relativeComplement(l,s),h=i.map(e=>({id:String(this.itemId++),element:e,templateId:this.virtualDelegate.getTemplateId(e),size:this.virtualDelegate.getHeight(e),width:void 0,hasDynamicHeight:!!this.virtualDelegate.hasDynamicHeight&&this.virtualDelegate.hasDynamicHeight(e),lastDynamicHeightWidth:void 0,row:null,uri:void 0,dropTarget:!1,dragStartDisposable:u.JT.None,checkedDisposable:u.JT.None,stale:!1}));0===e&&t>=this.items.length?(this.rangeMap=this.createRangeMap(this.rangeMap.paddingTop),this.rangeMap.splice(0,0,h),n=this.items,this.items=h):(this.rangeMap.splice(e,t,h),n=this.items.splice(e,t,...h));let c=i.length-t,m=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),f=(0,p.uY)(a,c),_=g.e.intersect(m,f);for(let e=_.start;e<_.end;e++)this.updateItemInDOM(this.items[e],e);for(let e of g.e.relativeComplement(f,m))for(let t=e.start;t<e.end;t++)this.removeItemFromDOM(t);let v=d.map(e=>(0,p.uY)(e,c));for(let t of[{start:e,end:e+i.length},...v].map(e=>g.e.intersect(m,e)).reverse())for(let e=t.end-1;e>=t.start;e--){let t=this.items[e],i=o.get(t.templateId),n=null==i?void 0:i.pop();this.insertItemInDOM(e,n)}for(let e of o.values())for(let t of e)this.cache.release(t);return this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),n.map(e=>e.element)}eventuallyUpdateScrollDimensions(){this._scrollHeight=this.contentHeight,this.rowsContainer.style.height=`${this._scrollHeight}px`,!this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable=(0,s.jL)((0,s.Jj)(this.domNode),()=>{this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight}),this.updateScrollWidth(),this.scrollableElementUpdateDisposable=null}))}eventuallyUpdateScrollWidth(){if(!this.horizontalScrolling){this.scrollableElementWidthDelayer.cancel();return}this.scrollableElementWidthDelayer.trigger(()=>this.updateScrollWidth())}updateScrollWidth(){if(!this.horizontalScrolling)return;let e=0;for(let t of this.items)void 0!==t.width&&(e=Math.max(e,t.width));this.scrollWidth=e,this.scrollableElement.setScrollDimensions({scrollWidth:0===e?0:e+10}),this._onDidChangeContentWidth.fire(this.scrollWidth)}rerender(){if(this.supportDynamicHeights){for(let e of this.items)e.lastDynamicHeightWidth=void 0;this._rerender(this.lastRenderTop,this.lastRenderHeight)}}get length(){return this.items.length}get renderHeight(){return this.scrollableElement.getScrollDimensions().height}get firstVisibleIndex(){return this.getRenderRange(this.lastRenderTop,this.lastRenderHeight).start}element(e){return this.items[e].element}indexOf(e){return this.items.findIndex(t=>t.element===e)}domElement(e){let t=this.items[e].row;return t&&t.domNode}elementHeight(e){return this.items[e].size}elementTop(e){return this.rangeMap.positionAt(e)}indexAt(e){return this.rangeMap.indexAt(e)}indexAfter(e){return this.rangeMap.indexAfter(e)}layout(e,t){let i={height:"number"==typeof e?e:(0,s.If)(this.domNode)};this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,i.scrollHeight=this.scrollHeight),this.scrollableElement.setScrollDimensions(i),void 0!==t&&(this.renderWidth=t,this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight)),this.horizontalScrolling&&this.scrollableElement.setScrollDimensions({width:"number"==typeof t?t:(0,s.FK)(this.domNode)})}render(e,t,i,n,s,r=!1){let o=this.getRenderRange(t,i),l=g.e.relativeComplement(o,e).reverse(),a=g.e.relativeComplement(e,o);if(r){let t=g.e.intersect(e,o);for(let e=t.start;e<t.end;e++)this.updateItemInDOM(this.items[e],e)}this.cache.transact(()=>{for(let e of a)for(let t=e.start;t<e.end;t++)this.removeItemFromDOM(t);for(let e of l)for(let t=e.end-1;t>=e.start;t--)this.insertItemInDOM(t)}),void 0!==n&&(this.rowsContainer.style.left=`-${n}px`),this.rowsContainer.style.top=`-${t}px`,this.horizontalScrolling&&void 0!==s&&(this.rowsContainer.style.width=`${Math.max(s,this.renderWidth)}px`),this.lastRenderTop=t,this.lastRenderHeight=i}insertItemInDOM(e,t){var i,n,r;let o=this.items[e];if(!o.row){if(t)o.row=t,o.stale=!0;else{let e=this.cache.alloc(o.templateId);o.row=e.row,o.stale||(o.stale=e.isReusingConnectedDomNode)}}let l=this.accessibilityProvider.getRole(o.element)||"listitem";o.row.domNode.setAttribute("role",l);let a=this.accessibilityProvider.isChecked(o.element);if("boolean"==typeof a)o.row.domNode.setAttribute("aria-checked",String(!!a));else if(a){let e=e=>o.row.domNode.setAttribute("aria-checked",String(!!e));e(a.value),o.checkedDisposable=a.onDidChange(()=>e(a.value))}if(o.stale||!o.row.domNode.parentElement){let t=null!==(r=null===(n=null===(i=this.items.at(e+1))||void 0===i?void 0:i.row)||void 0===n?void 0:n.domNode)&&void 0!==r?r:null;(o.row.domNode.parentElement!==this.rowsContainer||o.row.domNode.nextElementSibling!==t)&&this.rowsContainer.insertBefore(o.row.domNode,t),o.stale=!1}this.updateItemInDOM(o,e);let d=this.renderers.get(o.templateId);if(!d)throw Error(`No renderer found for template id ${o.templateId}`);null==d||d.renderElement(o.element,e,o.row.templateData,o.size);let h=this.dnd.getDragURI(o.element);o.dragStartDisposable.dispose(),o.row.domNode.draggable=!!h,h&&(o.dragStartDisposable=(0,s.nm)(o.row.domNode,"dragstart",e=>this.onDragStart(o.element,h,e))),this.horizontalScrolling&&(this.measureItemWidth(o),this.eventuallyUpdateScrollWidth())}measureItemWidth(e){if(!e.row||!e.row.domNode)return;e.row.domNode.style.width="fit-content",e.width=(0,s.FK)(e.row.domNode);let t=(0,s.Jj)(e.row.domNode).getComputedStyle(e.row.domNode);t.paddingLeft&&(e.width+=parseFloat(t.paddingLeft)),t.paddingRight&&(e.width+=parseFloat(t.paddingRight)),e.row.domNode.style.width=""}updateItemInDOM(e,t){e.row.domNode.style.top=`${this.elementTop(t)}px`,this.setRowHeight&&(e.row.domNode.style.height=`${e.size}px`),this.setRowLineHeight&&(e.row.domNode.style.lineHeight=`${e.size}px`),e.row.domNode.setAttribute("data-index",`${t}`),e.row.domNode.setAttribute("data-last-element",t===this.length-1?"true":"false"),e.row.domNode.setAttribute("data-parity",t%2==0?"even":"odd"),e.row.domNode.setAttribute("aria-setsize",String(this.accessibilityProvider.getSetSize(e.element,t,this.length))),e.row.domNode.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(e.element,t))),e.row.domNode.setAttribute("id",this.getElementDomId(t)),e.row.domNode.classList.toggle("drop-target",e.dropTarget)}removeItemFromDOM(e){let t=this.items[e];if(t.dragStartDisposable.dispose(),t.checkedDisposable.dispose(),t.row){let i=this.renderers.get(t.templateId);i&&i.disposeElement&&i.disposeElement(t.element,e,t.row.templateData,t.size),this.cache.release(t.row),t.row=null}this.horizontalScrolling&&this.eventuallyUpdateScrollWidth()}getScrollTop(){return this.scrollableElement.getScrollPosition().scrollTop}setScrollTop(e,t){this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),this.scrollableElement.setScrollPosition({scrollTop:e,reuseAnimation:t})}get scrollTop(){return this.getScrollTop()}set scrollTop(e){this.setScrollTop(e)}get scrollHeight(){return this._scrollHeight+(this.horizontalScrolling?10:0)+this.paddingBottom}get onMouseClick(){return c.ju.map(this.disposables.add(new r.Y(this.domNode,"click")).event,e=>this.toMouseEvent(e),this.disposables)}get onMouseDblClick(){return c.ju.map(this.disposables.add(new r.Y(this.domNode,"dblclick")).event,e=>this.toMouseEvent(e),this.disposables)}get onMouseMiddleClick(){return c.ju.filter(c.ju.map(this.disposables.add(new r.Y(this.domNode,"auxclick")).event,e=>this.toMouseEvent(e),this.disposables),e=>1===e.browserEvent.button,this.disposables)}get onMouseDown(){return c.ju.map(this.disposables.add(new r.Y(this.domNode,"mousedown")).event,e=>this.toMouseEvent(e),this.disposables)}get onMouseOver(){return c.ju.map(this.disposables.add(new r.Y(this.domNode,"mouseover")).event,e=>this.toMouseEvent(e),this.disposables)}get onMouseOut(){return c.ju.map(this.disposables.add(new r.Y(this.domNode,"mouseout")).event,e=>this.toMouseEvent(e),this.disposables)}get onContextMenu(){return c.ju.any(c.ju.map(this.disposables.add(new r.Y(this.domNode,"contextmenu")).event,e=>this.toMouseEvent(e),this.disposables),c.ju.map(this.disposables.add(new r.Y(this.domNode,o.t.Contextmenu)).event,e=>this.toGestureEvent(e),this.disposables))}get onTouchStart(){return c.ju.map(this.disposables.add(new r.Y(this.domNode,"touchstart")).event,e=>this.toTouchEvent(e),this.disposables)}get onTap(){return c.ju.map(this.disposables.add(new r.Y(this.rowsContainer,o.t.Tap)).event,e=>this.toGestureEvent(e),this.disposables)}toMouseEvent(e){let t=this.getItemIndexFromEventTarget(e.target||null),i=void 0===t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element}}toTouchEvent(e){let t=this.getItemIndexFromEventTarget(e.target||null),i=void 0===t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element}}toGestureEvent(e){let t=this.getItemIndexFromEventTarget(e.initialTarget||null),i=void 0===t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element}}toDragEvent(e){let t=this.getItemIndexFromEventTarget(e.target||null),i=void 0===t?void 0:this.items[t],n=i&&i.element,s=this.getTargetSector(e,t);return{browserEvent:e,index:t,element:n,sector:s}}onScroll(e){try{let t=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight);this.render(t,e.scrollTop,e.height,e.scrollLeft,e.scrollWidth),this.supportDynamicHeights&&this._rerender(e.scrollTop,e.height,e.inSmoothScrolling)}catch(t){throw console.error("Got bad scroll event:",e),t}}onTouchChange(e){e.preventDefault(),e.stopPropagation(),this.scrollTop-=e.translationY}onDragStart(e,t,i){var r,o;if(!i.dataTransfer)return;let l=this.dnd.getDragElements(e);if(i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setData(n.g.TEXT,t),i.dataTransfer.setDragImage){let e;this.dnd.getDragLabel&&(e=this.dnd.getDragLabel(l,i)),void 0===e&&(e=String(l.length));let t=(0,s.$)(".monaco-drag-image");t.textContent=e;let n=(e=>{for(;e&&!e.classList.contains("monaco-workbench");)e=e.parentElement;return e||this.domNode.ownerDocument})(this.domNode);n.appendChild(t),i.dataTransfer.setDragImage(t,-10,-10),setTimeout(()=>n.removeChild(t),0)}this.domNode.classList.add("dragging"),this.currentDragData=new S(l),C.CurrentDragAndDropData=new N(l),null===(o=(r=this.dnd).onDragStart)||void 0===o||o.call(r,this.currentDragData,i)}onDragOver(e){var t,i,n,s;let r;if(e.browserEvent.preventDefault(),this.onDragLeaveTimeout.dispose(),C.CurrentDragAndDropData&&"vscode-ui"===C.CurrentDragAndDropData.getData())return!1;if(this.setupDragAndDropScrollTopAnimation(e.browserEvent),!e.browserEvent.dataTransfer)return!1;if(!this.currentDragData){if(C.CurrentDragAndDropData)this.currentDragData=C.CurrentDragAndDropData;else{if(!e.browserEvent.dataTransfer.types)return!1;this.currentDragData=new T}}let o=this.dnd.onDragOver(this.currentDragData,e.element,e.index,e.sector,e.browserEvent);if(this.canDrop="boolean"==typeof o?o:o.accept,!this.canDrop)return this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),!1;e.browserEvent.dataTransfer.dropEffect="boolean"!=typeof o&&(null===(t=o.effect)||void 0===t?void 0:t.type)===0?"copy":"move",r="boolean"!=typeof o&&o.feedback?o.feedback:void 0===e.index?[-1]:[e.index],r=-1===(r=(0,a.EB)(r).filter(e=>e>=-1&&e<this.length).sort((e,t)=>e-t))[0]?[-1]:r;let l="boolean"!=typeof o&&o.effect&&o.effect.position?o.effect.position:"drop-target";if(n=this.currentDragFeedback,s=r,(Array.isArray(n)&&Array.isArray(s)?(0,a.fS)(n,s):n===s)&&this.currentDragFeedbackPosition===l)return!0;if(this.currentDragFeedback=r,this.currentDragFeedbackPosition=l,this.currentDragFeedbackDisposable.dispose(),-1===r[0])this.domNode.classList.add(l),this.rowsContainer.classList.add(l),this.currentDragFeedbackDisposable=(0,u.OF)(()=>{this.domNode.classList.remove(l),this.rowsContainer.classList.remove(l)});else{if(r.length>1&&"drop-target"!==l)throw Error("Can't use multiple feedbacks with position different than 'over'");for(let e of("drop-target-after"===l&&r[0]<this.length-1&&(r[0]+=1,l="drop-target-before"),r)){let t=this.items[e];t.dropTarget=!0,null===(i=t.row)||void 0===i||i.domNode.classList.add(l)}this.currentDragFeedbackDisposable=(0,u.OF)(()=>{var e;for(let t of r){let i=this.items[t];i.dropTarget=!1,null===(e=i.row)||void 0===e||e.domNode.classList.remove(l)}})}return!0}onDragLeave(e){var t,i;this.onDragLeaveTimeout.dispose(),this.onDragLeaveTimeout=(0,d.Vg)(()=>this.clearDragOverFeedback(),100,this.disposables),this.currentDragData&&(null===(i=(t=this.dnd).onDragLeave)||void 0===i||i.call(t,this.currentDragData,e.element,e.index,e.browserEvent))}onDrop(e){if(!this.canDrop)return;let t=this.currentDragData;this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.domNode.classList.remove("dragging"),this.currentDragData=void 0,C.CurrentDragAndDropData=void 0,t&&e.browserEvent.dataTransfer&&(e.browserEvent.preventDefault(),t.update(e.browserEvent.dataTransfer),this.dnd.drop(t,e.element,e.index,e.sector,e.browserEvent))}onDragEnd(e){var t,i;this.canDrop=!1,this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.domNode.classList.remove("dragging"),this.currentDragData=void 0,C.CurrentDragAndDropData=void 0,null===(i=(t=this.dnd).onDragEnd)||void 0===i||i.call(t,e)}clearDragOverFeedback(){this.currentDragFeedback=void 0,this.currentDragFeedbackPosition=void 0,this.currentDragFeedbackDisposable.dispose(),this.currentDragFeedbackDisposable=u.JT.None}setupDragAndDropScrollTopAnimation(e){if(!this.dragOverAnimationDisposable){let e=(0,s.xQ)(this.domNode).top;this.dragOverAnimationDisposable=(0,s.jt)((0,s.Jj)(this.domNode),this.animateDragAndDropScrollTop.bind(this,e))}this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationStopDisposable=(0,d.Vg)(()=>{this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)},1e3,this.disposables),this.dragOverMouseY=e.pageY}animateDragAndDropScrollTop(e){if(void 0===this.dragOverMouseY)return;let t=this.dragOverMouseY-e,i=this.renderHeight-35;t<35?this.scrollTop+=Math.max(-14,Math.floor(.3*(t-35))):t>i&&(this.scrollTop+=Math.min(14,Math.floor(.3*(t-i))))}teardownDragAndDropScrollTopAnimation(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)}getTargetSector(e,t){if(void 0===t)return;let i=e.offsetY/this.items[t].size;return(0,v.uZ)(Math.floor(i/.25),0,3)}getItemIndexFromEventTarget(e){let t=this.scrollableElement.getDomNode(),i=e;for(;i instanceof HTMLElement&&i!==this.rowsContainer&&t.contains(i);){let e=i.getAttribute("data-index");if(e){let t=Number(e);if(!isNaN(t))return t}i=i.parentElement}}getRenderRange(e,t){return{start:this.rangeMap.indexAt(e),end:this.rangeMap.indexAfter(e+t-1)}}_rerender(e,t,i){let n,s;let r=this.getRenderRange(e,t);e===this.elementTop(r.start)?(n=r.start,s=0):r.end-r.start>1&&(n=r.start+1,s=this.elementTop(n)-e);let o=0;for(;;){let l=this.getRenderRange(e,t),a=!1;for(let e=l.start;e<l.end;e++){let t=this.probeDynamicHeight(e);0!==t&&this.rangeMap.splice(e,1,[this.items[e]]),o+=t,a=a||0!==t}if(!a){for(let e of(0!==o&&this.eventuallyUpdateScrollDimensions(),g.e.relativeComplement(r,l)))for(let t=e.start;t<e.end;t++)this.items[t].row&&this.removeItemFromDOM(t);for(let e of g.e.relativeComplement(l,r).reverse())for(let t=e.end-1;t>=e.start;t--)this.insertItemInDOM(t);for(let e=l.start;e<l.end;e++)this.items[e].row&&this.updateItemInDOM(this.items[e],e);if("number"==typeof n){let t=this.scrollable.getFutureScrollPosition().scrollTop-e,r=this.elementTop(n)-s+t;this.setScrollTop(r,i)}this._onDidChangeContentHeight.fire(this.contentHeight);return}}}probeDynamicHeight(e){var t,i,n;let r=this.items[e];if(this.virtualDelegate.getDynamicHeight){let e=this.virtualDelegate.getDynamicHeight(r.element);if(null!==e){let t=r.size;return r.size=e,r.lastDynamicHeightWidth=this.renderWidth,e-t}}if(!r.hasDynamicHeight||r.lastDynamicHeightWidth===this.renderWidth||this.virtualDelegate.hasDynamicHeight&&!this.virtualDelegate.hasDynamicHeight(r.element))return 0;let o=r.size;if(r.row)return r.row.domNode.style.height="",r.size=r.row.domNode.offsetHeight,0===r.size&&!(0,s.jg)(r.row.domNode,(0,s.Jj)(r.row.domNode).document.body)&&console.warn("Measuring item node that is not in DOM! Add ListView to the DOM before measuring row height!"),r.lastDynamicHeightWidth=this.renderWidth,r.size-o;let{row:l}=this.cache.alloc(r.templateId);l.domNode.style.height="",this.rowsContainer.appendChild(l.domNode);let a=this.renderers.get(r.templateId);if(!a)throw new _.he("Missing renderer for templateId: "+r.templateId);return a.renderElement(r.element,e,l.templateData,void 0),r.size=l.domNode.offsetHeight,null===(t=a.disposeElement)||void 0===t||t.call(a,r.element,e,l.templateData,void 0),null===(n=(i=this.virtualDelegate).setDynamicHeight)||void 0===n||n.call(i,r.element,r.size),r.lastDynamicHeightWidth=this.renderWidth,this.rowsContainer.removeChild(l.domNode),this.cache.release(l),r.size-o}getElementDomId(e){return`${this.domId}_${e}`}dispose(){var e,t;for(let t of this.items)if(t.dragStartDisposable.dispose(),t.checkedDisposable.dispose(),t.row){let i=this.renderers.get(t.row.templateId);i&&(null===(e=i.disposeElement)||void 0===e||e.call(i,t.element,-1,t.row.templateData,void 0),i.disposeTemplate(t.row.templateData))}this.items=[],this.domNode&&this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),null===(t=this.dragOverAnimationDisposable)||void 0===t||t.dispose(),this.disposables.dispose()}}R.InstanceCount=0,E([h.H],R.prototype,"onMouseClick",null),E([h.H],R.prototype,"onMouseDblClick",null),E([h.H],R.prototype,"onMouseMiddleClick",null),E([h.H],R.prototype,"onMouseDown",null),E([h.H],R.prototype,"onMouseOver",null),E([h.H],R.prototype,"onMouseOut",null),E([h.H],R.prototype,"onContextMenu",null),E([h.H],R.prototype,"onTouchStart",null),E([h.H],R.prototype,"onTap",null)},82609:function(e,t,i){"use strict";i.d(t,{Y:function(){return r}});var n=i("1966"),s=i("37764");class r extends s.JT{constructor(e,t,i){super(),this._visibility=e,this._visibleClassName=t,this._invisibleClassName=i,this._domNode=null,this._isVisible=!1,this._isNeeded=!1,this._rawShouldBeVisible=!1,this._shouldBeVisible=!1,this._revealTimer=this._register(new n._F)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this._updateShouldBeVisible())}setShouldBeVisible(e){this._rawShouldBeVisible=e,this._updateShouldBeVisible()}_applyVisibilitySetting(){return 2!==this._visibility&&(3===this._visibility||this._rawShouldBeVisible)}_updateShouldBeVisible(){let e=this._applyVisibilitySetting();this._shouldBeVisible!==e&&(this._shouldBeVisible=e,this.ensureVisibility())}setIsNeeded(e){this._isNeeded!==e&&(this._isNeeded=e,this.ensureVisibility())}setDomNode(e){this._domNode=e,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)}ensureVisibility(){if(!this._isNeeded){this._hide(!1);return}this._shouldBeVisible?this._reveal():this._hide(!0)}_reveal(){!this._isVisible&&(this._isVisible=!0,this._revealTimer.setIfNotSet(()=>{var e;null===(e=this._domNode)||void 0===e||e.setClassName(this._visibleClassName)},0))}_hide(e){var t;this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,null===(t=this._domNode)||void 0===t||t.setClassName(this._invisibleClassName+(e?" fade":"")))}}},65910:function(e,t,i){"use strict";function n(e,t){let i=function(e,t,i=e.length-1){for(let n=i;n>=0;n--)if(t(e[n]))return n;return -1}(e,t);if(-1!==i)return e[i]}i.d(t,{BS:function(){return h},Fr:function(){return g},J_:function(){return l},Jw:function(){return r},Y0:function(){return u},b1:function(){return a},cn:function(){return o},dF:function(){return n},hV:function(){return d},ti:function(){return s},vm:function(){return c}});function s(e,t){let i=r(e,t);return -1===i?void 0:e[i]}function r(e,t,i=0,n=e.length){let s=i,r=n;for(;s<r;){let i=Math.floor((s+r)/2);t(e[i])?s=i+1:r=i}return s-1}function o(e,t){let i=l(e,t);return i===e.length?void 0:e[i]}function l(e,t,i=0,n=e.length){let s=i,r=n;for(;s<r;){let i=Math.floor((s+r)/2);t(e[i])?r=i:s=i+1}return s}class a{constructor(e){this._array=e,this._findLastMonotonousLastIdx=0}findLastMonotonous(e){if(a.assertInvariants){if(this._prevFindLastPredicate){for(let t of this._array)if(this._prevFindLastPredicate(t)&&!e(t))throw Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this._prevFindLastPredicate=e}let t=r(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=t+1,-1===t?void 0:this._array[t]}}function d(e,t){if(0===e.length)return;let i=e[0];for(let n=1;n<e.length;n++){let s=e[n];t(s,i)>0&&(i=s)}return i}function h(e,t){if(0===e.length)return;let i=e[0];for(let n=1;n<e.length;n++){let s=e[n];t(s,i)>=0&&(i=s)}return i}function c(e,t){return d(e,(e,i)=>-t(e,i))}function u(e,t){if(0===e.length)return -1;let i=0;for(let n=1;n<e.length;n++)t(e[n],e[i])>0&&(i=n);return i}function g(e,t){for(let i of e){let e=t(i);if(void 0!==e)return e}}a.assertInvariants=!1},26089:function(e,t,i){"use strict";i.d(t,{DM:function(){return a},eZ:function(){return l},ok:function(){return s},vE:function(){return r},wN:function(){return o}});var n=i("45802");function s(e,t){if(!e)throw Error(t?`Assertion failed (${t})`:"Assertion Failed")}function r(e,t="Unreachable"){throw Error(t)}function o(e){!e&&(0,n.dL)(new n.he("Soft Assertion Failed"))}function l(e){!e()&&(e(),(0,n.dL)(new n.he("Assertion Failed")))}function a(e,t){let i=0;for(;i<e.length-1;){let n=e[i];if(!t(n,e[i+1]))return!1;i++}return!0}},69835:function(e,t,i){"use strict";function n(e){return e}i.d(t,{bQ:function(){return r},t2:function(){return s}});class s{constructor(e,t){this.lastCache=void 0,this.lastArgKey=void 0,"function"==typeof e?(this._fn=e,this._computeKey=n):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){let t=this._computeKey(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this._fn(e)),this.lastCache}}class r{get cachedValues(){return this._map}constructor(e,t){this._map=new Map,this._map2=new Map,"function"==typeof e?(this._fn=e,this._computeKey=n):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){let t=this._computeKey(e);if(this._map2.has(t))return this._map2.get(t);let i=this._fn(e);return this._map.set(e,i),this._map2.set(t,i),i}}},41014:function(e,t,i){"use strict";i.d(t,{y:function(){return function e(t=null,i=!1){if(!t)return r.NC("error.defaultMessage","An unknown error occurred. Please consult the log for more details.");if(Array.isArray(t)){let s=n.kX(t),o=e(s[0],i);return s.length>1?r.NC("error.moreErrors","{0} ({1} errors in total)",o,s.length):o}if(s.HD(t))return t;if(t.detail){let e=t.detail;if(e.error)return o(e.error,i);if(e.exception)return o(e.exception,i)}return t.stack?o(t,i):t.message?t.message:r.NC("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}}});var n=i("47983"),s=i("67414"),r=i("94479");function o(e,t){return t&&(e.stack||e.stacktrace)?r.NC("stackTrace.format","{0}: {1}",a(e),l(e.stack)||l(e.stacktrace)):a(e)}function l(e){return Array.isArray(e)?e.join("\n"):e}function a(e){return"ERR_UNC_HOST_NOT_ALLOWED"===e.code?`${e.message}. Please update the 'security.allowedUNCHosts' setting if you want to allow this host.`:"string"==typeof e.code&&"number"==typeof e.errno&&"string"==typeof e.syscall?r.NC("nodeExceptionMessage","A system error occurred ({0})",e.message):e.message||r.NC("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}},94508:function(e,t,i){"use strict";i.d(t,{KM:function(){return h},ej:function(){return l},fn:function(){return a},oP:function(){return u},yj:function(){return d}});var n=i("3225"),s=i("97147"),r=i("71482");function o(e){return 47===e||92===e}function l(e){return e.replace(/[\\/]/g,n.KR.sep)}function a(e){return -1===e.indexOf("/")&&(e=l(e)),/^[a-zA-Z]:(\/|$)/.test(e)&&(e="/"+e),e}function d(e,t=n.KR.sep){if(!e)return"";let i=e.length,s=e.charCodeAt(0);if(o(s)){if(o(e.charCodeAt(1))&&!o(e.charCodeAt(2))){let n=3,s=3;for(;n<i&&!o(e.charCodeAt(n));n++);if(s!==n&&!o(e.charCodeAt(n+1))){for(n+=1;n<i;n++)if(o(e.charCodeAt(n)))return e.slice(0,n+1).replace(/[\\/]/g,t)}}return t}if(c(s)&&58===e.charCodeAt(1))return o(e.charCodeAt(2))?e.slice(0,2)+t:e.slice(0,2);let r=e.indexOf("://");if(-1!==r){for(r+=3;r<i;r++)if(o(e.charCodeAt(r)))return e.slice(0,r+1)}return""}function h(e,t,i,s=n.ir){if(e===t)return!0;if(!e||!t||t.length>e.length)return!1;if(i){if(!(0,r.ok)(e,t))return!1;if(t.length===e.length)return!0;let i=t.length;return t.charAt(t.length-1)===s&&i--,e.charAt(i)===s}return t.charAt(t.length-1)!==s&&(t+=s),0===e.indexOf(t)}function c(e){return e>=65&&e<=90||e>=97&&e<=122}function u(e,t=s.ED){return!!t&&c(e.charCodeAt(0))&&58===e.charCodeAt(1)}},20522:function(e,t,i){"use strict";i.d(t,{F:function(){return s}});var n=i("98212");let s=new class e{constructor(){this._onDidChange=new n.Q5,this.onDidChange=this._onDidChange.event,this._enabled=!0}get enabled(){return this._enabled}enable(){this._enabled=!0,this._onDidChange.fire()}disable(){this._enabled=!1,this._onDidChange.fire()}}},55278:function(e,t,i){"use strict";var n;i.d(t,{$:function(){return n}}),!function(e){function t(e){return e&&"object"==typeof e&&"function"==typeof e[Symbol.iterator]}e.is=t;let i=Object.freeze([]);function*n(e){yield e}e.empty=function(){return i},e.single=n;e.wrap=function(e){return t(e)?e:n(e)};e.from=function(e){return e||i};e.reverse=function*(e){for(let t=e.length-1;t>=0;t--)yield e[t]};e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done};e.first=function(e){return e[Symbol.iterator]().next().value};e.some=function(e,t){for(let i of e)if(t(i))return!0;return!1};e.find=function(e,t){for(let i of e)if(t(i))return i};e.filter=function*(e,t){for(let i of e)t(i)&&(yield i)};e.map=function*(e,t){let i=0;for(let n of e)yield t(n,i++)};e.concat=function*(...e){for(let t of e)yield*t};e.reduce=function(e,t,i){let n=i;for(let i of e)n=t(n,i);return n};e.slice=function*(e,t,i=e.length){for(t<0&&(t+=e.length),i<0?i+=e.length:i>e.length&&(i=e.length);t<i;t++)yield e[t]};async function s(e){let t=[];for await(let i of e)t.push(i);return Promise.resolve(t)}e.consume=function(t,i=Number.POSITIVE_INFINITY){let n=[];if(0===i)return[n,t];let s=t[Symbol.iterator]();for(let t=0;t<i;t++){let t=s.next();if(t.done)return[n,e.empty()];n.push(t.value)}return[n,{[Symbol.iterator]:()=>s}]},e.asyncToArray=s}(n||(n={}))},7005:function(e,t,i){"use strict";var n,s;i.d(t,{Y9:function(){return o},YQ:function(){return h},ri:function(){return c},z6:function(){return d}});class r{constructor(e,t){this.uri=e,this.value=t}}class o{constructor(e,t){if(this[n]="ResourceMap",e instanceof o)this.map=new Map(e.map),this.toKey=null!=t?t:o.defaultToKey;else{if(Array.isArray(e))for(let[i,n]of(this.map=new Map,this.toKey=null!=t?t:o.defaultToKey,e))this.set(i,n);else this.map=new Map,this.toKey=null!=e?e:o.defaultToKey}}set(e,t){return this.map.set(this.toKey(e),new r(e,t)),this}get(e){var t;return null===(t=this.map.get(this.toKey(e)))||void 0===t?void 0:t.value}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,t){for(let[i,n]of(void 0!==t&&(e=e.bind(t)),this.map))e(n.value,n.uri,this)}*values(){for(let e of this.map.values())yield e.value}*keys(){for(let e of this.map.values())yield e.uri}*entries(){for(let e of this.map.values())yield[e.uri,e.value]}*[(n=Symbol.toStringTag,Symbol.iterator)](){for(let[,e]of this.map)yield[e.uri,e.value]}}o.defaultToKey=e=>e.toString();class l{constructor(){this[s]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var e;return null===(e=this._head)||void 0===e?void 0:e.value}get last(){var e;return null===(e=this._tail)||void 0===e?void 0:e.value}has(e){return this._map.has(e)}get(e,t=0){let i=this._map.get(e);if(i)return 0!==t&&this.touch(i,t),i.value}set(e,t,i=0){let n=this._map.get(e);if(n)n.value=t,0!==i&&this.touch(n,i);else{switch(n={key:e,value:t,next:void 0,previous:void 0},i){case 0:case 2:this.addItemLast(n);break;case 1:this.addItemFirst(n);break;default:this.addItemLast(n)}this._map.set(e,n),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){let t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw Error("Invalid list");let e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){let i=this._state,n=this._head;for(;n;){if(t?e.bind(t)(n.value,n.key,this):e(n.value,n.key,this),this._state!==i)throw Error("LinkedMap got modified during iteration.");n=n.next}}keys(){let e=this,t=this._state,i=this._head,n={[Symbol.iterator]:()=>n,next(){if(e._state!==t)throw Error("LinkedMap got modified during iteration.");if(!i)return{value:void 0,done:!0};{let e={value:i.key,done:!1};return i=i.next,e}}};return n}values(){let e=this,t=this._state,i=this._head,n={[Symbol.iterator]:()=>n,next(){if(e._state!==t)throw Error("LinkedMap got modified during iteration.");if(!i)return{value:void 0,done:!0};{let e={value:i.value,done:!1};return i=i.next,e}}};return n}entries(){let e=this,t=this._state,i=this._head,n={[Symbol.iterator]:()=>n,next(){if(e._state!==t)throw Error("LinkedMap got modified during iteration.");if(!i)return{value:void 0,done:!0};{let e={value:[i.key,i.value],done:!1};return i=i.next,e}}};return n}[(s=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e){this.clear();return}let t=this._head,i=this.size;for(;t&&i>e;)this._map.delete(t.key),t=t.next,i--;this._head=t,this._size=i,t&&(t.previous=void 0),this._state++}trimNew(e){if(e>=this.size)return;if(0===e){this.clear();return}let t=this._tail,i=this.size;for(;t&&i>e;)this._map.delete(t.key),t=t.previous,i--;this._tail=t,this._size=i,t&&(t.next=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(this._head)e.next=this._head,this._head.previous=e;else throw Error("Invalid list")}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(this._tail)e.previous=this._tail,this._tail.next=e;else throw Error("Invalid list")}else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{let t=e.next,i=e.previous;if(!t||!i)throw Error("Invalid list");t.previous=i,i.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw Error("Invalid list");if(1===t||2===t){if(1===t){if(e===this._head)return;let t=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(t.previous=i,i.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(2===t){if(e===this._tail)return;let t=e.next,i=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=i,i.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){let e=[];return this.forEach((t,i)=>{e.push([i,t])}),e}fromJSON(e){for(let[t,i]of(this.clear(),e))this.set(t,i)}}class a extends l{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,t=2){return super.get(e,t)}peek(e){return super.get(e,0)}set(e,t){return super.set(e,t,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}}class d extends a{constructor(e,t=1){super(e,t)}trim(e){this.trimOld(e)}set(e,t){return super.set(e,t),this.checkTrim(),this}}class h{constructor(e){if(this._m1=new Map,this._m2=new Map,e)for(let[t,i]of e)this.set(t,i)}clear(){this._m1.clear(),this._m2.clear()}set(e,t){this._m1.set(e,t),this._m2.set(t,e)}get(e){return this._m1.get(e)}getKey(e){return this._m2.get(e)}delete(e){let t=this._m1.get(e);return void 0!==t&&(this._m1.delete(e),this._m2.delete(t),!0)}keys(){return this._m1.keys()}values(){return this._m1.values()}}class c{constructor(){this.map=new Map}add(e,t){let i=this.map.get(e);!i&&(i=new Set,this.map.set(e,i)),i.add(t)}delete(e,t){let i=this.map.get(e);i&&(i.delete(t),0===i.size&&this.map.delete(e))}forEach(e,t){let i=this.map.get(e);i&&i.forEach(t)}get(e){let t=this.map.get(e);return t?t:new Set}}},6438:function(e,t,i){"use strict";i.d(t,{Gi:function(){return p},Gs:function(){return u},WX:function(){return g},lg:function(){return s},xn:function(){return c}});var n,s,r,o=i("45802"),l=i("97147"),a=i("71482"),d=i("98084"),h=i("3225");function c(e,t){return d.o.isUri(e)?(0,a.qq)(e.scheme,t):(0,a.ok)(e,t+":")}function u(e,...t){return t.some(t=>c(e,t))}(n=s||(s={})).inMemory="inmemory",n.vscode="vscode",n.internal="private",n.walkThrough="walkThrough",n.walkThroughSnippet="walkThroughSnippet",n.http="http",n.https="https",n.file="file",n.mailto="mailto",n.untitled="untitled",n.data="data",n.command="command",n.vscodeRemote="vscode-remote",n.vscodeRemoteResource="vscode-remote-resource",n.vscodeManagedRemoteResource="vscode-managed-remote-resource",n.vscodeUserData="vscode-userdata",n.vscodeCustomEditor="vscode-custom-editor",n.vscodeNotebookCell="vscode-notebook-cell",n.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",n.vscodeNotebookCellOutput="vscode-notebook-cell-output",n.vscodeInteractiveInput="vscode-interactive-input",n.vscodeSettings="vscode-settings",n.vscodeWorkspaceTrust="vscode-workspace-trust",n.vscodeTerminal="vscode-terminal",n.vscodeChatCodeBlock="vscode-chat-code-block",n.vscodeChatCodeCompreBlock="vscode-chat-code-compare-block",n.vscodeChatSesssion="vscode-chat-editor",n.webviewPanel="webview-panel",n.vscodeWebview="vscode-webview",n.extension="extension",n.vscodeFileResource="vscode-file",n.tmp="tmp",n.vsls="vsls",n.vscodeSourceControl="vscode-scm",n.commentsInput="comment",n.codeSetting="code-setting";let g=new class e{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(e){this._preferredWebSchema=e}get _remoteResourcesPath(){return h.KR.join(this._serverRootPath,s.vscodeRemoteResource)}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(t){return o.dL(t),e}let t=e.authority,i=this._hosts[t];i&&-1!==i.indexOf(":")&&-1===i.indexOf("[")&&(i=`[${i}]`);let n=this._ports[t],r=this._connectionTokens[t],a=`path=${encodeURIComponent(e.path)}`;return"string"==typeof r&&(a+=`&tkn=${encodeURIComponent(r)}`),d.o.from({scheme:l.$L?this._preferredWebSchema:s.vscodeRemoteResource,authority:`${i}:${n}`,path:this._remoteResourcesPath,query:a})}};class m{uriToBrowserUri(e){return e.scheme===s.vscodeRemote?g.rewrite(e):e.scheme===s.file&&(l.tY||l.qB===`${s.vscodeFileResource}://${m.FALLBACK_AUTHORITY}`)?e.with({scheme:s.vscodeFileResource,authority:e.authority||m.FALLBACK_AUTHORITY,query:null,fragment:null}):e}}m.FALLBACK_AUTHORITY="vscode-app";let p=new m;!function(e){let t=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);e.CoopAndCoep=Object.freeze(t.get("3"));let i="vscode-coi";e.getHeadersFromQuery=function(e){let n;"string"==typeof e?n=new URL(e).searchParams:e instanceof URL?n=e.searchParams:d.o.isUri(e)&&(n=new URL(e.toString(!0)).searchParams);let s=null==n?void 0:n.get(i);if(s)return t.get(s)};e.addSearchParam=function(e,t,n){if(!globalThis.crossOriginIsolated)return;let s=t&&n?"3":n?"2":"1";e instanceof URLSearchParams?e.set(i,s):e[i]=s}}(r||(r={}))},10361:function(e,t,i){"use strict";let n,s,r;i.d(t,{Bl:function(){return p},DN:function(){return S},Hr:function(){return f},Jn:function(){return h},Ku:function(){return C},MK:function(){return d},Nc:function(){return u},PS:function(){return m},c8:function(){return _},hm:function(){return g},mT:function(){return c},uh:function(){return E}});var o=i("57341"),l=i("45344"),a=i("30908");function d(e){n=e}function h(e){}function c(e){s=e}class u{get TChange(){return null}reportChanges(){this.get()}read(e){return e?e.readObservable(this):this.get()}map(e,t){let i=void 0===t?void 0:e,n=void 0===t?e:t;return s({owner:i,debugName:()=>{let e=(0,l.$P)(n);if(void 0!==e)return e;let t=/^\s*\(?\s*([a-zA-Z_$][a-zA-Z_$0-9]*)\s*\)?\s*=>\s*\1(?:\??)\.([a-zA-Z_$][a-zA-Z_$0-9]*)\s*$/.exec(n.toString());return t?`${this.debugName}.${t[2]}`:i?void 0:`${this.debugName} (mapped)`},debugReferenceFn:n},e=>n(this.read(e),e))}recomputeInitiallyAndOnChange(e,t){return e.add(n(this,t)),this}}class g extends u{constructor(){super(...arguments),this.observers=new Set}addObserver(e){let t=this.observers.size;this.observers.add(e),0===t&&this.onFirstObserverAdded()}removeObserver(e){this.observers.delete(e)&&0===this.observers.size&&this.onLastObserverRemoved()}onFirstObserverAdded(){}onLastObserverRemoved(){}}function m(e,t){let i=new v(e,t);try{e(i)}finally{i.finish()}}function p(e){if(r)e(r);else{let t=new v(e,void 0);r=t;try{e(t)}finally{t.finish(),r=void 0}}}async function f(e,t){let i=new v(e,t);try{await e(i)}finally{i.finish()}}function _(e,t,i){e?t(e):m(t,i)}class v{constructor(e,t){var i;this._fn=e,this._getDebugName=t,this.updatingObservers=[],null===(i=(0,a.jl)())||void 0===i||i.handleBeginTransaction(this)}getDebugName(){return this._getDebugName?this._getDebugName():(0,l.$P)(this._fn)}updateObserver(e,t){this.updatingObservers.push({observer:e,observable:t}),e.beginUpdate(t)}finish(){var e;let t=this.updatingObservers;for(let e=0;e<t.length;e++){let{observer:i,observable:n}=t[e];i.endUpdate(n)}this.updatingObservers=null,null===(e=(0,a.jl)())||void 0===e||e.handleEndTransaction()}}function E(e,t){let i;return new b(i="string"==typeof e?new l.IZ(void 0,e,void 0):new l.IZ(e,void 0,void 0),t,o.ht)}function C(e,t){var i;return new b(new l.IZ(e.owner,e.debugName,void 0),t,null!==(i=e.equalsFn)&&void 0!==i?i:o.ht)}class b extends g{get debugName(){var e;return null!==(e=this._debugNameData.getDebugName(this))&&void 0!==e?e:"ObservableValue"}constructor(e,t,i){super(),this._debugNameData=e,this._equalityComparator=i,this._value=t}get(){return this._value}set(e,t,i){var n;let s;if(!this._equalityComparator(this._value,e)){!t&&(t=s=new v(()=>{},()=>`Setting ${this.debugName}`));try{let s=this._value;for(let r of(this._setValue(e),null===(n=(0,a.jl)())||void 0===n||n.handleObservableChanged(this,{oldValue:s,newValue:e,change:i,didChange:!0,hadValue:!0}),this.observers))t.updateObserver(r,this),r.handleChange(this,i)}finally{s&&s.finish()}}}toString(){return`${this.debugName}: ${this._value}`}_setValue(e){this._value=e}}function S(e,t){let i;return new N(i="string"==typeof e?new l.IZ(void 0,e,void 0):new l.IZ(e,void 0,void 0),t,o.ht)}class N extends b{_setValue(e){this._value!==e&&(this._value&&this._value.dispose(),this._value=e)}dispose(){var e;null===(e=this._value)||void 0===e||e.dispose()}}},71096:function(e,t,i){"use strict";i.d(t,{L:function(){return s},r:function(){return n}});class n{constructor(){this.chunkCount=0,this.chunkOccurrences=new Map,this.documents=new Map}calculateScores(e,t){let i=this.computeEmbedding(e),n=new Map,s=[];for(let[e,r]of this.documents){if(t.isCancellationRequested)return[];for(let t of r.chunks){let r=this.computeSimilarityScore(t,i,n);r>0&&s.push({key:e,score:r})}}return s}static termFrequencies(e){return function(e){var t;let i=new Map;for(let n of e)i.set(n,(null!==(t=i.get(n))&&void 0!==t?t:0)+1);return i}(n.splitTerms(e))}static*splitTerms(e){let t=e=>e.toLowerCase();for(let[i]of e.matchAll(/\b\p{Letter}[\p{Letter}\d]{2,}\b/gu)){yield t(i);let e=i.replace(/([a-z])([A-Z])/g,"$1 $2").split(/\s+/g);if(e.length>1)for(let i of e)i.length>2&&/\p{Letter}{3,}/gu.test(i)&&(yield t(i))}}updateDocuments(e){var t;for(let{key:t}of e)this.deleteDocument(t);for(let i of e){let e=[];for(let s of i.textChunks){let i=n.termFrequencies(s);for(let e of i.keys())this.chunkOccurrences.set(e,(null!==(t=this.chunkOccurrences.get(e))&&void 0!==t?t:0)+1);e.push({text:s,tf:i})}this.chunkCount+=e.length,this.documents.set(i.key,{chunks:e})}return this}deleteDocument(e){let t=this.documents.get(e);if(t)for(let i of(this.documents.delete(e),this.chunkCount-=t.chunks.length,t.chunks))for(let e of i.tf.keys()){let t=this.chunkOccurrences.get(e);if("number"==typeof t){let i=t-1;i<=0?this.chunkOccurrences.delete(e):this.chunkOccurrences.set(e,i)}}}computeSimilarityScore(e,t,i){let n=0;for(let[s,r]of Object.entries(t)){let t=e.tf.get(s);if(!t)continue;let o=i.get(s);"number"!=typeof o&&(o=this.computeIdf(s),i.set(s,o)),n+=t*o*r}return n}computeEmbedding(e){let t=n.termFrequencies(e);return this.computeTfidf(t)}computeIdf(e){var t;let i=null!==(t=this.chunkOccurrences.get(e))&&void 0!==t?t:0;return i>0?Math.log((this.chunkCount+1)/i):0}computeTfidf(e){let t=Object.create(null);for(let[i,n]of e){let e=this.computeIdf(i);e>0&&(t[i]=n*e)}return t}}function s(e){var t,i;let n=e.slice(0);n.sort((e,t)=>t.score-e.score);let s=null!==(i=null===(t=n[0])||void 0===t?void 0:t.score)&&void 0!==i?i:0;if(s>0)for(let e of n)e.score/=s;return n}},98084:function(e,t,i){"use strict";i.d(t,{o:function(){return h},q:function(){return f}});var n=i("3225"),s=i("97147");let r=/^\w[\w\d+.-]*$/,o=/^\//,l=/^\/\//,a="/",d=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class h{static isUri(e){return e instanceof h||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString}constructor(e,t,i,n,s,d=!1){if("object"==typeof e)this.scheme=e.scheme||"",this.authority=e.authority||"",this.path=e.path||"",this.query=e.query||"",this.fragment=e.fragment||"";else{var h,c;this.scheme=(h=e,c=d,h||c?h:"file"),this.authority=t||"",this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==a&&(t=a+t):t=a}return t}(this.scheme,i||""),this.query=n||"",this.fragment=s||"",!function(e,t){if(!e.scheme&&t)throw Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!r.test(e.scheme))throw Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!o.test(e.path))throw Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(l.test(e.path))throw Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}(this,d)}}get fsPath(){return f(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:i,path:n,query:s,fragment:r}=e;return(void 0===t?t=this.scheme:null===t&&(t=""),void 0===i?i=this.authority:null===i&&(i=""),void 0===n?n=this.path:null===n&&(n=""),void 0===s?s=this.query:null===s&&(s=""),void 0===r?r=this.fragment:null===r&&(r=""),t===this.scheme&&i===this.authority&&n===this.path&&s===this.query&&r===this.fragment)?this:new u(t,i,n,s,r)}static parse(e,t=!1){let i=d.exec(e);return i?new u(i[2]||"",E(i[4]||""),E(i[5]||""),E(i[7]||""),E(i[9]||""),t):new u("","","","","")}static file(e){let t="";if(s.ED&&(e=e.replace(/\\/g,a)),e[0]===a&&e[1]===a){let i=e.indexOf(a,2);-1===i?(t=e.substring(2),e=a):(t=e.substring(2,i),e=e.substring(i)||a)}return new u("file",t,e,"","")}static from(e,t){return new u(e.scheme,e.authority,e.path,e.query,e.fragment,t)}static joinPath(e,...t){let i;if(!e.path)throw Error("[UriError]: cannot call joinPath on URI without path");return i=s.ED&&"file"===e.scheme?h.file(n.Ku.join(f(e,!0),...t)).path:n.KR.join(e.path,...t),e.with({path:i})}toString(e=!1){return _(this,e)}toJSON(){return this}static revive(e){var t,i;if(!e)return e;{if(e instanceof h)return e;let n=new u(e);return n._formatted=null!==(t=e.external)&&void 0!==t?t:null,n._fsPath=e._sep===c&&null!==(i=e.fsPath)&&void 0!==i?i:null,n}}}let c=s.ED?1:void 0;class u extends h{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return!this._fsPath&&(this._fsPath=f(this,!1)),this._fsPath}toString(e=!1){return e?_(this,!0):(!this._formatted&&(this._formatted=_(this,!1)),this._formatted)}toJSON(){let e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=c),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}let g={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function m(e,t,i){let n;let s=-1;for(let r=0;r<e.length;r++){let o=e.charCodeAt(r);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o||i&&91===o||i&&93===o||i&&58===o)-1!==s&&(n+=encodeURIComponent(e.substring(s,r)),s=-1),void 0!==n&&(n+=e.charAt(r));else{void 0===n&&(n=e.substr(0,r));let t=g[o];void 0!==t?(-1!==s&&(n+=encodeURIComponent(e.substring(s,r)),s=-1),n+=t):-1===s&&(s=r)}}return -1!==s&&(n+=encodeURIComponent(e.substring(s))),void 0!==n?n:e}function p(e){let t;for(let i=0;i<e.length;i++){let n=e.charCodeAt(i);35===n||63===n?(void 0===t&&(t=e.substr(0,i)),t+=g[n]):void 0!==t&&(t+=e[i])}return void 0!==t?t:e}function f(e,t){let i;return i=e.authority&&e.path.length>1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&90>=e.path.charCodeAt(1)||e.path.charCodeAt(1)>=97&&122>=e.path.charCodeAt(1))&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,s.ED&&(i=i.replace(/\//g,"\\")),i}function _(e,t){let i=t?p:m,n="",{scheme:s,authority:r,path:o,query:l,fragment:d}=e;if(s&&(n+=s+":"),(r||"file"===s)&&(n+=a+a),r){let e=r.indexOf("@");if(-1!==e){let t=r.substr(0,e);r=r.substr(e+1),-1===(e=t.lastIndexOf(":"))?n+=i(t,!1,!1):n+=i(t.substr(0,e),!1,!1)+":"+i(t.substr(e+1),!1,!0),n+="@"}-1===(e=(r=r.toLowerCase()).lastIndexOf(":"))?n+=i(r,!1,!0):n+=i(r.substr(0,e),!1,!0)+r.substr(e)}if(o){if(o.length>=3&&47===o.charCodeAt(0)&&58===o.charCodeAt(2)){let e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&58===o.charCodeAt(1)){let e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}n+=i(o,!0,!1)}return l&&(n+="?"+i(l,!1,!1)),d&&(n+="#"+(t?d:m(d,!1,!1))),n}let v=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function E(e){return e.match(v)?e.replace(v,e=>(function e(t){try{return decodeURIComponent(t)}catch(i){if(t.length>3)return t.substr(0,3)+e(t.substr(3));return t}})(e)):e}},64698:function(e,t,i){"use strict";(0,i("88814").H)({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310"),i.e("471"),i.e("389"),i.e("374")]).then(i.bind(i,"43638"))})},44085:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return n},language:function(){return s}});var n={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},s={defaultToken:"",tokenPostfix:".cypher",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["ALL","AND","AS","ASC","ASCENDING","BY","CALL","CASE","CONTAINS","CREATE","DELETE","DESC","DESCENDING","DETACH","DISTINCT","ELSE","END","ENDS","EXISTS","IN","IS","LIMIT","MANDATORY","MATCH","MERGE","NOT","ON","ON","OPTIONAL","OR","ORDER","REMOVE","RETURN","SET","SKIP","STARTS","THEN","UNION","UNWIND","WHEN","WHERE","WITH","XOR","YIELD"],builtinLiterals:["true","TRUE","false","FALSE","null","NULL"],builtinFunctions:["abs","acos","asin","atan","atan2","avg","ceil","coalesce","collect","cos","cot","count","degrees","e","endNode","exists","exp","floor","head","id","keys","labels","last","left","length","log","log10","lTrim","max","min","nodes","percentileCont","percentileDisc","pi","properties","radians","rand","range","relationships","replace","reverse","right","round","rTrim","sign","sin","size","split","sqrt","startNode","stDev","stDevP","substring","sum","tail","tan","timestamp","toBoolean","toFloat","toInteger","toLower","toString","toUpper","trim","type"],operators:["+","-","*","/","%","^","=","<>","<",">","<=",">=","->","<-","--\x3e","<--"],escapes:/\\(?:[tbnrf\\"'`]|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+/,octaldigits:/[0-7]+/,hexdigits:/[0-9a-fA-F]+/,tokenizer:{root:[[/[{}[\]()]/,"@brackets"],{include:"common"}],common:[{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/:[a-zA-Z_][\w]*/,"type.identifier"],[/[a-zA-Z_][\w]*(?=\()/,{cases:{"@builtinFunctions":"predefined.function"}}],[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":"keyword","@builtinLiterals":"predefined.literal","@default":"identifier"}}],[/`/,"identifier.escape","@identifierBacktick"],[/[;,.:|]/,"delimiter"],[/[<>=%+\-*/^]+/,{cases:{"@operators":"delimiter","@default":""}}]],numbers:[[/-?(@digits)[eE](-?(@digits))?/,"number.float"],[/-?(@digits)?\.(@digits)([eE]-?(@digits))?/,"number.float"],[/-?0x(@hexdigits)/,"number.hex"],[/-?0(@octaldigits)/,"number.octal"],[/-?(@digits)/,"number"]],strings:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@stringDouble"],[/'/,"string","@stringSingle"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/\/\/.*/,"comment"],[/[^/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[/*]/,"comment"]],stringDouble:[[/[^\\"]+/,"string"],[/@escapes/,"string"],[/\\./,"string.invalid"],[/"/,"string","@pop"]],stringSingle:[[/[^\\']+/,"string"],[/@escapes/,"string"],[/\\./,"string.invalid"],[/'/,"string","@pop"]],identifierBacktick:[[/[^\\`]+/,"identifier.escape"],[/@escapes/,"identifier.escape"],[/\\./,"identifier.escape.invalid"],[/`/,"identifier.escape","@pop"]]}}},94587:function(e,t,i){"use strict";(0,i("88814").H)({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310"),i.e("471"),i.e("389"),i.e("374")]).then(i.bind(i,"23937"))})},16440:function(e,t,i){"use strict";(0,i("88814").H)({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310"),i.e("471"),i.e("389"),i.e("374")]).then(i.bind(i,"86036"))})},56603:function(e,t,i){"use strict";(0,i("88814").H)({id:"mdx",extensions:[".mdx"],aliases:["MDX","mdx"],loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310"),i.e("471"),i.e("389"),i.e("374")]).then(i.bind(i,"5060"))})},48105:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return n},language:function(){return s}});var n={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},s={defaultToken:"",tokenPostfix:".perl",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["__DATA__","else","lock","__END__","elsif","lt","__FILE__","eq","__LINE__","exp","ne","sub","__PACKAGE__","for","no","and","foreach","or","unless","cmp","ge","package","until","continue","gt","while","CORE","if","xor","do","le","__DIE__","__WARN__"],builtinFunctions:["-A","END","length","setpgrp","-B","endgrent","link","setpriority","-b","endhostent","listen","setprotoent","-C","endnetent","local","setpwent","-c","endprotoent","localtime","setservent","-d","endpwent","log","setsockopt","-e","endservent","lstat","shift","-f","eof","map","shmctl","-g","eval","mkdir","shmget","-k","exec","msgctl","shmread","-l","exists","msgget","shmwrite","-M","exit","msgrcv","shutdown","-O","fcntl","msgsnd","sin","-o","fileno","my","sleep","-p","flock","next","socket","-r","fork","not","socketpair","-R","format","oct","sort","-S","formline","open","splice","-s","getc","opendir","split","-T","getgrent","ord","sprintf","-t","getgrgid","our","sqrt","-u","getgrnam","pack","srand","-w","gethostbyaddr","pipe","stat","-W","gethostbyname","pop","state","-X","gethostent","pos","study","-x","getlogin","print","substr","-z","getnetbyaddr","printf","symlink","abs","getnetbyname","prototype","syscall","accept","getnetent","push","sysopen","alarm","getpeername","quotemeta","sysread","atan2","getpgrp","rand","sysseek","AUTOLOAD","getppid","read","system","BEGIN","getpriority","readdir","syswrite","bind","getprotobyname","readline","tell","binmode","getprotobynumber","readlink","telldir","bless","getprotoent","readpipe","tie","break","getpwent","recv","tied","caller","getpwnam","redo","time","chdir","getpwuid","ref","times","CHECK","getservbyname","rename","truncate","chmod","getservbyport","require","uc","chomp","getservent","reset","ucfirst","chop","getsockname","return","umask","chown","getsockopt","reverse","undef","chr","glob","rewinddir","UNITCHECK","chroot","gmtime","rindex","unlink","close","goto","rmdir","unpack","closedir","grep","say","unshift","connect","hex","scalar","untie","cos","index","seek","use","crypt","INIT","seekdir","utime","dbmclose","int","select","values","dbmopen","ioctl","semctl","vec","defined","join","semget","wait","delete","keys","semop","waitpid","DESTROY","kill","send","wantarray","die","last","setgrent","warn","dump","lc","sethostent","write","each","lcfirst","setnetent"],builtinFileHandlers:["ARGV","STDERR","STDOUT","ARGVOUT","STDIN","ENV"],builtinVariables:["$!","$^RE_TRIE_MAXBUF","$LAST_REGEXP_CODE_RESULT",'$"',"$^S","$LIST_SEPARATOR","$#","$^T","$MATCH","$$","$^TAINT","$MULTILINE_MATCHING","$%","$^UNICODE","$NR","$&","$^UTF8LOCALE","$OFMT","$'","$^V","$OFS","$(","$^W","$ORS","$)","$^WARNING_BITS","$OS_ERROR","$*","$^WIDE_SYSTEM_CALLS","$OSNAME","$+","$^X","$OUTPUT_AUTO_FLUSH","$,","$_","$OUTPUT_FIELD_SEPARATOR","$-","$`","$OUTPUT_RECORD_SEPARATOR","$.","$a","$PERL_VERSION","$/","$ACCUMULATOR","$PERLDB","$0","$ARG","$PID","$:","$ARGV","$POSTMATCH","$;","$b","$PREMATCH","$<","$BASETIME","$PROCESS_ID","$=","$CHILD_ERROR","$PROGRAM_NAME","$>","$COMPILING","$REAL_GROUP_ID","$?","$DEBUGGING","$REAL_USER_ID","$@","$EFFECTIVE_GROUP_ID","$RS","$[","$EFFECTIVE_USER_ID","$SUBSCRIPT_SEPARATOR","$\\","$EGID","$SUBSEP","$]","$ERRNO","$SYSTEM_FD_MAX","$^","$EUID","$UID","$^A","$EVAL_ERROR","$WARNING","$^C","$EXCEPTIONS_BEING_CAUGHT","$|","$^CHILD_ERROR_NATIVE","$EXECUTABLE_NAME","$~","$^D","$EXTENDED_OS_ERROR","%!","$^E","$FORMAT_FORMFEED","%^H","$^ENCODING","$FORMAT_LINE_BREAK_CHARACTERS","%ENV","$^F","$FORMAT_LINES_LEFT","%INC","$^H","$FORMAT_LINES_PER_PAGE","%OVERLOAD","$^I","$FORMAT_NAME","%SIG","$^L","$FORMAT_PAGE_NUMBER","@+","$^M","$FORMAT_TOP_NAME","@-","$^N","$GID","@_","$^O","$INPLACE_EDIT","@ARGV","$^OPEN","$INPUT_LINE_NUMBER","@INC","$^P","$INPUT_RECORD_SEPARATOR","@LAST_MATCH_START","$^R","$LAST_MATCH_END","$^RE_DEBUG_FLAGS","$LAST_PAREN_MATCH"],symbols:/[:+\-\^*$&%@=<>!?|\/~\.]/,quoteLikeOps:["qr","m","s","q","qq","qx","qw","tr","y"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[{include:"@whitespace"},[/[a-zA-Z\-_][\w\-_]*/,{cases:{"@keywords":"keyword","@builtinFunctions":"type.identifier","@builtinFileHandlers":"variable.predefined","@quoteLikeOps":{token:"@rematch",next:"quotedConstructs"},"@default":""}}],[/[\$@%][*@#?\+\-\$!\w\\\^><~:;\.]+/,{cases:{"@builtinVariables":"variable.predefined","@default":"variable"}}],{include:"@strings"},{include:"@dblStrings"},{include:"@perldoc"},{include:"@heredoc"},[/[{}\[\]()]/,"@brackets"],[/[\/](?:(?:\[(?:\\]|[^\]])+\])|(?:\\\/|[^\]\/]))*[\/]\w*\s*(?=[).,;]|$)/,"regexp"],[/@symbols/,"operators"],{include:"@numbers"},[/[,;]/,"delimiter"]],whitespace:[[/\s+/,"white"],[/(^#!.*$)/,"metatag"],[/(^#.*$)/,"comment"]],numbers:[[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,"number.hex"],[/\d+/,"number"]],strings:[[/'/,"string","@stringBody"]],stringBody:[[/'/,"string","@popall"],[/\\'/,"string.escape"],[/./,"string"]],dblStrings:[[/"/,"string","@dblStringBody"]],dblStringBody:[[/"/,"string","@popall"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],{include:"@variables"},[/./,"string"]],quotedConstructs:[[/(q|qw|tr|y)\s*\(/,{token:"string.delim",switchTo:"@qstring.(.)"}],[/(q|qw|tr|y)\s*\[/,{token:"string.delim",switchTo:"@qstring.[.]"}],[/(q|qw|tr|y)\s*\{/,{token:"string.delim",switchTo:"@qstring.{.}"}],[/(q|qw|tr|y)\s*</,{token:"string.delim",switchTo:"@qstring.<.>"}],[/(q|qw|tr|y)#/,{token:"string.delim",switchTo:"@qstring.#.#"}],[/(q|qw|tr|y)\s*([^A-Za-z0-9#\s])/,{token:"string.delim",switchTo:"@qstring.$2.$2"}],[/(q|qw|tr|y)\s+(\w)/,{token:"string.delim",switchTo:"@qstring.$2.$2"}],[/(qr|m|s)\s*\(/,{token:"regexp.delim",switchTo:"@qregexp.(.)"}],[/(qr|m|s)\s*\[/,{token:"regexp.delim",switchTo:"@qregexp.[.]"}],[/(qr|m|s)\s*\{/,{token:"regexp.delim",switchTo:"@qregexp.{.}"}],[/(qr|m|s)\s*</,{token:"regexp.delim",switchTo:"@qregexp.<.>"}],[/(qr|m|s)#/,{token:"regexp.delim",switchTo:"@qregexp.#.#"}],[/(qr|m|s)\s*([^A-Za-z0-9_#\s])/,{token:"regexp.delim",switchTo:"@qregexp.$2.$2"}],[/(qr|m|s)\s+(\w)/,{token:"regexp.delim",switchTo:"@qregexp.$2.$2"}],[/(qq|qx)\s*\(/,{token:"string.delim",switchTo:"@qqstring.(.)"}],[/(qq|qx)\s*\[/,{token:"string.delim",switchTo:"@qqstring.[.]"}],[/(qq|qx)\s*\{/,{token:"string.delim",switchTo:"@qqstring.{.}"}],[/(qq|qx)\s*</,{token:"string.delim",switchTo:"@qqstring.<.>"}],[/(qq|qx)#/,{token:"string.delim",switchTo:"@qqstring.#.#"}],[/(qq|qx)\s*([^A-Za-z0-9#\s])/,{token:"string.delim",switchTo:"@qqstring.$2.$2"}],[/(qq|qx)\s+(\w)/,{token:"string.delim",switchTo:"@qqstring.$2.$2"}]],qstring:[[/\\./,"string.escape"],[/./,{cases:{"$#==$S3":{token:"string.delim",next:"@pop"},"$#==$S2":{token:"string.delim",next:"@push"},"@default":"string"}}]],qregexp:[{include:"@variables"},[/\\./,"regexp.escape"],[/./,{cases:{"$#==$S3":{token:"regexp.delim",next:"@regexpModifiers"},"$#==$S2":{token:"regexp.delim",next:"@push"},"@default":"regexp"}}]],regexpModifiers:[[/[msixpodualngcer]+/,{token:"regexp.modifier",next:"@popall"}]],qqstring:[{include:"@variables"},{include:"@qstring"}],heredoc:[[/<<\s*['"`]?([\w\-]+)['"`]?/,{token:"string.heredoc.delimiter",next:"@heredocBody.$1"}]],heredocBody:[[/^([\w\-]+)$/,{cases:{"$1==$S2":[{token:"string.heredoc.delimiter",next:"@popall"}],"@default":"string.heredoc"}}],[/./,"string.heredoc"]],perldoc:[[/^=\w/,"comment.doc","@perldocBody"]],perldocBody:[[/^=cut\b/,"type.identifier","@popall"],[/./,"comment.doc"]],variables:[[/\$\w+/,"variable"],[/@\w+/,"variable"],[/%\w+/,"variable"]]}}},18704:function(e,t,i){"use strict";(0,i("88814").H)({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310"),i.e("471"),i.e("389"),i.e("374")]).then(i.bind(i,"12605"))})},41929:function(e,t,i){"use strict";(0,i("88814").H)({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310"),i.e("471"),i.e("389"),i.e("374")]).then(i.bind(i,"13473"))})},56981:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return n},language:function(){return s}});var n={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},s={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["ABORT","ABSOLUTE","ACTION","ADA","ADD","AFTER","ALL","ALLOCATE","ALTER","ALWAYS","ANALYZE","AND","ANY","ARE","AS","ASC","ASSERTION","AT","ATTACH","AUTHORIZATION","AUTOINCREMENT","AVG","BACKUP","BEFORE","BEGIN","BETWEEN","BIT","BIT_LENGTH","BOTH","BREAK","BROWSE","BULK","BY","CASCADE","CASCADED","CASE","CAST","CATALOG","CHAR","CHARACTER","CHARACTER_LENGTH","CHAR_LENGTH","CHECK","CHECKPOINT","CLOSE","CLUSTERED","COALESCE","COLLATE","COLLATION","COLUMN","COMMIT","COMPUTE","CONFLICT","CONNECT","CONNECTION","CONSTRAINT","CONSTRAINTS","CONTAINS","CONTAINSTABLE","CONTINUE","CONVERT","CORRESPONDING","COUNT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DATE","DAY","DBCC","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFERRABLE","DEFERRED","DELETE","DENY","DESC","DESCRIBE","DESCRIPTOR","DETACH","DIAGNOSTICS","DISCONNECT","DISK","DISTINCT","DISTRIBUTED","DO","DOMAIN","DOUBLE","DROP","DUMP","EACH","ELSE","END","END-EXEC","ERRLVL","ESCAPE","EXCEPT","EXCEPTION","EXCLUDE","EXCLUSIVE","EXEC","EXECUTE","EXISTS","EXIT","EXPLAIN","EXTERNAL","EXTRACT","FAIL","FALSE","FETCH","FILE","FILLFACTOR","FILTER","FIRST","FLOAT","FOLLOWING","FOR","FOREIGN","FORTRAN","FOUND","FREETEXT","FREETEXTTABLE","FROM","FULL","FUNCTION","GENERATED","GET","GLOB","GLOBAL","GO","GOTO","GRANT","GROUP","GROUPS","HAVING","HOLDLOCK","HOUR","IDENTITY","IDENTITYCOL","IDENTITY_INSERT","IF","IGNORE","IMMEDIATE","IN","INCLUDE","INDEX","INDEXED","INDICATOR","INITIALLY","INNER","INPUT","INSENSITIVE","INSERT","INSTEAD","INT","INTEGER","INTERSECT","INTERVAL","INTO","IS","ISNULL","ISOLATION","JOIN","KEY","KILL","LANGUAGE","LAST","LEADING","LEFT","LEVEL","LIKE","LIMIT","LINENO","LOAD","LOCAL","LOWER","MATCH","MATERIALIZED","MAX","MERGE","MIN","MINUTE","MODULE","MONTH","NAMES","NATIONAL","NATURAL","NCHAR","NEXT","NO","NOCHECK","NONCLUSTERED","NONE","NOT","NOTHING","NOTNULL","NULL","NULLIF","NULLS","NUMERIC","OCTET_LENGTH","OF","OFF","OFFSET","OFFSETS","ON","ONLY","OPEN","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","OPTION","OR","ORDER","OTHERS","OUTER","OUTPUT","OVER","OVERLAPS","PAD","PARTIAL","PARTITION","PASCAL","PERCENT","PIVOT","PLAN","POSITION","PRAGMA","PRECEDING","PRECISION","PREPARE","PRESERVE","PRIMARY","PRINT","PRIOR","PRIVILEGES","PROC","PROCEDURE","PUBLIC","QUERY","RAISE","RAISERROR","RANGE","READ","READTEXT","REAL","RECONFIGURE","RECURSIVE","REFERENCES","REGEXP","REINDEX","RELATIVE","RELEASE","RENAME","REPLACE","REPLICATION","RESTORE","RESTRICT","RETURN","RETURNING","REVERT","REVOKE","RIGHT","ROLLBACK","ROW","ROWCOUNT","ROWGUIDCOL","ROWS","RULE","SAVE","SAVEPOINT","SCHEMA","SCROLL","SECOND","SECTION","SECURITYAUDIT","SELECT","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","SESSION","SESSION_USER","SET","SETUSER","SHUTDOWN","SIZE","SMALLINT","SOME","SPACE","SQL","SQLCA","SQLCODE","SQLERROR","SQLSTATE","SQLWARNING","STATISTICS","SUBSTRING","SUM","SYSTEM_USER","TABLE","TABLESAMPLE","TEMP","TEMPORARY","TEXTSIZE","THEN","TIES","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TOP","TRAILING","TRAN","TRANSACTION","TRANSLATE","TRANSLATION","TRIGGER","TRIM","TRUE","TRUNCATE","TRY_CONVERT","TSEQUAL","UNBOUNDED","UNION","UNIQUE","UNKNOWN","UNPIVOT","UPDATE","UPDATETEXT","UPPER","USAGE","USE","USER","USING","VACUUM","VALUE","VALUES","VARCHAR","VARYING","VIEW","VIRTUAL","WAITFOR","WHEN","WHENEVER","WHERE","WHILE","WINDOW","WITH","WITHIN GROUP","WITHOUT","WORK","WRITE","WRITETEXT","YEAR","ZONE"],operators:["ALL","AND","ANY","BETWEEN","EXISTS","IN","LIKE","NOT","OR","SOME","EXCEPT","INTERSECT","UNION","APPLY","CROSS","FULL","INNER","JOIN","LEFT","OUTER","RIGHT","CONTAINS","FREETEXT","IS","NULL","PIVOT","UNPIVOT","MATCHED"],builtinFunctions:["AVG","CHECKSUM_AGG","COUNT","COUNT_BIG","GROUPING","GROUPING_ID","MAX","MIN","SUM","STDEV","STDEVP","VAR","VARP","CUME_DIST","FIRST_VALUE","LAG","LAST_VALUE","LEAD","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","COLLATE","COLLATIONPROPERTY","TERTIARY_WEIGHTS","FEDERATION_FILTERING_VALUE","CAST","CONVERT","PARSE","TRY_CAST","TRY_CONVERT","TRY_PARSE","ASYMKEY_ID","ASYMKEYPROPERTY","CERTPROPERTY","CERT_ID","CRYPT_GEN_RANDOM","DECRYPTBYASYMKEY","DECRYPTBYCERT","DECRYPTBYKEY","DECRYPTBYKEYAUTOASYMKEY","DECRYPTBYKEYAUTOCERT","DECRYPTBYPASSPHRASE","ENCRYPTBYASYMKEY","ENCRYPTBYCERT","ENCRYPTBYKEY","ENCRYPTBYPASSPHRASE","HASHBYTES","IS_OBJECTSIGNED","KEY_GUID","KEY_ID","KEY_NAME","SIGNBYASYMKEY","SIGNBYCERT","SYMKEYPROPERTY","VERIFYSIGNEDBYCERT","VERIFYSIGNEDBYASYMKEY","CURSOR_STATUS","DATALENGTH","IDENT_CURRENT","IDENT_INCR","IDENT_SEED","IDENTITY","SQL_VARIANT_PROPERTY","CURRENT_TIMESTAMP","DATEADD","DATEDIFF","DATEFROMPARTS","DATENAME","DATEPART","DATETIME2FROMPARTS","DATETIMEFROMPARTS","DATETIMEOFFSETFROMPARTS","DAY","EOMONTH","GETDATE","GETUTCDATE","ISDATE","MONTH","SMALLDATETIMEFROMPARTS","SWITCHOFFSET","SYSDATETIME","SYSDATETIMEOFFSET","SYSUTCDATETIME","TIMEFROMPARTS","TODATETIMEOFFSET","YEAR","CHOOSE","COALESCE","IIF","NULLIF","ABS","ACOS","ASIN","ATAN","ATN2","CEILING","COS","COT","DEGREES","EXP","FLOOR","LOG","LOG10","PI","POWER","RADIANS","RAND","ROUND","SIGN","SIN","SQRT","SQUARE","TAN","APP_NAME","APPLOCK_MODE","APPLOCK_TEST","ASSEMBLYPROPERTY","COL_LENGTH","COL_NAME","COLUMNPROPERTY","DATABASE_PRINCIPAL_ID","DATABASEPROPERTYEX","DB_ID","DB_NAME","FILE_ID","FILE_IDEX","FILE_NAME","FILEGROUP_ID","FILEGROUP_NAME","FILEGROUPPROPERTY","FILEPROPERTY","FULLTEXTCATALOGPROPERTY","FULLTEXTSERVICEPROPERTY","INDEX_COL","INDEXKEY_PROPERTY","INDEXPROPERTY","OBJECT_DEFINITION","OBJECT_ID","OBJECT_NAME","OBJECT_SCHEMA_NAME","OBJECTPROPERTY","OBJECTPROPERTYEX","ORIGINAL_DB_NAME","PARSENAME","SCHEMA_ID","SCHEMA_NAME","SCOPE_IDENTITY","SERVERPROPERTY","STATS_DATE","TYPE_ID","TYPE_NAME","TYPEPROPERTY","DENSE_RANK","NTILE","RANK","ROW_NUMBER","PUBLISHINGSERVERNAME","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","CERTENCODED","CERTPRIVATEKEY","CURRENT_USER","HAS_DBACCESS","HAS_PERMS_BY_NAME","IS_MEMBER","IS_ROLEMEMBER","IS_SRVROLEMEMBER","LOGINPROPERTY","ORIGINAL_LOGIN","PERMISSIONS","PWDENCRYPT","PWDCOMPARE","SESSION_USER","SESSIONPROPERTY","SUSER_ID","SUSER_NAME","SUSER_SID","SUSER_SNAME","SYSTEM_USER","USER","USER_ID","USER_NAME","ASCII","CHAR","CHARINDEX","CONCAT","DIFFERENCE","FORMAT","LEFT","LEN","LOWER","LTRIM","NCHAR","PATINDEX","QUOTENAME","REPLACE","REPLICATE","REVERSE","RIGHT","RTRIM","SOUNDEX","SPACE","STR","STUFF","SUBSTRING","UNICODE","UPPER","BINARY_CHECKSUM","CHECKSUM","CONNECTIONPROPERTY","CONTEXT_INFO","CURRENT_REQUEST_ID","ERROR_LINE","ERROR_NUMBER","ERROR_MESSAGE","ERROR_PROCEDURE","ERROR_SEVERITY","ERROR_STATE","FORMATMESSAGE","GETANSINULL","GET_FILESTREAM_TRANSACTION_CONTEXT","HOST_ID","HOST_NAME","ISNULL","ISNUMERIC","MIN_ACTIVE_ROWVERSION","NEWID","NEWSEQUENTIALID","ROWCOUNT_BIG","XACT_STATE","TEXTPTR","TEXTVALID","COLUMNS_UPDATED","EVENTDATA","TRIGGER_NESTLEVEL","UPDATE","CHANGETABLE","CHANGE_TRACKING_CONTEXT","CHANGE_TRACKING_CURRENT_VERSION","CHANGE_TRACKING_IS_COLUMN_IN_MASK","CHANGE_TRACKING_MIN_VALID_VERSION","CONTAINSTABLE","FREETEXTTABLE","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","FILETABLEROOTPATH","GETFILENAMESPACEPATH","GETPATHLOCATOR","PATHNAME","GET_TRANSMISSION_STATUS"],builtinVariables:["@@DATEFIRST","@@DBTS","@@LANGID","@@LANGUAGE","@@LOCK_TIMEOUT","@@MAX_CONNECTIONS","@@MAX_PRECISION","@@NESTLEVEL","@@OPTIONS","@@REMSERVER","@@SERVERNAME","@@SERVICENAME","@@SPID","@@TEXTSIZE","@@VERSION","@@CURSOR_ROWS","@@FETCH_STATUS","@@DATEFIRST","@@PROCID","@@ERROR","@@IDENTITY","@@ROWCOUNT","@@TRANCOUNT","@@CONNECTIONS","@@CPU_BUSY","@@IDLE","@@IO_BUSY","@@PACKET_ERRORS","@@PACK_RECEIVED","@@PACK_SENT","@@TIMETICKS","@@TOTAL_ERRORS","@@TOTAL_READ","@@TOTAL_WRITE"],pseudoColumns:["$ACTION","$IDENTITY","$ROWGUID","$PARTITION"],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@keywords":"keyword","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/N'/,{token:"string",next:"@string"}],[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/\[/,{token:"identifier.quote",next:"@bracketedIdentifier"}],[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],bracketedIdentifier:[[/[^\]]+/,"identifier"],[/]]/,"identifier"],[/]/,{token:"identifier.quote",next:"@pop"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[[/BEGIN\s+(DISTRIBUTED\s+)?TRAN(SACTION)?\b/i,"keyword"],[/BEGIN\s+TRY\b/i,{token:"keyword.try"}],[/END\s+TRY\b/i,{token:"keyword.try"}],[/BEGIN\s+CATCH\b/i,{token:"keyword.catch"}],[/END\s+CATCH\b/i,{token:"keyword.catch"}],[/(BEGIN|CASE)\b/i,{token:"keyword.block"}],[/END\b/i,{token:"keyword.block"}],[/WHEN\b/i,{token:"keyword.choice"}],[/THEN\b/i,{token:"keyword.choice"}]]}}},19289:function(e,t,i){"use strict";(0,i("88814").H)({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310"),i.e("471"),i.e("389"),i.e("374")]).then(i.bind(i,"31408"))})},3453:function(e,t,i){"use strict";i.d(t,{n:function(){return s}});var n=i("98212");let s=new class e{constructor(){this._tabFocus=!1,this._onDidChangeTabFocus=new n.Q5,this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}getTabFocusMode(){return this._tabFocus}setTabFocusMode(e){this._tabFocus=e,this._onDidChangeTabFocus.fire(this._tabFocus)}}},89640:function(e,t,i){"use strict";i.d(t,{F:function(){return l},G:function(){return a}});var n=i("40013"),s=i("53753"),r=i("45802"),o=i("34086");class l{constructor(e){this._createLine=e,this._set(1,[])}flush(){this._set(1,[])}_set(e,t){this._lines=t,this._rendLineNumberStart=e}_get(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}}getStartLineNumber(){return this._rendLineNumberStart}getEndLineNumber(){return this._rendLineNumberStart+this._lines.length-1}getCount(){return this._lines.length}getLine(e){let t=e-this._rendLineNumberStart;if(t<0||t>=this._lines.length)throw new r.he("Illegal value for lineNumber");return this._lines[t]}onLinesDeleted(e,t){if(0===this.getCount())return null;let i=this.getStartLineNumber(),n=this.getEndLineNumber();if(t<i)return this._rendLineNumberStart-=t-e+1,null;if(e>n)return null;let s=0,r=0;for(let o=i;o<=n;o++){let i=o-this._rendLineNumberStart;e<=o&&o<=t&&(0===r?(s=i,r=1):r++)}if(e<i){let n=0;n=t<i?t-e+1:i-e,this._rendLineNumberStart-=n}return this._lines.splice(s,r)}onLinesChanged(e,t){let i=e+t-1;if(0===this.getCount())return!1;let n=this.getStartLineNumber(),s=this.getEndLineNumber(),r=!1;for(let t=e;t<=i;t++)t>=n&&t<=s&&(this._lines[t-this._rendLineNumberStart].onContentChanged(),r=!0);return r}onLinesInserted(e,t){if(0===this.getCount())return null;let i=t-e+1,n=this.getStartLineNumber(),s=this.getEndLineNumber();if(e<=n)return this._rendLineNumberStart+=i,null;if(e>s)return null;if(i+e>s)return this._lines.splice(e-this._rendLineNumberStart,s-e+1);let r=[];for(let e=0;e<i;e++)r[e]=this._createLine();let o=e-this._rendLineNumberStart,l=this._lines.slice(0,o),a=this._lines.slice(o,this._lines.length-i),d=this._lines.slice(this._lines.length-i,this._lines.length);return this._lines=l.concat(r).concat(a),d}onTokensChanged(e){if(0===this.getCount())return!1;let t=this.getStartLineNumber(),i=this.getEndLineNumber(),n=!1;for(let s=0,r=e.length;s<r;s++){let r=e[s];if(r.toLineNumber<t||r.fromLineNumber>i)continue;let o=Math.max(t,r.fromLineNumber),l=Math.min(i,r.toLineNumber);for(let e=o;e<=l;e++){let t=e-this._rendLineNumberStart;this._lines[t].onTokensChanged(),n=!0}}return n}}class a{constructor(e){this._host=e,this.domNode=this._createDomNode(),this._linesCollection=new l(()=>this._host.createVisibleLine())}_createDomNode(){let e=(0,n.X)(document.createElement("div"));return e.setClassName("view-layer"),e.setPosition("absolute"),e.domNode.setAttribute("role","presentation"),e.domNode.setAttribute("aria-hidden","true"),e}onConfigurationChanged(e){return!!e.hasChanged(145)||!1}onFlushed(e){return this._linesCollection.flush(),!0}onLinesChanged(e){return this._linesCollection.onLinesChanged(e.fromLineNumber,e.count)}onLinesDeleted(e){let t=this._linesCollection.onLinesDeleted(e.fromLineNumber,e.toLineNumber);if(t)for(let e=0,i=t.length;e<i;e++){let i=t[e].getDomNode();i&&this.domNode.domNode.removeChild(i)}return!0}onLinesInserted(e){let t=this._linesCollection.onLinesInserted(e.fromLineNumber,e.toLineNumber);if(t)for(let e=0,i=t.length;e<i;e++){let i=t[e].getDomNode();i&&this.domNode.domNode.removeChild(i)}return!0}onScrollChanged(e){return e.scrollTopChanged}onTokensChanged(e){return this._linesCollection.onTokensChanged(e.ranges)}onZonesChanged(e){return!0}getStartLineNumber(){return this._linesCollection.getStartLineNumber()}getEndLineNumber(){return this._linesCollection.getEndLineNumber()}getVisibleLine(e){return this._linesCollection.getLine(e)}renderLines(e){let t=this._linesCollection._get(),i=new d(this.domNode.domNode,this._host,e),n={rendLineNumberStart:t.rendLineNumberStart,lines:t.lines,linesLength:t.lines.length},s=i.render(n,e.startLineNumber,e.endLineNumber,e.relativeVerticalOffset);this._linesCollection._set(s.rendLineNumberStart,s.lines)}}class d{constructor(e,t,i){this.domNode=e,this.host=t,this.viewportData=i}render(e,t,i,n){let s={rendLineNumberStart:e.rendLineNumberStart,lines:e.lines.slice(0),linesLength:e.linesLength};if(s.rendLineNumberStart+s.linesLength-1<t||i<s.rendLineNumberStart){s.rendLineNumberStart=t,s.linesLength=i-t+1,s.lines=[];for(let e=t;e<=i;e++)s.lines[e-t]=this.host.createVisibleLine();return this._finishRendering(s,!0,n),s}if(this._renderUntouchedLines(s,Math.max(t-s.rendLineNumberStart,0),Math.min(i-s.rendLineNumberStart,s.linesLength-1),n,t),s.rendLineNumberStart>t){let e=Math.min(i,s.rendLineNumberStart-1);t<=e&&(this._insertLinesBefore(s,t,e,n,t),s.linesLength+=e-t+1)}else if(s.rendLineNumberStart<t){let e=Math.min(s.linesLength,t-s.rendLineNumberStart);e>0&&(this._removeLinesBefore(s,e),s.linesLength-=e)}if(s.rendLineNumberStart=t,s.rendLineNumberStart+s.linesLength-1<i){let e=s.rendLineNumberStart+s.linesLength;e<=i&&(this._insertLinesAfter(s,e,i,n,t),s.linesLength+=i-e+1)}else if(s.rendLineNumberStart+s.linesLength-1>i){let e=Math.max(0,i-s.rendLineNumberStart+1),t=s.linesLength-1-e+1;t>0&&(this._removeLinesAfter(s,t),s.linesLength-=t)}return this._finishRendering(s,!1,n),s}_renderUntouchedLines(e,t,i,n,s){let r=e.rendLineNumberStart,o=e.lines;for(let e=t;e<=i;e++){let t=r+e;o[e].layoutLine(t,n[t-s],this.viewportData.lineHeight)}}_insertLinesBefore(e,t,i,n,s){let r=[],o=0;for(let e=t;e<=i;e++)r[o++]=this.host.createVisibleLine();e.lines=r.concat(e.lines)}_removeLinesBefore(e,t){for(let i=0;i<t;i++){let t=e.lines[i].getDomNode();t&&this.domNode.removeChild(t)}e.lines.splice(0,t)}_insertLinesAfter(e,t,i,n,s){let r=[],o=0;for(let e=t;e<=i;e++)r[o++]=this.host.createVisibleLine();e.lines=e.lines.concat(r)}_removeLinesAfter(e,t){let i=e.linesLength-t;for(let n=0;n<t;n++){let t=e.lines[i+n].getDomNode();t&&this.domNode.removeChild(t)}e.lines.splice(i,t)}_finishRenderingNewLines(e,t,i,n){d._ttPolicy&&(i=d._ttPolicy.createHTML(i));let s=this.domNode.lastChild;t||!s?this.domNode.innerHTML=i:s.insertAdjacentHTML("afterend",i);let r=this.domNode.lastChild;for(let t=e.linesLength-1;t>=0;t--){let i=e.lines[t];n[t]&&(i.setDomNode(r),r=r.previousSibling)}}_finishRenderingInvalidLines(e,t,i){let n=document.createElement("div");d._ttPolicy&&(t=d._ttPolicy.createHTML(t)),n.innerHTML=t;for(let t=0;t<e.linesLength;t++){let s=e.lines[t];if(i[t]){let e=n.firstChild,t=s.getDomNode();t.parentNode.replaceChild(e,t),s.setDomNode(e)}}}_finishRendering(e,t,i){let n=d._sb,s=e.linesLength,r=e.lines,o=e.rendLineNumberStart,l=[];{n.reset();let a=!1;for(let e=0;e<s;e++){let t=r[e];if(l[e]=!1,!t.getDomNode())t.renderLine(e+o,i[e],this.viewportData.lineHeight,this.viewportData,n)&&(l[e]=!0,a=!0)}a&&this._finishRenderingNewLines(e,t,n.build(),l)}{n.reset();let t=!1,a=[];for(let e=0;e<s;e++){let s=r[e];if(a[e]=!1,!l[e])s.renderLine(e+o,i[e],this.viewportData.lineHeight,this.viewportData,n)&&(a[e]=!0,t=!0)}t&&this._finishRenderingInvalidLines(e,n.build(),a)}}}d._ttPolicy=(0,s.Z)("editorViewLayer",{createHTML:e=>e}),d._sb=new o.HT(1e5)},97513:function(e,t,i){"use strict";i.d(t,{x:function(){return d}}),i("3213");var n=i("97147"),s=i("31759"),r=i("70668"),o=i("83112"),l=i("29149"),a=i("85351");class d extends s.i{constructor(e){super(),this._context=e,this._readConfig(),this._lastCursorModelPosition=new r.L(1,1),this._renderResult=null,this._activeLineNumber=1,this._context.addEventHandler(this)}_readConfig(){let e=this._context.configuration.options;this._lineHeight=e.get(67);let t=e.get(68);this._renderLineNumbers=t.renderType,this._renderCustomLineNumbers=t.renderFn,this._renderFinalNewline=e.get(95);let i=e.get(145);this._lineNumbersLeft=i.lineNumbersLeft,this._lineNumbersWidth=i.lineNumbersWidth}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){return this._readConfig(),!0}onCursorStateChanged(e){let t=e.selections[0].getPosition();this._lastCursorModelPosition=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(t);let i=!1;return this._activeLineNumber!==t.lineNumber&&(this._activeLineNumber=t.lineNumber,i=!0),(2===this._renderLineNumbers||3===this._renderLineNumbers)&&(i=!0),i}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}onDecorationsChanged(e){return e.affectsLineNumber}_getLineRenderLineNumber(e){let t=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new r.L(e,1));if(1!==t.column)return"";let i=t.lineNumber;if(this._renderCustomLineNumbers)return this._renderCustomLineNumbers(i);if(2===this._renderLineNumbers){let e=Math.abs(this._lastCursorModelPosition.lineNumber-i);return 0===e?'<span class="relative-current-line-number">'+i+"</span>":String(e)}if(3===this._renderLineNumbers)return this._lastCursorModelPosition.lineNumber===i||i%10==0||i===this._context.viewModel.getLineCount()?String(i):"";return String(i)}prepareRender(e){if(0===this._renderLineNumbers){this._renderResult=null;return}let t=n.IJ?this._lineHeight%2==0?" lh-even":" lh-odd":"",i=e.visibleRange.startLineNumber,s=e.visibleRange.endLineNumber,r=this._context.viewModel.getDecorationsInViewport(e.visibleRange).filter(e=>!!e.options.lineNumberClassName);r.sort((e,t)=>o.e.compareRangesUsingEnds(e.range,t.range));let l=0,a=this._context.viewModel.getLineCount(),h=[];for(let e=i;e<=s;e++){let n=e-i,s=this._getLineRenderLineNumber(e),o="";for(;l<r.length&&r[l].range.endLineNumber<e;)l++;for(let t=l;t<r.length;t++){let{range:i,options:n}=r[t];i.startLineNumber<=e&&(o+=" "+n.lineNumberClassName)}if(!s&&!o){h[n]="";continue}e===a&&0===this._context.viewModel.getLineLength(e)&&("off"===this._renderFinalNewline&&(s=""),"dimmed"===this._renderFinalNewline&&(o+=" dimmed-line-number")),e===this._activeLineNumber&&(o+=" active-line-number"),h[n]=`<div class="${d.CLASS_NAME}${t}${o}" style="left:${this._lineNumbersLeft}px;width:${this._lineNumbersWidth}px;">${s}</div>`}this._renderResult=h}render(e,t){if(!this._renderResult)return"";let i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}d.CLASS_NAME="line-numbers",(0,l.Ic)((e,t)=>{let i=e.getColor(a.hw),n=e.getColor(a.Bj);n?t.addRule(`.monaco-editor .line-numbers.dimmed-line-number { color: ${n}; }`):i&&t.addRule(`.monaco-editor .line-numbers.dimmed-line-number { color: ${i.transparent(.4)}; }`)})},14540:function(e,t,i){"use strict";i.d(t,{_:function(){return o}});var n=i("55952"),s=i("45802"),r=i("37764");class o extends r.JT{constructor(){super(),this._editor=null,this._instantiationService=null,this._instances=this._register(new r.b2),this._pending=new Map,this._finishedInstantiation=[],this._finishedInstantiation[0]=!1,this._finishedInstantiation[1]=!1,this._finishedInstantiation[2]=!1,this._finishedInstantiation[3]=!1}initialize(e,t,i){for(let n of(this._editor=e,this._instantiationService=i,t)){if(this._pending.has(n.id)){(0,s.dL)(Error(`Cannot have two contributions with the same id ${n.id}`));continue}this._pending.set(n.id,n)}this._instantiateSome(0),this._register((0,n.se)((0,n.Jj)(this._editor.getDomNode()),()=>{this._instantiateSome(1)})),this._register((0,n.se)((0,n.Jj)(this._editor.getDomNode()),()=>{this._instantiateSome(2)})),this._register((0,n.se)((0,n.Jj)(this._editor.getDomNode()),()=>{this._instantiateSome(3)},5e3))}saveViewState(){let e={};for(let[t,i]of this._instances)"function"==typeof i.saveViewState&&(e[t]=i.saveViewState());return e}restoreViewState(e){for(let[t,i]of this._instances)"function"==typeof i.restoreViewState&&i.restoreViewState(e[t])}get(e){return this._instantiateById(e),this._instances.get(e)||null}onBeforeInteractionEvent(){this._instantiateSome(2)}onAfterModelAttached(){var e;return(0,n.se)((0,n.Jj)(null===(e=this._editor)||void 0===e?void 0:e.getDomNode()),()=>{this._instantiateSome(1)},50)}_instantiateSome(e){if(!this._finishedInstantiation[e])for(let t of(this._finishedInstantiation[e]=!0,this._findPendingContributionsByInstantiation(e)))this._instantiateById(t.id)}_findPendingContributionsByInstantiation(e){let t=[];for(let[,i]of this._pending)i.instantiation===e&&t.push(i);return t}_instantiateById(e){let t=this._pending.get(e);if(t){if(this._pending.delete(e),!this._instantiationService||!this._editor)throw Error("Cannot instantiate contributions before being initialized!");try{let e=this._instantiationService.createInstance(t.ctor,this._editor);this._instances.set(t.id,e),"function"==typeof e.restoreViewState&&0!==t.instantiation&&console.warn(`Editor contribution '${t.id}' should be eager instantiated because it uses saveViewState / restoreViewState.`)}catch(e){(0,s.dL)(e)}}}}},87142:function(e,t,i){"use strict";i.d(t,{U:function(){return f}});var n,s,r,o=i("55952"),l=i("40013"),a=i("32488"),d=i("37764"),h=i("56136"),c=i("68919"),u=i("70668"),g=i("67541"),m=i("94590"),p=i("29149");let f=r=class extends d.JT{constructor(e,t,i,n,s,d,p){super(),this._editors=e,this._rootElement=t,this._diffModel=i,this._rootWidth=n,this._rootHeight=s,this._modifiedEditorLayoutInfo=d,this._themeService=p,this.width=r.ENTIRE_DIFF_OVERVIEW_WIDTH;let f=(0,h.rD)(this._themeService.onDidColorThemeChange,()=>this._themeService.getColorTheme()),_=(0,h.nK)(e=>{let t=f.read(e),i=t.getColor(m.P6Y)||(t.getColor(m.ypS)||m.CzK).transparent(2);return{insertColor:i,removeColor:t.getColor(m.F9q)||(t.getColor(m.P4M)||m.keg).transparent(2)}}),v=(0,l.X)(document.createElement("div"));v.setClassName("diffViewport"),v.setPosition("absolute");let E=(0,o.h)("div.diffOverview",{style:{position:"absolute",top:"0px",width:r.ENTIRE_DIFF_OVERVIEW_WIDTH+"px"}}).root;this._register((0,c.xx)(E,v.domNode)),this._register((0,o.mu)(E,o.tw.POINTER_DOWN,e=>{this._editors.modified.delegateVerticalScrollbarPointerDown(e)})),this._register((0,o.nm)(E,o.tw.MOUSE_WHEEL,e=>{this._editors.modified.delegateScrollFromMouseWheelEvent(e)},{passive:!1})),this._register((0,c.xx)(this._rootElement,E)),this._register((0,h.gp)((e,t)=>{let i=this._diffModel.read(e),n=this._editors.original.createOverviewRuler("original diffOverviewRuler");n&&(t.add(n),t.add((0,c.xx)(E,n.getDomNode())));let s=this._editors.modified.createOverviewRuler("modified diffOverviewRuler");if(s&&(t.add(s),t.add((0,c.xx)(E,s.getDomNode()))),!n||!s)return;let o=(0,h.aq)("viewZoneChanged",this._editors.original.onDidChangeViewZones),l=(0,h.aq)("viewZoneChanged",this._editors.modified.onDidChangeViewZones),d=(0,h.aq)("hiddenRangesChanged",this._editors.original.onDidChangeHiddenAreas),m=(0,h.aq)("hiddenRangesChanged",this._editors.modified.onDidChangeHiddenAreas);t.add((0,h.EH)(e=>{var t;o.read(e),l.read(e),d.read(e),m.read(e);let r=_.read(e),a=null===(t=null==i?void 0:i.diff.read(e))||void 0===t?void 0:t.mappings;function h(e,t,i){let n=i._getViewModel();return n?e.filter(e=>e.length>0).map(e=>{let i=n.coordinatesConverter.convertModelPositionToViewPosition(new u.L(e.startLineNumber,1)),s=n.coordinatesConverter.convertModelPositionToViewPosition(new u.L(e.endLineNumberExclusive,1)),r=s.lineNumber-i.lineNumber;return new g.EY(i.lineNumber,s.lineNumber,r,t.toString())}):[]}let c=h((a||[]).map(e=>e.lineRangeMapping.original),r.removeColor,this._editors.original),p=h((a||[]).map(e=>e.lineRangeMapping.modified),r.insertColor,this._editors.modified);null==n||n.setZones(c),null==s||s.setZones(p)})),t.add((0,h.EH)(e=>{let t=this._rootHeight.read(e),i=this._rootWidth.read(e),o=this._modifiedEditorLayoutInfo.read(e);if(o){let i=r.ENTIRE_DIFF_OVERVIEW_WIDTH-2*r.ONE_OVERVIEW_WIDTH;n.setLayout({top:0,height:t,right:i+r.ONE_OVERVIEW_WIDTH,width:r.ONE_OVERVIEW_WIDTH}),s.setLayout({top:0,height:t,right:0,width:r.ONE_OVERVIEW_WIDTH});let l=this._editors.modifiedScrollTop.read(e),d=this._editors.modifiedScrollHeight.read(e),h=this._editors.modified.getOption(103),c=new a.M(h.verticalHasArrows?h.arrowSize:0,h.verticalScrollbarSize,0,o.height,d,l);v.setTop(c.getSliderPosition()),v.setHeight(c.getSliderSize())}else v.setTop(0),v.setHeight(0);E.style.height=t+"px",E.style.left=i-r.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",v.setWidth(r.ENTIRE_DIFF_OVERVIEW_WIDTH)}))}))}};f.ONE_OVERVIEW_WIDTH=15,f.ENTIRE_DIFF_OVERVIEW_WIDTH=2*r.ONE_OVERVIEW_WIDTH,f=r=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o}([(n=6,s=p.XE,function(e,t){s(e,t,6)})],f)},98008:function(e,t,i){"use strict";var n=i("94479"),s=i("94590");(0,s.P6G)("multiDiffEditor.headerBackground",{dark:"#262626",light:"tab.inactiveBackground",hcDark:"tab.inactiveBackground",hcLight:"tab.inactiveBackground"},(0,n.NC)("multiDiffEditor.headerBackground","The background color of the diff editor's header")),(0,s.P6G)("multiDiffEditor.background",{dark:"editorBackground",light:"editorBackground",hcDark:"editorBackground",hcLight:"editorBackground"},(0,n.NC)("multiDiffEditor.background","The background color of the multi file diff editor")),(0,s.P6G)("multiDiffEditor.border",{dark:"sideBarSectionHeader.border",light:"#cccccc",hcDark:"sideBarSectionHeader.border",hcLight:"#cccccc"},(0,n.NC)("multiDiffEditor.border","The border color of the multi file diff editor"))},23422:function(e,t,i){"use strict";i.d(t,{M:function(){return v},l:function(){return _}});var n,s,r=i("55952"),o=i("45695"),l=i("76115"),a=i("37764"),d=i("56136"),h=i("10361"),c=i("85854"),u=i("16771"),g=i("95316"),m=i("95449"),p=i("23448"),f=i("43236");class _{constructor(e,t){this.viewModel=e,this.deltaScrollVertical=t}getId(){return this.viewModel}}let v=class extends a.JT{constructor(e,t,i,n){super(),this._container=e,this._overflowWidgetsDomNode=t,this._workbenchUIElementFactory=i,this._instantiationService=n,this._viewModel=(0,h.uh)(this,void 0),this._collapsed=(0,d.nK)(this,e=>{var t;return null===(t=this._viewModel.read(e))||void 0===t?void 0:t.collapsed.read(e)}),this._editorContentHeight=(0,h.uh)(this,500),this.contentHeight=(0,d.nK)(this,e=>(this._collapsed.read(e)?0:this._editorContentHeight.read(e))+this._outerEditorHeight),this._modifiedContentWidth=(0,h.uh)(this,0),this._modifiedWidth=(0,h.uh)(this,0),this._originalContentWidth=(0,h.uh)(this,0),this._originalWidth=(0,h.uh)(this,0),this.maxScroll=(0,d.nK)(this,e=>{let t=this._modifiedContentWidth.read(e)-this._modifiedWidth.read(e),i=this._originalContentWidth.read(e)-this._originalWidth.read(e);return t>i?{maxScroll:t,width:this._modifiedWidth.read(e)}:{maxScroll:i,width:this._originalWidth.read(e)}}),this._elements=(0,r.h)("div.multiDiffEntry",[(0,r.h)("div.header@header",[(0,r.h)("div.header-content",[(0,r.h)("div.collapse-button@collapseButton"),(0,r.h)("div.file-path",[(0,r.h)("div.title.modified.show-file-icons@primaryPath",[]),(0,r.h)("div.status.deleted@status",["R"]),(0,r.h)("div.title.original.show-file-icons@secondaryPath",[])]),(0,r.h)("div.actions@actions")])]),(0,r.h)("div.editorParent",[(0,r.h)("div.editorContainer@editor")])]),this.editor=this._register(this._instantiationService.createInstance(c.p,this._elements.editor,{overflowWidgetsDomNode:this._overflowWidgetsDomNode},{})),this.isModifedFocused=E(this.editor.getModifiedEditor()),this.isOriginalFocused=E(this.editor.getOriginalEditor()),this.isFocused=(0,d.nK)(this,e=>this.isModifedFocused.read(e)||this.isOriginalFocused.read(e)),this._resourceLabel=this._workbenchUIElementFactory.createResourceLabel?this._register(this._workbenchUIElementFactory.createResourceLabel(this._elements.primaryPath)):void 0,this._resourceLabel2=this._workbenchUIElementFactory.createResourceLabel?this._register(this._workbenchUIElementFactory.createResourceLabel(this._elements.secondaryPath)):void 0,this._dataStore=new a.SL,this._headerHeight=40,this._lastScrollTop=-1,this._isSettingScrollTop=!1;let s=new o.z(this._elements.collapseButton,{});this._register((0,d.EH)(e=>{s.element.className="",s.icon=this._collapsed.read(e)?l.l.chevronRight:l.l.chevronDown})),this._register(s.onDidClick(()=>{var e;null===(e=this._viewModel.get())||void 0===e||e.collapsed.set(!this._collapsed.get(),void 0)})),this._register((0,d.EH)(e=>{this._elements.editor.style.display=this._collapsed.read(e)?"none":"block"})),this._register(this.editor.getModifiedEditor().onDidLayoutChange(e=>{let t=this.editor.getModifiedEditor().getLayoutInfo().contentWidth;this._modifiedWidth.set(t,void 0)})),this._register(this.editor.getOriginalEditor().onDidLayoutChange(e=>{let t=this.editor.getOriginalEditor().getLayoutInfo().contentWidth;this._originalWidth.set(t,void 0)})),this._register(this.editor.onDidContentSizeChange(e=>{(0,h.Bl)(t=>{this._editorContentHeight.set(e.contentHeight,t),this._modifiedContentWidth.set(this.editor.getModifiedEditor().getContentWidth(),t),this._originalContentWidth.set(this.editor.getOriginalEditor().getContentWidth(),t)})})),this._register(this.editor.getOriginalEditor().onDidScrollChange(e=>{if(this._isSettingScrollTop||!e.scrollTopChanged||!this._data)return;let t=e.scrollTop-this._lastScrollTop;this._data.deltaScrollVertical(t)})),this._register((0,d.EH)(e=>{var t;let i=null===(t=this._viewModel.read(e))||void 0===t?void 0:t.isActive.read(e);this._elements.root.classList.toggle("active",i)})),this._container.appendChild(this._elements.root),this._outerEditorHeight=this._headerHeight,this._register(this._instantiationService.createInstance(u.r,this._elements.actions,g.eH.MultiDiffEditorFileToolbar,{actionRunner:this._register(new p.D(()=>{var e;return null===(e=this._viewModel.get())||void 0===e?void 0:e.modifiedUri})),menuOptions:{shouldForwardArgs:!0},toolbarOptions:{primaryGroup:e=>e.startsWith("navigation")},actionViewItemProvider:(e,t)=>(0,f.Id)(n,e,t)}))}setScrollLeft(e){this._modifiedContentWidth.get()-this._modifiedWidth.get()>this._originalContentWidth.get()-this._originalWidth.get()?this.editor.getModifiedEditor().setScrollLeft(e):this.editor.getOriginalEditor().setScrollLeft(e)}setData(e){function t(e){return{...e,scrollBeyondLastLine:!1,hideUnchangedRegions:{enabled:!0},scrollbar:{vertical:"hidden",horizontal:"hidden",handleMouseWheel:!1,useShadows:!1},renderOverviewRuler:!1,fixedOverflowWidgets:!0,overviewRulerBorder:!1}}this._data=e;let i=e.viewModel.entry.value;i.onOptionsDidChange&&this._dataStore.add(i.onOptionsDidChange(()=>{var e;this.editor.updateOptions(t(null!==(e=i.options)&&void 0!==e?e:{}))})),(0,h.Bl)(n=>{var s,r,o,l;null===(s=this._resourceLabel)||void 0===s||s.setUri(null!==(r=e.viewModel.modifiedUri)&&void 0!==r?r:e.viewModel.originalUri,{strikethrough:void 0===e.viewModel.modifiedUri});let a=!1,d=!1,h=!1,c="";e.viewModel.modifiedUri&&e.viewModel.originalUri&&e.viewModel.modifiedUri.path!==e.viewModel.originalUri.path?(c="R",a=!0):e.viewModel.modifiedUri?!e.viewModel.originalUri&&(c="A",h=!0):(c="D",d=!0),this._elements.status.classList.toggle("renamed",a),this._elements.status.classList.toggle("deleted",d),this._elements.status.classList.toggle("added",h),this._elements.status.innerText=c,null===(o=this._resourceLabel2)||void 0===o||o.setUri(a?e.viewModel.originalUri:void 0,{strikethrough:!0}),this._dataStore.clear(),this._viewModel.set(e.viewModel,n),this.editor.setModel(e.viewModel.diffEditorViewModel,n),this.editor.updateOptions(t(null!==(l=i.options)&&void 0!==l?l:{}))})}render(e,t,i,n){this._elements.root.style.visibility="visible",this._elements.root.style.top=`${e.start}px`,this._elements.root.style.height=`${e.length}px`,this._elements.root.style.width=`${t}px`,this._elements.root.style.position="absolute";let s=e.length-this._headerHeight,r=Math.max(0,Math.min(n.start-e.start,s));this._elements.header.style.transform=`translateY(${r}px)`,(0,h.Bl)(i=>{this.editor.layout({width:t-16-2,height:e.length-this._outerEditorHeight})});try{this._isSettingScrollTop=!0,this._lastScrollTop=i,this.editor.getOriginalEditor().setScrollTop(i)}finally{this._isSettingScrollTop=!1}this._elements.header.classList.toggle("shadow",r>0||i>0),this._elements.header.classList.toggle("collapsed",r===s)}hide(){this._elements.root.style.top="-100000px",this._elements.root.style.visibility="hidden"}};function E(e){return(0,d.rD)(t=>{let i=new a.SL;return i.add(e.onDidFocusEditorWidget(()=>t(!0))),i.add(e.onDidBlurEditorWidget(()=>t(!1))),i},()=>e.hasTextFocus())}v=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o}([(n=3,s=m.TG,function(e,t){s(e,t,3)})],v)},33037:function(e,t,i){"use strict";i.d(t,{N:function(){return s},q:function(){return r}});var n=i("7480");class s{constructor(e){let t=(0,n.K)(e);this._defaultValue=t,this._asciiMap=s._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){let t=new Uint8Array(256);return t.fill(e),t}set(e,t){let i=(0,n.K)(t);e>=0&&e<256?this._asciiMap[e]=i:this._map.set(e,i)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class r{constructor(){this._actual=new s(0)}add(e){this._actual.set(e,1)}has(e){return 1===this._actual.get(e)}clear(){return this._actual.clear()}}},98681:function(e,t,i){"use strict";i.d(t,{Y:function(){return r}});var n=i("70668"),s=i("83112");class r extends s.e{constructor(e,t,i,n){super(e,t,i,n),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=i,this.positionColumn=n}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return r.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return 0===this.getDirection()?new r(this.startLineNumber,this.startColumn,e,t):new r(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new n.L(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new n.L(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return 0===this.getDirection()?new r(e,t,this.endLineNumber,this.endColumn):new r(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new r(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return 0===t?new r(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new r(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new r(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let i=0,n=e.length;i<n;i++)if(!this.selectionsEqual(e[i],t[i]))return!1;return!0}static isISelection(e){return e&&"number"==typeof e.selectionStartLineNumber&&"number"==typeof e.selectionStartColumn&&"number"==typeof e.positionLineNumber&&"number"==typeof e.positionColumn}static createWithDirection(e,t,i,n,s){return 0===s?new r(e,t,i,n):new r(i,n,e,t)}}},36498:function(e,t,i){"use strict";i.d(t,{At:function(){return h},MS:function(){return u},PY:function(){return d}});var n=i("26089"),s=i("45802"),r=i("70668"),o=i("27985"),l=i("83112"),a=i("2945");class d{constructor(e){this.edits=e,(0,n.eZ)(()=>(0,n.DM)(e,(e,t)=>e.range.getEndPosition().isBeforeOrEqual(t.range.getStartPosition())))}apply(e){let t="",i=new r.L(1,1);for(let n of this.edits){let s=n.range,r=s.getStartPosition(),o=s.getEndPosition(),l=c(i,r);!l.isEmpty()&&(t+=e.getValueOfRange(l)),t+=n.text,i=o}let n=c(i,e.endPositionExclusive);return!n.isEmpty()&&(t+=e.getValueOfRange(n)),t}applyToString(e){let t=new g(e);return this.apply(t)}getNewRanges(){let e=[],t=0,i=0,n=0;for(let s of this.edits){let o=a.A.ofText(s.text),l=r.L.lift({lineNumber:s.range.startLineNumber+i,column:s.range.startColumn+(s.range.startLineNumber===t?n:0)}),d=o.createRange(l);e.push(d),i=d.endLineNumber-s.range.endLineNumber,n=d.endColumn-s.range.endColumn,t=s.range.endLineNumber}return e}}class h{constructor(e,t){this.range=e,this.text=t}}function c(e,t){if(e.lineNumber===t.lineNumber&&e.column===Number.MAX_SAFE_INTEGER)return l.e.fromPositions(t,t);if(!e.isBeforeOrEqual(t))throw new s.he("start must be before end");return new l.e(e.lineNumber,e.column,t.lineNumber,t.column)}class u{get endPositionExclusive(){return this.length.addToPosition(new r.L(1,1))}}class g extends u{constructor(e){super(),this.value=e,this._t=new o.O(this.value)}getValueOfRange(e){return this._t.getOffsetRange(e).substring(this.value)}get length(){return this._t.textLength}}},74203:function(e,t,i){"use strict";i.d(t,{C:function(){return o}});var n=i("17202"),s=i("21111"),r=i("81467");class o{compute(e,t,i=s.n0.instance,o){if(0===e.length||0===t.length)return s.KU.trivial(e,t);let l=new r.dX(e.length,t.length),a=new r.dX(e.length,t.length),d=new r.dX(e.length,t.length);for(let n=0;n<e.length;n++)for(let r=0;r<t.length;r++){let h;if(!i.isValid())return s.KU.trivialTimedOut(e,t);let c=0===n?0:l.get(n-1,r),u=0===r?0:l.get(n,r-1);e.getElement(n)===t.getElement(r)?(h=0===n||0===r?0:l.get(n-1,r-1),n>0&&r>0&&3===a.get(n-1,r-1)&&(h+=d.get(n-1,r-1)),h+=o?o(n,r):1):h=-1;let g=Math.max(c,u,h);if(g===h){let e=n>0&&r>0?d.get(n-1,r-1):0;d.set(n,r,e+1),a.set(n,r,3)}else g===c?(d.set(n,r,0),a.set(n,r,1)):g===u&&(d.set(n,r,0),a.set(n,r,2));l.set(n,r,g)}let h=[],c=e.length,u=t.length;function g(e,t){(e+1!==c||t+1!==u)&&h.push(new s.i8(new n.q(e+1,c),new n.q(t+1,u))),c=e,u=t}let m=e.length-1,p=t.length-1;for(;m>=0&&p>=0;)3===a.get(m,p)?(g(m,p),m--,p--):1===a.get(m,p)?m--:p--;return g(-1,-1),h.reverse(),new s.KU(h,!1)}}},39589:function(e,t,i){"use strict";i.d(t,{p:function(){return n}});class n{constructor(e,t,i,n,s,r,o){this.id=e,this.label=t,this.alias=i,this.metadata=n,this._precondition=s,this._run=r,this._contextKeyService=o}isSupported(){return this._contextKeyService.contextMatchesRules(this._precondition)}run(e){return this.isSupported()?this._run(e):Promise.resolve(void 0)}}},54532:function(e,t,i){"use strict";i.d(t,{N:function(){return n}});class n{static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return(1024&e)!=0}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(16744448&e)>>>15}static getBackground(e){return(4278190080&e)>>>24}static getClassNameFromMetadata(e){let t="mtk"+this.getForeground(e),i=this.getFontStyle(e);return 1&i&&(t+=" mtki"),2&i&&(t+=" mtkb"),4&i&&(t+=" mtku"),8&i&&(t+=" mtks"),t}static getInlineStyleFromMetadata(e,t){let i=this.getForeground(e),n=this.getFontStyle(e),s=`color: ${t[i]};`;1&n&&(s+="font-style: italic;"),2&n&&(s+="font-weight: bold;");let r="";return 4&n&&(r+=" underline"),8&n&&(r+=" line-through"),r&&(s+=`text-decoration:${r};`),s}static getPresentationFromMetadata(e){let t=this.getForeground(e),i=this.getFontStyle(e);return{foreground:t,italic:!!(1&i),bold:!!(2&i),underline:!!(4&i),strikethrough:!!(8&i)}}}},90929:function(e,t,i){"use strict";i.d(t,{CJ:function(){return s}});var n=i("69835");class s{constructor(e,t){this.languageId=e;let i=t.brackets?r(t.brackets):[],s=new n.bQ(e=>{let t=new Set;return{info:new l(this,e,t),closing:t}}),o=new n.bQ(e=>{let t=new Set,i=new Set;return{info:new a(this,e,t,i),opening:t,openingColorized:i}});for(let[e,t]of i){let i=s.get(e),n=o.get(t);i.closing.add(n.info),n.opening.add(i.info)}for(let[e,n]of t.colorizedBracketPairs?r(t.colorizedBracketPairs):i.filter(e=>!("<"===e[0]&&">"===e[1]))){let t=s.get(e),i=o.get(n);t.closing.add(i.info),i.openingColorized.add(t.info),i.opening.add(t.info)}this._openingBrackets=new Map([...s.cachedValues].map(([e,t])=>[e,t.info])),this._closingBrackets=new Map([...o.cachedValues].map(([e,t])=>[e,t.info]))}get openingBrackets(){return[...this._openingBrackets.values()]}get closingBrackets(){return[...this._closingBrackets.values()]}getOpeningBracketInfo(e){return this._openingBrackets.get(e)}getClosingBracketInfo(e){return this._closingBrackets.get(e)}getBracketInfo(e){return this.getOpeningBracketInfo(e)||this.getClosingBracketInfo(e)}}function r(e){return e.filter(([e,t])=>""!==e&&""!==t)}class o{constructor(e,t){this.config=e,this.bracketText=t}get languageId(){return this.config.languageId}}class l extends o{constructor(e,t,i){super(e,t),this.openedBrackets=i,this.isOpeningBracket=!0}}class a extends o{constructor(e,t,i,n){super(e,t),this.openingBrackets=i,this.openingColorizedBrackets=n,this.isOpeningBracket=!1}closes(e){return e.config===this.config&&this.openingBrackets.has(e)}closesColorized(e){return e.config===this.config&&this.openingColorizedBrackets.has(e)}getOpeningBrackets(){return[...this.openingBrackets]}}},12606:function(e,t,i){"use strict";i.d(t,{H:function(){return r},S:function(){return s}});var n=i("44850");function s(e){if(0===e.length)return null;if(1===e.length)return e[0];let t=0;function i(){if(t>=e.length)return null;let i=t,n=e[i].listHeight;for(t++;t<e.length&&e[t].listHeight===n;)t++;return t-i>=2?r(0===i&&t===e.length?e:e.slice(i,t),!1):e[i]}let n=i(),s=i();if(!s)return n;for(let e=i();e;e=i())o(n,s)<=o(s,e)?(n=l(n,s),s=e):s=l(s,e);return l(n,s)}function r(e,t=!1){if(0===e.length)return null;if(1===e.length)return e[0];let i=e.length;for(;i>3;){let s=i>>1;for(let r=0;r<s;r++){let s=r<<1;e[r]=n.Y0.create23(e[s],e[s+1],s+3===i?e[s+2]:null,t)}i=s}return n.Y0.create23(e[0],e[1],i>=3?e[2]:null,t)}function o(e,t){return Math.abs(e.listHeight-t.listHeight)}function l(e,t){return e.listHeight===t.listHeight?n.Y0.create23(e,t,null,!1):e.listHeight>t.listHeight?function(e,t){let i;let s=e=e.toMutable(),r=[];for(;;){if(t.listHeight===s.listHeight){i=t;break}if(4!==s.kind)throw Error("unexpected");r.push(s),s=s.makeLastElementMutable()}for(let e=r.length-1;e>=0;e--){let t=r[e];i?t.childrenLength>=3?i=n.Y0.create23(t.unappendChild(),i,null,!1):(t.appendChildOfSameHeight(i),i=void 0):t.handleChildrenChanged()}return i?n.Y0.create23(e,i,null,!1):e}(e,t):function(e,t){let i=e=e.toMutable(),s=[];for(;t.listHeight!==i.listHeight;){if(4!==i.kind)throw Error("unexpected");s.push(i),i=i.makeFirstElementMutable()}let r=t;for(let e=s.length-1;e>=0;e--){let t=s[e];r?t.childrenLength>=3?r=n.Y0.create23(r,t.unprependChild(),null,!1):(t.prependChildOfSameHeight(r),r=void 0):t.handleChildrenChanged()}return r?n.Y0.create23(r,e,null,!1):e}(t,e)}},27470:function(e,t,i){"use strict";i.d(t,{z:function(){return a}});var n=i("98212"),s=i("37764"),r=i("83112"),o=i("85351"),l=i("29149");class a extends s.JT{constructor(e){super(),this.textModel=e,this.colorProvider=new d,this.onDidChangeEmitter=new n.Q5,this.onDidChange=this.onDidChangeEmitter.event,this.colorizationOptions=e.getOptions().bracketPairColorizationOptions,this._register(e.bracketPairs.onDidChange(e=>{this.onDidChangeEmitter.fire()}))}handleDidChangeOptions(e){this.colorizationOptions=this.textModel.getOptions().bracketPairColorizationOptions}getDecorationsInRange(e,t,i,n){return n||void 0===t||!this.colorizationOptions.enabled?[]:this.textModel.bracketPairs.getBracketsInRange(e,!0).map(e=>({id:`bracket${e.range.toString()}-${e.nestingLevel}`,options:{description:"BracketPairColorization",inlineClassName:this.colorProvider.getInlineClassName(e,this.colorizationOptions.independentColorPoolPerBracketType)},ownerId:0,range:e.range})).toArray()}getAllDecorations(e,t){return void 0!==e&&this.colorizationOptions.enabled?this.getDecorationsInRange(new r.e(1,1,this.textModel.getLineCount(),1),e,t):[]}}class d{constructor(){this.unexpectedClosingBracketClassName="unexpected-closing-bracket"}getInlineClassName(e,t){return e.isInvalid?this.unexpectedClosingBracketClassName:this.getInlineClassNameOfLevel(t?e.nestingLevelOfEqualBracketType:e.nestingLevel)}getInlineClassNameOfLevel(e){return`bracket-highlighting-${e%30}`}}(0,l.Ic)((e,t)=>{let i=[o.zJ,o.Vs,o.CE,o.UP,o.r0,o.m1],n=new d;t.addRule(`.monaco-editor .${n.unexpectedClosingBracketClassName} { color: ${e.getColor(o.ts)}; }`);let s=i.map(t=>e.getColor(t)).filter(e=>!!e).filter(e=>!e.isTransparent());for(let e=0;e<30;e++){let i=s[e%s.length];t.addRule(`.monaco-editor .${n.getInlineClassNameOfLevel(e)} { color: ${i}; }`)}})},24370:function(e,t,i){"use strict";i.d(t,{p:function(){return n}});let n=(0,i("95449").yh)("editorWorkerService")},61584:function(e,t,i){"use strict";var n=i("39207"),s=i("76891"),r=i("91114");(0,r.z)(s.p,class e{constructor(){this.referenceProvider=new n.c(this._score.bind(this)),this.renameProvider=new n.c(this._score.bind(this)),this.newSymbolNamesProvider=new n.c(this._score.bind(this)),this.codeActionProvider=new n.c(this._score.bind(this)),this.definitionProvider=new n.c(this._score.bind(this)),this.typeDefinitionProvider=new n.c(this._score.bind(this)),this.declarationProvider=new n.c(this._score.bind(this)),this.implementationProvider=new n.c(this._score.bind(this)),this.documentSymbolProvider=new n.c(this._score.bind(this)),this.inlayHintsProvider=new n.c(this._score.bind(this)),this.colorProvider=new n.c(this._score.bind(this)),this.codeLensProvider=new n.c(this._score.bind(this)),this.documentFormattingEditProvider=new n.c(this._score.bind(this)),this.documentRangeFormattingEditProvider=new n.c(this._score.bind(this)),this.onTypeFormattingEditProvider=new n.c(this._score.bind(this)),this.signatureHelpProvider=new n.c(this._score.bind(this)),this.hoverProvider=new n.c(this._score.bind(this)),this.documentHighlightProvider=new n.c(this._score.bind(this)),this.multiDocumentHighlightProvider=new n.c(this._score.bind(this)),this.selectionRangeProvider=new n.c(this._score.bind(this)),this.foldingRangeProvider=new n.c(this._score.bind(this)),this.linkProvider=new n.c(this._score.bind(this)),this.inlineCompletionsProvider=new n.c(this._score.bind(this)),this.inlineEditProvider=new n.c(this._score.bind(this)),this.completionProvider=new n.c(this._score.bind(this)),this.linkedEditingRangeProvider=new n.c(this._score.bind(this)),this.documentRangeSemanticTokensProvider=new n.c(this._score.bind(this)),this.documentSemanticTokensProvider=new n.c(this._score.bind(this)),this.documentDropEditProvider=new n.c(this._score.bind(this)),this.documentPasteEditProvider=new n.c(this._score.bind(this))}_score(e){var t;return null===(t=this._notebookTypeResolver)||void 0===t?void 0:t.call(this,e)}},1)},74303:function(e,t,i){"use strict";i.d(t,{u:function(){return r}});var n=i("47983"),s=i("89821");class r{constructor(e){this._pieces=[],this._isComplete=!1,this._languageIdCodec=e}flush(){this._pieces=[],this._isComplete=!1}isEmpty(){return 0===this._pieces.length}set(e,t){this._pieces=e||[],this._isComplete=t}setPartial(e,t){let i=e;if(t.length>0){let n=t[0].getRange(),s=t[t.length-1].getRange();if(!n||!s)return e;i=e.plusRange(n).plusRange(s)}let s=null;for(let e=0,t=this._pieces.length;e<t;e++){let n=this._pieces[e];if(n.endLineNumber<i.startLineNumber)continue;if(n.startLineNumber>i.endLineNumber){s=s||{index:e};break}if(n.removeTokens(i),n.isEmpty()){this._pieces.splice(e,1),e--,t--;continue}if(n.endLineNumber<i.startLineNumber)continue;if(n.startLineNumber>i.endLineNumber){s=s||{index:e};continue}let[r,o]=n.split(i);if(r.isEmpty()){s=s||{index:e};continue}!o.isEmpty()&&(this._pieces.splice(e,1,r,o),e++,t++,s=s||{index:e})}return s=s||{index:this._pieces.length},t.length>0&&(this._pieces=n.Zv(this._pieces,s.index,t)),i}isComplete(){return this._isComplete}addSparseTokens(e,t){if(0===t.getLineContent().length)return t;let i=this._pieces;if(0===i.length)return t;let n=r._findFirstPieceWithLine(i,e),o=i[n].getLineTokens(e);if(!o)return t;let l=t.getCount(),a=o.getCount(),d=0,h=[],c=0,u=0,g=(e,t)=>{e!==u&&(u=e,h[c++]=e,h[c++]=t)};for(let e=0;e<a;e++){let i=o.getStartCharacter(e),n=o.getEndCharacter(e),s=o.getMetadata(e),r=((1&s?2048:0)|(2&s?4096:0)|(4&s?8192:0)|(8&s?16384:0)|(16&s?16744448:0)|(32&s?4278190080:0))>>>0,a=~r>>>0;for(;d<l&&t.getEndOffset(d)<=i;)g(t.getEndOffset(d),t.getMetadata(d)),d++;for(d<l&&t.getStartOffset(d)<i&&g(i,t.getMetadata(d));d<l&&t.getEndOffset(d)<n;)g(t.getEndOffset(d),t.getMetadata(d)&a|s&r),d++;if(d<l)g(n,t.getMetadata(d)&a|s&r),t.getEndOffset(d)===n&&d++;else{let e=Math.min(Math.max(0,d-1),l-1);g(n,t.getMetadata(e)&a|s&r)}}for(;d<l;)g(t.getEndOffset(d),t.getMetadata(d)),d++;return new s.A(new Uint32Array(h),t.getLineContent(),this._languageIdCodec)}static _findFirstPieceWithLine(e,t){let i=0,n=e.length-1;for(;i<n;){let s=i+Math.floor((n-i)/2);if(e[s].endLineNumber<t)i=s+1;else if(e[s].startLineNumber>t)n=s-1;else{for(;s>i&&e[s-1].startLineNumber<=t&&t<=e[s-1].endLineNumber;)s--;return s}}return i}acceptEdit(e,t,i,n,s){for(let r of this._pieces)r.acceptEdit(e,t,i,n,s)}}},31593:function(e,t,i){"use strict";i.d(t,{L:function(){return c}});var n=i("98212"),s=i("37764"),r=i("80928"),o=i("12289"),l=i("3907"),a=i("67478");class d{constructor(e,t,i,n){(e|=0)<0&&(e=0),(t|=0)<0&&(t=0),(i|=0)<0&&(i=0),(n|=0)<0&&(n=0),this.width=e,this.contentWidth=t,this.scrollWidth=Math.max(e,t),this.height=i,this.contentHeight=n,this.scrollHeight=Math.max(i,n)}equals(e){return this.width===e.width&&this.contentWidth===e.contentWidth&&this.height===e.height&&this.contentHeight===e.contentHeight}}class h extends s.JT{constructor(e,t){super(),this._onDidContentSizeChange=this._register(new n.Q5),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._dimensions=new d(0,0,0,0),this._scrollable=this._register(new r.Rm({forceIntegerValues:!0,smoothScrollDuration:e,scheduleAtNextAnimationFrame:t})),this.onDidScroll=this._scrollable.onScroll}getScrollable(){return this._scrollable}setSmoothScrollDuration(e){this._scrollable.setSmoothScrollDuration(e)}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}getScrollDimensions(){return this._dimensions}setScrollDimensions(e){if(this._dimensions.equals(e))return;let t=this._dimensions;this._dimensions=e,this._scrollable.setScrollDimensions({width:e.width,scrollWidth:e.scrollWidth,height:e.height,scrollHeight:e.scrollHeight},!0);let i=t.contentWidth!==e.contentWidth,n=t.contentHeight!==e.contentHeight;(i||n)&&this._onDidContentSizeChange.fire(new a.zf(t.contentWidth,t.contentHeight,e.contentWidth,e.contentHeight))}getFutureScrollPosition(){return this._scrollable.getFutureScrollPosition()}getCurrentScrollPosition(){return this._scrollable.getCurrentScrollPosition()}setScrollPositionNow(e){this._scrollable.setScrollPositionNow(e)}setScrollPositionSmooth(e){this._scrollable.setScrollPositionSmooth(e)}hasPendingScrollAnimation(){return this._scrollable.hasPendingScrollAnimation()}}class c extends s.JT{constructor(e,t,i){super(),this._configuration=e;let n=this._configuration.options,s=n.get(145),r=n.get(84);this._linesLayout=new o.z(t,n.get(67),r.top,r.bottom),this._maxLineWidth=0,this._overlayWidgetsMinWidth=0,this._scrollable=this._register(new h(0,i)),this._configureSmoothScrollDuration(),this._scrollable.setScrollDimensions(new d(s.contentWidth,0,s.height,0)),this.onDidScroll=this._scrollable.onDidScroll,this.onDidContentSizeChange=this._scrollable.onDidContentSizeChange,this._updateHeight()}dispose(){super.dispose()}getScrollable(){return this._scrollable.getScrollable()}onHeightMaybeChanged(){this._updateHeight()}_configureSmoothScrollDuration(){this._scrollable.setSmoothScrollDuration(this._configuration.options.get(114)?125:0)}onConfigurationChanged(e){let t=this._configuration.options;if(e.hasChanged(67)&&this._linesLayout.setLineHeight(t.get(67)),e.hasChanged(84)){let e=t.get(84);this._linesLayout.setPadding(e.top,e.bottom)}if(e.hasChanged(145)){let e=t.get(145),i=e.contentWidth,n=e.height,s=this._scrollable.getScrollDimensions(),r=s.contentWidth;this._scrollable.setScrollDimensions(new d(i,s.contentWidth,n,this._getContentHeight(i,n,r)))}else this._updateHeight();e.hasChanged(114)&&this._configureSmoothScrollDuration()}onFlushed(e){this._linesLayout.onFlushed(e)}onLinesDeleted(e,t){this._linesLayout.onLinesDeleted(e,t)}onLinesInserted(e,t){this._linesLayout.onLinesInserted(e,t)}_getHorizontalScrollbarHeight(e,t){let i=this._configuration.options.get(103);return 2===i.horizontal||e>=t?0:i.horizontalScrollbarSize}_getContentHeight(e,t,i){let n=this._configuration.options,s=this._linesLayout.getLinesTotalHeight();return n.get(105)?s+=Math.max(0,t-n.get(67)-n.get(84).bottom):!n.get(103).ignoreHorizontalScrollbarInContentHeight&&(s+=this._getHorizontalScrollbarHeight(e,i)),s}_updateHeight(){let e=this._scrollable.getScrollDimensions(),t=e.width,i=e.height,n=e.contentWidth;this._scrollable.setScrollDimensions(new d(t,e.contentWidth,i,this._getContentHeight(t,i,n)))}getCurrentViewport(){let e=this._scrollable.getScrollDimensions(),t=this._scrollable.getCurrentScrollPosition();return new l.l_(t.scrollTop,t.scrollLeft,e.width,e.height)}getFutureViewport(){let e=this._scrollable.getScrollDimensions(),t=this._scrollable.getFutureScrollPosition();return new l.l_(t.scrollTop,t.scrollLeft,e.width,e.height)}_computeContentWidth(){let e=this._configuration.options,t=this._maxLineWidth,i=e.get(146),n=e.get(50),s=e.get(145);if(i.isViewportWrapping){let i=e.get(73);return t>s.contentWidth+n.typicalHalfwidthCharacterWidth&&i.enabled&&"right"===i.side?t+s.verticalScrollbarWidth:t}{let i=e.get(104)*n.typicalHalfwidthCharacterWidth,r=this._linesLayout.getWhitespaceMinWidth();return Math.max(t+i+s.verticalScrollbarWidth,r,this._overlayWidgetsMinWidth)}}setMaxLineWidth(e){this._maxLineWidth=e,this._updateContentWidth()}setOverlayWidgetsMinWidth(e){this._overlayWidgetsMinWidth=e,this._updateContentWidth()}_updateContentWidth(){let e=this._scrollable.getScrollDimensions();this._scrollable.setScrollDimensions(new d(e.width,this._computeContentWidth(),e.height,e.contentHeight)),this._updateHeight()}saveState(){let e=this._scrollable.getFutureScrollPosition(),t=e.scrollTop,i=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t);return{scrollTop:t,scrollTopWithoutViewZones:t-this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(i),scrollLeft:e.scrollLeft}}changeWhitespace(e){let t=this._linesLayout.changeWhitespace(e);return t&&this.onHeightMaybeChanged(),t}getVerticalOffsetForLineNumber(e,t=!1){return this._linesLayout.getVerticalOffsetForLineNumber(e,t)}getVerticalOffsetAfterLineNumber(e,t=!1){return this._linesLayout.getVerticalOffsetAfterLineNumber(e,t)}isAfterLines(e){return this._linesLayout.isAfterLines(e)}isInTopPadding(e){return this._linesLayout.isInTopPadding(e)}isInBottomPadding(e){return this._linesLayout.isInBottomPadding(e)}getLineNumberAtVerticalOffset(e){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(e)}getWhitespaceAtVerticalOffset(e){return this._linesLayout.getWhitespaceAtVerticalOffset(e)}getLinesViewportData(){let e=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(e.top,e.top+e.height)}getLinesViewportDataAtScrollTop(e){let t=this._scrollable.getScrollDimensions();return e+t.height>t.scrollHeight&&(e=t.scrollHeight-t.height),e<0&&(e=0),this._linesLayout.getLinesViewportData(e,e+t.height)}getWhitespaceViewportData(){let e=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(e.top,e.top+e.height)}getWhitespaces(){return this._linesLayout.getWhitespaces()}getContentWidth(){return this._scrollable.getScrollDimensions().contentWidth}getScrollWidth(){return this._scrollable.getScrollDimensions().scrollWidth}getContentHeight(){return this._scrollable.getScrollDimensions().contentHeight}getScrollHeight(){return this._scrollable.getScrollDimensions().scrollHeight}getCurrentScrollLeft(){return this._scrollable.getCurrentScrollPosition().scrollLeft}getCurrentScrollTop(){return this._scrollable.getCurrentScrollPosition().scrollTop}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}setScrollPosition(e,t){1===t?this._scrollable.setScrollPositionNow(e):this._scrollable.setScrollPositionSmooth(e)}hasPendingScrollAnimation(){return this._scrollable.hasPendingScrollAnimation()}deltaScrollNow(e,t){let i=this._scrollable.getCurrentScrollPosition();this._scrollable.setScrollPositionNow({scrollLeft:i.scrollLeft+e,scrollTop:i.scrollTop+t})}}},74663:function(e,t,i){"use strict";i.d(t,{H:function(){return r}});var n=i("42733");let s=n.U.Right;class r{constructor(e){this.persist=0,this._requiredLanes=1,this.lanes=new Uint8Array(Math.ceil((e+1)*s/8))}reset(e){let t=Math.ceil((e+1)*s/8);this.lanes.length<t?this.lanes=new Uint8Array(t):this.lanes.fill(0),this._requiredLanes=1}get requiredLanes(){return this._requiredLanes}push(e,t,i){i&&(this.persist|=1<<e-1);for(let i=t.startLineNumber;i<=t.endLineNumber;i++){let t=s*i+(e-1);this.lanes[t>>>3]|=1<<t%8,this._requiredLanes=Math.max(this._requiredLanes,this.countAtLine(i))}}getLanesAtLine(e){let t=[],i=s*e;for(let e=0;e<s;e++)(this.persist&1<<e||this.lanes[i>>>3]&1<<i%8)&&t.push(e+1),i++;return t.length?t:[n.U.Center]}countAtLine(e){let t=s*e,i=0;for(let e=0;e<s;e++)(this.persist&1<<e||this.lanes[t>>>3]&1<<t%8)&&i++,t++;return i}}},2682:function(e,t,i){"use strict";var n,s,r,o=i("74471"),l=i("4157"),a=i("85376");i("55244");var d=i("36809"),h=i("98681"),c=i("8109"),u=i("94479"),g=i("77667");let m=new g.uy("selectionAnchorSet",!1),p=r=class{static get(e){return e.getContribution(r.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=m.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}setSelectionAnchor(){if(this.editor.hasModel()){let e=this.editor.getPosition();this.editor.changeDecorations(t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(h.Y.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new l.W5().appendText((0,u.NC)("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),(0,o.Z9)((0,u.NC)("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){let e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){let e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){let t=this.editor.getPosition();this.editor.setSelection(h.Y.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){let e=this.decorationId;this.editor.changeDecorations(t=>{t.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};p.ID="editor.contrib.selectionAnchorController",p=r=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o}([(n=1,s=g.i6,function(e,t){s(e,t,1)})],p);class f extends d.R6{constructor(){super({id:"editor.action.setSelectionAnchor",label:(0,u.NC)("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:c.u.editorTextFocus,primary:(0,a.gx)(2089,2080),weight:100}})}async run(e,t){var i;null===(i=p.get(t))||void 0===i||i.setSelectionAnchor()}}class _ extends d.R6{constructor(){super({id:"editor.action.goToSelectionAnchor",label:(0,u.NC)("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:m})}async run(e,t){var i;null===(i=p.get(t))||void 0===i||i.goToSelectionAnchor()}}class v extends d.R6{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:(0,u.NC)("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:m,kbOpts:{kbExpr:c.u.editorTextFocus,primary:(0,a.gx)(2089,2089),weight:100}})}async run(e,t){var i;null===(i=p.get(t))||void 0===i||i.selectFromAnchorToCursor()}}class E extends d.R6{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:(0,u.NC)("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:m,kbOpts:{kbExpr:c.u.editorTextFocus,primary:9,weight:100}})}async run(e,t){var i;null===(i=p.get(t))||void 0===i||i.cancelSelectionAnchor()}}(0,d._K)(p.ID,p,4),(0,d.Qr)(f),(0,d.Qr)(_),(0,d.Qr)(v),(0,d.Qr)(E)},72844:function(e,t,i){"use strict";i.d(t,{A:function(){return s}});var n=i("98212");class s{get color(){return this._color}set color(e){!this._color.equals(e)&&(this._color=e,this._onDidChangeColor.fire(e))}get presentation(){return this.colorPresentations[this.presentationIndex]}get colorPresentations(){return this._colorPresentations}set colorPresentations(e){this._colorPresentations=e,this.presentationIndex>e.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)}constructor(e,t,i){this.presentationIndex=i,this._onColorFlushed=new n.Q5,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new n.Q5,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new n.Q5,this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=e,this._color=e,this._colorPresentations=t}selectNextColorPresentation(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)}guessColorPresentation(e,t){let i=-1;for(let e=0;e<this.colorPresentations.length;e++)if(t.toLowerCase()===this.colorPresentations[e].label){i=e;break}if(-1===i){let e=t.split("(")[0].toLowerCase();for(let t=0;t<this.colorPresentations.length;t++)if(this.colorPresentations[t].label.toLowerCase().startsWith(e)){i=t;break}}-1!==i&&i!==this.presentationIndex&&(this.presentationIndex=i,this._onDidChangePresentation.fire(this.presentation))}flushColor(){this._onColorFlushed.fire(this._color)}}},42134:function(e,t,i){"use strict";i.d(t,{C:function(){return o},n:function(){return r}});var n=i("48933"),s=i("22216");function r(e,t,i){var r,o,l,a;return("string"==typeof i.insertText?""===i.insertText:""===i.insertText.snippet)?{edits:null!==(o=null===(r=i.additionalEdit)||void 0===r?void 0:r.edits)&&void 0!==o?o:[]}:{edits:[...t.map(t=>new n.Gl(e,{range:t,text:"string"==typeof i.insertText?s.Yj.escape(i.insertText)+"$0":i.insertText.snippet,insertAsSnippet:!0})),...null!==(a=null===(l=i.additionalEdit)||void 0===l?void 0:l.edits)&&void 0!==a?a:[]]}}function o(e){var t,i,n;let s=new Map;for(let r of e)for(let o of null!==(t=r.yieldTo)&&void 0!==t?t:[])for(let t of e)if(t!==r){;if(i=o,n=t,"mimeType"in i?i.mimeType===n.handledMimeType:!!n.kind&&i.kind.contains(n.kind)){let e=s.get(r);!e&&(e=[],s.set(r,e)),e.push(t)}}if(!s.size)return Array.from(e);let r=new Set,o=[];return function e(t){if(!t.length)return[];let i=t[0];if(o.includes(i))return console.warn("Yield to cycle detected",i),t;if(r.has(i))return e(t.slice(1));let n=[],l=s.get(i);return l&&(o.push(i),n=e(l),o.pop()),r.add(i),[...n,i,...e(t.slice(1))]}(Array.from(e))}},56186:function(e,t,i){"use strict";i.d(t,{P:function(){return a}});var n=i("98212"),s=i("37764"),r=i("83112"),o=i("52305");function l(e,t){return 1===e||2!==e&&t}class a extends s.JT{get searchString(){return this._searchString}get replaceString(){return this._replaceString}get isRevealed(){return this._isRevealed}get isReplaceRevealed(){return this._isReplaceRevealed}get isRegex(){return l(this._isRegexOverride,this._isRegex)}get wholeWord(){return l(this._wholeWordOverride,this._wholeWord)}get matchCase(){return l(this._matchCaseOverride,this._matchCase)}get preserveCase(){return l(this._preserveCaseOverride,this._preserveCase)}get actualIsRegex(){return this._isRegex}get actualWholeWord(){return this._wholeWord}get actualMatchCase(){return this._matchCase}get actualPreserveCase(){return this._preserveCase}get searchScope(){return this._searchScope}get matchesPosition(){return this._matchesPosition}get matchesCount(){return this._matchesCount}get currentMatch(){return this._currentMatch}constructor(){super(),this._onFindReplaceStateChange=this._register(new n.Q5),this.onFindReplaceStateChange=this._onFindReplaceStateChange.event,this._searchString="",this._replaceString="",this._isRevealed=!1,this._isReplaceRevealed=!1,this._isRegex=!1,this._isRegexOverride=0,this._wholeWord=!1,this._wholeWordOverride=0,this._matchCase=!1,this._matchCaseOverride=0,this._preserveCase=!1,this._preserveCaseOverride=0,this._searchScope=null,this._matchesPosition=0,this._matchesCount=0,this._currentMatch=null,this._loop=!0,this._isSearching=!1,this._filters=null}changeMatchInfo(e,t,i){let n={moveCursor:!1,updateHistory:!1,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1},s=!1;0===t&&(e=0),e>t&&(e=t),this._matchesPosition!==e&&(this._matchesPosition=e,n.matchesPosition=!0,s=!0),this._matchesCount!==t&&(this._matchesCount=t,n.matchesCount=!0,s=!0),void 0!==i&&!r.e.equalsRange(this._currentMatch,i)&&(this._currentMatch=i,n.currentMatch=!0,s=!0),s&&this._onFindReplaceStateChange.fire(n)}change(e,t,i=!0){var n;let s={moveCursor:t,updateHistory:i,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1},o=!1,l=this.isRegex,a=this.wholeWord,d=this.matchCase,h=this.preserveCase;void 0!==e.searchString&&this._searchString!==e.searchString&&(this._searchString=e.searchString,s.searchString=!0,o=!0),void 0!==e.replaceString&&this._replaceString!==e.replaceString&&(this._replaceString=e.replaceString,s.replaceString=!0,o=!0),void 0!==e.isRevealed&&this._isRevealed!==e.isRevealed&&(this._isRevealed=e.isRevealed,s.isRevealed=!0,o=!0),void 0!==e.isReplaceRevealed&&this._isReplaceRevealed!==e.isReplaceRevealed&&(this._isReplaceRevealed=e.isReplaceRevealed,s.isReplaceRevealed=!0,o=!0),void 0!==e.isRegex&&(this._isRegex=e.isRegex),void 0!==e.wholeWord&&(this._wholeWord=e.wholeWord),void 0!==e.matchCase&&(this._matchCase=e.matchCase),void 0!==e.preserveCase&&(this._preserveCase=e.preserveCase),void 0!==e.searchScope&&!(null===(n=e.searchScope)||void 0===n?void 0:n.every(e=>{var t;return null===(t=this._searchScope)||void 0===t?void 0:t.some(t=>!r.e.equalsRange(t,e))}))&&(this._searchScope=e.searchScope,s.searchScope=!0,o=!0),void 0!==e.loop&&this._loop!==e.loop&&(this._loop=e.loop,s.loop=!0,o=!0),void 0!==e.isSearching&&this._isSearching!==e.isSearching&&(this._isSearching=e.isSearching,s.isSearching=!0,o=!0),void 0!==e.filters&&(this._filters?this._filters.update(e.filters):this._filters=e.filters,s.filters=!0,o=!0),this._isRegexOverride=void 0!==e.isRegexOverride?e.isRegexOverride:0,this._wholeWordOverride=void 0!==e.wholeWordOverride?e.wholeWordOverride:0,this._matchCaseOverride=void 0!==e.matchCaseOverride?e.matchCaseOverride:0,this._preserveCaseOverride=void 0!==e.preserveCaseOverride?e.preserveCaseOverride:0,l!==this.isRegex&&(o=!0,s.isRegex=!0),a!==this.wholeWord&&(o=!0,s.wholeWord=!0),d!==this.matchCase&&(o=!0,s.matchCase=!0),h!==this.preserveCase&&(o=!0,s.preserveCase=!0),o&&this._onFindReplaceStateChange.fire(s)}canNavigateBack(){return this.canNavigateInLoop()||1!==this.matchesPosition}canNavigateForward(){return this.canNavigateInLoop()||this.matchesPosition<this.matchesCount}canNavigateInLoop(){return this._loop||this.matchesCount>=o.nD}}},73912:function(e,t,i){"use strict";i.d(t,{Qq:function(){return I},Qs:function(){return O},x$:function(){return R},xC:function(){return w}});var n=i("47983"),s=i("66735"),r=i("45802"),o=i("55278"),l=i("71362"),a=i("67414"),d=i("98084"),h=i("61791"),c=i("64909"),u=i("70668"),g=i("83112"),m=i("98681"),p=i("24370"),f=i("51413"),_=i("44118"),v=i("249"),E=i("40681"),C=i("95449"),b=i("76891"),S=i("80853"),N=i("65488");function T(e,t,i){let n=[],s=new E.o;for(let t of e.ordered(i))n.push(t),t.extensionId&&s.add(t.extensionId);for(let e of t.ordered(i)){if(e.extensionId){if(s.has(e.extensionId))continue;s.add(e.extensionId)}n.push({displayName:e.displayName,extensionId:e.extensionId,provideDocumentFormattingEdits:(t,i,n)=>e.provideDocumentRangeFormattingEdits(t,t.getFullModelRange(),i,n)})}return n}class w{static setFormatterSelector(e){return{dispose:w._selectors.unshift(e)}}static async select(e,t,i,n){if(0===e.length)return;let s=o.$.first(w._selectors);if(s)return await s(e,t,i,n)}}async function R(e,t,i,n,s,r,o){let l=e.get(C.TG),{documentRangeFormattingEditProvider:a}=e.get(b.p),d=(0,c.CL)(t)?t.getModel():t,h=a.ordered(d),u=await w.select(h,d,n,2);u&&(s.report(u),await l.invokeFunction(L,u,t,i,r,o))}async function L(e,t,i,s,r,o){var l,a;let d,u;let f=e.get(p.p),v=e.get(S.VZ),E=e.get(N.IV);(0,c.CL)(i)?(d=i.getModel(),u=new h.Dl(i,5,void 0,r)):(d=i,u=new h.YQ(i,r));let C=[],b=0;for(let e of(0,n._2)(s).sort(g.e.compareRangesUsingStarts))b>0&&g.e.areIntersectingOrTouching(C[b-1],e)?C[b-1]=g.e.fromPositions(C[b-1].getStartPosition(),e.getEndPosition()):b=C.push(e);let T=async e=>{var i,n;v.trace("[format][provideDocumentRangeFormattingEdits] (request)",null===(i=t.extensionId)||void 0===i?void 0:i.value,e);let s=await t.provideDocumentRangeFormattingEdits(d,e,d.getFormattingOptions(),u.token)||[];return v.trace("[format][provideDocumentRangeFormattingEdits] (response)",null===(n=t.extensionId)||void 0===n?void 0:n.value,s),s},w=(e,t)=>{if(!e.length||!t.length)return!1;let i=e.reduce((e,t)=>g.e.plusRange(e,t.range),e[0].range);if(!t.some(e=>g.e.intersectRanges(i,e.range)))return!1;for(let i of e)for(let e of t)if(g.e.intersectRanges(i.range,e.range))return!0;return!1},R=[],L=[];try{if("function"==typeof t.provideDocumentRangesFormattingEdits){v.trace("[format][provideDocumentRangeFormattingEdits] (request)",null===(l=t.extensionId)||void 0===l?void 0:l.value,C);let e=await t.provideDocumentRangesFormattingEdits(d,C,d.getFormattingOptions(),u.token)||[];v.trace("[format][provideDocumentRangeFormattingEdits] (response)",null===(a=t.extensionId)||void 0===a?void 0:a.value,e),L.push(e)}else{for(let e of C){if(u.token.isCancellationRequested)return!0;L.push(await T(e))}for(let e=0;e<C.length;++e)for(let t=e+1;t<C.length;++t){if(u.token.isCancellationRequested)return!0;if(w(L[e],L[t])){let i=g.e.plusRange(C[e],C[t]),n=await T(i);C.splice(t,1),C.splice(e,1),C.push(i),L.splice(t,1),L.splice(e,1),L.push(n),e=0,t=0}}}for(let e of L){if(u.token.isCancellationRequested)return!0;let t=await f.computeMoreMinimalEdits(d.uri,e);t&&R.push(...t)}}finally{u.dispose()}if(0===R.length)return!1;if((0,c.CL)(i))_.V.execute(i,R,!0),i.revealPositionInCenterIfOutsideViewport(i.getPosition(),1);else{let[{range:e}]=R,t=new m.Y(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn);d.pushEditOperations([t],R.map(e=>({text:e.text,range:g.e.lift(e.range),forceMoveMarkers:!0})),e=>{for(let{range:i}of e)if(g.e.areIntersectingOrTouching(i,t))return[new m.Y(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn)];return null})}return E.playSignal(N.iP.format,{userGesture:o}),!0}async function I(e,t,i,n,s,r){let o=e.get(C.TG),l=e.get(b.p),a=(0,c.CL)(t)?t.getModel():t,d=T(l.documentFormattingEditProvider,l.documentRangeFormattingEditProvider,a),h=await w.select(d,a,i,1);h&&(n.report(h),await o.invokeFunction(D,h,t,i,s,r))}async function D(e,t,i,n,s,r){let o,l,a;let d=e.get(p.p),u=e.get(N.IV);(0,c.CL)(i)?(o=i.getModel(),l=new h.Dl(i,5,void 0,s)):(o=i,l=new h.YQ(i,s));try{let e=await t.provideDocumentFormattingEdits(o,o.getFormattingOptions(),l.token);if(a=await d.computeMoreMinimalEdits(o.uri,e),l.token.isCancellationRequested)return!0}finally{l.dispose()}if(!a||0===a.length)return!1;if((0,c.CL)(i))_.V.execute(i,a,2!==n),2!==n&&i.revealPositionInCenterIfOutsideViewport(i.getPosition(),1);else{let[{range:e}]=a,t=new m.Y(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn);o.pushEditOperations([t],a.map(e=>({text:e.text,range:g.e.lift(e.range),forceMoveMarkers:!0})),e=>{for(let{range:i}of e)if(g.e.areIntersectingOrTouching(i,t))return[new m.Y(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn)];return null})}return u.playSignal(N.iP.format,{userGesture:r}),!0}async function A(e,t,i,s,o,l){for(let a of t.documentRangeFormattingEditProvider.ordered(i)){let t=await Promise.resolve(a.provideDocumentRangeFormattingEdits(i,s,o,l)).catch(r.Cp);if((0,n.Of)(t))return await e.computeMoreMinimalEdits(i.uri,t)}}async function y(e,t,i,s,o){for(let l of T(t.documentFormattingEditProvider,t.documentRangeFormattingEditProvider,i)){let t=await Promise.resolve(l.provideDocumentFormattingEdits(i,s,o)).catch(r.Cp);if((0,n.Of)(t))return await e.computeMoreMinimalEdits(i.uri,t)}}function O(e,t,i,n,s,o,l){let a=t.onTypeFormattingEditProvider.ordered(i);return 0===a.length||0>a[0].autoFormatTriggerCharacters.indexOf(s)?Promise.resolve(void 0):Promise.resolve(a[0].provideOnTypeFormattingEdits(i,n,s,o,l)).catch(r.Cp).then(t=>e.computeMoreMinimalEdits(i.uri,t))}w._selectors=new l.S,v.P.registerCommand("_executeFormatRangeProvider",async function(e,...t){let[i,n,r]=t;(0,a.p_)(d.o.isUri(i)),(0,a.p_)(g.e.isIRange(n));let o=e.get(f.S),l=e.get(p.p),h=e.get(b.p),c=await o.createModelReference(i);try{return A(l,h,c.object.textEditorModel,g.e.lift(n),r,s.Ts.None)}finally{c.dispose()}}),v.P.registerCommand("_executeFormatDocumentProvider",async function(e,...t){let[i,n]=t;(0,a.p_)(d.o.isUri(i));let r=e.get(f.S),o=e.get(p.p),l=e.get(b.p),h=await r.createModelReference(i);try{return y(o,l,h.object.textEditorModel,n,s.Ts.None)}finally{h.dispose()}}),v.P.registerCommand("_executeFormatOnTypeProvider",async function(e,...t){let[i,n,r,o]=t;(0,a.p_)(d.o.isUri(i)),(0,a.p_)(u.L.isIPosition(n)),(0,a.p_)("string"==typeof r);let l=e.get(f.S),h=e.get(p.p),c=e.get(b.p),g=await l.createModelReference(i);try{return O(h,c,g.object.textEditorModel,u.L.lift(n),r,o,s.Ts.None)}finally{g.dispose()}})},75174:function(e,t,i){"use strict";var n=i("47983"),s=i("66735"),r=i("45802"),o=i("85376"),l=i("37764"),a=i("36809"),d=i("87294"),h=i("33037"),c=i("83112"),u=i("8109"),g=i("24370"),m=i("76891"),p=i("73912"),f=i("44118"),_=i("94479"),v=i("65488"),E=i("249"),C=i("77667"),b=i("95449"),S=i("24726"),N=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},T=function(e,t){return function(i,n){t(i,n,e)}};let w=class{constructor(e,t,i,n){this._editor=e,this._languageFeaturesService=t,this._workerService=i,this._accessibilitySignalService=n,this._disposables=new l.SL,this._sessionDisposables=new l.SL,this._disposables.add(t.onTypeFormattingEditProvider.onDidChange(this._update,this)),this._disposables.add(e.onDidChangeModel(()=>this._update())),this._disposables.add(e.onDidChangeModelLanguage(()=>this._update())),this._disposables.add(e.onDidChangeConfiguration(e=>{e.hasChanged(56)&&this._update()})),this._update()}dispose(){this._disposables.dispose(),this._sessionDisposables.dispose()}_update(){if(this._sessionDisposables.clear(),!this._editor.getOption(56)||!this._editor.hasModel())return;let e=this._editor.getModel(),[t]=this._languageFeaturesService.onTypeFormattingEditProvider.ordered(e);if(!t||!t.autoFormatTriggerCharacters)return;let i=new h.q;for(let e of t.autoFormatTriggerCharacters)i.add(e.charCodeAt(0));this._sessionDisposables.add(this._editor.onDidType(e=>{let t=e.charCodeAt(e.length-1);i.has(t)&&this._trigger(String.fromCharCode(t))}))}_trigger(e){if(!this._editor.hasModel()||this._editor.getSelections().length>1||!this._editor.getSelection().isEmpty())return;let t=this._editor.getModel(),i=this._editor.getPosition(),r=new s.AU,o=this._editor.onDidChangeModelContent(e=>{if(e.isFlush){r.cancel(),o.dispose();return}for(let t=0,n=e.changes.length;t<n;t++)if(e.changes[t].range.endLineNumber<=i.lineNumber){r.cancel(),o.dispose();return}});(0,p.Qs)(this._workerService,this._languageFeaturesService,t,i,e,t.getFormattingOptions(),r.token).then(e=>{!r.token.isCancellationRequested&&(0,n.Of)(e)&&(this._accessibilitySignalService.playSignal(v.iP.format,{userGesture:!1}),f.V.execute(this._editor,e,!0))}).finally(()=>{o.dispose()})}};w.ID="editor.contrib.autoFormat",w=N([T(1,m.p),T(2,g.p),T(3,v.IV)],w);let R=class{constructor(e,t,i){this.editor=e,this._languageFeaturesService=t,this._instantiationService=i,this._callOnDispose=new l.SL,this._callOnModel=new l.SL,this._callOnDispose.add(e.onDidChangeConfiguration(()=>this._update())),this._callOnDispose.add(e.onDidChangeModel(()=>this._update())),this._callOnDispose.add(e.onDidChangeModelLanguage(()=>this._update())),this._callOnDispose.add(t.documentRangeFormattingEditProvider.onDidChange(this._update,this))}dispose(){this._callOnDispose.dispose(),this._callOnModel.dispose()}_update(){if(this._callOnModel.clear(),!!this.editor.getOption(55)&&!!this.editor.hasModel())this._languageFeaturesService.documentRangeFormattingEditProvider.has(this.editor.getModel())&&this._callOnModel.add(this.editor.onDidPaste(({range:e})=>this._trigger(e)))}_trigger(e){if(!!this.editor.hasModel())!(this.editor.getSelections().length>1)&&this._instantiationService.invokeFunction(p.x$,this.editor,e,2,S.Ex.None,s.Ts.None,!1).catch(r.dL)}};R.ID="editor.contrib.formatOnPaste",R=N([T(1,m.p),T(2,b.TG)],R);class L extends a.R6{constructor(){super({id:"editor.action.formatDocument",label:_.NC("formatDocument.label","Format Document"),alias:"Format Document",precondition:C.Ao.and(u.u.notInCompositeEditor,u.u.writable,u.u.hasDocumentFormattingProvider),kbOpts:{kbExpr:u.u.editorTextFocus,primary:1572,linux:{primary:3111},weight:100},contextMenuOpts:{group:"1_modification",order:1.3}})}async run(e,t){if(t.hasModel()){let i=e.get(b.TG),n=e.get(S.ek);await n.showWhile(i.invokeFunction(p.Qq,t,1,S.Ex.None,s.Ts.None,!0),250)}}}class I extends a.R6{constructor(){super({id:"editor.action.formatSelection",label:_.NC("formatSelection.label","Format Selection"),alias:"Format Selection",precondition:C.Ao.and(u.u.writable,u.u.hasDocumentSelectionFormattingProvider),kbOpts:{kbExpr:u.u.editorTextFocus,primary:(0,o.gx)(2089,2084),weight:100},contextMenuOpts:{when:u.u.hasNonEmptySelection,group:"1_modification",order:1.31}})}async run(e,t){if(!t.hasModel())return;let i=e.get(b.TG),n=t.getModel(),r=t.getSelections().map(e=>e.isEmpty()?new c.e(e.startLineNumber,1,e.startLineNumber,n.getLineMaxColumn(e.startLineNumber)):e),o=e.get(S.ek);await o.showWhile(i.invokeFunction(p.x$,t,r,1,S.Ex.None,s.Ts.None,!0),250)}}(0,a._K)(w.ID,w,2),(0,a._K)(R.ID,R,2),(0,a.Qr)(L),(0,a.Qr)(I),E.P.registerCommand("editor.action.format",async e=>{let t=e.get(d.$).getFocusedCodeEditor();if(!t||!t.hasModel())return;let i=e.get(E.H);t.getSelection().isEmpty()?await i.executeCommand("editor.action.formatDocument"):await i.executeCommand("editor.action.formatSelection")})},89432:function(e,t,i){"use strict";i.d(t,{h:function(){return b}});var n,s=i("55952"),r=i("37764"),o=i("70668"),l=i("83112"),a=i("84144"),d=i("64141"),h=i("33177"),c=i("60327"),u=i("95449"),g=i("81171"),m=i("28756"),p=i("14986"),f=i("26764"),_=i("81833"),v=i("43701"),E=i("98998"),C=function(e,t){return function(i,n){t(i,n,e)}};let b=n=class extends r.JT{constructor(e,t,i){for(let n of(super(),this._editor=e,this._instantiationService=t,this._keybindingService=i,this._currentResult=null,this._widget=this._register(this._instantiationService.createInstance(f.H,this._editor)),this._participants=[],c.Ae.getAll())){let e=this._instantiationService.createInstance(n,this._editor);e instanceof m.D5&&!(e instanceof p.G)&&(this._markdownHoverParticipant=e),this._participants.push(e)}this._participants.sort((e,t)=>e.hoverOrdinal-t.hoverOrdinal),this._computer=new _.q(this._editor,this._participants),this._hoverOperation=this._register(new h.H(this._editor,this._computer)),this._register(this._hoverOperation.onResult(e=>{if(!this._computer.anchor)return;let t=e.hasLoadingMessage?this._addLoadingMessage(e.value):e.value;this._withResult(new v.vF(this._computer.anchor,t,e.isComplete))})),this._register(s.mu(this._widget.getDomNode(),"keydown",e=>{e.equals(9)&&this.hide()})),this._register(d.RW.onDidChange(()=>{this._widget.position&&this._currentResult&&this._setCurrentResult(this._currentResult)}))}_startShowingOrUpdateHover(e,t,i,n,s){if(!this._widget.position||!this._currentResult)return!!e&&(this._startHoverOperationIfNecessary(e,t,i,n,!1),!0);return this._editor.getOption(60).sticky&&s&&this._widget.isMouseGettingCloser(s.event.posx,s.event.posy)?(e&&this._startHoverOperationIfNecessary(e,t,i,n,!0),!0):e?!!(e&&this._currentResult.anchor.equals(e))||(e.canAdoptVisibleHover(this._currentResult.anchor,this._widget.position)?(this._setCurrentResult(this._currentResult.filter(e)),this._startHoverOperationIfNecessary(e,t,i,n,!1),!0):(this._setCurrentResult(null),this._startHoverOperationIfNecessary(e,t,i,n,!1),!0)):(this._setCurrentResult(null),!1)}_startHoverOperationIfNecessary(e,t,i,n,s){!(this._computer.anchor&&this._computer.anchor.equals(e))&&(this._hoverOperation.cancel(),this._computer.anchor=e,this._computer.shouldFocus=n,this._computer.source=i,this._computer.insistOnKeepingHoverVisible=s,this._hoverOperation.start(t))}_setCurrentResult(e){this._currentResult!==e&&(e&&0===e.messages.length&&(e=null),this._currentResult=e,this._currentResult?this._renderMessages(this._currentResult.anchor,this._currentResult.messages):this._widget.hide())}_addLoadingMessage(e){if(this._computer.anchor){for(let t of this._participants)if(t.createLoadingMessage){let i=t.createLoadingMessage(this._computer.anchor);if(i)return e.slice(0).concat([i])}}return e}_withResult(e){if(!this._widget.position||!this._currentResult||!this._currentResult.isComplete||!!e.isComplete&&(!this._computer.insistOnKeepingHoverVisible||0!==e.messages.length))this._setCurrentResult(e)}_renderMessages(e,t){let{showAtPosition:i,showAtSecondaryPosition:s,highlightRange:o}=n.computeHoverRanges(this._editor,e.range,t),l=new r.SL,a=l.add(new E.m(this._keybindingService)),d=document.createDocumentFragment(),h=null,c={fragment:d,statusBar:a,setColorPicker:e=>h=e,onContentsChanged:()=>this._widget.onContentsChanged(),setMinimumDimensions:e=>this._widget.setMinimumDimensions(e),hide:()=>this.hide()};for(let e of this._participants){let i=t.filter(t=>t.owner===e);i.length>0&&l.add(e.renderHoverParts(c,i))}let u=t.some(e=>e.isBeforeContent);if(a.hasContent&&d.appendChild(a.hoverElement),d.hasChildNodes()){if(o){let e=this._editor.createDecorationsCollection();e.set([{range:o,options:n._DECORATION_OPTIONS}]),l.add((0,r.OF)(()=>{e.clear()}))}this._widget.showAt(d,new v.VV(e.initialMousePosX,e.initialMousePosY,h,i,s,this._editor.getOption(60).above,this._computer.shouldFocus,this._computer.source,u,l))}else l.dispose()}static computeHoverRanges(e,t,i){let n=1;if(e.hasModel()){let i=e._getViewModel(),s=i.coordinatesConverter,r=s.convertModelRangeToViewRange(t),l=new o.L(r.startLineNumber,i.getLineMinColumn(r.startLineNumber));n=s.convertViewPositionToModelPosition(l).column}let s=t.startLineNumber,r=t.startColumn,a=i[0].range,d=null;for(let e of i)a=l.e.plusRange(a,e.range),e.range.startLineNumber===s&&e.range.endLineNumber===s&&(r=Math.max(Math.min(r,e.range.startColumn),n)),e.forceShowAtRange&&(d=e.range);let h=d?d.getStartPosition():new o.L(s,t.startColumn);return{showAtPosition:h,showAtSecondaryPosition:d?d.getStartPosition():new o.L(s,r),highlightRange:a}}showsOrWillShow(e){if(this._widget.isResizing)return!0;let t=[];for(let i of this._participants)if(i.suggestHoverAnchor){let n=i.suggestHoverAnchor(e);n&&t.push(n)}let i=e.target;if(6===i.type&&t.push(new c.Qj(0,i.range,e.event.posx,e.event.posy)),7===i.type){let n=this._editor.getOption(50).typicalHalfwidthCharacterWidth/2;!i.detail.isAfterLines&&"number"==typeof i.detail.horizontalDistanceToText&&i.detail.horizontalDistanceToText<n&&t.push(new c.Qj(0,i.range,e.event.posx,e.event.posy))}return 0===t.length?this._startShowingOrUpdateHover(null,0,0,!1,e):(t.sort((e,t)=>t.priority-e.priority),this._startShowingOrUpdateHover(t[0],0,0,!1,e))}startShowingAtRange(e,t,i,n){this._startShowingOrUpdateHover(new c.Qj(0,e,void 0,void 0),t,i,n,null)}async updateFocusedMarkdownHoverVerbosityLevel(e){var t;null===(t=this._markdownHoverParticipant)||void 0===t||t.updateFocusedMarkdownHoverPartVerbosityLevel(e)}containsNode(e){return!!e&&this._widget.getDomNode().contains(e)}focus(){this._widget.focus()}scrollUp(){this._widget.scrollUp()}scrollDown(){this._widget.scrollDown()}scrollLeft(){this._widget.scrollLeft()}scrollRight(){this._widget.scrollRight()}pageUp(){this._widget.pageUp()}pageDown(){this._widget.pageDown()}goToTop(){this._widget.goToTop()}goToBottom(){this._widget.goToBottom()}hide(){this._computer.anchor=null,this._hoverOperation.cancel(),this._setCurrentResult(null)}get isColorPickerVisible(){return this._widget.isColorPickerVisible}get isVisibleFromKeyboard(){return this._widget.isVisibleFromKeyboard}get isVisible(){return this._widget.isVisible}get isFocused(){return this._widget.isFocused}get isResizing(){return this._widget.isResizing}get widget(){return this._widget}};b._DECORATION_OPTIONS=a.qx.register({description:"content-hover-highlight",className:"hoverHighlight"}),b=n=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o}([C(1,u.TG),C(2,g.d)],b)},52929:function(e,t,i){"use strict";i.d(t,{r:function(){return f}});var n,s,r=i("55952"),o=i("1966"),l=i("76115"),a=i("37764"),d=i("71482"),h=i("34308");i("96502");var c=i("83112"),u=i("84144"),g=i("95449");let m=u.qx.register({description:"inline-progress-widget",stickiness:1,showIfCollapsed:!0,after:{content:d.B4,inlineClassName:"inline-editor-progress-decoration",inlineClassNameAffectsLetterSpacing:!0}});class p extends a.JT{constructor(e,t,i,n,s){super(),this.typeId=e,this.editor=t,this.range=i,this.delegate=s,this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this.create(n),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this)}create(e){this.domNode=r.$(".inline-progress-widget"),this.domNode.role="button",this.domNode.title=e;let t=r.$("span.icon");this.domNode.append(t),t.classList.add(...h.k.asClassNameArray(l.l.loading),"codicon-modifier-spin");let i=()=>{let e=this.editor.getOption(67);this.domNode.style.height=`${e}px`,this.domNode.style.width=`${Math.ceil(.8*e)}px`};i(),this._register(this.editor.onDidChangeConfiguration(e=>{(e.hasChanged(52)||e.hasChanged(67))&&i()})),this._register(r.nm(this.domNode,r.tw.CLICK,e=>{this.delegate.cancel()}))}getId(){return p.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:{lineNumber:this.range.startLineNumber,column:this.range.startColumn},preference:[0]}}dispose(){super.dispose(),this.editor.removeContentWidget(this)}}p.baseId="editor.widget.inlineProgressWidget";let f=class extends a.JT{constructor(e,t,i){super(),this.id=e,this._editor=t,this._instantiationService=i,this._showDelay=500,this._showPromise=this._register(new a.XK),this._currentWidget=new a.XK,this._operationIdPool=0,this._currentDecorations=t.createDecorationsCollection()}async showWhile(e,t,i){let n=this._operationIdPool++;this._currentOperation=n,this.clear(),this._showPromise.value=(0,o.Vg)(()=>{let n=c.e.fromPositions(e);this._currentDecorations.set([{range:n,options:m}]).length>0&&(this._currentWidget.value=this._instantiationService.createInstance(p,this.id,this._editor,n,t,i))},this._showDelay);try{return await i}finally{this._currentOperation===n&&(this.clear(),this._currentOperation=void 0)}}clear(){this._showPromise.clear(),this._currentDecorations.clear(),this._currentWidget.clear()}};f=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o}([(n=2,s=g.TG,function(e,t){s(e,t,2)})],f)},48502:function(e,t,i){"use strict";i.d(t,{S:function(){return m}});var n,s,r=i("71482"),o=i("77910"),l=i("83112"),a=i("98681"),d=i("73071"),h=i("38386"),c=i("24184"),u=i("58106"),g=i("71458");let m=class{constructor(e,t,i,n){this._languageConfigurationService=n,this._selection=e,this._isMovingDown=t,this._autoIndent=i,this._selectionId=null,this._moveEndLineSelectionShrink=!1}getEditOperations(e,t){let i=e.getLineCount();if(this._isMovingDown&&this._selection.endLineNumber===i||!this._isMovingDown&&1===this._selection.startLineNumber){this._selectionId=t.trackSelection(this._selection);return}this._moveEndPositionDown=!1;let n=this._selection;n.startLineNumber<n.endLineNumber&&1===n.endColumn&&(this._moveEndPositionDown=!0,n=n.setEndPosition(n.endLineNumber-1,e.getLineMaxColumn(n.endLineNumber-1)));let{tabSize:s,indentSize:o,insertSpaces:d}=e.getOptions(),h=this.buildIndentConverter(s,o,d),g={tokenization:{getLineTokens:t=>e.tokenization.getLineTokens(t),getLanguageId:()=>e.getLanguageId(),getLanguageIdAtPosition:(t,i)=>e.getLanguageIdAtPosition(t,i)},getLineContent:null};if(n.startLineNumber===n.endLineNumber&&1===e.getLineMaxColumn(n.startLineNumber)){let i=n.startLineNumber,s=this._isMovingDown?i+1:i-1;1===e.getLineMaxColumn(s)?t.addEditOperation(new l.e(1,1,1,1),null):(t.addEditOperation(new l.e(i,1,i,1),e.getLineContent(s)),t.addEditOperation(new l.e(s,1,s,e.getLineMaxColumn(s)),null)),n=new a.Y(s,1,s,1)}else{let i,o;if(this._isMovingDown){i=n.endLineNumber+1,o=e.getLineContent(i),t.addEditOperation(new l.e(i-1,e.getLineMaxColumn(i-1),i,e.getLineMaxColumn(i)),null);let a=o;if(this.shouldAutoIndent(e,n)){let m=this.matchEnterRule(e,h,s,i,n.startLineNumber-1);if(null!==m){let t=r.V8(e.getLineContent(i)),n=m+c.Y(t,s);a=c.J(n,s,d)+this.trimStart(o)}else{g.getLineContent=t=>t===n.startLineNumber?e.getLineContent(i):e.getLineContent(t);let t=(0,u.n8)(this._autoIndent,g,e.getLanguageIdAtPosition(i,1),n.startLineNumber,h,this._languageConfigurationService);if(null!==t){let n=r.V8(e.getLineContent(i)),l=c.Y(t,s);l!==c.Y(n,s)&&(a=c.J(l,s,d)+this.trimStart(o))}}t.addEditOperation(new l.e(n.startLineNumber,1,n.startLineNumber,1),a+"\n");let p=this.matchEnterRuleMovingDown(e,h,s,n.startLineNumber,i,a);if(null!==p)0!==p&&this.getIndentEditsOfMovingBlock(e,t,n,s,d,p);else{g.getLineContent=t=>t===n.startLineNumber?a:t>=n.startLineNumber+1&&t<=n.endLineNumber+1?e.getLineContent(t-1):e.getLineContent(t);let o=(0,u.n8)(this._autoIndent,g,e.getLanguageIdAtPosition(i,1),n.startLineNumber+1,h,this._languageConfigurationService);if(null!==o){let i=r.V8(e.getLineContent(n.startLineNumber)),l=c.Y(o,s),a=c.Y(i,s);l!==a&&this.getIndentEditsOfMovingBlock(e,t,n,s,d,l-a)}}}else t.addEditOperation(new l.e(n.startLineNumber,1,n.startLineNumber,1),a+"\n")}else if(i=n.startLineNumber-1,o=e.getLineContent(i),t.addEditOperation(new l.e(i,1,i+1,1),null),t.addEditOperation(new l.e(n.endLineNumber,e.getLineMaxColumn(n.endLineNumber),n.endLineNumber,e.getLineMaxColumn(n.endLineNumber)),"\n"+o),this.shouldAutoIndent(e,n)){g.getLineContent=t=>t===i?e.getLineContent(n.startLineNumber):e.getLineContent(t);let o=this.matchEnterRule(e,h,s,n.startLineNumber,n.startLineNumber-2);if(null!==o)0!==o&&this.getIndentEditsOfMovingBlock(e,t,n,s,d,o);else{let o=(0,u.n8)(this._autoIndent,g,e.getLanguageIdAtPosition(n.startLineNumber,1),i,h,this._languageConfigurationService);if(null!==o){let i=r.V8(e.getLineContent(n.startLineNumber)),l=c.Y(o,s),a=c.Y(i,s);l!==a&&this.getIndentEditsOfMovingBlock(e,t,n,s,d,l-a)}}}}this._selectionId=t.trackSelection(n)}buildIndentConverter(e,t,i){return{shiftIndent:n=>o.U.shiftIndent(n,n.length+1,e,t,i),unshiftIndent:n=>o.U.unshiftIndent(n,n.length+1,e,t,i)}}parseEnterResult(e,t,i,n,s){if(s){let o=s.indentation;s.indentAction===d.wU.None?o=s.indentation+s.appendText:s.indentAction===d.wU.Indent?o=s.indentation+s.appendText:s.indentAction===d.wU.IndentOutdent?o=s.indentation:s.indentAction===d.wU.Outdent&&(o=t.unshiftIndent(s.indentation)+s.appendText);let l=e.getLineContent(n);if(this.trimStart(l).indexOf(this.trimStart(o))>=0){let s=r.V8(e.getLineContent(n)),l=r.V8(o),a=(0,u.tI)(e,n,this._languageConfigurationService);null!==a&&2&a&&(l=t.unshiftIndent(l));let d=c.Y(l,i);return d-c.Y(s,i)}}return null}matchEnterRuleMovingDown(e,t,i,n,s,o){if(r.ow(o)>=0){let r=e.getLineMaxColumn(s),o=(0,g.A)(this._autoIndent,e,new l.e(s,r,s,r),this._languageConfigurationService);return this.parseEnterResult(e,t,i,n,o)}{let s=n-1;for(;s>=1;){let t=e.getLineContent(s);if(r.ow(t)>=0)break;s--}if(s<1||n>e.getLineCount())return null;let o=e.getLineMaxColumn(s),a=(0,g.A)(this._autoIndent,e,new l.e(s,o,s,o),this._languageConfigurationService);return this.parseEnterResult(e,t,i,n,a)}}matchEnterRule(e,t,i,n,s,o){let a=s;for(;a>=1;){let t;if(t=a===s&&void 0!==o?o:e.getLineContent(a),r.ow(t)>=0)break;a--}if(a<1||n>e.getLineCount())return null;let d=e.getLineMaxColumn(a),h=(0,g.A)(this._autoIndent,e,new l.e(a,d,a,d),this._languageConfigurationService);return this.parseEnterResult(e,t,i,n,h)}trimStart(e){return e.replace(/^\s+/,"")}shouldAutoIndent(e,t){if(this._autoIndent<4||!e.tokenization.isCheapToTokenize(t.startLineNumber))return!1;let i=e.getLanguageIdAtPosition(t.startLineNumber,1);return i===e.getLanguageIdAtPosition(t.endLineNumber,1)&&null!==this._languageConfigurationService.getLanguageConfiguration(i).indentRulesSupport&&!0}getIndentEditsOfMovingBlock(e,t,i,n,s,o){for(let a=i.startLineNumber;a<=i.endLineNumber;a++){let d=e.getLineContent(a),h=r.V8(d),u=c.Y(h,n)+o,g=c.J(u,n,s);g!==h&&(t.addEditOperation(new l.e(a,1,a,h.length+1),g),a===i.endLineNumber&&i.endColumn<=h.length+1&&""===g&&(this._moveEndLineSelectionShrink=!0))}}computeCursorState(e,t){let i=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(i=i.setEndPosition(i.endLineNumber+1,1)),this._moveEndLineSelectionShrink&&i.startLineNumber<i.endLineNumber&&(i=i.setEndPosition(i.endLineNumber,2)),i}};m=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o}([(n=3,s=h.c_,function(e,t){s(e,t,3)})],m)},57380:function(e,t,i){"use strict";i.d(t,{Cp:function(){return A},wQ:function(){return y}});var n=i("55952"),s=i("12084"),r=i("74471"),o=i("58036"),l=i("94260"),a=i("77993"),d=i("70432"),h=i("47983"),c=i("1966"),u=i("66735"),g=i("76115"),m=i("98212"),p=i("37764"),f=i("25907"),_=i("67414");i("33790");var v=i("7374"),E=i("70668"),C=i("83112"),b=i("64141"),S=i("94479"),N=i("77667"),T=i("81171"),w=i("80853"),R=i("1163"),L=i("94590"),I=i("29149"),D=function(e,t){return function(i,n){t(i,n,e)}};let A=new N.uy("renameInputVisible",!1,(0,S.NC)("renameInputVisible","Whether the rename input widget is visible"));new N.uy("renameInputFocused",!1,(0,S.NC)("renameInputFocused","Whether the rename input widget is focused"));let y=class{constructor(e,t,i,n,s,r){this._editor=e,this._acceptKeybindings=t,this._themeService=i,this._keybindingService=n,this._logService=r,this.allowEditorOverflow=!0,this._disposables=new p.SL,this._visibleContextKey=A.bindTo(s),this._isEditingRenameCandidate=!1,this._nRenameSuggestionsInvocations=0,this._hadAutomaticRenameSuggestionsInvocation=!1,this._candidates=new Set,this._beforeFirstInputFieldEditSW=new f.G,this._inputWithButton=new P,this._disposables.add(this._inputWithButton),this._editor.addContentWidget(this),this._disposables.add(this._editor.onDidChangeConfiguration(e=>{e.hasChanged(50)&&this._updateFont()})),this._disposables.add(i.onDidColorThemeChange(this._updateStyles,this))}dispose(){this._disposables.dispose(),this._editor.removeContentWidget(this)}getId(){return"__renameInputWidget"}getDomNode(){return!this._domNode&&(this._domNode=document.createElement("div"),this._domNode.className="monaco-editor rename-box",this._domNode.appendChild(this._inputWithButton.domNode),this._renameCandidateListView=this._disposables.add(new O(this._domNode,{fontInfo:this._editor.getOption(50),onFocusChange:e=>{this._inputWithButton.input.value=e,this._isEditingRenameCandidate=!1},onSelectionChange:()=>{this._isEditingRenameCandidate=!1,this.acceptInput(!1)}})),this._disposables.add(this._inputWithButton.onDidInputChange(()=>{var e,t,i,n;(null===(e=this._renameCandidateListView)||void 0===e?void 0:e.focusedCandidate)!==void 0&&(this._isEditingRenameCandidate=!0),null!==(t=this._timeBeforeFirstInputFieldEdit)&&void 0!==t||(this._timeBeforeFirstInputFieldEdit=this._beforeFirstInputFieldEditSW.elapsed()),(null===(i=this._renameCandidateProvidersCts)||void 0===i?void 0:i.token.isCancellationRequested)===!1&&this._renameCandidateProvidersCts.cancel(),null===(n=this._renameCandidateListView)||void 0===n||n.clearFocus()})),this._label=document.createElement("div"),this._label.className="rename-label",this._domNode.appendChild(this._label),this._updateFont(),this._updateStyles(this._themeService.getColorTheme())),this._domNode}_updateStyles(e){var t,i,n,s,r;if(!this._domNode)return;let o=e.getColor(L.rh),l=e.getColor(L.A42);this._domNode.style.backgroundColor=String(null!==(t=e.getColor(L.D0T))&&void 0!==t?t:""),this._domNode.style.boxShadow=o?` 0 0 8px 2px ${o}`:"",this._domNode.style.border=l?`1px solid ${l}`:"",this._domNode.style.color=String(null!==(i=e.getColor(L.zJb))&&void 0!==i?i:"");let a=e.getColor(L.dt_);this._inputWithButton.domNode.style.backgroundColor=String(null!==(n=e.getColor(L.sEe))&&void 0!==n?n:""),this._inputWithButton.input.style.backgroundColor=String(null!==(s=e.getColor(L.sEe))&&void 0!==s?s:""),this._inputWithButton.domNode.style.borderWidth=a?"1px":"0px",this._inputWithButton.domNode.style.borderStyle=a?"solid":"none",this._inputWithButton.domNode.style.borderColor=null!==(r=null==a?void 0:a.toString())&&void 0!==r?r:"none"}_updateFont(){if(void 0===this._domNode)return;(0,_.p_)(void 0!==this._label,"RenameWidget#_updateFont: _label must not be undefined given _domNode is defined"),this._editor.applyFontInfo(this._inputWithButton.input);let e=this._editor.getOption(50);this._label.style.fontSize=`${this._computeLabelFontSize(e.fontSize)}px`}_computeLabelFontSize(e){return .8*e}getPosition(){if(!this._visible||!this._editor.hasModel()||!this._editor.getDomNode())return null;let e=n.D6(this.getDomNode().ownerDocument.body),t=n.i(this._editor.getDomNode()),i=this._getTopForPosition();this._nPxAvailableAbove=i+t.top,this._nPxAvailableBelow=e.height-this._nPxAvailableAbove;let s=this._editor.getOption(67),{totalHeight:r}=k.getLayoutInfo({lineHeight:s}),o=this._nPxAvailableBelow>6*r?[2,1]:[1,2];return{position:this._position,preference:o}}beforeRender(){var e,t;let[i,n]=this._acceptKeybindings;return this._label.innerText=(0,S.NC)({key:"label",comment:['placeholders are keybindings, e.g "F2 to Rename, Shift+F2 to Preview"']},"{0} to Rename, {1} to Preview",null===(e=this._keybindingService.lookupKeybinding(i))||void 0===e?void 0:e.getLabel(),null===(t=this._keybindingService.lookupKeybinding(n))||void 0===t?void 0:t.getLabel()),this._domNode.style.minWidth="200px",null}afterRender(e){let t;if(this._trace("invoking afterRender, position: ",e?"not null":"null"),null===e){this.cancelInput(!0,"afterRender (because position is null)");return}if(!this._editor.hasModel()||!this._editor.getDomNode())return;(0,_.p_)(this._renameCandidateListView),(0,_.p_)(void 0!==this._nPxAvailableAbove),(0,_.p_)(void 0!==this._nPxAvailableBelow);let i=n.wn(this._inputWithButton.domNode),s=n.wn(this._label);t=2===e?this._nPxAvailableBelow:this._nPxAvailableAbove,this._renameCandidateListView.layout({height:t-s-i,width:n.w(this._inputWithButton.domNode)})}acceptInput(e){var t;this._trace("invoking acceptInput"),null===(t=this._currentAcceptInput)||void 0===t||t.call(this,e)}cancelInput(e,t){var i;this._trace(`invoking cancelInput, caller: ${t}, _currentCancelInput: ${this._currentAcceptInput?"not undefined":"undefined"}`),null===(i=this._currentCancelInput)||void 0===i||i.call(this,e)}focusNextRenameSuggestion(){var e;!(null===(e=this._renameCandidateListView)||void 0===e?void 0:e.focusNext())&&(this._inputWithButton.input.value=this._currentName)}focusPreviousRenameSuggestion(){var e;!(null===(e=this._renameCandidateListView)||void 0===e?void 0:e.focusPrevious())&&(this._inputWithButton.input.value=this._currentName)}getInput(e,t,i,r,o){let{start:l,end:a}=this._getSelection(e,t);this._renameCts=o;let d=new p.SL;this._nRenameSuggestionsInvocations=0,this._hadAutomaticRenameSuggestionsInvocation=!1,void 0===r?this._inputWithButton.button.style.display="none":(this._inputWithButton.button.style.display="flex",this._requestRenameCandidatesOnce=r,this._requestRenameCandidates(t,!1),d.add(n.nm(this._inputWithButton.button,"click",()=>this._requestRenameCandidates(t,!0))),d.add(n.nm(this._inputWithButton.button,n.tw.KEY_DOWN,e=>{let i=new s.y(e);(i.equals(3)||i.equals(10))&&(i.stopPropagation(),i.preventDefault(),this._requestRenameCandidates(t,!0))}))),this._isEditingRenameCandidate=!1,this._domNode.classList.toggle("preview",i),this._position=new E.L(e.startLineNumber,e.startColumn),this._currentName=t,this._inputWithButton.input.value=t,this._inputWithButton.input.setAttribute("selectionStart",l.toString()),this._inputWithButton.input.setAttribute("selectionEnd",a.toString()),this._inputWithButton.input.size=Math.max((e.endColumn-e.startColumn)*1.1,20),this._beforeFirstInputFieldEditSW.reset(),d.add((0,p.OF)(()=>{this._renameCts=void 0,o.dispose(!0)})),d.add((0,p.OF)(()=>{void 0!==this._renameCandidateProvidersCts&&(this._renameCandidateProvidersCts.dispose(!0),this._renameCandidateProvidersCts=void 0)})),d.add((0,p.OF)(()=>this._candidates.clear()));let h=new c.CR;return h.p.finally(()=>{d.dispose(),this._hide()}),this._currentCancelInput=e=>{var t;return this._trace("invoking _currentCancelInput"),this._currentAcceptInput=void 0,this._currentCancelInput=void 0,null===(t=this._renameCandidateListView)||void 0===t||t.clearCandidates(),h.complete(e),!0},this._currentAcceptInput=e=>{let n,s;this._trace("invoking _currentAcceptInput"),(0,_.p_)(void 0!==this._renameCandidateListView);let r=this._renameCandidateListView.nCandidates,o=this._renameCandidateListView.focusedCandidate;if(void 0!==o?(this._trace("using new name from renameSuggestion"),n=o,s={k:"renameSuggestion"}):(this._trace("using new name from inputField"),n=this._inputWithButton.input.value,s=this._isEditingRenameCandidate?{k:"userEditedRenameSuggestion"}:{k:"inputField"}),n===t||0===n.trim().length){this.cancelInput(!0,"_currentAcceptInput (because newName === value || newName.trim().length === 0)");return}this._currentAcceptInput=void 0,this._currentCancelInput=void 0,this._renameCandidateListView.clearCandidates(),h.complete({newName:n,wantsPreview:i&&e,stats:{source:s,nRenameSuggestions:r,timeBeforeFirstInputFieldEdit:this._timeBeforeFirstInputFieldEdit,nRenameSuggestionsInvocations:this._nRenameSuggestionsInvocations,hadAutomaticRenameSuggestionsInvocation:this._hadAutomaticRenameSuggestionsInvocation}})},d.add(o.token.onCancellationRequested(()=>this.cancelInput(!0,"cts.token.onCancellationRequested"))),d.add(this._editor.onDidBlurEditorWidget(()=>{var e;return this.cancelInput(!(null===(e=this._domNode)||void 0===e?void 0:e.ownerDocument.hasFocus()),"editor.onDidBlurEditorWidget")})),this._show(),h.p}_requestRenameCandidates(e,t){if(void 0!==this._requestRenameCandidatesOnce&&(void 0!==this._renameCandidateProvidersCts&&this._renameCandidateProvidersCts.dispose(!0),(0,_.p_)(this._renameCts),"stop"!==this._inputWithButton.buttonState)){this._renameCandidateProvidersCts=new u.AU;let i=t?b.Ll.Invoke:b.Ll.Automatic,n=this._requestRenameCandidatesOnce(i,this._renameCandidateProvidersCts.token);if(0===n.length){this._inputWithButton.setSparkleButton();return}!t&&(this._hadAutomaticRenameSuggestionsInvocation=!0),this._nRenameSuggestionsInvocations+=1,this._inputWithButton.setStopButton(),this._updateRenameCandidates(n,e,this._renameCts.token)}}_getSelection(e,t){(0,_.p_)(this._editor.hasModel());let i=this._editor.getSelection(),n=0,s=t.length;return!C.e.isEmpty(i)&&!C.e.spansMultipleLines(i)&&C.e.containsRange(e,i)&&(n=Math.max(0,i.startColumn-e.startColumn),s=Math.min(e.endColumn,i.endColumn)-e.startColumn),{start:n,end:s}}_show(){this._trace("invoking _show"),this._editor.revealLineInCenterIfOutsideViewport(this._position.lineNumber,0),this._visible=!0,this._visibleContextKey.set(!0),this._editor.layoutContentWidget(this),setTimeout(()=>{this._inputWithButton.input.focus(),this._inputWithButton.input.setSelectionRange(parseInt(this._inputWithButton.input.getAttribute("selectionStart")),parseInt(this._inputWithButton.input.getAttribute("selectionEnd")))},100)}async _updateRenameCandidates(e,t,i){let n=(...e)=>this._trace("_updateRenameCandidates",...e);n("start");let s=await (0,c.eP)(Promise.allSettled(e),i);if(this._inputWithButton.setSparkleButton(),void 0===s){n("returning early - received updateRenameCandidates results - undefined");return}let r=s.flatMap(e=>"fulfilled"===e.status&&(0,_.$K)(e.value)?e.value:[]);n(`received updateRenameCandidates results - total (unfiltered) ${r.length} candidates.`);let o=h.EB(r,e=>e.newSymbolName);n(`distinct candidates - ${o.length} candidates.`);let l=o.filter(({newSymbolName:e})=>e.trim().length>0&&e!==this._inputWithButton.input.value&&e!==t&&!this._candidates.has(e));if(n(`valid distinct candidates - ${r.length} candidates.`),l.forEach(e=>this._candidates.add(e.newSymbolName)),l.length<1){n("returning early - no valid distinct candidates");return}n("setting candidates"),this._renameCandidateListView.setCandidates(l),n("asking editor to re-layout"),this._editor.layoutContentWidget(this)}_hide(){this._trace("invoked _hide"),this._visible=!1,this._visibleContextKey.reset(),this._editor.layoutContentWidget(this)}_getTopForPosition(){let e;let t=this._editor.getVisibleRanges();return t.length>0?e=t[0].startLineNumber:(this._logService.warn("RenameWidget#_getTopForPosition: this should not happen - visibleRanges is empty"),e=Math.max(1,this._position.lineNumber-5)),this._editor.getTopForLineNumber(this._position.lineNumber)-this._editor.getTopForLineNumber(e)}_trace(...e){this._logService.trace("RenameWidget",...e)}};y=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o}([D(2,I.XE),D(3,T.d),D(4,N.i6),D(5,w.VZ)],y);class O{constructor(e,t){this._disposables=new p.SL,this._availableHeight=0,this._minimumWidth=0,this._lineHeight=t.fontInfo.lineHeight,this._typicalHalfwidthCharacterWidth=t.fontInfo.typicalHalfwidthCharacterWidth,this._listContainer=document.createElement("div"),this._listContainer.className="rename-box rename-candidate-list-container",e.appendChild(this._listContainer),this._listWidget=O._createListWidget(this._listContainer,this._candidateViewHeight,t.fontInfo),this._listWidget.onDidChangeFocus(e=>{1===e.elements.length&&t.onFocusChange(e.elements[0].newSymbolName)},this._disposables),this._listWidget.onDidChangeSelection(e=>{1===e.elements.length&&t.onSelectionChange()},this._disposables),this._disposables.add(this._listWidget.onDidBlur(e=>{this._listWidget.setFocus([])})),this._listWidget.style((0,R.TU)({listInactiveFocusForeground:L.NPS,listInactiveFocusBackground:L.Vqd}))}dispose(){this._listWidget.dispose(),this._disposables.dispose()}layout({height:e,width:t}){this._availableHeight=e,this._minimumWidth=t}setCandidates(e){this._listWidget.splice(0,0,e);let t=this._pickListHeight(this._listWidget.length),i=this._pickListWidth(e);this._listWidget.layout(t,i),this._listContainer.style.height=`${t}px`,this._listContainer.style.width=`${i}px`,r.i7((0,S.NC)("renameSuggestionsReceivedAria","Received {0} rename suggestions",e.length))}clearCandidates(){this._listContainer.style.height="0px",this._listContainer.style.width="0px",this._listWidget.splice(0,this._listWidget.length,[])}get nCandidates(){return this._listWidget.length}get focusedCandidate(){if(0===this._listWidget.length)return;let e=this._listWidget.getSelectedElements()[0];if(void 0!==e)return e.newSymbolName;let t=this._listWidget.getFocusedElements()[0];if(void 0!==t)return t.newSymbolName}focusNext(){if(0===this._listWidget.length)return!1;let e=this._listWidget.getFocus();if(0===e.length)return this._listWidget.focusFirst(),this._listWidget.reveal(0),!0;if(e[0]===this._listWidget.length-1)return this._listWidget.setFocus([]),this._listWidget.reveal(0),!1;{this._listWidget.focusNext();let e=this._listWidget.getFocus()[0];return this._listWidget.reveal(e),!0}}focusPrevious(){if(0===this._listWidget.length)return!1;let e=this._listWidget.getFocus();if(0===e.length){this._listWidget.focusLast();let e=this._listWidget.getFocus()[0];return this._listWidget.reveal(e),!0}if(0===e[0])return this._listWidget.setFocus([]),!1;{this._listWidget.focusPrevious();let e=this._listWidget.getFocus()[0];return this._listWidget.reveal(e),!0}}clearFocus(){this._listWidget.setFocus([])}get _candidateViewHeight(){let{totalHeight:e}=k.getLayoutInfo({lineHeight:this._lineHeight});return e}_pickListHeight(e){let t=this._candidateViewHeight*e;return Math.min(t,this._availableHeight,7*this._candidateViewHeight)}_pickListWidth(e){let t=Math.ceil(Math.max(...e.map(e=>e.newSymbolName.length))*this._typicalHalfwidthCharacterWidth);return Math.max(this._minimumWidth,25+t+10)}static _createListWidget(e,t,i){let n=new class{getTemplateId(e){return"candidate"}getHeight(e){return t}},s=new class{constructor(){this.templateId="candidate"}renderTemplate(e){return new k(e,i)}renderElement(e,t,i){i.populate(e)}disposeTemplate(e){e.dispose()}};return new d.aV("NewSymbolNameCandidates",e,n,[s],{keyboardSupport:!1,mouseSupport:!0,multipleSelectionSupport:!1})}}class P{constructor(){this._onDidInputChange=new m.Q5,this.onDidInputChange=this._onDidInputChange.event,this._disposables=new p.SL}get domNode(){return!this._domNode&&(this._domNode=document.createElement("div"),this._domNode.className="rename-input-with-button",this._domNode.style.display="flex",this._domNode.style.flexDirection="row",this._domNode.style.alignItems="center",this._inputNode=document.createElement("input"),this._inputNode.className="rename-input",this._inputNode.type="text",this._inputNode.style.border="none",this._inputNode.setAttribute("aria-label",(0,S.NC)("renameAriaLabel","Rename input. Type new name and press Enter to commit.")),this._domNode.appendChild(this._inputNode),this._buttonNode=document.createElement("div"),this._buttonNode.className="rename-suggestions-button",this._buttonNode.setAttribute("tabindex","0"),this._buttonGenHoverText=S.NC("generateRenameSuggestionsButton","Generate new name suggestions"),this._buttonCancelHoverText=S.NC("cancelRenameSuggestionsButton","Cancel"),this._buttonHover=(0,o.B)().setupUpdatableHover((0,l.tM)("element"),this._buttonNode,this._buttonGenHoverText),this._disposables.add(this._buttonHover),this._domNode.appendChild(this._buttonNode),this._disposables.add(n.nm(this.input,n.tw.INPUT,()=>this._onDidInputChange.fire())),this._disposables.add(n.nm(this.input,n.tw.KEY_DOWN,e=>{let t=new s.y(e);(15===t.keyCode||17===t.keyCode)&&this._onDidInputChange.fire()})),this._disposables.add(n.nm(this.input,n.tw.CLICK,()=>this._onDidInputChange.fire())),this._disposables.add(n.nm(this.input,n.tw.FOCUS,()=>{this.domNode.style.outlineWidth="1px",this.domNode.style.outlineStyle="solid",this.domNode.style.outlineOffset="-1px",this.domNode.style.outlineColor="var(--vscode-focusBorder)"})),this._disposables.add(n.nm(this.input,n.tw.BLUR,()=>{this.domNode.style.outline="none"}))),this._domNode}get input(){return(0,_.p_)(this._inputNode),this._inputNode}get button(){return(0,_.p_)(this._buttonNode),this._buttonNode}get buttonState(){return this._buttonState}setSparkleButton(){var e,t;this._buttonState="sparkle",null!==(e=this._sparkleIcon)&&void 0!==e||(this._sparkleIcon=(0,a.h)(g.l.sparkle)),n.PO(this.button),this.button.appendChild(this._sparkleIcon),this.button.setAttribute("aria-label","Generating new name suggestions"),null===(t=this._buttonHover)||void 0===t||t.update(this._buttonGenHoverText),this.input.focus()}setStopButton(){var e,t;this._buttonState="stop",null!==(e=this._stopIcon)&&void 0!==e||(this._stopIcon=(0,a.h)(g.l.primitiveSquare)),n.PO(this.button),this.button.appendChild(this._stopIcon),this.button.setAttribute("aria-label","Cancel generating new name suggestions"),null===(t=this._buttonHover)||void 0===t||t.update(this._buttonCancelHoverText),this.input.focus()}dispose(){this._disposables.dispose()}}class k{constructor(e,t){this._domNode=document.createElement("div"),this._domNode.className="rename-box rename-candidate",this._domNode.style.display="flex",this._domNode.style.columnGap="5px",this._domNode.style.alignItems="center",this._domNode.style.height=`${t.lineHeight}px`,this._domNode.style.padding=`${k._PADDING}px`;let i=document.createElement("div");i.style.display="flex",i.style.alignItems="center",i.style.width=i.style.height=`${.8*t.lineHeight}px`,this._domNode.appendChild(i),this._icon=(0,a.h)(g.l.sparkle),this._icon.style.display="none",i.appendChild(this._icon),this._label=document.createElement("div"),v.N(this._label,t),this._domNode.appendChild(this._label),e.appendChild(this._domNode)}populate(e){this._updateIcon(e),this._updateLabel(e)}_updateIcon(e){var t;let i=!!(null===(t=e.tags)||void 0===t?void 0:t.includes(b.w.AIGenerated));this._icon.style.display=i?"inherit":"none"}_updateLabel(e){this._label.innerText=e.newSymbolName}static getLayoutInfo({lineHeight:e}){return{totalHeight:e+2*k._PADDING}}dispose(){}}k._PADDING=2},82976:function(e,t,i){"use strict";i.d(t,{AF:function(){return U},Dq:function(){return B},eR:function(){return $}});var n=i("74471"),s=i("37764"),r=i("87294"),o=i("16643"),l=i("39589"),a=i("1680"),d=i("49756"),h=i("95316"),c=i("249"),u=i("756"),g=i("77667"),m=i("81844"),p=i("95449"),f=i("81171"),_=i("97717"),v=i("29149"),E=i("44279"),C=i("30410"),b=i("15266"),S=i("24726"),N=i("96468"),T=i("51405"),w=i("33925"),R=i("85829"),L=i("38386"),I=i("76891"),D=i("85854"),A=i("65488"),y=i("91867"),O=i("94260"),P=i("59955"),k=i("58036"),M=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},x=function(e,t){return function(i,n){t(i,n,e)}};let F=0,H=!1,W=class extends o.Gm{constructor(e,t,i,s,r,o,l,d,h,c,u,g,m){let p={...t};p.ariaLabel=p.ariaLabel||C.B8.editorViewAccessibleLabel,p.ariaLabel=p.ariaLabel+";"+C.B8.accessibilityHelpMessage,super(e,p,{},i,s,r,o,h,c,u,g,m),d instanceof a.zC?this._standaloneKeybindingService=d:this._standaloneKeybindingService=null,!function(e){if(!e){if(H)return;H=!0}n.wW(e||y.E.document.body)}(p.ariaContainerElement),(0,O.rM)((e,t)=>i.createInstance(P.mQ,e,t,{})),(0,k.r)(l)}addCommand(e,t,i){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;let n="DYNAMIC_"+ ++F,s=g.Ao.deserialize(i);return this._standaloneKeybindingService.addDynamicKeybinding(n,e,t,s),n}createContextKey(e,t){return this._contextKeyService.createKey(e,t)}addAction(e){if("string"!=typeof e.id||"string"!=typeof e.label||"function"!=typeof e.run)throw Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");if(!this._standaloneKeybindingService)return console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),s.JT.None;let t=e.id,i=e.label,n=g.Ao.and(g.Ao.equals("editorId",this.getId()),g.Ao.deserialize(e.precondition)),r=e.keybindings,o=g.Ao.and(n,g.Ao.deserialize(e.keybindingContext)),a=e.contextMenuGroupId||null,d=e.contextMenuOrder||0,u=(t,...i)=>Promise.resolve(e.run(this,...i)),m=new s.SL,p=this.getId()+":"+t;if(m.add(c.P.registerCommand(p,u)),a&&m.add(h.BH.appendMenuItem(h.eH.EditorContext,{command:{id:p,title:i},when:n,group:a,order:d})),Array.isArray(r))for(let e of r)m.add(this._standaloneKeybindingService.addDynamicKeybinding(p,e,u,o));let f=new l.p(p,i,i,void 0,n,(...t)=>Promise.resolve(e.run(this,...t)),this._contextKeyService);return this._actions.set(t,f),m.add((0,s.OF)(()=>{this._actions.delete(t)})),m}_triggerCommand(e,t){if(this._codeEditorService instanceof w.B)try{this._codeEditorService.setActiveCodeEditor(this),super._triggerCommand(e,t)}finally{this._codeEditorService.setActiveCodeEditor(null)}else super._triggerCommand(e,t)}};W=M([x(2,p.TG),x(3,r.$),x(4,c.H),x(5,g.i6),x(6,P.Bs),x(7,f.d),x(8,v.XE),x(9,_.lT),x(10,E.F),x(11,L.c_),x(12,I.p)],W);let B=class extends W{constructor(e,t,i,n,s,r,o,l,d,h,c,u,g,m,p,f){let _;let v={...t};(0,a.XZ)(c,v,!1);let E=d.registerEditorContainer(e);"string"==typeof v.theme&&d.setTheme(v.theme),void 0!==v.autoDetectHighContrast&&d.setAutoDetectHighContrast(!!v.autoDetectHighContrast);let C=v.model;if(delete v.model,super(e,v,i,n,s,r,o,l,d,h,u,p,f),this._configurationService=c,this._standaloneThemeService=d,this._register(E),void 0===C){let e=m.getLanguageIdByMimeType(v.language)||v.language||R.bd;_=$(g,m,v.value||"",e,void 0),this._ownsModel=!0}else _=C,this._ownsModel=!1;if(this._attachModel(_),_){let e={oldModelUrl:null,newModelUrl:_.uri};this._onDidChangeModel.fire(e)}}dispose(){super.dispose()}updateOptions(e){(0,a.XZ)(this._configurationService,e,!1),"string"==typeof e.theme&&this._standaloneThemeService.setTheme(e.theme),void 0!==e.autoDetectHighContrast&&this._standaloneThemeService.setAutoDetectHighContrast(!!e.autoDetectHighContrast),super.updateOptions(e)}_postDetachModelCleanup(e){super._postDetachModelCleanup(e),e&&this._ownsModel&&(e.dispose(),this._ownsModel=!1)}};B=M([x(2,p.TG),x(3,r.$),x(4,c.H),x(5,g.i6),x(6,P.Bs),x(7,f.d),x(8,d.Z),x(9,_.lT),x(10,u.Ui),x(11,E.F),x(12,N.q),x(13,T.O),x(14,L.c_),x(15,I.p)],B);let U=class extends D.p{constructor(e,t,i,n,s,r,o,l,d,h,c,u){let g={...t};(0,a.XZ)(l,g,!0);let m=r.registerEditorContainer(e);"string"==typeof g.theme&&r.setTheme(g.theme),void 0!==g.autoDetectHighContrast&&r.setAutoDetectHighContrast(!!g.autoDetectHighContrast),super(e,g,{},n,i,s,u,h),this._configurationService=l,this._standaloneThemeService=r,this._register(m)}dispose(){super.dispose()}updateOptions(e){(0,a.XZ)(this._configurationService,e,!0),"string"==typeof e.theme&&this._standaloneThemeService.setTheme(e.theme),void 0!==e.autoDetectHighContrast&&this._standaloneThemeService.setAutoDetectHighContrast(!!e.autoDetectHighContrast),super.updateOptions(e)}_createInnerEditor(e,t,i){return e.createInstance(W,t,i)}getOriginalEditor(){return super.getOriginalEditor()}getModifiedEditor(){return super.getModifiedEditor()}addCommand(e,t,i){return this.getModifiedEditor().addCommand(e,t,i)}createContextKey(e,t){return this.getModifiedEditor().createContextKey(e,t)}addAction(e){return this.getModifiedEditor().addAction(e)}};function $(e,t,i,n,s){if(i=i||"",!n){let n=i.indexOf("\n"),r=i;return -1!==n&&(r=i.substring(0,n)),V(e,i,t.createByFilepathOrFirstLine(s||null,r),s)}return V(e,i,t.createById(n),s)}function V(e,t,i,n){return e.createModel(t,i,n)}U=M([x(2,p.TG),x(3,g.i6),x(4,r.$),x(5,d.Z),x(6,_.lT),x(7,u.Ui),x(8,m.i),x(9,S.ek),x(10,b.p),x(11,A.IV)],U)},50216:function(e,t,i){"use strict";i.d(t,{a:function(){return d},g:function(){return h}});var n,s,r=i("64649"),o=i("37764"),l=i("55111"),a=i("55952");let d=class extends o.JT{constructor(e){super(),this.layoutService=e,this.contextView=this._register(new r.Ry(this.layoutService.mainContainer,1)),this.layout(),this._register(e.onDidLayoutContainer(()=>this.layout()))}showContextView(e,t,i){let n;n=t?t===this.layoutService.getContainer((0,a.Jj)(t))?1:i?3:2:1,this.contextView.setContainer(null!=t?t:this.layoutService.activeContainer,n),this.contextView.show(e);let s={close:()=>{this.openContextView===s&&this.hideContextView()}};return this.openContextView=s,s}layout(){this.contextView.layout()}hideContextView(e){this.contextView.hide(e),this.openContextView=void 0}};d=function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o}([(n=0,s=l.F,function(e,t){s(e,t,0)})],d);class h extends d{getContextViewElement(){return this.contextView.getViewElement()}}},91278:function(e,t,i){"use strict";i.d(t,{IP:function(){return a},Ry:function(){return s}});var n,s,r=i("47983"),o=i("37764"),l=i("88928");(n=s||(s={}))[n.PRESERVE=0]="PRESERVE",n[n.LAST=1]="LAST";let a={Quickaccess:"workbench.contributions.quickaccess"};l.B.add(a.Quickaccess,new class e{constructor(){this.providers=[],this.defaultProvider=void 0}registerQuickAccessProvider(e){return 0===e.prefix.length?this.defaultProvider=e:this.providers.push(e),this.providers.sort((e,t)=>t.prefix.length-e.prefix.length),(0,o.OF)(()=>{this.providers.splice(this.providers.indexOf(e),1),this.defaultProvider===e&&(this.defaultProvider=void 0)})}getQuickAccessProviders(){return(0,r.kX)([this.defaultProvider,...this.providers])}getQuickAccessProvider(e){return e&&this.providers.find(t=>e.startsWith(t.prefix))||void 0||this.defaultProvider}})},75889:function(e,t,i){"use strict";i.d(t,{j:function(){return n}}),i("61704");var n,s=i("76115"),r=i("34308"),o=i("64138");(n||(n={})).className=function(e){switch(e){case o.Z.Ignore:return"severity-ignore "+r.k.asClassName(s.l.info);case o.Z.Info:return r.k.asClassName(s.l.info);case o.Z.Warning:return r.k.asClassName(s.l.warning);case o.Z.Error:return r.k.asClassName(s.l.error);default:return""}}},81229:function(e,t,i){"use strict";i.d(t,{$d:function(){return b},Bq:function(){return c},EQ:function(){return P},F3:function(){return E},Gw:function(){return T},Kj:function(){return y},M6:function(){return g},Oo:function(){return h},PX:function(){return w},S:function(){return I},Tn:function(){return m},Un:function(){return A},XV:function(){return N},_2:function(){return d},_b:function(){return a},dC:function(){return u},kv:function(){return _},mV:function(){return C},oS:function(){return L},pd:function(){return S},rg:function(){return p},s$:function(){return v},ux:function(){return O},vG:function(){return R},y6:function(){return D},yt:function(){return f}});var n=i("94479"),s=i("52640"),r=i("19957"),o=i("45570"),l=i("55475");let a=(0,r.P6)("list.focusBackground",{dark:null,light:null,hcDark:null,hcLight:null},n.NC("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),d=(0,r.P6)("list.focusForeground",{dark:null,light:null,hcDark:null,hcLight:null},n.NC("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),h=(0,r.P6)("list.focusOutline",{dark:o.R8,light:o.R8,hcDark:o.xL,hcLight:o.xL},n.NC("listFocusOutline","List/Tree outline color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),c=(0,r.P6)("list.focusAndSelectionOutline",{dark:null,light:null,hcDark:null,hcLight:null},n.NC("listFocusAndSelectionOutline","List/Tree outline color for the focused item when the list/tree is active and selected. An active list/tree has keyboard focus, an inactive does not.")),u=(0,r.P6)("list.activeSelectionBackground",{dark:"#04395E",light:"#0060C0",hcDark:null,hcLight:s.Il.fromHex("#0F4A85").transparent(.1)},n.NC("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),g=(0,r.P6)("list.activeSelectionForeground",{dark:s.Il.white,light:s.Il.white,hcDark:null,hcLight:null},n.NC("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),m=(0,r.P6)("list.activeSelectionIconForeground",{dark:null,light:null,hcDark:null,hcLight:null},n.NC("listActiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),p=(0,r.P6)("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hcDark:null,hcLight:s.Il.fromHex("#0F4A85").transparent(.1)},n.NC("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),f=(0,r.P6)("list.inactiveSelectionForeground",{dark:null,light:null,hcDark:null,hcLight:null},n.NC("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),_=(0,r.P6)("list.inactiveSelectionIconForeground",{dark:null,light:null,hcDark:null,hcLight:null},n.NC("listInactiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),v=(0,r.P6)("list.inactiveFocusBackground",{dark:null,light:null,hcDark:null,hcLight:null},n.NC("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),E=(0,r.P6)("list.inactiveFocusOutline",{dark:null,light:null,hcDark:null,hcLight:null},n.NC("listInactiveFocusOutline","List/Tree outline color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),C=(0,r.P6)("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:s.Il.white.transparent(.1),hcLight:s.Il.fromHex("#0F4A85").transparent(.1)},n.NC("listHoverBackground","List/Tree background when hovering over items using the mouse.")),b=(0,r.P6)("list.hoverForeground",{dark:null,light:null,hcDark:null,hcLight:null},n.NC("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),S=(0,r.P6)("list.dropBackground",{dark:"#062F4A",light:"#D6EBFF",hcDark:null,hcLight:null},n.NC("listDropBackground","List/Tree drag and drop background when moving items over other items when using the mouse.")),N=(0,r.P6)("list.dropBetweenBackground",{dark:o.XZ,light:o.XZ,hcDark:null,hcLight:null},n.NC("listDropBetweenBackground","List/Tree drag and drop border color when moving items between items when using the mouse.")),T=(0,r.P6)("list.highlightForeground",{dark:"#2AAAFF",light:"#0066BF",hcDark:o.R8,hcLight:o.R8},n.NC("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")),w=(0,r.P6)("list.focusHighlightForeground",{dark:T,light:(0,r.NS)(u,T,"#BBE7FF"),hcDark:T,hcLight:T},n.NC("listFocusHighlightForeground","List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree."));(0,r.P6)("list.invalidItemForeground",{dark:"#B89500",light:"#B89500",hcDark:"#B89500",hcLight:"#B5200D"},n.NC("invalidItemForeground","List/Tree foreground color for invalid items, for example an unresolved root in explorer.")),(0,r.P6)("list.errorForeground",{dark:"#F88070",light:"#B01011",hcDark:null,hcLight:null},n.NC("listErrorForeground","Foreground color of list items containing errors.")),(0,r.P6)("list.warningForeground",{dark:"#CCA700",light:"#855F00",hcDark:null,hcLight:null},n.NC("listWarningForeground","Foreground color of list items containing warnings."));let R=(0,r.P6)("listFilterWidget.background",{light:(0,r._j)(l.D0,0),dark:(0,r.$n)(l.D0,0),hcDark:l.D0,hcLight:l.D0},n.NC("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),L=(0,r.P6)("listFilterWidget.outline",{dark:s.Il.transparent,light:s.Il.transparent,hcDark:"#f38518",hcLight:"#007ACC"},n.NC("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),I=(0,r.P6)("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hcDark:o.lR,hcLight:o.lR},n.NC("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),D=(0,r.P6)("listFilterWidget.shadow",{dark:l.rh,light:l.rh,hcDark:l.rh,hcLight:l.rh},n.NC("listFilterWidgetShadow","Shadow color of the type filter widget in lists and trees."));(0,r.P6)("list.filterMatchBackground",{dark:l.MU,light:l.MU,hcDark:null,hcLight:null},n.NC("listFilterMatchHighlight","Background color of the filtered match.")),(0,r.P6)("list.filterMatchBorder",{dark:l.Ei,light:l.Ei,hcDark:o.lR,hcLight:o.xL},n.NC("listFilterMatchHighlightBorder","Border color of the filtered match.")),(0,r.P6)("list.deemphasizedForeground",{dark:"#8C8C8C",light:"#8E8E90",hcDark:"#A7A8A9",hcLight:"#666666"},n.NC("listDeemphasizedForeground","List/Tree foreground color for items that are deemphasized."));let A=(0,r.P6)("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hcDark:"#a9a9a9",hcLight:"#a5a5a5"},n.NC("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),y=(0,r.P6)("tree.inactiveIndentGuidesStroke",{dark:(0,r.Zn)(A,.4),light:(0,r.Zn)(A,.4),hcDark:(0,r.Zn)(A,.4),hcLight:(0,r.Zn)(A,.4)},n.NC("treeInactiveIndentGuidesStroke","Tree stroke color for the indentation guides that are not active.")),O=(0,r.P6)("tree.tableColumnsBorder",{dark:"#CCCCCC20",light:"#61616120",hcDark:null,hcLight:null},n.NC("tableColumnsBorder","Table border color between columns.")),P=(0,r.P6)("tree.tableOddRowsBackground",{dark:(0,r.Zn)(o.dR,.04),light:(0,r.Zn)(o.dR,.04),hcDark:null,hcLight:null},n.NC("tableOddRowsBackgroundColor","Background color for odd table rows."))},39666:function(e,t,i){"use strict";i.d(t,{AB:function(){return c},_w:function(){return d},et:function(){return h},g8:function(){return l},qe:function(){return a},yn:function(){return u},zR:function(){return g}});var n=i("94479"),s=i("52640"),r=i("19957"),o=i("45570");(0,r.P6)("sash.hoverBorder",{dark:o.R8,light:o.R8,hcDark:o.R8,hcLight:o.R8},n.NC("sashActiveBorder","Border color of active sashes."));let l=(0,r.P6)("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hcDark:s.Il.black,hcLight:"#0F4A85"},n.NC("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count.")),a=(0,r.P6)("badge.foreground",{dark:s.Il.white,light:"#333",hcDark:s.Il.white,hcLight:s.Il.white},n.NC("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),d=(0,r.P6)("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hcDark:null,hcLight:null},n.NC("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled.")),h=(0,r.P6)("scrollbarSlider.background",{dark:s.Il.fromHex("#797979").transparent(.4),light:s.Il.fromHex("#646464").transparent(.4),hcDark:(0,r.Zn)(o.lR,.6),hcLight:(0,r.Zn)(o.lR,.4)},n.NC("scrollbarSliderBackground","Scrollbar slider background color.")),c=(0,r.P6)("scrollbarSlider.hoverBackground",{dark:s.Il.fromHex("#646464").transparent(.7),light:s.Il.fromHex("#646464").transparent(.7),hcDark:(0,r.Zn)(o.lR,.8),hcLight:(0,r.Zn)(o.lR,.8)},n.NC("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),u=(0,r.P6)("scrollbarSlider.activeBackground",{dark:s.Il.fromHex("#BFBFBF").transparent(.4),light:s.Il.fromHex("#000000").transparent(.6),hcDark:o.lR,hcLight:o.lR},n.NC("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),g=(0,r.P6)("progressBar.background",{dark:s.Il.fromHex("#0E70C0"),light:s.Il.fromHex("#0E70C0"),hcDark:o.lR,hcLight:o.lR},n.NC("progressBarBackground","Background color of the progress bar that can show for long running operations."))}}]);