@rsdoctor/client 0.3.2 → 0.3.3
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.
- package/dist/index.html +1 -1
- package/dist/resource/css/826.2794f707.css +4 -0
- package/dist/resource/font/{codicon.7fe16dbd.ttf → codicon.44bc17fa.ttf} +0 -0
- package/dist/resource/js/{505.b0671115.js → 826.5dba3977.js} +5 -5
- package/dist/resource/js/async/{811.1fbe2090.js → 811.aeb19dcb.js} +1 -1
- package/dist/resource/js/index.f0279c55.js +156 -0
- package/dist/resource/js/monaco-0.92c812de.js +20 -0
- package/dist/resource/js/monaco-1.6a7defc9.js +1 -0
- package/dist/resource/js/monaco-10.cdc45bb5.js +3 -0
- package/dist/resource/js/monaco-11.40a1fcb1.js +4 -0
- package/dist/resource/js/monaco-12.0c116aa2.js +43 -0
- package/dist/resource/js/monaco-13.dcefcf80.js +366 -0
- package/dist/resource/js/monaco-14.afa84c5f.js +42 -0
- package/dist/resource/js/monaco-15.26757ead.js +8 -0
- package/dist/resource/js/monaco-16.77a3677c.js +4 -0
- package/dist/resource/js/monaco-17.b0290dba.js +1 -0
- package/dist/resource/js/monaco-2.133a02f6.js +18 -0
- package/dist/resource/js/monaco-3.6eef79c7.js +14 -0
- package/dist/resource/js/monaco-4.b9b35171.js +301 -0
- package/dist/resource/js/monaco-5.b2a6d9b1.js +8 -0
- package/dist/resource/js/monaco-6.042b95c8.js +3 -0
- package/dist/resource/js/monaco-7.0c2b350f.js +1 -0
- package/dist/resource/js/monaco-8.389906ed.js +1 -0
- package/dist/resource/js/monaco-9.9a685176.js +1 -0
- package/package.json +3 -3
- package/dist/resource/css/505.b09c71b1.css +0 -1
- package/dist/resource/js/index.fc9559d0.js +0 -156
- package/dist/resource/js/monaco-0.c3af1bd3.js +0 -2
- package/dist/resource/js/monaco-1.7ad7764f.js +0 -369
- package/dist/resource/js/monaco-10.4db28e1a.js +0 -4
- package/dist/resource/js/monaco-11.18edf242.js +0 -25
- package/dist/resource/js/monaco-12.f2868e03.js +0 -5
- package/dist/resource/js/monaco-13.88108488.js +0 -1
- package/dist/resource/js/monaco-14.9ed23e83.js +0 -70
- package/dist/resource/js/monaco-2.6895e134.js +0 -17
- package/dist/resource/js/monaco-3.51c02ad7.js +0 -31
- package/dist/resource/js/monaco-4.2525ec7c.js +0 -31
- package/dist/resource/js/monaco-5.5bc856bc.js +0 -1
- package/dist/resource/js/monaco-6.6e712e08.js +0 -1
- package/dist/resource/js/monaco-7.1fa8c3af.js +0 -1
- package/dist/resource/js/monaco-8.dcf3e8dc.js +0 -38
- package/dist/resource/js/monaco-9.7c59b09b.js +0 -7
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_rsdoctor_client=self.webpackChunk_rsdoctor_client||[]).push([["889"],{63307:function(e,t,i){"use strict";i.d(t,{a:function(){return A}});var n=i("9737"),r=i("93665"),o=i("53376"),s=i("51661"),l=i("19219"),a=i("72740"),u=i("61111"),h=i("16904"),d=i("70691"),c=i("47578"),g=i("20467"),f=i("19527"),p=i("95204"),m=i("3751"),D=i("24342"),C=i("777"),_=i("37454"),E=i("66763"),b=i("38505");function A(e,t={},i={}){var r;let _=new f.SL,A=!1,L=(0,s.az)(t),S=function(t){let i;try{i=(0,m.Q)(decodeURIComponent(t))}catch(e){}return i?encodeURIComponent(JSON.stringify(i=(0,C.rs)(i,t=>e.uris&&e.uris[t]?b.o.revive(e.uris[t]):void 0))):t},N=function(t,i){let n=e.uris&&e.uris[t],r=b.o.revive(n);if(i)return t.startsWith(D.lg.data+":")?t:(!r&&(r=b.o.parse(t)),D.Gi.asBrowserUri(r).toString(!0));return r&&b.o.parse(t).toString()!==r.toString()?(r.query&&(r=r.with({query:S(r.query)})),r.toString()):t},I=new p.T.Renderer;I.image=(e,t,i)=>{let n=[],r=[];return e&&({href:e,dimensions:n}=(0,d.v1)(e),r.push(`src="${(0,d.d9)(e)}"`)),i&&r.push(`alt="${(0,d.d9)(i)}"`),t&&r.push(`title="${(0,d.d9)(t)}"`),n.length&&(r=r.concat(n)),"<img "+r.join(" ")+">"},I.link=(e,t,i)=>"string"!=typeof e?"":(e===i&&(i=(0,d.oR)(i)),t="string"==typeof t?(0,d.d9)((0,d.oR)(t)):"",e=(e=(0,d.oR)(e)).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),`<a href="${e}" title="${t||e}">${i}</a>`),I.paragraph=e=>`<p>${e}</p>`;let F=[];if(t.codeBlockRenderer&&(I.code=(e,i)=>{let n=g.a.nextId(),r=t.codeBlockRenderer(null!=i?i:"",e);return F.push(r.then(e=>[n,e])),`<div class="code" data-code="${n}">${(0,E.YU)(e)}</div>`}),t.actionHandler){let i=t.actionHandler.disposables.add(new o.Y(L,"click")),n=t.actionHandler.disposables.add(new o.Y(L,"auxclick"));t.actionHandler.disposables.add(h.ju.any(i.event,n.event)(i=>{let n=new l.n(i);if(!n.leftButton&&!n.middleButton)return;let r=n.target;if("A"===r.tagName||!!(r=r.parentElement)&&"A"===r.tagName)try{let i=r.dataset.href;i&&(e.baseUri&&(i=k(b.o.from(e.baseUri),i)),t.actionHandler.callback(i,n))}catch(e){(0,u.dL)(e)}finally{n.preventDefault()}}))}!e.supportHtml&&(i.sanitizer=t=>(e.isTrusted?t.match(/^(<span[^>]+>)|(<\/\s*span>)$/):void 0)?t:"",i.sanitize=!0,i.silent=!0),i.renderer=I;let R=null!==(r=e.value)&&void 0!==r?r:"";R.length>1e5&&(R=`${R.substr(0,1e5)}\u{2026}`),e.supportThemeIcons&&(R=(0,c.f$)(R));let T=p.T.parse(R,i);e.supportThemeIcons&&(T=(0,a.T)(T).map(e=>"string"==typeof e?e:e.outerHTML).join(""));let x=new DOMParser().parseFromString(v(e,T),"text/html");if(x.body.querySelectorAll("img").forEach(t=>{let i=t.getAttribute("src");if(i){let n=i;try{e.baseUri&&(n=k(b.o.from(e.baseUri),n))}catch(e){}t.src=N(n,!0)}}),x.body.querySelectorAll("a").forEach(t=>{let i=t.getAttribute("href");if(t.setAttribute("href",""),!i||/^data:|javascript:/i.test(i)||/^command:/i.test(i)&&!e.isTrusted||/^command:(\/\/\/)?_workbench\.downloadResource/i.test(i))t.replaceWith(...t.childNodes);else{let n=N(i,!1);e.baseUri&&(n=k(b.o.from(e.baseUri),i)),t.dataset.href=n}}),L.innerHTML=v(e,x.body.innerHTML),F.length>0&&Promise.all(F).then(e=>{var i,r;if(A)return;let o=new Map(e);for(let e of L.querySelectorAll("div[data-code]")){let t=o.get(null!==(i=e.dataset.code)&&void 0!==i?i:"");t&&n.mc(e,t)}null===(r=t.asyncRenderCallback)||void 0===r||r.call(t)}),t.asyncRenderCallback)for(let e of L.getElementsByTagName("img")){let i=_.add(n.nm(e,"load",()=>{i.dispose(),t.asyncRenderCallback()}))}return{element:L,dispose:()=>{A=!0,_.dispose()}}}function k(e,t){return/^\w[\w\d+.-]*:/.test(t)?t:e.path.endsWith("/")?(0,_.i3)(e,t).toString():(0,_.i3)((0,_.XX)(e),t).toString()}function v(e,t){let{config:i,allowedSchemes:o}=function(e){let t=[D.lg.http,D.lg.https,D.lg.mailto,D.lg.data,D.lg.file,D.lg.vscodeFileResource,D.lg.vscodeRemote,D.lg.vscodeRemoteResource];return e.isTrusted&&t.push(D.lg.command),{config:{ALLOWED_TAGS:["ul","li","p","b","i","code","blockquote","ol","h1","h2","h3","h4","h5","h6","hr","em","pre","table","thead","tbody","tr","th","td","div","del","a","strong","br","img","span"],ALLOWED_ATTR:["href","data-href","target","title","src","alt","class","style","data-code","width","height","align"],ALLOW_UNKNOWN_PROTOCOLS:!0},allowedSchemes:t}}(e);r.v5("uponSanitizeAttribute",(e,t)=>{if("style"===t.attrName||"class"===t.attrName){if("SPAN"===e.tagName){if("style"===t.attrName){t.keepAttr=/^(color\:#[0-9a-fA-F]+;)?(background-color\:#[0-9a-fA-F]+;)?$/.test(t.attrValue);return}if("class"===t.attrName){t.keepAttr=/^codicon codicon-[a-z\-]+( codicon-modifier-[a-z\-]+)?$/.test(t.attrValue);return}}t.keepAttr=!1;return}});let s=n._F(o);try{return r.Nw(t,Object.assign(Object.assign({},i),{RETURN_TRUSTED_TYPE:!0}))}finally{r.ok("uponSanitizeAttribute"),s.dispose()}}},19219:function(e,t,i){"use strict";i.d(t,{n:function(){return s},q:function(){return l}});var n=i("59527"),r=i("53182"),o=i("7875");class s{constructor(e){this.timestamp=Date.now(),this.browserEvent=e,this.leftButton=0===e.button,this.middleButton=1===e.button,this.rightButton=2===e.button,this.buttons=e.buttons,this.target=e.target,this.detail=e.detail||1,"dblclick"===e.type&&(this.detail=2),this.ctrlKey=e.ctrlKey,this.shiftKey=e.shiftKey,this.altKey=e.altKey,this.metaKey=e.metaKey,"number"==typeof e.pageX?(this.posx=e.pageX,this.posy=e.pageY):(this.posx=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,this.posy=e.clientY+document.body.scrollTop+document.documentElement.scrollTop);let t=r.E.getPositionOfChildWindowRelativeToAncestorWindow(self,e.view);this.posx-=t.left,this.posy-=t.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}}class l{constructor(e,t=0,i=0){this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=i,this.deltaX=t,e&&(void 0!==e.wheelDeltaY?this.deltaY=e.wheelDeltaY/120:void 0!==e.VERTICAL_AXIS&&e.axis===e.VERTICAL_AXIS?this.deltaY=-e.detail/3:"wheel"===e.type&&(e.deltaMode===e.DOM_DELTA_LINE?n.isFirefox&&!o.dz?this.deltaY=-e.deltaY/3:this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40),void 0!==e.wheelDeltaX?n.isSafari&&o.ED?this.deltaX=-(e.wheelDeltaX/120):this.deltaX=e.wheelDeltaX/120:void 0!==e.HORIZONTAL_AXIS&&e.axis===e.HORIZONTAL_AXIS?this.deltaX=-e.detail/3:"wheel"===e.type&&(e.deltaMode===e.DOM_DELTA_LINE?n.isFirefox&&!o.dz?this.deltaX=-e.deltaX/3:this.deltaX=-e.deltaX:this.deltaX=-e.deltaX/40),0===this.deltaY&&0===this.deltaX&&e.wheelDelta&&(this.deltaY=e.wheelDelta/120))}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation()}}},20184:function(e,t,i){"use strict";i.d(t,{V:function(){return u}});var n=i("9737"),r=i("25806"),o=i("85710"),s=i("95832"),l=i("16904");i("86343");let a=i("8339").NC("defaultLabel","input");class u extends s.${constructor(e,t,i,s){var u;super(),this._showOptionButtons=i,this.fixFocusOnOptionClickEnabled=!0,this.imeSessionInProgress=!1,this.additionalToggles=[],this._onDidOptionChange=this._register(new l.Q5),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new l.Q5),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new l.Q5),this.onMouseDown=this._onMouseDown.event,this._onInput=this._register(new l.Q5),this._onKeyUp=this._register(new l.Q5),this._onCaseSensitiveKeyDown=this._register(new l.Q5),this.onCaseSensitiveKeyDown=this._onCaseSensitiveKeyDown.event,this._onRegexKeyDown=this._register(new l.Q5),this.onRegexKeyDown=this._onRegexKeyDown.event,this._lastHighlightFindOptions=0,this.contextViewProvider=t,this.placeholder=s.placeholder||"",this.validation=s.validation,this.label=s.label||a,this.inputActiveOptionBorder=s.inputActiveOptionBorder,this.inputActiveOptionForeground=s.inputActiveOptionForeground,this.inputActiveOptionBackground=s.inputActiveOptionBackground,this.inputBackground=s.inputBackground,this.inputForeground=s.inputForeground,this.inputBorder=s.inputBorder,this.inputValidationInfoBorder=s.inputValidationInfoBorder,this.inputValidationInfoBackground=s.inputValidationInfoBackground,this.inputValidationInfoForeground=s.inputValidationInfoForeground,this.inputValidationWarningBorder=s.inputValidationWarningBorder,this.inputValidationWarningBackground=s.inputValidationWarningBackground,this.inputValidationWarningForeground=s.inputValidationWarningForeground,this.inputValidationErrorBorder=s.inputValidationErrorBorder,this.inputValidationErrorBackground=s.inputValidationErrorBackground,this.inputValidationErrorForeground=s.inputValidationErrorForeground;let h=s.appendCaseSensitiveLabel||"",d=s.appendWholeWordsLabel||"",c=s.appendRegexLabel||"",g=s.history||[],f=!!s.flexibleHeight,p=!!s.flexibleWidth,m=s.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new o.p(this.domNode,this.contextViewProvider,{placeholder:this.placeholder||"",ariaLabel:this.label||"",validationOptions:{validation:this.validation},inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder,history:g,showHistoryHint:s.showHistoryHint,flexibleHeight:f,flexibleWidth:p,flexibleMaxHeight:m})),this.regex=this._register(new r.eH({appendTitle:c,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.regex.onChange(e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.regex.onKeyDown(e=>{this._onRegexKeyDown.fire(e)})),this.wholeWords=this._register(new r.Qx({appendTitle:d,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.wholeWords.onChange(e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this.caseSensitive=this._register(new r.rk({appendTitle:h,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.caseSensitive.onChange(e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.caseSensitive.onKeyDown(e=>{this._onCaseSensitiveKeyDown.fire(e)}));let D=[this.caseSensitive.domNode,this.wholeWords.domNode,this.regex.domNode];for(let e of(this.onkeydown(this.domNode,e=>{if(e.equals(15)||e.equals(17)||e.equals(9)){let t=D.indexOf(document.activeElement);if(t>=0){let i=-1;e.equals(17)?i=(t+1)%D.length:e.equals(15)&&(i=0===t?D.length-1:t-1),e.equals(9)?(D[t].blur(),this.inputBox.focus()):i>=0&&D[i].focus(),n.zB.stop(e,!0)}}}),this.controls=document.createElement("div"),this.controls.className="controls",this.controls.style.display=this._showOptionButtons?"block":"none",this.controls.appendChild(this.caseSensitive.domNode),this.controls.appendChild(this.wholeWords.domNode),this.controls.appendChild(this.regex.domNode),!this._showOptionButtons&&(this.caseSensitive.domNode.style.display="none",this.wholeWords.domNode.style.display="none",this.regex.domNode.style.display="none"),null!==(u=null==s?void 0:s.additionalToggles)&&void 0!==u?u:[]))this._register(e),this.controls.appendChild(e.domNode),this._register(e.onChange(e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus()})),this.additionalToggles.push(e);this.additionalToggles.length>0&&(this.controls.style.display="block"),this.inputBox.paddingRight=(this._showOptionButtons?this.caseSensitive.width()+this.wholeWords.width()+this.regex.width():0)+this.additionalToggles.reduce((e,t)=>e+t.width(),0),this.domNode.appendChild(this.controls),null==e||e.appendChild(this.domNode),this._register(n.nm(this.inputBox.inputElement,"compositionstart",e=>{this.imeSessionInProgress=!0})),this._register(n.nm(this.inputBox.inputElement,"compositionend",e=>{this.imeSessionInProgress=!1,this._onInput.fire()})),this.onkeydown(this.inputBox.inputElement,e=>this._onKeyDown.fire(e)),this.onkeyup(this.inputBox.inputElement,e=>this._onKeyUp.fire(e)),this.oninput(this.inputBox.inputElement,e=>this._onInput.fire()),this.onmousedown(this.inputBox.inputElement,e=>this._onMouseDown.fire(e))}get onDidChange(){return this.inputBox.onDidChange}enable(){for(let e of(this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.regex.enable(),this.wholeWords.enable(),this.caseSensitive.enable(),this.additionalToggles))e.enable()}disable(){for(let e of(this.domNode.classList.add("disabled"),this.inputBox.disable(),this.regex.disable(),this.wholeWords.disable(),this.caseSensitive.disable(),this.additionalToggles))e.disable()}setFocusInputOnOptionClick(e){this.fixFocusOnOptionClickEnabled=e}setEnabled(e){e?this.enable():this.disable()}getValue(){return this.inputBox.value}setValue(e){this.inputBox.value!==e&&(this.inputBox.value=e)}style(e){this.inputActiveOptionBorder=e.inputActiveOptionBorder,this.inputActiveOptionForeground=e.inputActiveOptionForeground,this.inputActiveOptionBackground=e.inputActiveOptionBackground,this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()}applyStyles(){if(this.domNode){let e={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground};for(let t of(this.regex.style(e),this.wholeWords.style(e),this.caseSensitive.style(e),this.additionalToggles))t.style(e);let t={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(t)}}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getCaseSensitive(){return this.caseSensitive.checked}setCaseSensitive(e){this.caseSensitive.checked=e}getWholeWords(){return this.wholeWords.checked}setWholeWords(e){this.wholeWords.checked=e}getRegex(){return this.regex.checked}setRegex(e){this.regex.checked=e,this.validate()}focusOnCaseSensitive(){this.caseSensitive.focus()}highlightFindOptions(){this.domNode.classList.remove("highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,this.domNode.classList.add("highlight-"+this._lastHighlightFindOptions)}validate(){this.inputBox.validate()}showMessage(e){this.inputBox.showMessage(e)}clearMessage(){this.inputBox.hideMessage()}}},26573:function(e,t,i){"use strict";i.d(t,{e:function(){return a}});var n=i("9737"),r=i("2881"),o=i("777");i("30072");var s=i("8339");let l=n.$;class a{constructor(e,t,i){this.os=t,this.keyElements=new Set,this.options=i||Object.create(null),this.labelBackground=this.options.keybindingLabelBackground,this.labelForeground=this.options.keybindingLabelForeground,this.labelBorder=this.options.keybindingLabelBorder,this.labelBottomBorder=this.options.keybindingLabelBottomBorder,this.labelShadow=this.options.keybindingLabelShadow,this.domNode=n.R3(e,l(".monaco-keybinding")),this.didEverRender=!1,e.appendChild(this.domNode)}get element(){return this.domNode}set(e,t){!(this.didEverRender&&this.keybinding===e&&a.areSame(this.matches,t))&&(this.keybinding=e,this.matches=t,this.render())}render(){if(this.clear(),this.keybinding){let[e,t]=this.keybinding.getParts();e&&this.renderPart(this.domNode,e,this.matches?this.matches.firstPart:null),t&&(n.R3(this.domNode,l("span.monaco-keybinding-key-chord-separator",void 0," ")),this.renderPart(this.domNode,t,this.matches?this.matches.chordPart:null)),this.domNode.title=this.keybinding.getAriaLabel()||""}else this.options&&this.options.renderUnboundKeybindings&&this.renderUnbound(this.domNode);this.applyStyles(),this.didEverRender=!0}clear(){n.PO(this.domNode),this.keyElements.clear()}renderPart(e,t,i){let n=r.xo.modifierLabels[this.os];t.ctrlKey&&this.renderKey(e,n.ctrlKey,!!(null==i?void 0:i.ctrlKey),n.separator),t.shiftKey&&this.renderKey(e,n.shiftKey,!!(null==i?void 0:i.shiftKey),n.separator),t.altKey&&this.renderKey(e,n.altKey,!!(null==i?void 0:i.altKey),n.separator),t.metaKey&&this.renderKey(e,n.metaKey,!!(null==i?void 0:i.metaKey),n.separator);let o=t.keyLabel;o&&this.renderKey(e,o,!!(null==i?void 0:i.keyCode),"")}renderKey(e,t,i,r){n.R3(e,this.createKeyElement(t,i?".highlight":"")),r&&n.R3(e,l("span.monaco-keybinding-key-separator",void 0,r))}renderUnbound(e){n.R3(e,this.createKeyElement((0,s.NC)("unbound","Unbound")))}createKeyElement(e,t=""){let i=l("span.monaco-keybinding-key"+t,void 0,e);return this.keyElements.add(i),i}style(e){this.labelBackground=e.keybindingLabelBackground,this.labelForeground=e.keybindingLabelForeground,this.labelBorder=e.keybindingLabelBorder,this.labelBottomBorder=e.keybindingLabelBottomBorder,this.labelShadow=e.keybindingLabelShadow,this.applyStyles()}applyStyles(){var e;if(this.element){for(let t of this.keyElements)this.labelBackground&&(t.style.backgroundColor=null===(e=this.labelBackground)||void 0===e?void 0:e.toString()),this.labelBorder&&(t.style.borderColor=this.labelBorder.toString()),this.labelBottomBorder&&(t.style.borderBottomColor=this.labelBottomBorder.toString()),this.labelShadow&&(t.style.boxShadow=`inset 0 -1px 0 ${this.labelShadow}`);this.labelForeground&&(this.element.style.color=this.labelForeground.toString())}}static areSame(e,t){return e===t||!e&&!t||!!e&&!!t&&(0,o.fS)(e.firstPart,t.firstPart)&&(0,o.fS)(e.chordPart,t.chordPart)}}},85976:function(e,t,i){"use strict";i.d(t,{u:function(){return o}});var n=i("55498"),r=i("3692");class o extends n.CH{constructor(e,t,i,n,r,o={}){super(e,t,i,n,o),this.user=e,this.dataSource=r,this.identityProvider=o.identityProvider}createModel(e,t,i){return new r.F(e,t,i)}}},67518:function(e,t,i){"use strict";let n;i.d(t,{Aq:function(){return F},CR:function(){return I},J8:function(){return g},PG:function(){return f},Ps:function(){return k},To:function(){return n},Ue:function(){return N},Vg:function(){return A},Vs:function(){return function e(t,i){return i?new Promise((e,n)=>{let r=setTimeout(()=>{o.dispose(),e()},t),o=i.onCancellationRequested(()=>{clearTimeout(r),o.dispose(),n(new l.FU)})}):f(i=>e(t,i))}},_F:function(){return v},eP:function(){return p},jT:function(){return o},ne:function(){return _},pY:function(){return S},rH:function(){return b},vp:function(){return E},zS:function(){return T},zh:function(){return L}});var r,o,s=i("862"),l=i("61111"),a=i("16904"),u=i("19527"),h=i("7875"),d=function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function s(e){try{a(n.next(e))}catch(e){o(e)}}function l(e){try{a(n.throw(e))}catch(e){o(e)}}function a(e){var t;e.done?r(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(s,l)}a((n=n.apply(e,t||[])).next())})},c=function(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,i=e[Symbol.asyncIterator];return i?i.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(i){t[i]=e[i]&&function(t){return new Promise(function(n,r){(function(e,t,i,n){Promise.resolve(n).then(function(t){e({value:t,done:i})},t)})(n,r,(t=e[i](t)).done,t.value)})}}};function g(e){return!!e&&"function"==typeof e.then}function f(e){let t=new s.A,i=e(t.token),n=new Promise((e,n)=>{let r=t.token.onCancellationRequested(()=>{r.dispose(),t.dispose(),n(new l.FU)});Promise.resolve(i).then(i=>{r.dispose(),t.dispose(),e(i)},e=>{r.dispose(),t.dispose(),n(e)})});return new class{cancel(){t.cancel()}then(e,t){return n.then(e,t)}catch(e){return this.then(void 0,e)}finally(e){return n.finally(e)}}}function p(e,t,i){return new Promise((n,r)=>{let o=t.onCancellationRequested(()=>{o.dispose(),n(i)});e.then(n,r).finally(()=>o.dispose())})}class m{constructor(){this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(e){if(this.activePromise){if(this.queuedPromiseFactory=e,!this.queuedPromise){let e=()=>{this.queuedPromise=null;let e=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,e};this.queuedPromise=new Promise(t=>{this.activePromise.then(e,e).then(t)})}return new Promise((e,t)=>{this.queuedPromise.then(e,t)})}return this.activePromise=e(),new Promise((e,t)=>{this.activePromise.then(t=>{this.activePromise=null,e(t)},e=>{this.activePromise=null,t(e)})})}}let D=(e,t)=>{let i=!0,n=setTimeout(()=>{i=!1,t()},e);return{isTriggered:()=>i,dispose:()=>{clearTimeout(n),i=!1}}},C=e=>{let t=!0;return queueMicrotask(()=>{t&&(t=!1,e())}),{isTriggered:()=>t,dispose:()=>{t=!1}}},_=Symbol("MicrotaskDelay");class E{constructor(e){this.defaultDelay=e,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(e,t=this.defaultDelay){this.task=e,this.cancelTimeout(),!this.completionPromise&&(this.completionPromise=new Promise((e,t)=>{this.doResolve=e,this.doReject=t}).then(()=>{if(this.completionPromise=null,this.doResolve=null,this.task){let e=this.task;return this.task=null,e()}}));let i=()=>{var e;this.deferred=null,null===(e=this.doResolve)||void 0===e||e.call(this,null)};return this.deferred=t===_?C(i):D(t,i),this.completionPromise}isTriggered(){var e;return!!(null===(e=this.deferred)||void 0===e?void 0:e.isTriggered())}cancel(){var e;this.cancelTimeout(),this.completionPromise&&(null===(e=this.doReject)||void 0===e||e.call(this,new l.FU),this.completionPromise=null)}cancelTimeout(){var e;null===(e=this.deferred)||void 0===e||e.dispose(),this.deferred=null}dispose(){this.cancel()}}class b{constructor(e){this.delayer=new E(e),this.throttler=new m}trigger(e,t){return this.delayer.trigger(()=>this.throttler.queue(e),t)}dispose(){this.delayer.dispose()}}function A(e,t=0){let i=setTimeout(e,t);return(0,u.OF)(()=>clearTimeout(i))}function k(e,t=e=>!!e,i=null){let n=0,r=e.length,o=()=>n>=r?Promise.resolve(i):Promise.resolve((0,e[n++])()).then(e=>t(e)?Promise.resolve(e):o());return o()}class v{constructor(e,t){this._token=-1,"function"==typeof e&&"number"==typeof t&&this.setIfNotSet(e,t)}dispose(){this.cancel()}cancel(){-1!==this._token&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setTimeout(()=>{this._token=-1,e()},t)}setIfNotSet(e,t){-1===this._token&&(this._token=setTimeout(()=>{this._token=-1,e()},t))}}class L{constructor(){this._token=-1}dispose(){this.cancel()}cancel(){-1!==this._token&&(clearInterval(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setInterval(()=>{e()},t)}}class S{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return -1!==this.timeoutToken}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){var e;null===(e=this.runner)||void 0===e||e.call(this)}}"function"!=typeof requestIdleCallback||"function"!=typeof cancelIdleCallback?n=e=>{(0,h.fn)(()=>{if(t)return;let i=Date.now()+15;e(Object.freeze({didTimeout:!0,timeRemaining:()=>Math.max(0,i-Date.now())}))});let t=!1;return{dispose(){!t&&(t=!0)}}}:n=(e,t)=>{let i=requestIdleCallback(e,"number"==typeof t?{timeout:t}:void 0),n=!1;return{dispose(){!n&&(n=!0,cancelIdleCallback(i))}}};class N{constructor(e){this._didRun=!1,this._executor=()=>{try{this._value=e()}catch(e){this._error=e}finally{this._didRun=!0}},this._handle=n(()=>this._executor())}dispose(){this._handle.dispose()}get value(){if(!this._didRun&&(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}get isInitialized(){return this._didRun}}class I{constructor(){this.rejected=!1,this.resolved=!1,this.p=new Promise((e,t)=>{this.completeCallback=e,this.errorCallback=t})}get isRejected(){return this.rejected}get isSettled(){return this.rejected||this.resolved}complete(e){return new Promise(t=>{this.completeCallback(e),this.resolved=!0,t()})}cancel(){new Promise(e=>{this.errorCallback(new l.FU),this.rejected=!0,e()})}}(r=o||(o={})).settled=function(e){return d(this,void 0,void 0,function*(){let t;let i=yield Promise.all(e.map(e=>e.then(e=>e,e=>{!t&&(t=e)})));if(void 0!==t)throw t;return i})},r.withAsyncBody=function(e){return new Promise((t,i)=>d(this,void 0,void 0,function*(){try{yield e(t,i)}catch(e){i(e)}}))};class F{constructor(e){this._state=0,this._results=[],this._error=null,this._onStateChanged=new a.Q5,queueMicrotask(()=>d(this,void 0,void 0,function*(){let t={emitOne:e=>this.emitOne(e),emitMany:e=>this.emitMany(e),reject:e=>this.reject(e)};try{yield Promise.resolve(e(t)),this.resolve()}catch(e){this.reject(e)}finally{t.emitOne=void 0,t.emitMany=void 0,t.reject=void 0}}))}static fromArray(e){return new F(t=>{t.emitMany(e)})}static fromPromise(e){return new F(t=>d(this,void 0,void 0,function*(){t.emitMany((yield e))}))}static fromPromises(e){return new F(t=>d(this,void 0,void 0,function*(){yield Promise.all(e.map(e=>d(this,void 0,void 0,function*(){return t.emitOne((yield e))})))}))}static merge(e){return new F(t=>d(this,void 0,void 0,function*(){yield Promise.all(e.map(e=>{var i,n;return d(this,void 0,void 0,function*(){var r,o;try{for(i=c(e);!(n=yield i.next()).done;){let e=n.value;t.emitOne(e)}}catch(e){r={error:e}}finally{try{n&&!n.done&&(o=i.return)&&(yield o.call(i))}finally{if(r)throw r.error}}})}))}))}[Symbol.asyncIterator](){let e=0;return{next:()=>d(this,void 0,void 0,function*(){for(;;){if(2===this._state)throw this._error;if(e<this._results.length)return{done:!1,value:this._results[e++]};if(1===this._state)return{done:!0,value:void 0};yield a.ju.toPromise(this._onStateChanged.event)}})}}static map(e,t){return new F(i=>d(this,void 0,void 0,function*(){var n,r;try{for(var o,s=c(e);!(o=yield s.next()).done;){let e=o.value;i.emitOne(t(e))}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=s.return)&&(yield r.call(s))}finally{if(n)throw n.error}}}))}map(e){return F.map(this,e)}static filter(e,t){return new F(i=>d(this,void 0,void 0,function*(){var n,r;try{for(var o,s=c(e);!(o=yield s.next()).done;){let e=o.value;t(e)&&i.emitOne(e)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=s.return)&&(yield r.call(s))}finally{if(n)throw n.error}}}))}filter(e){return F.filter(this,e)}static coalesce(e){return F.filter(e,e=>!!e)}coalesce(){return F.coalesce(this)}static toPromise(e){var t,i,n,r;return d(this,void 0,void 0,function*(){let o=[];try{for(t=c(e);!(i=yield t.next()).done;){let e=i.value;o.push(e)}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=t.return)&&(yield r.call(t))}finally{if(n)throw n.error}}return o})}toPromise(){return F.toPromise(this)}emitOne(e){0===this._state&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){0===this._state&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){0===this._state&&(this._state=1,this._onStateChanged.fire())}reject(e){0===this._state&&(this._state=2,this._error=e,this._onStateChanged.fire())}}F.EMPTY=F.fromArray([]);class R extends F{constructor(e,t){super(t),this._source=e}cancel(){this._source.cancel()}}function T(e){let t=new s.A,i=e(t.token);return new R(t,e=>d(this,void 0,void 0,function*(){var n,r;let o=t.token.onCancellationRequested(()=>{o.dispose(),t.dispose(),e.reject(new l.FU)});try{try{for(var s,a=c(i);!(s=yield a.next()).done;){let i=s.value;if(t.token.isCancellationRequested)return;e.emitOne(i)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=a.return)&&(yield r.call(a))}finally{if(n)throw n.error}}o.dispose(),t.dispose()}catch(i){o.dispose(),t.dispose(),e.reject(i)}}))}},22e3:function(e,t,i){"use strict";i.d(t,{KM:function(){return h},ej:function(){return l},fn:function(){return a},oP:function(){return c},yj:function(){return u}});var n=i("55410"),r=i("7875"),o=i("66763");function s(e){return 47===e||92===e}function l(e){return e.replace(/[\\/]/g,n.KR.sep)}function a(e){return -1===e.indexOf("/")&&(e=l(e)),/^[a-zA-Z]:(\/|$)/.test(e)&&(e="/"+e),e}function u(e,t=n.KR.sep){if(!e)return"";let i=e.length,r=e.charCodeAt(0);if(s(r)){if(s(e.charCodeAt(1))&&!s(e.charCodeAt(2))){let n=3,r=3;for(;n<i&&!s(e.charCodeAt(n));n++);if(r!==n&&!s(e.charCodeAt(n+1))){for(n+=1;n<i;n++)if(s(e.charCodeAt(n)))return e.slice(0,n+1).replace(/[\\/]/g,t)}}return t}if(d(r)&&58===e.charCodeAt(1))return s(e.charCodeAt(2))?e.slice(0,2)+t:e.slice(0,2);let o=e.indexOf("://");if(-1!==o){for(o+=3;o<i;o++)if(s(e.charCodeAt(o)))return e.slice(0,o+1)}return""}function h(e,t,i,r=n.ir){if(e===t)return!0;if(!e||!t||t.length>e.length)return!1;if(i){if(!(0,o.ok)(e,t))return!1;if(t.length===e.length)return!0;let i=t.length;return t.charAt(t.length-1)===r&&i--,e.charAt(i)===r}return t.charAt(t.length-1)!==r&&(t+=r),0===e.indexOf(t)}function d(e){return e>=65&&e<=90||e>=97&&e<=122}function c(e,t=r.ED){return!!t&&d(e.charCodeAt(0))&&58===e.charCodeAt(1)}},19527:function(e,t,i){"use strict";i.d(t,{B9:function(){return _},F8:function(){return E},JT:function(){return k},Jz:function(){return N},L6:function(){return L},OF:function(){return b},SL:function(){return A},Wf:function(){return C},XK:function(){return v},dk:function(){return m},dt:function(){return S}});var n,r,o,s,l,a,u,h=i("13313"),d=i("80189");let c=null;function g(e){return null==c||c.trackDisposable(e),e}function f(e){null==c||c.markAsDisposed(e)}function p(e,t){null==c||c.setParent(e,t)}function m(e){return null==c||c.markAsSingleton(e),e}class D extends Error{constructor(e){super(`Encountered errors while disposing of store. Errors: [${e.join(", ")}]`),this.errors=e}}function C(e){return"function"==typeof e.dispose&&0===e.dispose.length}function _(e){if(d.$.is(e)){let t=[];for(let i of e)if(i)try{i.dispose()}catch(e){t.push(e)}if(1===t.length)throw t[0];if(t.length>1)throw new D(t);return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function E(...e){let t=b(()=>_(e));return!function(e,t){if(c)for(let i of e)c.setParent(i,t)}(e,t),t}function b(e){let t=g({dispose:(0,h.I)(()=>{f(t),e()})});return t}class A{constructor(){this._toDispose=new Set,this._isDisposed=!1,g(this)}dispose(){!this._isDisposed&&(f(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){try{_(this._toDispose.values())}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw Error("Cannot register a disposable on itself!");return p(e,this),this._isDisposed?!A.DISABLE_DISPOSED_WARNING&&console.warn(Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}}A.DISABLE_DISPOSED_WARNING=!1;class k{constructor(){this._store=new A,g(this),p(this._store,this)}dispose(){f(this),this._store.dispose()}_register(e){if(e===this)throw Error("Cannot register a disposable on itself!");return this._store.add(e)}}k.None=Object.freeze({dispose(){}});class v{constructor(){this._isDisposed=!1,g(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){var t;!this._isDisposed&&e!==this._value&&(null===(t=this._value)||void 0===t||t.dispose(),e&&p(e,this),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,f(this),null===(e=this._value)||void 0===e||e.dispose(),this._value=void 0}clearAndLeak(){let e=this._value;return this._value=void 0,e&&p(e,null),e}}class L{constructor(e){this._disposable=e,this._counter=1}acquire(){return this._counter++,this}release(){return 0==--this._counter&&this._disposable.dispose(),this}}class S{constructor(){this.dispose=()=>{},this.unset=()=>{},this.isset=()=>!1,g(this)}set(e){let t=e;return this.unset=()=>t=void 0,this.isset=()=>void 0!==t,this.dispose=()=>{t&&(t(),t=void 0,f(this))},this}}class N{constructor(e){this.object=e}dispose(){}}},95204:function(e,t,i){"use strict";i.d(t,{T:function(){return r}});let n={};!function(){var e,t,i;function r(e,t){t(n)}r.amd=!0,e=this,t=function(e){function t(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i<t;i++)n[i]=e[i];return n}function n(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return i(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function r(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}e.defaults=r();var o=/[&<>"']/,s=/[&<>"']/g,l=/[<>"']|&(?!#?\w+;)/,a=/[<>"']|&(?!#?\w+;)/g,u={"&":"&","<":"<",">":">",'"':""","'":"'"},h=function(e){return u[e]};function d(e,t){if(t){if(o.test(e))return e.replace(s,h)}else if(l.test(e))return e.replace(a,h);return e}var c=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function g(e){return e.replace(c,function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}var f=/(^|[^\[])\^/g;function p(e,t){e="string"==typeof e?e:e.source,t=t||"";var i={replace:function(t,n){return n=(n=n.source||n).replace(f,"$1"),e=e.replace(t,n),i},getRegex:function(){return new RegExp(e,t)}};return i}var m=/[^\w:]/g,D=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function C(e,t,i){if(e){var n;try{n=decodeURIComponent(g(i)).replace(m,"").toLowerCase()}catch(e){return null}if(0===n.indexOf("javascript:")||0===n.indexOf("vbscript:")||0===n.indexOf("data:"))return null}t&&!D.test(i)&&(i=function(e,t){!_[" "+e]&&(E.test(e)?_[" "+e]=e+"/":_[" "+e]=S(e,"/",!0));var i=-1===(e=_[" "+e]).indexOf(":");if("//"===t.substring(0,2))return i?t:e.replace(b,"$1")+t;if("/"!==t.charAt(0))return e+t;return i?t:e.replace(A,"$1")+t}(t,i));try{i=encodeURI(i).replace(/%25/g,"%")}catch(e){return null}return i}var _={},E=/^[^:]+:\/*[^/]*$/,b=/^([^:]+:)[\s\S]*$/,A=/^([^:]+:\/*[^/]*)[\s\S]*$/,k={exec:function(){}};function v(e){for(var t,i,n=1;n<arguments.length;n++)for(i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}function L(e,t){var i=e.replace(/\|/g,function(e,t,i){for(var n=!1,r=t;--r>=0&&"\\"===i[r];)n=!n;return n?"|":" |"}).split(/ \|/),n=0;if(!i[0].trim()&&i.shift(),i.length>0&&!i[i.length-1].trim()&&i.pop(),i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;n<i.length;n++)i[n]=i[n].trim().replace(/\\\|/g,"|");return i}function S(e,t,i){var n=e.length;if(0===n)return"";for(var r=0;r<n;){var o=e.charAt(n-r-1);if(o!==t||i){if(o!==t&&i)r++;else break}else r++}return e.slice(0,n-r)}function N(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function I(e,t){if(t<1)return"";for(var i="";t>1;)1&t&&(i+=e),t>>=1,e+=e;return i+e}function F(e,t,i,n){var r=t.href,o=t.title?d(t.title):null,s=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){n.state.inLink=!0;var l={type:"link",raw:i,href:r,title:o,text:s,tokens:n.inlineTokens(s,[])};return n.state.inLink=!1,l}return{type:"image",raw:i,href:r,title:o,text:d(s)}}var R=function(){function t(t){this.options=t||e.defaults}var i=t.prototype;return i.space=function(e){var t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}},i.code=function(e){var t=this.rules.block.code.exec(e);if(t){var i=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?i:S(i,"\n")}}},i.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var i=t[0],n=function(e,t){var i=e.match(/^(\s+)(?:```)/);if(null===i)return t;var n=i[1];return t.split("\n").map(function(e){var t=e.match(/^\s+/);return null===t?e:t[0].length>=n.length?e.slice(n.length):e}).join("\n")}(i,t[3]||"");return{type:"code",raw:i,lang:t[2]?t[2].trim():t[2],text:n}}},i.heading=function(e){var t=this.rules.block.heading.exec(e);if(t){var i=t[2].trim();if(/#$/.test(i)){var n=S(i,"#");this.options.pedantic?i=n.trim():(!n||/ $/.test(n))&&(i=n.trim())}var r={type:"heading",raw:t[0],depth:t[1].length,text:i,tokens:[]};return this.lexer.inline(r.text,r.tokens),r}},i.hr=function(e){var t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}},i.blockquote=function(e){var t=this.rules.block.blockquote.exec(e);if(t){var i=t[0].replace(/^ *>[ \t]?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(i,[]),text:i}}},i.list=function(e){var t=this.rules.block.list.exec(e);if(t){var i,r,o,s,l,a,u,h,d,c,g,f,p=t[1].trim(),m=p.length>1,D={type:"list",raw:"",ordered:m,start:m?+p.slice(0,-1):"",loose:!1,items:[]};p=m?"\\d{1,9}\\"+p.slice(-1):"\\"+p,this.options.pedantic&&(p=m?p:"[*+-]");for(var C=RegExp("^( {0,3}"+p+")((?:[ ][^\\n]*)?(?:\\n|$))");e&&(f=!1,!(!(t=C.exec(e))||this.rules.block.hr.test(e)));){;if(i=t[0],e=e.substring(i.length),h=t[2].split("\n",1)[0],d=e.split("\n",1)[0],this.options.pedantic?(s=2,g=h.trimLeft()):(s=(s=t[2].search(/[^ ]/))>4?1:s,g=h.slice(s),s+=t[1].length),a=!1,!h&&/^ *$/.test(d)&&(i+=d+"\n",e=e.substring(d.length+1),f=!0),!f){for(var _=RegExp("^ {0,"+Math.min(3,s-1)+"}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))"),E=RegExp("^ {0,"+Math.min(3,s-1)+"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)");e&&(h=c=e.split("\n",1)[0],this.options.pedantic&&(h=h.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(_.test(h)||E.test(e)));){;if(h.search(/[^ ]/)>=s||!h.trim())g+="\n"+h.slice(s);else if(a)break;else g+="\n"+h;!a&&!h.trim()&&(a=!0),i+=c+"\n",e=e.substring(c.length+1)}}!D.loose&&(u?D.loose=!0:/\n *\n *$/.test(i)&&(u=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(g))&&(o="[ ] "!==r[0],g=g.replace(/^\[[ xX]\] +/,"")),D.items.push({type:"list_item",raw:i,task:!!r,checked:o,loose:!1,text:g}),D.raw+=i}D.items[D.items.length-1].raw=i.trimRight(),D.items[D.items.length-1].text=g.trimRight(),D.raw=D.raw.trimRight();var b=D.items.length;for(l=0;l<b;l++){this.lexer.state.top=!1,D.items[l].tokens=this.lexer.blockTokens(D.items[l].text,[]);var A=D.items[l].tokens.filter(function(e){return"space"===e.type}),k=A.every(function(e){for(var t=e.raw.split(""),i=0,r,o=n(t);!(r=o()).done;)if("\n"===r.value&&(i+=1),i>1)return!0;return!1});!D.loose&&A.length&&k&&(D.loose=!0,D.items[l].loose=!0)}return D}},i.html=function(e){var t=this.rules.block.html.exec(e);if(t){var i={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};return this.options.sanitize&&(i.type="paragraph",i.text=this.options.sanitizer?this.options.sanitizer(t[0]):d(t[0]),i.tokens=[],this.lexer.inline(i.text,i.tokens)),i}},i.def=function(e){var t=this.rules.block.def.exec(e);if(t)return t[3]&&(t[3]=t[3].substring(1,t[3].length-1)),{type:"def",tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}},i.table=function(e){var t=this.rules.block.table.exec(e);if(t){var i={type:"table",header:L(t[1]).map(function(e){return{text:e}}),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(i.header.length===i.align.length){i.raw=t[0];var n,r,o,s,l=i.align.length;for(n=0;n<l;n++)/^ *-+: *$/.test(i.align[n])?i.align[n]="right":/^ *:-+: *$/.test(i.align[n])?i.align[n]="center":/^ *:-+ *$/.test(i.align[n])?i.align[n]="left":i.align[n]=null;for(n=0,l=i.rows.length;n<l;n++)i.rows[n]=L(i.rows[n],i.header.length).map(function(e){return{text:e}});for(r=0,l=i.header.length;r<l;r++)i.header[r].tokens=[],this.lexer.inline(i.header[r].text,i.header[r].tokens);for(r=0,l=i.rows.length;r<l;r++)for(o=0,s=i.rows[r];o<s.length;o++)s[o].tokens=[],this.lexer.inline(s[o].text,s[o].tokens);return i}}},i.lheading=function(e){var t=this.rules.block.lheading.exec(e);if(t){var i={type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:[]};return this.lexer.inline(i.text,i.tokens),i}},i.paragraph=function(e){var t=this.rules.block.paragraph.exec(e);if(t){var i={type:"paragraph",raw:t[0],text:"\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1],tokens:[]};return this.lexer.inline(i.text,i.tokens),i}},i.text=function(e){var t=this.rules.block.text.exec(e);if(t){var i={type:"text",raw:t[0],text:t[0],tokens:[]};return this.lexer.inline(i.text,i.tokens),i}},i.escape=function(e){var t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:d(t[1])}},i.tag=function(e){var t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):d(t[0]):t[0]}},i.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var i=t[2].trim();if(!this.options.pedantic&&/^</.test(i)){if(!/>$/.test(i))return;var n=S(i.slice(0,-1),"\\");if((i.length-n.length)%2==0)return}else{var r=function(e,t){if(-1===e.indexOf(")"))return -1;for(var i=e.length,n=0,r=0;r<i;r++)if("\\"===e[r])r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&--n<0)return r;return -1}(t[2],"()");if(r>-1){var o=(0===t[0].indexOf("!")?5:4)+t[1].length+r;t[2]=t[2].substring(0,r),t[0]=t[0].substring(0,o).trim(),t[3]=""}}var s=t[2],l="";if(this.options.pedantic){var a=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(s);a&&(s=a[1],l=a[3])}else l=t[3]?t[3].slice(1,-1):"";return s=s.trim(),/^</.test(s)&&(s=this.options.pedantic&&!/>$/.test(i)?s.slice(1):s.slice(1,-1)),F(t,{href:s?s.replace(this.rules.inline._escapes,"$1"):s,title:l?l.replace(this.rules.inline._escapes,"$1"):l},t[0],this.lexer)}},i.reflink=function(e,t){var i;if((i=this.rules.inline.reflink.exec(e))||(i=this.rules.inline.nolink.exec(e))){var n=(i[2]||i[1]).replace(/\s+/g," ");if(!(n=t[n.toLowerCase()])||!n.href){var r=i[0].charAt(0);return{type:"text",raw:r,text:r}}return F(i,n,i[0],this.lexer)}},i.emStrong=function(e,t,i){void 0===i&&(i="");var n=this.rules.inline.emStrong.lDelim.exec(e);if(!!n){if(!(n[3]&&i.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var r=n[1]||n[2]||"";if(!r||r&&(""===i||this.rules.inline.punctuation.exec(i))){var o,s,l=n[0].length-1,a=l,u=0,h="*"===n[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(h.lastIndex=0,t=t.slice(-1*e.length+l);null!=(n=h.exec(t));){if(!(o=n[1]||n[2]||n[3]||n[4]||n[5]||n[6]))continue;if(s=o.length,n[3]||n[4]){a+=s;continue}if((n[5]||n[6])&&l%3&&!((l+s)%3)){u+=s;continue}if(!((a-=s)>0)){if(Math.min(l,s=Math.min(s,s+a+u))%2){var d=e.slice(1,l+n.index+s);return{type:"em",raw:e.slice(0,l+n.index+s+1),text:d,tokens:this.lexer.inlineTokens(d,[])}}var c=e.slice(2,l+n.index+s-1);return{type:"strong",raw:e.slice(0,l+n.index+s+1),text:c,tokens:this.lexer.inlineTokens(c,[])}}}}}}},i.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var i=t[2].replace(/\n/g," "),n=/[^ ]/.test(i),r=/^ /.test(i)&&/ $/.test(i);return n&&r&&(i=i.substring(1,i.length-1)),i=d(i,!0),{type:"codespan",raw:t[0],text:i}}},i.br=function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}},i.del=function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2],[])}},i.autolink=function(e,t){var i,n,r=this.rules.inline.autolink.exec(e);if(r)return n="@"===r[2]?"mailto:"+(i=d(this.options.mangle?t(r[1]):r[1])):i=d(r[1]),{type:"link",raw:r[0],text:i,href:n,tokens:[{type:"text",raw:i,text:i}]}},i.url=function(e,t){var i,n,r,o;if(i=this.rules.inline.url.exec(e)){if("@"===i[2])r="mailto:"+(n=d(this.options.mangle?t(i[0]):i[0]));else{do o=i[0],i[0]=this.rules.inline._backpedal.exec(i[0])[0];while(o!==i[0]);n=d(i[0]),r="www."===i[1]?"http://"+n:n}return{type:"link",raw:i[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}},i.inlineText=function(e,t){var i,n=this.rules.inline.text.exec(e);if(n)return i=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):d(n[0]):n[0]:d(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:i}},t}(),T={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?<?([^\s>]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:k,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};T._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/,T._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,T.def=p(T.def).replace("label",T._label).replace("title",T._title).getRegex(),T.bullet=/(?:[*+-]|\d{1,9}[.)])/,T.listItemStart=p(/^( *)(bull) */).replace("bull",T.bullet).getRegex(),T.list=p(T.list).replace(/bull/g,T.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+T.def.source+")").getRegex(),T._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",T._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,T.html=p(T.html,"i").replace("comment",T._comment).replace("tag",T._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),T.paragraph=p(T._paragraph).replace("hr",T.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",T._tag).getRegex(),T.blockquote=p(T.blockquote).replace("paragraph",T.paragraph).getRegex(),T.normal=v({},T),T.gfm=v({},T.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),T.gfm.table=p(T.gfm.table).replace("hr",T.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",T._tag).getRegex(),T.gfm.paragraph=p(T._paragraph).replace("hr",T.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",T.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",T._tag).getRegex(),T.pedantic=v({},T.normal,{html:p("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",T._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:k,paragraph:p(T.normal._paragraph).replace("hr",T.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",T.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var x={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:k,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[^*]+(?=[^*])|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:k,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function w(e){return e.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function B(e){var t,i,n="",r=e.length;for(t=0;t<r;t++)i=e.charCodeAt(t),Math.random()>.5&&(i="x"+i.toString(16)),n+="&#"+i+";";return n}x._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",x.punctuation=p(x.punctuation).replace(/punctuation/g,x._punctuation).getRegex(),x.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,x.escapedEmSt=/\\\*|\\_/g,x._comment=p(T._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),x.emStrong.lDelim=p(x.emStrong.lDelim).replace(/punct/g,x._punctuation).getRegex(),x.emStrong.rDelimAst=p(x.emStrong.rDelimAst,"g").replace(/punct/g,x._punctuation).getRegex(),x.emStrong.rDelimUnd=p(x.emStrong.rDelimUnd,"g").replace(/punct/g,x._punctuation).getRegex(),x._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,x._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,x._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,x.autolink=p(x.autolink).replace("scheme",x._scheme).replace("email",x._email).getRegex(),x._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,x.tag=p(x.tag).replace("comment",x._comment).replace("attribute",x._attribute).getRegex(),x._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,x._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,x._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,x.link=p(x.link).replace("label",x._label).replace("href",x._href).replace("title",x._title).getRegex(),x.reflink=p(x.reflink).replace("label",x._label).replace("ref",T._label).getRegex(),x.nolink=p(x.nolink).replace("ref",T._label).getRegex(),x.reflinkSearch=p(x.reflinkSearch,"g").replace("reflink",x.reflink).replace("nolink",x.nolink).getRegex(),x.normal=v({},x),x.pedantic=v({},x.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:p(/^!?\[(label)\]\((.*?)\)/).replace("label",x._label).getRegex(),reflink:p(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",x._label).getRegex()}),x.gfm=v({},x.normal,{escape:p(x.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),x.gfm.url=p(x.gfm.url,"i").replace("email",x.gfm._extended_email).getRegex(),x.breaks=v({},x.gfm,{br:p(x.br).replace("{2,}","*").getRegex(),text:p(x.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var y=function(){function i(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||e.defaults,this.options.tokenizer=this.options.tokenizer||new R,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};var i={block:T.normal,inline:x.normal};this.options.pedantic?(i.block=T.pedantic,i.inline=x.pedantic):this.options.gfm&&(i.block=T.gfm,this.options.breaks?i.inline=x.breaks:i.inline=x.gfm),this.tokenizer.rules=i}i.lex=function(e,t){return new i(t).lex(e)},i.lexInline=function(e,t){return new i(t).inlineTokens(e)};var n,r,o,s=i.prototype;return s.lex=function(e){var t;for(e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens},s.blockTokens=function(e,t){var i,n,r,o,s=this;for(void 0===t&&(t=[]),e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,function(e,t,i){return t+" ".repeat(i.length)});e;){if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(function(n){return!!(i=n.call({lexer:s},e,t))&&(e=e.substring(i.raw.length),t.push(i),!0)}))){if(i=this.tokenizer.space(e)){e=e.substring(i.raw.length),1===i.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(i);continue}if(i=this.tokenizer.code(e)){e=e.substring(i.raw.length),(n=t[t.length-1])&&("paragraph"===n.type||"text"===n.type)?(n.raw+="\n"+i.raw,n.text+="\n"+i.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(i);continue}if((i=this.tokenizer.fences(e))||(i=this.tokenizer.heading(e))||(i=this.tokenizer.hr(e))||(i=this.tokenizer.blockquote(e))||(i=this.tokenizer.list(e))||(i=this.tokenizer.html(e))){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.def(e)){e=e.substring(i.raw.length),(n=t[t.length-1])&&("paragraph"===n.type||"text"===n.type)?(n.raw+="\n"+i.raw,n.text+="\n"+i.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text):!this.tokens.links[i.tag]&&(this.tokens.links[i.tag]={href:i.href,title:i.title});continue}if((i=this.tokenizer.table(e))||(i=this.tokenizer.lheading(e))){e=e.substring(i.raw.length),t.push(i);continue}if(r=e,this.options.extensions&&this.options.extensions.startBlock&&!function(){var t=1/0,i=e.slice(1),n=void 0;s.options.extensions.startBlock.forEach(function(e){"number"==typeof(n=e.call({lexer:this},i))&&n>=0&&(t=Math.min(t,n))}),t<1/0&&t>=0&&(r=e.substring(0,t+1))}(),this.state.top&&(i=this.tokenizer.paragraph(r))){n=t[t.length-1],o&&"paragraph"===n.type?(n.raw+="\n"+i.raw,n.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(i),o=r.length!==e.length,e=e.substring(i.raw.length);continue}if(i=this.tokenizer.text(e)){e=e.substring(i.raw.length),(n=t[t.length-1])&&"text"===n.type?(n.raw+="\n"+i.raw,n.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(i);continue}if(e){var l="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(l);break}throw Error(l)}}}return this.state.top=!0,t},s.inline=function(e,t){this.inlineQueue.push({src:e,tokens:t})},s.inlineTokens=function(e,t){var i,n,r,o,s,l,a=this;void 0===t&&(t=[]);var u=e;if(this.tokens.links){var h=Object.keys(this.tokens.links);if(h.length>0)for(;null!=(o=this.tokenizer.rules.inline.reflinkSearch.exec(u));)h.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(u=u.slice(0,o.index)+"["+I("a",o[0].length-2)+"]"+u.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(o=this.tokenizer.rules.inline.blockSkip.exec(u));)u=u.slice(0,o.index)+"["+I("a",o[0].length-2)+"]"+u.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(o=this.tokenizer.rules.inline.escapedEmSt.exec(u));)u=u.slice(0,o.index)+"++"+u.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;){if(!s&&(l=""),s=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(function(n){return!!(i=n.call({lexer:a},e,t))&&(e=e.substring(i.raw.length),t.push(i),!0)}))){if(i=this.tokenizer.escape(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.tag(e)){e=e.substring(i.raw.length),(n=t[t.length-1])&&"text"===i.type&&"text"===n.type?(n.raw+=i.raw,n.text+=i.text):t.push(i);continue}if(i=this.tokenizer.link(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(i.raw.length),(n=t[t.length-1])&&"text"===i.type&&"text"===n.type?(n.raw+=i.raw,n.text+=i.text):t.push(i);continue}if((i=this.tokenizer.emStrong(e,u,l))||(i=this.tokenizer.codespan(e))||(i=this.tokenizer.br(e))||(i=this.tokenizer.del(e))||(i=this.tokenizer.autolink(e,B))||!this.state.inLink&&(i=this.tokenizer.url(e,B))){e=e.substring(i.raw.length),t.push(i);continue}if(r=e,this.options.extensions&&this.options.extensions.startInline&&!function(){var t=1/0,i=e.slice(1),n=void 0;a.options.extensions.startInline.forEach(function(e){"number"==typeof(n=e.call({lexer:this},i))&&n>=0&&(t=Math.min(t,n))}),t<1/0&&t>=0&&(r=e.substring(0,t+1))}(),i=this.tokenizer.inlineText(r,w)){e=e.substring(i.raw.length),"_"!==i.raw.slice(-1)&&(l=i.raw.slice(-1)),s=!0,(n=t[t.length-1])&&"text"===n.type?(n.raw+=i.raw,n.text+=i.text):t.push(i);continue}if(e){var d="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(d);break}throw Error(d)}}}return t},n=i,r=null,o=[{key:"rules",get:function(){return{block:T,inline:x}}}],o&&t(n,o),Object.defineProperty(n,"prototype",{writable:!1}),i}(),O=function(){function t(t){this.options=t||e.defaults}var i=t.prototype;return i.code=function(e,t,i){var n=(t||"").match(/\S*/)[0];if(this.options.highlight){var r=this.options.highlight(e,n);null!=r&&r!==e&&(i=!0,e=r)}return(e=e.replace(/\n$/,"")+"\n",n)?'<pre><code class="'+this.options.langPrefix+d(n,!0)+'">'+(i?e:d(e,!0))+"</code></pre>\n":"<pre><code>"+(i?e:d(e,!0))+"</code></pre>\n"},i.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},i.html=function(e){return e},i.heading=function(e,t,i,n){return this.options.headerIds?"<h"+t+' id="'+(this.options.headerPrefix+n.slug(i))+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"},i.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},i.list=function(e,t,i){var n=t?"ol":"ul";return"<"+n+(t&&1!==i?' start="'+i+'"':"")+">\n"+e+"</"+n+">\n"},i.listitem=function(e){return"<li>"+e+"</li>\n"},i.checkbox=function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},i.paragraph=function(e){return"<p>"+e+"</p>\n"},i.table=function(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"},i.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},i.tablecell=function(e,t){var i=t.header?"th":"td";return(t.align?"<"+i+' align="'+t.align+'">':"<"+i+">")+e+("</"+i)+">\n"},i.strong=function(e){return"<strong>"+e+"</strong>"},i.em=function(e){return"<em>"+e+"</em>"},i.codespan=function(e){return"<code>"+e+"</code>"},i.br=function(){return this.options.xhtml?"<br/>":"<br>"},i.del=function(e){return"<del>"+e+"</del>"},i.link=function(e,t,i){if(null===(e=C(this.options.sanitize,this.options.baseUrl,e)))return i;var n='<a href="'+d(e)+'"';return t&&(n+=' title="'+t+'"'),n+=">"+i+"</a>"},i.image=function(e,t,i){if(null===(e=C(this.options.sanitize,this.options.baseUrl,e)))return i;var n='<img src="'+e+'" alt="'+i+'"';return t&&(n+=' title="'+t+'"'),n+=this.options.xhtml?"/>":">"},i.text=function(e){return e},t}(),P=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,i){return""+i},t.image=function(e,t,i){return""+i},t.br=function(){return""},e}(),M=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var i=e,n=0;if(this.seen.hasOwnProperty(i)){n=this.seen[e];do i=e+"-"+ ++n;while(this.seen.hasOwnProperty(i))}return!t&&(this.seen[e]=n,this.seen[i]=0),i},t.slug=function(e,t){void 0===t&&(t={});var i=this.serialize(e);return this.getNextSafeSlug(i,t.dryrun)},e}(),H=function(){function t(t){this.options=t||e.defaults,this.options.renderer=this.options.renderer||new O,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new P,this.slugger=new M}t.parse=function(e,i){return new t(i).parse(e)},t.parseInline=function(e,i){return new t(i).parseInline(e)};var i=t.prototype;return i.parse=function(e,t){void 0===t&&(t=!0);var i,n,r,o,s,l,a,u,h,d,c,f,p,m,D,C,_,E,b,A="",k=e.length;for(i=0;i<k;i++){if(d=e[i],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[d.type]&&(!1!==(b=this.options.extensions.renderers[d.type].call({parser:this},d))||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(d.type))){A+=b||"";continue}switch(d.type){case"space":continue;case"hr":A+=this.renderer.hr();continue;case"heading":A+=this.renderer.heading(this.parseInline(d.tokens),d.depth,g(this.parseInline(d.tokens,this.textRenderer)),this.slugger);continue;case"code":A+=this.renderer.code(d.text,d.lang,d.escaped);continue;case"table":for(n=0,u="",a="",o=d.header.length;n<o;n++)a+=this.renderer.tablecell(this.parseInline(d.header[n].tokens),{header:!0,align:d.align[n]});for(u+=this.renderer.tablerow(a),h="",o=d.rows.length,n=0;n<o;n++){for(r=0,l=d.rows[n],a="",s=l.length;r<s;r++)a+=this.renderer.tablecell(this.parseInline(l[r].tokens),{header:!1,align:d.align[r]});h+=this.renderer.tablerow(a)}A+=this.renderer.table(u,h);continue;case"blockquote":h=this.parse(d.tokens),A+=this.renderer.blockquote(h);continue;case"list":for(n=0,c=d.ordered,f=d.start,p=d.loose,o=d.items.length,h="";n<o;n++)C=(D=d.items[n]).checked,_=D.task,m="",D.task&&(E=this.renderer.checkbox(C),p?D.tokens.length>0&&"paragraph"===D.tokens[0].type?(D.tokens[0].text=E+" "+D.tokens[0].text,D.tokens[0].tokens&&D.tokens[0].tokens.length>0&&"text"===D.tokens[0].tokens[0].type&&(D.tokens[0].tokens[0].text=E+" "+D.tokens[0].tokens[0].text)):D.tokens.unshift({type:"text",text:E}):m+=E),m+=this.parse(D.tokens,p),h+=this.renderer.listitem(m,_,C);A+=this.renderer.list(h,c,f);continue;case"html":A+=this.renderer.html(d.text);continue;case"paragraph":A+=this.renderer.paragraph(this.parseInline(d.tokens));continue;case"text":for(h=d.tokens?this.parseInline(d.tokens):d.text;i+1<k&&"text"===e[i+1].type;)h+="\n"+((d=e[++i]).tokens?this.parseInline(d.tokens):d.text);A+=t?this.renderer.paragraph(h):h;continue;default:var v='Token with "'+d.type+'" type was not found.';if(this.options.silent){console.error(v);return}throw Error(v)}}return A},i.parseInline=function(e,t){t=t||this.renderer;var i,n,r,o="",s=e.length;for(i=0;i<s;i++){if(n=e[i],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[n.type]&&(!1!==(r=this.options.extensions.renderers[n.type].call({parser:this},n))||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(n.type))){o+=r||"";continue}switch(n.type){case"escape":case"text":o+=t.text(n.text);break;case"html":o+=t.html(n.text);break;case"link":o+=t.link(n.href,n.title,this.parseInline(n.tokens,t));break;case"image":o+=t.image(n.href,n.title,n.text);break;case"strong":o+=t.strong(this.parseInline(n.tokens,t));break;case"em":o+=t.em(this.parseInline(n.tokens,t));break;case"codespan":o+=t.codespan(n.text);break;case"br":o+=t.br();break;case"del":o+=t.del(this.parseInline(n.tokens,t));break;default:var l='Token with "'+n.type+'" type was not found.';if(this.options.silent){console.error(l);return}throw Error(l)}}return o},t}();function U(e,t,i){if(null==e)throw Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if("function"==typeof t&&(i=t,t=null),N(t=v({},U.defaults,t||{})),i){var n,r=t.highlight;try{n=y.lex(e,t)}catch(e){return i(e)}var o=function(e){var o;if(!e)try{t.walkTokens&&U.walkTokens(n,t.walkTokens),o=H.parse(n,t)}catch(t){e=t}return t.highlight=r,e?i(e):i(null,o)};if(!r||r.length<3)return o();if(delete t.highlight,!n.length)return o();var s=0;return U.walkTokens(n,function(e){"code"===e.type&&(s++,setTimeout(function(){r(e.text,e.lang,function(t,i){if(t)return o(t);null!=i&&i!==e.text&&(e.text=i,e.escaped=!0),0==--s&&o()})},0))}),0===s&&o(),void 0}try{var l=y.lex(e,t);return t.walkTokens&&U.walkTokens(l,t.walkTokens),H.parse(l,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+d(e.message+"",!0)+"</pre>";throw e}}U.options=U.setOptions=function(t){var i;return v(U.defaults,t),i=U.defaults,e.defaults=i,U},U.getDefaults=r,U.defaults=e.defaults,U.use=function(){for(var e,t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];var r=v.apply(void 0,[{}].concat(i)),o=U.defaults.extensions||{renderers:{},childTokens:{}};i.forEach(function(t){if(t.extensions&&(e=!0,t.extensions.forEach(function(e){if(!e.name)throw Error("extension name required");if(e.renderer){var t=o.renderers?o.renderers[e.name]:null;t?o.renderers[e.name]=function(){for(var i=arguments.length,n=Array(i),r=0;r<i;r++)n[r]=arguments[r];var o=e.renderer.apply(this,n);return!1===o&&(o=t.apply(this,n)),o}:o.renderers[e.name]=e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw Error("extension level must be 'block' or 'inline'");o[e.level]?o[e.level].unshift(e.tokenizer):o[e.level]=[e.tokenizer],e.start&&("block"===e.level?o.startBlock?o.startBlock.push(e.start):o.startBlock=[e.start]:"inline"===e.level&&(o.startInline?o.startInline.push(e.start):o.startInline=[e.start]))}e.childTokens&&(o.childTokens[e.name]=e.childTokens)})),t.renderer&&!function(){var e=U.defaults.renderer||new O,i=function(i){var n=e[i];e[i]=function(){for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];var l=t.renderer[i].apply(e,o);return!1===l&&(l=n.apply(e,o)),l}};for(var n in t.renderer)i(n);r.renderer=e}(),t.tokenizer&&!function(){var e=U.defaults.tokenizer||new R,i=function(i){var n=e[i];e[i]=function(){for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];var l=t.tokenizer[i].apply(e,o);return!1===l&&(l=n.apply(e,o)),l}};for(var n in t.tokenizer)i(n);r.tokenizer=e}(),t.walkTokens){var i=U.defaults.walkTokens;r.walkTokens=function(e){t.walkTokens.call(this,e),i&&i.call(this,e)}}e&&(r.extensions=o),U.setOptions(r)})},U.walkTokens=function(e,t){for(var i,r=n(e);!(i=r()).done;)!function(){var e=i.value;switch(t.call(U,e),e.type){case"table":for(var r,o=n(e.header);!(r=o()).done;){var s=r.value;U.walkTokens(s.tokens,t)}for(var l,a=n(e.rows);!(l=a()).done;){for(var u,h=l.value,d=n(h);!(u=d()).done;){var c=u.value;U.walkTokens(c.tokens,t)}}break;case"list":U.walkTokens(e.items,t);break;default:U.defaults.extensions&&U.defaults.extensions.childTokens&&U.defaults.extensions.childTokens[e.type]?U.defaults.extensions.childTokens[e.type].forEach(function(i){U.walkTokens(e[i],t)}):e.tokens&&U.walkTokens(e.tokens,t)}}()},U.parseInline=function(e,t){if(null==e)throw Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof e)throw Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");N(t=v({},U.defaults,t||{}));try{var i=y.lexInline(e,t);return t.walkTokens&&U.walkTokens(i,t.walkTokens),H.parseInline(i,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+d(e.message+"",!0)+"</pre>";throw e}},U.Parser=H,U.parser=H.parse,U.Renderer=O,U.TextRenderer=P,U.Lexer=y,U.lexer=y.lex,U.Tokenizer=R,U.Slugger=M,U.parse=U;var W=U.options,z=U.setOptions,V=U.use,G=U.walkTokens,Y=U.parseInline,$=H.parse,K=y.lex;e.Lexer=y,e.Parser=H,e.Renderer=O,e.Slugger=M,e.TextRenderer=P,e.Tokenizer=R,e.getDefaults=r,e.lexer=K,e.marked=U,e.options=W,e.parse=U,e.parseInline=Y,e.parser=$,e.setOptions=z,e.use=V,e.walkTokens=G,Object.defineProperty(e,"__esModule",{value:!0})},"object"==typeof exports?t(exports):(0,r.amd)?(i=0,t(n)):t((e="undefined"!=typeof globalThis?globalThis:e||self).marked={})}();var r=n||exports},77208:function(e,t,i){"use strict";(0,i("54606").H)({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],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")]).then(i.bind(i,"71038"))})},15810:function(e,t,i){"use strict";(0,i("54606").H)({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],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")]).then(i.bind(i,"37150"))})},69927:function(e,t,i){"use strict";(0,i("54606").H)({id:"sql",extensions:[".sql"],aliases:["SQL"],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")]).then(i.bind(i,"44192"))})},44192:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return n},language:function(){return r}});var n={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},r={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["ABORT","ABSOLUTE","ACTION","ADA","ADD","AFTER","ALL","ALLOCATE","ALTER","ALWAYS","ANALYZE","AND","ANY","ARE","AS","ASC","ASSERTION","AT","ATTACH","AUTHORIZATION","AUTOINCREMENT","AVG","BACKUP","BEFORE","BEGIN","BETWEEN","BIT","BIT_LENGTH","BOTH","BREAK","BROWSE","BULK","BY","CASCADE","CASCADED","CASE","CAST","CATALOG","CHAR","CHARACTER","CHARACTER_LENGTH","CHAR_LENGTH","CHECK","CHECKPOINT","CLOSE","CLUSTERED","COALESCE","COLLATE","COLLATION","COLUMN","COMMIT","COMPUTE","CONFLICT","CONNECT","CONNECTION","CONSTRAINT","CONSTRAINTS","CONTAINS","CONTAINSTABLE","CONTINUE","CONVERT","CORRESPONDING","COUNT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DATE","DAY","DBCC","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFERRABLE","DEFERRED","DELETE","DENY","DESC","DESCRIBE","DESCRIPTOR","DETACH","DIAGNOSTICS","DISCONNECT","DISK","DISTINCT","DISTRIBUTED","DO","DOMAIN","DOUBLE","DROP","DUMP","EACH","ELSE","END","END-EXEC","ERRLVL","ESCAPE","EXCEPT","EXCEPTION","EXCLUDE","EXCLUSIVE","EXEC","EXECUTE","EXISTS","EXIT","EXPLAIN","EXTERNAL","EXTRACT","FAIL","FALSE","FETCH","FILE","FILLFACTOR","FILTER","FIRST","FLOAT","FOLLOWING","FOR","FOREIGN","FORTRAN","FOUND","FREETEXT","FREETEXTTABLE","FROM","FULL","FUNCTION","GENERATED","GET","GLOB","GLOBAL","GO","GOTO","GRANT","GROUP","GROUPS","HAVING","HOLDLOCK","HOUR","IDENTITY","IDENTITYCOL","IDENTITY_INSERT","IF","IGNORE","IMMEDIATE","IN","INCLUDE","INDEX","INDEXED","INDICATOR","INITIALLY","INNER","INPUT","INSENSITIVE","INSERT","INSTEAD","INT","INTEGER","INTERSECT","INTERVAL","INTO","IS","ISNULL","ISOLATION","JOIN","KEY","KILL","LANGUAGE","LAST","LEADING","LEFT","LEVEL","LIKE","LIMIT","LINENO","LOAD","LOCAL","LOWER","MATCH","MATERIALIZED","MAX","MERGE","MIN","MINUTE","MODULE","MONTH","NAMES","NATIONAL","NATURAL","NCHAR","NEXT","NO","NOCHECK","NONCLUSTERED","NONE","NOT","NOTHING","NOTNULL","NULL","NULLIF","NULLS","NUMERIC","OCTET_LENGTH","OF","OFF","OFFSET","OFFSETS","ON","ONLY","OPEN","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","OPTION","OR","ORDER","OTHERS","OUTER","OUTPUT","OVER","OVERLAPS","PAD","PARTIAL","PARTITION","PASCAL","PERCENT","PIVOT","PLAN","POSITION","PRAGMA","PRECEDING","PRECISION","PREPARE","PRESERVE","PRIMARY","PRINT","PRIOR","PRIVILEGES","PROC","PROCEDURE","PUBLIC","QUERY","RAISE","RAISERROR","RANGE","READ","READTEXT","REAL","RECONFIGURE","RECURSIVE","REFERENCES","REGEXP","REINDEX","RELATIVE","RELEASE","RENAME","REPLACE","REPLICATION","RESTORE","RESTRICT","RETURN","RETURNING","REVERT","REVOKE","RIGHT","ROLLBACK","ROW","ROWCOUNT","ROWGUIDCOL","ROWS","RULE","SAVE","SAVEPOINT","SCHEMA","SCROLL","SECOND","SECTION","SECURITYAUDIT","SELECT","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","SESSION","SESSION_USER","SET","SETUSER","SHUTDOWN","SIZE","SMALLINT","SOME","SPACE","SQL","SQLCA","SQLCODE","SQLERROR","SQLSTATE","SQLWARNING","STATISTICS","SUBSTRING","SUM","SYSTEM_USER","TABLE","TABLESAMPLE","TEMP","TEMPORARY","TEXTSIZE","THEN","TIES","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TOP","TRAILING","TRAN","TRANSACTION","TRANSLATE","TRANSLATION","TRIGGER","TRIM","TRUE","TRUNCATE","TRY_CONVERT","TSEQUAL","UNBOUNDED","UNION","UNIQUE","UNKNOWN","UNPIVOT","UPDATE","UPDATETEXT","UPPER","USAGE","USE","USER","USING","VACUUM","VALUE","VALUES","VARCHAR","VARYING","VIEW","VIRTUAL","WAITFOR","WHEN","WHENEVER","WHERE","WHILE","WINDOW","WITH","WITHIN GROUP","WITHOUT","WORK","WRITE","WRITETEXT","YEAR","ZONE"],operators:["ALL","AND","ANY","BETWEEN","EXISTS","IN","LIKE","NOT","OR","SOME","EXCEPT","INTERSECT","UNION","APPLY","CROSS","FULL","INNER","JOIN","LEFT","OUTER","RIGHT","CONTAINS","FREETEXT","IS","NULL","PIVOT","UNPIVOT","MATCHED"],builtinFunctions:["AVG","CHECKSUM_AGG","COUNT","COUNT_BIG","GROUPING","GROUPING_ID","MAX","MIN","SUM","STDEV","STDEVP","VAR","VARP","CUME_DIST","FIRST_VALUE","LAG","LAST_VALUE","LEAD","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","COLLATE","COLLATIONPROPERTY","TERTIARY_WEIGHTS","FEDERATION_FILTERING_VALUE","CAST","CONVERT","PARSE","TRY_CAST","TRY_CONVERT","TRY_PARSE","ASYMKEY_ID","ASYMKEYPROPERTY","CERTPROPERTY","CERT_ID","CRYPT_GEN_RANDOM","DECRYPTBYASYMKEY","DECRYPTBYCERT","DECRYPTBYKEY","DECRYPTBYKEYAUTOASYMKEY","DECRYPTBYKEYAUTOCERT","DECRYPTBYPASSPHRASE","ENCRYPTBYASYMKEY","ENCRYPTBYCERT","ENCRYPTBYKEY","ENCRYPTBYPASSPHRASE","HASHBYTES","IS_OBJECTSIGNED","KEY_GUID","KEY_ID","KEY_NAME","SIGNBYASYMKEY","SIGNBYCERT","SYMKEYPROPERTY","VERIFYSIGNEDBYCERT","VERIFYSIGNEDBYASYMKEY","CURSOR_STATUS","DATALENGTH","IDENT_CURRENT","IDENT_INCR","IDENT_SEED","IDENTITY","SQL_VARIANT_PROPERTY","CURRENT_TIMESTAMP","DATEADD","DATEDIFF","DATEFROMPARTS","DATENAME","DATEPART","DATETIME2FROMPARTS","DATETIMEFROMPARTS","DATETIMEOFFSETFROMPARTS","DAY","EOMONTH","GETDATE","GETUTCDATE","ISDATE","MONTH","SMALLDATETIMEFROMPARTS","SWITCHOFFSET","SYSDATETIME","SYSDATETIMEOFFSET","SYSUTCDATETIME","TIMEFROMPARTS","TODATETIMEOFFSET","YEAR","CHOOSE","COALESCE","IIF","NULLIF","ABS","ACOS","ASIN","ATAN","ATN2","CEILING","COS","COT","DEGREES","EXP","FLOOR","LOG","LOG10","PI","POWER","RADIANS","RAND","ROUND","SIGN","SIN","SQRT","SQUARE","TAN","APP_NAME","APPLOCK_MODE","APPLOCK_TEST","ASSEMBLYPROPERTY","COL_LENGTH","COL_NAME","COLUMNPROPERTY","DATABASE_PRINCIPAL_ID","DATABASEPROPERTYEX","DB_ID","DB_NAME","FILE_ID","FILE_IDEX","FILE_NAME","FILEGROUP_ID","FILEGROUP_NAME","FILEGROUPPROPERTY","FILEPROPERTY","FULLTEXTCATALOGPROPERTY","FULLTEXTSERVICEPROPERTY","INDEX_COL","INDEXKEY_PROPERTY","INDEXPROPERTY","OBJECT_DEFINITION","OBJECT_ID","OBJECT_NAME","OBJECT_SCHEMA_NAME","OBJECTPROPERTY","OBJECTPROPERTYEX","ORIGINAL_DB_NAME","PARSENAME","SCHEMA_ID","SCHEMA_NAME","SCOPE_IDENTITY","SERVERPROPERTY","STATS_DATE","TYPE_ID","TYPE_NAME","TYPEPROPERTY","DENSE_RANK","NTILE","RANK","ROW_NUMBER","PUBLISHINGSERVERNAME","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","CERTENCODED","CERTPRIVATEKEY","CURRENT_USER","HAS_DBACCESS","HAS_PERMS_BY_NAME","IS_MEMBER","IS_ROLEMEMBER","IS_SRVROLEMEMBER","LOGINPROPERTY","ORIGINAL_LOGIN","PERMISSIONS","PWDENCRYPT","PWDCOMPARE","SESSION_USER","SESSIONPROPERTY","SUSER_ID","SUSER_NAME","SUSER_SID","SUSER_SNAME","SYSTEM_USER","USER","USER_ID","USER_NAME","ASCII","CHAR","CHARINDEX","CONCAT","DIFFERENCE","FORMAT","LEFT","LEN","LOWER","LTRIM","NCHAR","PATINDEX","QUOTENAME","REPLACE","REPLICATE","REVERSE","RIGHT","RTRIM","SOUNDEX","SPACE","STR","STUFF","SUBSTRING","UNICODE","UPPER","BINARY_CHECKSUM","CHECKSUM","CONNECTIONPROPERTY","CONTEXT_INFO","CURRENT_REQUEST_ID","ERROR_LINE","ERROR_NUMBER","ERROR_MESSAGE","ERROR_PROCEDURE","ERROR_SEVERITY","ERROR_STATE","FORMATMESSAGE","GETANSINULL","GET_FILESTREAM_TRANSACTION_CONTEXT","HOST_ID","HOST_NAME","ISNULL","ISNUMERIC","MIN_ACTIVE_ROWVERSION","NEWID","NEWSEQUENTIALID","ROWCOUNT_BIG","XACT_STATE","TEXTPTR","TEXTVALID","COLUMNS_UPDATED","EVENTDATA","TRIGGER_NESTLEVEL","UPDATE","CHANGETABLE","CHANGE_TRACKING_CONTEXT","CHANGE_TRACKING_CURRENT_VERSION","CHANGE_TRACKING_IS_COLUMN_IN_MASK","CHANGE_TRACKING_MIN_VALID_VERSION","CONTAINSTABLE","FREETEXTTABLE","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","FILETABLEROOTPATH","GETFILENAMESPACEPATH","GETPATHLOCATOR","PATHNAME","GET_TRANSMISSION_STATUS"],builtinVariables:["@@DATEFIRST","@@DBTS","@@LANGID","@@LANGUAGE","@@LOCK_TIMEOUT","@@MAX_CONNECTIONS","@@MAX_PRECISION","@@NESTLEVEL","@@OPTIONS","@@REMSERVER","@@SERVERNAME","@@SERVICENAME","@@SPID","@@TEXTSIZE","@@VERSION","@@CURSOR_ROWS","@@FETCH_STATUS","@@DATEFIRST","@@PROCID","@@ERROR","@@IDENTITY","@@ROWCOUNT","@@TRANCOUNT","@@CONNECTIONS","@@CPU_BUSY","@@IDLE","@@IO_BUSY","@@PACKET_ERRORS","@@PACK_RECEIVED","@@PACK_SENT","@@TIMETICKS","@@TOTAL_ERRORS","@@TOTAL_READ","@@TOTAL_WRITE"],pseudoColumns:["$ACTION","$IDENTITY","$ROWGUID","$PARTITION"],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@keywords":"keyword","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/N'/,{token:"string",next:"@string"}],[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/\[/,{token:"identifier.quote",next:"@bracketedIdentifier"}],[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],bracketedIdentifier:[[/[^\]]+/,"identifier"],[/]]/,"identifier"],[/]/,{token:"identifier.quote",next:"@pop"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[[/BEGIN\s+(DISTRIBUTED\s+)?TRAN(SACTION)?\b/i,"keyword"],[/BEGIN\s+TRY\b/i,{token:"keyword.try"}],[/END\s+TRY\b/i,{token:"keyword.try"}],[/BEGIN\s+CATCH\b/i,{token:"keyword.catch"}],[/END\s+CATCH\b/i,{token:"keyword.catch"}],[/(BEGIN|CASE)\b/i,{token:"keyword.block"}],[/END\b/i,{token:"keyword.block"}],[/WHEN\b/i,{token:"keyword.choice"}],[/THEN\b/i,{token:"keyword.choice"}]]}}},48572:function(e,t,i){"use strict";i.d(t,{i:function(){return r},u:function(){return s}});var n=i("53120");class r{constructor(e,t){this.chr=e,this.type=t,this.width=0}fulfill(e){this.width=e}}class o{constructor(e,t){this._bareFontInfo=e,this._requests=t,this._container=null,this._testElements=null}read(){this._createDomElements(),document.body.appendChild(this._container),this._readFromDomElements(),document.body.removeChild(this._container),this._container=null,this._testElements=null}_createDomElements(){let e=document.createElement("div");e.style.position="absolute",e.style.top="-50000px",e.style.width="50000px";let t=document.createElement("div");(0,n.N)(t,this._bareFontInfo),e.appendChild(t);let i=document.createElement("div");(0,n.N)(i,this._bareFontInfo),i.style.fontWeight="bold",e.appendChild(i);let r=document.createElement("div");(0,n.N)(r,this._bareFontInfo),r.style.fontStyle="italic",e.appendChild(r);let s=[];for(let e of this._requests){let n;0===e.type&&(n=t),2===e.type&&(n=i),1===e.type&&(n=r),n.appendChild(document.createElement("br"));let l=document.createElement("span");o._render(l,e),n.appendChild(l),s.push(l)}this._container=e,this._testElements=s}static _render(e,t){if(" "===t.chr){let t="\xa0";for(let e=0;e<8;e++)t+=t;e.innerText=t}else{let i=t.chr;for(let e=0;e<8;e++)i+=i;e.textContent=i}}_readFromDomElements(){for(let e=0,t=this._requests.length;e<t;e++){let t=this._requests[e],i=this._testElements[e];t.fulfill(i.offsetWidth/256)}}}function s(e,t){new o(e,t).read()}},19812:function(e,t,i){"use strict";var n,r,o=i("605"),s=i("59923");let l=class{constructor(e,t){}dispose(){}};l.ID="editor.contrib.markerDecorations",l=function(e,t,i,n){var r,o=arguments.length,s=o<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 l=e.length-1;l>=0;l--)(r=e[l])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s}([(n=1,r=o.i,function(e,t){r(e,t,1)})],l),(0,s._K)(l.ID,l)},18740:function(e,t,i){"use strict";i.d(t,{N:function(){return F}}),i("71304");var n=i("9737"),r=i("70758"),o=i("64146"),s=i("19527"),l=i("7875"),a=i("66763"),u=i("5532"),h=i("71956"),d=i("16637"),c=i("61045"),g=i("29992"),f=i("59033"),p=i("38643"),m=i("97085"),D=i("39703"),C=i("61065"),_=i("66569"),E=i("38703"),b=i("63681"),A=i("13313");class k{constructor(e,t,i){let n=e.options,r=n.get(131),o=n.get(133),s=o.minimap,l=n.get(46),a=n.get(67);this.renderMinimap=s.renderMinimap,this.size=a.size,this.minimapHeightIsEditorHeight=s.minimapHeightIsEditorHeight,this.scrollBeyondLastLine=n.get(96),this.showSlider=a.showSlider,this.autohide=a.autohide,this.pixelRatio=r,this.typicalHalfwidthCharacterWidth=l.typicalHalfwidthCharacterWidth,this.lineHeight=n.get(61),this.minimapLeft=s.minimapLeft,this.minimapWidth=s.minimapWidth,this.minimapHeight=o.height,this.canvasInnerWidth=s.minimapCanvasInnerWidth,this.canvasInnerHeight=s.minimapCanvasInnerHeight,this.canvasOuterWidth=s.minimapCanvasOuterWidth,this.canvasOuterHeight=s.minimapCanvasOuterHeight,this.isSampling=s.minimapIsSampling,this.editorHeight=o.height,this.fontScale=s.minimapScale,this.minimapLineHeight=s.minimapLineHeight,this.minimapCharWidth=1*this.fontScale,this.charRenderer=(0,A.I)(()=>E.p.create(this.fontScale,l.fontFamily)),this.defaultBackgroundColor=i.getColor(2),this.backgroundColor=k._getMinimapBackground(t,this.defaultBackgroundColor),this.foregroundAlpha=k._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}equals(e){return this.renderMinimap===e.renderMinimap&&this.size===e.size&&this.minimapHeightIsEditorHeight===e.minimapHeightIsEditorHeight&&this.scrollBeyondLastLine===e.scrollBeyondLastLine&&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.defaultBackgroundColor&&this.defaultBackgroundColor.equals(e.defaultBackgroundColor)&&this.backgroundColor&&this.backgroundColor.equals(e.backgroundColor)&&this.foregroundAlpha===e.foregroundAlpha}}class v{constructor(e,t,i,n,r,o,s,l){this.scrollTop=e,this.scrollHeight=t,this.sliderNeeded=i,this._computedSliderRatio=n,this.sliderTop=r,this.sliderHeight=o,this.startLineNumber=s,this.endLineNumber=l}getDesiredScrollTopFromDelta(e){return Math.round(this.scrollTop+e/this._computedSliderRatio)}getDesiredScrollTopFromTouchLocation(e){return Math.round((e-this.sliderHeight/2)/this._computedSliderRatio)}static create(e,t,i,n,r,o,s,l,a,u,h){let d,c;let g=e.pixelRatio,f=e.minimapLineHeight,p=Math.floor(e.canvasInnerHeight/f),m=e.lineHeight;if(e.minimapHeightIsEditorHeight){let t=l*e.lineHeight+(e.scrollBeyondLastLine?r-e.lineHeight:0),i=Math.max(1,Math.floor(r*r/t)),n=Math.max(0,e.minimapHeight-i),o=n/(u-r);return new v(a,u,n>0,o,a*o,i,1,Math.min(s,Math.floor(e.canvasInnerHeight/e.minimapLineHeight)))}d=o&&i!==s?Math.floor((i-t+1)*f/g):Math.floor(r/m*f/g),c=e.scrollBeyondLastLine?(s-1)*f/g:Math.max(0,s*f/g-d);let D=(c=Math.min(e.minimapHeight-d,c))/(u-r),C=a*D,_=0;if(e.scrollBeyondLastLine&&(_=r/m-1),p>=s+_)return new v(a,u,c>0,D,C,d,1,s);{let e=Math.max(1,Math.floor(t-C*g/f));h&&h.scrollHeight===u&&(h.scrollTop>a&&(e=Math.min(e,h.startLineNumber)),h.scrollTop<a&&(e=Math.max(e,h.startLineNumber)));let i=Math.min(s,e+p-1),r=(t-e+(a-n)/m)*f/g;return new v(a,u,!0,D,r,d,e,i)}}}class L{constructor(e){this.dy=e}onContentChanged(){this.dy=-1}onTokensChanged(){this.dy=-1}}L.INVALID=new L(-1);class S{constructor(e,t,i){this.renderedLayout=e,this._imageData=t,this._renderedLines=new u.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,r=i.g,o=i.b,s=i.a,l=new Uint8ClampedArray(e*t*4),a=0;for(let i=0;i<t;i++)for(let t=0;t<e;t++)l[a]=n,l[a+1]=r,l[a+2]=o,l[a+3]=s,a+=4;return l}}class I{constructor(e,t){this.samplingRatio=e,this.minimapLines=t}static compute(e,t,i){if(0===e.renderMinimap||!e.isSampling)return[null,[]];let n=e.pixelRatio,r=e.lineHeight,o=e.scrollBeyondLastLine,{minimapLineCount:s}=d.gk.computeContainedMinimapLineCount({viewLineCount:t,scrollBeyondLastLine:o,height:e.editorHeight,lineHeight:r,pixelRatio:n}),l=t/s,a=l/2;if(!i||0===i.minimapLines.length){let e=[];if(e[0]=1,s>1){for(let t=0,i=s-1;t<i;t++)e[t]=Math.round(t*l+a);e[s-1]=t}return[new I(l,e),[]]}let u=i.minimapLines,h=u.length,c=[],g=0,f=0,p=1,m=[],D=null;for(let e=0;e<s;e++){let i;let n=Math.max(p,Math.round(e*l)),r=Math.max(n,Math.round((e+1)*l));for(;g<h&&u[g]<n;){if(m.length<10){let e=g+1+f;D&&"deleted"===D.type&&D._oldIndex===g-1?D.deleteToLineNumber++:(D={type:"deleted",_oldIndex:g,deleteFromLineNumber:e,deleteToLineNumber:e},m.push(D)),f--}g++}if(g<h&&u[g]<=r)i=u[g],g++;else if(i=0===e?1:e+1===s?t:Math.round(e*l+a),m.length<10){let t=g+1+f;D&&"inserted"===D.type&&D._i===e-1?D.insertToLineNumber++:(D={type:"inserted",_i:e,insertFromLineNumber:t,insertToLineNumber:t},m.push(D)),f++}c[e]=i,p=i}if(m.length<10)for(;g<h;){let e=g+1+f;D&&"deleted"===D.type&&D._oldIndex===g-1?D.deleteToLineNumber++:(D={type:"deleted",_oldIndex:g,deleteFromLineNumber:e,deleteToLineNumber:e},m.push(D)),f--,g++}else m=[{type:"flush"}];return[new I(l,c),m]}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 r=this.minimapLines.length-1;r>=0&&!(this.minimapLines[r]<e.fromLineNumber);r--)this.minimapLines[r]<=e.toLineNumber?(this.minimapLines[r]=Math.max(1,e.fromLineNumber-1),i=Math.min(i,r),n=Math.max(n,r)):this.minimapLines[r]-=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 F extends h.E{constructor(e){super(e),this.tokensColorTracker=f.E.getInstance(),this._selections=[],this._minimapSelections=null,this.options=new k(this._context.configuration,this._context.theme,this.tokensColorTracker);let[t]=I.compute(this.options,this._context.viewModel.getLineCount(),null);this._samplingState=t,this._shouldCheckSampling=!1,this._actual=new R(e.theme,this)}dispose(){this._actual.dispose(),super.dispose()}getDomNode(){return this._actual.getDomNode()}_onOptionsMaybeChanged(){let e=new k(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]=I.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 r=0,o=t-e+1;r<o;r++)i[r]?n[r]=this._context.viewModel.getViewLineData(this._samplingState.minimapLines[e+r-1]):n[r]=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 C.Y(t,e.startColumn,i,e.endColumn))}else this._minimapSelections=this._selections}return this._minimapSelections}getMinimapDecorationsInViewport(e,t){let i;if(this._samplingState){let n=this._samplingState.minimapLines[e-1],r=this._samplingState.minimapLines[t-1];i=new c.e(n,1,r,this._context.viewModel.getLineMaxColumn(r))}else i=new c.e(e,1,t,this._context.viewModel.getLineMaxColumn(t));let n=this._context.viewModel.getDecorationsInViewport(i);if(this._samplingState){let e=[];for(let t of n){if(!t.options.minimap)continue;let i=t.range,n=this._samplingState.modelLineToMinimapLine(i.startLineNumber),r=this._samplingState.modelLineToMinimapLine(i.endLineNumber);e.push(new p.$l(new c.e(n,i.startColumn,r,i.endColumn),t.options))}return e}return n}getOptions(){return this._context.viewModel.model.getOptions()}revealLineNumber(e){this._samplingState&&(e=this._samplingState.minimapLines[e-1]),this._context.viewModel.revealRange("mouse",!1,new c.e(e,1,e,1),1,0)}setScrollTop(e){this._context.viewModel.viewLayout.setScrollPosition({scrollTop:e},1)}}class R 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,r.X)(document.createElement("div")),h.K.write(this._domNode,8),this._domNode.setClassName(this._getMinimapDomNodeClassName()),this._domNode.setPosition("absolute"),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._shadow=(0,r.X)(document.createElement("div")),this._shadow.setClassName("minimap-shadow-hidden"),this._domNode.appendChild(this._shadow),this._canvas=(0,r.X)(document.createElement("canvas")),this._canvas.setPosition("absolute"),this._canvas.setLeft(0),this._domNode.appendChild(this._canvas),this._decorationsCanvas=(0,r.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,r.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,r.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,r=Math.floor(i/t)+this._lastRenderData.renderedLayout.startLineNumber;r=Math.min(r,this._model.getLineCount()),this._model.revealLineNumber(r)}),this._sliderPointerMoveMonitor=new o.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=_.o.addTarget(this._domNode.domNode),this._sliderTouchStartListener=n.nm(this._domNode.domNode,_.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,_.t.Change,e=>{e.preventDefault(),e.stopPropagation(),this._lastRenderData&&this._gestureInProgress&&this.scrollDueToTouchEvent(e)},{passive:!1}),this._sliderTouchEndListener=n.mu(this._domNode.domNode,_.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 n=e.pageX;this._slider.toggleClassName("active",!0);let r=(e,r)=>{let o=Math.abs(r-n);if(l.ED&&o>140){this._model.setScrollTop(i.scrollTop);return}this._model.setScrollTop(i.getDesiredScrollTopFromDelta(e-t))};e.pageY!==t&&r(e.pageY,n),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=v.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(c.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:r}=this._model.options,o=this._model.options.minimapLineHeight,s=this._model.options.minimapCharWidth,l=this._model.getOptions().tabSize,a=this._decorationsCanvas.domNode.getContext("2d");a.clearRect(0,0,n,r);let u=new T(e.startLineNumber,e.endLineNumber,!1);this._renderSelectionLineHighlights(a,t,u,e,o),this._renderDecorationsLineHighlights(a,i,u,e,o);let h=new T(e.startLineNumber,e.endLineNumber,null);this._renderSelectionsHighlights(a,t,h,e,o,l,s,n),this._renderDecorationsHighlights(a,i,h,e,o,l,s,n)}}_renderSelectionLineHighlights(e,t,i,n,r){if(!this._selectionColor||this._selectionColor.isTransparent())return;e.fillStyle=this._selectionColor.transparent(.5).toString();let o=0,s=0;for(let l of t){let t=Math.max(n.startLineNumber,l.startLineNumber),a=Math.min(n.endLineNumber,l.endLineNumber);if(t>a)continue;for(let e=t;e<=a;e++)i.set(e,!0);let u=(t-n.startLineNumber)*r,h=(a-n.startLineNumber)*r+r;s>=u||(s>o&&e.fillRect(d.y0,o,e.canvas.width,s-o),o=u),s=h}s>o&&e.fillRect(d.y0,o,e.canvas.width,s-o)}_renderDecorationsLineHighlights(e,t,i,n,r){let o=new Map;for(let s=t.length-1;s>=0;s--){let l=t[s],a=l.options.minimap;if(!a||a.position!==b.F5.Inline)continue;let u=Math.max(n.startLineNumber,l.range.startLineNumber),h=Math.min(n.endLineNumber,l.range.endLineNumber);if(u>h)continue;let c=a.getColor(this._theme.value);if(!c||c.isTransparent())continue;let g=o.get(c.toString());!g&&(g=c.transparent(.5).toString(),o.set(c.toString(),g)),e.fillStyle=g;for(let t=u;t<=h;t++){if(i.has(t))continue;i.set(t,!0);let o=(u-n.startLineNumber)*r;e.fillRect(d.y0,o,e.canvas.width,r)}}}_renderSelectionsHighlights(e,t,i,n,r,o,s,l){if(!(!this._selectionColor||this._selectionColor.isTransparent()))for(let a of t){let t=Math.max(n.startLineNumber,a.startLineNumber),u=Math.min(n.endLineNumber,a.endLineNumber);if(!(t>u))for(let h=t;h<=u;h++)this.renderDecorationOnLine(e,i,a,this._selectionColor,n,h,r,r,o,s,l)}}_renderDecorationsHighlights(e,t,i,n,r,o,s,l){for(let a of t){let t=a.options.minimap;if(!t)continue;let u=Math.max(n.startLineNumber,a.range.startLineNumber),h=Math.min(n.endLineNumber,a.range.endLineNumber);if(u>h)continue;let d=t.getColor(this._theme.value);if(!(!d||d.isTransparent()))for(let c=u;c<=h;c++)switch(t.position){case b.F5.Inline:this.renderDecorationOnLine(e,i,a.range,d,n,c,r,r,o,s,l);continue;case b.F5.Gutter:{let t=(c-n.startLineNumber)*r;this.renderDecoration(e,d,2,t,2,r);continue}}}}renderDecorationOnLine(e,t,i,n,r,o,s,l,a,u,h){let d=(o-r.startLineNumber)*l;if(d+s<0||d>this._model.options.canvasInnerHeight)return;let{startLineNumber:c,endLineNumber:g}=i,f=c===o?i.startColumn:1,p=g===o?i.endColumn:this._model.getLineMaxColumn(o),m=this.getXOffsetForPosition(t,o,f,a,u,h),D=this.getXOffsetForPosition(t,o,p,a,u,h);this.renderDecoration(e,n,m,d,D-m,s)}getXOffsetForPosition(e,t,i,n,r,o){if(1===i)return d.y0;if((i-1)*r>=o)return o;let s=e.get(t);if(!s){let i=this._model.getLineContent(t);s=[d.y0];let l=d.y0;for(let e=1;e<i.length+1;e++){let t=i.charCodeAt(e-1),u=l+(9===t?n*r:a.K7(t)?2*r:r);if(u>=o){s[e]=o;break}s[e]=u,l=u}e.set(t,s)}return i-1<s.length?s[i-1]:o}renderDecoration(e,t,i,n,r,o){e.fillStyle=t&&t.toString()||"",e.fillRect(i,n,r,o)}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 S(e,t.imageData,t.lines)}let r=this._getBuffer();if(!r)return null;let[o,s,l]=R._renderUntouchedLines(r,t,i,n,this._lastRenderData),a=this._model.getMinimapLinesRenderingData(t,i,l),u=this._model.getOptions().tabSize,h=this._model.options.defaultBackgroundColor,d=this._model.options.backgroundColor,c=this._model.options.foregroundAlpha,f=this._model.tokensColorTracker,p=f.backgroundIsLight(),m=this._model.options.renderMinimap,D=this._model.options.charRenderer(),C=this._model.options.fontScale,_=this._model.options.minimapCharWidth,E=(1===m?2:3)*C,b=n>E?Math.floor((n-E)/2):0,A=d.a/255,k=new g.h(Math.round((d.r-h.r)*A+h.r),Math.round((d.g-h.g)*A+h.g),Math.round((d.b-h.b)*A+h.b),255),v=0,N=[];for(let e=0,o=i-t+1;e<o;e++)l[e]&&R._renderLine(r,k,d.a,p,m,_,f,c,D,v,b,u,a[e],C,n),N[e]=new L(v),v+=n;let I=-1===o?0:o,F=-1===s?r.height:s;return this._canvas.domNode.getContext("2d").putImageData(r,0,0,0,I,r.width,F-I),new S(e,r,N)}static _renderUntouchedLines(e,t,i,n,r){let o=[];if(!r){for(let e=0,n=i-t+1;e<n;e++)o[e]=!0;return[-1,-1,o]}let s=r._get(),l=s.imageData.data,a=s.rendLineNumberStart,u=s.lines,h=u.length,d=e.width,c=e.data,g=(i-t+1)*n*d*4,f=-1,p=-1,m=-1,D=-1,C=-1,_=-1,E=0;for(let e=t;e<=i;e++){let i=e-t,r=e-a,s=r>=0&&r<h?u[r].dy:-1;if(-1===s){o[i]=!0,E+=n;continue}let b=s*d*4,A=(s+n)*d*4,k=E*d*4,v=(E+n)*d*4;D===b&&_===k?D=A:(-1!==m&&(c.set(l.subarray(m,D),C),-1===f&&0===m&&m===C&&(f=D),-1===p&&D===g&&m===C&&(p=m)),m=b,D=A,C=k),_=v,o[i]=!1,E+=n}return -1!==m&&(c.set(l.subarray(m,D),C),-1===f&&0===m&&m===C&&(f=D),-1===p&&D===g&&m===C&&(p=m)),[-1===f?-1:f/(4*d),-1===p?-1:p/(4*d),o]}static _renderLine(e,t,i,n,r,o,s,l,u,h,c,g,f,p,m){let D=f.content,C=f.tokens,_=e.width-o,E=1===m,b=d.y0,A=0,k=0;for(let d=0,f=C.getCount();d<f;d++){let f=C.getEndOffset(d),m=C.getForeground(d),v=s.getColor(m);for(;A<f;A++){if(b>_)return;let s=D.charCodeAt(A);if(9===s){let e=g-(A+k)%g;k+=e-1,b+=e*o}else if(32===s)b+=o;else{let d=a.K7(s)?2:1;for(let a=0;a<d;a++)if(2===r?u.blockRenderChar(e,b,h+c,v,l,t,i,E):u.renderChar(e,b,h+c,s,v,l,t,i,p,n,E),(b+=o)>_)return}}}}}class T{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]}}(0,D.Ic)((e,t)=>{let i=e.getColor(m.CA6);i&&t.addRule(`.monaco-editor .minimap-slider .minimap-slider-horizontal { background: ${i}; }`);let n=e.getColor(m.Xy4);n&&t.addRule(`.monaco-editor .minimap-slider:hover .minimap-slider-horizontal { background: ${n}; }`);let r=e.getColor(m.brw);r&&t.addRule(`.monaco-editor .minimap-slider.active .minimap-slider-horizontal { background: ${r}; }`);let o=e.getColor(m._wn);o&&t.addRule(`.monaco-editor .minimap-shadow-visible { box-shadow: ${o} -6px 0 6px -6px inset; }`)})},99397:function(e,t,i){"use strict";i.d(t,{c:function(){return o}}),i("90893");var n=i("70758"),r=i("71956");class o extends r.E{constructor(e){super(e);let t=this._context.configuration.options.get(133);this._widgets={},this._verticalScrollbarWidth=t.verticalScrollbarWidth,this._minimapWidth=t.minimap.minimapWidth,this._horizontalScrollbarHeight=t.horizontalScrollbarHeight,this._editorHeight=t.height,this._editorWidth=t.width,this._domNode=(0,n.X)(document.createElement("div")),r.K.write(this._domNode,4),this._domNode.setClassName("overlayWidgets")}dispose(){super.dispose(),this._widgets={}}getDomNode(){return this._domNode}onConfigurationChanged(e){let t=this._context.configuration.options.get(133);return this._verticalScrollbarWidth=t.verticalScrollbarWidth,this._minimapWidth=t.minimap.minimapWidth,this._horizontalScrollbarHeight=t.horizontalScrollbarHeight,this._editorHeight=t.height,this._editorWidth=t.width,!0}addWidget(e){let t=(0,n.X)(e.getDomNode());this._widgets[e.getId()]={widget:e,preference:null,domNode:t},t.setPosition("absolute"),t.setAttribute("widgetId",e.getId()),this._domNode.appendChild(t),this.setShouldRender()}setWidgetPosition(e,t){let i=this._widgets[e.getId()];return i.preference!==t&&(i.preference=t,this.setShouldRender(),!0)}removeWidget(e){let t=e.getId();if(this._widgets.hasOwnProperty(t)){let e=this._widgets[t].domNode.domNode;delete this._widgets[t],e.parentNode.removeChild(e),this.setShouldRender()}}_renderWidget(e){let t=e.domNode;if(null===e.preference){t.setTop("");return}if(0===e.preference)t.setTop(0),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth);else if(1===e.preference){let e=t.domNode.clientHeight;t.setTop(this._editorHeight-e-2*this._horizontalScrollbarHeight),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth)}else 2===e.preference&&(t.setTop(0),t.domNode.style.right="50%")}prepareRender(e){}render(e){this._domNode.setWidth(this._editorWidth);let t=Object.keys(this._widgets);for(let e=0,i=t.length;e<i;e++){let i=t[e];this._renderWidget(this._widgets[i])}}}},8932:function(e,t,i){"use strict";i.d(t,{F:function(){return o},K:function(){return s}});var n=i("61045"),r=i("61065");class o{constructor(e,t,i){this._range=e,this._charBeforeSelection=t,this._charAfterSelection=i}getEditOperations(e,t){t.addTrackedEditOperation(new n.e(this._range.startLineNumber,this._range.startColumn,this._range.startLineNumber,this._range.startColumn),this._charBeforeSelection),t.addTrackedEditOperation(new n.e(this._range.endLineNumber,this._range.endColumn,this._range.endLineNumber,this._range.endColumn),this._charAfterSelection)}computeCursorState(e,t){let i=t.getInverseEditOperations(),n=i[0].range,o=i[1].range;return new r.Y(n.endLineNumber,n.endColumn,o.endLineNumber,o.endColumn-this._charAfterSelection.length)}}class s{constructor(e,t,i){this._position=e,this._text=t,this._charAfter=i}getEditOperations(e,t){t.addTrackedEditOperation(new n.e(this._position.lineNumber,this._position.column,this._position.lineNumber,this._position.column),this._text+this._charAfter)}computeCursorState(e,t){let i=t.getInverseEditOperations()[0].range;return new r.Y(i.endLineNumber,i.startColumn,i.endLineNumber,i.endColumn-this._charAfter.length)}}},26939:function(e,t,i){"use strict";i.d(t,{CE:function(){return U},DD:function(){return b},DS:function(){return K},Dl:function(){return v},HV:function(){return et},IO:function(){return x},Jn:function(){return X},Kh:function(){return a},L7:function(){return ee},Mm:function(){return u},N5:function(){return T},Qb:function(){return Q},Re:function(){return O},TC:function(){return k},To:function(){return J},UP:function(){return W},Vs:function(){return H},YF:function(){return j},Ym:function(){return C},eS:function(){return P},e_:function(){return S},f9:function(){return ei},fY:function(){return p},hw:function(){return _},kp:function(){return I},lK:function(){return y},lS:function(){return q},m$:function(){return $},m1:function(){return V},m3:function(){return Z},m9:function(){return B},n0:function(){return f},oV:function(){return Y},r0:function(){return z},tR:function(){return D},ts:function(){return G},x3:function(){return R},zJ:function(){return M},zk:function(){return A},zu:function(){return F},zw:function(){return L}});var n=i("8339"),r=i("35271"),o=i("97085"),s=i("39703"),l=i("74697");let a=(0,o.P6G)("editor.lineHighlightBackground",{dark:null,light:null,hcDark:null,hcLight:null},n.NC("lineHighlight","Background color for the highlight of line at the cursor position.")),u=(0,o.P6G)("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hcDark:"#f38518",hcLight:o.lRK},n.NC("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),h=(0,o.P6G)("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hcDark:null,hcLight:null},n.NC("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),d=(0,o.P6G)("editor.rangeHighlightBorder",{dark:null,light:null,hcDark:o.xL1,hcLight:o.xL1},n.NC("rangeHighlightBorder","Background color of the border around highlighted ranges."),!0),c=(0,o.P6G)("editor.symbolHighlightBackground",{dark:o.MUv,light:o.MUv,hcDark:null,hcLight:null},n.NC("symbolHighlight","Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),g=(0,o.P6G)("editor.symbolHighlightBorder",{dark:null,light:null,hcDark:o.xL1,hcLight:o.xL1},n.NC("symbolHighlightBorder","Background color of the border around highlighted symbols."),!0),f=(0,o.P6G)("editorCursor.foreground",{dark:"#AEAFAD",light:r.Il.black,hcDark:r.Il.white,hcLight:"#0F4A85"},n.NC("caret","Color of the editor cursor.")),p=(0,o.P6G)("editorCursor.background",null,n.NC("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),m=(0,o.P6G)("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hcDark:"#e3e4e229",hcLight:"#CCCCCC"},n.NC("editorWhitespaces","Color of whitespace characters in the editor.")),D=(0,o.P6G)("editorIndentGuide.background",{dark:m,light:m,hcDark:m,hcLight:m},n.NC("editorIndentGuides","Color of the editor indentation guides.")),C=(0,o.P6G)("editorIndentGuide.activeBackground",{dark:m,light:m,hcDark:m,hcLight:m},n.NC("editorActiveIndentGuide","Color of the active editor indentation guides.")),_=(0,o.P6G)("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hcDark:r.Il.white,hcLight:"#292929"},n.NC("editorLineNumbers","Color of editor line numbers.")),E=(0,o.P6G)("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hcDark:o.xL1,hcLight:o.xL1},n.NC("editorActiveLineNumber","Color of editor active line number"),!1,n.NC("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead.")),b=(0,o.P6G)("editorLineNumber.activeForeground",{dark:E,light:E,hcDark:E,hcLight:E},n.NC("editorActiveLineNumber","Color of editor active line number")),A=(0,o.P6G)("editorRuler.foreground",{dark:"#5A5A5A",light:r.Il.lightgrey,hcDark:r.Il.white,hcLight:"#292929"},n.NC("editorRuler","Color of the editor rulers."));(0,o.P6G)("editorCodeLens.foreground",{dark:"#999999",light:"#919191",hcDark:"#999999",hcLight:"#292929"},n.NC("editorCodeLensForeground","Foreground color of editor CodeLens"));let k=(0,o.P6G)("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hcDark:"#0064001a",hcLight:"#0000"},n.NC("editorBracketMatchBackground","Background color behind matching brackets")),v=(0,o.P6G)("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hcDark:o.lRK,hcLight:o.lRK},n.NC("editorBracketMatchBorder","Color for matching brackets boxes")),L=(0,o.P6G)("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hcDark:"#7f7f7f4d",hcLight:"#666666"},n.NC("editorOverviewRulerBorder","Color of the overview ruler border.")),S=(0,o.P6G)("editorOverviewRuler.background",null,n.NC("editorOverviewRulerBackground","Background color of the editor overview ruler. Only used when the minimap is enabled and placed on the right side of the editor.")),N=(0,o.P6G)("editorGutter.background",{dark:o.cvW,light:o.cvW,hcDark:o.cvW,hcLight:o.cvW},n.NC("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),I=(0,o.P6G)("editorUnnecessaryCode.border",{dark:null,light:null,hcDark:r.Il.fromHex("#fff").transparent(.8),hcLight:o.lRK},n.NC("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),F=(0,o.P6G)("editorUnnecessaryCode.opacity",{dark:r.Il.fromHex("#000a"),light:r.Il.fromHex("#0007"),hcDark:null,hcLight:null},n.NC("unnecessaryCodeOpacity","Opacity of unnecessary (unused) source code in the editor. For example, \"#000000c0\" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out.")),R=(0,o.P6G)("editorGhostText.border",{dark:null,light:null,hcDark:r.Il.fromHex("#fff").transparent(.8),hcLight:r.Il.fromHex("#292929").transparent(.8)},n.NC("editorGhostTextBorder","Border color of ghost text in the editor.")),T=(0,o.P6G)("editorGhostText.foreground",{dark:r.Il.fromHex("#ffffff56"),light:r.Il.fromHex("#0007"),hcDark:null,hcLight:null},n.NC("editorGhostTextForeground","Foreground color of the ghost text in the editor.")),x=(0,o.P6G)("editorGhostText.background",{dark:null,light:null,hcDark:null,hcLight:null},n.NC("editorGhostTextBackground","Background color of the ghost text in the editor.")),w=new r.Il(new r.VS(0,122,204,.6)),B=(0,o.P6G)("editorOverviewRuler.rangeHighlightForeground",{dark:w,light:w,hcDark:w,hcLight:w},n.NC("overviewRulerRangeHighlight","Overview ruler marker color for range highlights. The color must not be opaque so as not to hide underlying decorations."),!0),y=(0,o.P6G)("editorOverviewRuler.errorForeground",{dark:new r.Il(new r.VS(255,18,18,.7)),light:new r.Il(new r.VS(255,18,18,.7)),hcDark:new r.Il(new r.VS(255,50,50,1)),hcLight:"#B5200D"},n.NC("overviewRuleError","Overview ruler marker color for errors.")),O=(0,o.P6G)("editorOverviewRuler.warningForeground",{dark:o.uoC,light:o.uoC,hcDark:o.pW3,hcLight:o.pW3},n.NC("overviewRuleWarning","Overview ruler marker color for warnings.")),P=(0,o.P6G)("editorOverviewRuler.infoForeground",{dark:o.c63,light:o.c63,hcDark:o.T83,hcLight:o.T83},n.NC("overviewRuleInfo","Overview ruler marker color for infos.")),M=(0,o.P6G)("editorBracketHighlight.foreground1",{dark:"#FFD700",light:"#0431FAFF",hcDark:"#FFD700",hcLight:"#0431FAFF"},n.NC("editorBracketHighlightForeground1","Foreground color of brackets (1). Requires enabling bracket pair colorization.")),H=(0,o.P6G)("editorBracketHighlight.foreground2",{dark:"#DA70D6",light:"#319331FF",hcDark:"#DA70D6",hcLight:"#319331FF"},n.NC("editorBracketHighlightForeground2","Foreground color of brackets (2). Requires enabling bracket pair colorization.")),U=(0,o.P6G)("editorBracketHighlight.foreground3",{dark:"#179FFF",light:"#7B3814FF",hcDark:"#87CEFA",hcLight:"#7B3814FF"},n.NC("editorBracketHighlightForeground3","Foreground color of brackets (3). Requires enabling bracket pair colorization.")),W=(0,o.P6G)("editorBracketHighlight.foreground4",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketHighlightForeground4","Foreground color of brackets (4). Requires enabling bracket pair colorization.")),z=(0,o.P6G)("editorBracketHighlight.foreground5",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketHighlightForeground5","Foreground color of brackets (5). Requires enabling bracket pair colorization.")),V=(0,o.P6G)("editorBracketHighlight.foreground6",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketHighlightForeground6","Foreground color of brackets (6). Requires enabling bracket pair colorization.")),G=(0,o.P6G)("editorBracketHighlight.unexpectedBracket.foreground",{dark:new r.Il(new r.VS(255,18,18,.8)),light:new r.Il(new r.VS(255,18,18,.8)),hcDark:new r.Il(new r.VS(255,50,50,1)),hcLight:""},n.NC("editorBracketHighlightUnexpectedBracketForeground","Foreground color of unexpected brackets.")),Y=(0,o.P6G)("editorBracketPairGuide.background1",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketPairGuide.background1","Background color of inactive bracket pair guides (1). Requires enabling bracket pair guides.")),$=(0,o.P6G)("editorBracketPairGuide.background2",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketPairGuide.background2","Background color of inactive bracket pair guides (2). Requires enabling bracket pair guides.")),K=(0,o.P6G)("editorBracketPairGuide.background3",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketPairGuide.background3","Background color of inactive bracket pair guides (3). Requires enabling bracket pair guides.")),q=(0,o.P6G)("editorBracketPairGuide.background4",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketPairGuide.background4","Background color of inactive bracket pair guides (4). Requires enabling bracket pair guides.")),X=(0,o.P6G)("editorBracketPairGuide.background5",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketPairGuide.background5","Background color of inactive bracket pair guides (5). Requires enabling bracket pair guides.")),j=(0,o.P6G)("editorBracketPairGuide.background6",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketPairGuide.background6","Background color of inactive bracket pair guides (6). Requires enabling bracket pair guides.")),Q=(0,o.P6G)("editorBracketPairGuide.activeBackground1",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketPairGuide.activeBackground1","Background color of active bracket pair guides (1). Requires enabling bracket pair guides.")),Z=(0,o.P6G)("editorBracketPairGuide.activeBackground2",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketPairGuide.activeBackground2","Background color of active bracket pair guides (2). Requires enabling bracket pair guides.")),J=(0,o.P6G)("editorBracketPairGuide.activeBackground3",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketPairGuide.activeBackground3","Background color of active bracket pair guides (3). Requires enabling bracket pair guides.")),ee=(0,o.P6G)("editorBracketPairGuide.activeBackground4",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketPairGuide.activeBackground4","Background color of active bracket pair guides (4). Requires enabling bracket pair guides.")),et=(0,o.P6G)("editorBracketPairGuide.activeBackground5",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketPairGuide.activeBackground5","Background color of active bracket pair guides (5). Requires enabling bracket pair guides.")),ei=(0,o.P6G)("editorBracketPairGuide.activeBackground6",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},n.NC("editorBracketPairGuide.activeBackground6","Background color of active bracket pair guides (6). Requires enabling bracket pair guides."));(0,o.P6G)("editorUnicodeHighlight.border",{dark:"#BD9B03",light:"#CEA33D",hcDark:"#ff0000",hcLight:""},n.NC("editorUnicodeHighlight.border","Border color used to highlight unicode characters.")),(0,o.P6G)("editorUnicodeHighlight.background",{dark:"#bd9b0326",light:"#cea33d14",hcDark:"#00000000",hcLight:""},n.NC("editorUnicodeHighlight.background","Background color used to highlight unicode characters.")),(0,s.Ic)((e,t)=>{let i=e.getColor(o.cvW);i&&t.addRule(`.monaco-editor, .monaco-editor-background { background-color: ${i}; }`);let n=e.getColor(a),r=n&&!n.isTransparent()?n:i;r&&t.addRule(`.monaco-editor .inputarea.ime-input { background-color: ${r}; }`);let s=e.getColor(o.NOs);s&&t.addRule(`.monaco-editor, .monaco-editor .inputarea.ime-input { color: ${s}; }`);let u=e.getColor(N);u&&t.addRule(`.monaco-editor .margin { background-color: ${u}; }`);let f=e.getColor(h);f&&t.addRule(`.monaco-editor .rangeHighlight { background-color: ${f}; }`);let p=e.getColor(d);p&&t.addRule(`.monaco-editor .rangeHighlight { border: 1px ${(0,l.c3)(e.type)?"dotted":"solid"} ${p}; }`);let D=e.getColor(c);D&&t.addRule(`.monaco-editor .symbolHighlight { background-color: ${D}; }`);let C=e.getColor(g);C&&t.addRule(`.monaco-editor .symbolHighlight { border: 1px ${(0,l.c3)(e.type)?"dotted":"solid"} ${C}; }`);let _=e.getColor(m);_&&(t.addRule(`.monaco-editor .mtkw { color: ${_} !important; }`),t.addRule(`.monaco-editor .mtkz { color: ${_} !important; }`))})},55062:function(e,t,i){"use strict";i.d(t,{D:function(){return n}});let n={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}}},17291:function(e,t,i){"use strict";i.d(t,{C2:function(){return a},Fq:function(){return u}});var n=i("66763"),r=i("15776"),o=i("74854"),s=i("43972");let l={getInitialState:()=>s.TJ,tokenizeEncoded:(e,t,i)=>(0,s.Dy)(0,i)};function a(e,t,i){var n,r,s,a;return n=this,r=void 0,s=void 0,a=function*(){if(!i)return h(t,e.languageIdCodec,l);let n=yield o.RW.getOrCreate(i);return h(t,e.languageIdCodec,n||l)},new(s||(s=Promise))(function(e,t){function i(e){try{l(a.next(e))}catch(e){t(e)}}function o(e){try{l(a.throw(e))}catch(e){t(e)}}function l(t){var n;t.done?e(t.value):((n=t.value)instanceof s?n:new s(function(e){e(n)})).then(i,o)}l((a=a.apply(n,r||[])).next())})}function u(e,t,i,n,r,o,s){let l="<div>",a=n,u=0,h=!0;for(let d=0,c=t.getCount();d<c;d++){let c=t.getEndOffset(d);if(c<=n)continue;let g="";for(;a<c&&a<r;a++){let t=e.charCodeAt(a);switch(t){case 9:{let e=o-(a+u)%o;for(u+=e-1;e>0;)s&&h?(g+=" ",h=!1):(g+=" ",h=!0),e--;break}case 60:g+="<",h=!1;break;case 62:g+=">",h=!1;break;case 38:g+="&",h=!1;break;case 0:g+="�",h=!1;break;case 65279:case 8232:case 8233:case 133:g+="\uFFFD",h=!1;break;case 13:g+="​",h=!1;break;case 32:s&&h?(g+=" ",h=!1):(g+=" ",h=!0);break;default:g+=String.fromCharCode(t),h=!1}}if(l+=`<span style="${t.getInlineStyle(d,i)}">${g}</span>`,c>r||a>=r)break}return l+="</div>"}function h(e,t,i){let o='<div class="monaco-tokenized-source">',s=n.uq(e),l=i.getInitialState();for(let e=0,a=s.length;e<a;e++){let a=s[e];e>0&&(o+="<br/>");let u=i.tokenizeEncoded(a,!0,l);r.A.convertToEndOffset(u.tokens,a.length);let h=new r.A(u.tokens,a,t).inflate(),d=0;for(let e=0,t=h.getCount();e<t;e++){let t=h.getClassName(e),i=h.getEndOffset(e);o+=`<span class="${t}">${n.YU(a.substring(d,i))}</span>`,d=i}l=u.endState}return o+="</div>"}},63681:function(e,t,i){"use strict";i.d(t,{F5:function(){return l},Hf:function(){return c},Qi:function(){return g},RM:function(){return a},Tx:function(){return f},dJ:function(){return h},je:function(){return p},pt:function(){return m},sh:function(){return s},tk:function(){return d}});var n,r,o,s,l,a,u=i("777");(n=s||(s={}))[n.Left=1]="Left",n[n.Center=2]="Center",n[n.Right=4]="Right",n[n.Full=7]="Full",(r=l||(l={}))[r.Inline=1]="Inline",r[r.Gutter=2]="Gutter",(o=a||(a={}))[o.Both=0]="Both",o[o.Right=1]="Right",o[o.Left=2]="Left",o[o.None=3]="None";class h{constructor(e){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,0|e.tabSize),this.indentSize=0|e.tabSize,this.insertSpaces=!!e.insertSpaces,this.defaultEOL=0|e.defaultEOL,this.trimAutoWhitespace=!!e.trimAutoWhitespace,this.bracketPairColorizationOptions=e.bracketPairColorizationOptions}equals(e){return this.tabSize===e.tabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace&&(0,u.fS)(this.bracketPairColorizationOptions,e.bracketPairColorizationOptions)}createChangeEvent(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}}}class d{constructor(e,t){this._findMatchBrand=void 0,this.range=e,this.matches=t}}function c(e){return e&&"function"==typeof e.read}class g{constructor(e,t,i,n,r,o){this.identifier=e,this.range=t,this.text=i,this.forceMoveMarkers=n,this.isAutoWhitespaceEdit=r,this._isTracked=o}}class f{constructor(e,t,i){this.regex=e,this.wordSeparators=t,this.simpleSearch=i}}class p{constructor(e,t,i){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=i}}function m(e){return!e.isTooLargeForSyncing()&&!e.isForSimpleWidget}},2349:function(e,t,i){"use strict";i.d(t,{W:function(){return d},l:function(){return h}});var n=i("3868"),r=i("66763"),o=i("89626"),s=i("61045"),l=i("70699"),a=i("47892"),u=i("27924");class h extends l.U{constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t}getLanguageConfiguration(e){return this.languageConfigurationService.getLanguageConfiguration(e)}_computeIndentLevel(e){return(0,a.q)(this.textModel.getLineContent(e+1),this.textModel.getOptions().tabSize)}getActiveIndentGuide(e,t,i){this.assertNotDisposed();let n=this.textModel.getLineCount();if(e<1||e>n)throw Error("Illegal value for lineNumber");let r=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,o=!!(r&&r.offSide),s=-2,l=-1,a=-2,u=-1,h=e=>{if(-1!==s&&(-2===s||s>e-1)){s=-1,l=-1;for(let t=e-2;t>=0;t--){let e=this._computeIndentLevel(t);if(e>=0){s=t,l=e;break}}}if(-2===a){a=-1,u=-1;for(let t=e;t<n;t++){let e=this._computeIndentLevel(t);if(e>=0){a=t,u=e;break}}}},d=-2,c=-1,g=-2,f=-1,p=e=>{if(-2===d){d=-1,c=-1;for(let t=e-2;t>=0;t--){let e=this._computeIndentLevel(t);if(e>=0){d=t,c=e;break}}}if(-1!==g&&(-2===g||g<e-1)){g=-1,f=-1;for(let t=e;t<n;t++){let e=this._computeIndentLevel(t);if(e>=0){g=t,f=e;break}}}},m=0,D=!0,C=0,_=!0,E=0,b=0;for(let r=0;D||_;r++){let s=e-r,g=e+r;r>1&&(s<1||s<t)&&(D=!1),r>1&&(g>n||g>i)&&(_=!1),r>5e4&&(D=!1,_=!1);let A=-1;if(D&&s>=1){let e=this._computeIndentLevel(s-1);e>=0?(a=s-1,u=e,A=Math.ceil(e/this.textModel.getOptions().indentSize)):(h(s),A=this._getIndentLevelForWhitespaceLine(o,l,u))}let k=-1;if(_&&g<=n){let e=this._computeIndentLevel(g-1);e>=0?(d=g-1,c=e,k=Math.ceil(e/this.textModel.getOptions().indentSize)):(p(g),k=this._getIndentLevelForWhitespaceLine(o,c,f))}if(0===r){b=A;continue}if(1===r){if(g<=n&&k>=0&&b+1===k){D=!1,m=g,C=g,E=k;continue}if(s>=1&&A>=0&&A-1===b){_=!1,m=s,C=s,E=A;continue}if(m=e,C=e,0===(E=b))break}D&&(A>=E?m=s:D=!1),_&&(k>=E?C=g:_=!1)}return{startLineNumber:m,endLineNumber:C,indent:E}}getLinesBracketGuides(e,t,i,o){var l;let a;let h=[];for(let i=e;i<=t;i++)h.push([]);let c=this.textModel.bracketPairs.getBracketPairsInRangeWithMinIndentation(new s.e(e,1,t,this.textModel.getLineMaxColumn(t)));if(i&&c.length>0){let r=(e<=i.lineNumber&&i.lineNumber<=t?c:this.textModel.bracketPairs.getBracketPairsInRange(s.e.fromPositions(i))).filter(e=>s.e.strictContainsPosition(e.range,i));a=null===(l=(0,n.dF)(r,e=>!0))||void 0===l?void 0:l.range}let g=this.textModel.getOptions().bracketPairColorizationOptions.independentColorPoolPerBracketType,f=new d;for(let i of c){if(!i.closingBracketRange)continue;let n=a&&i.range.equalsRange(a);if(!n&&!o.includeInactive)continue;let s=f.getInlineClassName(i.nestingLevel,i.nestingLevelOfEqualBracketType,g)+(o.highlightActive&&n?" "+f.activeClassName:""),l=i.openingBracketRange.getStartPosition(),d=i.closingBracketRange.getStartPosition(),c=o.horizontalGuides===u.s6.Enabled||o.horizontalGuides===u.s6.EnabledForActive&&n;if(i.range.startLineNumber===i.range.endLineNumber){c&&h[i.range.startLineNumber-e].push(new u.UO(-1,i.openingBracketRange.getEndPosition().column,s,new u.vW(!1,d.column),-1,-1));continue}let p=this.getVisibleColumnFromPosition(d),m=this.getVisibleColumnFromPosition(i.openingBracketRange.getStartPosition()),D=Math.min(m,p,i.minVisibleColumnIndentation+1),C=!1;r.LC(this.textModel.getLineContent(i.closingBracketRange.startLineNumber))<i.closingBracketRange.startColumn-1&&(C=!0);let _=Math.max(l.lineNumber,e),E=Math.min(d.lineNumber,t),b=C?1:0;for(let t=_;t<E+b;t++)h[t-e].push(new u.UO(D,-1,s,null,t===l.lineNumber?l.column:-1,t===d.lineNumber?d.column:-1));c&&(l.lineNumber>=e&&m>D&&h[l.lineNumber-e].push(new u.UO(D,-1,s,new u.vW(!1,l.column),-1,-1)),d.lineNumber<=t&&p>D&&h[d.lineNumber-e].push(new u.UO(D,-1,s,new u.vW(!C,d.column),-1,-1)))}for(let e of h)e.sort((e,t)=>e.visibleColumn-t.visibleColumn);return h}getVisibleColumnFromPosition(e){return o.i.visibleColumnFromColumn(this.textModel.getLineContent(e.lineNumber),e.column,this.textModel.getOptions().tabSize)+1}getLinesIndentGuides(e,t){this.assertNotDisposed();let i=this.textModel.getLineCount();if(e<1||e>i)throw Error("Illegal value for startLineNumber");if(t<1||t>i)throw Error("Illegal value for endLineNumber");let n=this.textModel.getOptions(),r=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,o=!!(r&&r.offSide),s=Array(t-e+1),l=-2,a=-1,u=-2,h=-1;for(let r=e;r<=t;r++){let t=r-e,d=this._computeIndentLevel(r-1);if(d>=0){l=r-1,a=d,s[t]=Math.ceil(d/n.indentSize);continue}if(-2===l){l=-1,a=-1;for(let e=r-2;e>=0;e--){let t=this._computeIndentLevel(e);if(t>=0){l=e,a=t;break}}}if(-1!==u&&(-2===u||u<r-1)){u=-1,h=-1;for(let e=r;e<i;e++){let t=this._computeIndentLevel(e);if(t>=0){u=e,h=t;break}}}s[t]=this._getIndentLevelForWhitespaceLine(o,a,h)}return s}_getIndentLevelForWhitespaceLine(e,t,i){let n=this.textModel.getOptions();return -1===t||-1===i?0:t<i?1+Math.floor(t/n.indentSize):t===i?Math.ceil(i/n.indentSize):e?Math.ceil(i/n.indentSize):1+Math.floor(i/n.indentSize)}}class d{constructor(){this.activeClassName="indent-active"}getInlineClassName(e,t,i){return this.getInlineClassNameOfLevel(i?t:e)}getInlineClassNameOfLevel(e){return`bracket-indent-guide lvl-${e%30}`}}},69131:function(e,t,i){"use strict";i.d(t,{Lv:function(){return g},Nr:function(){return d},Xp:function(){return h},nD:function(){return m}});var n=i("57938"),r=i("61045"),o=i("63681"),s=i("31802"),l=i("83968");function a(e){let t;return(t=e[e.length-1]<65536?new Uint16Array(e.length):new Uint32Array(e.length)).set(e,0),t}class u{constructor(e,t,i,n,r){this.lineStarts=e,this.cr=t,this.lf=i,this.crlf=n,this.isBasicASCII=r}}function h(e,t=!0){let i=[0],n=1;for(let t=0,r=e.length;t<r;t++){let o=e.charCodeAt(t);13===o?t+1<r&&10===e.charCodeAt(t+1)?(i[n++]=t+2,t++):i[n++]=t+1:10===o&&(i[n++]=t+1)}return t?a(i):i}function d(e,t){e.length=0,e[0]=0;let i=1,n=0,r=0,o=0,s=!0;for(let l=0,a=t.length;l<a;l++){let u=t.charCodeAt(l);13===u?l+1<a&&10===t.charCodeAt(l+1)?(o++,e[i++]=l+2,l++):(n++,e[i++]=l+1):10===u?(r++,e[i++]=l+1):s&&9!==u&&(u<32||u>126)&&(s=!1)}let l=new u(a(e),n,r,o,s);return e.length=0,l}class c{constructor(e,t,i,n,r){this.bufferIndex=e,this.start=t,this.end=i,this.lineFeedCnt=n,this.length=r}}class g{constructor(e,t){this.buffer=e,this.lineStarts=t}}class f{constructor(e,t){this._pieces=[],this._tree=e,this._BOM=t,this._index=0,e.root!==s.Nc&&e.iterate(e.root,e=>(e!==s.Nc&&this._pieces.push(e.piece),!0))}read(){if(0===this._pieces.length)return 0===this._index?(this._index++,this._BOM):null;return this._index>this._pieces.length-1?null:0===this._index?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])}}class p{constructor(e){this._limit=e,this._cache=[]}get(e){for(let t=this._cache.length-1;t>=0;t--){let i=this._cache[t];if(i.nodeStartOffset<=e&&i.nodeStartOffset+i.node.piece.length>=e)return i}return null}get2(e){for(let t=this._cache.length-1;t>=0;t--){let i=this._cache[t];if(i.nodeStartLineNumber&&i.nodeStartLineNumber<e&&i.nodeStartLineNumber+i.node.piece.lineFeedCnt>=e)return i}return null}set(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)}validate(e){let t=!1,i=this._cache;for(let n=0;n<i.length;n++){let r=i[n];if(null===r.node.parent||r.nodeStartOffset>=e){i[n]=null,t=!0;continue}}if(t){let e=[];for(let t of i)null!==t&&e.push(t);this._cache=e}}}class m{constructor(e,t,i){this.create(e,t,i)}create(e,t,i){this._buffers=[new g("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=s.Nc,this._lineCnt=1,this._length=0,this._EOL=t,this._EOLLength=t.length,this._EOLNormalized=i;let n=null;for(let t=0,i=e.length;t<i;t++)if(e[t].buffer.length>0){!e[t].lineStarts&&(e[t].lineStarts=h(e[t].buffer));let i=new c(t+1,{line:0,column:0},{line:e[t].lineStarts.length-1,column:e[t].buffer.length-e[t].lineStarts[e[t].lineStarts.length-1]},e[t].lineStarts.length-1,e[t].buffer.length);this._buffers.push(e[t]),n=this.rbInsertRight(n,i)}this._searchCache=new p(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}normalizeEOL(e){let t=65535-Math.floor(21845),i=2*t,n="",r=0,o=[];if(this.iterate(this.root,s=>{let l=this.getNodeContent(s),a=l.length;if(r<=t||r+a<i)return n+=l,r+=a,!0;let u=n.replace(/\r\n|\r|\n/g,e);return o.push(new g(u,h(u))),n=l,r=a,!0}),r>0){let t=n.replace(/\r\n|\r|\n/g,e);o.push(new g(t,h(t)))}this.create(o,e,!0)}getEOL(){return this._EOL}setEOL(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)}createSnapshot(e){return new f(this,e)}getOffsetAt(e,t){let i=0,n=this.root;for(;n!==s.Nc;)if(n.left!==s.Nc&&n.lf_left+1>=e)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt+1>=e)return i+=n.size_left,i+(this.getAccumulatedValue(n,e-n.lf_left-2)+t-1);e-=n.lf_left+n.piece.lineFeedCnt,i+=n.size_left+n.piece.length,n=n.right}return i}getPositionAt(e){e=Math.max(0,e=Math.floor(e));let t=this.root,i=0,r=e;for(;t!==s.Nc;)if(0!==t.size_left&&t.size_left>=e)t=t.left;else if(t.size_left+t.piece.length>=e){let o=this.getIndexOf(t,e-t.size_left);if(i+=t.lf_left+o.index,0===o.index){let e=r-this.getOffsetAt(i+1,1);return new n.L(i+1,e+1)}return new n.L(i+1,o.remainder+1)}else{if(e-=t.size_left+t.piece.length,i+=t.lf_left+t.piece.lineFeedCnt,t.right===s.Nc){let t=this.getOffsetAt(i+1,1),o=r-e-t;return new n.L(i+1,o+1)}t=t.right}return new n.L(1,1)}getValueInRange(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";let i=this.nodeAt2(e.startLineNumber,e.startColumn),n=this.nodeAt2(e.endLineNumber,e.endColumn),r=this.getValueInRange2(i,n);if(t)return t===this._EOL&&this._EOLNormalized?t===this.getEOL()&&this._EOLNormalized?r:r.replace(/\r\n|\r|\n/g,t):r.replace(/\r\n|\r|\n/g,t);return r}getValueInRange2(e,t){if(e.node===t.node){let i=e.node,n=this._buffers[i.piece.bufferIndex].buffer,r=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return n.substring(r+e.remainder,r+t.remainder)}let i=e.node,n=this._buffers[i.piece.bufferIndex].buffer,r=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start),o=n.substring(r+e.remainder,r+i.piece.length);for(i=i.next();i!==s.Nc;){let e=this._buffers[i.piece.bufferIndex].buffer,n=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);if(i===t.node){o+=e.substring(n,n+t.remainder);break}o+=e.substr(n,i.piece.length);i=i.next()}return o}getLinesContent(){let e=[],t=0,i="",n=!1;return this.iterate(this.root,r=>{if(r===s.Nc)return!0;let o=r.piece,l=o.length;if(0===l)return!0;let a=this._buffers[o.bufferIndex].buffer,u=this._buffers[o.bufferIndex].lineStarts,h=o.start.line,d=o.end.line,c=u[h]+o.start.column;if(n&&(10===a.charCodeAt(c)&&(c++,l--),e[t++]=i,i="",n=!1,0===l))return!0;if(h===d)return this._EOLNormalized||13!==a.charCodeAt(c+l-1)?i+=a.substr(c,l):(n=!0,i+=a.substr(c,l-1)),!0;i+=this._EOLNormalized?a.substring(c,Math.max(c,u[h+1]-this._EOLLength)):a.substring(c,u[h+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=i;for(let n=h+1;n<d;n++)i=this._EOLNormalized?a.substring(u[n],u[n+1]-this._EOLLength):a.substring(u[n],u[n+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=i;return this._EOLNormalized||13!==a.charCodeAt(u[d]+o.end.column-1)?i=a.substr(u[d],o.end.column):(n=!0,0===o.end.column?t--:i=a.substr(u[d],o.end.column-1)),!0}),n&&(e[t++]=i,i=""),e[t++]=i,e}getLength(){return this._length}getLineCount(){return this._lineCnt}getLineContent(e){return this._lastVisitedLine.lineNumber===e?this._lastVisitedLine.value:(this._lastVisitedLine.lineNumber=e,e===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(e):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(e,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(e).replace(/(\r\n|\r|\n)$/,""),this._lastVisitedLine.value)}_getCharCode(e){if(e.remainder===e.node.piece.length){let t=e.node.next();if(!t)return 0;let i=this._buffers[t.piece.bufferIndex],n=this.offsetInBuffer(t.piece.bufferIndex,t.piece.start);return i.buffer.charCodeAt(n)}{let t=this._buffers[e.node.piece.bufferIndex],i=this.offsetInBuffer(e.node.piece.bufferIndex,e.node.piece.start)+e.remainder;return t.buffer.charCodeAt(i)}}getLineCharCode(e,t){let i=this.nodeAt2(e,t+1);return this._getCharCode(i)}getLineLength(e){if(e===this.getLineCount()){let t=this.getOffsetAt(e,1);return this.getLength()-t}return this.getOffsetAt(e+1,1)-this.getOffsetAt(e,1)-this._EOLLength}findMatchesInNode(e,t,i,n,o,s,a,u,h,d,c){let g,f,p;let m=this._buffers[e.piece.bufferIndex],D=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start),C=this.offsetInBuffer(e.piece.bufferIndex,o),_=this.offsetInBuffer(e.piece.bufferIndex,s),E={line:0,column:0};t._wordSeparators?(f=m.buffer.substring(C,_),p=e=>e+C,t.reset(0)):(f=m.buffer,p=e=>e,t.reset(C));do if(g=t.next(f)){if(p(g.index)>=_)return d;this.positionInBuffer(e,p(g.index)-D,E);let t=this.getLineFeedCnt(e.piece.bufferIndex,o,E),s=E.line===o.line?E.column-o.column+n:E.column+1,a=s+g[0].length;if(c[d++]=(0,l.iE)(new r.e(i+t,s,i+t,a),g,u),p(g.index)+g[0].length>=_)return d;if(d>=h)break}while(g);return d}findMatchesLineByLine(e,t,i,n){let r=[],o=0,s=new l.sz(t.wordSeparators,t.regex),a=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===a)return[];let u=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===u)return[];let h=this.positionInBuffer(a.node,a.remainder),d=this.positionInBuffer(u.node,u.remainder);if(a.node===u.node)return this.findMatchesInNode(a.node,s,e.startLineNumber,e.startColumn,h,d,t,i,n,o,r),r;let c=e.startLineNumber,g=a.node;for(;g!==u.node;){let l=this.getLineFeedCnt(g.piece.bufferIndex,h,g.piece.end);if(l>=1){let a=this._buffers[g.piece.bufferIndex].lineStarts,u=this.offsetInBuffer(g.piece.bufferIndex,g.piece.start),d=a[h.line+l],f=c===e.startLineNumber?e.startColumn:1;if((o=this.findMatchesInNode(g,s,c,f,h,this.positionInBuffer(g,d-u),t,i,n,o,r))>=n)return r;c+=l}let u=c===e.startLineNumber?e.startColumn-1:0;if(c===e.endLineNumber){let l=this.getLineContent(c).substring(u,e.endColumn-1);return o=this._findMatchesInLine(t,s,l,e.endLineNumber,u,o,r,i,n),r}if((o=this._findMatchesInLine(t,s,this.getLineContent(c).substr(u),c,u,o,r,i,n))>=n)return r;c++,g=(a=this.nodeAt2(c,1)).node,h=this.positionInBuffer(a.node,a.remainder)}if(c===e.endLineNumber){let l=c===e.startLineNumber?e.startColumn-1:0,a=this.getLineContent(c).substring(l,e.endColumn-1);return o=this._findMatchesInLine(t,s,a,e.endLineNumber,l,o,r,i,n),r}let f=c===e.startLineNumber?e.startColumn:1;return o=this.findMatchesInNode(u.node,s,c,f,h,d,t,i,n,o,r),r}_findMatchesInLine(e,t,i,n,s,a,u,h,d){let c;let g=e.wordSeparators;if(!h&&e.simpleSearch){let t=e.simpleSearch,h=t.length,c=i.length,f=-h;for(;-1!==(f=i.indexOf(t,f+h))&&(!(!g||(0,l.cM)(g,i,c,f,h))||(u[a++]=new o.tk(new r.e(n,f+1+s,n,f+1+h+s),null),!(a>=d))););return a}t.reset(0);do if((c=t.next(i))&&(u[a++]=(0,l.iE)(new r.e(n,c.index+1+s,n,c.index+1+c[0].length+s),c,h),a>=d))break;while(c);return a}insert(e,t,i=!1){if(this._EOLNormalized=this._EOLNormalized&&i,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==s.Nc){let{node:i,remainder:n,nodeStartOffset:r}=this.nodeAt(e),o=i.piece,s=o.bufferIndex,l=this.positionInBuffer(i,n);if(0===i.piece.bufferIndex&&o.end.line===this._lastChangeBufferPos.line&&o.end.column===this._lastChangeBufferPos.column&&r+o.length===e&&t.length<65535){this.appendToNode(i,t),this.computeBufferMetadata();return}if(r===e)this.insertContentToNodeLeft(t,i),this._searchCache.validate(e);else if(r+i.piece.length>e){let e=[],r=new c(o.bufferIndex,l,o.end,this.getLineFeedCnt(o.bufferIndex,l,o.end),this.offsetInBuffer(s,o.end)-this.offsetInBuffer(s,l));if(this.shouldCheckCRLF()&&this.endWithCR(t)&&10===this.nodeCharCodeAt(i,n)){let e={line:r.start.line+1,column:0};r=new c(r.bufferIndex,e,r.end,this.getLineFeedCnt(r.bufferIndex,e,r.end),r.length-1),t+="\n"}if(this.shouldCheckCRLF()&&this.startWithLF(t)){if(13===this.nodeCharCodeAt(i,n-1)){let r=this.positionInBuffer(i,n-1);this.deleteNodeTail(i,r),t="\r"+t,0===i.piece.length&&e.push(i)}else this.deleteNodeTail(i,l)}else this.deleteNodeTail(i,l);let a=this.createNewPieces(t);r.length>0&&this.rbInsertRight(i,r);let u=i;for(let e=0;e<a.length;e++)u=this.rbInsertRight(u,a[e]);this.deleteNodes(e)}else this.insertContentToNodeRight(t,i)}else{let e=this.createNewPieces(t),i=this.rbInsertLeft(null,e[0]);for(let t=1;t<e.length;t++)i=this.rbInsertRight(i,e[t])}this.computeBufferMetadata()}delete(e,t){if(this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",t<=0||this.root===s.Nc)return;let i=this.nodeAt(e),n=this.nodeAt(e+t),r=i.node,o=n.node;if(r===o){let o=this.positionInBuffer(r,i.remainder),l=this.positionInBuffer(r,n.remainder);if(i.nodeStartOffset===e){if(t===r.piece.length){let e=r.next();(0,s.KI)(this,r),this.validateCRLFWithPrevNode(e),this.computeBufferMetadata();return}this.deleteNodeHead(r,l),this._searchCache.validate(e),this.validateCRLFWithPrevNode(r),this.computeBufferMetadata();return}if(i.nodeStartOffset+r.piece.length===e+t){this.deleteNodeTail(r,o),this.validateCRLFWithNextNode(r),this.computeBufferMetadata();return}this.shrinkNode(r,o,l),this.computeBufferMetadata();return}let l=[],a=this.positionInBuffer(r,i.remainder);this.deleteNodeTail(r,a),this._searchCache.validate(e),0===r.piece.length&&l.push(r);let u=this.positionInBuffer(o,n.remainder);this.deleteNodeHead(o,u),0===o.piece.length&&l.push(o);let h=r.next();for(let e=h;e!==s.Nc&&e!==o;e=e.next())l.push(e);let d=0===r.piece.length?r.prev():r;this.deleteNodes(l),this.validateCRLFWithNextNode(d),this.computeBufferMetadata()}insertContentToNodeLeft(e,t){let i=[];if(this.shouldCheckCRLF()&&this.endWithCR(e)&&this.startWithLF(t)){let n=t.piece,r={line:n.start.line+1,column:0},o=new c(n.bufferIndex,r,n.end,this.getLineFeedCnt(n.bufferIndex,r,n.end),n.length-1);t.piece=o,e+="\n",(0,s.Z2)(this,t,-1,-1),0===t.piece.length&&i.push(t)}let n=this.createNewPieces(e),r=this.rbInsertLeft(t,n[n.length-1]);for(let e=n.length-2;e>=0;e--)r=this.rbInsertLeft(r,n[e]);this.validateCRLFWithPrevNode(r),this.deleteNodes(i)}insertContentToNodeRight(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+="\n");let i=this.createNewPieces(e),n=this.rbInsertRight(t,i[0]),r=n;for(let e=1;e<i.length;e++)r=this.rbInsertRight(r,i[e]);this.validateCRLFWithPrevNode(n)}positionInBuffer(e,t,i){let n=e.piece,r=e.piece.bufferIndex,o=this._buffers[r].lineStarts,s=o[n.start.line]+n.start.column+t,l=n.start.line,a=n.end.line,u=0,h=0,d=0;for(;l<=a&&(d=o[u=l+(a-l)/2|0],u!==a);){;if(h=o[u+1],s<d)a=u-1;else if(s>=h)l=u+1;else break}return i?(i.line=u,i.column=s-d,null):{line:u,column:s-d}}getLineFeedCnt(e,t,i){if(0===i.column)return i.line-t.line;let n=this._buffers[e].lineStarts;if(i.line===n.length-1)return i.line-t.line;let r=n[i.line+1],o=n[i.line]+i.column;return r>o+1?i.line-t.line:13===this._buffers[e].buffer.charCodeAt(o-1)?i.line-t.line+1:i.line-t.line}offsetInBuffer(e,t){return this._buffers[e].lineStarts[t.line]+t.column}deleteNodes(e){for(let t=0;t<e.length;t++)(0,s.KI)(this,e[t])}createNewPieces(e){if(e.length>65535){let t=[];for(;e.length>65535;){let i;let n=e.charCodeAt(65534);13===n||n>=55296&&n<=56319?(i=e.substring(0,65534),e=e.substring(65534)):(i=e.substring(0,65535),e=e.substring(65535));let r=h(i);t.push(new c(this._buffers.length,{line:0,column:0},{line:r.length-1,column:i.length-r[r.length-1]},r.length-1,i.length)),this._buffers.push(new g(i,r))}let i=h(e);return t.push(new c(this._buffers.length,{line:0,column:0},{line:i.length-1,column:e.length-i[i.length-1]},i.length-1,e.length)),this._buffers.push(new g(e,i)),t}let t=this._buffers[0].buffer.length,i=h(e,!1),n=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===t&&0!==t&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},n=this._lastChangeBufferPos;for(let e=0;e<i.length;e++)i[e]+=t+1;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(i.slice(1)),this._buffers[0].buffer+="_"+e,t+=1}else{if(0!==t)for(let e=0;e<i.length;e++)i[e]+=t;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(i.slice(1)),this._buffers[0].buffer+=e}let r=this._buffers[0].buffer.length,o=this._buffers[0].lineStarts.length-1,s=r-this._buffers[0].lineStarts[o],l={line:o,column:s},a=new c(0,n,l,this.getLineFeedCnt(0,n,l),r-t);return this._lastChangeBufferPos=l,[a]}getLineRawContent(e,t=0){let i=this.root,n="",r=this._searchCache.get2(e);if(r){i=r.node;let o=this.getAccumulatedValue(i,e-r.nodeStartLineNumber-1),s=this._buffers[i.piece.bufferIndex].buffer,l=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);if(r.nodeStartLineNumber+i.piece.lineFeedCnt===e)n=s.substring(l+o,l+i.piece.length);else{let n=this.getAccumulatedValue(i,e-r.nodeStartLineNumber);return s.substring(l+o,l+n-t)}}else{let r=0,o=e;for(;i!==s.Nc;)if(i.left!==s.Nc&&i.lf_left>=e-1)i=i.left;else if(i.lf_left+i.piece.lineFeedCnt>e-1){let n=this.getAccumulatedValue(i,e-i.lf_left-2),s=this.getAccumulatedValue(i,e-i.lf_left-1),l=this._buffers[i.piece.bufferIndex].buffer,a=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return r+=i.size_left,this._searchCache.set({node:i,nodeStartOffset:r,nodeStartLineNumber:o-(e-1-i.lf_left)}),l.substring(a+n,a+s-t)}else if(i.lf_left+i.piece.lineFeedCnt===e-1){let t=this.getAccumulatedValue(i,e-i.lf_left-2),r=this._buffers[i.piece.bufferIndex].buffer,o=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);n=r.substring(o+t,o+i.piece.length);break}else e-=i.lf_left+i.piece.lineFeedCnt,r+=i.size_left+i.piece.length,i=i.right}for(i=i.next();i!==s.Nc;){let e=this._buffers[i.piece.bufferIndex].buffer;if(i.piece.lineFeedCnt>0){let r=this.getAccumulatedValue(i,0),o=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);n+=e.substring(o,o+r-t);break}{let t=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);n+=e.substr(t,i.piece.length)}i=i.next()}return n}computeBufferMetadata(){let e=this.root,t=1,i=0;for(;e!==s.Nc;)t+=e.lf_left+e.piece.lineFeedCnt,i+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=i,this._searchCache.validate(this._length)}getIndexOf(e,t){let i=e.piece,n=this.positionInBuffer(e,t),r=n.line-i.start.line;if(this.offsetInBuffer(i.bufferIndex,i.end)-this.offsetInBuffer(i.bufferIndex,i.start)===t){let t=this.getLineFeedCnt(e.piece.bufferIndex,i.start,n);if(t!==r)return{index:t,remainder:0}}return{index:r,remainder:n.column}}getAccumulatedValue(e,t){if(t<0)return 0;let i=e.piece,n=this._buffers[i.bufferIndex].lineStarts,r=i.start.line+t+1;return r>i.end.line?n[i.end.line]+i.end.column-n[i.start.line]-i.start.column:n[r]-n[i.start.line]-i.start.column}deleteNodeTail(e,t){let i=e.piece,n=i.lineFeedCnt,r=this.offsetInBuffer(i.bufferIndex,i.end),o=this.offsetInBuffer(i.bufferIndex,t),l=this.getLineFeedCnt(i.bufferIndex,i.start,t),a=l-n,u=o-r,h=i.length+u;e.piece=new c(i.bufferIndex,i.start,t,l,h),(0,s.Z2)(this,e,u,a)}deleteNodeHead(e,t){let i=e.piece,n=i.lineFeedCnt,r=this.offsetInBuffer(i.bufferIndex,i.start),o=this.getLineFeedCnt(i.bufferIndex,t,i.end),l=this.offsetInBuffer(i.bufferIndex,t),a=o-n,u=r-l,h=i.length+u;e.piece=new c(i.bufferIndex,t,i.end,o,h),(0,s.Z2)(this,e,u,a)}shrinkNode(e,t,i){let n=e.piece,r=n.start,o=n.end,l=n.length,a=n.lineFeedCnt,u=this.getLineFeedCnt(n.bufferIndex,n.start,t),h=this.offsetInBuffer(n.bufferIndex,t)-this.offsetInBuffer(n.bufferIndex,r);e.piece=new c(n.bufferIndex,n.start,t,u,h),(0,s.Z2)(this,e,h-l,u-a);let d=new c(n.bufferIndex,i,o,this.getLineFeedCnt(n.bufferIndex,i,o),this.offsetInBuffer(n.bufferIndex,o)-this.offsetInBuffer(n.bufferIndex,i)),g=this.rbInsertRight(e,d);this.validateCRLFWithPrevNode(g)}appendToNode(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+="\n");let i=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),n=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;let r=h(t,!1);for(let e=0;e<r.length;e++)r[e]+=n;if(i){let e=this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-2];this._buffers[0].lineStarts.pop(),this._lastChangeBufferPos={line:this._lastChangeBufferPos.line-1,column:n-e}}this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(r.slice(1));let o=this._buffers[0].lineStarts.length-1,l=this._buffers[0].buffer.length-this._buffers[0].lineStarts[o],a={line:o,column:l},u=e.piece.length+t.length,d=e.piece.lineFeedCnt,g=this.getLineFeedCnt(0,e.piece.start,a),f=g-d;e.piece=new c(e.piece.bufferIndex,e.piece.start,a,g,u),this._lastChangeBufferPos=a,(0,s.Z2)(this,e,t.length,f)}nodeAt(e){let t=this.root,i=this._searchCache.get(e);if(i)return{node:i.node,nodeStartOffset:i.nodeStartOffset,remainder:e-i.nodeStartOffset};let n=0;for(;t!==s.Nc;)if(t.size_left>e)t=t.left;else if(t.size_left+t.piece.length>=e){n+=t.size_left;let i={node:t,remainder:e-t.size_left,nodeStartOffset:n};return this._searchCache.set(i),i}else e-=t.size_left+t.piece.length,n+=t.size_left+t.piece.length,t=t.right;return null}nodeAt2(e,t){let i=this.root,n=0;for(;i!==s.Nc;)if(i.left!==s.Nc&&i.lf_left>=e-1)i=i.left;else if(i.lf_left+i.piece.lineFeedCnt>e-1){let r=this.getAccumulatedValue(i,e-i.lf_left-2),o=this.getAccumulatedValue(i,e-i.lf_left-1);return n+=i.size_left,{node:i,remainder:Math.min(r+t-1,o),nodeStartOffset:n}}else if(i.lf_left+i.piece.lineFeedCnt===e-1){let r=this.getAccumulatedValue(i,e-i.lf_left-2);if(r+t-1<=i.piece.length)return{node:i,remainder:r+t-1,nodeStartOffset:n};t-=i.piece.length-r;break}else e-=i.lf_left+i.piece.lineFeedCnt,n+=i.size_left+i.piece.length,i=i.right;for(i=i.next();i!==s.Nc;){if(i.piece.lineFeedCnt>0){let e=this.getAccumulatedValue(i,0),n=this.offsetOfNode(i);return{node:i,remainder:Math.min(t-1,e),nodeStartOffset:n}}if(i.piece.length>=t-1){let e=this.offsetOfNode(i);return{node:i,remainder:t-1,nodeStartOffset:e}}else t-=i.piece.length;i=i.next()}return null}nodeCharCodeAt(e,t){if(e.piece.lineFeedCnt<1)return -1;let i=this._buffers[e.piece.bufferIndex],n=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return i.buffer.charCodeAt(n)}offsetOfNode(e){if(!e)return 0;let t=e.size_left;for(;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t}shouldCheckCRLF(){return!(this._EOLNormalized&&"\n"===this._EOL)}startWithLF(e){if("string"==typeof e)return 10===e.charCodeAt(0);if(e===s.Nc||0===e.piece.lineFeedCnt)return!1;let t=e.piece,i=this._buffers[t.bufferIndex].lineStarts,n=t.start.line,r=i[n]+t.start.column;return n!==i.length-1&&!(i[n+1]>r+1)&&10===this._buffers[t.bufferIndex].buffer.charCodeAt(r)}endWithCR(e){return"string"==typeof e?13===e.charCodeAt(e.length-1):e!==s.Nc&&0!==e.piece.lineFeedCnt&&13===this.nodeCharCodeAt(e,e.piece.length-1)}validateCRLFWithPrevNode(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){let t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}}validateCRLFWithNextNode(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){let t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}}fixCRLF(e,t){let i;let n=[],r=this._buffers[e.piece.bufferIndex].lineStarts;i=0===e.piece.end.column?{line:e.piece.end.line-1,column:r[e.piece.end.line]-r[e.piece.end.line-1]-1}:{line:e.piece.end.line,column:e.piece.end.column-1};let o=e.piece.length-1,l=e.piece.lineFeedCnt-1;e.piece=new c(e.piece.bufferIndex,e.piece.start,i,l,o),(0,s.Z2)(this,e,-1,-1),0===e.piece.length&&n.push(e);let a={line:t.piece.start.line+1,column:0},u=t.piece.length-1,h=this.getLineFeedCnt(t.piece.bufferIndex,a,t.piece.end);t.piece=new c(t.piece.bufferIndex,a,t.piece.end,h,u),(0,s.Z2)(this,t,-1,-1),0===t.piece.length&&n.push(t);let d=this.createNewPieces("\r\n");this.rbInsertRight(e,d[0]);for(let e=0;e<n.length;e++)(0,s.KI)(this,n[e])}adjustCarriageReturnFromNext(e,t){if(this.shouldCheckCRLF()&&this.endWithCR(e)){let i=t.next();if(this.startWithLF(i)){if(e+="\n",1===i.piece.length)(0,s.KI)(this,i);else{let e=i.piece,t={line:e.start.line+1,column:0},n=e.length-1,r=this.getLineFeedCnt(e.bufferIndex,t,e.end);i.piece=new c(e.bufferIndex,t,e.end,r,n),(0,s.Z2)(this,i,-1,-1)}return!0}}return!1}iterate(e,t){if(e===s.Nc)return t(s.Nc);let i=this.iterate(e.left,t);return i?t(e)&&this.iterate(e.right,t):i}getNodeContent(e){if(e===s.Nc)return"";let t=this._buffers[e.piece.bufferIndex],i=e.piece,n=this.offsetInBuffer(i.bufferIndex,i.start),r=this.offsetInBuffer(i.bufferIndex,i.end);return t.buffer.substring(n,r)}getPieceContent(e){let t=this._buffers[e.bufferIndex],i=this.offsetInBuffer(e.bufferIndex,e.start),n=this.offsetInBuffer(e.bufferIndex,e.end);return t.buffer.substring(i,n)}rbInsertRight(e,t){let i=new s.OF(t,1);if(i.left=s.Nc,i.right=s.Nc,i.parent=s.Nc,i.size_left=0,i.lf_left=0,this.root===s.Nc)this.root=i,i.color=0;else if(e.right===s.Nc)e.right=i,i.parent=e;else{let t=(0,s.xq)(e.right);t.left=i,i.parent=t}return(0,s.h4)(this,i),i}rbInsertLeft(e,t){let i=new s.OF(t,1);if(i.left=s.Nc,i.right=s.Nc,i.parent=s.Nc,i.size_left=0,i.lf_left=0,this.root===s.Nc)this.root=i,i.color=0;else if(e.left===s.Nc)e.left=i,i.parent=e;else{let t=(0,s.Q$)(e.left);t.right=i,i.parent=t}return(0,s.h4)(this,i),i}}},21401:function(e,t,i){"use strict";i.d(t,{O:function(){return g}});var n=i("862"),r=i("16904"),o=i("88980"),s=i("38505"),l=i("57938"),a=i("61045"),u=i("61065"),h=i("74854"),d=i("4737");class c{static chord(e,t){return(0,o.gx)(e,t)}}function g(){return{editor:void 0,languages:void 0,CancellationTokenSource:n.A,Emitter:r.Q5,KeyCode:d.VD,KeyMod:c,Position:l.L,Range:a.e,Selection:u.Y,SelectionDirection:d.a$,MarkerSeverity:d.ZL,MarkerTag:d.eB,Uri:s.o,Token:h.WU}}c.CtrlCmd=2048,c.Shift=1024,c.Alt=512,c.WinCtrl=256},144:function(e,t,i){"use strict";i.d(t,{A:function(){return g}});var n,r,o,s=i("45731"),l=i("34289"),a=i("68308"),u=i("72243"),h=i("6301"),d=i("53881"),c=i("80204");let g=(0,h.yh)("ILanguageFeatureDebounceService");!function(e){let t=new WeakMap,i=0;e.of=function(e){let n=t.get(e);return void 0===n&&(n=++i,t.set(e,n)),n}}(o||(o={}));class f{constructor(e,t,i,n,r,o){this._logService=e,this._name=t,this._registry=i,this._default=n,this._min=r,this._max=o,this._cache=new l.z6(50,.7)}_key(e){return e.id+this._registry.all(e).reduce((e,t)=>(0,s.SP)(o.of(t),e),0)}get(e){let t=this._key(e),i=this._cache.get(t);return i?(0,a.uZ)(i.value,this._min,this._max):this.default()}update(e,t){let i=this._key(e),n=this._cache.get(i);!n&&(n=new a.N(6),this._cache.set(i,n));let r=(0,a.uZ)(n.update(t),this._min,this._max);return!(0,c.xn)(e.uri,"output")&&this._logService.trace(`[DEBOUNCE: ${this._name}] for ${e.uri.toString()} is ${r}ms`),r}_overall(){let e=new a.nM;for(let[,t]of this._cache)e.update(t.value);return e.value}default(){let e=0|this._overall()||this._default;return(0,a.uZ)(e,this._min,this._max)}}let p=class{constructor(e){this._logService=e,this._data=new Map}for(e,t,i){var n,r,s;let l=null!==(n=null==i?void 0:i.min)&&void 0!==n?n:50,a=null!==(r=null==i?void 0:i.max)&&void 0!==r?r:Math.pow(l,2),u=null!==(s=null==i?void 0:i.key)&&void 0!==s?s:void 0,h=`${o.of(e)},${l}${u?","+u:""}`,d=this._data.get(h);return!d&&(d=new f(this._logService,t,e,0|this._overallAverage()||1.5*l,l,a),this._data.set(h,d)),d}_overallAverage(){let e=new a.nM;for(let t of this._data.values())e.update(t.default());return e.value}};p=function(e,t,i,n){var r,o=arguments.length,s=o<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 l=e.length-1;l>=0;l--)(r=e[l])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s}([(n=0,r=d.VZ,function(e,t){r(e,t,0)})],p),(0,u.z)(g,p,!0)},27548:function(e,t,i){"use strict";i.d(t,{N:function(){return r}});var n=i("70241");class r{constructor(){this._tokens=[]}add(e,t){if(this._tokens.length>0){let i=this._tokens[this._tokens.length-1];if(i.endLineNumber+1===e){i.appendLineTokens(t);return}}this._tokens.push(new n.s(e,[t]))}finalize(){return this._tokens}}},69555:function(e,t,i){"use strict";var n=i("67518"),r=i("61111"),o=i("88980"),s=i("19527"),l=i("66763"),a=i("44138");i("62648");var u=i("60550"),h=i("59923"),d=i("76617"),c=i("74854"),g=i("62785"),f=i("91929"),p=i("29190"),m=i("44298"),D=i("8339"),C=i("49436"),_=i("97085"),E=i("39703"),b=i("74719"),A=i("65761"),k=i("63827"),v=i("97669"),L=i("96608"),S=i("144"),N=i("30039"),I=i("78540"),F=function(e,t){return function(i,n){t(i,n,e)}};let R=new C.uy("foldingEnabled",!1),T=class e extends s.JT{constructor(e,t,i,n,r,o){super(),this.contextKeyService=t,this.languageConfigurationService=i,this.languageFeaturesService=o,this._tooManyRegionsNotified=!1,this.localToDispose=this._register(new s.SL),this.editor=e;let l=this.editor.getOptions();this._isEnabled=l.get(39),this._useFoldingProviders="indentation"!==l.get(40),this._unfoldOnClickAfterEndOfLine=l.get(44),this._restoringViewState=!1,this._currentModelHasFoldedImports=!1,this._foldingImportsByDefault=l.get(42),this._maxFoldingRegions=l.get(43),this.updateDebounceInfo=r.for(o.foldingRangeProvider,"Folding",{min:200}),this.foldingModel=null,this.hiddenRangeModel=null,this.rangeProvider=null,this.foldingRegionPromise=null,this.foldingModelPromise=null,this.updateScheduler=null,this.cursorChangedScheduler=null,this.mouseDownInfo=null,this.foldingDecorationProvider=new b.fF(e),this.foldingDecorationProvider.showFoldingControls=l.get(101),this.foldingDecorationProvider.showFoldingHighlights=l.get(41),this.foldingEnabled=R.bindTo(this.contextKeyService),this.foldingEnabled.set(this._isEnabled),this._notifyTooManyRegions=e=>{!this._tooManyRegionsNotified&&(n.notify({severity:L.Z.Warning,sticky:!0,message:D.NC("maximum fold ranges","The number of foldable regions is limited to a maximum of {0}. Increase configuration option ['Folding Maximum Regions'](command:workbench.action.openSettings?[\"editor.foldingMaximumRegions\"]) to enable more.",e)}),this._tooManyRegionsNotified=!0)},this._register(this.editor.onDidChangeModel(()=>this.onModelChanged())),this._register(this.editor.onDidChangeConfiguration(e=>{if(e.hasChanged(39)&&(this._isEnabled=this.editor.getOptions().get(39),this.foldingEnabled.set(this._isEnabled),this.onModelChanged()),e.hasChanged(43)&&(this._maxFoldingRegions=this.editor.getOptions().get(43),this._tooManyRegionsNotified=!1,this.onModelChanged()),e.hasChanged(101)||e.hasChanged(41)){let e=this.editor.getOptions();this.foldingDecorationProvider.showFoldingControls=e.get(101),this.foldingDecorationProvider.showFoldingHighlights=e.get(41),this.triggerFoldingModelChanged()}e.hasChanged(40)&&(this._useFoldingProviders="indentation"!==this.editor.getOptions().get(40),this.onFoldingStrategyChanged()),e.hasChanged(44)&&(this._unfoldOnClickAfterEndOfLine=this.editor.getOptions().get(44)),e.hasChanged(42)&&(this._foldingImportsByDefault=this.editor.getOptions().get(42))})),this.onModelChanged()}static get(t){return t.getContribution(e.ID)}saveViewState(){let e=this.editor.getModel();if(!e||!this._isEnabled||e.isTooLargeForTokenization())return{};if(this.foldingModel){let t=this.foldingModel.getMemento(),i=this.rangeProvider?this.rangeProvider.id:void 0;return{collapsedRegions:t,lineCount:e.getLineCount(),provider:i,foldedImports:this._currentModelHasFoldedImports}}}restoreViewState(e){let t=this.editor.getModel();if(!(!t||!this._isEnabled||t.isTooLargeForTokenization())&&!!this.hiddenRangeModel){if(e&&e.lineCount===t.getLineCount()&&(this._currentModelHasFoldedImports=!!e.foldedImports,e.collapsedRegions&&e.collapsedRegions.length>0&&this.foldingModel)){this._restoringViewState=!0;try{this.foldingModel.applyMemento(e.collapsedRegions)}finally{this._restoringViewState=!1}}}}onModelChanged(){this.localToDispose.clear();let e=this.editor.getModel();!(!this._isEnabled||!e||e.isTooLargeForTokenization())&&(this._currentModelHasFoldedImports=!1,this.foldingModel=new f.av(e,this.foldingDecorationProvider),this.localToDispose.add(this.foldingModel),this.hiddenRangeModel=new p.C(this.foldingModel),this.localToDispose.add(this.hiddenRangeModel),this.localToDispose.add(this.hiddenRangeModel.onDidChange(e=>this.onHiddenRangesChanges(e))),this.updateScheduler=new n.vp(this.updateDebounceInfo.get(e)),this.cursorChangedScheduler=new n.pY(()=>this.revealCursor(),200),this.localToDispose.add(this.cursorChangedScheduler),this.localToDispose.add(this.languageFeaturesService.foldingRangeProvider.onDidChange(()=>this.onFoldingStrategyChanged())),this.localToDispose.add(this.editor.onDidChangeModelLanguageConfiguration(()=>this.onFoldingStrategyChanged())),this.localToDispose.add(this.editor.onDidChangeModelContent(e=>this.onDidChangeModelContent(e))),this.localToDispose.add(this.editor.onDidChangeCursorPosition(()=>this.onCursorPositionChanged())),this.localToDispose.add(this.editor.onMouseDown(e=>this.onEditorMouseDown(e))),this.localToDispose.add(this.editor.onMouseUp(e=>this.onEditorMouseUp(e))),this.localToDispose.add({dispose:()=>{this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),this.updateScheduler&&this.updateScheduler.cancel(),this.updateScheduler=null,this.foldingModel=null,this.foldingModelPromise=null,this.hiddenRangeModel=null,this.cursorChangedScheduler=null,this.rangeProvider&&this.rangeProvider.dispose(),this.rangeProvider=null}}),this.triggerFoldingModelChanged())}onFoldingStrategyChanged(){this.rangeProvider&&this.rangeProvider.dispose(),this.rangeProvider=null,this.triggerFoldingModelChanged()}getRangeProvider(e){if(this.rangeProvider)return this.rangeProvider;if(this.rangeProvider=new m.aI(e,this.languageConfigurationService,this._maxFoldingRegions),this._useFoldingProviders&&this.foldingModel){let t=this.languageFeaturesService.foldingRangeProvider.ordered(this.foldingModel.textModel);t.length>0&&(this.rangeProvider=new k.ex(e,t,()=>this.triggerFoldingModelChanged(),this._maxFoldingRegions))}return this.rangeProvider}getFoldingModel(){return this.foldingModelPromise}onDidChangeModelContent(e){var t;null===(t=this.hiddenRangeModel)||void 0===t||t.notifyChangeModelContent(e),this.triggerFoldingModelChanged()}triggerFoldingModelChanged(){this.updateScheduler&&(this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),this.foldingModelPromise=this.updateScheduler.trigger(()=>{let e=this.foldingModel;if(!e)return null;let t=new N.G(!0),i=this.getRangeProvider(e.textModel),r=this.foldingRegionPromise=(0,n.PG)(e=>i.compute(e,this._notifyTooManyRegions));return r.then(i=>{if(i&&r===this.foldingRegionPromise){let n;if(this._foldingImportsByDefault&&!this._currentModelHasFoldedImports){let e=i.setCollapsedAllOfType(c.AD.Imports.value,!0);e&&(n=u.Z.capture(this.editor),this._currentModelHasFoldedImports=e)}let r=this.editor.getSelections(),o=r?r.map(e=>e.startLineNumber):[];e.update(i,o),null==n||n.restore(this.editor);let s=this.updateDebounceInfo.update(e.textModel,t.elapsed());this.updateScheduler&&(this.updateScheduler.defaultDelay=s)}return e})}).then(void 0,e=>((0,r.dL)(e),null)))}onHiddenRangesChanges(e){if(this.hiddenRangeModel&&e.length&&!this._restoringViewState){let e=this.editor.getSelections();e&&this.hiddenRangeModel.adjustSelections(e)&&this.editor.setSelections(e)}this.editor.setHiddenAreas(e)}onCursorPositionChanged(){this.hiddenRangeModel&&this.hiddenRangeModel.hasRanges()&&this.cursorChangedScheduler.schedule()}revealCursor(){let e=this.getFoldingModel();e&&e.then(e=>{if(e){let t=this.editor.getSelections();if(t&&t.length>0){let i=[];for(let n of t){let t=n.selectionStartLineNumber;this.hiddenRangeModel&&this.hiddenRangeModel.isHidden(t)&&i.push(...e.getAllRegionsAtLine(t,e=>e.isCollapsed&&t>e.startLineNumber))}i.length&&(e.toggleCollapseState(i),this.reveal(t[0].getPosition()))}}}).then(void 0,r.dL)}onEditorMouseDown(e){if(this.mouseDownInfo=null,!this.hiddenRangeModel||!e.target||!e.target.range||!e.event.leftButton&&!e.event.middleButton)return;let t=e.target.range,i=!1;switch(e.target.type){case 4:{let t=e.target.detail,n=e.target.element.offsetLeft;if(t.offsetX-n<5)return;i=!0;break}case 7:if(this._unfoldOnClickAfterEndOfLine&&this.hiddenRangeModel.hasRanges()&&!e.target.detail.isAfterLines)break;return;case 6:if(this.hiddenRangeModel.hasRanges()){let e=this.editor.getModel();if(e&&t.startColumn===e.getLineMaxColumn(t.startLineNumber))break}return;default:return}this.mouseDownInfo={lineNumber:t.startLineNumber,iconClicked:i}}onEditorMouseUp(e){let t=this.foldingModel;if(!t||!this.mouseDownInfo||!e.target)return;let i=this.mouseDownInfo.lineNumber,n=this.mouseDownInfo.iconClicked,r=e.target.range;if(!r||r.startLineNumber!==i)return;if(n){if(4!==e.target.type)return}else{let e=this.editor.getModel();if(!e||r.startColumn!==e.getLineMaxColumn(i))return}let o=t.getRegionAtLine(i);if(o&&o.startLineNumber===i){let r=o.isCollapsed;if(n||r){let n=e.event.altKey,s=[];if(n){let e=t.getRegionsInside(null,e=>!e.containedBy(o)&&!o.containedBy(e));for(let t of e)t.isCollapsed&&s.push(t);0===s.length&&(s=e)}else{let i=e.event.middleButton||e.event.shiftKey;if(i)for(let e of t.getRegionsInside(o))e.isCollapsed===r&&s.push(e);(r||!i||0===s.length)&&s.push(o)}t.toggleCollapseState(s),this.reveal({lineNumber:i,column:1})}}}reveal(e){this.editor.revealPositionInCenterIfOutsideViewport(e,0)}};T.ID="editor.contrib.folding",T=function(e,t,i,n){var r,o=arguments.length,s=o<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 l=e.length-1;l>=0;l--)(r=e[l])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s}([F(1,C.i6),F(2,g.c_),F(3,v.lT),F(4,S.A),F(5,I.p)],T);class x extends h.R6{runEditorCommand(e,t,i){let n=e.get(g.c_),r=T.get(t);if(!r)return;let o=r.getFoldingModel();if(o)return this.reportTelemetry(e,t),o.then(e=>{if(e){this.invoke(r,e,t,i,n);let o=t.getSelection();o&&r.reveal(o.getStartPosition())}})}getSelectedLines(e){let t=e.getSelections();return t?t.map(e=>e.startLineNumber):[]}getLineNumbers(e,t){return e&&e.selectionLines?e.selectionLines.map(e=>e+1):this.getSelectedLines(t)}run(e,t){}}function w(e){if(!a.o8(e)){if(!a.Kn(e))return!1;if(!a.o8(e.levels)&&!a.hj(e.levels)||!a.o8(e.direction)&&!a.HD(e.direction)||!a.o8(e.selectionLines)&&(!a.kJ(e.selectionLines)||!e.selectionLines.every(a.hj)))return!1}return!0}class B extends x{getFoldingLevel(){return parseInt(this.id.substr(B.ID_PREFIX.length))}invoke(e,t,i){(0,f.Ln)(t,this.getFoldingLevel(),!0,this.getSelectedLines(i))}}B.ID_PREFIX="editor.foldLevel",B.ID=e=>B.ID_PREFIX+e;(0,h._K)(T.ID,T),(0,h.Qr)(class e extends x{constructor(){super({id:"editor.unfold",label:D.NC("unfoldAction.label","Unfold"),alias:"Unfold",precondition:R,kbOpts:{kbExpr:d.u.editorTextFocus,primary:3161,mac:{primary:2649},weight:100},description:{description:"Unfold the content in the editor",args:[{name:"Unfold editor argument",description:`Property-value pairs that can be passed through this argument:
|
|
2
|
-
* 'levels': Number of levels to unfold. If not set, defaults to 1.
|
|
3
|
-
* 'direction': If 'up', unfold given number of levels up otherwise unfolds down.
|
|
4
|
-
* 'selectionLines': Array of the start lines (0-based) of the editor selections to apply the unfold action to. If not set, the active selection(s) will be used.
|
|
5
|
-
`,constraint:w,schema:{type:"object",properties:{levels:{type:"number",default:1},direction:{type:"string",enum:["up","down"],default:"down"},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(e,t,i,n){let r=n&&n.levels||1,o=this.getLineNumbers(n,i);n&&"up"===n.direction?(0,f.gU)(t,!1,r,o):(0,f.R$)(t,!1,r,o)}}),(0,h.Qr)(class e extends x{constructor(){super({id:"editor.unfoldRecursively",label:D.NC("unFoldRecursivelyAction.label","Unfold Recursively"),alias:"Unfold Recursively",precondition:R,kbOpts:{kbExpr:d.u.editorTextFocus,primary:(0,o.gx)(2089,2137),weight:100}})}invoke(e,t,i,n){(0,f.R$)(t,!1,Number.MAX_VALUE,this.getSelectedLines(i))}}),(0,h.Qr)(class e extends x{constructor(){super({id:"editor.fold",label:D.NC("foldAction.label","Fold"),alias:"Fold",precondition:R,kbOpts:{kbExpr:d.u.editorTextFocus,primary:3159,mac:{primary:2647},weight:100},description:{description:"Fold the content in the editor",args:[{name:"Fold editor argument",description:`Property-value pairs that can be passed through this argument:
|
|
6
|
-
* 'levels': Number of levels to fold.
|
|
7
|
-
* 'direction': If 'up', folds given number of levels up otherwise folds down.
|
|
8
|
-
* 'selectionLines': Array of the start lines (0-based) of the editor selections to apply the fold action to. If not set, the active selection(s) will be used.
|
|
9
|
-
If no levels or direction is set, folds the region at the locations or if already collapsed, the first uncollapsed parent instead.
|
|
10
|
-
`,constraint:w,schema:{type:"object",properties:{levels:{type:"number"},direction:{type:"string",enum:["up","down"]},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(e,t,i,n){let r=this.getLineNumbers(n,i),o=n&&n.levels,s=n&&n.direction;"number"!=typeof o&&"string"!=typeof s?(0,f.HX)(t,!0,r):"up"===s?(0,f.gU)(t,!0,o||1,r):(0,f.R$)(t,!0,o||1,r)}}),(0,h.Qr)(class e extends x{constructor(){super({id:"editor.foldRecursively",label:D.NC("foldRecursivelyAction.label","Fold Recursively"),alias:"Fold Recursively",precondition:R,kbOpts:{kbExpr:d.u.editorTextFocus,primary:(0,o.gx)(2089,2135),weight:100}})}invoke(e,t,i){let n=this.getSelectedLines(i);(0,f.R$)(t,!0,Number.MAX_VALUE,n)}}),(0,h.Qr)(class e extends x{constructor(){super({id:"editor.foldAll",label:D.NC("foldAllAction.label","Fold All"),alias:"Fold All",precondition:R,kbOpts:{kbExpr:d.u.editorTextFocus,primary:(0,o.gx)(2089,2069),weight:100}})}invoke(e,t,i){(0,f.R$)(t,!0)}}),(0,h.Qr)(class e extends x{constructor(){super({id:"editor.unfoldAll",label:D.NC("unfoldAllAction.label","Unfold All"),alias:"Unfold All",precondition:R,kbOpts:{kbExpr:d.u.editorTextFocus,primary:(0,o.gx)(2089,2088),weight:100}})}invoke(e,t,i){(0,f.R$)(t,!1)}}),(0,h.Qr)(class e extends x{constructor(){super({id:"editor.foldAllBlockComments",label:D.NC("foldAllBlockComments.label","Fold All Block Comments"),alias:"Fold All Block Comments",precondition:R,kbOpts:{kbExpr:d.u.editorTextFocus,primary:(0,o.gx)(2089,2133),weight:100}})}invoke(e,t,i,n,r){if(t.regions.hasTypes())(0,f.MW)(t,c.AD.Comment.value,!0);else{let e=i.getModel();if(!e)return;let n=r.getLanguageConfiguration(e.getLanguageId()).comments;if(n&&n.blockCommentStartToken){let e=RegExp("^\\s*"+(0,l.ec)(n.blockCommentStartToken));(0,f.DW)(t,e,!0)}}}}),(0,h.Qr)(class e extends x{constructor(){super({id:"editor.foldAllMarkerRegions",label:D.NC("foldAllMarkerRegions.label","Fold All Regions"),alias:"Fold All Regions",precondition:R,kbOpts:{kbExpr:d.u.editorTextFocus,primary:(0,o.gx)(2089,2077),weight:100}})}invoke(e,t,i,n,r){if(t.regions.hasTypes())(0,f.MW)(t,c.AD.Region.value,!0);else{let e=i.getModel();if(!e)return;let n=r.getLanguageConfiguration(e.getLanguageId()).foldingRules;if(n&&n.markers&&n.markers.start){let e=new RegExp(n.markers.start);(0,f.DW)(t,e,!0)}}}}),(0,h.Qr)(class e extends x{constructor(){super({id:"editor.unfoldAllMarkerRegions",label:D.NC("unfoldAllMarkerRegions.label","Unfold All Regions"),alias:"Unfold All Regions",precondition:R,kbOpts:{kbExpr:d.u.editorTextFocus,primary:(0,o.gx)(2089,2078),weight:100}})}invoke(e,t,i,n,r){if(t.regions.hasTypes())(0,f.MW)(t,c.AD.Region.value,!1);else{let e=i.getModel();if(!e)return;let n=r.getLanguageConfiguration(e.getLanguageId()).foldingRules;if(n&&n.markers&&n.markers.start){let e=new RegExp(n.markers.start);(0,f.DW)(t,e,!1)}}}}),(0,h.Qr)(class e extends x{constructor(){super({id:"editor.foldAllExcept",label:D.NC("foldAllExcept.label","Fold All Regions Except Selected"),alias:"Fold All Regions Except Selected",precondition:R,kbOpts:{kbExpr:d.u.editorTextFocus,primary:(0,o.gx)(2089,2131),weight:100}})}invoke(e,t,i){let n=this.getSelectedLines(i);(0,f.YT)(t,!0,n)}}),(0,h.Qr)(class e extends x{constructor(){super({id:"editor.unfoldAllExcept",label:D.NC("unfoldAllExcept.label","Unfold All Regions Except Selected"),alias:"Unfold All Regions Except Selected",precondition:R,kbOpts:{kbExpr:d.u.editorTextFocus,primary:(0,o.gx)(2089,2129),weight:100}})}invoke(e,t,i){let n=this.getSelectedLines(i);(0,f.YT)(t,!1,n)}}),(0,h.Qr)(class e extends x{constructor(){super({id:"editor.toggleFold",label:D.NC("toggleFoldAction.label","Toggle Fold"),alias:"Toggle Fold",precondition:R,kbOpts:{kbExpr:d.u.editorTextFocus,primary:(0,o.gx)(2089,2090),weight:100}})}invoke(e,t,i){let n=this.getSelectedLines(i);(0,f.d8)(t,1,n)}}),(0,h.Qr)(class e extends x{constructor(){super({id:"editor.gotoParentFold",label:D.NC("gotoParentFold.label","Go to Parent Fold"),alias:"Go to Parent Fold",precondition:R,kbOpts:{kbExpr:d.u.editorTextFocus,weight:100}})}invoke(e,t,i){let n=this.getSelectedLines(i);if(n.length>0){let e=(0,f.PV)(n[0],t);null!==e&&i.setSelection({startLineNumber:e,startColumn:1,endLineNumber:e,endColumn:1})}}}),(0,h.Qr)(class e extends x{constructor(){super({id:"editor.gotoPreviousFold",label:D.NC("gotoPreviousFold.label","Go to Previous Folding Range"),alias:"Go to Previous Folding Range",precondition:R,kbOpts:{kbExpr:d.u.editorTextFocus,weight:100}})}invoke(e,t,i){let n=this.getSelectedLines(i);if(n.length>0){let e=(0,f.sK)(n[0],t);null!==e&&i.setSelection({startLineNumber:e,startColumn:1,endLineNumber:e,endColumn:1})}}}),(0,h.Qr)(class e extends x{constructor(){super({id:"editor.gotoNextFold",label:D.NC("gotoNextFold.label","Go to Next Folding Range"),alias:"Go to Next Folding Range",precondition:R,kbOpts:{kbExpr:d.u.editorTextFocus,weight:100}})}invoke(e,t,i){let n=this.getSelectedLines(i);if(n.length>0){let e=(0,f.hE)(n[0],t);null!==e&&i.setSelection({startLineNumber:e,startColumn:1,endLineNumber:e,endColumn:1})}}}),(0,h.Qr)(class e extends x{constructor(){super({id:"editor.createFoldingRangeFromSelection",label:D.NC("createManualFoldRange.label","Create Manual Folding Range from Selection"),alias:"Create Folding Range from Selection",precondition:R,kbOpts:{kbExpr:d.u.editorTextFocus,primary:(0,o.gx)(2089,2130),weight:100}})}invoke(e,t,i){var n;let r=[],o=i.getSelections();if(o){for(let e of o){let t=e.endLineNumber;1===e.endColumn&&--t,t>e.startLineNumber&&(r.push({startLineNumber:e.startLineNumber,endLineNumber:t,type:void 0,isCollapsed:!0,source:1}),i.setSelection({startLineNumber:e.startLineNumber,startColumn:1,endLineNumber:e.startLineNumber,endColumn:1}))}if(r.length>0){r.sort((e,t)=>e.startLineNumber-t.startLineNumber);let e=A.MN.sanitizeAndMerge(t.regions,r,null===(n=i.getModel())||void 0===n?void 0:n.getLineCount());t.updatePost(A.MN.fromFoldRanges(e))}}}}),(0,h.Qr)(class e extends x{constructor(){super({id:"editor.removeManualFoldingRanges",label:D.NC("removeManualFoldingRanges.label","Remove Manual Folding Ranges"),alias:"Remove Manual Folding Ranges",precondition:R,kbOpts:{kbExpr:d.u.editorTextFocus,primary:(0,o.gx)(2089,2132),weight:100}})}invoke(e,t,i){let n=i.getSelections();if(n){let i=[];for(let e of n){let{startLineNumber:t,endLineNumber:n}=e;i.push(n>=t?{startLineNumber:t,endLineNumber:n}:{endLineNumber:n,startLineNumber:t})}t.removeManualRanges(i),e.triggerFoldingModelChanged()}}});for(let e=1;e<=7;e++)(0,h.QG)(new B({id:B.ID(e),label:D.NC("foldLevelAction.label","Fold Level {0}",e),alias:`Fold Level ${e}`,precondition:R,kbOpts:{kbExpr:d.u.editorTextFocus,primary:(0,o.gx)(2089,2048|21+e),weight:100}}));let y=(0,_.P6G)("editor.foldBackground",{light:(0,_.ZnX)(_.hEj,.3),dark:(0,_.ZnX)(_.hEj,.3),hcDark:null,hcLight:null},D.NC("foldBackgroundBackground","Background color behind folded ranges. The color must not be opaque so as not to hide underlying decorations."),!0),O=(0,_.P6G)("editorGutter.foldingControlForeground",{dark:_.XZx,light:_.XZx,hcDark:_.XZx,hcLight:_.XZx},D.NC("editorGutter.foldingControlForeground","Color of the folding control in the editor gutter."));(0,E.Ic)((e,t)=>{let i=e.getColor(y);i&&t.addRule(`.monaco-editor .folded-background { background-color: ${i}; }`);let n=e.getColor(O);n&&t.addRule(`
|
|
11
|
-
.monaco-editor .cldr${E.kS.asCSSSelector(b.Iy)},
|
|
12
|
-
.monaco-editor .cldr${E.kS.asCSSSelector(b.f5)},
|
|
13
|
-
.monaco-editor .cldr${E.kS.asCSSSelector(b.bO)},
|
|
14
|
-
.monaco-editor .cldr${E.kS.asCSSSelector(b.W)} {
|
|
15
|
-
color: ${n} !important;
|
|
16
|
-
}
|
|
17
|
-
`)})},88936:function(e,t,i){"use strict";i.d(t,{Ae:function(){return o},Qj:function(){return n},YM:function(){return r}});class n{constructor(e,t){this.priority=e,this.range=t,this.type=1}equals(e){return 1===e.type&&this.range.equalsRange(e.range)}canAdoptVisibleHover(e,t){return 1===e.type&&t.lineNumber===this.range.startLineNumber}}class r{constructor(e,t,i){this.priority=e,this.owner=t,this.range=i,this.type=2}equals(e){return 2===e.type&&this.owner===e.owner}canAdoptVisibleHover(e,t){return 2===e.type&&this.owner===e.owner}}let o=new class{constructor(){this._participants=[]}register(e){this._participants.push(e)}getAll(){return this._participants}}},2795:function(e,t,i){"use strict";i.d(t,{y:function(){return p}});var n,r,o=i("67518"),s=i("61111"),l=i("19527"),a=i("74854"),u=i("78540"),h=i("77531"),d=i("7206"),c=i("11962"),g=i("65628"),f=function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function s(e){try{a(n.next(e))}catch(e){o(e)}}function l(e){try{a(n.throw(e))}catch(e){o(e)}}function a(e){var t;e.done?r(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(s,l)}a((n=n.apply(e,t||[])).next())})};let p=class extends h.TX{constructor(e,t,i){super(e),this.cache=t,this.languageFeaturesService=i,this.suggestionInlineCompletionSource=this._register(new g.M(this.editor,()=>{var e,t;return null===(t=null===(e=this.cache.value)||void 0===e?void 0:e.completions[0])||void 0===t?void 0:t.toLiveInlineCompletion()})),this.updateOperation=this._register(new l.XK),this.updateCacheSoon=this._register(new o.pY(()=>this.updateCache(),50)),this.minReservedLineCount=0,this._register(this.suggestionInlineCompletionSource.onDidChange(()=>{if(!this.editor.hasModel())return;this.updateCacheSoon.schedule(),!this.suggestionInlineCompletionSource.state&&(this.minReservedLineCount=0);let e=this.ghostText;e&&(this.minReservedLineCount=Math.max(this.minReservedLineCount,function(e){return e.reduce((e,t)=>e+t,0)}(e.parts.map(e=>e.lines.length-1)))),this.minReservedLineCount>=1?this.suggestionInlineCompletionSource.forceRenderingAbove():this.suggestionInlineCompletionSource.stopForceRenderingAbove(),this.onDidChangeEmitter.fire()})),this._register(this.cache.onDidChange(()=>{this.onDidChangeEmitter.fire()})),this._register(this.editor.onDidChangeCursorPosition(e=>{this.minReservedLineCount=0,this.updateCacheSoon.schedule(),this.onDidChangeEmitter.fire()})),this._register((0,l.OF)(()=>this.suggestionInlineCompletionSource.stopForceRenderingAbove()))}get isActive(){return void 0!==this.suggestionInlineCompletionSource.state}isSuggestionPreviewEnabled(){return this.editor.getOption(108).preview}updateCache(){return f(this,void 0,void 0,function*(){let e=this.suggestionInlineCompletionSource.state;if(!e||!e.selectedItem)return;let t={text:e.selectedItem.normalizedInlineCompletion.insertText,range:e.selectedItem.normalizedInlineCompletion.range,isSnippetText:e.selectedItem.isSnippetText,completionKind:e.selectedItem.completionItemKind},i=this.editor.getPosition();if(e.selectedItem.isSnippetText||27===e.selectedItem.completionItemKind||20===e.selectedItem.completionItemKind||23===e.selectedItem.completionItemKind){this.cache.clear();return}let n=(0,o.PG)(e=>f(this,void 0,void 0,function*(){let n;try{n=yield(0,d.km)(this.languageFeaturesService.inlineCompletionsProvider,i,this.editor.getModel(),{triggerKind:a.bw.Automatic,selectedSuggestionInfo:t},e)}catch(e){(0,s.dL)(e);return}if(e.isCancellationRequested){n.dispose();return}this.cache.setValue(this.editor,n,a.bw.Automatic),this.onDidChangeEmitter.fire()})),r=new d._X(n,a.bw.Automatic);this.updateOperation.value=r,yield n,this.updateOperation.value===r&&this.updateOperation.clear()})}get ghostText(){var e,t,i;let n=this.isSuggestionPreviewEnabled(),r=this.editor.getModel(),o=(0,c.Is)(r,null===(t=null===(e=this.cache.value)||void 0===e?void 0:e.completions[0])||void 0===t?void 0:t.toLiveInlineCompletion()),s=this.suggestionInlineCompletionSource.state,l=(0,c.Is)(r,null===(i=null==s?void 0:s.selectedItem)||void 0===i?void 0:i.normalizedInlineCompletion),a=o&&l&&o.insertText.startsWith(l.insertText)&&o.range.equalsRange(l.range);if(!n&&!a)return;let u=a?o:l||o,h=a?u.insertText.length-l.insertText.length:0;return this.toGhostText(u,h)}toGhostText(e,t){let i=this.editor.getOptions().get(108).previewMode;return e?(0,c.mr)(e,this.editor.getModel(),i,this.editor.getPosition(),t)||new h.Vb(e.range.endLineNumber,[],this.minReservedLineCount):void 0}};p=function(e,t,i,n){var r,o=arguments.length,s=o<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 l=e.length-1;l>=0;l--)(r=e[l])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s}([(n=2,r=u.p,function(e,t){r(e,t,2)})],p)},8626:function(e,t,i){"use strict";i.d(t,{f:function(){return C},z:function(){return E}});var n=i("19527"),r=i("44138"),o=i("59923"),s=i("57938"),l=i("61065"),a=i("76617"),u=i("62785"),h=i("78540"),d=i("95357"),c=i("8339"),g=i("49436"),f=i("53881"),p=i("18628"),m=function(e,t){return function(i,n){t(i,n,e)}};let D={overwriteBefore:0,overwriteAfter:0,undoStopBefore:!0,undoStopAfter:!0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0},C=class e{constructor(t,i,r,o,s){this._editor=t,this._logService=i,this._languageFeaturesService=r,this._languageConfigurationService=s,this._snippetListener=new n.SL,this._modelVersionId=-1,this._inSnippet=e.InSnippetMode.bindTo(o),this._hasNextTabstop=e.HasNextTabstop.bindTo(o),this._hasPrevTabstop=e.HasPrevTabstop.bindTo(o)}static get(t){return t.getContribution(e.ID)}dispose(){var e;this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),null===(e=this._session)||void 0===e||e.dispose(),this._snippetListener.dispose()}apply(e,t){try{this._doInsert(e,void 0===t?D:Object.assign(Object.assign({},D),t))}catch(t){this.cancel(),this._logService.error(t),this._logService.error("snippet_error"),this._logService.error("insert_edits=",e),this._logService.error("existing_template=",this._session?this._session._logInfo():"<no_session>")}}insert(e,t){try{this._doInsert(e,void 0===t?D:Object.assign(Object.assign({},D),t))}catch(t){this.cancel(),this._logService.error(t),this._logService.error("snippet_error"),this._logService.error("insert_template=",e),this._logService.error("existing_template=",this._session?this._session._logInfo():"<no_session>")}}_doInsert(e,t){var i;if(this._editor.hasModel()){if(this._snippetListener.clear(),t.undoStopBefore&&this._editor.getModel().pushStackElement(),this._session&&"string"!=typeof e&&this.cancel(),this._session?((0,r.p_)("string"==typeof e),this._session.merge(e,t)):(this._modelVersionId=this._editor.getModel().getAlternativeVersionId(),this._session=new p.l(this._editor,e,t,this._languageConfigurationService),this._session.insert()),t.undoStopAfter&&this._editor.getModel().pushStackElement(),null===(i=this._session)||void 0===i?void 0:i.hasChoice){this._choiceCompletionItemProvider={provideCompletionItems:(e,t)=>{if(!this._session||e!==this._editor.getModel()||!s.L.equals(this._editor.getPosition(),t))return;let{activeChoice:i}=this._session;if(!i||0===i.choice.options.length)return;let n=e.getValueInRange(i.range),r=!!i.choice.options.find(e=>e.value===n),o=[];for(let e=0;e<i.choice.options.length;e++){let t=i.choice.options[e];o.push({kind:13,label:t.value,insertText:t.value,sortText:"a".repeat(e+1),range:i.range,filterText:r?`${n}_${t.value}`:void 0,command:{id:"jumpToNextSnippetPlaceholder",title:(0,c.NC)("next","Go to next placeholder...")}})}return{suggestions:o}}};let e=this._languageFeaturesService.completionProvider.register({language:this._editor.getModel().getLanguageId(),pattern:this._editor.getModel().uri.fsPath,scheme:this._editor.getModel().uri.scheme},this._choiceCompletionItemProvider);this._snippetListener.add(e)}this._updateState(),this._snippetListener.add(this._editor.onDidChangeModelContent(e=>e.isFlush&&this.cancel())),this._snippetListener.add(this._editor.onDidChangeModel(()=>this.cancel())),this._snippetListener.add(this._editor.onDidChangeCursorSelection(()=>this._updateState()))}}_updateState(){if(this._session&&this._editor.hasModel()){if(this._modelVersionId===this._editor.getModel().getAlternativeVersionId()||!this._session.hasPlaceholder)return this.cancel();if(this._session.isAtLastPlaceholder||!this._session.isSelectionWithinPlaceholders())return this._editor.getModel().pushStackElement(),this.cancel();this._inSnippet.set(!0),this._hasPrevTabstop.set(!this._session.isAtFirstPlaceholder),this._hasNextTabstop.set(!this._session.isAtLastPlaceholder),this._handleChoice()}}_handleChoice(){if(!this._session||!this._editor.hasModel()){this._currentChoice=void 0;return}let{activeChoice:e}=this._session;if(!e||!this._choiceCompletionItemProvider){this._currentChoice=void 0;return}this._currentChoice!==e.choice&&(this._currentChoice=e.choice,queueMicrotask(()=>{(0,d.i5)(this._editor,this._choiceCompletionItemProvider)}))}finish(){for(;this._inSnippet.get();)this.next()}cancel(e=!1){var t;this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),this._snippetListener.clear(),this._currentChoice=void 0,null===(t=this._session)||void 0===t||t.dispose(),this._session=void 0,this._modelVersionId=-1,e&&this._editor.setSelections([this._editor.getSelection()])}prev(){this._session&&this._session.prev(),this._updateState()}next(){this._session&&this._session.next(),this._updateState()}isInSnippet(){return!!this._inSnippet.get()}};C.ID="snippetController2",C.InSnippetMode=new g.uy("inSnippetMode",!1,(0,c.NC)("inSnippetMode","Whether the editor in current in snippet mode")),C.HasNextTabstop=new g.uy("hasNextTabstop",!1,(0,c.NC)("hasNextTabstop","Whether there is a next tab stop when in snippet mode")),C.HasPrevTabstop=new g.uy("hasPrevTabstop",!1,(0,c.NC)("hasPrevTabstop","Whether there is a previous tab stop when in snippet mode")),C=function(e,t,i,n){var r,o=arguments.length,s=o<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 l=e.length-1;l>=0;l--)(r=e[l])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s}([m(1,f.VZ),m(2,h.p),m(3,g.i6),m(4,u.c_)],C),(0,o._K)(C.ID,C);let _=o._l.bindToContribution(C.get);function E(e,t,i){let n=C.get(e);return!!n&&(e.focus(),n.apply(i.map(e=>({range:l.Y.liftSelection(e),template:t}))),n.isInSnippet())}(0,o.fK)(new _({id:"jumpToNextSnippetPlaceholder",precondition:g.Ao.and(C.InSnippetMode,C.HasNextTabstop),handler:e=>e.next(),kbOpts:{weight:130,kbExpr:a.u.editorTextFocus,primary:2}})),(0,o.fK)(new _({id:"jumpToPrevSnippetPlaceholder",precondition:g.Ao.and(C.InSnippetMode,C.HasPrevTabstop),handler:e=>e.prev(),kbOpts:{weight:130,kbExpr:a.u.editorTextFocus,primary:1026}})),(0,o.fK)(new _({id:"leaveSnippet",precondition:C.InSnippetMode,handler:e=>e.cancel(!0),kbOpts:{weight:130,kbExpr:a.u.editorTextFocus,primary:9,secondary:[1033]}})),(0,o.fK)(new _({id:"acceptSnippet",precondition:C.InSnippetMode,handler:e=>e.finish()}))},64641:function(e,t,i){"use strict";i.d(t,{S:function(){return n}});let n=(0,i("6301").yh)("dialogService")},96709:function(e,t,i){"use strict";let n;i.d(t,{Nq:function(){return _},Yb:function(){return C},iX:function(){return c}});var r=i("20184"),o=i("78853"),s=i("49436"),l=i("87528"),a=i("8339"),u=i("19527"),h=function(e,t,i,n){var r,o=arguments.length,s=o<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 l=e.length-1;l>=0;l--)(r=e[l])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},d=function(e,t){return function(i,n){t(i,n,e)}};let c=new s.uy("suggestWidgetVisible",!1,(0,a.NC)("suggestWidgetVisible","Whether suggestion are visible")),g="historyNavigationWidgetFocus",f="historyNavigationForwardsEnabled",p="historyNavigationBackwardsEnabled";let m=[];function D(e,t){if(m.includes(t))throw Error("Cannot register the same widget multiple times");m.push(t);let i=new u.SL,r=i.add(e.createScoped(t.element)),o=new s.uy(g,!1).bindTo(r),l=new s.uy(f,!0).bindTo(r),a=new s.uy(p,!0).bindTo(r),h=()=>{o.set(!0),n=t},d=()=>{o.set(!1),n===t&&(n=void 0)};return t.element===document.activeElement&&h(),i.add(t.onDidFocus(()=>h())),i.add(t.onDidBlur(()=>d())),i.add((0,u.OF)(()=>{m.splice(m.indexOf(t),1),d()})),{scopedContextKeyService:r,historyNavigationForwardsEnablement:l,historyNavigationBackwardsEnablement:a,dispose(){i.dispose()}}}let C=class extends r.V{constructor(e,t,i,n,r=!1){super(e,t,r,i),this._register(D(n,this.inputBox))}};C=h([d(3,s.i6)],C);let _=class extends o.R{constructor(e,t,i,n,r=!1){super(e,t,r,i),this._register(D(n,this.inputBox))}};_=h([d(3,s.i6)],_),l.W.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:s.Ao.and(s.Ao.has(g),s.Ao.equals(p,!0),c.isEqualTo(!1)),primary:16,secondary:[528],handler:e=>{n&&n.showPreviousValue()}}),l.W.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:s.Ao.and(s.Ao.has(g),s.Ao.equals(f,!0),c.isEqualTo(!1)),primary:18,secondary:[530],handler:e=>{n&&n.showNextValue()}})},9064:function(e,t,i){"use strict";i.d(t,{L:function(){return s}});var n=i("61111"),r=i("2881"),o=i("10109");class s extends o.f1{constructor(e,t){if(super(),0===t.length)throw(0,n.b1)("parts");this._os=e,this._parts=t}getLabel(){return r.xo.toLabel(this._os,this._parts,e=>this._getLabel(e))}getAriaLabel(){return r.X4.toLabel(this._os,this._parts,e=>this._getAriaLabel(e))}getElectronAccelerator(){return this._parts.length>1||this._parts[0].isDuplicateModifierCase()?null:r.jC.toLabel(this._os,this._parts,e=>this._getElectronAccelerator(e))}isChord(){return this._parts.length>1}getParts(){return this._parts.map(e=>this._getPart(e))}_getPart(e){return new o.BQ(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,this._getLabel(e),this._getAriaLabel(e))}getDispatchParts(){return this._parts.map(e=>this._getDispatchPart(e))}getSingleModifierDispatchParts(){return this._parts.map(e=>this._getSingleModifierDispatchPart(e))}}},97669:function(e,t,i){"use strict";i.d(t,{EO:function(){return l},lT:function(){return s},zb:function(){return o}});var n=i("96608"),r=i("6301"),o=n.Z;let s=(0,r.yh)("notificationService");class l{}},18475:function(e,t,i){"use strict";i.d(t,{B:function(){return o}});var n=i("33665"),r=i("44138");let o=new class e{constructor(){this.data=new Map}add(e,t){n.ok(r.HD(e)),n.ok(r.Kn(t)),n.ok(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)}as(e){return this.data.get(e)||null}}},38842:function(e,t,i){"use strict";i.d(t,{Ks:function(){return D},q5:function(){return m},s_:function(){return b}});var n,r,o,s=i("67518"),l=i("71628"),a=i("16904"),u=i("44138"),h=i("38505"),d=i("8339"),c=i("29711"),g=i("18475"),f=i("39703");(r||(r={})).getDefinition=function(e,t){let i=e.defaults;for(;f.kS.isThemeIcon(i);){let e=p.getIcon(i.id);if(!e)return;i=e.defaults}return i},(n=o||(o={})).toJSONObject=function(e){return{weight:e.weight,style:e.style,src:e.src.map(e=>({format:e.format,location:e.location.toString()}))}},n.fromJSONObject=function(e){let t=e=>(0,u.HD)(e)?e:void 0;if(e&&Array.isArray(e.src)&&e.src.every(e=>(0,u.HD)(e.format)&&(0,u.HD)(e.location)))return{weight:t(e.weight),style:t(e.style),src:e.src.map(e=>({format:e.format,location:h.o.parse(e.location)}))}};let p=new class e{constructor(){this._onDidChange=new a.Q5,this.onDidChange=this._onDidChange.event,this.iconSchema={definitions:{icons:{type:"object",properties:{fontId:{type:"string",description:(0,d.NC)("iconDefinition.fontId","The id of the font to use. If not set, the font that is defined first is used.")},fontCharacter:{type:"string",description:(0,d.NC)("iconDefinition.fontCharacter","The font character associated with the icon definition.")}},additionalProperties:!1,defaultSnippets:[{body:{fontCharacter:"\\\\e030"}}]}},type:"object",properties:{}},this.iconReferenceSchema={type:"string",pattern:`^${l.dT.iconNameExpression}$`,enum:[],enumDescriptions:[]},this.iconsById={},this.iconFontsById={}}registerIcon(e,t,i,n){let r=this.iconsById[e];if(r){if(i&&!r.description){r.description=i,this.iconSchema.properties[e].markdownDescription=`${i} $(${e})`;let t=this.iconReferenceSchema.enum.indexOf(e);-1!==t&&(this.iconReferenceSchema.enumDescriptions[t]=i),this._onDidChange.fire()}return r}this.iconsById[e]={id:e,description:i,defaults:t,deprecationMessage:n};let o={$ref:"#/definitions/icons"};return n&&(o.deprecationMessage=n),i&&(o.markdownDescription=`${i}: $(${e})`),this.iconSchema.properties[e]=o,this.iconReferenceSchema.enum.push(e),this.iconReferenceSchema.enumDescriptions.push(i||""),this._onDidChange.fire(),{id:e}}getIcons(){return Object.keys(this.iconsById).map(e=>this.iconsById[e])}getIcon(e){return this.iconsById[e]}getIconSchema(){return this.iconSchema}toString(){let e=(e,t)=>e.id.localeCompare(t.id),t=e=>{for(;f.kS.isThemeIcon(e.defaults);)e=this.iconsById[e.defaults.id];return`codicon codicon-${e?e.id:""}`},i=[];i.push("| preview | identifier | default codicon ID | description"),i.push("| ----------- | --------------------------------- | --------------------------------- | --------------------------------- |");let n=Object.keys(this.iconsById).map(e=>this.iconsById[e]);for(let r of n.filter(e=>!!e.description).sort(e))i.push(`|<i class="${t(r)}"></i>|${r.id}|${f.kS.isThemeIcon(r.defaults)?r.defaults.id:r.id}|${r.description||""}|`);for(let r of(i.push("| preview | identifier "),i.push("| ----------- | --------------------------------- |"),n.filter(e=>!f.kS.isThemeIcon(e.defaults)).sort(e)))i.push(`|<i class="${t(r)}"></i>|${r.id}|`);return i.join("\n")}};function m(e,t,i,n){return p.registerIcon(e,t,i,n)}function D(){return p}g.B.add("base.contributions.icons",p);!function(){for(let e of l.lA.getAll())p.registerIcon(e.id,e.definition,e.description)}();let C="vscode://schemas/icons",_=g.B.as(c.I.JSONContribution);_.registerSchema(C,p.getIconSchema());let E=new s.pY(()=>_.notifySchemaChanged(C),200);p.onDidChange(()=>{!E.isScheduled()&&E.schedule()});let b=m("widget-close",l.lA.close,(0,d.NC)("widgetClose","Icon for the close action in widgets."));m("goto-previous-location",l.lA.arrowUp,(0,d.NC)("previousChangeIcon","Icon for goto previous editor location.")),m("goto-next-location",l.lA.arrowDown,(0,d.NC)("nextChangeIcon","Icon for goto next editor location.")),f.kS.modify(l.lA.sync,"spin"),f.kS.modify(l.lA.loading,"spin")}}]);
|