@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,4 +1,4 @@
1
- (self.webpackChunk_rsdoctor_client=self.webpackChunk_rsdoctor_client||[]).push([["471"],{57846:function(e,t,i){"use strict";i.d(t,{H:function(){return d}});var n=i("53753"),o=i("45802"),r=i("8006"),s=i("37764");let a=(0,n.Z)("defaultWorkerFactory",{createScriptURL:e=>e});class l extends s.JT{constructor(e,t,i,n,o){super(),this.id=t,this.label=i;let r=function(e){let t=globalThis.MonacoEnvironment;if(t){if("function"==typeof t.getWorker)return t.getWorker("workerMain.js",e);if("function"==typeof t.getWorkerUrl){let i=t.getWorkerUrl("workerMain.js",e);return new Worker(a?a.createScriptURL(i):i,{name:e})}}throw Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}(i);if("function"==typeof r.then?0:1)this.worker=Promise.resolve(r);else this.worker=r;this.postMessage(e,[]),this.worker.then(e=>{e.onmessage=function(e){n(e.data)},e.onmessageerror=o,"function"==typeof e.addEventListener&&e.addEventListener("error",o)}),this._register((0,s.OF)(()=>{var e;null===(e=this.worker)||void 0===e||e.then(e=>{e.onmessage=null,e.onmessageerror=null,e.removeEventListener("error",o),e.terminate()}),this.worker=null}))}getId(){return this.id}postMessage(e,t){var i;null===(i=this.worker)||void 0===i||i.then(i=>{try{i.postMessage(e,t)}catch(e){(0,o.dL)(e),(0,o.dL)(Error(`FAILED to post message to '${this.label}'-worker`,{cause:e}))}})}}class d{constructor(e){this._label=e,this._webWorkerFailedBeforeError=!1}create(e,t,i){let n=++d.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new l(e,n,this._label||"anonymous"+n,t,e=>{(0,r.HZ)(e),this._webWorkerFailedBeforeError=e,i(e)})}}d.LAST_WORKER_ID=0},94260:function(e,t,i){"use strict";i.d(t,{p0:function(){return d},rM:function(){return a},tM:function(){return l}});var n=i("71461");let o=()=>({get delay(){return -1},dispose:()=>{},showHover:()=>{}}),r=new n.o(()=>o("mouse",!1)),s=new n.o(()=>o("element",!1));function a(e){o=e}function l(e){return"element"===e?s.value:r.value}function d(){return o("element",!0)}},94938:function(e,t,i){"use strict";i.d(t,{X:function(){return l}});var n=i("67095"),o=i("60560"),r=i("29518"),s=i("32488"),a=i("76115");class l extends o.T{constructor(e,t,i){let o=e.getScrollDimensions();if(super({lazyRender:t.lazyRender,host:i,scrollbarState:new s.M(t.horizontalHasArrows?t.arrowSize:0,2===t.horizontal?0:t.horizontalScrollbarSize,2===t.vertical?0:t.verticalScrollbarSize,o.width,o.scrollWidth,e.getCurrentScrollPosition().scrollLeft),visibility:t.horizontal,extraScrollbarClassName:"horizontal",scrollable:e,scrollByPage:t.scrollByPage}),t.horizontalHasArrows){let e=(t.arrowSize-r.J)/2,i=(t.horizontalScrollbarSize-r.J)/2;this._createArrow({className:"scra",icon:a.l.scrollbarButtonLeft,top:i,left:e,bottom:void 0,right:void 0,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new n.q(null,1,0))}),this._createArrow({className:"scra",icon:a.l.scrollbarButtonRight,top:i,left:void 0,bottom:void 0,right:e,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new n.q(null,-1,0))})}this._createSlider(Math.floor((t.horizontalScrollbarSize-t.horizontalSliderSize)/2),0,void 0,t.horizontalSliderSize)}_updateSlider(e,t){this.slider.setWidth(e),this.slider.setLeft(t)}_renderDomNode(e,t){this.domNode.setWidth(e),this.domNode.setHeight(t),this.domNode.setLeft(0),this.domNode.setBottom(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(e.width)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(e,t){return e}_sliderPointerPosition(e){return e.pageX}_sliderOrthogonalPointerPosition(e){return e.pageY}_updateScrollbarSize(e){this.slider.setHeight(e)}writeScrollPosition(e,t){e.scrollLeft=t}updateOptions(e){this.updateScrollbarSize(2===e.horizontal?0:e.horizontalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(2===e.vertical?0:e.verticalScrollbarSize),this._visibilityController.setVisibility(e.horizontal),this._scrollByPage=e.scrollByPage}}},99557:function(e,t,i){"use strict";i.d(t,{$Z:function(){return b},Io:function(){return m},NB:function(){return v},s$:function(){return w}});var n=i("5623"),o=i("55952"),r=i("40013"),s=i("67095"),a=i("94938"),l=i("58707"),d=i("73866"),c=i("1966"),h=i("98212"),u=i("37764"),g=i("97147"),p=i("80928");i("170");class f{constructor(e,t,i){this.timestamp=e,this.deltaX=t,this.deltaY=i,this.score=0}}class m{constructor(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}isPhysicalMouseWheel(){if(-1===this._front&&-1===this._rear)return!1;let e=1,t=0,i=1,n=this._rear;for(;;){let o=n===this._front?e:Math.pow(2,-i);if(e-=o,t+=this._memory[n].score*o,n===this._front)break;n=(this._capacity+n-1)%this._capacity,i++}return t<=.5}acceptStandardWheelEvent(e){if(n.i7){let t=o.Jj(e.browserEvent),i=(0,n.ie)(t);this.accept(Date.now(),e.deltaX*i,e.deltaY*i)}else this.accept(Date.now(),e.deltaX,e.deltaY)}accept(e,t,i){let n=null,o=new f(e,t,i);-1===this._front&&-1===this._rear?(this._memory[0]=o,this._front=0,this._rear=0):(n=this._memory[this._rear],this._rear=(this._rear+1)%this._capacity,this._rear===this._front&&(this._front=(this._front+1)%this._capacity),this._memory[this._rear]=o),o.score=this._computeScore(o,n)}_computeScore(e,t){if(Math.abs(e.deltaX)>0&&Math.abs(e.deltaY)>0)return 1;let i=.5;if((!this._isAlmostInt(e.deltaX)||!this._isAlmostInt(e.deltaY))&&(i+=.25),t){let n=Math.abs(e.deltaX),o=Math.abs(e.deltaY),r=Math.abs(t.deltaX),s=Math.abs(t.deltaY);Math.max(n,r)%Math.max(Math.min(n,r),1)==0&&Math.max(o,s)%Math.max(Math.min(o,s),1)==0&&(i-=.5)}return Math.min(Math.max(i,0),1)}_isAlmostInt(e){return .01>Math.abs(Math.round(e)-e)}}m.INSTANCE=new m;class _ extends d.${get options(){return this._options}constructor(e,t,i){super(),this._onScroll=this._register(new h.Q5),this.onScroll=this._onScroll.event,this._onWillScroll=this._register(new h.Q5),e.style.overflow="hidden",this._options=function(e){let t={lazyRender:void 0!==e.lazyRender&&e.lazyRender,className:void 0!==e.className?e.className:"",useShadows:void 0===e.useShadows||e.useShadows,handleMouseWheel:void 0===e.handleMouseWheel||e.handleMouseWheel,flipAxes:void 0!==e.flipAxes&&e.flipAxes,consumeMouseWheelIfScrollbarIsNeeded:void 0!==e.consumeMouseWheelIfScrollbarIsNeeded&&e.consumeMouseWheelIfScrollbarIsNeeded,alwaysConsumeMouseWheel:void 0!==e.alwaysConsumeMouseWheel&&e.alwaysConsumeMouseWheel,scrollYToX:void 0!==e.scrollYToX&&e.scrollYToX,mouseWheelScrollSensitivity:void 0!==e.mouseWheelScrollSensitivity?e.mouseWheelScrollSensitivity:1,fastScrollSensitivity:void 0!==e.fastScrollSensitivity?e.fastScrollSensitivity:5,scrollPredominantAxis:void 0===e.scrollPredominantAxis||e.scrollPredominantAxis,mouseWheelSmoothScroll:void 0===e.mouseWheelSmoothScroll||e.mouseWheelSmoothScroll,arrowSize:void 0!==e.arrowSize?e.arrowSize:11,listenOnDomNode:void 0!==e.listenOnDomNode?e.listenOnDomNode:null,horizontal:void 0!==e.horizontal?e.horizontal:1,horizontalScrollbarSize:void 0!==e.horizontalScrollbarSize?e.horizontalScrollbarSize:10,horizontalSliderSize:void 0!==e.horizontalSliderSize?e.horizontalSliderSize:0,horizontalHasArrows:void 0!==e.horizontalHasArrows&&e.horizontalHasArrows,vertical:void 0!==e.vertical?e.vertical:1,verticalScrollbarSize:void 0!==e.verticalScrollbarSize?e.verticalScrollbarSize:10,verticalHasArrows:void 0!==e.verticalHasArrows&&e.verticalHasArrows,verticalSliderSize:void 0!==e.verticalSliderSize?e.verticalSliderSize:0,scrollByPage:void 0!==e.scrollByPage&&e.scrollByPage};return t.horizontalSliderSize=void 0!==e.horizontalSliderSize?e.horizontalSliderSize:t.horizontalScrollbarSize,t.verticalSliderSize=void 0!==e.verticalSliderSize?e.verticalSliderSize:t.verticalScrollbarSize,g.dz&&(t.className+=" mac"),t}(t),this._scrollable=i,this._register(this._scrollable.onScroll(e=>{this._onWillScroll.fire(e),this._onDidScroll(e),this._onScroll.fire(e)}));let n={onMouseWheel:e=>this._onMouseWheel(e),onDragStart:()=>this._onDragStart(),onDragEnd:()=>this._onDragEnd()};this._verticalScrollbar=this._register(new l.A(this._scrollable,this._options,n)),this._horizontalScrollbar=this._register(new a.X(this._scrollable,this._options,n)),this._domNode=document.createElement("div"),this._domNode.className="monaco-scrollable-element "+this._options.className,this._domNode.setAttribute("role","presentation"),this._domNode.style.position="relative",this._domNode.style.overflow="hidden",this._domNode.appendChild(e),this._domNode.appendChild(this._horizontalScrollbar.domNode.domNode),this._domNode.appendChild(this._verticalScrollbar.domNode.domNode),this._options.useShadows?(this._leftShadowDomNode=(0,r.X)(document.createElement("div")),this._leftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._leftShadowDomNode.domNode),this._topShadowDomNode=(0,r.X)(document.createElement("div")),this._topShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topShadowDomNode.domNode),this._topLeftShadowDomNode=(0,r.X)(document.createElement("div")),this._topLeftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topLeftShadowDomNode.domNode)):(this._leftShadowDomNode=null,this._topShadowDomNode=null,this._topLeftShadowDomNode=null),this._listenOnDomNode=this._options.listenOnDomNode||this._domNode,this._mouseWheelToDispose=[],this._setListeningToMouseWheel(this._options.handleMouseWheel),this.onmouseover(this._listenOnDomNode,e=>this._onMouseOver(e)),this.onmouseleave(this._listenOnDomNode,e=>this._onMouseLeave(e)),this._hideTimeout=this._register(new c._F),this._isDragging=!1,this._mouseIsOver=!1,this._shouldRender=!0,this._revealOnScroll=!0}dispose(){this._mouseWheelToDispose=(0,u.B9)(this._mouseWheelToDispose),super.dispose()}getDomNode(){return this._domNode}getOverviewRulerLayoutInfo(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}}delegateVerticalScrollbarPointerDown(e){this._verticalScrollbar.delegatePointerDown(e)}getScrollDimensions(){return this._scrollable.getScrollDimensions()}setScrollDimensions(e){this._scrollable.setScrollDimensions(e,!1)}updateClassName(e){this._options.className=e,g.dz&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className}updateOptions(e){void 0!==e.handleMouseWheel&&(this._options.handleMouseWheel=e.handleMouseWheel,this._setListeningToMouseWheel(this._options.handleMouseWheel)),void 0!==e.mouseWheelScrollSensitivity&&(this._options.mouseWheelScrollSensitivity=e.mouseWheelScrollSensitivity),void 0!==e.fastScrollSensitivity&&(this._options.fastScrollSensitivity=e.fastScrollSensitivity),void 0!==e.scrollPredominantAxis&&(this._options.scrollPredominantAxis=e.scrollPredominantAxis),void 0!==e.horizontal&&(this._options.horizontal=e.horizontal),void 0!==e.vertical&&(this._options.vertical=e.vertical),void 0!==e.horizontalScrollbarSize&&(this._options.horizontalScrollbarSize=e.horizontalScrollbarSize),void 0!==e.verticalScrollbarSize&&(this._options.verticalScrollbarSize=e.verticalScrollbarSize),void 0!==e.scrollByPage&&(this._options.scrollByPage=e.scrollByPage),this._horizontalScrollbar.updateOptions(this._options),this._verticalScrollbar.updateOptions(this._options),!this._options.lazyRender&&this._render()}delegateScrollFromMouseWheelEvent(e){this._onMouseWheel(new s.q(e))}_setListeningToMouseWheel(e){this._mouseWheelToDispose.length>0!==e&&(this._mouseWheelToDispose=(0,u.B9)(this._mouseWheelToDispose),e&&this._mouseWheelToDispose.push(o.nm(this._listenOnDomNode,o.tw.MOUSE_WHEEL,e=>{this._onMouseWheel(new s.q(e))},{passive:!1})))}_onMouseWheel(e){var t;if(null===(t=e.browserEvent)||void 0===t?void 0:t.defaultPrevented)return;let i=m.INSTANCE;i.acceptStandardWheelEvent(e);let n=!1;if(e.deltaY||e.deltaX){let t=e.deltaY*this._options.mouseWheelScrollSensitivity,o=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.scrollPredominantAxis&&(this._options.scrollYToX&&o+t===0?o=t=0:Math.abs(t)>=Math.abs(o)?o=0:t=0),this._options.flipAxes&&([t,o]=[o,t]);let r=!g.dz&&e.browserEvent&&e.browserEvent.shiftKey;(this._options.scrollYToX||r)&&!o&&(o=t,t=0),e.browserEvent&&e.browserEvent.altKey&&(o*=this._options.fastScrollSensitivity,t*=this._options.fastScrollSensitivity);let s=this._scrollable.getFutureScrollPosition(),a={};if(t){let e=50*t,i=s.scrollTop-(e<0?Math.floor(e):Math.ceil(e));this._verticalScrollbar.writeScrollPosition(a,i)}if(o){let e=50*o,t=s.scrollLeft-(e<0?Math.floor(e):Math.ceil(e));this._horizontalScrollbar.writeScrollPosition(a,t)}a=this._scrollable.validateScrollPosition(a),(s.scrollLeft!==a.scrollLeft||s.scrollTop!==a.scrollTop)&&((0,this._options.mouseWheelSmoothScroll&&i.isPhysicalMouseWheel())?this._scrollable.setScrollPositionSmooth(a):this._scrollable.setScrollPositionNow(a),n=!0)}let o=n;!o&&this._options.alwaysConsumeMouseWheel&&(o=!0),!o&&this._options.consumeMouseWheelIfScrollbarIsNeeded&&(this._verticalScrollbar.isNeeded()||this._horizontalScrollbar.isNeeded())&&(o=!0),o&&(e.preventDefault(),e.stopPropagation())}_onDidScroll(e){this._shouldRender=this._horizontalScrollbar.onDidScroll(e)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(e)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),!this._options.lazyRender&&this._render()}renderNow(){if(!this._options.lazyRender)throw Error("Please use `lazyRender` together with `renderNow`!");this._render()}_render(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){let e=this._scrollable.getCurrentScrollPosition(),t=e.scrollTop>0,i=e.scrollLeft>0,n=i?" left":"",o=t?" top":"";this._leftShadowDomNode.setClassName(`shadow${n}`),this._topShadowDomNode.setClassName(`shadow${o}`),this._topLeftShadowDomNode.setClassName(`shadow${i||t?" top-left-corner":""}${o}${n}`)}}_onDragStart(){this._isDragging=!0,this._reveal()}_onDragEnd(){this._isDragging=!1,this._hide()}_onMouseLeave(e){this._mouseIsOver=!1,this._hide()}_onMouseOver(e){this._mouseIsOver=!0,this._reveal()}_reveal(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()}_hide(){!this._mouseIsOver&&!this._isDragging&&(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())}_scheduleHide(){!this._mouseIsOver&&!this._isDragging&&this._hideTimeout.cancelAndSet(()=>this._hide(),500)}}class v extends _{constructor(e,t){(t=t||{}).mouseWheelSmoothScroll=!1;let i=new p.Rm({forceIntegerValues:!0,smoothScrollDuration:0,scheduleAtNextAnimationFrame:t=>o.jL(o.Jj(e),t)});super(e,t,i),this._register(i)}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}}class b extends _{constructor(e,t,i){super(e,t,i)}setScrollPosition(e){e.reuseAnimation?this._scrollable.setScrollPositionSmooth(e,e.reuseAnimation):this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}}class w extends _{constructor(e,t){(t=t||{}).mouseWheelSmoothScroll=!1;let i=new p.Rm({forceIntegerValues:!1,smoothScrollDuration:0,scheduleAtNextAnimationFrame:t=>o.jL(o.Jj(e),t)});super(e,t,i),this._register(i),this._element=e,this._register(this.onScroll(e=>{e.scrollTopChanged&&(this._element.scrollTop=e.scrollTop),e.scrollLeftChanged&&(this._element.scrollLeft=e.scrollLeft)})),this.scanDomNode()}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}scanDomNode(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})}}},16234:function(e,t,i){"use strict";i.d(t,{Wi:function(){return a},Z0:function(){return l},aU:function(){return s},eZ:function(){return c},wY:function(){return d},xw:function(){return h}});var n=i("98212"),o=i("37764"),r=i("94479");class s extends o.JT{constructor(e,t="",i="",o=!0,r){super(),this._onDidChange=this._register(new n.Q5),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=e,this._label=t,this._cssClass=i,this._enabled=o,this._actionCallback=r}get id(){return this._id}get label(){return this._label}set label(e){this._setLabel(e)}_setLabel(e){this._label!==e&&(this._label=e,this._onDidChange.fire({label:e}))}get tooltip(){return this._tooltip||""}set tooltip(e){this._setTooltip(e)}_setTooltip(e){this._tooltip!==e&&(this._tooltip=e,this._onDidChange.fire({tooltip:e}))}get class(){return this._cssClass}set class(e){this._setClass(e)}_setClass(e){this._cssClass!==e&&(this._cssClass=e,this._onDidChange.fire({class:e}))}get enabled(){return this._enabled}set enabled(e){this._setEnabled(e)}_setEnabled(e){this._enabled!==e&&(this._enabled=e,this._onDidChange.fire({enabled:e}))}get checked(){return this._checked}set checked(e){this._setChecked(e)}_setChecked(e){this._checked!==e&&(this._checked=e,this._onDidChange.fire({checked:e}))}async run(e,t){this._actionCallback&&await this._actionCallback(e)}}class a extends o.JT{constructor(){super(...arguments),this._onWillRun=this._register(new n.Q5),this.onWillRun=this._onWillRun.event,this._onDidRun=this._register(new n.Q5),this.onDidRun=this._onDidRun.event}async run(e,t){let i;if(!!e.enabled){this._onWillRun.fire({action:e});try{await this.runAction(e,t)}catch(e){i=e}this._onDidRun.fire({action:e,error:i})}}async runAction(e,t){await e.run(t)}}class l{constructor(){this.id=l.ID,this.label="",this.tooltip="",this.class="separator",this.enabled=!1,this.checked=!1}static join(...e){let t=[];for(let i of e)if(i.length)t=t.length?[...t,new l,...i]:i;return t}async run(){}}l.ID="vs.actions.separator";class d{get actions(){return this._actions}constructor(e,t,i,n){this.tooltip="",this.enabled=!0,this.checked=void 0,this.id=e,this.label=t,this.class=n,this._actions=i}async run(){}}class c extends s{constructor(){super(c.ID,r.NC("submenu.empty","(empty)"),void 0,!1)}}function h(e){var t;return{id:e.id,label:e.label,class:e.class,enabled:null===(t=e.enabled)||void 0===t||t,checked:e.checked,run:async(...t)=>e.run(...t),tooltip:e.label}}c.ID="vs.actions.empty"},27236:function(e,t,i){"use strict";i.d(t,{CL:function(){return o},EW:function(){return X},Ji:function(){return d},KZ:function(){return k},Oh:function(){return P},Sy:function(){return u},XU:function(){return E},ir:function(){return h},jB:function(){return I},l7:function(){return Y},mB:function(){return O},mX:function(){return U},or:function(){return l}});var n,o,r=i("7005"),s=i("48411"),a=i("71482");function l(...e){return function(t,i){for(let n=0,o=e.length;n<o;n++){let o=e[n](t,i);if(o)return o}return null}}c.bind(void 0,!1);let d=c.bind(void 0,!0);function c(e,t,i){let n;return i&&!(i.length<t.length)&&(n=e?a.ok(i,t):0===i.indexOf(t))?t.length>0?[{start:0,end:t.length}]:[]:null}function h(e,t){let i=t.toLowerCase().indexOf(e.toLowerCase());return -1===i?null:[{start:i,end:i+e.length}]}function u(e,t){return function e(t,i,n,o){if(n===t.length)return[];if(o===i.length)return null;if(t[n]===i[o]){let r=null;return(r=e(t,i,n+1,o+1))?S({start:o,end:o+1},r):null}return e(t,i,n,o+1)}(e.toLowerCase(),t.toLowerCase(),0,0)}function g(e){return 97<=e&&e<=122}function p(e){return 65<=e&&e<=90}function f(e){return 48<=e&&e<=57}function m(e){return 32===e||9===e||10===e||13===e}let _=new Set;function v(e){return m(e)||_.has(e)}function b(e,t){return e===t||v(e)&&v(t)}"()[]{}<>`'\"-/;:,.?!".split("").forEach(e=>_.add(e.charCodeAt(0)));let w=new Map;function C(e){let t;if(w.has(e))return w.get(e);let i=(0,s.C)(e);return i&&(t=i),w.set(e,t),t}function y(e){return g(e)||p(e)||f(e)}function S(e,t){return 0===t.length?t=[e]:e.end===t[0].start?t[0].start=e.start:t.unshift(e),t}function x(e,t){for(let i=t;i<e.length;i++){let t=e.charCodeAt(i);if(p(t)||f(t)||i>0&&!y(e.charCodeAt(i-1)))return i}return e.length}function L(e,t){if(!t||0===(t=t.trim()).length||!function(e){let t=0,i=0,n=0,o=0;for(let r=0;r<e.length;r++)p(n=e.charCodeAt(r))&&t++,g(n)&&i++,m(n)&&o++;return(0===t||0===i)&&0===o?e.length<=30:t<=5}(e))return null;t.length>60&&(t=t.substring(0,60));let i=function(e){let t=0,i=0,n=0,o=0,r=0;for(let s=0;s<e.length;s++)p(r=e.charCodeAt(s))&&t++,g(r)&&i++,y(r)&&n++,f(r)&&o++;let s=t/e.length,a=i/e.length,l=n/e.length;return{upperPercent:s,lowerPercent:a,alphaPercent:l,numericPercent:o/e.length}}(t);if(!function(e){let{upperPercent:t,lowerPercent:i,alphaPercent:n,numericPercent:o}=e;return i>.2&&t<.8&&n>.6&&o<.2}(i)){if(!function(e){let{upperPercent:t,lowerPercent:i}=e;return 0===i&&t>.6}(i))return null;t=t.toLowerCase()}let n=null,o=0;for(e=e.toLowerCase();o<t.length&&null===(n=function e(t,i,n,o){if(n===t.length)return[];{if(o===i.length||t[n]!==i[o].toLowerCase())return null;let r=null,s=o+1;for(r=e(t,i,n+1,o+1);!r&&(s=x(i,s))<i.length;)r=e(t,i,n+1,s),s++;return null===r?null:S({start:o,end:o+1},r)}}(e,t,0,o));)o=x(t,o+1);return n}function k(e,t,i=!1){if(!t||0===t.length)return null;let n=null,o=0;for(e=e.toLowerCase(),t=t.toLowerCase();o<t.length&&null===(n=function e(t,i,n,o,r){let s=0;if(n===t.length)return[];if(o===i.length)return null;if(!b(t.charCodeAt(n),i.charCodeAt(o))){let e=C(t.charCodeAt(n));if(!e)return null;for(let t=0;t<e.length;t++)if(!b(e[t],i.charCodeAt(o+t)))return null;s+=e.length-1}let a=null,l=o+s+1;if(a=e(t,i,n+1,l,r),!r)for(;!a&&(l=N(i,l))<i.length;)a=e(t,i,n+1,l,r),l++;if(!a)return null;if(t.charCodeAt(n)!==i.charCodeAt(o)){let e=C(t.charCodeAt(n));if(!e)return a;for(let t=0;t<e.length;t++)if(e[t]!==i.charCodeAt(o+t))return a}return S({start:o,end:o+s+1},a)}(e,t,0,o,i));){;o=N(t,o+1)}return n}function N(e,t){for(let i=t;i<e.length;i++)if(v(e.charCodeAt(i))||i>0&&v(e.charCodeAt(i-1)))return i;return e.length}let D=l(d,L,h),T=l(d,L,u),M=new r.z6(1e4);function P(e,t,i=!1){if("string"!=typeof e||"string"!=typeof t)return null;let n=M.get(e);!n&&(n=RegExp(a.un(e),"i"),M.set(e,n));let o=n.exec(t);return o?[{start:o.index,end:o.index+o[0].length}]:i?T(e,t):D(e,t)}function E(e,t){let i=X(e,e.toLowerCase(),0,t,t.toLowerCase(),0,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return i?O(i):null}function I(e,t,i,n,o,r){let s=Math.min(13,e.length);for(;i<s;i++){let s=X(e,t,i,n,o,r,{firstMatchCanBeWeak:!0,boostFullMatch:!0});if(s)return s}return[0,r]}function O(e){if(void 0===e)return[];let t=[],i=e[1];for(let n=e.length-1;n>1;n--){let o=e[n]+i,r=t[t.length-1];r&&r.end===o?r.end=o+1:t.push({start:o,end:o+1})}return t}function R(){let e=[],t=[];for(let e=0;e<=128;e++)t[e]=0;for(let i=0;i<=128;i++)e.push(t.slice(0));return e}function A(e){let t=[];for(let i=0;i<=e;i++)t[i]=0;return t}let H=A(256),F=A(256),W=R(),z=R(),$=R();function V(e,t,i,n,o){function r(e,t,i=" "){for(;e.length<t;)e=i+e;return e}let s=` | |${n.split("").map(e=>r(e,3)).join("|")}
1
+ (self.webpackChunk_rsdoctor_client=self.webpackChunk_rsdoctor_client||[]).push([["374"],{57846:function(e,t,i){"use strict";i.d(t,{H:function(){return d}});var n=i("53753"),o=i("45802"),r=i("8006"),s=i("37764");let a=(0,n.Z)("defaultWorkerFactory",{createScriptURL:e=>e});class l extends s.JT{constructor(e,t,i,n,o){super(),this.id=t,this.label=i;let r=function(e){let t=globalThis.MonacoEnvironment;if(t){if("function"==typeof t.getWorker)return t.getWorker("workerMain.js",e);if("function"==typeof t.getWorkerUrl){let i=t.getWorkerUrl("workerMain.js",e);return new Worker(a?a.createScriptURL(i):i,{name:e})}}throw Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}(i);if("function"==typeof r.then?0:1)this.worker=Promise.resolve(r);else this.worker=r;this.postMessage(e,[]),this.worker.then(e=>{e.onmessage=function(e){n(e.data)},e.onmessageerror=o,"function"==typeof e.addEventListener&&e.addEventListener("error",o)}),this._register((0,s.OF)(()=>{var e;null===(e=this.worker)||void 0===e||e.then(e=>{e.onmessage=null,e.onmessageerror=null,e.removeEventListener("error",o),e.terminate()}),this.worker=null}))}getId(){return this.id}postMessage(e,t){var i;null===(i=this.worker)||void 0===i||i.then(i=>{try{i.postMessage(e,t)}catch(e){(0,o.dL)(e),(0,o.dL)(Error(`FAILED to post message to '${this.label}'-worker`,{cause:e}))}})}}class d{constructor(e){this._label=e,this._webWorkerFailedBeforeError=!1}create(e,t,i){let n=++d.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new l(e,n,this._label||"anonymous"+n,t,e=>{(0,r.HZ)(e),this._webWorkerFailedBeforeError=e,i(e)})}}d.LAST_WORKER_ID=0},94260:function(e,t,i){"use strict";i.d(t,{p0:function(){return d},rM:function(){return a},tM:function(){return l}});var n=i("71461");let o=()=>({get delay(){return -1},dispose:()=>{},showHover:()=>{}}),r=new n.o(()=>o("mouse",!1)),s=new n.o(()=>o("element",!1));function a(e){o=e}function l(e){return"element"===e?s.value:r.value}function d(){return o("element",!0)}},94938:function(e,t,i){"use strict";i.d(t,{X:function(){return l}});var n=i("67095"),o=i("60560"),r=i("29518"),s=i("32488"),a=i("76115");class l extends o.T{constructor(e,t,i){let o=e.getScrollDimensions();if(super({lazyRender:t.lazyRender,host:i,scrollbarState:new s.M(t.horizontalHasArrows?t.arrowSize:0,2===t.horizontal?0:t.horizontalScrollbarSize,2===t.vertical?0:t.verticalScrollbarSize,o.width,o.scrollWidth,e.getCurrentScrollPosition().scrollLeft),visibility:t.horizontal,extraScrollbarClassName:"horizontal",scrollable:e,scrollByPage:t.scrollByPage}),t.horizontalHasArrows){let e=(t.arrowSize-r.J)/2,i=(t.horizontalScrollbarSize-r.J)/2;this._createArrow({className:"scra",icon:a.l.scrollbarButtonLeft,top:i,left:e,bottom:void 0,right:void 0,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new n.q(null,1,0))}),this._createArrow({className:"scra",icon:a.l.scrollbarButtonRight,top:i,left:void 0,bottom:void 0,right:e,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new n.q(null,-1,0))})}this._createSlider(Math.floor((t.horizontalScrollbarSize-t.horizontalSliderSize)/2),0,void 0,t.horizontalSliderSize)}_updateSlider(e,t){this.slider.setWidth(e),this.slider.setLeft(t)}_renderDomNode(e,t){this.domNode.setWidth(e),this.domNode.setHeight(t),this.domNode.setLeft(0),this.domNode.setBottom(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(e.width)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(e,t){return e}_sliderPointerPosition(e){return e.pageX}_sliderOrthogonalPointerPosition(e){return e.pageY}_updateScrollbarSize(e){this.slider.setHeight(e)}writeScrollPosition(e,t){e.scrollLeft=t}updateOptions(e){this.updateScrollbarSize(2===e.horizontal?0:e.horizontalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(2===e.vertical?0:e.verticalScrollbarSize),this._visibilityController.setVisibility(e.horizontal),this._scrollByPage=e.scrollByPage}}},99557:function(e,t,i){"use strict";i.d(t,{$Z:function(){return b},Io:function(){return m},NB:function(){return v},s$:function(){return w}});var n=i("5623"),o=i("55952"),r=i("40013"),s=i("67095"),a=i("94938"),l=i("58707"),d=i("73866"),c=i("1966"),h=i("98212"),u=i("37764"),g=i("97147"),p=i("80928");i("170");class f{constructor(e,t,i){this.timestamp=e,this.deltaX=t,this.deltaY=i,this.score=0}}class m{constructor(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}isPhysicalMouseWheel(){if(-1===this._front&&-1===this._rear)return!1;let e=1,t=0,i=1,n=this._rear;for(;;){let o=n===this._front?e:Math.pow(2,-i);if(e-=o,t+=this._memory[n].score*o,n===this._front)break;n=(this._capacity+n-1)%this._capacity,i++}return t<=.5}acceptStandardWheelEvent(e){if(n.i7){let t=o.Jj(e.browserEvent),i=(0,n.ie)(t);this.accept(Date.now(),e.deltaX*i,e.deltaY*i)}else this.accept(Date.now(),e.deltaX,e.deltaY)}accept(e,t,i){let n=null,o=new f(e,t,i);-1===this._front&&-1===this._rear?(this._memory[0]=o,this._front=0,this._rear=0):(n=this._memory[this._rear],this._rear=(this._rear+1)%this._capacity,this._rear===this._front&&(this._front=(this._front+1)%this._capacity),this._memory[this._rear]=o),o.score=this._computeScore(o,n)}_computeScore(e,t){if(Math.abs(e.deltaX)>0&&Math.abs(e.deltaY)>0)return 1;let i=.5;if((!this._isAlmostInt(e.deltaX)||!this._isAlmostInt(e.deltaY))&&(i+=.25),t){let n=Math.abs(e.deltaX),o=Math.abs(e.deltaY),r=Math.abs(t.deltaX),s=Math.abs(t.deltaY);Math.max(n,r)%Math.max(Math.min(n,r),1)==0&&Math.max(o,s)%Math.max(Math.min(o,s),1)==0&&(i-=.5)}return Math.min(Math.max(i,0),1)}_isAlmostInt(e){return .01>Math.abs(Math.round(e)-e)}}m.INSTANCE=new m;class _ extends d.${get options(){return this._options}constructor(e,t,i){super(),this._onScroll=this._register(new h.Q5),this.onScroll=this._onScroll.event,this._onWillScroll=this._register(new h.Q5),e.style.overflow="hidden",this._options=function(e){let t={lazyRender:void 0!==e.lazyRender&&e.lazyRender,className:void 0!==e.className?e.className:"",useShadows:void 0===e.useShadows||e.useShadows,handleMouseWheel:void 0===e.handleMouseWheel||e.handleMouseWheel,flipAxes:void 0!==e.flipAxes&&e.flipAxes,consumeMouseWheelIfScrollbarIsNeeded:void 0!==e.consumeMouseWheelIfScrollbarIsNeeded&&e.consumeMouseWheelIfScrollbarIsNeeded,alwaysConsumeMouseWheel:void 0!==e.alwaysConsumeMouseWheel&&e.alwaysConsumeMouseWheel,scrollYToX:void 0!==e.scrollYToX&&e.scrollYToX,mouseWheelScrollSensitivity:void 0!==e.mouseWheelScrollSensitivity?e.mouseWheelScrollSensitivity:1,fastScrollSensitivity:void 0!==e.fastScrollSensitivity?e.fastScrollSensitivity:5,scrollPredominantAxis:void 0===e.scrollPredominantAxis||e.scrollPredominantAxis,mouseWheelSmoothScroll:void 0===e.mouseWheelSmoothScroll||e.mouseWheelSmoothScroll,arrowSize:void 0!==e.arrowSize?e.arrowSize:11,listenOnDomNode:void 0!==e.listenOnDomNode?e.listenOnDomNode:null,horizontal:void 0!==e.horizontal?e.horizontal:1,horizontalScrollbarSize:void 0!==e.horizontalScrollbarSize?e.horizontalScrollbarSize:10,horizontalSliderSize:void 0!==e.horizontalSliderSize?e.horizontalSliderSize:0,horizontalHasArrows:void 0!==e.horizontalHasArrows&&e.horizontalHasArrows,vertical:void 0!==e.vertical?e.vertical:1,verticalScrollbarSize:void 0!==e.verticalScrollbarSize?e.verticalScrollbarSize:10,verticalHasArrows:void 0!==e.verticalHasArrows&&e.verticalHasArrows,verticalSliderSize:void 0!==e.verticalSliderSize?e.verticalSliderSize:0,scrollByPage:void 0!==e.scrollByPage&&e.scrollByPage};return t.horizontalSliderSize=void 0!==e.horizontalSliderSize?e.horizontalSliderSize:t.horizontalScrollbarSize,t.verticalSliderSize=void 0!==e.verticalSliderSize?e.verticalSliderSize:t.verticalScrollbarSize,g.dz&&(t.className+=" mac"),t}(t),this._scrollable=i,this._register(this._scrollable.onScroll(e=>{this._onWillScroll.fire(e),this._onDidScroll(e),this._onScroll.fire(e)}));let n={onMouseWheel:e=>this._onMouseWheel(e),onDragStart:()=>this._onDragStart(),onDragEnd:()=>this._onDragEnd()};this._verticalScrollbar=this._register(new l.A(this._scrollable,this._options,n)),this._horizontalScrollbar=this._register(new a.X(this._scrollable,this._options,n)),this._domNode=document.createElement("div"),this._domNode.className="monaco-scrollable-element "+this._options.className,this._domNode.setAttribute("role","presentation"),this._domNode.style.position="relative",this._domNode.style.overflow="hidden",this._domNode.appendChild(e),this._domNode.appendChild(this._horizontalScrollbar.domNode.domNode),this._domNode.appendChild(this._verticalScrollbar.domNode.domNode),this._options.useShadows?(this._leftShadowDomNode=(0,r.X)(document.createElement("div")),this._leftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._leftShadowDomNode.domNode),this._topShadowDomNode=(0,r.X)(document.createElement("div")),this._topShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topShadowDomNode.domNode),this._topLeftShadowDomNode=(0,r.X)(document.createElement("div")),this._topLeftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topLeftShadowDomNode.domNode)):(this._leftShadowDomNode=null,this._topShadowDomNode=null,this._topLeftShadowDomNode=null),this._listenOnDomNode=this._options.listenOnDomNode||this._domNode,this._mouseWheelToDispose=[],this._setListeningToMouseWheel(this._options.handleMouseWheel),this.onmouseover(this._listenOnDomNode,e=>this._onMouseOver(e)),this.onmouseleave(this._listenOnDomNode,e=>this._onMouseLeave(e)),this._hideTimeout=this._register(new c._F),this._isDragging=!1,this._mouseIsOver=!1,this._shouldRender=!0,this._revealOnScroll=!0}dispose(){this._mouseWheelToDispose=(0,u.B9)(this._mouseWheelToDispose),super.dispose()}getDomNode(){return this._domNode}getOverviewRulerLayoutInfo(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}}delegateVerticalScrollbarPointerDown(e){this._verticalScrollbar.delegatePointerDown(e)}getScrollDimensions(){return this._scrollable.getScrollDimensions()}setScrollDimensions(e){this._scrollable.setScrollDimensions(e,!1)}updateClassName(e){this._options.className=e,g.dz&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className}updateOptions(e){void 0!==e.handleMouseWheel&&(this._options.handleMouseWheel=e.handleMouseWheel,this._setListeningToMouseWheel(this._options.handleMouseWheel)),void 0!==e.mouseWheelScrollSensitivity&&(this._options.mouseWheelScrollSensitivity=e.mouseWheelScrollSensitivity),void 0!==e.fastScrollSensitivity&&(this._options.fastScrollSensitivity=e.fastScrollSensitivity),void 0!==e.scrollPredominantAxis&&(this._options.scrollPredominantAxis=e.scrollPredominantAxis),void 0!==e.horizontal&&(this._options.horizontal=e.horizontal),void 0!==e.vertical&&(this._options.vertical=e.vertical),void 0!==e.horizontalScrollbarSize&&(this._options.horizontalScrollbarSize=e.horizontalScrollbarSize),void 0!==e.verticalScrollbarSize&&(this._options.verticalScrollbarSize=e.verticalScrollbarSize),void 0!==e.scrollByPage&&(this._options.scrollByPage=e.scrollByPage),this._horizontalScrollbar.updateOptions(this._options),this._verticalScrollbar.updateOptions(this._options),!this._options.lazyRender&&this._render()}delegateScrollFromMouseWheelEvent(e){this._onMouseWheel(new s.q(e))}_setListeningToMouseWheel(e){this._mouseWheelToDispose.length>0!==e&&(this._mouseWheelToDispose=(0,u.B9)(this._mouseWheelToDispose),e&&this._mouseWheelToDispose.push(o.nm(this._listenOnDomNode,o.tw.MOUSE_WHEEL,e=>{this._onMouseWheel(new s.q(e))},{passive:!1})))}_onMouseWheel(e){var t;if(null===(t=e.browserEvent)||void 0===t?void 0:t.defaultPrevented)return;let i=m.INSTANCE;i.acceptStandardWheelEvent(e);let n=!1;if(e.deltaY||e.deltaX){let t=e.deltaY*this._options.mouseWheelScrollSensitivity,o=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.scrollPredominantAxis&&(this._options.scrollYToX&&o+t===0?o=t=0:Math.abs(t)>=Math.abs(o)?o=0:t=0),this._options.flipAxes&&([t,o]=[o,t]);let r=!g.dz&&e.browserEvent&&e.browserEvent.shiftKey;(this._options.scrollYToX||r)&&!o&&(o=t,t=0),e.browserEvent&&e.browserEvent.altKey&&(o*=this._options.fastScrollSensitivity,t*=this._options.fastScrollSensitivity);let s=this._scrollable.getFutureScrollPosition(),a={};if(t){let e=50*t,i=s.scrollTop-(e<0?Math.floor(e):Math.ceil(e));this._verticalScrollbar.writeScrollPosition(a,i)}if(o){let e=50*o,t=s.scrollLeft-(e<0?Math.floor(e):Math.ceil(e));this._horizontalScrollbar.writeScrollPosition(a,t)}a=this._scrollable.validateScrollPosition(a),(s.scrollLeft!==a.scrollLeft||s.scrollTop!==a.scrollTop)&&((0,this._options.mouseWheelSmoothScroll&&i.isPhysicalMouseWheel())?this._scrollable.setScrollPositionSmooth(a):this._scrollable.setScrollPositionNow(a),n=!0)}let o=n;!o&&this._options.alwaysConsumeMouseWheel&&(o=!0),!o&&this._options.consumeMouseWheelIfScrollbarIsNeeded&&(this._verticalScrollbar.isNeeded()||this._horizontalScrollbar.isNeeded())&&(o=!0),o&&(e.preventDefault(),e.stopPropagation())}_onDidScroll(e){this._shouldRender=this._horizontalScrollbar.onDidScroll(e)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(e)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),!this._options.lazyRender&&this._render()}renderNow(){if(!this._options.lazyRender)throw Error("Please use `lazyRender` together with `renderNow`!");this._render()}_render(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){let e=this._scrollable.getCurrentScrollPosition(),t=e.scrollTop>0,i=e.scrollLeft>0,n=i?" left":"",o=t?" top":"";this._leftShadowDomNode.setClassName(`shadow${n}`),this._topShadowDomNode.setClassName(`shadow${o}`),this._topLeftShadowDomNode.setClassName(`shadow${i||t?" top-left-corner":""}${o}${n}`)}}_onDragStart(){this._isDragging=!0,this._reveal()}_onDragEnd(){this._isDragging=!1,this._hide()}_onMouseLeave(e){this._mouseIsOver=!1,this._hide()}_onMouseOver(e){this._mouseIsOver=!0,this._reveal()}_reveal(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()}_hide(){!this._mouseIsOver&&!this._isDragging&&(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())}_scheduleHide(){!this._mouseIsOver&&!this._isDragging&&this._hideTimeout.cancelAndSet(()=>this._hide(),500)}}class v extends _{constructor(e,t){(t=t||{}).mouseWheelSmoothScroll=!1;let i=new p.Rm({forceIntegerValues:!0,smoothScrollDuration:0,scheduleAtNextAnimationFrame:t=>o.jL(o.Jj(e),t)});super(e,t,i),this._register(i)}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}}class b extends _{constructor(e,t,i){super(e,t,i)}setScrollPosition(e){e.reuseAnimation?this._scrollable.setScrollPositionSmooth(e,e.reuseAnimation):this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}}class w extends _{constructor(e,t){(t=t||{}).mouseWheelSmoothScroll=!1;let i=new p.Rm({forceIntegerValues:!1,smoothScrollDuration:0,scheduleAtNextAnimationFrame:t=>o.jL(o.Jj(e),t)});super(e,t,i),this._register(i),this._element=e,this._register(this.onScroll(e=>{e.scrollTopChanged&&(this._element.scrollTop=e.scrollTop),e.scrollLeftChanged&&(this._element.scrollLeft=e.scrollLeft)})),this.scanDomNode()}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}scanDomNode(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})}}},16234:function(e,t,i){"use strict";i.d(t,{Wi:function(){return a},Z0:function(){return l},aU:function(){return s},eZ:function(){return c},wY:function(){return d},xw:function(){return h}});var n=i("98212"),o=i("37764"),r=i("94479");class s extends o.JT{constructor(e,t="",i="",o=!0,r){super(),this._onDidChange=this._register(new n.Q5),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=e,this._label=t,this._cssClass=i,this._enabled=o,this._actionCallback=r}get id(){return this._id}get label(){return this._label}set label(e){this._setLabel(e)}_setLabel(e){this._label!==e&&(this._label=e,this._onDidChange.fire({label:e}))}get tooltip(){return this._tooltip||""}set tooltip(e){this._setTooltip(e)}_setTooltip(e){this._tooltip!==e&&(this._tooltip=e,this._onDidChange.fire({tooltip:e}))}get class(){return this._cssClass}set class(e){this._setClass(e)}_setClass(e){this._cssClass!==e&&(this._cssClass=e,this._onDidChange.fire({class:e}))}get enabled(){return this._enabled}set enabled(e){this._setEnabled(e)}_setEnabled(e){this._enabled!==e&&(this._enabled=e,this._onDidChange.fire({enabled:e}))}get checked(){return this._checked}set checked(e){this._setChecked(e)}_setChecked(e){this._checked!==e&&(this._checked=e,this._onDidChange.fire({checked:e}))}async run(e,t){this._actionCallback&&await this._actionCallback(e)}}class a extends o.JT{constructor(){super(...arguments),this._onWillRun=this._register(new n.Q5),this.onWillRun=this._onWillRun.event,this._onDidRun=this._register(new n.Q5),this.onDidRun=this._onDidRun.event}async run(e,t){let i;if(!!e.enabled){this._onWillRun.fire({action:e});try{await this.runAction(e,t)}catch(e){i=e}this._onDidRun.fire({action:e,error:i})}}async runAction(e,t){await e.run(t)}}class l{constructor(){this.id=l.ID,this.label="",this.tooltip="",this.class="separator",this.enabled=!1,this.checked=!1}static join(...e){let t=[];for(let i of e)if(i.length)t=t.length?[...t,new l,...i]:i;return t}async run(){}}l.ID="vs.actions.separator";class d{get actions(){return this._actions}constructor(e,t,i,n){this.tooltip="",this.enabled=!0,this.checked=void 0,this.id=e,this.label=t,this.class=n,this._actions=i}async run(){}}class c extends s{constructor(){super(c.ID,r.NC("submenu.empty","(empty)"),void 0,!1)}}function h(e){var t;return{id:e.id,label:e.label,class:e.class,enabled:null===(t=e.enabled)||void 0===t||t,checked:e.checked,run:async(...t)=>e.run(...t),tooltip:e.label}}c.ID="vs.actions.empty"},27236:function(e,t,i){"use strict";i.d(t,{CL:function(){return o},EW:function(){return X},Ji:function(){return d},KZ:function(){return k},Oh:function(){return P},Sy:function(){return u},XU:function(){return E},ir:function(){return h},jB:function(){return I},l7:function(){return Y},mB:function(){return O},mX:function(){return U},or:function(){return l}});var n,o,r=i("7005"),s=i("48411"),a=i("71482");function l(...e){return function(t,i){for(let n=0,o=e.length;n<o;n++){let o=e[n](t,i);if(o)return o}return null}}c.bind(void 0,!1);let d=c.bind(void 0,!0);function c(e,t,i){let n;return i&&!(i.length<t.length)&&(n=e?a.ok(i,t):0===i.indexOf(t))?t.length>0?[{start:0,end:t.length}]:[]:null}function h(e,t){let i=t.toLowerCase().indexOf(e.toLowerCase());return -1===i?null:[{start:i,end:i+e.length}]}function u(e,t){return function e(t,i,n,o){if(n===t.length)return[];if(o===i.length)return null;if(t[n]===i[o]){let r=null;return(r=e(t,i,n+1,o+1))?S({start:o,end:o+1},r):null}return e(t,i,n,o+1)}(e.toLowerCase(),t.toLowerCase(),0,0)}function g(e){return 97<=e&&e<=122}function p(e){return 65<=e&&e<=90}function f(e){return 48<=e&&e<=57}function m(e){return 32===e||9===e||10===e||13===e}let _=new Set;function v(e){return m(e)||_.has(e)}function b(e,t){return e===t||v(e)&&v(t)}"()[]{}<>`'\"-/;:,.?!".split("").forEach(e=>_.add(e.charCodeAt(0)));let w=new Map;function C(e){let t;if(w.has(e))return w.get(e);let i=(0,s.C)(e);return i&&(t=i),w.set(e,t),t}function y(e){return g(e)||p(e)||f(e)}function S(e,t){return 0===t.length?t=[e]:e.end===t[0].start?t[0].start=e.start:t.unshift(e),t}function x(e,t){for(let i=t;i<e.length;i++){let t=e.charCodeAt(i);if(p(t)||f(t)||i>0&&!y(e.charCodeAt(i-1)))return i}return e.length}function L(e,t){if(!t||0===(t=t.trim()).length||!function(e){let t=0,i=0,n=0,o=0;for(let r=0;r<e.length;r++)p(n=e.charCodeAt(r))&&t++,g(n)&&i++,m(n)&&o++;return(0===t||0===i)&&0===o?e.length<=30:t<=5}(e))return null;t.length>60&&(t=t.substring(0,60));let i=function(e){let t=0,i=0,n=0,o=0,r=0;for(let s=0;s<e.length;s++)p(r=e.charCodeAt(s))&&t++,g(r)&&i++,y(r)&&n++,f(r)&&o++;let s=t/e.length,a=i/e.length,l=n/e.length;return{upperPercent:s,lowerPercent:a,alphaPercent:l,numericPercent:o/e.length}}(t);if(!function(e){let{upperPercent:t,lowerPercent:i,alphaPercent:n,numericPercent:o}=e;return i>.2&&t<.8&&n>.6&&o<.2}(i)){if(!function(e){let{upperPercent:t,lowerPercent:i}=e;return 0===i&&t>.6}(i))return null;t=t.toLowerCase()}let n=null,o=0;for(e=e.toLowerCase();o<t.length&&null===(n=function e(t,i,n,o){if(n===t.length)return[];{if(o===i.length||t[n]!==i[o].toLowerCase())return null;let r=null,s=o+1;for(r=e(t,i,n+1,o+1);!r&&(s=x(i,s))<i.length;)r=e(t,i,n+1,s),s++;return null===r?null:S({start:o,end:o+1},r)}}(e,t,0,o));)o=x(t,o+1);return n}function k(e,t,i=!1){if(!t||0===t.length)return null;let n=null,o=0;for(e=e.toLowerCase(),t=t.toLowerCase();o<t.length&&null===(n=function e(t,i,n,o,r){let s=0;if(n===t.length)return[];if(o===i.length)return null;if(!b(t.charCodeAt(n),i.charCodeAt(o))){let e=C(t.charCodeAt(n));if(!e)return null;for(let t=0;t<e.length;t++)if(!b(e[t],i.charCodeAt(o+t)))return null;s+=e.length-1}let a=null,l=o+s+1;if(a=e(t,i,n+1,l,r),!r)for(;!a&&(l=N(i,l))<i.length;)a=e(t,i,n+1,l,r),l++;if(!a)return null;if(t.charCodeAt(n)!==i.charCodeAt(o)){let e=C(t.charCodeAt(n));if(!e)return a;for(let t=0;t<e.length;t++)if(e[t]!==i.charCodeAt(o+t))return a}return S({start:o,end:o+s+1},a)}(e,t,0,o,i));){;o=N(t,o+1)}return n}function N(e,t){for(let i=t;i<e.length;i++)if(v(e.charCodeAt(i))||i>0&&v(e.charCodeAt(i-1)))return i;return e.length}let D=l(d,L,h),T=l(d,L,u),M=new r.z6(1e4);function P(e,t,i=!1){if("string"!=typeof e||"string"!=typeof t)return null;let n=M.get(e);!n&&(n=RegExp(a.un(e),"i"),M.set(e,n));let o=n.exec(t);return o?[{start:o.index,end:o.index+o[0].length}]:i?T(e,t):D(e,t)}function E(e,t){let i=X(e,e.toLowerCase(),0,t,t.toLowerCase(),0,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return i?O(i):null}function I(e,t,i,n,o,r){let s=Math.min(13,e.length);for(;i<s;i++){let s=X(e,t,i,n,o,r,{firstMatchCanBeWeak:!0,boostFullMatch:!0});if(s)return s}return[0,r]}function O(e){if(void 0===e)return[];let t=[],i=e[1];for(let n=e.length-1;n>1;n--){let o=e[n]+i,r=t[t.length-1];r&&r.end===o?r.end=o+1:t.push({start:o,end:o+1})}return t}function R(){let e=[],t=[];for(let e=0;e<=128;e++)t[e]=0;for(let i=0;i<=128;i++)e.push(t.slice(0));return e}function A(e){let t=[];for(let i=0;i<=e;i++)t[i]=0;return t}let H=A(256),F=A(256),W=R(),z=R(),$=R();function V(e,t,i,n,o){function r(e,t,i=" "){for(;e.length<t;)e=i+e;return e}let s=` | |${n.split("").map(e=>r(e,3)).join("|")}
2
2
  `;for(let n=0;n<=i;n++)0===n?s+=" |":s+=`${t[n-1]}|`,s+=e[n].slice(0,o+1).map(e=>r(e.toString(),3)).join("|")+"\n";return s}function q(e,t){if(t<0||t>=e.length)return!1;let i=e.codePointAt(t);switch(i){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:case 60:case 62:case 40:case 41:case 91:case 93:case 123:case 125:return!0;case void 0:return!1;default:if(a.C8(i))return!0;return!1}}function B(e,t){if(t<0||t>=e.length)return!1;switch(e.charCodeAt(t)){case 32:case 9:return!0;default:return!1}}function j(e,t,i){return t[e]!==i[e]}(n=o||(o={})).Default=[-100,0],n.isDefault=function(e){return!e||2===e.length&&-100===e[0]&&0===e[1]};class U{constructor(e,t){this.firstMatchCanBeWeak=e,this.boostFullMatch=t}}function X(e,t,i,n,o,r,s=U.default){var a,l,d,c,h,u,g;let p=e.length>128?128:e.length,f=n.length>128?128:n.length;if(i>=p||r>=f||p-i>f-r||!function(e,t,i,n,o,r,s=!1){for(;t<i&&o<r;)e[t]===n[o]&&(s&&(H[t]=o),t+=1),o+=1;return t===i}(t,i,p,o,r,f,!0))return;(function(e,t,i,n,o,r){let s=e-1,a=t-1;for(;s>=i&&a>=n;)o[s]===r[a]&&(F[s]=a,s--),a--})(p,f,i,r,t,o);let m=1,_=1,v=i,b=r,w=[!1];for(m=1,v=i;v<p;m++,v++){let s=H[v],a=F[v],l=v+1<p?F[v+1]:f;for(_=s-r+1,b=s;b<l;_++,b++){let l=Number.MIN_SAFE_INTEGER,d=!1;b<=a&&(l=function(e,t,i,n,o,r,s,a,l,d,c){var h,u,g,p,f,m,_,v,b;if(t[i]!==r[s])return Number.MIN_SAFE_INTEGER;let w=1,C=!1;if(s===i-n)w=e[i]===o[s]?7:5;else{;if(h=s,u=o,g=r,u[h]===g[h]||0!==s&&(p=s-1,f=o,m=r,f[p]!==m[p]))q(r,s)&&(0===s||!q(r,s-1))?w=5:(q(r,s-1)||B(r,s-1))&&(w=5,C=!0);else w=e[i]===o[s]?7:5,C=!0}if(w>1&&i===n&&(c[0]=!0),!C){;C=(_=s,v=o,b=r,v[_]!==b[_]||q(r,s-1)||B(r,s-1))}return i===n?s>l&&(w-=C?3:5):d?w+=C?2:0:w+=C?0:1,s+1===a&&(w-=C?3:5),w}(e,t,v,i,n,o,b,f,r,0===W[m-1][_-1],w));let c=0;l!==Number.MAX_SAFE_INTEGER&&(d=!0,c=l+z[m-1][_-1]);let h=b>s,u=h?z[m][_-1]+(W[m][_-1]>0?-5:0):0,g=b>s+1&&W[m][_-1]>0,p=g?z[m][_-2]+(W[m][_-2]>0?-5:0):0;if(g&&(!h||p>=u)&&(!d||p>=c))z[m][_]=p,$[m][_]=3,W[m][_]=0;else if(h&&(!d||u>=c))z[m][_]=u,$[m][_]=2,W[m][_]=0;else if(d)z[m][_]=c,$[m][_]=1,W[m][_]=W[m-1][_-1]+1;else throw Error("not possible")}}if(!w[0]&&!s.firstMatchCanBeWeak)return;m--,_--;let C=[z[m][_],r],y=0,S=0;for(;m>=1;){;let e=_;do{let t=$[m][e];if(3===t)e-=2;else if(2===t)e-=1;else break}while(e>=1);if(y>1&&t[i+m-1]===o[r+_-1]&&(h=e+r-1,u=n,g=o,u[h]===g[h])&&y+1>W[m][e])e=_;e===_?y++:y=1,!S&&(S=e),m--,_=e-1,C.push(_)}f===p&&s.boostFullMatch&&(C[0]+=2);let x=S-p;return C[0]-=x,C}U.default={boostFullMatch:!0,firstMatchCanBeWeak:!1};function Y(e,t,i,n,o,r,s){return function(e,t,i,n,o,r,s,a){let l=X(e,t,i,n,o,r,a);if(l&&!s)return l;if(e.length>=3){let t=Math.min(7,e.length-1);for(let s=i+1;s<t;s++){let t=function(e,t){if(t+1>=e.length)return;let i=e[t],n=e[t+1];if(i!==n)return e.slice(0,t)+n+i+e.slice(t+2)}(e,s);if(t){let e=X(t,t.toLowerCase(),i,n,o,r,a);e&&(e[0]-=3,(!l||e[0]>l[0])&&(l=e))}}}return l}(e,t,i,n,o,r,!0,s)}},89888:function(e,t,i){"use strict";i.d(t,{Be:function(){return u},aK:function(){return h},bk:function(){return c},kA:function(){return g},nK:function(){return d}});var n=i("26089"),o=i("57341"),r=i("37764"),s=i("10361"),a=i("45344"),l=i("30908");function d(e,t){return void 0!==t?new p(new a.IZ(e,void 0,t),t,void 0,void 0,void 0,o.ht):new p(new a.IZ(void 0,void 0,e),e,void 0,void 0,void 0,o.ht)}function c(e,t){var i;return new p(new a.IZ(e.owner,e.debugName,e.debugReferenceFn),t,void 0,void 0,e.onLastObserverRemoved,null!==(i=e.equalsFn)&&void 0!==i?i:o.ht)}function h(e,t){var i;return new p(new a.IZ(e.owner,e.debugName,void 0),t,e.createEmptyChangeSummary,e.handleChange,void 0,null!==(i=e.equalityComparer)&&void 0!==i?i:o.ht)}function u(e,t){let i,n;void 0===t?(i=e,n=void 0):(n=e,i=t);let s=new r.SL;return new p(new a.IZ(n,void 0,i),e=>(s.clear(),i(e,s)),void 0,void 0,()=>s.dispose(),o.ht)}function g(e,t){let i,n;void 0===t?(i=e,n=void 0):(n=e,i=t);let s=new r.SL;return new p(new a.IZ(n,void 0,i),e=>{s.clear();let t=i(e);return t&&s.add(t),t},void 0,void 0,()=>s.dispose(),o.ht)}(0,s.mT)(c);class p extends s.hm{get debugName(){var e;return null!==(e=this._debugNameData.getDebugName(this))&&void 0!==e?e:"(anonymous)"}constructor(e,t,i,n,o,r){var s,a;super(),this._debugNameData=e,this._computeFn=t,this.createChangeSummary=i,this._handleChange=n,this._handleLastObserverRemoved=o,this._equalityComparator=r,this.state=0,this.value=void 0,this.updateCount=0,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=void 0,this.changeSummary=null===(s=this.createChangeSummary)||void 0===s?void 0:s.call(this),null===(a=(0,l.jl)())||void 0===a||a.handleDerivedCreated(this)}onLastObserverRemoved(){var e;for(let e of(this.state=0,this.value=void 0,this.dependencies))e.removeObserver(this);this.dependencies.clear(),null===(e=this._handleLastObserverRemoved)||void 0===e||e.call(this)}get(){var e;if(0===this.observers.size){let t=this._computeFn(this,null===(e=this.createChangeSummary)||void 0===e?void 0:e.call(this));return this.onLastObserverRemoved(),t}do{if(1===this.state){for(let e of this.dependencies)if(e.reportChanges(),2===this.state)break}1===this.state&&(this.state=3),this._recomputeIfNeeded()}while(3!==this.state);return this.value}_recomputeIfNeeded(){var e,t;if(3===this.state)return;let i=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=i;let n=0!==this.state,o=this.value;this.state=3;let r=this.changeSummary;this.changeSummary=null===(e=this.createChangeSummary)||void 0===e?void 0:e.call(this);try{this.value=this._computeFn(this,r)}finally{for(let e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}let s=n&&!this._equalityComparator(o,this.value);if(null===(t=(0,l.jl)())||void 0===t||t.handleDerivedRecomputed(this,{oldValue:o,newValue:this.value,change:void 0,didChange:s,hadValue:n}),s)for(let e of this.observers)e.handleChange(this,void 0)}toString(){return`LazyDerived<${this.debugName}>`}beginUpdate(e){this.updateCount++;let t=1===this.updateCount;if(3===this.state&&(this.state=1,!t))for(let e of this.observers)e.handlePossibleChange(this);if(t)for(let e of this.observers)e.beginUpdate(this)}endUpdate(e){if(this.updateCount--,0===this.updateCount)for(let e of[...this.observers])e.endUpdate(this);(0,n.eZ)(()=>this.updateCount>=0)}handlePossibleChange(e){if(3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e))for(let e of(this.state=1,this.observers))e.handlePossibleChange(this)}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){let i=!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary),n=3===this.state;if(i&&(1===this.state||n)&&(this.state=2,n))for(let e of this.observers)e.handlePossibleChange(this)}}readObservable(e){e.addObserver(this);let t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}addObserver(e){let t=!this.observers.has(e)&&this.updateCount>0;super.addObserver(e),t&&e.beginUpdate(this)}removeObserver(e){let t=this.observers.has(e)&&this.updateCount>0;super.removeObserver(e),t&&e.endUpdate(this)}}},70798:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return n},language:function(){return o}});var n={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:"{",close:"}"},{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:'"'},{open:"(*",close:"*)"}]},o={defaultToken:"",tokenPostfix:".cameligo",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],keywords:["abs","assert","block","Bytes","case","Crypto","Current","else","failwith","false","for","fun","if","in","let","let%entry","let%init","List","list","Map","map","match","match%nat","mod","not","operation","Operation","of","record","Set","set","sender","skip","source","String","then","to","true","type","with"],typeKeywords:["int","unit","string","tz","nat","bool"],operators:["=",">","<","<=",">=","<>",":",":=","and","mod","or","+","-","*","/","@","&","^","%","->","<-","&&","||"],symbols:/[=><:@\^&|+\-*\/\^%]+/,tokenizer:{root:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\$[0-9a-fA-F]{1,16}/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'/,"string","@string"],[/'[^\\']'/,"string"],[/'/,"string.invalid"],[/\#\d+/,"string"]],comment:[[/[^\(\*]+/,"comment"],[/\*\)/,"comment","@pop"],[/\(\*/,"comment"]],string:[[/[^\\']+/,"string"],[/\\./,"string.escape.invalid"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"],[/\(\*/,"comment","@comment"],[/\/\/.*$/,"comment"]]}}},32130:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return n},language:function(){return o}});var n={comments:{lineComment:";;"},brackets:[["[","]"],["(",")"],["{","}"]],autoClosingPairs:[{open:"[",close:"]"},{open:'"',close:'"'},{open:"(",close:")"},{open:"{",close:"}"}],surroundingPairs:[{open:"[",close:"]"},{open:'"',close:'"'},{open:"(",close:")"},{open:"{",close:"}"}]},o={defaultToken:"",ignoreCase:!0,tokenPostfix:".clj",brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"}],constants:["true","false","nil"],numbers:/^(?:[+\-]?\d+(?:(?:N|(?:[eE][+\-]?\d+))|(?:\.?\d*(?:M|(?:[eE][+\-]?\d+))?)|\/\d+|[xX][0-9a-fA-F]+|r[0-9a-zA-Z]+)?(?=[\\\[\]\s"#'(),;@^`{}~]|$))/,characters:/^(?:\\(?:backspace|formfeed|newline|return|space|tab|o[0-7]{3}|u[0-9A-Fa-f]{4}|x[0-9A-Fa-f]{4}|.)?(?=[\\\[\]\s"(),;@^`{}~]|$))/,escapes:/^\\(?:["'\\bfnrt]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,qualifiedSymbols:/^(?:(?:[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*(?:\.[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*\/)?(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*(?=[\\\[\]\s"(),;@^`{}~]|$))/,specialForms:[".","catch","def","do","if","monitor-enter","monitor-exit","new","quote","recur","set!","throw","try","var"],coreSymbols:["*","*'","*1","*2","*3","*agent*","*allow-unresolved-vars*","*assert*","*clojure-version*","*command-line-args*","*compile-files*","*compile-path*","*compiler-options*","*data-readers*","*default-data-reader-fn*","*e","*err*","*file*","*flush-on-newline*","*fn-loader*","*in*","*math-context*","*ns*","*out*","*print-dup*","*print-length*","*print-level*","*print-meta*","*print-namespace-maps*","*print-readably*","*read-eval*","*reader-resolver*","*source-path*","*suppress-read*","*unchecked-math*","*use-context-classloader*","*verbose-defrecords*","*warn-on-reflection*","+","+'","-","-'","->","->>","->ArrayChunk","->Eduction","->Vec","->VecNode","->VecSeq","-cache-protocol-fn","-reset-methods","..","/","<","<=","=","==",">",">=","EMPTY-NODE","Inst","StackTraceElement->vec","Throwable->map","accessor","aclone","add-classpath","add-watch","agent","agent-error","agent-errors","aget","alength","alias","all-ns","alter","alter-meta!","alter-var-root","amap","ancestors","and","any?","apply","areduce","array-map","as->","aset","aset-boolean","aset-byte","aset-char","aset-double","aset-float","aset-int","aset-long","aset-short","assert","assoc","assoc!","assoc-in","associative?","atom","await","await-for","await1","bases","bean","bigdec","bigint","biginteger","binding","bit-and","bit-and-not","bit-clear","bit-flip","bit-not","bit-or","bit-set","bit-shift-left","bit-shift-right","bit-test","bit-xor","boolean","boolean-array","boolean?","booleans","bound-fn","bound-fn*","bound?","bounded-count","butlast","byte","byte-array","bytes","bytes?","case","cast","cat","char","char-array","char-escape-string","char-name-string","char?","chars","chunk","chunk-append","chunk-buffer","chunk-cons","chunk-first","chunk-next","chunk-rest","chunked-seq?","class","class?","clear-agent-errors","clojure-version","coll?","comment","commute","comp","comparator","compare","compare-and-set!","compile","complement","completing","concat","cond","cond->","cond->>","condp","conj","conj!","cons","constantly","construct-proxy","contains?","count","counted?","create-ns","create-struct","cycle","dec","dec'","decimal?","declare","dedupe","default-data-readers","definline","definterface","defmacro","defmethod","defmulti","defn","defn-","defonce","defprotocol","defrecord","defstruct","deftype","delay","delay?","deliver","denominator","deref","derive","descendants","destructure","disj","disj!","dissoc","dissoc!","distinct","distinct?","doall","dorun","doseq","dosync","dotimes","doto","double","double-array","double?","doubles","drop","drop-last","drop-while","eduction","empty","empty?","ensure","ensure-reduced","enumeration-seq","error-handler","error-mode","eval","even?","every-pred","every?","ex-data","ex-info","extend","extend-protocol","extend-type","extenders","extends?","false?","ffirst","file-seq","filter","filterv","find","find-keyword","find-ns","find-protocol-impl","find-protocol-method","find-var","first","flatten","float","float-array","float?","floats","flush","fn","fn?","fnext","fnil","for","force","format","frequencies","future","future-call","future-cancel","future-cancelled?","future-done?","future?","gen-class","gen-interface","gensym","get","get-in","get-method","get-proxy-class","get-thread-bindings","get-validator","group-by","halt-when","hash","hash-combine","hash-map","hash-ordered-coll","hash-set","hash-unordered-coll","ident?","identical?","identity","if-let","if-not","if-some","ifn?","import","in-ns","inc","inc'","indexed?","init-proxy","inst-ms","inst-ms*","inst?","instance?","int","int-array","int?","integer?","interleave","intern","interpose","into","into-array","ints","io!","isa?","iterate","iterator-seq","juxt","keep","keep-indexed","key","keys","keyword","keyword?","last","lazy-cat","lazy-seq","let","letfn","line-seq","list","list*","list?","load","load-file","load-reader","load-string","loaded-libs","locking","long","long-array","longs","loop","macroexpand","macroexpand-1","make-array","make-hierarchy","map","map-entry?","map-indexed","map?","mapcat","mapv","max","max-key","memfn","memoize","merge","merge-with","meta","method-sig","methods","min","min-key","mix-collection-hash","mod","munge","name","namespace","namespace-munge","nat-int?","neg-int?","neg?","newline","next","nfirst","nil?","nnext","not","not-any?","not-empty","not-every?","not=","ns","ns-aliases","ns-imports","ns-interns","ns-map","ns-name","ns-publics","ns-refers","ns-resolve","ns-unalias","ns-unmap","nth","nthnext","nthrest","num","number?","numerator","object-array","odd?","or","parents","partial","partition","partition-all","partition-by","pcalls","peek","persistent!","pmap","pop","pop!","pop-thread-bindings","pos-int?","pos?","pr","pr-str","prefer-method","prefers","primitives-classnames","print","print-ctor","print-dup","print-method","print-simple","print-str","printf","println","println-str","prn","prn-str","promise","proxy","proxy-call-with-super","proxy-mappings","proxy-name","proxy-super","push-thread-bindings","pvalues","qualified-ident?","qualified-keyword?","qualified-symbol?","quot","rand","rand-int","rand-nth","random-sample","range","ratio?","rational?","rationalize","re-find","re-groups","re-matcher","re-matches","re-pattern","re-seq","read","read-line","read-string","reader-conditional","reader-conditional?","realized?","record?","reduce","reduce-kv","reduced","reduced?","reductions","ref","ref-history-count","ref-max-history","ref-min-history","ref-set","refer","refer-clojure","reify","release-pending-sends","rem","remove","remove-all-methods","remove-method","remove-ns","remove-watch","repeat","repeatedly","replace","replicate","require","reset!","reset-meta!","reset-vals!","resolve","rest","restart-agent","resultset-seq","reverse","reversible?","rseq","rsubseq","run!","satisfies?","second","select-keys","send","send-off","send-via","seq","seq?","seqable?","seque","sequence","sequential?","set","set-agent-send-executor!","set-agent-send-off-executor!","set-error-handler!","set-error-mode!","set-validator!","set?","short","short-array","shorts","shuffle","shutdown-agents","simple-ident?","simple-keyword?","simple-symbol?","slurp","some","some->","some->>","some-fn","some?","sort","sort-by","sorted-map","sorted-map-by","sorted-set","sorted-set-by","sorted?","special-symbol?","spit","split-at","split-with","str","string?","struct","struct-map","subs","subseq","subvec","supers","swap!","swap-vals!","symbol","symbol?","sync","tagged-literal","tagged-literal?","take","take-last","take-nth","take-while","test","the-ns","thread-bound?","time","to-array","to-array-2d","trampoline","transduce","transient","tree-seq","true?","type","unchecked-add","unchecked-add-int","unchecked-byte","unchecked-char","unchecked-dec","unchecked-dec-int","unchecked-divide-int","unchecked-double","unchecked-float","unchecked-inc","unchecked-inc-int","unchecked-int","unchecked-long","unchecked-multiply","unchecked-multiply-int","unchecked-negate","unchecked-negate-int","unchecked-remainder-int","unchecked-short","unchecked-subtract","unchecked-subtract-int","underive","unquote","unquote-splicing","unreduced","unsigned-bit-shift-right","update","update-in","update-proxy","uri?","use","uuid?","val","vals","var-get","var-set","var?","vary-meta","vec","vector","vector-of","vector?","volatile!","volatile?","vreset!","vswap!","when","when-first","when-let","when-not","when-some","while","with-bindings","with-bindings*","with-in-str","with-loading-context","with-local-vars","with-meta","with-open","with-out-str","with-precision","with-redefs","with-redefs-fn","xml-seq","zero?","zipmap"],tokenizer:{root:[{include:"@whitespace"},[/@numbers/,"number"],[/@characters/,"string"],{include:"@string"},[/[()\[\]{}]/,"@brackets"],[/\/#"(?:\.|(?:")|[^"\n])*"\/g/,"regexp"],[/[#'@^`~]/,"meta"],[/@qualifiedSymbols/,{cases:{"^:.+$":"constant","@specialForms":"keyword","@coreSymbols":"keyword","@constants":"constant","@default":"identifier"}}]],whitespace:[[/[\s,]+/,"white"],[/;.*$/,"comment"],[/\(comment\b/,"comment","@comment"]],comment:[[/\(/,"comment","@push"],[/\)/,"comment","@pop"],[/[^()]/,"comment"]],string:[[/"/,"string","@multiLineString"]],multiLineString:[[/"/,"string","@popall"],[/@escapes/,"string.escape"],[/./,"string"]]}}},47107:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return n},language:function(){return o}});var n={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\$\-\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{blockComment:["###","###"],lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:RegExp("^\\s*#region\\b"),end:RegExp("^\\s*#endregion\\b")}}},o={defaultToken:"",ignoreCase:!0,tokenPostfix:".coffee",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],regEx:/\/(?!\/\/)(?:[^\/\\]|\\.)*\/[igm]*/,keywords:["and","or","is","isnt","not","on","yes","@","no","off","true","false","null","this","new","delete","typeof","in","instanceof","return","throw","break","continue","debugger","if","else","switch","for","while","do","try","catch","finally","class","extends","super","undefined","then","unless","until","loop","of","by","when"],symbols:/[=><!~?&%|+\-*\/\^\.,\:]+/,escapes:/\\(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/\@[a-zA-Z_]\w*/,"variable.predefined"],[/[a-zA-Z_]\w*/,{cases:{this:"variable.predefined","@keywords":{token:"keyword.$0"},"@default":""}}],[/[ \t\r\n]+/,""],[/###/,"comment","@comment"],[/#.*$/,"comment"],["///",{token:"regexp",next:"@hereregexp"}],[/^(\s*)(@regEx)/,["","regexp"]],[/(\()(\s*)(@regEx)/,["@brackets","","regexp"]],[/(\,)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\=)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\:)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\[)(\s*)(@regEx)/,["@brackets","","regexp"]],[/(\!)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\&)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\|)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\?)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\{)(\s*)(@regEx)/,["@brackets","","regexp"]],[/(\;)(\s*)(@regEx)/,["","","regexp"]],[/}/,{cases:{"$S2==interpolatedstring":{token:"string",next:"@pop"},"@default":"@brackets"}}],[/[{}()\[\]]/,"@brackets"],[/@symbols/,"delimiter"],[/\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d+\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/0[0-7]+(?!\d)/,"number.octal"],[/\d+/,"number"],[/[,.]/,"delimiter"],[/"""/,"string",'@herestring."""'],[/'''/,"string","@herestring.'''"],[/"/,{cases:{"@eos":"string","@default":{token:"string",next:'@string."'}}}],[/'/,{cases:{"@eos":"string","@default":{token:"string",next:"@string.'"}}}]],string:[[/[^"'\#\\]+/,"string"],[/@escapes/,"string.escape"],[/\./,"string.escape.invalid"],[/\./,"string.escape.invalid"],[/#{/,{cases:{'$S2=="':{token:"string",next:"root.interpolatedstring"},"@default":"string"}}],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/#/,"string"]],herestring:[[/("""|''')/,{cases:{"$1==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/[^#\\'"]+/,"string"],[/['"]+/,"string"],[/@escapes/,"string.escape"],[/\./,"string.escape.invalid"],[/#{/,{token:"string.quote",next:"root.interpolatedstring"}],[/#/,"string"]],comment:[[/[^#]+/,"comment"],[/###/,"comment","@pop"],[/#/,"comment"]],hereregexp:[[/[^\\\/#]+/,"regexp"],[/\\./,"regexp"],[/#.*$/,"comment"],["///[igm]*",{token:"regexp",next:"@pop"}],[/\//,"regexp"]]}}},2100:function(e,t,i){"use strict";(0,i("88814").H)({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],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,"30277"))})},30277:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return n},language:function(){return o}});var n={comments:{blockComment:["/*","*/"],lineComment:"//"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:"(",close:")",notIn:["string"]},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}]},o={defaultToken:"",tokenPostfix:".flow",keywords:["import","require","export","forbid","native","if","else","cast","unsafe","switch","default"],types:["io","mutable","bool","int","double","string","flow","void","ref","true","false","with"],operators:["=",">","<","<=",">=","==","!","!=",":=","::=","&&","||","+","-","*","/","@","&","%",":","->","\\","$","??","^"],symbols:/[@$=><!~?:&|+\-*\\\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@keywords":"keyword","@types":"type","@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"delimiter"],[/[<>](?!@symbols)/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/((0(x|X)[0-9a-fA-F]*)|(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]]}}},43543:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return n},language:function(){return o}});var n={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]}]},o={tokenPostfix:".pats",defaultToken:"invalid",keywords:["abstype","abst0ype","absprop","absview","absvtype","absviewtype","absvt0ype","absviewt0ype","as","and","assume","begin","classdec","datasort","datatype","dataprop","dataview","datavtype","dataviewtype","do","end","extern","extype","extvar","exception","fn","fnx","fun","prfn","prfun","praxi","castfn","if","then","else","ifcase","in","infix","infixl","infixr","prefix","postfix","implmnt","implement","primplmnt","primplement","import","let","local","macdef","macrodef","nonfix","symelim","symintr","overload","of","op","rec","sif","scase","sortdef","sta","stacst","stadef","static","staload","dynload","try","tkindef","typedef","propdef","viewdef","vtypedef","viewtypedef","prval","var","prvar","when","where","with","withtype","withprop","withview","withvtype","withviewtype"],keywords_dlr:["$delay","$ldelay","$arrpsz","$arrptrsize","$d2ctype","$effmask","$effmask_ntm","$effmask_exn","$effmask_ref","$effmask_wrt","$effmask_all","$extern","$extkind","$extype","$extype_struct","$extval","$extfcall","$extmcall","$literal","$myfilename","$mylocation","$myfunction","$lst","$lst_t","$lst_vt","$list","$list_t","$list_vt","$rec","$rec_t","$rec_vt","$record","$record_t","$record_vt","$tup","$tup_t","$tup_vt","$tuple","$tuple_t","$tuple_vt","$break","$continue","$raise","$showtype","$vcopyenv_v","$vcopyenv_vt","$tempenver","$solver_assert","$solver_verify"],keywords_srp:["#if","#ifdef","#ifndef","#then","#elif","#elifdef","#elifndef","#else","#endif","#error","#prerr","#print","#assert","#undef","#define","#include","#require","#pragma","#codegen2","#codegen3"],irregular_keyword_list:["val+","val-","val","case+","case-","case","addr@","addr","fold@","free@","fix@","fix","lam@","lam","llam@","llam","viewt@ype+","viewt@ype-","viewt@ype","viewtype+","viewtype-","viewtype","view+","view-","view@","view","type+","type-","type","vtype+","vtype-","vtype","vt@ype+","vt@ype-","vt@ype","viewt@ype+","viewt@ype-","viewt@ype","viewtype+","viewtype-","viewtype","prop+","prop-","prop","type+","type-","type","t@ype","t@ype+","t@ype-","abst@ype","abstype","absviewt@ype","absvt@ype","for*","for","while*","while"],keywords_types:["bool","double","byte","int","short","char","void","unit","long","float","string","strptr"],keywords_effects:["0","fun","clo","prf","funclo","cloptr","cloref","ref","ntm","1"],operators:["@","!","|","`",":","$",".","=","#","~","..","...","=>","=<>","=/=>","=>>","=/=>>","<",">","><",".<",">.",".<>.","->","-<>"],brackets:[{open:",(",close:")",token:"delimiter.parenthesis"},{open:"`(",close:")",token:"delimiter.parenthesis"},{open:"%(",close:")",token:"delimiter.parenthesis"},{open:"'(",close:")",token:"delimiter.parenthesis"},{open:"'{",close:"}",token:"delimiter.parenthesis"},{open:"@(",close:")",token:"delimiter.parenthesis"},{open:"@{",close:"}",token:"delimiter.brace"},{open:"@[",close:"]",token:"delimiter.square"},{open:"#[",close:"]",token:"delimiter.square"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],symbols:/[=><!~?:&|+\-*\/\^%]+/,IDENTFST:/[a-zA-Z_]/,IDENTRST:/[a-zA-Z0-9_'$]/,symbolic:/[%&+-./:=@~`^|*!$#?<>]/,digit:/[0-9]/,digitseq0:/@digit*/,xdigit:/[0-9A-Za-z]/,xdigitseq0:/@xdigit*/,INTSP:/[lLuU]/,FLOATSP:/[fFlL]/,fexponent:/[eE][+-]?[0-9]+/,fexponent_bin:/[pP][+-]?[0-9]+/,deciexp:/\.[0-9]*@fexponent?/,hexiexp:/\.[0-9a-zA-Z]*@fexponent_bin?/,irregular_keywords:/val[+-]?|case[+-]?|addr\@?|fold\@|free\@|fix\@?|lam\@?|llam\@?|prop[+-]?|type[+-]?|view[+-@]?|viewt@?ype[+-]?|t@?ype[+-]?|v(iew)?t@?ype[+-]?|abst@?ype|absv(iew)?t@?ype|for\*?|while\*?/,ESCHAR:/[ntvbrfa\\\?'"\(\[\{]/,start:"root",tokenizer:{root:[{regex:/[ \t\r\n]+/,action:{token:""}},{regex:/\(\*\)/,action:{token:"invalid"}},{regex:/\(\*/,action:{token:"comment",next:"lexing_COMMENT_block_ml"}},{regex:/\(/,action:"@brackets"},{regex:/\)/,action:"@brackets"},{regex:/\[/,action:"@brackets"},{regex:/\]/,action:"@brackets"},{regex:/\{/,action:"@brackets"},{regex:/\}/,action:"@brackets"},{regex:/,\(/,action:"@brackets"},{regex:/,/,action:{token:"delimiter.comma"}},{regex:/;/,action:{token:"delimiter.semicolon"}},{regex:/@\(/,action:"@brackets"},{regex:/@\[/,action:"@brackets"},{regex:/@\{/,action:"@brackets"},{regex:/:</,action:{token:"keyword",next:"@lexing_EFFECT_commaseq0"}},{regex:/\.@symbolic+/,action:{token:"identifier.sym"}},{regex:/\.@digit*@fexponent@FLOATSP*/,action:{token:"number.float"}},{regex:/\.@digit+/,action:{token:"number.float"}},{regex:/\$@IDENTFST@IDENTRST*/,action:{cases:{"@keywords_dlr":{token:"keyword.dlr"},"@default":{token:"namespace"}}}},{regex:/\#@IDENTFST@IDENTRST*/,action:{cases:{"@keywords_srp":{token:"keyword.srp"},"@default":{token:"identifier"}}}},{regex:/%\(/,action:{token:"delimiter.parenthesis"}},{regex:/^%{(#|\^|\$)?/,action:{token:"keyword",next:"@lexing_EXTCODE",nextEmbedded:"text/javascript"}},{regex:/^%}/,action:{token:"keyword"}},{regex:/'\(/,action:{token:"delimiter.parenthesis"}},{regex:/'\[/,action:{token:"delimiter.bracket"}},{regex:/'\{/,action:{token:"delimiter.brace"}},[/(')(\\@ESCHAR|\\[xX]@xdigit+|\\@digit+)(')/,["string","string.escape","string"]],[/'[^\\']'/,"string"],[/"/,"string.quote","@lexing_DQUOTE"],{regex:/`\(/,action:"@brackets"},{regex:/\\/,action:{token:"punctuation"}},{regex:/@irregular_keywords(?!@IDENTRST)/,action:{token:"keyword"}},{regex:/@IDENTFST@IDENTRST*[<!\[]?/,action:{cases:{"@keywords":{token:"keyword"},"@keywords_types":{token:"type"},"@default":{token:"identifier"}}}},{regex:/\/\/\/\//,action:{token:"comment",next:"@lexing_COMMENT_rest"}},{regex:/\/\/.*$/,action:{token:"comment"}},{regex:/\/\*/,action:{token:"comment",next:"@lexing_COMMENT_block_c"}},{regex:/-<|=</,action:{token:"keyword",next:"@lexing_EFFECT_commaseq0"}},{regex:/@symbolic+/,action:{cases:{"@operators":"keyword","@default":"operator"}}},{regex:/0[xX]@xdigit+(@hexiexp|@fexponent_bin)@FLOATSP*/,action:{token:"number.float"}},{regex:/0[xX]@xdigit+@INTSP*/,action:{token:"number.hex"}},{regex:/0[0-7]+(?![0-9])@INTSP*/,action:{token:"number.octal"}},{regex:/@digit+(@fexponent|@deciexp)@FLOATSP*/,action:{token:"number.float"}},{regex:/@digit@digitseq0@INTSP*/,action:{token:"number.decimal"}},{regex:/@digit+@INTSP*/,action:{token:"number"}}],lexing_COMMENT_block_ml:[[/[^\(\*]+/,"comment"],[/\(\*/,"comment","@push"],[/\(\*/,"comment.invalid"],[/\*\)/,"comment","@pop"],[/\*/,"comment"]],lexing_COMMENT_block_c:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],lexing_COMMENT_rest:[[/$/,"comment","@pop"],[/.*/,"comment"]],lexing_EFFECT_commaseq0:[{regex:/@IDENTFST@IDENTRST+|@digit+/,action:{cases:{"@keywords_effects":{token:"type.effect"},"@default":{token:"identifier"}}}},{regex:/,/,action:{token:"punctuation"}},{regex:/>/,action:{token:"@rematch",next:"@pop"}}],lexing_EXTCODE:[{regex:/^%}/,action:{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}},{regex:/[^%]+/,action:""}],lexing_DQUOTE:[{regex:/"/,action:{token:"string.quote",next:"@pop"}},{regex:/(\{\$)(@IDENTFST@IDENTRST*)(\})/,action:[{token:"string.escape"},{token:"identifier"},{token:"string.escape"}]},{regex:/\\$/,action:{token:"string.escape"}},{regex:/\\(@ESCHAR|[xX]@xdigit+|@digit+)/,action:{token:"string.escape"}},{regex:/[^\\"]+/,action:{token:"string"}}]}}},11438:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return n},language:function(){return o}});var n={comments:{lineComment:"//"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}]},o={keywords:["namespace","open","as","operation","function","body","adjoint","newtype","controlled","if","elif","else","repeat","until","fixup","for","in","while","return","fail","within","apply","Adjoint","Controlled","Adj","Ctl","is","self","auto","distribute","invert","intrinsic","let","set","w/","new","not","and","or","use","borrow","using","borrowing","mutable","internal"],typeKeywords:["Unit","Int","BigInt","Double","Bool","String","Qubit","Result","Pauli","Range"],invalidKeywords:["abstract","base","bool","break","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","enum","event","explicit","extern","finally","fixed","float","foreach","goto","implicit","int","interface","lock","long","null","object","operator","out","override","params","private","protected","public","readonly","ref","sbyte","sealed","short","sizeof","stackalloc","static","string","struct","switch","this","throw","try","typeof","unit","ulong","unchecked","unsafe","ushort","virtual","void","volatile"],constants:["true","false","PauliI","PauliX","PauliY","PauliZ","One","Zero"],builtin:["X","Y","Z","H","HY","S","T","SWAP","CNOT","CCNOT","MultiX","R","RFrac","Rx","Ry","Rz","R1","R1Frac","Exp","ExpFrac","Measure","M","MultiM","Message","Length","Assert","AssertProb","AssertEqual"],operators:["and=","<-","->","*","*=","@","!","^","^=",":","::","..","==","...","=","=>",">",">=","<","<=","-","-=","!=","or=","%","%=","|","+","+=","?","/","/=","&&&","&&&=","^^^","^^^=",">>>",">>>=","<<<","<<<=","|||","|||=","~~~","_","w/","w/="],namespaceFollows:["namespace","open"],symbols:/[=><!~?:&|+\-*\/\^%@._]+/,escapes:/\\[\s\S]/,tokenizer:{root:[[/[a-zA-Z_$][\w$]*/,{cases:{"@namespaceFollows":{token:"keyword.$0",next:"@namespace"},"@typeKeywords":"type","@keywords":"keyword","@constants":"constant","@builtin":"keyword","@invalidKeywords":"invalid","@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],namespace:[{include:"@whitespace"},[/[A-Za-z]\w*/,"namespace"],[/[\.=]/,"delimiter"],["","","@pop"]],whitespace:[[/[ \t\r\n]+/,"white"],[/(\/\/).*/,"comment"]]}}},96154:function(e,t,i){"use strict";(0,i("88814").H)({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],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,"55327"))})},92284:function(e,t,i){"use strict";(0,i("88814").H)({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],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,"69366"))})},69366:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return n},language:function(){return o}});var n={wordPattern:/(unary_[@~!#%^&*()\-=+\\|:<>\/?]+)|([a-zA-Z_$][\w$]*?_=)|(`[^`]+`)|([a-zA-Z_$][\w$]*)/g,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:"'"}],folding:{markers:{start:RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),end:RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")}}},o={tokenPostfix:".scala",keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],softKeywords:["as","export","extension","end","derives","on"],constants:["true","false","null","this","super"],modifiers:["abstract","final","implicit","lazy","override","private","protected","sealed"],softModifiers:["inline","opaque","open","transparent","using"],name:/(?:[a-z_$][\w$]*|`[^`]+`)/,type:/(?:[A-Z][\w$]*)/,symbols:/[=><!~?:&|+\-*\/^\\%@#]+/,digits:/\d+(_+\d+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,escapes:/\\(?:[btnfr\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,fstring_conv:/[bBhHsScCdoxXeEfgGaAt]|[Tn](?:[HIklMSLNpzZsQ]|[BbhAaCYyjmde]|[RTrDFC])/,tokenizer:{root:[[/\braw"""/,{token:"string.quote",bracket:"@open",next:"@rawstringt"}],[/\braw"/,{token:"string.quote",bracket:"@open",next:"@rawstring"}],[/\bs"""/,{token:"string.quote",bracket:"@open",next:"@sstringt"}],[/\bs"/,{token:"string.quote",bracket:"@open",next:"@sstring"}],[/\bf""""/,{token:"string.quote",bracket:"@open",next:"@fstringt"}],[/\bf"/,{token:"string.quote",bracket:"@open",next:"@fstring"}],[/"""/,{token:"string.quote",bracket:"@open",next:"@stringt"}],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float","@allowMethod"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float","@allowMethod"],[/0[xX](@hexdigits)[Ll]?/,"number.hex","@allowMethod"],[/(@digits)[fFdD]/,"number.float","@allowMethod"],[/(@digits)[lL]?/,"number","@allowMethod"],[/\b_\*/,"key"],[/\b(_)\b/,"keyword","@allowMethod"],[/\bimport\b/,"keyword","@import"],[/\b(case)([ \t]+)(class)\b/,["keyword.modifier","white","keyword"]],[/\bcase\b/,"keyword","@case"],[/\bva[lr]\b/,"keyword","@vardef"],[/\b(def)([ \t]+)((?:unary_)?@symbols|@name(?:_=)|@name)/,["keyword","white","identifier"]],[/@name(?=[ \t]*:(?!:))/,"variable"],[/(\.)(@name|@symbols)/,["operator",{token:"@rematch",next:"@allowMethod"}]],[/([{(])(\s*)(@name(?=\s*=>))/,["@brackets","white","variable"]],[/@name/,{cases:{"@keywords":"keyword","@softKeywords":"keyword","@modifiers":"keyword.modifier","@softModifiers":"keyword.modifier","@constants":{token:"constant",next:"@allowMethod"},"@default":{token:"identifier",next:"@allowMethod"}}}],[/@type/,"type","@allowMethod"],{include:"@whitespace"},[/@[a-zA-Z_$][\w$]*(?:\.[a-zA-Z_$][\w$]*)*/,"annotation"],[/[{(]/,"@brackets"],[/[})]/,"@brackets","@allowMethod"],[/\[/,"operator.square"],[/](?!\s*(?:va[rl]|def|type)\b)/,"operator.square","@allowMethod"],[/]/,"operator.square"],[/([=-]>|<-|>:|<:|:>|<%)(?=[\s\w()[\]{},\."'`])/,"keyword"],[/@symbols/,"operator"],[/[;,\.]/,"delimiter"],[/'[a-zA-Z$][\w$]*(?!')/,"attribute.name"],[/'[^\\']'/,"string","@allowMethod"],[/(')(@escapes)(')/,["string","string.escape",{token:"string",next:"@allowMethod"}]],[/'/,"string.invalid"]],import:[[/;/,"delimiter","@pop"],[/^|$/,"","@pop"],[/[ \t]+/,"white"],[/[\n\r]+/,"white","@pop"],[/\/\*/,"comment","@comment"],[/@name|@type/,"type"],[/[(){}]/,"@brackets"],[/[[\]]/,"operator.square"],[/[\.,]/,"delimiter"]],allowMethod:[[/^|$/,"","@pop"],[/[ \t]+/,"white"],[/[\n\r]+/,"white","@pop"],[/\/\*/,"comment","@comment"],[/(?==>[\s\w([{])/,"keyword","@pop"],[/(@name|@symbols)(?=[ \t]*[[({"'`]|[ \t]+(?:[+-]?\.?\d|\w))/,{cases:{"@keywords":{token:"keyword",next:"@pop"},"->|<-|>:|<:|<%":{token:"keyword",next:"@pop"},"@default":{token:"@rematch",next:"@pop"}}}],["","","@pop"]],comment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@push"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],case:[[/\b_\*/,"key"],[/\b(_|true|false|null|this|super)\b/,"keyword","@allowMethod"],[/\bif\b|=>/,"keyword","@pop"],[/`[^`]+`/,"identifier","@allowMethod"],[/@name/,"variable","@allowMethod"],[/:::?|\||@(?![a-z_$])/,"keyword"],{include:"@root"}],vardef:[[/\b_\*/,"key"],[/\b(_|true|false|null|this|super)\b/,"keyword"],[/@name/,"variable"],[/:::?|\||@(?![a-z_$])/,"keyword"],[/=|:(?!:)/,"operator","@pop"],[/$/,"white","@pop"],{include:"@root"}],string:[[/[^\\"\n\r]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}]],stringt:[[/[^\\"\n\r]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"(?=""")/,"string"],[/"""/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/"/,"string"]],fstring:[[/@escapes/,"string.escape"],[/"/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/\$\$/,"string"],[/(\$)([a-z_]\w*)/,["operator","identifier"]],[/\$\{/,"operator","@interp"],[/%%/,"string"],[/(%)([\-#+ 0,(])(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,["metatag","keyword.modifier","number","metatag"]],[/(%)(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,["metatag","number","metatag"]],[/(%)([\-#+ 0,(])(@fstring_conv)/,["metatag","keyword.modifier","metatag"]],[/(%)(@fstring_conv)/,["metatag","metatag"]],[/./,"string"]],fstringt:[[/@escapes/,"string.escape"],[/"(?=""")/,"string"],[/"""/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/\$\$/,"string"],[/(\$)([a-z_]\w*)/,["operator","identifier"]],[/\$\{/,"operator","@interp"],[/%%/,"string"],[/(%)([\-#+ 0,(])(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,["metatag","keyword.modifier","number","metatag"]],[/(%)(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,["metatag","number","metatag"]],[/(%)([\-#+ 0,(])(@fstring_conv)/,["metatag","keyword.modifier","metatag"]],[/(%)(@fstring_conv)/,["metatag","metatag"]],[/./,"string"]],sstring:[[/@escapes/,"string.escape"],[/"/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/\$\$/,"string"],[/(\$)([a-z_]\w*)/,["operator","identifier"]],[/\$\{/,"operator","@interp"],[/./,"string"]],sstringt:[[/@escapes/,"string.escape"],[/"(?=""")/,"string"],[/"""/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/\$\$/,"string"],[/(\$)([a-z_]\w*)/,["operator","identifier"]],[/\$\{/,"operator","@interp"],[/./,"string"]],interp:[[/{/,"operator","@push"],[/}/,"operator","@pop"],{include:"@root"}],rawstring:[[/[^"]/,"string"],[/"/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}]],rawstringt:[[/[^"]/,"string"],[/"(?=""")/,"string"],[/"""/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/"/,"string"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]]}}},7374:function(e,t,i){"use strict";i.d(t,{N:function(){return o}});var n=i("40013");function o(e,t){e instanceof n.Z?(e.setFontFamily(t.getMassagedFontFamily()),e.setFontWeight(t.fontWeight),e.setFontSize(t.fontSize),e.setFontFeatureSettings(t.fontFeatureSettings),e.setFontVariationSettings(t.fontVariationSettings),e.setLineHeight(t.lineHeight),e.setLetterSpacing(t.letterSpacing)):(e.style.fontFamily=t.getMassagedFontFamily(),e.style.fontWeight=t.fontWeight,e.style.fontSize=t.fontSize+"px",e.style.fontFeatureSettings=t.fontFeatureSettings,e.style.fontVariationSettings=t.fontVariationSettings,e.style.lineHeight=t.lineHeight+"px",e.style.letterSpacing=t.letterSpacing+"px")}},92013:function(e,t,i){"use strict";i.d(t,{Iq:function(){return v},ZP:function(){return m},rp:function(){return S},sB:function(){return f}});var n,o=i("92011"),r=i("55497"),s=i("12622"),a=i("70668"),l=i("83112"),d=i("39372"),c=i("55952"),h=i("31794"),u=i("71461");class g{constructor(e=null){this.hitTarget=e,this.type=0}}class p{get hitTarget(){return this.spanNode}constructor(e,t,i){this.position=e,this.spanNode=t,this.injectedText=i,this.type=1}}(n||(n={})).createFromDOMInfo=function(e,t,i){let n=e.getPositionFromDOMInfo(t,i);return n?new p(n,t,null):new g(t)};class f{constructor(e,t){this.lastViewCursorsRenderData=e,this.lastTextareaPosition=t}}class m{static _deduceRage(e,t=null){return!t&&e?new l.e(e.lineNumber,e.column,e.lineNumber,e.column):null!=t?t:null}static createUnknown(e,t,i){return{type:0,element:e,mouseColumn:t,position:i,range:this._deduceRage(i)}}static createTextarea(e,t){return{type:1,element:e,mouseColumn:t,position:null,range:null}}static createMargin(e,t,i,n,o,r){return{type:e,element:t,mouseColumn:i,position:n,range:o,detail:r}}static createViewZone(e,t,i,n,o){return{type:e,element:t,mouseColumn:i,position:n,range:this._deduceRage(n),detail:o}}static createContentText(e,t,i,n,o){return{type:6,element:e,mouseColumn:t,position:i,range:this._deduceRage(i,n),detail:o}}static createContentEmpty(e,t,i,n){return{type:7,element:e,mouseColumn:t,position:i,range:this._deduceRage(i),detail:n}}static createContentWidget(e,t,i){return{type:9,element:e,mouseColumn:t,position:null,range:null,detail:i}}static createScrollbar(e,t,i){return{type:11,element:e,mouseColumn:t,position:i,range:this._deduceRage(i)}}static createOverlayWidget(e,t,i){return{type:12,element:e,mouseColumn:t,position:null,range:null,detail:i}}static createOutsideEditor(e,t,i,n){return{type:13,element:null,mouseColumn:e,position:t,range:this._deduceRage(t),outsidePosition:i,outsideDistance:n}}static _typeToString(e){return 1===e?"TEXTAREA":2===e?"GUTTER_GLYPH_MARGIN":3===e?"GUTTER_LINE_NUMBERS":4===e?"GUTTER_LINE_DECORATIONS":5===e?"GUTTER_VIEW_ZONE":6===e?"CONTENT_TEXT":7===e?"CONTENT_EMPTY":8===e?"CONTENT_VIEW_ZONE":9===e?"CONTENT_WIDGET":10===e?"OVERVIEW_RULER":11===e?"SCROLLBAR":12===e?"OVERLAY_WIDGET":"UNKNOWN"}static toString(e){return this._typeToString(e.type)+": "+e.position+" - "+e.range+" - "+JSON.stringify(e.detail)}}class _{static isTextArea(e){return 2===e.length&&3===e[0]&&7===e[1]}static isChildOfViewLines(e){return e.length>=4&&3===e[0]&&8===e[3]}static isStrictChildOfViewLines(e){return e.length>4&&3===e[0]&&8===e[3]}static isChildOfScrollableElement(e){return e.length>=2&&3===e[0]&&6===e[1]}static isChildOfMinimap(e){return e.length>=2&&3===e[0]&&9===e[1]}static isChildOfContentWidgets(e){return e.length>=4&&3===e[0]&&1===e[3]}static isChildOfOverflowGuard(e){return e.length>=1&&3===e[0]}static isChildOfOverflowingContentWidgets(e){return e.length>=1&&2===e[0]}static isChildOfOverlayWidgets(e){return e.length>=2&&3===e[0]&&4===e[1]}static isChildOfOverflowingOverlayWidgets(e){return e.length>=1&&5===e[0]}}class v{constructor(e,t,i){this.viewModel=e.viewModel;let n=e.configuration.options;this.layoutInfo=n.get(145),this.viewDomNode=t.viewDomNode,this.lineHeight=n.get(67),this.stickyTabStops=n.get(116),this.typicalHalfwidthCharacterWidth=n.get(50).typicalHalfwidthCharacterWidth,this.lastRenderData=i,this._context=e,this._viewHelper=t}getZoneAtCoord(e){return v.getZoneAtCoord(this._context,e)}static getZoneAtCoord(e,t){let i=e.viewLayout.getWhitespaceAtVerticalOffset(t);if(i){let n;let o=i.verticalOffset+i.height/2,r=e.viewModel.getLineCount(),s=null,l=null;return i.afterLineNumber!==r&&(l=new a.L(i.afterLineNumber+1,1)),i.afterLineNumber>0&&(s=new a.L(i.afterLineNumber,e.viewModel.getLineMaxColumn(i.afterLineNumber))),n=null===l?s:null===s?l:t<o?s:l,{viewZoneId:i.id,afterLineNumber:i.afterLineNumber,positionBefore:s,positionAfter:l,position:n}}return null}getFullLineRangeAtCoord(e){if(this._context.viewLayout.isAfterLines(e)){let e=this._context.viewModel.getLineCount(),t=this._context.viewModel.getLineMaxColumn(e);return{range:new l.e(e,t,e,t),isAfterLines:!0}}let t=this._context.viewLayout.getLineNumberAtVerticalOffset(e),i=this._context.viewModel.getLineMaxColumn(t);return{range:new l.e(t,1,t,i),isAfterLines:!1}}getLineNumberAtVerticalOffset(e){return this._context.viewLayout.getLineNumberAtVerticalOffset(e)}isAfterLines(e){return this._context.viewLayout.isAfterLines(e)}isInTopPadding(e){return this._context.viewLayout.isInTopPadding(e)}isInBottomPadding(e){return this._context.viewLayout.isInBottomPadding(e)}getVerticalOffsetForLineNumber(e){return this._context.viewLayout.getVerticalOffsetForLineNumber(e)}findAttribute(e,t){return v._findAttribute(e,t,this._viewHelper.viewDomNode)}static _findAttribute(e,t,i){for(;e&&e!==e.ownerDocument.body;){if(e.hasAttribute&&e.hasAttribute(t))return e.getAttribute(t);if(e===i)break;e=e.parentNode}return null}getLineWidth(e){return this._viewHelper.getLineWidth(e)}visibleRangeForPosition(e,t){return this._viewHelper.visibleRangeForPosition(e,t)}getPositionFromDOMInfo(e,t){return this._viewHelper.getPositionFromDOMInfo(e,t)}getCurrentScrollTop(){return this._context.viewLayout.getCurrentScrollTop()}getCurrentScrollLeft(){return this._context.viewLayout.getCurrentScrollLeft()}}class b{constructor(e,t,i,n){this.editorPos=t,this.pos=i,this.relativePos=n,this.mouseVerticalOffset=Math.max(0,e.getCurrentScrollTop()+this.relativePos.y),this.mouseContentHorizontalOffset=e.getCurrentScrollLeft()+this.relativePos.x-e.layoutInfo.contentLeft,this.isInMarginArea=this.relativePos.x<e.layoutInfo.contentLeft&&this.relativePos.x>=e.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,S._getMouseColumn(this.mouseContentHorizontalOffset,e.typicalHalfwidthCharacterWidth))}}class w extends b{get target(){return this._useHitTestTarget?this.hitTestResult.value.hitTarget:this._eventTarget}get targetPath(){return this._targetPathCacheElement!==this.target&&(this._targetPathCacheElement=this.target,this._targetPathCacheValue=r.K.collect(this.target,this._ctx.viewDomNode)),this._targetPathCacheValue}constructor(e,t,i,n,o){super(e,t,i,n),this.hitTestResult=new u.o(()=>S.doHitTest(this._ctx,this)),this._targetPathCacheElement=null,this._targetPathCacheValue=new Uint8Array(0),this._ctx=e,this._eventTarget=o;let r=!!this._eventTarget;this._useHitTestTarget=!r}toString(){return`pos(${this.pos.x},${this.pos.y}), editorPos(${this.editorPos.x},${this.editorPos.y}), relativePos(${this.relativePos.x},${this.relativePos.y}), mouseVerticalOffset: ${this.mouseVerticalOffset}, mouseContentHorizontalOffset: ${this.mouseContentHorizontalOffset}
3
3
  target: ${this.target?this.target.outerHTML:null}`}get wouldBenefitFromHitTestTargetSwitch(){return!this._useHitTestTarget&&null!==this.hitTestResult.value.hitTarget&&this.target!==this.hitTestResult.value.hitTarget}switchToHitTestTarget(){this._useHitTestTarget=!0}_getMouseColumn(e=null){return e&&e.column<this._ctx.viewModel.getLineMaxColumn(e.lineNumber)?d.i.visibleColumnFromColumn(this._ctx.viewModel.getLineContent(e.lineNumber),e.column,this._ctx.viewModel.model.getOptions().tabSize)+1:this.mouseColumn}fulfillUnknown(e=null){return m.createUnknown(this.target,this._getMouseColumn(e),e)}fulfillTextarea(){return m.createTextarea(this.target,this._getMouseColumn())}fulfillMargin(e,t,i,n){return m.createMargin(e,this.target,this._getMouseColumn(t),t,i,n)}fulfillViewZone(e,t,i){return m.createViewZone(e,this.target,this._getMouseColumn(t),t,i)}fulfillContentText(e,t,i){return m.createContentText(this.target,this._getMouseColumn(e),e,t,i)}fulfillContentEmpty(e,t){return m.createContentEmpty(this.target,this._getMouseColumn(e),e,t)}fulfillContentWidget(e){return m.createContentWidget(this.target,this._getMouseColumn(),e)}fulfillScrollbar(e){return m.createScrollbar(this.target,this._getMouseColumn(e),e)}fulfillOverlayWidget(e){return m.createOverlayWidget(this.target,this._getMouseColumn(),e)}}let C={isAfterLines:!0};function y(e){return{isAfterLines:!1,horizontalDistanceToText:e}}class S{constructor(e,t){this._context=e,this._viewHelper=t}mouseTargetIsWidget(e){let t=e.target,i=r.K.collect(t,this._viewHelper.viewDomNode);return!!(_.isChildOfContentWidgets(i)||_.isChildOfOverflowingContentWidgets(i)||_.isChildOfOverlayWidgets(i)||_.isChildOfOverflowingOverlayWidgets(i))||!1}createMouseTarget(e,t,i,n,o){let r=new v(this._context,this._viewHelper,e),s=new w(r,t,i,n,o);try{let e=S._createMouseTarget(r,s);if(6===e.type&&r.stickyTabStops&&null!==e.position){let t=S._snapToSoftTabBoundary(e.position,r.viewModel),i=l.e.fromPositions(t,t).plusRange(e.range);return s.fulfillContentText(t,i,e.detail)}return e}catch(e){return s.fulfillUnknown()}}static _createMouseTarget(e,t){if(null===t.target)return t.fulfillUnknown();let i=null;return!_.isChildOfOverflowGuard(t.targetPath)&&!_.isChildOfOverflowingContentWidgets(t.targetPath)&&!_.isChildOfOverflowingOverlayWidgets(t.targetPath)&&(i=i||t.fulfillUnknown()),(i=(i=(i=(i=(i=(i=(i=(i=(i=(i=i||S._hitTestContentWidget(e,t))||S._hitTestOverlayWidget(e,t))||S._hitTestMinimap(e,t))||S._hitTestScrollbarSlider(e,t))||S._hitTestViewZone(e,t))||S._hitTestMargin(e,t))||S._hitTestViewCursor(e,t))||S._hitTestTextArea(e,t))||S._hitTestViewLines(e,t))||S._hitTestScrollbar(e,t))||t.fulfillUnknown()}static _hitTestContentWidget(e,t){if(_.isChildOfContentWidgets(t.targetPath)||_.isChildOfOverflowingContentWidgets(t.targetPath)){let i=e.findAttribute(t.target,"widgetId");return i?t.fulfillContentWidget(i):t.fulfillUnknown()}return null}static _hitTestOverlayWidget(e,t){if(_.isChildOfOverlayWidgets(t.targetPath)||_.isChildOfOverflowingOverlayWidgets(t.targetPath)){let i=e.findAttribute(t.target,"widgetId");return i?t.fulfillOverlayWidget(i):t.fulfillUnknown()}return null}static _hitTestViewCursor(e,t){if(t.target){for(let i of e.lastRenderData.lastViewCursorsRenderData)if(t.target===i.domNode)return t.fulfillContentText(i.position,null,{mightBeForeignElement:!1,injectedText:null})}if(t.isInContentArea){let i=e.lastRenderData.lastViewCursorsRenderData,n=t.mouseContentHorizontalOffset,o=t.mouseVerticalOffset;for(let r of i){if(n<r.contentLeft||n>r.contentLeft+r.width)continue;let i=e.getVerticalOffsetForLineNumber(r.position.lineNumber);if(i<=o&&o<=i+r.height)return t.fulfillContentText(r.position,null,{mightBeForeignElement:!1,injectedText:null})}}return null}static _hitTestViewZone(e,t){let i=e.getZoneAtCoord(t.mouseVerticalOffset);if(i){let e=t.isInContentArea?8:5;return t.fulfillViewZone(e,i.position,i)}return null}static _hitTestTextArea(e,t){if(_.isTextArea(t.targetPath))return e.lastRenderData.lastTextareaPosition?t.fulfillContentText(e.lastRenderData.lastTextareaPosition,null,{mightBeForeignElement:!1,injectedText:null}):t.fulfillTextarea();return null}static _hitTestMargin(e,t){if(t.isInMarginArea){let i=e.getFullLineRangeAtCoord(t.mouseVerticalOffset),n=i.range.getStartPosition(),o=Math.abs(t.relativePos.x),r={isAfterLines:i.isAfterLines,glyphMarginLeft:e.layoutInfo.glyphMarginLeft,glyphMarginWidth:e.layoutInfo.glyphMarginWidth,lineNumbersWidth:e.layoutInfo.lineNumbersWidth,offsetX:o};if((o-=e.layoutInfo.glyphMarginLeft)<=e.layoutInfo.glyphMarginWidth){let s=e.viewModel.coordinatesConverter.convertViewPositionToModelPosition(i.range.getStartPosition()),a=e.viewModel.glyphLanes.getLanesAtLine(s.lineNumber);return r.glyphMarginLane=a[Math.floor(o/e.lineHeight)],t.fulfillMargin(2,n,i.range,r)}return(o-=e.layoutInfo.glyphMarginWidth)<=e.layoutInfo.lineNumbersWidth?t.fulfillMargin(3,n,i.range,r):(o-=e.layoutInfo.lineNumbersWidth,t.fulfillMargin(4,n,i.range,r))}return null}static _hitTestViewLines(e,t){if(!_.isChildOfViewLines(t.targetPath))return null;if(e.isInTopPadding(t.mouseVerticalOffset))return t.fulfillContentEmpty(new a.L(1,1),C);if(e.isAfterLines(t.mouseVerticalOffset)||e.isInBottomPadding(t.mouseVerticalOffset)){let i=e.viewModel.getLineCount(),n=e.viewModel.getLineMaxColumn(i);return t.fulfillContentEmpty(new a.L(i,n),C)}if(_.isStrictChildOfViewLines(t.targetPath)){let i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset);if(0===e.viewModel.getLineLength(i)){let n=e.getLineWidth(i),o=y(t.mouseContentHorizontalOffset-n);return t.fulfillContentEmpty(new a.L(i,1),o)}let n=e.getLineWidth(i);if(t.mouseContentHorizontalOffset>=n){let o=y(t.mouseContentHorizontalOffset-n),r=new a.L(i,e.viewModel.getLineMaxColumn(i));return t.fulfillContentEmpty(r,o)}}let i=t.hitTestResult.value;return 1===i.type?S.createMouseTargetFromHitTestPosition(e,t,i.spanNode,i.position,i.injectedText):t.wouldBenefitFromHitTestTargetSwitch?(t.switchToHitTestTarget(),this._createMouseTarget(e,t)):t.fulfillUnknown()}static _hitTestMinimap(e,t){if(_.isChildOfMinimap(t.targetPath)){let i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),n=e.viewModel.getLineMaxColumn(i);return t.fulfillScrollbar(new a.L(i,n))}return null}static _hitTestScrollbarSlider(e,t){if(_.isChildOfScrollableElement(t.targetPath)&&t.target&&1===t.target.nodeType){let i=t.target.className;if(i&&/\b(slider|scrollbar)\b/.test(i)){let i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),n=e.viewModel.getLineMaxColumn(i);return t.fulfillScrollbar(new a.L(i,n))}}return null}static _hitTestScrollbar(e,t){if(_.isChildOfScrollableElement(t.targetPath)){let i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),n=e.viewModel.getLineMaxColumn(i);return t.fulfillScrollbar(new a.L(i,n))}return null}getMouseColumn(e){let t=this._context.configuration.options,i=t.get(145),n=this._context.viewLayout.getCurrentScrollLeft()+e.x-i.contentLeft;return S._getMouseColumn(n,t.get(50).typicalHalfwidthCharacterWidth)}static _getMouseColumn(e,t){return e<0?1:Math.round(e/t)+1}static createMouseTargetFromHitTestPosition(e,t,i,n,o){let r=n.lineNumber,s=n.column,d=e.getLineWidth(r);if(t.mouseContentHorizontalOffset>d){let e=y(t.mouseContentHorizontalOffset-d);return t.fulfillContentEmpty(n,e)}let h=e.visibleRangeForPosition(r,s);if(!h)return t.fulfillUnknown(n);let u=h.left;if(1>Math.abs(t.mouseContentHorizontalOffset-u))return t.fulfillContentText(n,null,{mightBeForeignElement:!!o,injectedText:o});let g=[];if(g.push({offset:h.left,column:s}),s>1){let t=e.visibleRangeForPosition(r,s-1);t&&g.push({offset:t.left,column:s-1})}if(s<e.viewModel.getLineMaxColumn(r)){let t=e.visibleRangeForPosition(r,s+1);t&&g.push({offset:t.left,column:s+1})}g.sort((e,t)=>e.offset-t.offset);let p=t.pos.toClientCoordinates(c.Jj(e.viewDomNode)),f=i.getBoundingClientRect(),m=f.left<=p.clientX&&p.clientX<=f.right,_=null;for(let e=1;e<g.length;e++){let i=g[e-1],o=g[e];if(i.offset<=t.mouseContentHorizontalOffset&&t.mouseContentHorizontalOffset<=o.offset){_=new l.e(r,i.column,r,o.column);let e=Math.abs(i.offset-t.mouseContentHorizontalOffset);n=e<Math.abs(o.offset-t.mouseContentHorizontalOffset)?new a.L(r,i.column):new a.L(r,o.column);break}}return t.fulfillContentText(n,_,{mightBeForeignElement:!m||!!o,injectedText:o})}static _doHitTestWithCaretRangeFromPoint(e,t){let i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),n=e.getVerticalOffsetForLineNumber(i),r=n+e.lineHeight;if(!(i===e.viewModel.getLineCount()&&t.mouseVerticalOffset>r)){let i=t.pos.y+(Math.floor((n+r)/2)-t.mouseVerticalOffset);i<=t.editorPos.y&&(i=t.editorPos.y+1),i>=t.editorPos.y+t.editorPos.height&&(i=t.editorPos.y+t.editorPos.height-1);let s=new o.YN(t.pos.x,i),a=this._actualDoHitTestWithCaretRangeFromPoint(e,s.toClientCoordinates(c.Jj(e.viewDomNode)));if(1===a.type)return a}return this._actualDoHitTestWithCaretRangeFromPoint(e,t.pos.toClientCoordinates(c.Jj(e.viewDomNode)))}static _actualDoHitTestWithCaretRangeFromPoint(e,t){let i;let o=c.Ay(e.viewDomNode);if(!(i=o?void 0===o.caretRangeFromPoint?function(e,t,i){let n=document.createRange(),o=e.elementFromPoint(t,i);if(null!==o){let e;for(;o&&o.firstChild&&o.firstChild.nodeType!==o.firstChild.TEXT_NODE&&o.lastChild&&o.lastChild.firstChild;)o=o.lastChild;let i=o.getBoundingClientRect(),r=c.Jj(o),s=r.getComputedStyle(o,null).getPropertyValue("font-style"),a=r.getComputedStyle(o,null).getPropertyValue("font-variant"),l=r.getComputedStyle(o,null).getPropertyValue("font-weight"),d=r.getComputedStyle(o,null).getPropertyValue("font-size"),h=r.getComputedStyle(o,null).getPropertyValue("line-height"),u=r.getComputedStyle(o,null).getPropertyValue("font-family"),g=`${s} ${a} ${l} ${d}/${h} ${u}`,p=o.innerText,f=i.left,m=0;if(t>i.left+i.width)m=p.length;else{let i=x.getInstance();for(let n=0;n<p.length+1;n++){if(t<(f+=e=i.getCharWidth(p.charAt(n),g)/2)){m=n;break}f+=e}}n.setStart(o.firstChild,m),n.setEnd(o.firstChild,m)}return n}(o,t.clientX,t.clientY):o.caretRangeFromPoint(t.clientX,t.clientY):e.viewDomNode.ownerDocument.caretRangeFromPoint(t.clientX,t.clientY))||!i.startContainer)return new g;let r=i.startContainer;if(r.nodeType===r.TEXT_NODE){let t=r.parentNode,o=t?t.parentNode:null,a=o?o.parentNode:null;return(a&&a.nodeType===a.ELEMENT_NODE?a.className:null)===s.Nt.CLASS_NAME?n.createFromDOMInfo(e,t,i.startOffset):new g(r.parentNode)}if(r.nodeType===r.ELEMENT_NODE){let t=r.parentNode,i=t?t.parentNode:null;return(i&&i.nodeType===i.ELEMENT_NODE?i.className:null)===s.Nt.CLASS_NAME?n.createFromDOMInfo(e,r,r.textContent.length):new g(r)}return new g}static _doHitTestWithCaretPositionFromPoint(e,t){let i=e.viewDomNode.ownerDocument.caretPositionFromPoint(t.clientX,t.clientY);if(i.offsetNode.nodeType===i.offsetNode.TEXT_NODE){let t=i.offsetNode.parentNode,o=t?t.parentNode:null,r=o?o.parentNode:null;return(r&&r.nodeType===r.ELEMENT_NODE?r.className:null)===s.Nt.CLASS_NAME?n.createFromDOMInfo(e,i.offsetNode.parentNode,i.offset):new g(i.offsetNode.parentNode)}if(i.offsetNode.nodeType===i.offsetNode.ELEMENT_NODE){let t=i.offsetNode.parentNode,o=t&&t.nodeType===t.ELEMENT_NODE?t.className:null,r=t?t.parentNode:null,a=r&&r.nodeType===r.ELEMENT_NODE?r.className:null;if(o===s.Nt.CLASS_NAME){let t=i.offsetNode.childNodes[Math.min(i.offset,i.offsetNode.childNodes.length-1)];if(t)return n.createFromDOMInfo(e,t,0)}else if(a===s.Nt.CLASS_NAME)return n.createFromDOMInfo(e,i.offsetNode,0)}return new g(i.offsetNode)}static _snapToSoftTabBoundary(e,t){let i=t.getLineContent(e.lineNumber),{tabSize:n}=t.model.getOptions(),o=h.l.atomicPosition(i,e.column-1,n,2);return -1!==o?new a.L(e.lineNumber,o+1):e}static doHitTest(e,t){let i=new g;if("function"==typeof e.viewDomNode.ownerDocument.caretRangeFromPoint?i=this._doHitTestWithCaretRangeFromPoint(e,t):e.viewDomNode.ownerDocument.caretPositionFromPoint&&(i=this._doHitTestWithCaretPositionFromPoint(e,t.pos.toClientCoordinates(c.Jj(e.viewDomNode)))),1===i.type){let t=e.viewModel.getInjectedTextAt(i.position),n=e.viewModel.normalizePosition(i.position,2);(t||!n.equals(i.position))&&(i=new p(n,i.spanNode,t))}return i}}class x{static getInstance(){return!x._INSTANCE&&(x._INSTANCE=new x),x._INSTANCE}constructor(){this._cache={},this._canvas=document.createElement("canvas")}getCharWidth(e,t){let i=e+t;if(this._cache[i])return this._cache[i];let n=this._canvas.getContext("2d");n.font=t;let o=n.measureText(e).width;return this._cache[i]=o,o}}x._INSTANCE=null},87294:function(e,t,i){"use strict";i.d(t,{$:function(){return n}});let n=(0,i("95449").yh)("codeEditorService")},55103:function(e,t,i){"use strict";i.d(t,{CH:function(){return d},CR:function(){return a},D4:function(){return l},u7:function(){return r},xh:function(){return o},yu:function(){return s}});class n{constructor(e,t){this._restrictedRenderingContextBrand=void 0,this._viewLayout=e,this.viewportData=t,this.scrollWidth=this._viewLayout.getScrollWidth(),this.scrollHeight=this._viewLayout.getScrollHeight(),this.visibleRange=this.viewportData.visibleRange,this.bigNumbersDelta=this.viewportData.bigNumbersDelta;let i=this._viewLayout.getCurrentViewport();this.scrollTop=i.top,this.scrollLeft=i.left,this.viewportWidth=i.width,this.viewportHeight=i.height}getScrolledTopFromAbsoluteTop(e){return e-this.scrollTop}getVerticalOffsetForLineNumber(e,t){return this._viewLayout.getVerticalOffsetForLineNumber(e,t)}getVerticalOffsetAfterLineNumber(e,t){return this._viewLayout.getVerticalOffsetAfterLineNumber(e,t)}getDecorationsInViewport(){return this.viewportData.getDecorationsInViewport()}}class o extends n{constructor(e,t,i){super(e,t),this._renderingContextBrand=void 0,this._viewLines=i}linesVisibleRangesForRange(e,t){return this._viewLines.linesVisibleRangesForRange(e,t)}visibleRangeForPosition(e){return this._viewLines.visibleRangeForPosition(e)}}class r{constructor(e,t,i,n){this.outsideRenderedLine=e,this.lineNumber=t,this.ranges=i,this.continuesOnNextLine=n}}class s{static from(e){let t=Array(e.length);for(let i=0,n=e.length;i<n;i++){let n=e[i];t[i]=new s(n.left,n.width)}return t}constructor(e,t){this._horizontalRangeBrand=void 0,this.left=Math.round(e),this.width=Math.round(t)}toString(){return`[${this.left},${this.width}]`}}class a{constructor(e,t){this._floatHorizontalRangeBrand=void 0,this.left=e,this.width=t}toString(){return`[${this.left},${this.width}]`}static compare(e,t){return e.left-t.left}}class l{constructor(e,t){this.outsideRenderedLine=e,this.originalLeft=t,this.left=Math.round(this.originalLeft)}}class d{constructor(e,t){this.outsideRenderedLine=e,this.ranges=t}}},69834:function(e,t,i){"use strict";i.d(t,{N:function(){return T}}),i("69926");var n=i("55952"),o=i("40013"),r=i("28869"),s=i("37764"),a=i("97147"),l=i("71482"),d=i("89640"),c=i("55497"),h=i("97295"),u=i("83112"),g=i("91754"),p=i("44432"),f=i("3907"),m=i("94590"),_=i("98681"),v=i("19711"),b=i("99192"),w=i("74927"),C=i("7005"),y=i("68645");class S{constructor(e,t,i){let n=e.options,o=n.get(143),r=n.get(145),s=r.minimap,a=n.get(50),l=n.get(73);this.renderMinimap=s.renderMinimap,this.size=l.size,this.minimapHeightIsEditorHeight=s.minimapHeightIsEditorHeight,this.scrollBeyondLastLine=n.get(105),this.paddingTop=n.get(84).top,this.paddingBottom=n.get(84).bottom,this.showSlider=l.showSlider,this.autohide=l.autohide,this.pixelRatio=o,this.typicalHalfwidthCharacterWidth=a.typicalHalfwidthCharacterWidth,this.lineHeight=n.get(67),this.minimapLeft=s.minimapLeft,this.minimapWidth=s.minimapWidth,this.minimapHeight=r.height,this.canvasInnerWidth=s.minimapCanvasInnerWidth,this.canvasInnerHeight=s.minimapCanvasInnerHeight,this.canvasOuterWidth=s.minimapCanvasOuterWidth,this.canvasOuterHeight=s.minimapCanvasOuterHeight,this.isSampling=s.minimapIsSampling,this.editorHeight=r.height,this.fontScale=s.minimapScale,this.minimapLineHeight=s.minimapLineHeight,this.minimapCharWidth=1*this.fontScale,this.sectionHeaderFontFamily=y.r,this.sectionHeaderFontSize=l.sectionHeaderFontSize*o,this.sectionHeaderFontColor=S._getSectionHeaderColor(t,i.getColor(1)),this.charRenderer=(0,w.M)(()=>b.p.create(this.fontScale,a.fontFamily)),this.defaultBackgroundColor=i.getColor(2),this.backgroundColor=S._getMinimapBackground(t,this.defaultBackgroundColor),this.foregroundAlpha=S._getMinimapForegroundOpacity(t)}static _getMinimapBackground(e,t){let i=e.getColor(m.kVY);return i?new g.h(i.rgba.r,i.rgba.g,i.rgba.b,Math.round(255*i.rgba.a)):t}static _getMinimapForegroundOpacity(e){let t=e.getColor(m.Itd);return t?g.h._clamp(Math.round(255*t.rgba.a)):255}static _getSectionHeaderColor(e,t){let i=e.getColor(m.NOs);return i?new g.h(i.rgba.r,i.rgba.g,i.rgba.b,Math.round(255*i.rgba.a)):t}equals(e){return this.renderMinimap===e.renderMinimap&&this.size===e.size&&this.minimapHeightIsEditorHeight===e.minimapHeightIsEditorHeight&&this.scrollBeyondLastLine===e.scrollBeyondLastLine&&this.paddingTop===e.paddingTop&&this.paddingBottom===e.paddingBottom&&this.showSlider===e.showSlider&&this.autohide===e.autohide&&this.pixelRatio===e.pixelRatio&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.lineHeight===e.lineHeight&&this.minimapLeft===e.minimapLeft&&this.minimapWidth===e.minimapWidth&&this.minimapHeight===e.minimapHeight&&this.canvasInnerWidth===e.canvasInnerWidth&&this.canvasInnerHeight===e.canvasInnerHeight&&this.canvasOuterWidth===e.canvasOuterWidth&&this.canvasOuterHeight===e.canvasOuterHeight&&this.isSampling===e.isSampling&&this.editorHeight===e.editorHeight&&this.fontScale===e.fontScale&&this.minimapLineHeight===e.minimapLineHeight&&this.minimapCharWidth===e.minimapCharWidth&&this.sectionHeaderFontSize===e.sectionHeaderFontSize&&this.defaultBackgroundColor&&this.defaultBackgroundColor.equals(e.defaultBackgroundColor)&&this.backgroundColor&&this.backgroundColor.equals(e.backgroundColor)&&this.foregroundAlpha===e.foregroundAlpha}}class x{constructor(e,t,i,n,o,r,s,a,l){this.scrollTop=e,this.scrollHeight=t,this.sliderNeeded=i,this._computedSliderRatio=n,this.sliderTop=o,this.sliderHeight=r,this.topPaddingLineCount=s,this.startLineNumber=a,this.endLineNumber=l}getDesiredScrollTopFromDelta(e){return Math.round(this.scrollTop+e/this._computedSliderRatio)}getDesiredScrollTopFromTouchLocation(e){return Math.round((e-this.sliderHeight/2)/this._computedSliderRatio)}intersectWithViewport(e){let t=Math.max(this.startLineNumber,e.startLineNumber),i=Math.min(this.endLineNumber,e.endLineNumber);return t>i?null:[t,i]}getYForLineNumber(e,t){return+(e-this.startLineNumber+this.topPaddingLineCount)*t}static create(e,t,i,n,o,r,s,a,l,d,c){let h,u;let g=e.pixelRatio,p=e.minimapLineHeight,f=Math.floor(e.canvasInnerHeight/p),m=e.lineHeight;if(e.minimapHeightIsEditorHeight){let t=a*e.lineHeight+e.paddingTop+e.paddingBottom;e.scrollBeyondLastLine&&(t+=Math.max(0,o-e.lineHeight-e.paddingBottom));let i=Math.max(1,Math.floor(o*o/t)),n=Math.max(0,e.minimapHeight-i),r=n/(d-o),c=Math.floor(e.canvasInnerHeight/e.minimapLineHeight);return new x(l,d,n>0,r,l*r,i,Math.floor(e.paddingTop/e.lineHeight),1,Math.min(s,c))}h=r&&i!==s?Math.floor((i-t+1)*p/g):Math.floor(o/m*p/g);let _=Math.floor(e.paddingTop/m),v=Math.floor(e.paddingBottom/m);e.scrollBeyondLastLine&&(v=Math.max(v,o/m-1)),u=v>0?(_+s+v-o/m-1)*p/g:Math.max(0,(_+s)*p/g-h);let b=(u=Math.min(e.minimapHeight-h,u))/(d-o),w=l*b;if(f>=_+s+v)return new x(l,d,u>0,b,w,h,_,1,s);{let i,o,r;let a=Math.max(1,Math.floor((i=t>1?t+_:Math.max(1,l/m))-w*g/p));a<_?(o=_-a+1,a=1):(o=0,a=Math.max(1,a-_)),c&&c.scrollHeight===d&&(c.scrollTop>l&&(a=Math.min(a,c.startLineNumber),o=Math.max(o,c.topPaddingLineCount)),c.scrollTop<l&&(a=Math.max(a,c.startLineNumber),o=Math.min(o,c.topPaddingLineCount)));let u=Math.min(s,a-o+f-1),v=(l-n)/m;return r=l>=e.paddingTop?(t-a+o+v)*p/g:l/e.paddingTop*(o+v)*p/g,new x(l,d,!0,b,r,h,o,a,u)}}}class L{constructor(e){this.dy=e}onContentChanged(){this.dy=-1}onTokensChanged(){this.dy=-1}}L.INVALID=new L(-1);class k{constructor(e,t,i){this.renderedLayout=e,this._imageData=t,this._renderedLines=new d.F(()=>L.INVALID),this._renderedLines._set(e.startLineNumber,i)}linesEquals(e){if(!this.scrollEquals(e))return!1;let t=this._renderedLines._get().lines;for(let e=0,i=t.length;e<i;e++)if(-1===t[e].dy)return!1;return!0}scrollEquals(e){return this.renderedLayout.startLineNumber===e.startLineNumber&&this.renderedLayout.endLineNumber===e.endLineNumber}_get(){let e=this._renderedLines._get();return{imageData:this._imageData,rendLineNumberStart:e.rendLineNumberStart,lines:e.lines}}onLinesChanged(e,t){return this._renderedLines.onLinesChanged(e,t)}onLinesDeleted(e,t){this._renderedLines.onLinesDeleted(e,t)}onLinesInserted(e,t){this._renderedLines.onLinesInserted(e,t)}onTokensChanged(e){return this._renderedLines.onTokensChanged(e)}}class N{constructor(e,t,i,n){this._backgroundFillData=N._createBackgroundFillData(t,i,n),this._buffers=[e.createImageData(t,i),e.createImageData(t,i)],this._lastUsedBuffer=0}getBuffer(){this._lastUsedBuffer=1-this._lastUsedBuffer;let e=this._buffers[this._lastUsedBuffer];return e.data.set(this._backgroundFillData),e}static _createBackgroundFillData(e,t,i){let n=i.r,o=i.g,r=i.b,s=i.a,a=new Uint8ClampedArray(e*t*4),l=0;for(let i=0;i<t;i++)for(let t=0;t<e;t++)a[l]=n,a[l+1]=o,a[l+2]=r,a[l+3]=s,l+=4;return a}}class D{static compute(e,t,i){if(0===e.renderMinimap||!e.isSampling)return[null,[]];let{minimapLineCount:n}=h.gk.computeContainedMinimapLineCount({viewLineCount:t,scrollBeyondLastLine:e.scrollBeyondLastLine,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:e.editorHeight,lineHeight:e.lineHeight,pixelRatio:e.pixelRatio}),o=t/n,r=o/2;if(!i||0===i.minimapLines.length){let e=[];if(e[0]=1,n>1){for(let t=0,i=n-1;t<i;t++)e[t]=Math.round(t*o+r);e[n-1]=t}return[new D(o,e),[]]}let s=i.minimapLines,a=s.length,l=[],d=0,c=0,u=1,g=[],p=null;for(let e=0;e<n;e++){let i;let h=Math.max(u,Math.round(e*o)),f=Math.max(h,Math.round((e+1)*o));for(;d<a&&s[d]<h;){if(g.length<10){let e=d+1+c;p&&"deleted"===p.type&&p._oldIndex===d-1?p.deleteToLineNumber++:(p={type:"deleted",_oldIndex:d,deleteFromLineNumber:e,deleteToLineNumber:e},g.push(p)),c--}d++}if(d<a&&s[d]<=f)i=s[d],d++;else if(i=0===e?1:e+1===n?t:Math.round(e*o+r),g.length<10){let t=d+1+c;p&&"inserted"===p.type&&p._i===e-1?p.insertToLineNumber++:(p={type:"inserted",_i:e,insertFromLineNumber:t,insertToLineNumber:t},g.push(p)),c++}l[e]=i,u=i}if(g.length<10)for(;d<a;){let e=d+1+c;p&&"deleted"===p.type&&p._oldIndex===d-1?p.deleteToLineNumber++:(p={type:"deleted",_oldIndex:d,deleteFromLineNumber:e,deleteToLineNumber:e},g.push(p)),c--,d++}else g=[{type:"flush"}];return[new D(o,l),g]}constructor(e,t){this.samplingRatio=e,this.minimapLines=t}modelLineToMinimapLine(e){return Math.min(this.minimapLines.length,Math.max(1,Math.round(e/this.samplingRatio)))}modelLineRangeToMinimapLineRange(e,t){let i=this.modelLineToMinimapLine(e)-1;for(;i>0&&this.minimapLines[i-1]>=e;)i--;let n=this.modelLineToMinimapLine(t)-1;for(;n+1<this.minimapLines.length&&this.minimapLines[n+1]<=t;)n++;if(i===n){let n=this.minimapLines[i];if(n<e||n>t)return null}return[i+1,n+1]}decorationLineRangeToMinimapLineRange(e,t){let i=this.modelLineToMinimapLine(e),n=this.modelLineToMinimapLine(t);return e!==t&&n===i&&(n===this.minimapLines.length?i>1&&i--:n++),[i,n]}onLinesDeleted(e){let t=e.toLineNumber-e.fromLineNumber+1,i=this.minimapLines.length,n=0;for(let o=this.minimapLines.length-1;o>=0&&!(this.minimapLines[o]<e.fromLineNumber);o--)this.minimapLines[o]<=e.toLineNumber?(this.minimapLines[o]=Math.max(1,e.fromLineNumber-1),i=Math.min(i,o),n=Math.max(n,o)):this.minimapLines[o]-=t;return[i,n]}onLinesInserted(e){let t=e.toLineNumber-e.fromLineNumber+1;for(let i=this.minimapLines.length-1;i>=0&&!(this.minimapLines[i]<e.fromLineNumber);i--)this.minimapLines[i]+=t}}class T extends c.E{constructor(e){super(e),this._sectionHeaderCache=new C.z6(10,1.5),this.tokensColorTracker=p.E.getInstance(),this._selections=[],this._minimapSelections=null,this.options=new S(this._context.configuration,this._context.theme,this.tokensColorTracker);let[t]=D.compute(this.options,this._context.viewModel.getLineCount(),null);this._samplingState=t,this._shouldCheckSampling=!1,this._actual=new M(e.theme,this)}dispose(){this._actual.dispose(),super.dispose()}getDomNode(){return this._actual.getDomNode()}_onOptionsMaybeChanged(){let e=new S(this._context.configuration,this._context.theme,this.tokensColorTracker);return!this.options.equals(e)&&(this.options=e,this._recreateLineSampling(),this._actual.onDidChangeOptions(),!0)}onConfigurationChanged(e){return this._onOptionsMaybeChanged()}onCursorStateChanged(e){return this._selections=e.selections,this._minimapSelections=null,this._actual.onSelectionChanged()}onDecorationsChanged(e){return!!e.affectsMinimap&&this._actual.onDecorationsChanged()}onFlushed(e){return this._samplingState&&(this._shouldCheckSampling=!0),this._actual.onFlushed()}onLinesChanged(e){if(!this._samplingState)return this._actual.onLinesChanged(e.fromLineNumber,e.count);{let t=this._samplingState.modelLineRangeToMinimapLineRange(e.fromLineNumber,e.fromLineNumber+e.count-1);return!!t&&this._actual.onLinesChanged(t[0],t[1]-t[0]+1)}}onLinesDeleted(e){if(!this._samplingState)return this._actual.onLinesDeleted(e.fromLineNumber,e.toLineNumber);{let[t,i]=this._samplingState.onLinesDeleted(e);return t<=i&&this._actual.onLinesChanged(t+1,i-t+1),this._shouldCheckSampling=!0,!0}}onLinesInserted(e){return this._samplingState?(this._samplingState.onLinesInserted(e),this._shouldCheckSampling=!0,!0):this._actual.onLinesInserted(e.fromLineNumber,e.toLineNumber)}onScrollChanged(e){return this._actual.onScrollChanged()}onThemeChanged(e){return this._actual.onThemeChanged(),this._onOptionsMaybeChanged(),!0}onTokensChanged(e){if(!this._samplingState)return this._actual.onTokensChanged(e.ranges);{let t=[];for(let i of e.ranges){let e=this._samplingState.modelLineRangeToMinimapLineRange(i.fromLineNumber,i.toLineNumber);e&&t.push({fromLineNumber:e[0],toLineNumber:e[1]})}return!!t.length&&this._actual.onTokensChanged(t)}}onTokensColorsChanged(e){return this._onOptionsMaybeChanged(),this._actual.onTokensColorsChanged()}onZonesChanged(e){return this._actual.onZonesChanged()}prepareRender(e){this._shouldCheckSampling&&(this._shouldCheckSampling=!1,this._recreateLineSampling())}render(e){let t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber;this._samplingState&&(t=this._samplingState.modelLineToMinimapLine(t),i=this._samplingState.modelLineToMinimapLine(i));let n={viewportContainsWhitespaceGaps:e.viewportData.whitespaceViewportData.length>0,scrollWidth:e.scrollWidth,scrollHeight:e.scrollHeight,viewportStartLineNumber:t,viewportEndLineNumber:i,viewportStartLineNumberVerticalOffset:e.getVerticalOffsetForLineNumber(t),scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,viewportWidth:e.viewportWidth,viewportHeight:e.viewportHeight};this._actual.render(n)}_recreateLineSampling(){this._minimapSelections=null;let e=!!this._samplingState,[t,i]=D.compute(this.options,this._context.viewModel.getLineCount(),this._samplingState);if(this._samplingState=t,e&&this._samplingState)for(let e of i)switch(e.type){case"deleted":this._actual.onLinesDeleted(e.deleteFromLineNumber,e.deleteToLineNumber);break;case"inserted":this._actual.onLinesInserted(e.insertFromLineNumber,e.insertToLineNumber);break;case"flush":this._actual.onFlushed()}}getLineCount(){return this._samplingState?this._samplingState.minimapLines.length:this._context.viewModel.getLineCount()}getRealLineCount(){return this._context.viewModel.getLineCount()}getLineContent(e){return this._samplingState?this._context.viewModel.getLineContent(this._samplingState.minimapLines[e-1]):this._context.viewModel.getLineContent(e)}getLineMaxColumn(e){return this._samplingState?this._context.viewModel.getLineMaxColumn(this._samplingState.minimapLines[e-1]):this._context.viewModel.getLineMaxColumn(e)}getMinimapLinesRenderingData(e,t,i){if(this._samplingState){let n=[];for(let o=0,r=t-e+1;o<r;o++)i[o]?n[o]=this._context.viewModel.getViewLineData(this._samplingState.minimapLines[e+o-1]):n[o]=null;return n}return this._context.viewModel.getMinimapLinesRenderingData(e,t,i).data}getSelections(){if(null===this._minimapSelections){if(this._samplingState)for(let e of(this._minimapSelections=[],this._selections)){let[t,i]=this._samplingState.decorationLineRangeToMinimapLineRange(e.startLineNumber,e.endLineNumber);this._minimapSelections.push(new _.Y(t,e.startColumn,i,e.endColumn))}else this._minimapSelections=this._selections}return this._minimapSelections}getMinimapDecorationsInViewport(e,t){let i=this._getMinimapDecorationsInViewport(e,t).filter(e=>{var t;return!(null===(t=e.options.minimap)||void 0===t?void 0:t.sectionHeaderStyle)});if(this._samplingState){let e=[];for(let t of i){if(!t.options.minimap)continue;let i=t.range,n=this._samplingState.modelLineToMinimapLine(i.startLineNumber),o=this._samplingState.modelLineToMinimapLine(i.endLineNumber);e.push(new f.$l(new u.e(n,i.startColumn,o,i.endColumn),t.options))}return e}return i}getSectionHeaderDecorationsInViewport(e,t){let i=this.options.minimapLineHeight,n=this.options.sectionHeaderFontSize;return e=Math.floor(Math.max(1,e-n/i)),this._getMinimapDecorationsInViewport(e,t).filter(e=>{var t;return!!(null===(t=e.options.minimap)||void 0===t?void 0:t.sectionHeaderStyle)})}_getMinimapDecorationsInViewport(e,t){let i;if(this._samplingState){let n=this._samplingState.minimapLines[e-1],o=this._samplingState.minimapLines[t-1];i=new u.e(n,1,o,this._context.viewModel.getLineMaxColumn(o))}else i=new u.e(e,1,t,this._context.viewModel.getLineMaxColumn(t));return this._context.viewModel.getMinimapDecorationsInRange(i)}getSectionHeaderText(e,t){var i;let n=null===(i=e.options.minimap)||void 0===i?void 0:i.sectionHeaderText;if(!n)return null;let o=this._sectionHeaderCache.get(n);if(o)return o;let r=t(n);return this._sectionHeaderCache.set(n,r),r}getOptions(){return this._context.viewModel.model.getOptions()}revealLineNumber(e){this._samplingState&&(e=this._samplingState.minimapLines[e-1]),this._context.viewModel.revealRange("mouse",!1,new u.e(e,1,e,1),1,0)}setScrollTop(e){this._context.viewModel.viewLayout.setScrollPosition({scrollTop:e},1)}}class M extends s.JT{constructor(e,t){super(),this._renderDecorations=!1,this._gestureInProgress=!1,this._theme=e,this._model=t,this._lastRenderData=null,this._buffers=null,this._selectionColor=this._theme.getColor(m.ov3),this._domNode=(0,o.X)(document.createElement("div")),c.K.write(this._domNode,9),this._domNode.setClassName(this._getMinimapDomNodeClassName()),this._domNode.setPosition("absolute"),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._shadow=(0,o.X)(document.createElement("div")),this._shadow.setClassName("minimap-shadow-hidden"),this._domNode.appendChild(this._shadow),this._canvas=(0,o.X)(document.createElement("canvas")),this._canvas.setPosition("absolute"),this._canvas.setLeft(0),this._domNode.appendChild(this._canvas),this._decorationsCanvas=(0,o.X)(document.createElement("canvas")),this._decorationsCanvas.setPosition("absolute"),this._decorationsCanvas.setClassName("minimap-decorations-layer"),this._decorationsCanvas.setLeft(0),this._domNode.appendChild(this._decorationsCanvas),this._slider=(0,o.X)(document.createElement("div")),this._slider.setPosition("absolute"),this._slider.setClassName("minimap-slider"),this._slider.setLayerHinting(!0),this._slider.setContain("strict"),this._domNode.appendChild(this._slider),this._sliderHorizontal=(0,o.X)(document.createElement("div")),this._sliderHorizontal.setPosition("absolute"),this._sliderHorizontal.setClassName("minimap-slider-horizontal"),this._slider.appendChild(this._sliderHorizontal),this._applyLayout(),this._pointerDownListener=n.mu(this._domNode.domNode,n.tw.POINTER_DOWN,e=>{if(e.preventDefault(),0===this._model.options.renderMinimap||!this._lastRenderData)return;if("proportional"!==this._model.options.size){if(0===e.button&&this._lastRenderData){let t=n.i(this._slider.domNode),i=t.top+t.height/2;this._startSliderDragging(e,i,this._lastRenderData.renderedLayout)}return}let t=this._model.options.minimapLineHeight,i=this._model.options.canvasInnerHeight/this._model.options.canvasOuterHeight*e.offsetY,o=Math.floor(i/t)+this._lastRenderData.renderedLayout.startLineNumber-this._lastRenderData.renderedLayout.topPaddingLineCount;o=Math.min(o,this._model.getLineCount()),this._model.revealLineNumber(o)}),this._sliderPointerMoveMonitor=new r.C,this._sliderPointerDownListener=n.mu(this._slider.domNode,n.tw.POINTER_DOWN,e=>{e.preventDefault(),e.stopPropagation(),0===e.button&&this._lastRenderData&&this._startSliderDragging(e,e.pageY,this._lastRenderData.renderedLayout)}),this._gestureDisposable=v.o.addTarget(this._domNode.domNode),this._sliderTouchStartListener=n.nm(this._domNode.domNode,v.t.Start,e=>{e.preventDefault(),e.stopPropagation(),this._lastRenderData&&(this._slider.toggleClassName("active",!0),this._gestureInProgress=!0,this.scrollDueToTouchEvent(e))},{passive:!1}),this._sliderTouchMoveListener=n.nm(this._domNode.domNode,v.t.Change,e=>{e.preventDefault(),e.stopPropagation(),this._lastRenderData&&this._gestureInProgress&&this.scrollDueToTouchEvent(e)},{passive:!1}),this._sliderTouchEndListener=n.mu(this._domNode.domNode,v.t.End,e=>{e.preventDefault(),e.stopPropagation(),this._gestureInProgress=!1,this._slider.toggleClassName("active",!1)})}_startSliderDragging(e,t,i){if(!e.target||!(e.target instanceof Element))return;let o=e.pageX;this._slider.toggleClassName("active",!0);let r=(e,r)=>{let s=n.i(this._domNode.domNode),l=Math.min(Math.abs(r-o),Math.abs(r-s.left),Math.abs(r-s.left-s.width));if(a.ED&&l>140){this._model.setScrollTop(i.scrollTop);return}this._model.setScrollTop(i.getDesiredScrollTopFromDelta(e-t))};e.pageY!==t&&r(e.pageY,o),this._sliderPointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,e=>r(e.pageY,e.pageX),()=>{this._slider.toggleClassName("active",!1)})}scrollDueToTouchEvent(e){let t=this._domNode.domNode.getBoundingClientRect().top,i=this._lastRenderData.renderedLayout.getDesiredScrollTopFromTouchLocation(e.pageY-t);this._model.setScrollTop(i)}dispose(){this._pointerDownListener.dispose(),this._sliderPointerMoveMonitor.dispose(),this._sliderPointerDownListener.dispose(),this._gestureDisposable.dispose(),this._sliderTouchStartListener.dispose(),this._sliderTouchMoveListener.dispose(),this._sliderTouchEndListener.dispose(),super.dispose()}_getMinimapDomNodeClassName(){let e=["minimap"];return"always"===this._model.options.showSlider?e.push("slider-always"):e.push("slider-mouseover"),this._model.options.autohide&&e.push("autohide"),e.join(" ")}getDomNode(){return this._domNode}_applyLayout(){this._domNode.setLeft(this._model.options.minimapLeft),this._domNode.setWidth(this._model.options.minimapWidth),this._domNode.setHeight(this._model.options.minimapHeight),this._shadow.setHeight(this._model.options.minimapHeight),this._canvas.setWidth(this._model.options.canvasOuterWidth),this._canvas.setHeight(this._model.options.canvasOuterHeight),this._canvas.domNode.width=this._model.options.canvasInnerWidth,this._canvas.domNode.height=this._model.options.canvasInnerHeight,this._decorationsCanvas.setWidth(this._model.options.canvasOuterWidth),this._decorationsCanvas.setHeight(this._model.options.canvasOuterHeight),this._decorationsCanvas.domNode.width=this._model.options.canvasInnerWidth,this._decorationsCanvas.domNode.height=this._model.options.canvasInnerHeight,this._slider.setWidth(this._model.options.minimapWidth)}_getBuffer(){return!this._buffers&&this._model.options.canvasInnerWidth>0&&this._model.options.canvasInnerHeight>0&&(this._buffers=new N(this._canvas.domNode.getContext("2d"),this._model.options.canvasInnerWidth,this._model.options.canvasInnerHeight,this._model.options.backgroundColor)),this._buffers?this._buffers.getBuffer():null}onDidChangeOptions(){this._lastRenderData=null,this._buffers=null,this._applyLayout(),this._domNode.setClassName(this._getMinimapDomNodeClassName())}onSelectionChanged(){return this._renderDecorations=!0,!0}onDecorationsChanged(){return this._renderDecorations=!0,!0}onFlushed(){return this._lastRenderData=null,!0}onLinesChanged(e,t){return!!this._lastRenderData&&this._lastRenderData.onLinesChanged(e,t)}onLinesDeleted(e,t){var i;return null===(i=this._lastRenderData)||void 0===i||i.onLinesDeleted(e,t),!0}onLinesInserted(e,t){var i;return null===(i=this._lastRenderData)||void 0===i||i.onLinesInserted(e,t),!0}onScrollChanged(){return this._renderDecorations=!0,!0}onThemeChanged(){return this._selectionColor=this._theme.getColor(m.ov3),this._renderDecorations=!0,!0}onTokensChanged(e){return!!this._lastRenderData&&this._lastRenderData.onTokensChanged(e)}onTokensColorsChanged(){return this._lastRenderData=null,this._buffers=null,!0}onZonesChanged(){return this._lastRenderData=null,!0}render(e){if(0===this._model.options.renderMinimap){this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),this._sliderHorizontal.setHeight(0);return}e.scrollLeft+e.viewportWidth>=e.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible");let t=x.create(this._model.options,e.viewportStartLineNumber,e.viewportEndLineNumber,e.viewportStartLineNumberVerticalOffset,e.viewportHeight,e.viewportContainsWhitespaceGaps,this._model.getLineCount(),this._model.getRealLineCount(),e.scrollTop,e.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setDisplay(t.sliderNeeded?"block":"none"),this._slider.setTop(t.sliderTop),this._slider.setHeight(t.sliderHeight),this._sliderHorizontal.setLeft(0),this._sliderHorizontal.setWidth(this._model.options.minimapWidth),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(t.sliderHeight),this.renderDecorations(t),this._lastRenderData=this.renderLines(t)}renderDecorations(e){if(this._renderDecorations){this._renderDecorations=!1;let t=this._model.getSelections();t.sort(u.e.compareRangesUsingStarts);let i=this._model.getMinimapDecorationsInViewport(e.startLineNumber,e.endLineNumber);i.sort((e,t)=>(e.options.zIndex||0)-(t.options.zIndex||0));let{canvasInnerWidth:n,canvasInnerHeight:o}=this._model.options,r=this._model.options.minimapLineHeight,s=this._model.options.minimapCharWidth,a=this._model.getOptions().tabSize,l=this._decorationsCanvas.domNode.getContext("2d");l.clearRect(0,0,n,o);let d=new P(e.startLineNumber,e.endLineNumber,!1);this._renderSelectionLineHighlights(l,t,d,e,r),this._renderDecorationsLineHighlights(l,i,d,e,r);let c=new P(e.startLineNumber,e.endLineNumber,null);this._renderSelectionsHighlights(l,t,c,e,r,a,s,n),this._renderDecorationsHighlights(l,i,c,e,r,a,s,n),this._renderSectionHeaders(e)}}_renderSelectionLineHighlights(e,t,i,n,o){if(!this._selectionColor||this._selectionColor.isTransparent())return;e.fillStyle=this._selectionColor.transparent(.5).toString();let r=0,s=0;for(let a of t){let t=n.intersectWithViewport(a);if(!t)continue;let[l,d]=t;for(let e=l;e<=d;e++)i.set(e,!0);let c=n.getYForLineNumber(l,o),u=n.getYForLineNumber(d,o);s>=c||(s>r&&e.fillRect(h.y0,r,e.canvas.width,s-r),r=c),s=u}s>r&&e.fillRect(h.y0,r,e.canvas.width,s-r)}_renderDecorationsLineHighlights(e,t,i,n,o){let r=new Map;for(let s=t.length-1;s>=0;s--){let a=t[s],l=a.options.minimap;if(!l||1!==l.position)continue;let d=n.intersectWithViewport(a.range);if(!d)continue;let[c,u]=d,g=l.getColor(this._theme.value);if(!g||g.isTransparent())continue;let p=r.get(g.toString());!p&&(p=g.transparent(.5).toString(),r.set(g.toString(),p)),e.fillStyle=p;for(let t=c;t<=u;t++){if(i.has(t))continue;i.set(t,!0);let r=n.getYForLineNumber(c,o);e.fillRect(h.y0,r,e.canvas.width,o)}}}_renderSelectionsHighlights(e,t,i,n,o,r,s,a){if(!(!this._selectionColor||this._selectionColor.isTransparent()))for(let l of t){let t=n.intersectWithViewport(l);if(!t)continue;let[d,c]=t;for(let t=d;t<=c;t++)this.renderDecorationOnLine(e,i,l,this._selectionColor,n,t,o,o,r,s,a)}}_renderDecorationsHighlights(e,t,i,n,o,r,s,a){for(let l of t){let t=l.options.minimap;if(!t)continue;let d=n.intersectWithViewport(l.range);if(!d)continue;let[c,h]=d,u=t.getColor(this._theme.value);if(!(!u||u.isTransparent()))for(let d=c;d<=h;d++)switch(t.position){case 1:this.renderDecorationOnLine(e,i,l.range,u,n,d,o,o,r,s,a);continue;case 2:{let t=n.getYForLineNumber(d,o);this.renderDecoration(e,u,2,t,2,o);continue}}}}renderDecorationOnLine(e,t,i,n,o,r,s,a,l,d,c){let h=o.getYForLineNumber(r,a);if(h+s<0||h>this._model.options.canvasInnerHeight)return;let{startLineNumber:u,endLineNumber:g}=i,p=u===r?i.startColumn:1,f=g===r?i.endColumn:this._model.getLineMaxColumn(r),m=this.getXOffsetForPosition(t,r,p,l,d,c),_=this.getXOffsetForPosition(t,r,f,l,d,c);this.renderDecoration(e,n,m,h,_-m,s)}getXOffsetForPosition(e,t,i,n,o,r){if(1===i)return h.y0;if((i-1)*o>=r)return r;let s=e.get(t);if(!s){let i=this._model.getLineContent(t);s=[h.y0];let a=h.y0;for(let e=1;e<i.length+1;e++){let t=i.charCodeAt(e-1),d=a+(9===t?n*o:l.K7(t)?2*o:o);if(d>=r){s[e]=r;break}s[e]=d,a=d}e.set(t,s)}return i-1<s.length?s[i-1]:r}renderDecoration(e,t,i,n,o,r){e.fillStyle=t&&t.toString()||"",e.fillRect(i,n,o,r)}_renderSectionHeaders(e){var t;let i=this._model.options.minimapLineHeight,n=this._model.options.sectionHeaderFontSize,o=1.5*n,{canvasInnerWidth:r}=this._model.options,s=this._model.options.backgroundColor,a=`rgb(${s.r} ${s.g} ${s.b} / .7)`,l=this._model.options.sectionHeaderFontColor,d=`rgb(${l.r} ${l.g} ${l.b})`,c=this._decorationsCanvas.domNode.getContext("2d");c.font=n+"px "+this._model.options.sectionHeaderFontFamily,c.strokeStyle=d,c.lineWidth=.2;let u=this._model.getSectionHeaderDecorationsInViewport(e.startLineNumber,e.endLineNumber);u.sort((e,t)=>e.range.startLineNumber-t.range.startLineNumber);let g=M._fitSectionHeader.bind(null,c,r-h.y0);for(let s of u){let l=e.getYForLineNumber(s.range.startLineNumber,i)+n,h=l-n,u=h+2,p=this._model.getSectionHeaderText(s,g);M._renderSectionLabel(c,p,(null===(t=s.options.minimap)||void 0===t?void 0:t.sectionHeaderStyle)===2,a,d,r,h,o,l,u)}}static _fitSectionHeader(e,t,i){if(!i)return i;let n=e.measureText(i).width,o=e.measureText("\u2026").width;if(n<=t||n<=o)return i;let r=i.length,s=Math.floor((t-o)/(n/i.length))-1,a=Math.ceil(s/2);for(;a>0&&/\s/.test(i[a-1]);)--a;return i.substring(0,a)+"\u2026"+i.substring(r-(s-a))}static _renderSectionLabel(e,t,i,n,o,r,s,a,l,d){t&&(e.fillStyle=n,e.fillRect(0,s,r,a),e.fillStyle=o,e.fillText(t,h.y0,l)),i&&(e.beginPath(),e.moveTo(0,d),e.lineTo(r,d),e.closePath(),e.stroke())}renderLines(e){let t=e.startLineNumber,i=e.endLineNumber,n=this._model.options.minimapLineHeight;if(this._lastRenderData&&this._lastRenderData.linesEquals(e)){let t=this._lastRenderData._get();return new k(e,t.imageData,t.lines)}let o=this._getBuffer();if(!o)return null;let[r,s,a]=M._renderUntouchedLines(o,e.topPaddingLineCount,t,i,n,this._lastRenderData),l=this._model.getMinimapLinesRenderingData(t,i,a),d=this._model.getOptions().tabSize,c=this._model.options.defaultBackgroundColor,h=this._model.options.backgroundColor,u=this._model.options.foregroundAlpha,p=this._model.tokensColorTracker,f=p.backgroundIsLight(),m=this._model.options.renderMinimap,_=this._model.options.charRenderer(),v=this._model.options.fontScale,b=this._model.options.minimapCharWidth,w=(1===m?2:3)*v,C=n>w?Math.floor((n-w)/2):0,y=h.a/255,S=new g.h(Math.round((h.r-c.r)*y+c.r),Math.round((h.g-c.g)*y+c.g),Math.round((h.b-c.b)*y+c.b),255),x=e.topPaddingLineCount*n,N=[];for(let e=0,r=i-t+1;e<r;e++)a[e]&&M._renderLine(o,S,h.a,f,m,b,p,u,_,x,C,d,l[e],v,n),N[e]=new L(x),x+=n;let D=-1===r?0:r,T=-1===s?o.height:s;return this._canvas.domNode.getContext("2d").putImageData(o,0,0,0,D,o.width,T-D),new k(e,o,N)}static _renderUntouchedLines(e,t,i,n,o,r){let s=[];if(!r){for(let e=0,t=n-i+1;e<t;e++)s[e]=!0;return[-1,-1,s]}let a=r._get(),l=a.imageData.data,d=a.rendLineNumberStart,c=a.lines,h=c.length,u=e.width,g=e.data,p=(n-i+1)*o*u*4,f=-1,m=-1,_=-1,v=-1,b=-1,w=-1,C=t*o;for(let e=i;e<=n;e++){let t=e-i,n=e-d,r=n>=0&&n<h?c[n].dy:-1;if(-1===r){s[t]=!0,C+=o;continue}let a=r*u*4,y=(r+o)*u*4,S=C*u*4,x=(C+o)*u*4;v===a&&w===S?v=y:(-1!==_&&(g.set(l.subarray(_,v),b),-1===f&&0===_&&_===b&&(f=v),-1===m&&v===p&&_===b&&(m=_)),_=a,v=y,b=S),w=x,s[t]=!1,C+=o}return -1!==_&&(g.set(l.subarray(_,v),b),-1===f&&0===_&&_===b&&(f=v),-1===m&&v===p&&_===b&&(m=_)),[-1===f?-1:f/(4*u),-1===m?-1:m/(4*u),s]}static _renderLine(e,t,i,n,o,r,s,a,d,c,u,g,p,f,m){let _=p.content,v=p.tokens,b=e.width-r,w=1===m,C=h.y0,y=0,S=0;for(let h=0,p=v.getCount();h<p;h++){let p=v.getEndOffset(h),m=v.getForeground(h),x=s.getColor(m);for(;y<p;y++){if(C>b)return;let s=_.charCodeAt(y);if(9===s){let e=g-(y+S)%g;S+=e-1,C+=e*r}else if(32===s)C+=r;else{let h=l.K7(s)?2:1;for(let l=0;l<h;l++)if(2===o?d.blockRenderChar(e,C,c+u,x,a,t,i,w):d.renderChar(e,C,c+u,s,x,a,t,i,f,n,w),(C+=r)>b)return}}}}}class P{constructor(e,t,i){this._startLineNumber=e,this._endLineNumber=t,this._defaultValue=i,this._values=[];for(let e=0,t=this._endLineNumber-this._startLineNumber+1;e<t;e++)this._values[e]=i}has(e){return this.get(e)!==this._defaultValue}set(e,t){!(e<this._startLineNumber)&&!(e>this._endLineNumber)&&(this._values[e-this._startLineNumber]=t)}get(e){return e<this._startLineNumber||e>this._endLineNumber?this._defaultValue:this._values[e-this._startLineNumber]}}},21208:function(e,t,i){"use strict";i.d(t,{J:function(){return n},Y:function(){return o}});let n=(()=>{let e=[];for(let t=32;t<=126;t++)e.push(t);return e.push(65533),e})(),o=(e,t)=>{if((e-=32)<0||e>96)return t<=2?(e+96)%96:95;return e}},82001:function(e,t,i){"use strict";i.d(t,{H:function(){return f}});var n=i("79221"),o=i("87294"),r=i("16643"),s=i("38386"),a=i("76891"),l=i("44279"),d=i("249"),c=i("77667"),h=i("95449"),u=i("97717"),g=i("29149"),p=function(e,t){return function(i,n){t(i,n,e)}};let f=class extends r.Gm{constructor(e,t,i,n,o,r,s,a,l,d,c,h,u){super(e,{...n.getRawOptions(),overflowWidgetsDomNode:n.getOverflowWidgetsDomNode()},i,o,r,s,a,l,d,c,h,u),this._parentEditor=n,this._overwriteOptions=t,super.updateOptions(this._overwriteOptions),this._register(n.onDidChangeConfiguration(e=>this._onParentConfigurationChanged(e)))}getParentEditor(){return this._parentEditor}_onParentConfigurationChanged(e){super.updateOptions(this._parentEditor.getRawOptions()),super.updateOptions(this._overwriteOptions)}updateOptions(e){n.jB(this._overwriteOptions,e,!0),super.updateOptions(this._overwriteOptions)}};f=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s}([p(4,h.TG),p(5,o.$),p(6,d.H),p(7,c.i6),p(8,g.XE),p(9,u.lT),p(10,l.F),p(11,s.c_),p(12,a.p)],f)},23448:function(e,t,i){"use strict";i.d(t,{D:function(){return o}});var n=i("16234");class o extends n.Wi{constructor(e){super(),this._getContext=e}runAction(e,t){let i=this._getContext();return super.runAction(e,i)}}},81467:function(e,t,i){"use strict";i.d(t,{C$:function(){return r},Wd:function(){return o},dX:function(){return n}});class n{constructor(e,t){this.width=e,this.height=t,this.array=[],this.array=Array(e*t)}get(e,t){return this.array[e+t*this.width]}set(e,t,i){this.array[e+t*this.width]=i}}function o(e){return 32===e||9===e}class r{static getKey(e){let t=this.chrKeys.get(e);return void 0===t&&(t=this.chrKeys.size,this.chrKeys.set(e,t)),t}constructor(e,t,i){this.range=e,this.lines=t,this.source=i,this.histogram=[];let n=0;for(let i=e.startLineNumber-1;i<e.endLineNumberExclusive-1;i++){let e=t[i];for(let t=0;t<e.length;t++){n++;let i=e[t],o=r.getKey(i);this.histogram[o]=(this.histogram[o]||0)+1}n++;let o=r.getKey("\n");this.histogram[o]=(this.histogram[o]||0)+1}this.totalCount=n}computeSimilarity(e){var t,i;let n=0,o=Math.max(this.histogram.length,e.histogram.length);for(let r=0;r<o;r++)n+=Math.abs((null!==(t=this.histogram[r])&&void 0!==t?t:0)-(null!==(i=e.histogram[r])&&void 0!==i?i:0));return 1-n/(this.totalCount+e.totalCount)}}r.chrKeys=new Map},53145:function(e,t,i){"use strict";i.d(t,{V:function(){return r}});var n=i("62288"),o=i("49439");let r={getLegacy:()=>new n.o,getDefault:()=>new o.DW}},4469:function(e,t,i){"use strict";function n(e,t){let i=0,n=0,o=e.length;for(;n<o;){let o=e.charCodeAt(n);if(32===o)i++;else if(9===o)i=i-i%t+t;else break;n++}return n===o?-1:i}i.d(t,{q:function(){return n}})},37662:function(e,t,i){"use strict";i.d(t,{Jt:function(){return y},fj:function(){return v}});var n,o,r=i("1966"),s=i("45802"),a=i("98212"),l=i("37764"),d=i("59571"),c=i("97295"),h=i("70668"),u=i("98681"),g=i("77667"),p=i("24726"),f=i("13105"),m=i("31843"),_=i("22712");let v=new g.uy("supportedCodeAction",""),b="_typescript.applyFixAllCodeAction";class w extends l.JT{constructor(e,t,i,n=250){super(),this._editor=e,this._markerService=t,this._signalChange=i,this._delay=n,this._autoTriggerTimer=this._register(new r._F),this._register(this._markerService.onMarkerChanged(e=>this._onMarkerChanges(e))),this._register(this._editor.onDidChangeCursorPosition(()=>this._tryAutoTrigger()))}trigger(e){let t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);this._signalChange(t?{trigger:e,selection:t}:void 0)}_onMarkerChanges(e){let t=this._editor.getModel();t&&e.some(e=>(0,d.Xy)(e,t.uri))&&this._tryAutoTrigger()}_tryAutoTrigger(){this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:2,triggerAction:f.aQ.Default})},this._delay)}_getRangeOfSelectionUnlessWhitespaceEnclosed(e){if(!this._editor.hasModel())return;let t=this._editor.getSelection();if(1===e.type)return t;let i=this._editor.getOption(65).enabled;if(i!==c.$r.Off){if(i===c.$r.On);else if(i===c.$r.OnCode){if(!t.isEmpty())return t;let e=this._editor.getModel(),{lineNumber:i,column:n}=t.getPosition(),o=e.getLineContent(i);if(0===o.length)return;if(1===n){if(/\s/.test(o[0]))return}else if(n===e.getLineMaxColumn(i)){if(/\s/.test(o[o.length-1]))return}else if(/\s/.test(o[n-2])&&/\s/.test(o[n-1]))return}return t}}}(n=o||(o={})).Empty={type:0},n.Triggered=class e{constructor(e,t,i){this.trigger=e,this.position=t,this._cancellablePromise=i,this.type=1,this.actions=i.catch(e=>{if((0,s.n2)(e))return C;throw e})}cancel(){this._cancellablePromise.cancel()}};let C=Object.freeze({allActions:[],validActions:[],dispose:()=>{},documentation:[],hasAutoFix:!1,hasAIFix:!1,allAIFixes:!1});class y extends l.JT{constructor(e,t,i,n,r,s){super(),this._editor=e,this._registry=t,this._markerService=i,this._progressService=r,this._configurationService=s,this._codeActionOracle=this._register(new l.XK),this._state=o.Empty,this._onDidChangeState=this._register(new a.Q5),this.onDidChangeState=this._onDidChangeState.event,this._disposed=!1,this._supportedCodeActions=v.bindTo(n),this._register(this._editor.onDidChangeModel(()=>this._update())),this._register(this._editor.onDidChangeModelLanguage(()=>this._update())),this._register(this._registry.onDidChange(()=>this._update())),this._register(this._editor.onDidChangeConfiguration(e=>{e.hasChanged(65)&&this._update()})),this._update()}dispose(){!this._disposed&&(this._disposed=!0,super.dispose(),this.setState(o.Empty,!0))}_settingEnabledNearbyQuickfixes(){var e;let t=null===(e=this._editor)||void 0===e?void 0:e.getModel();return!!this._configurationService&&this._configurationService.getValue("editor.codeActionWidget.includeNearbyQuickFixes",{resource:null==t?void 0:t.uri})}_update(){if(this._disposed)return;this._codeActionOracle.value=void 0,this.setState(o.Empty);let e=this._editor.getModel();if(e&&this._registry.has(e)&&!this._editor.getOption(91)){let t=this._registry.all(e).flatMap(e=>{var t;return null!==(t=e.providedCodeActionKinds)&&void 0!==t?t:[]});this._supportedCodeActions.set(t.join(" ")),this._codeActionOracle.value=new w(this._editor,this._markerService,t=>{var i;if(!t){this.setState(o.Empty);return}let n=t.selection.getStartPosition(),s=(0,r.PG)(async i=>{var n,o,r,s,a,l,d,c,g,v;if(this._settingEnabledNearbyQuickfixes()&&1===t.trigger.type&&(t.trigger.triggerAction===f.aQ.QuickFix||(null===(o=null===(n=t.trigger.filter)||void 0===n?void 0:n.include)||void 0===o?void 0:o.contains(f.yN.QuickFix)))){let n=await (0,m.aI)(this._registry,e,t.selection,t.trigger,p.Ex.None,i),o=[...n.allActions];if(i.isCancellationRequested)return C;let w=null===(r=n.validActions)||void 0===r?void 0:r.some(e=>!!e.action.kind&&f.yN.QuickFix.contains(new _.o(e.action.kind))),y=this._markerService.read({resource:e.uri});if(w){for(let e of n.validActions)(null===(a=null===(s=e.action.command)||void 0===s?void 0:s.arguments)||void 0===a?void 0:a.some(e=>"string"==typeof e&&e.includes(b)))&&(e.action.diagnostics=[...y.filter(e=>e.relatedInformation)]);return{validActions:n.validActions,allActions:o,documentation:n.documentation,hasAutoFix:n.hasAutoFix,hasAIFix:n.hasAIFix,allAIFixes:n.allAIFixes,dispose:()=>{n.dispose()}}}if(!w&&y.length>0){let r=t.selection.getPosition(),s=r,a=Number.MAX_VALUE,_=[...n.validActions];for(let w of y){let C=w.endColumn,S=w.endLineNumber,x=w.startLineNumber;if(S===r.lineNumber||x===r.lineNumber){s=new h.L(S,C);let w={type:t.trigger.type,triggerAction:t.trigger.triggerAction,filter:{include:(null===(l=t.trigger.filter)||void 0===l?void 0:l.include)?null===(d=t.trigger.filter)||void 0===d?void 0:d.include:f.yN.QuickFix},autoApply:t.trigger.autoApply,context:{notAvailableMessage:(null===(c=t.trigger.context)||void 0===c?void 0:c.notAvailableMessage)||"",position:s}},x=new u.Y(s.lineNumber,s.column,s.lineNumber,s.column),L=await (0,m.aI)(this._registry,e,x,w,p.Ex.None,i);if(0!==L.validActions.length){for(let e of L.validActions)(null===(v=null===(g=e.action.command)||void 0===g?void 0:g.arguments)||void 0===v?void 0:v.some(e=>"string"==typeof e&&e.includes(b)))&&(e.action.diagnostics=[...y.filter(e=>e.relatedInformation)]);0===n.allActions.length&&o.push(...L.allActions),Math.abs(r.column-C)<a?_.unshift(...L.validActions):_.push(...L.validActions)}a=Math.abs(r.column-C)}}let w=_.filter((e,t,i)=>i.findIndex(t=>t.action.title===e.action.title)===t);return w.sort((e,t)=>{if(e.action.isPreferred&&!t.action.isPreferred)return -1;if(!e.action.isPreferred&&t.action.isPreferred)return 1;if(e.action.isAI&&!t.action.isAI)return 1;else if(!e.action.isAI&&t.action.isAI)return -1;else return 0}),{validActions:w,allActions:o,documentation:n.documentation,hasAutoFix:n.hasAutoFix,hasAIFix:n.hasAIFix,allAIFixes:n.allAIFixes,dispose:()=>{n.dispose()}}}}return(0,m.aI)(this._registry,e,t.selection,t.trigger,p.Ex.None,i)});1===t.trigger.type&&(null===(i=this._progressService)||void 0===i||i.showWhile(s,250));let a=new o.Triggered(t.trigger,n,s),l=!1;1===this._state.type&&(l=1===this._state.trigger.type&&1===a.type&&2===a.trigger.type&&this._state.position!==a.position),l?setTimeout(()=>{this.setState(a)},500):this.setState(a)},void 0),this._codeActionOracle.value.trigger({type:2,triggerAction:f.aQ.Default})}else this._supportedCodeActions.reset()}trigger(e){var t;null===(t=this._codeActionOracle.value)||void 0===t||t.trigger(e)}setState(e,t){e!==this._state&&(1===this._state.type&&this._state.cancel(),this._state=e,!t&&!this._disposed&&this._onDidChangeState.fire(e))}}},7861:function(e,t,i){"use strict";i.d(t,{Ak:function(){return w},if:function(){return C}});var n,o=i("1966"),r=i("52640"),s=i("45802"),a=i("98212"),l=i("37764"),d=i("25907"),c=i("71482"),h=i("92011"),u=i("36809"),g=i("83112"),p=i("84144"),f=i("93804"),m=i("76891"),_=i("31411"),v=i("756"),b=function(e,t){return function(i,n){t(i,n,e)}};let w=Object.create({}),C=n=class extends l.JT{constructor(e,t,i,o){super(),this._editor=e,this._configurationService=t,this._languageFeaturesService=i,this._localToDispose=this._register(new l.SL),this._decorationsIds=[],this._colorDatas=new Map,this._colorDecoratorIds=this._editor.createDecorationsCollection(),this._ruleFactory=new h.t7(this._editor),this._decoratorLimitReporter=new y,this._colorDecorationClassRefs=this._register(new l.SL),this._debounceInformation=o.for(i.colorProvider,"Document Colors",{min:n.RECOMPUTE_TIME}),this._register(e.onDidChangeModel(()=>{this._isColorDecoratorsEnabled=this.isEnabled(),this.updateColors()})),this._register(e.onDidChangeModelLanguage(()=>this.updateColors())),this._register(i.colorProvider.onDidChange(()=>this.updateColors())),this._register(e.onDidChangeConfiguration(e=>{let t=this._isColorDecoratorsEnabled;this._isColorDecoratorsEnabled=this.isEnabled(),this._isDefaultColorDecoratorsEnabled=this._editor.getOption(147);let i=t!==this._isColorDecoratorsEnabled||e.hasChanged(21),n=e.hasChanged(147);(i||n)&&(this._isColorDecoratorsEnabled?this.updateColors():this.removeAllDecorations())})),this._timeoutTimer=null,this._computePromise=null,this._isColorDecoratorsEnabled=this.isEnabled(),this._isDefaultColorDecoratorsEnabled=this._editor.getOption(147),this.updateColors()}isEnabled(){let e=this._editor.getModel();if(!e)return!1;let t=e.getLanguageId(),i=this._configurationService.getValue(t);if(i&&"object"==typeof i){let e=i.colorDecorators;if(e&&void 0!==e.enable&&!e.enable)return e.enable}return this._editor.getOption(20)}static get(e){return e.getContribution(this.ID)}dispose(){this.stop(),this.removeAllDecorations(),super.dispose()}updateColors(){if(this.stop(),!this._isColorDecoratorsEnabled)return;let e=this._editor.getModel();e&&this._languageFeaturesService.colorProvider.has(e)&&(this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{!this._timeoutTimer&&(this._timeoutTimer=new o._F,this._timeoutTimer.cancelAndSet(()=>{this._timeoutTimer=null,this.beginCompute()},this._debounceInformation.get(e)))})),this.beginCompute())}async beginCompute(){this._computePromise=(0,o.PG)(async e=>{let t=this._editor.getModel();if(!t)return[];let i=new d.G(!1),n=await (0,_.E)(this._languageFeaturesService.colorProvider,t,e,this._isDefaultColorDecoratorsEnabled);return this._debounceInformation.update(t,i.elapsed()),n});try{let e=await this._computePromise;this.updateDecorations(e),this.updateColorDecorators(e),this._computePromise=null}catch(e){(0,s.dL)(e)}}stop(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()}updateDecorations(e){let t=e.map(e=>({range:{startLineNumber:e.colorInfo.range.startLineNumber,startColumn:e.colorInfo.range.startColumn,endLineNumber:e.colorInfo.range.endLineNumber,endColumn:e.colorInfo.range.endColumn},options:p.qx.EMPTY}));this._editor.changeDecorations(i=>{this._decorationsIds=i.deltaDecorations(this._decorationsIds,t),this._colorDatas=new Map,this._decorationsIds.forEach((t,i)=>this._colorDatas.set(t,e[i]))})}updateColorDecorators(e){this._colorDecorationClassRefs.clear();let t=[],i=this._editor.getOption(21);for(let n=0;n<e.length&&t.length<i;n++){let{red:i,green:o,blue:s,alpha:a}=e[n].colorInfo.color,l=new r.VS(Math.round(255*i),Math.round(255*o),Math.round(255*s),a),d=`rgba(${l.r}, ${l.g}, ${l.b}, ${l.a})`,h=this._colorDecorationClassRefs.add(this._ruleFactory.createClassNameRef({backgroundColor:d}));t.push({range:{startLineNumber:e[n].colorInfo.range.startLineNumber,startColumn:e[n].colorInfo.range.startColumn,endLineNumber:e[n].colorInfo.range.endLineNumber,endColumn:e[n].colorInfo.range.endColumn},options:{description:"colorDetector",before:{content:c.B4,inlineClassName:`${h.className} colorpicker-color-decoration`,inlineClassNameAffectsLetterSpacing:!0,attachedData:w}}})}let n=i<e.length&&i;this._decoratorLimitReporter.update(e.length,n),this._colorDecoratorIds.set(t)}removeAllDecorations(){this._editor.removeDecorations(this._decorationsIds),this._decorationsIds=[],this._colorDecoratorIds.clear(),this._colorDecorationClassRefs.clear()}getColorData(e){let t=this._editor.getModel();if(!t)return null;let i=t.getDecorationsInRange(g.e.fromPositions(e,e)).filter(e=>this._colorDatas.has(e.id));return 0===i.length?null:this._colorDatas.get(i[0].id)}isColorDecoration(e){return this._colorDecoratorIds.has(e)}};C.ID="editor.contrib.colorDetector",C.RECOMPUTE_TIME=1e3,C=n=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s}([b(1,v.Ui),b(2,m.p),b(3,f.A)],C);class y{constructor(){this._onDidChange=new a.Q5,this._computed=0,this._limited=!1}update(e,t){(e!==this._computed||t!==this._limited)&&(this._computed=e,this._limited=t,this._onDidChange.fire())}}(0,u._K)(C.ID,C,1)},36293:function(e,t,i){"use strict";var n=i("36809"),o=i("94479"),r=i("414"),s=i("8109"),a=i("95316");i("82425");class l extends n.x1{constructor(){super({id:"editor.action.showOrFocusStandaloneColorPicker",title:{...(0,o.vv)("showOrFocusStandaloneColorPicker","Show or Focus Standalone Color Picker"),mnemonicTitle:(0,o.NC)({key:"mishowOrFocusStandaloneColorPicker",comment:["&& denotes a mnemonic"]},"&&Show or Focus Standalone Color Picker")},precondition:void 0,menu:[{id:a.eH.CommandPalette}],metadata:{description:(0,o.vv)("showOrFocusStandaloneColorPickerDescription","Show or focus a standalone color picker which uses the default color provider. It displays hex/rgb/hsl colors.")}})}runEditorCommand(e,t){var i;null===(i=r.F.get(t))||void 0===i||i.showOrFocus()}}class d extends n.R6{constructor(){super({id:"editor.action.hideColorPicker",label:(0,o.NC)({key:"hideColorPicker",comment:["Action that hides the color picker"]},"Hide the Color Picker"),alias:"Hide the Color Picker",precondition:s.u.standaloneColorPickerVisible.isEqualTo(!0),kbOpts:{primary:9,weight:100},metadata:{description:(0,o.vv)("hideColorPickerDescription","Hide the standalone color picker.")}})}run(e,t){var i;null===(i=r.F.get(t))||void 0===i||i.hide()}}class c extends n.R6{constructor(){super({id:"editor.action.insertColorWithStandaloneColorPicker",label:(0,o.NC)({key:"insertColorWithStandaloneColorPicker",comment:["Action that inserts color with standalone color picker"]},"Insert Color with Standalone Color Picker"),alias:"Insert Color with Standalone Color Picker",precondition:s.u.standaloneColorPickerFocused.isEqualTo(!0),kbOpts:{primary:3,weight:100},metadata:{description:(0,o.vv)("insertColorWithStandaloneColorPickerDescription","Insert hex/rgb/hsl colors with the focused standalone color picker.")}})}run(e,t){var i;null===(i=r.F.get(t))||void 0===i||i.insertColor()}}(0,n.Qr)(d),(0,n.Qr)(c),(0,a.r1)(l)},7844:function(e,t,i){"use strict";i.d(t,{P4:function(){return S},f8:function(){return v},vJ:function(){return x}});var n=i("47983"),o=i("85471"),r=i("22712"),s=i("37764"),a=i("88226"),l=i("6438"),d=i("59571"),c=i("98084"),h=i("64141"),u=i("76891"),g=i("94479"),p=i("51753"),f=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s},m=function(e,t){return function(i,n){t(i,n,e)}};class _{async provideDocumentPasteEdits(e,t,i,n,o){let r=await this.getEdit(i,o);if(r)return{dispose(){},edits:[{insertText:r.insertText,title:r.title,kind:r.kind,handledMimeType:r.handledMimeType,yieldTo:r.yieldTo}]}}async provideDocumentDropEdits(e,t,i,n){let o=await this.getEdit(i,n);return o?[{insertText:o.insertText,title:o.title,kind:o.kind,handledMimeType:o.handledMimeType,yieldTo:o.yieldTo}]:void 0}}class v extends _{constructor(){super(...arguments),this.kind=v.kind,this.dropMimeTypes=[a.v.text],this.pasteMimeTypes=[a.v.text]}async getEdit(e,t){let i=e.get(a.v.text);if(!i||e.has(a.v.uriList))return;let n=await i.asString();return{handledMimeType:a.v.text,title:(0,g.NC)("text.label","Insert Plain Text"),insertText:n,kind:this.kind}}}v.id="text",v.kind=new r.o("text.plain");class b extends _{constructor(){super(...arguments),this.kind=new r.o("uri.absolute"),this.dropMimeTypes=[a.v.uriList],this.pasteMimeTypes=[a.v.uriList]}async getEdit(e,t){let i;let n=await y(e);if(!n.length||t.isCancellationRequested)return;let o=0,r=n.map(({uri:e,originalText:t})=>e.scheme===l.lg.file?e.fsPath:(o++,t)).join(" ");return i=o>0?n.length>1?(0,g.NC)("defaultDropProvider.uriList.uris","Insert Uris"):(0,g.NC)("defaultDropProvider.uriList.uri","Insert Uri"):n.length>1?(0,g.NC)("defaultDropProvider.uriList.paths","Insert Paths"):(0,g.NC)("defaultDropProvider.uriList.path","Insert Path"),{handledMimeType:a.v.uriList,insertText:r,title:i,kind:this.kind}}}let w=class extends _{constructor(e){super(),this._workspaceContextService=e,this.kind=new r.o("uri.relative"),this.dropMimeTypes=[a.v.uriList],this.pasteMimeTypes=[a.v.uriList]}async getEdit(e,t){let i=await y(e);if(!i.length||t.isCancellationRequested)return;let o=(0,n.kX)(i.map(({uri:e})=>{let t=this._workspaceContextService.getWorkspaceFolder(e);return t?(0,d.lX)(t.uri,e):void 0}));if(o.length)return{handledMimeType:a.v.uriList,insertText:o.join(" "),title:i.length>1?(0,g.NC)("defaultDropProvider.uriList.relativePaths","Insert Relative Paths"):(0,g.NC)("defaultDropProvider.uriList.relativePath","Insert Relative Path"),kind:this.kind}}};w=f([m(0,p.ec)],w);class C{constructor(){this.kind=new r.o("html"),this.pasteMimeTypes=["text/html"],this._yieldTo=[{mimeType:a.v.text}]}async provideDocumentPasteEdits(e,t,i,n,o){var r;if(n.triggerKind!==h.Nq.PasteAs&&!(null===(r=n.only)||void 0===r?void 0:r.contains(this.kind)))return;let s=i.get("text/html"),a=await (null==s?void 0:s.asString());if(a&&!o.isCancellationRequested)return{dispose(){},edits:[{insertText:a,yieldTo:this._yieldTo,title:(0,g.NC)("pasteHtmlLabel","Insert HTML"),kind:this.kind}]}}}async function y(e){let t=e.get(a.v.uriList);if(!t)return[];let i=await t.asString(),n=[];for(let e of o.Z0.parse(i))try{n.push({uri:c.o.parse(e),originalText:e})}catch(e){}return n}let S=class extends s.JT{constructor(e,t){super(),this._register(e.documentDropEditProvider.register("*",new v)),this._register(e.documentDropEditProvider.register("*",new b)),this._register(e.documentDropEditProvider.register("*",new w(t)))}};S=f([m(0,u.p),m(1,p.ec)],S);let x=class extends s.JT{constructor(e,t){super(),this._register(e.documentPasteEditProvider.register("*",new v)),this._register(e.documentPasteEditProvider.register("*",new b)),this._register(e.documentPasteEditProvider.register("*",new w(t))),this._register(e.documentPasteEditProvider.register("*",new C))}};x=f([m(0,u.p),m(1,p.ec)],x)},61791:function(e,t,i){"use strict";i.d(t,{Dl:function(){return d},YQ:function(){return c},yy:function(){return l}});var n=i("71482"),o=i("83112"),r=i("66735"),s=i("37764"),a=i("12301");class l{constructor(e,t){if(this.flags=t,(1&this.flags)!=0){let t=e.getModel();this.modelVersionId=t?n.WU("{0}#{1}",t.uri.toString(),t.getVersionId()):null}else this.modelVersionId=null;(4&this.flags)!=0?this.position=e.getPosition():this.position=null,(2&this.flags)!=0?this.selection=e.getSelection():this.selection=null,(8&this.flags)!=0?(this.scrollLeft=e.getScrollLeft(),this.scrollTop=e.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}_equals(e){return e instanceof l&&this.modelVersionId===e.modelVersionId&&this.scrollLeft===e.scrollLeft&&this.scrollTop===e.scrollTop&&(!!this.position||!e.position)&&(!this.position||!!e.position)&&(!this.position||!e.position||!!this.position.equals(e.position))&&(!!this.selection||!e.selection)&&(!this.selection||!!e.selection)&&(!this.selection||!e.selection||!!this.selection.equalsRange(e.selection))&&!0}validate(e){return this._equals(new l(e,this.flags))}}class d extends a.${constructor(e,t,i,n){super(e,n),this._listener=new s.SL,4&t&&this._listener.add(e.onDidChangeCursorPosition(e=>{(!i||!o.e.containsPosition(i,e.position))&&this.cancel()})),2&t&&this._listener.add(e.onDidChangeCursorSelection(e=>{(!i||!o.e.containsRange(i,e.selection))&&this.cancel()})),8&t&&this._listener.add(e.onDidScrollChange(e=>this.cancel())),1&t&&(this._listener.add(e.onDidChangeModel(e=>this.cancel())),this._listener.add(e.onDidChangeModelContent(e=>this.cancel())))}dispose(){this._listener.dispose(),super.dispose()}}class c extends r.AU{constructor(e,t){super(t),this._listener=e.onDidChangeContent(()=>this.cancel())}dispose(){this._listener.dispose(),super.dispose()}}},24852:function(e,t,i){"use strict";i.d(t,{aI:function(){return r}});var n=i("4469"),o=i("10702");class r{constructor(e,t,i){this.editorModel=e,this.languageConfigurationService=t,this.foldingRangesLimit=i,this.id="indent"}dispose(){}compute(e){let t=this.languageConfigurationService.getLanguageConfiguration(this.editorModel.getLanguageId()).foldingRules,i=t&&!!t.offSide,o=t&&t.markers;return Promise.resolve(function(e,t,i,o=a){let r,l=e.getOptions().tabSize,d=new s(o);i&&(r=RegExp(`(${i.start.source})|(?:${i.end.source})`));let c=[],h=e.getLineCount()+1;c.push({indent:-1,endAbove:h,line:h});for(let i=e.getLineCount();i>0;i--){let o;let s=e.getLineContent(i),a=(0,n.q)(s,l),h=c[c.length-1];if(-1===a){t&&(h.endAbove=i);continue}if(r&&(o=s.match(r))){if(o[1]){let e=c.length-1;for(;e>0&&-2!==c[e].indent;)e--;if(e>0){c.length=e+1,h=c[e],d.insertFirst(i,h.line,a),h.line=i,h.indent=a,h.endAbove=i;continue}}else{c.push({indent:-2,endAbove:i,line:i});continue}}if(h.indent>a){do c.pop(),h=c[c.length-1];while(h.indent>a);let e=h.endAbove-1;e-i>=1&&d.insertFirst(i,e,a)}h.indent===a?h.endAbove=i:c.push({indent:a,endAbove:i,line:i})}return d.toIndentRanges(e)}(this.editorModel,i,o,this.foldingRangesLimit))}}class s{constructor(e){this._startIndexes=[],this._endIndexes=[],this._indentOccurrences=[],this._length=0,this._foldingRangesLimit=e}insertFirst(e,t,i){if(e>o.Xl||t>o.Xl)return;let n=this._length;this._startIndexes[n]=e,this._endIndexes[n]=t,this._length++,i<1e3&&(this._indentOccurrences[i]=(this._indentOccurrences[i]||0)+1)}toIndentRanges(e){let t=this._foldingRangesLimit.limit;if(this._length<=t){this._foldingRangesLimit.update(this._length,!1);let e=new Uint32Array(this._length),t=new Uint32Array(this._length);for(let i=this._length-1,n=0;i>=0;i--,n++)e[n]=this._startIndexes[i],t[n]=this._endIndexes[i];return new o.MN(e,t)}{this._foldingRangesLimit.update(this._length,t);let i=0,r=this._indentOccurrences.length;for(let e=0;e<this._indentOccurrences.length;e++){let n=this._indentOccurrences[e];if(n){if(n+i>t){r=e;break}i+=n}}let s=e.getOptions().tabSize,a=new Uint32Array(t),l=new Uint32Array(t);for(let o=this._length-1,d=0;o>=0;o--){let c=this._startIndexes[o],h=e.getLineContent(c),u=(0,n.q)(h,s);(u<r||u===r&&i++<t)&&(a[d]=c,l[d]=this._endIndexes[o],d++)}return new o.MN(a,l)}}}let a={limit:5e3,update:()=>{}}},25704:function(e,t,i){"use strict";i.d(t,{EZ:function(){return S},QC:function(){return D},U$:function(){return L},bu:function(){return C},o2:function(){return w},vn:function(){return y},vr:function(){return N}});var n,o=i("55952"),r=i("32623"),s=i("29193"),a=i("13848"),l=i("27236"),d=i("37764"),c=i("59571"),h=i("51413"),u=i("94479"),g=i("95449"),p=i("81171"),f=i("82376"),m=i("1163"),_=i("32681"),v=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s},b=function(e,t){return function(i,n){t(i,n,e)}};let w=class{constructor(e){this._resolverService=e}hasChildren(e){return e instanceof _.oQ||e instanceof _.F2||!1}getChildren(e){if(e instanceof _.oQ)return e.groups;if(e instanceof _.F2)return e.resolve(this._resolverService).then(e=>e.children);throw Error("bad tree")}};w=v([b(0,h.S)],w);class C{getHeight(){return 23}getTemplateId(e){return e instanceof _.F2?L.id:N.id}}let y=class{constructor(e){this._keybindingService=e}getKeyboardNavigationLabel(e){var t;if(e instanceof _.WX){let i=null===(t=e.parent.getPreview(e))||void 0===t?void 0:t.preview(e.range);if(i)return i.value}return(0,c.EZ)(e.uri)}};y=v([b(0,p.d)],y);class S{getId(e){return e instanceof _.WX?e.id:e.uri}}let x=class extends d.JT{constructor(e,t){super(),this._labelService=t;let i=document.createElement("div");i.classList.add("reference-file"),this.file=this._register(new a.g(i,{supportHighlights:!0})),this.badge=new r.Z(o.R3(i,o.$(".count")),{},m.ku),e.appendChild(i)}set(e,t){let i=(0,c.XX)(e.uri);this.file.setLabel(this._labelService.getUriBasenameLabel(e.uri),this._labelService.getUriLabel(i,{relative:!0}),{title:this._labelService.getUriLabel(e.uri),matches:t});let n=e.children.length;this.badge.setCount(n),n>1?this.badge.setTitleFormat((0,u.NC)("referencesCount","{0} references",n)):this.badge.setTitleFormat((0,u.NC)("referenceCount","{0} reference",n))}};x=v([b(1,f.e)],x);let L=n=class{constructor(e){this._instantiationService=e,this.templateId=n.id}renderTemplate(e){return this._instantiationService.createInstance(x,e)}renderElement(e,t,i){i.set(e.element,(0,l.mB)(e.filterData))}disposeTemplate(e){e.dispose()}};L.id="FileReferencesRenderer",L=n=v([b(0,g.TG)],L);class k extends d.JT{constructor(e){super(),this.label=this._register(new s.q(e))}set(e,t){var i;let n=null===(i=e.parent.getPreview(e))||void 0===i?void 0:i.preview(e.range);if(n&&n.value){let{value:e,highlight:i}=n;t&&!l.CL.isDefault(t)?(this.label.element.classList.toggle("referenceMatch",!1),this.label.set(e,(0,l.mB)(t))):(this.label.element.classList.toggle("referenceMatch",!0),this.label.set(e,[i]))}else this.label.set(`${(0,c.EZ)(e.uri)}:${e.range.startLineNumber+1}:${e.range.startColumn+1}`)}}class N{constructor(){this.templateId=N.id}renderTemplate(e){return new k(e)}renderElement(e,t,i){i.set(e.element,e.filterData)}disposeTemplate(e){e.dispose()}}N.id="OneReferenceRenderer";class D{getWidgetAriaLabel(){return(0,u.NC)("treeAriaLabel","References")}getAriaLabel(e){return e.ariaMessage}}},95868:function(e,t,i){"use strict";i.d(t,{P:function(){return S}});var n,o=i("37764"),r=i("56136"),s=i("89172"),a=i("70668"),l=i("83112"),d=i("69758"),c=i("77667"),h=i("95449"),u=i("64141"),g=i("76891"),p=i("66735"),f=i("54146"),m=i("249"),_=i("56421"),v=i("55952"),b=i("756"),w=i("45802"),C=function(e,t){return function(i,n){t(i,n,e)}};class y{constructor(e,t){this.widget=e,this.edit=t}dispose(){this.widget.dispose()}}let S=n=class extends o.JT{static get(e){return e.getContribution(n.ID)}constructor(e,t,i,o,s,a){super(),this.editor=e,this.instantiationService=t,this.contextKeyService=i,this.languageFeaturesService=o,this._commandService=s,this._configurationService=a,this._isVisibleContext=n.inlineEditVisibleContext.bindTo(this.contextKeyService),this._isCursorAtInlineEditContext=n.cursorAtInlineEditContext.bindTo(this.contextKeyService),this._currentEdit=this._register((0,r.DN)(this,void 0)),this._isAccepting=(0,r.uh)(this,!1),this._enabled=(0,r.rD)(this.editor.onDidChangeConfiguration,()=>this.editor.getOption(63).enabled),this._fontFamily=(0,r.rD)(this.editor.onDidChangeConfiguration,()=>this.editor.getOption(63).fontFamily),this._backgroundColoring=(0,r.rD)(this.editor.onDidChangeConfiguration,()=>this.editor.getOption(63).backgroundColoring);let l=(0,r.aq)("InlineEditController.modelContentChangedSignal",e.onDidChangeModelContent);this._register((0,r.EH)(t=>{if(!!this._enabled.read(t))l.read(t),!this._isAccepting.read(t)&&this.getInlineEdit(e,!0)}));let d=(0,r.rD)(e.onDidChangeCursorPosition,()=>e.getPosition());this._register((0,r.EH)(e=>{if(!this._enabled.read(e))return;let t=d.read(e);t&&this.checkCursorPosition(t)})),this._register((0,r.EH)(t=>{let i=this._currentEdit.read(t);if(this._isCursorAtInlineEditContext.set(!1),!i){this._isVisibleContext.set(!1);return}this._isVisibleContext.set(!0);let n=e.getPosition();n&&this.checkCursorPosition(n)}));let c=(0,r.aq)("InlineEditController.editorBlurSignal",e.onDidBlurEditorWidget);this._register((0,r.EH)(async t=>{var i;if(!!this._enabled.read(t))c.read(t),!this._configurationService.getValue("editor.experimentalInlineEdit.keepOnBlur")&&!e.getOption(63).keepOnBlur&&(null===(i=this._currentRequestCts)||void 0===i||i.dispose(!0),this._currentRequestCts=void 0,await this.clear(!1))}));let h=(0,r.aq)("InlineEditController.editorFocusSignal",e.onDidFocusEditorText);this._register((0,r.EH)(t=>{this._enabled.read(t)&&(h.read(t),this.getInlineEdit(e,!0))}));let u=this._register((0,v.aU)());this._register((0,r.EH)(e=>{let t=this._fontFamily.read(e);u.setStyle(""===t||"default"===t?"":`
4
4
  .monaco-editor .inline-edit-decoration,