@opensumi/cli-engine 2.24.2 → 2.24.3-next-1684154568.0

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.
@@ -39,4 +39,4 @@ object-assign
39
39
  @license MIT
40
40
  */var n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function s(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,a,c=s(e),l=1;l<arguments.length;l++){for(var u in r=Object(arguments[l]))i.call(r,u)&&(c[u]=r[u]);if(n){a=n(r);for(var d=0;d<a.length;d++)o.call(r,a[d])&&(c[a[d]]=r[a[d]])}}return c}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tupleNum=t.tuple=void 0;t.tuple=(...e)=>e;t.tupleNum=(...e)=>e},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=()=>({height:0,opacity:0}),i=e=>({height:e.scrollHeight,opacity:1}),o={motionName:"kt-motion-collapse",onAppearStart:n,onEnterStart:n,onAppearActive:i,onEnterActive:i,onLeaveStart:e=>({height:e.offsetHeight}),onLeaveActive:n};t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1).__importDefault(r(578));let i=0;const o={};function s(e,t=1){const r=i++;let s=t;return o[r]=(0,n.default)((function t(){s-=1,s<=0?(e(),delete o[r]):o[r]=(0,n.default)(t)})),r}t.default=s,s.cancel=function(e){void 0!==e&&(n.default.cancel(o[e]),delete o[e])},s.ids=o},function(e,t,r){(function(t){for(var n=r(579),i="undefined"==typeof window?t:window,o=["moz","webkit"],s="AnimationFrame",a=i["request"+s],c=i["cancel"+s]||i["cancelRequest"+s],l=0;!a&&l<o.length;l++)a=i[o[l]+"Request"+s],c=i[o[l]+"Cancel"+s]||i[o[l]+"CancelRequest"+s];if(!a||!c){var u=0,d=0,h=[];a=function(e){if(0===h.length){var t=n(),r=Math.max(0,1e3/60-(t-u));u=r+t,setTimeout((function(){var e=h.slice(0);h.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(u)}catch(e){setTimeout((function(){throw e}),0)}}),Math.round(r))}return h.push({handle:++d,callback:e,cancelled:!1}),d},c=function(e){for(var t=0;t<h.length;t++)h[t].handle===e&&(h[t].cancelled=!0)}}e.exports=function(e){return a.call(i,e)},e.exports.cancel=function(){c.apply(i,arguments)},e.exports.polyfill=function(e){e||(e=i),e.requestAnimationFrame=a,e.cancelAnimationFrame=c}}).call(this,r(11))},function(e,t,r){(function(t){(function(){var r,n,i,o,s,a;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:null!=t&&t.hrtime?(e.exports=function(){return(r()-s)/1e6},n=t.hrtime,o=(r=function(){var e;return 1e9*(e=n())[0]+e[1]})(),a=1e9*t.uptime(),s=o-a):Date.now?(e.exports=function(){return Date.now()-i},i=Date.now()):(e.exports=function(){return(new Date).getTime()-i},i=(new Date).getTime())}).call(this)}).call(this,r(8))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toMarkdownHtml=t.parseMarkdown=t.createMarkedRenderer=void 0;const n=r(581),i=r(582);t.createMarkedRenderer=()=>new i.Renderer;t.parseMarkdown=(e,t,r)=>{if(!r)return(0,n.sanitize)(i.marked.parse(e,t));const o=(e,t)=>{r(e,(0,n.sanitize)(t))};t?i.marked.parse(e,t,o):i.marked.parse(e,o)};t.toMarkdownHtml=(e,t)=>(0,n.sanitize)((0,i.marked)(e,t))},function(e,t,r){
41
41
  /*! @license DOMPurify 3.0.2 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.2/LICENSE */
42
- e.exports=function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:r,getPrototypeOf:n,getOwnPropertyDescriptor:i}=Object;let{freeze:o,seal:s,create:a}=Object,{apply:c,construct:l}="undefined"!=typeof Reflect&&Reflect;c||(c=function(e,t,r){return e.apply(t,r)}),o||(o=function(e){return e}),s||(s=function(e){return e}),l||(l=function(e,t){return new e(...t)});const u=C(Array.prototype.forEach),d=C(Array.prototype.pop),h=C(Array.prototype.push),f=C(String.prototype.toLowerCase),p=C(String.prototype.toString),g=C(String.prototype.match),m=C(String.prototype.replace),b=C(String.prototype.indexOf),v=C(String.prototype.trim),y=C(RegExp.prototype.test),_=(w=TypeError,function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return l(w,t)});var w;function C(e){return function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return c(e,t,n)}}function k(e,n,i){i=i||f,t&&t(e,null);let o=n.length;for(;o--;){let t=n[o];if("string"==typeof t){const e=i(t);e!==t&&(r(n)||(n[o]=e),t=e)}e[t]=!0}return e}function E(t){const r=a(null);for(const[n,i]of e(t))r[n]=i;return r}function S(e,t){for(;null!==e;){const r=i(e,t);if(r){if(r.get)return C(r.get);if("function"==typeof r.value)return C(r.value)}e=n(e)}return function(e){return console.warn("fallback value for",e),null}}const D=o(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),x=o(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),T=o(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),A=o(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),I=o(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),O=o(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),R=o(["#text"]),M=o(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),B=o(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),P=o(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),F=o(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),L=s(/\{\{[\w\W]*|[\w\W]*\}\}/gm),N=s(/<%[\w\W]*|[\w\W]*%>/gm),j=s(/\${[\w\W]*}/gm),H=s(/^data-[\-\w.\u00B7-\uFFFF]/),U=s(/^aria-[\-\w]+$/),z=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),W=s(/^(?:\w+script|data):/i),V=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),$=s(/^html$/i);var G=Object.freeze({__proto__:null,MUSTACHE_EXPR:L,ERB_EXPR:N,TMPLIT_EXPR:j,DATA_ATTR:H,ARIA_ATTR:U,IS_ALLOWED_URI:z,IS_SCRIPT_OR_DATA:W,ATTR_WHITESPACE:V,DOCTYPE_NAME:$});const q=()=>"undefined"==typeof window?null:window,K=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let r=null;t.currentScript&&t.currentScript.hasAttribute("data-tt-policy-suffix")&&(r=t.currentScript.getAttribute("data-tt-policy-suffix"));const n="dompurify"+(r?"#"+r:"");try{return e.createPolicy(n,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+n+" could not be created."),null}};return function t(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:q();const n=e=>t(e);if(n.version="3.0.2",n.removed=[],!r||!r.document||9!==r.document.nodeType)return n.isSupported=!1,n;const i=r.document;let{document:s}=r;const{DocumentFragment:a,HTMLTemplateElement:c,Node:l,Element:w,NodeFilter:C,NamedNodeMap:L=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:N,DOMParser:j,trustedTypes:H}=r,U=w.prototype,W=S(U,"cloneNode"),V=S(U,"nextSibling"),Y=S(U,"childNodes"),X=S(U,"parentNode");if("function"==typeof c){const e=s.createElement("template");e.content&&e.content.ownerDocument&&(s=e.content.ownerDocument)}const Q=K(H,i),J=Q?Q.createHTML(""):"",{implementation:Z,createNodeIterator:ee,createDocumentFragment:te,getElementsByTagName:re}=s,{importNode:ne}=i;let ie={};n.isSupported="function"==typeof e&&"function"==typeof X&&Z&&void 0!==Z.createHTMLDocument;const{MUSTACHE_EXPR:oe,ERB_EXPR:se,TMPLIT_EXPR:ae,DATA_ATTR:ce,ARIA_ATTR:le,IS_SCRIPT_OR_DATA:ue,ATTR_WHITESPACE:de}=G;let{IS_ALLOWED_URI:he}=G,fe=null;const pe=k({},[...D,...x,...T,...I,...R]);let ge=null;const me=k({},[...M,...B,...P,...F]);let be=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ve=null,ye=null,_e=!0,we=!0,Ce=!1,ke=!0,Ee=!1,Se=!1,De=!1,xe=!1,Te=!1,Ae=!1,Ie=!1,Oe=!0,Re=!1;const Me="user-content-";let Be=!0,Pe=!1,Fe={},Le=null;const Ne=k({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let je=null;const He=k({},["audio","video","img","source","image","track"]);let Ue=null;const ze=k({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),We="http://www.w3.org/1998/Math/MathML",Ve="http://www.w3.org/2000/svg",$e="http://www.w3.org/1999/xhtml";let Ge=$e,qe=!1,Ke=null;const Ye=k({},[We,Ve,$e],p);let Xe;const Qe=["application/xhtml+xml","text/html"],Je="text/html";let Ze,et=null;const tt=s.createElement("form"),rt=function(e){return e instanceof RegExp||e instanceof Function},nt=function(e){et&&et===e||(e&&"object"==typeof e||(e={}),e=E(e),Xe=Xe=-1===Qe.indexOf(e.PARSER_MEDIA_TYPE)?Je:e.PARSER_MEDIA_TYPE,Ze="application/xhtml+xml"===Xe?p:f,fe="ALLOWED_TAGS"in e?k({},e.ALLOWED_TAGS,Ze):pe,ge="ALLOWED_ATTR"in e?k({},e.ALLOWED_ATTR,Ze):me,Ke="ALLOWED_NAMESPACES"in e?k({},e.ALLOWED_NAMESPACES,p):Ye,Ue="ADD_URI_SAFE_ATTR"in e?k(E(ze),e.ADD_URI_SAFE_ATTR,Ze):ze,je="ADD_DATA_URI_TAGS"in e?k(E(He),e.ADD_DATA_URI_TAGS,Ze):He,Le="FORBID_CONTENTS"in e?k({},e.FORBID_CONTENTS,Ze):Ne,ve="FORBID_TAGS"in e?k({},e.FORBID_TAGS,Ze):{},ye="FORBID_ATTR"in e?k({},e.FORBID_ATTR,Ze):{},Fe="USE_PROFILES"in e&&e.USE_PROFILES,_e=!1!==e.ALLOW_ARIA_ATTR,we=!1!==e.ALLOW_DATA_ATTR,Ce=e.ALLOW_UNKNOWN_PROTOCOLS||!1,ke=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Ee=e.SAFE_FOR_TEMPLATES||!1,Se=e.WHOLE_DOCUMENT||!1,Te=e.RETURN_DOM||!1,Ae=e.RETURN_DOM_FRAGMENT||!1,Ie=e.RETURN_TRUSTED_TYPE||!1,xe=e.FORCE_BODY||!1,Oe=!1!==e.SANITIZE_DOM,Re=e.SANITIZE_NAMED_PROPS||!1,Be=!1!==e.KEEP_CONTENT,Pe=e.IN_PLACE||!1,he=e.ALLOWED_URI_REGEXP||z,Ge=e.NAMESPACE||$e,be=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&rt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(be.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&rt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(be.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(be.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ee&&(we=!1),Ae&&(Te=!0),Fe&&(fe=k({},[...R]),ge=[],!0===Fe.html&&(k(fe,D),k(ge,M)),!0===Fe.svg&&(k(fe,x),k(ge,B),k(ge,F)),!0===Fe.svgFilters&&(k(fe,T),k(ge,B),k(ge,F)),!0===Fe.mathMl&&(k(fe,I),k(ge,P),k(ge,F))),e.ADD_TAGS&&(fe===pe&&(fe=E(fe)),k(fe,e.ADD_TAGS,Ze)),e.ADD_ATTR&&(ge===me&&(ge=E(ge)),k(ge,e.ADD_ATTR,Ze)),e.ADD_URI_SAFE_ATTR&&k(Ue,e.ADD_URI_SAFE_ATTR,Ze),e.FORBID_CONTENTS&&(Le===Ne&&(Le=E(Le)),k(Le,e.FORBID_CONTENTS,Ze)),Be&&(fe["#text"]=!0),Se&&k(fe,["html","head","body"]),fe.table&&(k(fe,["tbody"]),delete ve.tbody),o&&o(e),et=e)},it=k({},["mi","mo","mn","ms","mtext"]),ot=k({},["foreignobject","desc","title","annotation-xml"]),st=k({},["title","style","font","a","script"]),at=k({},x);k(at,T),k(at,A);const ct=k({},I);k(ct,O);const lt=function(e){let t=X(e);t&&t.tagName||(t={namespaceURI:Ge,tagName:"template"});const r=f(e.tagName),n=f(t.tagName);return!!Ke[e.namespaceURI]&&(e.namespaceURI===Ve?t.namespaceURI===$e?"svg"===r:t.namespaceURI===We?"svg"===r&&("annotation-xml"===n||it[n]):Boolean(at[r]):e.namespaceURI===We?t.namespaceURI===$e?"math"===r:t.namespaceURI===Ve?"math"===r&&ot[n]:Boolean(ct[r]):e.namespaceURI===$e?!(t.namespaceURI===Ve&&!ot[n])&&!(t.namespaceURI===We&&!it[n])&&!ct[r]&&(st[r]||!at[r]):!("application/xhtml+xml"!==Xe||!Ke[e.namespaceURI]))},ut=function(e){h(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},dt=function(e,t){try{h(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){h(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!ge[e])if(Te||Ae)try{ut(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},ht=function(e){let t,r;if(xe)e="<remove></remove>"+e;else{const t=g(e,/^[\r\n\t ]+/);r=t&&t[0]}"application/xhtml+xml"===Xe&&Ge===$e&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const n=Q?Q.createHTML(e):e;if(Ge===$e)try{t=(new j).parseFromString(n,Xe)}catch(e){}if(!t||!t.documentElement){t=Z.createDocument(Ge,"template",null);try{t.documentElement.innerHTML=qe?J:n}catch(e){}}const i=t.body||t.documentElement;return e&&r&&i.insertBefore(s.createTextNode(r),i.childNodes[0]||null),Ge===$e?re.call(t,Se?"html":"body")[0]:Se?t.documentElement:i},ft=function(e){return ee.call(e.ownerDocument||e,e,C.SHOW_ELEMENT|C.SHOW_COMMENT|C.SHOW_TEXT,null,!1)},pt=function(e){return e instanceof N&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof L)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},gt=function(e){return"object"==typeof l?e instanceof l:e&&"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},mt=function(e,t,r){ie[e]&&u(ie[e],e=>{e.call(n,t,r,et)})},bt=function(e){let t;if(mt("beforeSanitizeElements",e,null),pt(e))return ut(e),!0;const r=Ze(e.nodeName);if(mt("uponSanitizeElement",e,{tagName:r,allowedTags:fe}),e.hasChildNodes()&&!gt(e.firstElementChild)&&(!gt(e.content)||!gt(e.content.firstElementChild))&&y(/<[/\w]/g,e.innerHTML)&&y(/<[/\w]/g,e.textContent))return ut(e),!0;if(!fe[r]||ve[r]){if(!ve[r]&&yt(r)){if(be.tagNameCheck instanceof RegExp&&y(be.tagNameCheck,r))return!1;if(be.tagNameCheck instanceof Function&&be.tagNameCheck(r))return!1}if(Be&&!Le[r]){const t=X(e)||e.parentNode,r=Y(e)||e.childNodes;if(r&&t)for(let n=r.length-1;n>=0;--n)t.insertBefore(W(r[n],!0),V(e))}return ut(e),!0}return e instanceof w&&!lt(e)?(ut(e),!0):"noscript"!==r&&"noembed"!==r||!y(/<\/no(script|embed)/i,e.innerHTML)?(Ee&&3===e.nodeType&&(t=e.textContent,t=m(t,oe," "),t=m(t,se," "),t=m(t,ae," "),e.textContent!==t&&(h(n.removed,{element:e.cloneNode()}),e.textContent=t)),mt("afterSanitizeElements",e,null),!1):(ut(e),!0)},vt=function(e,t,r){if(Oe&&("id"===t||"name"===t)&&(r in s||r in tt))return!1;if(we&&!ye[t]&&y(ce,t));else if(_e&&y(le,t));else if(!ge[t]||ye[t]){if(!(yt(e)&&(be.tagNameCheck instanceof RegExp&&y(be.tagNameCheck,e)||be.tagNameCheck instanceof Function&&be.tagNameCheck(e))&&(be.attributeNameCheck instanceof RegExp&&y(be.attributeNameCheck,t)||be.attributeNameCheck instanceof Function&&be.attributeNameCheck(t))||"is"===t&&be.allowCustomizedBuiltInElements&&(be.tagNameCheck instanceof RegExp&&y(be.tagNameCheck,r)||be.tagNameCheck instanceof Function&&be.tagNameCheck(r))))return!1}else if(Ue[t]);else if(y(he,m(r,de,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==b(r,"data:")||!je[e])if(Ce&&!y(ue,m(r,de,"")));else if(r)return!1;return!0},yt=function(e){return e.indexOf("-")>0},_t=function(e){let t,r,i,o;mt("beforeSanitizeAttributes",e,null);const{attributes:s}=e;if(!s)return;const a={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ge};for(o=s.length;o--;){t=s[o];const{name:c,namespaceURI:l}=t;if(r="value"===c?t.value:v(t.value),i=Ze(c),a.attrName=i,a.attrValue=r,a.keepAttr=!0,a.forceKeepAttr=void 0,mt("uponSanitizeAttribute",e,a),r=a.attrValue,a.forceKeepAttr)continue;if(dt(c,e),!a.keepAttr)continue;if(!ke&&y(/\/>/i,r)){dt(c,e);continue}Ee&&(r=m(r,oe," "),r=m(r,se," "),r=m(r,ae," "));const u=Ze(e.nodeName);if(vt(u,i,r)){if(!Re||"id"!==i&&"name"!==i||(dt(c,e),r=Me+r),Q&&"object"==typeof H&&"function"==typeof H.getAttributeType)if(l);else switch(H.getAttributeType(u,i)){case"TrustedHTML":r=Q.createHTML(r);break;case"TrustedScriptURL":r=Q.createScriptURL(r)}try{l?e.setAttributeNS(l,c,r):e.setAttribute(c,r),d(n.removed)}catch(e){}}}mt("afterSanitizeAttributes",e,null)},wt=function e(t){let r;const n=ft(t);for(mt("beforeSanitizeShadowDOM",t,null);r=n.nextNode();)mt("uponSanitizeShadowNode",r,null),bt(r)||(r.content instanceof a&&e(r.content),_t(r));mt("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){let t,r,o,s,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(qe=!e,qe&&(e="\x3c!--\x3e"),"string"!=typeof e&&!gt(e)){if("function"!=typeof e.toString)throw _("toString is not a function");if("string"!=typeof(e=e.toString()))throw _("dirty is not a string, aborting")}if(!n.isSupported)return e;if(De||nt(c),n.removed=[],"string"==typeof e&&(Pe=!1),Pe){if(e.nodeName){const t=Ze(e.nodeName);if(!fe[t]||ve[t])throw _("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)t=ht("\x3c!----\x3e"),r=t.ownerDocument.importNode(e,!0),1===r.nodeType&&"BODY"===r.nodeName||"HTML"===r.nodeName?t=r:t.appendChild(r);else{if(!Te&&!Ee&&!Se&&-1===e.indexOf("<"))return Q&&Ie?Q.createHTML(e):e;if(t=ht(e),!t)return Te?null:Ie?J:""}t&&xe&&ut(t.firstChild);const u=ft(Pe?e:t);for(;o=u.nextNode();)bt(o)||(o.content instanceof a&&wt(o.content),_t(o));if(Pe)return e;if(Te){if(Ae)for(s=te.call(t.ownerDocument);t.firstChild;)s.appendChild(t.firstChild);else s=t;return(ge.shadowroot||ge.shadowrootmod)&&(s=ne.call(i,s,!0)),s}let d=Se?t.outerHTML:t.innerHTML;return Se&&fe["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&y($,t.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+t.ownerDocument.doctype.name+">\n"+d),Ee&&(d=m(d,oe," "),d=m(d,se," "),d=m(d,ae," ")),Q&&Ie?Q.createHTML(d):d},n.setConfig=function(e){nt(e),De=!0},n.clearConfig=function(){et=null,De=!1},n.isValidAttribute=function(e,t,r){et||nt({});const n=Ze(e),i=Ze(t);return vt(n,i,r)},n.addHook=function(e,t){"function"==typeof t&&(ie[e]=ie[e]||[],h(ie[e],t))},n.removeHook=function(e){if(ie[e])return d(ie[e])},n.removeHooks=function(e){ie[e]&&(ie[e]=[])},n.removeAllHooks=function(){ie={}},n}()}()},function(e,t,r){!function(e){"use strict";function t(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];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 r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(){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={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};var o=/[&<>"']/,s=/[&<>"']/g,a=/[<>"']|&(?!#?\w+;)/,c=/[<>"']|&(?!#?\w+;)/g,l={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},u=function(e){return l[e]};function d(e,t){if(t){if(o.test(e))return e.replace(s,u)}else if(a.test(e))return e.replace(c,u);return e}var h=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function f(e){return e.replace(h,(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 p=/(^|[^\[])\^/g;function g(e,t){e=e.source||e,t=t||"";var r={replace:function(t,n){return n=(n=n.source||n).replace(p,"$1"),e=e.replace(t,n),r},getRegex:function(){return new RegExp(e,t)}};return r}var m=/[^\w:]/g,b=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function v(e,t,r){if(e){var n;try{n=decodeURIComponent(f(r)).replace(m,"").toLowerCase()}catch(e){return null}if(0===n.indexOf("javascript:")||0===n.indexOf("vbscript:")||0===n.indexOf("data:"))return null}t&&!b.test(r)&&(r=function(e,t){y[" "+e]||(_.test(e)?y[" "+e]=e+"/":y[" "+e]=D(e,"/",!0));var r=-1===(e=y[" "+e]).indexOf(":");return"//"===t.substring(0,2)?r?t:e.replace(w,"$1")+t:"/"===t.charAt(0)?r?t:e.replace(C,"$1")+t:e+t}(t,r));try{r=encodeURI(r).replace(/%25/g,"%")}catch(e){return null}return r}var y={},_=/^[^:]+:\/*[^/]*$/,w=/^([^:]+:)[\s\S]*$/,C=/^([^:]+:\/*[^/]*)[\s\S]*$/,k={exec:function(){}};function E(e){for(var t,r,n=1;n<arguments.length;n++)for(r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function S(e,t){var r=e.replace(/\|/g,(function(e,t,r){for(var n=!1,i=t;--i>=0&&"\\"===r[i];)n=!n;return n?"|":" |"})).split(/ \|/),n=0;if(r[0].trim()||r.shift(),r[r.length-1].trim()||r.pop(),r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;n<r.length;n++)r[n]=r[n].trim().replace(/\\\|/g,"|");return r}function D(e,t,r){var n=e.length;if(0===n)return"";for(var i=0;i<n;){var o=e.charAt(n-i-1);if(o!==t||r){if(o===t||!r)break;i++}else i++}return e.substr(0,n-i)}function x(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 T(e,t){if(t<1)return"";for(var r="";t>1;)1&t&&(r+=e),t>>=1,e+=e;return r+e}function A(e,t,r,n){var i=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 a={type:"link",raw:r,href:i,title:o,text:s,tokens:n.inlineTokens(s,[])};return n.state.inLink=!1,a}return{type:"image",raw:r,href:i,title:o,text:d(s)}}var I=function(){function t(t){this.options=t||e.defaults}var r=t.prototype;return r.space=function(e){var t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}},r.code=function(e){var t=this.rules.block.code.exec(e);if(t){var r=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?r:D(r,"\n")}}},r.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var r=t[0],n=function(e,t){var r=e.match(/^(\s+)(?:```)/);if(null===r)return t;var n=r[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")}(r,t[3]||"");return{type:"code",raw:r,lang:t[2]?t[2].trim():t[2],text:n}}},r.heading=function(e){var t=this.rules.block.heading.exec(e);if(t){var r=t[2].trim();if(/#$/.test(r)){var n=D(r,"#");this.options.pedantic?r=n.trim():n&&!/ $/.test(n)||(r=n.trim())}var i={type:"heading",raw:t[0],depth:t[1].length,text:r,tokens:[]};return this.lexer.inline(i.text,i.tokens),i}},r.hr=function(e){var t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}},r.blockquote=function(e){var t=this.rules.block.blockquote.exec(e);if(t){var r=t[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(r,[]),text:r}}},r.list=function(e){var t=this.rules.block.list.exec(e);if(t){var r,i,o,s,a,c,l,u,d,h,f,p,g=t[1].trim(),m=g.length>1,b={type:"list",raw:"",ordered:m,start:m?+g.slice(0,-1):"",loose:!1,items:[]};g=m?"\\d{1,9}\\"+g.slice(-1):"\\"+g,this.options.pedantic&&(g=m?g:"[*+-]");for(var v=new RegExp("^( {0,3}"+g+")((?: [^\\n]*)?(?:\\n|$))");e&&(p=!1,t=v.exec(e))&&!this.rules.block.hr.test(e);){if(r=t[0],e=e.substring(r.length),u=t[2].split("\n",1)[0],d=e.split("\n",1)[0],this.options.pedantic?(s=2,f=u.trimLeft()):(s=(s=t[2].search(/[^ ]/))>4?1:s,f=u.slice(s),s+=t[1].length),c=!1,!u&&/^ *$/.test(d)&&(r+=d+"\n",e=e.substring(d.length+1),p=!0),!p)for(var y=new RegExp("^ {0,"+Math.min(3,s-1)+"}(?:[*+-]|\\d{1,9}[.)])");e&&(u=h=e.split("\n",1)[0],this.options.pedantic&&(u=u.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!y.test(u));){if(u.search(/[^ ]/)>=s||!u.trim())f+="\n"+u.slice(s);else{if(c)break;f+="\n"+u}c||u.trim()||(c=!0),r+=h+"\n",e=e.substring(h.length+1)}b.loose||(l?b.loose=!0:/\n *\n *$/.test(r)&&(l=!0)),this.options.gfm&&(i=/^\[[ xX]\] /.exec(f))&&(o="[ ] "!==i[0],f=f.replace(/^\[[ xX]\] +/,"")),b.items.push({type:"list_item",raw:r,task:!!i,checked:o,loose:!1,text:f}),b.raw+=r}b.items[b.items.length-1].raw=r.trimRight(),b.items[b.items.length-1].text=f.trimRight(),b.raw=b.raw.trimRight();var _=b.items.length;for(a=0;a<_;a++){this.lexer.state.top=!1,b.items[a].tokens=this.lexer.blockTokens(b.items[a].text,[]);var w=b.items[a].tokens.filter((function(e){return"space"===e.type})),C=w.every((function(e){for(var t,r=0,i=n(e.raw.split(""));!(t=i()).done;)if("\n"===t.value&&(r+=1),r>1)return!0;return!1}));!b.loose&&w.length&&C&&(b.loose=!0,b.items[a].loose=!0)}return b}},r.html=function(e){var t=this.rules.block.html.exec(e);if(t){var r={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&&(r.type="paragraph",r.text=this.options.sanitizer?this.options.sanitizer(t[0]):d(t[0]),r.tokens=[],this.lexer.inline(r.text,r.tokens)),r}},r.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]}},r.table=function(e){var t=this.rules.block.table.exec(e);if(t){var r={type:"table",header:S(t[1]).map((function(e){return{text:e}})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(r.header.length===r.align.length){r.raw=t[0];var n,i,o,s,a=r.align.length;for(n=0;n<a;n++)/^ *-+: *$/.test(r.align[n])?r.align[n]="right":/^ *:-+: *$/.test(r.align[n])?r.align[n]="center":/^ *:-+ *$/.test(r.align[n])?r.align[n]="left":r.align[n]=null;for(a=r.rows.length,n=0;n<a;n++)r.rows[n]=S(r.rows[n],r.header.length).map((function(e){return{text:e}}));for(a=r.header.length,i=0;i<a;i++)r.header[i].tokens=[],this.lexer.inlineTokens(r.header[i].text,r.header[i].tokens);for(a=r.rows.length,i=0;i<a;i++)for(s=r.rows[i],o=0;o<s.length;o++)s[o].tokens=[],this.lexer.inlineTokens(s[o].text,s[o].tokens);return r}}},r.lheading=function(e){var t=this.rules.block.lheading.exec(e);if(t){var r={type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:[]};return this.lexer.inline(r.text,r.tokens),r}},r.paragraph=function(e){var t=this.rules.block.paragraph.exec(e);if(t){var r={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(r.text,r.tokens),r}},r.text=function(e){var t=this.rules.block.text.exec(e);if(t){var r={type:"text",raw:t[0],text:t[0],tokens:[]};return this.lexer.inline(r.text,r.tokens),r}},r.escape=function(e){var t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:d(t[1])}},r.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]}},r.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var r=t[2].trim();if(!this.options.pedantic&&/^</.test(r)){if(!/>$/.test(r))return;var n=D(r.slice(0,-1),"\\");if((r.length-n.length)%2==0)return}else{var i=function(e,t){if(-1===e.indexOf(t[1]))return-1;for(var r=e.length,n=0,i=0;i<r;i++)if("\\"===e[i])i++;else if(e[i]===t[0])n++;else if(e[i]===t[1]&&--n<0)return i;return-1}(t[2],"()");if(i>-1){var o=(0===t[0].indexOf("!")?5:4)+t[1].length+i;t[2]=t[2].substring(0,i),t[0]=t[0].substring(0,o).trim(),t[3]=""}}var s=t[2],a="";if(this.options.pedantic){var c=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(s);c&&(s=c[1],a=c[3])}else a=t[3]?t[3].slice(1,-1):"";return s=s.trim(),/^</.test(s)&&(s=this.options.pedantic&&!/>$/.test(r)?s.slice(1):s.slice(1,-1)),A(t,{href:s?s.replace(this.rules.inline._escapes,"$1"):s,title:a?a.replace(this.rules.inline._escapes,"$1"):a},t[0],this.lexer)}},r.reflink=function(e,t){var r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){var n=(r[2]||r[1]).replace(/\s+/g," ");if(!(n=t[n.toLowerCase()])||!n.href){var i=r[0].charAt(0);return{type:"text",raw:i,text:i}}return A(r,n,r[0],this.lexer)}},r.emStrong=function(e,t,r){void 0===r&&(r="");var n=this.rules.inline.emStrong.lDelim.exec(e);if(n&&(!n[3]||!r.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 i=n[1]||n[2]||"";if(!i||i&&(""===r||this.rules.inline.punctuation.exec(r))){var o,s,a=n[0].length-1,c=a,l=0,u="*"===n[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(u.lastIndex=0,t=t.slice(-1*e.length+a);null!=(n=u.exec(t));)if(o=n[1]||n[2]||n[3]||n[4]||n[5]||n[6])if(s=o.length,n[3]||n[4])c+=s;else if(!((n[5]||n[6])&&a%3)||(a+s)%3){if(!((c-=s)>0)){if(s=Math.min(s,s+c+l),Math.min(a,s)%2){var d=e.slice(1,a+n.index+s);return{type:"em",raw:e.slice(0,a+n.index+s+1),text:d,tokens:this.lexer.inlineTokens(d,[])}}var h=e.slice(2,a+n.index+s-1);return{type:"strong",raw:e.slice(0,a+n.index+s+1),text:h,tokens:this.lexer.inlineTokens(h,[])}}}else l+=s}}},r.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var r=t[2].replace(/\n/g," "),n=/[^ ]/.test(r),i=/^ /.test(r)&&/ $/.test(r);return n&&i&&(r=r.substring(1,r.length-1)),r=d(r,!0),{type:"codespan",raw:t[0],text:r}}},r.br=function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}},r.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],[])}},r.autolink=function(e,t){var r,n,i=this.rules.inline.autolink.exec(e);if(i)return n="@"===i[2]?"mailto:"+(r=d(this.options.mangle?t(i[1]):i[1])):r=d(i[1]),{type:"link",raw:i[0],text:r,href:n,tokens:[{type:"text",raw:r,text:r}]}},r.url=function(e,t){var r;if(r=this.rules.inline.url.exec(e)){var n,i;if("@"===r[2])i="mailto:"+(n=d(this.options.mangle?t(r[0]):r[0]));else{var o;do{o=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])[0]}while(o!==r[0]);n=d(r[0]),i="www."===r[1]?"http://"+n:n}return{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}},r.inlineText=function(e,t){var r,n=this.rules.inline.text.exec(e);if(n)return r=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:r}},t}(),O={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}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)( [^\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]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};O.def=g(O.def).replace("label",O._label).replace("title",O._title).getRegex(),O.bullet=/(?:[*+-]|\d{1,9}[.)])/,O.listItemStart=g(/^( *)(bull) */).replace("bull",O.bullet).getRegex(),O.list=g(O.list).replace(/bull/g,O.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+O.def.source+")").getRegex(),O._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",O._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,O.html=g(O.html,"i").replace("comment",O._comment).replace("tag",O._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),O.paragraph=g(O._paragraph).replace("hr",O.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",O._tag).getRegex(),O.blockquote=g(O.blockquote).replace("paragraph",O.paragraph).getRegex(),O.normal=E({},O),O.gfm=E({},O.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),O.gfm.table=g(O.gfm.table).replace("hr",O.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",O._tag).getRegex(),O.gfm.paragraph=g(O._paragraph).replace("hr",O.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",O.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",O._tag).getRegex(),O.pedantic=E({},O.normal,{html:g("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",O._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:g(O.normal._paragraph).replace("hr",O.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",O.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var R={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 M(e){return e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function B(e){var t,r,n="",i=e.length;for(t=0;t<i;t++)r=e.charCodeAt(t),Math.random()>.5&&(r="x"+r.toString(16)),n+="&#"+r+";";return n}R._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",R.punctuation=g(R.punctuation).replace(/punctuation/g,R._punctuation).getRegex(),R.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,R.escapedEmSt=/\\\*|\\_/g,R._comment=g(O._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),R.emStrong.lDelim=g(R.emStrong.lDelim).replace(/punct/g,R._punctuation).getRegex(),R.emStrong.rDelimAst=g(R.emStrong.rDelimAst,"g").replace(/punct/g,R._punctuation).getRegex(),R.emStrong.rDelimUnd=g(R.emStrong.rDelimUnd,"g").replace(/punct/g,R._punctuation).getRegex(),R._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,R._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,R._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])?)+(?![-_])/,R.autolink=g(R.autolink).replace("scheme",R._scheme).replace("email",R._email).getRegex(),R._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,R.tag=g(R.tag).replace("comment",R._comment).replace("attribute",R._attribute).getRegex(),R._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,R._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,R._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,R.link=g(R.link).replace("label",R._label).replace("href",R._href).replace("title",R._title).getRegex(),R.reflink=g(R.reflink).replace("label",R._label).replace("ref",O._label).getRegex(),R.nolink=g(R.nolink).replace("ref",O._label).getRegex(),R.reflinkSearch=g(R.reflinkSearch,"g").replace("reflink",R.reflink).replace("nolink",R.nolink).getRegex(),R.normal=E({},R),R.pedantic=E({},R.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:g(/^!?\[(label)\]\((.*?)\)/).replace("label",R._label).getRegex(),reflink:g(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",R._label).getRegex()}),R.gfm=E({},R.normal,{escape:g(R.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.!#$%&'*+\/=?_`{\|}~-]+@)))/}),R.gfm.url=g(R.gfm.url,"i").replace("email",R.gfm._extended_email).getRegex(),R.breaks=E({},R.gfm,{br:g(R.br).replace("{2,}","*").getRegex(),text:g(R.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var P=function(){function r(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||e.defaults,this.options.tokenizer=this.options.tokenizer||new I,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 r={block:O.normal,inline:R.normal};this.options.pedantic?(r.block=O.pedantic,r.inline=R.pedantic):this.options.gfm&&(r.block=O.gfm,this.options.breaks?r.inline=R.breaks:r.inline=R.gfm),this.tokenizer.rules=r}r.lex=function(e,t){return new r(t).lex(e)},r.lexInline=function(e,t){return new r(t).inlineTokens(e)};var n,i,o,s=r.prototype;return s.lex=function(e){var t;for(e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens},s.blockTokens=function(e,t){var r,n,i,o,s=this;for(void 0===t&&(t=[]),this.options.pedantic&&(e=e.replace(/^ +$/gm,""));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((function(n){return!!(r=n.call({lexer:s},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)}))))if(r=this.tokenizer.space(e))e=e.substring(r.raw.length),1===r.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(r);else if(r=this.tokenizer.code(e))e=e.substring(r.raw.length),!(n=t[t.length-1])||"paragraph"!==n.type&&"text"!==n.type?t.push(r):(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(r=this.tokenizer.fences(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.heading(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.hr(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.blockquote(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.list(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.html(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.def(e))e=e.substring(r.raw.length),!(n=t[t.length-1])||"paragraph"!==n.type&&"text"!==n.type?this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title}):(n.raw+="\n"+r.raw,n.text+="\n"+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(r=this.tokenizer.table(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.lheading(e))e=e.substring(r.raw.length),t.push(r);else if(i=e,this.options.extensions&&this.options.extensions.startBlock&&function(){var t=1/0,r=e.slice(1),n=void 0;s.options.extensions.startBlock.forEach((function(e){"number"==typeof(n=e.call({lexer:this},r))&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(i=e.substring(0,t+1))}(),this.state.top&&(r=this.tokenizer.paragraph(i)))n=t[t.length-1],o&&"paragraph"===n.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r),o=i.length!==e.length,e=e.substring(r.raw.length);else if(r=this.tokenizer.text(e))e=e.substring(r.raw.length),(n=t[t.length-1])&&"text"===n.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r);else if(e){var a="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(a);break}throw new Error(a)}return this.state.top=!0,t},s.inline=function(e,t){this.inlineQueue.push({src:e,tokens:t})},s.inlineTokens=function(e,t){var r,n,i,o=this;void 0===t&&(t=[]);var s,a,c,l=e;if(this.tokens.links){var u=Object.keys(this.tokens.links);if(u.length>0)for(;null!=(s=this.tokenizer.rules.inline.reflinkSearch.exec(l));)u.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,s.index)+"["+T("a",s[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(s=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,s.index)+"["+T("a",s[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(s=this.tokenizer.rules.inline.escapedEmSt.exec(l));)l=l.slice(0,s.index)+"++"+l.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(a||(c=""),a=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((function(n){return!!(r=n.call({lexer:o},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)}))))if(r=this.tokenizer.escape(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.tag(e))e=e.substring(r.raw.length),(n=t[t.length-1])&&"text"===r.type&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);else if(r=this.tokenizer.link(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(r.raw.length),(n=t[t.length-1])&&"text"===r.type&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);else if(r=this.tokenizer.emStrong(e,l,c))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.codespan(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.br(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.del(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.autolink(e,B))e=e.substring(r.raw.length),t.push(r);else if(this.state.inLink||!(r=this.tokenizer.url(e,B))){if(i=e,this.options.extensions&&this.options.extensions.startInline&&function(){var t=1/0,r=e.slice(1),n=void 0;o.options.extensions.startInline.forEach((function(e){"number"==typeof(n=e.call({lexer:this},r))&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(i=e.substring(0,t+1))}(),r=this.tokenizer.inlineText(i,M))e=e.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(c=r.raw.slice(-1)),a=!0,(n=t[t.length-1])&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);else if(e){var d="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(d);break}throw new Error(d)}}else e=e.substring(r.raw.length),t.push(r);return t},n=r,o=[{key:"rules",get:function(){return{block:O,inline:R}}}],(i=null)&&t(n.prototype,i),o&&t(n,o),Object.defineProperty(n,"prototype",{writable:!1}),r}(),F=function(){function t(t){this.options=t||e.defaults}var r=t.prototype;return r.code=function(e,t,r){var n=(t||"").match(/\S*/)[0];if(this.options.highlight){var i=this.options.highlight(e,n);null!=i&&i!==e&&(r=!0,e=i)}return e=e.replace(/\n$/,"")+"\n",n?'<pre><code class="'+this.options.langPrefix+d(n,!0)+'">'+(r?e:d(e,!0))+"</code></pre>\n":"<pre><code>"+(r?e:d(e,!0))+"</code></pre>\n"},r.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},r.html=function(e){return e},r.heading=function(e,t,r,n){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+n.slug(r)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"},r.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},r.list=function(e,t,r){var n=t?"ol":"ul";return"<"+n+(t&&1!==r?' start="'+r+'"':"")+">\n"+e+"</"+n+">\n"},r.listitem=function(e){return"<li>"+e+"</li>\n"},r.checkbox=function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},r.paragraph=function(e){return"<p>"+e+"</p>\n"},r.table=function(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"},r.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},r.tablecell=function(e,t){var r=t.header?"th":"td";return(t.align?"<"+r+' align="'+t.align+'">':"<"+r+">")+e+"</"+r+">\n"},r.strong=function(e){return"<strong>"+e+"</strong>"},r.em=function(e){return"<em>"+e+"</em>"},r.codespan=function(e){return"<code>"+e+"</code>"},r.br=function(){return this.options.xhtml?"<br/>":"<br>"},r.del=function(e){return"<del>"+e+"</del>"},r.link=function(e,t,r){if(null===(e=v(this.options.sanitize,this.options.baseUrl,e)))return r;var n='<a href="'+d(e)+'"';return t&&(n+=' title="'+t+'"'),n+=">"+r+"</a>"},r.image=function(e,t,r){if(null===(e=v(this.options.sanitize,this.options.baseUrl,e)))return r;var n='<img src="'+e+'" alt="'+r+'"';return t&&(n+=' title="'+t+'"'),n+=this.options.xhtml?"/>":">"},r.text=function(e){return e},t}(),L=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,r){return""+r},t.image=function(e,t,r){return""+r},t.br=function(){return""},e}(),N=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var r=e,n=0;if(this.seen.hasOwnProperty(r)){n=this.seen[e];do{r=e+"-"+ ++n}while(this.seen.hasOwnProperty(r))}return t||(this.seen[e]=n,this.seen[r]=0),r},t.slug=function(e,t){void 0===t&&(t={});var r=this.serialize(e);return this.getNextSafeSlug(r,t.dryrun)},e}(),j=function(){function t(t){this.options=t||e.defaults,this.options.renderer=this.options.renderer||new F,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new L,this.slugger=new N}t.parse=function(e,r){return new t(r).parse(e)},t.parseInline=function(e,r){return new t(r).parseInline(e)};var r=t.prototype;return r.parse=function(e,t){void 0===t&&(t=!0);var r,n,i,o,s,a,c,l,u,d,h,p,g,m,b,v,y,_,w,C="",k=e.length;for(r=0;r<k;r++)if(d=e[r],!(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[d.type])||!1===(w=this.options.extensions.renderers[d.type].call({parser:this},d))&&["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(d.type))switch(d.type){case"space":continue;case"hr":C+=this.renderer.hr();continue;case"heading":C+=this.renderer.heading(this.parseInline(d.tokens),d.depth,f(this.parseInline(d.tokens,this.textRenderer)),this.slugger);continue;case"code":C+=this.renderer.code(d.text,d.lang,d.escaped);continue;case"table":for(l="",c="",o=d.header.length,n=0;n<o;n++)c+=this.renderer.tablecell(this.parseInline(d.header[n].tokens),{header:!0,align:d.align[n]});for(l+=this.renderer.tablerow(c),u="",o=d.rows.length,n=0;n<o;n++){for(c="",s=(a=d.rows[n]).length,i=0;i<s;i++)c+=this.renderer.tablecell(this.parseInline(a[i].tokens),{header:!1,align:d.align[i]});u+=this.renderer.tablerow(c)}C+=this.renderer.table(l,u);continue;case"blockquote":u=this.parse(d.tokens),C+=this.renderer.blockquote(u);continue;case"list":for(h=d.ordered,p=d.start,g=d.loose,o=d.items.length,u="",n=0;n<o;n++)v=(b=d.items[n]).checked,y=b.task,m="",b.task&&(_=this.renderer.checkbox(v),g?b.tokens.length>0&&"paragraph"===b.tokens[0].type?(b.tokens[0].text=_+" "+b.tokens[0].text,b.tokens[0].tokens&&b.tokens[0].tokens.length>0&&"text"===b.tokens[0].tokens[0].type&&(b.tokens[0].tokens[0].text=_+" "+b.tokens[0].tokens[0].text)):b.tokens.unshift({type:"text",text:_}):m+=_),m+=this.parse(b.tokens,g),u+=this.renderer.listitem(m,y,v);C+=this.renderer.list(u,h,p);continue;case"html":C+=this.renderer.html(d.text);continue;case"paragraph":C+=this.renderer.paragraph(this.parseInline(d.tokens));continue;case"text":for(u=d.tokens?this.parseInline(d.tokens):d.text;r+1<k&&"text"===e[r+1].type;)u+="\n"+((d=e[++r]).tokens?this.parseInline(d.tokens):d.text);C+=t?this.renderer.paragraph(u):u;continue;default:var E='Token with "'+d.type+'" type was not found.';if(this.options.silent)return void console.error(E);throw new Error(E)}else C+=w||"";return C},r.parseInline=function(e,t){t=t||this.renderer;var r,n,i,o="",s=e.length;for(r=0;r<s;r++)if(n=e[r],!(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[n.type])||!1===(i=this.options.extensions.renderers[n.type].call({parser:this},n))&&["escape","html","link","image","strong","em","codespan","br","del","text"].includes(n.type))switch(n.type){case"escape":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;case"text":o+=t.text(n.text);break;default:var a='Token with "'+n.type+'" type was not found.';if(this.options.silent)return void console.error(a);throw new Error(a)}else o+=i||"";return o},t}();function H(e,t,r){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if("function"==typeof t&&(r=t,t=null),x(t=E({},H.defaults,t||{})),r){var n,i=t.highlight;try{n=P.lex(e,t)}catch(e){return r(e)}var o=function(e){var o;if(!e)try{t.walkTokens&&H.walkTokens(n,t.walkTokens),o=j.parse(n,t)}catch(t){e=t}return t.highlight=i,e?r(e):r(null,o)};if(!i||i.length<3)return o();if(delete t.highlight,!n.length)return o();var s=0;return H.walkTokens(n,(function(e){"code"===e.type&&(s++,setTimeout((function(){i(e.text,e.lang,(function(t,r){if(t)return o(t);null!=r&&r!==e.text&&(e.text=r,e.escaped=!0),0==--s&&o()}))}),0))})),void(0===s&&o())}try{var a=P.lex(e,t);return t.walkTokens&&H.walkTokens(a,t.walkTokens),j.parse(a,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}}H.options=H.setOptions=function(t){var r;return E(H.defaults,t),r=H.defaults,e.defaults=r,H},H.getDefaults=i,H.defaults=e.defaults,H.use=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,i=E.apply(void 0,[{}].concat(t)),o=H.defaults.extensions||{renderers:{},childTokens:{}};t.forEach((function(e){if(e.extensions&&(n=!0,e.extensions.forEach((function(e){if(!e.name)throw new Error("extension name required");if(e.renderer){var t=o.renderers?o.renderers[e.name]:null;o.renderers[e.name]=t?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o=e.renderer.apply(this,n);return!1===o&&(o=t.apply(this,n)),o}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new 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)}))),e.renderer&&function(){var t=H.defaults.renderer||new F,r=function(r){var n=t[r];t[r]=function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];var a=e.renderer[r].apply(t,o);return!1===a&&(a=n.apply(t,o)),a}};for(var n in e.renderer)r(n);i.renderer=t}(),e.tokenizer&&function(){var t=H.defaults.tokenizer||new I,r=function(r){var n=t[r];t[r]=function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];var a=e.tokenizer[r].apply(t,o);return!1===a&&(a=n.apply(t,o)),a}};for(var n in e.tokenizer)r(n);i.tokenizer=t}(),e.walkTokens){var t=H.defaults.walkTokens;i.walkTokens=function(r){e.walkTokens.call(this,r),t&&t.call(this,r)}}n&&(i.extensions=o),H.setOptions(i)}))},H.walkTokens=function(e,t){for(var r,i=function(){var e=r.value;switch(t.call(H,e),e.type){case"table":for(var i,o=n(e.header);!(i=o()).done;){var s=i.value;H.walkTokens(s.tokens,t)}for(var a,c=n(e.rows);!(a=c()).done;)for(var l,u=n(a.value);!(l=u()).done;){var d=l.value;H.walkTokens(d.tokens,t)}break;case"list":H.walkTokens(e.items,t);break;default:H.defaults.extensions&&H.defaults.extensions.childTokens&&H.defaults.extensions.childTokens[e.type]?H.defaults.extensions.childTokens[e.type].forEach((function(r){H.walkTokens(e[r],t)})):e.tokens&&H.walkTokens(e.tokens,t)}},o=n(e);!(r=o()).done;)i()},H.parseInline=function(e,t){if(null==e)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");x(t=E({},H.defaults,t||{}));try{var r=P.lexInline(e,t);return t.walkTokens&&H.walkTokens(r,t.walkTokens),j.parseInline(r,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}},H.Parser=j,H.parser=j.parse,H.Renderer=F,H.TextRenderer=L,H.Lexer=P,H.lexer=P.lex,H.Tokenizer=I,H.Slugger=N,H.parse=H;var U=H.options,z=H.setOptions,W=H.use,V=H.walkTokens,$=H.parseInline,G=H,q=j.parse,K=P.lex;e.Lexer=P,e.Parser=j,e.Renderer=F,e.Slugger=N,e.TextRenderer=L,e.Tokenizer=I,e.getDefaults=i,e.lexer=K,e.marked=H,e.options=U,e.parse=G,e.parseInline=$,e.parser=q,e.setOptions=z,e.use=W,e.walkTokens=V,Object.defineProperty(e,"__esModule",{value:!0})}(t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1);n.__exportStar(r(584),t),n.__exportStar(r(585),t),n.__exportStar(r(586),t),n.__exportStar(r(587),t),n.__exportStar(r(588),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IBrowserFileSystemRegistry=t.IFileServiceClient=void 0;const n=r(0);t.IFileServiceClient=n.IFileServiceClient,t.IBrowserFileSystemRegistry=Symbol("IBrowserFileSystemRegistry")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isErrnoException=t.notEmpty=t.containsExtraFileMethod=t.FileSystemError=t.markAsFileSystemProviderError=t.createFileSystemProviderError=t.FileOperationError=t.FileSystemProviderError=t.FileSystemProviderErrorCode=t.FileAccess=t.IFileService=t.IShadowFileProvider=t.IDiskFileProvider=t.FileStat=t.FileType=void 0;const n=r(1),i=r(0);var o,s=r(159);Object.defineProperty(t,"FileType",{enumerable:!0,get:function(){return s.FileType}}),Object.defineProperty(t,"FileStat",{enumerable:!0,get:function(){return s.FileStat}}),n.__exportStar(r(160),t),t.IDiskFileProvider=Symbol("IDiskFileProvider"),t.IShadowFileProvider=Symbol("IShadowFileProvider"),t.IFileService=Symbol("IFileService"),function(e){let t;!function(e){e.F_OK=0,e.R_OK=4,e.W_OK=2,e.X_OK=1}(t=e.Constants||(e.Constants={}))}(t.FileAccess||(t.FileAccess={})),function(e){e.FileExists="EntryExists",e.FileNotFound="EntryNotFound",e.FileNotADirectory="EntryNotADirectory",e.FileIsADirectory="EntryIsADirectory",e.FileIsOutOfSync="FileIsOutOfSync",e.FileExceedsMemoryLimit="EntryExceedsMemoryLimit",e.FileTooLarge="EntryTooLarge",e.FileWriteLocked="EntryWriteLocked",e.NoPermissions="NoPermissions",e.Unavailable="Unavailable",e.Unknown="Unknown"}(o=t.FileSystemProviderErrorCode||(t.FileSystemProviderErrorCode={}));class a extends Error{static declare(e,t){return Object.assign((...r)=>l(t(...r),e),{is:t=>{var r;return null===(r=t.stack)||void 0===r?void 0:r.startsWith(e)}})}constructor(e,t){super(e),this.code=t}is(e){return this.name===e.name}}t.FileSystemProviderError=a;class c extends Error{constructor(e,t,r){super(e),this.fileOperationResult=t,this.options=r}static isFileOperationError(e){return e instanceof Error&&!(0,i.isUndefinedOrNull)(e.fileOperationResult)}}function l(e,t){const r=new a(e.toString(),t);return u(r,t),r}function u(e,t){return e.name=t?t+" (FileSystemError)":"FileSystemError",e}t.FileOperationError=c,t.createFileSystemProviderError=l,t.markAsFileSystemProviderError=u,function(e){e.FileNotFound=a.declare(o.FileNotFound,(e,t)=>`${t?t+" ":""} '${e}' is not found.`),e.FileExists=a.declare(o.FileExists,(e,t)=>`${t?t+" ":""}'${e}' already exists.`),e.FileNotADirectory=a.declare(o.FileNotADirectory,(e,t)=>`${t?t+" ":""}'${e}' is not a directory.`),e.FileIsADirectory=a.declare(o.FileIsADirectory,(e,t)=>`${t?t+" ":""}'${e}' is a directory.`),e.FileIsOutOfSync=a.declare(o.FileIsOutOfSync,(e,t)=>`${t?t+" ":""}'${e}' is out of sync.`),e.FileExceedsMemoryLimit=a.declare(o.FileExceedsMemoryLimit,(e,t)=>`${t?t+" ":""}'${e}' is exceeds memory limit.`),e.FileTooLarge=a.declare(o.FileTooLarge,(e,t)=>`${t?t+" ":""}'${e}' is too large.`),e.FileWriteLocked=a.declare(o.FileWriteLocked,(e,t)=>`${t?t+" ":""}'${e}' is locked.`),e.FileIsNoPermissions=a.declare(o.NoPermissions,(e,t)=>`${t?t+" ":""}'${e}' is no permissions.`),e.Unavailable=a.declare(o.Unavailable,(e,t)=>`${t?t+" ":""}'${e}' is unavailable.`),e.Unknown=a.declare(o.Unknown,(e,t)=>`${t?t+" ":""}'${e}' is unkonw.`)}(t.FileSystemError||(t.FileSystemError={})),t.containsExtraFileMethod=function(e,t){return(0,i.hasProperty)(e,t)&&(0,i.isFunction)(e[t])},t.notEmpty=function(e){return void 0!==e},t.isErrnoException=function(e){return void 0!==e.code&&void 0!==e.errno}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.INsfw=void 0,function(e){let t;!function(e){e[e.CREATED=0]="CREATED",e[e.DELETED=1]="DELETED",e[e.MODIFIED=2]="MODIFIED",e[e.RENAMED=3]="RENAMED"}(t=e.actions||(e.actions={}))}(t.INsfw||(t.INsfw={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFileTypeByExt=t.EXT_LIST_IMAGE=t.EXT_LIST_VIDEO=void 0,t.EXT_LIST_VIDEO=["mp4","webm","mkv","mov","mts","flv","avi","wmv"],t.EXT_LIST_IMAGE=["png","gif","jpg","jpeg","svg","bmp","avif","cr2","cr3","dng","flif","heic","icns","jxl","jpm","jpx","nef","raf","rw2","tif","orf","webp","apng"],t.getFileTypeByExt=function(e){let r="text";return e?(-1!==t.EXT_LIST_IMAGE.indexOf(e)?r="image":-1!==t.EXT_LIST_VIDEO.indexOf(e)?r="video":e&&-1===["xml"].indexOf(e)&&(r="binary"),r):r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileExtServicePath=t.FileWatcherServicePath=t.ShadowFileServicePath=t.DiskFileServicePath=t.FileServicePath=void 0,t.FileServicePath="FileService",t.DiskFileServicePath="DiskFileService",t.ShadowFileServicePath="ShadowFileService",t.FileWatcherServicePath="FileWatcherService",t.FileExtServicePath="FileExtServicePath"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndentAction=t.CodeActionTriggerType=t.Emitter=t.EndOfLineSequence=void 0;var n=r(245);Object.defineProperty(t,"EndOfLineSequence",{enumerable:!0,get:function(){return n.EndOfLineSequence}});var i=r(61);Object.defineProperty(t,"Emitter",{enumerable:!0,get:function(){return i.Emitter}});var o=r(125);Object.defineProperty(t,"CodeActionTriggerType",{enumerable:!0,get:function(){return o.CodeActionTriggerType}}),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(t.IndentAction||(t.IndentAction={}))},function(e,t,r){"use strict";function n(e){return"string"==typeof e}function i(e){return void 0===e}function o(e){return i(e)||null===e}function s(e){return"function"==typeof e}function a(e,t){if(n(t)){if(typeof e!==t)throw new Error("argument does not match constraint: typeof "+t)}else if(s(t)){try{if(e instanceof t)return}catch(e){}if(!o(e)&&e.constructor===t)return;if(1===t.length&&!0===t.call(void 0,e))return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}Object.defineProperty(t,"__esModule",{value:!0}),t.withNullAsUndefined=t.validateConstraint=t.validateConstraints=t.isFunction=t.assertIsDefined=t.assertType=t.isUndefinedOrNull=t.isDefined=t.isUndefined=t.isBoolean=t.isIterable=t.isNumber=t.isTypedArray=t.isObject=t.isString=void 0,t.isString=n,t.isObject=function(e){return!("object"!=typeof e||null===e||Array.isArray(e)||e instanceof RegExp||e instanceof Date)},t.isTypedArray=function(e){const t=Object.getPrototypeOf(Uint8Array);return"object"==typeof e&&e instanceof t},t.isNumber=function(e){return"number"==typeof e&&!isNaN(e)},t.isIterable=function(e){return!!e&&"function"==typeof e[Symbol.iterator]},t.isBoolean=function(e){return!0===e||!1===e},t.isUndefined=i,t.isDefined=function(e){return!o(e)},t.isUndefinedOrNull=o,t.assertType=function(e,t){if(!e)throw new Error(t?`Unexpected type, expected '${t}'`:"Unexpected type")},t.assertIsDefined=function(e){if(o(e))throw new Error("Assertion Failed: argument is undefined or null");return e},t.isFunction=s,t.validateConstraints=function(e,t){const r=Math.min(e.length,t.length);for(let n=0;n<r;n++)a(e[n],t[n])},t.validateConstraint=a,t.withNullAsUndefined=function(e){return null===e?void 0:e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.once=void 0,t.once=function(e){const t=this;let r,n=!1;return function(){return n||(n=!0,r=e.apply(t,arguments)),r}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StopWatch=void 0;const n=r(31),i=n.globals.performance&&"function"==typeof n.globals.performance.now;class o{constructor(e){this._highResolution=i&&e,this._startTime=this._now(),this._stopTime=-1}static create(e=!0){return new o(e)}stop(){this._stopTime=this._now()}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?n.globals.performance.now():Date.now()}}t.StopWatch=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CSSIcon=t.Codicon=t.getCodiconAriaLabel=void 0,t.getCodiconAriaLabel=function(e){return e?e.replace(/\$\((.*?)\)/g,(e,t)=>` ${t} `).trim():""};class n{constructor(e,t,r){this.id=e,this.definition=t,this.description=r,n._allCodicons.push(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}static getAll(){return n._allCodicons}}t.Codicon=n,n._allCodicons=[],n.add=new n("add",{fontCharacter:"\\ea60"}),n.plus=new n("plus",n.add.definition),n.gistNew=new n("gist-new",n.add.definition),n.repoCreate=new n("repo-create",n.add.definition),n.lightbulb=new n("lightbulb",{fontCharacter:"\\ea61"}),n.lightBulb=new n("light-bulb",{fontCharacter:"\\ea61"}),n.repo=new n("repo",{fontCharacter:"\\ea62"}),n.repoDelete=new n("repo-delete",{fontCharacter:"\\ea62"}),n.gistFork=new n("gist-fork",{fontCharacter:"\\ea63"}),n.repoForked=new n("repo-forked",{fontCharacter:"\\ea63"}),n.gitPullRequest=new n("git-pull-request",{fontCharacter:"\\ea64"}),n.gitPullRequestAbandoned=new n("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),n.recordKeys=new n("record-keys",{fontCharacter:"\\ea65"}),n.keyboard=new n("keyboard",{fontCharacter:"\\ea65"}),n.tag=new n("tag",{fontCharacter:"\\ea66"}),n.tagAdd=new n("tag-add",{fontCharacter:"\\ea66"}),n.tagRemove=new n("tag-remove",{fontCharacter:"\\ea66"}),n.person=new n("person",{fontCharacter:"\\ea67"}),n.personFollow=new n("person-follow",{fontCharacter:"\\ea67"}),n.personOutline=new n("person-outline",{fontCharacter:"\\ea67"}),n.personFilled=new n("person-filled",{fontCharacter:"\\ea67"}),n.gitBranch=new n("git-branch",{fontCharacter:"\\ea68"}),n.gitBranchCreate=new n("git-branch-create",{fontCharacter:"\\ea68"}),n.gitBranchDelete=new n("git-branch-delete",{fontCharacter:"\\ea68"}),n.sourceControl=new n("source-control",{fontCharacter:"\\ea68"}),n.mirror=new n("mirror",{fontCharacter:"\\ea69"}),n.mirrorPublic=new n("mirror-public",{fontCharacter:"\\ea69"}),n.star=new n("star",{fontCharacter:"\\ea6a"}),n.starAdd=new n("star-add",{fontCharacter:"\\ea6a"}),n.starDelete=new n("star-delete",{fontCharacter:"\\ea6a"}),n.starEmpty=new n("star-empty",{fontCharacter:"\\ea6a"}),n.comment=new n("comment",{fontCharacter:"\\ea6b"}),n.commentAdd=new n("comment-add",{fontCharacter:"\\ea6b"}),n.alert=new n("alert",{fontCharacter:"\\ea6c"}),n.warning=new n("warning",{fontCharacter:"\\ea6c"}),n.search=new n("search",{fontCharacter:"\\ea6d"}),n.searchSave=new n("search-save",{fontCharacter:"\\ea6d"}),n.logOut=new n("log-out",{fontCharacter:"\\ea6e"}),n.signOut=new n("sign-out",{fontCharacter:"\\ea6e"}),n.logIn=new n("log-in",{fontCharacter:"\\ea6f"}),n.signIn=new n("sign-in",{fontCharacter:"\\ea6f"}),n.eye=new n("eye",{fontCharacter:"\\ea70"}),n.eyeUnwatch=new n("eye-unwatch",{fontCharacter:"\\ea70"}),n.eyeWatch=new n("eye-watch",{fontCharacter:"\\ea70"}),n.circleFilled=new n("circle-filled",{fontCharacter:"\\ea71"}),n.primitiveDot=new n("primitive-dot",n.circleFilled.definition),n.closeDirty=new n("close-dirty",n.circleFilled.definition),n.debugBreakpoint=new n("debug-breakpoint",n.circleFilled.definition),n.debugBreakpointDisabled=new n("debug-breakpoint-disabled",n.circleFilled.definition),n.debugHint=new n("debug-hint",n.circleFilled.definition),n.primitiveSquare=new n("primitive-square",{fontCharacter:"\\ea72"}),n.edit=new n("edit",{fontCharacter:"\\ea73"}),n.pencil=new n("pencil",{fontCharacter:"\\ea73"}),n.info=new n("info",{fontCharacter:"\\ea74"}),n.issueOpened=new n("issue-opened",{fontCharacter:"\\ea74"}),n.gistPrivate=new n("gist-private",{fontCharacter:"\\ea75"}),n.gitForkPrivate=new n("git-fork-private",{fontCharacter:"\\ea75"}),n.lock=new n("lock",{fontCharacter:"\\ea75"}),n.mirrorPrivate=new n("mirror-private",{fontCharacter:"\\ea75"}),n.close=new n("close",{fontCharacter:"\\ea76"}),n.removeClose=new n("remove-close",{fontCharacter:"\\ea76"}),n.x=new n("x",{fontCharacter:"\\ea76"}),n.repoSync=new n("repo-sync",{fontCharacter:"\\ea77"}),n.sync=new n("sync",{fontCharacter:"\\ea77"}),n.clone=new n("clone",{fontCharacter:"\\ea78"}),n.desktopDownload=new n("desktop-download",{fontCharacter:"\\ea78"}),n.beaker=new n("beaker",{fontCharacter:"\\ea79"}),n.microscope=new n("microscope",{fontCharacter:"\\ea79"}),n.vm=new n("vm",{fontCharacter:"\\ea7a"}),n.deviceDesktop=new n("device-desktop",{fontCharacter:"\\ea7a"}),n.file=new n("file",{fontCharacter:"\\ea7b"}),n.fileText=new n("file-text",{fontCharacter:"\\ea7b"}),n.more=new n("more",{fontCharacter:"\\ea7c"}),n.ellipsis=new n("ellipsis",{fontCharacter:"\\ea7c"}),n.kebabHorizontal=new n("kebab-horizontal",{fontCharacter:"\\ea7c"}),n.mailReply=new n("mail-reply",{fontCharacter:"\\ea7d"}),n.reply=new n("reply",{fontCharacter:"\\ea7d"}),n.organization=new n("organization",{fontCharacter:"\\ea7e"}),n.organizationFilled=new n("organization-filled",{fontCharacter:"\\ea7e"}),n.organizationOutline=new n("organization-outline",{fontCharacter:"\\ea7e"}),n.newFile=new n("new-file",{fontCharacter:"\\ea7f"}),n.fileAdd=new n("file-add",{fontCharacter:"\\ea7f"}),n.newFolder=new n("new-folder",{fontCharacter:"\\ea80"}),n.fileDirectoryCreate=new n("file-directory-create",{fontCharacter:"\\ea80"}),n.trash=new n("trash",{fontCharacter:"\\ea81"}),n.trashcan=new n("trashcan",{fontCharacter:"\\ea81"}),n.history=new n("history",{fontCharacter:"\\ea82"}),n.clock=new n("clock",{fontCharacter:"\\ea82"}),n.folder=new n("folder",{fontCharacter:"\\ea83"}),n.fileDirectory=new n("file-directory",{fontCharacter:"\\ea83"}),n.symbolFolder=new n("symbol-folder",{fontCharacter:"\\ea83"}),n.logoGithub=new n("logo-github",{fontCharacter:"\\ea84"}),n.markGithub=new n("mark-github",{fontCharacter:"\\ea84"}),n.github=new n("github",{fontCharacter:"\\ea84"}),n.terminal=new n("terminal",{fontCharacter:"\\ea85"}),n.console=new n("console",{fontCharacter:"\\ea85"}),n.repl=new n("repl",{fontCharacter:"\\ea85"}),n.zap=new n("zap",{fontCharacter:"\\ea86"}),n.symbolEvent=new n("symbol-event",{fontCharacter:"\\ea86"}),n.error=new n("error",{fontCharacter:"\\ea87"}),n.stop=new n("stop",{fontCharacter:"\\ea87"}),n.variable=new n("variable",{fontCharacter:"\\ea88"}),n.symbolVariable=new n("symbol-variable",{fontCharacter:"\\ea88"}),n.array=new n("array",{fontCharacter:"\\ea8a"}),n.symbolArray=new n("symbol-array",{fontCharacter:"\\ea8a"}),n.symbolModule=new n("symbol-module",{fontCharacter:"\\ea8b"}),n.symbolPackage=new n("symbol-package",{fontCharacter:"\\ea8b"}),n.symbolNamespace=new n("symbol-namespace",{fontCharacter:"\\ea8b"}),n.symbolObject=new n("symbol-object",{fontCharacter:"\\ea8b"}),n.symbolMethod=new n("symbol-method",{fontCharacter:"\\ea8c"}),n.symbolFunction=new n("symbol-function",{fontCharacter:"\\ea8c"}),n.symbolConstructor=new n("symbol-constructor",{fontCharacter:"\\ea8c"}),n.symbolBoolean=new n("symbol-boolean",{fontCharacter:"\\ea8f"}),n.symbolNull=new n("symbol-null",{fontCharacter:"\\ea8f"}),n.symbolNumeric=new n("symbol-numeric",{fontCharacter:"\\ea90"}),n.symbolNumber=new n("symbol-number",{fontCharacter:"\\ea90"}),n.symbolStructure=new n("symbol-structure",{fontCharacter:"\\ea91"}),n.symbolStruct=new n("symbol-struct",{fontCharacter:"\\ea91"}),n.symbolParameter=new n("symbol-parameter",{fontCharacter:"\\ea92"}),n.symbolTypeParameter=new n("symbol-type-parameter",{fontCharacter:"\\ea92"}),n.symbolKey=new n("symbol-key",{fontCharacter:"\\ea93"}),n.symbolText=new n("symbol-text",{fontCharacter:"\\ea93"}),n.symbolReference=new n("symbol-reference",{fontCharacter:"\\ea94"}),n.goToFile=new n("go-to-file",{fontCharacter:"\\ea94"}),n.symbolEnum=new n("symbol-enum",{fontCharacter:"\\ea95"}),n.symbolValue=new n("symbol-value",{fontCharacter:"\\ea95"}),n.symbolRuler=new n("symbol-ruler",{fontCharacter:"\\ea96"}),n.symbolUnit=new n("symbol-unit",{fontCharacter:"\\ea96"}),n.activateBreakpoints=new n("activate-breakpoints",{fontCharacter:"\\ea97"}),n.archive=new n("archive",{fontCharacter:"\\ea98"}),n.arrowBoth=new n("arrow-both",{fontCharacter:"\\ea99"}),n.arrowDown=new n("arrow-down",{fontCharacter:"\\ea9a"}),n.arrowLeft=new n("arrow-left",{fontCharacter:"\\ea9b"}),n.arrowRight=new n("arrow-right",{fontCharacter:"\\ea9c"}),n.arrowSmallDown=new n("arrow-small-down",{fontCharacter:"\\ea9d"}),n.arrowSmallLeft=new n("arrow-small-left",{fontCharacter:"\\ea9e"}),n.arrowSmallRight=new n("arrow-small-right",{fontCharacter:"\\ea9f"}),n.arrowSmallUp=new n("arrow-small-up",{fontCharacter:"\\eaa0"}),n.arrowUp=new n("arrow-up",{fontCharacter:"\\eaa1"}),n.bell=new n("bell",{fontCharacter:"\\eaa2"}),n.bold=new n("bold",{fontCharacter:"\\eaa3"}),n.book=new n("book",{fontCharacter:"\\eaa4"}),n.bookmark=new n("bookmark",{fontCharacter:"\\eaa5"}),n.debugBreakpointConditionalUnverified=new n("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),n.debugBreakpointConditional=new n("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),n.debugBreakpointConditionalDisabled=new n("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),n.debugBreakpointDataUnverified=new n("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),n.debugBreakpointData=new n("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),n.debugBreakpointDataDisabled=new n("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),n.debugBreakpointLogUnverified=new n("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),n.debugBreakpointLog=new n("debug-breakpoint-log",{fontCharacter:"\\eaab"}),n.debugBreakpointLogDisabled=new n("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),n.briefcase=new n("briefcase",{fontCharacter:"\\eaac"}),n.broadcast=new n("broadcast",{fontCharacter:"\\eaad"}),n.browser=new n("browser",{fontCharacter:"\\eaae"}),n.bug=new n("bug",{fontCharacter:"\\eaaf"}),n.calendar=new n("calendar",{fontCharacter:"\\eab0"}),n.caseSensitive=new n("case-sensitive",{fontCharacter:"\\eab1"}),n.check=new n("check",{fontCharacter:"\\eab2"}),n.checklist=new n("checklist",{fontCharacter:"\\eab3"}),n.chevronDown=new n("chevron-down",{fontCharacter:"\\eab4"}),n.dropDownButton=new n("drop-down-button",n.chevronDown.definition),n.chevronLeft=new n("chevron-left",{fontCharacter:"\\eab5"}),n.chevronRight=new n("chevron-right",{fontCharacter:"\\eab6"}),n.chevronUp=new n("chevron-up",{fontCharacter:"\\eab7"}),n.chromeClose=new n("chrome-close",{fontCharacter:"\\eab8"}),n.chromeMaximize=new n("chrome-maximize",{fontCharacter:"\\eab9"}),n.chromeMinimize=new n("chrome-minimize",{fontCharacter:"\\eaba"}),n.chromeRestore=new n("chrome-restore",{fontCharacter:"\\eabb"}),n.circle=new n("circle",{fontCharacter:"\\eabc"}),n.circleOutline=new n("circle-outline",n.circle.definition),n.debugBreakpointUnverified=new n("debug-breakpoint-unverified",n.circle.definition),n.circleSlash=new n("circle-slash",{fontCharacter:"\\eabd"}),n.circuitBoard=new n("circuit-board",{fontCharacter:"\\eabe"}),n.clearAll=new n("clear-all",{fontCharacter:"\\eabf"}),n.clippy=new n("clippy",{fontCharacter:"\\eac0"}),n.closeAll=new n("close-all",{fontCharacter:"\\eac1"}),n.cloudDownload=new n("cloud-download",{fontCharacter:"\\eac2"}),n.cloudUpload=new n("cloud-upload",{fontCharacter:"\\eac3"}),n.code=new n("code",{fontCharacter:"\\eac4"}),n.collapseAll=new n("collapse-all",{fontCharacter:"\\eac5"}),n.colorMode=new n("color-mode",{fontCharacter:"\\eac6"}),n.commentDiscussion=new n("comment-discussion",{fontCharacter:"\\eac7"}),n.compareChanges=new n("compare-changes",{fontCharacter:"\\eafd"}),n.creditCard=new n("credit-card",{fontCharacter:"\\eac9"}),n.dash=new n("dash",{fontCharacter:"\\eacc"}),n.dashboard=new n("dashboard",{fontCharacter:"\\eacd"}),n.database=new n("database",{fontCharacter:"\\eace"}),n.debugContinue=new n("debug-continue",{fontCharacter:"\\eacf"}),n.debugDisconnect=new n("debug-disconnect",{fontCharacter:"\\ead0"}),n.debugPause=new n("debug-pause",{fontCharacter:"\\ead1"}),n.debugRestart=new n("debug-restart",{fontCharacter:"\\ead2"}),n.debugStart=new n("debug-start",{fontCharacter:"\\ead3"}),n.debugStepInto=new n("debug-step-into",{fontCharacter:"\\ead4"}),n.debugStepOut=new n("debug-step-out",{fontCharacter:"\\ead5"}),n.debugStepOver=new n("debug-step-over",{fontCharacter:"\\ead6"}),n.debugStop=new n("debug-stop",{fontCharacter:"\\ead7"}),n.debug=new n("debug",{fontCharacter:"\\ead8"}),n.deviceCameraVideo=new n("device-camera-video",{fontCharacter:"\\ead9"}),n.deviceCamera=new n("device-camera",{fontCharacter:"\\eada"}),n.deviceMobile=new n("device-mobile",{fontCharacter:"\\eadb"}),n.diffAdded=new n("diff-added",{fontCharacter:"\\eadc"}),n.diffIgnored=new n("diff-ignored",{fontCharacter:"\\eadd"}),n.diffModified=new n("diff-modified",{fontCharacter:"\\eade"}),n.diffRemoved=new n("diff-removed",{fontCharacter:"\\eadf"}),n.diffRenamed=new n("diff-renamed",{fontCharacter:"\\eae0"}),n.diff=new n("diff",{fontCharacter:"\\eae1"}),n.discard=new n("discard",{fontCharacter:"\\eae2"}),n.editorLayout=new n("editor-layout",{fontCharacter:"\\eae3"}),n.emptyWindow=new n("empty-window",{fontCharacter:"\\eae4"}),n.exclude=new n("exclude",{fontCharacter:"\\eae5"}),n.extensions=new n("extensions",{fontCharacter:"\\eae6"}),n.eyeClosed=new n("eye-closed",{fontCharacter:"\\eae7"}),n.fileBinary=new n("file-binary",{fontCharacter:"\\eae8"}),n.fileCode=new n("file-code",{fontCharacter:"\\eae9"}),n.fileMedia=new n("file-media",{fontCharacter:"\\eaea"}),n.filePdf=new n("file-pdf",{fontCharacter:"\\eaeb"}),n.fileSubmodule=new n("file-submodule",{fontCharacter:"\\eaec"}),n.fileSymlinkDirectory=new n("file-symlink-directory",{fontCharacter:"\\eaed"}),n.fileSymlinkFile=new n("file-symlink-file",{fontCharacter:"\\eaee"}),n.fileZip=new n("file-zip",{fontCharacter:"\\eaef"}),n.files=new n("files",{fontCharacter:"\\eaf0"}),n.filter=new n("filter",{fontCharacter:"\\eaf1"}),n.flame=new n("flame",{fontCharacter:"\\eaf2"}),n.foldDown=new n("fold-down",{fontCharacter:"\\eaf3"}),n.foldUp=new n("fold-up",{fontCharacter:"\\eaf4"}),n.fold=new n("fold",{fontCharacter:"\\eaf5"}),n.folderActive=new n("folder-active",{fontCharacter:"\\eaf6"}),n.folderOpened=new n("folder-opened",{fontCharacter:"\\eaf7"}),n.gear=new n("gear",{fontCharacter:"\\eaf8"}),n.gift=new n("gift",{fontCharacter:"\\eaf9"}),n.gistSecret=new n("gist-secret",{fontCharacter:"\\eafa"}),n.gist=new n("gist",{fontCharacter:"\\eafb"}),n.gitCommit=new n("git-commit",{fontCharacter:"\\eafc"}),n.gitCompare=new n("git-compare",{fontCharacter:"\\eafd"}),n.gitMerge=new n("git-merge",{fontCharacter:"\\eafe"}),n.githubAction=new n("github-action",{fontCharacter:"\\eaff"}),n.githubAlt=new n("github-alt",{fontCharacter:"\\eb00"}),n.globe=new n("globe",{fontCharacter:"\\eb01"}),n.grabber=new n("grabber",{fontCharacter:"\\eb02"}),n.graph=new n("graph",{fontCharacter:"\\eb03"}),n.gripper=new n("gripper",{fontCharacter:"\\eb04"}),n.heart=new n("heart",{fontCharacter:"\\eb05"}),n.home=new n("home",{fontCharacter:"\\eb06"}),n.horizontalRule=new n("horizontal-rule",{fontCharacter:"\\eb07"}),n.hubot=new n("hubot",{fontCharacter:"\\eb08"}),n.inbox=new n("inbox",{fontCharacter:"\\eb09"}),n.issueClosed=new n("issue-closed",{fontCharacter:"\\eba4"}),n.issueReopened=new n("issue-reopened",{fontCharacter:"\\eb0b"}),n.issues=new n("issues",{fontCharacter:"\\eb0c"}),n.italic=new n("italic",{fontCharacter:"\\eb0d"}),n.jersey=new n("jersey",{fontCharacter:"\\eb0e"}),n.json=new n("json",{fontCharacter:"\\eb0f"}),n.kebabVertical=new n("kebab-vertical",{fontCharacter:"\\eb10"}),n.key=new n("key",{fontCharacter:"\\eb11"}),n.law=new n("law",{fontCharacter:"\\eb12"}),n.lightbulbAutofix=new n("lightbulb-autofix",{fontCharacter:"\\eb13"}),n.linkExternal=new n("link-external",{fontCharacter:"\\eb14"}),n.link=new n("link",{fontCharacter:"\\eb15"}),n.listOrdered=new n("list-ordered",{fontCharacter:"\\eb16"}),n.listUnordered=new n("list-unordered",{fontCharacter:"\\eb17"}),n.liveShare=new n("live-share",{fontCharacter:"\\eb18"}),n.loading=new n("loading",{fontCharacter:"\\eb19"}),n.location=new n("location",{fontCharacter:"\\eb1a"}),n.mailRead=new n("mail-read",{fontCharacter:"\\eb1b"}),n.mail=new n("mail",{fontCharacter:"\\eb1c"}),n.markdown=new n("markdown",{fontCharacter:"\\eb1d"}),n.megaphone=new n("megaphone",{fontCharacter:"\\eb1e"}),n.mention=new n("mention",{fontCharacter:"\\eb1f"}),n.milestone=new n("milestone",{fontCharacter:"\\eb20"}),n.mortarBoard=new n("mortar-board",{fontCharacter:"\\eb21"}),n.move=new n("move",{fontCharacter:"\\eb22"}),n.multipleWindows=new n("multiple-windows",{fontCharacter:"\\eb23"}),n.mute=new n("mute",{fontCharacter:"\\eb24"}),n.noNewline=new n("no-newline",{fontCharacter:"\\eb25"}),n.note=new n("note",{fontCharacter:"\\eb26"}),n.octoface=new n("octoface",{fontCharacter:"\\eb27"}),n.openPreview=new n("open-preview",{fontCharacter:"\\eb28"}),n.package_=new n("package",{fontCharacter:"\\eb29"}),n.paintcan=new n("paintcan",{fontCharacter:"\\eb2a"}),n.pin=new n("pin",{fontCharacter:"\\eb2b"}),n.play=new n("play",{fontCharacter:"\\eb2c"}),n.run=new n("run",{fontCharacter:"\\eb2c"}),n.plug=new n("plug",{fontCharacter:"\\eb2d"}),n.preserveCase=new n("preserve-case",{fontCharacter:"\\eb2e"}),n.preview=new n("preview",{fontCharacter:"\\eb2f"}),n.project=new n("project",{fontCharacter:"\\eb30"}),n.pulse=new n("pulse",{fontCharacter:"\\eb31"}),n.question=new n("question",{fontCharacter:"\\eb32"}),n.quote=new n("quote",{fontCharacter:"\\eb33"}),n.radioTower=new n("radio-tower",{fontCharacter:"\\eb34"}),n.reactions=new n("reactions",{fontCharacter:"\\eb35"}),n.references=new n("references",{fontCharacter:"\\eb36"}),n.refresh=new n("refresh",{fontCharacter:"\\eb37"}),n.regex=new n("regex",{fontCharacter:"\\eb38"}),n.remoteExplorer=new n("remote-explorer",{fontCharacter:"\\eb39"}),n.remote=new n("remote",{fontCharacter:"\\eb3a"}),n.remove=new n("remove",{fontCharacter:"\\eb3b"}),n.replaceAll=new n("replace-all",{fontCharacter:"\\eb3c"}),n.replace=new n("replace",{fontCharacter:"\\eb3d"}),n.repoClone=new n("repo-clone",{fontCharacter:"\\eb3e"}),n.repoForcePush=new n("repo-force-push",{fontCharacter:"\\eb3f"}),n.repoPull=new n("repo-pull",{fontCharacter:"\\eb40"}),n.repoPush=new n("repo-push",{fontCharacter:"\\eb41"}),n.report=new n("report",{fontCharacter:"\\eb42"}),n.requestChanges=new n("request-changes",{fontCharacter:"\\eb43"}),n.rocket=new n("rocket",{fontCharacter:"\\eb44"}),n.rootFolderOpened=new n("root-folder-opened",{fontCharacter:"\\eb45"}),n.rootFolder=new n("root-folder",{fontCharacter:"\\eb46"}),n.rss=new n("rss",{fontCharacter:"\\eb47"}),n.ruby=new n("ruby",{fontCharacter:"\\eb48"}),n.saveAll=new n("save-all",{fontCharacter:"\\eb49"}),n.saveAs=new n("save-as",{fontCharacter:"\\eb4a"}),n.save=new n("save",{fontCharacter:"\\eb4b"}),n.screenFull=new n("screen-full",{fontCharacter:"\\eb4c"}),n.screenNormal=new n("screen-normal",{fontCharacter:"\\eb4d"}),n.searchStop=new n("search-stop",{fontCharacter:"\\eb4e"}),n.server=new n("server",{fontCharacter:"\\eb50"}),n.settingsGear=new n("settings-gear",{fontCharacter:"\\eb51"}),n.settings=new n("settings",{fontCharacter:"\\eb52"}),n.shield=new n("shield",{fontCharacter:"\\eb53"}),n.smiley=new n("smiley",{fontCharacter:"\\eb54"}),n.sortPrecedence=new n("sort-precedence",{fontCharacter:"\\eb55"}),n.splitHorizontal=new n("split-horizontal",{fontCharacter:"\\eb56"}),n.splitVertical=new n("split-vertical",{fontCharacter:"\\eb57"}),n.squirrel=new n("squirrel",{fontCharacter:"\\eb58"}),n.starFull=new n("star-full",{fontCharacter:"\\eb59"}),n.starHalf=new n("star-half",{fontCharacter:"\\eb5a"}),n.symbolClass=new n("symbol-class",{fontCharacter:"\\eb5b"}),n.symbolColor=new n("symbol-color",{fontCharacter:"\\eb5c"}),n.symbolCustomColor=new n("symbol-customcolor",{fontCharacter:"\\eb5c"}),n.symbolConstant=new n("symbol-constant",{fontCharacter:"\\eb5d"}),n.symbolEnumMember=new n("symbol-enum-member",{fontCharacter:"\\eb5e"}),n.symbolField=new n("symbol-field",{fontCharacter:"\\eb5f"}),n.symbolFile=new n("symbol-file",{fontCharacter:"\\eb60"}),n.symbolInterface=new n("symbol-interface",{fontCharacter:"\\eb61"}),n.symbolKeyword=new n("symbol-keyword",{fontCharacter:"\\eb62"}),n.symbolMisc=new n("symbol-misc",{fontCharacter:"\\eb63"}),n.symbolOperator=new n("symbol-operator",{fontCharacter:"\\eb64"}),n.symbolProperty=new n("symbol-property",{fontCharacter:"\\eb65"}),n.wrench=new n("wrench",{fontCharacter:"\\eb65"}),n.wrenchSubaction=new n("wrench-subaction",{fontCharacter:"\\eb65"}),n.symbolSnippet=new n("symbol-snippet",{fontCharacter:"\\eb66"}),n.tasklist=new n("tasklist",{fontCharacter:"\\eb67"}),n.telescope=new n("telescope",{fontCharacter:"\\eb68"}),n.textSize=new n("text-size",{fontCharacter:"\\eb69"}),n.threeBars=new n("three-bars",{fontCharacter:"\\eb6a"}),n.thumbsdown=new n("thumbsdown",{fontCharacter:"\\eb6b"}),n.thumbsup=new n("thumbsup",{fontCharacter:"\\eb6c"}),n.tools=new n("tools",{fontCharacter:"\\eb6d"}),n.triangleDown=new n("triangle-down",{fontCharacter:"\\eb6e"}),n.triangleLeft=new n("triangle-left",{fontCharacter:"\\eb6f"}),n.triangleRight=new n("triangle-right",{fontCharacter:"\\eb70"}),n.triangleUp=new n("triangle-up",{fontCharacter:"\\eb71"}),n.twitter=new n("twitter",{fontCharacter:"\\eb72"}),n.unfold=new n("unfold",{fontCharacter:"\\eb73"}),n.unlock=new n("unlock",{fontCharacter:"\\eb74"}),n.unmute=new n("unmute",{fontCharacter:"\\eb75"}),n.unverified=new n("unverified",{fontCharacter:"\\eb76"}),n.verified=new n("verified",{fontCharacter:"\\eb77"}),n.versions=new n("versions",{fontCharacter:"\\eb78"}),n.vmActive=new n("vm-active",{fontCharacter:"\\eb79"}),n.vmOutline=new n("vm-outline",{fontCharacter:"\\eb7a"}),n.vmRunning=new n("vm-running",{fontCharacter:"\\eb7b"}),n.watch=new n("watch",{fontCharacter:"\\eb7c"}),n.whitespace=new n("whitespace",{fontCharacter:"\\eb7d"}),n.wholeWord=new n("whole-word",{fontCharacter:"\\eb7e"}),n.window=new n("window",{fontCharacter:"\\eb7f"}),n.wordWrap=new n("word-wrap",{fontCharacter:"\\eb80"}),n.zoomIn=new n("zoom-in",{fontCharacter:"\\eb81"}),n.zoomOut=new n("zoom-out",{fontCharacter:"\\eb82"}),n.listFilter=new n("list-filter",{fontCharacter:"\\eb83"}),n.listFlat=new n("list-flat",{fontCharacter:"\\eb84"}),n.listSelection=new n("list-selection",{fontCharacter:"\\eb85"}),n.selection=new n("selection",{fontCharacter:"\\eb85"}),n.listTree=new n("list-tree",{fontCharacter:"\\eb86"}),n.debugBreakpointFunctionUnverified=new n("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),n.debugBreakpointFunction=new n("debug-breakpoint-function",{fontCharacter:"\\eb88"}),n.debugBreakpointFunctionDisabled=new n("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),n.debugStackframeActive=new n("debug-stackframe-active",{fontCharacter:"\\eb89"}),n.circleSmallFilled=new n("circle-small-filled",{fontCharacter:"\\eb8a"}),n.debugStackframeDot=new n("debug-stackframe-dot",n.circleSmallFilled.definition),n.debugStackframe=new n("debug-stackframe",{fontCharacter:"\\eb8b"}),n.debugStackframeFocused=new n("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),n.debugBreakpointUnsupported=new n("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),n.symbolString=new n("symbol-string",{fontCharacter:"\\eb8d"}),n.debugReverseContinue=new n("debug-reverse-continue",{fontCharacter:"\\eb8e"}),n.debugStepBack=new n("debug-step-back",{fontCharacter:"\\eb8f"}),n.debugRestartFrame=new n("debug-restart-frame",{fontCharacter:"\\eb90"}),n.callIncoming=new n("call-incoming",{fontCharacter:"\\eb92"}),n.callOutgoing=new n("call-outgoing",{fontCharacter:"\\eb93"}),n.menu=new n("menu",{fontCharacter:"\\eb94"}),n.expandAll=new n("expand-all",{fontCharacter:"\\eb95"}),n.feedback=new n("feedback",{fontCharacter:"\\eb96"}),n.groupByRefType=new n("group-by-ref-type",{fontCharacter:"\\eb97"}),n.ungroupByRefType=new n("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),n.account=new n("account",{fontCharacter:"\\eb99"}),n.bellDot=new n("bell-dot",{fontCharacter:"\\eb9a"}),n.debugConsole=new n("debug-console",{fontCharacter:"\\eb9b"}),n.library=new n("library",{fontCharacter:"\\eb9c"}),n.output=new n("output",{fontCharacter:"\\eb9d"}),n.runAll=new n("run-all",{fontCharacter:"\\eb9e"}),n.syncIgnored=new n("sync-ignored",{fontCharacter:"\\eb9f"}),n.pinned=new n("pinned",{fontCharacter:"\\eba0"}),n.githubInverted=new n("github-inverted",{fontCharacter:"\\eba1"}),n.debugAlt=new n("debug-alt",{fontCharacter:"\\eb91"}),n.serverProcess=new n("server-process",{fontCharacter:"\\eba2"}),n.serverEnvironment=new n("server-environment",{fontCharacter:"\\eba3"}),n.pass=new n("pass",{fontCharacter:"\\eba4"}),n.stopCircle=new n("stop-circle",{fontCharacter:"\\eba5"}),n.playCircle=new n("play-circle",{fontCharacter:"\\eba6"}),n.record=new n("record",{fontCharacter:"\\eba7"}),n.debugAltSmall=new n("debug-alt-small",{fontCharacter:"\\eba8"}),n.vmConnect=new n("vm-connect",{fontCharacter:"\\eba9"}),n.cloud=new n("cloud",{fontCharacter:"\\ebaa"}),n.merge=new n("merge",{fontCharacter:"\\ebab"}),n.exportIcon=new n("export",{fontCharacter:"\\ebac"}),n.graphLeft=new n("graph-left",{fontCharacter:"\\ebad"}),n.magnet=new n("magnet",{fontCharacter:"\\ebae"}),n.notebook=new n("notebook",{fontCharacter:"\\ebaf"}),n.redo=new n("redo",{fontCharacter:"\\ebb0"}),n.checkAll=new n("check-all",{fontCharacter:"\\ebb1"}),n.pinnedDirty=new n("pinned-dirty",{fontCharacter:"\\ebb2"}),n.passFilled=new n("pass-filled",{fontCharacter:"\\ebb3"}),n.circleLargeFilled=new n("circle-large-filled",{fontCharacter:"\\ebb4"}),n.circleLarge=new n("circle-large",{fontCharacter:"\\ebb5"}),n.circleLargeOutline=new n("circle-large-outline",n.circleLarge.definition),n.combine=new n("combine",{fontCharacter:"\\ebb6"}),n.gather=new n("gather",{fontCharacter:"\\ebb6"}),n.table=new n("table",{fontCharacter:"\\ebb7"}),n.variableGroup=new n("variable-group",{fontCharacter:"\\ebb8"}),n.typeHierarchy=new n("type-hierarchy",{fontCharacter:"\\ebb9"}),n.typeHierarchySub=new n("type-hierarchy-sub",{fontCharacter:"\\ebba"}),n.typeHierarchySuper=new n("type-hierarchy-super",{fontCharacter:"\\ebbb"}),n.gitPullRequestCreate=new n("git-pull-request-create",{fontCharacter:"\\ebbc"}),n.runAbove=new n("run-above",{fontCharacter:"\\ebbd"}),n.runBelow=new n("run-below",{fontCharacter:"\\ebbe"}),n.notebookTemplate=new n("notebook-template",{fontCharacter:"\\ebbf"}),n.debugRerun=new n("debug-rerun",{fontCharacter:"\\ebc0"}),n.workspaceTrusted=new n("workspace-trusted",{fontCharacter:"\\ebc1"}),n.workspaceUntrusted=new n("workspace-untrusted",{fontCharacter:"\\ebc2"}),n.workspaceUnspecified=new n("workspace-unspecified",{fontCharacter:"\\ebc3"}),n.terminalCmd=new n("terminal-cmd",{fontCharacter:"\\ebc4"}),n.terminalDebian=new n("terminal-debian",{fontCharacter:"\\ebc5"}),n.terminalLinux=new n("terminal-linux",{fontCharacter:"\\ebc6"}),n.terminalPowershell=new n("terminal-powershell",{fontCharacter:"\\ebc7"}),n.terminalTmux=new n("terminal-tmux",{fontCharacter:"\\ebc8"}),n.terminalUbuntu=new n("terminal-ubuntu",{fontCharacter:"\\ebc9"}),n.terminalBash=new n("terminal-bash",{fontCharacter:"\\ebca"}),n.arrowSwap=new n("arrow-swap",{fontCharacter:"\\ebcb"}),n.copy=new n("copy",{fontCharacter:"\\ebcc"}),n.personAdd=new n("person-add",{fontCharacter:"\\ebcd"}),n.filterFilled=new n("filter-filled",{fontCharacter:"\\ebce"}),n.wand=new n("wand",{fontCharacter:"\\ebcf"}),n.debugLineByLine=new n("debug-line-by-line",{fontCharacter:"\\ebd0"}),n.inspect=new n("inspect",{fontCharacter:"\\ebd1"}),n.layers=new n("layers",{fontCharacter:"\\ebd2"}),n.layersDot=new n("layers-dot",{fontCharacter:"\\ebd3"}),n.layersActive=new n("layers-active",{fontCharacter:"\\ebd4"}),n.compass=new n("compass",{fontCharacter:"\\ebd5"}),n.compassDot=new n("compass-dot",{fontCharacter:"\\ebd6"}),n.compassActive=new n("compass-active",{fontCharacter:"\\ebd7"}),n.azure=new n("azure",{fontCharacter:"\\ebd8"}),n.issueDraft=new n("issue-draft",{fontCharacter:"\\ebd9"}),n.gitPullRequestClosed=new n("git-pull-request-closed",{fontCharacter:"\\ebda"}),n.gitPullRequestDraft=new n("git-pull-request-draft",{fontCharacter:"\\ebdb"}),n.debugAll=new n("debug-all",{fontCharacter:"\\ebdc"}),n.debugCoverage=new n("debug-coverage",{fontCharacter:"\\ebdd"}),n.runErrors=new n("run-errors",{fontCharacter:"\\ebde"}),n.folderLibrary=new n("folder-library",{fontCharacter:"\\ebdf"}),n.debugContinueSmall=new n("debug-continue-small",{fontCharacter:"\\ebe0"}),n.beakerStop=new n("beaker-stop",{fontCharacter:"\\ebe1"}),n.graphLine=new n("graph-line",{fontCharacter:"\\ebe2"}),n.graphScatter=new n("graph-scatter",{fontCharacter:"\\ebe3"}),n.pieChart=new n("pie-chart",{fontCharacter:"\\ebe4"}),n.bracket=new n("bracket",n.json.definition),n.bracketDot=new n("bracket-dot",{fontCharacter:"\\ebe5"}),n.bracketError=new n("bracket-error",{fontCharacter:"\\ebe6"}),n.lockSmall=new n("lock-small",{fontCharacter:"\\ebe7"}),n.azureDevops=new n("azure-devops",{fontCharacter:"\\ebe8"}),n.verifiedFilled=new n("verified-filled",{fontCharacter:"\\ebe9"}),n.newLine=new n("newline",{fontCharacter:"\\ebea"}),n.layout=new n("layout",{fontCharacter:"\\ebeb"}),n.layoutActivitybarLeft=new n("layout-activitybar-left",{fontCharacter:"\\ebec"}),n.layoutActivitybarRight=new n("layout-activitybar-right",{fontCharacter:"\\ebed"}),n.layoutPanelLeft=new n("layout-panel-left",{fontCharacter:"\\ebee"}),n.layoutPanelCenter=new n("layout-panel-center",{fontCharacter:"\\ebef"}),n.layoutPanelJustify=new n("layout-panel-justify",{fontCharacter:"\\ebf0"}),n.layoutPanelRight=new n("layout-panel-right",{fontCharacter:"\\ebf1"}),n.layoutPanel=new n("layout-panel",{fontCharacter:"\\ebf2"}),n.layoutSidebarLeft=new n("layout-sidebar-left",{fontCharacter:"\\ebf3"}),n.layoutSidebarRight=new n("layout-sidebar-right",{fontCharacter:"\\ebf4"}),n.layoutStatusbar=new n("layout-statusbar",{fontCharacter:"\\ebf5"}),n.layoutMenubar=new n("layout-menubar",{fontCharacter:"\\ebf6"}),n.layoutCentered=new n("layout-centered",{fontCharacter:"\\ebf7"}),n.layoutSidebarRightOff=new n("layout-sidebar-right-off",{fontCharacter:"\\ec00"}),n.layoutPanelOff=new n("layout-panel-off",{fontCharacter:"\\ec01"}),n.layoutSidebarLeftOff=new n("layout-sidebar-left-off",{fontCharacter:"\\ec02"}),n.target=new n("target",{fontCharacter:"\\ebf8"}),n.indent=new n("indent",{fontCharacter:"\\ebf9"}),n.recordSmall=new n("record-small",{fontCharacter:"\\ebfa"}),n.errorSmall=new n("error-small",{fontCharacter:"\\ebfb"}),n.arrowCircleDown=new n("arrow-circle-down",{fontCharacter:"\\ebfc"}),n.arrowCircleLeft=new n("arrow-circle-left",{fontCharacter:"\\ebfd"}),n.arrowCircleRight=new n("arrow-circle-right",{fontCharacter:"\\ebfe"}),n.arrowCircleUp=new n("arrow-circle-up",{fontCharacter:"\\ebff"}),n.heartFilled=new n("heart-filled",{fontCharacter:"\\ec04"}),n.map=new n("map",{fontCharacter:"\\ec05"}),n.mapFilled=new n("map-filled",{fontCharacter:"\\ec06"}),n.circleSmall=new n("circle-small",{fontCharacter:"\\ec07"}),n.bellSlash=new n("bell-slash",{fontCharacter:"\\ec08"}),n.bellSlashDot=new n("bell-slash-dot",{fontCharacter:"\\ec09"}),n.commentUnresolved=new n("comment-unresolved",{fontCharacter:"\\ec0a"}),n.gitPullRequestGoToChanges=new n("git-pull-request-go-to-changes",{fontCharacter:"\\ec0b"}),n.gitPullRequestNewChanges=new n("git-pull-request-new-changes",{fontCharacter:"\\ec0c"}),n.searchFuzzy=new n("search-fuzzy",{fontCharacter:"\\ec0d"}),n.dialogError=new n("dialog-error",n.error.definition),n.dialogWarning=new n("dialog-warning",n.warning.definition),n.dialogInfo=new n("dialog-info",n.info.definition),n.dialogClose=new n("dialog-close",n.close.definition),n.treeItemExpanded=new n("tree-item-expanded",n.chevronDown.definition),n.treeFilterOnTypeOn=new n("tree-filter-on-type-on",n.listFilter.definition),n.treeFilterOnTypeOff=new n("tree-filter-on-type-off",n.listSelection.definition),n.treeFilterClear=new n("tree-filter-clear",n.close.definition),n.treeItemLoading=new n("tree-item-loading",n.loading.definition),n.menuSelection=new n("menu-selection",n.check.definition),n.menuSubmenu=new n("menu-submenu",n.chevronRight.definition),n.menuBarMore=new n("menubar-more",n.more.definition),n.scrollbarButtonLeft=new n("scrollbar-button-left",n.triangleLeft.definition),n.scrollbarButtonRight=new n("scrollbar-button-right",n.triangleRight.definition),n.scrollbarButtonUp=new n("scrollbar-button-up",n.triangleUp.definition),n.scrollbarButtonDown=new n("scrollbar-button-down",n.triangleDown.definition),n.toolBarMore=new n("toolbar-more",n.more.definition),n.quickInputBack=new n("quick-input-back",n.arrowLeft.definition),function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9-]+",e.iconModifierExpression="~[A-Za-z]+",e.iconNameCharacter="[A-Za-z0-9~-]";const t=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function r(e){if(e instanceof n)return["codicon","codicon-"+e.id];const i=t.exec(e.id);if(!i)return r(n.error);const[,o,s]=i,a=["codicon","codicon-"+o];return s&&a.push("codicon-modifier-"+s.substr(1)),a}e.asClassNameArray=r,e.asClassName=function(e){return r(e).join(" ")},e.asCSSSelector=function(e){return"."+r(e).join(".")}}(t.CSSIcon||(t.CSSIcon={}))},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.TokenizationRegistry=void 0;const i=r(61),o=r(72);t.TokenizationRegistry=class{constructor(){this._map=new Map,this._factories=new Map,this._onDidChange=new i.Emitter,this.onDidChange=this._onDidChange.event,this._colorMap=null}fire(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,t){return this._map.set(e,t),this.fire([e]),(0,o.toDisposable)(()=>{this._map.get(e)===t&&(this._map.delete(e),this.fire([e]))})}registerFactory(e,t){var r;null===(r=this._factories.get(e))||void 0===r||r.dispose();const n=new s(this,e,t);return this._factories.set(e,n),(0,o.toDisposable)(()=>{const t=this._factories.get(e);t&&t===n&&(this._factories.delete(e),t.dispose())})}getOrCreate(e){return n(this,void 0,void 0,(function*(){const t=this.get(e);if(t)return t;const r=this._factories.get(e);return!r||r.isResolved?null:(yield r.resolve(),this.get(e))}))}get(e){return this._map.get(e)||null}isResolved(e){if(this.get(e))return!0;const t=this._factories.get(e);return!(t&&!t.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._map.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}};class s extends o.Disposable{constructor(e,t,r){super(),this._registry=e,this._languageId=t,this._factory=r,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}get isResolved(){return this._isResolved}dispose(){this._isDisposed=!0,super.dispose()}resolve(){return n(this,void 0,void 0,(function*(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}))}_create(){return n(this,void 0,void 0,(function*(){const e=yield Promise.resolve(this._factory.createTokenizationSupport());this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}))}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TestPeekMessageToken=t.TestDecorationsToken=t.TestServiceToken=void 0;r(1).__exportStar(r(596),t),t.TestServiceToken=Symbol("TestService"),t.TestDecorationsToken=Symbol("TestDecorationsToken"),t.TestPeekMessageToken=Symbol("TestPeekMessageToken")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TestId=void 0;class n{static fromExtHostTestItem(e,t,r=e.parent){if(e.id===t)return new n([t]);const i=[e.id];for(let e=r;e&&e.id!==t;e=e.parent)i.push(e.id);return i.push(t),new n(i.reverse())}static isRoot(e){return!e.includes("\0")}static fromString(e){return new n(e.split("\0"))}static join(e,t){return new n([...e.path,t])}static joinToString(e,t){return e.toString()+"\0"+t}static compare(e,t){return e===t?0:t.startsWith(e+"\0")?2:e.startsWith(t+"\0")?3:1}constructor(e,t=e.length){if(this.path=e,this.viewEnd=t,0===e.length||t<1)throw new Error("cannot create test with empty path")}get parentId(){return this.viewEnd>1?new n(this.path,this.viewEnd-1):this}get localId(){return this.path[this.viewEnd-1]}get controllerId(){return this.path[0]}get isRoot(){return 1===this.viewEnd}*idsFromRoot(){for(let e=1;e<=this.viewEnd;e++)yield new n(this.path,e)}compare(e){if("string"==typeof e)return n.compare(this.toString(),e);for(let t=0;t<e.viewEnd&&t<this.viewEnd;t++)if(e.path[t]!==this.path[t])return 1;return e.viewEnd>this.viewEnd?2:e.viewEnd<this.viewEnd?3:0}toJSON(){return this.toString()}toString(){if(!this.stringifed){this.stringifed=this.path[0];for(let e=1;e<this.viewEnd;e++)this.stringifed+="\0",this.stringifed+=this.path[e]}return this.stringifed}}t.TestId=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EditorOptions=t.EditorOption=t.editorOptionsRegistry=t.EDITOR_FONT_DEFAULTS=t.WrappingIndent=t.unicodeHighlightConfigKeys=t.inUntrustedWorkspace=t.filterValidationDecorations=t.RenderLineNumbersType=t.EditorLayoutInfoComputer=t.RenderMinimap=t.EditorFontLigatures=t.TextEditorCursorStyle=t.TextEditorCursorBlinkingStyle=t.stringSet=t.clampedInt=t.boolean=t.ApplyUpdateResult=t.ComputeOptionsMemory=t.ConfigurationChangedEvent=t.MINIMAP_GUTTER_WIDTH=t.EditorAutoIndentStrategy=void 0;const n=r(241),i=r(31),o=r(598),s=r(250),a=r(246),c=r(599);var l;!function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"}(t.EditorAutoIndentStrategy||(t.EditorAutoIndentStrategy={})),t.MINIMAP_GUTTER_WIDTH=8;t.ConfigurationChangedEvent=class{constructor(e){this._values=e}hasChanged(e){return this._values[e]}};class u{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}t.ComputeOptionsMemory=u;class d{constructor(e,t,r,n){this.id=e,this.name=t,this.defaultValue=r,this.schema=n}applyUpdate(e,t){return f(e,t)}compute(e,t,r){return r}}class h{constructor(e,t){this.newValue=e,this.didChange=t}}function f(e,t){if("object"!=typeof e||"object"!=typeof t||!e||!t)return new h(t,e!==t);if(Array.isArray(e)||Array.isArray(t)){const r=Array.isArray(e)&&Array.isArray(t)&&s.equals(e,t);return new h(t,!r)}let r=!1;for(const n in t)if(t.hasOwnProperty(n)){const i=f(e[n],t[n]);i.didChange&&(e[n]=i.newValue,r=!0)}return new h(e,r)}t.ApplyUpdateResult=h;class p{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,t){return f(e,t)}validate(e){return this.defaultValue}}class g{constructor(e,t,r,n){this.id=e,this.name=t,this.defaultValue=r,this.schema=n}applyUpdate(e,t){return f(e,t)}validate(e){return void 0===e?this.defaultValue:e}compute(e,t,r){return r}}function m(e,t){return void 0===e?t:"false"!==e&&Boolean(e)}t.boolean=m;class b extends g{constructor(e,t,r,n){void 0!==n&&(n.type="boolean",n.default=r),super(e,t,r,n)}validate(e){return m(e,this.defaultValue)}}function v(e,t,r,n){if(void 0===e)return t;let i=parseInt(e,10);return isNaN(i)?t:(i=Math.max(r,i),i=Math.min(n,i),0|i)}t.clampedInt=v;class y extends g{constructor(e,t,r,n,i,o){void 0!==o&&(o.type="integer",o.default=r,o.minimum=n,o.maximum=i),super(e,t,r,o),this.minimum=n,this.maximum=i}static clampedInt(e,t,r,n){return v(e,t,r,n)}validate(e){return y.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}class _ extends g{constructor(e,t,r,n,i){void 0!==i&&(i.type="number",i.default=r),super(e,t,r,i),this.validationFn=n}static clamp(e,t,r){return e<t?t:e>r?r:e}static float(e,t){if("number"==typeof e)return e;if(void 0===e)return t;const r=parseFloat(e);return isNaN(r)?t:r}validate(e){return this.validationFn(_.float(e,this.defaultValue))}}class w extends g{static string(e,t){return"string"!=typeof e?t:e}constructor(e,t,r,n){void 0!==n&&(n.type="string",n.default=r),super(e,t,r,n)}validate(e){return w.string(e,this.defaultValue)}}function C(e,t,r){return"string"!=typeof e||-1===r.indexOf(e)?t:e}t.stringSet=C;class k extends g{constructor(e,t,r,n,i){void 0!==i&&(i.type="string",i.enum=n,i.default=r),super(e,t,r,i),this._allowedValues=n}validate(e){return C(e,this.defaultValue,this._allowedValues)}}class E extends d{constructor(e,t,r,n,i,o,s){void 0!==s&&(s.type="string",s.enum=i,s.default=n),super(e,t,r,s),this._allowedValues=i,this._convert=o}validate(e){return"string"!=typeof e||-1===this._allowedValues.indexOf(e)?this.defaultValue:this._convert(e)}}!function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"}(t.TextEditorCursorBlinkingStyle||(t.TextEditorCursorBlinkingStyle={})),function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(l=t.TextEditorCursorStyle||(t.TextEditorCursorStyle={}));class S extends d{constructor(){super(46,"fontLigatures",S.OFF,{anyOf:[{type:"boolean",description:n.localize("vs/editor/common/config/editorOptions",19,"Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:n.localize("vs/editor/common/config/editorOptions",20,"Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:n.localize("vs/editor/common/config/editorOptions",21,"Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return void 0===e?this.defaultValue:"string"==typeof e?"false"===e?S.OFF:"true"===e?S.ON:e:Boolean(e)?S.ON:S.OFF}}t.EditorFontLigatures=S,S.OFF='"liga" off, "calt" off',S.ON='"liga" on, "calt" on';class D extends d{constructor(){super(48,"fontWeight",t.EDITOR_FONT_DEFAULTS.fontWeight,{anyOf:[{type:"number",minimum:D.MINIMUM_VALUE,maximum:D.MAXIMUM_VALUE,errorMessage:n.localize("vs/editor/common/config/editorOptions",23,'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:D.SUGGESTION_VALUES}],default:t.EDITOR_FONT_DEFAULTS.fontWeight,description:n.localize("vs/editor/common/config/editorOptions",24,'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return"normal"===e||"bold"===e?e:String(y.clampedInt(e,t.EDITOR_FONT_DEFAULTS.fontWeight,D.MINIMUM_VALUE,D.MAXIMUM_VALUE))}}D.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"],D.MINIMUM_VALUE=1,D.MAXIMUM_VALUE=1e3;!function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"}(t.RenderMinimap||(t.RenderMinimap={}));class x extends p{constructor(){super(133)}compute(e,t,r){return x.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,r=e.scrollBeyondLastLine?t-1:0,n=(e.viewLineCount+r)/(e.pixelRatio*e.height);return{typicalViewportLineCount:t,extraLinesBeyondLastLine:r,desiredRatio:n,minimapLineCount:Math.floor(e.viewLineCount/n)}}static _computeMinimapLayout(e,r){const n=e.outerWidth,i=e.outerHeight,o=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(o*i),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:i};const s=r.stableMinimapLayoutInput,a=s&&e.outerHeight===s.outerHeight&&e.lineHeight===s.lineHeight&&e.typicalHalfwidthCharacterWidth===s.typicalHalfwidthCharacterWidth&&e.pixelRatio===s.pixelRatio&&e.scrollBeyondLastLine===s.scrollBeyondLastLine&&e.minimap.enabled===s.minimap.enabled&&e.minimap.side===s.minimap.side&&e.minimap.size===s.minimap.size&&e.minimap.showSlider===s.minimap.showSlider&&e.minimap.renderCharacters===s.minimap.renderCharacters&&e.minimap.maxColumn===s.minimap.maxColumn&&e.minimap.scale===s.minimap.scale&&e.verticalScrollbarWidth===s.verticalScrollbarWidth&&e.isViewportWrapping===s.isViewportWrapping,c=e.lineHeight,l=e.typicalHalfwidthCharacterWidth,u=e.scrollBeyondLastLine,d=e.minimap.renderCharacters;let h=o>=2?Math.round(2*e.minimap.scale):e.minimap.scale;const f=e.minimap.maxColumn,p=e.minimap.size,g=e.minimap.side,m=e.verticalScrollbarWidth,b=e.viewLineCount,v=e.remainingWidth,y=e.isViewportWrapping,_=d?2:3;let w=Math.floor(o*i);const C=w/o;let k=!1,E=!1,S=_*h,D=h/o,T=1;if("fill"===p||"fit"===p){const{typicalViewportLineCount:t,extraLinesBeyondLastLine:n,desiredRatio:s,minimapLineCount:l}=x.computeContainedMinimapLineCount({viewLineCount:b,scrollBeyondLastLine:u,height:i,lineHeight:c,pixelRatio:o});if(b/l>1)k=!0,E=!0,h=1,S=1,D=h/o;else{let i=!1,l=h+1;if("fit"===p){const e=Math.ceil((b+n)*S);y&&a&&v<=r.stableFitRemainingWidth?(i=!0,l=r.stableFitMaxMinimapScale):i=e>w}if("fill"===p||i){k=!0;const i=h;S=Math.min(c*o,Math.max(1,Math.floor(1/s))),y&&a&&v<=r.stableFitRemainingWidth&&(l=r.stableFitMaxMinimapScale),h=Math.min(l,Math.max(1,Math.floor(S/_))),h>i&&(T=Math.min(2,h/i)),D=h/o/T,w=Math.ceil(Math.max(t,b+n)*S),y?(r.stableMinimapLayoutInput=e,r.stableFitRemainingWidth=v,r.stableFitMaxMinimapScale=h):(r.stableMinimapLayoutInput=null,r.stableFitRemainingWidth=0)}}}const A=Math.floor(f*D),I=Math.min(A,Math.max(0,Math.floor((v-m-2)*D/(l+D)))+t.MINIMAP_GUTTER_WIDTH);let O=Math.floor(o*I);const R=O/o;O=Math.floor(O*T);return{renderMinimap:d?1:2,minimapLeft:"left"===g?0:n-I-m,minimapWidth:I,minimapHeightIsEditorHeight:k,minimapIsSampling:E,minimapScale:h,minimapLineHeight:S,minimapCanvasInnerWidth:O,minimapCanvasInnerHeight:w,minimapCanvasOuterWidth:R,minimapCanvasOuterHeight:C}}static computeLayout(e,t){const r=0|t.outerWidth,n=0|t.outerHeight,i=0|t.lineHeight,o=0|t.lineNumbersDigitCount,s=t.typicalHalfwidthCharacterWidth,a=t.maxDigitWidth,c=t.pixelRatio,l=t.viewLineCount,d=e.get(125),h="inherit"===d?e.get(124):d,f="inherit"===h?e.get(120):h,p=e.get(123),g=e.get(2),m=t.isDominatedByLongLines,b=e.get(51),v=0!==e.get(61).renderType,_=e.get(62),w=e.get(95),C=e.get(66),k=e.get(93),E=k.verticalScrollbarSize,S=k.verticalHasArrows,D=k.arrowSize,T=k.horizontalScrollbarSize,A=e.get(59),I=e.get(38),O="never"!==e.get(100);let R;if("string"==typeof A&&/^\d+(\.\d+)?ch$/.test(A)){const e=parseFloat(A.substr(0,A.length-2));R=y.clampedInt(e*s,0,0,1e3)}else R=y.clampedInt(A,0,0,1e3);I&&O&&(R+=16);let M=0;if(v){const e=Math.max(o,_);M=Math.round(e*a)}let B=0;b&&(B=i);let P=0,F=P+B,L=F+M,N=L+R;const j=r-B-M-R;let H=!1,U=!1,z=-1;2!==g&&("inherit"===h&&m?(H=!0,U=!0):"on"===f||"bounded"===f?U=!0:"wordWrapColumn"===f&&(z=p));const W=x._computeMinimapLayout({outerWidth:r,outerHeight:n,lineHeight:i,typicalHalfwidthCharacterWidth:s,pixelRatio:c,scrollBeyondLastLine:w,minimap:C,verticalScrollbarWidth:E,viewLineCount:l,remainingWidth:j,isViewportWrapping:U},t.memory||new u);0!==W.renderMinimap&&0===W.minimapLeft&&(P+=W.minimapWidth,F+=W.minimapWidth,L+=W.minimapWidth,N+=W.minimapWidth);const V=j-W.minimapWidth,$=Math.max(1,Math.floor((V-E-2)/s)),G=S?D:0;return U&&(z=Math.max(1,$),"bounded"===f&&(z=Math.min(z,p))),{width:r,height:n,glyphMarginLeft:P,glyphMarginWidth:B,lineNumbersLeft:F,lineNumbersWidth:M,decorationsLeft:L,decorationsWidth:R,contentLeft:N,contentWidth:V,minimap:W,viewportColumn:$,isWordWrapMinified:H,isViewportWrapping:U,wrappingColumn:z,verticalScrollbarWidth:E,horizontalScrollbarHeight:T,overviewRuler:{top:G,width:E,height:n-2*G,right:0}}}}t.EditorLayoutInfoComputer=x;!function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"}(t.RenderLineNumbersType||(t.RenderLineNumbersType={}));t.filterValidationDecorations=function(e){const t=e.get(88);return"editable"===t?e.get(82):"on"!==t};function T(e,t){if("string"!=typeof e)return t;switch(e){case"hidden":return 2;case"visible":return 3;default:return 1}}t.inUntrustedWorkspace="inUntrustedWorkspace",t.unicodeHighlightConfigKeys={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments",includeStrings:"editor.unicodeHighlight.includeStrings",allowedLocales:"editor.unicodeHighlight.allowedLocales"};function A(e,t,r){const n=r.indexOf(e);return-1===n?t:r[n]}!function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(t.WrappingIndent||(t.WrappingIndent={}));function I(e){return t.editorOptionsRegistry[e.id]=e,e}t.EDITOR_FONT_DEFAULTS={fontFamily:i.isMacintosh?"Menlo, Monaco, 'Courier New', monospace":i.isLinux?"'Droid Sans Mono', 'monospace', monospace":"Consolas, 'Courier New', monospace",fontWeight:"normal",fontSize:i.isMacintosh?12:14,lineHeight:0,letterSpacing:0},t.editorOptionsRegistry=[],function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.autoClosingBrackets=5]="autoClosingBrackets",e[e.autoClosingDelete=6]="autoClosingDelete",e[e.autoClosingOvertype=7]="autoClosingOvertype",e[e.autoClosingQuotes=8]="autoClosingQuotes",e[e.autoIndent=9]="autoIndent",e[e.automaticLayout=10]="automaticLayout",e[e.autoSurround=11]="autoSurround",e[e.bracketPairColorization=12]="bracketPairColorization",e[e.guides=13]="guides",e[e.codeLens=14]="codeLens",e[e.codeLensFontFamily=15]="codeLensFontFamily",e[e.codeLensFontSize=16]="codeLensFontSize",e[e.colorDecorators=17]="colorDecorators",e[e.columnSelection=18]="columnSelection",e[e.comments=19]="comments",e[e.contextmenu=20]="contextmenu",e[e.copyWithSyntaxHighlighting=21]="copyWithSyntaxHighlighting",e[e.cursorBlinking=22]="cursorBlinking",e[e.cursorSmoothCaretAnimation=23]="cursorSmoothCaretAnimation",e[e.cursorStyle=24]="cursorStyle",e[e.cursorSurroundingLines=25]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=26]="cursorSurroundingLinesStyle",e[e.cursorWidth=27]="cursorWidth",e[e.disableLayerHinting=28]="disableLayerHinting",e[e.disableMonospaceOptimizations=29]="disableMonospaceOptimizations",e[e.domReadOnly=30]="domReadOnly",e[e.dragAndDrop=31]="dragAndDrop",e[e.dropIntoEditor=32]="dropIntoEditor",e[e.emptySelectionClipboard=33]="emptySelectionClipboard",e[e.extraEditorClassName=34]="extraEditorClassName",e[e.fastScrollSensitivity=35]="fastScrollSensitivity",e[e.find=36]="find",e[e.fixedOverflowWidgets=37]="fixedOverflowWidgets",e[e.folding=38]="folding",e[e.foldingStrategy=39]="foldingStrategy",e[e.foldingHighlight=40]="foldingHighlight",e[e.foldingImportsByDefault=41]="foldingImportsByDefault",e[e.foldingMaximumRegions=42]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=43]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=44]="fontFamily",e[e.fontInfo=45]="fontInfo",e[e.fontLigatures=46]="fontLigatures",e[e.fontSize=47]="fontSize",e[e.fontWeight=48]="fontWeight",e[e.formatOnPaste=49]="formatOnPaste",e[e.formatOnType=50]="formatOnType",e[e.glyphMargin=51]="glyphMargin",e[e.gotoLocation=52]="gotoLocation",e[e.hideCursorInOverviewRuler=53]="hideCursorInOverviewRuler",e[e.hover=54]="hover",e[e.inDiffEditor=55]="inDiffEditor",e[e.inlineSuggest=56]="inlineSuggest",e[e.letterSpacing=57]="letterSpacing",e[e.lightbulb=58]="lightbulb",e[e.lineDecorationsWidth=59]="lineDecorationsWidth",e[e.lineHeight=60]="lineHeight",e[e.lineNumbers=61]="lineNumbers",e[e.lineNumbersMinChars=62]="lineNumbersMinChars",e[e.linkedEditing=63]="linkedEditing",e[e.links=64]="links",e[e.matchBrackets=65]="matchBrackets",e[e.minimap=66]="minimap",e[e.mouseStyle=67]="mouseStyle",e[e.mouseWheelScrollSensitivity=68]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=69]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=70]="multiCursorMergeOverlapping",e[e.multiCursorModifier=71]="multiCursorModifier",e[e.multiCursorPaste=72]="multiCursorPaste",e[e.occurrencesHighlight=73]="occurrencesHighlight",e[e.overviewRulerBorder=74]="overviewRulerBorder",e[e.overviewRulerLanes=75]="overviewRulerLanes",e[e.padding=76]="padding",e[e.parameterHints=77]="parameterHints",e[e.peekWidgetDefaultFocus=78]="peekWidgetDefaultFocus",e[e.definitionLinkOpensInPeek=79]="definitionLinkOpensInPeek",e[e.quickSuggestions=80]="quickSuggestions",e[e.quickSuggestionsDelay=81]="quickSuggestionsDelay",e[e.readOnly=82]="readOnly",e[e.renameOnType=83]="renameOnType",e[e.renderControlCharacters=84]="renderControlCharacters",e[e.renderFinalNewline=85]="renderFinalNewline",e[e.renderLineHighlight=86]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=87]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=88]="renderValidationDecorations",e[e.renderWhitespace=89]="renderWhitespace",e[e.revealHorizontalRightPadding=90]="revealHorizontalRightPadding",e[e.roundedSelection=91]="roundedSelection",e[e.rulers=92]="rulers",e[e.scrollbar=93]="scrollbar",e[e.scrollBeyondLastColumn=94]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=95]="scrollBeyondLastLine",e[e.scrollPredominantAxis=96]="scrollPredominantAxis",e[e.selectionClipboard=97]="selectionClipboard",e[e.selectionHighlight=98]="selectionHighlight",e[e.selectOnLineNumbers=99]="selectOnLineNumbers",e[e.showFoldingControls=100]="showFoldingControls",e[e.showUnused=101]="showUnused",e[e.snippetSuggestions=102]="snippetSuggestions",e[e.smartSelect=103]="smartSelect",e[e.smoothScrolling=104]="smoothScrolling",e[e.stickyScroll=105]="stickyScroll",e[e.stickyTabStops=106]="stickyTabStops",e[e.stopRenderingLineAfter=107]="stopRenderingLineAfter",e[e.suggest=108]="suggest",e[e.suggestFontSize=109]="suggestFontSize",e[e.suggestLineHeight=110]="suggestLineHeight",e[e.suggestOnTriggerCharacters=111]="suggestOnTriggerCharacters",e[e.suggestSelection=112]="suggestSelection",e[e.tabCompletion=113]="tabCompletion",e[e.tabIndex=114]="tabIndex",e[e.unicodeHighlighting=115]="unicodeHighlighting",e[e.unusualLineTerminators=116]="unusualLineTerminators",e[e.useShadowDOM=117]="useShadowDOM",e[e.useTabStops=118]="useTabStops",e[e.wordSeparators=119]="wordSeparators",e[e.wordWrap=120]="wordWrap",e[e.wordWrapBreakAfterCharacters=121]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=122]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=123]="wordWrapColumn",e[e.wordWrapOverride1=124]="wordWrapOverride1",e[e.wordWrapOverride2=125]="wordWrapOverride2",e[e.wrappingIndent=126]="wrappingIndent",e[e.wrappingStrategy=127]="wrappingStrategy",e[e.showDeprecated=128]="showDeprecated",e[e.inlayHints=129]="inlayHints",e[e.editorClassName=130]="editorClassName",e[e.pixelRatio=131]="pixelRatio",e[e.tabFocusMode=132]="tabFocusMode",e[e.layoutInfo=133]="layoutInfo",e[e.wrappingInfo=134]="wrappingInfo"}(t.EditorOption||(t.EditorOption={})),t.EditorOptions={acceptSuggestionOnCommitCharacter:I(new b(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:n.localize("vs/editor/common/config/editorOptions",165,"Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`; `) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:I(new k(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",n.localize("vs/editor/common/config/editorOptions",166,"Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:n.localize("vs/editor/common/config/editorOptions",167,"Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:I(new class extends d{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[n.localize("vs/editor/common/config/editorOptions",0,"The editor will use platform APIs to detect when a Screen Reader is attached."),n.localize("vs/editor/common/config/editorOptions",1,"The editor will be permanently optimized for usage with a Screen Reader. Word wrapping will be disabled."),n.localize("vs/editor/common/config/editorOptions",2,"The editor will never be optimized for usage with a Screen Reader.")],default:"auto",description:n.localize("vs/editor/common/config/editorOptions",3,"Controls whether the editor should run in a mode where it is optimized for screen readers. Setting to on will disable word wrapping.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,r){return 0===r?e.accessibilitySupport:r}}),accessibilityPageSize:I(new y(3,"accessibilityPageSize",10,1,1073741824,{description:n.localize("vs/editor/common/config/editorOptions",168,"Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default.")})),ariaLabel:I(new w(4,"ariaLabel",n.localize("vs/editor/common/config/editorOptions",169,"Editor content"))),autoClosingBrackets:I(new k(5,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",n.localize("vs/editor/common/config/editorOptions",170,"Use language configurations to determine when to autoclose brackets."),n.localize("vs/editor/common/config/editorOptions",171,"Autoclose brackets only when the cursor is to the left of whitespace."),""],description:n.localize("vs/editor/common/config/editorOptions",172,"Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingDelete:I(new k(6,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",n.localize("vs/editor/common/config/editorOptions",173,"Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:n.localize("vs/editor/common/config/editorOptions",174,"Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:I(new k(7,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",n.localize("vs/editor/common/config/editorOptions",175,"Type over closing quotes or brackets only if they were automatically inserted."),""],description:n.localize("vs/editor/common/config/editorOptions",176,"Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:I(new k(8,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",n.localize("vs/editor/common/config/editorOptions",177,"Use language configurations to determine when to autoclose quotes."),n.localize("vs/editor/common/config/editorOptions",178,"Autoclose quotes only when the cursor is to the left of whitespace."),""],description:n.localize("vs/editor/common/config/editorOptions",179,"Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:I(new E(9,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],(function(e){switch(e){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}),{enumDescriptions:[n.localize("vs/editor/common/config/editorOptions",180,"The editor will not insert indentation automatically."),n.localize("vs/editor/common/config/editorOptions",181,"The editor will keep the current line's indentation."),n.localize("vs/editor/common/config/editorOptions",182,"The editor will keep the current line's indentation and honor language defined brackets."),n.localize("vs/editor/common/config/editorOptions",183,"The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),n.localize("vs/editor/common/config/editorOptions",184,"The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:n.localize("vs/editor/common/config/editorOptions",185,"Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:I(new b(10,"automaticLayout",!1)),autoSurround:I(new k(11,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[n.localize("vs/editor/common/config/editorOptions",186,"Use language configurations to determine when to automatically surround selections."),n.localize("vs/editor/common/config/editorOptions",187,"Surround with quotes but not brackets."),n.localize("vs/editor/common/config/editorOptions",188,"Surround with brackets but not quotes."),""],description:n.localize("vs/editor/common/config/editorOptions",189,"Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:I(new class extends d{constructor(){const e={enabled:c.EDITOR_MODEL_DEFAULTS.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:c.EDITOR_MODEL_DEFAULTS.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(12,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,markdownDescription:n.localize("vs/editor/common/config/editorOptions",104,"Controls whether bracket pair colorization is enabled or not. Use {0} to override the bracket highlight colors.","`#workbench.colorCustomizations#`")},"editor.bracketPairColorization.independentColorPoolPerBracketType":{type:"boolean",default:e.independentColorPoolPerBracketType,description:n.localize("vs/editor/common/config/editorOptions",105,"Controls whether each bracket type has its own independent color pool.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{enabled:m(t.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:m(t.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}),bracketPairGuides:I(new class extends d{constructor(){const e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(13,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[n.localize("vs/editor/common/config/editorOptions",106,"Enables bracket pair guides."),n.localize("vs/editor/common/config/editorOptions",107,"Enables bracket pair guides only for the active bracket pair."),n.localize("vs/editor/common/config/editorOptions",108,"Disables bracket pair guides.")],default:e.bracketPairs,description:n.localize("vs/editor/common/config/editorOptions",109,"Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[n.localize("vs/editor/common/config/editorOptions",110,"Enables horizontal guides as addition to vertical bracket pair guides."),n.localize("vs/editor/common/config/editorOptions",111,"Enables horizontal guides only for the active bracket pair."),n.localize("vs/editor/common/config/editorOptions",112,"Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:n.localize("vs/editor/common/config/editorOptions",113,"Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:n.localize("vs/editor/common/config/editorOptions",114,"Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:n.localize("vs/editor/common/config/editorOptions",115,"Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[n.localize("vs/editor/common/config/editorOptions",116,"Highlights the active indent guide."),n.localize("vs/editor/common/config/editorOptions",117,"Highlights the active indent guide even if bracket guides are highlighted."),n.localize("vs/editor/common/config/editorOptions",118,"Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:n.localize("vs/editor/common/config/editorOptions",119,"Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{bracketPairs:A(t.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:A(t.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:m(t.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:m(t.indentation,this.defaultValue.indentation),highlightActiveIndentation:A(t.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}),stickyTabStops:I(new b(106,"stickyTabStops",!1,{description:n.localize("vs/editor/common/config/editorOptions",190,"Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:I(new b(14,"codeLens",!0,{description:n.localize("vs/editor/common/config/editorOptions",191,"Controls whether the editor shows CodeLens.")})),codeLensFontFamily:I(new w(15,"codeLensFontFamily","",{description:n.localize("vs/editor/common/config/editorOptions",192,"Controls the font family for CodeLens.")})),codeLensFontSize:I(new y(16,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:n.localize("vs/editor/common/config/editorOptions",193,"Controls the font size in pixels for CodeLens. When set to `0`, 90% of `#editor.fontSize#` is used.")})),colorDecorators:I(new b(17,"colorDecorators",!0,{description:n.localize("vs/editor/common/config/editorOptions",194,"Controls whether the editor should render the inline color decorators and color picker.")})),columnSelection:I(new b(18,"columnSelection",!1,{description:n.localize("vs/editor/common/config/editorOptions",195,"Enable that the selection with the mouse and keys is doing column selection.")})),comments:I(new class extends d{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(19,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:n.localize("vs/editor/common/config/editorOptions",4,"Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:n.localize("vs/editor/common/config/editorOptions",5,"Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{insertSpace:m(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:m(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}),contextmenu:I(new b(20,"contextmenu",!0)),copyWithSyntaxHighlighting:I(new b(21,"copyWithSyntaxHighlighting",!0,{description:n.localize("vs/editor/common/config/editorOptions",196,"Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:I(new E(22,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],(function(e){switch(e){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}),{description:n.localize("vs/editor/common/config/editorOptions",197,"Control the cursor animation style.")})),cursorSmoothCaretAnimation:I(new b(23,"cursorSmoothCaretAnimation",!1,{description:n.localize("vs/editor/common/config/editorOptions",198,"Controls whether the smooth caret animation should be enabled.")})),cursorStyle:I(new E(24,"cursorStyle",l.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],(function(e){switch(e){case"line":return l.Line;case"block":return l.Block;case"underline":return l.Underline;case"line-thin":return l.LineThin;case"block-outline":return l.BlockOutline;case"underline-thin":return l.UnderlineThin}}),{description:n.localize("vs/editor/common/config/editorOptions",199,"Controls the cursor style.")})),cursorSurroundingLines:I(new y(25,"cursorSurroundingLines",0,0,1073741824,{description:n.localize("vs/editor/common/config/editorOptions",200,"Controls the minimal number of visible leading and trailing lines surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:I(new k(26,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[n.localize("vs/editor/common/config/editorOptions",201,"`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),n.localize("vs/editor/common/config/editorOptions",202,"`cursorSurroundingLines` is enforced always.")],description:n.localize("vs/editor/common/config/editorOptions",203,"Controls when `cursorSurroundingLines` should be enforced.")})),cursorWidth:I(new y(27,"cursorWidth",0,0,1073741824,{markdownDescription:n.localize("vs/editor/common/config/editorOptions",204,"Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:I(new b(28,"disableLayerHinting",!1)),disableMonospaceOptimizations:I(new b(29,"disableMonospaceOptimizations",!1)),domReadOnly:I(new b(30,"domReadOnly",!1)),dragAndDrop:I(new b(31,"dragAndDrop",!0,{description:n.localize("vs/editor/common/config/editorOptions",205,"Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:I(new class extends b{constructor(){super(33,"emptySelectionClipboard",!0,{description:n.localize("vs/editor/common/config/editorOptions",6,"Controls whether copying without a selection copies the current line.")})}compute(e,t,r){return r&&e.emptySelectionClipboard}}),dropIntoEditor:I(new class extends d{constructor(){const e={enabled:!0};super(32,"dropIntoEditor",e,{"editor.dropIntoEditor.enabled":{type:"boolean",default:e.enabled,markdownDescription:n.localize("vs/editor/common/config/editorOptions",164,"Controls whether you can drag and drop a file into a text editor by holding down `shift` (instead of opening the file in an editor).")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;return{enabled:m(e.enabled,this.defaultValue.enabled)}}}),stickyScroll:I(new class extends d{constructor(){const e={enabled:!1,maxLineCount:5};super(105,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:n.localize("vs/editor/common/config/editorOptions",44,"Shows the nested current scopes during the scroll at the top of the editor.")},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:10,description:n.localize("vs/editor/common/config/editorOptions",45,"Defines the maximum number of sticky lines to show.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{enabled:m(t.enabled,this.defaultValue.enabled),maxLineCount:y.clampedInt(t.maxLineCount,this.defaultValue.maxLineCount,1,10)}}}),extraEditorClassName:I(new w(34,"extraEditorClassName","")),fastScrollSensitivity:I(new _(35,"fastScrollSensitivity",5,e=>e<=0?5:e,{markdownDescription:n.localize("vs/editor/common/config/editorOptions",206,"Scrolling speed multiplier when pressing `Alt`.")})),find:I(new class extends d{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(36,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:n.localize("vs/editor/common/config/editorOptions",7,"Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[n.localize("vs/editor/common/config/editorOptions",8,"Never seed search string from the editor selection."),n.localize("vs/editor/common/config/editorOptions",9,"Always seed search string from the editor selection, including word at cursor position."),n.localize("vs/editor/common/config/editorOptions",10,"Only seed search string from the editor selection.")],description:n.localize("vs/editor/common/config/editorOptions",11,"Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[n.localize("vs/editor/common/config/editorOptions",12,"Never turn on Find in Selection automatically (default)."),n.localize("vs/editor/common/config/editorOptions",13,"Always turn on Find in Selection automatically."),n.localize("vs/editor/common/config/editorOptions",14,"Turn on Find in Selection automatically when multiple lines of content are selected.")],description:n.localize("vs/editor/common/config/editorOptions",15,"Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:n.localize("vs/editor/common/config/editorOptions",16,"Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:i.isMacintosh},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:n.localize("vs/editor/common/config/editorOptions",17,"Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:n.localize("vs/editor/common/config/editorOptions",18,"Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{cursorMoveOnType:m(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:"boolean"==typeof e.seedSearchStringFromSelection?e.seedSearchStringFromSelection?"always":"never":C(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:"boolean"==typeof e.autoFindInSelection?e.autoFindInSelection?"always":"never":C(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:m(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:m(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:m(t.loop,this.defaultValue.loop)}}}),fixedOverflowWidgets:I(new b(37,"fixedOverflowWidgets",!1)),folding:I(new b(38,"folding",!0,{description:n.localize("vs/editor/common/config/editorOptions",207,"Controls whether the editor has code folding enabled.")})),foldingStrategy:I(new k(39,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[n.localize("vs/editor/common/config/editorOptions",208,"Use a language-specific folding strategy if available, else the indentation-based one."),n.localize("vs/editor/common/config/editorOptions",209,"Use the indentation-based folding strategy.")],description:n.localize("vs/editor/common/config/editorOptions",210,"Controls the strategy for computing folding ranges.")})),foldingHighlight:I(new b(40,"foldingHighlight",!0,{description:n.localize("vs/editor/common/config/editorOptions",211,"Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:I(new b(41,"foldingImportsByDefault",!1,{description:n.localize("vs/editor/common/config/editorOptions",212,"Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:I(new y(42,"foldingMaximumRegions",5e3,10,65e3,{description:n.localize("vs/editor/common/config/editorOptions",213,"The maximum number of foldable regions. Increasing this value may result in the editor becoming less responsive when the current source has a large number of foldable regions.")})),unfoldOnClickAfterEndOfLine:I(new b(43,"unfoldOnClickAfterEndOfLine",!1,{description:n.localize("vs/editor/common/config/editorOptions",214,"Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:I(new w(44,"fontFamily",t.EDITOR_FONT_DEFAULTS.fontFamily,{description:n.localize("vs/editor/common/config/editorOptions",215,"Controls the font family.")})),fontInfo:I(new class extends p{constructor(){super(45)}compute(e,t,r){return e.fontInfo}}),fontLigatures2:I(new S),fontSize:I(new class extends g{constructor(){super(47,"fontSize",t.EDITOR_FONT_DEFAULTS.fontSize,{type:"number",minimum:6,maximum:100,default:t.EDITOR_FONT_DEFAULTS.fontSize,description:n.localize("vs/editor/common/config/editorOptions",22,"Controls the font size in pixels.")})}validate(e){const r=_.float(e,this.defaultValue);return 0===r?t.EDITOR_FONT_DEFAULTS.fontSize:_.clamp(r,6,100)}compute(e,t,r){return e.fontInfo.fontSize}}),fontWeight:I(new D),formatOnPaste:I(new b(49,"formatOnPaste",!1,{description:n.localize("vs/editor/common/config/editorOptions",216,"Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:I(new b(50,"formatOnType",!1,{description:n.localize("vs/editor/common/config/editorOptions",217,"Controls whether the editor should automatically format the line after typing.")})),glyphMargin:I(new b(51,"glyphMargin",!0,{description:n.localize("vs/editor/common/config/editorOptions",218,"Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:I(new class extends d{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[n.localize("vs/editor/common/config/editorOptions",25,"Show peek view of the results (default)"),n.localize("vs/editor/common/config/editorOptions",26,"Go to the primary result and show a peek view"),n.localize("vs/editor/common/config/editorOptions",27,"Go to the primary result and enable peek-less navigation to others")]},r=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(52,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:n.localize("vs/editor/common/config/editorOptions",28,"This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":Object.assign({description:n.localize("vs/editor/common/config/editorOptions",29,"Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:n.localize("vs/editor/common/config/editorOptions",30,"Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleDeclarations":Object.assign({description:n.localize("vs/editor/common/config/editorOptions",31,"Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleImplementations":Object.assign({description:n.localize("vs/editor/common/config/editorOptions",32,"Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleReferences":Object.assign({description:n.localize("vs/editor/common/config/editorOptions",33,"Controls the behavior the 'Go to References'-command when multiple target locations exist.")},t),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:r,description:n.localize("vs/editor/common/config/editorOptions",34,"Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:r,description:n.localize("vs/editor/common/config/editorOptions",35,"Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:r,description:n.localize("vs/editor/common/config/editorOptions",36,"Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:r,description:n.localize("vs/editor/common/config/editorOptions",37,"Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:r,description:n.localize("vs/editor/common/config/editorOptions",38,"Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t,r,n,i,o;if(!e||"object"!=typeof e)return this.defaultValue;const s=e;return{multiple:C(s.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:null!==(t=s.multipleDefinitions)&&void 0!==t?t:C(s.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:null!==(r=s.multipleTypeDefinitions)&&void 0!==r?r:C(s.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:null!==(n=s.multipleDeclarations)&&void 0!==n?n:C(s.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:null!==(i=s.multipleImplementations)&&void 0!==i?i:C(s.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:null!==(o=s.multipleReferences)&&void 0!==o?o:C(s.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:w.string(s.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:w.string(s.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:w.string(s.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:w.string(s.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:w.string(s.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}),hideCursorInOverviewRuler:I(new b(53,"hideCursorInOverviewRuler",!1,{description:n.localize("vs/editor/common/config/editorOptions",219,"Controls whether the cursor should be hidden in the overview ruler.")})),hover:I(new class extends d{constructor(){const e={enabled:!0,delay:300,sticky:!0,above:!0};super(54,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:n.localize("vs/editor/common/config/editorOptions",39,"Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:n.localize("vs/editor/common/config/editorOptions",40,"Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:n.localize("vs/editor/common/config/editorOptions",41,"Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.above":{type:"boolean",default:e.above,description:n.localize("vs/editor/common/config/editorOptions",42,"Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{enabled:m(t.enabled,this.defaultValue.enabled),delay:y.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:m(t.sticky,this.defaultValue.sticky),above:m(t.above,this.defaultValue.above)}}}),inDiffEditor:I(new b(55,"inDiffEditor",!1)),letterSpacing:I(new _(57,"letterSpacing",t.EDITOR_FONT_DEFAULTS.letterSpacing,e=>_.clamp(e,-5,20),{description:n.localize("vs/editor/common/config/editorOptions",220,"Controls the letter spacing in pixels.")})),lightbulb:I(new class extends d{constructor(){const e={enabled:!0};super(58,"lightbulb",e,{"editor.lightbulb.enabled":{type:"boolean",default:e.enabled,description:n.localize("vs/editor/common/config/editorOptions",43,"Enables the code action lightbulb in the editor.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;return{enabled:m(e.enabled,this.defaultValue.enabled)}}}),lineDecorationsWidth:I(new g(59,"lineDecorationsWidth",10)),lineHeight:I(new class extends _{constructor(){super(60,"lineHeight",t.EDITOR_FONT_DEFAULTS.lineHeight,e=>_.clamp(e,0,150),{markdownDescription:n.localize("vs/editor/common/config/editorOptions",54,"Controls the line height. \n - Use 0 to automatically compute the line height from the font size.\n - Values between 0 and 8 will be used as a multiplier with the font size.\n - Values greater than or equal to 8 will be used as effective values.")})}compute(e,t,r){return e.fontInfo.lineHeight}}),lineNumbers:I(new class extends d{constructor(){super(61,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[n.localize("vs/editor/common/config/editorOptions",77,"Line numbers are not rendered."),n.localize("vs/editor/common/config/editorOptions",78,"Line numbers are rendered as absolute number."),n.localize("vs/editor/common/config/editorOptions",79,"Line numbers are rendered as distance in lines to cursor position."),n.localize("vs/editor/common/config/editorOptions",80,"Line numbers are rendered every 10 lines.")],default:"on",description:n.localize("vs/editor/common/config/editorOptions",81,"Controls the display of line numbers.")})}validate(e){let t=this.defaultValue.renderType,r=this.defaultValue.renderFn;return void 0!==e&&("function"==typeof e?(t=4,r=e):t="interval"===e?3:"relative"===e?2:"on"===e?1:0),{renderType:t,renderFn:r}}}),lineNumbersMinChars:I(new y(62,"lineNumbersMinChars",5,1,300)),linkedEditing:I(new b(63,"linkedEditing",!1,{description:n.localize("vs/editor/common/config/editorOptions",221,"Controls whether the editor has linked editing enabled. Depending on the language, related symbols, e.g. HTML tags, are updated while editing.")})),links:I(new b(64,"links",!0,{description:n.localize("vs/editor/common/config/editorOptions",222,"Controls whether the editor should detect links and make them clickable.")})),matchBrackets:I(new k(65,"matchBrackets","always",["always","near","never"],{description:n.localize("vs/editor/common/config/editorOptions",223,"Highlight matching brackets.")})),minimap:I(new class extends d{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1};super(66,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:n.localize("vs/editor/common/config/editorOptions",55,"Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:e.autohide,description:n.localize("vs/editor/common/config/editorOptions",56,"Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[n.localize("vs/editor/common/config/editorOptions",57,"The minimap has the same size as the editor contents (and might scroll)."),n.localize("vs/editor/common/config/editorOptions",58,"The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),n.localize("vs/editor/common/config/editorOptions",59,"The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:n.localize("vs/editor/common/config/editorOptions",60,"Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:n.localize("vs/editor/common/config/editorOptions",61,"Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:n.localize("vs/editor/common/config/editorOptions",62,"Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:n.localize("vs/editor/common/config/editorOptions",63,"Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:n.localize("vs/editor/common/config/editorOptions",64,"Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:n.localize("vs/editor/common/config/editorOptions",65,"Limit the width of the minimap to render at most a certain number of columns.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{enabled:m(t.enabled,this.defaultValue.enabled),autohide:m(t.autohide,this.defaultValue.autohide),size:C(t.size,this.defaultValue.size,["proportional","fill","fit"]),side:C(t.side,this.defaultValue.side,["right","left"]),showSlider:C(t.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:m(t.renderCharacters,this.defaultValue.renderCharacters),scale:y.clampedInt(t.scale,1,1,3),maxColumn:y.clampedInt(t.maxColumn,this.defaultValue.maxColumn,1,1e4)}}}),mouseStyle:I(new k(67,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:I(new _(68,"mouseWheelScrollSensitivity",1,e=>0===e?1:e,{markdownDescription:n.localize("vs/editor/common/config/editorOptions",224,"A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:I(new b(69,"mouseWheelZoom",!1,{markdownDescription:n.localize("vs/editor/common/config/editorOptions",225,"Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:I(new b(70,"multiCursorMergeOverlapping",!0,{description:n.localize("vs/editor/common/config/editorOptions",226,"Merge multiple cursors when they are overlapping.")})),multiCursorModifier:I(new E(71,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],(function(e){return"ctrlCmd"===e?i.isMacintosh?"metaKey":"ctrlKey":"altKey"}),{markdownEnumDescriptions:[n.localize("vs/editor/common/config/editorOptions",227,"Maps to `Control` on Windows and Linux and to `Command` on macOS."),n.localize("vs/editor/common/config/editorOptions",228,"Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:n.localize("vs/editor/common/config/editorOptions",229,"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the [multicursor modifier](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:I(new k(72,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[n.localize("vs/editor/common/config/editorOptions",230,"Each cursor pastes a single line of the text."),n.localize("vs/editor/common/config/editorOptions",231,"Each cursor pastes the full text.")],markdownDescription:n.localize("vs/editor/common/config/editorOptions",232,"Controls pasting when the line count of the pasted text matches the cursor count.")})),occurrencesHighlight:I(new b(73,"occurrencesHighlight",!0,{description:n.localize("vs/editor/common/config/editorOptions",233,"Controls whether the editor should highlight semantic symbol occurrences.")})),overviewRulerBorder:I(new b(74,"overviewRulerBorder",!0,{description:n.localize("vs/editor/common/config/editorOptions",234,"Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:I(new y(75,"overviewRulerLanes",3,0,3)),padding:I(new class extends d{constructor(){super(76,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:n.localize("vs/editor/common/config/editorOptions",66,"Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:n.localize("vs/editor/common/config/editorOptions",67,"Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{top:y.clampedInt(t.top,0,0,1e3),bottom:y.clampedInt(t.bottom,0,0,1e3)}}}),parameterHints:I(new class extends d{constructor(){const e={enabled:!0,cycle:!1};super(77,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:n.localize("vs/editor/common/config/editorOptions",68,"Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:n.localize("vs/editor/common/config/editorOptions",69,"Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{enabled:m(t.enabled,this.defaultValue.enabled),cycle:m(t.cycle,this.defaultValue.cycle)}}}),peekWidgetDefaultFocus:I(new k(78,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[n.localize("vs/editor/common/config/editorOptions",235,"Focus the tree when opening peek"),n.localize("vs/editor/common/config/editorOptions",236,"Focus the editor when opening peek")],description:n.localize("vs/editor/common/config/editorOptions",237,"Controls whether to focus the inline editor or the tree in the peek widget.")})),definitionLinkOpensInPeek:I(new b(79,"definitionLinkOpensInPeek",!1,{description:n.localize("vs/editor/common/config/editorOptions",238,"Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:I(new class extends d{constructor(){const e={other:"on",comments:"off",strings:"off"},t=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[n.localize("vs/editor/common/config/editorOptions",70,"Quick suggestions show inside the suggest widget"),n.localize("vs/editor/common/config/editorOptions",71,"Quick suggestions show as ghost text"),n.localize("vs/editor/common/config/editorOptions",72,"Quick suggestions are disabled")]}];super(80,"quickSuggestions",e,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:t,default:e.strings,description:n.localize("vs/editor/common/config/editorOptions",73,"Enable quick suggestions inside strings.")},comments:{anyOf:t,default:e.comments,description:n.localize("vs/editor/common/config/editorOptions",74,"Enable quick suggestions inside comments.")},other:{anyOf:t,default:e.other,description:n.localize("vs/editor/common/config/editorOptions",75,"Enable quick suggestions outside of strings and comments.")}},default:e,markdownDescription:n.localize("vs/editor/common/config/editorOptions",76,"Controls whether suggestions should automatically show up while typing. This can be controlled for typing in comments, strings, and other code. Quick suggestion can be configured to show as ghost text or with the suggest widget. Also be aware of the '{0}'-setting which controls if suggestions are triggered by special characters.","#editor.suggestOnTriggerCharacters#")}),this.defaultValue=e}validate(e){if("boolean"==typeof e){const t=e?"on":"off";return{comments:t,strings:t,other:t}}if(!e||"object"!=typeof e)return this.defaultValue;const{other:t,comments:r,strings:n}=e,i=["on","inline","off"];let o,s,a;return o="boolean"==typeof t?t?"on":"off":C(t,this.defaultValue.other,i),s="boolean"==typeof r?r?"on":"off":C(r,this.defaultValue.comments,i),a="boolean"==typeof n?n?"on":"off":C(n,this.defaultValue.strings,i),{other:o,comments:s,strings:a}}}),quickSuggestionsDelay:I(new y(81,"quickSuggestionsDelay",10,0,1073741824,{description:n.localize("vs/editor/common/config/editorOptions",239,"Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:I(new b(82,"readOnly",!1)),renameOnType:I(new b(83,"renameOnType",!1,{description:n.localize("vs/editor/common/config/editorOptions",240,"Controls whether the editor auto renames on type."),markdownDeprecationMessage:n.localize("vs/editor/common/config/editorOptions",241,"Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:I(new b(84,"renderControlCharacters",!0,{description:n.localize("vs/editor/common/config/editorOptions",242,"Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:I(new b(85,"renderFinalNewline",!0,{description:n.localize("vs/editor/common/config/editorOptions",243,"Render last line number when the file ends with a newline.")})),renderLineHighlight:I(new k(86,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",n.localize("vs/editor/common/config/editorOptions",244,"Highlights both the gutter and the current line.")],description:n.localize("vs/editor/common/config/editorOptions",245,"Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:I(new b(87,"renderLineHighlightOnlyWhenFocus",!1,{description:n.localize("vs/editor/common/config/editorOptions",246,"Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:I(new k(88,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:I(new k(89,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",n.localize("vs/editor/common/config/editorOptions",247,"Render whitespace characters except for single spaces between words."),n.localize("vs/editor/common/config/editorOptions",248,"Render whitespace characters only on selected text."),n.localize("vs/editor/common/config/editorOptions",249,"Render only trailing whitespace characters."),""],description:n.localize("vs/editor/common/config/editorOptions",250,"Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:I(new y(90,"revealHorizontalRightPadding",15,0,1e3)),roundedSelection:I(new b(91,"roundedSelection",!0,{description:n.localize("vs/editor/common/config/editorOptions",251,"Controls whether selections should have rounded corners.")})),rulers:I(new class extends d{constructor(){const e=[],t={type:"number",description:n.localize("vs/editor/common/config/editorOptions",82,"Number of monospace characters at which this editor ruler will render.")};super(92,"rulers",e,{type:"array",items:{anyOf:[t,{type:["object"],properties:{column:t,color:{type:"string",description:n.localize("vs/editor/common/config/editorOptions",83,"Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:n.localize("vs/editor/common/config/editorOptions",84,"Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(e){if(Array.isArray(e)){const t=[];for(const r of e)if("number"==typeof r)t.push({column:y.clampedInt(r,0,0,1e4),color:null});else if(r&&"object"==typeof r){const e=r;t.push({column:y.clampedInt(e.column,0,0,1e4),color:e.color})}return t.sort((e,t)=>e.column-t.column),t}return this.defaultValue}}),scrollbar:I(new class extends d{constructor(){const e={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1};super(93,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[n.localize("vs/editor/common/config/editorOptions",85,"The vertical scrollbar will be visible only when necessary."),n.localize("vs/editor/common/config/editorOptions",86,"The vertical scrollbar will always be visible."),n.localize("vs/editor/common/config/editorOptions",87,"The vertical scrollbar will always be hidden.")],default:"auto",description:n.localize("vs/editor/common/config/editorOptions",88,"Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[n.localize("vs/editor/common/config/editorOptions",89,"The horizontal scrollbar will be visible only when necessary."),n.localize("vs/editor/common/config/editorOptions",90,"The horizontal scrollbar will always be visible."),n.localize("vs/editor/common/config/editorOptions",91,"The horizontal scrollbar will always be hidden.")],default:"auto",description:n.localize("vs/editor/common/config/editorOptions",92,"Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:n.localize("vs/editor/common/config/editorOptions",93,"The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:n.localize("vs/editor/common/config/editorOptions",94,"The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:n.localize("vs/editor/common/config/editorOptions",95,"Controls whether clicks scroll by page or jump to click position.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e,r=y.clampedInt(t.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),n=y.clampedInt(t.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:y.clampedInt(t.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:T(t.vertical,this.defaultValue.vertical),horizontal:T(t.horizontal,this.defaultValue.horizontal),useShadows:m(t.useShadows,this.defaultValue.useShadows),verticalHasArrows:m(t.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:m(t.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:m(t.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:m(t.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:r,horizontalSliderSize:y.clampedInt(t.horizontalSliderSize,r,0,1e3),verticalScrollbarSize:n,verticalSliderSize:y.clampedInt(t.verticalSliderSize,n,0,1e3),scrollByPage:m(t.scrollByPage,this.defaultValue.scrollByPage)}}}),scrollBeyondLastColumn:I(new y(94,"scrollBeyondLastColumn",4,0,1073741824,{description:n.localize("vs/editor/common/config/editorOptions",252,"Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:I(new b(95,"scrollBeyondLastLine",!0,{description:n.localize("vs/editor/common/config/editorOptions",253,"Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:I(new b(96,"scrollPredominantAxis",!0,{description:n.localize("vs/editor/common/config/editorOptions",254,"Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:I(new b(97,"selectionClipboard",!0,{description:n.localize("vs/editor/common/config/editorOptions",255,"Controls whether the Linux primary clipboard should be supported."),included:i.isLinux})),selectionHighlight:I(new b(98,"selectionHighlight",!0,{description:n.localize("vs/editor/common/config/editorOptions",256,"Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:I(new b(99,"selectOnLineNumbers",!0)),showFoldingControls:I(new k(100,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[n.localize("vs/editor/common/config/editorOptions",257,"Always show the folding controls."),n.localize("vs/editor/common/config/editorOptions",258,"Never show the folding controls and reduce the gutter size."),n.localize("vs/editor/common/config/editorOptions",259,"Only show the folding controls when the mouse is over the gutter.")],description:n.localize("vs/editor/common/config/editorOptions",260,"Controls when the folding controls on the gutter are shown.")})),showUnused:I(new b(101,"showUnused",!0,{description:n.localize("vs/editor/common/config/editorOptions",261,"Controls fading out of unused code.")})),showDeprecated:I(new b(128,"showDeprecated",!0,{description:n.localize("vs/editor/common/config/editorOptions",262,"Controls strikethrough deprecated variables.")})),inlayHints:I(new class extends d{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(129,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:n.localize("vs/editor/common/config/editorOptions",46,"Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[n.localize("vs/editor/common/config/editorOptions",47,"Inlay hints are enabled"),n.localize("vs/editor/common/config/editorOptions",48,"Inlay hints are showing by default and hide when holding {0}",i.isMacintosh?"Ctrl+Option":"Ctrl+Alt"),n.localize("vs/editor/common/config/editorOptions",49,"Inlay hints are hidden by default and show when holding {0}",i.isMacintosh?"Ctrl+Option":"Ctrl+Alt"),n.localize("vs/editor/common/config/editorOptions",50,"Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:n.localize("vs/editor/common/config/editorOptions",51,"Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:n.localize("vs/editor/common/config/editorOptions",52,"Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:n.localize("vs/editor/common/config/editorOptions",53,"Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return"boolean"==typeof t.enabled&&(t.enabled=t.enabled?"on":"off"),{enabled:C(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:y.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:w.string(t.fontFamily,this.defaultValue.fontFamily),padding:m(t.padding,this.defaultValue.padding)}}}),snippetSuggestions:I(new k(102,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[n.localize("vs/editor/common/config/editorOptions",263,"Show snippet suggestions on top of other suggestions."),n.localize("vs/editor/common/config/editorOptions",264,"Show snippet suggestions below other suggestions."),n.localize("vs/editor/common/config/editorOptions",265,"Show snippets suggestions with other suggestions."),n.localize("vs/editor/common/config/editorOptions",266,"Do not show snippet suggestions.")],description:n.localize("vs/editor/common/config/editorOptions",267,"Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:I(new class extends d{constructor(){super(103,"smartSelect",{selectLeadingAndTrailingWhitespace:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:n.localize("vs/editor/common/config/editorOptions",163,"Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"}})}validate(e){return e&&"object"==typeof e?{selectLeadingAndTrailingWhitespace:m(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace)}:this.defaultValue}}),smoothScrolling:I(new b(104,"smoothScrolling",!1,{description:n.localize("vs/editor/common/config/editorOptions",268,"Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:I(new y(107,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:I(new class extends d{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!0,localityBonus:!1,shareSuggestSelections:!1,showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,matchOnWordStartOnly:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(108,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[n.localize("vs/editor/common/config/editorOptions",120,"Insert suggestion without overwriting text right of the cursor."),n.localize("vs/editor/common/config/editorOptions",121,"Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:n.localize("vs/editor/common/config/editorOptions",122,"Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:n.localize("vs/editor/common/config/editorOptions",123,"Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:n.localize("vs/editor/common/config/editorOptions",124,"Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:n.localize("vs/editor/common/config/editorOptions",125,"Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:n.localize("vs/editor/common/config/editorOptions",126,"Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:n.localize("vs/editor/common/config/editorOptions",127,"Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:n.localize("vs/editor/common/config/editorOptions",128,"Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:n.localize("vs/editor/common/config/editorOptions",129,"Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:n.localize("vs/editor/common/config/editorOptions",130,"Controls whether suggest details show inline with the label or only in the details widget")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:n.localize("vs/editor/common/config/editorOptions",131,"This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:n.localize("vs/editor/common/config/editorOptions",132,"This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",133,"When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",134,"When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",135,"When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",136,"When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",137,"When enabled IntelliSense filtering requires that the first character matches on a word start, e.g `c` on `Console` or `WebContext` but _not_ on `description`. When disabled IntelliSense will show more results but still sorts them by match quality.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",138,"When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",139,"When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",140,"When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",141,"When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",142,"When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",143,"When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",144,"When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",145,"When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",146,"When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",147,"When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",148,"When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",149,"When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",150,"When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",151,"When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",152,"When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",153,"When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",154,"When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",155,"When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",156,"When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",157,"When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",158,"When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",159,"When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",160,"When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",161,"When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",162,"When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{insertMode:C(t.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:m(t.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:m(t.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:m(t.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:m(t.shareSuggestSelections,this.defaultValue.shareSuggestSelections),showIcons:m(t.showIcons,this.defaultValue.showIcons),showStatusBar:m(t.showStatusBar,this.defaultValue.showStatusBar),preview:m(t.preview,this.defaultValue.preview),previewMode:C(t.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:m(t.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:m(t.showMethods,this.defaultValue.showMethods),showFunctions:m(t.showFunctions,this.defaultValue.showFunctions),showConstructors:m(t.showConstructors,this.defaultValue.showConstructors),showDeprecated:m(t.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:m(t.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:m(t.showFields,this.defaultValue.showFields),showVariables:m(t.showVariables,this.defaultValue.showVariables),showClasses:m(t.showClasses,this.defaultValue.showClasses),showStructs:m(t.showStructs,this.defaultValue.showStructs),showInterfaces:m(t.showInterfaces,this.defaultValue.showInterfaces),showModules:m(t.showModules,this.defaultValue.showModules),showProperties:m(t.showProperties,this.defaultValue.showProperties),showEvents:m(t.showEvents,this.defaultValue.showEvents),showOperators:m(t.showOperators,this.defaultValue.showOperators),showUnits:m(t.showUnits,this.defaultValue.showUnits),showValues:m(t.showValues,this.defaultValue.showValues),showConstants:m(t.showConstants,this.defaultValue.showConstants),showEnums:m(t.showEnums,this.defaultValue.showEnums),showEnumMembers:m(t.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:m(t.showKeywords,this.defaultValue.showKeywords),showWords:m(t.showWords,this.defaultValue.showWords),showColors:m(t.showColors,this.defaultValue.showColors),showFiles:m(t.showFiles,this.defaultValue.showFiles),showReferences:m(t.showReferences,this.defaultValue.showReferences),showFolders:m(t.showFolders,this.defaultValue.showFolders),showTypeParameters:m(t.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:m(t.showSnippets,this.defaultValue.showSnippets),showUsers:m(t.showUsers,this.defaultValue.showUsers),showIssues:m(t.showIssues,this.defaultValue.showIssues)}}}),inlineSuggest:I(new class extends d{constructor(){const e={enabled:!0,mode:"subwordSmart"};super(56,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:n.localize("vs/editor/common/config/editorOptions",103,"Controls whether to automatically show inline suggestions in the editor.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{enabled:m(t.enabled,this.defaultValue.enabled),mode:C(t.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"])}}}),suggestFontSize:I(new y(109,"suggestFontSize",0,0,1e3,{markdownDescription:n.localize("vs/editor/common/config/editorOptions",269,"Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:I(new y(110,"suggestLineHeight",0,0,1e3,{markdownDescription:n.localize("vs/editor/common/config/editorOptions",270,"Line height for the suggest widget. When set to {0}, the value of {1} is used. The minimum value is 8.","`0`","`#editor.lineHeight#`")})),suggestOnTriggerCharacters:I(new b(111,"suggestOnTriggerCharacters",!0,{description:n.localize("vs/editor/common/config/editorOptions",271,"Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:I(new k(112,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[n.localize("vs/editor/common/config/editorOptions",272,"Always select the first suggestion."),n.localize("vs/editor/common/config/editorOptions",273,"Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),n.localize("vs/editor/common/config/editorOptions",274,"Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:n.localize("vs/editor/common/config/editorOptions",275,"Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:I(new k(113,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[n.localize("vs/editor/common/config/editorOptions",276,"Tab complete will insert the best matching suggestion when pressing tab."),n.localize("vs/editor/common/config/editorOptions",277,"Disable tab completions."),n.localize("vs/editor/common/config/editorOptions",278,"Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:n.localize("vs/editor/common/config/editorOptions",279,"Enables tab completions.")})),tabIndex:I(new y(114,"tabIndex",0,-1,1073741824)),unicodeHighlight:I(new class extends d{constructor(){const e={nonBasicASCII:t.inUntrustedWorkspace,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:t.inUntrustedWorkspace,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(115,"unicodeHighlight",e,{[t.unicodeHighlightConfigKeys.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,t.inUntrustedWorkspace],default:e.nonBasicASCII,description:n.localize("vs/editor/common/config/editorOptions",96,"Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.")},[t.unicodeHighlightConfigKeys.invisibleCharacters]:{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:n.localize("vs/editor/common/config/editorOptions",97,"Controls whether characters that just reserve space or have no width at all are highlighted.")},[t.unicodeHighlightConfigKeys.ambiguousCharacters]:{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:n.localize("vs/editor/common/config/editorOptions",98,"Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},[t.unicodeHighlightConfigKeys.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,t.inUntrustedWorkspace],default:e.includeComments,description:n.localize("vs/editor/common/config/editorOptions",99,"Controls whether characters in comments should also be subject to unicode highlighting.")},[t.unicodeHighlightConfigKeys.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,t.inUntrustedWorkspace],default:e.includeStrings,description:n.localize("vs/editor/common/config/editorOptions",100,"Controls whether characters in strings should also be subject to unicode highlighting.")},[t.unicodeHighlightConfigKeys.allowedCharacters]:{restricted:!0,type:"object",default:e.allowedCharacters,description:n.localize("vs/editor/common/config/editorOptions",101,"Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[t.unicodeHighlightConfigKeys.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:e.allowedLocales,description:n.localize("vs/editor/common/config/editorOptions",102,"Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(e,t){let r=!1;t.allowedCharacters&&e&&(a.equals(e.allowedCharacters,t.allowedCharacters)||(e=Object.assign(Object.assign({},e),{allowedCharacters:t.allowedCharacters}),r=!0)),t.allowedLocales&&e&&(a.equals(e.allowedLocales,t.allowedLocales)||(e=Object.assign(Object.assign({},e),{allowedLocales:t.allowedLocales}),r=!0));const n=super.applyUpdate(e,t);return r?new h(n.newValue,!0):n}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const r=e;return{nonBasicASCII:A(r.nonBasicASCII,t.inUntrustedWorkspace,[!0,!1,t.inUntrustedWorkspace]),invisibleCharacters:m(r.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:m(r.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:A(r.includeComments,t.inUntrustedWorkspace,[!0,!1,t.inUntrustedWorkspace]),includeStrings:A(r.includeStrings,t.inUntrustedWorkspace,[!0,!1,t.inUntrustedWorkspace]),allowedCharacters:this.validateBooleanMap(e.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(e.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(e,t){if("object"!=typeof e||!e)return t;const r={};for(const[t,n]of Object.entries(e))!0===n&&(r[t]=!0);return r}}),unusualLineTerminators:I(new k(116,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[n.localize("vs/editor/common/config/editorOptions",280,"Unusual line terminators are automatically removed."),n.localize("vs/editor/common/config/editorOptions",281,"Unusual line terminators are ignored."),n.localize("vs/editor/common/config/editorOptions",282,"Unusual line terminators prompt to be removed.")],description:n.localize("vs/editor/common/config/editorOptions",283,"Remove unusual line terminators that might cause problems.")})),useShadowDOM:I(new b(117,"useShadowDOM",!0)),useTabStops:I(new b(118,"useTabStops",!0,{description:n.localize("vs/editor/common/config/editorOptions",284,"Inserting and deleting whitespace follows tab stops.")})),wordSeparators:I(new w(119,"wordSeparators",o.USUAL_WORD_SEPARATORS,{description:n.localize("vs/editor/common/config/editorOptions",285,"Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:I(new k(120,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[n.localize("vs/editor/common/config/editorOptions",286,"Lines will never wrap."),n.localize("vs/editor/common/config/editorOptions",287,"Lines will wrap at the viewport width."),n.localize("vs/editor/common/config/editorOptions",288,"Lines will wrap at `#editor.wordWrapColumn#`."),n.localize("vs/editor/common/config/editorOptions",289,"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:n.localize("vs/editor/common/config/editorOptions",290,"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:I(new w(121,"wordWrapBreakAfterCharacters"," \t})]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」")),wordWrapBreakBeforeCharacters:I(new w(122,"wordWrapBreakBeforeCharacters","([{‘“〈《「『【〔([{「£¥$£¥++")),wordWrapColumn:I(new y(123,"wordWrapColumn",80,1,1073741824,{markdownDescription:n.localize("vs/editor/common/config/editorOptions",291,"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:I(new k(124,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:I(new k(125,"wordWrapOverride2","inherit",["off","on","inherit"])),wrappingIndent:I(new E(126,"wrappingIndent",1,"same",["none","same","indent","deepIndent"],(function(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}}),{enumDescriptions:[n.localize("vs/editor/common/config/editorOptions",292,"No indentation. Wrapped lines begin at column 1."),n.localize("vs/editor/common/config/editorOptions",293,"Wrapped lines get the same indentation as the parent."),n.localize("vs/editor/common/config/editorOptions",294,"Wrapped lines get +1 indentation toward the parent."),n.localize("vs/editor/common/config/editorOptions",295,"Wrapped lines get +2 indentation toward the parent.")],description:n.localize("vs/editor/common/config/editorOptions",296,"Controls the indentation of wrapped lines.")})),wrappingStrategy:I(new k(127,"wrappingStrategy","simple",["simple","advanced"],{enumDescriptions:[n.localize("vs/editor/common/config/editorOptions",297,"Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),n.localize("vs/editor/common/config/editorOptions",298,"Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],description:n.localize("vs/editor/common/config/editorOptions",299,"Controls the algorithm that computes wrapping points.")})),editorClassName:I(new class extends p{constructor(){super(130)}compute(e,t,r){const n=["monaco-editor"];return t.get(34)&&n.push(t.get(34)),e.extraEditorClassName&&n.push(e.extraEditorClassName),"default"===t.get(67)?n.push("mouse-default"):"copy"===t.get(67)&&n.push("mouse-copy"),t.get(101)&&n.push("showUnused"),t.get(128)&&n.push("showDeprecated"),n.join(" ")}}),pixelRatio:I(new class extends p{constructor(){super(131)}compute(e,t,r){return e.pixelRatio}}),tabFocusMode:I(new class extends p{constructor(){super(132)}compute(e,t,r){return!!t.get(82)||e.tabFocusMode}}),layoutInfo:I(new x),wrappingInfo:I(new class extends p{constructor(){super(134)}compute(e,t,r){const n=t.get(133);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:n.isWordWrapMinified,isViewportWrapping:n.isViewportWrapping,wrappingColumn:n.wrappingColumn}}})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getWordAtText=t.ensureValidWordDefinition=t.DEFAULT_WORD_REGEXP=t.USUAL_WORD_SEPARATORS=void 0;const n=r(248),i=r(249);t.USUAL_WORD_SEPARATORS="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?",t.DEFAULT_WORD_REGEXP=function(e=""){let r="(-?\\d*\\.\\d\\w*)|([^";for(const n of t.USUAL_WORD_SEPARATORS)e.indexOf(n)>=0||(r+="\\"+n);return r+="\\s]+)",new RegExp(r,"g")}(),t.ensureValidWordDefinition=function(e){let r=t.DEFAULT_WORD_REGEXP;if(e&&e instanceof RegExp)if(e.global)r=e;else{let t="g";e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),r=new RegExp(e.source,t)}return r.lastIndex=0,r};const o=new i.LinkedList;function s(e,t,r,n){let i;for(;i=e.exec(t);){const t=i.index||0;if(t<=r&&e.lastIndex>=r)return i;if(n>0&&t>n)return null}return null}o.unshift({maxLen:1e3,windowSize:15,timeBudget:150}),t.getWordAtText=function e(t,r,i,a,c){if(c||(c=n.Iterable.first(o)),i.length>c.maxLen){let n=t-c.maxLen/2;return n<0?n=0:a+=n,e(t,r,i=i.substring(n,t+c.maxLen/2),a,c)}const l=Date.now(),u=t-1-a;let d=-1,h=null;for(let e=1;!(Date.now()-l>=c.timeBudget);e++){const t=u-c.windowSize*e;r.lastIndex=Math.max(0,t);const n=s(r,i,u,d);if(!n&&h)break;if(h=n,t<=0)break;d=t}if(h){const e={word:h[0],startColumn:a+1+h.index,endColumn:a+1+h.index+h[0].length};return r.lastIndex=0,e}return null}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EDITOR_MODEL_DEFAULTS=void 0,t.EDITOR_MODEL_DEFAULTS={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LanguageFeatureRegistry=void 0;const n=r(61),i=r(72),o=r(245),s=r(601);function a(e){return"string"!=typeof e&&(Array.isArray(e)?e.every(a):!!e.exclusive)}class c{constructor(e,t,r,n){this.uri=e,this.languageId=t,this.notebookUri=r,this.notebookType=n}equals(e){var t,r;return this.notebookType===e.notebookType&&this.languageId===e.languageId&&this.uri.toString()===e.uri.toString()&&(null===(t=this.notebookUri)||void 0===t?void 0:t.toString())===(null===(r=e.notebookUri)||void 0===r?void 0:r.toString())}}class l{constructor(e){this._notebookInfoResolver=e,this._clock=0,this._entries=[],this._onDidChange=new n.Emitter,this.onDidChange=this._onDidChange.event}register(e,t){let r={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(r),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),(0,i.toDisposable)(()=>{if(r){const e=this._entries.indexOf(r);e>=0&&(this._entries.splice(e,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),r=void 0)}})}has(e){return this.all(e).length>0}all(e){if(!e)return[];this._updateScores(e);const t=[];for(const e of this._entries)e._score>0&&t.push(e.provider);return t}ordered(e){const t=[];return this._orderedForEach(e,e=>t.push(e.provider)),t}orderedGroups(e){const t=[];let r,n;return this._orderedForEach(e,e=>{r&&n===e._score?r.push(e.provider):(n=e._score,r=[e.provider],t.push(r))}),t}_orderedForEach(e,t){this._updateScores(e);for(const e of this._entries)e._score>0&&t(e)}_updateScores(e){var t,r;const n=null===(t=this._notebookInfoResolver)||void 0===t?void 0:t.call(this,e.uri),i=n?new c(e.uri,e.getLanguageId(),n.uri,n.type):new c(e.uri,e.getLanguageId(),void 0,void 0);if(!(null===(r=this._lastCandidate)||void 0===r?void 0:r.equals(i))){this._lastCandidate=i;for(const t of this._entries)if(t._score=(0,s.score)(t.selector,i.uri,i.languageId,(0,o.shouldSynchronizeModel)(e),i.notebookUri,i.notebookType),a(t.selector)&&t._score>0){for(const e of this._entries)e._score=0;t._score=1e3;break}this._entries.sort(l._compareByScoreAndTime)}}static _compareByScoreAndTime(e,t){return e._score<t._score?1:e._score>t._score?-1:e._time<t._time?1:e._time>t._time?-1:0}}t.LanguageFeatureRegistry=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.score=void 0;const n=r(602),i=r(71);t.score=function e(t,r,o,s,a,c){if(Array.isArray(t)){let n=0;for(const i of t){const t=e(i,r,o,s,a,c);if(10===t)return t;t>n&&(n=t)}return n}if("string"==typeof t)return s?"*"===t?5:t===o?10:0:0;if(t){const{language:e,pattern:l,scheme:u,hasAccessToAllModels:d,notebookType:h}=t;if(!s&&!d)return 0;h&&a&&(r=a);let f=0;if(u)if(u===r.scheme)f=10;else{if("*"!==u)return 0;f=5}if(e)if(e===o)f=10;else{if("*"!==e)return 0;f=Math.max(f,5)}if(h)if(h===c)f=10;else{if("*"!==h||void 0===c)return 0;f=Math.max(f,5)}if(l){let e;if(e="string"==typeof l?l:Object.assign(Object.assign({},l),{base:(0,i.normalize)(l.base)}),e!==r.fsPath&&!(0,n.match)(e,r.fsPath))return 0;f=10}return f}return 0}},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.isRelativePattern=t.parse=t.match=t.splitGlobAware=t.GLOB_SPLIT=t.GLOBSTAR=void 0;const i=r(603),o=r(605),s=r(608),a=r(71),c=r(31),l=r(127);t.GLOBSTAR="**",t.GLOB_SPLIT="/";const u=/\//g;function d(e,t){switch(e){case 0:return"";case 1:return"[^/\\\\]*?";default:return`(?:[/\\\\]|[^/\\\\]+[/\\\\]${t?"|[/\\\\][^/\\\\]+":""})*?`}}function h(e,t){if(!e)return[];const r=[];let n=!1,i=!1,o="";for(const s of e){switch(s){case t:if(!n&&!i){r.push(o),o="";continue}break;case"{":n=!0;break;case"}":n=!1;break;case"[":i=!0;break;case"]":i=!1}o+=s}return o&&r.push(o),r}t.splitGlobAware=h;const f=/^\*\*\/\*\.[\w\.-]+$/,p=/^\*\*\/([\w\.-]+)\/?$/,g=/^{\*\*\/\*?[\w\.-]+\/?(,\*\*\/\*?[\w\.-]+\/?)*}$/,m=/^{\*\*\/\*?[\w\.-]+(\/(\*\*)?)?(,\*\*\/\*?[\w\.-]+(\/(\*\*)?)?)*}$/,b=/^\*\*((\/[\w\.-]+)+)\/?$/,v=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,y=new s.LRUCache(1e4),_=function(){return!1},w=function(){return null};function C(e,r){if(!e)return w;let n;n="string"!=typeof e?e.pattern:e,n=n.trim();const i=`${n}_${!!r.trimForExclusions}`;let o,s=y.get(i);return s||(s=f.test(n)?function(e,t){return function(r,n){return"string"==typeof r&&r.endsWith(e)?t:null}}(n.substr(4),n):(o=p.exec(E(n,r)))?function(e,t){const r="/"+e,n="\\"+e,i=function(i,o){return"string"!=typeof i?null:o?o===e?t:null:i===e||i.endsWith(r)||i.endsWith(n)?t:null},o=[e];return i.basenames=o,i.patterns=[t],i.allBasenames=o,i}(o[1],n):(r.trimForExclusions?m:g).test(n)?function(e,t){const r=T(e.slice(1,-1).split(",").map(e=>C(e,t)).filter(e=>e!==w),e),n=r.length;if(!n)return w;if(1===n)return r[0];const i=function(t,n){for(let i=0,o=r.length;i<o;i++)if(r[i](t,n))return e;return null},o=r.find(e=>!!e.allBasenames);o&&(i.allBasenames=o.allBasenames);const s=r.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);s.length&&(i.allPaths=s);return i}(n,r):(o=b.exec(E(n,r)))?S(o[1].substr(1),n,!0):(o=v.exec(E(n,r)))?S(o[1],n,!1):function(e){try{const r=new RegExp(`^${function e(r){if(!r)return"";let n="";const i=h(r,t.GLOB_SPLIT);if(i.every(e=>e===t.GLOBSTAR))n=".*";else{let r=!1;i.forEach((o,s)=>{if(o===t.GLOBSTAR){if(r)return;n+=d(2,s===i.length-1)}else{let r=!1,a="",c=!1,u="";for(const i of o)if("}"!==i&&r)a+=i;else if(!c||"]"===i&&u)switch(i){case"{":r=!0;continue;case"[":c=!0;continue;case"}":{const t=`(?:${h(a,",").map(t=>e(t)).join("|")})`;n+=t,r=!1,a="";break}case"]":n+="["+u+"]",c=!1,u="";break;case"?":n+="[^/\\\\]";continue;case"*":n+=d(1);continue;default:n+=(0,l.escapeRegExpCharacters)(i)}else{let e;e="-"===i?i:"^"!==i&&"!"!==i||u?i===t.GLOB_SPLIT?"":(0,l.escapeRegExpCharacters)(i):"^",u+=e}s<i.length-1&&(i[s+1]!==t.GLOBSTAR||s+2<i.length)&&(n+="[/\\\\]")}r=o===t.GLOBSTAR})}return n}(e)}$`);return function(t){return r.lastIndex=0,"string"==typeof t&&r.test(t)?e:null}}catch(e){return w}}(n),y.set(i,s)),k(s,e)}function k(e,t){if("string"==typeof t)return e;const r=function(r,n){return(0,o.isEqualOrParent)(r,t.base,!c.isLinux)?e(r.substr(t.base.length+1),n):null};return r.allBasenames=e.allBasenames,r.allPaths=e.allPaths,r.basenames=e.basenames,r.patterns=e.patterns,r}function E(e,t){return t.trimForExclusions&&e.endsWith("/**")?e.substr(0,e.length-2):e}function S(e,t,r){const n=a.sep===a.posix.sep,i=n?e:e.replace(u,a.sep),o=a.sep+i,s=a.posix.sep+e;let c;return c=r?function(r,a){return"string"!=typeof r||r!==i&&!r.endsWith(o)&&(n||r!==e&&!r.endsWith(s))?null:t}:function(r,o){return"string"!=typeof r||r!==i&&(n||r!==e)?null:t},c.allPaths=[(r?"*/":"./")+e],c}function D(e,t={}){if(!e)return _;if("string"==typeof e||x(e)){const r=C(e,t);if(r===w)return _;const n=function(e,t){return!!r(e,t)};return r.allBasenames&&(n.allBasenames=r.allBasenames),r.allPaths&&(n.allPaths=r.allPaths),n}return function(e,t){const r=T(Object.getOwnPropertyNames(e).map(r=>function(e,t,r){if(!1===t)return w;const n=C(e,r);if(n===w)return w;if("boolean"==typeof t)return n;if(t){const r=t.when;if("string"==typeof r){const t=(t,o,s,a)=>{if(!a||!n(t,o))return null;const c=a(r.replace("$(basename)",s));return(0,i.isThenable)(c)?c.then(t=>t?e:null):c?e:null};return t.requiresSiblings=!0,t}}return n}(r,e[r],t)).filter(e=>e!==w)),o=r.length;if(!o)return w;if(!r.some(e=>!!e.requiresSiblings)){if(1===o)return r[0];const e=function(e,t){let o=void 0;for(let n=0,s=r.length;n<s;n++){const s=r[n](e,t);if("string"==typeof s)return s;(0,i.isThenable)(s)&&(o||(o=[]),o.push(s))}return o?(()=>n(this,void 0,void 0,(function*(){for(const e of o){const t=yield e;if("string"==typeof t)return t}return null})))():null},t=r.find(e=>!!e.allBasenames);t&&(e.allBasenames=t.allBasenames);const s=r.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);return s.length&&(e.allPaths=s),e}const s=function(e,t,o){let s=void 0,c=void 0;for(let n=0,l=r.length;n<l;n++){const l=r[n];l.requiresSiblings&&o&&(t||(t=(0,a.basename)(e)),s||(s=t.substr(0,t.length-(0,a.extname)(e).length)));const u=l(e,t,s,o);if("string"==typeof u)return u;(0,i.isThenable)(u)&&(c||(c=[]),c.push(u))}return c?(()=>n(this,void 0,void 0,(function*(){for(const e of c){const t=yield e;if("string"==typeof t)return t}return null})))():null},c=r.find(e=>!!e.allBasenames);c&&(s.allBasenames=c.allBasenames);const l=r.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);l.length&&(s.allPaths=l);return s}(e,t)}function x(e){const t=e;return!!t&&("string"==typeof t.base&&"string"==typeof t.pattern)}function T(e,t){const r=e.filter(e=>!!e.basenames);if(r.length<2)return e;const n=r.reduce((e,t)=>{const r=t.basenames;return r?e.concat(r):e},[]);let i;if(t){i=[];for(let e=0,r=n.length;e<r;e++)i.push(t)}else i=r.reduce((e,t)=>{const r=t.patterns;return r?e.concat(r):e},[]);const o=function(e,t){if("string"!=typeof e)return null;if(!t){let r;for(r=e.length;r>0;r--){const t=e.charCodeAt(r-1);if(47===t||92===t)break}t=e.substr(r)}const r=n.indexOf(t);return-1!==r?i[r]:null};o.basenames=n,o.patterns=i,o.allBasenames=n;const s=e.filter(e=>!e.basenames);return s.push(o),s}t.match=function(e,t,r){return!(!e||"string"!=typeof t)&&D(e)(t,void 0,r)},t.parse=D,t.isRelativePattern=x},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))},i=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.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(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,i,(t=e[r](t)).done,t.value)}))}}};Object.defineProperty(t,"__esModule",{value:!0}),t.createCancelableAsyncIterable=t.CancelableAsyncIterableObject=t.AsyncIterableObject=t.Promises=t.DeferredPromise=t.IdleValue=t.runWhenIdle=t.RunOnceScheduler=t.IntervalTimer=t.TimeoutTimer=t.first=t.disposableTimeout=t.timeout=t.ThrottledDelayer=t.Delayer=t.MicrotaskDelay=t.Throttler=t.raceCancellation=t.createCancelablePromise=t.isThenable=void 0;const o=r(604),s=r(247),a=r(61),c=r(72),l=r(31);function u(e){const t=new o.CancellationTokenSource,r=e(t.token),n=new Promise((e,n)=>{const i=t.token.onCancellationRequested(()=>{i.dispose(),t.dispose(),n(new s.CancellationError)});Promise.resolve(r).then(r=>{i.dispose(),t.dispose(),e(r)},e=>{i.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)}}}t.isThenable=function(e){return!!e&&"function"==typeof e.then},t.createCancelablePromise=u,t.raceCancellation=function(e,t,r){return new Promise((n,i)=>{const o=t.onCancellationRequested(()=>{o.dispose(),n(r)});e.then(n,i).finally(()=>o.dispose())})};class d{constructor(){this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(e){if(this.activePromise){if(this.queuedPromiseFactory=e,!this.queuedPromise){const e=()=>{this.queuedPromise=null;const 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)})})}}t.Throttler=d;t.MicrotaskDelay=Symbol("MicrotaskDelay");class h{constructor(e){this.defaultDelay=e,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(e,r=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){const e=this.task;return this.task=null,e()}}));const n=()=>{var e;this.deferred=null,null===(e=this.doResolve)||void 0===e||e.call(this,null)};return this.deferred=r===t.MicrotaskDelay?(e=>{let t=!0;return queueMicrotask(()=>{t&&(t=!1,e())}),{isTriggered:()=>t,dispose:()=>{t=!1}}})(n):((e,t)=>{let r=!0;const n=setTimeout(()=>{r=!1,t()},e);return{isTriggered:()=>r,dispose:()=>{clearTimeout(n),r=!1}}})(r,n),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 s.CancellationError),this.completionPromise=null)}cancelTimeout(){var e;null===(e=this.deferred)||void 0===e||e.dispose(),this.deferred=null}dispose(){this.cancel()}}t.Delayer=h;t.ThrottledDelayer=class{constructor(e){this.delayer=new h(e),this.throttler=new d}trigger(e,t){return this.delayer.trigger(()=>this.throttler.queue(e),t)}isTriggered(){return this.delayer.isTriggered()}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose()}},t.timeout=function e(t,r){return r?new Promise((e,n)=>{const i=setTimeout(()=>{o.dispose(),e()},t),o=r.onCancellationRequested(()=>{clearTimeout(i),o.dispose(),n(new s.CancellationError)})}):u(r=>e(t,r))},t.disposableTimeout=function(e,t=0){const r=setTimeout(e,t);return(0,c.toDisposable)(()=>clearTimeout(r))},t.first=function(e,t=(e=>!!e),r=null){let n=0;const i=e.length,o=()=>{if(n>=i)return Promise.resolve(r);const s=e[n++];return Promise.resolve(s()).then(e=>t(e)?Promise.resolve(e):o())};return o()};t.TimeoutTimer=class{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))}};t.IntervalTimer=class{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)}};t.RunOnceScheduler=class{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?t.runWhenIdle=e=>{(0,l.setTimeout0)(()=>{if(t)return;const r=Date.now()+15;e(Object.freeze({didTimeout:!0,timeRemaining:()=>Math.max(0,r-Date.now())}))});let t=!1;return{dispose(){t||(t=!0)}}}:t.runWhenIdle=(e,t)=>{const r=requestIdleCallback(e,"number"==typeof t?{timeout:t}:void 0);let n=!1;return{dispose(){n||(n=!0,cancelIdleCallback(r))}}};t.IdleValue=class{constructor(e){this._didRun=!1,this._executor=()=>{try{this._value=e()}catch(e){this._error=e}finally{this._didRun=!0}},this._handle=(0,t.runWhenIdle)(()=>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}};var f;t.DeferredPromise=class{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 isResolved(){return this.resolved}get isSettled(){return this.rejected||this.resolved}complete(e){return new Promise(t=>{this.completeCallback(e),this.resolved=!0,t()})}error(e){return new Promise(t=>{this.errorCallback(e),this.rejected=!0,t()})}cancel(){new Promise(e=>{this.errorCallback(new s.CancellationError),this.rejected=!0,e()})}},function(e){e.settled=function(e){return n(this,void 0,void 0,(function*(){let t=void 0;const r=yield Promise.all(e.map(e=>e.then(e=>e,e=>{t||(t=e)})));if(void 0!==t)throw t;return r}))},e.withAsyncBody=function(e){return new Promise((t,r)=>n(this,void 0,void 0,(function*(){try{yield e(t,r)}catch(e){r(e)}})))}}(t.Promises||(t.Promises={})),function(e){e[e.Initial=0]="Initial",e[e.DoneOK=1]="DoneOK",e[e.DoneError=2]="DoneError"}(f||(f={}));class p{constructor(e){this._state=0,this._results=[],this._error=null,this._onStateChanged=new a.Emitter,queueMicrotask(()=>n(this,void 0,void 0,(function*(){const 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 p(t=>{t.emitMany(e)})}static fromPromise(e){return new p(t=>n(this,void 0,void 0,(function*(){t.emitMany(yield e)})))}static fromPromises(e){return new p(t=>n(this,void 0,void 0,(function*(){yield Promise.all(e.map(e=>n(this,void 0,void 0,(function*(){return t.emitOne(yield e)}))))})))}static merge(e){return new p(t=>n(this,void 0,void 0,(function*(){yield Promise.all(e.map(e=>{var r,o;return n(this,void 0,void 0,(function*(){var n,s;try{for(r=i(e);!(o=yield r.next()).done;){const e=o.value;t.emitOne(e)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(s=r.return)&&(yield s.call(r))}finally{if(n)throw n.error}}}))}))})))}[Symbol.asyncIterator](){let e=0;return{next:()=>n(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.Event.toPromise(this._onStateChanged.event)}}))}}static map(e,t){return new p(r=>n(this,void 0,void 0,(function*(){var n,o;try{for(var s,a=i(e);!(s=yield a.next()).done;){const e=s.value;r.emitOne(t(e))}}catch(e){n={error:e}}finally{try{s&&!s.done&&(o=a.return)&&(yield o.call(a))}finally{if(n)throw n.error}}})))}map(e){return p.map(this,e)}static filter(e,t){return new p(r=>n(this,void 0,void 0,(function*(){var n,o;try{for(var s,a=i(e);!(s=yield a.next()).done;){const e=s.value;t(e)&&r.emitOne(e)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(o=a.return)&&(yield o.call(a))}finally{if(n)throw n.error}}})))}filter(e){return p.filter(this,e)}static coalesce(e){return p.filter(e,e=>!!e)}coalesce(){return p.coalesce(this)}static toPromise(e){var t,r,o,s;return n(this,void 0,void 0,(function*(){const n=[];try{for(t=i(e);!(r=yield t.next()).done;){const e=r.value;n.push(e)}}catch(e){o={error:e}}finally{try{r&&!r.done&&(s=t.return)&&(yield s.call(t))}finally{if(o)throw o.error}}return n}))}toPromise(){return p.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())}}t.AsyncIterableObject=p,p.EMPTY=p.fromArray([]);class g extends p{constructor(e,t){super(t),this._source=e}cancel(){this._source.cancel()}}t.CancelableAsyncIterableObject=g,t.createCancelableAsyncIterable=function(e){const t=new o.CancellationTokenSource,r=e(t.token);return new g(t,e=>n(this,void 0,void 0,(function*(){var n,o;const a=t.token.onCancellationRequested(()=>{a.dispose(),t.dispose(),e.reject(new s.CancellationError)});try{try{for(var c,l=i(r);!(c=yield l.next()).done;){const r=c.value;if(t.token.isCancellationRequested)return;e.emitOne(r)}}catch(e){n={error:e}}finally{try{c&&!c.done&&(o=l.return)&&(yield o.call(l))}finally{if(n)throw n.error}}a.dispose(),t.dispose()}catch(r){a.dispose(),t.dispose(),e.reject(r)}})))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CancellationTokenSource=t.CancellationToken=void 0;const n=r(61),i=Object.freeze((function(e,t){const r=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(r)}}}));var o;!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||(t instanceof s||!(!t||"object"!=typeof t)&&("boolean"==typeof t.isCancellationRequested&&"function"==typeof t.onCancellationRequested))},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:n.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:i})}(o=t.CancellationToken||(t.CancellationToken={}));class s{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?i:(this._emitter||(this._emitter=new n.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}t.CancellationTokenSource=class{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new s),this._token}cancel(){this._token?this._token instanceof s&&this._token.cancel():this._token=o.Cancelled}dispose(e=!1){var t;e&&this.cancel(),null===(t=this._parentListener)||void 0===t||t.dispose(),this._token?this._token instanceof s&&this._token.dispose():this._token=o.None}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasDriveLetter=t.isWindowsDriveLetter=t.isEqualOrParent=t.getRoot=t.toPosixPath=t.toSlashes=t.isPathSeparator=void 0;const n=r(71),i=r(31),o=r(127);function s(e){return 47===e||92===e}function a(e){return e.replace(/[\\/]/g,n.posix.sep)}function c(e){return e>=65&&e<=90||e>=97&&e<=122}t.isPathSeparator=s,t.toSlashes=a,t.toPosixPath=function(e){return-1===e.indexOf("/")&&(e=a(e)),/^[a-zA-Z]:(\/|$)/.test(e)&&(e="/"+e),e},t.getRoot=function(e,t=n.posix.sep){if(!e)return"";const r=e.length,i=e.charCodeAt(0);if(s(i)){if(s(e.charCodeAt(1))&&!s(e.charCodeAt(2))){let n=3;const i=n;for(;n<r&&!s(e.charCodeAt(n));n++);if(i!==n&&!s(e.charCodeAt(n+1)))for(n+=1;n<r;n++)if(s(e.charCodeAt(n)))return e.slice(0,n+1).replace(/[\\/]/g,t)}return t}if(c(i)&&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<r;o++)if(s(e.charCodeAt(o)))return e.slice(0,o+1);return""},t.isEqualOrParent=function(e,t,r,i=n.sep){if(e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(r){if(!(0,o.startsWithIgnoreCase)(e,t))return!1;if(t.length===e.length)return!0;let r=t.length;return t.charAt(t.length-1)===i&&r--,e.charAt(r)===i}return t.charAt(t.length-1)!==i&&(t+=i),0===e.indexOf(t)},t.isWindowsDriveLetter=c,t.hasDriveLetter=function(e,t=i.isWindows){return!!t&&(c(e.charCodeAt(0))&&58===e.charCodeAt(1))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CachedFunction=t.LRUCachedFunction=void 0;t.LRUCachedFunction=class{constructor(e){this.fn=e,this.lastCache=void 0,this.lastArgKey=void 0}get(e){const t=JSON.stringify(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this.fn(e)),this.lastCache}};t.CachedFunction=class{constructor(e){this.fn=e,this._map=new Map}get cachedValues(){return this._map}get(e){if(this._map.has(e))return this._map.get(e);const t=this.fn(e);return this._map.set(e,t),t}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Lazy=void 0;class n{constructor(e){this.executor=e,this._didRun=!1}hasValue(){return this._didRun}getValue(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}map(e){return new n(()=>e(this.getValue()))}}t.Lazy=n},function(e,t,r){"use strict";var n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.LRUCache=t.LinkedMap=t.Touch=t.ResourceMap=t.TernarySearchTree=t.UriIterator=t.PathIterator=t.ConfigKeysIterator=t.StringIterator=void 0;const o=r(250),s=r(127);class a{constructor(){this._value="",this._pos=0}reset(e){return this._value=e,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos<this._value.length-1}cmp(e){return e.charCodeAt(0)-this._value.charCodeAt(this._pos)}value(){return this._value[this._pos]}}t.StringIterator=a;class c{constructor(e=!0){this._caseSensitive=e}reset(e){return this._value=e,this._from=0,this._to=0,this.next()}hasNext(){return this._to<this._value.length}next(){this._from=this._to;let e=!0;for(;this._to<this._value.length;this._to++){if(46===this._value.charCodeAt(this._to)){if(!e)break;this._from++}else e=!1}return this}cmp(e){return this._caseSensitive?(0,s.compareSubstring)(e,this._value,0,e.length,this._from,this._to):(0,s.compareSubstringIgnoreCase)(e,this._value,0,e.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}t.ConfigKeysIterator=c;class l{constructor(e=!0,t=!0){this._splitOnBackslash=e,this._caseSensitive=t}reset(e){this._from=0,this._to=0,this._value=e,this._valueLen=e.length;for(let t=e.length-1;t>=0;t--,this._valueLen--){const e=this._value.charCodeAt(t);if(!(47===e||this._splitOnBackslash&&92===e))break}return this.next()}hasNext(){return this._to<this._valueLen}next(){this._from=this._to;let e=!0;for(;this._to<this._valueLen;this._to++){const t=this._value.charCodeAt(this._to);if(47===t||this._splitOnBackslash&&92===t){if(!e)break;this._from++}else e=!1}return this}cmp(e){return this._caseSensitive?(0,s.compareSubstring)(e,this._value,0,e.length,this._from,this._to):(0,s.compareSubstringIgnoreCase)(e,this._value,0,e.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}var u,d;t.PathIterator=l,function(e){e[e.Scheme=1]="Scheme",e[e.Authority=2]="Authority",e[e.Path=3]="Path",e[e.Query=4]="Query",e[e.Fragment=5]="Fragment"}(u||(u={}));class h{constructor(e,t){this._ignorePathCasing=e,this._ignoreQueryAndFragment=t,this._states=[],this._stateIdx=0}reset(e){return this._value=e,this._states=[],this._value.scheme&&this._states.push(1),this._value.authority&&this._states.push(2),this._value.path&&(this._pathIterator=new l(!1,!this._ignorePathCasing(e)),this._pathIterator.reset(e.path),this._pathIterator.value()&&this._states.push(3)),this._ignoreQueryAndFragment(e)||(this._value.query&&this._states.push(4),this._value.fragment&&this._states.push(5)),this._stateIdx=0,this}next(){return 3===this._states[this._stateIdx]&&this._pathIterator.hasNext()?this._pathIterator.next():this._stateIdx+=1,this}hasNext(){return 3===this._states[this._stateIdx]&&this._pathIterator.hasNext()||this._stateIdx<this._states.length-1}cmp(e){if(1===this._states[this._stateIdx])return(0,s.compareIgnoreCase)(e,this._value.scheme);if(2===this._states[this._stateIdx])return(0,s.compareIgnoreCase)(e,this._value.authority);if(3===this._states[this._stateIdx])return this._pathIterator.cmp(e);if(4===this._states[this._stateIdx])return(0,s.compare)(e,this._value.query);if(5===this._states[this._stateIdx])return(0,s.compare)(e,this._value.fragment);throw new Error}value(){if(1===this._states[this._stateIdx])return this._value.scheme;if(2===this._states[this._stateIdx])return this._value.authority;if(3===this._states[this._stateIdx])return this._pathIterator.value();if(4===this._states[this._stateIdx])return this._value.query;if(5===this._states[this._stateIdx])return this._value.fragment;throw new Error}}t.UriIterator=h;class f{constructor(){this.height=1}isEmpty(){return!(this.left||this.mid||this.right||this.value)}rotateLeft(){const e=this.right;return this.right=e.left,e.left=this,this.updateHeight(),e.updateHeight(),e}rotateRight(){const e=this.left;return this.left=e.right,e.right=this,this.updateHeight(),e.updateHeight(),e}updateHeight(){this.height=1+Math.max(this.heightLeft,this.heightRight)}balanceFactor(){return this.heightRight-this.heightLeft}get heightLeft(){var e,t;return null!==(t=null===(e=this.left)||void 0===e?void 0:e.height)&&void 0!==t?t:0}get heightRight(){var e,t;return null!==(t=null===(e=this.right)||void 0===e?void 0:e.height)&&void 0!==t?t:0}}!function(e){e[e.Left=-1]="Left",e[e.Mid=0]="Mid",e[e.Right=1]="Right"}(d||(d={}));class p{constructor(e){this._iter=e}static forUris(e=(()=>!1),t=(()=>!1)){return new p(new h(e,t))}static forPaths(e=!1){return new p(new l(void 0,!e))}static forStrings(){return new p(new a)}static forConfigKeys(){return new p(new c)}clear(){this._root=void 0}fill(e,t){if(t){const r=t.slice(0);(0,o.shuffle)(r);for(const t of r)this.set(t,e)}else{const t=e.slice(0);(0,o.shuffle)(t);for(const e of t)this.set(e[0],e[1])}}set(e,t){const r=this._iter.reset(e);let n;this._root||(this._root=new f,this._root.segment=r.value());const i=[];for(n=this._root;;){const e=r.cmp(n.segment);if(e>0)n.left||(n.left=new f,n.left.segment=r.value()),i.push([-1,n]),n=n.left;else if(e<0)n.right||(n.right=new f,n.right.segment=r.value()),i.push([1,n]),n=n.right;else{if(!r.hasNext())break;r.next(),n.mid||(n.mid=new f,n.mid.segment=r.value()),i.push([0,n]),n=n.mid}}const o=n.value;n.value=t,n.key=e;for(let e=i.length-1;e>=0;e--){const t=i[e][1];t.updateHeight();const r=t.balanceFactor();if(r<-1||r>1){const r=i[e][0],n=i[e+1][0];if(1===r&&1===n)i[e][1]=t.rotateLeft();else if(-1===r&&-1===n)i[e][1]=t.rotateRight();else if(1===r&&-1===n)t.right=i[e+1][1]=i[e+1][1].rotateRight(),i[e][1]=t.rotateLeft();else{if(-1!==r||1!==n)throw new Error;t.left=i[e+1][1]=i[e+1][1].rotateLeft(),i[e][1]=t.rotateRight()}if(e>0)switch(i[e-1][0]){case-1:i[e-1][1].left=i[e][1];break;case 1:i[e-1][1].right=i[e][1];break;case 0:i[e-1][1].mid=i[e][1]}else this._root=i[0][1]}}return o}get(e){var t;return null===(t=this._getNode(e))||void 0===t?void 0:t.value}_getNode(e){const t=this._iter.reset(e);let r=this._root;for(;r;){const e=t.cmp(r.segment);if(e>0)r=r.left;else if(e<0)r=r.right;else{if(!t.hasNext())break;t.next(),r=r.mid}}return r}has(e){const t=this._getNode(e);return!(void 0===(null==t?void 0:t.value)&&void 0===(null==t?void 0:t.mid))}delete(e){return this._delete(e,!1)}deleteSuperstr(e){return this._delete(e,!0)}_delete(e,t){var r;const n=this._iter.reset(e),i=[];let o=this._root;for(;o;){const e=n.cmp(o.segment);if(e>0)i.push([-1,o]),o=o.left;else if(e<0)i.push([1,o]),o=o.right;else{if(!n.hasNext())break;n.next(),i.push([0,o]),o=o.mid}}if(o){if(t?(o.left=void 0,o.mid=void 0,o.right=void 0,o.height=1):(o.key=void 0,o.value=void 0),!o.mid&&!o.value)if(o.left&&o.right){const e=this._min(o.right),{key:t,value:r,segment:n}=e;this._delete(e.key,!1),o.key=t,o.value=r,o.segment=n}else{const e=null!==(r=o.left)&&void 0!==r?r:o.right;if(i.length>0){const[t,r]=i[i.length-1];switch(t){case-1:r.left=e;break;case 0:r.mid=e;break;case 1:r.right=e}}else this._root=e}for(let e=i.length-1;e>=0;e--){const t=i[e][1];t.updateHeight();const r=t.balanceFactor();if(r>1?(t.right.balanceFactor()>=0||(t.right=t.right.rotateRight()),i[e][1]=t.rotateLeft()):r<-1&&(t.left.balanceFactor()<=0||(t.left=t.left.rotateLeft()),i[e][1]=t.rotateRight()),e>0)switch(i[e-1][0]){case-1:i[e-1][1].left=i[e][1];break;case 1:i[e-1][1].right=i[e][1];break;case 0:i[e-1][1].mid=i[e][1]}else this._root=i[0][1]}}}_min(e){for(;e.left;)e=e.left;return e}findSubstr(e){const t=this._iter.reset(e);let r=this._root,n=void 0;for(;r;){const e=t.cmp(r.segment);if(e>0)r=r.left;else if(e<0)r=r.right;else{if(!t.hasNext())break;t.next(),n=r.value||n,r=r.mid}}return r&&r.value||n}findSuperstr(e){const t=this._iter.reset(e);let r=this._root;for(;r;){const e=t.cmp(r.segment);if(e>0)r=r.left;else if(e<0)r=r.right;else{if(!t.hasNext())return r.mid?this._entries(r.mid):void 0;t.next(),r=r.mid}}}forEach(e){for(const[t,r]of this)e(r,t)}*[Symbol.iterator](){yield*this._entries(this._root)}_entries(e){const t=[];return this._dfsEntries(e,t),t[Symbol.iterator]()}_dfsEntries(e,t){e&&(e.left&&this._dfsEntries(e.left,t),e.value&&t.push([e.key,e.value]),e.mid&&this._dfsEntries(e.mid,t),e.right&&this._dfsEntries(e.right,t))}_isBalanced(){const e=t=>{if(!t)return!0;const r=t.balanceFactor();return!(r<-1||r>1)&&(e(t.left)&&e(t.right))};return e(this._root)}}t.TernarySearchTree=p;class g{constructor(e,t){this.uri=e,this.value=t}}class m{constructor(e,t){this[n]="ResourceMap",e instanceof m?(this.map=new Map(e.map),this.toKey=null!=t?t:m.defaultToKey):(this.map=new Map,this.toKey=null!=e?e:m.defaultToKey)}set(e,t){return this.map.set(this.toKey(e),new g(e,t)),this}get(e){var t;return null===(t=this.map.get(this.toKey(e)))||void 0===t?void 0:t.value}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,t){void 0!==t&&(e=e.bind(t));for(const[t,r]of this.map)e(r.value,r.uri,this)}*values(){for(const e of this.map.values())yield e.value}*keys(){for(const e of this.map.values())yield e.uri}*entries(){for(const e of this.map.values())yield[e.uri,e.value]}*[(n=Symbol.toStringTag,Symbol.iterator)](){for(const[,e]of this.map)yield[e.uri,e.value]}}t.ResourceMap=m,m.defaultToKey=e=>e.toString(),function(e){e[e.None=0]="None",e[e.AsOld=1]="AsOld",e[e.AsNew=2]="AsNew"}(t.Touch||(t.Touch={}));class b{constructor(){this[i]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var e;return null===(e=this._head)||void 0===e?void 0:e.value}get last(){var e;return null===(e=this._tail)||void 0===e?void 0:e.value}has(e){return this._map.has(e)}get(e,t=0){const r=this._map.get(e);if(r)return 0!==t&&this.touch(r,t),r.value}set(e,t,r=0){let n=this._map.get(e);if(n)n.value=t,0!==r&&this.touch(n,r);else{switch(n={key:e,value:t,next:void 0,previous:void 0},r){case 0:this.addItemLast(n);break;case 1:this.addItemFirst(n);break;case 2:default:this.addItemLast(n)}this._map.set(e,n),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const r=this._state;let n=this._head;for(;n;){if(t?e.bind(t)(n.value,n.key,this):e(n.value,n.key,this),this._state!==r)throw new Error("LinkedMap got modified during iteration.");n=n.next}}keys(){const e=this,t=this._state;let r=this._head;const n={[Symbol.iterator]:()=>n,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(r){const e={value:r.key,done:!1};return r=r.next,e}return{value:void 0,done:!0}}};return n}values(){const e=this,t=this._state;let r=this._head;const n={[Symbol.iterator]:()=>n,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(r){const e={value:r.value,done:!1};return r=r.next,e}return{value:void 0,done:!0}}};return n}entries(){const e=this,t=this._state;let r=this._head;const n={[Symbol.iterator]:()=>n,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(r){const e={value:[r.key,r.value],done:!1};return r=r.next,e}return{value:void 0,done:!0}}};return n}[(i=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,r=this.size;for(;t&&r>e;)this._map.delete(t.key),t=t.next,r--;this._head=t,this._size=r,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,r=e.previous;if(!t||!r)throw new Error("Invalid list");t.previous=r,r.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;const t=e.next,r=e.previous;e===this._tail?(r.next=void 0,this._tail=r):(t.previous=r,r.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(2===t){if(e===this._tail)return;const t=e.next,r=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=r,r.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){const e=[];return this.forEach((t,r)=>{e.push([r,t])}),e}fromJSON(e){this.clear();for(const[t,r]of e)this.set(t,r)}}t.LinkedMap=b;t.LRUCache=class extends b{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,t=2){return super.get(e,t)}peek(e){return super.get(e,0)}set(e,t){return super.set(e,t,2),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CommentThreadCollapsibleState=t.CommentMode=void 0;const n=r(125);Object.defineProperty(t,"CommentMode",{enumerable:!0,get:function(){return n.CommentMode}}),Object.defineProperty(t,"CommentThreadCollapsibleState",{enumerable:!0,get:function(){return n.CommentThreadCollapsibleState}})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TestItemRootImpl=t.TestItemImpl=t.MixedTestItemController=t.InvalidTestItemError=t.DuplicateTestItemError=t.diffTestItems=t.getPrivateApiFor=t.createPrivateApiFor=void 0;const n=new WeakMap;t.createPrivateApiFor=(e,t)=>{const r={controllerId:t};return n.set(e,r),r};t.getPrivateApiFor=e=>n.get(e);const i=(e,t,r,n)=>{let i=r;return{enumerable:!0,configurable:!1,get:()=>i,set(r){var o;if(!n(i,r)){const n=i;i=r,null===(o=e.listener)||void 0===o||o.call(e,{op:3,key:t,value:r,previous:n})}}}},o=(e,t)=>e===t,s={range:(e,t)=>e===t||!(!e||!t)&&e.isEqual(t),label:o,description:o,sortText:o,busy:o,error:o,canResolveChildren:o,tags:(e,t)=>e.length===t.length&&!e.some(e=>!t.find(t=>e.id===t.id))},a=Object.keys(s);t.diffTestItems=(e,t)=>{const r=new Map;for(const n of a){(0,s[n])(e[n],t[n])||r.set(n,t[n])}return r};class c extends Error{constructor(e){super("Attempted to insert a duplicate test item ID "+e)}}t.DuplicateTestItemError=c;class l extends Error{constructor(e){super(`TestItem with ID "${e}" is invalid. Make sure to create it from the createTestItem method.`)}}t.InvalidTestItemError=l;class u extends Error{constructor(e,t,r){super(`TestItem with ID "${e}" is from controller "${t}" and cannot be added as a child of an item from controller "${r}".`)}}t.MixedTestItemController=u;const d=e=>{const r=(0,t.getPrivateApiFor)(e);let n=new Map;return{get size(){return n.size},forEach(e,t){for(const r of n.values())e.call(t,r,this)},replace(e){var i;const o=new Map,s=new Set(n.keys()),a={op:4,ops:[]};for(const n of e){if(!(n instanceof h))throw new l(n.id);const e=(0,t.getPrivateApiFor)(n).controllerId;if(e!==r.controllerId)throw new u(n.id,e,r.controllerId);if(o.has(n.id))throw new c(n.id);o.set(n.id,n),s.delete(n.id),a.ops.push({op:0,item:n})}for(const e of s.keys())a.ops.push({op:1,id:e});null===(i=r.listener)||void 0===i||i.call(r,a),n=o},add(e){var t;if(!(e instanceof h))throw new l(e.id);n.set(e.id,e),null===(t=r.listener)||void 0===t||t.call(r,{op:0,item:e})},delete(e){var t;n.delete(e)&&(null===(t=r.listener)||void 0===t||t.call(r,{op:1,id:e}))},get:e=>n.get(e),toJSON:()=>Array.from(n.values()),[Symbol.iterator]:()=>n.values()}};class h{constructor(e,r,n,o){if(r.includes("\0"))throw new Error(`Test IDs may not include the ${JSON.stringify(r)} symbol`);const a=(0,t.createPrivateApiFor)(this,e);Object.defineProperties(this,Object.assign({id:{value:r,enumerable:!0,writable:!1},uri:{value:o,enumerable:!0,writable:!1},parent:{enumerable:!1,get:()=>a.parent instanceof f?void 0:a.parent},children:{value:d(this),enumerable:!0,writable:!1}},((e,t)=>({range:i(e,"range",void 0,s.range),label:i(e,"label",t,s.label),description:i(e,"description",void 0,s.description),sortText:i(e,"sortText",void 0,s.sortText),canResolveChildren:i(e,"canResolveChildren",!1,s.canResolveChildren),busy:i(e,"busy",!1,s.busy),error:i(e,"error",void 0,s.error),tags:i(e,"tags",[],s.tags)}))(a,n)))}invalidateResults(){var e,r;null===(r=(e=(0,t.getPrivateApiFor)(this)).listener)||void 0===r||r.call(e,{op:2})}}t.TestItemImpl=h;class f extends h{constructor(e,t){super(e,e,t,void 0)}}t.TestItemRootImpl=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.newCommands=t.ApiCommand=t.ApiCommandResult=t.ApiCommandArgument=void 0;const n=r(1),i=r(0),o=n.__importStar(r(5)),s=n.__importStar(r(4)),a=n.__importStar(r(126)),{isFalsyOrEmpty:c}=i.arrays;class l{constructor(e,t,r,n){this.name=e,this.description=t,this.validate=r,this.convert=n}optional(){return new l(this.name,"(optional) "+this.description,e=>null==e||this.validate(e),e=>void 0===e?void 0:null===e?null:this.convert(e))}with(e,t){return new l(null!=e?e:this.name,null!=t?t:this.description,this.validate,this.convert)}}t.ApiCommandArgument=l,l.Uri=new l("uri","Uri of a text document",e=>i.Uri.isUri(e),e=>e),l.Position=new l("position","A position in a text document",e=>s.Position.isPosition(e),o.fromPosition),l.Range=new l("range","A range in a text document",e=>s.Range.isRange(e),o.fromRange),l.Selection=new l("selection","A selection in a text document",e=>s.Selection.isSelection(e),o.fromSelection),l.Number=new l("number","",e=>"number"==typeof e,e=>e),l.String=new l("string","",e=>"string"==typeof e,e=>e),l.CallHierarchyItem=new l("item","A call hierarchy item",e=>e instanceof s.CallHierarchyItem,o.CallHierarchyItem.to),l.TypeHierarchyItem=new l("item","A type hierarchy item",e=>e instanceof s.TypeHierarchyItem,o.TypeHierarchyItem.to);class u{constructor(e,t){this.description=e,this.convert=t}}t.ApiCommandResult=u,u.Void=new u("no result",e=>e);class d{constructor(e,t,r,n,i){this.id=e,this.internalId=t,this.description=r,this.args=n,this.result=i}}function h(e){return t=>{if(Array.isArray(t))return t.map(e)}}function f(e){if(!Array.isArray(e))return;const t=[];for(const r of e)a.isLocationLink(r)?t.push(o.DefinitionLink.to(r)):t.push(o.location.to(r));return t}t.ApiCommand=d,t.newCommands=[new d("vscode.executeDocumentHighlights","_executeDocumentHighlights","Execute document highlight provider.",[l.Uri,l.Position],new u("A promise that resolves to an array of SymbolInformation and DocumentSymbol instances.",h(o.DocumentHighlight.to))),new d("vscode.executeDocumentSymbolProvider","_executeDocumentSymbolProvider","Execute document symbol provider.",[l.Uri],new u("A promise that resolves to an array of DocumentHighlight-instances.",(e,t)=>{if(!c(e)){class r extends s.SymbolInformation{static to(e){const n=new r(e.name,o.SymbolKind.toSymbolKind(e.kind),e.containerName||"",new s.Location(t[0],o.toRange(e.range)));return n.detail=e.detail,n.range=n.location.range,n.selectionRange=o.toRange(e.selectionRange),n.children=e.children?e.children.map(r.to):[],n}}return e.map(r.to)}})),new d("vscode.executeFormatDocumentProvider","_executeFormatDocumentProvider","Execute document format provider.",[l.Uri,new l("options","Formatting options",e=>!0,e=>e)],new u("A promise that resolves to an array of TextEdits.",h(o.TextEdit.to))),new d("vscode.executeFormatRangeProvider","_executeFormatRangeProvider","Execute range format provider.",[l.Uri,l.Range,new l("options","Formatting options",e=>!0,e=>e)],new u("A promise that resolves to an array of TextEdits.",h(o.TextEdit.to))),new d("vscode.executeFormatOnTypeProvider","_executeFormatOnTypeProvider","Execute format on type provider.",[l.Uri,l.Position,new l("ch","Trigger character",e=>"string"==typeof e,e=>e),new l("options","Formatting options",e=>!0,e=>e)],new u("A promise that resolves to an array of TextEdits.",h(o.TextEdit.to))),new d("vscode.executeDefinitionProvider","_executeDefinitionProvider","Execute all definition providers.",[l.Uri,l.Position],new u("A promise that resolves to an array of Location or LocationLink instances.",f)),new d("vscode.executeTypeDefinitionProvider","_executeTypeDefinitionProvider","Execute all type definition providers.",[l.Uri,l.Position],new u("A promise that resolves to an array of Location or LocationLink instances.",f)),new d("vscode.executeDeclarationProvider","_executeDeclarationProvider","Execute all declaration providers.",[l.Uri,l.Position],new u("A promise that resolves to an array of Location or LocationLink instances.",f)),new d("vscode.executeImplementationProvider","_executeImplementationProvider","Execute all implementation providers.",[l.Uri,l.Position],new u("A promise that resolves to an array of Location or LocationLink instances.",f)),new d("vscode.executeReferenceProvider","_executeReferenceProvider","Execute all reference providers.",[l.Uri,l.Position],new u("A promise that resolves to an array of Location-instances.",h(o.location.to))),new d("vscode.executeHoverProvider","_executeHoverProvider","Execute all hover providers.",[l.Uri,l.Position],new u("A promise that resolves to an array of Hover-instances.",h(o.Hover.to))),new d("vscode.executeSelectionRangeProvider","_executeSelectionRangeProvider","Execute selection range provider.",[l.Uri,new l("position","A positions in a text document",e=>Array.isArray(e)&&e.every(e=>s.Position.isPosition(e)),e=>e.map(o.Position.from))],new u("A promise that resolves to an array of ranges.",e=>e.map(e=>{let t;for(const r of e.reverse())t=new s.SelectionRange(o.Range.to(r),t);return t}))),new d("vscode.executeWorkspaceSymbolProvider","_executeWorkspaceSymbolProvider","Execute all workspace symbol providers.",[l.String.with("query","Search string")],new u("A promise that resolves to an array of SymbolInformation-instances.",e=>{const t=[];if(Array.isArray(e))for(const r of e)t.push(...r[1].map(o.WorkspaceSymbol.to));return t})),new d("vscode.prepareCallHierarchy","_executePrepareCallHierarchy","Prepare call hierarchy at a position inside a document",[l.Uri,l.Position],new u("A CallHierarchyItem or undefined",e=>e.map(o.CallHierarchyItem.to))),new d("vscode.provideIncomingCalls","_executeProvideIncomingCalls","Compute incoming calls for an item",[l.CallHierarchyItem],new u("A CallHierarchyItem or undefined",e=>e.map(o.CallHierarchyIncomingCall.to))),new d("vscode.provideOutgoingCalls","_executeProvideOutgoingCalls","Compute outgoing calls for an item",[l.CallHierarchyItem],new u("A CallHierarchyItem or undefined",e=>e.map(o.CallHierarchyOutgoingCall.to))),new d("vscode.prepareTypeHierarchy","_executePrepareTypeHierarchy","Prepare type hierarchy at a position inside a document",[l.Uri,l.Position],new u("A TypeHierarchyItem or undefined",e=>e.map(o.TypeHierarchyItem.to))),new d("vscode.provideSupertypes","_executeProvideSupertypes","Compute supertypes for an item",[l.TypeHierarchyItem],new u("A TypeHierarchyItem or undefined",e=>e.map(o.TypeHierarchyItem.to))),new d("vscode.provideSubtypes","_executeProvideSubtypes","Compute subtypes for an item",[l.TypeHierarchyItem],new u("A TypeHierarchyItem or undefined",e=>e.map(o.TypeHierarchyItem.to))),new d("vscode.executeDocumentRenameProvider","_executeDocumentRenameProvider","Execute rename provider.",[l.Uri,l.Position,l.String.with("newName","The new symbol name")],new u("A promise that resolves to a WorkspaceEdit.",e=>{if(e){if(e.rejectReason)throw new Error(e.rejectReason);return o.WorkspaceEdit.to(e)}})),new d("vscode.executeLinkProvider","_executeLinkProvider","Execute document link provider.",[l.Uri,l.Number.with("linkResolveCount","Number of links that should be resolved, only when links are unresolved.").optional()],new u("A promise that resolves to an array of DocumentLink-instances.",e=>e.map(o.DocumentLink.to))),new d("vscode.executeCompletionItemProvider","_executeCompletionItemProvider","Execute completion item provider.",[l.Uri,l.Position,l.String.with("triggerCharacter","Trigger completion when the user types the character, like `,` or `(`").optional(),l.Number.with("itemResolveCount","Number of completions to resolve (too large numbers slow down completions)").optional()],new u("A promise that resolves to a CompletionList-instance.",(e,t,r)=>{if(!e)return new s.CompletionList([]);const n=e.suggestions.map(e=>o.CompletionItem.to(e,r));return new s.CompletionList(n,e.incomplete)})),new d("vscode.executeSignatureHelpProvider","_executeSignatureHelpProvider","Execute signature help provider.",[l.Uri,l.Position,l.String.with("triggerCharacter","Trigger signature help when the user types the character, like `,` or `(`").optional()],new u("A promise that resolves to SignatureHelp.",e=>{if(e)return o.SignatureHelp.to(e)})),new d("vscode.executeCodeLensProvider","_executeCodeLensProvider","Execute code lens provider.",[l.Uri,l.Number.with("itemResolveCount","Number of lenses that should be resolved and returned. Will only return resolved lenses, will impact performance)").optional()],new u("A promise that resolves to an array of CodeLens-instances.",(e,t,r)=>h(e=>new s.CodeLens(o.Range.to(e.range),e.command&&r.fromInternal(e.command)))(e))),new d("vscode.executeCodeActionProvider","_executeCodeActionProvider","Execute code action provider.",[l.Uri,new l("rangeOrSelection","Range in a text document. Some refactoring provider requires Selection object.",e=>s.Range.isRange(e),e=>s.Selection.isSelection(e)?o.Selection.from(e):o.Range.from(e)),l.String.with("kind","Code action kind to return code actions for").optional(),l.Number.with("itemResolveCount","Number of code actions to resolve (too large numbers slow down code actions)").optional()],new u("A promise that resolves to an array of Command-instances.",(e,t,r)=>h(e=>{if(e._isSynthetic){if(!e.command)throw new Error("Synthetic code actions must have a command");return r.fromInternal(e.command)}{const t=new s.CodeAction(e.title,e.kind?new s.CodeActionKind(e.kind):void 0);return e.edit&&(t.edit=o.WorkspaceEdit.to(e.edit)),e.command&&(t.command=r.fromInternal(e.command)),t.isPreferred=e.isPreferred,t}})(e))),new d("vscode.executeDocumentColorProvider","_executeDocumentColorProvider","Execute document color provider.",[l.Uri],new u("A promise that resolves to an array of ColorInformation objects.",e=>e?e.map(e=>new s.ColorInformation(o.Range.to(e.range),o.Color.to(e.color))):[])),new d("vscode.executeColorPresentationProvider","_executeColorPresentationProvider","Execute color presentation provider.",[new l("color","The color to show and insert",e=>e instanceof s.Color,o.Color.from),new l("context","Context object with uri and range",e=>!0,e=>({uri:e.uri,range:o.Range.from(e.range)}))],new u("A promise that resolves to an array of ColorPresentation objects.",e=>e?e.map(o.ColorPresentation.to):[])),new d("vscode.open","_workbench.open","Opens the provided resource in the editor. Can be a text or binary file, or a http(s) url. If you need more control over the options for opening a text file, use vscode.window.showTextDocument instead.",[l.Uri,new l("columnOrOptions","Either the column in which to open or editor options, see vscode.TextDocumentShowOptions",e=>void 0===e||"number"==typeof e||"object"==typeof e,e=>e?"number"==typeof e?[e,void 0]:[o.ViewColumn.from(e.viewColumn),o.TextEditorOpenOptions.from(e)]:e).optional(),l.String.with("label","").optional()],u.Void),new d("vscode.openWith","_workbench.openWith","Opens the provided resource with a specific editor.",[l.Uri.with("resource","Resource to open"),l.String.with("viewId","Custom editor view id or 'default' to use VS Code's default editor"),new l("columnOrOptions","Either the column in which to open or editor options, see vscode.TextDocumentShowOptions",e=>void 0===e||"number"==typeof e||"object"==typeof e,e=>e?"number"==typeof e?[e,void 0]:[o.ViewColumn.from(e.viewColumn),o.TextEditorOpenOptions.from(e)]:e).optional()],u.Void),new d("vscode.diff","_workbench.diff","Opens the provided resources in the diff editor to compare their contents.",[l.Uri.with("left","Left-hand side resource of the diff editor"),l.Uri.with("right","Right-hand side resource of the diff editor"),l.String.with("title","Human readable title for the diff editor").optional(),new l("columnOrOptions","Either the column in which to open or editor options, see vscode.TextDocumentShowOptions",e=>void 0===e||"object"==typeof e,e=>e&&[o.ViewColumn.from(e.viewColumn),o.TextEditorOpenOptions.from(e)]).optional()],u.Void)]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createEventAPIFactory=t.ExtHostCommon=void 0;const n=r(0),i=r(56),o=r(32);t.ExtHostCommon=class{constructor(e){this.rpcProtocol=e,this.emitters=new Map,this.rpcProtocol=e,this.proxy=this.rpcProtocol.getProxy(o.MainThreadSumiAPIIdentifier.MainThreadCommon)}async $acceptEvent(e,t){if(!this.emitters.has(e))return[];return await this.emitters.get(e).fireAndAwait(t)}onEvent(e,t){this.emitters.has(e)||this.emitters.set(e,new n.Emitter),this.proxy.$subscribeEvent(e);const r=this.emitters.get(e).event(e=>t(...e));return{dispose:()=>{r.dispose(),0===this.emitters.get(e).listenerSize&&this.proxy.$unSubscribeEvent(e)}}}},t.createEventAPIFactory=function(e,t,r){return{fire:async(t,...r)=>await e.executeCommand(i.EMIT_EXT_HOST_EVENT.id,t,...r),subscribe:(e,r)=>t.onEvent(e,r)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createLayoutAPIFactory=t.ExtHostLayout=t.TabbarHandler=void 0;const n=r(0),i=r(32);class o{constructor(e,t){this.id=e,this.proxy=t,this.onActivateEmitter=new n.Emitter,this.onActivate=this.onActivateEmitter.event,this.onInActivateEmitter=new n.Emitter,this.onInActivate=this.onInActivateEmitter.event}setTitle(e){this.proxy.$setTitle(this.id,e)}setIcon(e){this.proxy.$setIcon(this.id,e)}setSize(e){this.proxy.$setSize(this.id,e)}activate(){this.proxy.$activate(this.id)}deactivate(){this.proxy.$deactivate(this.id)}setVisible(e){this.proxy.$setVisible(this.id,e)}setBadge(e){this.proxy.$setBadge(this.id,e)}isAttached(){return this.proxy.$isAttached(this.id)}}t.TabbarHandler=o;t.ExtHostLayout=class{constructor(e){this.rpcProtocol=e,this.handles=new Map,this.rpcProtocol=e,this.proxy=this.rpcProtocol.getProxy(i.MainThreadSumiAPIIdentifier.MainThreadLayout)}getTabbarHandler(e){return this.handles.has(e)||(this.proxy.$connectTabbar(e),this.handles.set(e,new o(e,this.proxy))),this.handles.get(e)}$acceptMessage(e,t){const r=this.handles.get(e);"activate"===t?r.onActivateEmitter.fire():"deactivate"===t&&r.onInActivateEmitter.fire()}},t.createLayoutAPIFactory=function(e,t,r){return{toggleBottomPanel:async t=>await e.executeCommand("main-layout.bottom-panel.toggle",void 0,t),toggleLeftPanel:async t=>await e.executeCommand("main-layout.left-panel.toggle",void 0,t),toggleRightPanel:async t=>await e.executeCommand("main-layout.right-panel.toggle",void 0,t),showRightPanel:async t=>await e.executeCommand("main-layout.right-panel.toggle",!0,t),hideRightPanel:async()=>await e.executeCommand("main-layout.right-panel.toggle",!1),activatePanel:async t=>await e.executeCommand("workbench.view.extension."+t),isBottomPanelVisible:async()=>await e.executeCommand("main-layout.bottom-panel.is-visible"),isLeftPanelVisible:async()=>await e.executeCommand("main-layout.left-panel.is-visible"),isRightPanelVisible:async()=>await e.executeCommand("main-layout.right-panel.is-visible"),getTabbarHandler:e=>t.getTabbarHandler(r.id+":"+e),getExtensionTabbarHandler:(e,r)=>r?t.getTabbarHandler(r+":"+e):t.getTabbarHandler(e)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtHostLifeCycle=t.createLifeCycleApi=void 0;const n=r(32);t.createLifeCycleApi=function(e,t){return{setExtensionDir:e=>{t.setExtensionDir(e)},setExtensionCandidate:e=>{t.setExtensionCandidate(e)}}};t.ExtHostLifeCycle=class{constructor(e){this.rpcProtocol=e,this.proxy=this.rpcProtocol.getProxy(n.MainThreadSumiAPIIdentifier.MainThreadLifecycle)}setExtensionDir(e){this.proxy.$setExtensionDir(e)}setExtensionCandidate(e){this.proxy.$setExtensionCandidate(e)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtHostTheme=t.createThemeApi=void 0;const n=r(0),i=r(32);t.createThemeApi=function(e){return{getThemeColors:async t=>e.getThemeColors(),onThemeChanged:e.onThemeChanged}};t.ExtHostTheme=class{constructor(e){this.rpcProtocol=e,this._onThemeChanged=new n.Emitter,this.onThemeChanged=this._onThemeChanged.event,this.proxy=this.rpcProtocol.getProxy(i.MainThreadSumiAPIIdentifier.MainThreadTheme)}async $notifyThemeChanged(){this._onThemeChanged.fire()}async getThemeColors(){return this.proxy.$getThemeColors()}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ToolbarDropdownButtonActionHandleController=t.ToolbarSelectActionHandleController=t.ToolbarBtnActionHandleController=t.ExtHostToolbarActionService=t.createToolbarAPIFactory=void 0;const n=r(0),i=r(32),o=r(623);t.createToolbarAPIFactory=function(e,t){return{registerToolbarAction:async r=>t.registerToolbarAction(e.id,e.path,r),getToolbarActionButtonHandle:async r=>t.getToolbarButtonActionHandle(r,e.id),getToolbarActionSelectHandle:async r=>t.getToolbarSelectActionHandle(r,e.id),getToolbarActionDropdownButtonHandle:async r=>t.getToolbarDropdownButtonActionHandle(r,e.id)}};t.ExtHostToolbarActionService=class{constructor(e,t,r){this.extHostCommands=e,this.extHostCommon=t,this.rpcProtocol=r,this.btnHandles=new Map,this.selectHandles=new Map,this.dropdownButtonHandles=new Map,this.proxy=this.rpcProtocol.getProxy(i.MainThreadSumiAPIIdentifier.MainThreadToolbar)}async registerToolbarAction(e,t,r){switch(r.type){case o.TOOLBAR_ACTION_TYPE.BUTTON:return await this.proxy.$registerToolbarButtonAction(e,t,r),this.getToolbarButtonActionHandle(r.id,e);case o.TOOLBAR_ACTION_TYPE.DROPDOWN_BUTTON:return await this.proxy.$registerDropdownButtonAction(e,t,r),this.getToolbarDropdownButtonActionHandle(r.id,e);case o.TOOLBAR_ACTION_TYPE.SELECT:default:return await this.proxy.$registerToolbarSelectAction(e,t,r),this.getToolbarSelectActionHandle(r.id,e)}}getToolbarButtonActionHandle(e,t){const r=t+"."+e;if(!this.btnHandles.has(r)){const e=new Promise(async(e,t)=>{const n=new s(r,this.extHostCommands,this.extHostCommon);try{await n.init(),e(n)}catch(e){t(e)}});this.btnHandles.set(r,e)}return this.btnHandles.get(r).then(e=>e.handle)}getToolbarSelectActionHandle(e,t){const r=t+"."+e;if(!this.selectHandles.has(r)){const e=new Promise(async(e,t)=>{const n=new a(r,this.extHostCommands,this.extHostCommon);try{await n.init(),e(n)}catch(e){t(e)}});this.selectHandles.set(r,e)}return this.selectHandles.get(r).then(e=>e.handle)}getToolbarDropdownButtonActionHandle(e,t){const r=t+"."+e;if(!this.dropdownButtonHandles.has(r)){const e=new Promise(async(e,t)=>{const n=new c(r,this.extHostCommands,this.extHostCommon);try{await n.init(),e(n)}catch(e){t(e)}});this.dropdownButtonHandles.set(r,e)}return this.dropdownButtonHandles.get(r).then(e=>e.handle)}};class s extends n.Disposable{constructor(e,t,r){super(),this.id=e,this.extHostCommands=t,this.kaitianCommon=r,this._onClick=new n.Emitter,this._onStateChange=new n.Emitter}get handle(){return this._handle||(this._handle={onClick:this._onClick.event,onStateChanged:this._onStateChange.event,setState:(e,t)=>this.extHostCommands.executeCommand(o.BUTTON_SET_STATE_ID,this.id,e,t),showPopover:async e=>this.extHostCommands.executeCommand(o.SHOW_POPOVER_ID,this.id,e),hidePopover:async()=>this.extHostCommands.executeCommand(o.HIDE_POPOVER_ID,this.id),setContext:e=>this.extHostCommands.executeCommand(o.BUTTON_SET_CONTEXT_ID,this.id,e)}),this._handle}async init(){return this.addDispose(this.kaitianCommon.onEvent(o.BUTTON_CLICK_ID,e=>{e===this.id&&this._onClick.fire()})),this.addDispose(this.kaitianCommon.onEvent(o.BUTTON_STATE_CHANGE_ID,(e,t,r)=>{e===this.id&&this._onStateChange.fire({from:t,to:r})})),this.extHostCommands.executeCommand(o.BUTTON_CONNECT_HANDLE_ID,this.id)}}t.ToolbarBtnActionHandleController=s;class a extends n.Disposable{constructor(e,t,r){super(),this.id=e,this.extHostCommands=t,this.kaitianCommon=r,this._onSelect=new n.Emitter,this._onStateChange=new n.Emitter}get handle(){return this._handle||(this._handle={onSelect:this._onSelect.event,onStateChanged:this._onStateChange.event,setState:(e,t)=>this.extHostCommands.executeCommand(o.SELECT_SET_STATE_ID,this.id,e,t),setOptions:(e,t)=>this.extHostCommands.executeCommand(o.SELECT_SET_OPTIONS,this.id,t,e),setSelect:e=>this.extHostCommands.executeCommand(o.SELECT_SET_SELECT_ID,this.id,e),getValue:()=>this._value}),this._handle}async init(){this.addDispose(this.kaitianCommon.onEvent(o.SELECT_ON_SELECT_ID,(e,t)=>{e===this.id&&this._onSelect.fire(t)})),this.addDispose(this.kaitianCommon.onEvent(o.SELECT_STATE_CHANGE_ID,(e,t,r)=>{e===this.id&&this._onStateChange.fire({from:t,to:r})})),this._value=await this.extHostCommands.executeCommand(o.SELECT_CONNECT_HANDLE_ID,this.id)}}t.ToolbarSelectActionHandleController=a;class c extends n.Disposable{constructor(e,t,r){super(),this.id=e,this._extHostCommands=t,this.extHostCommon=r,this._onSelect=new n.Emitter}get handle(){return this._handle||(this._handle={onSelect:this._onSelect.event}),this._handle}async init(){this.addDispose(this.extHostCommon.onEvent(o.DROPDOWN_BUTTON_ON_SELECT_ID,(e,t)=>{e===this.id&&this._onSelect.fire(t)}))}}t.ToolbarDropdownButtonActionHandleController=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DROPDOWN_BUTTON_ON_SELECT_ID=t.SELECT_STATE_CHANGE_ID=t.SELECT_ON_SELECT_ID=t.SELECT_CONNECT_HANDLE_ID=t.SELECT_SET_SELECT_ID=t.SELECT_SET_OPTIONS=t.SELECT_SET_STATE_ID=t.HIDE_POPOVER_ID=t.SHOW_POPOVER_ID=t.BUTTON_CLICK_ID=t.BUTTON_CONNECT_HANDLE_ID=t.BUTTON_SET_CONTEXT_ID=t.BUTTON_STATE_CHANGE_ID=t.BUTTON_SET_STATE_ID=t.TOOLBAR_ACTION_TYPE=void 0,function(e){e.BUTTON="button",e.DROPDOWN_BUTTON="dropdownButton",e.SELECT="select"}(t.TOOLBAR_ACTION_TYPE||(t.TOOLBAR_ACTION_TYPE={}));t.BUTTON_SET_STATE_ID="sumi-extension.toolbar.btn.setState",t.BUTTON_STATE_CHANGE_ID="sumi-extension.toolbar.btn.stateChange",t.BUTTON_SET_CONTEXT_ID="sumi-extension.toolbar.btn.setContext",t.BUTTON_CONNECT_HANDLE_ID="sumi-extension.toolbar.btn.connectHandle",t.BUTTON_CLICK_ID="sumi-extension.toolbar.btn.click",t.SHOW_POPOVER_ID="sumi-extension.toolbar.showPopover",t.HIDE_POPOVER_ID="sumi-extension.toolbar.hidePopover",t.SELECT_SET_STATE_ID="sumi-extension.toolbar.select.setState",t.SELECT_SET_OPTIONS="sumi-extension.toolbar.select.setOptions",t.SELECT_SET_SELECT_ID="sumi-extension.toolbar.select.setSelect",t.SELECT_CONNECT_HANDLE_ID="sumi-extension.toolbar.select.connectHandle",t.SELECT_ON_SELECT_ID="sumi-extension.toolbar.select.onSelect",t.SELECT_STATE_CHANGE_ID="sumi-extension.toolbar.select.stateChange",t.DROPDOWN_BUTTON_ON_SELECT_ID="sumi-extension.toolbar.dropdownButton.onSelect"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createWebviewApi=t.ExtHostPlainWebview=t.PlainWebviewHandle=t.ExtHostWebview=void 0;const n=r(0),i=r(7),{join:o}=n.path;t.ExtHostWebview=class{constructor(e,t="node"){this.rpcProtocol=e,this.webviewIdPrefix=t,this.handles=new Map,this._extHostPlainWebviewId=1,this.rpcProtocol=e,this._proxy=this.rpcProtocol.getProxy(i.MainThreadAPIIdentifier.MainThreadWebview)}getWebviewHandle(e){return this.handles.has(e)||(this.handles.set(e,new s(e,this._proxy)),this._proxy.$connectPlainWebview(e)),this.handles.get(e)}createPlainWebview(e,t){const r=this.webviewIdPrefix+"_webview_"+this._extHostPlainWebviewId++,n=new a(r,this._proxy,e,t);return this.handles.set(r,n),n.addDispose({dispose:()=>{this.handles.delete(r)}}),n}$acceptMessage(e,t){this.handles.has(e)&&this.handles.get(e).onMessageEmitter.fire(t)}};class s extends n.Disposable{constructor(e,t){super(),this.id=e,this.proxy=t,this.onMessageEmitter=new n.Emitter,this.onMessage=this.onMessageEmitter.event}postMessage(e){return this.proxy.$postMessageToPlainWebview(this.id,e)}async setPartition(e){await this.proxy.$setPlainWebviewPartition(this.id,e)}async loadUrl(e){this.proxy.$plainWebviewLoadUrl(this.id,e)}}t.PlainWebviewHandle=s;class a extends s{constructor(e,t,r,n){super(e,t),this._ready=this.proxy.$createPlainWebview(e,r,n),this.addDispose({dispose:()=>{this.proxy.$disposePlainWebview(e)}})}async reveal(e){await this._ready,this.proxy.$revealPlainWebview(this.id,e)}async loadUrl(e){await this._ready,this.proxy.$plainWebviewLoadUrl(this.id,e)}}t.ExtHostPlainWebview=a,t.createWebviewApi=function(e,t){return{getPlainWebviewHandle:e=>t.getWebviewHandle(e),createPlainWebview:(r,n)=>(n&&(n=o(e.realPath,n)),t.createPlainWebview(r,n))}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createWindowApiFactory=t.ExtIDEWebviewWindow=t.ExtHostIDEWindow=void 0;const n=r(0),i=r(32);t.ExtHostIDEWindow=class{constructor(e){this.rpcProtocol=e,this._windowMaps=new Map,this.proxy=this.rpcProtocol.getProxy(i.MainThreadSumiAPIIdentifier.MainThreadIDEWindow)}async createWebviewWindow(e,t,r){if(this._windowMaps.has(e)){const t=this._windowMaps.get(e);return null==t||t.show(),t}const i=await this.proxy.$createWebviewWindow(e,t,r),s=new o(e,i,this.proxy,n.Disposable.create(()=>{this._windowMaps.delete(e)}));return this._windowMaps.set(e,s),s}async $postMessage(e,t){if(this._windowMaps.has(e)){const r=this._windowMaps.get(e);null==r||r.dispatchMessage(t)}}async $dispatchClosed(e){if(this._windowMaps.has(e)){const t=this._windowMaps.get(e);null==t||t.dispatchClosed()}}};class o{constructor(e,t,r,i){this.webviewId=e,this.info=t,this.proxy=r,this._onMessageEmitter=new n.Emitter,this._onClosedEmitter=new n.Emitter,this.disposableCollection=new n.DisposableCollection,this.disposableCollection.push(i),this.disposableCollection.push(n.Disposable.create(()=>{this.proxy.$destroy(this.webviewId)}))}get webContentsId(){return this.info.webContentsId}get windowId(){return this.info.windowId}get onMessage(){return this._onMessageEmitter.event}get onClosed(){return this._onClosedEmitter.event}async show(){return await this.proxy.$show(this.webviewId)}async hide(){return await this.proxy.$hide(this.webviewId)}async postMessage(e){return await this.proxy.$postMessage(this.webviewId,e)}async loadUrl(e){return await this.proxy.$loadURL(this.webviewId,e)}async setSize(e){return await this.proxy.$setSize(this.webviewId,e)}async setAlwaysOnTop(e){return await this.proxy.$setAlwaysOnTop(this.webviewId,e)}dispose(){this.disposableCollection.dispose()}async dispatchClosed(){this._onClosedEmitter.fire()}async dispatchMessage(e){this._onMessageEmitter.fire(e)}}t.ExtIDEWebviewWindow=o,t.createWindowApiFactory=function(e,t){return{reloadWindow:async()=>await e.executeCommand("reload_window"),createWebviewWindow:async(e,r,n)=>await t.createWebviewWindow(e,r,n)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});r(1).__exportStar(r(627),t)},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.ExtensionDocumentDataManagerImpl=void 0;const n=r(0),i=r(7),o=r(5),s=r(4),a=r(628);t.ExtensionDocumentDataManagerImpl=class{constructor(e){this._documents=new Map,this._contentProviders=new Map,this._onDidOpenTextDocument=new n.Emitter,this._onDidCloseTextDocument=new n.Emitter,this._onDidChangeTextDocument=new n.Emitter,this._onWillSaveTextDocument=new n.Emitter,this._onDidSaveTextDocument=new n.Emitter,this.onDidOpenTextDocument=this._onDidOpenTextDocument.event,this.onDidCloseTextDocument=this._onDidCloseTextDocument.event,this.onDidChangeTextDocument=this._onDidChangeTextDocument.event,this.onWillSaveTextDocument=this._onWillSaveTextDocument.event,this.onDidSaveTextDocument=this._onDidSaveTextDocument.event,this.rpcProtocol=e,this._proxy=this.rpcProtocol.getProxy(i.MainThreadAPIIdentifier.MainThreadDocuments),this._workspaceProxy=this.rpcProtocol.getProxy(i.MainThreadAPIIdentifier.MainThreadWorkspace)}get allDocumentData(){return Array.from(this._documents.values())}getDocumentData(e){const t=e.toString();return this._documents.get(t)}getAllDocument(){return this.allDocumentData.map(e=>e.document)}getDocument(e){const t=this.getDocumentData(e);if(!(null==t?void 0:t.document))throw new Error(`Unable to retrieve document from URI '${e}'`);return t.document}async openTextDocument(e){let t;const r=e;if("string"==typeof e)t=s.Uri.file(e);else if(n.URI.isUri(e))t=s.Uri.parse(e.toString());else{if(r&&"object"!=typeof r)throw new Error("illegal argument - uriOrFileNameOrOptions");t=s.Uri.parse(await this._proxy.$tryCreateDocument(r))}const i=(0,n.normalizeFileUrl)(t.toString()),o=this._documents.get(i);if(o)return o.document;{await this._proxy.$tryOpenDocument(i);const e=this._documents.get(i);return e?e.document:new Promise((e,t)=>{let r=!1;setTimeout(()=>{r||t(`Open Text Document ${i} Timeout. Current Timeout is 5 seconds.`)},5e3);const n=this.onDidOpenTextDocument(t=>{i===t.uri.toString()&&(e(t),n.dispose(),r=!0)})})}}registerTextDocumentContentProvider(e,t){let r;const i=t.onDidChange;return this._contentProviders.set(e,t),i&&(r=i(async e=>{const r=new n.CancellationTokenSource,i=await t.provideTextDocumentContent(e,r.token);i&&this._proxy.$fireTextDocumentChangedEvent(e.toString(),i)})),this._proxy.$registerDocumentProviderWithScheme(e),{dispose:()=>{this._proxy.$unregisterDocumentProviderWithScheme(e),this._contentProviders.delete(e),r&&r.dispose()}}}async $provideTextDocumentContent(t,r){const i=s.Uri.parse(t),o=i.scheme,a=this._contentProviders.get(o);if(a){let t=await a.provideTextDocumentContent(i,(new n.CancellationTokenSource).token)||"";if(t&&r&&!(0,n.isUTF8)(r)){t=n.BinaryBuffer.wrap(e.from(t)).toString(r)}return t}throw new Error("new document provider for "+t)}$fireModelOptionsChangedEvent(e){const t=this._documents.get(e.uri);t&&e.languageId&&(t._acceptLanguageId(e.languageId),this._onDidCloseTextDocument.fire(t.document),this._onDidOpenTextDocument.fire(t.document))}$fireModelChangedEvent(e){const{uri:t,changes:r,versionId:n,eol:i,dirty:a,isRedoing:c,isUndoing:l}=e,u=this._documents.get(t);if(!u)return;let d;u.onEvents({eol:i,versionId:n,changes:r,isRedoing:c,isUndoing:l}),u._acceptIsDirty(a),c?d=s.TextDocumentChangeReason.Redo:l&&(d=s.TextDocumentChangeReason.Undo),this._onDidChangeTextDocument.fire({document:u.document,contentChanges:r.map(e=>Object.assign(Object.assign({},e),{range:(0,o.toRange)(e.range)})),reason:d})}$fireModelOpenedEvent(e){const{uri:t,eol:r,languageId:n,versionId:i,lines:o,dirty:c}=e,l=new a.ExtHostDocumentData(this._proxy,s.Uri.parse(t),o,r,n,i,c);this._documents.set(t,l),this._onDidOpenTextDocument.fire(l.document)}$fireModelRemovedEvent(e){const{uri:t}=e,r=this._documents.get(t.toString());r&&(this._documents.delete(t),this._onDidCloseTextDocument.fire(r.document))}$fireModelSavedEvent(e){const{uri:t}=e,r=this._documents.get(t);r&&(r._acceptIsDirty(!1),this._onDidSaveTextDocument.fire(r.document))}async $fireModelWillSaveEvent(e){const{uri:t}=e,r=this._documents.get(t);if(r){const t=[],n={document:r.document,reason:e.reason,waitUntil:e=>{t.push(this.createWaitUntil(r.document.uri,e))}};return this._onWillSaveTextDocument.fire(n),void await Promise.all(t)}throw new Error("document not found: "+t.toString())}async createWaitUntil(e,t){const r=await t;r instanceof Array&&r[0]&&r[0]instanceof s.TextEdit&&await this.applyEdit(e,r.map(o.TextEdit.from)[0])}setWordDefinitionFor(e,t){(0,a.setWordDefinitionFor)(e,t)}applyEdit(e,t){const r={edits:[{resource:e,textEdit:t,versionId:void 0}]};return this._workspaceProxy.$tryApplyWorkspaceEdit(r)}}}).call(this,r(12).Buffer)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtHostDocumentData=t.regExpLeadsToEndlessLoop=t.getWordDefinitionFor=t.setWordDefinitionFor=void 0;const n=r(0),i=r(4),o=r(629),s=r(631),a=new Map;function c(e){return a.get(e)}function l(e){if("^"===e.source||"^$"===e.source||"$"===e.source||"^\\s*$"===e.source)return!1;return!(!e.exec("")||0!==e.lastIndex)}t.setWordDefinitionFor=function(e,t){a.set(e,t)},t.getWordDefinitionFor=c,t.regExpLeadsToEndlessLoop=l;class u extends o.MirrorTextModel{constructor(e,t,r,n,i,o,s){super(t,r,n,o),this._textLines=[],this._isDisposed=!1,this._proxy=e,this._languageId=i,this._isDirty=s}dispose(){this._isDisposed=!0,this._isDirty=!1}equalLines(e){const t=e.length;if(t!==this._lines.length)return!1;for(let r=0;r<t;r++)if(e[r]!==this._lines[r])return!1;return!0}get document(){if(!this._document){const e=this;this._document={get uri(){return e._uri},get fileName(){return e._uri.fsPath},get isUntitled(){return e._uri.scheme===n.Schemes.untitled},get languageId(){return e._languageId},get version(){return e._versionId},get isClosed(){return e._isDisposed},get isDirty(){return e._isDirty},save:()=>e._save(),getText:t=>t?e._getTextInRange(t):e.getText(),get eol(){return"\n"===e._eol?i.EndOfLine.LF:i.EndOfLine.CRLF},get lineCount(){return e._lines.length},lineAt:t=>e._lineAt(t),offsetAt:t=>e._offsetAt(t),positionAt:t=>e._positionAt(t),validateRange:t=>e._validateRange(t),validatePosition:t=>e._validatePosition(t),getWordRangeAtPosition:(t,r)=>e._getWordRangeAtPosition(t,r)}}return Object.freeze(this._document)}_acceptLanguageId(e){this._languageId=e}_acceptIsDirty(e){this._isDirty=e}_save(){return this._isDisposed?Promise.reject(new Error("Document has been closed")):this._proxy.$trySaveDocument(this._uri.toString())}_getTextInRange(e){const t=this._validateRange(e);if(t.isEmpty)return"";if(t.isSingleLine)return this._lines[t.start.line].substring(t.start.character,t.end.character);const r=this._eol,n=t.start.line,i=t.end.line,o=[];o.push(this._lines[n].substring(t.start.character));for(let e=n+1;e<i;e++)o.push(this._lines[e]);return o.push(this._lines[i].substring(0,t.end.character)),o.join(r)}_lineAt(e){let t;if(e instanceof i.Position?t=e.line:"number"==typeof e&&(t=e),"number"!=typeof t||t<0||t>=this._lines.length)throw new Error("Illegal value for `line`");let r=this._textLines[t];if(!r||r.lineNumber!==t||r.text!==this._lines[t]){const e=this._lines[t],n=/^(\s*)/.exec(e)[1].length,o=new i.Range(t,0,t,e.length),s=t<this._lines.length-1?new i.Range(t,0,t+1,0):o;r=Object.freeze({lineNumber:t,range:o,rangeIncludingLineBreak:s,text:e,firstNonWhitespaceCharacterIndex:n,isEmptyOrWhitespace:n===e.length}),this._textLines[t]=r}return r}_offsetAt(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getAccumulatedValue(e.line-1)+e.character}_positionAt(e){e=Math.floor(e),e=Math.max(0,e),this._ensureLineStarts();const t=this._lineStarts.getIndexOf(e),r=this._lines[t.index].length;return new i.Position(t.index,Math.min(t.remainder,r))}_validateRange(e){if(!(e instanceof i.Range))throw new Error("Invalid argument");const t=this._validatePosition(e.start),r=this._validatePosition(e.end);return t===e.start&&r===e.end?e:new i.Range(t.line,t.character,r.line,r.character)}_validatePosition(e){if(!(e instanceof i.Position))throw new Error("Invalid argument");let{line:t,character:r}=e,n=!1;if(t<0)t=0,r=0,n=!0;else if(t>=this._lines.length)t=this._lines.length-1,r=this._lines[t].length,n=!0;else{const e=this._lines[t].length;r<0?(r=0,n=!0):r>e&&(r=e,n=!0)}return n?new i.Position(t,r):e}_getWordRangeAtPosition(e,t){const r=this._validatePosition(e);t?l(t)&&(console.warn(`[getWordRangeAtPosition]: ignoring custom regexp '${t.source}' because it matches the empty string.`),t=c(this._languageId)):t=c(this._languageId);const n=(0,s.getWordAtText)(r.character+1,(0,s.ensureValidWordDefinition)(t),this._lines[r.line],0);if(n)return new i.Range(r.line,n.startColumn-1,r.line,n.endColumn-1)}}t.ExtHostDocumentData=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MirrorTextModel=void 0;const n=r(0),i=r(4),o=r(630);t.MirrorTextModel=class{constructor(e,t,r,n){this._uri=i.Uri.parse(e.toString()),this._lines=t,this._eol=r,this._versionId=n,this._lineStarts=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._lines.join(this._eol)}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const t=e.changes;for(const e of t)this._acceptDeleteRange(e.range),this._acceptInsertText(new n.Position(e.range.startLineNumber,e.range.startColumn),e.text);this._versionId=e.versionId}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,t=this._lines.length,r=new Uint32Array(t);for(let n=0;n<t;n++)r[n]=this._lines[n].length+e;this._lineStarts=new o.PrefixSumComputer(r)}}_setLineText(e,t){this._lines[e]=t,this._lineStarts&&this._lineStarts.changeValue(e,this._lines[e].length+this._eol.length)}_acceptDeleteRange(e){if(e.startLineNumber!==e.endLineNumber)this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.endLineNumber-1].substring(e.endColumn-1)),this._lines.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(e.startLineNumber,e.endLineNumber-e.startLineNumber);else{if(e.startColumn===e.endColumn)return;this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1))}}_acceptInsertText(e,t){if(0===t.length)return;const r=t.split(/\r\n|\r|\n/);if(1===r.length)return void this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+r[0]+this._lines[e.lineNumber-1].substring(e.column-1));r[r.length-1]+=this._lines[e.lineNumber-1].substring(e.column-1),this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+r[0]);const n=new Uint32Array(r.length-1);for(let t=1;t<r.length;t++)this._lines.splice(e.lineNumber+t-1,0,r[t]),n[t-1]=r[t].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,n)}}},function(e,t,r){"use strict";function n(e){return e<0?0:e>4294967295?4294967295:0|e}Object.defineProperty(t,"__esModule",{value:!0}),t.PrefixSumComputerWithCache=t.PrefixSumComputer=t.PrefixSumIndexOfResult=t.toUint32=void 0,t.toUint32=n;class i{constructor(e,t){this.index=e,this.remainder=t}}t.PrefixSumIndexOfResult=i;class o{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}getCount(){return this.values.length}insertValues(e,t){e=n(e);const r=this.values,i=this.prefixSum,o=t.length;return 0!==o&&(this.values=new Uint32Array(r.length+o),this.values.set(r.subarray(0,e),0),this.values.set(r.subarray(e),e+o),this.values.set(t,e),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}changeValue(e,t){return e=n(e),t=n(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,t){e=n(e),t=n(t);const r=this.values,i=this.prefixSum;if(e>=r.length)return!1;const o=r.length-e;return t>=o&&(t=o),0!==t&&(this.values=new Uint32Array(r.length-t),this.values.set(r.subarray(0,e),0),this.values.set(r.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalValue(){return 0===this.values.length?0:this._getAccumulatedValue(this.values.length-1)}getAccumulatedValue(e){return e<0?0:(e=n(e),this._getAccumulatedValue(e))}_getAccumulatedValue(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let r=t;r<=e;r++)this.prefixSum[r]=this.prefixSum[r-1]+this.values[r];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalValue();let t=0,r=this.values.length-1,n=0,o=0,s=0;for(;t<=r;)if(n=t+(r-t)/2|0,o=this.prefixSum[n],s=o-this.values[n],e<s)r=n-1;else{if(!(e>=o))break;t=n+1}return new i(n,e-s)}}t.PrefixSumComputer=o;t.PrefixSumComputerWithCache=class{constructor(e){this._cacheAccumulatedValueStart=0,this._cache=null,this._actual=new o(e),this._bustCache()}_bustCache(){this._cacheAccumulatedValueStart=0,this._cache=null}insertValues(e,t){this._actual.insertValues(e,t)&&this._bustCache()}changeValue(e,t){this._actual.changeValue(e,t)&&this._bustCache()}removeValues(e,t){this._actual.removeValues(e,t)&&this._bustCache()}getTotalValue(){return this._actual.getTotalValue()}getAccumulatedValue(e){return this._actual.getAccumulatedValue(e)}getIndexOf(e){if(e=Math.floor(e),null!==this._cache){const t=e-this._cacheAccumulatedValueStart;if(t>=0&&t<this._cache.length)return this._cache[t]}return this._actual.getIndexOf(e)}warmUpCache(e,t){const r=[];for(let n=e;n<=t;n++)r[n-e]=this.getIndexOf(n);this._cache=r,this._cacheAccumulatedValueStart=e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getWordAtText=t.ensureValidWordDefinition=t.DEFAULT_WORD_REGEXP=t.USUAL_WORD_SEPARATORS=void 0,t.USUAL_WORD_SEPARATORS="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?",t.DEFAULT_WORD_REGEXP=function(e=""){let r="(-?\\d*\\.\\d\\w*)|([^";for(const n of t.USUAL_WORD_SEPARATORS)e.indexOf(n)>=0||(r+="\\"+n);return r+="\\s]+)",new RegExp(r,"g")}(),t.ensureValidWordDefinition=function(e){let r=t.DEFAULT_WORD_REGEXP;if(e&&e instanceof RegExp)if(e.global)r=e;else{let t="g";e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),r=new RegExp(e.source,t)}return r.lastIndex=0,r},t.getWordAtText=function(e,t,r,n){t.lastIndex=0;const i=t.exec(r);if(!i)return null;const o=i[0].indexOf(" ")>=0?function(e,t,r,n){const i=e-1-n;let o;for(t.lastIndex=0;o=t.exec(r);){const e=o.index||0;if(e>i)return null;if(t.lastIndex>=i)return{word:o[0],startColumn:n+1+e,endColumn:n+1+t.lastIndex}}return null}(e,t,r,n):function(e,t,r,n){const i=e-1-n,o=r.lastIndexOf(" ",i-1)+1;let s;for(t.lastIndex=o;s=t.exec(r);){const e=s.index||0;if(e<=i&&t.lastIndex>=i)return{word:s[0],startColumn:n+1+e,endColumn:n+1+t.lastIndex}}return null}(e,t,r,n);return t.lastIndex=0,o}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtHostTextEditorOptions=t.toIRange=t.TextEditorData=t.ExtHostTextEditorDecorationType=t.ExtensionHostEditorService=void 0;const n=r(1),i=n.__importDefault(r(633)),o=r(0),s=r(7),a=n.__importStar(r(5)),c=r(95),l=r(4),u=r(641);t.ExtensionHostEditorService=class{constructor(e,t){this.documents=t,this._editors=new Map,this.decorationIdCount=0,this._onDidChangeActiveTextEditor=new o.Emitter,this._onDidChangeVisibleTextEditors=new o.Emitter,this._onDidChangeTextEditorSelection=new o.Emitter,this._onDidChangeTextEditorVisibleRanges=new o.Emitter,this._onDidChangeTextEditorOptions=new o.Emitter,this._onDidChangeTextEditorViewColumn=new o.Emitter,this.onDidChangeActiveTextEditor=this._onDidChangeActiveTextEditor.event,this.onDidChangeVisibleTextEditors=this._onDidChangeVisibleTextEditors.event,this.onDidChangeTextEditorSelection=this._onDidChangeTextEditorSelection.event,this.onDidChangeTextEditorVisibleRanges=this._onDidChangeTextEditorVisibleRanges.event,this.onDidChangeTextEditorOptions=this._onDidChangeTextEditorOptions.event,this.onDidChangeTextEditorViewColumn=this._onDidChangeTextEditorViewColumn.event,this._onEditorCreated=new o.Emitter,this.onEditorCreated=this._onEditorCreated.event,this._proxy=e.getProxy(s.MainThreadAPIIdentifier.MainThreadEditors)}$acceptChange(e){e.created&&e.created.forEach(t=>{this._editors.set(t.id,new h(t,this,this.documents)),this._onEditorCreated.fire(t.id),e.actived||t.id!==this._activeEditorId||this.activeEditor&&this._onDidChangeActiveTextEditor.fire(this.activeEditor?this.activeEditor.textEditor:void 0)}),e.removed&&e.removed.forEach(e=>{this._editors.delete(e)}),e.actived&&("-1"===e.actived?(this._activeEditorId=void 0,this._onDidChangeActiveTextEditor.fire(void 0)):(this._activeEditorId=e.actived,this.activeEditor&&this._onDidChangeActiveTextEditor.fire(this.activeEditor?this.activeEditor.textEditor:void 0))),(e.created||e.removed)&&this._onDidChangeVisibleTextEditors.fire(this.visibleEditors)}async openResource(e,t){const r=await this._proxy.$openResource(e.toString(),t);return this.getEditor(r)?this.getEditor(r).textEditor:new Promise((t,n)=>{let i=!1;const o=this.onEditorCreated(e=>{e===r&&this.getEditor(r)&&(t(this.getEditor(r).textEditor),i=!0,o.dispose())});setTimeout(()=>{i||n(new Error("Timout opening textDocument uri "+e.toString()))},5e3)})}async showTextDocument(e,t,r){let n,i;return n=l.Uri.isUri(e)?e:e.uri,i="number"==typeof t?Object.assign(Object.assign({},a.viewColumnToResourceOpenOptions(t)),{preserveFocus:r}):"object"==typeof t?Object.assign(Object.assign({},a.viewColumnToResourceOpenOptions(t.viewColumn)),{preserveFocus:t.preserveFocus,range:"object"==typeof t.selection?a.Range.from(t.selection):void 0,preview:"boolean"==typeof t.preview?t.preview:void 0}):{preserveFocus:!1},this.openResource(n,i)}$acceptPropertiesChange(e){this._editors.get(e.id)&&this._editors.get(e.id).acceptStatusChange(e)}getEditor(e){return this._editors.get(e)}get activeEditor(){return this._activeEditorId?this._editors.get(this._activeEditorId):void 0}get visibleEditors(){return Array.from(this._editors.values()).map(e=>e.textEditor)}closeEditor(e){e.id===this._activeEditorId&&this._proxy.$closeEditor(e.id)}getNextId(){return this.decorationIdCount++,"textEditor-decoration-"+this.decorationIdCount}createTextEditorDecorationType(e,t){const r=a.DecorationRenderOptions.from(t),n=e.replace(/\./g,"-")+"-"+this.getNextId();return this._proxy.$createTextEditorDecorationType(n,r),new d(n,this._proxy)}async getDiffInformation(e){return(await this._proxy.$getDiffInformation(e)).map(e=>({originalStartLineNumber:e[0],originalEndLineNumber:e[1],modifiedStartLineNumber:e[2],modifiedEndLineNumber:e[3]}))}};class d extends o.Disposable{constructor(e,t){super(),this.key=e,this.addDispose({dispose:()=>{t.$deleteTextEditorDecorationType(e)}})}}t.ExtHostTextEditorDecorationType=d;class h{constructor(e,t,r){this.editorService=t,this.documents=r,this.doSetSelection=(0,i.default)(()=>{this.editorService._proxy.$setSelections(this.id,this.selections.map(e=>a.Selection.from(e)))},50,{maxWait:200,leading:!0,trailing:!0}),this.uri=l.Uri.parse(e.uri),this.id=e.id,this._acceptSelections(e.selections),this._acceptVisibleRanges(e.visibleRanges),this._acceptViewColumn(e.viewColumn),this.options=new f(this.editorService._proxy,this.id,e.options)}edit(e,t={undoStopBefore:!0,undoStopAfter:!0}){const r=this.documents.getDocument(this.uri);if(!r)throw new Error("document not found when editing");const n=new u.TextEditorEdit(r,t);return e(n),this._applyEdit(n)}_applyEdit(e){const t=e.finalize();if(0===t.edits.length&&!t.setEndOfLine)return Promise.resolve(!0);const r=t.edits.map(e=>e.range);r.sort((e,t)=>e.end.line===t.end.line?e.end.character===t.end.character?e.start.line===t.start.line?e.start.character-t.start.character:e.start.line-t.start.line:e.end.character-t.end.character:e.end.line-t.end.line);for(let e=0,t=r.length-1;e<t;e++){const t=r[e].end;if(r[e+1].start.isBefore(t))return Promise.reject(new Error("Overlapping ranges are not allowed!"))}const n=t.edits.map(e=>({range:a.Range.from(e.range),text:e.text,forceMoveMarkers:e.forceMoveMarkers}));return this.editorService._proxy.$applyEdits(this.id,t.documentVersionId,n,{setEndOfLine:"number"==typeof t.setEndOfLine?a.EndOfLine.from(t.setEndOfLine):void 0,undoStopBefore:t.undoStopBefore,undoStopAfter:t.undoStopAfter})}async insertSnippet(e,t,r){try{let n=[];if(!t||Array.isArray(t)&&0===t.length)n=this.selections.map(e=>a.Range.from(e));else if(t instanceof l.Position){const{lineNumber:e,column:r}=a.fromPosition(t);n=[{startLineNumber:e,startColumn:r,endLineNumber:e,endColumn:r}]}else if(t instanceof l.Range)n=[a.Range.from(t)];else{n=[];for(const e of t)if(e instanceof l.Range)n.push(a.Range.from(e));else{const{lineNumber:t,column:r}=a.fromPosition(e);n.push({startLineNumber:t,startColumn:r,endLineNumber:t,endColumn:r})}}return this.editorService._proxy.$insertSnippet(this.id,e.value,n,r),!0}catch(e){return(0,o.getDebugLogger)().error(e),!1}}setDecorations(e,t){if(e.disposed)return void(0,o.getDebugLogger)().warn(`decorationType with key ${e.key} has been disposed!`);let r=[];0!==t.length&&(l.Range.isRange(t[0])?r=t.map(e=>({range:a.Range.from(e)})):l.Range.isRange(t[0].range)&&(r=t.map(e=>({range:a.Range.from(e.range),renderOptions:e.renderOptions?a.DecorationRenderOptions.from(e.renderOptions):void 0,hoverMessage:e.hoverMessage})))),this.editorService._proxy.$applyDecoration(this.id,e.key,r)}revealRange(e,t){this.editorService._proxy.$revealRange(this.id,a.Range.from(e),t)}show(e){(0,o.getDebugLogger)().warn("TextEditor.show is Deprecated")}hide(){this.editorService.closeEditor(this)}_acceptSelections(e=[]){this.selections=e.map(e=>a.Selection.to(e))}_acceptOptions(e){this.options._accept(e)}_acceptVisibleRanges(e){this.visibleRanges=e.map(e=>a.Range.to(e)).filter(e=>!!e)}_acceptViewColumn(e){this.viewColumn=e}acceptStatusChange(e){e.selections&&(this._acceptSelections(e.selections.selections),this.editorService._onDidChangeTextEditorSelection.fire({kind:c.TextEditorSelectionChangeKind.fromValue(e.selections.source),selections:this.selections,textEditor:this.textEditor})),e.options&&(this._acceptOptions(e.options),this.editorService._onDidChangeTextEditorOptions.fire({textEditor:this.textEditor,options:this.options})),e.visibleRanges&&(this._acceptVisibleRanges(e.visibleRanges),this.editorService._onDidChangeTextEditorVisibleRanges.fire({textEditor:this.textEditor,visibleRanges:this.visibleRanges})),e.viewColumn&&(this._acceptViewColumn(e.viewColumn),this.editorService._onDidChangeTextEditorViewColumn.fire({textEditor:this.textEditor,viewColumn:this.viewColumn}))}get textEditor(){if(!this._textEditor){const e=this;this._textEditor={get id(){return e.id},get document(){return e.documents.getDocument(e.uri)},set selection(t){e.selections=[t],e.doSetSelection()},get selections(){return e.selections},set selections(t){e.selections=t,e.editorService._proxy.$setSelections(e.id,e.selections.map(e=>a.Selection.from(e)))},get selection(){return e.selections&&e.selections[0]},get options(){return e.options},get visibleRanges(){return e.visibleRanges},get viewColumn(){return e.viewColumn},set options(t){e.options.assign(t)},edit:e.edit.bind(e),insertSnippet:e.insertSnippet.bind(e),setDecorations:e.setDecorations.bind(e),revealRange:e.revealRange.bind(e),show:e.show.bind(e),hide:e.hide.bind(e)}}return this._textEditor}}t.TextEditorData=h,t.toIRange=function(e){if(l.Range.isRange(e))return a.Range.from(e);if(l.Selection.isSelection(e)){const t=e;return t.active.isBeforeOrEqual(t.anchor)?{startLineNumber:t.active.line+1,startColumn:t.active.character+1,endLineNumber:t.anchor.line+1,endColumn:t.anchor.character+1}:{startLineNumber:t.anchor.line+1,startColumn:t.anchor.character+1,endLineNumber:t.active.line+1,endColumn:t.active.character+1}}if(l.Position.isPosition(e)){const t=e;return{startLineNumber:t.line+1,startColumn:t.character+1,endLineNumber:t.line+1,endColumn:t.character+1}}return{startLineNumber:1,startColumn:1,endLineNumber:1,endColumn:1}};class f{constructor(e,t,r){this._proxy=e,this._id=t,this._accept(r)}_accept(e){this._tabSize=e.tabSize,this._indentSize=e.indentSize,this._insertSpaces=e.insertSpaces,this._cursorStyle=e.cursorStyle,this._lineNumbers=a.TextEditorLineNumbersStyle.to(e.lineNumbers)}get tabSize(){return this._tabSize}set tabSize(e){const t=this._validateTabSize(e);if(null!==t){if("number"==typeof t){if(this._tabSize===t)return;this._tabSize=t}this._proxy.$updateOptions(this._id,{tabSize:t})}}_validateTabSize(e){if("auto"===e)return"auto";if("number"==typeof e){const t=Math.floor(e);return t>0?t:null}if("string"==typeof e){const t=parseInt(e,10);return isNaN(t)?null:t>0?t:null}return null}get indentSize(){return this._indentSize}set indentSize(e){const t=this._validateIndentSize(e);if(null!==t){if("number"==typeof t){if(this._indentSize===t)return;this._indentSize=t}this._proxy.$updateOptions(this._id,{indentSize:t})}}_validateIndentSize(e){if("tabSize"===e)return"tabSize";if("number"==typeof e){const t=Math.floor(e);return t>0?t:null}if("string"==typeof e){const t=parseInt(e,10);return isNaN(t)?null:t>0?t:null}return null}get insertSpaces(){return this._insertSpaces}set insertSpaces(e){const t=this._validateInsertSpaces(e);if("boolean"==typeof t){if(this._insertSpaces===t)return;this._insertSpaces=t}this._proxy.$updateOptions(this._id,{insertSpaces:t})}_validateInsertSpaces(e){return"auto"===e?"auto":"false"!==e&&Boolean(e)}get cursorStyle(){return this._cursorStyle}set cursorStyle(e){this._cursorStyle!==e&&(this._cursorStyle=e,this._proxy.$updateOptions(this._id,{cursorStyle:e}))}get lineNumbers(){return this._lineNumbers}set lineNumbers(e){this._lineNumbers!==e&&(this._lineNumbers=e,this._proxy.$updateOptions(this._id,{lineNumbers:a.TextEditorLineNumbersStyle.from(e)}))}assign(e){const t={};let r=!1;if(void 0!==e.tabSize){const n=this._validateTabSize(e.tabSize);"auto"===n?(r=!0,t.tabSize=n):"number"==typeof n&&this._tabSize!==n&&(this._tabSize=n,r=!0,t.tabSize=n)}if(void 0!==e.insertSpaces){const n=this._validateInsertSpaces(e.insertSpaces);"auto"===n?(r=!0,t.insertSpaces=n):this._insertSpaces!==n&&(this._insertSpaces=n,r=!0,t.insertSpaces=n)}void 0!==e.cursorStyle&&this._cursorStyle!==e.cursorStyle&&(this._cursorStyle=e.cursorStyle,r=!0,t.cursorStyle=e.cursorStyle),void 0!==e.lineNumbers&&this._lineNumbers!==e.lineNumbers&&(this._lineNumbers=e.lineNumbers,r=!0,t.lineNumbers=a.TextEditorLineNumbersStyle.from(e.lineNumbers)),r&&this._proxy.$updateOptions(this._id,t)}}t.ExtHostTextEditorOptions=f},function(e,t,r){var n=r(33),i=r(634),o=r(635),s=Math.max,a=Math.min;e.exports=function(e,t,r){var c,l,u,d,h,f,p=0,g=!1,m=!1,b=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var r=c,n=l;return c=l=void 0,p=t,d=e.apply(n,r)}function y(e){return p=e,h=setTimeout(w,t),g?v(e):d}function _(e){var r=e-f;return void 0===f||r>=t||r<0||m&&e-p>=u}function w(){var e=i();if(_(e))return C(e);h=setTimeout(w,function(e){var r=t-(e-f);return m?a(r,u-(e-p)):r}(e))}function C(e){return h=void 0,b&&c?v(e):(c=l=void 0,d)}function k(){var e=i(),r=_(e);if(c=arguments,l=this,f=e,r){if(void 0===h)return y(f);if(m)return clearTimeout(h),h=setTimeout(w,t),v(f)}return void 0===h&&(h=setTimeout(w,t)),d}return t=o(t)||0,n(r)&&(g=!!r.leading,u=(m="maxWait"in r)?s(o(r.maxWait)||0,t):u,b="trailing"in r?!!r.trailing:b),k.cancel=function(){void 0!==h&&clearTimeout(h),p=0,c=f=l=h=void 0},k.flush=function(){return void 0===h?d:C(i())},k}},function(e,t,r){var n=r(20);e.exports=function(){return n.Date.now()}},function(e,t,r){var n=r(636),i=r(33),o=r(638),s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=a.test(e);return r||c.test(e)?l(e.slice(2),r?2:8):s.test(e)?NaN:+e}},function(e,t,r){var n=r(637),i=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(i,""):e}},function(e,t){var r=/\s/;e.exports=function(e){for(var t=e.length;t--&&r.test(e.charAt(t)););return t}},function(e,t,r){var n=r(62),i=r(45);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==n(e)}},function(e,t,r){var n=r(128),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=n?n.toStringTag:void 0;e.exports=function(e){var t=o.call(e,a),r=e[a];try{e[a]=void 0;var n=!0}catch(e){}var i=s.call(e);return n&&(t?e[a]=r:delete e[a]),i}},function(e,t){var r=Object.prototype.toString;e.exports=function(e){return r.call(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextEditorEdit=void 0;const n=r(4);t.TextEditorEdit=class{constructor(e,t){this._document=e,this._documentVersionId=e.version,this._collectedEdits=[],this._setEndOfLine=void 0,this._undoStopBefore=t.undoStopBefore,this._undoStopAfter=t.undoStopAfter}finalize(){return{documentVersionId:this._documentVersionId,edits:this._collectedEdits,setEndOfLine:this._setEndOfLine,undoStopBefore:this._undoStopBefore,undoStopAfter:this._undoStopAfter}}replace(e,t){let r=null;if(e instanceof n.Position)r=new n.Range(e,e);else{if(!(e instanceof n.Range))throw new Error("Unrecognized location");r=e}this._pushEdit(r,t,!1)}insert(e,t){this._pushEdit(new n.Range(e,e),t,!0)}delete(e){let t=null;if(!(e instanceof n.Range))throw new Error("Unrecognized location");t=e,this._pushEdit(t,null,!0)}_pushEdit(e,t,r){const n=this._document.validateRange(e);this._collectedEdits.push({range:n,text:t,forceMoveMarkers:r})}setEndOfLine(e){if(e!==n.EndOfLine.LF&&e!==n.EndOfLine.CRLF)throw new Error("illegalArgument endOfLine");this._setEndOfLine=e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtHostEnv=void 0;const n=r(0),i=r(7),o=r(4);t.ExtHostEnv=class{constructor(e){this.logLevelChangeEmitter=new n.Emitter,this.rpcProtocol=e,this.proxy=this.rpcProtocol.getProxy(i.MainThreadAPIIdentifier.MainThreadEnv)}$setEnvValues(e){return this.setEnvValues(e)}setEnvValues(e){this.values=Object.assign({},this.values,e)}getEnvValues(){return this.values}async asExternalUri(e){if(!e.scheme.trim().length)throw new Error("Invalid scheme - cannot be empty");if(![n.Schemes.http,n.Schemes.https,this.values.uriScheme].includes(e.scheme))throw new Error(`Invalid scheme '${e.scheme}'`);const t=await this.proxy.$asExternalUri(e);return n.URI.revive(t)}$fireChangeLogLevel(e){this.$setLogLevel(e),this.logLevelChangeEmitter.fire(this.logLevel)}$setLogLevel(e){this.logLevel=this.toVSCodeLogLevel(e)}toVSCodeLogLevel(e){return e===n.LogLevel.Verbose?o.LogLevel.Trace:e===n.LogLevel.Debug?o.LogLevel.Debug:e===n.LogLevel.Info?o.LogLevel.Info:e===n.LogLevel.Warning?o.LogLevel.Warning:e===n.LogLevel.Error?o.LogLevel.Error:e===n.LogLevel.Critical?o.LogLevel.Critical:e===n.LogLevel.Off?o.LogLevel.Off:o.LogLevel.Info}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createWorkerHostEnvAPIFactory=void 0;const n=r(7);t.createWorkerHostEnvAPIFactory=function(e,t){const r=e.getProxy(n.MainThreadAPIIdentifier.MainThreadEnv);return{get language(){return t.getEnvValues().language},clipboard:{readText:()=>r.$clipboardReadText(),writeText:e=>r.$clipboardWriteText(e)},openExternal:e=>r.$openExternal(e)}}},function(e,t,r){"use strict";var n,i,o,s,a,c,l,u,d,h;Object.defineProperty(t,"__esModule",{value:!0}),t.ExtHostWebviewViews=t.ExtHostWebviewService=t.ExtHostWebviewPanel=t.ExtHostWebview=void 0;const f=r(1),p=r(0),g=r(7),m=r(4);class b{constructor(e,t,r,n,i){this.cspResourceRoots=n,this.extensionLocation=i,this._isDisposed=!1,this._onMessageEmitter=new p.Emitter,this.onDidReceiveMessage=this._onMessageEmitter.event,this._handle=e,this._proxy=t,this._options=r}dispose(){this._onMessageEmitter.dispose()}get html(){return this.assertNotDisposed(),this._html}set html(e){this.assertNotDisposed(),this._html!==e&&(this._html=e,this._proxy.$setHtml(this._handle,e))}get options(){return this.assertNotDisposed(),this._options}set options(e){this.assertNotDisposed(),this._proxy.$setOptions(this._handle,e),this._options=e}postMessage(e){return this.assertNotDisposed(),this._proxy.$postMessage(this._handle,e)}assertNotDisposed(){if(this._isDisposed)throw new Error("Webview is disposed")}get resourceRoot(){return"vscode-resource:"}get cspSource(){let e=this.cspResourceRoots.join(" ");return this.extensionLocation&&(e+=` 'self' vscode-resource:/${this.extensionLocation.path}/`.toLowerCase()),e}toWebviewResource(e){return this.asWebviewUri(e)}asWebviewUri(e){return e.scheme===p.Schemes.file?m.Uri.from({scheme:"vscode-resource",path:e.path,authority:e.authority,query:e.query,fragment:e.fragment}):e}}t.ExtHostWebview=b;class v{constructor(e,t,r,n,i,o,s){this._isDisposed=!1,this._visible=!0,this._active=!0,this._onDisposeEmitter=new p.Emitter,this.onDidDispose=this._onDisposeEmitter.event,this._onDidChangeViewStateEmitter=new p.Emitter,this.onDidChangeViewState=this._onDidChangeViewStateEmitter.event,this._handle=e,this._proxy=t,this._viewType=r,this._options=o,this._viewColumn=i,this._title=n,this._webview=s}dispose(){this._isDisposed||(this._isDisposed=!0,this._onDisposeEmitter.fire(),this._proxy.$disposeWebview(this._handle),this._webview.dispose(),this._onDisposeEmitter.dispose(),this._onDidChangeViewStateEmitter.dispose())}get webview(){return this.assertNotDisposed(),this._webview}get viewType(){return this.assertNotDisposed(),this._viewType}get title(){return this.assertNotDisposed(),this._title}set title(e){this.assertNotDisposed(),this._title!==e&&(this._title=e,this._proxy.$setTitle(this._handle,e))}get iconPath(){return this.assertNotDisposed(),this._iconPath}set iconPath(e){if(this.assertNotDisposed(),this._iconPath!==e){this._iconPath=e;let t={light:"",dark:""};if(m.Uri.isUri(e))t={light:e.toString(),dark:e.toString()};else{const r=e;t={light:r.light.toString(),dark:r.dark.toString()}}this._proxy.$setIconPath(this._handle,t)}}get options(){return this._options}get viewColumn(){return this.assertNotDisposed(),this._viewColumn}_setViewColumn(e){this.assertNotDisposed(),this._viewColumn=e}get active(){return this.assertNotDisposed(),this._active}_setActive(e){this.assertNotDisposed(),this._active=e}get visible(){return this.assertNotDisposed(),this._visible}_setVisible(e){this.assertNotDisposed(),this._visible=e}postMessage(e){return this.assertNotDisposed(),this._proxy.$postMessage(this._handle,e)}reveal(e,t){this.assertNotDisposed(),this._proxy.$reveal(this._handle,{viewColumn:e,preserveFocus:!!t})}assertNotDisposed(){if(this._isDisposed)throw new Error("Webview is disposed")}}t.ExtHostWebviewPanel=v;t.ExtHostWebviewService=class{constructor(e){this.rpcProtocol=e,this.webviewHandlePool=1,this._webviewPanels=new Map,this._localWebviews=new Map,this._serializers=new Map,this.resourceRoots=[],this.rpcProtocol=e,this._proxy=this.rpcProtocol.getProxy(g.MainThreadAPIIdentifier.MainThreadWebview)}async $init(){return await this.init()}async init(){this.resourceRoots=await this._proxy.$getWebviewResourceRoots()}getNextHandle(){let e="ext-host-webview-"+this.webviewHandlePool++;for(;this._webviewPanels.has(e);)e="ext-host-webview-"+this.webviewHandlePool++;return e}createWebview(e,t,r,n,i={},o){const s="object"==typeof n?n.viewColumn:n,a={viewColumn:s,preserveFocus:"object"==typeof n&&!!n.preserveFocus},c=this.getNextHandle();this._proxy.$createWebviewPanel(c,t,r,a,i,o);const l=new b(c,this._proxy,i,this.resourceRoots,e),u=new v(c,this._proxy,t,r,s,i,l);return this._webviewPanels.set(c,u),u}$pipeBrowserHostedWebviewPanel(e,t){const r=new b(e,this._proxy,{},this.resourceRoots),n=new v(e,this._proxy,t,"",g.ViewColumn.One,{},r);this._webviewPanels.set(e,n)}createLocalWebview(e){const t=new b(e,this._proxy,{},this.resourceRoots);return this._localWebviews.set(e,t),t}registerWebviewPanelSerializer(e,t){if(this._serializers.has(e))throw new Error(`Serializer for '${e}' already registered`);return this._serializers.set(e,t),this._proxy.$registerSerializer(e),new m.Disposable(()=>{this._serializers.delete(e),this._proxy.$unregisterSerializer(e)})}getExtHostWebview(e){var t;return this._localWebviews.get(e)||(null===(t=this.getWebviewPanel(e))||void 0===t?void 0:t.webview)}$onMessage(e,t){var r;null===(r=this.getExtHostWebview(e))||void 0===r||r._onMessageEmitter.fire(t)}$onDidChangeWebviewPanelViewState(e,t){const r=this.getWebviewPanel(e);if(r){const e=t.position;r.active===t.active&&r.visible===t.visible&&r.viewColumn===e||(r._setActive(t.active),r._setVisible(t.visible),r._setViewColumn(e),r._onDidChangeViewStateEmitter.fire({webviewPanel:r}))}}async $onDidDisposeWebviewPanel(e){const t=this.getWebviewPanel(e);t&&(t.dispose(),this._webviewPanels.delete(e))}async $deserializeWebviewPanel(e,t,r,n,i,o){const s=this._serializers.get(t);if(!s)throw new Error(`No serializer found for '${t}'`);const a=new b(e,this._proxy,o,this.resourceRoots),c=new v(e,this._proxy,t,r,i,o,a);return this._webviewPanels.set(e,c),s.deserializeWebviewPanel(c,n)}getWebviewPanel(e){return this._webviewPanels.get(e)}};class y extends p.Disposable{constructor(e,t,r,g,m,b){super(),n.set(this,void 0),i.set(this,void 0),o.set(this,void 0),s.set(this,void 0),a.set(this,!1),c.set(this,void 0),l.set(this,void 0),u.set(this,void 0),d.set(this,new p.Emitter),this.onDidChangeVisibility=f.__classPrivateFieldGet(this,d,"f").event,h.set(this,new p.Emitter),this.onDidDispose=f.__classPrivateFieldGet(this,h,"f").event,f.__classPrivateFieldSet(this,o,r,"f"),f.__classPrivateFieldSet(this,l,g,"f"),f.__classPrivateFieldSet(this,n,e,"f"),f.__classPrivateFieldSet(this,i,t,"f"),f.__classPrivateFieldSet(this,s,m,"f"),f.__classPrivateFieldSet(this,c,b,"f"),this.addDispose(f.__classPrivateFieldGet(this,d,"f")),this.addDispose(f.__classPrivateFieldGet(this,h,"f"))}dispose(){f.__classPrivateFieldGet(this,a,"f")||(f.__classPrivateFieldSet(this,a,!0,"f"),f.__classPrivateFieldGet(this,h,"f").fire(),f.__classPrivateFieldGet(this,s,"f").dispose(),super.dispose())}get title(){return this.assertNotDisposed(),f.__classPrivateFieldGet(this,l,"f")}set title(e){this.assertNotDisposed(),f.__classPrivateFieldGet(this,l,"f")!==e&&(f.__classPrivateFieldSet(this,l,e,"f"),f.__classPrivateFieldGet(this,i,"f").$setWebviewViewTitle(f.__classPrivateFieldGet(this,n,"f"),e))}get description(){return this.assertNotDisposed(),f.__classPrivateFieldGet(this,u,"f")}set description(e){this.assertNotDisposed(),f.__classPrivateFieldGet(this,u,"f")!==e&&(f.__classPrivateFieldSet(this,u,e,"f"),f.__classPrivateFieldGet(this,i,"f").$setWebviewViewDescription(f.__classPrivateFieldGet(this,n,"f"),e))}get visible(){return f.__classPrivateFieldGet(this,c,"f")}get webview(){return f.__classPrivateFieldGet(this,s,"f")}get viewType(){return f.__classPrivateFieldGet(this,o,"f")}_setVisible(e){e===f.__classPrivateFieldGet(this,c,"f")||f.__classPrivateFieldGet(this,a,"f")||(f.__classPrivateFieldSet(this,c,e,"f"),f.__classPrivateFieldGet(this,d,"f").fire())}show(e){this.assertNotDisposed(),f.__classPrivateFieldGet(this,i,"f").$show(f.__classPrivateFieldGet(this,n,"f"),!!e)}assertNotDisposed(){if(f.__classPrivateFieldGet(this,a,"f"))throw new Error("Webview is disposed")}}n=new WeakMap,i=new WeakMap,o=new WeakMap,s=new WeakMap,a=new WeakMap,c=new WeakMap,l=new WeakMap,u=new WeakMap,d=new WeakMap,h=new WeakMap;t.ExtHostWebviewViews=class{constructor(e,t){this._extHostWebview=t,this._viewProviders=new Map,this._webviewViews=new Map,this._proxy=e.getProxy(g.MainThreadAPIIdentifier.MainThreadWebviewView)}registerWebviewViewProvider(e,t,r,n){if(this._viewProviders.has(t))throw new Error(`View provider for '${t}' already registered`);return this._viewProviders.set(t,{provider:r,extension:e}),this._proxy.$registerWebviewViewProvider(e,t,n),new m.Disposable(()=>{this._viewProviders.delete(t),this._proxy.$unregisterWebviewViewProvider(t)})}async $resolveWebviewView(e,t,r,n,i){const o=this._viewProviders.get(t);if(!o)throw new Error(`No view provider found for '${t}'`);const{provider:s}=o,a=this._extHostWebview.createLocalWebview(e),c=new y(e,this._proxy,t,r,a,!0);this._webviewViews.set(e,c),await s.resolveWebviewView(c,{state:n},i)}async $onDidChangeWebviewViewVisibility(e,t){this.getWebviewView(e)._setVisible(t)}async $disposeWebviewView(e){var t;this._webviewViews.delete(e),null===(t=this._extHostWebview.getWebviewPanel(e))||void 0===t||t.dispose()}getWebviewView(e){const t=this._webviewViews.get(e);if(!t)throw new Error("No webview found");return t}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtHostAuthentication=t.createAuthenticationApiFactory=void 0;const n=r(0),i=r(7),o=r(124);t.createAuthenticationApiFactory=function(e,t){return{getSession:(r,n,i)=>t.getSession(e,r,n,i),get onDidChangeSessions(){return t.onDidChangeSessions},registerAuthenticationProvider:(e,r,n,i)=>t.registerAuthenticationProvider(e,r,n,i),get onDidChangeAuthenticationProviders(){return t.onDidChangeAuthenticationProviders},get providers(){return t.providers},logout:(e,r)=>t.logout(e,r)}};t.ExtHostAuthentication=class{constructor(e){this.logger=(0,n.getDebugLogger)(),this._authenticationProviders=new Map,this._providers=[],this._onDidChangeAuthenticationProviders=new n.Emitter,this.onDidChangeAuthenticationProviders=this._onDidChangeAuthenticationProviders.event,this._onDidChangeSessions=new n.Emitter,this.onDidChangeSessions=this._onDidChangeSessions.event,this._inFlightRequests=new Map,this._proxy=e.getProxy(i.MainThreadAPIIdentifier.MainThreadAuthentication)}$setProviders(e){return this._providers=e,Promise.resolve()}getProviderIds(){return this._proxy.$getProviderIds()}get providers(){return Object.freeze(this._providers.slice())}async getSession(e,t,r,n={}){const i=o.ExtensionIdentifier.toKey(e.identifier),s=this._inFlightRequests.get(i)||[],a=r.sort().join(" ");let c=s.find(e=>e.scopes===a);if(c)return c.result;{const o=this._getSession(e,i,t,r,n);c={scopes:a,result:o},s.push(c),this._inFlightRequests.set(i,s);try{await o}catch(e){this.logger.error(`get session had a error ${e.message} `)}finally{const e=s.findIndex(e=>e.scopes===a);e>-1&&(s.splice(e),this._inFlightRequests.set(i,s))}return o}}async _getSession(e,t,r,n,i={}){await this._proxy.$ensureProvider(r);const o=e.displayName||e.name;return this._proxy.$getSession(r,n,t,o,i)}async logout(e,t){return this._proxy.$logout(e,t)}registerAuthenticationProvider(e,t,r,i){var o;if(this._authenticationProviders.get(e))throw new Error(`An authentication provider with id '${e}' is already registered.`);this._authenticationProviders.set(e,{label:t,provider:r,options:null!=i?i:{supportsMultipleAccounts:!1}}),this._providers.find(t=>t.id===e)||this._providers.push({id:e,label:t}),this._providers.find(t=>t.id===e)||this._providers.push({id:e,label:t});const s=r.onDidChangeSessions(t=>{var r,n,i;this._proxy.$sendDidChangeSessions(e,{added:null!==(r=t.added)&&void 0!==r?r:[],changed:null!==(n=t.changed)&&void 0!==n?n:[],removed:null!==(i=t.removed)&&void 0!==i?i:[]})});return this._proxy.$registerAuthenticationProvider(e,t,null!==(o=null==i?void 0:i.supportsMultipleAccounts)&&void 0!==o&&o),n.Disposable.create(()=>{s.dispose(),this._authenticationProviders.delete(e);const t=this._providers.findIndex(t=>t.id===e);t>-1&&this._providers.splice(t),this._proxy.$unregisterAuthenticationProvider(e)})}$login(e,t){const r=this._authenticationProviders.get(e);if(r)return Promise.resolve(r.provider.createSession(t));throw new Error("Unable to find authentication provider with handle: "+e)}$logout(e,t){const r=this._authenticationProviders.get(e);if(r)return Promise.resolve(r.provider.removeSession(t));throw new Error("Unable to find authentication provider with handle: "+e)}$getSessions(e){const t=this._authenticationProviders.get(e);if(t)return Promise.resolve(t.provider.getSessions());throw new Error("Unable to find authentication provider with handle: "+e)}async $getSessionAccessToken(e,t){const r=this._authenticationProviders.get(e);if(r){const e=(await r.provider.getSessions()).find(e=>e.id===t);if(e)return e.accessToken;throw new Error("Unable to find session with id: "+t)}throw new Error("Unable to find authentication provider with handle: "+e)}$onDidChangeAuthenticationSessions(e,t,r){return this._onDidChangeSessions.fire(Object.assign({provider:{id:e,label:t}},r)),Promise.resolve()}$onDidChangeAuthenticationProviders(e,t){return e.forEach(e=>{this._providers.some(t=>t.id===e.id)||this._providers.push(e)}),t.forEach(e=>{const t=this._providers.findIndex(t=>t.id===e.id);t>-1&&this._providers.splice(t)}),this._onDidChangeAuthenticationProviders.fire({added:e,removed:t}),Promise.resolve()}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtHostCommentThread=t.ExtHostComments=t.createCommentsApiFactory=void 0;const n=r(1),i=r(0),o=r(56),s=r(7),a=n.__importStar(r(5)),c=n.__importStar(r(4)),l=n.__importStar(r(251));t.createCommentsApiFactory=function(e,t){return{createCommentController:(r,n)=>t.createCommentController(e,r,n)}};class u{constructor(e,t,r){this.rpcProtocol=e,this._documents=r,this._commentControllers=new Map,this._commentControllersByExtension=new Map,this._proxy=this.rpcProtocol.getProxy(s.MainThreadAPIIdentifier.MainThreadComments),this.registerArgumentProcessor(t)}registerArgumentProcessor(e){e.registerArgumentProcessor({processArgument:e=>{if(e&&6===e.$mid){const t=this._commentControllers.get(e.handle);return t||e}if(e&&7===e.$mid){const t=this._commentControllers.get(e.commentControlHandle);if(!t)return e;const r=t.getCommentThread(e.commentThreadHandle);return r||e}if(e&&8===e.$mid){const t=this._commentControllers.get(e.thread.commentControlHandle);if(!t)return e;const r=t.getCommentThread(e.thread.commentThreadHandle);return r?{thread:r,text:e.text}:e}if(e&&9===e.$mid){const t=this._commentControllers.get(e.thread.commentControlHandle);if(!t)return e;const r=t.getCommentThread(e.thread.commentThreadHandle);if(!r)return e;const n=e.commentUniqueId,i=r.getCommentByUniqueId(n);return i||e}if(e&&10===e.$mid){const t=this._commentControllers.get(e.thread.commentControlHandle);if(!t)return e;const r=t.getCommentThread(e.thread.commentThreadHandle);if(!r)return e;const n=e.text,i=e.commentUniqueId,o=r.getCommentByUniqueId(i);return o?(o.body=n,o):e}return e}})}createCommentController(e,t,r){const n=u.handlePool++,i=new d(e,n,this._proxy,t,r);this._commentControllers.set(i.handle,i);const s=this._commentControllersByExtension.get((0,o.getExtensionId)(e.id))||[];return s.push(i),this._commentControllersByExtension.set((0,o.getExtensionId)(e.id),s),i}$createCommentThreadTemplate(e,t,r){const n=this._commentControllers.get(e);n&&n.$createCommentThreadTemplate(t,r)}async $updateCommentThreadTemplate(e,t,r){const n=this._commentControllers.get(e);n&&n.$updateCommentThreadTemplate(t,r)}$deleteCommentThread(e,t){const r=this._commentControllers.get(e);r&&r.$deleteCommentThread(t)}$provideCommentingRanges(e,t,r){const n=this._commentControllers.get(e);if(!n||!n.commentingRangeProvider)return Promise.resolve(void 0);const o=this._documents.getDocument(i.Uri.revive(t));return(0,i.asPromise)(()=>n.commentingRangeProvider.provideCommentingRanges(o,r)).then(e=>e?e.map(e=>a.fromRange(e)):void 0)}$toggleReaction(e,t,r,n,o){const s=this._commentControllers.get(e);return s&&s.reactionHandler?(0,i.asPromise)(()=>{const e=s.getCommentThread(t);if(e){const t=e.getCommentByUniqueId(n.uniqueIdInThread);if(void 0!==s&&t&&s.reactionHandler)return s.reactionHandler(t,function(e){return{label:e.label||"",count:e.count||0,iconPath:e.iconPath?i.Uri.revive(e.iconPath):"",authorHasReacted:e.hasReacted||!1}}(o))}return Promise.resolve(void 0)}):Promise.resolve(void 0)}}t.ExtHostComments=u,u.handlePool=0;class d{get id(){return this._id}get label(){return this._label}get handle(){return this._handle}get options(){return this._options}set options(e){this._options=e,this._proxy.$updateCommentControllerFeatures(this.handle,{options:this._options})}get reactionHandler(){return this._reactionHandler}set reactionHandler(e){this._reactionHandler=e,this._proxy.$updateCommentControllerFeatures(this.handle,{reactionHandler:!!e})}constructor(e,t,r,n,i){this._extension=e,this._handle=t,this._proxy=r,this._id=n,this._label=i,this._threads=new Map,this._proxy.$registerCommentController(this.handle,n,i)}createCommentThread(e,t,r,n){if("string"==typeof e){const i=new h(this._proxy,this,e,t,r,n,this._extension);return this._threads.set(i.handle,i),i}{const n=new h(this._proxy,this,void 0,e,t,r,this._extension);return this._threads.set(n.handle,n),n}}$createCommentThreadTemplate(e,t){const r=new h(this._proxy,this,void 0,i.Uri.revive(e),a.toRange(t),[],this._extension);return r.collapsibleState=l.CommentThreadCollapsibleState.Expanded,this._threads.set(r.handle,r),r}$updateCommentThreadTemplate(e,t){const r=this._threads.get(e);r&&(r.range=a.toRange(t))}$deleteCommentThread(e){const t=this._threads.get(e);t&&t.dispose(),this._threads.delete(e)}getCommentThread(e){return this._threads.get(e)}dispose(){this._threads.forEach(e=>{e.dispose()}),this._proxy.$unregisterCommentController(this.handle)}}class h{set threadId(e){this._id=e}get threadId(){return this._id}get id(){return this._id}get resource(){return this._uri}get uri(){return this._uri}set range(e){e.isEqual(this._range)||(this._range=e,this.modifications.range=e,this._onDidUpdateCommentThread.fire())}get range(){return this._range}set canReply(e){this._canReply!==e&&(this._canReply=e,this.modifications.canReply=e,this._onDidUpdateCommentThread.fire())}get canReply(){return this._canReply}get label(){return this._label}set label(e){this._label=e,this.modifications.label=e,this._onDidUpdateCommentThread.fire()}get contextValue(){return this._contextValue}set contextValue(e){this._contextValue=e,this.modifications.contextValue=e,this._onDidUpdateCommentThread.fire()}get comments(){return this._comments}set comments(e){this._comments=e,this.modifications.comments=e,this._onDidUpdateCommentThread.fire()}get collapsibleState(){return this._collapseState}set collapsibleState(e){this._collapseState=e,this.modifications.collapsibleState=e,this._onDidUpdateCommentThread.fire()}get isDisposed(){return this._isDiposed}constructor(e,t,r,n,o,s,l){this._proxy=e,this._commentController=t,this._id=r,this._uri=n,this._range=o,this._comments=s,this.handle=h._handlePool++,this.commentHandle=0,this.modifications=Object.create(null),this._onDidUpdateCommentThread=new i.Emitter,this.onDidUpdateCommentThread=this._onDidUpdateCommentThread.event,this._canReply=!0,this._commentsMap=new Map,this._acceptInputDisposables=new i.MutableDisposable,this._acceptInputDisposables.value=new i.DisposableStore,void 0===this._id&&(this._id=`${t.id}.${this.handle}`),this._proxy.$createCommentThread(this._commentController.handle,this.handle,this._id,this._uri,a.fromRange(this._range),l.id),this._localDisposables=[],this._isDiposed=!1,this._localDisposables.push(c.Disposable.from(this.onDidUpdateCommentThread(()=>{this.eventuallyUpdateCommentThread()}))),this.comments=s}eventuallyUpdateCommentThread(){if(this._isDiposed)return;this._acceptInputDisposables.value||(this._acceptInputDisposables.value=new i.DisposableStore);const e=e=>Object.prototype.hasOwnProperty.call(this.modifications,e),t={};e("range")&&(t.range=a.fromRange(this._range)),e("label")&&(t.label=this.label),e("contextValue")&&(t.contextValue=this.contextValue),e("comments")&&(t.comments=this._comments.map(e=>function(e,t,r,n){var i;let o=n.get(r);o||(o=++e.commentHandle,n.set(r,o));const s=r.author&&r.author.iconPath?r.author.iconPath.toString():void 0;return{mode:r.mode,contextValue:r.contextValue,uniqueIdInThread:o,body:"string"==typeof r.body?r.body:a.MarkdownString.from(r.body),userName:r.author.name,userIconPath:s,label:r.label,commentReactions:r.reactions?r.reactions.map(e=>function(e){return{label:e.label,iconPath:e.iconPath?a.pathOrURIToURI(e.iconPath):void 0,count:e.count,hasReacted:e.authorHasReacted}}(e)):void 0,timestamp:null===(i=r.timestamp)||void 0===i?void 0:i.toJSON()}}(this,this._commentController,e,this._commentsMap))),e("collapsibleState")&&(t.collapseState=function(e){if(void 0!==e)switch(e){case c.CommentThreadCollapsibleState.Expanded:return l.CommentThreadCollapsibleState.Expanded;case c.CommentThreadCollapsibleState.Collapsed:return l.CommentThreadCollapsibleState.Collapsed}return l.CommentThreadCollapsibleState.Collapsed}(this._collapseState)),e("canReply")&&(t.canReply=this.canReply),this.modifications={},this._proxy.$updateCommentThread(this._commentController.handle,this.handle,this._id,this._uri,t)}getCommentByUniqueId(e){for(const t of this._commentsMap){const r=t[0];if(e===t[1])return r}}dispose(){this._isDiposed=!0,this._acceptInputDisposables.dispose(),this._localDisposables.forEach(e=>e.dispose()),this._proxy.$deleteCommentThread(this._commentController.handle,this.handle)}}h._handlePool=0,n.__decorate([(0,i.debounce)(100),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],h.prototype,"eventuallyUpdateCommentThread",null),t.ExtHostCommentThread=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtHostCustomEditorImpl=void 0;const n=r(0),i=r(7),o=r(4);t.ExtHostCustomEditorImpl=class{constructor(e,t,r){this.webview=t,this.extDocuments=r,this.providers=new Map,this.customDocuments=new Map,this.proxy=e.getProxy(i.MainThreadAPIIdentifier.MainThreadCustomEditor)}registerCustomEditorProvider(e,t,r,n){const o=function(e){return"function"==typeof e.saveCustomDocument?i.CustomEditorType.FullEditor:"function"==typeof e.openCustomDocument?i.CustomEditorType.ReadonlyEditor:i.CustomEditorType.TextEditor}(t);return this.proxy.$registerCustomEditor(e,o,r,n),this.providers.set(e,{type:o,provider:t}),o!==i.CustomEditorType.FullEditor&&o!==i.CustomEditorType.ReadonlyEditor||this.customDocuments.set(e,{provider:t,documents:new Map}),{dispose:()=>{this.providers.delete(e),this.customDocuments.delete(e),this.proxy.$unregisterCustomEditor(e)}}}async $saveCustomDocument(e,t,r){var n,i;const s=o.Uri.revive(t),a=null===(i=null===(n=this.customDocuments.get(e))||void 0===n?void 0:n.documents)||void 0===i?void 0:i.get(s.toString());a&&await a.save(r)}async $revertCustomDocument(e,t,r){var n,i;const s=o.Uri.revive(t),a=null===(i=null===(n=this.customDocuments.get(e))||void 0===n?void 0:n.documents)||void 0===i?void 0:i.get(s.toString());a&&await a.revert(r)}async $resolveCustomTextEditor(e,t,r,a){var c,l;const u=this.providers.get(e);if(!u)throw new Error("no custom editor provider for "+e);const d=this.webview.getWebviewPanel(r);if(!d)throw new Error(`no webview ${r} for custom editor ${e}`);const h=o.Uri.revive(t);if(u.type===i.CustomEditorType.TextEditor){const t=this.extDocuments.getDocument(h);if(!t)throw new Error(`no document ${h.toString()} for custom editor ${e}`);u.provider.resolveCustomTextEditor(t,d,a)}else{let t=null===(c=this.getCustomDocument(e,h))||void 0===c?void 0:c.document;if(!t){const r={};if(h.scheme===n.Schemes.untitled){const e=this.extDocuments.getDocument(h);r.untitledDocumentData=e&&(0,n.iconvEncode)(e.getText(),"utf-8")}if(t=await u.provider.openCustomDocument(h,r,a),!t)return;const i=new s(t,u.provider);if(null===(l=this.customDocuments.get(e))||void 0===l||l.documents.set(h.toString(),i),i.onDidChange(()=>{this.proxy.$acceptCustomDocumentDirty(h,i.dirty)}),a.isCancellationRequested)return}u.provider.resolveCustomEditor(t,d,a)}}getCustomDocument(e,t){var r,n;return null===(n=null===(r=this.customDocuments.get(e))||void 0===r?void 0:r.documents)||void 0===n?void 0:n.get(t.toString())}async $undo(e,t){const r=o.Uri.revive(t),n=this.getCustomDocument(e,r);n&&await n.undo()}async $redo(e,t){const r=o.Uri.revive(t),n=this.getCustomDocument(e,r);n&&await n.redo()}};class s{constructor(e,t){this._document=e,this.provider=t,this.edits=[],this.currentIndex=-1,this.savePoint=-1,this._onDidChange=new n.Emitter,this.onDidChange=this._onDidChange.event,this._forceDirty=!1,a(this.provider)&&this.provider.onDidChangeCustomDocument(e=>{e.document===this.document&&(!function(e){return void 0!==e.undo&&void 0!==e.redo}(e)?(this._forceDirty=!0,this._onDidChange.fire()):this.addEdit(e))})}addEdit(e){this.currentIndex!==this.edits.length-1&&this.edits.splice(this.currentIndex+1,this.edits.length-this.currentIndex-1),this.edits.push(e),this.currentIndex=this.edits.length-1,this.savePoint>=this.currentIndex&&(this.savePoint=-2),this._onDidChange.fire()}get document(){return this._document}async undo(){if(this.edits[this.currentIndex]){const e=this.edits[this.currentIndex];this.currentIndex--,await e.undo(),this._onDidChange.fire()}}async redo(){if(this.edits[this.currentIndex+1]){const e=this.edits[this.currentIndex+1];this.currentIndex++,await e.redo(),this._onDidChange.fire()}}async save(e){a(this.provider)&&(await this.provider.saveCustomDocument(this.document,e),this.savePoint=this.currentIndex,this._forceDirty=!1,this._onDidChange.fire())}async revert(e){a(this.provider)&&(await this.provider.revertCustomDocument(this.document,e),this.currentIndex=this.savePoint,this._forceDirty=!1,this._onDidChange.fire())}get dirty(){return!!this._forceDirty||this.currentIndex!==this.savePoint}}function a(e){return"function"==typeof e.saveCustomDocument}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtHostDecorations=void 0;const n=r(0),i=r(7),o=r(4),{asArray:s,groupBy:a}=n.arrays,{compare:c,count:l}=n.strings,{dirname:u}=n.path;class d{constructor(e){this.logger=(0,n.getDebugLogger)(),this._provider=new Map,this.proxy=e.getProxy(i.MainThreadAPIIdentifier.MainThreadDecorations)}registerFileDecorationProvider(e,t){const r=d._handlePool++;this._provider.set(r,{provider:e,extensionId:t}),this.proxy.$registerDecorationProvider(r,t);const i=e.onDidChangeFileDecorations&&e.onDidChangeFileDecorations(e=>{if(!e)return void this.proxy.$onDidChange(r,null);const n=s(e);if(n.length<=d._maxEventSize)return void this.proxy.$onDidChange(r,n);this.logger.warn("[Decorations] CAPPING events from decorations provider",t,n.length);const i=n.map(e=>({uri:e,rank:l(e.path,"/")})),o=a(i,(e,t)=>e.rank-t.rank||c(e.uri.path,t.uri.path)),h=[];e:for(const e of o){let t;for(const r of e){const e=u(r.uri.path);if(t!==e&&(t=e,h.push(r.uri)>=d._maxEventSize))break e}}this.proxy.$onDidChange(r,h)});return(0,n.toDisposable)(()=>{null==i||i.dispose(),this.proxy.$unregisterDecorationProvider(r),this._provider.delete(r)})}$provideFileDecorations(e,t){const r=Object.create(null);return Promise.all(e.map(e=>{const{handle:i,uri:s,id:a}=e,c=this._provider.get(i);if(!c)return;const{provider:l,extensionId:u}=c;return function(e){return!!e.onDidChangeFileDecorations||!!e.provideFileDecoration}(l)?Promise.resolve(l.provideFileDecoration(n.Uri.revive(s),t)).then(e=>{var t;if(e)try{r[a]=[null!==(t=e.propagate)&&void 0!==t&&t,e.tooltip,e.badge,e.color],o.FileDecoration.validate(e)}catch(e){this.logger.warn(`INVALID decoration from extension '${u}'. ${e}`)}},e=>{this.logger.error(e)}):void 0})).then(()=>r)}}t.ExtHostDecorations=d,d._handlePool=0,d._maxEventSize=250},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtHostEditorTabs=void 0;const n=r(0),i=r(7);t.ExtHostEditorTabs=class{get tabs(){return this._tabs}constructor(e){this._onDidChangeTabs=new n.Emitter,this.onDidChangeTabs=this._onDidChangeTabs.event,this._tabs=[],this._proxy=e.getProxy(i.MainThreadAPIIdentifier.MainThreadEditorTabs)}$acceptEditorTabs(e){this._tabs=e.map(e=>({name:e.name,group:e.group,resource:n.Uri.parse(e.resource),isActive:e.isActive})),this._onDidChangeTabs.fire()}}},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.ExtHostFileSystem=t.convertToVSCFileStat=void 0;const n=r(1),i=r(0),o=r(244),s=r(7),a=n.__importStar(r(651));t.convertToVSCFileStat=function(e){return{type:e.type||0,ctime:e.createTime||-1,mtime:e.lastModification,size:e.size||0}};class c{constructor(e,t){this._proxy=e,this._fileSystemInfo=t}stat(e){return this._proxy.$stat(e).catch(c._handleError)}readDirectory(e){return this._proxy.$readdir(e).catch(c._handleError)}createDirectory(e){return this._proxy.$mkdir(e).catch(c._handleError)}async readFile(t){return this._proxy.$readFile(t).then(t=>e.from(t)).catch(c._handleError)}writeFile(e,t){return this._proxy.$writeFile(e,t).catch(c._handleError)}delete(e,t){return this._proxy.$delete(e,Object.assign({recursive:!1,useTrash:!1},t)).catch(c._handleError)}rename(e,t,r){return this._proxy.$rename(e,t,Object.assign({overwrite:!1},r)).catch(c._handleError)}copy(e,t,r){return this._proxy.$copy(e,t,Object.assign({overwrite:!1},r)).catch(c._handleError)}isWritableFileSystem(e){const t=this._fileSystemInfo.getCapabilities(e);if("number"==typeof t)return!(2048&t)}static _handleError(e){if(!(e instanceof Error))throw new a.FileSystemError(String(e));if("ENOPRO"===e.name)throw a.FileSystemError.Unavailable(e.message);switch(e.name){case a.FileSystemProviderErrorCode.FileExists:throw a.FileSystemError.FileExists(e.message);case a.FileSystemProviderErrorCode.FileNotFound:throw a.FileSystemError.FileNotFound(e.message);case a.FileSystemProviderErrorCode.FileNotADirectory:throw a.FileSystemError.FileNotADirectory(e.message);case a.FileSystemProviderErrorCode.FileIsADirectory:throw a.FileSystemError.FileIsADirectory(e.message);case a.FileSystemProviderErrorCode.NoPermissions:throw a.FileSystemError.NoPermissions(e.message);case a.FileSystemProviderErrorCode.Unavailable:throw a.FileSystemError.Unavailable(e.message);default:throw new a.FileSystemError(e.message,e.name)}}}class l{constructor(e,t){this.rpcProtocol=e,this._fileSystemInfo=t,this._fsProvider=new Map,this._usedSchemes=new Set,this._watches=new Map,this._handlePool=0,this._proxy=this.rpcProtocol.getProxy(s.MainThreadAPIIdentifier.MainThreadFileSystem),this.fileSystem=new c(this._proxy,this._fileSystemInfo),Object.keys(i.Schemes).forEach(e=>this._usedSchemes.add(e))}registerFileSystemProvider(e,t,r={}){if(this._usedSchemes.has(e))throw new Error(`a provider for the scheme '${e}' is already registered`);const n=this._handlePool++;this._usedSchemes.add(e),this._fsProvider.set(n,t);let s=2;r.isCaseSensitive&&(s+=1024),r.isReadonly&&(s+=2048),"function"==typeof t.copy&&(s+=8),this._proxy.$registerFileSystemProvider(n,e,s);const c=t.onDidChangeFile(t=>{const r=[];for(const n of t){const{uri:t,type:i}=n;if(t.scheme!==e)continue;let s;switch(i){case a.FileChangeType.Changed:s=o.FileChangeType.UPDATED;break;case a.FileChangeType.Created:s=o.FileChangeType.ADDED;break;case a.FileChangeType.Deleted:s=o.FileChangeType.DELETED;break;default:throw new Error("Unknown FileChangeType")}r.push({uri:t.toString(),type:s})}this._proxy.$onFileSystemChange(n,r)});return(0,i.toDisposable)(()=>{c.dispose(),this._usedSchemes.delete(e),this._fsProvider.delete(n),this._proxy.$unregisterProvider(n)})}static _asIStat(e){const{type:t,ctime:r,mtime:n,size:i,permissions:o}=e;return{type:t,ctime:r,mtime:n,size:i,permissions:o}}$stat(e,t){return Promise.resolve(this._getFsProvider(e).stat(i.URI.revive(t))).then(l._asIStat)}$readdir(e,t){return Promise.resolve(this._getFsProvider(e).readDirectory(i.URI.revive(t)))}$readFile(e,t){return Promise.resolve(this._getFsProvider(e).readFile(i.URI.revive(t))).then(e=>e)}$writeFile(e,t,r,n){return Promise.resolve(this._getFsProvider(e).writeFile(i.URI.revive(t),r,n))}$delete(e,t,r){return Promise.resolve(this._getFsProvider(e).delete(i.URI.revive(t),r))}$rename(e,t,r,n){return Promise.resolve(this._getFsProvider(e).rename(i.URI.revive(t),i.URI.revive(r),n))}$copy(e,t,r,n){const o=this._getFsProvider(e);if(!o.copy)throw new Error('FileSystemProvider does not implement "copy"');return Promise.resolve(o.copy(i.URI.revive(t),i.URI.revive(r),n))}$mkdir(e,t){return Promise.resolve(this._getFsProvider(e).createDirectory(i.URI.revive(t)))}$watch(e,t,r,n){const o=this._getFsProvider(e).watch(i.URI.revive(r),n);this._watches.set(t,o)}$unwatch(e,t){const r=this._watches.get(t);r&&(r.dispose(),this._watches.delete(t))}_getFsProvider(e){const t=this._fsProvider.get(e);if(!t){const e=new Error;throw e.name="ENOPRO",e.message="no provider",e}return t}}t.ExtHostFileSystem=l}).call(this,r(12).Buffer)},function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.FileSystemError=t.markAsFileSystemProviderError=t.FileSystemProviderErrorCode=t.FilePermission=t.FileType=t.FileChangeType=void 0;const i=r(1),o=r(0);var s;function a(e,t){return e.name=t?t+" (FileSystemError)":"FileSystemError",e}!function(e){e[e.Changed=1]="Changed",e[e.Created=2]="Created",e[e.Deleted=3]="Deleted"}(t.FileChangeType||(t.FileChangeType={})),function(e){e[e.Unknown=0]="Unknown",e[e.File=1]="File",e[e.Directory=2]="Directory",e[e.SymbolicLink=64]="SymbolicLink"}(t.FileType||(t.FileType={})),function(e){e[e.Readonly=1]="Readonly"}(t.FilePermission||(t.FilePermission={})),function(e){e.FileExists="EntryExists",e.FileNotFound="EntryNotFound",e.FileNotADirectory="EntryNotADirectory",e.FileIsADirectory="EntryIsADirectory",e.NoPermissions="NoPermissions",e.Unavailable="Unavailable",e.Unknown="Unknown"}(s=t.FileSystemProviderErrorCode||(t.FileSystemProviderErrorCode={})),t.markAsFileSystemProviderError=a;let c=n=class extends Error{static FileExists(e){return new n(e,s.FileExists,n.FileExists)}static FileNotFound(e){return new n(e,s.FileNotFound,n.FileNotFound)}static FileNotADirectory(e){return new n(e,s.FileNotADirectory,n.FileNotADirectory)}static FileIsADirectory(e){return new n(e,s.FileIsADirectory,n.FileIsADirectory)}static NoPermissions(e){return new n(e,s.NoPermissions,n.NoPermissions)}static Unavailable(e){return new n(e,s.Unavailable,n.Unavailable)}constructor(e,t=s.Unknown,r){var i;super(o.Uri.isUri(e)?e.toString(!0):e),this.code=null!==(i=null==r?void 0:r.name)&&void 0!==i?i:"Unknown",a(this,t),"function"==typeof Object.setPrototypeOf&&Object.setPrototypeOf(this,n.prototype),"function"==typeof Error.captureStackTrace&&"function"==typeof r&&Error.captureStackTrace(this,r)}};c=n=i.__decorate([o.es5ClassCompat,i.__metadata("design:paramtypes",[Object,String,Function])],c),t.FileSystemError=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtHostFileSystemEvent=void 0;const n=r(1),i=r(0),o=r(7),s=n.__importStar(r(5)),a=r(4);class c{get ignoreCreateEvents(){return Boolean(1&this._config)}get ignoreChangeEvents(){return Boolean(2&this._config)}get ignoreDeleteEvents(){return Boolean(4&this._config)}constructor(e,t,r,n,o){this._onDidCreate=new i.Emitter,this._onDidChange=new i.Emitter,this._onDidDelete=new i.Emitter,this._config=0,r&&(this._config+=1),n&&(this._config+=2),o&&(this._config+=4);const s=(0,i.parseGlob)(t),a=e(e=>{if(!r)for(const t of e.created){const e=i.URI.revive(t);s(e.fsPath)&&this._onDidCreate.fire(e)}if(!n)for(const t of e.changed){const e=i.URI.revive(t);s(e.fsPath)&&this._onDidChange.fire(e)}if(!o)for(const t of e.deleted){const e=i.URI.revive(t);s(e.fsPath)&&this._onDidDelete.fire(e)}});this._disposable=new i.Disposable(this._onDidCreate,this._onDidChange,this._onDidDelete,a)}dispose(){this._disposable.dispose()}get onDidCreate(){return this._onDidCreate.event}get onDidChange(){return this._onDidChange.event}get onDidDelete(){return this._onDidDelete.event}}t.ExtHostFileSystemEvent=class{constructor(e,t){this.rpcProtocol=e,this._extHostDocumentsAndEditors=t,this._onFileSystemEvent=new i.Emitter,this._onDidRenameFile=new i.Emitter,this._onDidCreateFile=new i.Emitter,this._onDidDeleteFile=new i.Emitter,this._onWillRenameFile=new i.AsyncEmitter,this._onWillCreateFile=new i.AsyncEmitter,this._onWillDeleteFile=new i.AsyncEmitter,this.onDidRenameFile=this._onDidRenameFile.event,this.onDidCreateFile=this._onDidCreateFile.event,this.onDidDeleteFile=this._onDidDeleteFile.event,this.logger=(0,i.getDebugLogger)(),this._proxy=this.rpcProtocol.getProxy(o.MainThreadAPIIdentifier.MainThreadWorkspace)}createFileSystemWatcher(e,t,r,n){return new c(this._onFileSystemEvent.event,e,t,r,n)}$onFileEvent(e){this._onFileSystemEvent.fire(e)}$onDidRunFileOperation(e,t){switch(e){case 2:this._onDidRenameFile.fire(Object.freeze({files:t.map(e=>({oldUri:i.URI.revive(e.source),newUri:i.URI.revive(e.target)}))}));break;case 1:this._onDidDeleteFile.fire(Object.freeze({files:t.map(e=>i.URI.revive(e.target))}));break;case 0:this._onDidCreateFile.fire(Object.freeze({files:t.map(e=>i.URI.revive(e.target))}))}}getOnWillRenameFileEvent(e){return this._createWillExecuteEvent(e,this._onWillRenameFile)}getOnWillCreateFileEvent(e){return this._createWillExecuteEvent(e,this._onWillCreateFile)}getOnWillDeleteFileEvent(e){return this._createWillExecuteEvent(e,this._onWillDeleteFile)}_createWillExecuteEvent(e,t){return(r,n,i)=>{const o=function(e){r.call(n,e)};return o.extension=e,t.event(o,void 0,i)}}async $onWillRunFileOperation(e,t,r,n){switch(e){case 2:return await this._fireWillEvent(this._onWillRenameFile,{files:t.map(e=>({oldUri:i.URI.revive(e.source),newUri:i.URI.revive(e.target)})),token:n},r,n);case 1:return await this._fireWillEvent(this._onWillDeleteFile,{files:t.map(e=>i.URI.revive(e.target)),token:n},r,n);case 0:return await this._fireWillEvent(this._onWillCreateFile,{files:t.map(e=>i.URI.revive(e.target)),token:n},r,n);default:return}}async _fireWillEvent(e,t,r,n){const i=new Set,o=[];if(await e.fireAsync(t,n,async(e,t)=>{var n,s;const c=Date.now(),l=await Promise.resolve(e);l instanceof a.WorkspaceEdit&&(o.push(l),i.add(null!==(n=t.extension.displayName)&&void 0!==n?n:t.extension.identifier.value)),Date.now()-c>r&&this.logger.log("SLOW file-participant",null===(s=t.extension)||void 0===s?void 0:s.id)}),!n.isCancellationRequested&&0!==o.length&&o.length>0){const e={edits:[]};for(const t of o){const{edits:r}=s.WorkspaceEdit.from(t,this._extHostDocumentsAndEditors);e.edits=e.edits.concat(r)}return{edit:e,extensionNames:Array.from(i)}}}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtHostFileSystemInfo=void 0;const n=r(0);t.ExtHostFileSystemInfo=class{constructor(){this._systemSchemes=new Set(Object.keys(n.Schemes)),this._providerInfo=new Map}$acceptProviderInfos(e,t){null===t?this._providerInfo.delete(e):this._providerInfo.set(e,t)}isFreeScheme(e){return!this._providerInfo.has(e)&&!this._systemSchemes.has(e)}getCapabilities(e){return this._providerInfo.get(e)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtHostLanguages=t.createLanguagesApiFactory=void 0;const n=r(1),i=r(0),o=r(7),s=n.__importStar(r(5)),a=r(4),c=r(27),l=r(655),u=r(656),d=r(657),h=r(658),f=r(659),p=r(660),g=r(661),m=r(662),b=r(663),v=r(664),y=r(665),_=r(666),w=r(667),C=r(668),k=r(669),E=r(670),S=r(671),D=r(672),x=r(673),T=r(674),A=r(675),I=r(676),O=r(677),R=r(678),M=r(679),B=r(681),P=r(682),F=r(683),L=r(23),N=r(684);t.createLanguagesApiFactory=function(e,t){return{getLanguages:()=>e.getLanguages(),registerHoverProvider:(r,n)=>e.registerHoverProvider(r,n,t),registerCompletionItemProvider:(r,n,...i)=>e.registerCompletionItemProvider(r,n,i,t),registerInlineCompletionItemProvider:(r,n)=>e.registerInlineCompletionsProvider(r,n,t),registerDefinitionProvider:(r,n)=>e.registerDefinitionProvider(r,n,t),registerTypeDefinitionProvider:(r,n)=>e.registerTypeDefinitionProvider(r,n,t),registerFoldingRangeProvider:(r,n)=>e.registerFoldingRangeProvider(r,n,t),registerColorProvider:(r,n)=>e.registerColorProvider(r,n,t),registerDocumentHighlightProvider:(r,n)=>e.registerDocumentHighlightProvider(r,n,t),registerDocumentLinkProvider:(r,n)=>e.registerDocumentLinkProvider(r,n,t),registerReferenceProvider:(r,n)=>e.registerReferenceProvider(r,n,t),match:(e,t)=>(0,L.score)(s.fromLanguageSelector(e),t.uri,t.languageId,!0),setLanguageConfiguration:(t,r)=>e.setLanguageConfiguration(t,r),setTextDocumentLanguage:(t,r)=>e.changeLanguage(t.uri,r),createDiagnosticCollection:t=>e.createDiagnosticCollection(t),get onDidChangeDiagnostics(){return e.onDidChangeDiagnostics},getDiagnostics:t=>e.getDiagnostics(t),registerWorkspaceSymbolProvider:r=>e.registerWorkspaceSymbolProvider(r,t),registerDocumentSymbolProvider:(r,n)=>e.registerDocumentSymbolProvider(r,n,t),registerImplementationProvider:(r,n)=>e.registerImplementationProvider(r,n,t),registerDeclarationProvider:(r,n)=>e.registerDeclarationProvider(r,n,t),registerCodeActionsProvider:(r,n,i)=>e.registerCodeActionsProvider(t,r,n,i),registerRenameProvider:(r,n)=>e.registerRenameProvider(r,n,t),registerSignatureHelpProvider:(r,n,i,...o)=>"object"==typeof i?e.registerSignatureHelpProvider(r,n,i,t):e.registerSignatureHelpProvider(r,n,void 0===i?[]:[i,...o],t),registerCodeLensProvider:(r,n)=>e.registerCodeLensProvider(r,n,t),registerOnTypeFormattingEditProvider:(r,n,i,...o)=>e.registerOnTypeFormattingEditProvider(r,n,[i].concat(o),t),registerDocumentRangeFormattingEditProvider:(r,n)=>e.registerDocumentRangeFormattingEditProvider(t,r,n),registerDocumentFormattingEditProvider:(r,n)=>e.registerDocumentFormattingEditProvider(t,r,n),registerSelectionRangeProvider:(r,n)=>e.registerSelectionRangeProvider(r,n,t),registerCallHierarchyProvider:(r,n)=>e.registerCallHierarchyProvider(r,n,t),registerTypeHierarchyProvider:(r,n)=>e.registerTypeHierarchyProvider(r,n,t),registerDocumentSemanticTokensProvider:(r,n,i)=>e.registerDocumentSemanticTokensProvider(r,n,i,t),registerDocumentRangeSemanticTokensProvider:(r,n,i)=>e.registerDocumentRangeSemanticTokensProvider(t,r,n,i),registerEvaluatableExpressionProvider:(r,n)=>e.registerEvaluatableExpressionProvider(t,r,n),registerInlineValuesProvider:(r,n)=>e.registerInlineValuesProvider(t,r,n),registerLinkedEditingRangeProvider:(r,n)=>e.registerLinkedEditingRangeProvider(t,r,n),registerInlayHintsProvider:(r,n)=>e.registerInlayHintsProvider(t,r,n),createLanguageStatusItem:(r,n)=>e.createLanguageStatusItem(t,r,n)}};class j{constructor(e,t,r,n){this.documents=t,this.commands=r,this.logService=n,this.callId=0,this._adapter=new Map,this._handlePool=0,this._ids=new Set,this.rpcProtocol=e,this.proxy=this.rpcProtocol.getProxy(o.MainThreadAPIIdentifier.MainThreadLanguages),this.diagnostics=new g.Diagnostics(this.proxy)}$resolveCodeAction(e,t,r){return this.withAdapter(e,u.CodeActionAdapter,e=>e.resolveCodeAction(t,r),!1,void 0)}$releaseCodeActions(e,t){this.withAdapter(e,u.CodeActionAdapter,e=>Promise.resolve(e.releaseCodeActions(t)),!1,void 0)}nextCallId(){return this.callId++}createDisposable(e){return new a.Disposable(()=>{this._adapter.delete(e),this.proxy.$unregister(e)})}addNewAdapter(e,t){const r=this.nextCallId();return this._adapter.set(r,{adapter:e,extension:t}),r}static _extLabel(e){return e.displayName||e.name}withAdapter(e,t,r,n=!1,i){const o=this._adapter.get(e);if(!(o&&o.adapter&&o.adapter instanceof t))return Promise.resolve(i);const s=r(o.adapter,o.extension);return s.catch(e=>{n&&e instanceof a.CancellationError||this.logService.error(e)}),s}withDurationRecord(e){const t=(0,L.getDurationTimer)();return e().then(e=>({_dur:t.end(),result:e}))}transformDocumentSelector(e){return Array.isArray(e)?e.map(e=>this.doTransformDocumentSelector(e)):[this.doTransformDocumentSelector(e)]}doTransformDocumentSelector(e){return"string"==typeof e?{$serialized:!0,language:e}:e?{$serialized:!0,language:e.language,scheme:e.scheme,pattern:e.pattern}:void 0}async getLanguages(){return this.proxy.$getLanguages()}async changeLanguage(e,t){await this.proxy.$changeLanguage(e,t);const r=this.documents.getDocumentData(e);if(!r)throw new Error(`document '${e.toString()}' NOT found`);return r.document}registerHoverProvider(e,t,r){const n=this.addNewAdapter(new y.HoverAdapter(t,this.documents),r);return this.proxy.$registerHoverProvider(n,this.transformDocumentSelector(e)),this.createDisposable(n)}$provideHover(e,t,r,n){return this.withAdapter(e,y.HoverAdapter,e=>e.provideHover(t,r,n),!1,void 0)}$provideHoverWithDuration(e,t,r,n){return this.withDurationRecord(()=>this.$provideHover(e,t,r,n))}$provideCompletionItems(e,t,r,n,i){return this.withAdapter(e,h.CompletionAdapter,e=>e.provideCompletionItems(t,r,n,i),!1,void 0)}$resolveCompletionItem(e,t,r){return this.withAdapter(e,h.CompletionAdapter,e=>e.resolveCompletionItem(t,r),!1,void 0)}$releaseCompletionItems(e,t){this.withAdapter(e,h.CompletionAdapter,e=>e.releaseCompletionItems(t),!1,void 0)}registerCompletionItemProvider(e,t,r,n){const i=this.addNewAdapter(new h.CompletionAdapter(t,this.commands.converter,this.documents),n);return this.proxy.$registerCompletionSupport(i,this.transformDocumentSelector(e),r,h.CompletionAdapter.hasResolveSupport(t)),this.createDisposable(i)}registerInlineCompletionsProvider(e,t,r){const n=this.addNewAdapter(new k.InlineCompletionAdapter(this.documents,t,this.commands.converter),r);return this.proxy.$registerInlineCompletionsSupport(n,this.transformDocumentSelector(e),!0),this.createDisposable(n)}$provideInlineCompletions(e,t,r,n,o){return this.withAdapter(e,k.InlineCompletionAdapterBase,e=>e.provideInlineCompletions(i.Uri.revive(t),r,n,o),void 0,void 0)}$handleInlineCompletionDidShow(e,t,r){this.withAdapter(e,k.InlineCompletionAdapterBase,async e=>{e.handleDidShowCompletionItem(t,r)},void 0,void 0)}$freeInlineCompletionsList(e,t){this.withAdapter(e,k.InlineCompletionAdapterBase,async e=>{e.disposeCompletions(t)},void 0,void 0)}$provideDefinition(e,t,r,n){return this.withAdapter(e,p.DefinitionAdapter,e=>e.provideDefinition(t,r,n),!1,void 0)}$provideDefinitionWithDuration(e,t,r,n){return this.withDurationRecord(()=>this.$provideDefinition(e,t,r,n))}registerDefinitionProvider(e,t,r){const n=this.addNewAdapter(new p.DefinitionAdapter(t,this.documents),r);return this.proxy.$registerDefinitionProvider(n,this.transformDocumentSelector(e)),this.createDisposable(n)}$provideTypeDefinition(e,t,r,n){return this.withAdapter(e,P.TypeDefinitionAdapter,e=>e.provideTypeDefinition(t,r,n),!1,void 0)}$provideTypeDefinitionWithDuration(e,t,r,n){return this.withDurationRecord(()=>this.$provideTypeDefinition(e,t,r,n))}registerTypeDefinitionProvider(e,t,r){const n=this.addNewAdapter(new P.TypeDefinitionAdapter(t,this.documents),r);return this.proxy.$registerTypeDefinitionProvider(n,this.transformDocumentSelector(e)),this.createDisposable(n)}registerFoldingRangeProvider(e,t,r){const n=this.addNewAdapter(new v.FoldingProviderAdapter(this.documents,t),r),i="function"==typeof t.onDidChangeFoldingRanges?this.nextCallId():void 0;this.proxy.$registerFoldingRangeProvider(n,this.transformDocumentSelector(e),i);let o=this.createDisposable(n);if(void 0!==i){const e=t.onDidChangeFoldingRanges(()=>this.proxy.$emitFoldingRangeEvent(i));o=a.Disposable.from(o,e)}return o}$provideFoldingRange(e,t,r,n){return this.withAdapter(e,v.FoldingProviderAdapter,e=>e.provideFoldingRanges(t,r,n),!1,void 0)}registerColorProvider(e,t,r){const n=this.addNewAdapter(new d.ColorProviderAdapter(this.documents,t),r);return this.proxy.$registerDocumentColorProvider(n,this.transformDocumentSelector(e)),this.createDisposable(n)}$provideDocumentColors(e,t,r){return this.withAdapter(e,d.ColorProviderAdapter,e=>e.provideColors(t,r),!1,[])}$provideColorPresentations(e,t,r,n){return this.withAdapter(e,d.ColorProviderAdapter,e=>e.provideColorPresentations(t,r,n),!1,[])}registerDocumentHighlightProvider(e,t,r){const n=this.addNewAdapter(new m.DocumentHighlightAdapter(t,this.documents),r);return this.proxy.$registerDocumentHighlightProvider(n,this.transformDocumentSelector(e)),this.createDisposable(n)}$provideDocumentHighlights(e,t,r,n){return this.withAdapter(e,m.DocumentHighlightAdapter,e=>e.provideDocumentHighlights(t,r,n),!1,void 0)}registerDocumentFormattingEditProvider(e,t,r){const n=this.addNewAdapter(new A.FormattingAdapter(r,this.documents),e);return this.proxy.$registerDocumentFormattingProvider(n,e,this.transformDocumentSelector(t)),this.createDisposable(n)}$provideDocumentFormattingEdits(e,t,r){return this.withAdapter(e,A.FormattingAdapter,e=>e.provideDocumentFormattingEdits(t,r),!1,void 0)}registerDocumentRangeFormattingEditProvider(e,t,r){const n=this.addNewAdapter(new A.RangeFormattingAdapter(r,this.documents),e);return this.proxy.$registerRangeFormattingProvider(n,e,this.transformDocumentSelector(t)),this.createDisposable(n)}$provideDocumentRangeFormattingEdits(e,t,r,n){return this.withAdapter(e,A.RangeFormattingAdapter,e=>e.provideDocumentRangeFormattingEdits(t,r,n),!1,void 0)}registerOnTypeFormattingEditProvider(e,t,r,n){const i=this.addNewAdapter(new x.OnTypeFormattingAdapter(t,this.documents),n);return this.proxy.$registerOnTypeFormattingProvider(i,this.transformDocumentSelector(e),r),this.createDisposable(i)}$provideOnTypeFormattingEdits(e,t,r,n,i){return this.withAdapter(e,x.OnTypeFormattingAdapter,e=>e.provideOnTypeFormattingEdits(t,r,n,i),!1,void 0)}$provideOnTypeFormattingEditsWithDuration(e,t,r,n,i){return this.withDurationRecord(()=>this.$provideOnTypeFormattingEdits(e,t,r,n,i))}registerCodeLensProvider(e,t,r){const n=this.addNewAdapter(new E.CodeLensAdapter(t,this.documents,this.commands.converter),r),i="function"==typeof t.onDidChangeCodeLenses?this.nextCallId():void 0;this.proxy.$registerCodeLensSupport(n,this.transformDocumentSelector(e),i);let o=this.createDisposable(n);if(void 0!==i&&t.onDidChangeCodeLenses){const e=t.onDidChangeCodeLenses(e=>this.proxy.$emitCodeLensEvent(i));o=a.Disposable.from(o,e)}return o}$provideCodeLenses(e,t,r){return this.withAdapter(e,E.CodeLensAdapter,e=>e.provideCodeLenses(t,r),!1,void 0)}$resolveCodeLens(e,t,r){return this.withAdapter(e,E.CodeLensAdapter,e=>e.resolveCodeLens(t,r),!1,void 0)}$releaseCodeLens(e,t){return this.withAdapter(e,E.CodeLensAdapter,e=>Promise.resolve(e.releaseCodeLens(t)),!1,void 0)}registerCodeActionsProvider(e,t,r,n){var o,s;const a=new i.DisposableStore,c=this.addNewAdapter(new u.CodeActionAdapter(r,this.documents,this.diagnostics),e);return this.proxy.$registerQuickFixProvider(c,this.transformDocumentSelector(t),{providedKinds:null===(o=null==n?void 0:n.providedCodeActionKinds)||void 0===o?void 0:o.map(e=>e.value),documentation:null===(s=null==n?void 0:n.documentation)||void 0===s?void 0:s.map(e=>({kind:e.kind.value,command:this.commands.converter.toInternal(e.command,a)}))},e.displayName||e.name,Boolean(r.resolveCodeAction)),this.createDisposable(c)}$provideCodeActions(e,t,r,n,i){return this.withAdapter(e,u.CodeActionAdapter,e=>e.provideCodeAction(t,r,n,this.commands.converter,i),!1,void 0)}$provideImplementation(e,t,r){return this.withAdapter(e,_.ImplementationAdapter,e=>e.provideImplementation(t,r),!1,void 0)}$provideImplementationWithDuration(e,t,r){return this.withDurationRecord(()=>this.$provideImplementation(e,t,r))}registerImplementationProvider(e,t,r){const n=this.addNewAdapter(new _.ImplementationAdapter(t,this.documents),r);return this.proxy.$registerImplementationProvider(n,this.transformDocumentSelector(e)),this.createDisposable(n)}registerDeclarationProvider(e,t,r){const n=this.addNewAdapter(new f.DeclarationAdapter(t,this.documents),r);return this.proxy.$registerDeclarationProvider(n,this.transformDocumentSelector(e)),this.createDisposable(n)}get onDidChangeDiagnostics(){return this.diagnostics.onDidChangeDiagnostics}getDiagnostics(e){return this.diagnostics.getDiagnostics(e)}createDiagnosticCollection(e){return this.diagnostics.createDiagnosticCollection(e)}$provideDocumentLinks(e,t,r){return this.withAdapter(e,S.LinkProviderAdapter,e=>e.provideLinks(t,r),!1,void 0)}$resolveDocumentLink(e,t,r){return this.withAdapter(e,S.LinkProviderAdapter,e=>e.resolveLink(t,r),!1,void 0)}$releaseDocumentLinks(e,t){return this.withAdapter(e,S.LinkProviderAdapter,e=>Promise.resolve(e.releaseLink(t)),!1,void 0)}registerDocumentLinkProvider(e,t,r){const n=this.addNewAdapter(new S.LinkProviderAdapter(t,this.documents),r);return this.proxy.$registerDocumentLinkProvider(n,this.transformDocumentSelector(e),"function"==typeof t.resolveDocumentLink),this.createDisposable(n)}$provideReferences(e,t,r,n,i){return this.withAdapter(e,I.ReferenceAdapter,e=>e.provideReferences(t,r,n,i),!1,void 0)}$provideReferencesWithDuration(e,t,r,n,i){return this.withDurationRecord(()=>this.$provideReferences(e,t,r,n,i))}registerReferenceProvider(e,t,r){const n=this.addNewAdapter(new I.ReferenceAdapter(t,this.documents),r);return this.proxy.$registerReferenceProvider(n,this.transformDocumentSelector(e)),this.createDisposable(n)}setLanguageConfiguration(e,t){const{wordPattern:r}=t;r?this.documents.setWordDefinitionFor(e,r):this.documents.setWordDefinitionFor(e,void 0);const n=this.nextCallId(),i={brackets:t.brackets,comments:t.comments,onEnterRules:(0,c.serializeEnterRules)(t.onEnterRules),wordPattern:(0,c.serializeRegExp)(t.wordPattern),indentationRules:(0,c.serializeIndentation)(t.indentationRules)};return this.proxy.$setLanguageConfiguration(n,e,i),this.createDisposable(n)}registerDocumentSymbolProvider(e,t,r){const n=this.addNewAdapter(new T.OutlineAdapter(this.documents,t),r);return this.proxy.$registerOutlineSupport(n,this.transformDocumentSelector(e)),this.createDisposable(n)}$provideDocumentSymbols(e,t,r){return this.withAdapter(e,T.OutlineAdapter,e=>e.provideDocumentSymbols(t,r),!1,void 0)}registerWorkspaceSymbolProvider(e,t){const r=this.addNewAdapter(new N.WorkspaceSymbolAdapter(e),t);return this.proxy.$registerWorkspaceSymbolProvider(r),this.createDisposable(r)}$provideWorkspaceSymbols(e,t,r){return this.withAdapter(e,N.WorkspaceSymbolAdapter,e=>e.provideWorkspaceSymbols(t,r),!1,[])}$resolveWorkspaceSymbol(e,t,r){return this.withAdapter(e,N.WorkspaceSymbolAdapter,e=>e.resolveWorkspaceSymbol(t,r),!1,void 0)}$provideSignatureHelp(e,t,r,n,i){return this.withAdapter(e,B.SignatureHelpAdapter,e=>e.provideSignatureHelp(t,r,i,n),!1,void 0)}$releaseSignatureHelp(e,t){return this.withAdapter(e,B.SignatureHelpAdapter,e=>Promise.resolve(e.releaseSignatureHelp(t)),!1,void 0)}registerSignatureHelpProvider(e,t,r,n){const i=Array.isArray(r)?{triggerCharacters:r,retriggerCharacters:[]}:r,o=this.addNewAdapter(new B.SignatureHelpAdapter(t,this.documents),n);return this.proxy.$registerSignatureHelpProvider(o,this.transformDocumentSelector(e),i),this.createDisposable(o)}registerRenameProvider(e,t,r){const n=this.addNewAdapter(new O.RenameAdapter(t,this.documents),r);return this.proxy.$registerRenameProvider(n,this.transformDocumentSelector(e),O.RenameAdapter.supportsResolving(t)),this.createDisposable(n)}$provideRenameEdits(e,t,r,n,i){return this.withAdapter(e,O.RenameAdapter,e=>e.provideRenameEdits(t,r,n,i),!1,void 0)}$resolveRenameLocation(e,t,r,n){return this.withAdapter(e,O.RenameAdapter,e=>e.resolveRenameLocation(t,r,n),!1,void 0)}registerSelectionRangeProvider(e,t,r){const n=this.addNewAdapter(new R.SelectionRangeAdapter(this.documents,t),r);return this.proxy.$registerSelectionRangeProvider(n,this.transformDocumentSelector(e)),this.createDisposable(n)}$provideSelectionRanges(e,t,r,n){return this.withAdapter(e,R.SelectionRangeAdapter,e=>e.provideSelectionRanges(t,r,n),!1,[])}registerCallHierarchyProvider(e,t,r){const n=this.addNewAdapter(new l.CallHierarchyAdapter(this.documents,t),r);return this.proxy.$registerCallHierarchyProvider(n,this.transformDocumentSelector(e)),this.createDisposable(n)}$prepareCallHierarchy(e,t,r,n){return this.withAdapter(e,l.CallHierarchyAdapter,e=>Promise.resolve(e.prepareSession(i.Uri.revive(t),r,n)),!1,void 0)}$provideCallHierarchyIncomingCalls(e,t,r,n){return this.withAdapter(e,l.CallHierarchyAdapter,e=>e.provideCallsTo(t,r,n),!1,void 0)}$provideCallHierarchyOutgoingCalls(e,t,r,n){return this.withAdapter(e,l.CallHierarchyAdapter,e=>e.provideCallsFrom(t,r,n),!1,void 0)}$releaseCallHierarchy(e,t){this.withAdapter(e,l.CallHierarchyAdapter,e=>Promise.resolve(e.releaseSession(t)),!1,void 0)}registerTypeHierarchyProvider(e,t,r){const n=this.addNewAdapter(new F.TypeHierarchyAdapter(this.documents,t),r);return this.proxy.$registerTypeHierarchyProvider(n,this.transformDocumentSelector(e)),this.createDisposable(n)}$prepareTypeHierarchy(e,t,r,n){return this.withAdapter(e,F.TypeHierarchyAdapter,e=>Promise.resolve(e.prepareSession(i.Uri.revive(t),r,n)),!1,void 0)}$provideTypeHierarchySupertypes(e,t,r,n){return this.withAdapter(e,F.TypeHierarchyAdapter,e=>e.provideSupertypes(t,r,n),!1,void 0)}$provideTypeHierarchySubtypes(e,t,r,n){return this.withAdapter(e,F.TypeHierarchyAdapter,e=>e.provideSubtypes(t,r,n),!1,void 0)}$releaseTypeHierarchy(e,t){this.withAdapter(e,F.TypeHierarchyAdapter,e=>Promise.resolve(e.releaseSession(t)),!1,void 0)}registerDocumentSemanticTokensProvider(e,t,r,n){const i=this.addNewAdapter(new M.DocumentSemanticTokensAdapter(this.documents,t),n);return this.proxy.$registerDocumentSemanticTokensProvider(i,this.transformDocumentSelector(e),r),this.createDisposable(i)}$provideDocumentSemanticTokens(e,t,r,n){return this.withAdapter(e,M.DocumentSemanticTokensAdapter,e=>e.provideDocumentSemanticTokens(i.Uri.revive(t),r,n),!0,null)}$releaseDocumentSemanticTokens(e,t){this.withAdapter(e,M.DocumentSemanticTokensAdapter,e=>e.releaseDocumentSemanticColoring(t),!1,void 0)}registerDocumentRangeSemanticTokensProvider(e,t,r,n){const i=this.addNewAdapter(new M.DocumentRangeSemanticTokensAdapter(this.documents,r),e);return this.proxy.$registerDocumentRangeSemanticTokensProvider(i,this.transformDocumentSelector(t),n),this.createDisposable(i)}$provideDocumentRangeSemanticTokens(e,t,r,n){return this.withAdapter(e,M.DocumentRangeSemanticTokensAdapter,e=>e.provideDocumentRangeSemanticTokens(i.Uri.revive(t),r,n),!1,null)}registerEvaluatableExpressionProvider(e,t,r){const n=this.addNewAdapter(new b.EvaluatableExpressionAdapter(this.documents,r),e);return this.proxy.$registerEvaluatableExpressionProvider(n,this.transformDocumentSelector(t)),this.createDisposable(n)}$provideEvaluatableExpression(e,t,r,n){return this.withAdapter(e,b.EvaluatableExpressionAdapter,e=>e.provideEvaluatableExpression(i.Uri.revive(t),r,n),!1,void 0)}registerInlineValuesProvider(e,t,r){const n="function"==typeof r.onDidChangeInlineValues?this.nextCallId():void 0,i=this.addNewAdapter(new C.InlineValuesAdapter(this.documents,r),e);this.proxy.$registerInlineValuesProvider(i,this.transformDocumentSelector(t),n);let o=this.createDisposable(i);if(void 0!==n){const e=r.onDidChangeInlineValues(e=>this.proxy.$emitInlineValuesEvent(n));o=a.Disposable.from(o,e)}return o}$provideInlineValues(e,t,r,n,o){return this.withAdapter(e,C.InlineValuesAdapter,e=>e.provideInlineValues(i.Uri.revive(t),r,n,o),!1,void 0)}registerLinkedEditingRangeProvider(e,t,r){const n=this.addNewAdapter(new D.LinkedEditingRangeAdapter(this.documents,r),e);return this.proxy.$registerLinkedEditingRangeProvider(n,this.transformDocumentSelector(t)),this.createDisposable(n)}$provideLinkedEditingRanges(e,t,r,n){return this.withAdapter(e,D.LinkedEditingRangeAdapter,async e=>{const o=await e.provideLinkedEditingRanges(i.Uri.revive(t),r,n);if(o)return{ranges:o.ranges,wordPattern:o.wordPattern?(0,c.serializeRegExp)(o.wordPattern):void 0}},!1,void 0)}registerInlayHintsProvider(e,t,r){const n="function"==typeof r.onDidChangeInlayHints?this.nextCallId():void 0,i=this.addNewAdapter(new w.InlayHintsAdapter(this.documents,r,this.commands.converter),e);this.proxy.$registerInlayHintsProvider(i,this.transformDocumentSelector(t),"function"==typeof r.resolveInlayHint,n,j._extLabel(e));let o=this.createDisposable(i);if(void 0!==n){const e=r.onDidChangeInlayHints(()=>this.proxy.$emitInlayHintsEvent(n));o=a.Disposable.from(o,e)}return o}$provideInlayHints(e,t,r,n){return this.withAdapter(e,w.InlayHintsAdapter,e=>e.provideInlayHints(i.Uri.revive(t),r,n),!1,void 0)}$resolveInlayHint(e,t,r){return this.withAdapter(e,w.InlayHintsAdapter,e=>e.resolveInlayHint(t,r),!0,void 0)}$releaseInlayHints(e,t){this.withAdapter(e,w.InlayHintsAdapter,e=>e.releaseHints(t),!1,void 0)}createLanguageStatusItem(e,t,r){var n;const o=this._handlePool++,c=this.proxy,l=this._ids,u=`${e.identifier.value}/${t}`;if(l.has(u))throw new Error(`LanguageStatusItem with id '${t}' ALREADY exists`);l.add(u);const d={selector:r,id:t,name:null!==(n=e.displayName)&&void 0!==n?n:e.name,severity:a.LanguageStatusSeverity.Information,command:void 0,text:"",detail:"",busy:!1};let h;const f=new i.DisposableStore,p=()=>{null==h||h.dispose(),h=(0,i.disposableTimeout)(()=>{var t,r,n,c;f.clear(),this.proxy.$setLanguageStatus(o,{id:u,name:null!==(r=null!==(t=d.name)&&void 0!==t?t:e.displayName)&&void 0!==r?r:e.name,source:null!==(n=e.displayName)&&void 0!==n?n:e.name,selector:s.DocumentSelector.from(d.selector),label:d.text,detail:null!==(c=d.detail)&&void 0!==c?c:"",severity:d.severity===a.LanguageStatusSeverity.Error?i.Severity.Error:d.severity===a.LanguageStatusSeverity.Warning?i.Severity.Warning:i.Severity.Info,command:d.command&&this.commands.converter.toInternal(d.command,f),accessibilityInfo:d.accessibilityInformation,busy:d.busy})},0)},g={dispose(){f.dispose(),null==h||h.dispose(),c.$removeLanguageStatus(o),l.delete(u)},get id(){return d.id},get name(){return d.name},set name(e){d.name=e,p()},get selector(){return d.selector},set selector(e){d.selector=e,p()},get text(){return d.text},set text(e){d.text=e,p()},get detail(){return d.detail},set detail(e){d.detail=e,p()},get severity(){return d.severity},set severity(e){d.severity=e,p()},get accessibilityInformation(){return d.accessibilityInformation},set accessibilityInformation(e){d.accessibilityInformation=e,p()},get command(){return d.command},set command(e){d.command=e,p()},get busy(){return d.busy},set busy(e){d.busy=e,p()}};return p(),g}}t.ExtHostLanguages=j},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CallHierarchyAdapter=void 0;const n=r(1),i=r(253),o=n.__importStar(r(5));t.CallHierarchyAdapter=class{constructor(e,t){this.documents=e,this.provider=t,this._idPool=new i.IdGenerator(""),this._cache=new Map}async prepareSession(e,t,r){const n=this.documents.getDocumentData(e);if(!n)return Promise.reject(new Error("There is no document for "+e));const i=n.document,s=o.toPosition(t),a=await this.provider.prepareCallHierarchy(i,s,r);if(!a)return;const c=this._idPool.nextId();return this._cache.set(c,new Map),Array.isArray(a)?a.map(e=>this._cacheAndConvertItem(c,e)):[this._cacheAndConvertItem(c,a)]}async provideCallsTo(e,t,r){const n=this._itemFromCache(e,t);if(!n)throw new Error("missing call hierarchy item");const i=await this.provider.provideCallHierarchyIncomingCalls(n,r);if(i)return i.map(t=>({from:this._cacheAndConvertItem(e,t.from),fromRanges:t.fromRanges.map(e=>o.fromRange(e))}))}async provideCallsFrom(e,t,r){const n=this._itemFromCache(e,t);if(!n)throw new Error("missing call hierarchy item");const i=await this.provider.provideCallHierarchyOutgoingCalls(n,r);if(i)return i.map(t=>({to:this._cacheAndConvertItem(e,t.to),fromRanges:t.fromRanges.map(e=>o.fromRange(e))}))}releaseSession(e){this._cache.delete(e)}_cacheAndConvertItem(e,t){var r;const n=this._cache.get(e),i={_sessionId:e,_itemId:n.size.toString(36),name:t.name,detail:t.detail,kind:o.SymbolKind.fromSymbolKind(t.kind),uri:t.uri,range:o.fromRange(t.range),selectionRange:o.fromRange(t.selectionRange),tags:null===(r=t.tags)||void 0===r?void 0:r.map(o.SymbolTag.from)};return n.set(i._itemId,t),i}_itemFromCache(e,t){const r=this._cache.get(e);return null==r?void 0:r.get(t)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeActionAdapter=void 0;const n=r(1),i=r(0),o=r(0),s=n.__importStar(r(5)),a=r(4);class c{constructor(e,t,r){this.provider=e,this.document=t,this.diagnostics=r,this._cache=new i.Cache("CodeAction"),this._disposables=new Map}async provideCodeAction(e,t,r,n,i){const l=this.document.getDocumentData(e);if(!l)return Promise.reject(new Error("There are no document for "+e));const u=l.document,d=c._isSelection(t)?s.Selection.to(t):s.Range.to(t),h=[];for(const t of this.diagnostics.getDiagnostics(e))if(d.intersection(t.range)){if(h.push(t)>c._maxCodeActionsPerFile)break}const f={diagnostics:h,only:r.only?new a.CodeActionKind(r.only):void 0,triggerKind:s.CodeActionTriggerKind.to(r.trigger)};let p;const g=await Promise.resolve(this.provider.provideCodeActions(u,d,f,i)).then(e=>{var t;if(!Array.isArray(e)||0===e.length)return;p=this._cache.add(e);const r=new o.DisposableStore;this._disposables.set(p,r);const i=[];for(let o=0;o<e.length;o++){const a=e[o];a&&(c._isCommand(a)?i.push({title:a.title||"",command:n.toInternal(a,r)}):(f.only&&(a.kind?f.only.contains(a.kind)||console.warn(`Code actions of kind '${f.only.value}' requested but returned code action is of kind '${a.kind.value}'. Code action will be dropped. Please check 'CodeActionContext.only' to only return requested code action.`):console.warn(`Code actions of kind '${f.only.value}' requested but returned code action does not have a 'kind'. Code action will be dropped. Please set 'CodeAction.kind'.`)),i.push({cacheId:[p,o],title:a.title,command:a.command&&n.toInternal(a.command,r),diagnostics:a.diagnostics&&a.diagnostics.map(s.Diagnostic.toMarker),edit:a.edit&&s.WorkspaceEdit.from(a.edit),kind:a.kind&&a.kind.value,isPreferred:a.isPreferred,disabled:null===(t=a.disabled)||void 0===t?void 0:t.reason})))}return i});return g?{actions:g,cacheId:p}:void 0}async resolveCodeAction(e,t){var r;const[n,i]=e,o=this._cache.get(n,i);if(!o||c._isCommand(o))return;if(!this.provider.resolveCodeAction)return;const a=null!==(r=await this.provider.resolveCodeAction(o,t))&&void 0!==r?r:o;return(null==a?void 0:a.edit)?s.WorkspaceEdit.from(a.edit):void 0}releaseCodeActions(e){var t;null===(t=this._disposables.get(e))||void 0===t||t.dispose(),this._disposables.delete(e),this._cache.delete(e)}static _isCommand(e){return"string"==typeof e.command}static _isSelection(e){return e&&"number"==typeof e.selectionStartLineNumber&&"number"==typeof e.selectionStartColumn&&"number"==typeof e.positionLineNumber&&"number"==typeof e.positionColumn}}t.CodeActionAdapter=c,c._maxCodeActionsPerFile=1e3},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorProviderAdapter=void 0;const n=r(1).__importStar(r(5));t.ColorProviderAdapter=class{constructor(e,t){this.documents=e,this.provider=t}provideColors(e,t){const r=this.documents.getDocumentData(e);if(!r)return Promise.reject(new Error("There are no document for "+e));const i=r.document;return Promise.resolve(this.provider.provideDocumentColors(i,t)).then(e=>{if(!Array.isArray(e))return[];return e.map(e=>({color:n.fromColor(e.color),range:n.fromRange(e.range)}))})}provideColorPresentations(e,t,r){const i=this.documents.getDocumentData(e);if(!i)return Promise.reject(new Error("There are no document for "+e));const o=i.document,s=n.toRange(t.range),a=n.toColor(t.color);return Promise.resolve(this.provider.provideColorPresentations(a,{document:o,range:s},r)).then(e=>Array.isArray(e)?e.map(n.fromColorPresentation):[])}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompletionAdapter=void 0;const n=r(1),i=r(0),o=r(0),s=r(7),a=n.__importStar(r(5)),c=r(4),l=r(126),u=r(23);class d{static supportsResolving(e){return"function"==typeof e.resolveCompletionItem}constructor(e,t,r){this.delegate=e,this.commandConverter=t,this.documents=r,this.cache=new i.Cache("CompletionItem"),this.toDispose=new Map}async provideCompletionItems(e,t,r,n){const{doc:i,pos:l,replacing:h,inserting:f}=await this.getInsertOrReplace(e,t),p=(0,u.getPerformance)(),g=p?p.now():0,m=await this.delegate.provideCompletionItems(i,l,n,r),b=p?Math.round(p.now()-g):0;if(!m)return;const v=!Array.isArray(m)&&m.isIncomplete,y=Array.isArray(m)?new c.CompletionList(m):m,_=d.supportsResolving(this.delegate)?this.cache.add(y.items.map(r=>({item:r,resource:e,position:t}))):this.cache.add([]),w=new o.DisposableStore;this.toDispose.set(_,w);const C=[],k={x:_,[s.ISuggestResultDtoField.completions]:C,[s.ISuggestResultDtoField.defaultRanges]:{replace:a.Range.from(h),insert:a.Range.from(f)},[s.ISuggestResultDtoField.isIncomplete]:v||void 0,[s.ISuggestResultDtoField.duration]:b};for(let e=0;e<y.items.length;e++){const t=y.items[e],r=this.convertCompletionItem(t,[_,e],f,h);C.push(r)}return k}async resolveCompletionItem(e,t){const r=this.cache.get(...e);if(!r)return;const{item:n,resource:i,position:o}=r;let s,a;if(i&&o){const e=await this.getInsertOrReplace(i,o);s=e.inserting,a=e.replacing}const c=this.convertCompletionItem(n,e,s,a);if("function"!=typeof this.delegate.resolveCompletionItem)return c;try{const r=await this.delegate.resolveCompletionItem(n,t);return r?this.convertCompletionItem(r,e):c}catch(e){new Error("Delegate.resolveCompletionItem error: "+e)}return c}async releaseCompletionItems(e){this.cache.delete(e);const t=this.toDispose.get(e);return t&&(t.dispose(),this.toDispose.delete(e)),Promise.resolve()}async getInsertOrReplace(e,t){const r=this.documents.getDocumentData(e);if(!r)return Promise.reject(new Error("There are no document for "+e));const n=r.document,i=a.toPosition(t),o=n.getWordRangeAtPosition(i)||new c.Range(i,i);return{inserting:o.with({end:i}),replacing:o,doc:n,pos:i}}convertRange(e,t,r){let n,i;return e.textEdit?n=e.textEdit.range:e.range&&(n=e.range),c.Range.isRange(n)?i=s.RangeSuggestDataDto.to(a.Range.from(n)):!n||(null==t?void 0:t.isEqual(n.inserting))&&(null==r?void 0:r.isEqual(n.replacing))||(i={insert:a.Range.from(n.inserting),replace:a.Range.from(n.replacing)}),i}convertCompletionLabel(e){let t=e.label;return e.description&&(t+="~|"+e.description),e.detail&&(t+="~|"+e.detail),t}convertCompletionItem(e,t,r,n){const i=this.toDispose.get(t[0]);if(!i)throw Error("DisposableStore is missing...");const o={x:t,[s.ISuggestDataDtoField.kind]:e.kind?a.CompletionItemKind.from(e.kind):void 0,[s.ISuggestDataDtoField.kindModifier]:e.tags&&e.tags.map(a.CompletionItemTag.from),[s.ISuggestDataDtoField.label]:"string"==typeof e.label?e.label:this.convertCompletionLabel(e.label),[s.ISuggestDataDtoField.detail]:e.detail,[s.ISuggestDataDtoField.documentation]:e.documentation,[s.ISuggestDataDtoField.filterText]:e.filterText,[s.ISuggestDataDtoField.sortText]:e.sortText,[s.ISuggestDataDtoField.preselect]:e.preselect?e.preselect:void 0,[s.ISuggestDataDtoField.insertText]:"",[s.ISuggestDataDtoField.additionalTextEdits]:e.additionalTextEdits&&e.additionalTextEdits.map(a.fromTextEdit),[s.ISuggestDataDtoField.command]:this.commandConverter.toInternal(e.command,i),[s.ISuggestDataDtoField.commitCharacters]:e.commitCharacters,[s.ISuggestDataDtoField.insertTextRules]:e.keepWhitespace?l.CompletionItemInsertTextRule.KeepWhitespace:0},u=this.convertRange(e,r,n);return u&&(o[s.ISuggestDataDtoField.range]=u),e.textEdit?o[s.ISuggestDataDtoField.insertText]=e.textEdit.newText:"string"==typeof e.insertText?o[s.ISuggestDataDtoField.insertText]=e.insertText:e.insertText instanceof c.SnippetString?(o[s.ISuggestDataDtoField.insertText]=e.insertText.value,o[s.ISuggestDataDtoField.insertTextRules]=l.CompletionItemInsertTextRule.InsertAsSnippet):o[s.ISuggestDataDtoField.insertText]="string"==typeof e.label?e.label:e.label.label,o}static hasResolveSupport(e){return"function"==typeof e.resolveCompletionItem}}t.CompletionAdapter=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeclarationAdapter=void 0;const n=r(1),i=n.__importStar(r(5)),o=n.__importStar(r(4)),s=r(23);t.DeclarationAdapter=class{constructor(e,t){this.provider=e,this.documents=t}provideDeclaration(e,t,r){const n=this.documents.getDocumentData(e);if(!n)return Promise.reject(new Error("There is no document for "+e));const a=n.document,c=i.toPosition(t);return Promise.resolve(this.provider.provideDeclaration(a,c,r)).then(e=>{if(e){if(e instanceof o.Location)return i.fromLocation(e);if((0,s.isLocationArray)(e)){const t=[];for(const r of e)t.push(i.fromLocation(r));return t}if((0,s.isDefinitionLinkArray)(e)){const t=[];for(const r of e)t.push(i.DefinitionLink.from(r));return t}}})}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefinitionAdapter=void 0;const n=r(1),i=n.__importStar(r(5)),o=n.__importStar(r(4)),s=r(27);t.DefinitionAdapter=class{constructor(e,t){this.delegate=e,this.documents=t}provideDefinition(e,t,r){const n=this.documents.getDocumentData(e);if(!n)return Promise.reject(new Error("There is no document for "+e));const a=n.document,c=i.toPosition(t);return Promise.resolve(this.delegate.provideDefinition(a,c,r)).then(e=>{if(e){if(e instanceof o.Location)return i.fromLocation(e);if((0,s.isLocationArray)(e)){const t=[];for(const r of e)t.push(i.fromLocation(r));return t}if((0,s.isDefinitionLinkArray)(e)){const t=[];for(const r of e)t.push(i.DefinitionLink.from(r));return t}}})}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Diagnostics=t.DiagnosticCollection=void 0;const n=r(0),i=r(5),o=r(4);class s{constructor(e,t,r,n){this.collectionName=e,this.diagnosticsLimitPerResource=t,this.proxy=r,this.onDidChangeDiagnosticsEmitter=n,this.diagnostics=new Map,this.isDisposed=!1,this.onDisposeCallback=void 0}get name(){return this.collectionName}set(e,t){this.ensureNotDisposed(),e instanceof o.Uri?this.setDiagnosticsForUri(e,t):e?e instanceof Array&&this.setDiagnostics(e):this.clear()}setDiagnosticsForUri(e,t){t?this.diagnostics.set(e.toString(),t):this.diagnostics.delete(e.toString()),this.fireDiagnosticChangeEvent(e),this.sendChangesToEditor([e])}setDiagnostics(e){const t=[];for(const[t]of e)this.diagnostics.delete(t.toString());for(const[r,n]of e){const e=r.toString();if(n){const t=this.diagnostics.get(e);t?t.push(...n):this.diagnostics.set(e,n)}else this.diagnostics.delete(e),t.push(r);-1===t.indexOf(r)&&t.push(r)}this.fireDiagnosticChangeEvent(t),this.sendChangesToEditor(t)}delete(e){this.has(e)&&(this.fireDiagnosticChangeEvent(e),this.diagnostics.delete(e.toString()),this.proxy.$changeDiagnostics(this.name,[[e.toString(),[]]]))}clear(){this.ensureNotDisposed(),this.fireDiagnosticChangeEvent(this.getAllResourcesUris()),this.diagnostics.clear(),this.proxy.$clearDiagnostics(this.name)}forEach(e,t){this.ensureNotDisposed(),this.diagnostics.forEach((r,n)=>{const i=o.Uri.parse(n);e.apply(t,[i,this.getDiagnosticsByUri(i),this])})}get(e){return this.ensureNotDisposed(),this.getDiagnosticsByUri(e)}has(e){return this.ensureNotDisposed(),this.diagnostics.get(e.toString())instanceof Array}dispose(){this.isDisposed||(this.onDisposeCallback&&this.onDisposeCallback(),this.clear(),this.isDisposed=!0)}setOnDisposeCallback(e){this.onDisposeCallback=e}ensureNotDisposed(){if(this.isDisposed)throw new Error('Diagnostic collection with name "'+this.name+'" is already disposed.')}getAllResourcesUris(){const e=[];return this.diagnostics.forEach((t,r)=>e.push(r)),e}getDiagnosticsByUri(e){const t=this.diagnostics.get(e.toString());return t instanceof Array?Object.freeze(t):void 0}fireDiagnosticChangeEvent(e){this.onDidChangeDiagnosticsEmitter.fire({uris:this.toUrisArray(e)})}toUrisArray(e){if(e instanceof Array){if(0===e.length)return[];if(e[0]instanceof o.Uri)return e;{const t=[];for(const r of e)t.push(o.Uri.parse(r));return t}}return e instanceof o.Uri?[e]:[o.Uri.parse(e)]}sendChangesToEditor(e){const t=[];e:for(const r of e){const e=[],o=this.diagnostics.get(r.toString());if(o)if(o.length>this.diagnosticsLimitPerResource){for(const a of s.DIAGNOSTICS_PRIORITY)for(const s of o)if(a===s.severity&&e.push(i.Diagnostic.toMarker(s))+1===this.diagnosticsLimitPerResource){const i=e[e.length-1];e.push({severity:n.MarkerSeverity.Info,message:"Limit of diagnostics is reached. "+(o.length-this.diagnosticsLimitPerResource)+" items are hidden",startLineNumber:i.startLineNumber,startColumn:i.startColumn,endLineNumber:i.endLineNumber,endColumn:i.endColumn}),t.push([r.toString(),e]);continue e}}else o.forEach(t=>e.push(i.Diagnostic.toMarker(t))),t.push([r.toString(),e]);else t.push([r.toString(),[]])}this.proxy.$changeDiagnostics(this.name,t)}}t.DiagnosticCollection=s,s.DIAGNOSTICS_PRIORITY=[o.DiagnosticSeverity.Error,o.DiagnosticSeverity.Warning,o.DiagnosticSeverity.Information,o.DiagnosticSeverity.Hint];class a{constructor(e){this.diagnosticsChangedEmitter=new n.Emitter,this.onDidChangeDiagnostics=this.diagnosticsChangedEmitter.event,this.proxy=e,this.diagnosticCollections=new Map,this.nextId=0}getDiagnostics(e){return e?this.getAllDiagnisticsForResource(e):this.getAllDiagnostics()}createDiagnosticCollection(e){if(e)this.diagnosticCollections.has(e)&&console.warn(`Diagnostic collection with name '${e}' already exist.`);else do{e=a.GENERATED_DIAGNOSTIC_COLLECTION_NAME_PREFIX+this.getNextId()}while(this.diagnosticCollections.has(e));const t=new s(e,a.MAX_DIAGNOSTICS_PER_FILE,this.proxy,this.diagnosticsChangedEmitter);return t.setOnDisposeCallback(()=>{this.diagnosticCollections.delete(e)}),this.diagnosticCollections.set(e,t),t}getNextId(){return this.nextId++}getAllDiagnisticsForResource(e){let t=[];return this.diagnosticCollections.forEach(r=>{const n=r.get(e);n&&(t=t.concat(...n))}),t}getAllDiagnostics(){const e=[],t=new Map;let r=0;return this.diagnosticCollections.forEach(n=>n.forEach((n,i)=>{let o=t.get(n.toString());void 0===o?(o=r++,t.set(n.toString(),o),e.push([n,[...i]])):e[o][1]=e[o][1].concat(...i)})),e}}t.Diagnostics=a,a.MAX_DIAGNOSTICS_PER_FILE=1e3,a.GENERATED_DIAGNOSTIC_COLLECTION_NAME_PREFIX="_generated_diagnostic_collection_name_#"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentHighlightAdapter=void 0;const n=r(1).__importStar(r(5));t.DocumentHighlightAdapter=class{constructor(e,t){this.provider=e,this.documents=t}provideDocumentHighlights(e,t,r){const i=this.documents.getDocumentData(e);if(!i)return Promise.reject(new Error("There is no document for "+e));const o=i.document,s=n.toPosition(t);return Promise.resolve(this.provider.provideDocumentHighlights(o,s,r)).then(e=>{if(e&&this.isDocumentHighlightArray(e)){const t=[];for(const r of e)t.push(n.DocumentHighlight.from(r));return t}})}isDocumentHighlightArray(e){return Array.isArray(e)&&e.length>0&&e[0].range}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EvaluatableExpressionAdapter=void 0;const n=r(1),i=r(0),o=n.__importStar(r(5));t.EvaluatableExpressionAdapter=class{constructor(e,t){this._documents=e,this._provider=t}provideEvaluatableExpression(e,t,r){const n=this._documents.getDocument(e),s=o.toPosition(t);return(0,i.asPromise)(()=>this._provider.provideEvaluatableExpression(n,s,r)).then(e=>{if(e)return o.EvaluatableExpression.from(e)})}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FoldingProviderAdapter=void 0;const n=r(1).__importStar(r(5));t.FoldingProviderAdapter=class{constructor(e,t){this.documents=e,this.provider=t}async provideFoldingRanges(e,t,r){const i=this.documents.getDocumentData(e);if(!i)return Promise.reject(new Error("There is no document for "+e));const o=i.document,s=await this.provider.provideFoldingRanges(o,t,r);return Array.isArray(s)?s.map(n.fromFoldingRange):void 0}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HoverAdapter=void 0;const n=r(1).__importStar(r(5)),i=r(4);t.HoverAdapter=class{constructor(e,t){this.provider=e,this.documents=t}provideHover(e,t,r){const o=this.documents.getDocumentData(e.toString());if(!o)return Promise.reject(new Error("There are no document for "+e));const s=n.toPosition(t),a=o.document;return Promise.resolve(this.provider.provideHover(a,s,r)).then(e=>{if(e&&Array.isArray(e.contents)&&0!==e.contents.length)return e.range||(e.range=a.getWordRangeAtPosition(s)),e.range||(e.range=new i.Range(s,s)),n.fromHover(e)})}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImplementationAdapter=void 0;const n=r(1),i=n.__importStar(r(5)),o=n.__importStar(r(4)),s=r(23);t.ImplementationAdapter=class{constructor(e,t){this.provider=e,this.documents=t}provideImplementation(e,t){const r=this.documents.getDocumentData(e);if(!r)return Promise.reject(new Error("There is no document for "+e));const n=r.document,a=i.toPosition(t);return Promise.resolve(this.provider.provideImplementation(n,a,(0,s.createToken)())).then(e=>{if(e){if(e instanceof o.Location)return i.fromLocation(e);if((0,s.isLocationArray)(e)){const t=[];for(const r of e)t.push(i.fromLocation(r));return t}if((0,s.isDefinitionLinkArray)(e)){const t=[];for(const r of e)t.push(i.DefinitionLink.from(r));return t}}})}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InlayHintsAdapter=void 0;const n=r(1),i=r(0),o=n.__importStar(r(5)),s=n.__importStar(r(4));t.InlayHintsAdapter=class{constructor(e,t,r){this._documents=e,this._provider=t,this._commands=r,this._cache=new i.Cache("InlayHints"),this._disposables=new Map}async provideInlayHints(e,t,r){const n=this._documents.getDocument(e),s=o.Range.to(t),a=await this._provider.provideInlayHints(n,s,r);if(!Array.isArray(a)||0===a.length)return;if(r.isCancellationRequested)return;const c=this._cache.add(a);this._disposables.set(c,new i.DisposableStore);const l={hints:[],cacheId:c};for(let e=0;e<a.length;e++)this._isValidInlayHint(a[e],s)&&l.hints.push(this._convertInlayHint(a[e],[c,e]));return l}async resolveInlayHint(e,t){if("function"!=typeof this._provider.resolveInlayHint)return;const r=this._cache.get(...e);if(!r)return;const n=await this._provider.resolveInlayHint(r,t);return n&&this._isValidInlayHint(n)?this._convertInlayHint(n,e):void 0}async releaseHints(e){var t;null===(t=this._disposables.get(e))||void 0===t||t.dispose(),this._disposables.delete(e),this._cache.delete(e)}_isValidInlayHint(e,t){return!(0===e.label.length||Array.isArray(e.label)&&e.label.every(e=>0===e.value.length))&&!(t&&!t.contains(e.position))}_convertInlayHint(e,t){const r=this._disposables.get(t[0]);if(!r)throw Error("DisposableStore is missing...");const n={label:"",tooltip:o.MarkdownString.fromStrict(e.tooltip),position:o.Position.from(e.position),textEdits:e.textEdits&&e.textEdits.map(o.TextEdit.from),kind:e.kind&&o.InlayHintKind.from(e.kind),paddingLeft:e.paddingLeft,paddingRight:e.paddingRight,cacheId:t};return"string"==typeof e.label?n.label=e.label:n.label=e.label.map(e=>{const t={label:e.value};return t.tooltip=o.MarkdownString.fromStrict(e.tooltip),s.Location.isLocation(e.location)&&(t.location=o.location.from(e.location)),e.command&&(t.command=this._commands.toInternal(e.command,r)),t}),n}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InlineValuesAdapter=void 0;const n=r(1),i=r(0),o=n.__importStar(r(5));t.InlineValuesAdapter=class{constructor(e,t){this._documents=e,this._provider=t}provideInlineValues(e,t,r,n){const s=this._documents.getDocument(e);return(0,i.asPromise)(()=>this._provider.provideInlineValues(s,o.toRange(t),o.InlineValueContext.to(r),n)).then(e=>{if(Array.isArray(e))return e.map(e=>o.InlineValue.from(e))})}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InlineCompletionAdapter=t.InlineCompletionAdapterBase=void 0;const n=r(1),i=r(0),o=n.__importStar(r(5)),s=r(4),a=n.__importStar(r(234));class c{constructor(){this._references=new Map,this._idPool=1}createReferenceId(e){const t=this._idPool++;return this._references.set(t,e),t}disposeReferenceId(e){const t=this._references.get(e);return this._references.delete(e),t}get(e){return this._references.get(e)}}class l{async provideInlineCompletions(e,t,r,n){}disposeCompletions(e){}handleDidShowCompletionItem(e,t){}}t.InlineCompletionAdapterBase=l;t.InlineCompletionAdapter=class extends l{constructor(e,t,r){super(),this._documents=e,this._provider=t,this._commands=r,this._references=new c,this.languageTriggerKindToVSCodeTriggerKind={[a.InlineCompletionTriggerKind.Automatic]:s.InlineCompletionTriggerKind.Automatic,[a.InlineCompletionTriggerKind.Explicit]:s.InlineCompletionTriggerKind.Invoke}}async provideInlineCompletions(e,t,r,n){const s=this._documents.getDocument(e),a=o.Position.to(t),c=await this._provider.provideInlineCompletionItems(s,a,{selectedCompletionInfo:r.selectedSuggestionInfo?{range:o.Range.to(r.selectedSuggestionInfo.range),text:r.selectedSuggestionInfo.text}:void 0,triggerKind:this.languageTriggerKindToVSCodeTriggerKind[r.triggerKind]},n);if(!c)return;if(n.isCancellationRequested)return;const l=Array.isArray(c)?c:c.items,u=Array.isArray(c)?[]:c.commands||[];let d;return{pid:this._references.createReferenceId({dispose(){null==d||d.dispose()},items:l}),items:l.map((e,t)=>{let r;e.command&&(d||(d=new i.DisposableStore),r=this._commands.toInternal(e.command,d));const n=e.insertText;return{insertText:"string"==typeof n?n:{snippet:n.value},filterText:e.filterText,range:e.range?o.Range.from(e.range):void 0,command:r,idx:t,completeBracketPairs:!!e.completeBracketPairs}}),commands:u.map(e=>(d||(d=new i.DisposableStore),this._commands.toInternal(e,d)))}}disposeCompletions(e){const t=this._references.disposeReferenceId(e);null==t||t.dispose()}handleDidShowCompletionItem(e,t){throw new Error("Method not implemented.")}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeLensAdapter=void 0;const n=r(1),i=r(0),o=r(0),s=n.__importStar(r(5));class a{constructor(e,t,r){this.provider=e,this.documents=t,this.commandConverter=r,this.cache=new i.Cache("CodeLens"),this.disposableStore=new Map}async provideCodeLenses(e,t){const r=this.documents.getDocumentData(e.toString());if(!r)return Promise.reject(new Error("There is no document for "+e));const n=await this.provider.provideCodeLenses(r.document,t);if(!n||t.isCancellationRequested)return;const i=this.cache.add(n),a=new o.DisposableStore;this.disposableStore.set(i,a);const c={cacheId:i,lenses:[]};for(let e=0;e<n.length;e++)c.lenses.push({cacheId:[i,e],range:s.fromRange(n[e].range),command:this.commandConverter.toInternal(n[e].command,a)});return c}async resolveCodeLens(e,t){const r=e.cacheId&&this.cache.get(...e.cacheId);if(!r)return Promise.resolve(void 0);let n;if(n="function"!=typeof this.provider.resolveCodeLens||r.isResolved?r:await this.provider.resolveCodeLens(r,t),n||(n=r),t.isCancellationRequested)return;const i=new o.DisposableStore;return e.command=this.commandConverter.toInternal(n.command?n.command:a.BAD_CMD,i),e}releaseCodeLens(e){var t;null===(t=this.disposableStore.get(e))||void 0===t||t.dispose(),this.disposableStore.delete(e),this.cache.delete(e)}}t.CodeLensAdapter=a,a.BAD_CMD={command:"missing",title:"<<MISSING COMMAND>>"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LinkProviderAdapter=void 0;const n=r(1),i=r(0),o=n.__importStar(r(5));t.LinkProviderAdapter=class{constructor(e,t){this.provider=e,this.documents=t,this.cache=new i.Cache("DocumentLink")}provideLinks(e,t){const r=this.documents.getDocumentData(e);if(!r)return Promise.reject(new Error("There is no document for "+e));const n=r.document;return Promise.resolve(this.provider.provideDocumentLinks(n,t)).then(e=>{if(!Array.isArray(e))return;if("function"!=typeof this.provider.resolveDocumentLink)return{links:e.map(o.fromDocumentLink)};const t=this.cache.add(e),r={id:t,links:[]};for(let n=0;n<e.length;n++){const i=o.fromDocumentLink(e[n]);i.cacheId=[t,n],r.links.push(i)}return r})}resolveLink(e,t){if("function"!=typeof this.provider.resolveDocumentLink)return Promise.resolve(void 0);const r=this.cache.get(...e);return r?Promise.resolve(this.provider.resolveDocumentLink(r,t)).then(e=>{if(e)return o.fromDocumentLink(e)}):Promise.resolve(void 0)}releaseLink(e){this.cache.delete(e)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LinkedEditingRangeAdapter=void 0;const n=r(1),i=r(0),o=n.__importStar(r(5)),{coalesce:s}=i.arrays;t.LinkedEditingRangeAdapter=class{constructor(e,t){this._documents=e,this._provider=t}provideLinkedEditingRanges(e,t,r){const n=this._documents.getDocument(e);if(!n)return Promise.reject(new Error("There is no document for "+e));const a=o.Position.to(t);return(0,i.asPromise)(()=>this._provider.provideLinkedEditingRanges(n,a,r)).then(e=>{if(e&&Array.isArray(e.ranges))return{ranges:s(e.ranges.map(o.Range.from)),wordPattern:e.wordPattern}})}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OnTypeFormattingAdapter=void 0;const n=r(1).__importStar(r(5)),i=r(23);t.OnTypeFormattingAdapter=class{constructor(e,t){this.provider=e,this.documents=t}provideOnTypeFormattingEdits(e,t,r,o){const s=this.documents.getDocumentData(e.toString());if(!s)return Promise.reject(new Error("There are no document for "+e));const a=s.document,c=n.toPosition(t);return Promise.resolve(this.provider.provideOnTypeFormattingEdits(a,c,r,o,(0,i.createToken)())).then(e=>{if(Array.isArray(e))return e.map(n.fromTextEdit)})}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OutlineAdapter=void 0;const n=r(1),i=n.__importStar(r(5)),o=n.__importStar(r(4));class s{constructor(e,t){this.documents=e,this.provider=t}provideDocumentSymbols(e,t){const r=this.documents.getDocumentData(e);if(!r)return Promise.reject(new Error("There is no document for "+e));const n=r.document;return Promise.resolve(this.provider.provideDocumentSymbols(n,t)).then(t=>{if(t&&0!==t.length)return t[0]instanceof o.DocumentSymbol?t.map(i.fromDocumentSymbol):s.asDocumentSymbolTree(e,t)})}static asDocumentSymbolTree(e,t){var r;t=t.slice(0).sort((e,t)=>{let r=e.location.range.start.compareTo(t.location.range.start);return 0===r&&(r=t.location.range.end.compareTo(e.location.range.end)),r});const n=[],o=[];for(let e=0;e<t.length;e++){const a={name:t[e].name,detail:"",kind:i.SymbolKind.fromSymbolKind(t[e].kind),tags:(null===(r=t[e].tags)||void 0===r?void 0:r.map(i.SymbolTag.from))||[],containerName:t[e].containerName,range:i.fromRange(t[e].location.range),selectionRange:i.fromRange(t[e].location.range),children:[]};for(;;){if(0===o.length){o.push(a),n.push(a);break}const e=o[o.length-1];if(s.containsRange(e.range,a.range)&&!s.equalsRange(e.range,a.range)){e.children.push(a),o.push(a);break}o.pop()}}return n}static containsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&(!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>e.endColumn)))}static equalsRange(e,t){return!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}}t.OutlineAdapter=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FormattingAdapter=t.RangeFormattingAdapter=void 0;const n=r(1).__importStar(r(5)),i=r(23);t.RangeFormattingAdapter=class{constructor(e,t){this.provider=e,this.documents=t}provideDocumentRangeFormattingEdits(e,t,r){const o=this.documents.getDocumentData(e.toString());if(!o)return Promise.reject(new Error("There are no document for "+e));const s=o.document,a=n.toRange(t);return Promise.resolve(this.provider.provideDocumentRangeFormattingEdits(s,a,r,(0,i.createToken)())).then(e=>{if(Array.isArray(e))return e.map(n.fromTextEdit)})}};t.FormattingAdapter=class{constructor(e,t){this.provider=e,this.documents=t}provideDocumentFormattingEdits(e,t){const r=this.documents.getDocumentData(e.toString());if(!r)return Promise.reject(new Error("There are no document for "+e));const o=r.document;return Promise.resolve(this.provider.provideDocumentFormattingEdits(o,t,(0,i.createToken)())).then(e=>{if(Array.isArray(e))return e.map(n.fromTextEdit)})}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReferenceAdapter=void 0;const n=r(1).__importStar(r(5)),i=r(27);t.ReferenceAdapter=class{constructor(e,t){this.provider=e,this.documents=t}provideReferences(e,t,r,o){const s=this.documents.getDocumentData(e);if(!s)return Promise.reject(new Error("There is no document for "+e));const a=s.document,c=n.toPosition(t);return Promise.resolve(this.provider.provideReferences(a,c,r,o)).then(e=>{if(e&&(0,i.isLocationArray)(e)){const t=[];for(const r of e)t.push(n.fromLocation(r));return t}})}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RenameAdapter=void 0;const n=r(1),i=r(0),o=n.__importStar(r(5)),s=n.__importStar(r(4)),a=r(27);class c{static supportsResolving(e){return"function"==typeof e.prepareRename}constructor(e,t){this.provider=e,this.documents=t,this.debug=(0,i.getDebugLogger)()}provideRenameEdits(e,t,r,n){const i=this.documents.getDocumentData(e);if(!i)return Promise.reject(new Error("There is no document for "+e));const s=i.document,a=o.toPosition(t);return Promise.resolve(this.provider.provideRenameEdits(s,a,r,n)).then(e=>{if(e)return o.WorkspaceEdit.from(e)},e=>{const t=c.asMessage(e);return t?{rejectReason:t,edits:[]}:Promise.reject(e)})}resolveRenameLocation(e,t,r){if("function"!=typeof this.provider.prepareRename)return Promise.resolve(void 0);const n=this.documents.getDocumentData(e);if(!n)return Promise.reject(new Error("There is no document for "+e));const i=n.document,l=o.toPosition(t);return Promise.resolve(this.provider.prepareRename(i,l,r)).then(e=>{let t,r;if(e&&s.Range.isRange(e)?(t=e,r=i.getText(e)):e&&(0,a.isObject)(e)&&(t=e.range,r=e.placeholder),t&&r){if(!(t.start.line>l.line||t.end.line<l.line))return{range:o.fromRange(t),text:r};this.debug.warn("INVALID rename location: position line must be within range start/end lines")}},e=>{const t=c.asMessage(e);return t?Promise.resolve({rejectReason:t}):Promise.reject(e)})}static asMessage(e){return"string"==typeof e?e:e instanceof Error&&"string"==typeof e.message?e.message:void 0}}t.RenameAdapter=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionRangeAdapter=void 0;const n=r(1),i=r(0),o=n.__importStar(r(5)),{isNonEmptyArray:s}=i.arrays;t.SelectionRangeAdapter=class{constructor(e,t){this.documents=e,this._provider=t}async provideSelectionRanges(e,t,r){const n=this.documents.getDocumentData(e);if(!n)return Promise.reject(new Error("There is no document for "+e));const i=n.document,a=t.map(o.toPosition),c=await this._provider.provideSelectionRanges(i,a,r);if(!s(c))return[];if(c.length!==a.length)return console.warn("BAD selection ranges, provider must return ranges for each position"),[];const l=[];for(let e=0;e<a.length;e++){const t=[];l.push(t);let r=a[e],n=c[e];for(;;){if(!n.range.contains(r))throw new Error("INVALID selection range, must contain the previous range");if(t.push(o.fromSelectionRange(n)),!n.parent)break;r=n.range,n=n.parent}}return l}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentRangeSemanticTokensAdapter=t.DocumentSemanticTokensAdapter=void 0;const n=r(1).__importStar(r(5)),i=r(4),o=r(680);class s{constructor(e,t){this.resultId=e,this.tokens=t}}class a{constructor(e,t){this._documents=e,this._provider=t,this._nextResultId=1,this._previousResults=new Map}async provideDocumentSemanticTokens(e,t,r){const n=this._documents.getDocument(e),i=0!==t?this._previousResults.get(t):null;let o="string"==typeof(null==i?void 0:i.resultId)&&"function"==typeof this._provider.provideDocumentSemanticTokensEdits?await this._provider.provideDocumentSemanticTokensEdits(n,i.resultId,r):await this._provider.provideDocumentSemanticTokens(n,r);return i&&this._previousResults.delete(t),o?(o=a._fixProvidedSemanticTokens(o),this._send(a._convertToEdits(i,o),o)):null}async releaseDocumentSemanticColoring(e){this._previousResults.delete(e)}static _fixProvidedSemanticTokens(e){return a._isSemanticTokens(e)?a._isCorrectSemanticTokens(e)?e:new i.SemanticTokens(new Uint32Array(e.data),e.resultId):a._isSemanticTokensEdits(e)?a._isCorrectSemanticTokensEdits(e)?e:new i.SemanticTokensEdits(e.edits.map(e=>new i.SemanticTokensEdit(e.start,e.deleteCount,e.data?new Uint32Array(e.data):e.data)),e.resultId):e}static _isSemanticTokens(e){return e&&!!e.data}static _isSemanticTokensEdits(e){return e&&Array.isArray(e.edits)}static _isCorrectSemanticTokens(e){return e.data instanceof Uint32Array}static _isCorrectSemanticTokensEdits(e){for(const t of e.edits)if(!(t.data instanceof Uint32Array))return!1;return!0}static _convertToEdits(e,t){if(!a._isSemanticTokens(t))return t;if(!e||!e.tokens)return t;const r=e.tokens,n=r.length,o=t.data,s=o.length;let c=0;const l=Math.min(n,s);for(;c<l&&r[c]===o[c];)c++;if(c===n&&c===s)return new i.SemanticTokensEdits([],t.resultId);let u=0;const d=l-c;for(;u<d&&r[n-u-1]===o[s-u-1];)u++;return new i.SemanticTokensEdits([{start:c,deleteCount:n-c-u,data:o.subarray(c,s-u)}],t.resultId)}_send(e,t){if(a._isSemanticTokens(e)){const t=this._nextResultId++;this._previousResults.set(t,new s(e.resultId,e.data));return(0,o.encodeSemanticTokensDto)({id:t,type:"full",data:e.data})}if(a._isSemanticTokensEdits(e)){const r=this._nextResultId++;a._isSemanticTokens(t)?this._previousResults.set(r,new s(t.resultId,t.data)):this._previousResults.set(r,new s(e.resultId));return(0,o.encodeSemanticTokensDto)({id:r,type:"delta",deltas:(e.edits||[]).map(e=>({start:e.start,deleteCount:e.deleteCount,data:e.data}))})}return null}}t.DocumentSemanticTokensAdapter=a;t.DocumentRangeSemanticTokensAdapter=class{constructor(e,t){this._documents=e,this._provider=t}async provideDocumentRangeSemanticTokens(e,t,r){const i=this._documents.getDocument(e),o=await this._provider.provideDocumentRangeSemanticTokens(i,n.Range.to(t),r);return o?this._send(o):null}_send(e){return(0,o.encodeSemanticTokensDto)({id:0,type:"full",data:e.data})}}},function(e,t,r){"use strict";function n(e){for(let t=0,r=e.length;t<r;t+=4){const r=e[t+0],n=e[t+1],i=e[t+2],o=e[t+3];e[t+0]=o,e[t+1]=i,e[t+2]=n,e[t+3]=r}}Object.defineProperty(t,"__esModule",{value:!0}),t.decodeSemanticTokensDto=t.encodeSemanticTokensDto=t.isLittleEndian=void 0;let i=!0,o=!1;function s(){if(!o){o=!0;const e=new Uint8Array(2);e[0]=1,e[1]=2;const t=new Uint16Array(e.buffer);i=513===t[0]}return i}t.isLittleEndian=s,t.encodeSemanticTokensDto=function(e){const t=new Uint32Array(function(e){let t=0;if(t+=2,"full"===e.type)t+=1+e.data.length;else{t+=1,t+=3*e.deltas.length;for(const r of e.deltas)r.data&&(t+=r.data.length)}return t}(e));let r=0;if(t[r++]=e.id,"full"===e.type)t[r++]=1,t[r++]=e.data.length,t.set(e.data,r),r+=e.data.length;else{t[r++]=2,t[r++]=e.deltas.length;for(const n of e.deltas)t[r++]=n.start,t[r++]=n.deleteCount,n.data?(t[r++]=n.data.length,t.set(n.data,r),r+=n.data.length):t[r++]=0}return function(e){const t=new Uint8Array(e.buffer,e.byteOffset,4*e.length);return s()||n(t),t}(t)},t.decodeSemanticTokensDto=function(e){const t=function(e){const t=e;if(s()||n(t),t.byteOffset%4==0)return new Uint32Array(t.buffer,t.byteOffset,t.length/4);{const e=new Uint8Array(t.byteLength);return e.set(t),new Uint32Array(e.buffer,e.byteOffset,e.length/4)}}(e);let r=0;const i=t[r++];if(1===t[r++]){const e=t[r++],n=t.subarray(r,r+e);return r+=e,{id:i,type:"full",data:n}}const o=t[r++],a=[];for(let e=0;e<o;e++){const n=t[r++],i=t[r++],o=t[r++];let s;o>0&&(s=t.subarray(r,r+o),r+=o),a[e]={start:n,deleteCount:i,data:s}}return{id:i,type:"delta",deltas:a}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SignatureHelpAdapter=void 0;const n=r(1).__importStar(r(5));t.SignatureHelpAdapter=class{constructor(e,t){this.delegate=e,this.documents=t,this.cacheId=0,this.cache=new Map}async provideSignatureHelp(e,t,r,i){const o=this.documents.getDocumentData(e);if(!o)return Promise.reject(new Error("There are no document for "+e));const s=this.cacheId++,a=o.document,c=n.toPosition(t),l=this.reviveContext(i),u=await this.delegate.provideSignatureHelp(a,c,r,l);return u?(this.cache.set(s,u),Object.assign(Object.assign({},n.SignatureHelp.from(u)),{id:s})):void 0}reviveContext(e){let t;if(e.activeSignatureHelp){const r=n.SignatureHelp.to(e.activeSignatureHelp),i=this.cache.get(e.activeSignatureHelp.id);i?(t=i,t.activeSignature=r.activeSignature,t.activeParameter=r.activeParameter):t=r}return Object.assign(Object.assign({},e),{activeSignatureHelp:t})}releaseSignatureHelp(e){this.cache.delete(e)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeDefinitionAdapter=void 0;const n=r(1),i=n.__importStar(r(5)),o=n.__importStar(r(4)),s=r(27);t.TypeDefinitionAdapter=class{constructor(e,t){this.provider=e,this.documents=t}provideTypeDefinition(e,t,r){const n=this.documents.getDocumentData(e);if(!n)return Promise.reject(new Error("There is no document for "+e));const a=n.document,c=i.toPosition(t);return Promise.resolve(this.provider.provideTypeDefinition(a,c,r)).then(e=>{if(e){if(e instanceof o.Location)return i.fromLocation(e);if((0,s.isLocationArray)(e)){const t=[];for(const r of e)t.push(i.fromLocation(r));return t}if((0,s.isDefinitionLinkArray)(e)){const t=[];for(const r of e)t.push(i.DefinitionLink.from(r));return t}}})}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeHierarchyAdapter=void 0;const n=r(1),i=r(253),o=n.__importStar(r(5));t.TypeHierarchyAdapter=class{constructor(e,t){this._documents=e,this._provider=t,this._idPool=new i.IdGenerator(""),this._cache=new Map}async prepareSession(e,t,r){const n=this._documents.getDocumentData(e);if(!n)return Promise.reject(new Error("There is no document for "+e));const i=n.document,s=o.Position.to(t),a=await this._provider.prepareTypeHierarchy(i,s,r);if(!a)return;const c=this._idPool.nextId();return this._cache.set(c,new Map),Array.isArray(a)?a.map(e=>this._cacheAndConvertItem(c,e)):[this._cacheAndConvertItem(c,a)]}async provideSupertypes(e,t,r){const n=this._itemFromCache(e,t);if(!n)throw new Error("missing type hierarchy item");const i=await this._provider.provideTypeHierarchySupertypes(n,r);if(i)return i.map(t=>this._cacheAndConvertItem(e,t))}async provideSubtypes(e,t,r){const n=this._itemFromCache(e,t);if(!n)throw new Error("missing type hierarchy item");const i=await this._provider.provideTypeHierarchySubtypes(n,r);if(i)return i.map(t=>this._cacheAndConvertItem(e,t))}releaseSession(e){this._cache.delete(e)}_cacheAndConvertItem(e,t){const r=this._cache.get(e),n=o.TypeHierarchyItem.from(t,e,r.size.toString(36));return r.set(n._itemId,t),n}_itemFromCache(e,t){const r=this._cache.get(e);return null==r?void 0:r.get(t)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceSymbolAdapter=void 0;const n=r(1).__importStar(r(5));t.WorkspaceSymbolAdapter=class{constructor(e){this.provider=e}provideWorkspaceSymbols(e,t){return Promise.resolve(this.provider.provideWorkspaceSymbols(e,t)).then(e=>{if(!e)return[];const t=[];for(const r of e){const e=n.fromSymbolInformation(r);e&&t.push(e)}return t})}resolveWorkspaceSymbol(e,t){if(this.provider.resolveWorkspaceSymbol&&"function"==typeof this.provider.resolveWorkspaceSymbol){const r=n.toSymbolInformation(e);return r?Promise.resolve(this.provider.resolveWorkspaceSymbol(r,t)).then(t=>{if(!t)return e;const r=n.fromSymbolInformation(t);return r||e}):Promise.resolve(e)}return Promise.resolve(e)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtHostMessage=void 0;const n=r(686),i=r(7);t.ExtHostMessage=class{constructor(e){this.proxy=e.getProxy(i.MainThreadAPIIdentifier.MainThreadMessages)}async showMessage(e,t,r,i,...o){let s=t;s.length>n.MAX_MESSAGE_LENGTH&&(s=t.substr(0,n.MAX_MESSAGE_LENGTH)+"...");const a={},c=[],l=[],u=e=>{l.push(e),"string"==typeof e?c.push(e):c.push(e.title)};r&&("string"==typeof r||"title"in r?u(r):"modal"in r&&(a.modal=r.modal));for(const e of o)u(e);const d=await this.proxy.$showMessage(e,s,a,c,i);return void 0!==d?l[d]:void 0}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IOpenDialogOptions=t.ISaveDialogOptions=t.IWindowDialogService=t.AbstractMessageService=t.IDialogService=t.MAX_MESSAGE_LENGTH=t.IMessageService=void 0;const n=r(0);t.IMessageService=Symbol("IMessageService"),t.MAX_MESSAGE_LENGTH=1e3,t.IDialogService=Symbol("IDialogService");t.AbstractMessageService=class{info(e,t,r,i){return this.open(e,n.MessageType.Info,t,r,void 0,i)}warning(e,t,r,i){return this.open(e,n.MessageType.Warning,t,r,void 0,i)}error(e,t,r,i){return this.open(e,n.MessageType.Error,t,r,void 0,i)}},t.IWindowDialogService=Symbol("IWindowDialogService"),function(e){e.is=function(e){return"saveLabel"in e||"showNameInput"in e||"defaultFileName"in e}}(t.ISaveDialogOptions||(t.ISaveDialogOptions={})),function(e){e.is=function(e){return"canSelectFiles"in e||"canSelectFolders"in e||"canSelectMany"in e||"openLabel"in e}}(t.IOpenDialogOptions||(t.IOpenDialogOptions={}))},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.OutputChannelImpl=t.ExtHostOutput=void 0;const n=r(7);t.ExtHostOutput=class{constructor(e){this.rpcProtocol=e}createOutputChannel(e){return new i(e,this.rpcProtocol)}};class i{constructor(e,t){this.name=e,this.rpcProtocol=t,this.batchedOutputLine="",this.batchedTimer=null,this.proxy=this.rpcProtocol.getProxy(n.MainThreadAPIIdentifier.MainThreadOutput)}replace(e){this.proxy.$replace(this.name,e)}dispose(){this.disposed||this.proxy.$dispose(this.name).then(()=>{this.disposed=!0})}append(t){this.validate();const r=this.batchedOutputLine+t;this.batchedOutputLine=r,this.batchedOutputLine.length>=20480&&this.flushOutputString(),this.batchedTimer||(this.batchedTimer=e.setTimeout(()=>this.flushOutputString(),5))}appendLine(e){this.validate(),this.append(e+"\n")}clear(){this.validate(),this.proxy.$clear(this.name)}flushOutputString(){this.proxy.$append(this.name,this.batchedOutputLine),this.batchedOutputLine="",this.batchedTimer&&(e.clearTimeout(this.batchedTimer),this.batchedTimer=null)}show(e){this.validate(),this.proxy.$reveal(this.name,!!e)}hide(){this.validate(),this.proxy.$close(this.name)}validate(){if(this.disposed)throw new Error("Channel has been closed")}}t.OutputChannelImpl=i}).call(this,r(11))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtHostPreference=void 0;const n=r(1).__importDefault(r(254)),i=r(0),o=r(7),s=r(757);function a(e,t){if(!t)return;const r=t.split(".");let n=e;for(let e=0;n&&e<r.length;e++)n=n[r[e]];return n}t.ExtHostPreference=class{constructor(e,t){this.workspace=t,this._onDidChangeConfiguration=new i.Emitter,this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this.OVERRIDE_PROPERTY="\\[(.*)\\]$",this.OVERRIDE_PROPERTY_PATTERN=new RegExp(this.OVERRIDE_PROPERTY),this.rpcProtocol=e,this.proxy=this.rpcProtocol.getProxy(o.MainThreadAPIIdentifier.MainThreadPreference)}init(e){this._preferences=this.parse(e)}$initializeConfiguration(e){this.init(e)}$acceptConfigurationChanged(e,t){this.init(e),this._onDidChangeConfiguration.fire(this.toConfigurationChangeEvent(t))}parse(e){const t=this.getConfigurationModel(e[i.PreferenceScope.Default]),r=this.getConfigurationModel(e[i.PreferenceScope.User]),n=this.getConfigurationModel(e[i.PreferenceScope.Workspace]),o={};return Object.keys(e[i.PreferenceScope.Folder]).forEach(t=>{o[t]=this.getConfigurationModel(e[i.PreferenceScope.Folder][t])}),new s.Configuration(t,r,n,o)}getConfigurationModel(e){return e?new s.ConfigurationModel(this.parseConfigurationData(e),Object.keys(e)):new s.ConfigurationModel}parseConfigurationData(e){return Object.keys(e).sort((e,t)=>t.length-e.length).reduce((t,r)=>{const n=r.split(".");let o=t;for(let t=0;t<n.length;t++)if(t!==n.length-1){if(o[n[t]]||(o[n[t]]={}),o=o[n[t]],0===t&&this.OVERRIDE_PROPERTY_PATTERN.test(n[t])){o[r.substring(n[0].length+1)]=e[r];break}}else(0,i.isUndefined)(o[n[t]])&&(o[n[t]]=e[r]);return t},{})}toConfigurationChangeEvent(e){return Object.freeze({affectsConfiguration:(t,r)=>{for(const r of e){return void 0!==a(r.preferenceName.split(".").reverse().reduce((e,t)=>({[t]:e}),r.newValue),t)}return!1}})}getConfiguration(e,t,r){t=null===t?void 0:t;const o=this.toReadonlyValue(e?a(this._preferences.getValue(void 0,this.workspace,t),e):this._preferences.getValue(void 0,this.workspace,t)),s={has:e=>void 0!==a(o,e),get:(e,t)=>{const r=a(o,e);if(void 0===r)return t;{let t;const s=(e,r)=>{let c;const l=()=>{t=t||(0,n.default)(o),c=c||a(t,r)};return(0,i.isObject)(e)?new Proxy(e,{get:(e,n)=>{if("string"==typeof n&&"tojson"===n.toLowerCase())return l(),()=>c;if(t)return c=c||a(t,r),c[n];const i=e[n];return"string"==typeof n?s(i,`${r}.${n}`):i},set:(e,t,r)=>(l(),c[t]=r,!0),deleteProperty:(e,t)=>(l(),delete c[t],!0),defineProperty:(e,t,r)=>(l(),Object.defineProperty(c,t,r),!0)}):e};return s(r,e)}},update:(r,n,i)=>{r=e?`${e}.${r}`:r;const o=t?t.toString():void 0;return void 0!==n?this.proxy.$updateConfigurationOption(i,r,n,o):this.proxy.$removeConfigurationOption(i,r,o)},inspect:r=>{r=e?`${e}.${r}`:r,t=null===t?void 0:t;const i=(0,n.default)(this._preferences.inspect(r,this.workspace,t));if(!i)return;const o={key:r};return void 0!==i.default&&(o.defaultValue=i.default),void 0!==i.user&&(o.globalValue=i.user),void 0!==i.workspace&&(o.workspaceValue=i.workspace),void 0!==i.workspaceFolder&&(o.workspaceFolderValue=i.workspaceFolder),o}};return"object"==typeof o&&(0,i.mixin)(s,o,!1),Object.freeze(s)}toReadonlyValue(e){const t=e=>(0,i.isObject)(e)?new Proxy(e,{get:(e,r)=>t(e[r]),set:(e,t,r)=>{throw new Error(`TypeError: Cannot assign to read only property '${t}' of object`)},deleteProperty:(e,t)=>{throw new Error(`TypeError: Cannot delete read only property '${t}' of object`)},defineProperty:(e,t)=>{throw new Error(`TypeError: Cannot define property '${t}' of a readonly object`)},setPrototypeOf:e=>{throw new Error("TypeError: Cannot set prototype for a readonly object")},isExtensible:()=>!1,preventExtensions:()=>!0}):e;return t(e)}}},function(e,t,r){var n=r(690),i=r(718),o=r(258),s=r(720),a=r(730),c=r(733),l=r(734),u=r(735),d=r(737),h=r(738),f=r(739),p=r(137),g=r(744),m=r(745),b=r(751),v=r(131),y=r(261),_=r(753),w=r(33),C=r(755),k=r(130),E=r(135),S={};S["[object Arguments]"]=S["[object Array]"]=S["[object ArrayBuffer]"]=S["[object DataView]"]=S["[object Boolean]"]=S["[object Date]"]=S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Map]"]=S["[object Number]"]=S["[object Object]"]=S["[object RegExp]"]=S["[object Set]"]=S["[object String]"]=S["[object Symbol]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S["[object Error]"]=S["[object Function]"]=S["[object WeakMap]"]=!1,e.exports=function e(t,r,D,x,T,A){var I,O=1&r,R=2&r,M=4&r;if(D&&(I=T?D(t,x,T,A):D(t)),void 0!==I)return I;if(!w(t))return t;var B=v(t);if(B){if(I=g(t),!O)return l(t,I)}else{var P=p(t),F="[object Function]"==P||"[object GeneratorFunction]"==P;if(y(t))return c(t,O);if("[object Object]"==P||"[object Arguments]"==P||F&&!T){if(I=R||F?{}:b(t),!O)return R?d(t,a(I,t)):u(t,s(I,t))}else{if(!S[P])return T?t:{};I=m(t,P,O)}}A||(A=new n);var L=A.get(t);if(L)return L;A.set(t,I),C(t)?t.forEach((function(n){I.add(e(n,r,D,n,t,A))})):_(t)&&t.forEach((function(n,i){I.set(i,e(n,r,D,i,t,A))}));var N=B?void 0:(M?R?f:h:R?E:k)(t);return i(N||t,(function(n,i){N&&(n=t[i=n]),o(I,i,e(n,r,D,i,t,A))})),I}},function(e,t,r){var n=r(73),i=r(696),o=r(697),s=r(698),a=r(699),c=r(700);function l(e){var t=this.__data__=new n(e);this.size=t.size}l.prototype.clear=i,l.prototype.delete=o,l.prototype.get=s,l.prototype.has=a,l.prototype.set=c,e.exports=l},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,r){var n=r(74),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():i.call(t,r,1),--this.size,!0)}},function(e,t,r){var n=r(74);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},function(e,t,r){var n=r(74);e.exports=function(e){return n(this.__data__,e)>-1}},function(e,t,r){var n=r(74);e.exports=function(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}},function(e,t,r){var n=r(73);e.exports=function(){this.__data__=new n,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,r){var n=r(73),i=r(129),o=r(705);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var s=r.__data__;if(!i||s.length<199)return s.push([e,t]),this.size=++r.size,this;r=this.__data__=new o(s)}return r.set(e,t),this.size=r.size,this}},function(e,t,r){var n=r(256),i=r(702),o=r(33),s=r(257),a=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,h=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(n(e)?h:a).test(s(e))}},function(e,t,r){var n,i=r(703),o=(n=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!o&&o in e}},function(e,t,r){var n=r(20)["__core-js_shared__"];e.exports=n},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,r){var n=r(706),i=r(713),o=r(715),s=r(716),a=r(717);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=s,c.prototype.set=a,e.exports=c},function(e,t,r){var n=r(707),i=r(73),o=r(129);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||i),string:new n}}},function(e,t,r){var n=r(708),i=r(709),o=r(710),s=r(711),a=r(712);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=s,c.prototype.set=a,e.exports=c},function(e,t,r){var n=r(75);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,r){var n=r(75),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return i.call(t,e)?t[e]:void 0}},function(e,t,r){var n=r(75),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:i.call(t,e)}},function(e,t,r){var n=r(75);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t,r){var n=r(76);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,r){var n=r(76);e.exports=function(e){return n(this,e).get(e)}},function(e,t,r){var n=r(76);e.exports=function(e){return n(this,e).has(e)}},function(e,t,r){var n=r(76);e.exports=function(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}},function(e,t){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}},function(e,t,r){var n=r(34),i=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},function(e,t,r){var n=r(77),i=r(130);e.exports=function(e,t){return e&&n(t,i(t),e)}},function(e,t){e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},function(e,t,r){var n=r(723),i=r(45),o=Object.prototype,s=o.hasOwnProperty,a=o.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(e){return i(e)&&s.call(e,"callee")&&!a.call(e,"callee")};e.exports=c},function(e,t,r){var n=r(62),i=r(45);e.exports=function(e){return i(e)&&"[object Arguments]"==n(e)}},function(e,t){e.exports=function(){return!1}},function(e,t){var r=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&r.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,r){var n=r(727),i=r(132),o=r(133),s=o&&o.isTypedArray,a=s?i(s):n;e.exports=a},function(e,t,r){var n=r(62),i=r(262),o=r(45),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!s[n(e)]}},function(e,t,r){var n=r(134),i=r(729),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return i(e);var t=[];for(var r in Object(e))o.call(e,r)&&"constructor"!=r&&t.push(r);return t}},function(e,t,r){var n=r(263)(Object.keys,Object);e.exports=n},function(e,t,r){var n=r(77),i=r(135);e.exports=function(e,t){return e&&n(t,i(t),e)}},function(e,t,r){var n=r(33),i=r(134),o=r(732),s=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=i(e),r=[];for(var a in e)("constructor"!=a||!t&&s.call(e,a))&&r.push(a);return r}},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},function(e,t,r){(function(e){var n=r(20),i=t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,s=o&&o.exports===i?n.Buffer:void 0,a=s?s.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=a?a(r):new e.constructor(r);return e.copy(n),n}}).call(this,r(42)(e))},function(e,t){e.exports=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}},function(e,t,r){var n=r(77),i=r(136);e.exports=function(e,t){return n(e,i(e),t)}},function(e,t){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,o=[];++r<n;){var s=e[r];t(s,r,e)&&(o[i++]=s)}return o}},function(e,t,r){var n=r(77),i=r(266);e.exports=function(e,t){return n(e,i(e),t)}},function(e,t,r){var n=r(269),i=r(136),o=r(130);e.exports=function(e){return n(e,o,i)}},function(e,t,r){var n=r(269),i=r(266),o=r(135);e.exports=function(e){return n(e,o,i)}},function(e,t,r){var n=r(34)(r(20),"DataView");e.exports=n},function(e,t,r){var n=r(34)(r(20),"Promise");e.exports=n},function(e,t,r){var n=r(34)(r(20),"Set");e.exports=n},function(e,t,r){var n=r(34)(r(20),"WeakMap");e.exports=n},function(e,t){var r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&r.call(e,"index")&&(n.index=e.index,n.input=e.input),n}},function(e,t,r){var n=r(138),i=r(747),o=r(748),s=r(749),a=r(750);e.exports=function(e,t,r){var c=e.constructor;switch(t){case"[object ArrayBuffer]":return n(e);case"[object Boolean]":case"[object Date]":return new c(+e);case"[object DataView]":return i(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return a(e,r);case"[object Map]":return new c;case"[object Number]":case"[object String]":return new c(e);case"[object RegExp]":return o(e);case"[object Set]":return new c;case"[object Symbol]":return s(e)}}},function(e,t,r){var n=r(20).Uint8Array;e.exports=n},function(e,t,r){var n=r(138);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}},function(e,t){var r=/\w*$/;e.exports=function(e){var t=new e.constructor(e.source,r.exec(e));return t.lastIndex=e.lastIndex,t}},function(e,t,r){var n=r(128),i=n?n.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},function(e,t,r){var n=r(138);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},function(e,t,r){var n=r(752),i=r(268),o=r(134);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:n(i(e))}},function(e,t,r){var n=r(33),i=Object.create,o=function(){function e(){}return function(t){if(!n(t))return{};if(i)return i(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();e.exports=o},function(e,t,r){var n=r(754),i=r(132),o=r(133),s=o&&o.isMap,a=s?i(s):n;e.exports=a},function(e,t,r){var n=r(137),i=r(45);e.exports=function(e){return i(e)&&"[object Map]"==n(e)}},function(e,t,r){var n=r(756),i=r(132),o=r(133),s=o&&o.isSet,a=s?i(s):n;e.exports=a},function(e,t,r){var n=r(137),i=r(45);e.exports=function(e){return i(e)&&"[object Set]"==n(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});r(1).__exportStar(r(758),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigurationModel=t.Configuration=void 0;const n=r(1).__importDefault(r(254)),i=r(0);t.Configuration=class{constructor(e,t,r=new o,n={}){this.defaultConfiguration=e,this.userConfiguration=t,this.workspaceConfiguration=r,this.folderConfigurations=n,this.folderCombinedConfigs={}}getValue(e,t,r){return this.getCombinedResourceConfig(t,r).getValue(e)}inspect(e,t,r){const n=this.getCombinedResourceConfig(t,r),i=this.getFolderResourceConfig(t,r);return{default:this.defaultConfiguration.getValue(e),user:this.userConfiguration.getValue(e),workspace:t?this.workspaceConfiguration.getValue(e):void 0,workspaceFolder:i?i.getValue(e):void 0,value:n.getValue(e)}}getCombinedResourceConfig(e,t){const r=this.getCombinedConfig();if(!e||!t)return r;const n=e.getWorkspaceFolder(t);return n&&this.getFolderCombinedConfig(n.uri.toString())||r}getCombinedConfig(){return this.combinedConfig||(this.combinedConfig=this.defaultConfiguration.merge(this.userConfiguration,this.workspaceConfiguration)),this.combinedConfig}getFolderCombinedConfig(e){if(this.folderCombinedConfigs[e])return this.folderCombinedConfigs[e];const t=this.getCombinedConfig(),r=this.folderConfigurations[e];if(!r)return t;const n=t.merge(r);return this.folderCombinedConfigs[e]=n,n}getFolderResourceConfig(e,t){if(!e||!t)return;const r=e.getWorkspaceFolder(t);return r?this.folderConfigurations[r.uri.toString()]:void 0}};class o{constructor(e={},t=[]){this.contents=e,this.keys=t}getValue(e){if(!e)return this.contents;const t=e.split(".");let r=this.contents;for(const e of t){if("object"!=typeof r||null===r)return;r=r[e]}return r}merge(...e){const t=(0,n.default)(this.contents),r=[...this.keys];for(const n of e)this.mergeContents(t,n.contents),this.mergeKeys(r,n.keys);return new o(t,r)}mergeContents(e,t){for(const r of Object.keys(t))r in e&&(0,i.isObject)(e[r])&&(0,i.isObject)(t[r])?this.mergeContents(e[r],t[r]):e[r]=(0,n.default)(t[r])}mergeKeys(e,t){for(const r of t)-1===e.indexOf(r)&&e.push(r)}}t.ConfigurationModel=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtHostProgress=void 0;const n=r(1),i=r(0),o=r(7),s=r(5);t.ExtHostProgress=class{constructor(e){this.rpcProtocol=e,this._handles=0,this._mapHandleToCancellationSource=new Map,this._proxy=this.rpcProtocol.getProxy(o.MainThreadAPIIdentifier.MainThreadProgress)}withProgress(e,t,r){const n=this._handles++,{title:o,location:a,cancellable:c}=t,l=(0,i.formatLocalize)("extensionSource","{0} (Extension)",e.name);return this._proxy.$startProgress(n,{location:s.ProgressLocation.from(a),title:o,source:l,cancellable:c},e),this._withProgress(n,r,!!c)}_withProgress(e,t,r){let n;r&&(n=new i.CancellationTokenSource,this._mapHandleToCancellationSource.set(e,n));const o=e=>{this._proxy.$progressEnd(e),this._mapHandleToCancellationSource.delete(e),n&&n.dispose()};let s;try{s=t(new a(this._proxy,e),r&&n?n.token:i.CancellationToken.None)}catch(t){throw o(e),t}return s.then(t=>o(e),t=>o(e)),s}$acceptProgressCanceled(e){const t=this._mapHandleToCancellationSource.get(e);t&&(t.cancel(),this._mapHandleToCancellationSource.delete(e))}};class a extends i.Progress{constructor(e,t){super(e=>this.throttledReport(e)),this._proxy=e,this._handle=t}throttledReport(e){this._proxy.$progressReport(this._handle,e)}}n.__decorate([(0,i.throttle)(100,(e,t)=>function(e,t){return e.message=t.message,"number"==typeof t.increment&&("number"==typeof e.increment?e.increment+=t.increment:e.increment=t.increment),e}(e,t),()=>Object.create(null)),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],a.prototype,"throttledReport",null)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtHostQuickOpen=void 0;const n=r(0),i=r(7),o=r(4);t.ExtHostQuickOpen=class{constructor(e,t){this.workspace=t,this.createdQuicks=new Map,this.createdInputBoxs=new Map,this.currentQuick=0,this.proxy=e.getProxy(i.MainThreadAPIIdentifier.MainThreadQuickOpen)}async showQuickPick(e,t,r=n.CancellationToken.None){var i,s;this._onDidSelectItem=void 0;const a=null!==(i=null==t?void 0:t._sessionId)&&void 0!==i?i:++this.currentQuick,c=await e;t&&"function"==typeof t.onDidSelectItem&&(this._onDidSelectItem=e=>{t.onDidSelectItem(c[e])});const l=[],u=[];for(const[e,t]of c.entries())if("string"==typeof t)l.push({label:t,value:e});else if(t.kind===o.QuickPickItemKind.Separator)u.push(t);else{const r=null===(s=u.pop())||void 0===s?void 0:s.label;l.push({label:t.label,groupLabel:r,description:t.description,detail:t.detail,value:e,buttons:t.buttons,showBorder:void 0!==r})}const d=this.proxy.$showQuickPick(a,l,t&&{canPickMany:t.canPickMany,placeholder:t.placeHolder,fuzzyMatchDescription:t.matchOnDescription,fuzzyMatchDetail:t.matchOnDetail,ignoreFocusOut:t.ignoreFocusOut,keepScrollPosition:t.keepScrollPosition,title:t.title,buttons:t.buttons,step:t.step,totalSteps:t.totalSteps,value:t.value}),h=await(0,n.hookCancellationToken)(r,d);if(!(0,n.isUndefined)(h))return Array.isArray(h)?h.map(e=>c[e]):c[h]}$onItemSelected(e){this._onDidSelectItem&&this._onDidSelectItem(e)}async showWorkspaceFolderPick(e,t=n.CancellationToken.None){const r=await this.workspace.resolveWorkspaceFolder();if(!r)return;const i=++this.currentQuick,o=r.map(e=>({label:e.name,value:e.index})),s=this.proxy.$showQuickPick(i,o,e&&{placeholder:e.placeHolder,ignoreFocusOut:e.ignoreFocusOut}),a=await(0,n.hookCancellationToken)(t,s);return r.find(e=>e.index===a)}hideQuickPick(){this.proxy.$hideQuickPick()}createQuickPick(){const e=++this.currentQuick,t=new s(this,e);return this.createdQuicks.set(e,t),t}createInputBox(){const e=++this.currentQuick,t=new a(e,this.proxy,this,()=>{this.createdInputBoxs.delete(e)});return this.createdInputBoxs.set(e,t),t}$onDidChangeValue(e,t){const r=this.createdQuicks.get(e);r&&r._fireDidChangeValue(t)}$onCreatedInputBoxDidChangeValue(e,t){const r=this.createdInputBoxs.get(e);r&&r._fireDidChangeValue(t)}$onCreatedInputBoxDidAccept(e){const t=this.createdInputBoxs.get(e);t&&t._fireDidAccept()}$onCreatedInputBoxDidHide(e){const t=this.createdInputBoxs.get(e);t&&t._fireDidHide()}$onCreatedInputBoxDidTriggerButton(e,t){const r=this.createdInputBoxs.get(e);r&&r._fireDidTriggerButton(t)}$onDidTriggerButton(e){var t;return null===(t=this.createdQuicks.get(this.currentQuick))||void 0===t?void 0:t.attachBtn(e)}$onDidTriggerItemButton(e,t){var r;return null===(r=this.createdQuicks.get(this.currentQuick))||void 0===r?void 0:r.attachItemBtn(e,t)}showInputBox(e={},t=n.CancellationToken.None){this.validateInputHandler=e&&e.validateInput,this.hideInputBox();const r=this.proxy.$showQuickInput(e,"function"==typeof this.validateInputHandler);return(0,n.hookCancellationToken)(t,r)}$validateInput(e){if(this.validateInputHandler)return this.validateInputHandler(e)}hideInputBox(){this.proxy.$hideQuickInput()}};class s{constructor(e,t){this.quickOpen=e,this.value="",this._buttons=[],this._items=[],this._handlesToItems=new Map,this._itemsToHandles=new Map,this._activeItems=[],this._placeholder="",this.didShow=!1,this.quickPickIndex=t,this.disposableCollection=new n.DisposableCollection,this.disposableCollection.push(this._onDidHideEmitter=new n.Emitter),this.disposableCollection.push(this._onDidAcceptEmitter=new n.Emitter),this.disposableCollection.push(this._onDidChangeActiveEmitter=new n.Emitter),this.disposableCollection.push(this._onDidChangeSelectionEmitter=new n.Emitter),this.disposableCollection.push(this._onDidChangeValueEmitter=new n.Emitter),this.disposableCollection.push(this._onDidTriggerButtonEmitter=new n.Emitter),this.disposableCollection.push(this._onDidTriggerItemButtonEmitter=new n.Emitter)}get items(){return this._items}set items(e){this._items=e,this._handlesToItems.clear(),this._itemsToHandles.clear(),this._items.forEach((e,t)=>{this._handlesToItems.set(t,e),this._itemsToHandles.set(e,t)}),this.didShow&&this.show()}get activeItems(){return this._activeItems}set activeItems(e){this._activeItems=e}get onDidAccept(){return this._onDidAcceptEmitter.event}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e}get onDidChangeActive(){return this._onDidChangeActiveEmitter.event}get onDidChangeSelection(){return this._onDidChangeSelectionEmitter.event}get onDidChangeValue(){return this._onDidChangeValueEmitter.event}get buttons(){return this._buttons}set buttons(e){this._buttons=e}get onDidTriggerButton(){return this._onDidTriggerButtonEmitter.event}get onDidTriggerItemButton(){return this._onDidTriggerItemButtonEmitter.event}_fireDidChangeValue(e){this.value=e,this._onDidChangeValueEmitter.fire(e)}get onDidHide(){return this._onDidHideEmitter.event}dispose(){this.disposableCollection.dispose()}attachBtn(e){const t=this.buttons[e];return this._onDidTriggerButtonEmitter.fire(t)}attachItemBtn(e,t){const r=this._handlesToItems.get(e);if(!r||!r.buttons||!r.buttons.length)return;const n=r.buttons[t];return n?this._onDidTriggerItemButtonEmitter.fire({button:n,item:r}):void 0}hide(){this.quickOpen.hideQuickPick()}show(){this.didShow=!0;const e=()=>{this._onDidHideEmitter.fire(void 0)},t=e=>{const t=Array.isArray(e)?e:[e];this.selectedItems=this.activeItems=t,this._onDidAcceptEmitter.fire(void 0),this._onDidChangeSelectionEmitter.fire(t)};this.quickOpen.showQuickPick(this.items.map(e=>e),{canPickMany:this.canSelectMany,title:this.title,step:this.step,totalSteps:this.totalSteps,buttons:this.buttons,placeHolder:this.placeholder,ignoreFocusOut:this.ignoreFocusOut,_sessionId:this.quickPickIndex,keepScrollPosition:this.keepScrollPosition,value:this.value}).then(r=>{(0,n.isUndefined)(r)||t(r),e()})}}class a extends class{constructor(e,t,r,i){this._id=e,this.proxy=t,this.quickOpen=r,this._disposed=!1,this._pendingUpdate={},this._buttons=[],this._step=0,this._title="",this._totalSteps=0,this._value="",this._prompt="",this._placeholder="",this._password=!1,this._ignoreFocusOut=!1,this._busy=!1,this.disposableCollection=new n.DisposableCollection,this.disposableCollection.push(this._onDidAcceptEmitter=new n.Emitter),this.disposableCollection.push(this._onDidChangeValueEmitter=new n.Emitter),this.disposableCollection.push(this._onDidTriggerButtonEmitter=new n.Emitter),this.disposableCollection.push(this._onDidHideEmitter=new n.Emitter),this.disposableCollection.push(n.Disposable.create(i))}get ignoreFocusOut(){return this._ignoreFocusOut}set ignoreFocusOut(e){this._ignoreFocusOut=e,this.update({ignoreFocusOut:e})}get buttons(){return this._buttons}set buttons(e){this._buttons=e,this.update({buttons:e})}get busy(){return this._busy}set busy(e){this._busy=e,this.update({busy:e})}get title(){return this._title}set title(e){this._title=e,this.update({title:e})}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this.update({enabled:e})}get password(){return this._password}set password(e){this._password=e,this.update({password:e})}get value(){return this._value}set value(e){this._value=e,this.update({value:e})}get totalSteps(){return this._totalSteps}set totalSteps(e){this._totalSteps=e,this.update({totalSteps:e})}get step(){return this._step}set step(e){this._step=e,this.update({step:e})}get prompt(){return this._prompt}set prompt(e){this._prompt=e,this.update({prompt:e})}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.update({placeHolder:e})}get validationMessage(){return this._validationMessage}set validationMessage(e){var t;this._validationMessage=e,e?"string"==typeof e?this.update({validationMessage:e,severity:i.Severity.Error}):this.update({validationMessage:e.message,severity:null!==(t=e.severity)&&void 0!==t?t:i.Severity.Error}):this.update({validationMessage:void 0,severity:i.Severity.Ignore})}getOptions(){var e;return{value:this.value,prompt:this.prompt,placeHolder:this.placeholder,password:this.password,ignoreFocusOut:this.ignoreFocusOut,title:this._title,totalSteps:this.totalSteps,step:this.step,validationMessage:"string"==typeof this.validationMessage?this.validationMessage:null===(e=this.validationMessage)||void 0===e?void 0:e.message,buttons:this.buttons,busy:this.busy,enabled:this.enabled}}doUpdate(){"inputBox"===this.type&&this.proxy.$createOrUpdateInputBox(this._id,this._pendingUpdate),this._pendingUpdate={}}update(e){if(!this._disposed){for(const t of Object.keys(e))this._pendingUpdate[t]=void 0===e[t]?null:e[t];this._pendingUpdate=Object.assign(Object.assign({},this._pendingUpdate),e),this._updateTimeout||(this._updateTimeout=setTimeout(()=>{this._updateTimeout=void 0,this.doUpdate()},0))}}_fireDidChangeValue(e){this.value=e,this._onDidChangeValueEmitter.fire(e)}_fireDidAccept(){this._onDidAcceptEmitter.fire()}_fireDidTriggerButton(e){this._onDidTriggerButtonEmitter.fire(this.buttons[e])}_fireDidHide(){this._onDidHideEmitter.fire()}get onDidChangeValue(){return this._onDidChangeValueEmitter.event}get onDidAccept(){return this._onDidAcceptEmitter.event}get onDidTriggerButton(){return this._onDidTriggerButtonEmitter.event}get onDidHide(){return this._onDidHideEmitter.event}show(){this.update(this.getOptions())}hide(){"inputBox"===this.type&&this.proxy.$hideInputBox(this._id)}dispose(){this._disposed||(this.disposableCollection.dispose(),this._updateTimeout&&(clearTimeout(this._updateTimeout),this._updateTimeout=void 0),this.proxy.$disposeInputBox(this._id),this._disposed=!0)}}{constructor(){super(...arguments),this.type="inputBox"}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtHostSCM=t.ExtHostSCMInputBox=void 0;const n=r(1),i=r(0),o=r(7),{sortedDiff:s}=i.arrays;function a(e){if(e)return"string"==typeof e.iconPath?i.Uri.file(e.iconPath).toString():e.iconPath?""+e.iconPath:void 0}function c(e,t){if(!e.iconPath&&!t.iconPath)return 0;if(!e.iconPath)return-1;if(!t.iconPath)return 1;const r="string"==typeof e.iconPath?e.iconPath:e.iconPath.fsPath,n="string"==typeof t.iconPath?t.iconPath:t.iconPath.fsPath;return(0,i.comparePaths)(r,n)}function l(e,t){let r=(0,i.comparePaths)(e.resourceUri.fsPath,t.resourceUri.fsPath,!0);if(0!==r)return r;if(e.decorations&&t.decorations)r=function(e,t){let r=0;if(e.strikeThrough!==t.strikeThrough)return e.strikeThrough?1:-1;if(e.faded!==t.faded)return e.faded?1:-1;if(e.tooltip!==t.tooltip)return(e.tooltip||"").localeCompare(t.tooltip||"");if(r=c(e,t),0!==r)return r;if(e.light&&t.light)r=c(e.light,t.light);else{if(e.light)return 1;if(t.light)return-1}if(0!==r)return r;if(e.dark&&t.dark)r=c(e.dark,t.dark);else{if(e.dark)return 1;if(t.dark)return-1}return r}(e.decorations,t.decorations);else{if(e.decorations)return 1;if(t.decorations)return-1}return r}function u(e,t){return e.command===t.command&&e.title===t.title&&e.tooltip===t.tooltip&&(e.arguments&&t.arguments?function(e,t){for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}(e.arguments,t.arguments):e.arguments===t.arguments)}class d{get value(){return this._value}set value(e){this._proxy.$setInputBoxValue(this._sourceControlHandle,e),this.updateValue(e)}get onDidChange(){return this._onDidChange.event}get placeholder(){return this._placeholder}set placeholder(e){this._proxy.$setInputBoxPlaceholder(this._sourceControlHandle,e),this._placeholder=e}get validateInput(){return this._validateInput}set validateInput(e){e&&"function"!=typeof e?(0,i.getDebugLogger)().warn("Invalid SCM input box validation function"):(this._validateInput=e,this._proxy.$setValidationProviderIsEnabled(this._sourceControlHandle,!!e))}get visible(){return this._visible}set visible(e){e=!!e,this._visible=e,this._proxy.$setInputBoxVisibility(this._sourceControlHandle,e)}constructor(e,t,r){this._extension=e,this._proxy=t,this._sourceControlHandle=r,this._value="",this._onDidChange=new i.Emitter,this._placeholder="",this._visible=!0}$onInputBoxValueChange(e){this.updateValue(e)}updateValue(e){this._value=e,this._onDidChange.fire(e)}}t.ExtHostSCMInputBox=d;class h{get id(){return this._id}get label(){return this._label}set label(e){this._label=e,this._proxy.$updateGroupLabel(this._sourceControlHandle,this.handle,e)}get hideWhenEmpty(){return this._hideWhenEmpty}set hideWhenEmpty(e){this._hideWhenEmpty=e,this._proxy.$updateGroup(this._sourceControlHandle,this.handle,{hideWhenEmpty:e})}get resourceStates(){return[...this._resourceStates]}set resourceStates(e){this._resourceStates=[...e],this._onDidUpdateResourceStates.fire()}constructor(e,t,r,n,o){this._proxy=e,this._commands=t,this._sourceControlHandle=r,this._id=n,this._label=o,this._resourceHandlePool=0,this._resourceStates=[],this._resourceStatesMap=new Map,this._resourceStatesCommandsMap=new Map,this._resourceStatesDisposablesMap=new Map,this._onDidUpdateResourceStates=new i.Emitter,this.onDidUpdateResourceStates=this._onDidUpdateResourceStates.event,this._onDidDispose=new i.Emitter,this.onDidDispose=this._onDidDispose.event,this._handlesSnapshot=[],this._resourceSnapshot=[],this._hideWhenEmpty=void 0,this.handle=h._handlePool++,this._proxy.$registerGroup(r,this.handle,n,o)}getResourceState(e){return this._resourceStatesMap.get(e)}$executeResourceCommand(e,t){const r=this._resourceStatesCommandsMap.get(e);return r?(0,i.asPromise)(()=>this._commands.executeCommand(r.command,...r.arguments||[],t)):Promise.resolve(void 0)}_takeResourceStateSnapshot(){const e=[...this._resourceStates].sort(l),t=s(this._resourceSnapshot,e,l).map(e=>{const t=e.toInsert.map(e=>{const t=this._resourceHandlePool++;this._resourceStatesMap.set(t,e);const r=e.resourceUri,n=a(e.decorations),o=e.decorations&&a(e.decorations.light)||n,s=e.decorations&&a(e.decorations.dark)||n,c=[];let l;if(e.command)if("vscode.open"===e.command.command||"vscode.diff"===e.command.command){const r=new i.DisposableStore;l=this._commands.converter.toInternal(e.command,r),this._resourceStatesDisposablesMap.set(t,r)}else this._resourceStatesCommandsMap.set(t,e.command);o&&c.push(o),s&&s!==o&&c.push(s);return{rawResource:[t,r,c,e.decorations&&e.decorations.tooltip||"",e.decorations&&!!e.decorations.strikeThrough,e.decorations&&!!e.decorations.faded,e.contextValue||"",l],handle:t}});return{start:e.start,deleteCount:e.deleteCount,toInsert:t}}),r=t.map(({start:e,deleteCount:t,toInsert:r})=>[e,t,r.map(e=>e.rawResource)]),n=t.reverse();for(const{start:e,deleteCount:t,toInsert:r}of n){const n=r.map(e=>e.handle),i=this._handlesSnapshot.splice(e,t,...n);for(const e of i)this._resourceStatesMap.delete(e),this._resourceStatesCommandsMap.delete(e)}return this._resourceSnapshot=e,r}dispose(){this._proxy.$unregisterGroup(this._sourceControlHandle,this.handle),this._onDidDispose.fire()}}h._handlePool=0;class f{get actionButton(){return this._actionButton}set actionButton(e){var t,r;let n;this._actionButtonDisposables.value=new i.DisposableStore,this._actionButton=e,n=(0,i.isUndefined)(e)?void 0:"string"==typeof(null==e?void 0:e.command)?{command:this._commands.converter.toInternal(e,this._actionButtonDisposables.value),secondaryCommands:null===(t=e.secondaryCommands)||void 0===t?void 0:t.map(e=>e.map(e=>this._commands.converter.toInternal(e,this._actionButtonDisposables.value))),description:e.title,enabled:!0}:{command:this._commands.converter.toInternal(e.command,this._actionButtonDisposables.value),secondaryCommands:null===(r=e.secondaryCommands)||void 0===r?void 0:r.map(e=>e.map(e=>this._commands.converter.toInternal(e,this._actionButtonDisposables.value))),description:e.description||e.tooltip,enabled:e.enabled},this._proxy.$updateSourceControl(this.handle,{actionButton:null!=n?n:null})}get id(){return this._id}get label(){return this._label}get rootUri(){return this._rootUri}get inputBox(){return this._inputBox}get count(){return this._count}set count(e){this._count!==e&&(this._count=e,this._proxy.$updateSourceControl(this.handle,{count:e}))}get quickDiffProvider(){return this._quickDiffProvider}set quickDiffProvider(e){this._quickDiffProvider=e,this._proxy.$updateSourceControl(this.handle,{hasQuickDiffProvider:!!e})}get commitTemplate(){return this._commitTemplate}set commitTemplate(e){this._commitTemplate=e,this._proxy.$updateSourceControl(this.handle,{commitTemplate:e})}get acceptInputCommand(){return this._acceptInputCommand}set acceptInputCommand(e){this._acceptInputDisposables.value=new i.DisposableStore,this._acceptInputCommand=e;const t=this._commands.converter.toInternal(e,this._acceptInputDisposables.value);this._proxy.$updateSourceControl(this.handle,{acceptInputCommand:t})}get statusBarCommands(){return this._statusBarCommands}set statusBarCommands(e){if(this._statusBarCommands&&e&&function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!u(e[r],t[r]))return!1;return!0}(this._statusBarCommands,e))return;this._statusBarDisposables.value=new i.DisposableStore,this._statusBarCommands=e;const t=(e||[]).map(e=>this._commands.converter.toInternal(e,this._statusBarDisposables.value));this._proxy.$updateSourceControl(this.handle,{statusBarCommands:t})}get selected(){return this._selected}constructor(e,t,r,n,o,s){this._proxy=t,this._commands=r,this._id=n,this._label=o,this._rootUri=s,this._groups=new Map,this._actionButtonDisposables=new i.MutableDisposable,this._count=void 0,this._quickDiffProvider=void 0,this._commitTemplate=void 0,this._acceptInputDisposables=new i.MutableDisposable,this._acceptInputCommand=void 0,this._statusBarDisposables=new i.MutableDisposable,this._statusBarCommands=void 0,this._selected=!1,this._onDidChangeSelection=new i.Emitter,this.onDidChangeSelection=this._onDidChangeSelection.event,this.handle=f._handlePool++,this.updatedResourceGroups=new Set,this._inputBox=new d(e,this._proxy,this.handle),this._proxy.$registerSourceControl(this.handle,n,o,s)}createResourceGroup(e,t){const r=new h(this._proxy,this._commands,this.handle,e,t),n=r.onDidUpdateResourceStates(()=>{this.updatedResourceGroups.add(r),this.eventuallyUpdateResourceStates()});return i.Event.once(r.onDidDispose)(()=>{this.updatedResourceGroups.delete(r),n.dispose(),this._groups.delete(r.handle)}),this._groups.set(r.handle,r),r}eventuallyUpdateResourceStates(){const e=[];this.updatedResourceGroups.forEach(t=>{const r=t._takeResourceStateSnapshot();0!==r.length&&e.push([t.handle,r])}),e.length>0&&this._proxy.$spliceResourceStates(this.handle,e),this.updatedResourceGroups.clear()}getResourceGroup(e){return this._groups.get(e)}setSelectionState(e){this._selected=e,this._onDidChangeSelection.fire(e)}dispose(){this._acceptInputDisposables.dispose(),this._statusBarDisposables.dispose(),this._groups.forEach(e=>e.dispose()),this._proxy.$unregisterSourceControl(this.handle)}}f._handlePool=0,n.__decorate([(0,i.debounce)(100),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],f.prototype,"eventuallyUpdateResourceStates",null);class p{get onDidChangeActiveProvider(){return this._onDidChangeActiveProvider.event}constructor(e,t){this._commands=t,this.logger=(0,i.getDebugLogger)(),this._sourceControls=new Map,this._sourceControlsByExtension=new Map,this._onDidChangeActiveProvider=new i.Emitter,this._selectedSourceControlHandles=new Set,this._proxy=e.getProxy(o.MainThreadAPIIdentifier.MainThreadSCM),t.registerArgumentProcessor({processArgument:e=>{if(e&&3===e.$mid){const t=this._sourceControls.get(e.sourceControlHandle);if(!t)return e;const r=t.getResourceGroup(e.groupHandle);return r?r.getResourceState(e.handle):e}if(e&&4===e.$mid){const t=this._sourceControls.get(e.sourceControlHandle);return t?t.getResourceGroup(e.groupHandle):e}if(e&&5===e.$mid){const t=this._sourceControls.get(e.handle);return t||e}return e}})}createSourceControl(e,t,r,n){this.logger.log("ExtHostSCM#createSourceControl",e.id,t,r,n);const i=p._handlePool++,o=new f(e,this._proxy,this._commands,t,r,n);this._sourceControls.set(i,o);const s=this._sourceControlsByExtension.get(e.id)||[];return s.push(o),this._sourceControlsByExtension.set(e.id,s),o}getLastInputBox(e){this.logger.log("ExtHostSCM#getLastInputBox",e.id);const t=this._sourceControlsByExtension.get(e.id),r=t&&t[t.length-1];return r&&r.inputBox}$provideOriginalResource(e,t,r){const n=i.Uri.revive(t);this.logger.log("ExtHostSCM#$provideOriginalResource",e,n.toString());const o=this._sourceControls.get(e);return o&&o.quickDiffProvider&&o.quickDiffProvider.provideOriginalResource?(0,i.asPromise)(()=>o.quickDiffProvider.provideOriginalResource(n,r)).then(e=>e||null):Promise.resolve(null)}$onInputBoxValueChange(e,t){this.logger.log("ExtHostSCM#$onInputBoxValueChange",e);const r=this._sourceControls.get(e);return r?(r.inputBox.$onInputBoxValueChange(t),Promise.resolve(void 0)):Promise.resolve(void 0)}$executeResourceCommand(e,t,r,n){this.logger.log("ExtHostSCM#$executeResourceCommand",e,t,r);const i=this._sourceControls.get(e);if(!i)return Promise.resolve(void 0);const o=i.getResourceGroup(t);return o?o.$executeResourceCommand(r,n):Promise.resolve(void 0)}$validateInput(e,t,r){this.logger.log("ExtHostSCM#$validateInput",e);const n=this._sourceControls.get(e);return n&&n.inputBox.validateInput?(0,i.asPromise)(()=>n.inputBox.validateInput(t,r)).then(e=>e?Promise.resolve([e.message.toString(),e.type]):Promise.resolve(void 0)):Promise.resolve(void 0)}$setSelectedSourceControls(e){this.logger.log("ExtHostSCM#$setSelectedSourceControls",e);const t=new Set;for(const r of e)t.add(r);return t.forEach(e=>{if(!this._selectedSourceControlHandles.has(e)){const t=this._sourceControls.get(e);if(!t)return;t.setSelectionState(!0)}}),this._selectedSourceControlHandles.forEach(e=>{if(!t.has(e)){const t=this._sourceControls.get(e);if(!t)return;t.setSelectionState(!1)}}),this._selectedSourceControlHandles=t,Promise.resolve(void 0)}}t.ExtHostSCM=p,p._handlePool=0},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.StatusBarItemImpl=t.ExtHostStatusBar=void 0;const n=r(1),i=r(0),o=r(7),s=r(5),a=r(4),c=n.__importStar(r(4));t.ExtHostStatusBar=class{constructor(e){this.argumentProcessors=[],this.rpcProtocol=e,this.proxy=this.rpcProtocol.getProxy(o.MainThreadAPIIdentifier.MainThreadStatusBar)}setStatusBarMessage(t,r){let n;return this.proxy.$setStatusBarMessage(t),"number"==typeof r?n=e.setTimeout(()=>this.proxy.$dispose(),r):void 0!==r&&r.then(()=>this.proxy.$dispose(),()=>this.proxy.$dispose()),a.Disposable.create(()=>{this.proxy.$dispose(),n&&clearTimeout(n)})}createStatusBarItem(e,t,r,n){const i=new l(this.rpcProtocol,e,t,r,n);return this.proxy.$createStatusBarItem(i.entryId,i.id,i.alignment,i.priority),i}};class l{constructor(e,t,r,n=c.StatusBarAlignment.Left,i=0){this._rpcProtocol=e,this._extension=t,this._id=r,this._alignment=n,this._priority=i,this._entryId=l.nextId(),this._text="",this._proxy=this._rpcProtocol.getProxy(o.MainThreadAPIIdentifier.MainThreadStatusBar)}get id(){var e;return null!==(e=this._id)&&void 0!==e?e:this._extension.identifier.value}get entryId(){return this._entryId}get alignment(){return this._alignment}get priority(){return this._priority}get text(){return this._text}set text(e){this._text=e,this.update()}get name(){return this._name}set name(e){this._name=e,this.update()}get tooltip(){return this._tooltip}set tooltip(e){this._tooltip=e,this.update()}get color(){return this._color}set color(e){this._color=e,this.update()}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){e&&!l.ALLOWED_BACKGROUND_COLORS.has(e.id)&&(e=void 0),this._backgroundColor=e,this.update()}get accessibilityInformation(){return this._accessibilityInformation}set accessibilityInformation(e){this._accessibilityInformation=e,this.update()}get command(){return this._command}set command(e){this._command=e,this.update()}show(){this._isVisible=!0,this.update()}hide(){this._timeoutHandle&&clearTimeout(this._timeoutHandle),this._proxy.$dispose(this.entryId),this._isVisible=!1}update(){this._isVisible&&(this._timeoutHandle&&clearTimeout(this._timeoutHandle),this._timeoutHandle=e.setTimeout(()=>{var e,t;this._timeoutHandle=void 0;const r="string"==typeof this.command?this.command:null===(e=this.command)||void 0===e?void 0:e.command,n="string"==typeof this.command||null===(t=this.command)||void 0===t?void 0:t.arguments;let o,a;o=this._extension?this._id?`${this._extension.identifier.value}.${this._id}`:this._extension.identifier.value:this._id,a=this._name?this._name:(0,i.formatLocalize)("extension.label",this._extension.displayName||this._extension.name);let c=this._color;this._backgroundColor&&(c=l.ALLOWED_BACKGROUND_COLORS.get(this._backgroundColor.id)),this._proxy.$setMessage(this._entryId,o,a,this.text,this.priority,this.alignment,c,this._backgroundColor,s.MarkdownString.fromStrict(this.tooltip),this.accessibilityInformation,r,n)},0))}dispose(){this.hide()}static nextId(){return l.ID_PREFIX+":"+(0,i.uuid)()}}t.StatusBarItemImpl=l,l.ALLOWED_BACKGROUND_COLORS=new Map([["statusBarItem.errorBackground",new a.ThemeColor("statusBarItem.errorForeground")],["statusBarItem.warningBackground",new a.ThemeColor("statusBarItem.warningForeground")]]),l.ID_PREFIX="plugin-status-bar-item"}).call(this,r(11))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});r(1).__exportStar(r(764),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1);n.__exportStar(r(765),t),n.__exportStar(r(766),t),n.__exportStar(r(767),t),n.__exportStar(r(768),t),n.__exportStar(r(769),t),n.__exportStar(r(770),t),n.__exportStar(r(771),t),n.__exportStar(r(772),t),n.__exportStar(r(773),t),n.__exportStar(r(774),t),n.__exportStar(r(775),t),n.__exportStar(r(776),t),n.__exportStar(r(777),t),n.__exportStar(r(778),t),n.__exportStar(r(779),t),n.__exportStar(r(780),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ITerminalHoverManagerService=t.ITerminalGroupViewService=t.ITerminalSearchService=t.ITerminalController=void 0,t.ITerminalController=Symbol("ITerminalController"),t.ITerminalSearchService=Symbol("ITerminalSearchService"),t.ITerminalGroupViewService=Symbol("ITerminalGroupViewService"),t.ITerminalHoverManagerService=Symbol("ITerminalHoverManagerService")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ITerminalRestore=void 0,t.ITerminalRestore=Symbol("ITerminalRestore")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ITerminalErrorService=t.isTerminalError=t.ETerminalErrorType=void 0,function(e){e[e.CREATE_FAIL=0]="CREATE_FAIL"}(t.ETerminalErrorType||(t.ETerminalErrorType={})),t.isTerminalError=function(e){return void 0!==e.message},t.ITerminalErrorService=Symbol("ITerminalErrorService")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.asTerminalIcon=t.IExternalTerminalService=t.ITerminalServiceClient=t.ITerminalProcessService=t.ITerminalNodeService=t.PTY_SERVICE_PROXY_SERVER_PORT=t.PTY_SERVICE_PROXY_CALLBACK_PROTOCOL=t.PTY_SERVICE_PROXY_PROTOCOL=t.ITerminalProcessPath=t.ITerminalServicePath=void 0,t.ITerminalServicePath="ITerminalServicePath",t.ITerminalProcessPath="ITerminalProcessPath",t.PTY_SERVICE_PROXY_PROTOCOL="PTY_SERVICE_PROXY_PROTOCOL",t.PTY_SERVICE_PROXY_CALLBACK_PROTOCOL="PTY_SERVICE_PROXY_CALLBACK_PROTOCOL",t.PTY_SERVICE_PROXY_SERVER_PORT=10111,t.ITerminalNodeService=Symbol("ITerminalNodeService"),t.ITerminalProcessService=Symbol("ITerminalProcessService"),t.ITerminalServiceClient=Symbol("ITerminalServiceClient"),t.IExternalTerminalService=Symbol("IExternalTerminalService"),t.asTerminalIcon=function(e){if(e&&"string"!=typeof e)return"id"in e?{id:e.id,color:e.color}:e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ITerminalInternalService=t.ITerminalService=void 0,t.ITerminalService=Symbol("ITerminalService"),t.ITerminalInternalService=Symbol("ITerminalInternalService")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TERMINAL_ID_SEPARATOR=t.ITerminalClientFactory2=void 0,t.ITerminalClientFactory2=Symbol("ITerminalClientFactory2"),t.TERMINAL_ID_SEPARATOR="|"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ITerminalApiService=void 0,t.ITerminalApiService=Symbol("ITerminalApiService")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ITerminalTheme=void 0,t.ITerminalTheme=Symbol("ITerminalTheme")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateSessionId=t.apiActionViewUuid=t.userActionViewUuid=void 0;const n=r(0);let i=0;function o(){return i++}t.userActionViewUuid=()=>`UI_View_${(0,n.uuid)()}${o()}`;t.apiActionViewUuid=()=>`API_View_${(0,n.uuid)()}${o()}`;t.generateSessionId=()=>(0,n.uuid)()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ITerminalRenderProvider=t.ItemType=void 0,function(e){e[e.info=0]="info",e[e.add=1]="add"}(t.ItemType||(t.ItemType={})),t.ITerminalRenderProvider=Symbol("TerminalRenderProvider")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TerminalLocation=t.TerminalDataBufferer=void 0;t.TerminalDataBufferer=class{constructor(e){this._callback=e,this._terminalBufferMap=new Map}dispose(){for(const e of this._terminalBufferMap.values())e.dispose()}startBuffering(e,t,r=5){let n;return n=t(t=>{const i="string"==typeof t?t:t.data;let o=this._terminalBufferMap.get(e);if(o)return void o.data.push(i);const s=setTimeout(()=>this._flushBuffer(e),r);o={data:[i],timeoutId:s,dispose:()=>{clearTimeout(s),this._flushBuffer(e),n.dispose()}},this._terminalBufferMap.set(e,o)}),n}stopBuffering(e){const t=this._terminalBufferMap.get(e);t&&t.dispose()}_flushBuffer(e){const t=this._terminalBufferMap.get(e);t&&(this._terminalBufferMap.delete(e),this._callback(e,t.data.join("")))}},function(e){e[e.Panel=1]="Panel",e[e.Editor=2]="Editor"}(t.TerminalLocation||(t.TerminalLocation={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TerminalNetworkStatus=t.ITerminalNetwork=void 0,t.ITerminalNetwork=Symbol("ITerminalNetwork"),function(e){e[e.DISCONNECTED=0]="DISCONNECTED",e[e.CONNECTED=1]="CONNECTED"}(t.TerminalNetworkStatus||(t.TerminalNetworkStatus={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.computeLinks=t.LinkComputer=t.StateMachine=t.Uint8Matrix=void 0;const n=r(0);class i{constructor(e,t,r){const n=new Uint8Array(e*t);for(let i=0,o=e*t;i<o;i++)n[i]=r;this._data=n,this.rows=e,this.cols=t}get(e,t){return this._data[e*this.cols+t]}set(e,t,r){this._data[e*this.cols+t]=r}}t.Uint8Matrix=i;class o{constructor(e){let t=0,r=0;for(let n=0,i=e.length;n<i;n++){const[i,o,s]=e[n];o>t&&(t=o),i>r&&(r=i),s>r&&(r=s)}t++,r++;const n=new i(r,t,0);for(let t=0,r=e.length;t<r;t++){const[r,i,o]=e[t];n.set(r,i,o)}this._states=n,this._maxCharCode=t}nextState(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)}}t.StateMachine=o;let s=null;let a=null;class c{static _createLink(e,t,r,n,i){let o=i-1;do{const r=t.charCodeAt(o);if(2!==e.get(r))break;o--}while(o>n);if(n>0){const e=t.charCodeAt(n-1),r=t.charCodeAt(o);(40===e&&41===r||91===e&&93===r||123===e&&125===r)&&o--}return{range:{startLineNumber:r,startColumn:n+1,endLineNumber:r,endColumn:o+2},url:t.substring(n,o+1)}}static computeLinks(e,t=function(){return null===s&&(s=new o([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),s}()){const r=function(){if(null===a){a=new n.CharacterClassifier(0);const e=" \t<>'\"、。。、,.:;‘“〈《「『【〔([{「」}])〕】』」》〉”’`~…";for(let t=0;t<e.length;t++)a.set(e.charCodeAt(t),1);const t=".,;";for(let e=0;e<t.length;e++)a.set(t.charCodeAt(e),2)}return a}(),i=[];for(let n=1,o=e.getLineCount();n<=o;n++){const o=e.getLineContent(n),s=o.length;let a=0,l=0,u=0,d=1,h=!1,f=!1,p=!1,g=!1;for(;a<s;){let e=!1;const s=o.charCodeAt(a);if(13===d){let t;switch(s){case 40:h=!0,t=0;break;case 41:t=h?0:1;break;case 91:p=!0,f=!0,t=0;break;case 93:p=!1,t=f?0:1;break;case 123:g=!0,t=0;break;case 125:t=g?0:1;break;case 39:t=34===u||96===u?0:1;break;case 34:t=39===u||96===u?0:1;break;case 96:t=39===u||34===u?0:1;break;case 42:t=42===u?1:0;break;case 124:t=124===u?1:0;break;case 32:t=p?0:1;break;default:t=r.get(s)}1===t&&(i.push(c._createLink(r,o,n,l,a)),e=!0)}else if(12===d){let t;91===s?(f=!0,t=0):t=r.get(s),1===t?e=!0:d=13}else d=t.nextState(d,s),0===d&&(e=!0);e&&(d=1,h=!1,f=!1,g=!1,l=a+1,u=s),a++}13===d&&i.push(c._createLink(r,o,n,l,s))}return i}}t.LinkComputer=c,t.computeLinks=function(e){return e&&"function"==typeof e.getLineCount&&"function"==typeof e.getLineContent?c.computeLinks(e):[]}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.terminalProfileArgsMatch=t.ITerminalProfileInternalService=t.ITerminalProfileService=void 0,t.ITerminalProfileService=Symbol("ITerminalProfileService"),t.ITerminalProfileInternalService=Symbol("ITerminalProfileInternalService"),t.terminalProfileArgsMatch=function(e,t){if(!e&&!t)return!0;if("string"==typeof e&&"string"==typeof t)return e===t;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return!1}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.deserializeEnvironmentVariableCollection=t.serializeEnvironmentVariableCollection=t.EnvironmentVariableMutatorType=t.mutatorTypeLabel=t.EnvironmentVariableServiceToken=void 0,t.EnvironmentVariableServiceToken=Symbol("EnvironmentVariableServiceToken"),t.mutatorTypeLabel=function(e,t,r){switch(e){case n.Prepend:return`${r}=${t}\${env:${r}}`;case n.Append:return`${r}=\${env:${r}}${t}`;default:return`${r}=${t}`}},function(e){e[e.Replace=1]="Replace",e[e.Append=2]="Append",e[e.Prepend=3]="Prepend"}(n=t.EnvironmentVariableMutatorType||(t.EnvironmentVariableMutatorType={})),t.serializeEnvironmentVariableCollection=function(e){return[...e.entries()]},t.deserializeEnvironmentVariableCollection=function(e){return new Map(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtHostTheming=void 0;const n=r(0),i=r(7),o=r(4);t.ExtHostTheming=class{constructor(e){this.rpcProtocol=e,this._proxy=this.rpcProtocol.getProxy(i.MainThreadAPIIdentifier.MainThreadProgress),this._actual=new o.ColorTheme(o.ColorThemeKind.Dark),this._onDidChangeActiveColorTheme=new n.Emitter}get activeColorTheme(){return this._actual}$onColorThemeChange(e){let t;switch(e){case"light":t=o.ColorThemeKind.Light;break;case"dark":t=o.ColorThemeKind.Dark;break;case"hcDark":t=o.ColorThemeKind.HighContrast;break;case"hcLight":t=o.ColorThemeKind.HighContrastLight;break;default:t=o.ColorThemeKind.Dark}this._actual=new o.ColorTheme(t),this._onDidChangeActiveColorTheme.fire(this._actual)}get onDidChangeActiveColorTheme(){return this._onDidChangeActiveColorTheme.event}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtHostTreeViews=void 0;const n=r(1),i=r(0),o=r(7),s=r(7),a=r(5),c=n.__importStar(r(4));t.ExtHostTreeViews=class{constructor(e,t){this.extHostCommand=t,this.treeViews=new Map,this.treeDragAndDropService=new o.TreeviewsService,this.proxy=e.getProxy(o.MainThreadAPIIdentifier.MainThreadTreeView),t.registerArgumentProcessor({processArgument:e=>{if(!s.TreeViewSelection.is(e))return e;const{treeViewId:t,treeItemId:r}=e,n=this.treeViews.get(t);return n&&n.getTreeItem(r)}})}registerTreeDataProvider(e,t){const r=this.createTreeView(e,{treeDataProvider:t});return i.Disposable.create(()=>{this.treeViews.delete(e),r.dispose()})}createTreeView(e,t){if(!t||!t.treeDataProvider)throw new Error("Options with treeDataProvider is mandatory");const r=new l(e,t,this.proxy,this.extHostCommand);return this.treeViews.set(e,r),{get onDidExpandElement(){return r.onDidExpandElement},get onDidCollapseElement(){return r.onDidCollapseElement},get selection(){return r.selectedElements},get onDidChangeSelection(){return r.onDidChangeSelection},get visible(){return r.visible},get onDidChangeVisibility(){return r.onDidChangeVisibility},get message(){return r.message},set message(e){r.message=e},get title(){return r.title},set title(e){r.title=e},get description(){return r.description},set description(e){r.description=e},reveal:(e,t)=>r.reveal(e,t),dispose:()=>{this.treeViews.delete(e),r.dispose()}}}async $getChildren(e,t){const r=this.treeViews.get(e);if(!r)throw new Error("No tree view with id "+e);return r.getChildren(t)}async $resolveTreeItem(e,t,r){const n=this.treeViews.get(e);if(!n)throw new Error("No tree view with id "+e);return n.resolveTreeItem(t,r)}async $setExpanded(e,t,r){const n=this.treeViews.get(e);if(!n)throw new Error("No tree view with id "+e);return r?n.onExpanded(t):n.onCollapsed(t)}async $setSelection(e,t){const r=this.treeViews.get(e);if(!r)throw new Error("No tree view with id "+e);r.setSelection(t)}async $setVisible(e,t){const r=this.treeViews.get(e);if(!r)throw new Error("No tree view with id "+e);r.setVisible(t)}async $handleDrop(e,t,r,n,i,o,s,c){const l=this.treeViews.get(e);if(!l)return Promise.reject(new Error(`No tree view with id '${e}' registered.`));const u=a.DataTransfer.toDataTransfer(r,async r=>(await this.proxy.$resolveDropFileData(e,t,r)).buffer);return s===e&&c&&await this.addAdditionalTransferItems(u,l,c,i,o),l.onDrop(u,n,i)}async addAdditionalTransferItems(e,t,r,n,i){var o;const s=this.treeDragAndDropService.removeDragOperationTransfer(i);if(s)null===(o=await s)||void 0===o||o.forEach((t,r)=>{t&&e.set(r,t)});else if(i&&t.handleDrag){const o=t.handleDrag(r,e,n);this.treeDragAndDropService.addDragOperationTransfer(i,o),await o}return e}async $handleDrag(e,t,r,n){const i=this.treeViews.get(e);if(!i)return Promise.reject(new Error(`No tree view with id '${e}' registered.`));const o=await this.addAdditionalTransferItems(new c.DataTransfer,i,t,n,r);return o?a.DataTransfer.toDataTransferDTO(o):void 0}};class l{constructor(e,t,r,n){var o,s,a,c,l,u;this.treeViewId=e,this.options=t,this.proxy=r,this.commands=n,this.onDidExpandElementEmitter=new i.Emitter,this.onDidExpandElement=this.onDidExpandElementEmitter.event,this.onDidCollapseElementEmitter=new i.Emitter,this.onDidCollapseElement=this.onDidCollapseElementEmitter.event,this.onDidChangeSelectionEmitter=new i.Emitter,this.onDidChangeSelection=this.onDidChangeSelectionEmitter.event,this.onDidChangeVisibilityEmitter=new i.Emitter,this.onDidChangeVisibility=this.onDidChangeVisibilityEmitter.event,this._visible=!1,this.selectedItemIds=new Set,this.id2Element=new Map,this.element2TreeViewItem=new Map,this.element2VSCodeTreeItem=new Map,this.disposable=new i.DisposableStore,this._onDidChangeData=new i.Emitter,this.roots=void 0,this.nodes=new Map,this.refreshPromise=Promise.resolve(),this.refreshQueue=Promise.resolve(),this._refreshCancellationSource=new i.CancellationTokenSource,this.dataProvider=this.options.treeDataProvider,this.dndController=this.options.dragAndDropController;const d=null!==(s=null===(o=this.dndController)||void 0===o?void 0:o.dropMimeTypes)&&void 0!==s?s:[],h=null!==(c=null===(a=this.dndController)||void 0===a?void 0:a.dragMimeTypes)&&void 0!==c?c:[],f=!!(null===(l=this.dndController)||void 0===l?void 0:l.handleDrag),p=!!(null===(u=this.dndController)||void 0===u?void 0:u.handleDrop);if(this.disposable.add(this._onDidChangeData),r.$registerTreeDataProvider(e,{showCollapseAll:!!t.showCollapseAll,canSelectMany:!!t.canSelectMany,dropMimeTypes:d,dragMimeTypes:h,hasHandleDrag:f,hasHandleDrop:p}),this.dataProvider.onDidChangeTreeData){const e=this.dataProvider.onDidChangeTreeData(e=>{this._onDidChangeData.fire({element:e,message:!1})});e&&this.disposable.add(e)}let g,m;this.disposable.add((0,i.toDisposable)(()=>this.id2Element.clear())),this.disposable.add((0,i.toDisposable)(()=>this.element2TreeViewItem.clear())),this.disposable.add((0,i.toDisposable)(()=>this.element2VSCodeTreeItem.clear())),this.disposable.add((0,i.toDisposable)(()=>this.nodes.clear())),this.disposable.add((0,i.toDisposable)(()=>r.$unregisterTreeDataProvider(e))),this.disposable.add(i.Event.debounce(this.onDidChangeData,(e,t)=>(e||(e={message:!1,elements:[]}),!1!==t.element&&(g||(g=new Promise(e=>m=e),this.refreshPromise=this.refreshPromise.then(()=>g)),Array.isArray(t.element)?e.elements.push(...t.element):e.elements.push(t.element)),t.message&&(e.message=!0),e),200,!0)(({message:e,elements:t})=>{t.length&&(this.refreshQueue=this.refreshQueue.then(()=>{const e=m;return g=null,this.refresh(t).then(()=>e())})),e&&this.proxy.$setMessage(this.treeViewId,this._message)}))}refresh(e){if(e.some(e=>!e))return this._refreshCancellationSource.cancel(),this._refreshCancellationSource=new i.CancellationTokenSource,this.clearCache(),this.proxy.$refresh(this.treeViewId);{const t=this.getTreesNodeToRefresh(e);if(t.length)return this.refreshTreeNodes(t)}return Promise.resolve(void 0)}clearCache(){this.roots=void 0,this.nodes.clear(),this.id2Element.clear(),this.element2TreeViewItem.clear(),this.element2VSCodeTreeItem.clear()}getTreesNodeToRefresh(e){const t=new Set,r=e.map(e=>{const t=this.element2TreeViewItem.get(e);if(t)return t});for(const e of r)e&&t.add(e);return Array.from(t)}async refreshTreeNodes(e){await Promise.all(e.map(e=>this.proxy.$refresh(this.treeViewId,e)))}dispose(){this._refreshCancellationSource.dispose(),this.disposable.dispose()}get onDidChangeData(){return this._onDidChangeData.event}get title(){return this._title}set title(e){this.proxy.$setTitle(this.treeViewId,e),this._title=e}get description(){return this._description}set description(e){this.proxy.$setDescription(this.treeViewId,e),this._description=e}get message(){return this._message}set message(e){this._message=e,this._onDidChangeData.fire({message:!0,element:!1})}get visible(){return this._visible}get selectedElements(){const e=[];for(const t of this.selectedItemIds){const r=this.getTreeItem(t);r&&e.push(r)}return e}async reveal(e,t){let r=e.id;if(r||this.id2Element.forEach((t,n)=>{Object.is(t,e)&&(r=n)}),r)return this.proxy.$reveal(this.treeViewId,r,t)}getTreeItem(e){if(e)return this.id2Element.get(e)}async handleDrag(e,t,r){var n;const i=[];for(const t of e){const e=this.getTreeItem(t);e&&i.push(e)}if((null===(n=this.dndController)||void 0===n?void 0:n.handleDrag)&&0!==i.length)return await this.dndController.handleDrag(i,t,r),t}get hasHandleDrag(){var e;return!!(null===(e=this.dndController)||void 0===e?void 0:e.handleDrag)}async onDrop(e,t,r){var n;const o=t?this.getTreeItem(t):void 0;if((o||!t)&&(null===(n=this.dndController)||void 0===n?void 0:n.handleDrop))return(0,i.asPromise)(()=>{var t;return(null===(t=this.dndController)||void 0===t?void 0:t.handleDrop)?this.dndController.handleDrop(o,e,r):void 0})}async resolveTreeItem(e,t){var r;if(!this.dataProvider.resolveTreeItem)return;if(t.isCancellationRequested)return;const n=this.getTreeItem(e);if(n){const e=this.element2VSCodeTreeItem.get(n);if(!e)return;const i=null!==(r=await this.dataProvider.resolveTreeItem(e,n,t))&&void 0!==r?r:e;return e.tooltip=i.tooltip,e.command=i.command,this.toTreeViewItem(e)}}async getChildren(e){const t=this.getTreeItem(e);if(!t&&this.roots)return this.roots;let r;const n=await this.dataProvider.getChildren(t);if(this._refreshCancellationSource.token.isCancellationRequested)r=void 0;else if(n){const t=[];for(const[r,i]of n.entries()){const n=await this.dataProvider.getTreeItem(i);if(this._refreshCancellationSource.token.isCancellationRequested)return;let o;const s=n.label;s&&(o=s),!o&&n.resourceUri&&(o=n.resourceUri.path.toString(),o=decodeURIComponent(o),o.indexOf("/")>=0&&(o=o.substring(o.lastIndexOf("/")+1)));const a=n.id||`${e||"root"}/${r}:${"string"==typeof o?o:null==o?void 0:o.label}`;this.id2Element.set(a,i);const c=this.toTreeViewItem(n,{id:a});this.element2TreeViewItem.set(i,c),this.element2VSCodeTreeItem.set(i,n),t.push(c)}r=this._refreshCancellationSource.token.isCancellationRequested?void 0:t}else r=void 0;return t?this.nodes.set(t,r):this.roots=r,r}toTreeViewItem(e,t){const{id:r,label:n,iconPath:i}=e;let o,s,a;if("string"==typeof i&&-1!==i.indexOf("fa-"))o=i;else if(i instanceof c.ThemeIcon)a=i;else{const t=this.getLightIconPath(e),r=this.getDarkIconPath(e)||t;t&&(s={dark:r,light:t})}return Object.assign({id:r,label:n,icon:o,iconUrl:s,themeIcon:a,description:e.description,resourceUri:e.resourceUri,tooltip:e.tooltip,collapsibleState:e.collapsibleState,contextValue:e.contextValue,accessibilityInformation:e.accessibilityInformation,command:e.command?this.commands.converter.toInternal(e.command,this.disposable):void 0},t)}async onExpanded(e){const t=this.getTreeItem(e);t&&this.onDidExpandElementEmitter.fire({element:t})}async onCollapsed(e){const t=this.getTreeItem(e);t&&this.onDidCollapseElementEmitter.fire({element:t})}getDarkIconPath(e){if(e.iconPath&&!(e.iconPath instanceof c.ThemeIcon)&&e.iconPath.dark)return this.getIconPath(e.iconPath.dark)}getLightIconPath(e){if(e.iconPath&&!(e.iconPath instanceof c.ThemeIcon))return"string"==typeof e.iconPath||i.Uri.isUri(e.iconPath)?this.getIconPath(e.iconPath):this.getIconPath(e.iconPath.light)}getIconPath(e){return i.Uri.isUri(e)?/^http(s)?/.test(e.scheme)?e.toString():/^image/.test(e.path.toString())?"data:"+e.fsPath.toString():e.with({scheme:""}).toString():e}setVisible(e){e!==this._visible&&(this._visible=e,this.onDidChangeVisibilityEmitter.fire(Object.freeze({visible:this._visible})))}setSelection(e){this.doSetSelection(e)}doSetSelection(e){this.selectedItemIds=new Set(e),this.onDidChangeSelectionEmitter.fire(Object.freeze({selection:this.selectedElements}))}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtHostUrls=void 0;const n=r(0),i=r(7);class o{constructor(e){this.handles=new Set,this.handlers=new Map,this._proxy=e.getProxy(i.MainThreadAPIIdentifier.MainThreadUrls)}registerUriHandler(e,t){if(this.handles.has(e))throw new Error("Protocol handler already registered for extension "+e);const r=o.HandlePool++;return this.handles.add(e),this.handlers.set(r,t),this._proxy.$registerUriHandler(r,e),(0,n.toDisposable)(()=>{this.handles.delete(e),this.handlers.delete(r),this._proxy.$unregisterUriHandler(r)})}$handleExternalUri(e,t){const r=this.handlers.get(e);if(!r)return Promise.resolve(void 0);try{r.handleUri(n.Uri.revive(t))}catch(e){(0,n.onUnexpectedError)(e)}return Promise.resolve(void 0)}}t.ExtHostUrls=o,o.HandlePool=0},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WindowStateImpl=t.ExtHostWindowState=void 0;const n=r(0);t.ExtHostWindowState=class{constructor(e){this.rpcProtocol=e,this.state=new i,this._onDidChangeWindowState=new n.Emitter,this.onDidChangeWindowState=this._onDidChangeWindowState.event}$setWindowState(e){e!==this.state.focused&&(this.state.focused=e,this._onDidChangeWindowState.fire(this.state))}};class i{constructor(){this.focused=!1}}t.WindowStateImpl=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtHostWindow=t.createWindowApiFactory=void 0;const n=r(1),i=r(0),o=r(7),s=n.__importStar(r(4)),a=r(4);r(124);t.createWindowApiFactory=function(e,t,r,n,o,a,c,l,u,d,h,f,p,g,m,b,v,y){const _={id:e.id,extensionId:e.extensionId,isBuiltin:e.isBuiltin};return{withScmProgress:t=>g.withProgress(e,{location:s.ProgressLocation.SourceControl},(e,r)=>t({report(e){}})),withProgress:(t,r)=>g.withProgress(e,t,r),createStatusBarItem(t,r,n){let i,o,s;return"string"==typeof t?(i=t,o=r,s=n):(o=t,s=r),u.createStatusBarItem(e,i,o,s)},createOutputChannel:e=>h.createOutputChannel(e),setStatusBarMessage:(e,t)=>u.setStatusBarMessage(e,t),showInformationMessage:(t,n,...o)=>r.showMessage(i.MessageType.Info,t,n,e.displayName||e.name,...o),showWarningMessage:(t,n,...o)=>r.showMessage(i.MessageType.Warning,t,n,e.displayName||e.name,...o),showErrorMessage:(t,n,...o)=>r.showMessage(i.MessageType.Error,t,n,e.displayName||e.name,...o),registerTreeDataProvider:(e,t)=>a.registerTreeDataProvider(e,t),createTreeView:(e,t)=>a.createTreeView(e,t),get activeTextEditor(){return t.activeEditor&&t.activeEditor.textEditor},get visibleTextEditors(){return t.visibleEditors},onDidChangeActiveTextEditor:t.onDidChangeActiveTextEditor,onDidChangeVisibleTextEditors:t.onDidChangeVisibleTextEditors,onDidChangeTextEditorSelection:t.onDidChangeTextEditorSelection,onDidChangeTextEditorVisibleRanges:t.onDidChangeTextEditorVisibleRanges,onDidChangeTextEditorOptions:t.onDidChangeTextEditorOptions,onDidChangeTextEditorViewColumn:t.onDidChangeTextEditorViewColumn,showTextDocument:(e,r,n)=>t.showTextDocument(e,r,n),createTextEditorDecorationType:r=>t.createTextEditorDecorationType(e.id,r),showQuickPick:(e,t,r)=>d.showQuickPick(e,t,r),showWorkspaceFolderPick:e=>d.showWorkspaceFolderPick(e),createQuickPick:()=>d.createQuickPick(),showInputBox:(e,t)=>d.showInputBox(e,t),createInputBox:()=>d.createInputBox(),createWebviewPanel:(t,r,i,o)=>n.createWebview(e.extensionLocation,t,r,i,o,_),registerWebviewPanelSerializer:(e,t)=>n.registerWebviewPanelSerializer(e,t),registerFileDecorationProvider:t=>l.registerFileDecorationProvider(t,e.id),registerUriHandler:t=>m.registerUriHandler(e.id,t),showOpenDialog:e=>p.openDialog(e),showSaveDialog:e=>p.showSaveDialog(e),get onDidChangeWindowState(){return c.onDidChangeWindowState},get state(){return c.state},get activeTerminal(){return f.activeTerminal},get terminals(){return f.terminals},onDidChangeActiveTerminal:f.onDidChangeActiveTerminal,onDidCloseTerminal:f.onDidCloseTerminal,onDidOpenTerminal:f.onDidOpenTerminal,onDidChangeTerminalState:f.onDidChangeTerminalState,createTerminal:(e,t,r)=>"object"==typeof e?"pty"in e?f.createExtensionTerminal(e):f.createTerminalFromOptions(e):f.createTerminal(e,t,r),get activeColorTheme(){return b.activeColorTheme},onDidChangeActiveColorTheme:(e,t,r)=>b.onDidChangeActiveColorTheme(e,t,r),registerCustomEditorProvider:(e,t,r={})=>v.registerCustomEditorProvider(e,t,r,_),registerTerminalLinkProvider:e=>f.registerLinkProvider(e),registerTerminalProfileProvider:(t,r)=>f.registerTerminalProfileProvider(e,t,r),registerWebviewViewProvider:(t,r,n)=>o.registerWebviewViewProvider(e,t,r,null==n?void 0:n.webviewOptions),get openEditors(){return y.tabs},get onDidChangeOpenEditors(){return y.onDidChangeTabs}}};t.ExtHostWindow=class{constructor(e){this.id=0,this._onOpenedResult=new i.Emitter,this._onSavedResult=new i.Emitter,this.proxy=e.getProxy(o.MainThreadAPIIdentifier.MainThreadWindow)}openDialog(e){return new Promise(t=>{const r=(this.id++).toString();this.proxy.$showOpenDialog(r,e);const n=this._onOpenedResult.event(e=>{e.id===r&&(n.dispose(),t(e.result?e.result.map(e=>a.Uri.revive(e)):void 0))})})}showSaveDialog(e){return new Promise(t=>{const r=(this.id++).toString();this.proxy.$showSaveDialog(r,e);const n=this._onSavedResult.event(e=>{e.id===r&&(n.dispose(),t(e.result?a.Uri.revive(e.result):void 0))})})}$onOpenDialogResult(e,t){this._onOpenedResult.fire({id:e,result:t})}$onSaveDialogResult(e,t){this._onSavedResult.fire({id:e,result:t})}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtHostWorkspace=t.toWorkspaceFolder=t.createWorkspaceApiFactory=void 0;const n=r(1),i=n.__importDefault(r(63)),o=r(0),s=r(7),a=n.__importStar(r(5)),c=r(4),{Path:l,relative:u,normalize:d}=o.path;function h(e,t={}){return{uri:c.Uri.revive(e.uri),name:e.name||(e.uri.path?t[e.uri.toString()]:t[e.uri.toString()+"/"]),index:e.index}}t.createWorkspaceApiFactory=function(e,t,r,n,i,s,c){return{rootPath:e.rootPath,name:e.name,asRelativePath:(t,r)=>e.getRelativePath(t,r),updateWorkspaceFolders:(t,r,...n)=>e.updateWorkspaceFolders(t,r||0,...n),onDidChangeWorkspaceFolders:e.onDidChangeWorkspaceFolders,getWorkspaceFolder:(t,r)=>e.getWorkspaceFolder(t,r),workspaceFolders:e.workspaceFolders,getConfiguration:(e,r,n)=>t.getConfiguration(e,r,n),onDidChangeConfiguration:(e,r,n)=>t.onDidChangeConfiguration(e,r,n),get isTrusted(){return!0},requestWorkspaceTrust:e=>!0,onDidGrantWorkspaceTrust:o.Event.None,openTextDocument:r.openTextDocument.bind(r),onDidOpenTextDocument:r.onDidOpenTextDocument.bind(r),onDidCloseTextDocument:r.onDidCloseTextDocument.bind(r),onDidChangeTextDocument:r.onDidChangeTextDocument.bind(r),onWillSaveTextDocument:r.onWillSaveTextDocument.bind(r),onDidSaveTextDocument:r.onDidSaveTextDocument.bind(r),registerTextDocumentContentProvider:r.registerTextDocumentContentProvider.bind(r),registerTaskProvider:(e,t)=>(console.warn(!1,"[Deprecated warning]: Use the corresponding function on the `tasks` namespace instead"),s.registerTaskProvider(e,t,c)),applyEdit:t=>e.applyEdit(t),get textDocuments(){return r.getAllDocument()},registerFileSystemProvider:(e,t,r)=>n.registerFileSystemProvider(e,t,r),get fs(){return n.fileSystem},createFileSystemWatcher:(e,t,r,n)=>i.createFileSystemWatcher(a.fromGlobPattern(e),t,r,n),onDidCreateFiles:(e,t,r)=>i.onDidCreateFile(e,t,r),onDidDeleteFiles:(e,t,r)=>i.onDidDeleteFile(e,t,r),onDidRenameFiles:(e,t,r)=>i.onDidRenameFile(e,t,r),onWillCreateFiles:(e,t,r)=>i.getOnWillCreateFileEvent(c)(e,t,r),onWillDeleteFiles:(e,t,r)=>i.getOnWillDeleteFileEvent(c)(e,t,r),onWillRenameFiles:(e,t,r)=>i.getOnWillRenameFileEvent(c)(e,t,r),onDidRenameFile:e.onDidRenameFile,saveAll:()=>e.saveAll(),findFiles:(t,r,n,i)=>e.findFiles(a.GlobPattern.from(t),a.GlobPattern.from(r),n,null,i),onDidOpenNotebookDocument:o.Event.None,onDidChangeNotebookDocument:o.Event.None,onDidCloseNotebookDocument:o.Event.None,notebookDocuments:[],registerTimelineProvider:()=>(0,o.toDisposable)(()=>{})}},t.toWorkspaceFolder=h;t.ExtHostWorkspace=class{constructor(e,t,r){this.extHostDoc=r,this.workspaceFoldersChangedEmitter=new o.Emitter,this.onDidChangeWorkspaceFolders=this.workspaceFoldersChangedEmitter.event,this._workspaceFolder=[],this._onDidRenameFile=new o.Emitter,this.onDidRenameFile=this._onDidRenameFile.event,this.workspaceToName={},this.messageService=t,this.rpcProtocol=e,this.proxy=this.rpcProtocol.getProxy(s.MainThreadAPIIdentifier.MainThreadWorkspace)}toWorkspaceFolder(e,t){const r=c.Uri.parse(e.uri);return{uri:r,name:new l(r.path).base,index:t}}deltaFolders(e=[],t=[]){return{added:this.foldersDiff(t,e),removed:this.foldersDiff(e,t)}}foldersDiff(e=[],t=[]){const r=new Map;return e.forEach(e=>r.set(e.uri.toString(),e)),t.forEach(e=>r.delete(e.uri.toString())),e.filter(e=>r.has(e.uri.toString()))}get workspaceFolders(){return this.folders}get rootPath(){const e=this.folders&&this.folders[0];return e&&e.uri.fsPath}get name(){const e=this.folders&&this.folders[0];return e&&e.name}getRelativePath(e,t){let r;if("string"==typeof e?r=e:void 0!==e&&(r=e.fsPath),!r)return r;const n=this.getWorkspaceFolder("string"==typeof e?c.Uri.file(e):e,!0);if(!n)return r;void 0===t&&(t=this.folders.length>1);let i=u(n.uri.fsPath,r);return t&&(i=`${n.name}/${i}`),d(i)}updateWorkspaceFolders(e,t,...r){const n=new Set;if(Array.isArray(r)&&r.forEach(e=>{const t=c.Uri.isUri(e.uri)&&e.uri.toString();t&&!n.has(t)&&(n.add(t),e.name&&(this.workspaceToName[t.toString()]=e.name))}),[e,t].some(e=>"number"!=typeof e||e<0))return!1;if(0===t&&0===n.size)return!1;const i=this.workspaceFolders||[];if(e+t>i.length)return!1;const s=i.slice(0);s.splice(e,t,...[...n].map(e=>({uri:c.Uri.parse(e)})));for(let e=0;e<s.length;e++){const t=s[e];if(s.some((r,n)=>n!==e&&t.uri.toString()===r.uri.toString()))return!1}const{added:a,removed:l}=this.deltaFolders(i,s);return(0!==a.length||0!==l.length)&&(this.proxy.$updateWorkspaceFolders(e,t,this.workspaceToName,...n).then(void 0,e=>this.messageService.showMessage(o.MessageType.Error,"Failed to update workspace folders: "+e)),!0)}$onWorkspaceFoldersChanged(e){const t=(e.roots||[]).map((e,t)=>this.toWorkspaceFolder(e,t)),r=this.deltaFolders(this.folders,t);this.folders=t,this.workspaceFoldersChangedEmitter.fire(r)}getWorkspaceFolder(e,t){if(!this.folders||!this.folders.length)return;var r;t&&this.hasFolder(e)&&(e=(r=e).scheme===o.Schemes.file?c.Uri.file(i.default.dirname(r.fsPath)):r.with({path:i.default.dirname(r.path)}));const n=e.toString();let s;for(const e of this.folders){const t=e.uri.toString();if(n===t)return h(e,this.workspaceToName);n.startsWith(t)&&"/"===n[t.length]&&(!s||t.length>s.uri.toString().length)&&(s=e)}return s}resolveWorkspaceFolder(){if(!this.folders||!this.folders.length)return;const e=[];for(const t of this.folders)null==e||e.push(h(t,this.workspaceToName));return e}hasFolder(e){return!!this.folders&&this.folders.some(t=>t.uri.toString()===e.toString())}applyEdit(e){const t=a.WorkspaceEdit.from(e,this.extHostDoc);return this.proxy.$tryApplyWorkspaceEdit(t)}saveAll(){return this.proxy.$saveAll()}async $didRenameFile(e,t){this._onDidRenameFile.fire({oldUri:c.Uri.revive(e),newUri:c.Uri.revive(t)})}findFiles(e,t,r,n,i=o.CancellationToken.None){let s,a,l;return e&&("string"==typeof e?s=e:(s=e.pattern,a=c.Uri.file(e.base))),null===t?l=!1:t&&(l="string"==typeof t?t:t.pattern),i&&i.isCancellationRequested?Promise.resolve([]):this.proxy.$startFileSearch(s||"*",{cwd:a?a.fsPath:this.rootPath,absolute:!0},l,r,i).then(e=>e.map(e=>c.Uri.file(e)))}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createTaskApiFactory=t.ExtHostTasks=void 0;const n=r(1),i=r(0),o=r(7),s=n.__importStar(r(4)),a=r(235),c=(r(270),r(789));var l,u,d,h,f,p,g,m,b,v;!function(e){e.from=function(e){if(null!=e)return e},e.to=function(e){if(null!=e)return e}}(l||(l={})),function(e){e.from=function(e){if(null!=e)return e},e.to=function(e){if(null!=e)return e}}(u||(u={})),function(e){e.from=function(e){if(null!=e)return e},e.to=function(e){if(null!=e)return e}}(d||(d={})),function(e){e.is=function(e){if(e){const t=e;return t&&!!t.process}return!1},e.from=function(e){if(null==e)return;const t={process:e.process,args:e.args};return e.options&&(t.options=d.from(e.options)),t},e.to=function(e){if(null!=e)return new s.ProcessExecution(e.process,e.args,e.options)}}(h||(h={})),function(e){e.from=function(e){if(null!=e)return e},e.to=function(e){if(null!=e)return e}}(f||(f={})),function(e){e.is=function(e){if(e){const t=e;return t&&(!!t.commandLine||!!t.command)}return!1},e.from=function(e){if(null==e)return;const t={};return void 0!==e.commandLine?t.commandLine=e.commandLine:(t.command=e.command,t.args=e.args),e.options&&(t.options=f.from(e.options)),t},e.to=function(e){if(null!=e&&(void 0!==e.command||void 0!==e.commandLine))return e.commandLine?new s.ShellExecution(e.commandLine,e.options):new s.ShellExecution(e.command,e.args?e.args:[],e.options)}}(p||(p={})),function(e){e.is=function(e){if(e){const t=e;return t&&"customExecution"===t.customExecution}return!1},e.from=function(e){return{customExecution:"customExecution"}},e.to=function(e,t){return t.get(e)}}(g||(g={})),function(e){e.from=function(e){let t;return void 0!==e.scope&&"number"!=typeof e.scope&&(t=e.scope.uri),{id:e._id,workspaceFolder:t}}}(m||(m={})),function(e){e.is=function(e){if(e){const t=e;return t&&"customExecution2"===t.customExecution}return!1},e.from=function(e){return{customExecution:"customExecution2"}}}(b||(b={})),function(e){function t(e,t){if(null==e)return;let r;e.execution instanceof s.ProcessExecution?r=h.from(e.execution):e.execution instanceof s.ShellExecution?r=p.from(e.execution):e.execution&&e.execution instanceof s.CustomExecution&&(r=g.from(e.execution));const n=l.from(e.definition);let i;if(i=e.scope?"number"==typeof e.scope?e.scope:e.scope.uri:s.TaskScope.Workspace,!n||!i)return;const o=e.group?e.group.id:void 0;return{_id:e._id,definition:n,name:e.name,source:{extensionId:t.id,label:e.source,scope:i},execution:r,isBackground:e.isBackground,group:o,presentationOptions:u.from(e.presentationOptions),problemMatchers:e.problemMatchers,hasDefinedMatchers:e.hasDefinedMatchers,runOptions:e.runOptions?e.runOptions:{reevaluateOnRerun:!0}}}e.fromMany=function(e,r){if(null==e)return[];const n=[];for(const i of e){const e=t(i,r);e&&n.push(e)}return n},e.from=t,e.to=async function(e,t,r){if(null==e)return;let n;h.is(e.execution)?n=h.to(e.execution):p.is(e.execution)?n=p.to(e.execution):g.is(e.execution)&&(n=g.to(e._id,r));const o=l.to(e.definition);let a;if(e.source&&(a=void 0!==e.source.scope?"number"==typeof e.source.scope?e.source.scope:t.getWorkspaceFolder(i.Uri.from(e.source.scope)):s.TaskScope.Workspace),!o||!a)return;const c=new s.Task(o,a,e.name,e.source.label,n,e.problemMatchers);return void 0!==e.isBackground&&(c.isBackground=e.isBackground),void 0!==e.group&&(c.group=s.TaskGroup.from(e.group)),e.presentationOptions&&(c.presentationOptions=u.to(e.presentationOptions)),e._id&&(c._id=e._id),c}}(v||(v={}));class y{constructor(e,t,r){this._tasks=e,this._id=t,this._task=r}get task(){return this._task}terminate(){this._tasks.terminateTask(this)}fireDidStartProcess(e){}fireDidEndProcess(e){}}t.ExtHostTasks=class{constructor(e,t,r){this.rpcProtocol=e,this.terminalService=t,this.extHostWorkspace=r,this.handlerCounter=0,this.taskHandlers=new Map,this._onDidExecuteTask=new i.Emitter,this._onDidTerminateTask=new i.Emitter,this._onDidTaskProcessStarted=new i.Emitter,this._onDidTaskProcessEnded=new i.Emitter,this.proxy=this.rpcProtocol.getProxy(o.MainThreadAPIIdentifier.MainThreadTasks),this.providedCustomExecutions2=new Map,this.notProvidedCustomExecutions=new Set,this._taskExecutions=new Map}async $onDidStartTask(e,t){var r;const n=this.providedCustomExecutions2.get(e.id);n&&this.terminalService.attachPtyToTerminal(t,await n.callback(null===(r=e.task)||void 0===r?void 0:r.definition)),this._onDidExecuteTask.fire({execution:await this.getTaskExecution(e)})}get onDidStartTask(){return this._onDidExecuteTask.event}async $onDidEndTask(e){this._onDidTerminateTask.fire({execution:await this.getTaskExecution(e)})}get onDidEndTask(){return this._onDidTerminateTask.event}async $onDidStartTaskProcess(e){const t=await this.getTaskExecution(e.id);t&&this._onDidTaskProcessStarted.fire({execution:t,processId:e.processId})}get onDidStartTaskProcess(){return this._onDidTaskProcessStarted.event}async $onDidEndTaskProcess(e){const t=await this.getTaskExecution(e.id);t&&this._onDidTaskProcessEnded.fire({execution:t,exitCode:e.exitCode})}get onDidEndTaskProcess(){return this._onDidTaskProcessEnded.event}get taskExecutions(){return[...this._taskExecutions.values()]}terminateTask(e){return this.proxy.$terminateTask(e._id)}registerTaskProvider(e,t,r){const n=this.handlerCounter+=1;return this.taskHandlers.set(n,{type:e,provider:t,extension:r}),this.proxy.$registerTaskProvider(n,e),{dispose:()=>{this.taskHandlers.delete(n),this.proxy.$unregisterTaskProvider(e)}}}async getTaskExecution(e,t){if("string"==typeof e){const t=this._taskExecutions.get(e);if(!t)throw new Error("Unexpected: The specified task is missing an execution : "+e);return t}const r=this._taskExecutions.get(e.id);if(r)return r;const n=t||await v.to(e.task,this.extHostWorkspace,this.providedCustomExecutions2);if(!n)throw new Error("Unexpected: Task does not exist.");const i=new y(this,e.id,n);return this._taskExecutions.set(e.id,i),i}async executeTask(e,t){const r=e;if(void 0!==r._id)return this.proxy.$executeTask(m.from(r)).then(t=>this.getTaskExecution(t,e));{const r=v.from(e,t);return void 0===r?Promise.reject(new Error("Task is not valid")):(g.is(r.execution)&&await this.addCustomExecution(r,e,!1),this.proxy.$executeTask(r).then(t=>this.getTaskExecution(t,e)))}}fetchTasks(e){return this.proxy.$fetchTasks(a.TaskFilterDTO.from(e)).then(async e=>{const t=[];for(const r of e){const e=await v.to(r,this.extHostWorkspace,this.providedCustomExecutions2);e&&t.push(e)}return t})}async addCustomExecution(e,t,r){const n=await this.proxy.$createTaskId(e);r||this.providedCustomExecutions2.has(n)||this.notProvidedCustomExecutions.add(n),this.providedCustomExecutions2.set(n,t.execution)}$provideTask(e,t){const r=this.taskHandlers.get(e);if(!r)throw new Error(`taskprovider ${e} not found`);const n=[],o=(0,i.asPromise)(()=>r.provider.provideTasks(i.CancellationToken.None)).then(e=>{const o=[];if(e)for(const s of e){s.definition&&t[s.definition.type]||(0,i.getDebugLogger)().warn(!1,`The task [${s.source}, ${s.name}] uses an undefined task type. The task will be ignored in the future.`);const e=v.from(s,r.extension);e&&(o.push(e),g.is(e.execution)&&n.push(this.addCustomExecution(e,s,!1)))}return{tasks:o,extension:r.extension}}).catch(e=>((0,i.getDebugLogger)().error(e,r.extension),{tasks:[],extension:r.extension}));return new Promise(e=>{o.then(t=>{Promise.all(n).then(()=>{e(t)})})})}async $resolveTask(e,t){const r=(0,c.toTask)(t),n=this.taskHandlers.get(e);if(!n)return Promise.reject(new Error("no handler found!"));const o=await n.provider.resolveTask(r,i.CancellationToken.None);if(!o)return;const s=v.from(o,n.extension);if(!s)throw new Error("Unexpected: Task cannot be resolved.");return g.is(s.execution)&&await this.addCustomExecution(s,o,!0),s}},t.createTaskApiFactory=function(e,t){return{registerTaskProvider:(r,n)=>e.registerTaskProvider(r,n,t),fetchTasks:t=>e.fetchTasks(t),executeTask:r=>e.executeTask(r,t),get taskExecutions(){return e.taskExecutions},onDidStartTask:(t,r,n)=>e.onDidStartTask(t,r,n),onDidEndTask:(t,r,n)=>e.onDidEndTask(t,r,n),onDidStartTaskProcess:(t,r,n)=>e.onDidStartTaskProcess(t,r,n),onDidEndTaskProcess:(t,r,n)=>e.onDidEndTaskProcess(t,r,n)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getShellExecutionOptions=t.getShellArgs=t.getShellExecution=t.getProcessExecution=t.fromShellExecution=t.fromProcessExecution=t.toTask=t.fromTask=void 0;const n=r(1),i=n.__importStar(r(4)),o=r(4);function s(e,t){t.command=e.process,t.args=e.args;const r=e.options;return r&&(t.options=r),t}function a(e,t){const r=e.options;r&&(t.options=d(r));const n=e.commandLine;if(n)return t.command=n,t;const i=e.command;if("string"==typeof i)return t.command=i,t.args=u(e.args),t;throw new Error("Converting ShellQuotedString command is not implemented")}function c(e){return new i.ProcessExecution(e.command,e.args||[],e.options||{})}function l(e){return e.command&&Array.isArray(e.args)&&0!==e.args.length?new i.ShellExecution(e.command,e.args,e.options||{}):new i.ShellExecution(e.command||e.commandLine,e.options||{})}function u(e){if(!e||0===e.length)return[];if("string"==typeof e[0])return e;const t=[];return e.forEach(e=>{t.push(e.value)}),t}function d(e){const t={},r=e.env;r&&(t.env=r);const n=e.executable;n&&(t.executable=n);const i=e.shellQuoting;i&&(t.shellQuoting=i);const o=e.shellArgs;o&&(t.shellArgs=o);const s=e.cwd;return s&&Object.assign(t,{cwd:s}),t}t.fromTask=function(e){if(!e)return;const t={};t.label=e.name,t.source=e.source,t.scope="object"==typeof e.scope?e.scope.uri.toString():void 0;const r=e.definition;if(!r)return t;t.type=r.type;const{type:o}=r,c=n.__rest(r,["type"]);for(const e in c)c.hasOwnProperty(e)&&(t[e]=c[e]);const l=e.execution;return l?"shell"===r.type||i.ShellExecution.is(l)?a(l,t):"process"===r.type||i.ProcessExecution.is(l)?s(l,t):t:t},t.toTask=function(e){if(!e)throw new Error("Task should be provided for converting");const{type:t,label:r,source:s,scope:a,command:u,args:d,options:h,windows:f}=e,p=n.__rest(e,["type","label","source","scope","command","args","options","windows"]),g={};if(g.name=r,g.source=s,a){const e=o.Uri.parse(a);g.scope={uri:e,name:e.toString(),index:0}}const m=t,b={type:m};g.definition=b,"process"===m&&(g.execution=c(e));const v={command:u,args:d,options:h};if(("shell"===m||i.ShellExecution.is(v))&&(g.execution=l(e)),!p)return g;for(const e in p)p.hasOwnProperty(e)&&(b[e]=p[e]);return g},t.fromProcessExecution=s,t.fromShellExecution=a,t.getProcessExecution=c,t.getShellExecution=l,t.getShellArgs=u,t.getShellExecutionOptions=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CancellationTokenSource=void 0;r(1).__exportStar(r(4),t);var n=r(0);Object.defineProperty(t,"CancellationTokenSource",{enumerable:!0,get:function(){return n.CancellationTokenSource}})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtensionLogger=void 0;const n=r(0),i=r(792);t.ExtensionLogger=class{constructor(e){this.rpcProtocol=e,this.logger=this.rpcProtocol.getProxy(i.MainThreadExtensionLogIdentifier),this.debugLog=new n.DebugLog(n.SupportLogNamespace.ExtensionHost)}verbose(...e){return this.debugLog.info(...e),this.logger.$verbose(...e)}debug(...e){return this.debugLog.debug(...e),this.logger.$debug(...e)}log(...e){return this.debugLog.log(...e),this.logger.$log(...e)}warn(...e){return this.debugLog.warn(...e),this.logger.$warn(...e)}error(...e){return this.debugLog.error(...e),this.logger.$error(...e)}critical(...e){return this.debugLog.error(...e),this.logger.$critical(...e)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MainThreadExtensionLogIdentifier=void 0;const n=r(37);t.MainThreadExtensionLogIdentifier=(0,n.createMainContextProxyIdentifier)("MainThreadExtensionLog")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KTWorkerExtension=t.KTExtension=t.Extension=void 0;class n{constructor(e,t,r,n){this.metadata=e,this.extensionService=t,this.mainThreadExtensionService=r;const{packageJSON:i,path:o,id:s,extendConfig:a}=this.metadata;this.id=s,this.extensionPath=o,this.packageJSON=i,this.extensionKind=i.extensionKind||void 0,this.extendConfig=a||void 0,this.extensionUri=e.extensionLocation,n&&(this._exports=n)}get isActive(){return this.extensionService.isActivated(this.id)}get exports(){return this._exports||this.extensionService.getExtensionExports(this.id)}async activate(){try{return this.isActive||await this.mainThreadExtensionService.$activateExtension(this.extensionPath),this.exports}catch(e){}}}t.Extension=n;t.KTExtension=class extends n{constructor(e,t,r,n,i){super(e,t,r,n),i&&(this._extendExportsData=i)}get extendExports(){return this._extendExportsData||this.extensionService.getExtendExports(this.id)}};t.KTWorkerExtension=class extends n{constructor(e,t,r,n){super(e,t,r,n),e.workerScriptPath&&(this.workerScriptPath=e.workerScriptPath)}}},function(e,t,r){"use strict";r.r(t),r.d(t,"nanoid",(function(){return a})),r.d(t,"customAlphabet",(function(){return s})),r.d(t,"customRandom",(function(){return o})),r.d(t,"urlAlphabet",(function(){return n})),r.d(t,"random",(function(){return i}));let n="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",i=e=>crypto.getRandomValues(new Uint8Array(e)),o=(e,t,r)=>{let n=(2<<Math.log(e.length-1)/Math.LN2)-1,i=-~(1.6*n*t/e.length);return(o=t)=>{let s="";for(;;){let t=r(i),a=i;for(;a--;)if(s+=e[t[a]&n]||"",s.length===o)return s}}},s=(e,t=21)=>o(e,t,i),a=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((e,t)=>e+=(t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_","")}]);
42
+ e.exports=function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:r,getPrototypeOf:n,getOwnPropertyDescriptor:i}=Object;let{freeze:o,seal:s,create:a}=Object,{apply:c,construct:l}="undefined"!=typeof Reflect&&Reflect;c||(c=function(e,t,r){return e.apply(t,r)}),o||(o=function(e){return e}),s||(s=function(e){return e}),l||(l=function(e,t){return new e(...t)});const u=C(Array.prototype.forEach),d=C(Array.prototype.pop),h=C(Array.prototype.push),f=C(String.prototype.toLowerCase),p=C(String.prototype.toString),g=C(String.prototype.match),m=C(String.prototype.replace),b=C(String.prototype.indexOf),v=C(String.prototype.trim),y=C(RegExp.prototype.test),_=(w=TypeError,function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return l(w,t)});var w;function C(e){return function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return c(e,t,n)}}function k(e,n,i){i=i||f,t&&t(e,null);let o=n.length;for(;o--;){let t=n[o];if("string"==typeof t){const e=i(t);e!==t&&(r(n)||(n[o]=e),t=e)}e[t]=!0}return e}function E(t){const r=a(null);for(const[n,i]of e(t))r[n]=i;return r}function S(e,t){for(;null!==e;){const r=i(e,t);if(r){if(r.get)return C(r.get);if("function"==typeof r.value)return C(r.value)}e=n(e)}return function(e){return console.warn("fallback value for",e),null}}const D=o(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),x=o(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),T=o(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),A=o(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),I=o(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),O=o(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),R=o(["#text"]),M=o(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),B=o(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),P=o(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),F=o(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),L=s(/\{\{[\w\W]*|[\w\W]*\}\}/gm),N=s(/<%[\w\W]*|[\w\W]*%>/gm),j=s(/\${[\w\W]*}/gm),H=s(/^data-[\-\w.\u00B7-\uFFFF]/),U=s(/^aria-[\-\w]+$/),z=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),W=s(/^(?:\w+script|data):/i),V=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),$=s(/^html$/i);var G=Object.freeze({__proto__:null,MUSTACHE_EXPR:L,ERB_EXPR:N,TMPLIT_EXPR:j,DATA_ATTR:H,ARIA_ATTR:U,IS_ALLOWED_URI:z,IS_SCRIPT_OR_DATA:W,ATTR_WHITESPACE:V,DOCTYPE_NAME:$});const q=()=>"undefined"==typeof window?null:window,K=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let r=null;t.currentScript&&t.currentScript.hasAttribute("data-tt-policy-suffix")&&(r=t.currentScript.getAttribute("data-tt-policy-suffix"));const n="dompurify"+(r?"#"+r:"");try{return e.createPolicy(n,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+n+" could not be created."),null}};return function t(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:q();const n=e=>t(e);if(n.version="3.0.2",n.removed=[],!r||!r.document||9!==r.document.nodeType)return n.isSupported=!1,n;const i=r.document;let{document:s}=r;const{DocumentFragment:a,HTMLTemplateElement:c,Node:l,Element:w,NodeFilter:C,NamedNodeMap:L=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:N,DOMParser:j,trustedTypes:H}=r,U=w.prototype,W=S(U,"cloneNode"),V=S(U,"nextSibling"),Y=S(U,"childNodes"),X=S(U,"parentNode");if("function"==typeof c){const e=s.createElement("template");e.content&&e.content.ownerDocument&&(s=e.content.ownerDocument)}const Q=K(H,i),J=Q?Q.createHTML(""):"",{implementation:Z,createNodeIterator:ee,createDocumentFragment:te,getElementsByTagName:re}=s,{importNode:ne}=i;let ie={};n.isSupported="function"==typeof e&&"function"==typeof X&&Z&&void 0!==Z.createHTMLDocument;const{MUSTACHE_EXPR:oe,ERB_EXPR:se,TMPLIT_EXPR:ae,DATA_ATTR:ce,ARIA_ATTR:le,IS_SCRIPT_OR_DATA:ue,ATTR_WHITESPACE:de}=G;let{IS_ALLOWED_URI:he}=G,fe=null;const pe=k({},[...D,...x,...T,...I,...R]);let ge=null;const me=k({},[...M,...B,...P,...F]);let be=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ve=null,ye=null,_e=!0,we=!0,Ce=!1,ke=!0,Ee=!1,Se=!1,De=!1,xe=!1,Te=!1,Ae=!1,Ie=!1,Oe=!0,Re=!1;const Me="user-content-";let Be=!0,Pe=!1,Fe={},Le=null;const Ne=k({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let je=null;const He=k({},["audio","video","img","source","image","track"]);let Ue=null;const ze=k({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),We="http://www.w3.org/1998/Math/MathML",Ve="http://www.w3.org/2000/svg",$e="http://www.w3.org/1999/xhtml";let Ge=$e,qe=!1,Ke=null;const Ye=k({},[We,Ve,$e],p);let Xe;const Qe=["application/xhtml+xml","text/html"],Je="text/html";let Ze,et=null;const tt=s.createElement("form"),rt=function(e){return e instanceof RegExp||e instanceof Function},nt=function(e){et&&et===e||(e&&"object"==typeof e||(e={}),e=E(e),Xe=Xe=-1===Qe.indexOf(e.PARSER_MEDIA_TYPE)?Je:e.PARSER_MEDIA_TYPE,Ze="application/xhtml+xml"===Xe?p:f,fe="ALLOWED_TAGS"in e?k({},e.ALLOWED_TAGS,Ze):pe,ge="ALLOWED_ATTR"in e?k({},e.ALLOWED_ATTR,Ze):me,Ke="ALLOWED_NAMESPACES"in e?k({},e.ALLOWED_NAMESPACES,p):Ye,Ue="ADD_URI_SAFE_ATTR"in e?k(E(ze),e.ADD_URI_SAFE_ATTR,Ze):ze,je="ADD_DATA_URI_TAGS"in e?k(E(He),e.ADD_DATA_URI_TAGS,Ze):He,Le="FORBID_CONTENTS"in e?k({},e.FORBID_CONTENTS,Ze):Ne,ve="FORBID_TAGS"in e?k({},e.FORBID_TAGS,Ze):{},ye="FORBID_ATTR"in e?k({},e.FORBID_ATTR,Ze):{},Fe="USE_PROFILES"in e&&e.USE_PROFILES,_e=!1!==e.ALLOW_ARIA_ATTR,we=!1!==e.ALLOW_DATA_ATTR,Ce=e.ALLOW_UNKNOWN_PROTOCOLS||!1,ke=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Ee=e.SAFE_FOR_TEMPLATES||!1,Se=e.WHOLE_DOCUMENT||!1,Te=e.RETURN_DOM||!1,Ae=e.RETURN_DOM_FRAGMENT||!1,Ie=e.RETURN_TRUSTED_TYPE||!1,xe=e.FORCE_BODY||!1,Oe=!1!==e.SANITIZE_DOM,Re=e.SANITIZE_NAMED_PROPS||!1,Be=!1!==e.KEEP_CONTENT,Pe=e.IN_PLACE||!1,he=e.ALLOWED_URI_REGEXP||z,Ge=e.NAMESPACE||$e,be=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&rt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(be.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&rt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(be.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(be.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ee&&(we=!1),Ae&&(Te=!0),Fe&&(fe=k({},[...R]),ge=[],!0===Fe.html&&(k(fe,D),k(ge,M)),!0===Fe.svg&&(k(fe,x),k(ge,B),k(ge,F)),!0===Fe.svgFilters&&(k(fe,T),k(ge,B),k(ge,F)),!0===Fe.mathMl&&(k(fe,I),k(ge,P),k(ge,F))),e.ADD_TAGS&&(fe===pe&&(fe=E(fe)),k(fe,e.ADD_TAGS,Ze)),e.ADD_ATTR&&(ge===me&&(ge=E(ge)),k(ge,e.ADD_ATTR,Ze)),e.ADD_URI_SAFE_ATTR&&k(Ue,e.ADD_URI_SAFE_ATTR,Ze),e.FORBID_CONTENTS&&(Le===Ne&&(Le=E(Le)),k(Le,e.FORBID_CONTENTS,Ze)),Be&&(fe["#text"]=!0),Se&&k(fe,["html","head","body"]),fe.table&&(k(fe,["tbody"]),delete ve.tbody),o&&o(e),et=e)},it=k({},["mi","mo","mn","ms","mtext"]),ot=k({},["foreignobject","desc","title","annotation-xml"]),st=k({},["title","style","font","a","script"]),at=k({},x);k(at,T),k(at,A);const ct=k({},I);k(ct,O);const lt=function(e){let t=X(e);t&&t.tagName||(t={namespaceURI:Ge,tagName:"template"});const r=f(e.tagName),n=f(t.tagName);return!!Ke[e.namespaceURI]&&(e.namespaceURI===Ve?t.namespaceURI===$e?"svg"===r:t.namespaceURI===We?"svg"===r&&("annotation-xml"===n||it[n]):Boolean(at[r]):e.namespaceURI===We?t.namespaceURI===$e?"math"===r:t.namespaceURI===Ve?"math"===r&&ot[n]:Boolean(ct[r]):e.namespaceURI===$e?!(t.namespaceURI===Ve&&!ot[n])&&!(t.namespaceURI===We&&!it[n])&&!ct[r]&&(st[r]||!at[r]):!("application/xhtml+xml"!==Xe||!Ke[e.namespaceURI]))},ut=function(e){h(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},dt=function(e,t){try{h(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){h(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!ge[e])if(Te||Ae)try{ut(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},ht=function(e){let t,r;if(xe)e="<remove></remove>"+e;else{const t=g(e,/^[\r\n\t ]+/);r=t&&t[0]}"application/xhtml+xml"===Xe&&Ge===$e&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const n=Q?Q.createHTML(e):e;if(Ge===$e)try{t=(new j).parseFromString(n,Xe)}catch(e){}if(!t||!t.documentElement){t=Z.createDocument(Ge,"template",null);try{t.documentElement.innerHTML=qe?J:n}catch(e){}}const i=t.body||t.documentElement;return e&&r&&i.insertBefore(s.createTextNode(r),i.childNodes[0]||null),Ge===$e?re.call(t,Se?"html":"body")[0]:Se?t.documentElement:i},ft=function(e){return ee.call(e.ownerDocument||e,e,C.SHOW_ELEMENT|C.SHOW_COMMENT|C.SHOW_TEXT,null,!1)},pt=function(e){return e instanceof N&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof L)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},gt=function(e){return"object"==typeof l?e instanceof l:e&&"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},mt=function(e,t,r){ie[e]&&u(ie[e],e=>{e.call(n,t,r,et)})},bt=function(e){let t;if(mt("beforeSanitizeElements",e,null),pt(e))return ut(e),!0;const r=Ze(e.nodeName);if(mt("uponSanitizeElement",e,{tagName:r,allowedTags:fe}),e.hasChildNodes()&&!gt(e.firstElementChild)&&(!gt(e.content)||!gt(e.content.firstElementChild))&&y(/<[/\w]/g,e.innerHTML)&&y(/<[/\w]/g,e.textContent))return ut(e),!0;if(!fe[r]||ve[r]){if(!ve[r]&&yt(r)){if(be.tagNameCheck instanceof RegExp&&y(be.tagNameCheck,r))return!1;if(be.tagNameCheck instanceof Function&&be.tagNameCheck(r))return!1}if(Be&&!Le[r]){const t=X(e)||e.parentNode,r=Y(e)||e.childNodes;if(r&&t)for(let n=r.length-1;n>=0;--n)t.insertBefore(W(r[n],!0),V(e))}return ut(e),!0}return e instanceof w&&!lt(e)?(ut(e),!0):"noscript"!==r&&"noembed"!==r||!y(/<\/no(script|embed)/i,e.innerHTML)?(Ee&&3===e.nodeType&&(t=e.textContent,t=m(t,oe," "),t=m(t,se," "),t=m(t,ae," "),e.textContent!==t&&(h(n.removed,{element:e.cloneNode()}),e.textContent=t)),mt("afterSanitizeElements",e,null),!1):(ut(e),!0)},vt=function(e,t,r){if(Oe&&("id"===t||"name"===t)&&(r in s||r in tt))return!1;if(we&&!ye[t]&&y(ce,t));else if(_e&&y(le,t));else if(!ge[t]||ye[t]){if(!(yt(e)&&(be.tagNameCheck instanceof RegExp&&y(be.tagNameCheck,e)||be.tagNameCheck instanceof Function&&be.tagNameCheck(e))&&(be.attributeNameCheck instanceof RegExp&&y(be.attributeNameCheck,t)||be.attributeNameCheck instanceof Function&&be.attributeNameCheck(t))||"is"===t&&be.allowCustomizedBuiltInElements&&(be.tagNameCheck instanceof RegExp&&y(be.tagNameCheck,r)||be.tagNameCheck instanceof Function&&be.tagNameCheck(r))))return!1}else if(Ue[t]);else if(y(he,m(r,de,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==b(r,"data:")||!je[e])if(Ce&&!y(ue,m(r,de,"")));else if(r)return!1;return!0},yt=function(e){return e.indexOf("-")>0},_t=function(e){let t,r,i,o;mt("beforeSanitizeAttributes",e,null);const{attributes:s}=e;if(!s)return;const a={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ge};for(o=s.length;o--;){t=s[o];const{name:c,namespaceURI:l}=t;if(r="value"===c?t.value:v(t.value),i=Ze(c),a.attrName=i,a.attrValue=r,a.keepAttr=!0,a.forceKeepAttr=void 0,mt("uponSanitizeAttribute",e,a),r=a.attrValue,a.forceKeepAttr)continue;if(dt(c,e),!a.keepAttr)continue;if(!ke&&y(/\/>/i,r)){dt(c,e);continue}Ee&&(r=m(r,oe," "),r=m(r,se," "),r=m(r,ae," "));const u=Ze(e.nodeName);if(vt(u,i,r)){if(!Re||"id"!==i&&"name"!==i||(dt(c,e),r=Me+r),Q&&"object"==typeof H&&"function"==typeof H.getAttributeType)if(l);else switch(H.getAttributeType(u,i)){case"TrustedHTML":r=Q.createHTML(r);break;case"TrustedScriptURL":r=Q.createScriptURL(r)}try{l?e.setAttributeNS(l,c,r):e.setAttribute(c,r),d(n.removed)}catch(e){}}}mt("afterSanitizeAttributes",e,null)},wt=function e(t){let r;const n=ft(t);for(mt("beforeSanitizeShadowDOM",t,null);r=n.nextNode();)mt("uponSanitizeShadowNode",r,null),bt(r)||(r.content instanceof a&&e(r.content),_t(r));mt("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){let t,r,o,s,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(qe=!e,qe&&(e="\x3c!--\x3e"),"string"!=typeof e&&!gt(e)){if("function"!=typeof e.toString)throw _("toString is not a function");if("string"!=typeof(e=e.toString()))throw _("dirty is not a string, aborting")}if(!n.isSupported)return e;if(De||nt(c),n.removed=[],"string"==typeof e&&(Pe=!1),Pe){if(e.nodeName){const t=Ze(e.nodeName);if(!fe[t]||ve[t])throw _("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)t=ht("\x3c!----\x3e"),r=t.ownerDocument.importNode(e,!0),1===r.nodeType&&"BODY"===r.nodeName||"HTML"===r.nodeName?t=r:t.appendChild(r);else{if(!Te&&!Ee&&!Se&&-1===e.indexOf("<"))return Q&&Ie?Q.createHTML(e):e;if(t=ht(e),!t)return Te?null:Ie?J:""}t&&xe&&ut(t.firstChild);const u=ft(Pe?e:t);for(;o=u.nextNode();)bt(o)||(o.content instanceof a&&wt(o.content),_t(o));if(Pe)return e;if(Te){if(Ae)for(s=te.call(t.ownerDocument);t.firstChild;)s.appendChild(t.firstChild);else s=t;return(ge.shadowroot||ge.shadowrootmod)&&(s=ne.call(i,s,!0)),s}let d=Se?t.outerHTML:t.innerHTML;return Se&&fe["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&y($,t.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+t.ownerDocument.doctype.name+">\n"+d),Ee&&(d=m(d,oe," "),d=m(d,se," "),d=m(d,ae," ")),Q&&Ie?Q.createHTML(d):d},n.setConfig=function(e){nt(e),De=!0},n.clearConfig=function(){et=null,De=!1},n.isValidAttribute=function(e,t,r){et||nt({});const n=Ze(e),i=Ze(t);return vt(n,i,r)},n.addHook=function(e,t){"function"==typeof t&&(ie[e]=ie[e]||[],h(ie[e],t))},n.removeHook=function(e){if(ie[e])return d(ie[e])},n.removeHooks=function(e){ie[e]&&(ie[e]=[])},n.removeAllHooks=function(){ie={}},n}()}()},function(e,t,r){!function(e){"use strict";function t(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];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 r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(){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={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};var o=/[&<>"']/,s=/[&<>"']/g,a=/[<>"']|&(?!#?\w+;)/,c=/[<>"']|&(?!#?\w+;)/g,l={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},u=function(e){return l[e]};function d(e,t){if(t){if(o.test(e))return e.replace(s,u)}else if(a.test(e))return e.replace(c,u);return e}var h=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function f(e){return e.replace(h,(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 p=/(^|[^\[])\^/g;function g(e,t){e=e.source||e,t=t||"";var r={replace:function(t,n){return n=(n=n.source||n).replace(p,"$1"),e=e.replace(t,n),r},getRegex:function(){return new RegExp(e,t)}};return r}var m=/[^\w:]/g,b=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function v(e,t,r){if(e){var n;try{n=decodeURIComponent(f(r)).replace(m,"").toLowerCase()}catch(e){return null}if(0===n.indexOf("javascript:")||0===n.indexOf("vbscript:")||0===n.indexOf("data:"))return null}t&&!b.test(r)&&(r=function(e,t){y[" "+e]||(_.test(e)?y[" "+e]=e+"/":y[" "+e]=D(e,"/",!0));var r=-1===(e=y[" "+e]).indexOf(":");return"//"===t.substring(0,2)?r?t:e.replace(w,"$1")+t:"/"===t.charAt(0)?r?t:e.replace(C,"$1")+t:e+t}(t,r));try{r=encodeURI(r).replace(/%25/g,"%")}catch(e){return null}return r}var y={},_=/^[^:]+:\/*[^/]*$/,w=/^([^:]+:)[\s\S]*$/,C=/^([^:]+:\/*[^/]*)[\s\S]*$/,k={exec:function(){}};function E(e){for(var t,r,n=1;n<arguments.length;n++)for(r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function S(e,t){var r=e.replace(/\|/g,(function(e,t,r){for(var n=!1,i=t;--i>=0&&"\\"===r[i];)n=!n;return n?"|":" |"})).split(/ \|/),n=0;if(r[0].trim()||r.shift(),r[r.length-1].trim()||r.pop(),r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;n<r.length;n++)r[n]=r[n].trim().replace(/\\\|/g,"|");return r}function D(e,t,r){var n=e.length;if(0===n)return"";for(var i=0;i<n;){var o=e.charAt(n-i-1);if(o!==t||r){if(o===t||!r)break;i++}else i++}return e.substr(0,n-i)}function x(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 T(e,t){if(t<1)return"";for(var r="";t>1;)1&t&&(r+=e),t>>=1,e+=e;return r+e}function A(e,t,r,n){var i=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 a={type:"link",raw:r,href:i,title:o,text:s,tokens:n.inlineTokens(s,[])};return n.state.inLink=!1,a}return{type:"image",raw:r,href:i,title:o,text:d(s)}}var I=function(){function t(t){this.options=t||e.defaults}var r=t.prototype;return r.space=function(e){var t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}},r.code=function(e){var t=this.rules.block.code.exec(e);if(t){var r=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?r:D(r,"\n")}}},r.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var r=t[0],n=function(e,t){var r=e.match(/^(\s+)(?:```)/);if(null===r)return t;var n=r[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")}(r,t[3]||"");return{type:"code",raw:r,lang:t[2]?t[2].trim():t[2],text:n}}},r.heading=function(e){var t=this.rules.block.heading.exec(e);if(t){var r=t[2].trim();if(/#$/.test(r)){var n=D(r,"#");this.options.pedantic?r=n.trim():n&&!/ $/.test(n)||(r=n.trim())}var i={type:"heading",raw:t[0],depth:t[1].length,text:r,tokens:[]};return this.lexer.inline(i.text,i.tokens),i}},r.hr=function(e){var t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}},r.blockquote=function(e){var t=this.rules.block.blockquote.exec(e);if(t){var r=t[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(r,[]),text:r}}},r.list=function(e){var t=this.rules.block.list.exec(e);if(t){var r,i,o,s,a,c,l,u,d,h,f,p,g=t[1].trim(),m=g.length>1,b={type:"list",raw:"",ordered:m,start:m?+g.slice(0,-1):"",loose:!1,items:[]};g=m?"\\d{1,9}\\"+g.slice(-1):"\\"+g,this.options.pedantic&&(g=m?g:"[*+-]");for(var v=new RegExp("^( {0,3}"+g+")((?: [^\\n]*)?(?:\\n|$))");e&&(p=!1,t=v.exec(e))&&!this.rules.block.hr.test(e);){if(r=t[0],e=e.substring(r.length),u=t[2].split("\n",1)[0],d=e.split("\n",1)[0],this.options.pedantic?(s=2,f=u.trimLeft()):(s=(s=t[2].search(/[^ ]/))>4?1:s,f=u.slice(s),s+=t[1].length),c=!1,!u&&/^ *$/.test(d)&&(r+=d+"\n",e=e.substring(d.length+1),p=!0),!p)for(var y=new RegExp("^ {0,"+Math.min(3,s-1)+"}(?:[*+-]|\\d{1,9}[.)])");e&&(u=h=e.split("\n",1)[0],this.options.pedantic&&(u=u.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!y.test(u));){if(u.search(/[^ ]/)>=s||!u.trim())f+="\n"+u.slice(s);else{if(c)break;f+="\n"+u}c||u.trim()||(c=!0),r+=h+"\n",e=e.substring(h.length+1)}b.loose||(l?b.loose=!0:/\n *\n *$/.test(r)&&(l=!0)),this.options.gfm&&(i=/^\[[ xX]\] /.exec(f))&&(o="[ ] "!==i[0],f=f.replace(/^\[[ xX]\] +/,"")),b.items.push({type:"list_item",raw:r,task:!!i,checked:o,loose:!1,text:f}),b.raw+=r}b.items[b.items.length-1].raw=r.trimRight(),b.items[b.items.length-1].text=f.trimRight(),b.raw=b.raw.trimRight();var _=b.items.length;for(a=0;a<_;a++){this.lexer.state.top=!1,b.items[a].tokens=this.lexer.blockTokens(b.items[a].text,[]);var w=b.items[a].tokens.filter((function(e){return"space"===e.type})),C=w.every((function(e){for(var t,r=0,i=n(e.raw.split(""));!(t=i()).done;)if("\n"===t.value&&(r+=1),r>1)return!0;return!1}));!b.loose&&w.length&&C&&(b.loose=!0,b.items[a].loose=!0)}return b}},r.html=function(e){var t=this.rules.block.html.exec(e);if(t){var r={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&&(r.type="paragraph",r.text=this.options.sanitizer?this.options.sanitizer(t[0]):d(t[0]),r.tokens=[],this.lexer.inline(r.text,r.tokens)),r}},r.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]}},r.table=function(e){var t=this.rules.block.table.exec(e);if(t){var r={type:"table",header:S(t[1]).map((function(e){return{text:e}})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(r.header.length===r.align.length){r.raw=t[0];var n,i,o,s,a=r.align.length;for(n=0;n<a;n++)/^ *-+: *$/.test(r.align[n])?r.align[n]="right":/^ *:-+: *$/.test(r.align[n])?r.align[n]="center":/^ *:-+ *$/.test(r.align[n])?r.align[n]="left":r.align[n]=null;for(a=r.rows.length,n=0;n<a;n++)r.rows[n]=S(r.rows[n],r.header.length).map((function(e){return{text:e}}));for(a=r.header.length,i=0;i<a;i++)r.header[i].tokens=[],this.lexer.inlineTokens(r.header[i].text,r.header[i].tokens);for(a=r.rows.length,i=0;i<a;i++)for(s=r.rows[i],o=0;o<s.length;o++)s[o].tokens=[],this.lexer.inlineTokens(s[o].text,s[o].tokens);return r}}},r.lheading=function(e){var t=this.rules.block.lheading.exec(e);if(t){var r={type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:[]};return this.lexer.inline(r.text,r.tokens),r}},r.paragraph=function(e){var t=this.rules.block.paragraph.exec(e);if(t){var r={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(r.text,r.tokens),r}},r.text=function(e){var t=this.rules.block.text.exec(e);if(t){var r={type:"text",raw:t[0],text:t[0],tokens:[]};return this.lexer.inline(r.text,r.tokens),r}},r.escape=function(e){var t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:d(t[1])}},r.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]}},r.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var r=t[2].trim();if(!this.options.pedantic&&/^</.test(r)){if(!/>$/.test(r))return;var n=D(r.slice(0,-1),"\\");if((r.length-n.length)%2==0)return}else{var i=function(e,t){if(-1===e.indexOf(t[1]))return-1;for(var r=e.length,n=0,i=0;i<r;i++)if("\\"===e[i])i++;else if(e[i]===t[0])n++;else if(e[i]===t[1]&&--n<0)return i;return-1}(t[2],"()");if(i>-1){var o=(0===t[0].indexOf("!")?5:4)+t[1].length+i;t[2]=t[2].substring(0,i),t[0]=t[0].substring(0,o).trim(),t[3]=""}}var s=t[2],a="";if(this.options.pedantic){var c=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(s);c&&(s=c[1],a=c[3])}else a=t[3]?t[3].slice(1,-1):"";return s=s.trim(),/^</.test(s)&&(s=this.options.pedantic&&!/>$/.test(r)?s.slice(1):s.slice(1,-1)),A(t,{href:s?s.replace(this.rules.inline._escapes,"$1"):s,title:a?a.replace(this.rules.inline._escapes,"$1"):a},t[0],this.lexer)}},r.reflink=function(e,t){var r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){var n=(r[2]||r[1]).replace(/\s+/g," ");if(!(n=t[n.toLowerCase()])||!n.href){var i=r[0].charAt(0);return{type:"text",raw:i,text:i}}return A(r,n,r[0],this.lexer)}},r.emStrong=function(e,t,r){void 0===r&&(r="");var n=this.rules.inline.emStrong.lDelim.exec(e);if(n&&(!n[3]||!r.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 i=n[1]||n[2]||"";if(!i||i&&(""===r||this.rules.inline.punctuation.exec(r))){var o,s,a=n[0].length-1,c=a,l=0,u="*"===n[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(u.lastIndex=0,t=t.slice(-1*e.length+a);null!=(n=u.exec(t));)if(o=n[1]||n[2]||n[3]||n[4]||n[5]||n[6])if(s=o.length,n[3]||n[4])c+=s;else if(!((n[5]||n[6])&&a%3)||(a+s)%3){if(!((c-=s)>0)){if(s=Math.min(s,s+c+l),Math.min(a,s)%2){var d=e.slice(1,a+n.index+s);return{type:"em",raw:e.slice(0,a+n.index+s+1),text:d,tokens:this.lexer.inlineTokens(d,[])}}var h=e.slice(2,a+n.index+s-1);return{type:"strong",raw:e.slice(0,a+n.index+s+1),text:h,tokens:this.lexer.inlineTokens(h,[])}}}else l+=s}}},r.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var r=t[2].replace(/\n/g," "),n=/[^ ]/.test(r),i=/^ /.test(r)&&/ $/.test(r);return n&&i&&(r=r.substring(1,r.length-1)),r=d(r,!0),{type:"codespan",raw:t[0],text:r}}},r.br=function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}},r.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],[])}},r.autolink=function(e,t){var r,n,i=this.rules.inline.autolink.exec(e);if(i)return n="@"===i[2]?"mailto:"+(r=d(this.options.mangle?t(i[1]):i[1])):r=d(i[1]),{type:"link",raw:i[0],text:r,href:n,tokens:[{type:"text",raw:r,text:r}]}},r.url=function(e,t){var r;if(r=this.rules.inline.url.exec(e)){var n,i;if("@"===r[2])i="mailto:"+(n=d(this.options.mangle?t(r[0]):r[0]));else{var o;do{o=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])[0]}while(o!==r[0]);n=d(r[0]),i="www."===r[1]?"http://"+n:n}return{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}},r.inlineText=function(e,t){var r,n=this.rules.inline.text.exec(e);if(n)return r=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:r}},t}(),O={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}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)( [^\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]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};O.def=g(O.def).replace("label",O._label).replace("title",O._title).getRegex(),O.bullet=/(?:[*+-]|\d{1,9}[.)])/,O.listItemStart=g(/^( *)(bull) */).replace("bull",O.bullet).getRegex(),O.list=g(O.list).replace(/bull/g,O.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+O.def.source+")").getRegex(),O._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",O._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,O.html=g(O.html,"i").replace("comment",O._comment).replace("tag",O._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),O.paragraph=g(O._paragraph).replace("hr",O.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",O._tag).getRegex(),O.blockquote=g(O.blockquote).replace("paragraph",O.paragraph).getRegex(),O.normal=E({},O),O.gfm=E({},O.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),O.gfm.table=g(O.gfm.table).replace("hr",O.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",O._tag).getRegex(),O.gfm.paragraph=g(O._paragraph).replace("hr",O.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",O.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",O._tag).getRegex(),O.pedantic=E({},O.normal,{html:g("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",O._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:g(O.normal._paragraph).replace("hr",O.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",O.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var R={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 M(e){return e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function B(e){var t,r,n="",i=e.length;for(t=0;t<i;t++)r=e.charCodeAt(t),Math.random()>.5&&(r="x"+r.toString(16)),n+="&#"+r+";";return n}R._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",R.punctuation=g(R.punctuation).replace(/punctuation/g,R._punctuation).getRegex(),R.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,R.escapedEmSt=/\\\*|\\_/g,R._comment=g(O._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),R.emStrong.lDelim=g(R.emStrong.lDelim).replace(/punct/g,R._punctuation).getRegex(),R.emStrong.rDelimAst=g(R.emStrong.rDelimAst,"g").replace(/punct/g,R._punctuation).getRegex(),R.emStrong.rDelimUnd=g(R.emStrong.rDelimUnd,"g").replace(/punct/g,R._punctuation).getRegex(),R._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,R._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,R._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])?)+(?![-_])/,R.autolink=g(R.autolink).replace("scheme",R._scheme).replace("email",R._email).getRegex(),R._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,R.tag=g(R.tag).replace("comment",R._comment).replace("attribute",R._attribute).getRegex(),R._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,R._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,R._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,R.link=g(R.link).replace("label",R._label).replace("href",R._href).replace("title",R._title).getRegex(),R.reflink=g(R.reflink).replace("label",R._label).replace("ref",O._label).getRegex(),R.nolink=g(R.nolink).replace("ref",O._label).getRegex(),R.reflinkSearch=g(R.reflinkSearch,"g").replace("reflink",R.reflink).replace("nolink",R.nolink).getRegex(),R.normal=E({},R),R.pedantic=E({},R.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:g(/^!?\[(label)\]\((.*?)\)/).replace("label",R._label).getRegex(),reflink:g(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",R._label).getRegex()}),R.gfm=E({},R.normal,{escape:g(R.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.!#$%&'*+\/=?_`{\|}~-]+@)))/}),R.gfm.url=g(R.gfm.url,"i").replace("email",R.gfm._extended_email).getRegex(),R.breaks=E({},R.gfm,{br:g(R.br).replace("{2,}","*").getRegex(),text:g(R.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var P=function(){function r(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||e.defaults,this.options.tokenizer=this.options.tokenizer||new I,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 r={block:O.normal,inline:R.normal};this.options.pedantic?(r.block=O.pedantic,r.inline=R.pedantic):this.options.gfm&&(r.block=O.gfm,this.options.breaks?r.inline=R.breaks:r.inline=R.gfm),this.tokenizer.rules=r}r.lex=function(e,t){return new r(t).lex(e)},r.lexInline=function(e,t){return new r(t).inlineTokens(e)};var n,i,o,s=r.prototype;return s.lex=function(e){var t;for(e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens},s.blockTokens=function(e,t){var r,n,i,o,s=this;for(void 0===t&&(t=[]),this.options.pedantic&&(e=e.replace(/^ +$/gm,""));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((function(n){return!!(r=n.call({lexer:s},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)}))))if(r=this.tokenizer.space(e))e=e.substring(r.raw.length),1===r.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(r);else if(r=this.tokenizer.code(e))e=e.substring(r.raw.length),!(n=t[t.length-1])||"paragraph"!==n.type&&"text"!==n.type?t.push(r):(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(r=this.tokenizer.fences(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.heading(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.hr(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.blockquote(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.list(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.html(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.def(e))e=e.substring(r.raw.length),!(n=t[t.length-1])||"paragraph"!==n.type&&"text"!==n.type?this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title}):(n.raw+="\n"+r.raw,n.text+="\n"+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(r=this.tokenizer.table(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.lheading(e))e=e.substring(r.raw.length),t.push(r);else if(i=e,this.options.extensions&&this.options.extensions.startBlock&&function(){var t=1/0,r=e.slice(1),n=void 0;s.options.extensions.startBlock.forEach((function(e){"number"==typeof(n=e.call({lexer:this},r))&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(i=e.substring(0,t+1))}(),this.state.top&&(r=this.tokenizer.paragraph(i)))n=t[t.length-1],o&&"paragraph"===n.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r),o=i.length!==e.length,e=e.substring(r.raw.length);else if(r=this.tokenizer.text(e))e=e.substring(r.raw.length),(n=t[t.length-1])&&"text"===n.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r);else if(e){var a="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(a);break}throw new Error(a)}return this.state.top=!0,t},s.inline=function(e,t){this.inlineQueue.push({src:e,tokens:t})},s.inlineTokens=function(e,t){var r,n,i,o=this;void 0===t&&(t=[]);var s,a,c,l=e;if(this.tokens.links){var u=Object.keys(this.tokens.links);if(u.length>0)for(;null!=(s=this.tokenizer.rules.inline.reflinkSearch.exec(l));)u.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,s.index)+"["+T("a",s[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(s=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,s.index)+"["+T("a",s[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(s=this.tokenizer.rules.inline.escapedEmSt.exec(l));)l=l.slice(0,s.index)+"++"+l.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(a||(c=""),a=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((function(n){return!!(r=n.call({lexer:o},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)}))))if(r=this.tokenizer.escape(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.tag(e))e=e.substring(r.raw.length),(n=t[t.length-1])&&"text"===r.type&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);else if(r=this.tokenizer.link(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(r.raw.length),(n=t[t.length-1])&&"text"===r.type&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);else if(r=this.tokenizer.emStrong(e,l,c))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.codespan(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.br(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.del(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.autolink(e,B))e=e.substring(r.raw.length),t.push(r);else if(this.state.inLink||!(r=this.tokenizer.url(e,B))){if(i=e,this.options.extensions&&this.options.extensions.startInline&&function(){var t=1/0,r=e.slice(1),n=void 0;o.options.extensions.startInline.forEach((function(e){"number"==typeof(n=e.call({lexer:this},r))&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(i=e.substring(0,t+1))}(),r=this.tokenizer.inlineText(i,M))e=e.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(c=r.raw.slice(-1)),a=!0,(n=t[t.length-1])&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);else if(e){var d="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(d);break}throw new Error(d)}}else e=e.substring(r.raw.length),t.push(r);return t},n=r,o=[{key:"rules",get:function(){return{block:O,inline:R}}}],(i=null)&&t(n.prototype,i),o&&t(n,o),Object.defineProperty(n,"prototype",{writable:!1}),r}(),F=function(){function t(t){this.options=t||e.defaults}var r=t.prototype;return r.code=function(e,t,r){var n=(t||"").match(/\S*/)[0];if(this.options.highlight){var i=this.options.highlight(e,n);null!=i&&i!==e&&(r=!0,e=i)}return e=e.replace(/\n$/,"")+"\n",n?'<pre><code class="'+this.options.langPrefix+d(n,!0)+'">'+(r?e:d(e,!0))+"</code></pre>\n":"<pre><code>"+(r?e:d(e,!0))+"</code></pre>\n"},r.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},r.html=function(e){return e},r.heading=function(e,t,r,n){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+n.slug(r)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"},r.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},r.list=function(e,t,r){var n=t?"ol":"ul";return"<"+n+(t&&1!==r?' start="'+r+'"':"")+">\n"+e+"</"+n+">\n"},r.listitem=function(e){return"<li>"+e+"</li>\n"},r.checkbox=function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},r.paragraph=function(e){return"<p>"+e+"</p>\n"},r.table=function(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"},r.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},r.tablecell=function(e,t){var r=t.header?"th":"td";return(t.align?"<"+r+' align="'+t.align+'">':"<"+r+">")+e+"</"+r+">\n"},r.strong=function(e){return"<strong>"+e+"</strong>"},r.em=function(e){return"<em>"+e+"</em>"},r.codespan=function(e){return"<code>"+e+"</code>"},r.br=function(){return this.options.xhtml?"<br/>":"<br>"},r.del=function(e){return"<del>"+e+"</del>"},r.link=function(e,t,r){if(null===(e=v(this.options.sanitize,this.options.baseUrl,e)))return r;var n='<a href="'+d(e)+'"';return t&&(n+=' title="'+t+'"'),n+=">"+r+"</a>"},r.image=function(e,t,r){if(null===(e=v(this.options.sanitize,this.options.baseUrl,e)))return r;var n='<img src="'+e+'" alt="'+r+'"';return t&&(n+=' title="'+t+'"'),n+=this.options.xhtml?"/>":">"},r.text=function(e){return e},t}(),L=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,r){return""+r},t.image=function(e,t,r){return""+r},t.br=function(){return""},e}(),N=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var r=e,n=0;if(this.seen.hasOwnProperty(r)){n=this.seen[e];do{r=e+"-"+ ++n}while(this.seen.hasOwnProperty(r))}return t||(this.seen[e]=n,this.seen[r]=0),r},t.slug=function(e,t){void 0===t&&(t={});var r=this.serialize(e);return this.getNextSafeSlug(r,t.dryrun)},e}(),j=function(){function t(t){this.options=t||e.defaults,this.options.renderer=this.options.renderer||new F,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new L,this.slugger=new N}t.parse=function(e,r){return new t(r).parse(e)},t.parseInline=function(e,r){return new t(r).parseInline(e)};var r=t.prototype;return r.parse=function(e,t){void 0===t&&(t=!0);var r,n,i,o,s,a,c,l,u,d,h,p,g,m,b,v,y,_,w,C="",k=e.length;for(r=0;r<k;r++)if(d=e[r],!(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[d.type])||!1===(w=this.options.extensions.renderers[d.type].call({parser:this},d))&&["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(d.type))switch(d.type){case"space":continue;case"hr":C+=this.renderer.hr();continue;case"heading":C+=this.renderer.heading(this.parseInline(d.tokens),d.depth,f(this.parseInline(d.tokens,this.textRenderer)),this.slugger);continue;case"code":C+=this.renderer.code(d.text,d.lang,d.escaped);continue;case"table":for(l="",c="",o=d.header.length,n=0;n<o;n++)c+=this.renderer.tablecell(this.parseInline(d.header[n].tokens),{header:!0,align:d.align[n]});for(l+=this.renderer.tablerow(c),u="",o=d.rows.length,n=0;n<o;n++){for(c="",s=(a=d.rows[n]).length,i=0;i<s;i++)c+=this.renderer.tablecell(this.parseInline(a[i].tokens),{header:!1,align:d.align[i]});u+=this.renderer.tablerow(c)}C+=this.renderer.table(l,u);continue;case"blockquote":u=this.parse(d.tokens),C+=this.renderer.blockquote(u);continue;case"list":for(h=d.ordered,p=d.start,g=d.loose,o=d.items.length,u="",n=0;n<o;n++)v=(b=d.items[n]).checked,y=b.task,m="",b.task&&(_=this.renderer.checkbox(v),g?b.tokens.length>0&&"paragraph"===b.tokens[0].type?(b.tokens[0].text=_+" "+b.tokens[0].text,b.tokens[0].tokens&&b.tokens[0].tokens.length>0&&"text"===b.tokens[0].tokens[0].type&&(b.tokens[0].tokens[0].text=_+" "+b.tokens[0].tokens[0].text)):b.tokens.unshift({type:"text",text:_}):m+=_),m+=this.parse(b.tokens,g),u+=this.renderer.listitem(m,y,v);C+=this.renderer.list(u,h,p);continue;case"html":C+=this.renderer.html(d.text);continue;case"paragraph":C+=this.renderer.paragraph(this.parseInline(d.tokens));continue;case"text":for(u=d.tokens?this.parseInline(d.tokens):d.text;r+1<k&&"text"===e[r+1].type;)u+="\n"+((d=e[++r]).tokens?this.parseInline(d.tokens):d.text);C+=t?this.renderer.paragraph(u):u;continue;default:var E='Token with "'+d.type+'" type was not found.';if(this.options.silent)return void console.error(E);throw new Error(E)}else C+=w||"";return C},r.parseInline=function(e,t){t=t||this.renderer;var r,n,i,o="",s=e.length;for(r=0;r<s;r++)if(n=e[r],!(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[n.type])||!1===(i=this.options.extensions.renderers[n.type].call({parser:this},n))&&["escape","html","link","image","strong","em","codespan","br","del","text"].includes(n.type))switch(n.type){case"escape":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;case"text":o+=t.text(n.text);break;default:var a='Token with "'+n.type+'" type was not found.';if(this.options.silent)return void console.error(a);throw new Error(a)}else o+=i||"";return o},t}();function H(e,t,r){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if("function"==typeof t&&(r=t,t=null),x(t=E({},H.defaults,t||{})),r){var n,i=t.highlight;try{n=P.lex(e,t)}catch(e){return r(e)}var o=function(e){var o;if(!e)try{t.walkTokens&&H.walkTokens(n,t.walkTokens),o=j.parse(n,t)}catch(t){e=t}return t.highlight=i,e?r(e):r(null,o)};if(!i||i.length<3)return o();if(delete t.highlight,!n.length)return o();var s=0;return H.walkTokens(n,(function(e){"code"===e.type&&(s++,setTimeout((function(){i(e.text,e.lang,(function(t,r){if(t)return o(t);null!=r&&r!==e.text&&(e.text=r,e.escaped=!0),0==--s&&o()}))}),0))})),void(0===s&&o())}try{var a=P.lex(e,t);return t.walkTokens&&H.walkTokens(a,t.walkTokens),j.parse(a,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}}H.options=H.setOptions=function(t){var r;return E(H.defaults,t),r=H.defaults,e.defaults=r,H},H.getDefaults=i,H.defaults=e.defaults,H.use=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,i=E.apply(void 0,[{}].concat(t)),o=H.defaults.extensions||{renderers:{},childTokens:{}};t.forEach((function(e){if(e.extensions&&(n=!0,e.extensions.forEach((function(e){if(!e.name)throw new Error("extension name required");if(e.renderer){var t=o.renderers?o.renderers[e.name]:null;o.renderers[e.name]=t?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o=e.renderer.apply(this,n);return!1===o&&(o=t.apply(this,n)),o}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new 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)}))),e.renderer&&function(){var t=H.defaults.renderer||new F,r=function(r){var n=t[r];t[r]=function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];var a=e.renderer[r].apply(t,o);return!1===a&&(a=n.apply(t,o)),a}};for(var n in e.renderer)r(n);i.renderer=t}(),e.tokenizer&&function(){var t=H.defaults.tokenizer||new I,r=function(r){var n=t[r];t[r]=function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];var a=e.tokenizer[r].apply(t,o);return!1===a&&(a=n.apply(t,o)),a}};for(var n in e.tokenizer)r(n);i.tokenizer=t}(),e.walkTokens){var t=H.defaults.walkTokens;i.walkTokens=function(r){e.walkTokens.call(this,r),t&&t.call(this,r)}}n&&(i.extensions=o),H.setOptions(i)}))},H.walkTokens=function(e,t){for(var r,i=function(){var e=r.value;switch(t.call(H,e),e.type){case"table":for(var i,o=n(e.header);!(i=o()).done;){var s=i.value;H.walkTokens(s.tokens,t)}for(var a,c=n(e.rows);!(a=c()).done;)for(var l,u=n(a.value);!(l=u()).done;){var d=l.value;H.walkTokens(d.tokens,t)}break;case"list":H.walkTokens(e.items,t);break;default:H.defaults.extensions&&H.defaults.extensions.childTokens&&H.defaults.extensions.childTokens[e.type]?H.defaults.extensions.childTokens[e.type].forEach((function(r){H.walkTokens(e[r],t)})):e.tokens&&H.walkTokens(e.tokens,t)}},o=n(e);!(r=o()).done;)i()},H.parseInline=function(e,t){if(null==e)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");x(t=E({},H.defaults,t||{}));try{var r=P.lexInline(e,t);return t.walkTokens&&H.walkTokens(r,t.walkTokens),j.parseInline(r,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}},H.Parser=j,H.parser=j.parse,H.Renderer=F,H.TextRenderer=L,H.Lexer=P,H.lexer=P.lex,H.Tokenizer=I,H.Slugger=N,H.parse=H;var U=H.options,z=H.setOptions,W=H.use,V=H.walkTokens,$=H.parseInline,G=H,q=j.parse,K=P.lex;e.Lexer=P,e.Parser=j,e.Renderer=F,e.Slugger=N,e.TextRenderer=L,e.Tokenizer=I,e.getDefaults=i,e.lexer=K,e.marked=H,e.options=U,e.parse=G,e.parseInline=$,e.parser=q,e.setOptions=z,e.use=W,e.walkTokens=V,Object.defineProperty(e,"__esModule",{value:!0})}(t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1);n.__exportStar(r(584),t),n.__exportStar(r(585),t),n.__exportStar(r(586),t),n.__exportStar(r(587),t),n.__exportStar(r(588),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IBrowserFileSystemRegistry=t.IFileServiceClient=void 0;const n=r(0);t.IFileServiceClient=n.IFileServiceClient,t.IBrowserFileSystemRegistry=Symbol("IBrowserFileSystemRegistry")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isErrnoException=t.notEmpty=t.containsExtraFileMethod=t.FileSystemError=t.markAsFileSystemProviderError=t.createFileSystemProviderError=t.FileOperationError=t.FileSystemProviderError=t.FileSystemProviderErrorCode=t.FileAccess=t.IFileService=t.IShadowFileProvider=t.IDiskFileProvider=t.FileStat=t.FileType=void 0;const n=r(1),i=r(0);var o,s=r(159);Object.defineProperty(t,"FileType",{enumerable:!0,get:function(){return s.FileType}}),Object.defineProperty(t,"FileStat",{enumerable:!0,get:function(){return s.FileStat}}),n.__exportStar(r(160),t),t.IDiskFileProvider=Symbol("IDiskFileProvider"),t.IShadowFileProvider=Symbol("IShadowFileProvider"),t.IFileService=Symbol("IFileService"),function(e){let t;!function(e){e.F_OK=0,e.R_OK=4,e.W_OK=2,e.X_OK=1}(t=e.Constants||(e.Constants={}))}(t.FileAccess||(t.FileAccess={})),function(e){e.FileExists="EntryExists",e.FileNotFound="EntryNotFound",e.FileNotADirectory="EntryNotADirectory",e.FileIsADirectory="EntryIsADirectory",e.FileIsOutOfSync="FileIsOutOfSync",e.FileExceedsMemoryLimit="EntryExceedsMemoryLimit",e.FileTooLarge="EntryTooLarge",e.FileWriteLocked="EntryWriteLocked",e.NoPermissions="NoPermissions",e.Unavailable="Unavailable",e.Unknown="Unknown"}(o=t.FileSystemProviderErrorCode||(t.FileSystemProviderErrorCode={}));class a extends Error{static declare(e,t){return Object.assign((...r)=>l(t(...r),e),{is:t=>{var r;return null===(r=t.stack)||void 0===r?void 0:r.startsWith(e)}})}constructor(e,t){super(e),this.code=t}is(e){return this.name===e.name}}t.FileSystemProviderError=a;class c extends Error{constructor(e,t,r){super(e),this.fileOperationResult=t,this.options=r}static isFileOperationError(e){return e instanceof Error&&!(0,i.isUndefinedOrNull)(e.fileOperationResult)}}function l(e,t){const r=new a(e.toString(),t);return u(r,t),r}function u(e,t){return e.name=t?t+" (FileSystemError)":"FileSystemError",e}t.FileOperationError=c,t.createFileSystemProviderError=l,t.markAsFileSystemProviderError=u,function(e){e.FileNotFound=a.declare(o.FileNotFound,(e,t)=>`${t?t+" ":""} '${e}' is not found.`),e.FileExists=a.declare(o.FileExists,(e,t)=>`${t?t+" ":""}'${e}' already exists.`),e.FileNotADirectory=a.declare(o.FileNotADirectory,(e,t)=>`${t?t+" ":""}'${e}' is not a directory.`),e.FileIsADirectory=a.declare(o.FileIsADirectory,(e,t)=>`${t?t+" ":""}'${e}' is a directory.`),e.FileIsOutOfSync=a.declare(o.FileIsOutOfSync,(e,t)=>`${t?t+" ":""}'${e}' is out of sync.`),e.FileExceedsMemoryLimit=a.declare(o.FileExceedsMemoryLimit,(e,t)=>`${t?t+" ":""}'${e}' is exceeds memory limit.`),e.FileTooLarge=a.declare(o.FileTooLarge,(e,t)=>`${t?t+" ":""}'${e}' is too large.`),e.FileWriteLocked=a.declare(o.FileWriteLocked,(e,t)=>`${t?t+" ":""}'${e}' is locked.`),e.FileIsNoPermissions=a.declare(o.NoPermissions,(e,t)=>`${t?t+" ":""}'${e}' is no permissions.`),e.Unavailable=a.declare(o.Unavailable,(e,t)=>`${t?t+" ":""}'${e}' is unavailable.`),e.Unknown=a.declare(o.Unknown,(e,t)=>`${t?t+" ":""}'${e}' is unkonw.`)}(t.FileSystemError||(t.FileSystemError={})),t.containsExtraFileMethod=function(e,t){return(0,i.hasProperty)(e,t)&&(0,i.isFunction)(e[t])},t.notEmpty=function(e){return void 0!==e},t.isErrnoException=function(e){return void 0!==e.code&&void 0!==e.errno}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.INsfw=void 0,function(e){let t;!function(e){e[e.CREATED=0]="CREATED",e[e.DELETED=1]="DELETED",e[e.MODIFIED=2]="MODIFIED",e[e.RENAMED=3]="RENAMED"}(t=e.actions||(e.actions={}))}(t.INsfw||(t.INsfw={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFileTypeByExt=t.EXT_LIST_IMAGE=t.EXT_LIST_VIDEO=void 0,t.EXT_LIST_VIDEO=["mp4","webm","mkv","mov","mts","flv","avi","wmv"],t.EXT_LIST_IMAGE=["png","gif","jpg","jpeg","svg","bmp","avif","cr2","cr3","dng","flif","heic","icns","jxl","jpm","jpx","nef","raf","rw2","tif","orf","webp","apng"],t.getFileTypeByExt=function(e){let r="text";return e?(-1!==t.EXT_LIST_IMAGE.indexOf(e)?r="image":-1!==t.EXT_LIST_VIDEO.indexOf(e)?r="video":e&&-1===["xml"].indexOf(e)&&(r="binary"),r):r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileExtServicePath=t.FileWatcherServicePath=t.ShadowFileServicePath=t.DiskFileServicePath=t.FileServicePath=void 0,t.FileServicePath="FileService",t.DiskFileServicePath="DiskFileService",t.ShadowFileServicePath="ShadowFileService",t.FileWatcherServicePath="FileWatcherService",t.FileExtServicePath="FileExtServicePath"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndentAction=t.CodeActionTriggerType=t.Emitter=t.EndOfLineSequence=void 0;var n=r(245);Object.defineProperty(t,"EndOfLineSequence",{enumerable:!0,get:function(){return n.EndOfLineSequence}});var i=r(61);Object.defineProperty(t,"Emitter",{enumerable:!0,get:function(){return i.Emitter}});var o=r(125);Object.defineProperty(t,"CodeActionTriggerType",{enumerable:!0,get:function(){return o.CodeActionTriggerType}}),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(t.IndentAction||(t.IndentAction={}))},function(e,t,r){"use strict";function n(e){return"string"==typeof e}function i(e){return void 0===e}function o(e){return i(e)||null===e}function s(e){return"function"==typeof e}function a(e,t){if(n(t)){if(typeof e!==t)throw new Error("argument does not match constraint: typeof "+t)}else if(s(t)){try{if(e instanceof t)return}catch(e){}if(!o(e)&&e.constructor===t)return;if(1===t.length&&!0===t.call(void 0,e))return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}Object.defineProperty(t,"__esModule",{value:!0}),t.withNullAsUndefined=t.validateConstraint=t.validateConstraints=t.isFunction=t.assertIsDefined=t.assertType=t.isUndefinedOrNull=t.isDefined=t.isUndefined=t.isBoolean=t.isIterable=t.isNumber=t.isTypedArray=t.isObject=t.isString=void 0,t.isString=n,t.isObject=function(e){return!("object"!=typeof e||null===e||Array.isArray(e)||e instanceof RegExp||e instanceof Date)},t.isTypedArray=function(e){const t=Object.getPrototypeOf(Uint8Array);return"object"==typeof e&&e instanceof t},t.isNumber=function(e){return"number"==typeof e&&!isNaN(e)},t.isIterable=function(e){return!!e&&"function"==typeof e[Symbol.iterator]},t.isBoolean=function(e){return!0===e||!1===e},t.isUndefined=i,t.isDefined=function(e){return!o(e)},t.isUndefinedOrNull=o,t.assertType=function(e,t){if(!e)throw new Error(t?`Unexpected type, expected '${t}'`:"Unexpected type")},t.assertIsDefined=function(e){if(o(e))throw new Error("Assertion Failed: argument is undefined or null");return e},t.isFunction=s,t.validateConstraints=function(e,t){const r=Math.min(e.length,t.length);for(let n=0;n<r;n++)a(e[n],t[n])},t.validateConstraint=a,t.withNullAsUndefined=function(e){return null===e?void 0:e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.once=void 0,t.once=function(e){const t=this;let r,n=!1;return function(){return n||(n=!0,r=e.apply(t,arguments)),r}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StopWatch=void 0;const n=r(31),i=n.globals.performance&&"function"==typeof n.globals.performance.now;class o{constructor(e){this._highResolution=i&&e,this._startTime=this._now(),this._stopTime=-1}static create(e=!0){return new o(e)}stop(){this._stopTime=this._now()}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?n.globals.performance.now():Date.now()}}t.StopWatch=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CSSIcon=t.Codicon=t.getCodiconAriaLabel=void 0,t.getCodiconAriaLabel=function(e){return e?e.replace(/\$\((.*?)\)/g,(e,t)=>` ${t} `).trim():""};class n{constructor(e,t,r){this.id=e,this.definition=t,this.description=r,n._allCodicons.push(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}static getAll(){return n._allCodicons}}t.Codicon=n,n._allCodicons=[],n.add=new n("add",{fontCharacter:"\\ea60"}),n.plus=new n("plus",n.add.definition),n.gistNew=new n("gist-new",n.add.definition),n.repoCreate=new n("repo-create",n.add.definition),n.lightbulb=new n("lightbulb",{fontCharacter:"\\ea61"}),n.lightBulb=new n("light-bulb",{fontCharacter:"\\ea61"}),n.repo=new n("repo",{fontCharacter:"\\ea62"}),n.repoDelete=new n("repo-delete",{fontCharacter:"\\ea62"}),n.gistFork=new n("gist-fork",{fontCharacter:"\\ea63"}),n.repoForked=new n("repo-forked",{fontCharacter:"\\ea63"}),n.gitPullRequest=new n("git-pull-request",{fontCharacter:"\\ea64"}),n.gitPullRequestAbandoned=new n("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),n.recordKeys=new n("record-keys",{fontCharacter:"\\ea65"}),n.keyboard=new n("keyboard",{fontCharacter:"\\ea65"}),n.tag=new n("tag",{fontCharacter:"\\ea66"}),n.tagAdd=new n("tag-add",{fontCharacter:"\\ea66"}),n.tagRemove=new n("tag-remove",{fontCharacter:"\\ea66"}),n.person=new n("person",{fontCharacter:"\\ea67"}),n.personFollow=new n("person-follow",{fontCharacter:"\\ea67"}),n.personOutline=new n("person-outline",{fontCharacter:"\\ea67"}),n.personFilled=new n("person-filled",{fontCharacter:"\\ea67"}),n.gitBranch=new n("git-branch",{fontCharacter:"\\ea68"}),n.gitBranchCreate=new n("git-branch-create",{fontCharacter:"\\ea68"}),n.gitBranchDelete=new n("git-branch-delete",{fontCharacter:"\\ea68"}),n.sourceControl=new n("source-control",{fontCharacter:"\\ea68"}),n.mirror=new n("mirror",{fontCharacter:"\\ea69"}),n.mirrorPublic=new n("mirror-public",{fontCharacter:"\\ea69"}),n.star=new n("star",{fontCharacter:"\\ea6a"}),n.starAdd=new n("star-add",{fontCharacter:"\\ea6a"}),n.starDelete=new n("star-delete",{fontCharacter:"\\ea6a"}),n.starEmpty=new n("star-empty",{fontCharacter:"\\ea6a"}),n.comment=new n("comment",{fontCharacter:"\\ea6b"}),n.commentAdd=new n("comment-add",{fontCharacter:"\\ea6b"}),n.alert=new n("alert",{fontCharacter:"\\ea6c"}),n.warning=new n("warning",{fontCharacter:"\\ea6c"}),n.search=new n("search",{fontCharacter:"\\ea6d"}),n.searchSave=new n("search-save",{fontCharacter:"\\ea6d"}),n.logOut=new n("log-out",{fontCharacter:"\\ea6e"}),n.signOut=new n("sign-out",{fontCharacter:"\\ea6e"}),n.logIn=new n("log-in",{fontCharacter:"\\ea6f"}),n.signIn=new n("sign-in",{fontCharacter:"\\ea6f"}),n.eye=new n("eye",{fontCharacter:"\\ea70"}),n.eyeUnwatch=new n("eye-unwatch",{fontCharacter:"\\ea70"}),n.eyeWatch=new n("eye-watch",{fontCharacter:"\\ea70"}),n.circleFilled=new n("circle-filled",{fontCharacter:"\\ea71"}),n.primitiveDot=new n("primitive-dot",n.circleFilled.definition),n.closeDirty=new n("close-dirty",n.circleFilled.definition),n.debugBreakpoint=new n("debug-breakpoint",n.circleFilled.definition),n.debugBreakpointDisabled=new n("debug-breakpoint-disabled",n.circleFilled.definition),n.debugHint=new n("debug-hint",n.circleFilled.definition),n.primitiveSquare=new n("primitive-square",{fontCharacter:"\\ea72"}),n.edit=new n("edit",{fontCharacter:"\\ea73"}),n.pencil=new n("pencil",{fontCharacter:"\\ea73"}),n.info=new n("info",{fontCharacter:"\\ea74"}),n.issueOpened=new n("issue-opened",{fontCharacter:"\\ea74"}),n.gistPrivate=new n("gist-private",{fontCharacter:"\\ea75"}),n.gitForkPrivate=new n("git-fork-private",{fontCharacter:"\\ea75"}),n.lock=new n("lock",{fontCharacter:"\\ea75"}),n.mirrorPrivate=new n("mirror-private",{fontCharacter:"\\ea75"}),n.close=new n("close",{fontCharacter:"\\ea76"}),n.removeClose=new n("remove-close",{fontCharacter:"\\ea76"}),n.x=new n("x",{fontCharacter:"\\ea76"}),n.repoSync=new n("repo-sync",{fontCharacter:"\\ea77"}),n.sync=new n("sync",{fontCharacter:"\\ea77"}),n.clone=new n("clone",{fontCharacter:"\\ea78"}),n.desktopDownload=new n("desktop-download",{fontCharacter:"\\ea78"}),n.beaker=new n("beaker",{fontCharacter:"\\ea79"}),n.microscope=new n("microscope",{fontCharacter:"\\ea79"}),n.vm=new n("vm",{fontCharacter:"\\ea7a"}),n.deviceDesktop=new n("device-desktop",{fontCharacter:"\\ea7a"}),n.file=new n("file",{fontCharacter:"\\ea7b"}),n.fileText=new n("file-text",{fontCharacter:"\\ea7b"}),n.more=new n("more",{fontCharacter:"\\ea7c"}),n.ellipsis=new n("ellipsis",{fontCharacter:"\\ea7c"}),n.kebabHorizontal=new n("kebab-horizontal",{fontCharacter:"\\ea7c"}),n.mailReply=new n("mail-reply",{fontCharacter:"\\ea7d"}),n.reply=new n("reply",{fontCharacter:"\\ea7d"}),n.organization=new n("organization",{fontCharacter:"\\ea7e"}),n.organizationFilled=new n("organization-filled",{fontCharacter:"\\ea7e"}),n.organizationOutline=new n("organization-outline",{fontCharacter:"\\ea7e"}),n.newFile=new n("new-file",{fontCharacter:"\\ea7f"}),n.fileAdd=new n("file-add",{fontCharacter:"\\ea7f"}),n.newFolder=new n("new-folder",{fontCharacter:"\\ea80"}),n.fileDirectoryCreate=new n("file-directory-create",{fontCharacter:"\\ea80"}),n.trash=new n("trash",{fontCharacter:"\\ea81"}),n.trashcan=new n("trashcan",{fontCharacter:"\\ea81"}),n.history=new n("history",{fontCharacter:"\\ea82"}),n.clock=new n("clock",{fontCharacter:"\\ea82"}),n.folder=new n("folder",{fontCharacter:"\\ea83"}),n.fileDirectory=new n("file-directory",{fontCharacter:"\\ea83"}),n.symbolFolder=new n("symbol-folder",{fontCharacter:"\\ea83"}),n.logoGithub=new n("logo-github",{fontCharacter:"\\ea84"}),n.markGithub=new n("mark-github",{fontCharacter:"\\ea84"}),n.github=new n("github",{fontCharacter:"\\ea84"}),n.terminal=new n("terminal",{fontCharacter:"\\ea85"}),n.console=new n("console",{fontCharacter:"\\ea85"}),n.repl=new n("repl",{fontCharacter:"\\ea85"}),n.zap=new n("zap",{fontCharacter:"\\ea86"}),n.symbolEvent=new n("symbol-event",{fontCharacter:"\\ea86"}),n.error=new n("error",{fontCharacter:"\\ea87"}),n.stop=new n("stop",{fontCharacter:"\\ea87"}),n.variable=new n("variable",{fontCharacter:"\\ea88"}),n.symbolVariable=new n("symbol-variable",{fontCharacter:"\\ea88"}),n.array=new n("array",{fontCharacter:"\\ea8a"}),n.symbolArray=new n("symbol-array",{fontCharacter:"\\ea8a"}),n.symbolModule=new n("symbol-module",{fontCharacter:"\\ea8b"}),n.symbolPackage=new n("symbol-package",{fontCharacter:"\\ea8b"}),n.symbolNamespace=new n("symbol-namespace",{fontCharacter:"\\ea8b"}),n.symbolObject=new n("symbol-object",{fontCharacter:"\\ea8b"}),n.symbolMethod=new n("symbol-method",{fontCharacter:"\\ea8c"}),n.symbolFunction=new n("symbol-function",{fontCharacter:"\\ea8c"}),n.symbolConstructor=new n("symbol-constructor",{fontCharacter:"\\ea8c"}),n.symbolBoolean=new n("symbol-boolean",{fontCharacter:"\\ea8f"}),n.symbolNull=new n("symbol-null",{fontCharacter:"\\ea8f"}),n.symbolNumeric=new n("symbol-numeric",{fontCharacter:"\\ea90"}),n.symbolNumber=new n("symbol-number",{fontCharacter:"\\ea90"}),n.symbolStructure=new n("symbol-structure",{fontCharacter:"\\ea91"}),n.symbolStruct=new n("symbol-struct",{fontCharacter:"\\ea91"}),n.symbolParameter=new n("symbol-parameter",{fontCharacter:"\\ea92"}),n.symbolTypeParameter=new n("symbol-type-parameter",{fontCharacter:"\\ea92"}),n.symbolKey=new n("symbol-key",{fontCharacter:"\\ea93"}),n.symbolText=new n("symbol-text",{fontCharacter:"\\ea93"}),n.symbolReference=new n("symbol-reference",{fontCharacter:"\\ea94"}),n.goToFile=new n("go-to-file",{fontCharacter:"\\ea94"}),n.symbolEnum=new n("symbol-enum",{fontCharacter:"\\ea95"}),n.symbolValue=new n("symbol-value",{fontCharacter:"\\ea95"}),n.symbolRuler=new n("symbol-ruler",{fontCharacter:"\\ea96"}),n.symbolUnit=new n("symbol-unit",{fontCharacter:"\\ea96"}),n.activateBreakpoints=new n("activate-breakpoints",{fontCharacter:"\\ea97"}),n.archive=new n("archive",{fontCharacter:"\\ea98"}),n.arrowBoth=new n("arrow-both",{fontCharacter:"\\ea99"}),n.arrowDown=new n("arrow-down",{fontCharacter:"\\ea9a"}),n.arrowLeft=new n("arrow-left",{fontCharacter:"\\ea9b"}),n.arrowRight=new n("arrow-right",{fontCharacter:"\\ea9c"}),n.arrowSmallDown=new n("arrow-small-down",{fontCharacter:"\\ea9d"}),n.arrowSmallLeft=new n("arrow-small-left",{fontCharacter:"\\ea9e"}),n.arrowSmallRight=new n("arrow-small-right",{fontCharacter:"\\ea9f"}),n.arrowSmallUp=new n("arrow-small-up",{fontCharacter:"\\eaa0"}),n.arrowUp=new n("arrow-up",{fontCharacter:"\\eaa1"}),n.bell=new n("bell",{fontCharacter:"\\eaa2"}),n.bold=new n("bold",{fontCharacter:"\\eaa3"}),n.book=new n("book",{fontCharacter:"\\eaa4"}),n.bookmark=new n("bookmark",{fontCharacter:"\\eaa5"}),n.debugBreakpointConditionalUnverified=new n("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),n.debugBreakpointConditional=new n("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),n.debugBreakpointConditionalDisabled=new n("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),n.debugBreakpointDataUnverified=new n("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),n.debugBreakpointData=new n("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),n.debugBreakpointDataDisabled=new n("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),n.debugBreakpointLogUnverified=new n("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),n.debugBreakpointLog=new n("debug-breakpoint-log",{fontCharacter:"\\eaab"}),n.debugBreakpointLogDisabled=new n("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),n.briefcase=new n("briefcase",{fontCharacter:"\\eaac"}),n.broadcast=new n("broadcast",{fontCharacter:"\\eaad"}),n.browser=new n("browser",{fontCharacter:"\\eaae"}),n.bug=new n("bug",{fontCharacter:"\\eaaf"}),n.calendar=new n("calendar",{fontCharacter:"\\eab0"}),n.caseSensitive=new n("case-sensitive",{fontCharacter:"\\eab1"}),n.check=new n("check",{fontCharacter:"\\eab2"}),n.checklist=new n("checklist",{fontCharacter:"\\eab3"}),n.chevronDown=new n("chevron-down",{fontCharacter:"\\eab4"}),n.dropDownButton=new n("drop-down-button",n.chevronDown.definition),n.chevronLeft=new n("chevron-left",{fontCharacter:"\\eab5"}),n.chevronRight=new n("chevron-right",{fontCharacter:"\\eab6"}),n.chevronUp=new n("chevron-up",{fontCharacter:"\\eab7"}),n.chromeClose=new n("chrome-close",{fontCharacter:"\\eab8"}),n.chromeMaximize=new n("chrome-maximize",{fontCharacter:"\\eab9"}),n.chromeMinimize=new n("chrome-minimize",{fontCharacter:"\\eaba"}),n.chromeRestore=new n("chrome-restore",{fontCharacter:"\\eabb"}),n.circle=new n("circle",{fontCharacter:"\\eabc"}),n.circleOutline=new n("circle-outline",n.circle.definition),n.debugBreakpointUnverified=new n("debug-breakpoint-unverified",n.circle.definition),n.circleSlash=new n("circle-slash",{fontCharacter:"\\eabd"}),n.circuitBoard=new n("circuit-board",{fontCharacter:"\\eabe"}),n.clearAll=new n("clear-all",{fontCharacter:"\\eabf"}),n.clippy=new n("clippy",{fontCharacter:"\\eac0"}),n.closeAll=new n("close-all",{fontCharacter:"\\eac1"}),n.cloudDownload=new n("cloud-download",{fontCharacter:"\\eac2"}),n.cloudUpload=new n("cloud-upload",{fontCharacter:"\\eac3"}),n.code=new n("code",{fontCharacter:"\\eac4"}),n.collapseAll=new n("collapse-all",{fontCharacter:"\\eac5"}),n.colorMode=new n("color-mode",{fontCharacter:"\\eac6"}),n.commentDiscussion=new n("comment-discussion",{fontCharacter:"\\eac7"}),n.compareChanges=new n("compare-changes",{fontCharacter:"\\eafd"}),n.creditCard=new n("credit-card",{fontCharacter:"\\eac9"}),n.dash=new n("dash",{fontCharacter:"\\eacc"}),n.dashboard=new n("dashboard",{fontCharacter:"\\eacd"}),n.database=new n("database",{fontCharacter:"\\eace"}),n.debugContinue=new n("debug-continue",{fontCharacter:"\\eacf"}),n.debugDisconnect=new n("debug-disconnect",{fontCharacter:"\\ead0"}),n.debugPause=new n("debug-pause",{fontCharacter:"\\ead1"}),n.debugRestart=new n("debug-restart",{fontCharacter:"\\ead2"}),n.debugStart=new n("debug-start",{fontCharacter:"\\ead3"}),n.debugStepInto=new n("debug-step-into",{fontCharacter:"\\ead4"}),n.debugStepOut=new n("debug-step-out",{fontCharacter:"\\ead5"}),n.debugStepOver=new n("debug-step-over",{fontCharacter:"\\ead6"}),n.debugStop=new n("debug-stop",{fontCharacter:"\\ead7"}),n.debug=new n("debug",{fontCharacter:"\\ead8"}),n.deviceCameraVideo=new n("device-camera-video",{fontCharacter:"\\ead9"}),n.deviceCamera=new n("device-camera",{fontCharacter:"\\eada"}),n.deviceMobile=new n("device-mobile",{fontCharacter:"\\eadb"}),n.diffAdded=new n("diff-added",{fontCharacter:"\\eadc"}),n.diffIgnored=new n("diff-ignored",{fontCharacter:"\\eadd"}),n.diffModified=new n("diff-modified",{fontCharacter:"\\eade"}),n.diffRemoved=new n("diff-removed",{fontCharacter:"\\eadf"}),n.diffRenamed=new n("diff-renamed",{fontCharacter:"\\eae0"}),n.diff=new n("diff",{fontCharacter:"\\eae1"}),n.discard=new n("discard",{fontCharacter:"\\eae2"}),n.editorLayout=new n("editor-layout",{fontCharacter:"\\eae3"}),n.emptyWindow=new n("empty-window",{fontCharacter:"\\eae4"}),n.exclude=new n("exclude",{fontCharacter:"\\eae5"}),n.extensions=new n("extensions",{fontCharacter:"\\eae6"}),n.eyeClosed=new n("eye-closed",{fontCharacter:"\\eae7"}),n.fileBinary=new n("file-binary",{fontCharacter:"\\eae8"}),n.fileCode=new n("file-code",{fontCharacter:"\\eae9"}),n.fileMedia=new n("file-media",{fontCharacter:"\\eaea"}),n.filePdf=new n("file-pdf",{fontCharacter:"\\eaeb"}),n.fileSubmodule=new n("file-submodule",{fontCharacter:"\\eaec"}),n.fileSymlinkDirectory=new n("file-symlink-directory",{fontCharacter:"\\eaed"}),n.fileSymlinkFile=new n("file-symlink-file",{fontCharacter:"\\eaee"}),n.fileZip=new n("file-zip",{fontCharacter:"\\eaef"}),n.files=new n("files",{fontCharacter:"\\eaf0"}),n.filter=new n("filter",{fontCharacter:"\\eaf1"}),n.flame=new n("flame",{fontCharacter:"\\eaf2"}),n.foldDown=new n("fold-down",{fontCharacter:"\\eaf3"}),n.foldUp=new n("fold-up",{fontCharacter:"\\eaf4"}),n.fold=new n("fold",{fontCharacter:"\\eaf5"}),n.folderActive=new n("folder-active",{fontCharacter:"\\eaf6"}),n.folderOpened=new n("folder-opened",{fontCharacter:"\\eaf7"}),n.gear=new n("gear",{fontCharacter:"\\eaf8"}),n.gift=new n("gift",{fontCharacter:"\\eaf9"}),n.gistSecret=new n("gist-secret",{fontCharacter:"\\eafa"}),n.gist=new n("gist",{fontCharacter:"\\eafb"}),n.gitCommit=new n("git-commit",{fontCharacter:"\\eafc"}),n.gitCompare=new n("git-compare",{fontCharacter:"\\eafd"}),n.gitMerge=new n("git-merge",{fontCharacter:"\\eafe"}),n.githubAction=new n("github-action",{fontCharacter:"\\eaff"}),n.githubAlt=new n("github-alt",{fontCharacter:"\\eb00"}),n.globe=new n("globe",{fontCharacter:"\\eb01"}),n.grabber=new n("grabber",{fontCharacter:"\\eb02"}),n.graph=new n("graph",{fontCharacter:"\\eb03"}),n.gripper=new n("gripper",{fontCharacter:"\\eb04"}),n.heart=new n("heart",{fontCharacter:"\\eb05"}),n.home=new n("home",{fontCharacter:"\\eb06"}),n.horizontalRule=new n("horizontal-rule",{fontCharacter:"\\eb07"}),n.hubot=new n("hubot",{fontCharacter:"\\eb08"}),n.inbox=new n("inbox",{fontCharacter:"\\eb09"}),n.issueClosed=new n("issue-closed",{fontCharacter:"\\eba4"}),n.issueReopened=new n("issue-reopened",{fontCharacter:"\\eb0b"}),n.issues=new n("issues",{fontCharacter:"\\eb0c"}),n.italic=new n("italic",{fontCharacter:"\\eb0d"}),n.jersey=new n("jersey",{fontCharacter:"\\eb0e"}),n.json=new n("json",{fontCharacter:"\\eb0f"}),n.kebabVertical=new n("kebab-vertical",{fontCharacter:"\\eb10"}),n.key=new n("key",{fontCharacter:"\\eb11"}),n.law=new n("law",{fontCharacter:"\\eb12"}),n.lightbulbAutofix=new n("lightbulb-autofix",{fontCharacter:"\\eb13"}),n.linkExternal=new n("link-external",{fontCharacter:"\\eb14"}),n.link=new n("link",{fontCharacter:"\\eb15"}),n.listOrdered=new n("list-ordered",{fontCharacter:"\\eb16"}),n.listUnordered=new n("list-unordered",{fontCharacter:"\\eb17"}),n.liveShare=new n("live-share",{fontCharacter:"\\eb18"}),n.loading=new n("loading",{fontCharacter:"\\eb19"}),n.location=new n("location",{fontCharacter:"\\eb1a"}),n.mailRead=new n("mail-read",{fontCharacter:"\\eb1b"}),n.mail=new n("mail",{fontCharacter:"\\eb1c"}),n.markdown=new n("markdown",{fontCharacter:"\\eb1d"}),n.megaphone=new n("megaphone",{fontCharacter:"\\eb1e"}),n.mention=new n("mention",{fontCharacter:"\\eb1f"}),n.milestone=new n("milestone",{fontCharacter:"\\eb20"}),n.mortarBoard=new n("mortar-board",{fontCharacter:"\\eb21"}),n.move=new n("move",{fontCharacter:"\\eb22"}),n.multipleWindows=new n("multiple-windows",{fontCharacter:"\\eb23"}),n.mute=new n("mute",{fontCharacter:"\\eb24"}),n.noNewline=new n("no-newline",{fontCharacter:"\\eb25"}),n.note=new n("note",{fontCharacter:"\\eb26"}),n.octoface=new n("octoface",{fontCharacter:"\\eb27"}),n.openPreview=new n("open-preview",{fontCharacter:"\\eb28"}),n.package_=new n("package",{fontCharacter:"\\eb29"}),n.paintcan=new n("paintcan",{fontCharacter:"\\eb2a"}),n.pin=new n("pin",{fontCharacter:"\\eb2b"}),n.play=new n("play",{fontCharacter:"\\eb2c"}),n.run=new n("run",{fontCharacter:"\\eb2c"}),n.plug=new n("plug",{fontCharacter:"\\eb2d"}),n.preserveCase=new n("preserve-case",{fontCharacter:"\\eb2e"}),n.preview=new n("preview",{fontCharacter:"\\eb2f"}),n.project=new n("project",{fontCharacter:"\\eb30"}),n.pulse=new n("pulse",{fontCharacter:"\\eb31"}),n.question=new n("question",{fontCharacter:"\\eb32"}),n.quote=new n("quote",{fontCharacter:"\\eb33"}),n.radioTower=new n("radio-tower",{fontCharacter:"\\eb34"}),n.reactions=new n("reactions",{fontCharacter:"\\eb35"}),n.references=new n("references",{fontCharacter:"\\eb36"}),n.refresh=new n("refresh",{fontCharacter:"\\eb37"}),n.regex=new n("regex",{fontCharacter:"\\eb38"}),n.remoteExplorer=new n("remote-explorer",{fontCharacter:"\\eb39"}),n.remote=new n("remote",{fontCharacter:"\\eb3a"}),n.remove=new n("remove",{fontCharacter:"\\eb3b"}),n.replaceAll=new n("replace-all",{fontCharacter:"\\eb3c"}),n.replace=new n("replace",{fontCharacter:"\\eb3d"}),n.repoClone=new n("repo-clone",{fontCharacter:"\\eb3e"}),n.repoForcePush=new n("repo-force-push",{fontCharacter:"\\eb3f"}),n.repoPull=new n("repo-pull",{fontCharacter:"\\eb40"}),n.repoPush=new n("repo-push",{fontCharacter:"\\eb41"}),n.report=new n("report",{fontCharacter:"\\eb42"}),n.requestChanges=new n("request-changes",{fontCharacter:"\\eb43"}),n.rocket=new n("rocket",{fontCharacter:"\\eb44"}),n.rootFolderOpened=new n("root-folder-opened",{fontCharacter:"\\eb45"}),n.rootFolder=new n("root-folder",{fontCharacter:"\\eb46"}),n.rss=new n("rss",{fontCharacter:"\\eb47"}),n.ruby=new n("ruby",{fontCharacter:"\\eb48"}),n.saveAll=new n("save-all",{fontCharacter:"\\eb49"}),n.saveAs=new n("save-as",{fontCharacter:"\\eb4a"}),n.save=new n("save",{fontCharacter:"\\eb4b"}),n.screenFull=new n("screen-full",{fontCharacter:"\\eb4c"}),n.screenNormal=new n("screen-normal",{fontCharacter:"\\eb4d"}),n.searchStop=new n("search-stop",{fontCharacter:"\\eb4e"}),n.server=new n("server",{fontCharacter:"\\eb50"}),n.settingsGear=new n("settings-gear",{fontCharacter:"\\eb51"}),n.settings=new n("settings",{fontCharacter:"\\eb52"}),n.shield=new n("shield",{fontCharacter:"\\eb53"}),n.smiley=new n("smiley",{fontCharacter:"\\eb54"}),n.sortPrecedence=new n("sort-precedence",{fontCharacter:"\\eb55"}),n.splitHorizontal=new n("split-horizontal",{fontCharacter:"\\eb56"}),n.splitVertical=new n("split-vertical",{fontCharacter:"\\eb57"}),n.squirrel=new n("squirrel",{fontCharacter:"\\eb58"}),n.starFull=new n("star-full",{fontCharacter:"\\eb59"}),n.starHalf=new n("star-half",{fontCharacter:"\\eb5a"}),n.symbolClass=new n("symbol-class",{fontCharacter:"\\eb5b"}),n.symbolColor=new n("symbol-color",{fontCharacter:"\\eb5c"}),n.symbolCustomColor=new n("symbol-customcolor",{fontCharacter:"\\eb5c"}),n.symbolConstant=new n("symbol-constant",{fontCharacter:"\\eb5d"}),n.symbolEnumMember=new n("symbol-enum-member",{fontCharacter:"\\eb5e"}),n.symbolField=new n("symbol-field",{fontCharacter:"\\eb5f"}),n.symbolFile=new n("symbol-file",{fontCharacter:"\\eb60"}),n.symbolInterface=new n("symbol-interface",{fontCharacter:"\\eb61"}),n.symbolKeyword=new n("symbol-keyword",{fontCharacter:"\\eb62"}),n.symbolMisc=new n("symbol-misc",{fontCharacter:"\\eb63"}),n.symbolOperator=new n("symbol-operator",{fontCharacter:"\\eb64"}),n.symbolProperty=new n("symbol-property",{fontCharacter:"\\eb65"}),n.wrench=new n("wrench",{fontCharacter:"\\eb65"}),n.wrenchSubaction=new n("wrench-subaction",{fontCharacter:"\\eb65"}),n.symbolSnippet=new n("symbol-snippet",{fontCharacter:"\\eb66"}),n.tasklist=new n("tasklist",{fontCharacter:"\\eb67"}),n.telescope=new n("telescope",{fontCharacter:"\\eb68"}),n.textSize=new n("text-size",{fontCharacter:"\\eb69"}),n.threeBars=new n("three-bars",{fontCharacter:"\\eb6a"}),n.thumbsdown=new n("thumbsdown",{fontCharacter:"\\eb6b"}),n.thumbsup=new n("thumbsup",{fontCharacter:"\\eb6c"}),n.tools=new n("tools",{fontCharacter:"\\eb6d"}),n.triangleDown=new n("triangle-down",{fontCharacter:"\\eb6e"}),n.triangleLeft=new n("triangle-left",{fontCharacter:"\\eb6f"}),n.triangleRight=new n("triangle-right",{fontCharacter:"\\eb70"}),n.triangleUp=new n("triangle-up",{fontCharacter:"\\eb71"}),n.twitter=new n("twitter",{fontCharacter:"\\eb72"}),n.unfold=new n("unfold",{fontCharacter:"\\eb73"}),n.unlock=new n("unlock",{fontCharacter:"\\eb74"}),n.unmute=new n("unmute",{fontCharacter:"\\eb75"}),n.unverified=new n("unverified",{fontCharacter:"\\eb76"}),n.verified=new n("verified",{fontCharacter:"\\eb77"}),n.versions=new n("versions",{fontCharacter:"\\eb78"}),n.vmActive=new n("vm-active",{fontCharacter:"\\eb79"}),n.vmOutline=new n("vm-outline",{fontCharacter:"\\eb7a"}),n.vmRunning=new n("vm-running",{fontCharacter:"\\eb7b"}),n.watch=new n("watch",{fontCharacter:"\\eb7c"}),n.whitespace=new n("whitespace",{fontCharacter:"\\eb7d"}),n.wholeWord=new n("whole-word",{fontCharacter:"\\eb7e"}),n.window=new n("window",{fontCharacter:"\\eb7f"}),n.wordWrap=new n("word-wrap",{fontCharacter:"\\eb80"}),n.zoomIn=new n("zoom-in",{fontCharacter:"\\eb81"}),n.zoomOut=new n("zoom-out",{fontCharacter:"\\eb82"}),n.listFilter=new n("list-filter",{fontCharacter:"\\eb83"}),n.listFlat=new n("list-flat",{fontCharacter:"\\eb84"}),n.listSelection=new n("list-selection",{fontCharacter:"\\eb85"}),n.selection=new n("selection",{fontCharacter:"\\eb85"}),n.listTree=new n("list-tree",{fontCharacter:"\\eb86"}),n.debugBreakpointFunctionUnverified=new n("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),n.debugBreakpointFunction=new n("debug-breakpoint-function",{fontCharacter:"\\eb88"}),n.debugBreakpointFunctionDisabled=new n("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),n.debugStackframeActive=new n("debug-stackframe-active",{fontCharacter:"\\eb89"}),n.circleSmallFilled=new n("circle-small-filled",{fontCharacter:"\\eb8a"}),n.debugStackframeDot=new n("debug-stackframe-dot",n.circleSmallFilled.definition),n.debugStackframe=new n("debug-stackframe",{fontCharacter:"\\eb8b"}),n.debugStackframeFocused=new n("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),n.debugBreakpointUnsupported=new n("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),n.symbolString=new n("symbol-string",{fontCharacter:"\\eb8d"}),n.debugReverseContinue=new n("debug-reverse-continue",{fontCharacter:"\\eb8e"}),n.debugStepBack=new n("debug-step-back",{fontCharacter:"\\eb8f"}),n.debugRestartFrame=new n("debug-restart-frame",{fontCharacter:"\\eb90"}),n.callIncoming=new n("call-incoming",{fontCharacter:"\\eb92"}),n.callOutgoing=new n("call-outgoing",{fontCharacter:"\\eb93"}),n.menu=new n("menu",{fontCharacter:"\\eb94"}),n.expandAll=new n("expand-all",{fontCharacter:"\\eb95"}),n.feedback=new n("feedback",{fontCharacter:"\\eb96"}),n.groupByRefType=new n("group-by-ref-type",{fontCharacter:"\\eb97"}),n.ungroupByRefType=new n("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),n.account=new n("account",{fontCharacter:"\\eb99"}),n.bellDot=new n("bell-dot",{fontCharacter:"\\eb9a"}),n.debugConsole=new n("debug-console",{fontCharacter:"\\eb9b"}),n.library=new n("library",{fontCharacter:"\\eb9c"}),n.output=new n("output",{fontCharacter:"\\eb9d"}),n.runAll=new n("run-all",{fontCharacter:"\\eb9e"}),n.syncIgnored=new n("sync-ignored",{fontCharacter:"\\eb9f"}),n.pinned=new n("pinned",{fontCharacter:"\\eba0"}),n.githubInverted=new n("github-inverted",{fontCharacter:"\\eba1"}),n.debugAlt=new n("debug-alt",{fontCharacter:"\\eb91"}),n.serverProcess=new n("server-process",{fontCharacter:"\\eba2"}),n.serverEnvironment=new n("server-environment",{fontCharacter:"\\eba3"}),n.pass=new n("pass",{fontCharacter:"\\eba4"}),n.stopCircle=new n("stop-circle",{fontCharacter:"\\eba5"}),n.playCircle=new n("play-circle",{fontCharacter:"\\eba6"}),n.record=new n("record",{fontCharacter:"\\eba7"}),n.debugAltSmall=new n("debug-alt-small",{fontCharacter:"\\eba8"}),n.vmConnect=new n("vm-connect",{fontCharacter:"\\eba9"}),n.cloud=new n("cloud",{fontCharacter:"\\ebaa"}),n.merge=new n("merge",{fontCharacter:"\\ebab"}),n.exportIcon=new n("export",{fontCharacter:"\\ebac"}),n.graphLeft=new n("graph-left",{fontCharacter:"\\ebad"}),n.magnet=new n("magnet",{fontCharacter:"\\ebae"}),n.notebook=new n("notebook",{fontCharacter:"\\ebaf"}),n.redo=new n("redo",{fontCharacter:"\\ebb0"}),n.checkAll=new n("check-all",{fontCharacter:"\\ebb1"}),n.pinnedDirty=new n("pinned-dirty",{fontCharacter:"\\ebb2"}),n.passFilled=new n("pass-filled",{fontCharacter:"\\ebb3"}),n.circleLargeFilled=new n("circle-large-filled",{fontCharacter:"\\ebb4"}),n.circleLarge=new n("circle-large",{fontCharacter:"\\ebb5"}),n.circleLargeOutline=new n("circle-large-outline",n.circleLarge.definition),n.combine=new n("combine",{fontCharacter:"\\ebb6"}),n.gather=new n("gather",{fontCharacter:"\\ebb6"}),n.table=new n("table",{fontCharacter:"\\ebb7"}),n.variableGroup=new n("variable-group",{fontCharacter:"\\ebb8"}),n.typeHierarchy=new n("type-hierarchy",{fontCharacter:"\\ebb9"}),n.typeHierarchySub=new n("type-hierarchy-sub",{fontCharacter:"\\ebba"}),n.typeHierarchySuper=new n("type-hierarchy-super",{fontCharacter:"\\ebbb"}),n.gitPullRequestCreate=new n("git-pull-request-create",{fontCharacter:"\\ebbc"}),n.runAbove=new n("run-above",{fontCharacter:"\\ebbd"}),n.runBelow=new n("run-below",{fontCharacter:"\\ebbe"}),n.notebookTemplate=new n("notebook-template",{fontCharacter:"\\ebbf"}),n.debugRerun=new n("debug-rerun",{fontCharacter:"\\ebc0"}),n.workspaceTrusted=new n("workspace-trusted",{fontCharacter:"\\ebc1"}),n.workspaceUntrusted=new n("workspace-untrusted",{fontCharacter:"\\ebc2"}),n.workspaceUnspecified=new n("workspace-unspecified",{fontCharacter:"\\ebc3"}),n.terminalCmd=new n("terminal-cmd",{fontCharacter:"\\ebc4"}),n.terminalDebian=new n("terminal-debian",{fontCharacter:"\\ebc5"}),n.terminalLinux=new n("terminal-linux",{fontCharacter:"\\ebc6"}),n.terminalPowershell=new n("terminal-powershell",{fontCharacter:"\\ebc7"}),n.terminalTmux=new n("terminal-tmux",{fontCharacter:"\\ebc8"}),n.terminalUbuntu=new n("terminal-ubuntu",{fontCharacter:"\\ebc9"}),n.terminalBash=new n("terminal-bash",{fontCharacter:"\\ebca"}),n.arrowSwap=new n("arrow-swap",{fontCharacter:"\\ebcb"}),n.copy=new n("copy",{fontCharacter:"\\ebcc"}),n.personAdd=new n("person-add",{fontCharacter:"\\ebcd"}),n.filterFilled=new n("filter-filled",{fontCharacter:"\\ebce"}),n.wand=new n("wand",{fontCharacter:"\\ebcf"}),n.debugLineByLine=new n("debug-line-by-line",{fontCharacter:"\\ebd0"}),n.inspect=new n("inspect",{fontCharacter:"\\ebd1"}),n.layers=new n("layers",{fontCharacter:"\\ebd2"}),n.layersDot=new n("layers-dot",{fontCharacter:"\\ebd3"}),n.layersActive=new n("layers-active",{fontCharacter:"\\ebd4"}),n.compass=new n("compass",{fontCharacter:"\\ebd5"}),n.compassDot=new n("compass-dot",{fontCharacter:"\\ebd6"}),n.compassActive=new n("compass-active",{fontCharacter:"\\ebd7"}),n.azure=new n("azure",{fontCharacter:"\\ebd8"}),n.issueDraft=new n("issue-draft",{fontCharacter:"\\ebd9"}),n.gitPullRequestClosed=new n("git-pull-request-closed",{fontCharacter:"\\ebda"}),n.gitPullRequestDraft=new n("git-pull-request-draft",{fontCharacter:"\\ebdb"}),n.debugAll=new n("debug-all",{fontCharacter:"\\ebdc"}),n.debugCoverage=new n("debug-coverage",{fontCharacter:"\\ebdd"}),n.runErrors=new n("run-errors",{fontCharacter:"\\ebde"}),n.folderLibrary=new n("folder-library",{fontCharacter:"\\ebdf"}),n.debugContinueSmall=new n("debug-continue-small",{fontCharacter:"\\ebe0"}),n.beakerStop=new n("beaker-stop",{fontCharacter:"\\ebe1"}),n.graphLine=new n("graph-line",{fontCharacter:"\\ebe2"}),n.graphScatter=new n("graph-scatter",{fontCharacter:"\\ebe3"}),n.pieChart=new n("pie-chart",{fontCharacter:"\\ebe4"}),n.bracket=new n("bracket",n.json.definition),n.bracketDot=new n("bracket-dot",{fontCharacter:"\\ebe5"}),n.bracketError=new n("bracket-error",{fontCharacter:"\\ebe6"}),n.lockSmall=new n("lock-small",{fontCharacter:"\\ebe7"}),n.azureDevops=new n("azure-devops",{fontCharacter:"\\ebe8"}),n.verifiedFilled=new n("verified-filled",{fontCharacter:"\\ebe9"}),n.newLine=new n("newline",{fontCharacter:"\\ebea"}),n.layout=new n("layout",{fontCharacter:"\\ebeb"}),n.layoutActivitybarLeft=new n("layout-activitybar-left",{fontCharacter:"\\ebec"}),n.layoutActivitybarRight=new n("layout-activitybar-right",{fontCharacter:"\\ebed"}),n.layoutPanelLeft=new n("layout-panel-left",{fontCharacter:"\\ebee"}),n.layoutPanelCenter=new n("layout-panel-center",{fontCharacter:"\\ebef"}),n.layoutPanelJustify=new n("layout-panel-justify",{fontCharacter:"\\ebf0"}),n.layoutPanelRight=new n("layout-panel-right",{fontCharacter:"\\ebf1"}),n.layoutPanel=new n("layout-panel",{fontCharacter:"\\ebf2"}),n.layoutSidebarLeft=new n("layout-sidebar-left",{fontCharacter:"\\ebf3"}),n.layoutSidebarRight=new n("layout-sidebar-right",{fontCharacter:"\\ebf4"}),n.layoutStatusbar=new n("layout-statusbar",{fontCharacter:"\\ebf5"}),n.layoutMenubar=new n("layout-menubar",{fontCharacter:"\\ebf6"}),n.layoutCentered=new n("layout-centered",{fontCharacter:"\\ebf7"}),n.layoutSidebarRightOff=new n("layout-sidebar-right-off",{fontCharacter:"\\ec00"}),n.layoutPanelOff=new n("layout-panel-off",{fontCharacter:"\\ec01"}),n.layoutSidebarLeftOff=new n("layout-sidebar-left-off",{fontCharacter:"\\ec02"}),n.target=new n("target",{fontCharacter:"\\ebf8"}),n.indent=new n("indent",{fontCharacter:"\\ebf9"}),n.recordSmall=new n("record-small",{fontCharacter:"\\ebfa"}),n.errorSmall=new n("error-small",{fontCharacter:"\\ebfb"}),n.arrowCircleDown=new n("arrow-circle-down",{fontCharacter:"\\ebfc"}),n.arrowCircleLeft=new n("arrow-circle-left",{fontCharacter:"\\ebfd"}),n.arrowCircleRight=new n("arrow-circle-right",{fontCharacter:"\\ebfe"}),n.arrowCircleUp=new n("arrow-circle-up",{fontCharacter:"\\ebff"}),n.heartFilled=new n("heart-filled",{fontCharacter:"\\ec04"}),n.map=new n("map",{fontCharacter:"\\ec05"}),n.mapFilled=new n("map-filled",{fontCharacter:"\\ec06"}),n.circleSmall=new n("circle-small",{fontCharacter:"\\ec07"}),n.bellSlash=new n("bell-slash",{fontCharacter:"\\ec08"}),n.bellSlashDot=new n("bell-slash-dot",{fontCharacter:"\\ec09"}),n.commentUnresolved=new n("comment-unresolved",{fontCharacter:"\\ec0a"}),n.gitPullRequestGoToChanges=new n("git-pull-request-go-to-changes",{fontCharacter:"\\ec0b"}),n.gitPullRequestNewChanges=new n("git-pull-request-new-changes",{fontCharacter:"\\ec0c"}),n.searchFuzzy=new n("search-fuzzy",{fontCharacter:"\\ec0d"}),n.dialogError=new n("dialog-error",n.error.definition),n.dialogWarning=new n("dialog-warning",n.warning.definition),n.dialogInfo=new n("dialog-info",n.info.definition),n.dialogClose=new n("dialog-close",n.close.definition),n.treeItemExpanded=new n("tree-item-expanded",n.chevronDown.definition),n.treeFilterOnTypeOn=new n("tree-filter-on-type-on",n.listFilter.definition),n.treeFilterOnTypeOff=new n("tree-filter-on-type-off",n.listSelection.definition),n.treeFilterClear=new n("tree-filter-clear",n.close.definition),n.treeItemLoading=new n("tree-item-loading",n.loading.definition),n.menuSelection=new n("menu-selection",n.check.definition),n.menuSubmenu=new n("menu-submenu",n.chevronRight.definition),n.menuBarMore=new n("menubar-more",n.more.definition),n.scrollbarButtonLeft=new n("scrollbar-button-left",n.triangleLeft.definition),n.scrollbarButtonRight=new n("scrollbar-button-right",n.triangleRight.definition),n.scrollbarButtonUp=new n("scrollbar-button-up",n.triangleUp.definition),n.scrollbarButtonDown=new n("scrollbar-button-down",n.triangleDown.definition),n.toolBarMore=new n("toolbar-more",n.more.definition),n.quickInputBack=new n("quick-input-back",n.arrowLeft.definition),function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9-]+",e.iconModifierExpression="~[A-Za-z]+",e.iconNameCharacter="[A-Za-z0-9~-]";const t=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function r(e){if(e instanceof n)return["codicon","codicon-"+e.id];const i=t.exec(e.id);if(!i)return r(n.error);const[,o,s]=i,a=["codicon","codicon-"+o];return s&&a.push("codicon-modifier-"+s.substr(1)),a}e.asClassNameArray=r,e.asClassName=function(e){return r(e).join(" ")},e.asCSSSelector=function(e){return"."+r(e).join(".")}}(t.CSSIcon||(t.CSSIcon={}))},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.TokenizationRegistry=void 0;const i=r(61),o=r(72);t.TokenizationRegistry=class{constructor(){this._map=new Map,this._factories=new Map,this._onDidChange=new i.Emitter,this.onDidChange=this._onDidChange.event,this._colorMap=null}fire(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,t){return this._map.set(e,t),this.fire([e]),(0,o.toDisposable)(()=>{this._map.get(e)===t&&(this._map.delete(e),this.fire([e]))})}registerFactory(e,t){var r;null===(r=this._factories.get(e))||void 0===r||r.dispose();const n=new s(this,e,t);return this._factories.set(e,n),(0,o.toDisposable)(()=>{const t=this._factories.get(e);t&&t===n&&(this._factories.delete(e),t.dispose())})}getOrCreate(e){return n(this,void 0,void 0,(function*(){const t=this.get(e);if(t)return t;const r=this._factories.get(e);return!r||r.isResolved?null:(yield r.resolve(),this.get(e))}))}get(e){return this._map.get(e)||null}isResolved(e){if(this.get(e))return!0;const t=this._factories.get(e);return!(t&&!t.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._map.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}};class s extends o.Disposable{constructor(e,t,r){super(),this._registry=e,this._languageId=t,this._factory=r,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}get isResolved(){return this._isResolved}dispose(){this._isDisposed=!0,super.dispose()}resolve(){return n(this,void 0,void 0,(function*(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}))}_create(){return n(this,void 0,void 0,(function*(){const e=yield Promise.resolve(this._factory.createTokenizationSupport());this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}))}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TestPeekMessageToken=t.TestDecorationsToken=t.TestServiceToken=void 0;r(1).__exportStar(r(596),t),t.TestServiceToken=Symbol("TestService"),t.TestDecorationsToken=Symbol("TestDecorationsToken"),t.TestPeekMessageToken=Symbol("TestPeekMessageToken")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TestId=void 0;class n{static fromExtHostTestItem(e,t,r=e.parent){if(e.id===t)return new n([t]);const i=[e.id];for(let e=r;e&&e.id!==t;e=e.parent)i.push(e.id);return i.push(t),new n(i.reverse())}static isRoot(e){return!e.includes("\0")}static fromString(e){return new n(e.split("\0"))}static join(e,t){return new n([...e.path,t])}static joinToString(e,t){return e.toString()+"\0"+t}static compare(e,t){return e===t?0:t.startsWith(e+"\0")?2:e.startsWith(t+"\0")?3:1}constructor(e,t=e.length){if(this.path=e,this.viewEnd=t,0===e.length||t<1)throw new Error("cannot create test with empty path")}get parentId(){return this.viewEnd>1?new n(this.path,this.viewEnd-1):this}get localId(){return this.path[this.viewEnd-1]}get controllerId(){return this.path[0]}get isRoot(){return 1===this.viewEnd}*idsFromRoot(){for(let e=1;e<=this.viewEnd;e++)yield new n(this.path,e)}compare(e){if("string"==typeof e)return n.compare(this.toString(),e);for(let t=0;t<e.viewEnd&&t<this.viewEnd;t++)if(e.path[t]!==this.path[t])return 1;return e.viewEnd>this.viewEnd?2:e.viewEnd<this.viewEnd?3:0}toJSON(){return this.toString()}toString(){if(!this.stringifed){this.stringifed=this.path[0];for(let e=1;e<this.viewEnd;e++)this.stringifed+="\0",this.stringifed+=this.path[e]}return this.stringifed}}t.TestId=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EditorOptions=t.EditorOption=t.editorOptionsRegistry=t.EDITOR_FONT_DEFAULTS=t.WrappingIndent=t.unicodeHighlightConfigKeys=t.inUntrustedWorkspace=t.filterValidationDecorations=t.RenderLineNumbersType=t.EditorLayoutInfoComputer=t.RenderMinimap=t.EditorFontLigatures=t.TextEditorCursorStyle=t.TextEditorCursorBlinkingStyle=t.stringSet=t.clampedInt=t.boolean=t.ApplyUpdateResult=t.ComputeOptionsMemory=t.ConfigurationChangedEvent=t.MINIMAP_GUTTER_WIDTH=t.EditorAutoIndentStrategy=void 0;const n=r(241),i=r(31),o=r(598),s=r(250),a=r(246),c=r(599);var l;!function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"}(t.EditorAutoIndentStrategy||(t.EditorAutoIndentStrategy={})),t.MINIMAP_GUTTER_WIDTH=8;t.ConfigurationChangedEvent=class{constructor(e){this._values=e}hasChanged(e){return this._values[e]}};class u{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}t.ComputeOptionsMemory=u;class d{constructor(e,t,r,n){this.id=e,this.name=t,this.defaultValue=r,this.schema=n}applyUpdate(e,t){return f(e,t)}compute(e,t,r){return r}}class h{constructor(e,t){this.newValue=e,this.didChange=t}}function f(e,t){if("object"!=typeof e||"object"!=typeof t||!e||!t)return new h(t,e!==t);if(Array.isArray(e)||Array.isArray(t)){const r=Array.isArray(e)&&Array.isArray(t)&&s.equals(e,t);return new h(t,!r)}let r=!1;for(const n in t)if(t.hasOwnProperty(n)){const i=f(e[n],t[n]);i.didChange&&(e[n]=i.newValue,r=!0)}return new h(e,r)}t.ApplyUpdateResult=h;class p{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,t){return f(e,t)}validate(e){return this.defaultValue}}class g{constructor(e,t,r,n){this.id=e,this.name=t,this.defaultValue=r,this.schema=n}applyUpdate(e,t){return f(e,t)}validate(e){return void 0===e?this.defaultValue:e}compute(e,t,r){return r}}function m(e,t){return void 0===e?t:"false"!==e&&Boolean(e)}t.boolean=m;class b extends g{constructor(e,t,r,n){void 0!==n&&(n.type="boolean",n.default=r),super(e,t,r,n)}validate(e){return m(e,this.defaultValue)}}function v(e,t,r,n){if(void 0===e)return t;let i=parseInt(e,10);return isNaN(i)?t:(i=Math.max(r,i),i=Math.min(n,i),0|i)}t.clampedInt=v;class y extends g{constructor(e,t,r,n,i,o){void 0!==o&&(o.type="integer",o.default=r,o.minimum=n,o.maximum=i),super(e,t,r,o),this.minimum=n,this.maximum=i}static clampedInt(e,t,r,n){return v(e,t,r,n)}validate(e){return y.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}class _ extends g{constructor(e,t,r,n,i){void 0!==i&&(i.type="number",i.default=r),super(e,t,r,i),this.validationFn=n}static clamp(e,t,r){return e<t?t:e>r?r:e}static float(e,t){if("number"==typeof e)return e;if(void 0===e)return t;const r=parseFloat(e);return isNaN(r)?t:r}validate(e){return this.validationFn(_.float(e,this.defaultValue))}}class w extends g{static string(e,t){return"string"!=typeof e?t:e}constructor(e,t,r,n){void 0!==n&&(n.type="string",n.default=r),super(e,t,r,n)}validate(e){return w.string(e,this.defaultValue)}}function C(e,t,r){return"string"!=typeof e||-1===r.indexOf(e)?t:e}t.stringSet=C;class k extends g{constructor(e,t,r,n,i){void 0!==i&&(i.type="string",i.enum=n,i.default=r),super(e,t,r,i),this._allowedValues=n}validate(e){return C(e,this.defaultValue,this._allowedValues)}}class E extends d{constructor(e,t,r,n,i,o,s){void 0!==s&&(s.type="string",s.enum=i,s.default=n),super(e,t,r,s),this._allowedValues=i,this._convert=o}validate(e){return"string"!=typeof e||-1===this._allowedValues.indexOf(e)?this.defaultValue:this._convert(e)}}!function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"}(t.TextEditorCursorBlinkingStyle||(t.TextEditorCursorBlinkingStyle={})),function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(l=t.TextEditorCursorStyle||(t.TextEditorCursorStyle={}));class S extends d{constructor(){super(46,"fontLigatures",S.OFF,{anyOf:[{type:"boolean",description:n.localize("vs/editor/common/config/editorOptions",19,"Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:n.localize("vs/editor/common/config/editorOptions",20,"Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:n.localize("vs/editor/common/config/editorOptions",21,"Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return void 0===e?this.defaultValue:"string"==typeof e?"false"===e?S.OFF:"true"===e?S.ON:e:Boolean(e)?S.ON:S.OFF}}t.EditorFontLigatures=S,S.OFF='"liga" off, "calt" off',S.ON='"liga" on, "calt" on';class D extends d{constructor(){super(48,"fontWeight",t.EDITOR_FONT_DEFAULTS.fontWeight,{anyOf:[{type:"number",minimum:D.MINIMUM_VALUE,maximum:D.MAXIMUM_VALUE,errorMessage:n.localize("vs/editor/common/config/editorOptions",23,'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:D.SUGGESTION_VALUES}],default:t.EDITOR_FONT_DEFAULTS.fontWeight,description:n.localize("vs/editor/common/config/editorOptions",24,'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return"normal"===e||"bold"===e?e:String(y.clampedInt(e,t.EDITOR_FONT_DEFAULTS.fontWeight,D.MINIMUM_VALUE,D.MAXIMUM_VALUE))}}D.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"],D.MINIMUM_VALUE=1,D.MAXIMUM_VALUE=1e3;!function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"}(t.RenderMinimap||(t.RenderMinimap={}));class x extends p{constructor(){super(133)}compute(e,t,r){return x.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,r=e.scrollBeyondLastLine?t-1:0,n=(e.viewLineCount+r)/(e.pixelRatio*e.height);return{typicalViewportLineCount:t,extraLinesBeyondLastLine:r,desiredRatio:n,minimapLineCount:Math.floor(e.viewLineCount/n)}}static _computeMinimapLayout(e,r){const n=e.outerWidth,i=e.outerHeight,o=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(o*i),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:i};const s=r.stableMinimapLayoutInput,a=s&&e.outerHeight===s.outerHeight&&e.lineHeight===s.lineHeight&&e.typicalHalfwidthCharacterWidth===s.typicalHalfwidthCharacterWidth&&e.pixelRatio===s.pixelRatio&&e.scrollBeyondLastLine===s.scrollBeyondLastLine&&e.minimap.enabled===s.minimap.enabled&&e.minimap.side===s.minimap.side&&e.minimap.size===s.minimap.size&&e.minimap.showSlider===s.minimap.showSlider&&e.minimap.renderCharacters===s.minimap.renderCharacters&&e.minimap.maxColumn===s.minimap.maxColumn&&e.minimap.scale===s.minimap.scale&&e.verticalScrollbarWidth===s.verticalScrollbarWidth&&e.isViewportWrapping===s.isViewportWrapping,c=e.lineHeight,l=e.typicalHalfwidthCharacterWidth,u=e.scrollBeyondLastLine,d=e.minimap.renderCharacters;let h=o>=2?Math.round(2*e.minimap.scale):e.minimap.scale;const f=e.minimap.maxColumn,p=e.minimap.size,g=e.minimap.side,m=e.verticalScrollbarWidth,b=e.viewLineCount,v=e.remainingWidth,y=e.isViewportWrapping,_=d?2:3;let w=Math.floor(o*i);const C=w/o;let k=!1,E=!1,S=_*h,D=h/o,T=1;if("fill"===p||"fit"===p){const{typicalViewportLineCount:t,extraLinesBeyondLastLine:n,desiredRatio:s,minimapLineCount:l}=x.computeContainedMinimapLineCount({viewLineCount:b,scrollBeyondLastLine:u,height:i,lineHeight:c,pixelRatio:o});if(b/l>1)k=!0,E=!0,h=1,S=1,D=h/o;else{let i=!1,l=h+1;if("fit"===p){const e=Math.ceil((b+n)*S);y&&a&&v<=r.stableFitRemainingWidth?(i=!0,l=r.stableFitMaxMinimapScale):i=e>w}if("fill"===p||i){k=!0;const i=h;S=Math.min(c*o,Math.max(1,Math.floor(1/s))),y&&a&&v<=r.stableFitRemainingWidth&&(l=r.stableFitMaxMinimapScale),h=Math.min(l,Math.max(1,Math.floor(S/_))),h>i&&(T=Math.min(2,h/i)),D=h/o/T,w=Math.ceil(Math.max(t,b+n)*S),y?(r.stableMinimapLayoutInput=e,r.stableFitRemainingWidth=v,r.stableFitMaxMinimapScale=h):(r.stableMinimapLayoutInput=null,r.stableFitRemainingWidth=0)}}}const A=Math.floor(f*D),I=Math.min(A,Math.max(0,Math.floor((v-m-2)*D/(l+D)))+t.MINIMAP_GUTTER_WIDTH);let O=Math.floor(o*I);const R=O/o;O=Math.floor(O*T);return{renderMinimap:d?1:2,minimapLeft:"left"===g?0:n-I-m,minimapWidth:I,minimapHeightIsEditorHeight:k,minimapIsSampling:E,minimapScale:h,minimapLineHeight:S,minimapCanvasInnerWidth:O,minimapCanvasInnerHeight:w,minimapCanvasOuterWidth:R,minimapCanvasOuterHeight:C}}static computeLayout(e,t){const r=0|t.outerWidth,n=0|t.outerHeight,i=0|t.lineHeight,o=0|t.lineNumbersDigitCount,s=t.typicalHalfwidthCharacterWidth,a=t.maxDigitWidth,c=t.pixelRatio,l=t.viewLineCount,d=e.get(125),h="inherit"===d?e.get(124):d,f="inherit"===h?e.get(120):h,p=e.get(123),g=e.get(2),m=t.isDominatedByLongLines,b=e.get(51),v=0!==e.get(61).renderType,_=e.get(62),w=e.get(95),C=e.get(66),k=e.get(93),E=k.verticalScrollbarSize,S=k.verticalHasArrows,D=k.arrowSize,T=k.horizontalScrollbarSize,A=e.get(59),I=e.get(38),O="never"!==e.get(100);let R;if("string"==typeof A&&/^\d+(\.\d+)?ch$/.test(A)){const e=parseFloat(A.substr(0,A.length-2));R=y.clampedInt(e*s,0,0,1e3)}else R=y.clampedInt(A,0,0,1e3);I&&O&&(R+=16);let M=0;if(v){const e=Math.max(o,_);M=Math.round(e*a)}let B=0;b&&(B=i);let P=0,F=P+B,L=F+M,N=L+R;const j=r-B-M-R;let H=!1,U=!1,z=-1;2!==g&&("inherit"===h&&m?(H=!0,U=!0):"on"===f||"bounded"===f?U=!0:"wordWrapColumn"===f&&(z=p));const W=x._computeMinimapLayout({outerWidth:r,outerHeight:n,lineHeight:i,typicalHalfwidthCharacterWidth:s,pixelRatio:c,scrollBeyondLastLine:w,minimap:C,verticalScrollbarWidth:E,viewLineCount:l,remainingWidth:j,isViewportWrapping:U},t.memory||new u);0!==W.renderMinimap&&0===W.minimapLeft&&(P+=W.minimapWidth,F+=W.minimapWidth,L+=W.minimapWidth,N+=W.minimapWidth);const V=j-W.minimapWidth,$=Math.max(1,Math.floor((V-E-2)/s)),G=S?D:0;return U&&(z=Math.max(1,$),"bounded"===f&&(z=Math.min(z,p))),{width:r,height:n,glyphMarginLeft:P,glyphMarginWidth:B,lineNumbersLeft:F,lineNumbersWidth:M,decorationsLeft:L,decorationsWidth:R,contentLeft:N,contentWidth:V,minimap:W,viewportColumn:$,isWordWrapMinified:H,isViewportWrapping:U,wrappingColumn:z,verticalScrollbarWidth:E,horizontalScrollbarHeight:T,overviewRuler:{top:G,width:E,height:n-2*G,right:0}}}}t.EditorLayoutInfoComputer=x;!function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"}(t.RenderLineNumbersType||(t.RenderLineNumbersType={}));t.filterValidationDecorations=function(e){const t=e.get(88);return"editable"===t?e.get(82):"on"!==t};function T(e,t){if("string"!=typeof e)return t;switch(e){case"hidden":return 2;case"visible":return 3;default:return 1}}t.inUntrustedWorkspace="inUntrustedWorkspace",t.unicodeHighlightConfigKeys={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments",includeStrings:"editor.unicodeHighlight.includeStrings",allowedLocales:"editor.unicodeHighlight.allowedLocales"};function A(e,t,r){const n=r.indexOf(e);return-1===n?t:r[n]}!function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(t.WrappingIndent||(t.WrappingIndent={}));function I(e){return t.editorOptionsRegistry[e.id]=e,e}t.EDITOR_FONT_DEFAULTS={fontFamily:i.isMacintosh?"Menlo, Monaco, 'Courier New', monospace":i.isLinux?"'Droid Sans Mono', 'monospace', monospace":"Consolas, 'Courier New', monospace",fontWeight:"normal",fontSize:i.isMacintosh?12:14,lineHeight:0,letterSpacing:0},t.editorOptionsRegistry=[],function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.autoClosingBrackets=5]="autoClosingBrackets",e[e.autoClosingDelete=6]="autoClosingDelete",e[e.autoClosingOvertype=7]="autoClosingOvertype",e[e.autoClosingQuotes=8]="autoClosingQuotes",e[e.autoIndent=9]="autoIndent",e[e.automaticLayout=10]="automaticLayout",e[e.autoSurround=11]="autoSurround",e[e.bracketPairColorization=12]="bracketPairColorization",e[e.guides=13]="guides",e[e.codeLens=14]="codeLens",e[e.codeLensFontFamily=15]="codeLensFontFamily",e[e.codeLensFontSize=16]="codeLensFontSize",e[e.colorDecorators=17]="colorDecorators",e[e.columnSelection=18]="columnSelection",e[e.comments=19]="comments",e[e.contextmenu=20]="contextmenu",e[e.copyWithSyntaxHighlighting=21]="copyWithSyntaxHighlighting",e[e.cursorBlinking=22]="cursorBlinking",e[e.cursorSmoothCaretAnimation=23]="cursorSmoothCaretAnimation",e[e.cursorStyle=24]="cursorStyle",e[e.cursorSurroundingLines=25]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=26]="cursorSurroundingLinesStyle",e[e.cursorWidth=27]="cursorWidth",e[e.disableLayerHinting=28]="disableLayerHinting",e[e.disableMonospaceOptimizations=29]="disableMonospaceOptimizations",e[e.domReadOnly=30]="domReadOnly",e[e.dragAndDrop=31]="dragAndDrop",e[e.dropIntoEditor=32]="dropIntoEditor",e[e.emptySelectionClipboard=33]="emptySelectionClipboard",e[e.extraEditorClassName=34]="extraEditorClassName",e[e.fastScrollSensitivity=35]="fastScrollSensitivity",e[e.find=36]="find",e[e.fixedOverflowWidgets=37]="fixedOverflowWidgets",e[e.folding=38]="folding",e[e.foldingStrategy=39]="foldingStrategy",e[e.foldingHighlight=40]="foldingHighlight",e[e.foldingImportsByDefault=41]="foldingImportsByDefault",e[e.foldingMaximumRegions=42]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=43]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=44]="fontFamily",e[e.fontInfo=45]="fontInfo",e[e.fontLigatures=46]="fontLigatures",e[e.fontSize=47]="fontSize",e[e.fontWeight=48]="fontWeight",e[e.formatOnPaste=49]="formatOnPaste",e[e.formatOnType=50]="formatOnType",e[e.glyphMargin=51]="glyphMargin",e[e.gotoLocation=52]="gotoLocation",e[e.hideCursorInOverviewRuler=53]="hideCursorInOverviewRuler",e[e.hover=54]="hover",e[e.inDiffEditor=55]="inDiffEditor",e[e.inlineSuggest=56]="inlineSuggest",e[e.letterSpacing=57]="letterSpacing",e[e.lightbulb=58]="lightbulb",e[e.lineDecorationsWidth=59]="lineDecorationsWidth",e[e.lineHeight=60]="lineHeight",e[e.lineNumbers=61]="lineNumbers",e[e.lineNumbersMinChars=62]="lineNumbersMinChars",e[e.linkedEditing=63]="linkedEditing",e[e.links=64]="links",e[e.matchBrackets=65]="matchBrackets",e[e.minimap=66]="minimap",e[e.mouseStyle=67]="mouseStyle",e[e.mouseWheelScrollSensitivity=68]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=69]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=70]="multiCursorMergeOverlapping",e[e.multiCursorModifier=71]="multiCursorModifier",e[e.multiCursorPaste=72]="multiCursorPaste",e[e.occurrencesHighlight=73]="occurrencesHighlight",e[e.overviewRulerBorder=74]="overviewRulerBorder",e[e.overviewRulerLanes=75]="overviewRulerLanes",e[e.padding=76]="padding",e[e.parameterHints=77]="parameterHints",e[e.peekWidgetDefaultFocus=78]="peekWidgetDefaultFocus",e[e.definitionLinkOpensInPeek=79]="definitionLinkOpensInPeek",e[e.quickSuggestions=80]="quickSuggestions",e[e.quickSuggestionsDelay=81]="quickSuggestionsDelay",e[e.readOnly=82]="readOnly",e[e.renameOnType=83]="renameOnType",e[e.renderControlCharacters=84]="renderControlCharacters",e[e.renderFinalNewline=85]="renderFinalNewline",e[e.renderLineHighlight=86]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=87]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=88]="renderValidationDecorations",e[e.renderWhitespace=89]="renderWhitespace",e[e.revealHorizontalRightPadding=90]="revealHorizontalRightPadding",e[e.roundedSelection=91]="roundedSelection",e[e.rulers=92]="rulers",e[e.scrollbar=93]="scrollbar",e[e.scrollBeyondLastColumn=94]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=95]="scrollBeyondLastLine",e[e.scrollPredominantAxis=96]="scrollPredominantAxis",e[e.selectionClipboard=97]="selectionClipboard",e[e.selectionHighlight=98]="selectionHighlight",e[e.selectOnLineNumbers=99]="selectOnLineNumbers",e[e.showFoldingControls=100]="showFoldingControls",e[e.showUnused=101]="showUnused",e[e.snippetSuggestions=102]="snippetSuggestions",e[e.smartSelect=103]="smartSelect",e[e.smoothScrolling=104]="smoothScrolling",e[e.stickyScroll=105]="stickyScroll",e[e.stickyTabStops=106]="stickyTabStops",e[e.stopRenderingLineAfter=107]="stopRenderingLineAfter",e[e.suggest=108]="suggest",e[e.suggestFontSize=109]="suggestFontSize",e[e.suggestLineHeight=110]="suggestLineHeight",e[e.suggestOnTriggerCharacters=111]="suggestOnTriggerCharacters",e[e.suggestSelection=112]="suggestSelection",e[e.tabCompletion=113]="tabCompletion",e[e.tabIndex=114]="tabIndex",e[e.unicodeHighlighting=115]="unicodeHighlighting",e[e.unusualLineTerminators=116]="unusualLineTerminators",e[e.useShadowDOM=117]="useShadowDOM",e[e.useTabStops=118]="useTabStops",e[e.wordSeparators=119]="wordSeparators",e[e.wordWrap=120]="wordWrap",e[e.wordWrapBreakAfterCharacters=121]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=122]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=123]="wordWrapColumn",e[e.wordWrapOverride1=124]="wordWrapOverride1",e[e.wordWrapOverride2=125]="wordWrapOverride2",e[e.wrappingIndent=126]="wrappingIndent",e[e.wrappingStrategy=127]="wrappingStrategy",e[e.showDeprecated=128]="showDeprecated",e[e.inlayHints=129]="inlayHints",e[e.editorClassName=130]="editorClassName",e[e.pixelRatio=131]="pixelRatio",e[e.tabFocusMode=132]="tabFocusMode",e[e.layoutInfo=133]="layoutInfo",e[e.wrappingInfo=134]="wrappingInfo"}(t.EditorOption||(t.EditorOption={})),t.EditorOptions={acceptSuggestionOnCommitCharacter:I(new b(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:n.localize("vs/editor/common/config/editorOptions",165,"Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`; `) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:I(new k(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",n.localize("vs/editor/common/config/editorOptions",166,"Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:n.localize("vs/editor/common/config/editorOptions",167,"Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:I(new class extends d{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[n.localize("vs/editor/common/config/editorOptions",0,"The editor will use platform APIs to detect when a Screen Reader is attached."),n.localize("vs/editor/common/config/editorOptions",1,"The editor will be permanently optimized for usage with a Screen Reader. Word wrapping will be disabled."),n.localize("vs/editor/common/config/editorOptions",2,"The editor will never be optimized for usage with a Screen Reader.")],default:"auto",description:n.localize("vs/editor/common/config/editorOptions",3,"Controls whether the editor should run in a mode where it is optimized for screen readers. Setting to on will disable word wrapping.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,r){return 0===r?e.accessibilitySupport:r}}),accessibilityPageSize:I(new y(3,"accessibilityPageSize",10,1,1073741824,{description:n.localize("vs/editor/common/config/editorOptions",168,"Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default.")})),ariaLabel:I(new w(4,"ariaLabel",n.localize("vs/editor/common/config/editorOptions",169,"Editor content"))),autoClosingBrackets:I(new k(5,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",n.localize("vs/editor/common/config/editorOptions",170,"Use language configurations to determine when to autoclose brackets."),n.localize("vs/editor/common/config/editorOptions",171,"Autoclose brackets only when the cursor is to the left of whitespace."),""],description:n.localize("vs/editor/common/config/editorOptions",172,"Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingDelete:I(new k(6,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",n.localize("vs/editor/common/config/editorOptions",173,"Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:n.localize("vs/editor/common/config/editorOptions",174,"Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:I(new k(7,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",n.localize("vs/editor/common/config/editorOptions",175,"Type over closing quotes or brackets only if they were automatically inserted."),""],description:n.localize("vs/editor/common/config/editorOptions",176,"Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:I(new k(8,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",n.localize("vs/editor/common/config/editorOptions",177,"Use language configurations to determine when to autoclose quotes."),n.localize("vs/editor/common/config/editorOptions",178,"Autoclose quotes only when the cursor is to the left of whitespace."),""],description:n.localize("vs/editor/common/config/editorOptions",179,"Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:I(new E(9,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],(function(e){switch(e){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}),{enumDescriptions:[n.localize("vs/editor/common/config/editorOptions",180,"The editor will not insert indentation automatically."),n.localize("vs/editor/common/config/editorOptions",181,"The editor will keep the current line's indentation."),n.localize("vs/editor/common/config/editorOptions",182,"The editor will keep the current line's indentation and honor language defined brackets."),n.localize("vs/editor/common/config/editorOptions",183,"The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),n.localize("vs/editor/common/config/editorOptions",184,"The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:n.localize("vs/editor/common/config/editorOptions",185,"Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:I(new b(10,"automaticLayout",!1)),autoSurround:I(new k(11,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[n.localize("vs/editor/common/config/editorOptions",186,"Use language configurations to determine when to automatically surround selections."),n.localize("vs/editor/common/config/editorOptions",187,"Surround with quotes but not brackets."),n.localize("vs/editor/common/config/editorOptions",188,"Surround with brackets but not quotes."),""],description:n.localize("vs/editor/common/config/editorOptions",189,"Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:I(new class extends d{constructor(){const e={enabled:c.EDITOR_MODEL_DEFAULTS.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:c.EDITOR_MODEL_DEFAULTS.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(12,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,markdownDescription:n.localize("vs/editor/common/config/editorOptions",104,"Controls whether bracket pair colorization is enabled or not. Use {0} to override the bracket highlight colors.","`#workbench.colorCustomizations#`")},"editor.bracketPairColorization.independentColorPoolPerBracketType":{type:"boolean",default:e.independentColorPoolPerBracketType,description:n.localize("vs/editor/common/config/editorOptions",105,"Controls whether each bracket type has its own independent color pool.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{enabled:m(t.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:m(t.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}),bracketPairGuides:I(new class extends d{constructor(){const e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(13,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[n.localize("vs/editor/common/config/editorOptions",106,"Enables bracket pair guides."),n.localize("vs/editor/common/config/editorOptions",107,"Enables bracket pair guides only for the active bracket pair."),n.localize("vs/editor/common/config/editorOptions",108,"Disables bracket pair guides.")],default:e.bracketPairs,description:n.localize("vs/editor/common/config/editorOptions",109,"Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[n.localize("vs/editor/common/config/editorOptions",110,"Enables horizontal guides as addition to vertical bracket pair guides."),n.localize("vs/editor/common/config/editorOptions",111,"Enables horizontal guides only for the active bracket pair."),n.localize("vs/editor/common/config/editorOptions",112,"Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:n.localize("vs/editor/common/config/editorOptions",113,"Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:n.localize("vs/editor/common/config/editorOptions",114,"Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:n.localize("vs/editor/common/config/editorOptions",115,"Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[n.localize("vs/editor/common/config/editorOptions",116,"Highlights the active indent guide."),n.localize("vs/editor/common/config/editorOptions",117,"Highlights the active indent guide even if bracket guides are highlighted."),n.localize("vs/editor/common/config/editorOptions",118,"Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:n.localize("vs/editor/common/config/editorOptions",119,"Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{bracketPairs:A(t.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:A(t.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:m(t.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:m(t.indentation,this.defaultValue.indentation),highlightActiveIndentation:A(t.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}),stickyTabStops:I(new b(106,"stickyTabStops",!1,{description:n.localize("vs/editor/common/config/editorOptions",190,"Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:I(new b(14,"codeLens",!0,{description:n.localize("vs/editor/common/config/editorOptions",191,"Controls whether the editor shows CodeLens.")})),codeLensFontFamily:I(new w(15,"codeLensFontFamily","",{description:n.localize("vs/editor/common/config/editorOptions",192,"Controls the font family for CodeLens.")})),codeLensFontSize:I(new y(16,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:n.localize("vs/editor/common/config/editorOptions",193,"Controls the font size in pixels for CodeLens. When set to `0`, 90% of `#editor.fontSize#` is used.")})),colorDecorators:I(new b(17,"colorDecorators",!0,{description:n.localize("vs/editor/common/config/editorOptions",194,"Controls whether the editor should render the inline color decorators and color picker.")})),columnSelection:I(new b(18,"columnSelection",!1,{description:n.localize("vs/editor/common/config/editorOptions",195,"Enable that the selection with the mouse and keys is doing column selection.")})),comments:I(new class extends d{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(19,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:n.localize("vs/editor/common/config/editorOptions",4,"Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:n.localize("vs/editor/common/config/editorOptions",5,"Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{insertSpace:m(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:m(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}),contextmenu:I(new b(20,"contextmenu",!0)),copyWithSyntaxHighlighting:I(new b(21,"copyWithSyntaxHighlighting",!0,{description:n.localize("vs/editor/common/config/editorOptions",196,"Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:I(new E(22,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],(function(e){switch(e){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}),{description:n.localize("vs/editor/common/config/editorOptions",197,"Control the cursor animation style.")})),cursorSmoothCaretAnimation:I(new b(23,"cursorSmoothCaretAnimation",!1,{description:n.localize("vs/editor/common/config/editorOptions",198,"Controls whether the smooth caret animation should be enabled.")})),cursorStyle:I(new E(24,"cursorStyle",l.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],(function(e){switch(e){case"line":return l.Line;case"block":return l.Block;case"underline":return l.Underline;case"line-thin":return l.LineThin;case"block-outline":return l.BlockOutline;case"underline-thin":return l.UnderlineThin}}),{description:n.localize("vs/editor/common/config/editorOptions",199,"Controls the cursor style.")})),cursorSurroundingLines:I(new y(25,"cursorSurroundingLines",0,0,1073741824,{description:n.localize("vs/editor/common/config/editorOptions",200,"Controls the minimal number of visible leading and trailing lines surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:I(new k(26,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[n.localize("vs/editor/common/config/editorOptions",201,"`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),n.localize("vs/editor/common/config/editorOptions",202,"`cursorSurroundingLines` is enforced always.")],description:n.localize("vs/editor/common/config/editorOptions",203,"Controls when `cursorSurroundingLines` should be enforced.")})),cursorWidth:I(new y(27,"cursorWidth",0,0,1073741824,{markdownDescription:n.localize("vs/editor/common/config/editorOptions",204,"Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:I(new b(28,"disableLayerHinting",!1)),disableMonospaceOptimizations:I(new b(29,"disableMonospaceOptimizations",!1)),domReadOnly:I(new b(30,"domReadOnly",!1)),dragAndDrop:I(new b(31,"dragAndDrop",!0,{description:n.localize("vs/editor/common/config/editorOptions",205,"Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:I(new class extends b{constructor(){super(33,"emptySelectionClipboard",!0,{description:n.localize("vs/editor/common/config/editorOptions",6,"Controls whether copying without a selection copies the current line.")})}compute(e,t,r){return r&&e.emptySelectionClipboard}}),dropIntoEditor:I(new class extends d{constructor(){const e={enabled:!0};super(32,"dropIntoEditor",e,{"editor.dropIntoEditor.enabled":{type:"boolean",default:e.enabled,markdownDescription:n.localize("vs/editor/common/config/editorOptions",164,"Controls whether you can drag and drop a file into a text editor by holding down `shift` (instead of opening the file in an editor).")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;return{enabled:m(e.enabled,this.defaultValue.enabled)}}}),stickyScroll:I(new class extends d{constructor(){const e={enabled:!1,maxLineCount:5};super(105,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:n.localize("vs/editor/common/config/editorOptions",44,"Shows the nested current scopes during the scroll at the top of the editor.")},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:10,description:n.localize("vs/editor/common/config/editorOptions",45,"Defines the maximum number of sticky lines to show.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{enabled:m(t.enabled,this.defaultValue.enabled),maxLineCount:y.clampedInt(t.maxLineCount,this.defaultValue.maxLineCount,1,10)}}}),extraEditorClassName:I(new w(34,"extraEditorClassName","")),fastScrollSensitivity:I(new _(35,"fastScrollSensitivity",5,e=>e<=0?5:e,{markdownDescription:n.localize("vs/editor/common/config/editorOptions",206,"Scrolling speed multiplier when pressing `Alt`.")})),find:I(new class extends d{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(36,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:n.localize("vs/editor/common/config/editorOptions",7,"Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[n.localize("vs/editor/common/config/editorOptions",8,"Never seed search string from the editor selection."),n.localize("vs/editor/common/config/editorOptions",9,"Always seed search string from the editor selection, including word at cursor position."),n.localize("vs/editor/common/config/editorOptions",10,"Only seed search string from the editor selection.")],description:n.localize("vs/editor/common/config/editorOptions",11,"Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[n.localize("vs/editor/common/config/editorOptions",12,"Never turn on Find in Selection automatically (default)."),n.localize("vs/editor/common/config/editorOptions",13,"Always turn on Find in Selection automatically."),n.localize("vs/editor/common/config/editorOptions",14,"Turn on Find in Selection automatically when multiple lines of content are selected.")],description:n.localize("vs/editor/common/config/editorOptions",15,"Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:n.localize("vs/editor/common/config/editorOptions",16,"Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:i.isMacintosh},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:n.localize("vs/editor/common/config/editorOptions",17,"Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:n.localize("vs/editor/common/config/editorOptions",18,"Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{cursorMoveOnType:m(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:"boolean"==typeof e.seedSearchStringFromSelection?e.seedSearchStringFromSelection?"always":"never":C(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:"boolean"==typeof e.autoFindInSelection?e.autoFindInSelection?"always":"never":C(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:m(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:m(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:m(t.loop,this.defaultValue.loop)}}}),fixedOverflowWidgets:I(new b(37,"fixedOverflowWidgets",!1)),folding:I(new b(38,"folding",!0,{description:n.localize("vs/editor/common/config/editorOptions",207,"Controls whether the editor has code folding enabled.")})),foldingStrategy:I(new k(39,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[n.localize("vs/editor/common/config/editorOptions",208,"Use a language-specific folding strategy if available, else the indentation-based one."),n.localize("vs/editor/common/config/editorOptions",209,"Use the indentation-based folding strategy.")],description:n.localize("vs/editor/common/config/editorOptions",210,"Controls the strategy for computing folding ranges.")})),foldingHighlight:I(new b(40,"foldingHighlight",!0,{description:n.localize("vs/editor/common/config/editorOptions",211,"Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:I(new b(41,"foldingImportsByDefault",!1,{description:n.localize("vs/editor/common/config/editorOptions",212,"Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:I(new y(42,"foldingMaximumRegions",5e3,10,65e3,{description:n.localize("vs/editor/common/config/editorOptions",213,"The maximum number of foldable regions. Increasing this value may result in the editor becoming less responsive when the current source has a large number of foldable regions.")})),unfoldOnClickAfterEndOfLine:I(new b(43,"unfoldOnClickAfterEndOfLine",!1,{description:n.localize("vs/editor/common/config/editorOptions",214,"Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:I(new w(44,"fontFamily",t.EDITOR_FONT_DEFAULTS.fontFamily,{description:n.localize("vs/editor/common/config/editorOptions",215,"Controls the font family.")})),fontInfo:I(new class extends p{constructor(){super(45)}compute(e,t,r){return e.fontInfo}}),fontLigatures2:I(new S),fontSize:I(new class extends g{constructor(){super(47,"fontSize",t.EDITOR_FONT_DEFAULTS.fontSize,{type:"number",minimum:6,maximum:100,default:t.EDITOR_FONT_DEFAULTS.fontSize,description:n.localize("vs/editor/common/config/editorOptions",22,"Controls the font size in pixels.")})}validate(e){const r=_.float(e,this.defaultValue);return 0===r?t.EDITOR_FONT_DEFAULTS.fontSize:_.clamp(r,6,100)}compute(e,t,r){return e.fontInfo.fontSize}}),fontWeight:I(new D),formatOnPaste:I(new b(49,"formatOnPaste",!1,{description:n.localize("vs/editor/common/config/editorOptions",216,"Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:I(new b(50,"formatOnType",!1,{description:n.localize("vs/editor/common/config/editorOptions",217,"Controls whether the editor should automatically format the line after typing.")})),glyphMargin:I(new b(51,"glyphMargin",!0,{description:n.localize("vs/editor/common/config/editorOptions",218,"Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:I(new class extends d{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[n.localize("vs/editor/common/config/editorOptions",25,"Show peek view of the results (default)"),n.localize("vs/editor/common/config/editorOptions",26,"Go to the primary result and show a peek view"),n.localize("vs/editor/common/config/editorOptions",27,"Go to the primary result and enable peek-less navigation to others")]},r=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(52,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:n.localize("vs/editor/common/config/editorOptions",28,"This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":Object.assign({description:n.localize("vs/editor/common/config/editorOptions",29,"Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:n.localize("vs/editor/common/config/editorOptions",30,"Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleDeclarations":Object.assign({description:n.localize("vs/editor/common/config/editorOptions",31,"Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleImplementations":Object.assign({description:n.localize("vs/editor/common/config/editorOptions",32,"Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleReferences":Object.assign({description:n.localize("vs/editor/common/config/editorOptions",33,"Controls the behavior the 'Go to References'-command when multiple target locations exist.")},t),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:r,description:n.localize("vs/editor/common/config/editorOptions",34,"Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:r,description:n.localize("vs/editor/common/config/editorOptions",35,"Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:r,description:n.localize("vs/editor/common/config/editorOptions",36,"Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:r,description:n.localize("vs/editor/common/config/editorOptions",37,"Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:r,description:n.localize("vs/editor/common/config/editorOptions",38,"Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t,r,n,i,o;if(!e||"object"!=typeof e)return this.defaultValue;const s=e;return{multiple:C(s.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:null!==(t=s.multipleDefinitions)&&void 0!==t?t:C(s.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:null!==(r=s.multipleTypeDefinitions)&&void 0!==r?r:C(s.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:null!==(n=s.multipleDeclarations)&&void 0!==n?n:C(s.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:null!==(i=s.multipleImplementations)&&void 0!==i?i:C(s.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:null!==(o=s.multipleReferences)&&void 0!==o?o:C(s.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:w.string(s.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:w.string(s.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:w.string(s.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:w.string(s.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:w.string(s.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}),hideCursorInOverviewRuler:I(new b(53,"hideCursorInOverviewRuler",!1,{description:n.localize("vs/editor/common/config/editorOptions",219,"Controls whether the cursor should be hidden in the overview ruler.")})),hover:I(new class extends d{constructor(){const e={enabled:!0,delay:300,sticky:!0,above:!0};super(54,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:n.localize("vs/editor/common/config/editorOptions",39,"Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:n.localize("vs/editor/common/config/editorOptions",40,"Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:n.localize("vs/editor/common/config/editorOptions",41,"Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.above":{type:"boolean",default:e.above,description:n.localize("vs/editor/common/config/editorOptions",42,"Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{enabled:m(t.enabled,this.defaultValue.enabled),delay:y.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:m(t.sticky,this.defaultValue.sticky),above:m(t.above,this.defaultValue.above)}}}),inDiffEditor:I(new b(55,"inDiffEditor",!1)),letterSpacing:I(new _(57,"letterSpacing",t.EDITOR_FONT_DEFAULTS.letterSpacing,e=>_.clamp(e,-5,20),{description:n.localize("vs/editor/common/config/editorOptions",220,"Controls the letter spacing in pixels.")})),lightbulb:I(new class extends d{constructor(){const e={enabled:!0};super(58,"lightbulb",e,{"editor.lightbulb.enabled":{type:"boolean",default:e.enabled,description:n.localize("vs/editor/common/config/editorOptions",43,"Enables the code action lightbulb in the editor.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;return{enabled:m(e.enabled,this.defaultValue.enabled)}}}),lineDecorationsWidth:I(new g(59,"lineDecorationsWidth",10)),lineHeight:I(new class extends _{constructor(){super(60,"lineHeight",t.EDITOR_FONT_DEFAULTS.lineHeight,e=>_.clamp(e,0,150),{markdownDescription:n.localize("vs/editor/common/config/editorOptions",54,"Controls the line height. \n - Use 0 to automatically compute the line height from the font size.\n - Values between 0 and 8 will be used as a multiplier with the font size.\n - Values greater than or equal to 8 will be used as effective values.")})}compute(e,t,r){return e.fontInfo.lineHeight}}),lineNumbers:I(new class extends d{constructor(){super(61,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[n.localize("vs/editor/common/config/editorOptions",77,"Line numbers are not rendered."),n.localize("vs/editor/common/config/editorOptions",78,"Line numbers are rendered as absolute number."),n.localize("vs/editor/common/config/editorOptions",79,"Line numbers are rendered as distance in lines to cursor position."),n.localize("vs/editor/common/config/editorOptions",80,"Line numbers are rendered every 10 lines.")],default:"on",description:n.localize("vs/editor/common/config/editorOptions",81,"Controls the display of line numbers.")})}validate(e){let t=this.defaultValue.renderType,r=this.defaultValue.renderFn;return void 0!==e&&("function"==typeof e?(t=4,r=e):t="interval"===e?3:"relative"===e?2:"on"===e?1:0),{renderType:t,renderFn:r}}}),lineNumbersMinChars:I(new y(62,"lineNumbersMinChars",5,1,300)),linkedEditing:I(new b(63,"linkedEditing",!1,{description:n.localize("vs/editor/common/config/editorOptions",221,"Controls whether the editor has linked editing enabled. Depending on the language, related symbols, e.g. HTML tags, are updated while editing.")})),links:I(new b(64,"links",!0,{description:n.localize("vs/editor/common/config/editorOptions",222,"Controls whether the editor should detect links and make them clickable.")})),matchBrackets:I(new k(65,"matchBrackets","always",["always","near","never"],{description:n.localize("vs/editor/common/config/editorOptions",223,"Highlight matching brackets.")})),minimap:I(new class extends d{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1};super(66,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:n.localize("vs/editor/common/config/editorOptions",55,"Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:e.autohide,description:n.localize("vs/editor/common/config/editorOptions",56,"Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[n.localize("vs/editor/common/config/editorOptions",57,"The minimap has the same size as the editor contents (and might scroll)."),n.localize("vs/editor/common/config/editorOptions",58,"The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),n.localize("vs/editor/common/config/editorOptions",59,"The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:n.localize("vs/editor/common/config/editorOptions",60,"Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:n.localize("vs/editor/common/config/editorOptions",61,"Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:n.localize("vs/editor/common/config/editorOptions",62,"Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:n.localize("vs/editor/common/config/editorOptions",63,"Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:n.localize("vs/editor/common/config/editorOptions",64,"Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:n.localize("vs/editor/common/config/editorOptions",65,"Limit the width of the minimap to render at most a certain number of columns.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{enabled:m(t.enabled,this.defaultValue.enabled),autohide:m(t.autohide,this.defaultValue.autohide),size:C(t.size,this.defaultValue.size,["proportional","fill","fit"]),side:C(t.side,this.defaultValue.side,["right","left"]),showSlider:C(t.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:m(t.renderCharacters,this.defaultValue.renderCharacters),scale:y.clampedInt(t.scale,1,1,3),maxColumn:y.clampedInt(t.maxColumn,this.defaultValue.maxColumn,1,1e4)}}}),mouseStyle:I(new k(67,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:I(new _(68,"mouseWheelScrollSensitivity",1,e=>0===e?1:e,{markdownDescription:n.localize("vs/editor/common/config/editorOptions",224,"A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:I(new b(69,"mouseWheelZoom",!1,{markdownDescription:n.localize("vs/editor/common/config/editorOptions",225,"Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:I(new b(70,"multiCursorMergeOverlapping",!0,{description:n.localize("vs/editor/common/config/editorOptions",226,"Merge multiple cursors when they are overlapping.")})),multiCursorModifier:I(new E(71,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],(function(e){return"ctrlCmd"===e?i.isMacintosh?"metaKey":"ctrlKey":"altKey"}),{markdownEnumDescriptions:[n.localize("vs/editor/common/config/editorOptions",227,"Maps to `Control` on Windows and Linux and to `Command` on macOS."),n.localize("vs/editor/common/config/editorOptions",228,"Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:n.localize("vs/editor/common/config/editorOptions",229,"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the [multicursor modifier](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:I(new k(72,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[n.localize("vs/editor/common/config/editorOptions",230,"Each cursor pastes a single line of the text."),n.localize("vs/editor/common/config/editorOptions",231,"Each cursor pastes the full text.")],markdownDescription:n.localize("vs/editor/common/config/editorOptions",232,"Controls pasting when the line count of the pasted text matches the cursor count.")})),occurrencesHighlight:I(new b(73,"occurrencesHighlight",!0,{description:n.localize("vs/editor/common/config/editorOptions",233,"Controls whether the editor should highlight semantic symbol occurrences.")})),overviewRulerBorder:I(new b(74,"overviewRulerBorder",!0,{description:n.localize("vs/editor/common/config/editorOptions",234,"Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:I(new y(75,"overviewRulerLanes",3,0,3)),padding:I(new class extends d{constructor(){super(76,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:n.localize("vs/editor/common/config/editorOptions",66,"Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:n.localize("vs/editor/common/config/editorOptions",67,"Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{top:y.clampedInt(t.top,0,0,1e3),bottom:y.clampedInt(t.bottom,0,0,1e3)}}}),parameterHints:I(new class extends d{constructor(){const e={enabled:!0,cycle:!1};super(77,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:n.localize("vs/editor/common/config/editorOptions",68,"Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:n.localize("vs/editor/common/config/editorOptions",69,"Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{enabled:m(t.enabled,this.defaultValue.enabled),cycle:m(t.cycle,this.defaultValue.cycle)}}}),peekWidgetDefaultFocus:I(new k(78,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[n.localize("vs/editor/common/config/editorOptions",235,"Focus the tree when opening peek"),n.localize("vs/editor/common/config/editorOptions",236,"Focus the editor when opening peek")],description:n.localize("vs/editor/common/config/editorOptions",237,"Controls whether to focus the inline editor or the tree in the peek widget.")})),definitionLinkOpensInPeek:I(new b(79,"definitionLinkOpensInPeek",!1,{description:n.localize("vs/editor/common/config/editorOptions",238,"Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:I(new class extends d{constructor(){const e={other:"on",comments:"off",strings:"off"},t=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[n.localize("vs/editor/common/config/editorOptions",70,"Quick suggestions show inside the suggest widget"),n.localize("vs/editor/common/config/editorOptions",71,"Quick suggestions show as ghost text"),n.localize("vs/editor/common/config/editorOptions",72,"Quick suggestions are disabled")]}];super(80,"quickSuggestions",e,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:t,default:e.strings,description:n.localize("vs/editor/common/config/editorOptions",73,"Enable quick suggestions inside strings.")},comments:{anyOf:t,default:e.comments,description:n.localize("vs/editor/common/config/editorOptions",74,"Enable quick suggestions inside comments.")},other:{anyOf:t,default:e.other,description:n.localize("vs/editor/common/config/editorOptions",75,"Enable quick suggestions outside of strings and comments.")}},default:e,markdownDescription:n.localize("vs/editor/common/config/editorOptions",76,"Controls whether suggestions should automatically show up while typing. This can be controlled for typing in comments, strings, and other code. Quick suggestion can be configured to show as ghost text or with the suggest widget. Also be aware of the '{0}'-setting which controls if suggestions are triggered by special characters.","#editor.suggestOnTriggerCharacters#")}),this.defaultValue=e}validate(e){if("boolean"==typeof e){const t=e?"on":"off";return{comments:t,strings:t,other:t}}if(!e||"object"!=typeof e)return this.defaultValue;const{other:t,comments:r,strings:n}=e,i=["on","inline","off"];let o,s,a;return o="boolean"==typeof t?t?"on":"off":C(t,this.defaultValue.other,i),s="boolean"==typeof r?r?"on":"off":C(r,this.defaultValue.comments,i),a="boolean"==typeof n?n?"on":"off":C(n,this.defaultValue.strings,i),{other:o,comments:s,strings:a}}}),quickSuggestionsDelay:I(new y(81,"quickSuggestionsDelay",10,0,1073741824,{description:n.localize("vs/editor/common/config/editorOptions",239,"Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:I(new b(82,"readOnly",!1)),renameOnType:I(new b(83,"renameOnType",!1,{description:n.localize("vs/editor/common/config/editorOptions",240,"Controls whether the editor auto renames on type."),markdownDeprecationMessage:n.localize("vs/editor/common/config/editorOptions",241,"Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:I(new b(84,"renderControlCharacters",!0,{description:n.localize("vs/editor/common/config/editorOptions",242,"Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:I(new b(85,"renderFinalNewline",!0,{description:n.localize("vs/editor/common/config/editorOptions",243,"Render last line number when the file ends with a newline.")})),renderLineHighlight:I(new k(86,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",n.localize("vs/editor/common/config/editorOptions",244,"Highlights both the gutter and the current line.")],description:n.localize("vs/editor/common/config/editorOptions",245,"Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:I(new b(87,"renderLineHighlightOnlyWhenFocus",!1,{description:n.localize("vs/editor/common/config/editorOptions",246,"Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:I(new k(88,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:I(new k(89,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",n.localize("vs/editor/common/config/editorOptions",247,"Render whitespace characters except for single spaces between words."),n.localize("vs/editor/common/config/editorOptions",248,"Render whitespace characters only on selected text."),n.localize("vs/editor/common/config/editorOptions",249,"Render only trailing whitespace characters."),""],description:n.localize("vs/editor/common/config/editorOptions",250,"Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:I(new y(90,"revealHorizontalRightPadding",15,0,1e3)),roundedSelection:I(new b(91,"roundedSelection",!0,{description:n.localize("vs/editor/common/config/editorOptions",251,"Controls whether selections should have rounded corners.")})),rulers:I(new class extends d{constructor(){const e=[],t={type:"number",description:n.localize("vs/editor/common/config/editorOptions",82,"Number of monospace characters at which this editor ruler will render.")};super(92,"rulers",e,{type:"array",items:{anyOf:[t,{type:["object"],properties:{column:t,color:{type:"string",description:n.localize("vs/editor/common/config/editorOptions",83,"Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:n.localize("vs/editor/common/config/editorOptions",84,"Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(e){if(Array.isArray(e)){const t=[];for(const r of e)if("number"==typeof r)t.push({column:y.clampedInt(r,0,0,1e4),color:null});else if(r&&"object"==typeof r){const e=r;t.push({column:y.clampedInt(e.column,0,0,1e4),color:e.color})}return t.sort((e,t)=>e.column-t.column),t}return this.defaultValue}}),scrollbar:I(new class extends d{constructor(){const e={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1};super(93,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[n.localize("vs/editor/common/config/editorOptions",85,"The vertical scrollbar will be visible only when necessary."),n.localize("vs/editor/common/config/editorOptions",86,"The vertical scrollbar will always be visible."),n.localize("vs/editor/common/config/editorOptions",87,"The vertical scrollbar will always be hidden.")],default:"auto",description:n.localize("vs/editor/common/config/editorOptions",88,"Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[n.localize("vs/editor/common/config/editorOptions",89,"The horizontal scrollbar will be visible only when necessary."),n.localize("vs/editor/common/config/editorOptions",90,"The horizontal scrollbar will always be visible."),n.localize("vs/editor/common/config/editorOptions",91,"The horizontal scrollbar will always be hidden.")],default:"auto",description:n.localize("vs/editor/common/config/editorOptions",92,"Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:n.localize("vs/editor/common/config/editorOptions",93,"The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:n.localize("vs/editor/common/config/editorOptions",94,"The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:n.localize("vs/editor/common/config/editorOptions",95,"Controls whether clicks scroll by page or jump to click position.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e,r=y.clampedInt(t.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),n=y.clampedInt(t.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:y.clampedInt(t.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:T(t.vertical,this.defaultValue.vertical),horizontal:T(t.horizontal,this.defaultValue.horizontal),useShadows:m(t.useShadows,this.defaultValue.useShadows),verticalHasArrows:m(t.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:m(t.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:m(t.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:m(t.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:r,horizontalSliderSize:y.clampedInt(t.horizontalSliderSize,r,0,1e3),verticalScrollbarSize:n,verticalSliderSize:y.clampedInt(t.verticalSliderSize,n,0,1e3),scrollByPage:m(t.scrollByPage,this.defaultValue.scrollByPage)}}}),scrollBeyondLastColumn:I(new y(94,"scrollBeyondLastColumn",4,0,1073741824,{description:n.localize("vs/editor/common/config/editorOptions",252,"Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:I(new b(95,"scrollBeyondLastLine",!0,{description:n.localize("vs/editor/common/config/editorOptions",253,"Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:I(new b(96,"scrollPredominantAxis",!0,{description:n.localize("vs/editor/common/config/editorOptions",254,"Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:I(new b(97,"selectionClipboard",!0,{description:n.localize("vs/editor/common/config/editorOptions",255,"Controls whether the Linux primary clipboard should be supported."),included:i.isLinux})),selectionHighlight:I(new b(98,"selectionHighlight",!0,{description:n.localize("vs/editor/common/config/editorOptions",256,"Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:I(new b(99,"selectOnLineNumbers",!0)),showFoldingControls:I(new k(100,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[n.localize("vs/editor/common/config/editorOptions",257,"Always show the folding controls."),n.localize("vs/editor/common/config/editorOptions",258,"Never show the folding controls and reduce the gutter size."),n.localize("vs/editor/common/config/editorOptions",259,"Only show the folding controls when the mouse is over the gutter.")],description:n.localize("vs/editor/common/config/editorOptions",260,"Controls when the folding controls on the gutter are shown.")})),showUnused:I(new b(101,"showUnused",!0,{description:n.localize("vs/editor/common/config/editorOptions",261,"Controls fading out of unused code.")})),showDeprecated:I(new b(128,"showDeprecated",!0,{description:n.localize("vs/editor/common/config/editorOptions",262,"Controls strikethrough deprecated variables.")})),inlayHints:I(new class extends d{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(129,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:n.localize("vs/editor/common/config/editorOptions",46,"Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[n.localize("vs/editor/common/config/editorOptions",47,"Inlay hints are enabled"),n.localize("vs/editor/common/config/editorOptions",48,"Inlay hints are showing by default and hide when holding {0}",i.isMacintosh?"Ctrl+Option":"Ctrl+Alt"),n.localize("vs/editor/common/config/editorOptions",49,"Inlay hints are hidden by default and show when holding {0}",i.isMacintosh?"Ctrl+Option":"Ctrl+Alt"),n.localize("vs/editor/common/config/editorOptions",50,"Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:n.localize("vs/editor/common/config/editorOptions",51,"Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:n.localize("vs/editor/common/config/editorOptions",52,"Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:n.localize("vs/editor/common/config/editorOptions",53,"Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return"boolean"==typeof t.enabled&&(t.enabled=t.enabled?"on":"off"),{enabled:C(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:y.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:w.string(t.fontFamily,this.defaultValue.fontFamily),padding:m(t.padding,this.defaultValue.padding)}}}),snippetSuggestions:I(new k(102,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[n.localize("vs/editor/common/config/editorOptions",263,"Show snippet suggestions on top of other suggestions."),n.localize("vs/editor/common/config/editorOptions",264,"Show snippet suggestions below other suggestions."),n.localize("vs/editor/common/config/editorOptions",265,"Show snippets suggestions with other suggestions."),n.localize("vs/editor/common/config/editorOptions",266,"Do not show snippet suggestions.")],description:n.localize("vs/editor/common/config/editorOptions",267,"Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:I(new class extends d{constructor(){super(103,"smartSelect",{selectLeadingAndTrailingWhitespace:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:n.localize("vs/editor/common/config/editorOptions",163,"Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"}})}validate(e){return e&&"object"==typeof e?{selectLeadingAndTrailingWhitespace:m(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace)}:this.defaultValue}}),smoothScrolling:I(new b(104,"smoothScrolling",!1,{description:n.localize("vs/editor/common/config/editorOptions",268,"Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:I(new y(107,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:I(new class extends d{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!0,localityBonus:!1,shareSuggestSelections:!1,showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,matchOnWordStartOnly:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(108,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[n.localize("vs/editor/common/config/editorOptions",120,"Insert suggestion without overwriting text right of the cursor."),n.localize("vs/editor/common/config/editorOptions",121,"Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:n.localize("vs/editor/common/config/editorOptions",122,"Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:n.localize("vs/editor/common/config/editorOptions",123,"Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:n.localize("vs/editor/common/config/editorOptions",124,"Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:n.localize("vs/editor/common/config/editorOptions",125,"Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:n.localize("vs/editor/common/config/editorOptions",126,"Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:n.localize("vs/editor/common/config/editorOptions",127,"Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:n.localize("vs/editor/common/config/editorOptions",128,"Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:n.localize("vs/editor/common/config/editorOptions",129,"Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:n.localize("vs/editor/common/config/editorOptions",130,"Controls whether suggest details show inline with the label or only in the details widget")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:n.localize("vs/editor/common/config/editorOptions",131,"This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:n.localize("vs/editor/common/config/editorOptions",132,"This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",133,"When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",134,"When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",135,"When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",136,"When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",137,"When enabled IntelliSense filtering requires that the first character matches on a word start, e.g `c` on `Console` or `WebContext` but _not_ on `description`. When disabled IntelliSense will show more results but still sorts them by match quality.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",138,"When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",139,"When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",140,"When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",141,"When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",142,"When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",143,"When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",144,"When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",145,"When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",146,"When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",147,"When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",148,"When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",149,"When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",150,"When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",151,"When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",152,"When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",153,"When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",154,"When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",155,"When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",156,"When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",157,"When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",158,"When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",159,"When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",160,"When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",161,"When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:n.localize("vs/editor/common/config/editorOptions",162,"When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{insertMode:C(t.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:m(t.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:m(t.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:m(t.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:m(t.shareSuggestSelections,this.defaultValue.shareSuggestSelections),showIcons:m(t.showIcons,this.defaultValue.showIcons),showStatusBar:m(t.showStatusBar,this.defaultValue.showStatusBar),preview:m(t.preview,this.defaultValue.preview),previewMode:C(t.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:m(t.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:m(t.showMethods,this.defaultValue.showMethods),showFunctions:m(t.showFunctions,this.defaultValue.showFunctions),showConstructors:m(t.showConstructors,this.defaultValue.showConstructors),showDeprecated:m(t.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:m(t.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:m(t.showFields,this.defaultValue.showFields),showVariables:m(t.showVariables,this.defaultValue.showVariables),showClasses:m(t.showClasses,this.defaultValue.showClasses),showStructs:m(t.showStructs,this.defaultValue.showStructs),showInterfaces:m(t.showInterfaces,this.defaultValue.showInterfaces),showModules:m(t.showModules,this.defaultValue.showModules),showProperties:m(t.showProperties,this.defaultValue.showProperties),showEvents:m(t.showEvents,this.defaultValue.showEvents),showOperators:m(t.showOperators,this.defaultValue.showOperators),showUnits:m(t.showUnits,this.defaultValue.showUnits),showValues:m(t.showValues,this.defaultValue.showValues),showConstants:m(t.showConstants,this.defaultValue.showConstants),showEnums:m(t.showEnums,this.defaultValue.showEnums),showEnumMembers:m(t.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:m(t.showKeywords,this.defaultValue.showKeywords),showWords:m(t.showWords,this.defaultValue.showWords),showColors:m(t.showColors,this.defaultValue.showColors),showFiles:m(t.showFiles,this.defaultValue.showFiles),showReferences:m(t.showReferences,this.defaultValue.showReferences),showFolders:m(t.showFolders,this.defaultValue.showFolders),showTypeParameters:m(t.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:m(t.showSnippets,this.defaultValue.showSnippets),showUsers:m(t.showUsers,this.defaultValue.showUsers),showIssues:m(t.showIssues,this.defaultValue.showIssues)}}}),inlineSuggest:I(new class extends d{constructor(){const e={enabled:!0,mode:"subwordSmart"};super(56,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:n.localize("vs/editor/common/config/editorOptions",103,"Controls whether to automatically show inline suggestions in the editor.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{enabled:m(t.enabled,this.defaultValue.enabled),mode:C(t.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"])}}}),suggestFontSize:I(new y(109,"suggestFontSize",0,0,1e3,{markdownDescription:n.localize("vs/editor/common/config/editorOptions",269,"Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:I(new y(110,"suggestLineHeight",0,0,1e3,{markdownDescription:n.localize("vs/editor/common/config/editorOptions",270,"Line height for the suggest widget. When set to {0}, the value of {1} is used. The minimum value is 8.","`0`","`#editor.lineHeight#`")})),suggestOnTriggerCharacters:I(new b(111,"suggestOnTriggerCharacters",!0,{description:n.localize("vs/editor/common/config/editorOptions",271,"Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:I(new k(112,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[n.localize("vs/editor/common/config/editorOptions",272,"Always select the first suggestion."),n.localize("vs/editor/common/config/editorOptions",273,"Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),n.localize("vs/editor/common/config/editorOptions",274,"Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:n.localize("vs/editor/common/config/editorOptions",275,"Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:I(new k(113,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[n.localize("vs/editor/common/config/editorOptions",276,"Tab complete will insert the best matching suggestion when pressing tab."),n.localize("vs/editor/common/config/editorOptions",277,"Disable tab completions."),n.localize("vs/editor/common/config/editorOptions",278,"Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:n.localize("vs/editor/common/config/editorOptions",279,"Enables tab completions.")})),tabIndex:I(new y(114,"tabIndex",0,-1,1073741824)),unicodeHighlight:I(new class extends d{constructor(){const e={nonBasicASCII:t.inUntrustedWorkspace,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:t.inUntrustedWorkspace,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(115,"unicodeHighlight",e,{[t.unicodeHighlightConfigKeys.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,t.inUntrustedWorkspace],default:e.nonBasicASCII,description:n.localize("vs/editor/common/config/editorOptions",96,"Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.")},[t.unicodeHighlightConfigKeys.invisibleCharacters]:{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:n.localize("vs/editor/common/config/editorOptions",97,"Controls whether characters that just reserve space or have no width at all are highlighted.")},[t.unicodeHighlightConfigKeys.ambiguousCharacters]:{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:n.localize("vs/editor/common/config/editorOptions",98,"Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},[t.unicodeHighlightConfigKeys.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,t.inUntrustedWorkspace],default:e.includeComments,description:n.localize("vs/editor/common/config/editorOptions",99,"Controls whether characters in comments should also be subject to unicode highlighting.")},[t.unicodeHighlightConfigKeys.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,t.inUntrustedWorkspace],default:e.includeStrings,description:n.localize("vs/editor/common/config/editorOptions",100,"Controls whether characters in strings should also be subject to unicode highlighting.")},[t.unicodeHighlightConfigKeys.allowedCharacters]:{restricted:!0,type:"object",default:e.allowedCharacters,description:n.localize("vs/editor/common/config/editorOptions",101,"Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[t.unicodeHighlightConfigKeys.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:e.allowedLocales,description:n.localize("vs/editor/common/config/editorOptions",102,"Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(e,t){let r=!1;t.allowedCharacters&&e&&(a.equals(e.allowedCharacters,t.allowedCharacters)||(e=Object.assign(Object.assign({},e),{allowedCharacters:t.allowedCharacters}),r=!0)),t.allowedLocales&&e&&(a.equals(e.allowedLocales,t.allowedLocales)||(e=Object.assign(Object.assign({},e),{allowedLocales:t.allowedLocales}),r=!0));const n=super.applyUpdate(e,t);return r?new h(n.newValue,!0):n}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const r=e;return{nonBasicASCII:A(r.nonBasicASCII,t.inUntrustedWorkspace,[!0,!1,t.inUntrustedWorkspace]),invisibleCharacters:m(r.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:m(r.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:A(r.includeComments,t.inUntrustedWorkspace,[!0,!1,t.inUntrustedWorkspace]),includeStrings:A(r.includeStrings,t.inUntrustedWorkspace,[!0,!1,t.inUntrustedWorkspace]),allowedCharacters:this.validateBooleanMap(e.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(e.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(e,t){if("object"!=typeof e||!e)return t;const r={};for(const[t,n]of Object.entries(e))!0===n&&(r[t]=!0);return r}}),unusualLineTerminators:I(new k(116,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[n.localize("vs/editor/common/config/editorOptions",280,"Unusual line terminators are automatically removed."),n.localize("vs/editor/common/config/editorOptions",281,"Unusual line terminators are ignored."),n.localize("vs/editor/common/config/editorOptions",282,"Unusual line terminators prompt to be removed.")],description:n.localize("vs/editor/common/config/editorOptions",283,"Remove unusual line terminators that might cause problems.")})),useShadowDOM:I(new b(117,"useShadowDOM",!0)),useTabStops:I(new b(118,"useTabStops",!0,{description:n.localize("vs/editor/common/config/editorOptions",284,"Inserting and deleting whitespace follows tab stops.")})),wordSeparators:I(new w(119,"wordSeparators",o.USUAL_WORD_SEPARATORS,{description:n.localize("vs/editor/common/config/editorOptions",285,"Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:I(new k(120,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[n.localize("vs/editor/common/config/editorOptions",286,"Lines will never wrap."),n.localize("vs/editor/common/config/editorOptions",287,"Lines will wrap at the viewport width."),n.localize("vs/editor/common/config/editorOptions",288,"Lines will wrap at `#editor.wordWrapColumn#`."),n.localize("vs/editor/common/config/editorOptions",289,"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:n.localize("vs/editor/common/config/editorOptions",290,"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:I(new w(121,"wordWrapBreakAfterCharacters"," \t})]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」")),wordWrapBreakBeforeCharacters:I(new w(122,"wordWrapBreakBeforeCharacters","([{‘“〈《「『【〔([{「£¥$£¥++")),wordWrapColumn:I(new y(123,"wordWrapColumn",80,1,1073741824,{markdownDescription:n.localize("vs/editor/common/config/editorOptions",291,"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:I(new k(124,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:I(new k(125,"wordWrapOverride2","inherit",["off","on","inherit"])),wrappingIndent:I(new E(126,"wrappingIndent",1,"same",["none","same","indent","deepIndent"],(function(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}}),{enumDescriptions:[n.localize("vs/editor/common/config/editorOptions",292,"No indentation. Wrapped lines begin at column 1."),n.localize("vs/editor/common/config/editorOptions",293,"Wrapped lines get the same indentation as the parent."),n.localize("vs/editor/common/config/editorOptions",294,"Wrapped lines get +1 indentation toward the parent."),n.localize("vs/editor/common/config/editorOptions",295,"Wrapped lines get +2 indentation toward the parent.")],description:n.localize("vs/editor/common/config/editorOptions",296,"Controls the indentation of wrapped lines.")})),wrappingStrategy:I(new k(127,"wrappingStrategy","simple",["simple","advanced"],{enumDescriptions:[n.localize("vs/editor/common/config/editorOptions",297,"Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),n.localize("vs/editor/common/config/editorOptions",298,"Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],description:n.localize("vs/editor/common/config/editorOptions",299,"Controls the algorithm that computes wrapping points.")})),editorClassName:I(new class extends p{constructor(){super(130)}compute(e,t,r){const n=["monaco-editor"];return t.get(34)&&n.push(t.get(34)),e.extraEditorClassName&&n.push(e.extraEditorClassName),"default"===t.get(67)?n.push("mouse-default"):"copy"===t.get(67)&&n.push("mouse-copy"),t.get(101)&&n.push("showUnused"),t.get(128)&&n.push("showDeprecated"),n.join(" ")}}),pixelRatio:I(new class extends p{constructor(){super(131)}compute(e,t,r){return e.pixelRatio}}),tabFocusMode:I(new class extends p{constructor(){super(132)}compute(e,t,r){return!!t.get(82)||e.tabFocusMode}}),layoutInfo:I(new x),wrappingInfo:I(new class extends p{constructor(){super(134)}compute(e,t,r){const n=t.get(133);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:n.isWordWrapMinified,isViewportWrapping:n.isViewportWrapping,wrappingColumn:n.wrappingColumn}}})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getWordAtText=t.ensureValidWordDefinition=t.DEFAULT_WORD_REGEXP=t.USUAL_WORD_SEPARATORS=void 0;const n=r(248),i=r(249);t.USUAL_WORD_SEPARATORS="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?",t.DEFAULT_WORD_REGEXP=function(e=""){let r="(-?\\d*\\.\\d\\w*)|([^";for(const n of t.USUAL_WORD_SEPARATORS)e.indexOf(n)>=0||(r+="\\"+n);return r+="\\s]+)",new RegExp(r,"g")}(),t.ensureValidWordDefinition=function(e){let r=t.DEFAULT_WORD_REGEXP;if(e&&e instanceof RegExp)if(e.global)r=e;else{let t="g";e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),r=new RegExp(e.source,t)}return r.lastIndex=0,r};const o=new i.LinkedList;function s(e,t,r,n){let i;for(;i=e.exec(t);){const t=i.index||0;if(t<=r&&e.lastIndex>=r)return i;if(n>0&&t>n)return null}return null}o.unshift({maxLen:1e3,windowSize:15,timeBudget:150}),t.getWordAtText=function e(t,r,i,a,c){if(c||(c=n.Iterable.first(o)),i.length>c.maxLen){let n=t-c.maxLen/2;return n<0?n=0:a+=n,e(t,r,i=i.substring(n,t+c.maxLen/2),a,c)}const l=Date.now(),u=t-1-a;let d=-1,h=null;for(let e=1;!(Date.now()-l>=c.timeBudget);e++){const t=u-c.windowSize*e;r.lastIndex=Math.max(0,t);const n=s(r,i,u,d);if(!n&&h)break;if(h=n,t<=0)break;d=t}if(h){const e={word:h[0],startColumn:a+1+h.index,endColumn:a+1+h.index+h[0].length};return r.lastIndex=0,e}return null}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EDITOR_MODEL_DEFAULTS=void 0,t.EDITOR_MODEL_DEFAULTS={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LanguageFeatureRegistry=void 0;const n=r(61),i=r(72),o=r(245),s=r(601);function a(e){return"string"!=typeof e&&(Array.isArray(e)?e.every(a):!!e.exclusive)}class c{constructor(e,t,r,n){this.uri=e,this.languageId=t,this.notebookUri=r,this.notebookType=n}equals(e){var t,r;return this.notebookType===e.notebookType&&this.languageId===e.languageId&&this.uri.toString()===e.uri.toString()&&(null===(t=this.notebookUri)||void 0===t?void 0:t.toString())===(null===(r=e.notebookUri)||void 0===r?void 0:r.toString())}}class l{constructor(e){this._notebookInfoResolver=e,this._clock=0,this._entries=[],this._onDidChange=new n.Emitter,this.onDidChange=this._onDidChange.event}register(e,t){let r={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(r),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),(0,i.toDisposable)(()=>{if(r){const e=this._entries.indexOf(r);e>=0&&(this._entries.splice(e,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),r=void 0)}})}has(e){return this.all(e).length>0}all(e){if(!e)return[];this._updateScores(e);const t=[];for(const e of this._entries)e._score>0&&t.push(e.provider);return t}ordered(e){const t=[];return this._orderedForEach(e,e=>t.push(e.provider)),t}orderedGroups(e){const t=[];let r,n;return this._orderedForEach(e,e=>{r&&n===e._score?r.push(e.provider):(n=e._score,r=[e.provider],t.push(r))}),t}_orderedForEach(e,t){this._updateScores(e);for(const e of this._entries)e._score>0&&t(e)}_updateScores(e){var t,r;const n=null===(t=this._notebookInfoResolver)||void 0===t?void 0:t.call(this,e.uri),i=n?new c(e.uri,e.getLanguageId(),n.uri,n.type):new c(e.uri,e.getLanguageId(),void 0,void 0);if(!(null===(r=this._lastCandidate)||void 0===r?void 0:r.equals(i))){this._lastCandidate=i;for(const t of this._entries)if(t._score=(0,s.score)(t.selector,i.uri,i.languageId,(0,o.shouldSynchronizeModel)(e),i.notebookUri,i.notebookType),a(t.selector)&&t._score>0){for(const e of this._entries)e._score=0;t._score=1e3;break}this._entries.sort(l._compareByScoreAndTime)}}static _compareByScoreAndTime(e,t){return e._score<t._score?1:e._score>t._score?-1:e._time<t._time?1:e._time>t._time?-1:0}}t.LanguageFeatureRegistry=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.score=void 0;const n=r(602),i=r(71);t.score=function e(t,r,o,s,a,c){if(Array.isArray(t)){let n=0;for(const i of t){const t=e(i,r,o,s,a,c);if(10===t)return t;t>n&&(n=t)}return n}if("string"==typeof t)return s?"*"===t?5:t===o?10:0:0;if(t){const{language:e,pattern:l,scheme:u,hasAccessToAllModels:d,notebookType:h}=t;if(!s&&!d)return 0;h&&a&&(r=a);let f=0;if(u)if(u===r.scheme)f=10;else{if("*"!==u)return 0;f=5}if(e)if(e===o)f=10;else{if("*"!==e)return 0;f=Math.max(f,5)}if(h)if(h===c)f=10;else{if("*"!==h||void 0===c)return 0;f=Math.max(f,5)}if(l){let e;if(e="string"==typeof l?l:Object.assign(Object.assign({},l),{base:(0,i.normalize)(l.base)}),e!==r.fsPath&&!(0,n.match)(e,r.fsPath))return 0;f=10}return f}return 0}},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.isRelativePattern=t.parse=t.match=t.splitGlobAware=t.GLOB_SPLIT=t.GLOBSTAR=void 0;const i=r(603),o=r(605),s=r(608),a=r(71),c=r(31),l=r(127);t.GLOBSTAR="**",t.GLOB_SPLIT="/";const u=/\//g;function d(e,t){switch(e){case 0:return"";case 1:return"[^/\\\\]*?";default:return`(?:[/\\\\]|[^/\\\\]+[/\\\\]${t?"|[/\\\\][^/\\\\]+":""})*?`}}function h(e,t){if(!e)return[];const r=[];let n=!1,i=!1,o="";for(const s of e){switch(s){case t:if(!n&&!i){r.push(o),o="";continue}break;case"{":n=!0;break;case"}":n=!1;break;case"[":i=!0;break;case"]":i=!1}o+=s}return o&&r.push(o),r}t.splitGlobAware=h;const f=/^\*\*\/\*\.[\w\.-]+$/,p=/^\*\*\/([\w\.-]+)\/?$/,g=/^{\*\*\/\*?[\w\.-]+\/?(,\*\*\/\*?[\w\.-]+\/?)*}$/,m=/^{\*\*\/\*?[\w\.-]+(\/(\*\*)?)?(,\*\*\/\*?[\w\.-]+(\/(\*\*)?)?)*}$/,b=/^\*\*((\/[\w\.-]+)+)\/?$/,v=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,y=new s.LRUCache(1e4),_=function(){return!1},w=function(){return null};function C(e,r){if(!e)return w;let n;n="string"!=typeof e?e.pattern:e,n=n.trim();const i=`${n}_${!!r.trimForExclusions}`;let o,s=y.get(i);return s||(s=f.test(n)?function(e,t){return function(r,n){return"string"==typeof r&&r.endsWith(e)?t:null}}(n.substr(4),n):(o=p.exec(E(n,r)))?function(e,t){const r="/"+e,n="\\"+e,i=function(i,o){return"string"!=typeof i?null:o?o===e?t:null:i===e||i.endsWith(r)||i.endsWith(n)?t:null},o=[e];return i.basenames=o,i.patterns=[t],i.allBasenames=o,i}(o[1],n):(r.trimForExclusions?m:g).test(n)?function(e,t){const r=T(e.slice(1,-1).split(",").map(e=>C(e,t)).filter(e=>e!==w),e),n=r.length;if(!n)return w;if(1===n)return r[0];const i=function(t,n){for(let i=0,o=r.length;i<o;i++)if(r[i](t,n))return e;return null},o=r.find(e=>!!e.allBasenames);o&&(i.allBasenames=o.allBasenames);const s=r.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);s.length&&(i.allPaths=s);return i}(n,r):(o=b.exec(E(n,r)))?S(o[1].substr(1),n,!0):(o=v.exec(E(n,r)))?S(o[1],n,!1):function(e){try{const r=new RegExp(`^${function e(r){if(!r)return"";let n="";const i=h(r,t.GLOB_SPLIT);if(i.every(e=>e===t.GLOBSTAR))n=".*";else{let r=!1;i.forEach((o,s)=>{if(o===t.GLOBSTAR){if(r)return;n+=d(2,s===i.length-1)}else{let r=!1,a="",c=!1,u="";for(const i of o)if("}"!==i&&r)a+=i;else if(!c||"]"===i&&u)switch(i){case"{":r=!0;continue;case"[":c=!0;continue;case"}":{const t=`(?:${h(a,",").map(t=>e(t)).join("|")})`;n+=t,r=!1,a="";break}case"]":n+="["+u+"]",c=!1,u="";break;case"?":n+="[^/\\\\]";continue;case"*":n+=d(1);continue;default:n+=(0,l.escapeRegExpCharacters)(i)}else{let e;e="-"===i?i:"^"!==i&&"!"!==i||u?i===t.GLOB_SPLIT?"":(0,l.escapeRegExpCharacters)(i):"^",u+=e}s<i.length-1&&(i[s+1]!==t.GLOBSTAR||s+2<i.length)&&(n+="[/\\\\]")}r=o===t.GLOBSTAR})}return n}(e)}$`);return function(t){return r.lastIndex=0,"string"==typeof t&&r.test(t)?e:null}}catch(e){return w}}(n),y.set(i,s)),k(s,e)}function k(e,t){if("string"==typeof t)return e;const r=function(r,n){return(0,o.isEqualOrParent)(r,t.base,!c.isLinux)?e(r.substr(t.base.length+1),n):null};return r.allBasenames=e.allBasenames,r.allPaths=e.allPaths,r.basenames=e.basenames,r.patterns=e.patterns,r}function E(e,t){return t.trimForExclusions&&e.endsWith("/**")?e.substr(0,e.length-2):e}function S(e,t,r){const n=a.sep===a.posix.sep,i=n?e:e.replace(u,a.sep),o=a.sep+i,s=a.posix.sep+e;let c;return c=r?function(r,a){return"string"!=typeof r||r!==i&&!r.endsWith(o)&&(n||r!==e&&!r.endsWith(s))?null:t}:function(r,o){return"string"!=typeof r||r!==i&&(n||r!==e)?null:t},c.allPaths=[(r?"*/":"./")+e],c}function D(e,t={}){if(!e)return _;if("string"==typeof e||x(e)){const r=C(e,t);if(r===w)return _;const n=function(e,t){return!!r(e,t)};return r.allBasenames&&(n.allBasenames=r.allBasenames),r.allPaths&&(n.allPaths=r.allPaths),n}return function(e,t){const r=T(Object.getOwnPropertyNames(e).map(r=>function(e,t,r){if(!1===t)return w;const n=C(e,r);if(n===w)return w;if("boolean"==typeof t)return n;if(t){const r=t.when;if("string"==typeof r){const t=(t,o,s,a)=>{if(!a||!n(t,o))return null;const c=a(r.replace("$(basename)",s));return(0,i.isThenable)(c)?c.then(t=>t?e:null):c?e:null};return t.requiresSiblings=!0,t}}return n}(r,e[r],t)).filter(e=>e!==w)),o=r.length;if(!o)return w;if(!r.some(e=>!!e.requiresSiblings)){if(1===o)return r[0];const e=function(e,t){let o=void 0;for(let n=0,s=r.length;n<s;n++){const s=r[n](e,t);if("string"==typeof s)return s;(0,i.isThenable)(s)&&(o||(o=[]),o.push(s))}return o?(()=>n(this,void 0,void 0,(function*(){for(const e of o){const t=yield e;if("string"==typeof t)return t}return null})))():null},t=r.find(e=>!!e.allBasenames);t&&(e.allBasenames=t.allBasenames);const s=r.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);return s.length&&(e.allPaths=s),e}const s=function(e,t,o){let s=void 0,c=void 0;for(let n=0,l=r.length;n<l;n++){const l=r[n];l.requiresSiblings&&o&&(t||(t=(0,a.basename)(e)),s||(s=t.substr(0,t.length-(0,a.extname)(e).length)));const u=l(e,t,s,o);if("string"==typeof u)return u;(0,i.isThenable)(u)&&(c||(c=[]),c.push(u))}return c?(()=>n(this,void 0,void 0,(function*(){for(const e of c){const t=yield e;if("string"==typeof t)return t}return null})))():null},c=r.find(e=>!!e.allBasenames);c&&(s.allBasenames=c.allBasenames);const l=r.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);l.length&&(s.allPaths=l);return s}(e,t)}function x(e){const t=e;return!!t&&("string"==typeof t.base&&"string"==typeof t.pattern)}function T(e,t){const r=e.filter(e=>!!e.basenames);if(r.length<2)return e;const n=r.reduce((e,t)=>{const r=t.basenames;return r?e.concat(r):e},[]);let i;if(t){i=[];for(let e=0,r=n.length;e<r;e++)i.push(t)}else i=r.reduce((e,t)=>{const r=t.patterns;return r?e.concat(r):e},[]);const o=function(e,t){if("string"!=typeof e)return null;if(!t){let r;for(r=e.length;r>0;r--){const t=e.charCodeAt(r-1);if(47===t||92===t)break}t=e.substr(r)}const r=n.indexOf(t);return-1!==r?i[r]:null};o.basenames=n,o.patterns=i,o.allBasenames=n;const s=e.filter(e=>!e.basenames);return s.push(o),s}t.match=function(e,t,r){return!(!e||"string"!=typeof t)&&D(e)(t,void 0,r)},t.parse=D,t.isRelativePattern=x},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))},i=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.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(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,i,(t=e[r](t)).done,t.value)}))}}};Object.defineProperty(t,"__esModule",{value:!0}),t.createCancelableAsyncIterable=t.CancelableAsyncIterableObject=t.AsyncIterableObject=t.Promises=t.DeferredPromise=t.IdleValue=t.runWhenIdle=t.RunOnceScheduler=t.IntervalTimer=t.TimeoutTimer=t.first=t.disposableTimeout=t.timeout=t.ThrottledDelayer=t.Delayer=t.MicrotaskDelay=t.Throttler=t.raceCancellation=t.createCancelablePromise=t.isThenable=void 0;const o=r(604),s=r(247),a=r(61),c=r(72),l=r(31);function u(e){const t=new o.CancellationTokenSource,r=e(t.token),n=new Promise((e,n)=>{const i=t.token.onCancellationRequested(()=>{i.dispose(),t.dispose(),n(new s.CancellationError)});Promise.resolve(r).then(r=>{i.dispose(),t.dispose(),e(r)},e=>{i.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)}}}t.isThenable=function(e){return!!e&&"function"==typeof e.then},t.createCancelablePromise=u,t.raceCancellation=function(e,t,r){return new Promise((n,i)=>{const o=t.onCancellationRequested(()=>{o.dispose(),n(r)});e.then(n,i).finally(()=>o.dispose())})};class d{constructor(){this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(e){if(this.activePromise){if(this.queuedPromiseFactory=e,!this.queuedPromise){const e=()=>{this.queuedPromise=null;const 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)})})}}t.Throttler=d;t.MicrotaskDelay=Symbol("MicrotaskDelay");class h{constructor(e){this.defaultDelay=e,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(e,r=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){const e=this.task;return this.task=null,e()}}));const n=()=>{var e;this.deferred=null,null===(e=this.doResolve)||void 0===e||e.call(this,null)};return this.deferred=r===t.MicrotaskDelay?(e=>{let t=!0;return queueMicrotask(()=>{t&&(t=!1,e())}),{isTriggered:()=>t,dispose:()=>{t=!1}}})(n):((e,t)=>{let r=!0;const n=setTimeout(()=>{r=!1,t()},e);return{isTriggered:()=>r,dispose:()=>{clearTimeout(n),r=!1}}})(r,n),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 s.CancellationError),this.completionPromise=null)}cancelTimeout(){var e;null===(e=this.deferred)||void 0===e||e.dispose(),this.deferred=null}dispose(){this.cancel()}}t.Delayer=h;t.ThrottledDelayer=class{constructor(e){this.delayer=new h(e),this.throttler=new d}trigger(e,t){return this.delayer.trigger(()=>this.throttler.queue(e),t)}isTriggered(){return this.delayer.isTriggered()}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose()}},t.timeout=function e(t,r){return r?new Promise((e,n)=>{const i=setTimeout(()=>{o.dispose(),e()},t),o=r.onCancellationRequested(()=>{clearTimeout(i),o.dispose(),n(new s.CancellationError)})}):u(r=>e(t,r))},t.disposableTimeout=function(e,t=0){const r=setTimeout(e,t);return(0,c.toDisposable)(()=>clearTimeout(r))},t.first=function(e,t=(e=>!!e),r=null){let n=0;const i=e.length,o=()=>{if(n>=i)return Promise.resolve(r);const s=e[n++];return Promise.resolve(s()).then(e=>t(e)?Promise.resolve(e):o())};return o()};t.TimeoutTimer=class{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))}};t.IntervalTimer=class{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)}};t.RunOnceScheduler=class{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?t.runWhenIdle=e=>{(0,l.setTimeout0)(()=>{if(t)return;const r=Date.now()+15;e(Object.freeze({didTimeout:!0,timeRemaining:()=>Math.max(0,r-Date.now())}))});let t=!1;return{dispose(){t||(t=!0)}}}:t.runWhenIdle=(e,t)=>{const r=requestIdleCallback(e,"number"==typeof t?{timeout:t}:void 0);let n=!1;return{dispose(){n||(n=!0,cancelIdleCallback(r))}}};t.IdleValue=class{constructor(e){this._didRun=!1,this._executor=()=>{try{this._value=e()}catch(e){this._error=e}finally{this._didRun=!0}},this._handle=(0,t.runWhenIdle)(()=>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}};var f;t.DeferredPromise=class{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 isResolved(){return this.resolved}get isSettled(){return this.rejected||this.resolved}complete(e){return new Promise(t=>{this.completeCallback(e),this.resolved=!0,t()})}error(e){return new Promise(t=>{this.errorCallback(e),this.rejected=!0,t()})}cancel(){new Promise(e=>{this.errorCallback(new s.CancellationError),this.rejected=!0,e()})}},function(e){e.settled=function(e){return n(this,void 0,void 0,(function*(){let t=void 0;const r=yield Promise.all(e.map(e=>e.then(e=>e,e=>{t||(t=e)})));if(void 0!==t)throw t;return r}))},e.withAsyncBody=function(e){return new Promise((t,r)=>n(this,void 0,void 0,(function*(){try{yield e(t,r)}catch(e){r(e)}})))}}(t.Promises||(t.Promises={})),function(e){e[e.Initial=0]="Initial",e[e.DoneOK=1]="DoneOK",e[e.DoneError=2]="DoneError"}(f||(f={}));class p{constructor(e){this._state=0,this._results=[],this._error=null,this._onStateChanged=new a.Emitter,queueMicrotask(()=>n(this,void 0,void 0,(function*(){const 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 p(t=>{t.emitMany(e)})}static fromPromise(e){return new p(t=>n(this,void 0,void 0,(function*(){t.emitMany(yield e)})))}static fromPromises(e){return new p(t=>n(this,void 0,void 0,(function*(){yield Promise.all(e.map(e=>n(this,void 0,void 0,(function*(){return t.emitOne(yield e)}))))})))}static merge(e){return new p(t=>n(this,void 0,void 0,(function*(){yield Promise.all(e.map(e=>{var r,o;return n(this,void 0,void 0,(function*(){var n,s;try{for(r=i(e);!(o=yield r.next()).done;){const e=o.value;t.emitOne(e)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(s=r.return)&&(yield s.call(r))}finally{if(n)throw n.error}}}))}))})))}[Symbol.asyncIterator](){let e=0;return{next:()=>n(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.Event.toPromise(this._onStateChanged.event)}}))}}static map(e,t){return new p(r=>n(this,void 0,void 0,(function*(){var n,o;try{for(var s,a=i(e);!(s=yield a.next()).done;){const e=s.value;r.emitOne(t(e))}}catch(e){n={error:e}}finally{try{s&&!s.done&&(o=a.return)&&(yield o.call(a))}finally{if(n)throw n.error}}})))}map(e){return p.map(this,e)}static filter(e,t){return new p(r=>n(this,void 0,void 0,(function*(){var n,o;try{for(var s,a=i(e);!(s=yield a.next()).done;){const e=s.value;t(e)&&r.emitOne(e)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(o=a.return)&&(yield o.call(a))}finally{if(n)throw n.error}}})))}filter(e){return p.filter(this,e)}static coalesce(e){return p.filter(e,e=>!!e)}coalesce(){return p.coalesce(this)}static toPromise(e){var t,r,o,s;return n(this,void 0,void 0,(function*(){const n=[];try{for(t=i(e);!(r=yield t.next()).done;){const e=r.value;n.push(e)}}catch(e){o={error:e}}finally{try{r&&!r.done&&(s=t.return)&&(yield s.call(t))}finally{if(o)throw o.error}}return n}))}toPromise(){return p.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())}}t.AsyncIterableObject=p,p.EMPTY=p.fromArray([]);class g extends p{constructor(e,t){super(t),this._source=e}cancel(){this._source.cancel()}}t.CancelableAsyncIterableObject=g,t.createCancelableAsyncIterable=function(e){const t=new o.CancellationTokenSource,r=e(t.token);return new g(t,e=>n(this,void 0,void 0,(function*(){var n,o;const a=t.token.onCancellationRequested(()=>{a.dispose(),t.dispose(),e.reject(new s.CancellationError)});try{try{for(var c,l=i(r);!(c=yield l.next()).done;){const r=c.value;if(t.token.isCancellationRequested)return;e.emitOne(r)}}catch(e){n={error:e}}finally{try{c&&!c.done&&(o=l.return)&&(yield o.call(l))}finally{if(n)throw n.error}}a.dispose(),t.dispose()}catch(r){a.dispose(),t.dispose(),e.reject(r)}})))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CancellationTokenSource=t.CancellationToken=void 0;const n=r(61),i=Object.freeze((function(e,t){const r=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(r)}}}));var o;!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||(t instanceof s||!(!t||"object"!=typeof t)&&("boolean"==typeof t.isCancellationRequested&&"function"==typeof t.onCancellationRequested))},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:n.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:i})}(o=t.CancellationToken||(t.CancellationToken={}));class s{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?i:(this._emitter||(this._emitter=new n.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}t.CancellationTokenSource=class{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new s),this._token}cancel(){this._token?this._token instanceof s&&this._token.cancel():this._token=o.Cancelled}dispose(e=!1){var t;e&&this.cancel(),null===(t=this._parentListener)||void 0===t||t.dispose(),this._token?this._token instanceof s&&this._token.dispose():this._token=o.None}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasDriveLetter=t.isWindowsDriveLetter=t.isEqualOrParent=t.getRoot=t.toPosixPath=t.toSlashes=t.isPathSeparator=void 0;const n=r(71),i=r(31),o=r(127);function s(e){return 47===e||92===e}function a(e){return e.replace(/[\\/]/g,n.posix.sep)}function c(e){return e>=65&&e<=90||e>=97&&e<=122}t.isPathSeparator=s,t.toSlashes=a,t.toPosixPath=function(e){return-1===e.indexOf("/")&&(e=a(e)),/^[a-zA-Z]:(\/|$)/.test(e)&&(e="/"+e),e},t.getRoot=function(e,t=n.posix.sep){if(!e)return"";const r=e.length,i=e.charCodeAt(0);if(s(i)){if(s(e.charCodeAt(1))&&!s(e.charCodeAt(2))){let n=3;const i=n;for(;n<r&&!s(e.charCodeAt(n));n++);if(i!==n&&!s(e.charCodeAt(n+1)))for(n+=1;n<r;n++)if(s(e.charCodeAt(n)))return e.slice(0,n+1).replace(/[\\/]/g,t)}return t}if(c(i)&&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<r;o++)if(s(e.charCodeAt(o)))return e.slice(0,o+1);return""},t.isEqualOrParent=function(e,t,r,i=n.sep){if(e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(r){if(!(0,o.startsWithIgnoreCase)(e,t))return!1;if(t.length===e.length)return!0;let r=t.length;return t.charAt(t.length-1)===i&&r--,e.charAt(r)===i}return t.charAt(t.length-1)!==i&&(t+=i),0===e.indexOf(t)},t.isWindowsDriveLetter=c,t.hasDriveLetter=function(e,t=i.isWindows){return!!t&&(c(e.charCodeAt(0))&&58===e.charCodeAt(1))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CachedFunction=t.LRUCachedFunction=void 0;t.LRUCachedFunction=class{constructor(e){this.fn=e,this.lastCache=void 0,this.lastArgKey=void 0}get(e){const t=JSON.stringify(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this.fn(e)),this.lastCache}};t.CachedFunction=class{constructor(e){this.fn=e,this._map=new Map}get cachedValues(){return this._map}get(e){if(this._map.has(e))return this._map.get(e);const t=this.fn(e);return this._map.set(e,t),t}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Lazy=void 0;class n{constructor(e){this.executor=e,this._didRun=!1}hasValue(){return this._didRun}getValue(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}map(e){return new n(()=>e(this.getValue()))}}t.Lazy=n},function(e,t,r){"use strict";var n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.LRUCache=t.LinkedMap=t.Touch=t.ResourceMap=t.TernarySearchTree=t.UriIterator=t.PathIterator=t.ConfigKeysIterator=t.StringIterator=void 0;const o=r(250),s=r(127);class a{constructor(){this._value="",this._pos=0}reset(e){return this._value=e,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos<this._value.length-1}cmp(e){return e.charCodeAt(0)-this._value.charCodeAt(this._pos)}value(){return this._value[this._pos]}}t.StringIterator=a;class c{constructor(e=!0){this._caseSensitive=e}reset(e){return this._value=e,this._from=0,this._to=0,this.next()}hasNext(){return this._to<this._value.length}next(){this._from=this._to;let e=!0;for(;this._to<this._value.length;this._to++){if(46===this._value.charCodeAt(this._to)){if(!e)break;this._from++}else e=!1}return this}cmp(e){return this._caseSensitive?(0,s.compareSubstring)(e,this._value,0,e.length,this._from,this._to):(0,s.compareSubstringIgnoreCase)(e,this._value,0,e.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}t.ConfigKeysIterator=c;class l{constructor(e=!0,t=!0){this._splitOnBackslash=e,this._caseSensitive=t}reset(e){this._from=0,this._to=0,this._value=e,this._valueLen=e.length;for(let t=e.length-1;t>=0;t--,this._valueLen--){const e=this._value.charCodeAt(t);if(!(47===e||this._splitOnBackslash&&92===e))break}return this.next()}hasNext(){return this._to<this._valueLen}next(){this._from=this._to;let e=!0;for(;this._to<this._valueLen;this._to++){const t=this._value.charCodeAt(this._to);if(47===t||this._splitOnBackslash&&92===t){if(!e)break;this._from++}else e=!1}return this}cmp(e){return this._caseSensitive?(0,s.compareSubstring)(e,this._value,0,e.length,this._from,this._to):(0,s.compareSubstringIgnoreCase)(e,this._value,0,e.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}var u,d;t.PathIterator=l,function(e){e[e.Scheme=1]="Scheme",e[e.Authority=2]="Authority",e[e.Path=3]="Path",e[e.Query=4]="Query",e[e.Fragment=5]="Fragment"}(u||(u={}));class h{constructor(e,t){this._ignorePathCasing=e,this._ignoreQueryAndFragment=t,this._states=[],this._stateIdx=0}reset(e){return this._value=e,this._states=[],this._value.scheme&&this._states.push(1),this._value.authority&&this._states.push(2),this._value.path&&(this._pathIterator=new l(!1,!this._ignorePathCasing(e)),this._pathIterator.reset(e.path),this._pathIterator.value()&&this._states.push(3)),this._ignoreQueryAndFragment(e)||(this._value.query&&this._states.push(4),this._value.fragment&&this._states.push(5)),this._stateIdx=0,this}next(){return 3===this._states[this._stateIdx]&&this._pathIterator.hasNext()?this._pathIterator.next():this._stateIdx+=1,this}hasNext(){return 3===this._states[this._stateIdx]&&this._pathIterator.hasNext()||this._stateIdx<this._states.length-1}cmp(e){if(1===this._states[this._stateIdx])return(0,s.compareIgnoreCase)(e,this._value.scheme);if(2===this._states[this._stateIdx])return(0,s.compareIgnoreCase)(e,this._value.authority);if(3===this._states[this._stateIdx])return this._pathIterator.cmp(e);if(4===this._states[this._stateIdx])return(0,s.compare)(e,this._value.query);if(5===this._states[this._stateIdx])return(0,s.compare)(e,this._value.fragment);throw new Error}value(){if(1===this._states[this._stateIdx])return this._value.scheme;if(2===this._states[this._stateIdx])return this._value.authority;if(3===this._states[this._stateIdx])return this._pathIterator.value();if(4===this._states[this._stateIdx])return this._value.query;if(5===this._states[this._stateIdx])return this._value.fragment;throw new Error}}t.UriIterator=h;class f{constructor(){this.height=1}isEmpty(){return!(this.left||this.mid||this.right||this.value)}rotateLeft(){const e=this.right;return this.right=e.left,e.left=this,this.updateHeight(),e.updateHeight(),e}rotateRight(){const e=this.left;return this.left=e.right,e.right=this,this.updateHeight(),e.updateHeight(),e}updateHeight(){this.height=1+Math.max(this.heightLeft,this.heightRight)}balanceFactor(){return this.heightRight-this.heightLeft}get heightLeft(){var e,t;return null!==(t=null===(e=this.left)||void 0===e?void 0:e.height)&&void 0!==t?t:0}get heightRight(){var e,t;return null!==(t=null===(e=this.right)||void 0===e?void 0:e.height)&&void 0!==t?t:0}}!function(e){e[e.Left=-1]="Left",e[e.Mid=0]="Mid",e[e.Right=1]="Right"}(d||(d={}));class p{constructor(e){this._iter=e}static forUris(e=(()=>!1),t=(()=>!1)){return new p(new h(e,t))}static forPaths(e=!1){return new p(new l(void 0,!e))}static forStrings(){return new p(new a)}static forConfigKeys(){return new p(new c)}clear(){this._root=void 0}fill(e,t){if(t){const r=t.slice(0);(0,o.shuffle)(r);for(const t of r)this.set(t,e)}else{const t=e.slice(0);(0,o.shuffle)(t);for(const e of t)this.set(e[0],e[1])}}set(e,t){const r=this._iter.reset(e);let n;this._root||(this._root=new f,this._root.segment=r.value());const i=[];for(n=this._root;;){const e=r.cmp(n.segment);if(e>0)n.left||(n.left=new f,n.left.segment=r.value()),i.push([-1,n]),n=n.left;else if(e<0)n.right||(n.right=new f,n.right.segment=r.value()),i.push([1,n]),n=n.right;else{if(!r.hasNext())break;r.next(),n.mid||(n.mid=new f,n.mid.segment=r.value()),i.push([0,n]),n=n.mid}}const o=n.value;n.value=t,n.key=e;for(let e=i.length-1;e>=0;e--){const t=i[e][1];t.updateHeight();const r=t.balanceFactor();if(r<-1||r>1){const r=i[e][0],n=i[e+1][0];if(1===r&&1===n)i[e][1]=t.rotateLeft();else if(-1===r&&-1===n)i[e][1]=t.rotateRight();else if(1===r&&-1===n)t.right=i[e+1][1]=i[e+1][1].rotateRight(),i[e][1]=t.rotateLeft();else{if(-1!==r||1!==n)throw new Error;t.left=i[e+1][1]=i[e+1][1].rotateLeft(),i[e][1]=t.rotateRight()}if(e>0)switch(i[e-1][0]){case-1:i[e-1][1].left=i[e][1];break;case 1:i[e-1][1].right=i[e][1];break;case 0:i[e-1][1].mid=i[e][1]}else this._root=i[0][1]}}return o}get(e){var t;return null===(t=this._getNode(e))||void 0===t?void 0:t.value}_getNode(e){const t=this._iter.reset(e);let r=this._root;for(;r;){const e=t.cmp(r.segment);if(e>0)r=r.left;else if(e<0)r=r.right;else{if(!t.hasNext())break;t.next(),r=r.mid}}return r}has(e){const t=this._getNode(e);return!(void 0===(null==t?void 0:t.value)&&void 0===(null==t?void 0:t.mid))}delete(e){return this._delete(e,!1)}deleteSuperstr(e){return this._delete(e,!0)}_delete(e,t){var r;const n=this._iter.reset(e),i=[];let o=this._root;for(;o;){const e=n.cmp(o.segment);if(e>0)i.push([-1,o]),o=o.left;else if(e<0)i.push([1,o]),o=o.right;else{if(!n.hasNext())break;n.next(),i.push([0,o]),o=o.mid}}if(o){if(t?(o.left=void 0,o.mid=void 0,o.right=void 0,o.height=1):(o.key=void 0,o.value=void 0),!o.mid&&!o.value)if(o.left&&o.right){const e=this._min(o.right),{key:t,value:r,segment:n}=e;this._delete(e.key,!1),o.key=t,o.value=r,o.segment=n}else{const e=null!==(r=o.left)&&void 0!==r?r:o.right;if(i.length>0){const[t,r]=i[i.length-1];switch(t){case-1:r.left=e;break;case 0:r.mid=e;break;case 1:r.right=e}}else this._root=e}for(let e=i.length-1;e>=0;e--){const t=i[e][1];t.updateHeight();const r=t.balanceFactor();if(r>1?(t.right.balanceFactor()>=0||(t.right=t.right.rotateRight()),i[e][1]=t.rotateLeft()):r<-1&&(t.left.balanceFactor()<=0||(t.left=t.left.rotateLeft()),i[e][1]=t.rotateRight()),e>0)switch(i[e-1][0]){case-1:i[e-1][1].left=i[e][1];break;case 1:i[e-1][1].right=i[e][1];break;case 0:i[e-1][1].mid=i[e][1]}else this._root=i[0][1]}}}_min(e){for(;e.left;)e=e.left;return e}findSubstr(e){const t=this._iter.reset(e);let r=this._root,n=void 0;for(;r;){const e=t.cmp(r.segment);if(e>0)r=r.left;else if(e<0)r=r.right;else{if(!t.hasNext())break;t.next(),n=r.value||n,r=r.mid}}return r&&r.value||n}findSuperstr(e){const t=this._iter.reset(e);let r=this._root;for(;r;){const e=t.cmp(r.segment);if(e>0)r=r.left;else if(e<0)r=r.right;else{if(!t.hasNext())return r.mid?this._entries(r.mid):void 0;t.next(),r=r.mid}}}forEach(e){for(const[t,r]of this)e(r,t)}*[Symbol.iterator](){yield*this._entries(this._root)}_entries(e){const t=[];return this._dfsEntries(e,t),t[Symbol.iterator]()}_dfsEntries(e,t){e&&(e.left&&this._dfsEntries(e.left,t),e.value&&t.push([e.key,e.value]),e.mid&&this._dfsEntries(e.mid,t),e.right&&this._dfsEntries(e.right,t))}_isBalanced(){const e=t=>{if(!t)return!0;const r=t.balanceFactor();return!(r<-1||r>1)&&(e(t.left)&&e(t.right))};return e(this._root)}}t.TernarySearchTree=p;class g{constructor(e,t){this.uri=e,this.value=t}}class m{constructor(e,t){this[n]="ResourceMap",e instanceof m?(this.map=new Map(e.map),this.toKey=null!=t?t:m.defaultToKey):(this.map=new Map,this.toKey=null!=e?e:m.defaultToKey)}set(e,t){return this.map.set(this.toKey(e),new g(e,t)),this}get(e){var t;return null===(t=this.map.get(this.toKey(e)))||void 0===t?void 0:t.value}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,t){void 0!==t&&(e=e.bind(t));for(const[t,r]of this.map)e(r.value,r.uri,this)}*values(){for(const e of this.map.values())yield e.value}*keys(){for(const e of this.map.values())yield e.uri}*entries(){for(const e of this.map.values())yield[e.uri,e.value]}*[(n=Symbol.toStringTag,Symbol.iterator)](){for(const[,e]of this.map)yield[e.uri,e.value]}}t.ResourceMap=m,m.defaultToKey=e=>e.toString(),function(e){e[e.None=0]="None",e[e.AsOld=1]="AsOld",e[e.AsNew=2]="AsNew"}(t.Touch||(t.Touch={}));class b{constructor(){this[i]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var e;return null===(e=this._head)||void 0===e?void 0:e.value}get last(){var e;return null===(e=this._tail)||void 0===e?void 0:e.value}has(e){return this._map.has(e)}get(e,t=0){const r=this._map.get(e);if(r)return 0!==t&&this.touch(r,t),r.value}set(e,t,r=0){let n=this._map.get(e);if(n)n.value=t,0!==r&&this.touch(n,r);else{switch(n={key:e,value:t,next:void 0,previous:void 0},r){case 0:this.addItemLast(n);break;case 1:this.addItemFirst(n);break;case 2:default:this.addItemLast(n)}this._map.set(e,n),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const r=this._state;let n=this._head;for(;n;){if(t?e.bind(t)(n.value,n.key,this):e(n.value,n.key,this),this._state!==r)throw new Error("LinkedMap got modified during iteration.");n=n.next}}keys(){const e=this,t=this._state;let r=this._head;const n={[Symbol.iterator]:()=>n,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(r){const e={value:r.key,done:!1};return r=r.next,e}return{value:void 0,done:!0}}};return n}values(){const e=this,t=this._state;let r=this._head;const n={[Symbol.iterator]:()=>n,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(r){const e={value:r.value,done:!1};return r=r.next,e}return{value:void 0,done:!0}}};return n}entries(){const e=this,t=this._state;let r=this._head;const n={[Symbol.iterator]:()=>n,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(r){const e={value:[r.key,r.value],done:!1};return r=r.next,e}return{value:void 0,done:!0}}};return n}[(i=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,r=this.size;for(;t&&r>e;)this._map.delete(t.key),t=t.next,r--;this._head=t,this._size=r,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,r=e.previous;if(!t||!r)throw new Error("Invalid list");t.previous=r,r.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;const t=e.next,r=e.previous;e===this._tail?(r.next=void 0,this._tail=r):(t.previous=r,r.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(2===t){if(e===this._tail)return;const t=e.next,r=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=r,r.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){const e=[];return this.forEach((t,r)=>{e.push([r,t])}),e}fromJSON(e){this.clear();for(const[t,r]of e)this.set(t,r)}}t.LinkedMap=b;t.LRUCache=class extends b{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,t=2){return super.get(e,t)}peek(e){return super.get(e,0)}set(e,t){return super.set(e,t,2),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CommentThreadCollapsibleState=t.CommentMode=void 0;const n=r(125);Object.defineProperty(t,"CommentMode",{enumerable:!0,get:function(){return n.CommentMode}}),Object.defineProperty(t,"CommentThreadCollapsibleState",{enumerable:!0,get:function(){return n.CommentThreadCollapsibleState}})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TestItemRootImpl=t.TestItemImpl=t.MixedTestItemController=t.InvalidTestItemError=t.DuplicateTestItemError=t.diffTestItems=t.getPrivateApiFor=t.createPrivateApiFor=void 0;const n=new WeakMap;t.createPrivateApiFor=(e,t)=>{const r={controllerId:t};return n.set(e,r),r};t.getPrivateApiFor=e=>n.get(e);const i=(e,t,r,n)=>{let i=r;return{enumerable:!0,configurable:!1,get:()=>i,set(r){var o;if(!n(i,r)){const n=i;i=r,null===(o=e.listener)||void 0===o||o.call(e,{op:3,key:t,value:r,previous:n})}}}},o=(e,t)=>e===t,s={range:(e,t)=>e===t||!(!e||!t)&&e.isEqual(t),label:o,description:o,sortText:o,busy:o,error:o,canResolveChildren:o,tags:(e,t)=>e.length===t.length&&!e.some(e=>!t.find(t=>e.id===t.id))},a=Object.keys(s);t.diffTestItems=(e,t)=>{const r=new Map;for(const n of a){(0,s[n])(e[n],t[n])||r.set(n,t[n])}return r};class c extends Error{constructor(e){super("Attempted to insert a duplicate test item ID "+e)}}t.DuplicateTestItemError=c;class l extends Error{constructor(e){super(`TestItem with ID "${e}" is invalid. Make sure to create it from the createTestItem method.`)}}t.InvalidTestItemError=l;class u extends Error{constructor(e,t,r){super(`TestItem with ID "${e}" is from controller "${t}" and cannot be added as a child of an item from controller "${r}".`)}}t.MixedTestItemController=u;const d=e=>{const r=(0,t.getPrivateApiFor)(e);let n=new Map;return{get size(){return n.size},forEach(e,t){for(const r of n.values())e.call(t,r,this)},replace(e){var i;const o=new Map,s=new Set(n.keys()),a={op:4,ops:[]};for(const n of e){if(!(n instanceof h))throw new l(n.id);const e=(0,t.getPrivateApiFor)(n).controllerId;if(e!==r.controllerId)throw new u(n.id,e,r.controllerId);if(o.has(n.id))throw new c(n.id);o.set(n.id,n),s.delete(n.id),a.ops.push({op:0,item:n})}for(const e of s.keys())a.ops.push({op:1,id:e});null===(i=r.listener)||void 0===i||i.call(r,a),n=o},add(e){var t;if(!(e instanceof h))throw new l(e.id);n.set(e.id,e),null===(t=r.listener)||void 0===t||t.call(r,{op:0,item:e})},delete(e){var t;n.delete(e)&&(null===(t=r.listener)||void 0===t||t.call(r,{op:1,id:e}))},get:e=>n.get(e),toJSON:()=>Array.from(n.values()),[Symbol.iterator]:()=>n.values()}};class h{constructor(e,r,n,o){if(r.includes("\0"))throw new Error(`Test IDs may not include the ${JSON.stringify(r)} symbol`);const a=(0,t.createPrivateApiFor)(this,e);Object.defineProperties(this,Object.assign({id:{value:r,enumerable:!0,writable:!1},uri:{value:o,enumerable:!0,writable:!1},parent:{enumerable:!1,get:()=>a.parent instanceof f?void 0:a.parent},children:{value:d(this),enumerable:!0,writable:!1}},((e,t)=>({range:i(e,"range",void 0,s.range),label:i(e,"label",t,s.label),description:i(e,"description",void 0,s.description),sortText:i(e,"sortText",void 0,s.sortText),canResolveChildren:i(e,"canResolveChildren",!1,s.canResolveChildren),busy:i(e,"busy",!1,s.busy),error:i(e,"error",void 0,s.error),tags:i(e,"tags",[],s.tags)}))(a,n)))}invalidateResults(){var e,r;null===(r=(e=(0,t.getPrivateApiFor)(this)).listener)||void 0===r||r.call(e,{op:2})}}t.TestItemImpl=h;class f extends h{constructor(e,t){super(e,e,t,void 0)}}t.TestItemRootImpl=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.newCommands=t.ApiCommand=t.ApiCommandResult=t.ApiCommandArgument=void 0;const n=r(1),i=r(0),o=n.__importStar(r(5)),s=n.__importStar(r(4)),a=n.__importStar(r(126)),{isFalsyOrEmpty:c}=i.arrays;class l{constructor(e,t,r,n){this.name=e,this.description=t,this.validate=r,this.convert=n}optional(){return new l(this.name,"(optional) "+this.description,e=>null==e||this.validate(e),e=>void 0===e?void 0:null===e?null:this.convert(e))}with(e,t){return new l(null!=e?e:this.name,null!=t?t:this.description,this.validate,this.convert)}}t.ApiCommandArgument=l,l.Uri=new l("uri","Uri of a text document",e=>i.Uri.isUri(e),e=>e),l.Position=new l("position","A position in a text document",e=>s.Position.isPosition(e),o.fromPosition),l.Range=new l("range","A range in a text document",e=>s.Range.isRange(e),o.fromRange),l.Selection=new l("selection","A selection in a text document",e=>s.Selection.isSelection(e),o.fromSelection),l.Number=new l("number","",e=>"number"==typeof e,e=>e),l.String=new l("string","",e=>"string"==typeof e,e=>e),l.CallHierarchyItem=new l("item","A call hierarchy item",e=>e instanceof s.CallHierarchyItem,o.CallHierarchyItem.to),l.TypeHierarchyItem=new l("item","A type hierarchy item",e=>e instanceof s.TypeHierarchyItem,o.TypeHierarchyItem.to);class u{constructor(e,t){this.description=e,this.convert=t}}t.ApiCommandResult=u,u.Void=new u("no result",e=>e);class d{constructor(e,t,r,n,i){this.id=e,this.internalId=t,this.description=r,this.args=n,this.result=i}}function h(e){return t=>{if(Array.isArray(t))return t.map(e)}}function f(e){if(!Array.isArray(e))return;const t=[];for(const r of e)a.isLocationLink(r)?t.push(o.DefinitionLink.to(r)):t.push(o.location.to(r));return t}t.ApiCommand=d,t.newCommands=[new d("vscode.executeDocumentHighlights","_executeDocumentHighlights","Execute document highlight provider.",[l.Uri,l.Position],new u("A promise that resolves to an array of SymbolInformation and DocumentSymbol instances.",h(o.DocumentHighlight.to))),new d("vscode.executeDocumentSymbolProvider","_executeDocumentSymbolProvider","Execute document symbol provider.",[l.Uri],new u("A promise that resolves to an array of DocumentHighlight-instances.",(e,t)=>{if(!c(e)){class r extends s.SymbolInformation{static to(e){const n=new r(e.name,o.SymbolKind.toSymbolKind(e.kind),e.containerName||"",new s.Location(t[0],o.toRange(e.range)));return n.detail=e.detail,n.range=n.location.range,n.selectionRange=o.toRange(e.selectionRange),n.children=e.children?e.children.map(r.to):[],n}}return e.map(r.to)}})),new d("vscode.executeFormatDocumentProvider","_executeFormatDocumentProvider","Execute document format provider.",[l.Uri,new l("options","Formatting options",e=>!0,e=>e)],new u("A promise that resolves to an array of TextEdits.",h(o.TextEdit.to))),new d("vscode.executeFormatRangeProvider","_executeFormatRangeProvider","Execute range format provider.",[l.Uri,l.Range,new l("options","Formatting options",e=>!0,e=>e)],new u("A promise that resolves to an array of TextEdits.",h(o.TextEdit.to))),new d("vscode.executeFormatOnTypeProvider","_executeFormatOnTypeProvider","Execute format on type provider.",[l.Uri,l.Position,new l("ch","Trigger character",e=>"string"==typeof e,e=>e),new l("options","Formatting options",e=>!0,e=>e)],new u("A promise that resolves to an array of TextEdits.",h(o.TextEdit.to))),new d("vscode.executeDefinitionProvider","_executeDefinitionProvider","Execute all definition providers.",[l.Uri,l.Position],new u("A promise that resolves to an array of Location or LocationLink instances.",f)),new d("vscode.executeTypeDefinitionProvider","_executeTypeDefinitionProvider","Execute all type definition providers.",[l.Uri,l.Position],new u("A promise that resolves to an array of Location or LocationLink instances.",f)),new d("vscode.executeDeclarationProvider","_executeDeclarationProvider","Execute all declaration providers.",[l.Uri,l.Position],new u("A promise that resolves to an array of Location or LocationLink instances.",f)),new d("vscode.executeImplementationProvider","_executeImplementationProvider","Execute all implementation providers.",[l.Uri,l.Position],new u("A promise that resolves to an array of Location or LocationLink instances.",f)),new d("vscode.executeReferenceProvider","_executeReferenceProvider","Execute all reference providers.",[l.Uri,l.Position],new u("A promise that resolves to an array of Location-instances.",h(o.location.to))),new d("vscode.executeHoverProvider","_executeHoverProvider","Execute all hover providers.",[l.Uri,l.Position],new u("A promise that resolves to an array of Hover-instances.",h(o.Hover.to))),new d("vscode.executeSelectionRangeProvider","_executeSelectionRangeProvider","Execute selection range provider.",[l.Uri,new l("position","A positions in a text document",e=>Array.isArray(e)&&e.every(e=>s.Position.isPosition(e)),e=>e.map(o.Position.from))],new u("A promise that resolves to an array of ranges.",e=>e.map(e=>{let t;for(const r of e.reverse())t=new s.SelectionRange(o.Range.to(r),t);return t}))),new d("vscode.executeWorkspaceSymbolProvider","_executeWorkspaceSymbolProvider","Execute all workspace symbol providers.",[l.String.with("query","Search string")],new u("A promise that resolves to an array of SymbolInformation-instances.",e=>{const t=[];if(Array.isArray(e))for(const r of e)t.push(...r[1].map(o.WorkspaceSymbol.to));return t})),new d("vscode.prepareCallHierarchy","_executePrepareCallHierarchy","Prepare call hierarchy at a position inside a document",[l.Uri,l.Position],new u("A CallHierarchyItem or undefined",e=>e.map(o.CallHierarchyItem.to))),new d("vscode.provideIncomingCalls","_executeProvideIncomingCalls","Compute incoming calls for an item",[l.CallHierarchyItem],new u("A CallHierarchyItem or undefined",e=>e.map(o.CallHierarchyIncomingCall.to))),new d("vscode.provideOutgoingCalls","_executeProvideOutgoingCalls","Compute outgoing calls for an item",[l.CallHierarchyItem],new u("A CallHierarchyItem or undefined",e=>e.map(o.CallHierarchyOutgoingCall.to))),new d("vscode.prepareTypeHierarchy","_executePrepareTypeHierarchy","Prepare type hierarchy at a position inside a document",[l.Uri,l.Position],new u("A TypeHierarchyItem or undefined",e=>e.map(o.TypeHierarchyItem.to))),new d("vscode.provideSupertypes","_executeProvideSupertypes","Compute supertypes for an item",[l.TypeHierarchyItem],new u("A TypeHierarchyItem or undefined",e=>e.map(o.TypeHierarchyItem.to))),new d("vscode.provideSubtypes","_executeProvideSubtypes","Compute subtypes for an item",[l.TypeHierarchyItem],new u("A TypeHierarchyItem or undefined",e=>e.map(o.TypeHierarchyItem.to))),new d("vscode.executeDocumentRenameProvider","_executeDocumentRenameProvider","Execute rename provider.",[l.Uri,l.Position,l.String.with("newName","The new symbol name")],new u("A promise that resolves to a WorkspaceEdit.",e=>{if(e){if(e.rejectReason)throw new Error(e.rejectReason);return o.WorkspaceEdit.to(e)}})),new d("vscode.executeLinkProvider","_executeLinkProvider","Execute document link provider.",[l.Uri,l.Number.with("linkResolveCount","Number of links that should be resolved, only when links are unresolved.").optional()],new u("A promise that resolves to an array of DocumentLink-instances.",e=>e.map(o.DocumentLink.to))),new d("vscode.executeCompletionItemProvider","_executeCompletionItemProvider","Execute completion item provider.",[l.Uri,l.Position,l.String.with("triggerCharacter","Trigger completion when the user types the character, like `,` or `(`").optional(),l.Number.with("itemResolveCount","Number of completions to resolve (too large numbers slow down completions)").optional()],new u("A promise that resolves to a CompletionList-instance.",(e,t,r)=>{if(!e)return new s.CompletionList([]);const n=e.suggestions.map(e=>o.CompletionItem.to(e,r));return new s.CompletionList(n,e.incomplete)})),new d("vscode.executeSignatureHelpProvider","_executeSignatureHelpProvider","Execute signature help provider.",[l.Uri,l.Position,l.String.with("triggerCharacter","Trigger signature help when the user types the character, like `,` or `(`").optional()],new u("A promise that resolves to SignatureHelp.",e=>{if(e)return o.SignatureHelp.to(e)})),new d("vscode.executeCodeLensProvider","_executeCodeLensProvider","Execute code lens provider.",[l.Uri,l.Number.with("itemResolveCount","Number of lenses that should be resolved and returned. Will only return resolved lenses, will impact performance)").optional()],new u("A promise that resolves to an array of CodeLens-instances.",(e,t,r)=>h(e=>new s.CodeLens(o.Range.to(e.range),e.command&&r.fromInternal(e.command)))(e))),new d("vscode.executeCodeActionProvider","_executeCodeActionProvider","Execute code action provider.",[l.Uri,new l("rangeOrSelection","Range in a text document. Some refactoring provider requires Selection object.",e=>s.Range.isRange(e),e=>s.Selection.isSelection(e)?o.Selection.from(e):o.Range.from(e)),l.String.with("kind","Code action kind to return code actions for").optional(),l.Number.with("itemResolveCount","Number of code actions to resolve (too large numbers slow down code actions)").optional()],new u("A promise that resolves to an array of Command-instances.",(e,t,r)=>h(e=>{if(e._isSynthetic){if(!e.command)throw new Error("Synthetic code actions must have a command");return r.fromInternal(e.command)}{const t=new s.CodeAction(e.title,e.kind?new s.CodeActionKind(e.kind):void 0);return e.edit&&(t.edit=o.WorkspaceEdit.to(e.edit)),e.command&&(t.command=r.fromInternal(e.command)),t.isPreferred=e.isPreferred,t}})(e))),new d("vscode.executeDocumentColorProvider","_executeDocumentColorProvider","Execute document color provider.",[l.Uri],new u("A promise that resolves to an array of ColorInformation objects.",e=>e?e.map(e=>new s.ColorInformation(o.Range.to(e.range),o.Color.to(e.color))):[])),new d("vscode.executeColorPresentationProvider","_executeColorPresentationProvider","Execute color presentation provider.",[new l("color","The color to show and insert",e=>e instanceof s.Color,o.Color.from),new l("context","Context object with uri and range",e=>!0,e=>({uri:e.uri,range:o.Range.from(e.range)}))],new u("A promise that resolves to an array of ColorPresentation objects.",e=>e?e.map(o.ColorPresentation.to):[])),new d("vscode.open","_workbench.open","Opens the provided resource in the editor. Can be a text or binary file, or a http(s) url. If you need more control over the options for opening a text file, use vscode.window.showTextDocument instead.",[l.Uri,new l("columnOrOptions","Either the column in which to open or editor options, see vscode.TextDocumentShowOptions",e=>void 0===e||"number"==typeof e||"object"==typeof e,e=>e?"number"==typeof e?[e,void 0]:[o.ViewColumn.from(e.viewColumn),o.TextEditorOpenOptions.from(e)]:e).optional(),l.String.with("label","").optional()],u.Void),new d("vscode.openWith","_workbench.openWith","Opens the provided resource with a specific editor.",[l.Uri.with("resource","Resource to open"),l.String.with("viewId","Custom editor view id or 'default' to use VS Code's default editor"),new l("columnOrOptions","Either the column in which to open or editor options, see vscode.TextDocumentShowOptions",e=>void 0===e||"number"==typeof e||"object"==typeof e,e=>e?"number"==typeof e?[e,void 0]:[o.ViewColumn.from(e.viewColumn),o.TextEditorOpenOptions.from(e)]:e).optional()],u.Void),new d("vscode.diff","_workbench.diff","Opens the provided resources in the diff editor to compare their contents.",[l.Uri.with("left","Left-hand side resource of the diff editor"),l.Uri.with("right","Right-hand side resource of the diff editor"),l.String.with("title","Human readable title for the diff editor").optional(),new l("columnOrOptions","Either the column in which to open or editor options, see vscode.TextDocumentShowOptions",e=>void 0===e||"object"==typeof e,e=>e&&[o.ViewColumn.from(e.viewColumn),o.TextEditorOpenOptions.from(e)]).optional()],u.Void)]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createEventAPIFactory=t.ExtHostCommon=void 0;const n=r(0),i=r(56),o=r(32);t.ExtHostCommon=class{constructor(e){this.rpcProtocol=e,this.emitters=new Map,this.rpcProtocol=e,this.proxy=this.rpcProtocol.getProxy(o.MainThreadSumiAPIIdentifier.MainThreadCommon)}async $acceptEvent(e,t){if(!this.emitters.has(e))return[];return await this.emitters.get(e).fireAndAwait(t)}onEvent(e,t){this.emitters.has(e)||this.emitters.set(e,new n.Emitter),this.proxy.$subscribeEvent(e);const r=this.emitters.get(e).event(e=>t(...e));return{dispose:()=>{r.dispose(),0===this.emitters.get(e).listenerSize&&this.proxy.$unSubscribeEvent(e)}}}},t.createEventAPIFactory=function(e,t,r){return{fire:async(t,...r)=>await e.executeCommand(i.EMIT_EXT_HOST_EVENT.id,t,...r),subscribe:(e,r)=>t.onEvent(e,r)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createLayoutAPIFactory=t.ExtHostLayout=t.TabbarHandler=void 0;const n=r(0),i=r(32);class o{constructor(e,t){this.id=e,this.proxy=t,this.onActivateEmitter=new n.Emitter,this.onActivate=this.onActivateEmitter.event,this.onInActivateEmitter=new n.Emitter,this.onInActivate=this.onInActivateEmitter.event}setTitle(e){this.proxy.$setTitle(this.id,e)}setIcon(e){this.proxy.$setIcon(this.id,e)}setSize(e){this.proxy.$setSize(this.id,e)}activate(){this.proxy.$activate(this.id)}deactivate(){this.proxy.$deactivate(this.id)}setVisible(e){this.proxy.$setVisible(this.id,e)}setBadge(e){this.proxy.$setBadge(this.id,e)}isAttached(){return this.proxy.$isAttached(this.id)}}t.TabbarHandler=o;t.ExtHostLayout=class{constructor(e){this.rpcProtocol=e,this.handles=new Map,this.rpcProtocol=e,this.proxy=this.rpcProtocol.getProxy(i.MainThreadSumiAPIIdentifier.MainThreadLayout)}getTabbarHandler(e){return this.handles.has(e)||(this.proxy.$connectTabbar(e),this.handles.set(e,new o(e,this.proxy))),this.handles.get(e)}$acceptMessage(e,t){const r=this.handles.get(e);"activate"===t?r.onActivateEmitter.fire():"deactivate"===t&&r.onInActivateEmitter.fire()}},t.createLayoutAPIFactory=function(e,t,r){return{toggleBottomPanel:async t=>await e.executeCommand("main-layout.bottom-panel.toggle",void 0,t),toggleLeftPanel:async t=>await e.executeCommand("main-layout.left-panel.toggle",void 0,t),toggleRightPanel:async t=>await e.executeCommand("main-layout.right-panel.toggle",void 0,t),showRightPanel:async t=>await e.executeCommand("main-layout.right-panel.toggle",!0,t),hideRightPanel:async()=>await e.executeCommand("main-layout.right-panel.toggle",!1),activatePanel:async t=>await e.executeCommand("workbench.view.extension."+t),isBottomPanelVisible:async()=>await e.executeCommand("main-layout.bottom-panel.is-visible"),isLeftPanelVisible:async()=>await e.executeCommand("main-layout.left-panel.is-visible"),isRightPanelVisible:async()=>await e.executeCommand("main-layout.right-panel.is-visible"),getTabbarHandler:e=>t.getTabbarHandler(r.id+":"+e),getExtensionTabbarHandler:(e,r)=>r?t.getTabbarHandler(r+":"+e):t.getTabbarHandler(e)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtHostLifeCycle=t.createLifeCycleApi=void 0;const n=r(32);t.createLifeCycleApi=function(e,t){return{setExtensionDir:e=>{t.setExtensionDir(e)},setExtensionCandidate:e=>{t.setExtensionCandidate(e)}}};t.ExtHostLifeCycle=class{constructor(e){this.rpcProtocol=e,this.proxy=this.rpcProtocol.getProxy(n.MainThreadSumiAPIIdentifier.MainThreadLifecycle)}setExtensionDir(e){this.proxy.$setExtensionDir(e)}setExtensionCandidate(e){this.proxy.$setExtensionCandidate(e)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtHostTheme=t.createThemeApi=void 0;const n=r(0),i=r(32);t.createThemeApi=function(e){return{getThemeColors:async t=>e.getThemeColors(),onThemeChanged:e.onThemeChanged}};t.ExtHostTheme=class{constructor(e){this.rpcProtocol=e,this._onThemeChanged=new n.Emitter,this.onThemeChanged=this._onThemeChanged.event,this.proxy=this.rpcProtocol.getProxy(i.MainThreadSumiAPIIdentifier.MainThreadTheme)}async $notifyThemeChanged(){this._onThemeChanged.fire()}async getThemeColors(){return this.proxy.$getThemeColors()}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ToolbarDropdownButtonActionHandleController=t.ToolbarSelectActionHandleController=t.ToolbarBtnActionHandleController=t.ExtHostToolbarActionService=t.createToolbarAPIFactory=void 0;const n=r(0),i=r(32),o=r(623);t.createToolbarAPIFactory=function(e,t){return{registerToolbarAction:async r=>t.registerToolbarAction(e.id,e.path,r),getToolbarActionButtonHandle:async r=>t.getToolbarButtonActionHandle(r,e.id),getToolbarActionSelectHandle:async r=>t.getToolbarSelectActionHandle(r,e.id),getToolbarActionDropdownButtonHandle:async r=>t.getToolbarDropdownButtonActionHandle(r,e.id)}};t.ExtHostToolbarActionService=class{constructor(e,t,r){this.extHostCommands=e,this.extHostCommon=t,this.rpcProtocol=r,this.btnHandles=new Map,this.selectHandles=new Map,this.dropdownButtonHandles=new Map,this.proxy=this.rpcProtocol.getProxy(i.MainThreadSumiAPIIdentifier.MainThreadToolbar)}async registerToolbarAction(e,t,r){switch(r.type){case o.TOOLBAR_ACTION_TYPE.BUTTON:return await this.proxy.$registerToolbarButtonAction(e,t,r),this.getToolbarButtonActionHandle(r.id,e);case o.TOOLBAR_ACTION_TYPE.DROPDOWN_BUTTON:return await this.proxy.$registerDropdownButtonAction(e,t,r),this.getToolbarDropdownButtonActionHandle(r.id,e);case o.TOOLBAR_ACTION_TYPE.SELECT:default:return await this.proxy.$registerToolbarSelectAction(e,t,r),this.getToolbarSelectActionHandle(r.id,e)}}getToolbarButtonActionHandle(e,t){const r=t+"."+e;if(!this.btnHandles.has(r)){const e=new Promise(async(e,t)=>{const n=new s(r,this.extHostCommands,this.extHostCommon);try{await n.init(),e(n)}catch(e){t(e)}});this.btnHandles.set(r,e)}return this.btnHandles.get(r).then(e=>e.handle)}getToolbarSelectActionHandle(e,t){const r=t+"."+e;if(!this.selectHandles.has(r)){const e=new Promise(async(e,t)=>{const n=new a(r,this.extHostCommands,this.extHostCommon);try{await n.init(),e(n)}catch(e){t(e)}});this.selectHandles.set(r,e)}return this.selectHandles.get(r).then(e=>e.handle)}getToolbarDropdownButtonActionHandle(e,t){const r=t+"."+e;if(!this.dropdownButtonHandles.has(r)){const e=new Promise(async(e,t)=>{const n=new c(r,this.extHostCommands,this.extHostCommon);try{await n.init(),e(n)}catch(e){t(e)}});this.dropdownButtonHandles.set(r,e)}return this.dropdownButtonHandles.get(r).then(e=>e.handle)}};class s extends n.Disposable{constructor(e,t,r){super(),this.id=e,this.extHostCommands=t,this.kaitianCommon=r,this._onClick=new n.Emitter,this._onStateChange=new n.Emitter}get handle(){return this._handle||(this._handle={onClick:this._onClick.event,onStateChanged:this._onStateChange.event,setState:(e,t)=>this.extHostCommands.executeCommand(o.BUTTON_SET_STATE_ID,this.id,e,t),showPopover:async e=>this.extHostCommands.executeCommand(o.SHOW_POPOVER_ID,this.id,e),hidePopover:async()=>this.extHostCommands.executeCommand(o.HIDE_POPOVER_ID,this.id),setContext:e=>this.extHostCommands.executeCommand(o.BUTTON_SET_CONTEXT_ID,this.id,e)}),this._handle}async init(){return this.addDispose(this.kaitianCommon.onEvent(o.BUTTON_CLICK_ID,e=>{e===this.id&&this._onClick.fire()})),this.addDispose(this.kaitianCommon.onEvent(o.BUTTON_STATE_CHANGE_ID,(e,t,r)=>{e===this.id&&this._onStateChange.fire({from:t,to:r})})),this.extHostCommands.executeCommand(o.BUTTON_CONNECT_HANDLE_ID,this.id)}}t.ToolbarBtnActionHandleController=s;class a extends n.Disposable{constructor(e,t,r){super(),this.id=e,this.extHostCommands=t,this.kaitianCommon=r,this._onSelect=new n.Emitter,this._onStateChange=new n.Emitter}get handle(){return this._handle||(this._handle={onSelect:this._onSelect.event,onStateChanged:this._onStateChange.event,setState:(e,t)=>this.extHostCommands.executeCommand(o.SELECT_SET_STATE_ID,this.id,e,t),setOptions:(e,t)=>this.extHostCommands.executeCommand(o.SELECT_SET_OPTIONS,this.id,t,e),setSelect:e=>this.extHostCommands.executeCommand(o.SELECT_SET_SELECT_ID,this.id,e),getValue:()=>this._value}),this._handle}async init(){this.addDispose(this.kaitianCommon.onEvent(o.SELECT_ON_SELECT_ID,(e,t)=>{e===this.id&&this._onSelect.fire(t)})),this.addDispose(this.kaitianCommon.onEvent(o.SELECT_STATE_CHANGE_ID,(e,t,r)=>{e===this.id&&this._onStateChange.fire({from:t,to:r})})),this._value=await this.extHostCommands.executeCommand(o.SELECT_CONNECT_HANDLE_ID,this.id)}}t.ToolbarSelectActionHandleController=a;class c extends n.Disposable{constructor(e,t,r){super(),this.id=e,this._extHostCommands=t,this.extHostCommon=r,this._onSelect=new n.Emitter}get handle(){return this._handle||(this._handle={onSelect:this._onSelect.event}),this._handle}async init(){this.addDispose(this.extHostCommon.onEvent(o.DROPDOWN_BUTTON_ON_SELECT_ID,(e,t)=>{e===this.id&&this._onSelect.fire(t)}))}}t.ToolbarDropdownButtonActionHandleController=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DROPDOWN_BUTTON_ON_SELECT_ID=t.SELECT_STATE_CHANGE_ID=t.SELECT_ON_SELECT_ID=t.SELECT_CONNECT_HANDLE_ID=t.SELECT_SET_SELECT_ID=t.SELECT_SET_OPTIONS=t.SELECT_SET_STATE_ID=t.HIDE_POPOVER_ID=t.SHOW_POPOVER_ID=t.BUTTON_CLICK_ID=t.BUTTON_CONNECT_HANDLE_ID=t.BUTTON_SET_CONTEXT_ID=t.BUTTON_STATE_CHANGE_ID=t.BUTTON_SET_STATE_ID=t.TOOLBAR_ACTION_TYPE=void 0,function(e){e.BUTTON="button",e.DROPDOWN_BUTTON="dropdownButton",e.SELECT="select"}(t.TOOLBAR_ACTION_TYPE||(t.TOOLBAR_ACTION_TYPE={}));t.BUTTON_SET_STATE_ID="sumi-extension.toolbar.btn.setState",t.BUTTON_STATE_CHANGE_ID="sumi-extension.toolbar.btn.stateChange",t.BUTTON_SET_CONTEXT_ID="sumi-extension.toolbar.btn.setContext",t.BUTTON_CONNECT_HANDLE_ID="sumi-extension.toolbar.btn.connectHandle",t.BUTTON_CLICK_ID="sumi-extension.toolbar.btn.click",t.SHOW_POPOVER_ID="sumi-extension.toolbar.showPopover",t.HIDE_POPOVER_ID="sumi-extension.toolbar.hidePopover",t.SELECT_SET_STATE_ID="sumi-extension.toolbar.select.setState",t.SELECT_SET_OPTIONS="sumi-extension.toolbar.select.setOptions",t.SELECT_SET_SELECT_ID="sumi-extension.toolbar.select.setSelect",t.SELECT_CONNECT_HANDLE_ID="sumi-extension.toolbar.select.connectHandle",t.SELECT_ON_SELECT_ID="sumi-extension.toolbar.select.onSelect",t.SELECT_STATE_CHANGE_ID="sumi-extension.toolbar.select.stateChange",t.DROPDOWN_BUTTON_ON_SELECT_ID="sumi-extension.toolbar.dropdownButton.onSelect"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createWebviewApi=t.ExtHostPlainWebview=t.PlainWebviewHandle=t.ExtHostWebview=void 0;const n=r(0),i=r(7),{join:o}=n.path;t.ExtHostWebview=class{constructor(e,t="node"){this.rpcProtocol=e,this.webviewIdPrefix=t,this.handles=new Map,this._extHostPlainWebviewId=1,this.rpcProtocol=e,this._proxy=this.rpcProtocol.getProxy(i.MainThreadAPIIdentifier.MainThreadWebview)}getWebviewHandle(e){return this.handles.has(e)||(this.handles.set(e,new s(e,this._proxy)),this._proxy.$connectPlainWebview(e)),this.handles.get(e)}createPlainWebview(e,t){const r=this.webviewIdPrefix+"_webview_"+this._extHostPlainWebviewId++,n=new a(r,this._proxy,e,t);return this.handles.set(r,n),n.addDispose({dispose:()=>{this.handles.delete(r)}}),n}$acceptMessage(e,t){this.handles.has(e)&&this.handles.get(e).onMessageEmitter.fire(t)}};class s extends n.Disposable{constructor(e,t){super(),this.id=e,this.proxy=t,this.onMessageEmitter=new n.Emitter,this.onMessage=this.onMessageEmitter.event}postMessage(e){return this.proxy.$postMessageToPlainWebview(this.id,e)}async setPartition(e){await this.proxy.$setPlainWebviewPartition(this.id,e)}async loadUrl(e){this.proxy.$plainWebviewLoadUrl(this.id,e)}}t.PlainWebviewHandle=s;class a extends s{constructor(e,t,r,n){super(e,t),this._ready=this.proxy.$createPlainWebview(e,r,n),this.addDispose({dispose:()=>{this.proxy.$disposePlainWebview(e)}})}async reveal(e){await this._ready,this.proxy.$revealPlainWebview(this.id,e)}async loadUrl(e){await this._ready,this.proxy.$plainWebviewLoadUrl(this.id,e)}}t.ExtHostPlainWebview=a,t.createWebviewApi=function(e,t){return{getPlainWebviewHandle:e=>t.getWebviewHandle(e),createPlainWebview:(r,n)=>(n&&(n=o(e.realPath,n)),t.createPlainWebview(r,n))}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createWindowApiFactory=t.ExtIDEWebviewWindow=t.ExtHostIDEWindow=void 0;const n=r(0),i=r(32);t.ExtHostIDEWindow=class{constructor(e){this.rpcProtocol=e,this._windowMaps=new Map,this.proxy=this.rpcProtocol.getProxy(i.MainThreadSumiAPIIdentifier.MainThreadIDEWindow)}async createWebviewWindow(e,t,r){if(this._windowMaps.has(e)){const t=this._windowMaps.get(e);return null==t||t.show(),t}const i=await this.proxy.$createWebviewWindow(e,t,r),s=new o(e,i,this.proxy,n.Disposable.create(()=>{this._windowMaps.delete(e)}));return this._windowMaps.set(e,s),s}async $postMessage(e,t){if(this._windowMaps.has(e)){const r=this._windowMaps.get(e);null==r||r.dispatchMessage(t)}}async $dispatchClosed(e){if(this._windowMaps.has(e)){const t=this._windowMaps.get(e);null==t||t.dispatchClosed()}}};class o{constructor(e,t,r,i){this.webviewId=e,this.info=t,this.proxy=r,this._onMessageEmitter=new n.Emitter,this._onClosedEmitter=new n.Emitter,this.disposableCollection=new n.DisposableCollection,this.disposableCollection.push(i),this.disposableCollection.push(n.Disposable.create(()=>{this.proxy.$destroy(this.webviewId)}))}get webContentsId(){return this.info.webContentsId}get windowId(){return this.info.windowId}get onMessage(){return this._onMessageEmitter.event}get onClosed(){return this._onClosedEmitter.event}async show(){return await this.proxy.$show(this.webviewId)}async hide(){return await this.proxy.$hide(this.webviewId)}async postMessage(e){return await this.proxy.$postMessage(this.webviewId,e)}async loadUrl(e){return await this.proxy.$loadURL(this.webviewId,e)}async setSize(e){return await this.proxy.$setSize(this.webviewId,e)}async setAlwaysOnTop(e){return await this.proxy.$setAlwaysOnTop(this.webviewId,e)}dispose(){this.disposableCollection.dispose()}async dispatchClosed(){this._onClosedEmitter.fire()}async dispatchMessage(e){this._onMessageEmitter.fire(e)}}t.ExtIDEWebviewWindow=o,t.createWindowApiFactory=function(e,t){return{reloadWindow:async()=>await e.executeCommand("reload_window"),createWebviewWindow:async(e,r,n)=>await t.createWebviewWindow(e,r,n)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});r(1).__exportStar(r(627),t)},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.ExtensionDocumentDataManagerImpl=void 0;const n=r(0),i=r(7),o=r(5),s=r(4),a=r(628);t.ExtensionDocumentDataManagerImpl=class{constructor(e){this._documents=new Map,this._contentProviders=new Map,this._onDidOpenTextDocument=new n.Emitter,this._onDidCloseTextDocument=new n.Emitter,this._onDidChangeTextDocument=new n.Emitter,this._onWillSaveTextDocument=new n.Emitter,this._onDidSaveTextDocument=new n.Emitter,this.onDidOpenTextDocument=this._onDidOpenTextDocument.event,this.onDidCloseTextDocument=this._onDidCloseTextDocument.event,this.onDidChangeTextDocument=this._onDidChangeTextDocument.event,this.onWillSaveTextDocument=this._onWillSaveTextDocument.event,this.onDidSaveTextDocument=this._onDidSaveTextDocument.event,this.rpcProtocol=e,this._proxy=this.rpcProtocol.getProxy(i.MainThreadAPIIdentifier.MainThreadDocuments),this._workspaceProxy=this.rpcProtocol.getProxy(i.MainThreadAPIIdentifier.MainThreadWorkspace)}get allDocumentData(){return Array.from(this._documents.values())}getDocumentData(e){const t=e.toString();return this._documents.get(t)}getAllDocument(){return this.allDocumentData.map(e=>e.document)}getDocument(e){const t=this.getDocumentData(e);if(!(null==t?void 0:t.document))throw new Error(`Unable to retrieve document from URI '${e}'`);return t.document}async openTextDocument(e){let t;const r=e;if("string"==typeof e)t=s.Uri.file(e);else if(n.URI.isUri(e))t=s.Uri.parse(e.toString());else{if(r&&"object"!=typeof r)throw new Error("illegal argument - uriOrFileNameOrOptions");t=s.Uri.parse(await this._proxy.$tryCreateDocument(r))}const i=(0,n.normalizeFileUrl)(t.toString()),o=this._documents.get(i);if(o)return o.document;{await this._proxy.$tryOpenDocument(i);const e=this._documents.get(i);return e?e.document:new Promise((e,t)=>{let r=!1;setTimeout(()=>{r||t(`Open Text Document ${i} Timeout. Current Timeout is 5 seconds.`)},5e3);const n=this.onDidOpenTextDocument(t=>{i===t.uri.toString()&&(e(t),n.dispose(),r=!0)})})}}registerTextDocumentContentProvider(e,t){let r;const i=t.onDidChange;return this._contentProviders.set(e,t),i&&(r=i(async e=>{const r=new n.CancellationTokenSource,i=await t.provideTextDocumentContent(e,r.token);i&&this._proxy.$fireTextDocumentChangedEvent(e.toString(),i)})),this._proxy.$registerDocumentProviderWithScheme(e),{dispose:()=>{this._proxy.$unregisterDocumentProviderWithScheme(e),this._contentProviders.delete(e),r&&r.dispose()}}}async $provideTextDocumentContent(t,r){const i=s.Uri.parse(t),o=i.scheme,a=this._contentProviders.get(o);if(a){let t=await a.provideTextDocumentContent(i,(new n.CancellationTokenSource).token)||"";if(t&&r&&!(0,n.isUTF8)(r)){t=n.BinaryBuffer.wrap(e.from(t)).toString(r)}return t}throw new Error("new document provider for "+t)}$fireModelOptionsChangedEvent(e){const t=this._documents.get(e.uri);t&&e.languageId&&(t._acceptLanguageId(e.languageId),this._onDidCloseTextDocument.fire(t.document),this._onDidOpenTextDocument.fire(t.document))}$fireModelChangedEvent(e){const{uri:t,changes:r,versionId:n,eol:i,dirty:a,isRedoing:c,isUndoing:l}=e,u=this._documents.get(t);if(!u)return;let d;u.onEvents({eol:i,versionId:n,changes:r,isRedoing:c,isUndoing:l}),u._acceptIsDirty(a),c?d=s.TextDocumentChangeReason.Redo:l&&(d=s.TextDocumentChangeReason.Undo),this._onDidChangeTextDocument.fire({document:u.document,contentChanges:r.map(e=>Object.assign(Object.assign({},e),{range:(0,o.toRange)(e.range)})),reason:d})}$fireModelOpenedEvent(e){const{uri:t,eol:r,languageId:n,versionId:i,lines:o,dirty:c}=e,l=new a.ExtHostDocumentData(this._proxy,s.Uri.parse(t),o,r,n,i,c);this._documents.set(t,l),this._onDidOpenTextDocument.fire(l.document)}$fireModelRemovedEvent(e){const{uri:t}=e,r=this._documents.get(t.toString());r&&(this._documents.delete(t),this._onDidCloseTextDocument.fire(r.document))}$fireModelSavedEvent(e){const{uri:t}=e,r=this._documents.get(t);r&&(r._acceptIsDirty(!1),this._onDidSaveTextDocument.fire(r.document))}async $fireModelWillSaveEvent(e){const{uri:t}=e,r=this._documents.get(t);if(r){const t=[],n={document:r.document,reason:e.reason,waitUntil:e=>{t.push(this.createWaitUntil(r.document.uri,e))}};return this._onWillSaveTextDocument.fire(n),void await Promise.all(t)}throw new Error("document not found: "+t.toString())}async createWaitUntil(e,t){const r=await t;r instanceof Array&&r[0]&&r[0]instanceof s.TextEdit&&await this.applyEdit(e,r.map(o.TextEdit.from)[0])}setWordDefinitionFor(e,t){(0,a.setWordDefinitionFor)(e,t)}applyEdit(e,t){const r={edits:[{resource:e,textEdit:t,versionId:void 0}]};return this._workspaceProxy.$tryApplyWorkspaceEdit(r)}}}).call(this,r(12).Buffer)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtHostDocumentData=t.regExpLeadsToEndlessLoop=t.getWordDefinitionFor=t.setWordDefinitionFor=void 0;const n=r(0),i=r(4),o=r(629),s=r(631),a=new Map;function c(e){return a.get(e)}function l(e){if("^"===e.source||"^$"===e.source||"$"===e.source||"^\\s*$"===e.source)return!1;return!(!e.exec("")||0!==e.lastIndex)}t.setWordDefinitionFor=function(e,t){a.set(e,t)},t.getWordDefinitionFor=c,t.regExpLeadsToEndlessLoop=l;class u extends o.MirrorTextModel{constructor(e,t,r,n,i,o,s){super(t,r,n,o),this._textLines=[],this._isDisposed=!1,this._proxy=e,this._languageId=i,this._isDirty=s}dispose(){this._isDisposed=!0,this._isDirty=!1}equalLines(e){const t=e.length;if(t!==this._lines.length)return!1;for(let r=0;r<t;r++)if(e[r]!==this._lines[r])return!1;return!0}get document(){if(!this._document){const e=this;this._document={get uri(){return e._uri},get fileName(){return e._uri.fsPath},get isUntitled(){return e._uri.scheme===n.Schemes.untitled},get languageId(){return e._languageId},get version(){return e._versionId},get isClosed(){return e._isDisposed},get isDirty(){return e._isDirty},save:()=>e._save(),getText:t=>t?e._getTextInRange(t):e.getText(),get eol(){return"\n"===e._eol?i.EndOfLine.LF:i.EndOfLine.CRLF},get lineCount(){return e._lines.length},lineAt:t=>e._lineAt(t),offsetAt:t=>e._offsetAt(t),positionAt:t=>e._positionAt(t),validateRange:t=>e._validateRange(t),validatePosition:t=>e._validatePosition(t),getWordRangeAtPosition:(t,r)=>e._getWordRangeAtPosition(t,r)}}return Object.freeze(this._document)}_acceptLanguageId(e){this._languageId=e}_acceptIsDirty(e){this._isDirty=e}_save(){return this._isDisposed?Promise.reject(new Error("Document has been closed")):this._proxy.$trySaveDocument(this._uri.toString())}_getTextInRange(e){const t=this._validateRange(e);if(t.isEmpty)return"";if(t.isSingleLine)return this._lines[t.start.line].substring(t.start.character,t.end.character);const r=this._eol,n=t.start.line,i=t.end.line,o=[];o.push(this._lines[n].substring(t.start.character));for(let e=n+1;e<i;e++)o.push(this._lines[e]);return o.push(this._lines[i].substring(0,t.end.character)),o.join(r)}_lineAt(e){let t;if(e instanceof i.Position?t=e.line:"number"==typeof e&&(t=e),"number"!=typeof t||t<0||t>=this._lines.length)throw new Error("Illegal value for `line`");let r=this._textLines[t];if(!r||r.lineNumber!==t||r.text!==this._lines[t]){const e=this._lines[t],n=/^(\s*)/.exec(e)[1].length,o=new i.Range(t,0,t,e.length),s=t<this._lines.length-1?new i.Range(t,0,t+1,0):o;r=Object.freeze({lineNumber:t,range:o,rangeIncludingLineBreak:s,text:e,firstNonWhitespaceCharacterIndex:n,isEmptyOrWhitespace:n===e.length}),this._textLines[t]=r}return r}_offsetAt(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getAccumulatedValue(e.line-1)+e.character}_positionAt(e){e=Math.floor(e),e=Math.max(0,e),this._ensureLineStarts();const t=this._lineStarts.getIndexOf(e),r=this._lines[t.index].length;return new i.Position(t.index,Math.min(t.remainder,r))}_validateRange(e){if(!(e instanceof i.Range))throw new Error("Invalid argument");const t=this._validatePosition(e.start),r=this._validatePosition(e.end);return t===e.start&&r===e.end?e:new i.Range(t.line,t.character,r.line,r.character)}_validatePosition(e){if(!(e instanceof i.Position))throw new Error("Invalid argument");let{line:t,character:r}=e,n=!1;if(t<0)t=0,r=0,n=!0;else if(t>=this._lines.length)t=this._lines.length-1,r=this._lines[t].length,n=!0;else{const e=this._lines[t].length;r<0?(r=0,n=!0):r>e&&(r=e,n=!0)}return n?new i.Position(t,r):e}_getWordRangeAtPosition(e,t){const r=this._validatePosition(e);t?l(t)&&(console.warn(`[getWordRangeAtPosition]: ignoring custom regexp '${t.source}' because it matches the empty string.`),t=c(this._languageId)):t=c(this._languageId);const n=(0,s.getWordAtText)(r.character+1,(0,s.ensureValidWordDefinition)(t),this._lines[r.line],0);if(n)return new i.Range(r.line,n.startColumn-1,r.line,n.endColumn-1)}}t.ExtHostDocumentData=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MirrorTextModel=void 0;const n=r(0),i=r(4),o=r(630);t.MirrorTextModel=class{constructor(e,t,r,n){this._uri=i.Uri.parse(e.toString()),this._lines=t,this._eol=r,this._versionId=n,this._lineStarts=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._lines.join(this._eol)}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const t=e.changes;for(const e of t)this._acceptDeleteRange(e.range),this._acceptInsertText(new n.Position(e.range.startLineNumber,e.range.startColumn),e.text);this._versionId=e.versionId}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,t=this._lines.length,r=new Uint32Array(t);for(let n=0;n<t;n++)r[n]=this._lines[n].length+e;this._lineStarts=new o.PrefixSumComputer(r)}}_setLineText(e,t){this._lines[e]=t,this._lineStarts&&this._lineStarts.changeValue(e,this._lines[e].length+this._eol.length)}_acceptDeleteRange(e){if(e.startLineNumber!==e.endLineNumber)this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.endLineNumber-1].substring(e.endColumn-1)),this._lines.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(e.startLineNumber,e.endLineNumber-e.startLineNumber);else{if(e.startColumn===e.endColumn)return;this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1))}}_acceptInsertText(e,t){if(0===t.length)return;const r=t.split(/\r\n|\r|\n/);if(1===r.length)return void this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+r[0]+this._lines[e.lineNumber-1].substring(e.column-1));r[r.length-1]+=this._lines[e.lineNumber-1].substring(e.column-1),this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+r[0]);const n=new Uint32Array(r.length-1);for(let t=1;t<r.length;t++)this._lines.splice(e.lineNumber+t-1,0,r[t]),n[t-1]=r[t].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,n)}}},function(e,t,r){"use strict";function n(e){return e<0?0:e>4294967295?4294967295:0|e}Object.defineProperty(t,"__esModule",{value:!0}),t.PrefixSumComputerWithCache=t.PrefixSumComputer=t.PrefixSumIndexOfResult=t.toUint32=void 0,t.toUint32=n;class i{constructor(e,t){this.index=e,this.remainder=t}}t.PrefixSumIndexOfResult=i;class o{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}getCount(){return this.values.length}insertValues(e,t){e=n(e);const r=this.values,i=this.prefixSum,o=t.length;return 0!==o&&(this.values=new Uint32Array(r.length+o),this.values.set(r.subarray(0,e),0),this.values.set(r.subarray(e),e+o),this.values.set(t,e),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}changeValue(e,t){return e=n(e),t=n(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,t){e=n(e),t=n(t);const r=this.values,i=this.prefixSum;if(e>=r.length)return!1;const o=r.length-e;return t>=o&&(t=o),0!==t&&(this.values=new Uint32Array(r.length-t),this.values.set(r.subarray(0,e),0),this.values.set(r.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalValue(){return 0===this.values.length?0:this._getAccumulatedValue(this.values.length-1)}getAccumulatedValue(e){return e<0?0:(e=n(e),this._getAccumulatedValue(e))}_getAccumulatedValue(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let r=t;r<=e;r++)this.prefixSum[r]=this.prefixSum[r-1]+this.values[r];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalValue();let t=0,r=this.values.length-1,n=0,o=0,s=0;for(;t<=r;)if(n=t+(r-t)/2|0,o=this.prefixSum[n],s=o-this.values[n],e<s)r=n-1;else{if(!(e>=o))break;t=n+1}return new i(n,e-s)}}t.PrefixSumComputer=o;t.PrefixSumComputerWithCache=class{constructor(e){this._cacheAccumulatedValueStart=0,this._cache=null,this._actual=new o(e),this._bustCache()}_bustCache(){this._cacheAccumulatedValueStart=0,this._cache=null}insertValues(e,t){this._actual.insertValues(e,t)&&this._bustCache()}changeValue(e,t){this._actual.changeValue(e,t)&&this._bustCache()}removeValues(e,t){this._actual.removeValues(e,t)&&this._bustCache()}getTotalValue(){return this._actual.getTotalValue()}getAccumulatedValue(e){return this._actual.getAccumulatedValue(e)}getIndexOf(e){if(e=Math.floor(e),null!==this._cache){const t=e-this._cacheAccumulatedValueStart;if(t>=0&&t<this._cache.length)return this._cache[t]}return this._actual.getIndexOf(e)}warmUpCache(e,t){const r=[];for(let n=e;n<=t;n++)r[n-e]=this.getIndexOf(n);this._cache=r,this._cacheAccumulatedValueStart=e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getWordAtText=t.ensureValidWordDefinition=t.DEFAULT_WORD_REGEXP=t.USUAL_WORD_SEPARATORS=void 0,t.USUAL_WORD_SEPARATORS="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?",t.DEFAULT_WORD_REGEXP=function(e=""){let r="(-?\\d*\\.\\d\\w*)|([^";for(const n of t.USUAL_WORD_SEPARATORS)e.indexOf(n)>=0||(r+="\\"+n);return r+="\\s]+)",new RegExp(r,"g")}(),t.ensureValidWordDefinition=function(e){let r=t.DEFAULT_WORD_REGEXP;if(e&&e instanceof RegExp)if(e.global)r=e;else{let t="g";e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),r=new RegExp(e.source,t)}return r.lastIndex=0,r},t.getWordAtText=function(e,t,r,n){t.lastIndex=0;const i=t.exec(r);if(!i)return null;const o=i[0].indexOf(" ")>=0?function(e,t,r,n){const i=e-1-n;let o;for(t.lastIndex=0;o=t.exec(r);){const e=o.index||0;if(e>i)return null;if(t.lastIndex>=i)return{word:o[0],startColumn:n+1+e,endColumn:n+1+t.lastIndex}}return null}(e,t,r,n):function(e,t,r,n){const i=e-1-n,o=r.lastIndexOf(" ",i-1)+1;let s;for(t.lastIndex=o;s=t.exec(r);){const e=s.index||0;if(e<=i&&t.lastIndex>=i)return{word:s[0],startColumn:n+1+e,endColumn:n+1+t.lastIndex}}return null}(e,t,r,n);return t.lastIndex=0,o}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtHostTextEditorOptions=t.toIRange=t.TextEditorData=t.ExtHostTextEditorDecorationType=t.ExtensionHostEditorService=void 0;const n=r(1),i=n.__importDefault(r(633)),o=r(0),s=r(7),a=n.__importStar(r(5)),c=r(95),l=r(4),u=r(641);t.ExtensionHostEditorService=class{constructor(e,t){this.documents=t,this._editors=new Map,this.decorationIdCount=0,this._onDidChangeActiveTextEditor=new o.Emitter,this._onDidChangeVisibleTextEditors=new o.Emitter,this._onDidChangeTextEditorSelection=new o.Emitter,this._onDidChangeTextEditorVisibleRanges=new o.Emitter,this._onDidChangeTextEditorOptions=new o.Emitter,this._onDidChangeTextEditorViewColumn=new o.Emitter,this.onDidChangeActiveTextEditor=this._onDidChangeActiveTextEditor.event,this.onDidChangeVisibleTextEditors=this._onDidChangeVisibleTextEditors.event,this.onDidChangeTextEditorSelection=this._onDidChangeTextEditorSelection.event,this.onDidChangeTextEditorVisibleRanges=this._onDidChangeTextEditorVisibleRanges.event,this.onDidChangeTextEditorOptions=this._onDidChangeTextEditorOptions.event,this.onDidChangeTextEditorViewColumn=this._onDidChangeTextEditorViewColumn.event,this._onEditorCreated=new o.Emitter,this.onEditorCreated=this._onEditorCreated.event,this._proxy=e.getProxy(s.MainThreadAPIIdentifier.MainThreadEditors)}$acceptChange(e){e.created&&e.created.forEach(t=>{this._editors.set(t.id,new h(t,this,this.documents)),this._onEditorCreated.fire(t.id),e.actived||t.id!==this._activeEditorId||this.activeEditor&&this._onDidChangeActiveTextEditor.fire(this.activeEditor?this.activeEditor.textEditor:void 0)}),e.removed&&e.removed.forEach(e=>{this._editors.delete(e)}),e.actived&&("-1"===e.actived?(this._activeEditorId=void 0,this._onDidChangeActiveTextEditor.fire(void 0)):(this._activeEditorId=e.actived,this.activeEditor&&this._onDidChangeActiveTextEditor.fire(this.activeEditor?this.activeEditor.textEditor:void 0))),(e.created||e.removed)&&this._onDidChangeVisibleTextEditors.fire(this.visibleEditors)}async openResource(e,t){const r=await this._proxy.$openResource(e.toString(),t);return this.getEditor(r)?this.getEditor(r).textEditor:new Promise((t,n)=>{let i=!1;const o=this.onEditorCreated(e=>{e===r&&this.getEditor(r)&&(t(this.getEditor(r).textEditor),i=!0,o.dispose())});setTimeout(()=>{i||n(new Error("Timout opening textDocument uri "+e.toString()))},5e3)})}async showTextDocument(e,t,r){let n,i;return n=l.Uri.isUri(e)?e:e.uri,i="number"==typeof t?Object.assign(Object.assign({},a.viewColumnToResourceOpenOptions(t)),{preserveFocus:r}):"object"==typeof t?Object.assign(Object.assign({},a.viewColumnToResourceOpenOptions(t.viewColumn)),{preserveFocus:t.preserveFocus,range:"object"==typeof t.selection?a.Range.from(t.selection):void 0,preview:"boolean"==typeof t.preview?t.preview:void 0}):{preserveFocus:!1},this.openResource(n,i)}$acceptPropertiesChange(e){this._editors.get(e.id)&&this._editors.get(e.id).acceptStatusChange(e)}getEditor(e){return this._editors.get(e)}get activeEditor(){return this._activeEditorId?this._editors.get(this._activeEditorId):void 0}get visibleEditors(){return Array.from(this._editors.values()).map(e=>e.textEditor)}closeEditor(e){e.id===this._activeEditorId&&this._proxy.$closeEditor(e.id)}getNextId(){return this.decorationIdCount++,"textEditor-decoration-"+this.decorationIdCount}createTextEditorDecorationType(e,t){const r=a.DecorationRenderOptions.from(t),n=e.replace(/\./g,"-")+"-"+this.getNextId();return this._proxy.$createTextEditorDecorationType(n,r),new d(n,this._proxy)}async getDiffInformation(e){return(await this._proxy.$getDiffInformation(e)).map(e=>({originalStartLineNumber:e[0],originalEndLineNumber:e[1],modifiedStartLineNumber:e[2],modifiedEndLineNumber:e[3]}))}};class d extends o.Disposable{constructor(e,t){super(),this.key=e,this.addDispose({dispose:()=>{t.$deleteTextEditorDecorationType(e)}})}}t.ExtHostTextEditorDecorationType=d;class h{constructor(e,t,r){this.editorService=t,this.documents=r,this.doSetSelection=(0,i.default)(()=>{this.editorService._proxy.$setSelections(this.id,this.selections.map(e=>a.Selection.from(e)))},50,{maxWait:200,leading:!0,trailing:!0}),this.uri=l.Uri.parse(e.uri),this.id=e.id,this._acceptSelections(e.selections),this._acceptVisibleRanges(e.visibleRanges),this._acceptViewColumn(e.viewColumn),this.options=new f(this.editorService._proxy,this.id,e.options)}edit(e,t={undoStopBefore:!0,undoStopAfter:!0}){const r=this.documents.getDocument(this.uri);if(!r)throw new Error("document not found when editing");const n=new u.TextEditorEdit(r,t);return e(n),this._applyEdit(n)}_applyEdit(e){const t=e.finalize();if(0===t.edits.length&&!t.setEndOfLine)return Promise.resolve(!0);const r=t.edits.map(e=>e.range);r.sort((e,t)=>e.end.line===t.end.line?e.end.character===t.end.character?e.start.line===t.start.line?e.start.character-t.start.character:e.start.line-t.start.line:e.end.character-t.end.character:e.end.line-t.end.line);for(let e=0,t=r.length-1;e<t;e++){const t=r[e].end;if(r[e+1].start.isBefore(t))return Promise.reject(new Error("Overlapping ranges are not allowed!"))}const n=t.edits.map(e=>({range:a.Range.from(e.range),text:e.text,forceMoveMarkers:e.forceMoveMarkers}));return this.editorService._proxy.$applyEdits(this.id,t.documentVersionId,n,{setEndOfLine:"number"==typeof t.setEndOfLine?a.EndOfLine.from(t.setEndOfLine):void 0,undoStopBefore:t.undoStopBefore,undoStopAfter:t.undoStopAfter})}async insertSnippet(e,t,r){try{let n=[];if(!t||Array.isArray(t)&&0===t.length)n=this.selections.map(e=>a.Range.from(e));else if(t instanceof l.Position){const{lineNumber:e,column:r}=a.fromPosition(t);n=[{startLineNumber:e,startColumn:r,endLineNumber:e,endColumn:r}]}else if(t instanceof l.Range)n=[a.Range.from(t)];else{n=[];for(const e of t)if(e instanceof l.Range)n.push(a.Range.from(e));else{const{lineNumber:t,column:r}=a.fromPosition(e);n.push({startLineNumber:t,startColumn:r,endLineNumber:t,endColumn:r})}}return this.editorService._proxy.$insertSnippet(this.id,e.value,n,r),!0}catch(e){return(0,o.getDebugLogger)().error(e),!1}}setDecorations(e,t){if(e.disposed)return void(0,o.getDebugLogger)().warn(`decorationType with key ${e.key} has been disposed!`);let r=[];0!==t.length&&(l.Range.isRange(t[0])?r=t.map(e=>({range:a.Range.from(e)})):l.Range.isRange(t[0].range)&&(r=t.map(e=>({range:a.Range.from(e.range),renderOptions:e.renderOptions?a.DecorationRenderOptions.from(e.renderOptions):void 0,hoverMessage:e.hoverMessage})))),this.editorService._proxy.$applyDecoration(this.id,e.key,r)}revealRange(e,t){this.editorService._proxy.$revealRange(this.id,a.Range.from(e),t)}show(e){(0,o.getDebugLogger)().warn("TextEditor.show is Deprecated")}hide(){this.editorService.closeEditor(this)}_acceptSelections(e=[]){this.selections=e.map(e=>a.Selection.to(e))}_acceptOptions(e){this.options._accept(e)}_acceptVisibleRanges(e){this.visibleRanges=e.map(e=>a.Range.to(e)).filter(e=>!!e)}_acceptViewColumn(e){this.viewColumn=e}acceptStatusChange(e){e.selections&&(this._acceptSelections(e.selections.selections),this.editorService._onDidChangeTextEditorSelection.fire({kind:c.TextEditorSelectionChangeKind.fromValue(e.selections.source),selections:this.selections,textEditor:this.textEditor})),e.options&&(this._acceptOptions(e.options),this.editorService._onDidChangeTextEditorOptions.fire({textEditor:this.textEditor,options:this.options})),e.visibleRanges&&(this._acceptVisibleRanges(e.visibleRanges),this.editorService._onDidChangeTextEditorVisibleRanges.fire({textEditor:this.textEditor,visibleRanges:this.visibleRanges})),e.viewColumn&&(this._acceptViewColumn(e.viewColumn),this.editorService._onDidChangeTextEditorViewColumn.fire({textEditor:this.textEditor,viewColumn:this.viewColumn}))}get textEditor(){if(!this._textEditor){const e=this;this._textEditor={get id(){return e.id},get document(){return e.documents.getDocument(e.uri)},set selection(t){e.selections=[t],e.doSetSelection()},get selections(){return e.selections},set selections(t){e.selections=t,e.editorService._proxy.$setSelections(e.id,e.selections.map(e=>a.Selection.from(e)))},get selection(){return e.selections&&e.selections[0]},get options(){return e.options},get visibleRanges(){return e.visibleRanges},get viewColumn(){return e.viewColumn},set options(t){e.options.assign(t)},edit:e.edit.bind(e),insertSnippet:e.insertSnippet.bind(e),setDecorations:e.setDecorations.bind(e),revealRange:e.revealRange.bind(e),show:e.show.bind(e),hide:e.hide.bind(e)}}return this._textEditor}}t.TextEditorData=h,t.toIRange=function(e){if(l.Range.isRange(e))return a.Range.from(e);if(l.Selection.isSelection(e)){const t=e;return t.active.isBeforeOrEqual(t.anchor)?{startLineNumber:t.active.line+1,startColumn:t.active.character+1,endLineNumber:t.anchor.line+1,endColumn:t.anchor.character+1}:{startLineNumber:t.anchor.line+1,startColumn:t.anchor.character+1,endLineNumber:t.active.line+1,endColumn:t.active.character+1}}if(l.Position.isPosition(e)){const t=e;return{startLineNumber:t.line+1,startColumn:t.character+1,endLineNumber:t.line+1,endColumn:t.character+1}}return{startLineNumber:1,startColumn:1,endLineNumber:1,endColumn:1}};class f{constructor(e,t,r){this._proxy=e,this._id=t,this._accept(r)}_accept(e){this._tabSize=e.tabSize,this._indentSize=e.indentSize,this._insertSpaces=e.insertSpaces,this._cursorStyle=e.cursorStyle,this._lineNumbers=a.TextEditorLineNumbersStyle.to(e.lineNumbers)}get tabSize(){return this._tabSize}set tabSize(e){const t=this._validateTabSize(e);if(null!==t){if("number"==typeof t){if(this._tabSize===t)return;this._tabSize=t}this._proxy.$updateOptions(this._id,{tabSize:t})}}_validateTabSize(e){if("auto"===e)return"auto";if("number"==typeof e){const t=Math.floor(e);return t>0?t:null}if("string"==typeof e){const t=parseInt(e,10);return isNaN(t)?null:t>0?t:null}return null}get indentSize(){return this._indentSize}set indentSize(e){const t=this._validateIndentSize(e);if(null!==t){if("number"==typeof t){if(this._indentSize===t)return;this._indentSize=t}this._proxy.$updateOptions(this._id,{indentSize:t})}}_validateIndentSize(e){if("tabSize"===e)return"tabSize";if("number"==typeof e){const t=Math.floor(e);return t>0?t:null}if("string"==typeof e){const t=parseInt(e,10);return isNaN(t)?null:t>0?t:null}return null}get insertSpaces(){return this._insertSpaces}set insertSpaces(e){const t=this._validateInsertSpaces(e);if("boolean"==typeof t){if(this._insertSpaces===t)return;this._insertSpaces=t}this._proxy.$updateOptions(this._id,{insertSpaces:t})}_validateInsertSpaces(e){return"auto"===e?"auto":"false"!==e&&Boolean(e)}get cursorStyle(){return this._cursorStyle}set cursorStyle(e){this._cursorStyle!==e&&(this._cursorStyle=e,this._proxy.$updateOptions(this._id,{cursorStyle:e}))}get lineNumbers(){return this._lineNumbers}set lineNumbers(e){this._lineNumbers!==e&&(this._lineNumbers=e,this._proxy.$updateOptions(this._id,{lineNumbers:a.TextEditorLineNumbersStyle.from(e)}))}assign(e){const t={};let r=!1;if(void 0!==e.tabSize){const n=this._validateTabSize(e.tabSize);"auto"===n?(r=!0,t.tabSize=n):"number"==typeof n&&this._tabSize!==n&&(this._tabSize=n,r=!0,t.tabSize=n)}if(void 0!==e.insertSpaces){const n=this._validateInsertSpaces(e.insertSpaces);"auto"===n?(r=!0,t.insertSpaces=n):this._insertSpaces!==n&&(this._insertSpaces=n,r=!0,t.insertSpaces=n)}void 0!==e.cursorStyle&&this._cursorStyle!==e.cursorStyle&&(this._cursorStyle=e.cursorStyle,r=!0,t.cursorStyle=e.cursorStyle),void 0!==e.lineNumbers&&this._lineNumbers!==e.lineNumbers&&(this._lineNumbers=e.lineNumbers,r=!0,t.lineNumbers=a.TextEditorLineNumbersStyle.from(e.lineNumbers)),r&&this._proxy.$updateOptions(this._id,t)}}t.ExtHostTextEditorOptions=f},function(e,t,r){var n=r(33),i=r(634),o=r(635),s=Math.max,a=Math.min;e.exports=function(e,t,r){var c,l,u,d,h,f,p=0,g=!1,m=!1,b=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var r=c,n=l;return c=l=void 0,p=t,d=e.apply(n,r)}function y(e){return p=e,h=setTimeout(w,t),g?v(e):d}function _(e){var r=e-f;return void 0===f||r>=t||r<0||m&&e-p>=u}function w(){var e=i();if(_(e))return C(e);h=setTimeout(w,function(e){var r=t-(e-f);return m?a(r,u-(e-p)):r}(e))}function C(e){return h=void 0,b&&c?v(e):(c=l=void 0,d)}function k(){var e=i(),r=_(e);if(c=arguments,l=this,f=e,r){if(void 0===h)return y(f);if(m)return clearTimeout(h),h=setTimeout(w,t),v(f)}return void 0===h&&(h=setTimeout(w,t)),d}return t=o(t)||0,n(r)&&(g=!!r.leading,u=(m="maxWait"in r)?s(o(r.maxWait)||0,t):u,b="trailing"in r?!!r.trailing:b),k.cancel=function(){void 0!==h&&clearTimeout(h),p=0,c=f=l=h=void 0},k.flush=function(){return void 0===h?d:C(i())},k}},function(e,t,r){var n=r(20);e.exports=function(){return n.Date.now()}},function(e,t,r){var n=r(636),i=r(33),o=r(638),s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=a.test(e);return r||c.test(e)?l(e.slice(2),r?2:8):s.test(e)?NaN:+e}},function(e,t,r){var n=r(637),i=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(i,""):e}},function(e,t){var r=/\s/;e.exports=function(e){for(var t=e.length;t--&&r.test(e.charAt(t)););return t}},function(e,t,r){var n=r(62),i=r(45);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==n(e)}},function(e,t,r){var n=r(128),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=n?n.toStringTag:void 0;e.exports=function(e){var t=o.call(e,a),r=e[a];try{e[a]=void 0;var n=!0}catch(e){}var i=s.call(e);return n&&(t?e[a]=r:delete e[a]),i}},function(e,t){var r=Object.prototype.toString;e.exports=function(e){return r.call(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextEditorEdit=void 0;const n=r(4);t.TextEditorEdit=class{constructor(e,t){this._document=e,this._documentVersionId=e.version,this._collectedEdits=[],this._setEndOfLine=void 0,this._undoStopBefore=t.undoStopBefore,this._undoStopAfter=t.undoStopAfter}finalize(){return{documentVersionId:this._documentVersionId,edits:this._collectedEdits,setEndOfLine:this._setEndOfLine,undoStopBefore:this._undoStopBefore,undoStopAfter:this._undoStopAfter}}replace(e,t){let r=null;if(e instanceof n.Position)r=new n.Range(e,e);else{if(!(e instanceof n.Range))throw new Error("Unrecognized location");r=e}this._pushEdit(r,t,!1)}insert(e,t){this._pushEdit(new n.Range(e,e),t,!0)}delete(e){let t=null;if(!(e instanceof n.Range))throw new Error("Unrecognized location");t=e,this._pushEdit(t,null,!0)}_pushEdit(e,t,r){const n=this._document.validateRange(e);this._collectedEdits.push({range:n,text:t,forceMoveMarkers:r})}setEndOfLine(e){if(e!==n.EndOfLine.LF&&e!==n.EndOfLine.CRLF)throw new Error("illegalArgument endOfLine");this._setEndOfLine=e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtHostEnv=void 0;const n=r(0),i=r(7),o=r(4);t.ExtHostEnv=class{constructor(e){this.logLevelChangeEmitter=new n.Emitter,this.rpcProtocol=e,this.proxy=this.rpcProtocol.getProxy(i.MainThreadAPIIdentifier.MainThreadEnv)}$setEnvValues(e){return this.setEnvValues(e)}setEnvValues(e){this.values=Object.assign({},this.values,e)}getEnvValues(){return this.values}async asExternalUri(e){if(!e.scheme.trim().length)throw new Error("Invalid scheme - cannot be empty");if(![n.Schemes.http,n.Schemes.https,this.values.uriScheme].includes(e.scheme))throw new Error(`Invalid scheme '${e.scheme}'`);const t=await this.proxy.$asExternalUri(e);return n.URI.revive(t)}$fireChangeLogLevel(e){this.$setLogLevel(e),this.logLevelChangeEmitter.fire(this.logLevel)}$setLogLevel(e){this.logLevel=this.toVSCodeLogLevel(e)}toVSCodeLogLevel(e){return e===n.LogLevel.Verbose?o.LogLevel.Trace:e===n.LogLevel.Debug?o.LogLevel.Debug:e===n.LogLevel.Info?o.LogLevel.Info:e===n.LogLevel.Warning?o.LogLevel.Warning:e===n.LogLevel.Error?o.LogLevel.Error:e===n.LogLevel.Critical?o.LogLevel.Critical:e===n.LogLevel.Off?o.LogLevel.Off:o.LogLevel.Info}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createWorkerHostEnvAPIFactory=void 0;const n=r(7);t.createWorkerHostEnvAPIFactory=function(e,t){const r=e.getProxy(n.MainThreadAPIIdentifier.MainThreadEnv);return{get language(){return t.getEnvValues().language},clipboard:{readText:()=>r.$clipboardReadText(),writeText:e=>r.$clipboardWriteText(e)},openExternal:e=>r.$openExternal(e)}}},function(e,t,r){"use strict";var n,i,o,s,a,c,l,u,d,h;Object.defineProperty(t,"__esModule",{value:!0}),t.ExtHostWebviewViews=t.ExtHostWebviewService=t.ExtHostWebviewPanel=t.ExtHostWebview=void 0;const f=r(1),p=r(0),g=r(7),m=r(4);class b{constructor(e,t,r,n,i){this.cspResourceRoots=n,this.extensionLocation=i,this._isDisposed=!1,this._onMessageEmitter=new p.Emitter,this.onDidReceiveMessage=this._onMessageEmitter.event,this._handle=e,this._proxy=t,this._options=r}dispose(){this._onMessageEmitter.dispose()}get html(){return this.assertNotDisposed(),this._html}set html(e){this.assertNotDisposed(),this._html!==e&&(this._html=e,this._proxy.$setHtml(this._handle,e))}get options(){return this.assertNotDisposed(),this._options}set options(e){this.assertNotDisposed(),this._proxy.$setOptions(this._handle,e),this._options=e}postMessage(e){return this.assertNotDisposed(),this._proxy.$postMessage(this._handle,e)}assertNotDisposed(){if(this._isDisposed)throw new Error("Webview is disposed")}get resourceRoot(){return"vscode-resource:"}get cspSource(){let e=this.cspResourceRoots.join(" ");return this.extensionLocation&&(e+=` 'self' vscode-resource:/${this.extensionLocation.path}/`.toLowerCase()),e}toWebviewResource(e){return this.asWebviewUri(e)}asWebviewUri(e){return e.scheme===p.Schemes.file?m.Uri.from({scheme:"vscode-resource",path:e.path,authority:e.authority,query:e.query,fragment:e.fragment}):e}}t.ExtHostWebview=b;class v{constructor(e,t,r,n,i,o,s){this._isDisposed=!1,this._visible=!0,this._active=!0,this._onDisposeEmitter=new p.Emitter,this.onDidDispose=this._onDisposeEmitter.event,this._onDidChangeViewStateEmitter=new p.Emitter,this.onDidChangeViewState=this._onDidChangeViewStateEmitter.event,this._handle=e,this._proxy=t,this._viewType=r,this._options=o,this._viewColumn=i,this._title=n,this._webview=s}dispose(){this._isDisposed||(this._isDisposed=!0,this._onDisposeEmitter.fire(),this._proxy.$disposeWebview(this._handle),this._webview.dispose(),this._onDisposeEmitter.dispose(),this._onDidChangeViewStateEmitter.dispose())}get webview(){return this.assertNotDisposed(),this._webview}get viewType(){return this.assertNotDisposed(),this._viewType}get title(){return this.assertNotDisposed(),this._title}set title(e){this.assertNotDisposed(),this._title!==e&&(this._title=e,this._proxy.$setTitle(this._handle,e))}get iconPath(){return this.assertNotDisposed(),this._iconPath}set iconPath(e){if(this.assertNotDisposed(),this._iconPath!==e){this._iconPath=e;let t={light:"",dark:""};if(m.Uri.isUri(e))t={light:e.toString(),dark:e.toString()};else{const r=e;t={light:r.light.toString(),dark:r.dark.toString()}}this._proxy.$setIconPath(this._handle,t)}}get options(){return this._options}get viewColumn(){return this.assertNotDisposed(),this._viewColumn}_setViewColumn(e){this.assertNotDisposed(),this._viewColumn=e}get active(){return this.assertNotDisposed(),this._active}_setActive(e){this.assertNotDisposed(),this._active=e}get visible(){return this.assertNotDisposed(),this._visible}_setVisible(e){this.assertNotDisposed(),this._visible=e}postMessage(e){return this.assertNotDisposed(),this._proxy.$postMessage(this._handle,e)}reveal(e,t){this.assertNotDisposed(),this._proxy.$reveal(this._handle,{viewColumn:e,preserveFocus:!!t})}assertNotDisposed(){if(this._isDisposed)throw new Error("Webview is disposed")}}t.ExtHostWebviewPanel=v;t.ExtHostWebviewService=class{constructor(e){this.rpcProtocol=e,this.webviewHandlePool=1,this._webviewPanels=new Map,this._localWebviews=new Map,this._serializers=new Map,this.resourceRoots=[],this.rpcProtocol=e,this._proxy=this.rpcProtocol.getProxy(g.MainThreadAPIIdentifier.MainThreadWebview)}async $init(){return await this.init()}async init(){this.resourceRoots=await this._proxy.$getWebviewResourceRoots()}getNextHandle(){let e="ext-host-webview-"+this.webviewHandlePool++;for(;this._webviewPanels.has(e);)e="ext-host-webview-"+this.webviewHandlePool++;return e}createWebview(e,t,r,n,i={},o){const s="object"==typeof n?n.viewColumn:n,a={viewColumn:s,preserveFocus:"object"==typeof n&&!!n.preserveFocus},c=this.getNextHandle();this._proxy.$createWebviewPanel(c,t,r,a,i,o);const l=new b(c,this._proxy,i,this.resourceRoots,e),u=new v(c,this._proxy,t,r,s,i,l);return this._webviewPanels.set(c,u),u}$pipeBrowserHostedWebviewPanel(e,t){const r=new b(e,this._proxy,{},this.resourceRoots),n=new v(e,this._proxy,t,"",g.ViewColumn.One,{},r);this._webviewPanels.set(e,n)}createLocalWebview(e){const t=new b(e,this._proxy,{},this.resourceRoots);return this._localWebviews.set(e,t),t}registerWebviewPanelSerializer(e,t){if(this._serializers.has(e))throw new Error(`Serializer for '${e}' already registered`);return this._serializers.set(e,t),this._proxy.$registerSerializer(e),new m.Disposable(()=>{this._serializers.delete(e),this._proxy.$unregisterSerializer(e)})}getExtHostWebview(e){var t;return this._localWebviews.get(e)||(null===(t=this.getWebviewPanel(e))||void 0===t?void 0:t.webview)}$onMessage(e,t){var r;null===(r=this.getExtHostWebview(e))||void 0===r||r._onMessageEmitter.fire(t)}$onDidChangeWebviewPanelViewState(e,t){const r=this.getWebviewPanel(e);if(r){const e=t.position;r.active===t.active&&r.visible===t.visible&&r.viewColumn===e||(r._setActive(t.active),r._setVisible(t.visible),r._setViewColumn(e),r._onDidChangeViewStateEmitter.fire({webviewPanel:r}))}}async $onDidDisposeWebviewPanel(e){const t=this.getWebviewPanel(e);t&&(t.dispose(),this._webviewPanels.delete(e))}async $deserializeWebviewPanel(e,t,r,n,i,o){const s=this._serializers.get(t);if(!s)throw new Error(`No serializer found for '${t}'`);const a=new b(e,this._proxy,o,this.resourceRoots),c=new v(e,this._proxy,t,r,i,o,a);return this._webviewPanels.set(e,c),s.deserializeWebviewPanel(c,n)}getWebviewPanel(e){return this._webviewPanels.get(e)}};class y extends p.Disposable{constructor(e,t,r,g,m,b){super(),n.set(this,void 0),i.set(this,void 0),o.set(this,void 0),s.set(this,void 0),a.set(this,!1),c.set(this,void 0),l.set(this,void 0),u.set(this,void 0),d.set(this,new p.Emitter),this.onDidChangeVisibility=f.__classPrivateFieldGet(this,d,"f").event,h.set(this,new p.Emitter),this.onDidDispose=f.__classPrivateFieldGet(this,h,"f").event,f.__classPrivateFieldSet(this,o,r,"f"),f.__classPrivateFieldSet(this,l,g,"f"),f.__classPrivateFieldSet(this,n,e,"f"),f.__classPrivateFieldSet(this,i,t,"f"),f.__classPrivateFieldSet(this,s,m,"f"),f.__classPrivateFieldSet(this,c,b,"f"),this.addDispose(f.__classPrivateFieldGet(this,d,"f")),this.addDispose(f.__classPrivateFieldGet(this,h,"f"))}dispose(){f.__classPrivateFieldGet(this,a,"f")||(f.__classPrivateFieldSet(this,a,!0,"f"),f.__classPrivateFieldGet(this,h,"f").fire(),f.__classPrivateFieldGet(this,s,"f").dispose(),super.dispose())}get title(){return this.assertNotDisposed(),f.__classPrivateFieldGet(this,l,"f")}set title(e){this.assertNotDisposed(),f.__classPrivateFieldGet(this,l,"f")!==e&&(f.__classPrivateFieldSet(this,l,e,"f"),f.__classPrivateFieldGet(this,i,"f").$setWebviewViewTitle(f.__classPrivateFieldGet(this,n,"f"),e))}get description(){return this.assertNotDisposed(),f.__classPrivateFieldGet(this,u,"f")}set description(e){this.assertNotDisposed(),f.__classPrivateFieldGet(this,u,"f")!==e&&(f.__classPrivateFieldSet(this,u,e,"f"),f.__classPrivateFieldGet(this,i,"f").$setWebviewViewDescription(f.__classPrivateFieldGet(this,n,"f"),e))}get visible(){return f.__classPrivateFieldGet(this,c,"f")}get webview(){return f.__classPrivateFieldGet(this,s,"f")}get viewType(){return f.__classPrivateFieldGet(this,o,"f")}_setVisible(e){e===f.__classPrivateFieldGet(this,c,"f")||f.__classPrivateFieldGet(this,a,"f")||(f.__classPrivateFieldSet(this,c,e,"f"),f.__classPrivateFieldGet(this,d,"f").fire())}show(e){this.assertNotDisposed(),f.__classPrivateFieldGet(this,i,"f").$show(f.__classPrivateFieldGet(this,n,"f"),!!e)}assertNotDisposed(){if(f.__classPrivateFieldGet(this,a,"f"))throw new Error("Webview is disposed")}}n=new WeakMap,i=new WeakMap,o=new WeakMap,s=new WeakMap,a=new WeakMap,c=new WeakMap,l=new WeakMap,u=new WeakMap,d=new WeakMap,h=new WeakMap;t.ExtHostWebviewViews=class{constructor(e,t){this._extHostWebview=t,this._viewProviders=new Map,this._webviewViews=new Map,this._proxy=e.getProxy(g.MainThreadAPIIdentifier.MainThreadWebviewView)}registerWebviewViewProvider(e,t,r,n){if(this._viewProviders.has(t))throw new Error(`View provider for '${t}' already registered`);return this._viewProviders.set(t,{provider:r,extension:e}),this._proxy.$registerWebviewViewProvider(e,t,n),new m.Disposable(()=>{this._viewProviders.delete(t),this._proxy.$unregisterWebviewViewProvider(t)})}async $resolveWebviewView(e,t,r,n,i){const o=this._viewProviders.get(t);if(!o)throw new Error(`No view provider found for '${t}'`);const{provider:s}=o,a=this._extHostWebview.createLocalWebview(e),c=new y(e,this._proxy,t,r,a,!0);this._webviewViews.set(e,c),await s.resolveWebviewView(c,{state:n},i)}async $onDidChangeWebviewViewVisibility(e,t){this.getWebviewView(e)._setVisible(t)}async $disposeWebviewView(e){var t;this._webviewViews.delete(e),null===(t=this._extHostWebview.getWebviewPanel(e))||void 0===t||t.dispose()}getWebviewView(e){const t=this._webviewViews.get(e);if(!t)throw new Error("No webview found");return t}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtHostAuthentication=t.createAuthenticationApiFactory=void 0;const n=r(0),i=r(7),o=r(124);t.createAuthenticationApiFactory=function(e,t){return{getSession:(r,n,i)=>t.getSession(e,r,n,i),get onDidChangeSessions(){return t.onDidChangeSessions},registerAuthenticationProvider:(e,r,n,i)=>t.registerAuthenticationProvider(e,r,n,i),get onDidChangeAuthenticationProviders(){return t.onDidChangeAuthenticationProviders},get providers(){return t.providers},logout:(e,r)=>t.logout(e,r)}};t.ExtHostAuthentication=class{constructor(e){this.logger=(0,n.getDebugLogger)(),this._authenticationProviders=new Map,this._providers=[],this._onDidChangeAuthenticationProviders=new n.Emitter,this.onDidChangeAuthenticationProviders=this._onDidChangeAuthenticationProviders.event,this._onDidChangeSessions=new n.Emitter,this.onDidChangeSessions=this._onDidChangeSessions.event,this._inFlightRequests=new Map,this._proxy=e.getProxy(i.MainThreadAPIIdentifier.MainThreadAuthentication)}$setProviders(e){return this._providers=e,Promise.resolve()}getProviderIds(){return this._proxy.$getProviderIds()}get providers(){return Object.freeze(this._providers.slice())}async getSession(e,t,r,n={}){const i=o.ExtensionIdentifier.toKey(e.identifier),s=this._inFlightRequests.get(i)||[],a=r.sort().join(" ");let c=s.find(e=>e.scopes===a);if(c)return c.result;{const o=this._getSession(e,i,t,r,n);c={scopes:a,result:o},s.push(c),this._inFlightRequests.set(i,s);try{await o}catch(e){this.logger.error(`get session had a error ${e.message} `)}finally{const e=s.findIndex(e=>e.scopes===a);e>-1&&(s.splice(e),this._inFlightRequests.set(i,s))}return o}}async _getSession(e,t,r,n,i={}){await this._proxy.$ensureProvider(r);const o=e.displayName||e.name;return this._proxy.$getSession(r,n,t,o,i)}async logout(e,t){return this._proxy.$logout(e,t)}registerAuthenticationProvider(e,t,r,i){var o;if(this._authenticationProviders.get(e))throw new Error(`An authentication provider with id '${e}' is already registered.`);this._authenticationProviders.set(e,{label:t,provider:r,options:null!=i?i:{supportsMultipleAccounts:!1}}),this._providers.find(t=>t.id===e)||this._providers.push({id:e,label:t}),this._providers.find(t=>t.id===e)||this._providers.push({id:e,label:t});const s=r.onDidChangeSessions(t=>{var r,n,i;this._proxy.$sendDidChangeSessions(e,{added:null!==(r=t.added)&&void 0!==r?r:[],changed:null!==(n=t.changed)&&void 0!==n?n:[],removed:null!==(i=t.removed)&&void 0!==i?i:[]})});return this._proxy.$registerAuthenticationProvider(e,t,null!==(o=null==i?void 0:i.supportsMultipleAccounts)&&void 0!==o&&o),n.Disposable.create(()=>{s.dispose(),this._authenticationProviders.delete(e);const t=this._providers.findIndex(t=>t.id===e);t>-1&&this._providers.splice(t),this._proxy.$unregisterAuthenticationProvider(e)})}$login(e,t){const r=this._authenticationProviders.get(e);if(r)return Promise.resolve(r.provider.createSession(t));throw new Error("Unable to find authentication provider with handle: "+e)}$logout(e,t){const r=this._authenticationProviders.get(e);if(r)return Promise.resolve(r.provider.removeSession(t));throw new Error("Unable to find authentication provider with handle: "+e)}$getSessions(e){const t=this._authenticationProviders.get(e);if(t)return Promise.resolve(t.provider.getSessions());throw new Error("Unable to find authentication provider with handle: "+e)}async $getSessionAccessToken(e,t){const r=this._authenticationProviders.get(e);if(r){const e=(await r.provider.getSessions()).find(e=>e.id===t);if(e)return e.accessToken;throw new Error("Unable to find session with id: "+t)}throw new Error("Unable to find authentication provider with handle: "+e)}$onDidChangeAuthenticationSessions(e,t,r){return this._onDidChangeSessions.fire(Object.assign({provider:{id:e,label:t}},r)),Promise.resolve()}$onDidChangeAuthenticationProviders(e,t){return e.forEach(e=>{this._providers.some(t=>t.id===e.id)||this._providers.push(e)}),t.forEach(e=>{const t=this._providers.findIndex(t=>t.id===e.id);t>-1&&this._providers.splice(t)}),this._onDidChangeAuthenticationProviders.fire({added:e,removed:t}),Promise.resolve()}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtHostCommentThread=t.ExtHostComments=t.createCommentsApiFactory=void 0;const n=r(1),i=r(0),o=r(56),s=r(7),a=n.__importStar(r(5)),c=n.__importStar(r(4)),l=n.__importStar(r(251));t.createCommentsApiFactory=function(e,t){return{createCommentController:(r,n)=>t.createCommentController(e,r,n)}};class u{constructor(e,t,r){this.rpcProtocol=e,this._documents=r,this._commentControllers=new Map,this._commentControllersByExtension=new Map,this._proxy=this.rpcProtocol.getProxy(s.MainThreadAPIIdentifier.MainThreadComments),this.registerArgumentProcessor(t)}registerArgumentProcessor(e){e.registerArgumentProcessor({processArgument:e=>{if(e&&6===e.$mid){const t=this._commentControllers.get(e.handle);return t||e}if(e&&7===e.$mid){const t=this._commentControllers.get(e.commentControlHandle);if(!t)return e;const r=t.getCommentThread(e.commentThreadHandle);return r||e}if(e&&8===e.$mid){const t=this._commentControllers.get(e.thread.commentControlHandle);if(!t)return e;const r=t.getCommentThread(e.thread.commentThreadHandle);return r?{thread:r,text:e.text}:e}if(e&&9===e.$mid){const t=this._commentControllers.get(e.thread.commentControlHandle);if(!t)return e;const r=t.getCommentThread(e.thread.commentThreadHandle);if(!r)return e;const n=e.commentUniqueId,i=r.getCommentByUniqueId(n);return i||e}if(e&&10===e.$mid){const t=this._commentControllers.get(e.thread.commentControlHandle);if(!t)return e;const r=t.getCommentThread(e.thread.commentThreadHandle);if(!r)return e;const n=e.text,i=e.commentUniqueId,o=r.getCommentByUniqueId(i);return o?(o.body=n,o):e}return e}})}createCommentController(e,t,r){const n=u.handlePool++,i=new d(e,n,this._proxy,t,r);this._commentControllers.set(i.handle,i);const s=this._commentControllersByExtension.get((0,o.getExtensionId)(e.id))||[];return s.push(i),this._commentControllersByExtension.set((0,o.getExtensionId)(e.id),s),i}$createCommentThreadTemplate(e,t,r){const n=this._commentControllers.get(e);n&&n.$createCommentThreadTemplate(t,r)}async $updateCommentThreadTemplate(e,t,r){const n=this._commentControllers.get(e);n&&n.$updateCommentThreadTemplate(t,r)}$deleteCommentThread(e,t){const r=this._commentControllers.get(e);r&&r.$deleteCommentThread(t)}$provideCommentingRanges(e,t,r){const n=this._commentControllers.get(e);if(!n||!n.commentingRangeProvider)return Promise.resolve(void 0);const o=this._documents.getDocument(i.Uri.revive(t));return(0,i.asPromise)(()=>n.commentingRangeProvider.provideCommentingRanges(o,r)).then(e=>e?e.map(e=>a.fromRange(e)):void 0)}$toggleReaction(e,t,r,n,o){const s=this._commentControllers.get(e);return s&&s.reactionHandler?(0,i.asPromise)(()=>{const e=s.getCommentThread(t);if(e){const t=e.getCommentByUniqueId(n.uniqueIdInThread);if(void 0!==s&&t&&s.reactionHandler)return s.reactionHandler(t,function(e){return{label:e.label||"",count:e.count||0,iconPath:e.iconPath?i.Uri.revive(e.iconPath):"",authorHasReacted:e.hasReacted||!1}}(o))}return Promise.resolve(void 0)}):Promise.resolve(void 0)}}t.ExtHostComments=u,u.handlePool=0;class d{get id(){return this._id}get label(){return this._label}get handle(){return this._handle}get options(){return this._options}set options(e){this._options=e,this._proxy.$updateCommentControllerFeatures(this.handle,{options:this._options})}get reactionHandler(){return this._reactionHandler}set reactionHandler(e){this._reactionHandler=e,this._proxy.$updateCommentControllerFeatures(this.handle,{reactionHandler:!!e})}constructor(e,t,r,n,i){this._extension=e,this._handle=t,this._proxy=r,this._id=n,this._label=i,this._threads=new Map,this._proxy.$registerCommentController(this.handle,n,i)}createCommentThread(e,t,r,n){if("string"==typeof e){const i=new h(this._proxy,this,e,t,r,n,this._extension);return this._threads.set(i.handle,i),i}{const n=new h(this._proxy,this,void 0,e,t,r,this._extension);return this._threads.set(n.handle,n),n}}$createCommentThreadTemplate(e,t){const r=new h(this._proxy,this,void 0,i.Uri.revive(e),a.toRange(t),[],this._extension);return r.collapsibleState=l.CommentThreadCollapsibleState.Expanded,this._threads.set(r.handle,r),r}$updateCommentThreadTemplate(e,t){const r=this._threads.get(e);r&&(r.range=a.toRange(t))}$deleteCommentThread(e){const t=this._threads.get(e);t&&t.dispose(),this._threads.delete(e)}getCommentThread(e){return this._threads.get(e)}dispose(){this._threads.forEach(e=>{e.dispose()}),this._proxy.$unregisterCommentController(this.handle)}}class h{set threadId(e){this._id=e}get threadId(){return this._id}get id(){return this._id}get resource(){return this._uri}get uri(){return this._uri}set range(e){e.isEqual(this._range)||(this._range=e,this.modifications.range=e,this._onDidUpdateCommentThread.fire())}get range(){return this._range}set canReply(e){this._canReply!==e&&(this._canReply=e,this.modifications.canReply=e,this._onDidUpdateCommentThread.fire())}get canReply(){return this._canReply}get label(){return this._label}set label(e){this._label=e,this.modifications.label=e,this._onDidUpdateCommentThread.fire()}get contextValue(){return this._contextValue}set contextValue(e){this._contextValue=e,this.modifications.contextValue=e,this._onDidUpdateCommentThread.fire()}get comments(){return this._comments}set comments(e){this._comments=e,this.modifications.comments=e,this._onDidUpdateCommentThread.fire()}get collapsibleState(){return this._collapseState}set collapsibleState(e){this._collapseState=e,this.modifications.collapsibleState=e,this._onDidUpdateCommentThread.fire()}get isDisposed(){return this._isDiposed}constructor(e,t,r,n,o,s,l){this._proxy=e,this._commentController=t,this._id=r,this._uri=n,this._range=o,this._comments=s,this.handle=h._handlePool++,this.commentHandle=0,this.modifications=Object.create(null),this._onDidUpdateCommentThread=new i.Emitter,this.onDidUpdateCommentThread=this._onDidUpdateCommentThread.event,this._canReply=!0,this._commentsMap=new Map,this._acceptInputDisposables=new i.MutableDisposable,this._acceptInputDisposables.value=new i.DisposableStore,void 0===this._id&&(this._id=`${t.id}.${this.handle}`),this._proxy.$createCommentThread(this._commentController.handle,this.handle,this._id,this._uri,a.fromRange(this._range),l.id),this._localDisposables=[],this._isDiposed=!1,this._localDisposables.push(c.Disposable.from(this.onDidUpdateCommentThread(()=>{this.eventuallyUpdateCommentThread()}))),this.comments=s}eventuallyUpdateCommentThread(){if(this._isDiposed)return;this._acceptInputDisposables.value||(this._acceptInputDisposables.value=new i.DisposableStore);const e=e=>Object.prototype.hasOwnProperty.call(this.modifications,e),t={};e("range")&&(t.range=a.fromRange(this._range)),e("label")&&(t.label=this.label),e("contextValue")&&(t.contextValue=this.contextValue),e("comments")&&(t.comments=this._comments.map(e=>function(e,t,r,n){var i;let o=n.get(r);o||(o=++e.commentHandle,n.set(r,o));const s=r.author&&r.author.iconPath?r.author.iconPath.toString():void 0;return{mode:r.mode,contextValue:r.contextValue,uniqueIdInThread:o,body:"string"==typeof r.body?r.body:a.MarkdownString.from(r.body),userName:r.author.name,userIconPath:s,label:r.label,commentReactions:r.reactions?r.reactions.map(e=>function(e){return{label:e.label,iconPath:e.iconPath?a.pathOrURIToURI(e.iconPath):void 0,count:e.count,hasReacted:e.authorHasReacted}}(e)):void 0,timestamp:null===(i=r.timestamp)||void 0===i?void 0:i.toJSON()}}(this,this._commentController,e,this._commentsMap))),e("collapsibleState")&&(t.collapseState=function(e){if(void 0!==e)switch(e){case c.CommentThreadCollapsibleState.Expanded:return l.CommentThreadCollapsibleState.Expanded;case c.CommentThreadCollapsibleState.Collapsed:return l.CommentThreadCollapsibleState.Collapsed}return l.CommentThreadCollapsibleState.Collapsed}(this._collapseState)),e("canReply")&&(t.canReply=this.canReply),this.modifications={},this._proxy.$updateCommentThread(this._commentController.handle,this.handle,this._id,this._uri,t)}getCommentByUniqueId(e){for(const t of this._commentsMap){const r=t[0];if(e===t[1])return r}}dispose(){this._isDiposed=!0,this._acceptInputDisposables.dispose(),this._localDisposables.forEach(e=>e.dispose()),this._proxy.$deleteCommentThread(this._commentController.handle,this.handle)}}h._handlePool=0,n.__decorate([(0,i.debounce)(100),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],h.prototype,"eventuallyUpdateCommentThread",null),t.ExtHostCommentThread=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtHostCustomEditorImpl=void 0;const n=r(0),i=r(7),o=r(4);t.ExtHostCustomEditorImpl=class{constructor(e,t,r){this.webview=t,this.extDocuments=r,this.providers=new Map,this.customDocuments=new Map,this.proxy=e.getProxy(i.MainThreadAPIIdentifier.MainThreadCustomEditor)}registerCustomEditorProvider(e,t,r,n){const o=function(e){return"function"==typeof e.saveCustomDocument?i.CustomEditorType.FullEditor:"function"==typeof e.openCustomDocument?i.CustomEditorType.ReadonlyEditor:i.CustomEditorType.TextEditor}(t);return this.proxy.$registerCustomEditor(e,o,r,n),this.providers.set(e,{type:o,provider:t}),o!==i.CustomEditorType.FullEditor&&o!==i.CustomEditorType.ReadonlyEditor||this.customDocuments.set(e,{provider:t,documents:new Map}),{dispose:()=>{this.providers.delete(e),this.customDocuments.delete(e),this.proxy.$unregisterCustomEditor(e)}}}async $saveCustomDocument(e,t,r){var n,i;const s=o.Uri.revive(t),a=null===(i=null===(n=this.customDocuments.get(e))||void 0===n?void 0:n.documents)||void 0===i?void 0:i.get(s.toString());a&&await a.save(r)}async $revertCustomDocument(e,t,r){var n,i;const s=o.Uri.revive(t),a=null===(i=null===(n=this.customDocuments.get(e))||void 0===n?void 0:n.documents)||void 0===i?void 0:i.get(s.toString());a&&await a.revert(r)}async $resolveCustomTextEditor(e,t,r,a){var c,l;const u=this.providers.get(e);if(!u)throw new Error("no custom editor provider for "+e);const d=this.webview.getWebviewPanel(r);if(!d)throw new Error(`no webview ${r} for custom editor ${e}`);const h=o.Uri.revive(t);if(u.type===i.CustomEditorType.TextEditor){const t=this.extDocuments.getDocument(h);if(!t)throw new Error(`no document ${h.toString()} for custom editor ${e}`);u.provider.resolveCustomTextEditor(t,d,a)}else{let t=null===(c=this.getCustomDocument(e,h))||void 0===c?void 0:c.document;if(!t){const r={};if(h.scheme===n.Schemes.untitled){const e=this.extDocuments.getDocument(h);r.untitledDocumentData=e&&(0,n.iconvEncode)(e.getText(),"utf-8")}if(t=await u.provider.openCustomDocument(h,r,a),!t)return;const i=new s(t,u.provider);if(null===(l=this.customDocuments.get(e))||void 0===l||l.documents.set(h.toString(),i),i.onDidChange(()=>{this.proxy.$acceptCustomDocumentDirty(h,i.dirty)}),a.isCancellationRequested)return}u.provider.resolveCustomEditor(t,d,a)}}getCustomDocument(e,t){var r,n;return null===(n=null===(r=this.customDocuments.get(e))||void 0===r?void 0:r.documents)||void 0===n?void 0:n.get(t.toString())}async $undo(e,t){const r=o.Uri.revive(t),n=this.getCustomDocument(e,r);n&&await n.undo()}async $redo(e,t){const r=o.Uri.revive(t),n=this.getCustomDocument(e,r);n&&await n.redo()}};class s{constructor(e,t){this._document=e,this.provider=t,this.edits=[],this.currentIndex=-1,this.savePoint=-1,this._onDidChange=new n.Emitter,this.onDidChange=this._onDidChange.event,this._forceDirty=!1,a(this.provider)&&this.provider.onDidChangeCustomDocument(e=>{e.document===this.document&&(!function(e){return void 0!==e.undo&&void 0!==e.redo}(e)?(this._forceDirty=!0,this._onDidChange.fire()):this.addEdit(e))})}addEdit(e){this.currentIndex!==this.edits.length-1&&this.edits.splice(this.currentIndex+1,this.edits.length-this.currentIndex-1),this.edits.push(e),this.currentIndex=this.edits.length-1,this.savePoint>=this.currentIndex&&(this.savePoint=-2),this._onDidChange.fire()}get document(){return this._document}async undo(){if(this.edits[this.currentIndex]){const e=this.edits[this.currentIndex];this.currentIndex--,await e.undo(),this._onDidChange.fire()}}async redo(){if(this.edits[this.currentIndex+1]){const e=this.edits[this.currentIndex+1];this.currentIndex++,await e.redo(),this._onDidChange.fire()}}async save(e){a(this.provider)&&(await this.provider.saveCustomDocument(this.document,e),this.savePoint=this.currentIndex,this._forceDirty=!1,this._onDidChange.fire())}async revert(e){a(this.provider)&&(await this.provider.revertCustomDocument(this.document,e),this.currentIndex=this.savePoint,this._forceDirty=!1,this._onDidChange.fire())}get dirty(){return!!this._forceDirty||this.currentIndex!==this.savePoint}}function a(e){return"function"==typeof e.saveCustomDocument}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtHostDecorations=void 0;const n=r(0),i=r(7),o=r(4),{asArray:s,groupBy:a}=n.arrays,{compare:c,count:l}=n.strings,{dirname:u}=n.path;class d{constructor(e){this.logger=(0,n.getDebugLogger)(),this._provider=new Map,this.proxy=e.getProxy(i.MainThreadAPIIdentifier.MainThreadDecorations)}registerFileDecorationProvider(e,t){const r=d._handlePool++;this._provider.set(r,{provider:e,extensionId:t}),this.proxy.$registerDecorationProvider(r,t);const i=e.onDidChangeFileDecorations&&e.onDidChangeFileDecorations(e=>{if(!e)return void this.proxy.$onDidChange(r,null);const n=s(e);if(n.length<=d._maxEventSize)return void this.proxy.$onDidChange(r,n);this.logger.warn("[Decorations] CAPPING events from decorations provider",t,n.length);const i=n.map(e=>({uri:e,rank:l(e.path,"/")})),o=a(i,(e,t)=>e.rank-t.rank||c(e.uri.path,t.uri.path)),h=[];e:for(const e of o){let t;for(const r of e){const e=u(r.uri.path);if(t!==e&&(t=e,h.push(r.uri)>=d._maxEventSize))break e}}this.proxy.$onDidChange(r,h)});return(0,n.toDisposable)(()=>{null==i||i.dispose(),this.proxy.$unregisterDecorationProvider(r),this._provider.delete(r)})}$provideFileDecorations(e,t){const r=Object.create(null);return Promise.all(e.map(e=>{const{handle:i,uri:s,id:a}=e,c=this._provider.get(i);if(!c)return;const{provider:l,extensionId:u}=c;return function(e){return!!e.onDidChangeFileDecorations||!!e.provideFileDecoration}(l)?Promise.resolve(l.provideFileDecoration(n.Uri.revive(s),t)).then(e=>{var t;if(e)try{r[a]=[null!==(t=e.propagate)&&void 0!==t&&t,e.tooltip,e.badge,e.color],o.FileDecoration.validate(e)}catch(e){this.logger.warn(`INVALID decoration from extension '${u}'. ${e}`)}},e=>{this.logger.error(e)}):void 0})).then(()=>r)}}t.ExtHostDecorations=d,d._handlePool=0,d._maxEventSize=250},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtHostEditorTabs=void 0;const n=r(0),i=r(7);t.ExtHostEditorTabs=class{get tabs(){return this._tabs}constructor(e){this._onDidChangeTabs=new n.Emitter,this.onDidChangeTabs=this._onDidChangeTabs.event,this._tabs=[],this._proxy=e.getProxy(i.MainThreadAPIIdentifier.MainThreadEditorTabs)}$acceptEditorTabs(e){this._tabs=e.map(e=>({name:e.name,group:e.group,resource:n.Uri.parse(e.resource),isActive:e.isActive})),this._onDidChangeTabs.fire()}}},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.ExtHostFileSystem=t.convertToVSCFileStat=void 0;const n=r(1),i=r(0),o=r(244),s=r(7),a=n.__importStar(r(651));t.convertToVSCFileStat=function(e){return{type:e.type||0,ctime:e.createTime||-1,mtime:e.lastModification,size:e.size||0}};class c{constructor(e,t){this._proxy=e,this._fileSystemInfo=t}stat(e){return this._proxy.$stat(e).catch(c._handleError)}readDirectory(e){return this._proxy.$readdir(e).catch(c._handleError)}createDirectory(e){return this._proxy.$mkdir(e).catch(c._handleError)}async readFile(t){return this._proxy.$readFile(t).then(t=>e.from(t)).catch(c._handleError)}writeFile(e,t){return this._proxy.$writeFile(e,t).catch(c._handleError)}delete(e,t){return this._proxy.$delete(e,Object.assign({recursive:!1,useTrash:!1},t)).catch(c._handleError)}rename(e,t,r){return this._proxy.$rename(e,t,Object.assign({overwrite:!1},r)).catch(c._handleError)}copy(e,t,r){return this._proxy.$copy(e,t,Object.assign({overwrite:!1},r)).catch(c._handleError)}isWritableFileSystem(e){const t=this._fileSystemInfo.getCapabilities(e);if("number"==typeof t)return!(2048&t)}static _handleError(e){if(!(e instanceof Error))throw new a.FileSystemError(String(e));if("ENOPRO"===e.name)throw a.FileSystemError.Unavailable(e.message);switch(e.name){case a.FileSystemProviderErrorCode.FileExists:throw a.FileSystemError.FileExists(e.message);case a.FileSystemProviderErrorCode.FileNotFound:throw a.FileSystemError.FileNotFound(e.message);case a.FileSystemProviderErrorCode.FileNotADirectory:throw a.FileSystemError.FileNotADirectory(e.message);case a.FileSystemProviderErrorCode.FileIsADirectory:throw a.FileSystemError.FileIsADirectory(e.message);case a.FileSystemProviderErrorCode.NoPermissions:throw a.FileSystemError.NoPermissions(e.message);case a.FileSystemProviderErrorCode.Unavailable:throw a.FileSystemError.Unavailable(e.message);default:throw new a.FileSystemError(e.message,e.name)}}}class l{constructor(e,t){this.rpcProtocol=e,this._fileSystemInfo=t,this._fsProvider=new Map,this._usedSchemes=new Set,this._watches=new Map,this._handlePool=0,this._proxy=this.rpcProtocol.getProxy(s.MainThreadAPIIdentifier.MainThreadFileSystem),this.fileSystem=new c(this._proxy,this._fileSystemInfo),Object.keys(i.Schemes).forEach(e=>this._usedSchemes.add(e))}registerFileSystemProvider(e,t,r={}){if(this._usedSchemes.has(e))throw new Error(`a provider for the scheme '${e}' is already registered`);const n=this._handlePool++;this._usedSchemes.add(e),this._fsProvider.set(n,t);let s=2;r.isCaseSensitive&&(s+=1024),r.isReadonly&&(s+=2048),"function"==typeof t.copy&&(s+=8),this._proxy.$registerFileSystemProvider(n,e,s);const c=t.onDidChangeFile(t=>{const r=[];for(const n of t){const{uri:t,type:i}=n;if(t.scheme!==e)continue;let s;switch(i){case a.FileChangeType.Changed:s=o.FileChangeType.UPDATED;break;case a.FileChangeType.Created:s=o.FileChangeType.ADDED;break;case a.FileChangeType.Deleted:s=o.FileChangeType.DELETED;break;default:throw new Error("Unknown FileChangeType")}r.push({uri:t.toString(),type:s})}this._proxy.$onFileSystemChange(n,r)});return(0,i.toDisposable)(()=>{c.dispose(),this._usedSchemes.delete(e),this._fsProvider.delete(n),this._proxy.$unregisterProvider(n)})}static _asIStat(e){const{type:t,ctime:r,mtime:n,size:i,permissions:o}=e;return{type:t,ctime:r,mtime:n,size:i,permissions:o}}$stat(e,t){return Promise.resolve(this._getFsProvider(e).stat(i.URI.revive(t))).then(l._asIStat)}$readdir(e,t){return Promise.resolve(this._getFsProvider(e).readDirectory(i.URI.revive(t)))}$readFile(e,t){return Promise.resolve(this._getFsProvider(e).readFile(i.URI.revive(t))).then(e=>e)}$writeFile(e,t,r,n){return Promise.resolve(this._getFsProvider(e).writeFile(i.URI.revive(t),r,n))}$delete(e,t,r){return Promise.resolve(this._getFsProvider(e).delete(i.URI.revive(t),r))}$rename(e,t,r,n){return Promise.resolve(this._getFsProvider(e).rename(i.URI.revive(t),i.URI.revive(r),n))}$copy(e,t,r,n){const o=this._getFsProvider(e);if(!o.copy)throw new Error('FileSystemProvider does not implement "copy"');return Promise.resolve(o.copy(i.URI.revive(t),i.URI.revive(r),n))}$mkdir(e,t){return Promise.resolve(this._getFsProvider(e).createDirectory(i.URI.revive(t)))}$watch(e,t,r,n){const o=this._getFsProvider(e).watch(i.URI.revive(r),n);this._watches.set(t,o)}$unwatch(e,t){const r=this._watches.get(t);r&&(r.dispose(),this._watches.delete(t))}_getFsProvider(e){const t=this._fsProvider.get(e);if(!t){const e=new Error;throw e.name="ENOPRO",e.message="no provider",e}return t}}t.ExtHostFileSystem=l}).call(this,r(12).Buffer)},function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.FileSystemError=t.markAsFileSystemProviderError=t.FileSystemProviderErrorCode=t.FilePermission=t.FileType=t.FileChangeType=void 0;const i=r(1),o=r(0);var s;function a(e,t){return e.name=t?t+" (FileSystemError)":"FileSystemError",e}!function(e){e[e.Changed=1]="Changed",e[e.Created=2]="Created",e[e.Deleted=3]="Deleted"}(t.FileChangeType||(t.FileChangeType={})),function(e){e[e.Unknown=0]="Unknown",e[e.File=1]="File",e[e.Directory=2]="Directory",e[e.SymbolicLink=64]="SymbolicLink"}(t.FileType||(t.FileType={})),function(e){e[e.Readonly=1]="Readonly"}(t.FilePermission||(t.FilePermission={})),function(e){e.FileExists="EntryExists",e.FileNotFound="EntryNotFound",e.FileNotADirectory="EntryNotADirectory",e.FileIsADirectory="EntryIsADirectory",e.NoPermissions="NoPermissions",e.Unavailable="Unavailable",e.Unknown="Unknown"}(s=t.FileSystemProviderErrorCode||(t.FileSystemProviderErrorCode={})),t.markAsFileSystemProviderError=a;let c=n=class extends Error{static FileExists(e){return new n(e,s.FileExists,n.FileExists)}static FileNotFound(e){return new n(e,s.FileNotFound,n.FileNotFound)}static FileNotADirectory(e){return new n(e,s.FileNotADirectory,n.FileNotADirectory)}static FileIsADirectory(e){return new n(e,s.FileIsADirectory,n.FileIsADirectory)}static NoPermissions(e){return new n(e,s.NoPermissions,n.NoPermissions)}static Unavailable(e){return new n(e,s.Unavailable,n.Unavailable)}constructor(e,t=s.Unknown,r){var i;super(o.Uri.isUri(e)?e.toString(!0):e),this.code=null!==(i=null==r?void 0:r.name)&&void 0!==i?i:"Unknown",a(this,t),"function"==typeof Object.setPrototypeOf&&Object.setPrototypeOf(this,n.prototype),"function"==typeof Error.captureStackTrace&&"function"==typeof r&&Error.captureStackTrace(this,r)}};c=n=i.__decorate([o.es5ClassCompat,i.__metadata("design:paramtypes",[Object,String,Function])],c),t.FileSystemError=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtHostFileSystemEvent=void 0;const n=r(1),i=r(0),o=r(7),s=n.__importStar(r(5)),a=r(4);class c{get ignoreCreateEvents(){return Boolean(1&this._config)}get ignoreChangeEvents(){return Boolean(2&this._config)}get ignoreDeleteEvents(){return Boolean(4&this._config)}constructor(e,t,r,n,o){this._onDidCreate=new i.Emitter,this._onDidChange=new i.Emitter,this._onDidDelete=new i.Emitter,this._config=0,r&&(this._config+=1),n&&(this._config+=2),o&&(this._config+=4);const s=(0,i.parseGlob)(t),a=e(e=>{if(!r)for(const t of e.created){const e=i.URI.revive(t);s(e.fsPath)&&this._onDidCreate.fire(e)}if(!n)for(const t of e.changed){const e=i.URI.revive(t);s(e.fsPath)&&this._onDidChange.fire(e)}if(!o)for(const t of e.deleted){const e=i.URI.revive(t);s(e.fsPath)&&this._onDidDelete.fire(e)}});this._disposable=new i.Disposable(this._onDidCreate,this._onDidChange,this._onDidDelete,a)}dispose(){this._disposable.dispose()}get onDidCreate(){return this._onDidCreate.event}get onDidChange(){return this._onDidChange.event}get onDidDelete(){return this._onDidDelete.event}}t.ExtHostFileSystemEvent=class{constructor(e,t){this.rpcProtocol=e,this._extHostDocumentsAndEditors=t,this._onFileSystemEvent=new i.Emitter,this._onDidRenameFile=new i.Emitter,this._onDidCreateFile=new i.Emitter,this._onDidDeleteFile=new i.Emitter,this._onWillRenameFile=new i.AsyncEmitter,this._onWillCreateFile=new i.AsyncEmitter,this._onWillDeleteFile=new i.AsyncEmitter,this.onDidRenameFile=this._onDidRenameFile.event,this.onDidCreateFile=this._onDidCreateFile.event,this.onDidDeleteFile=this._onDidDeleteFile.event,this.logger=(0,i.getDebugLogger)(),this._proxy=this.rpcProtocol.getProxy(o.MainThreadAPIIdentifier.MainThreadWorkspace)}createFileSystemWatcher(e,t,r,n){return new c(this._onFileSystemEvent.event,e,t,r,n)}$onFileEvent(e){this._onFileSystemEvent.fire(e)}$onDidRunFileOperation(e,t){switch(e){case 2:this._onDidRenameFile.fire(Object.freeze({files:t.map(e=>({oldUri:i.URI.revive(e.source),newUri:i.URI.revive(e.target)}))}));break;case 1:this._onDidDeleteFile.fire(Object.freeze({files:t.map(e=>i.URI.revive(e.target))}));break;case 0:this._onDidCreateFile.fire(Object.freeze({files:t.map(e=>i.URI.revive(e.target))}))}}getOnWillRenameFileEvent(e){return this._createWillExecuteEvent(e,this._onWillRenameFile)}getOnWillCreateFileEvent(e){return this._createWillExecuteEvent(e,this._onWillCreateFile)}getOnWillDeleteFileEvent(e){return this._createWillExecuteEvent(e,this._onWillDeleteFile)}_createWillExecuteEvent(e,t){return(r,n,i)=>{const o=function(e){r.call(n,e)};return o.extension=e,t.event(o,void 0,i)}}async $onWillRunFileOperation(e,t,r,n){switch(e){case 2:return await this._fireWillEvent(this._onWillRenameFile,{files:t.map(e=>({oldUri:i.URI.revive(e.source),newUri:i.URI.revive(e.target)})),token:n},r,n);case 1:return await this._fireWillEvent(this._onWillDeleteFile,{files:t.map(e=>i.URI.revive(e.target)),token:n},r,n);case 0:return await this._fireWillEvent(this._onWillCreateFile,{files:t.map(e=>i.URI.revive(e.target)),token:n},r,n);default:return}}async _fireWillEvent(e,t,r,n){const i=new Set,o=[];if(await e.fireAsync(t,n,async(e,t)=>{var n,s;const c=Date.now(),l=await Promise.resolve(e);l instanceof a.WorkspaceEdit&&(o.push(l),i.add(null!==(n=t.extension.displayName)&&void 0!==n?n:t.extension.identifier.value)),Date.now()-c>r&&this.logger.log("SLOW file-participant",null===(s=t.extension)||void 0===s?void 0:s.id)}),!n.isCancellationRequested&&0!==o.length&&o.length>0){const e={edits:[]};for(const t of o){const{edits:r}=s.WorkspaceEdit.from(t,this._extHostDocumentsAndEditors);e.edits=e.edits.concat(r)}return{edit:e,extensionNames:Array.from(i)}}}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtHostFileSystemInfo=void 0;const n=r(0);t.ExtHostFileSystemInfo=class{constructor(){this._systemSchemes=new Set(Object.keys(n.Schemes)),this._providerInfo=new Map}$acceptProviderInfos(e,t){null===t?this._providerInfo.delete(e):this._providerInfo.set(e,t)}isFreeScheme(e){return!this._providerInfo.has(e)&&!this._systemSchemes.has(e)}getCapabilities(e){return this._providerInfo.get(e)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtHostLanguages=t.createLanguagesApiFactory=void 0;const n=r(1),i=r(0),o=r(7),s=n.__importStar(r(5)),a=r(4),c=r(27),l=r(655),u=r(656),d=r(657),h=r(658),f=r(659),p=r(660),g=r(661),m=r(662),b=r(663),v=r(664),y=r(665),_=r(666),w=r(667),C=r(668),k=r(669),E=r(670),S=r(671),D=r(672),x=r(673),T=r(674),A=r(675),I=r(676),O=r(677),R=r(678),M=r(679),B=r(681),P=r(682),F=r(683),L=r(23),N=r(684);t.createLanguagesApiFactory=function(e,t){return{getLanguages:()=>e.getLanguages(),registerHoverProvider:(r,n)=>e.registerHoverProvider(r,n,t),registerCompletionItemProvider:(r,n,...i)=>e.registerCompletionItemProvider(r,n,i,t),registerInlineCompletionItemProvider:(r,n)=>e.registerInlineCompletionsProvider(r,n,t),registerDefinitionProvider:(r,n)=>e.registerDefinitionProvider(r,n,t),registerTypeDefinitionProvider:(r,n)=>e.registerTypeDefinitionProvider(r,n,t),registerFoldingRangeProvider:(r,n)=>e.registerFoldingRangeProvider(r,n,t),registerColorProvider:(r,n)=>e.registerColorProvider(r,n,t),registerDocumentHighlightProvider:(r,n)=>e.registerDocumentHighlightProvider(r,n,t),registerDocumentLinkProvider:(r,n)=>e.registerDocumentLinkProvider(r,n,t),registerReferenceProvider:(r,n)=>e.registerReferenceProvider(r,n,t),match:(e,t)=>(0,L.score)(s.fromLanguageSelector(e),t.uri,t.languageId,!0),setLanguageConfiguration:(t,r)=>e.setLanguageConfiguration(t,r),setTextDocumentLanguage:(t,r)=>e.changeLanguage(t.uri,r),createDiagnosticCollection:t=>e.createDiagnosticCollection(t),get onDidChangeDiagnostics(){return e.onDidChangeDiagnostics},getDiagnostics:t=>e.getDiagnostics(t),registerWorkspaceSymbolProvider:r=>e.registerWorkspaceSymbolProvider(r,t),registerDocumentSymbolProvider:(r,n)=>e.registerDocumentSymbolProvider(r,n,t),registerImplementationProvider:(r,n)=>e.registerImplementationProvider(r,n,t),registerDeclarationProvider:(r,n)=>e.registerDeclarationProvider(r,n,t),registerCodeActionsProvider:(r,n,i)=>e.registerCodeActionsProvider(t,r,n,i),registerRenameProvider:(r,n)=>e.registerRenameProvider(r,n,t),registerSignatureHelpProvider:(r,n,i,...o)=>"object"==typeof i?e.registerSignatureHelpProvider(r,n,i,t):e.registerSignatureHelpProvider(r,n,void 0===i?[]:[i,...o],t),registerCodeLensProvider:(r,n)=>e.registerCodeLensProvider(r,n,t),registerOnTypeFormattingEditProvider:(r,n,i,...o)=>e.registerOnTypeFormattingEditProvider(r,n,[i].concat(o),t),registerDocumentRangeFormattingEditProvider:(r,n)=>e.registerDocumentRangeFormattingEditProvider(t,r,n),registerDocumentFormattingEditProvider:(r,n)=>e.registerDocumentFormattingEditProvider(t,r,n),registerSelectionRangeProvider:(r,n)=>e.registerSelectionRangeProvider(r,n,t),registerCallHierarchyProvider:(r,n)=>e.registerCallHierarchyProvider(r,n,t),registerTypeHierarchyProvider:(r,n)=>e.registerTypeHierarchyProvider(r,n,t),registerDocumentSemanticTokensProvider:(r,n,i)=>e.registerDocumentSemanticTokensProvider(r,n,i,t),registerDocumentRangeSemanticTokensProvider:(r,n,i)=>e.registerDocumentRangeSemanticTokensProvider(t,r,n,i),registerEvaluatableExpressionProvider:(r,n)=>e.registerEvaluatableExpressionProvider(t,r,n),registerInlineValuesProvider:(r,n)=>e.registerInlineValuesProvider(t,r,n),registerLinkedEditingRangeProvider:(r,n)=>e.registerLinkedEditingRangeProvider(t,r,n),registerInlayHintsProvider:(r,n)=>e.registerInlayHintsProvider(t,r,n),createLanguageStatusItem:(r,n)=>e.createLanguageStatusItem(t,r,n)}};class j{constructor(e,t,r,n){this.documents=t,this.commands=r,this.logService=n,this.callId=0,this._adapter=new Map,this._handlePool=0,this._ids=new Set,this.rpcProtocol=e,this.proxy=this.rpcProtocol.getProxy(o.MainThreadAPIIdentifier.MainThreadLanguages),this.diagnostics=new g.Diagnostics(this.proxy)}$resolveCodeAction(e,t,r){return this.withAdapter(e,u.CodeActionAdapter,e=>e.resolveCodeAction(t,r),!1,void 0)}$releaseCodeActions(e,t){this.withAdapter(e,u.CodeActionAdapter,e=>Promise.resolve(e.releaseCodeActions(t)),!1,void 0)}nextCallId(){return this.callId++}createDisposable(e){return new a.Disposable(()=>{this._adapter.delete(e),this.proxy.$unregister(e)})}addNewAdapter(e,t){const r=this.nextCallId();return this._adapter.set(r,{adapter:e,extension:t}),r}static _extLabel(e){return e.displayName||e.name}withAdapter(e,t,r,n=!1,i){const o=this._adapter.get(e);if(!(o&&o.adapter&&o.adapter instanceof t))return Promise.resolve(i);const s=r(o.adapter,o.extension);return s.catch(e=>{n&&e instanceof a.CancellationError||this.logService.error(e)}),s}withDurationRecord(e){const t=(0,L.getDurationTimer)();return e().then(e=>({_dur:t.end(),result:e}))}transformDocumentSelector(e){return Array.isArray(e)?e.map(e=>this.doTransformDocumentSelector(e)):[this.doTransformDocumentSelector(e)]}doTransformDocumentSelector(e){return"string"==typeof e?{$serialized:!0,language:e}:e?{$serialized:!0,language:e.language,scheme:e.scheme,pattern:e.pattern}:void 0}async getLanguages(){return this.proxy.$getLanguages()}async changeLanguage(e,t){await this.proxy.$changeLanguage(e,t);const r=this.documents.getDocumentData(e);if(!r)throw new Error(`document '${e.toString()}' NOT found`);return r.document}registerHoverProvider(e,t,r){const n=this.addNewAdapter(new y.HoverAdapter(t,this.documents),r);return this.proxy.$registerHoverProvider(n,this.transformDocumentSelector(e)),this.createDisposable(n)}$provideHover(e,t,r,n){return this.withAdapter(e,y.HoverAdapter,e=>e.provideHover(t,r,n),!1,void 0)}$provideHoverWithDuration(e,t,r,n){return this.withDurationRecord(()=>this.$provideHover(e,t,r,n))}$provideCompletionItems(e,t,r,n,i){return this.withAdapter(e,h.CompletionAdapter,e=>e.provideCompletionItems(t,r,n,i),!1,void 0)}$resolveCompletionItem(e,t,r){return this.withAdapter(e,h.CompletionAdapter,e=>e.resolveCompletionItem(t,r),!1,void 0)}$releaseCompletionItems(e,t){this.withAdapter(e,h.CompletionAdapter,e=>e.releaseCompletionItems(t),!1,void 0)}registerCompletionItemProvider(e,t,r,n){const i=this.addNewAdapter(new h.CompletionAdapter(t,this.commands.converter,this.documents),n);return this.proxy.$registerCompletionSupport(i,this.transformDocumentSelector(e),r,h.CompletionAdapter.hasResolveSupport(t)),this.createDisposable(i)}registerInlineCompletionsProvider(e,t,r){const n=this.addNewAdapter(new k.InlineCompletionAdapter(this.documents,t,this.commands.converter),r);return this.proxy.$registerInlineCompletionsSupport(n,this.transformDocumentSelector(e),!0),this.createDisposable(n)}$provideInlineCompletions(e,t,r,n,o){return this.withAdapter(e,k.InlineCompletionAdapterBase,e=>e.provideInlineCompletions(i.Uri.revive(t),r,n,o),void 0,void 0)}$handleInlineCompletionDidShow(e,t,r){this.withAdapter(e,k.InlineCompletionAdapterBase,async e=>{e.handleDidShowCompletionItem(t,r)},void 0,void 0)}$freeInlineCompletionsList(e,t){this.withAdapter(e,k.InlineCompletionAdapterBase,async e=>{e.disposeCompletions(t)},void 0,void 0)}$provideDefinition(e,t,r,n){return this.withAdapter(e,p.DefinitionAdapter,e=>e.provideDefinition(t,r,n),!1,void 0)}$provideDefinitionWithDuration(e,t,r,n){return this.withDurationRecord(()=>this.$provideDefinition(e,t,r,n))}registerDefinitionProvider(e,t,r){const n=this.addNewAdapter(new p.DefinitionAdapter(t,this.documents),r);return this.proxy.$registerDefinitionProvider(n,this.transformDocumentSelector(e)),this.createDisposable(n)}$provideTypeDefinition(e,t,r,n){return this.withAdapter(e,P.TypeDefinitionAdapter,e=>e.provideTypeDefinition(t,r,n),!1,void 0)}$provideTypeDefinitionWithDuration(e,t,r,n){return this.withDurationRecord(()=>this.$provideTypeDefinition(e,t,r,n))}registerTypeDefinitionProvider(e,t,r){const n=this.addNewAdapter(new P.TypeDefinitionAdapter(t,this.documents),r);return this.proxy.$registerTypeDefinitionProvider(n,this.transformDocumentSelector(e)),this.createDisposable(n)}registerFoldingRangeProvider(e,t,r){const n=this.addNewAdapter(new v.FoldingProviderAdapter(this.documents,t),r),i="function"==typeof t.onDidChangeFoldingRanges?this.nextCallId():void 0;this.proxy.$registerFoldingRangeProvider(n,this.transformDocumentSelector(e),i);let o=this.createDisposable(n);if(void 0!==i){const e=t.onDidChangeFoldingRanges(()=>this.proxy.$emitFoldingRangeEvent(i));o=a.Disposable.from(o,e)}return o}$provideFoldingRange(e,t,r,n){return this.withAdapter(e,v.FoldingProviderAdapter,e=>e.provideFoldingRanges(t,r,n),!1,void 0)}registerColorProvider(e,t,r){const n=this.addNewAdapter(new d.ColorProviderAdapter(this.documents,t),r);return this.proxy.$registerDocumentColorProvider(n,this.transformDocumentSelector(e)),this.createDisposable(n)}$provideDocumentColors(e,t,r){return this.withAdapter(e,d.ColorProviderAdapter,e=>e.provideColors(t,r),!1,[])}$provideColorPresentations(e,t,r,n){return this.withAdapter(e,d.ColorProviderAdapter,e=>e.provideColorPresentations(t,r,n),!1,[])}registerDocumentHighlightProvider(e,t,r){const n=this.addNewAdapter(new m.DocumentHighlightAdapter(t,this.documents),r);return this.proxy.$registerDocumentHighlightProvider(n,this.transformDocumentSelector(e)),this.createDisposable(n)}$provideDocumentHighlights(e,t,r,n){return this.withAdapter(e,m.DocumentHighlightAdapter,e=>e.provideDocumentHighlights(t,r,n),!1,void 0)}registerDocumentFormattingEditProvider(e,t,r){const n=this.addNewAdapter(new A.FormattingAdapter(r,this.documents),e);return this.proxy.$registerDocumentFormattingProvider(n,e,this.transformDocumentSelector(t)),this.createDisposable(n)}$provideDocumentFormattingEdits(e,t,r){return this.withAdapter(e,A.FormattingAdapter,e=>e.provideDocumentFormattingEdits(t,r),!1,void 0)}registerDocumentRangeFormattingEditProvider(e,t,r){const n=this.addNewAdapter(new A.RangeFormattingAdapter(r,this.documents),e);return this.proxy.$registerRangeFormattingProvider(n,e,this.transformDocumentSelector(t)),this.createDisposable(n)}$provideDocumentRangeFormattingEdits(e,t,r,n){return this.withAdapter(e,A.RangeFormattingAdapter,e=>e.provideDocumentRangeFormattingEdits(t,r,n),!1,void 0)}registerOnTypeFormattingEditProvider(e,t,r,n){const i=this.addNewAdapter(new x.OnTypeFormattingAdapter(t,this.documents),n);return this.proxy.$registerOnTypeFormattingProvider(i,this.transformDocumentSelector(e),r),this.createDisposable(i)}$provideOnTypeFormattingEdits(e,t,r,n,i){return this.withAdapter(e,x.OnTypeFormattingAdapter,e=>e.provideOnTypeFormattingEdits(t,r,n,i),!1,void 0)}$provideOnTypeFormattingEditsWithDuration(e,t,r,n,i){return this.withDurationRecord(()=>this.$provideOnTypeFormattingEdits(e,t,r,n,i))}registerCodeLensProvider(e,t,r){const n=this.addNewAdapter(new E.CodeLensAdapter(t,this.documents,this.commands.converter),r),i="function"==typeof t.onDidChangeCodeLenses?this.nextCallId():void 0;this.proxy.$registerCodeLensSupport(n,this.transformDocumentSelector(e),i);let o=this.createDisposable(n);if(void 0!==i&&t.onDidChangeCodeLenses){const e=t.onDidChangeCodeLenses(e=>this.proxy.$emitCodeLensEvent(i));o=a.Disposable.from(o,e)}return o}$provideCodeLenses(e,t,r){return this.withAdapter(e,E.CodeLensAdapter,e=>e.provideCodeLenses(t,r),!1,void 0)}$resolveCodeLens(e,t,r){return this.withAdapter(e,E.CodeLensAdapter,e=>e.resolveCodeLens(t,r),!1,void 0)}$releaseCodeLens(e,t){return this.withAdapter(e,E.CodeLensAdapter,e=>Promise.resolve(e.releaseCodeLens(t)),!1,void 0)}registerCodeActionsProvider(e,t,r,n){var o,s;const a=new i.DisposableStore,c=this.addNewAdapter(new u.CodeActionAdapter(r,this.documents,this.diagnostics),e);return this.proxy.$registerQuickFixProvider(c,this.transformDocumentSelector(t),{providedKinds:null===(o=null==n?void 0:n.providedCodeActionKinds)||void 0===o?void 0:o.map(e=>e.value),documentation:null===(s=null==n?void 0:n.documentation)||void 0===s?void 0:s.map(e=>({kind:e.kind.value,command:this.commands.converter.toInternal(e.command,a)}))},e.displayName||e.name,Boolean(r.resolveCodeAction)),this.createDisposable(c)}$provideCodeActions(e,t,r,n,i){return this.withAdapter(e,u.CodeActionAdapter,e=>e.provideCodeAction(t,r,n,this.commands.converter,i),!1,void 0)}$provideImplementation(e,t,r){return this.withAdapter(e,_.ImplementationAdapter,e=>e.provideImplementation(t,r),!1,void 0)}$provideImplementationWithDuration(e,t,r){return this.withDurationRecord(()=>this.$provideImplementation(e,t,r))}registerImplementationProvider(e,t,r){const n=this.addNewAdapter(new _.ImplementationAdapter(t,this.documents),r);return this.proxy.$registerImplementationProvider(n,this.transformDocumentSelector(e)),this.createDisposable(n)}registerDeclarationProvider(e,t,r){const n=this.addNewAdapter(new f.DeclarationAdapter(t,this.documents),r);return this.proxy.$registerDeclarationProvider(n,this.transformDocumentSelector(e)),this.createDisposable(n)}get onDidChangeDiagnostics(){return this.diagnostics.onDidChangeDiagnostics}getDiagnostics(e){return this.diagnostics.getDiagnostics(e)}createDiagnosticCollection(e){return this.diagnostics.createDiagnosticCollection(e)}$provideDocumentLinks(e,t,r){return this.withAdapter(e,S.LinkProviderAdapter,e=>e.provideLinks(t,r),!1,void 0)}$resolveDocumentLink(e,t,r){return this.withAdapter(e,S.LinkProviderAdapter,e=>e.resolveLink(t,r),!1,void 0)}$releaseDocumentLinks(e,t){return this.withAdapter(e,S.LinkProviderAdapter,e=>Promise.resolve(e.releaseLink(t)),!1,void 0)}registerDocumentLinkProvider(e,t,r){const n=this.addNewAdapter(new S.LinkProviderAdapter(t,this.documents),r);return this.proxy.$registerDocumentLinkProvider(n,this.transformDocumentSelector(e),"function"==typeof t.resolveDocumentLink),this.createDisposable(n)}$provideReferences(e,t,r,n,i){return this.withAdapter(e,I.ReferenceAdapter,e=>e.provideReferences(t,r,n,i),!1,void 0)}$provideReferencesWithDuration(e,t,r,n,i){return this.withDurationRecord(()=>this.$provideReferences(e,t,r,n,i))}registerReferenceProvider(e,t,r){const n=this.addNewAdapter(new I.ReferenceAdapter(t,this.documents),r);return this.proxy.$registerReferenceProvider(n,this.transformDocumentSelector(e)),this.createDisposable(n)}setLanguageConfiguration(e,t){const{wordPattern:r}=t;r?this.documents.setWordDefinitionFor(e,r):this.documents.setWordDefinitionFor(e,void 0);const n=this.nextCallId(),i={brackets:t.brackets,comments:t.comments,onEnterRules:(0,c.serializeEnterRules)(t.onEnterRules),wordPattern:(0,c.serializeRegExp)(t.wordPattern),indentationRules:(0,c.serializeIndentation)(t.indentationRules)};return this.proxy.$setLanguageConfiguration(n,e,i),this.createDisposable(n)}registerDocumentSymbolProvider(e,t,r){const n=this.addNewAdapter(new T.OutlineAdapter(this.documents,t),r);return this.proxy.$registerOutlineSupport(n,this.transformDocumentSelector(e)),this.createDisposable(n)}$provideDocumentSymbols(e,t,r){return this.withAdapter(e,T.OutlineAdapter,e=>e.provideDocumentSymbols(t,r),!1,void 0)}registerWorkspaceSymbolProvider(e,t){const r=this.addNewAdapter(new N.WorkspaceSymbolAdapter(e),t);return this.proxy.$registerWorkspaceSymbolProvider(r),this.createDisposable(r)}$provideWorkspaceSymbols(e,t,r){return this.withAdapter(e,N.WorkspaceSymbolAdapter,e=>e.provideWorkspaceSymbols(t,r),!1,[])}$resolveWorkspaceSymbol(e,t,r){return this.withAdapter(e,N.WorkspaceSymbolAdapter,e=>e.resolveWorkspaceSymbol(t,r),!1,void 0)}$provideSignatureHelp(e,t,r,n,i){return this.withAdapter(e,B.SignatureHelpAdapter,e=>e.provideSignatureHelp(t,r,i,n),!1,void 0)}$releaseSignatureHelp(e,t){return this.withAdapter(e,B.SignatureHelpAdapter,e=>Promise.resolve(e.releaseSignatureHelp(t)),!1,void 0)}registerSignatureHelpProvider(e,t,r,n){const i=Array.isArray(r)?{triggerCharacters:r,retriggerCharacters:[]}:r,o=this.addNewAdapter(new B.SignatureHelpAdapter(t,this.documents),n);return this.proxy.$registerSignatureHelpProvider(o,this.transformDocumentSelector(e),i),this.createDisposable(o)}registerRenameProvider(e,t,r){const n=this.addNewAdapter(new O.RenameAdapter(t,this.documents),r);return this.proxy.$registerRenameProvider(n,this.transformDocumentSelector(e),O.RenameAdapter.supportsResolving(t)),this.createDisposable(n)}$provideRenameEdits(e,t,r,n,i){return this.withAdapter(e,O.RenameAdapter,e=>e.provideRenameEdits(t,r,n,i),!1,void 0)}$resolveRenameLocation(e,t,r,n){return this.withAdapter(e,O.RenameAdapter,e=>e.resolveRenameLocation(t,r,n),!1,void 0)}registerSelectionRangeProvider(e,t,r){const n=this.addNewAdapter(new R.SelectionRangeAdapter(this.documents,t),r);return this.proxy.$registerSelectionRangeProvider(n,this.transformDocumentSelector(e)),this.createDisposable(n)}$provideSelectionRanges(e,t,r,n){return this.withAdapter(e,R.SelectionRangeAdapter,e=>e.provideSelectionRanges(t,r,n),!1,[])}registerCallHierarchyProvider(e,t,r){const n=this.addNewAdapter(new l.CallHierarchyAdapter(this.documents,t),r);return this.proxy.$registerCallHierarchyProvider(n,this.transformDocumentSelector(e)),this.createDisposable(n)}$prepareCallHierarchy(e,t,r,n){return this.withAdapter(e,l.CallHierarchyAdapter,e=>Promise.resolve(e.prepareSession(i.Uri.revive(t),r,n)),!1,void 0)}$provideCallHierarchyIncomingCalls(e,t,r,n){return this.withAdapter(e,l.CallHierarchyAdapter,e=>e.provideCallsTo(t,r,n),!1,void 0)}$provideCallHierarchyOutgoingCalls(e,t,r,n){return this.withAdapter(e,l.CallHierarchyAdapter,e=>e.provideCallsFrom(t,r,n),!1,void 0)}$releaseCallHierarchy(e,t){this.withAdapter(e,l.CallHierarchyAdapter,e=>Promise.resolve(e.releaseSession(t)),!1,void 0)}registerTypeHierarchyProvider(e,t,r){const n=this.addNewAdapter(new F.TypeHierarchyAdapter(this.documents,t),r);return this.proxy.$registerTypeHierarchyProvider(n,this.transformDocumentSelector(e)),this.createDisposable(n)}$prepareTypeHierarchy(e,t,r,n){return this.withAdapter(e,F.TypeHierarchyAdapter,e=>Promise.resolve(e.prepareSession(i.Uri.revive(t),r,n)),!1,void 0)}$provideTypeHierarchySupertypes(e,t,r,n){return this.withAdapter(e,F.TypeHierarchyAdapter,e=>e.provideSupertypes(t,r,n),!1,void 0)}$provideTypeHierarchySubtypes(e,t,r,n){return this.withAdapter(e,F.TypeHierarchyAdapter,e=>e.provideSubtypes(t,r,n),!1,void 0)}$releaseTypeHierarchy(e,t){this.withAdapter(e,F.TypeHierarchyAdapter,e=>Promise.resolve(e.releaseSession(t)),!1,void 0)}registerDocumentSemanticTokensProvider(e,t,r,n){const i=this.addNewAdapter(new M.DocumentSemanticTokensAdapter(this.documents,t),n);return this.proxy.$registerDocumentSemanticTokensProvider(i,this.transformDocumentSelector(e),r),this.createDisposable(i)}$provideDocumentSemanticTokens(e,t,r,n){return this.withAdapter(e,M.DocumentSemanticTokensAdapter,e=>e.provideDocumentSemanticTokens(i.Uri.revive(t),r,n),!0,null)}$releaseDocumentSemanticTokens(e,t){this.withAdapter(e,M.DocumentSemanticTokensAdapter,e=>e.releaseDocumentSemanticColoring(t),!1,void 0)}registerDocumentRangeSemanticTokensProvider(e,t,r,n){const i=this.addNewAdapter(new M.DocumentRangeSemanticTokensAdapter(this.documents,r),e);return this.proxy.$registerDocumentRangeSemanticTokensProvider(i,this.transformDocumentSelector(t),n),this.createDisposable(i)}$provideDocumentRangeSemanticTokens(e,t,r,n){return this.withAdapter(e,M.DocumentRangeSemanticTokensAdapter,e=>e.provideDocumentRangeSemanticTokens(i.Uri.revive(t),r,n),!1,null)}registerEvaluatableExpressionProvider(e,t,r){const n=this.addNewAdapter(new b.EvaluatableExpressionAdapter(this.documents,r),e);return this.proxy.$registerEvaluatableExpressionProvider(n,this.transformDocumentSelector(t)),this.createDisposable(n)}$provideEvaluatableExpression(e,t,r,n){return this.withAdapter(e,b.EvaluatableExpressionAdapter,e=>e.provideEvaluatableExpression(i.Uri.revive(t),r,n),!1,void 0)}registerInlineValuesProvider(e,t,r){const n="function"==typeof r.onDidChangeInlineValues?this.nextCallId():void 0,i=this.addNewAdapter(new C.InlineValuesAdapter(this.documents,r),e);this.proxy.$registerInlineValuesProvider(i,this.transformDocumentSelector(t),n);let o=this.createDisposable(i);if(void 0!==n){const e=r.onDidChangeInlineValues(e=>this.proxy.$emitInlineValuesEvent(n));o=a.Disposable.from(o,e)}return o}$provideInlineValues(e,t,r,n,o){return this.withAdapter(e,C.InlineValuesAdapter,e=>e.provideInlineValues(i.Uri.revive(t),r,n,o),!1,void 0)}registerLinkedEditingRangeProvider(e,t,r){const n=this.addNewAdapter(new D.LinkedEditingRangeAdapter(this.documents,r),e);return this.proxy.$registerLinkedEditingRangeProvider(n,this.transformDocumentSelector(t)),this.createDisposable(n)}$provideLinkedEditingRanges(e,t,r,n){return this.withAdapter(e,D.LinkedEditingRangeAdapter,async e=>{const o=await e.provideLinkedEditingRanges(i.Uri.revive(t),r,n);if(o)return{ranges:o.ranges,wordPattern:o.wordPattern?(0,c.serializeRegExp)(o.wordPattern):void 0}},!1,void 0)}registerInlayHintsProvider(e,t,r){const n="function"==typeof r.onDidChangeInlayHints?this.nextCallId():void 0,i=this.addNewAdapter(new w.InlayHintsAdapter(this.documents,r,this.commands.converter),e);this.proxy.$registerInlayHintsProvider(i,this.transformDocumentSelector(t),"function"==typeof r.resolveInlayHint,n,j._extLabel(e));let o=this.createDisposable(i);if(void 0!==n){const e=r.onDidChangeInlayHints(()=>this.proxy.$emitInlayHintsEvent(n));o=a.Disposable.from(o,e)}return o}$provideInlayHints(e,t,r,n){return this.withAdapter(e,w.InlayHintsAdapter,e=>e.provideInlayHints(i.Uri.revive(t),r,n),!1,void 0)}$resolveInlayHint(e,t,r){return this.withAdapter(e,w.InlayHintsAdapter,e=>e.resolveInlayHint(t,r),!0,void 0)}$releaseInlayHints(e,t){this.withAdapter(e,w.InlayHintsAdapter,e=>e.releaseHints(t),!1,void 0)}createLanguageStatusItem(e,t,r){var n;const o=this._handlePool++,c=this.proxy,l=this._ids,u=`${e.identifier.value}/${t}`;if(l.has(u))throw new Error(`LanguageStatusItem with id '${t}' ALREADY exists`);l.add(u);const d={selector:r,id:t,name:null!==(n=e.displayName)&&void 0!==n?n:e.name,severity:a.LanguageStatusSeverity.Information,command:void 0,text:"",detail:"",busy:!1};let h;const f=new i.DisposableStore,p=()=>{null==h||h.dispose(),h=(0,i.disposableTimeout)(()=>{var t,r,n,c;f.clear(),this.proxy.$setLanguageStatus(o,{id:u,name:null!==(r=null!==(t=d.name)&&void 0!==t?t:e.displayName)&&void 0!==r?r:e.name,source:null!==(n=e.displayName)&&void 0!==n?n:e.name,selector:s.DocumentSelector.from(d.selector),label:d.text,detail:null!==(c=d.detail)&&void 0!==c?c:"",severity:d.severity===a.LanguageStatusSeverity.Error?i.Severity.Error:d.severity===a.LanguageStatusSeverity.Warning?i.Severity.Warning:i.Severity.Info,command:d.command&&this.commands.converter.toInternal(d.command,f),accessibilityInfo:d.accessibilityInformation,busy:d.busy})},0)},g={dispose(){f.dispose(),null==h||h.dispose(),c.$removeLanguageStatus(o),l.delete(u)},get id(){return d.id},get name(){return d.name},set name(e){d.name=e,p()},get selector(){return d.selector},set selector(e){d.selector=e,p()},get text(){return d.text},set text(e){d.text=e,p()},get detail(){return d.detail},set detail(e){d.detail=e,p()},get severity(){return d.severity},set severity(e){d.severity=e,p()},get accessibilityInformation(){return d.accessibilityInformation},set accessibilityInformation(e){d.accessibilityInformation=e,p()},get command(){return d.command},set command(e){d.command=e,p()},get busy(){return d.busy},set busy(e){d.busy=e,p()}};return p(),g}}t.ExtHostLanguages=j},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CallHierarchyAdapter=void 0;const n=r(1),i=r(253),o=n.__importStar(r(5));t.CallHierarchyAdapter=class{constructor(e,t){this.documents=e,this.provider=t,this._idPool=new i.IdGenerator(""),this._cache=new Map}async prepareSession(e,t,r){const n=this.documents.getDocumentData(e);if(!n)return Promise.reject(new Error("There is no document for "+e));const i=n.document,s=o.toPosition(t),a=await this.provider.prepareCallHierarchy(i,s,r);if(!a)return;const c=this._idPool.nextId();return this._cache.set(c,new Map),Array.isArray(a)?a.map(e=>this._cacheAndConvertItem(c,e)):[this._cacheAndConvertItem(c,a)]}async provideCallsTo(e,t,r){const n=this._itemFromCache(e,t);if(!n)throw new Error("missing call hierarchy item");const i=await this.provider.provideCallHierarchyIncomingCalls(n,r);if(i)return i.map(t=>({from:this._cacheAndConvertItem(e,t.from),fromRanges:t.fromRanges.map(e=>o.fromRange(e))}))}async provideCallsFrom(e,t,r){const n=this._itemFromCache(e,t);if(!n)throw new Error("missing call hierarchy item");const i=await this.provider.provideCallHierarchyOutgoingCalls(n,r);if(i)return i.map(t=>({to:this._cacheAndConvertItem(e,t.to),fromRanges:t.fromRanges.map(e=>o.fromRange(e))}))}releaseSession(e){this._cache.delete(e)}_cacheAndConvertItem(e,t){var r;const n=this._cache.get(e),i={_sessionId:e,_itemId:n.size.toString(36),name:t.name,detail:t.detail,kind:o.SymbolKind.fromSymbolKind(t.kind),uri:t.uri,range:o.fromRange(t.range),selectionRange:o.fromRange(t.selectionRange),tags:null===(r=t.tags)||void 0===r?void 0:r.map(o.SymbolTag.from)};return n.set(i._itemId,t),i}_itemFromCache(e,t){const r=this._cache.get(e);return null==r?void 0:r.get(t)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeActionAdapter=void 0;const n=r(1),i=r(0),o=r(0),s=n.__importStar(r(5)),a=r(4);class c{constructor(e,t,r){this.provider=e,this.document=t,this.diagnostics=r,this._cache=new i.Cache("CodeAction"),this._disposables=new Map}async provideCodeAction(e,t,r,n,i){const l=this.document.getDocumentData(e);if(!l)return Promise.reject(new Error("There are no document for "+e));const u=l.document,d=c._isSelection(t)?s.Selection.to(t):s.Range.to(t),h=[];for(const t of this.diagnostics.getDiagnostics(e))if(d.intersection(t.range)){if(h.push(t)>c._maxCodeActionsPerFile)break}const f={diagnostics:h,only:r.only?new a.CodeActionKind(r.only):void 0,triggerKind:s.CodeActionTriggerKind.to(r.trigger)};let p;const g=await Promise.resolve(this.provider.provideCodeActions(u,d,f,i)).then(e=>{var t;if(!Array.isArray(e)||0===e.length)return;p=this._cache.add(e);const r=new o.DisposableStore;this._disposables.set(p,r);const i=[];for(let o=0;o<e.length;o++){const a=e[o];a&&(c._isCommand(a)?i.push({title:a.title||"",command:n.toInternal(a,r)}):(f.only&&(a.kind?f.only.contains(a.kind)||console.warn(`Code actions of kind '${f.only.value}' requested but returned code action is of kind '${a.kind.value}'. Code action will be dropped. Please check 'CodeActionContext.only' to only return requested code action.`):console.warn(`Code actions of kind '${f.only.value}' requested but returned code action does not have a 'kind'. Code action will be dropped. Please set 'CodeAction.kind'.`)),i.push({cacheId:[p,o],title:a.title,command:a.command&&n.toInternal(a.command,r),diagnostics:a.diagnostics&&a.diagnostics.map(s.Diagnostic.toMarker),edit:a.edit&&s.WorkspaceEdit.from(a.edit),kind:a.kind&&a.kind.value,isPreferred:a.isPreferred,disabled:null===(t=a.disabled)||void 0===t?void 0:t.reason})))}return i});return g?{actions:g,cacheId:p}:void 0}async resolveCodeAction(e,t){var r;const[n,i]=e,o=this._cache.get(n,i);if(!o||c._isCommand(o))return;if(!this.provider.resolveCodeAction)return;const a=null!==(r=await this.provider.resolveCodeAction(o,t))&&void 0!==r?r:o;return(null==a?void 0:a.edit)?s.WorkspaceEdit.from(a.edit):void 0}releaseCodeActions(e){var t;null===(t=this._disposables.get(e))||void 0===t||t.dispose(),this._disposables.delete(e),this._cache.delete(e)}static _isCommand(e){return"string"==typeof e.command}static _isSelection(e){return e&&"number"==typeof e.selectionStartLineNumber&&"number"==typeof e.selectionStartColumn&&"number"==typeof e.positionLineNumber&&"number"==typeof e.positionColumn}}t.CodeActionAdapter=c,c._maxCodeActionsPerFile=1e3},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorProviderAdapter=void 0;const n=r(1).__importStar(r(5));t.ColorProviderAdapter=class{constructor(e,t){this.documents=e,this.provider=t}provideColors(e,t){const r=this.documents.getDocumentData(e);if(!r)return Promise.reject(new Error("There are no document for "+e));const i=r.document;return Promise.resolve(this.provider.provideDocumentColors(i,t)).then(e=>{if(!Array.isArray(e))return[];return e.map(e=>({color:n.fromColor(e.color),range:n.fromRange(e.range)}))})}provideColorPresentations(e,t,r){const i=this.documents.getDocumentData(e);if(!i)return Promise.reject(new Error("There are no document for "+e));const o=i.document,s=n.toRange(t.range),a=n.toColor(t.color);return Promise.resolve(this.provider.provideColorPresentations(a,{document:o,range:s},r)).then(e=>Array.isArray(e)?e.map(n.fromColorPresentation):[])}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompletionAdapter=void 0;const n=r(1),i=r(0),o=r(0),s=r(7),a=n.__importStar(r(5)),c=r(4),l=r(126),u=r(23);class d{static supportsResolving(e){return"function"==typeof e.resolveCompletionItem}constructor(e,t,r){this.delegate=e,this.commandConverter=t,this.documents=r,this.cache=new i.Cache("CompletionItem"),this.toDispose=new Map}async provideCompletionItems(e,t,r,n){const{doc:i,pos:l,replacing:h,inserting:f}=await this.getInsertOrReplace(e,t),p=(0,u.getPerformance)(),g=p?p.now():0,m=await this.delegate.provideCompletionItems(i,l,n,r),b=p?Math.round(p.now()-g):0;if(!m)return;const v=!Array.isArray(m)&&m.isIncomplete,y=Array.isArray(m)?new c.CompletionList(m):m,_=d.supportsResolving(this.delegate)?this.cache.add(y.items.map(r=>({item:r,resource:e,position:t}))):this.cache.add([]),w=new o.DisposableStore;this.toDispose.set(_,w);const C=[],k={x:_,[s.ISuggestResultDtoField.completions]:C,[s.ISuggestResultDtoField.defaultRanges]:{replace:a.Range.from(h),insert:a.Range.from(f)},[s.ISuggestResultDtoField.isIncomplete]:v||void 0,[s.ISuggestResultDtoField.duration]:b};for(let e=0;e<y.items.length;e++){const t=y.items[e],r=this.convertCompletionItem(t,[_,e],f,h);C.push(r)}return k}async resolveCompletionItem(e,t){const r=this.cache.get(...e);if(!r)return;const{item:n,resource:i,position:o}=r;let s,a;if(i&&o){const e=await this.getInsertOrReplace(i,o);s=e.inserting,a=e.replacing}const c=this.convertCompletionItem(n,e,s,a);if("function"!=typeof this.delegate.resolveCompletionItem)return c;try{const r=await this.delegate.resolveCompletionItem(n,t);return r?this.convertCompletionItem(r,e):c}catch(e){new Error("Delegate.resolveCompletionItem error: "+e)}return c}async releaseCompletionItems(e){this.cache.delete(e);const t=this.toDispose.get(e);return t&&(t.dispose(),this.toDispose.delete(e)),Promise.resolve()}async getInsertOrReplace(e,t){const r=this.documents.getDocumentData(e);if(!r)return Promise.reject(new Error("There are no document for "+e));const n=r.document,i=a.toPosition(t),o=n.getWordRangeAtPosition(i)||new c.Range(i,i);return{inserting:o.with({end:i}),replacing:o,doc:n,pos:i}}convertRange(e,t,r){let n,i;return e.textEdit?n=e.textEdit.range:e.range&&(n=e.range),c.Range.isRange(n)?i=s.RangeSuggestDataDto.to(a.Range.from(n)):!n||(null==t?void 0:t.isEqual(n.inserting))&&(null==r?void 0:r.isEqual(n.replacing))||(i={insert:a.Range.from(n.inserting),replace:a.Range.from(n.replacing)}),i}convertCompletionLabel(e){let t=e.label;return e.description&&(t+="~|"+e.description),e.detail&&(t+="~|"+e.detail),t}convertCompletionItem(e,t,r,n){const i=this.toDispose.get(t[0]);if(!i)throw Error("DisposableStore is missing...");const o={x:t,[s.ISuggestDataDtoField.kind]:e.kind?a.CompletionItemKind.from(e.kind):void 0,[s.ISuggestDataDtoField.kindModifier]:e.tags&&e.tags.map(a.CompletionItemTag.from),[s.ISuggestDataDtoField.label]:"string"==typeof e.label?e.label:this.convertCompletionLabel(e.label),[s.ISuggestDataDtoField.detail]:e.detail,[s.ISuggestDataDtoField.documentation]:e.documentation,[s.ISuggestDataDtoField.filterText]:e.filterText,[s.ISuggestDataDtoField.sortText]:e.sortText,[s.ISuggestDataDtoField.preselect]:e.preselect?e.preselect:void 0,[s.ISuggestDataDtoField.insertText]:"",[s.ISuggestDataDtoField.additionalTextEdits]:e.additionalTextEdits&&e.additionalTextEdits.map(a.fromTextEdit),[s.ISuggestDataDtoField.command]:this.commandConverter.toInternal(e.command,i),[s.ISuggestDataDtoField.commitCharacters]:e.commitCharacters,[s.ISuggestDataDtoField.insertTextRules]:e.keepWhitespace?l.CompletionItemInsertTextRule.KeepWhitespace:0},u=this.convertRange(e,r,n);return u&&(o[s.ISuggestDataDtoField.range]=u),e.textEdit?o[s.ISuggestDataDtoField.insertText]=e.textEdit.newText:"string"==typeof e.insertText?o[s.ISuggestDataDtoField.insertText]=e.insertText:e.insertText instanceof c.SnippetString?(o[s.ISuggestDataDtoField.insertText]=e.insertText.value,o[s.ISuggestDataDtoField.insertTextRules]=l.CompletionItemInsertTextRule.InsertAsSnippet):o[s.ISuggestDataDtoField.insertText]="string"==typeof e.label?e.label:e.label.label,o}static hasResolveSupport(e){return"function"==typeof e.resolveCompletionItem}}t.CompletionAdapter=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeclarationAdapter=void 0;const n=r(1),i=n.__importStar(r(5)),o=n.__importStar(r(4)),s=r(23);t.DeclarationAdapter=class{constructor(e,t){this.provider=e,this.documents=t}provideDeclaration(e,t,r){const n=this.documents.getDocumentData(e);if(!n)return Promise.reject(new Error("There is no document for "+e));const a=n.document,c=i.toPosition(t);return Promise.resolve(this.provider.provideDeclaration(a,c,r)).then(e=>{if(e){if(e instanceof o.Location)return i.fromLocation(e);if((0,s.isLocationArray)(e)){const t=[];for(const r of e)t.push(i.fromLocation(r));return t}if((0,s.isDefinitionLinkArray)(e)){const t=[];for(const r of e)t.push(i.DefinitionLink.from(r));return t}}})}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefinitionAdapter=void 0;const n=r(1),i=n.__importStar(r(5)),o=n.__importStar(r(4)),s=r(27);t.DefinitionAdapter=class{constructor(e,t){this.delegate=e,this.documents=t}provideDefinition(e,t,r){const n=this.documents.getDocumentData(e);if(!n)return Promise.reject(new Error("There is no document for "+e));const a=n.document,c=i.toPosition(t);return Promise.resolve(this.delegate.provideDefinition(a,c,r)).then(e=>{if(e){if(e instanceof o.Location)return i.fromLocation(e);if((0,s.isLocationArray)(e)){const t=[];for(const r of e)t.push(i.fromLocation(r));return t}if((0,s.isDefinitionLinkArray)(e)){const t=[];for(const r of e)t.push(i.DefinitionLink.from(r));return t}}})}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Diagnostics=t.DiagnosticCollection=void 0;const n=r(0),i=r(5),o=r(4);class s{constructor(e,t,r,n){this.collectionName=e,this.diagnosticsLimitPerResource=t,this.proxy=r,this.onDidChangeDiagnosticsEmitter=n,this.diagnostics=new Map,this.isDisposed=!1,this.onDisposeCallback=void 0}get name(){return this.collectionName}set(e,t){this.ensureNotDisposed(),e instanceof o.Uri?this.setDiagnosticsForUri(e,t):e?e instanceof Array&&this.setDiagnostics(e):this.clear()}setDiagnosticsForUri(e,t){t?this.diagnostics.set(e.toString(),t):this.diagnostics.delete(e.toString()),this.fireDiagnosticChangeEvent(e),this.sendChangesToEditor([e])}setDiagnostics(e){const t=[];for(const[t]of e)this.diagnostics.delete(t.toString());for(const[r,n]of e){const e=r.toString();if(n){const t=this.diagnostics.get(e);t?t.push(...n):this.diagnostics.set(e,n)}else this.diagnostics.delete(e),t.push(r);-1===t.indexOf(r)&&t.push(r)}this.fireDiagnosticChangeEvent(t),this.sendChangesToEditor(t)}delete(e){this.has(e)&&(this.fireDiagnosticChangeEvent(e),this.diagnostics.delete(e.toString()),this.proxy.$changeDiagnostics(this.name,[[e.toString(),[]]]))}clear(){this.ensureNotDisposed(),this.fireDiagnosticChangeEvent(this.getAllResourcesUris()),this.diagnostics.clear(),this.proxy.$clearDiagnostics(this.name)}forEach(e,t){this.ensureNotDisposed(),this.diagnostics.forEach((r,n)=>{const i=o.Uri.parse(n);e.apply(t,[i,this.getDiagnosticsByUri(i),this])})}get(e){return this.ensureNotDisposed(),this.getDiagnosticsByUri(e)}has(e){return this.ensureNotDisposed(),this.diagnostics.get(e.toString())instanceof Array}dispose(){this.isDisposed||(this.onDisposeCallback&&this.onDisposeCallback(),this.clear(),this.isDisposed=!0)}setOnDisposeCallback(e){this.onDisposeCallback=e}ensureNotDisposed(){if(this.isDisposed)throw new Error('Diagnostic collection with name "'+this.name+'" is already disposed.')}getAllResourcesUris(){const e=[];return this.diagnostics.forEach((t,r)=>e.push(r)),e}getDiagnosticsByUri(e){const t=this.diagnostics.get(e.toString());return t instanceof Array?Object.freeze(t):void 0}fireDiagnosticChangeEvent(e){this.onDidChangeDiagnosticsEmitter.fire({uris:this.toUrisArray(e)})}toUrisArray(e){if(e instanceof Array){if(0===e.length)return[];if(e[0]instanceof o.Uri)return e;{const t=[];for(const r of e)t.push(o.Uri.parse(r));return t}}return e instanceof o.Uri?[e]:[o.Uri.parse(e)]}sendChangesToEditor(e){const t=[];e:for(const r of e){const e=[],o=this.diagnostics.get(r.toString());if(o)if(o.length>this.diagnosticsLimitPerResource){for(const a of s.DIAGNOSTICS_PRIORITY)for(const s of o)if(a===s.severity&&e.push(i.Diagnostic.toMarker(s))+1===this.diagnosticsLimitPerResource){const i=e[e.length-1];e.push({severity:n.MarkerSeverity.Info,message:"Limit of diagnostics is reached. "+(o.length-this.diagnosticsLimitPerResource)+" items are hidden",startLineNumber:i.startLineNumber,startColumn:i.startColumn,endLineNumber:i.endLineNumber,endColumn:i.endColumn}),t.push([r.toString(),e]);continue e}}else o.forEach(t=>e.push(i.Diagnostic.toMarker(t))),t.push([r.toString(),e]);else t.push([r.toString(),[]])}this.proxy.$changeDiagnostics(this.name,t)}}t.DiagnosticCollection=s,s.DIAGNOSTICS_PRIORITY=[o.DiagnosticSeverity.Error,o.DiagnosticSeverity.Warning,o.DiagnosticSeverity.Information,o.DiagnosticSeverity.Hint];class a{constructor(e){this.diagnosticsChangedEmitter=new n.Emitter,this.onDidChangeDiagnostics=this.diagnosticsChangedEmitter.event,this.proxy=e,this.diagnosticCollections=new Map,this.nextId=0}getDiagnostics(e){return e?this.getAllDiagnisticsForResource(e):this.getAllDiagnostics()}createDiagnosticCollection(e){if(e)this.diagnosticCollections.has(e)&&console.warn(`Diagnostic collection with name '${e}' already exist.`);else do{e=a.GENERATED_DIAGNOSTIC_COLLECTION_NAME_PREFIX+this.getNextId()}while(this.diagnosticCollections.has(e));const t=new s(e,a.MAX_DIAGNOSTICS_PER_FILE,this.proxy,this.diagnosticsChangedEmitter);return t.setOnDisposeCallback(()=>{this.diagnosticCollections.delete(e)}),this.diagnosticCollections.set(e,t),t}getNextId(){return this.nextId++}getAllDiagnisticsForResource(e){let t=[];return this.diagnosticCollections.forEach(r=>{const n=r.get(e);n&&(t=t.concat(...n))}),t}getAllDiagnostics(){const e=[],t=new Map;let r=0;return this.diagnosticCollections.forEach(n=>n.forEach((n,i)=>{let o=t.get(n.toString());void 0===o?(o=r++,t.set(n.toString(),o),e.push([n,[...i]])):e[o][1]=e[o][1].concat(...i)})),e}}t.Diagnostics=a,a.MAX_DIAGNOSTICS_PER_FILE=1e3,a.GENERATED_DIAGNOSTIC_COLLECTION_NAME_PREFIX="_generated_diagnostic_collection_name_#"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentHighlightAdapter=void 0;const n=r(1).__importStar(r(5));t.DocumentHighlightAdapter=class{constructor(e,t){this.provider=e,this.documents=t}provideDocumentHighlights(e,t,r){const i=this.documents.getDocumentData(e);if(!i)return Promise.reject(new Error("There is no document for "+e));const o=i.document,s=n.toPosition(t);return Promise.resolve(this.provider.provideDocumentHighlights(o,s,r)).then(e=>{if(e&&this.isDocumentHighlightArray(e)){const t=[];for(const r of e)t.push(n.DocumentHighlight.from(r));return t}})}isDocumentHighlightArray(e){return Array.isArray(e)&&e.length>0&&e[0].range}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EvaluatableExpressionAdapter=void 0;const n=r(1),i=r(0),o=n.__importStar(r(5));t.EvaluatableExpressionAdapter=class{constructor(e,t){this._documents=e,this._provider=t}provideEvaluatableExpression(e,t,r){const n=this._documents.getDocument(e),s=o.toPosition(t);return(0,i.asPromise)(()=>this._provider.provideEvaluatableExpression(n,s,r)).then(e=>{if(e)return o.EvaluatableExpression.from(e)})}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FoldingProviderAdapter=void 0;const n=r(1).__importStar(r(5));t.FoldingProviderAdapter=class{constructor(e,t){this.documents=e,this.provider=t}async provideFoldingRanges(e,t,r){const i=this.documents.getDocumentData(e);if(!i)return Promise.reject(new Error("There is no document for "+e));const o=i.document,s=await this.provider.provideFoldingRanges(o,t,r);return Array.isArray(s)?s.map(n.fromFoldingRange):void 0}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HoverAdapter=void 0;const n=r(1).__importStar(r(5)),i=r(4);t.HoverAdapter=class{constructor(e,t){this.provider=e,this.documents=t}provideHover(e,t,r){const o=this.documents.getDocumentData(e.toString());if(!o)return Promise.reject(new Error("There are no document for "+e));const s=n.toPosition(t),a=o.document;return Promise.resolve(this.provider.provideHover(a,s,r)).then(e=>{if(e&&Array.isArray(e.contents)&&0!==e.contents.length)return e.range||(e.range=a.getWordRangeAtPosition(s)),e.range||(e.range=new i.Range(s,s)),n.fromHover(e)})}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImplementationAdapter=void 0;const n=r(1),i=n.__importStar(r(5)),o=n.__importStar(r(4)),s=r(23);t.ImplementationAdapter=class{constructor(e,t){this.provider=e,this.documents=t}provideImplementation(e,t){const r=this.documents.getDocumentData(e);if(!r)return Promise.reject(new Error("There is no document for "+e));const n=r.document,a=i.toPosition(t);return Promise.resolve(this.provider.provideImplementation(n,a,(0,s.createToken)())).then(e=>{if(e){if(e instanceof o.Location)return i.fromLocation(e);if((0,s.isLocationArray)(e)){const t=[];for(const r of e)t.push(i.fromLocation(r));return t}if((0,s.isDefinitionLinkArray)(e)){const t=[];for(const r of e)t.push(i.DefinitionLink.from(r));return t}}})}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InlayHintsAdapter=void 0;const n=r(1),i=r(0),o=n.__importStar(r(5)),s=n.__importStar(r(4));t.InlayHintsAdapter=class{constructor(e,t,r){this._documents=e,this._provider=t,this._commands=r,this._cache=new i.Cache("InlayHints"),this._disposables=new Map}async provideInlayHints(e,t,r){const n=this._documents.getDocument(e),s=o.Range.to(t),a=await this._provider.provideInlayHints(n,s,r);if(!Array.isArray(a)||0===a.length)return;if(r.isCancellationRequested)return;const c=this._cache.add(a);this._disposables.set(c,new i.DisposableStore);const l={hints:[],cacheId:c};for(let e=0;e<a.length;e++)this._isValidInlayHint(a[e],s)&&l.hints.push(this._convertInlayHint(a[e],[c,e]));return l}async resolveInlayHint(e,t){if("function"!=typeof this._provider.resolveInlayHint)return;const r=this._cache.get(...e);if(!r)return;const n=await this._provider.resolveInlayHint(r,t);return n&&this._isValidInlayHint(n)?this._convertInlayHint(n,e):void 0}async releaseHints(e){var t;null===(t=this._disposables.get(e))||void 0===t||t.dispose(),this._disposables.delete(e),this._cache.delete(e)}_isValidInlayHint(e,t){return!(0===e.label.length||Array.isArray(e.label)&&e.label.every(e=>0===e.value.length))&&!(t&&!t.contains(e.position))}_convertInlayHint(e,t){const r=this._disposables.get(t[0]);if(!r)throw Error("DisposableStore is missing...");const n={label:"",tooltip:o.MarkdownString.fromStrict(e.tooltip),position:o.Position.from(e.position),textEdits:e.textEdits&&e.textEdits.map(o.TextEdit.from),kind:e.kind&&o.InlayHintKind.from(e.kind),paddingLeft:e.paddingLeft,paddingRight:e.paddingRight,cacheId:t};return"string"==typeof e.label?n.label=e.label:n.label=e.label.map(e=>{const t={label:e.value};return t.tooltip=o.MarkdownString.fromStrict(e.tooltip),s.Location.isLocation(e.location)&&(t.location=o.location.from(e.location)),e.command&&(t.command=this._commands.toInternal(e.command,r)),t}),n}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InlineValuesAdapter=void 0;const n=r(1),i=r(0),o=n.__importStar(r(5));t.InlineValuesAdapter=class{constructor(e,t){this._documents=e,this._provider=t}provideInlineValues(e,t,r,n){const s=this._documents.getDocument(e);return(0,i.asPromise)(()=>this._provider.provideInlineValues(s,o.toRange(t),o.InlineValueContext.to(r),n)).then(e=>{if(Array.isArray(e))return e.map(e=>o.InlineValue.from(e))})}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InlineCompletionAdapter=t.InlineCompletionAdapterBase=void 0;const n=r(1),i=r(0),o=n.__importStar(r(5)),s=r(4),a=n.__importStar(r(234));class c{constructor(){this._references=new Map,this._idPool=1}createReferenceId(e){const t=this._idPool++;return this._references.set(t,e),t}disposeReferenceId(e){const t=this._references.get(e);return this._references.delete(e),t}get(e){return this._references.get(e)}}class l{async provideInlineCompletions(e,t,r,n){}disposeCompletions(e){}handleDidShowCompletionItem(e,t){}}t.InlineCompletionAdapterBase=l;t.InlineCompletionAdapter=class extends l{constructor(e,t,r){super(),this._documents=e,this._provider=t,this._commands=r,this._references=new c,this.languageTriggerKindToVSCodeTriggerKind={[a.InlineCompletionTriggerKind.Automatic]:s.InlineCompletionTriggerKind.Automatic,[a.InlineCompletionTriggerKind.Explicit]:s.InlineCompletionTriggerKind.Invoke}}async provideInlineCompletions(e,t,r,n){const s=this._documents.getDocument(e),a=o.Position.to(t),c=await this._provider.provideInlineCompletionItems(s,a,{selectedCompletionInfo:r.selectedSuggestionInfo?{range:o.Range.to(r.selectedSuggestionInfo.range),text:r.selectedSuggestionInfo.text}:void 0,triggerKind:this.languageTriggerKindToVSCodeTriggerKind[r.triggerKind]},n);if(!c)return;if(n.isCancellationRequested)return;const l=Array.isArray(c)?c:c.items,u=Array.isArray(c)?[]:c.commands||[];let d;return{pid:this._references.createReferenceId({dispose(){null==d||d.dispose()},items:l}),items:l.map((e,t)=>{let r;e.command&&(d||(d=new i.DisposableStore),r=this._commands.toInternal(e.command,d));const n=e.insertText;return{insertText:"string"==typeof n?n:{snippet:n.value},filterText:e.filterText,range:e.range?o.Range.from(e.range):void 0,command:r,idx:t,completeBracketPairs:!!e.completeBracketPairs}}),commands:u.map(e=>(d||(d=new i.DisposableStore),this._commands.toInternal(e,d)))}}disposeCompletions(e){const t=this._references.disposeReferenceId(e);null==t||t.dispose()}handleDidShowCompletionItem(e,t){throw new Error("Method not implemented.")}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeLensAdapter=void 0;const n=r(1),i=r(0),o=r(0),s=n.__importStar(r(5));class a{constructor(e,t,r){this.provider=e,this.documents=t,this.commandConverter=r,this.cache=new i.Cache("CodeLens"),this.disposableStore=new Map}async provideCodeLenses(e,t){const r=this.documents.getDocumentData(e.toString());if(!r)return Promise.reject(new Error("There is no document for "+e));const n=await this.provider.provideCodeLenses(r.document,t);if(!n||t.isCancellationRequested)return;const i=this.cache.add(n),a=new o.DisposableStore;this.disposableStore.set(i,a);const c={cacheId:i,lenses:[]};for(let e=0;e<n.length;e++)c.lenses.push({cacheId:[i,e],range:s.fromRange(n[e].range),command:this.commandConverter.toInternal(n[e].command,a)});return c}async resolveCodeLens(e,t){const r=e.cacheId&&this.cache.get(...e.cacheId);if(!r)return Promise.resolve(void 0);let n;if(n="function"!=typeof this.provider.resolveCodeLens||r.isResolved?r:await this.provider.resolveCodeLens(r,t),n||(n=r),t.isCancellationRequested)return;const i=new o.DisposableStore;return e.command=this.commandConverter.toInternal(n.command?n.command:a.BAD_CMD,i),e}releaseCodeLens(e){var t;null===(t=this.disposableStore.get(e))||void 0===t||t.dispose(),this.disposableStore.delete(e),this.cache.delete(e)}}t.CodeLensAdapter=a,a.BAD_CMD={command:"missing",title:"<<MISSING COMMAND>>"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LinkProviderAdapter=void 0;const n=r(1),i=r(0),o=n.__importStar(r(5));t.LinkProviderAdapter=class{constructor(e,t){this.provider=e,this.documents=t,this.cache=new i.Cache("DocumentLink")}provideLinks(e,t){const r=this.documents.getDocumentData(e);if(!r)return Promise.reject(new Error("There is no document for "+e));const n=r.document;return Promise.resolve(this.provider.provideDocumentLinks(n,t)).then(e=>{if(!Array.isArray(e))return;if("function"!=typeof this.provider.resolveDocumentLink)return{links:e.map(o.fromDocumentLink)};const t=this.cache.add(e),r={id:t,links:[]};for(let n=0;n<e.length;n++){const i=o.fromDocumentLink(e[n]);i.cacheId=[t,n],r.links.push(i)}return r})}resolveLink(e,t){if("function"!=typeof this.provider.resolveDocumentLink)return Promise.resolve(void 0);const r=this.cache.get(...e);return r?Promise.resolve(this.provider.resolveDocumentLink(r,t)).then(e=>{if(e)return o.fromDocumentLink(e)}):Promise.resolve(void 0)}releaseLink(e){this.cache.delete(e)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LinkedEditingRangeAdapter=void 0;const n=r(1),i=r(0),o=n.__importStar(r(5)),{coalesce:s}=i.arrays;t.LinkedEditingRangeAdapter=class{constructor(e,t){this._documents=e,this._provider=t}provideLinkedEditingRanges(e,t,r){const n=this._documents.getDocument(e);if(!n)return Promise.reject(new Error("There is no document for "+e));const a=o.Position.to(t);return(0,i.asPromise)(()=>this._provider.provideLinkedEditingRanges(n,a,r)).then(e=>{if(e&&Array.isArray(e.ranges))return{ranges:s(e.ranges.map(o.Range.from)),wordPattern:e.wordPattern}})}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OnTypeFormattingAdapter=void 0;const n=r(1).__importStar(r(5)),i=r(23);t.OnTypeFormattingAdapter=class{constructor(e,t){this.provider=e,this.documents=t}provideOnTypeFormattingEdits(e,t,r,o){const s=this.documents.getDocumentData(e.toString());if(!s)return Promise.reject(new Error("There are no document for "+e));const a=s.document,c=n.toPosition(t);return Promise.resolve(this.provider.provideOnTypeFormattingEdits(a,c,r,o,(0,i.createToken)())).then(e=>{if(Array.isArray(e))return e.map(n.fromTextEdit)})}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OutlineAdapter=void 0;const n=r(1),i=n.__importStar(r(5)),o=n.__importStar(r(4));class s{constructor(e,t){this.documents=e,this.provider=t}provideDocumentSymbols(e,t){const r=this.documents.getDocumentData(e);if(!r)return Promise.reject(new Error("There is no document for "+e));const n=r.document;return Promise.resolve(this.provider.provideDocumentSymbols(n,t)).then(t=>{if(t&&0!==t.length)return t[0]instanceof o.DocumentSymbol?t.map(i.fromDocumentSymbol):s.asDocumentSymbolTree(e,t)})}static asDocumentSymbolTree(e,t){var r;t=t.slice(0).sort((e,t)=>{let r=e.location.range.start.compareTo(t.location.range.start);return 0===r&&(r=t.location.range.end.compareTo(e.location.range.end)),r});const n=[],o=[];for(let e=0;e<t.length;e++){const a={name:t[e].name,detail:"",kind:i.SymbolKind.fromSymbolKind(t[e].kind),tags:(null===(r=t[e].tags)||void 0===r?void 0:r.map(i.SymbolTag.from))||[],containerName:t[e].containerName,range:i.fromRange(t[e].location.range),selectionRange:i.fromRange(t[e].location.range),children:[]};for(;;){if(0===o.length){o.push(a),n.push(a);break}const e=o[o.length-1];if(s.containsRange(e.range,a.range)&&!s.equalsRange(e.range,a.range)){e.children.push(a),o.push(a);break}o.pop()}}return n}static containsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&(!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>e.endColumn)))}static equalsRange(e,t){return!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}}t.OutlineAdapter=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FormattingAdapter=t.RangeFormattingAdapter=void 0;const n=r(1).__importStar(r(5)),i=r(23);t.RangeFormattingAdapter=class{constructor(e,t){this.provider=e,this.documents=t}provideDocumentRangeFormattingEdits(e,t,r){const o=this.documents.getDocumentData(e.toString());if(!o)return Promise.reject(new Error("There are no document for "+e));const s=o.document,a=n.toRange(t);return Promise.resolve(this.provider.provideDocumentRangeFormattingEdits(s,a,r,(0,i.createToken)())).then(e=>{if(Array.isArray(e))return e.map(n.fromTextEdit)})}};t.FormattingAdapter=class{constructor(e,t){this.provider=e,this.documents=t}provideDocumentFormattingEdits(e,t){const r=this.documents.getDocumentData(e.toString());if(!r)return Promise.reject(new Error("There are no document for "+e));const o=r.document;return Promise.resolve(this.provider.provideDocumentFormattingEdits(o,t,(0,i.createToken)())).then(e=>{if(Array.isArray(e))return e.map(n.fromTextEdit)})}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReferenceAdapter=void 0;const n=r(1).__importStar(r(5)),i=r(27);t.ReferenceAdapter=class{constructor(e,t){this.provider=e,this.documents=t}provideReferences(e,t,r,o){const s=this.documents.getDocumentData(e);if(!s)return Promise.reject(new Error("There is no document for "+e));const a=s.document,c=n.toPosition(t);return Promise.resolve(this.provider.provideReferences(a,c,r,o)).then(e=>{if(e&&(0,i.isLocationArray)(e)){const t=[];for(const r of e)t.push(n.fromLocation(r));return t}})}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RenameAdapter=void 0;const n=r(1),i=r(0),o=n.__importStar(r(5)),s=n.__importStar(r(4)),a=r(27);class c{static supportsResolving(e){return"function"==typeof e.prepareRename}constructor(e,t){this.provider=e,this.documents=t,this.debug=(0,i.getDebugLogger)()}provideRenameEdits(e,t,r,n){const i=this.documents.getDocumentData(e);if(!i)return Promise.reject(new Error("There is no document for "+e));const s=i.document,a=o.toPosition(t);return Promise.resolve(this.provider.provideRenameEdits(s,a,r,n)).then(e=>{if(e)return o.WorkspaceEdit.from(e)},e=>{const t=c.asMessage(e);return t?{rejectReason:t,edits:[]}:Promise.reject(e)})}resolveRenameLocation(e,t,r){if("function"!=typeof this.provider.prepareRename)return Promise.resolve(void 0);const n=this.documents.getDocumentData(e);if(!n)return Promise.reject(new Error("There is no document for "+e));const i=n.document,l=o.toPosition(t);return Promise.resolve(this.provider.prepareRename(i,l,r)).then(e=>{let t,r;if(e&&s.Range.isRange(e)?(t=e,r=i.getText(e)):e&&(0,a.isObject)(e)&&(t=e.range,r=e.placeholder),t&&r){if(!(t.start.line>l.line||t.end.line<l.line))return{range:o.fromRange(t),text:r};this.debug.warn("INVALID rename location: position line must be within range start/end lines")}},e=>{const t=c.asMessage(e);return t?Promise.resolve({rejectReason:t}):Promise.reject(e)})}static asMessage(e){return"string"==typeof e?e:e instanceof Error&&"string"==typeof e.message?e.message:void 0}}t.RenameAdapter=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionRangeAdapter=void 0;const n=r(1),i=r(0),o=n.__importStar(r(5)),{isNonEmptyArray:s}=i.arrays;t.SelectionRangeAdapter=class{constructor(e,t){this.documents=e,this._provider=t}async provideSelectionRanges(e,t,r){const n=this.documents.getDocumentData(e);if(!n)return Promise.reject(new Error("There is no document for "+e));const i=n.document,a=t.map(o.toPosition),c=await this._provider.provideSelectionRanges(i,a,r);if(!s(c))return[];if(c.length!==a.length)return console.warn("BAD selection ranges, provider must return ranges for each position"),[];const l=[];for(let e=0;e<a.length;e++){const t=[];l.push(t);let r=a[e],n=c[e];for(;;){if(!n.range.contains(r))throw new Error("INVALID selection range, must contain the previous range");if(t.push(o.fromSelectionRange(n)),!n.parent)break;r=n.range,n=n.parent}}return l}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentRangeSemanticTokensAdapter=t.DocumentSemanticTokensAdapter=void 0;const n=r(1).__importStar(r(5)),i=r(4),o=r(680);class s{constructor(e,t){this.resultId=e,this.tokens=t}}class a{constructor(e,t){this._documents=e,this._provider=t,this._nextResultId=1,this._previousResults=new Map}async provideDocumentSemanticTokens(e,t,r){const n=this._documents.getDocument(e),i=0!==t?this._previousResults.get(t):null;let o="string"==typeof(null==i?void 0:i.resultId)&&"function"==typeof this._provider.provideDocumentSemanticTokensEdits?await this._provider.provideDocumentSemanticTokensEdits(n,i.resultId,r):await this._provider.provideDocumentSemanticTokens(n,r);return i&&this._previousResults.delete(t),o?(o=a._fixProvidedSemanticTokens(o),this._send(a._convertToEdits(i,o),o)):null}async releaseDocumentSemanticColoring(e){this._previousResults.delete(e)}static _fixProvidedSemanticTokens(e){return a._isSemanticTokens(e)?a._isCorrectSemanticTokens(e)?e:new i.SemanticTokens(new Uint32Array(e.data),e.resultId):a._isSemanticTokensEdits(e)?a._isCorrectSemanticTokensEdits(e)?e:new i.SemanticTokensEdits(e.edits.map(e=>new i.SemanticTokensEdit(e.start,e.deleteCount,e.data?new Uint32Array(e.data):e.data)),e.resultId):e}static _isSemanticTokens(e){return e&&!!e.data}static _isSemanticTokensEdits(e){return e&&Array.isArray(e.edits)}static _isCorrectSemanticTokens(e){return e.data instanceof Uint32Array}static _isCorrectSemanticTokensEdits(e){for(const t of e.edits)if(!(t.data instanceof Uint32Array))return!1;return!0}static _convertToEdits(e,t){if(!a._isSemanticTokens(t))return t;if(!e||!e.tokens)return t;const r=e.tokens,n=r.length,o=t.data,s=o.length;let c=0;const l=Math.min(n,s);for(;c<l&&r[c]===o[c];)c++;if(c===n&&c===s)return new i.SemanticTokensEdits([],t.resultId);let u=0;const d=l-c;for(;u<d&&r[n-u-1]===o[s-u-1];)u++;return new i.SemanticTokensEdits([{start:c,deleteCount:n-c-u,data:o.subarray(c,s-u)}],t.resultId)}_send(e,t){if(a._isSemanticTokens(e)){const t=this._nextResultId++;this._previousResults.set(t,new s(e.resultId,e.data));return(0,o.encodeSemanticTokensDto)({id:t,type:"full",data:e.data})}if(a._isSemanticTokensEdits(e)){const r=this._nextResultId++;a._isSemanticTokens(t)?this._previousResults.set(r,new s(t.resultId,t.data)):this._previousResults.set(r,new s(e.resultId));return(0,o.encodeSemanticTokensDto)({id:r,type:"delta",deltas:(e.edits||[]).map(e=>({start:e.start,deleteCount:e.deleteCount,data:e.data}))})}return null}}t.DocumentSemanticTokensAdapter=a;t.DocumentRangeSemanticTokensAdapter=class{constructor(e,t){this._documents=e,this._provider=t}async provideDocumentRangeSemanticTokens(e,t,r){const i=this._documents.getDocument(e),o=await this._provider.provideDocumentRangeSemanticTokens(i,n.Range.to(t),r);return o?this._send(o):null}_send(e){return(0,o.encodeSemanticTokensDto)({id:0,type:"full",data:e.data})}}},function(e,t,r){"use strict";function n(e){for(let t=0,r=e.length;t<r;t+=4){const r=e[t+0],n=e[t+1],i=e[t+2],o=e[t+3];e[t+0]=o,e[t+1]=i,e[t+2]=n,e[t+3]=r}}Object.defineProperty(t,"__esModule",{value:!0}),t.decodeSemanticTokensDto=t.encodeSemanticTokensDto=t.isLittleEndian=void 0;let i=!0,o=!1;function s(){if(!o){o=!0;const e=new Uint8Array(2);e[0]=1,e[1]=2;const t=new Uint16Array(e.buffer);i=513===t[0]}return i}t.isLittleEndian=s,t.encodeSemanticTokensDto=function(e){const t=new Uint32Array(function(e){let t=0;if(t+=2,"full"===e.type)t+=1+e.data.length;else{t+=1,t+=3*e.deltas.length;for(const r of e.deltas)r.data&&(t+=r.data.length)}return t}(e));let r=0;if(t[r++]=e.id,"full"===e.type)t[r++]=1,t[r++]=e.data.length,t.set(e.data,r),r+=e.data.length;else{t[r++]=2,t[r++]=e.deltas.length;for(const n of e.deltas)t[r++]=n.start,t[r++]=n.deleteCount,n.data?(t[r++]=n.data.length,t.set(n.data,r),r+=n.data.length):t[r++]=0}return function(e){const t=new Uint8Array(e.buffer,e.byteOffset,4*e.length);return s()||n(t),t}(t)},t.decodeSemanticTokensDto=function(e){const t=function(e){const t=e;if(s()||n(t),t.byteOffset%4==0)return new Uint32Array(t.buffer,t.byteOffset,t.length/4);{const e=new Uint8Array(t.byteLength);return e.set(t),new Uint32Array(e.buffer,e.byteOffset,e.length/4)}}(e);let r=0;const i=t[r++];if(1===t[r++]){const e=t[r++],n=t.subarray(r,r+e);return r+=e,{id:i,type:"full",data:n}}const o=t[r++],a=[];for(let e=0;e<o;e++){const n=t[r++],i=t[r++],o=t[r++];let s;o>0&&(s=t.subarray(r,r+o),r+=o),a[e]={start:n,deleteCount:i,data:s}}return{id:i,type:"delta",deltas:a}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SignatureHelpAdapter=void 0;const n=r(1).__importStar(r(5));t.SignatureHelpAdapter=class{constructor(e,t){this.delegate=e,this.documents=t,this.cacheId=0,this.cache=new Map}async provideSignatureHelp(e,t,r,i){const o=this.documents.getDocumentData(e);if(!o)return Promise.reject(new Error("There are no document for "+e));const s=this.cacheId++,a=o.document,c=n.toPosition(t),l=this.reviveContext(i),u=await this.delegate.provideSignatureHelp(a,c,r,l);return u?(this.cache.set(s,u),Object.assign(Object.assign({},n.SignatureHelp.from(u)),{id:s})):void 0}reviveContext(e){let t;if(e.activeSignatureHelp){const r=n.SignatureHelp.to(e.activeSignatureHelp),i=this.cache.get(e.activeSignatureHelp.id);i?(t=i,t.activeSignature=r.activeSignature,t.activeParameter=r.activeParameter):t=r}return Object.assign(Object.assign({},e),{activeSignatureHelp:t})}releaseSignatureHelp(e){this.cache.delete(e)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeDefinitionAdapter=void 0;const n=r(1),i=n.__importStar(r(5)),o=n.__importStar(r(4)),s=r(27);t.TypeDefinitionAdapter=class{constructor(e,t){this.provider=e,this.documents=t}provideTypeDefinition(e,t,r){const n=this.documents.getDocumentData(e);if(!n)return Promise.reject(new Error("There is no document for "+e));const a=n.document,c=i.toPosition(t);return Promise.resolve(this.provider.provideTypeDefinition(a,c,r)).then(e=>{if(e){if(e instanceof o.Location)return i.fromLocation(e);if((0,s.isLocationArray)(e)){const t=[];for(const r of e)t.push(i.fromLocation(r));return t}if((0,s.isDefinitionLinkArray)(e)){const t=[];for(const r of e)t.push(i.DefinitionLink.from(r));return t}}})}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeHierarchyAdapter=void 0;const n=r(1),i=r(253),o=n.__importStar(r(5));t.TypeHierarchyAdapter=class{constructor(e,t){this._documents=e,this._provider=t,this._idPool=new i.IdGenerator(""),this._cache=new Map}async prepareSession(e,t,r){const n=this._documents.getDocumentData(e);if(!n)return Promise.reject(new Error("There is no document for "+e));const i=n.document,s=o.Position.to(t),a=await this._provider.prepareTypeHierarchy(i,s,r);if(!a)return;const c=this._idPool.nextId();return this._cache.set(c,new Map),Array.isArray(a)?a.map(e=>this._cacheAndConvertItem(c,e)):[this._cacheAndConvertItem(c,a)]}async provideSupertypes(e,t,r){const n=this._itemFromCache(e,t);if(!n)throw new Error("missing type hierarchy item");const i=await this._provider.provideTypeHierarchySupertypes(n,r);if(i)return i.map(t=>this._cacheAndConvertItem(e,t))}async provideSubtypes(e,t,r){const n=this._itemFromCache(e,t);if(!n)throw new Error("missing type hierarchy item");const i=await this._provider.provideTypeHierarchySubtypes(n,r);if(i)return i.map(t=>this._cacheAndConvertItem(e,t))}releaseSession(e){this._cache.delete(e)}_cacheAndConvertItem(e,t){const r=this._cache.get(e),n=o.TypeHierarchyItem.from(t,e,r.size.toString(36));return r.set(n._itemId,t),n}_itemFromCache(e,t){const r=this._cache.get(e);return null==r?void 0:r.get(t)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceSymbolAdapter=void 0;const n=r(1).__importStar(r(5));t.WorkspaceSymbolAdapter=class{constructor(e){this.provider=e}provideWorkspaceSymbols(e,t){return Promise.resolve(this.provider.provideWorkspaceSymbols(e,t)).then(e=>{if(!e)return[];const t=[];for(const r of e){const e=n.fromSymbolInformation(r);e&&t.push(e)}return t})}resolveWorkspaceSymbol(e,t){if(this.provider.resolveWorkspaceSymbol&&"function"==typeof this.provider.resolveWorkspaceSymbol){const r=n.toSymbolInformation(e);return r?Promise.resolve(this.provider.resolveWorkspaceSymbol(r,t)).then(t=>{if(!t)return e;const r=n.fromSymbolInformation(t);return r||e}):Promise.resolve(e)}return Promise.resolve(e)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtHostMessage=void 0;const n=r(686),i=r(7);t.ExtHostMessage=class{constructor(e){this.proxy=e.getProxy(i.MainThreadAPIIdentifier.MainThreadMessages)}async showMessage(e,t,r,i,...o){let s=t;s.length>n.MAX_MESSAGE_LENGTH&&(s=t.substr(0,n.MAX_MESSAGE_LENGTH)+"...");const a={},c=[],l=[],u=e=>{l.push(e),"string"==typeof e?c.push(e):c.push(e.title)};r&&("string"==typeof r||"title"in r?u(r):"modal"in r&&(a.modal=r.modal));for(const e of o)u(e);const d=await this.proxy.$showMessage(e,s,a,c,i);return void 0!==d?l[d]:void 0}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IOpenDialogOptions=t.ISaveDialogOptions=t.IWindowDialogService=t.AbstractMessageService=t.IDialogService=t.MAX_MESSAGE_LENGTH=t.IMessageService=void 0;const n=r(0);t.IMessageService=Symbol("IMessageService"),t.MAX_MESSAGE_LENGTH=1e3,t.IDialogService=Symbol("IDialogService");t.AbstractMessageService=class{info(e,t,r,i){return this.open(e,n.MessageType.Info,t,r,void 0,i)}warning(e,t,r,i){return this.open(e,n.MessageType.Warning,t,r,void 0,i)}error(e,t,r,i){return this.open(e,n.MessageType.Error,t,r,void 0,i)}},t.IWindowDialogService=Symbol("IWindowDialogService"),function(e){e.is=function(e){return"saveLabel"in e||"showNameInput"in e||"defaultFileName"in e}}(t.ISaveDialogOptions||(t.ISaveDialogOptions={})),function(e){e.is=function(e){return"canSelectFiles"in e||"canSelectFolders"in e||"canSelectMany"in e||"openLabel"in e}}(t.IOpenDialogOptions||(t.IOpenDialogOptions={}))},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.OutputChannelImpl=t.ExtHostOutput=void 0;const n=r(7);t.ExtHostOutput=class{constructor(e){this.rpcProtocol=e}createOutputChannel(e){return new i(e,this.rpcProtocol)}};class i{constructor(e,t){this.name=e,this.rpcProtocol=t,this.batchedOutputLine="",this.batchedTimer=null,this.proxy=this.rpcProtocol.getProxy(n.MainThreadAPIIdentifier.MainThreadOutput)}replace(e){this.proxy.$replace(this.name,e)}dispose(){this.disposed||this.proxy.$dispose(this.name).then(()=>{this.disposed=!0})}append(t){this.validate();const r=this.batchedOutputLine+t;this.batchedOutputLine=r,this.batchedOutputLine.length>=20480&&this.flushOutputString(),this.batchedTimer||(this.batchedTimer=e.setTimeout(()=>this.flushOutputString(),5))}appendLine(e){this.validate(),this.append(e+"\n")}clear(){this.validate(),this.proxy.$clear(this.name)}flushOutputString(){this.proxy.$append(this.name,this.batchedOutputLine),this.batchedOutputLine="",this.batchedTimer&&(e.clearTimeout(this.batchedTimer),this.batchedTimer=null)}show(e){this.validate(),this.proxy.$reveal(this.name,!!e)}hide(){this.validate(),this.proxy.$close(this.name)}validate(){if(this.disposed)throw new Error("Channel has been closed")}}t.OutputChannelImpl=i}).call(this,r(11))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtHostPreference=void 0;const n=r(1).__importDefault(r(254)),i=r(0),o=r(7),s=r(757);function a(e,t){if(!t)return;const r=t.split(".");let n=e;for(let e=0;n&&e<r.length;e++)n=n[r[e]];return n}t.ExtHostPreference=class{constructor(e,t){this.workspace=t,this._onDidChangeConfiguration=new i.Emitter,this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this.OVERRIDE_PROPERTY="\\[(.*)\\]$",this.OVERRIDE_PROPERTY_PATTERN=new RegExp(this.OVERRIDE_PROPERTY),this.rpcProtocol=e,this.proxy=this.rpcProtocol.getProxy(o.MainThreadAPIIdentifier.MainThreadPreference)}init(e){this._preferences=this.parse(e)}$initializeConfiguration(e){this.init(e)}$acceptConfigurationChanged(e,t){this.init(e),this._onDidChangeConfiguration.fire(this.toConfigurationChangeEvent(t))}parse(e){const t=this.getConfigurationModel(e[i.PreferenceScope.Default]),r=this.getConfigurationModel(e[i.PreferenceScope.User]),n=this.getConfigurationModel(e[i.PreferenceScope.Workspace]),o={};return Object.keys(e[i.PreferenceScope.Folder]).forEach(t=>{o[t]=this.getConfigurationModel(e[i.PreferenceScope.Folder][t])}),new s.Configuration(t,r,n,o)}getConfigurationModel(e){return e?new s.ConfigurationModel(this.parseConfigurationData(e),Object.keys(e)):new s.ConfigurationModel}parseConfigurationData(e){return Object.keys(e).sort((e,t)=>t.length-e.length).reduce((t,r)=>{const n=r.split(".");let o=t;for(let t=0;t<n.length;t++)if(t!==n.length-1){if(o[n[t]]||(o[n[t]]={}),o=o[n[t]],0===t&&this.OVERRIDE_PROPERTY_PATTERN.test(n[t])){o[r.substring(n[0].length+1)]=e[r];break}}else(0,i.isUndefined)(o[n[t]])&&(o[n[t]]=e[r]);return t},{})}toConfigurationChangeEvent(e){return Object.freeze({affectsConfiguration:(t,r)=>{for(const r of e){return void 0!==a(r.preferenceName.split(".").reverse().reduce((e,t)=>({[t]:e}),r.newValue),t)}return!1}})}getConfiguration(e,t,r){t=null===t?void 0:t;const o=this.toReadonlyValue(e?a(this._preferences.getValue(void 0,this.workspace,t),e):this._preferences.getValue(void 0,this.workspace,t)),s={has:e=>void 0!==a(o,e),get:(e,t)=>{const r=a(o,e);if(void 0===r)return t;{let t;const s=(e,r)=>{let c;const l=()=>{t=t||(0,n.default)(o),c=c||a(t,r)};return(0,i.isObject)(e)?new Proxy(e,{get:(e,n)=>{if("string"==typeof n&&"tojson"===n.toLowerCase())return l(),()=>c;if(t)return c=c||a(t,r),c[n];const i=e[n];return"string"==typeof n?s(i,`${r}.${n}`):i},set:(e,t,r)=>(l(),c[t]=r,!0),deleteProperty:(e,t)=>(l(),delete c[t],!0),defineProperty:(e,t,r)=>(l(),Object.defineProperty(c,t,r),!0)}):e};return s(r,e)}},update:(r,n,i)=>{r=e?`${e}.${r}`:r;const o=t?t.toString():void 0;return void 0!==n?this.proxy.$updateConfigurationOption(i,r,n,o):this.proxy.$removeConfigurationOption(i,r,o)},inspect:r=>{r=e?`${e}.${r}`:r,t=null===t?void 0:t;const i=(0,n.default)(this._preferences.inspect(r,this.workspace,t));if(!i)return;const o={key:r};return void 0!==i.default&&(o.defaultValue=i.default),void 0!==i.user&&(o.globalValue=i.user),void 0!==i.workspace&&(o.workspaceValue=i.workspace),void 0!==i.workspaceFolder&&(o.workspaceFolderValue=i.workspaceFolder),o}};return"object"==typeof o&&(0,i.mixin)(s,o,!1),Object.freeze(s)}toReadonlyValue(e){const t=e=>(0,i.isObject)(e)?new Proxy(e,{get:(e,r)=>t(e[r]),set:(e,t,r)=>{throw new Error(`TypeError: Cannot assign to read only property '${t}' of object`)},deleteProperty:(e,t)=>{throw new Error(`TypeError: Cannot delete read only property '${t}' of object`)},defineProperty:(e,t)=>{throw new Error(`TypeError: Cannot define property '${t}' of a readonly object`)},setPrototypeOf:e=>{throw new Error("TypeError: Cannot set prototype for a readonly object")},isExtensible:()=>!1,preventExtensions:()=>!0}):e;return t(e)}}},function(e,t,r){var n=r(690),i=r(718),o=r(258),s=r(720),a=r(730),c=r(733),l=r(734),u=r(735),d=r(737),h=r(738),f=r(739),p=r(137),g=r(744),m=r(745),b=r(751),v=r(131),y=r(261),_=r(753),w=r(33),C=r(755),k=r(130),E=r(135),S={};S["[object Arguments]"]=S["[object Array]"]=S["[object ArrayBuffer]"]=S["[object DataView]"]=S["[object Boolean]"]=S["[object Date]"]=S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Map]"]=S["[object Number]"]=S["[object Object]"]=S["[object RegExp]"]=S["[object Set]"]=S["[object String]"]=S["[object Symbol]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S["[object Error]"]=S["[object Function]"]=S["[object WeakMap]"]=!1,e.exports=function e(t,r,D,x,T,A){var I,O=1&r,R=2&r,M=4&r;if(D&&(I=T?D(t,x,T,A):D(t)),void 0!==I)return I;if(!w(t))return t;var B=v(t);if(B){if(I=g(t),!O)return l(t,I)}else{var P=p(t),F="[object Function]"==P||"[object GeneratorFunction]"==P;if(y(t))return c(t,O);if("[object Object]"==P||"[object Arguments]"==P||F&&!T){if(I=R||F?{}:b(t),!O)return R?d(t,a(I,t)):u(t,s(I,t))}else{if(!S[P])return T?t:{};I=m(t,P,O)}}A||(A=new n);var L=A.get(t);if(L)return L;A.set(t,I),C(t)?t.forEach((function(n){I.add(e(n,r,D,n,t,A))})):_(t)&&t.forEach((function(n,i){I.set(i,e(n,r,D,i,t,A))}));var N=B?void 0:(M?R?f:h:R?E:k)(t);return i(N||t,(function(n,i){N&&(n=t[i=n]),o(I,i,e(n,r,D,i,t,A))})),I}},function(e,t,r){var n=r(73),i=r(696),o=r(697),s=r(698),a=r(699),c=r(700);function l(e){var t=this.__data__=new n(e);this.size=t.size}l.prototype.clear=i,l.prototype.delete=o,l.prototype.get=s,l.prototype.has=a,l.prototype.set=c,e.exports=l},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,r){var n=r(74),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():i.call(t,r,1),--this.size,!0)}},function(e,t,r){var n=r(74);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},function(e,t,r){var n=r(74);e.exports=function(e){return n(this.__data__,e)>-1}},function(e,t,r){var n=r(74);e.exports=function(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}},function(e,t,r){var n=r(73);e.exports=function(){this.__data__=new n,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,r){var n=r(73),i=r(129),o=r(705);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var s=r.__data__;if(!i||s.length<199)return s.push([e,t]),this.size=++r.size,this;r=this.__data__=new o(s)}return r.set(e,t),this.size=r.size,this}},function(e,t,r){var n=r(256),i=r(702),o=r(33),s=r(257),a=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,h=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(n(e)?h:a).test(s(e))}},function(e,t,r){var n,i=r(703),o=(n=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!o&&o in e}},function(e,t,r){var n=r(20)["__core-js_shared__"];e.exports=n},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,r){var n=r(706),i=r(713),o=r(715),s=r(716),a=r(717);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=s,c.prototype.set=a,e.exports=c},function(e,t,r){var n=r(707),i=r(73),o=r(129);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||i),string:new n}}},function(e,t,r){var n=r(708),i=r(709),o=r(710),s=r(711),a=r(712);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=s,c.prototype.set=a,e.exports=c},function(e,t,r){var n=r(75);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,r){var n=r(75),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return i.call(t,e)?t[e]:void 0}},function(e,t,r){var n=r(75),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:i.call(t,e)}},function(e,t,r){var n=r(75);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t,r){var n=r(76);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,r){var n=r(76);e.exports=function(e){return n(this,e).get(e)}},function(e,t,r){var n=r(76);e.exports=function(e){return n(this,e).has(e)}},function(e,t,r){var n=r(76);e.exports=function(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}},function(e,t){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}},function(e,t,r){var n=r(34),i=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},function(e,t,r){var n=r(77),i=r(130);e.exports=function(e,t){return e&&n(t,i(t),e)}},function(e,t){e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},function(e,t,r){var n=r(723),i=r(45),o=Object.prototype,s=o.hasOwnProperty,a=o.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(e){return i(e)&&s.call(e,"callee")&&!a.call(e,"callee")};e.exports=c},function(e,t,r){var n=r(62),i=r(45);e.exports=function(e){return i(e)&&"[object Arguments]"==n(e)}},function(e,t){e.exports=function(){return!1}},function(e,t){var r=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&r.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,r){var n=r(727),i=r(132),o=r(133),s=o&&o.isTypedArray,a=s?i(s):n;e.exports=a},function(e,t,r){var n=r(62),i=r(262),o=r(45),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!s[n(e)]}},function(e,t,r){var n=r(134),i=r(729),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return i(e);var t=[];for(var r in Object(e))o.call(e,r)&&"constructor"!=r&&t.push(r);return t}},function(e,t,r){var n=r(263)(Object.keys,Object);e.exports=n},function(e,t,r){var n=r(77),i=r(135);e.exports=function(e,t){return e&&n(t,i(t),e)}},function(e,t,r){var n=r(33),i=r(134),o=r(732),s=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=i(e),r=[];for(var a in e)("constructor"!=a||!t&&s.call(e,a))&&r.push(a);return r}},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},function(e,t,r){(function(e){var n=r(20),i=t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,s=o&&o.exports===i?n.Buffer:void 0,a=s?s.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=a?a(r):new e.constructor(r);return e.copy(n),n}}).call(this,r(42)(e))},function(e,t){e.exports=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}},function(e,t,r){var n=r(77),i=r(136);e.exports=function(e,t){return n(e,i(e),t)}},function(e,t){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,o=[];++r<n;){var s=e[r];t(s,r,e)&&(o[i++]=s)}return o}},function(e,t,r){var n=r(77),i=r(266);e.exports=function(e,t){return n(e,i(e),t)}},function(e,t,r){var n=r(269),i=r(136),o=r(130);e.exports=function(e){return n(e,o,i)}},function(e,t,r){var n=r(269),i=r(266),o=r(135);e.exports=function(e){return n(e,o,i)}},function(e,t,r){var n=r(34)(r(20),"DataView");e.exports=n},function(e,t,r){var n=r(34)(r(20),"Promise");e.exports=n},function(e,t,r){var n=r(34)(r(20),"Set");e.exports=n},function(e,t,r){var n=r(34)(r(20),"WeakMap");e.exports=n},function(e,t){var r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&r.call(e,"index")&&(n.index=e.index,n.input=e.input),n}},function(e,t,r){var n=r(138),i=r(747),o=r(748),s=r(749),a=r(750);e.exports=function(e,t,r){var c=e.constructor;switch(t){case"[object ArrayBuffer]":return n(e);case"[object Boolean]":case"[object Date]":return new c(+e);case"[object DataView]":return i(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return a(e,r);case"[object Map]":return new c;case"[object Number]":case"[object String]":return new c(e);case"[object RegExp]":return o(e);case"[object Set]":return new c;case"[object Symbol]":return s(e)}}},function(e,t,r){var n=r(20).Uint8Array;e.exports=n},function(e,t,r){var n=r(138);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}},function(e,t){var r=/\w*$/;e.exports=function(e){var t=new e.constructor(e.source,r.exec(e));return t.lastIndex=e.lastIndex,t}},function(e,t,r){var n=r(128),i=n?n.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},function(e,t,r){var n=r(138);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},function(e,t,r){var n=r(752),i=r(268),o=r(134);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:n(i(e))}},function(e,t,r){var n=r(33),i=Object.create,o=function(){function e(){}return function(t){if(!n(t))return{};if(i)return i(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();e.exports=o},function(e,t,r){var n=r(754),i=r(132),o=r(133),s=o&&o.isMap,a=s?i(s):n;e.exports=a},function(e,t,r){var n=r(137),i=r(45);e.exports=function(e){return i(e)&&"[object Map]"==n(e)}},function(e,t,r){var n=r(756),i=r(132),o=r(133),s=o&&o.isSet,a=s?i(s):n;e.exports=a},function(e,t,r){var n=r(137),i=r(45);e.exports=function(e){return i(e)&&"[object Set]"==n(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});r(1).__exportStar(r(758),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigurationModel=t.Configuration=void 0;const n=r(1).__importDefault(r(254)),i=r(0);t.Configuration=class{constructor(e,t,r=new o,n={}){this.defaultConfiguration=e,this.userConfiguration=t,this.workspaceConfiguration=r,this.folderConfigurations=n,this.folderCombinedConfigs={}}getValue(e,t,r){return this.getCombinedResourceConfig(t,r).getValue(e)}inspect(e,t,r){const n=this.getCombinedResourceConfig(t,r),i=this.getFolderResourceConfig(t,r);return{default:this.defaultConfiguration.getValue(e),user:this.userConfiguration.getValue(e),workspace:t?this.workspaceConfiguration.getValue(e):void 0,workspaceFolder:i?i.getValue(e):void 0,value:n.getValue(e)}}getCombinedResourceConfig(e,t){const r=this.getCombinedConfig();if(!e||!t)return r;const n=e.getWorkspaceFolder(t);return n&&this.getFolderCombinedConfig(n.uri.toString())||r}getCombinedConfig(){return this.combinedConfig||(this.combinedConfig=this.defaultConfiguration.merge(this.userConfiguration,this.workspaceConfiguration)),this.combinedConfig}getFolderCombinedConfig(e){if(this.folderCombinedConfigs[e])return this.folderCombinedConfigs[e];const t=this.getCombinedConfig(),r=this.folderConfigurations[e];if(!r)return t;const n=t.merge(r);return this.folderCombinedConfigs[e]=n,n}getFolderResourceConfig(e,t){if(!e||!t)return;const r=e.getWorkspaceFolder(t);return r?this.folderConfigurations[r.uri.toString()]:void 0}};class o{constructor(e={},t=[]){this.contents=e,this.keys=t}getValue(e){if(!e)return this.contents;const t=e.split(".");let r=this.contents;for(const e of t){if("object"!=typeof r||null===r)return;r=r[e]}return r}merge(...e){const t=(0,n.default)(this.contents),r=[...this.keys];for(const n of e)this.mergeContents(t,n.contents),this.mergeKeys(r,n.keys);return new o(t,r)}mergeContents(e,t){for(const r of Object.keys(t))r in e&&(0,i.isObject)(e[r])&&(0,i.isObject)(t[r])?this.mergeContents(e[r],t[r]):e[r]=(0,n.default)(t[r])}mergeKeys(e,t){for(const r of t)-1===e.indexOf(r)&&e.push(r)}}t.ConfigurationModel=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtHostProgress=void 0;const n=r(1),i=r(0),o=r(7),s=r(5);t.ExtHostProgress=class{constructor(e){this.rpcProtocol=e,this._handles=0,this._mapHandleToCancellationSource=new Map,this._proxy=this.rpcProtocol.getProxy(o.MainThreadAPIIdentifier.MainThreadProgress)}withProgress(e,t,r){const n=this._handles++,{title:o,location:a,cancellable:c}=t,l=(0,i.formatLocalize)("extensionSource","{0} (Extension)",e.name);return this._proxy.$startProgress(n,{location:s.ProgressLocation.from(a),title:o,source:l,cancellable:c},e),this._withProgress(n,r,!!c)}_withProgress(e,t,r){let n;r&&(n=new i.CancellationTokenSource,this._mapHandleToCancellationSource.set(e,n));const o=e=>{this._proxy.$progressEnd(e),this._mapHandleToCancellationSource.delete(e),n&&n.dispose()};let s;try{s=t(new a(this._proxy,e),r&&n?n.token:i.CancellationToken.None)}catch(t){throw o(e),t}return s.then(t=>o(e),t=>o(e)),s}$acceptProgressCanceled(e){const t=this._mapHandleToCancellationSource.get(e);t&&(t.cancel(),this._mapHandleToCancellationSource.delete(e))}};class a extends i.Progress{constructor(e,t){super(e=>this.throttledReport(e)),this._proxy=e,this._handle=t}throttledReport(e){this._proxy.$progressReport(this._handle,e)}}n.__decorate([(0,i.throttle)(100,(e,t)=>function(e,t){return e.message=t.message,"number"==typeof t.increment&&("number"==typeof e.increment?e.increment+=t.increment:e.increment=t.increment),e}(e,t),()=>Object.create(null)),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],a.prototype,"throttledReport",null)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtHostQuickOpen=void 0;const n=r(0),i=r(7),o=r(4);t.ExtHostQuickOpen=class{constructor(e,t){this.workspace=t,this.createdQuicks=new Map,this.createdInputBoxs=new Map,this.currentQuick=0,this.proxy=e.getProxy(i.MainThreadAPIIdentifier.MainThreadQuickOpen)}async showQuickPick(e,t,r=n.CancellationToken.None){var i,s;this._onDidSelectItem=void 0;const a=null!==(i=null==t?void 0:t._sessionId)&&void 0!==i?i:++this.currentQuick,c=await e;t&&"function"==typeof t.onDidSelectItem&&(this._onDidSelectItem=e=>{t.onDidSelectItem(c[e])});const l=[],u=[];for(const[e,t]of c.entries())if("string"==typeof t)l.push({label:t,value:e});else if(t.kind===o.QuickPickItemKind.Separator)u.push(t);else{const r=null===(s=u.pop())||void 0===s?void 0:s.label;l.push({label:t.label,groupLabel:r,description:t.description,detail:t.detail,value:e,buttons:t.buttons,showBorder:void 0!==r})}const d=this.proxy.$showQuickPick(a,l,t&&{canPickMany:t.canPickMany,placeholder:t.placeHolder,fuzzyMatchDescription:t.matchOnDescription,fuzzyMatchDetail:t.matchOnDetail,ignoreFocusOut:t.ignoreFocusOut,keepScrollPosition:t.keepScrollPosition,title:t.title,buttons:t.buttons,step:t.step,totalSteps:t.totalSteps,value:t.value}),h=await(0,n.hookCancellationToken)(r,d);if(!(0,n.isUndefined)(h))return Array.isArray(h)?h.map(e=>c[e]):c[h]}$onItemSelected(e){this._onDidSelectItem&&this._onDidSelectItem(e)}async showWorkspaceFolderPick(e,t=n.CancellationToken.None){const r=await this.workspace.resolveWorkspaceFolder();if(!r)return;const i=++this.currentQuick,o=r.map(e=>({label:e.name,value:e.index})),s=this.proxy.$showQuickPick(i,o,e&&{placeholder:e.placeHolder,ignoreFocusOut:e.ignoreFocusOut}),a=await(0,n.hookCancellationToken)(t,s);return r.find(e=>e.index===a)}hideQuickPick(){this.proxy.$hideQuickPick()}createQuickPick(){const e=++this.currentQuick,t=new s(this,e);return this.createdQuicks.set(e,t),t}createInputBox(){const e=++this.currentQuick,t=new a(e,this.proxy,this,()=>{this.createdInputBoxs.delete(e)});return this.createdInputBoxs.set(e,t),t}$onDidChangeValue(e,t){const r=this.createdQuicks.get(e);r&&r._fireDidChangeValue(t)}$onCreatedInputBoxDidChangeValue(e,t){const r=this.createdInputBoxs.get(e);r&&r._fireDidChangeValue(t)}$onCreatedInputBoxDidAccept(e){const t=this.createdInputBoxs.get(e);t&&t._fireDidAccept()}$onCreatedInputBoxDidHide(e){const t=this.createdInputBoxs.get(e);t&&t._fireDidHide()}$onCreatedInputBoxDidTriggerButton(e,t){const r=this.createdInputBoxs.get(e);r&&r._fireDidTriggerButton(t)}$onDidTriggerButton(e){var t;return null===(t=this.createdQuicks.get(this.currentQuick))||void 0===t?void 0:t.attachBtn(e)}$onDidTriggerItemButton(e,t){var r;return null===(r=this.createdQuicks.get(this.currentQuick))||void 0===r?void 0:r.attachItemBtn(e,t)}showInputBox(e={},t=n.CancellationToken.None){this.validateInputHandler=e&&e.validateInput,this.hideInputBox();const r=this.proxy.$showQuickInput(e,"function"==typeof this.validateInputHandler);return(0,n.hookCancellationToken)(t,r)}$validateInput(e){if(this.validateInputHandler)return this.validateInputHandler(e)}hideInputBox(){this.proxy.$hideQuickInput()}};class s{constructor(e,t){this.quickOpen=e,this.value="",this._buttons=[],this._items=[],this._handlesToItems=new Map,this._itemsToHandles=new Map,this._activeItems=[],this._placeholder="",this.didShow=!1,this.quickPickIndex=t,this.disposableCollection=new n.DisposableCollection,this.disposableCollection.push(this._onDidHideEmitter=new n.Emitter),this.disposableCollection.push(this._onDidAcceptEmitter=new n.Emitter),this.disposableCollection.push(this._onDidChangeActiveEmitter=new n.Emitter),this.disposableCollection.push(this._onDidChangeSelectionEmitter=new n.Emitter),this.disposableCollection.push(this._onDidChangeValueEmitter=new n.Emitter),this.disposableCollection.push(this._onDidTriggerButtonEmitter=new n.Emitter),this.disposableCollection.push(this._onDidTriggerItemButtonEmitter=new n.Emitter)}get items(){return this._items}set items(e){this._items=e,this._handlesToItems.clear(),this._itemsToHandles.clear(),this._items.forEach((e,t)=>{this._handlesToItems.set(t,e),this._itemsToHandles.set(e,t)}),this.didShow&&this.show()}get activeItems(){return this._activeItems}set activeItems(e){this._activeItems=e}get onDidAccept(){return this._onDidAcceptEmitter.event}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e}get onDidChangeActive(){return this._onDidChangeActiveEmitter.event}get onDidChangeSelection(){return this._onDidChangeSelectionEmitter.event}get onDidChangeValue(){return this._onDidChangeValueEmitter.event}get buttons(){return this._buttons}set buttons(e){this._buttons=e}get onDidTriggerButton(){return this._onDidTriggerButtonEmitter.event}get onDidTriggerItemButton(){return this._onDidTriggerItemButtonEmitter.event}_fireDidChangeValue(e){this.value=e,this._onDidChangeValueEmitter.fire(e)}get onDidHide(){return this._onDidHideEmitter.event}dispose(){this.disposableCollection.dispose()}attachBtn(e){const t=this.buttons[e];return this._onDidTriggerButtonEmitter.fire(t)}attachItemBtn(e,t){const r=this._handlesToItems.get(e);if(!r||!r.buttons||!r.buttons.length)return;const n=r.buttons[t];return n?this._onDidTriggerItemButtonEmitter.fire({button:n,item:r}):void 0}hide(){this.quickOpen.hideQuickPick()}show(){this.didShow=!0;const e=()=>{this._onDidHideEmitter.fire(void 0)},t=e=>{const t=Array.isArray(e)?e:[e];this.selectedItems=this.activeItems=t,this._onDidAcceptEmitter.fire(void 0),this._onDidChangeSelectionEmitter.fire(t)};this.quickOpen.showQuickPick(this.items.map(e=>e),{canPickMany:this.canSelectMany,title:this.title,step:this.step,totalSteps:this.totalSteps,buttons:this.buttons,placeHolder:this.placeholder,ignoreFocusOut:this.ignoreFocusOut,_sessionId:this.quickPickIndex,keepScrollPosition:this.keepScrollPosition,value:this.value}).then(r=>{(0,n.isUndefined)(r)||t(r),e()})}}class a extends class{constructor(e,t,r,i){this._id=e,this.proxy=t,this.quickOpen=r,this._disposed=!1,this._pendingUpdate={},this._buttons=[],this._step=0,this._title="",this._totalSteps=0,this._value="",this._prompt="",this._placeholder="",this._password=!1,this._ignoreFocusOut=!1,this._busy=!1,this.disposableCollection=new n.DisposableCollection,this.disposableCollection.push(this._onDidAcceptEmitter=new n.Emitter),this.disposableCollection.push(this._onDidChangeValueEmitter=new n.Emitter),this.disposableCollection.push(this._onDidTriggerButtonEmitter=new n.Emitter),this.disposableCollection.push(this._onDidHideEmitter=new n.Emitter),this.disposableCollection.push(n.Disposable.create(i))}get ignoreFocusOut(){return this._ignoreFocusOut}set ignoreFocusOut(e){this._ignoreFocusOut=e,this.update({ignoreFocusOut:e})}get buttons(){return this._buttons}set buttons(e){this._buttons=e,this.update({buttons:e})}get busy(){return this._busy}set busy(e){this._busy=e,this.update({busy:e})}get title(){return this._title}set title(e){this._title=e,this.update({title:e})}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this.update({enabled:e})}get password(){return this._password}set password(e){this._password=e,this.update({password:e})}get value(){return this._value}set value(e){this._value=e,this.update({value:e})}get totalSteps(){return this._totalSteps}set totalSteps(e){this._totalSteps=e,this.update({totalSteps:e})}get step(){return this._step}set step(e){this._step=e,this.update({step:e})}get prompt(){return this._prompt}set prompt(e){this._prompt=e,this.update({prompt:e})}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.update({placeHolder:e})}get validationMessage(){return this._validationMessage}set validationMessage(e){var t;this._validationMessage=e,e?"string"==typeof e?this.update({validationMessage:e,severity:i.Severity.Error}):this.update({validationMessage:e.message,severity:null!==(t=e.severity)&&void 0!==t?t:i.Severity.Error}):this.update({validationMessage:void 0,severity:i.Severity.Ignore})}getOptions(){var e;return{value:this.value,prompt:this.prompt,placeHolder:this.placeholder,password:this.password,ignoreFocusOut:this.ignoreFocusOut,title:this._title,totalSteps:this.totalSteps,step:this.step,validationMessage:"string"==typeof this.validationMessage?this.validationMessage:null===(e=this.validationMessage)||void 0===e?void 0:e.message,buttons:this.buttons,busy:this.busy,enabled:this.enabled}}doUpdate(){"inputBox"===this.type&&this.proxy.$createOrUpdateInputBox(this._id,this._pendingUpdate),this._pendingUpdate={}}update(e){if(!this._disposed){for(const t of Object.keys(e))this._pendingUpdate[t]=void 0===e[t]?null:e[t];this._pendingUpdate=Object.assign(Object.assign({},this._pendingUpdate),e),this._updateTimeout||(this._updateTimeout=setTimeout(()=>{this._updateTimeout=void 0,this.doUpdate()},0))}}_fireDidChangeValue(e){this.value=e,this._onDidChangeValueEmitter.fire(e)}_fireDidAccept(){this._onDidAcceptEmitter.fire()}_fireDidTriggerButton(e){this._onDidTriggerButtonEmitter.fire(this.buttons[e])}_fireDidHide(){this._onDidHideEmitter.fire()}get onDidChangeValue(){return this._onDidChangeValueEmitter.event}get onDidAccept(){return this._onDidAcceptEmitter.event}get onDidTriggerButton(){return this._onDidTriggerButtonEmitter.event}get onDidHide(){return this._onDidHideEmitter.event}show(){this.update(this.getOptions())}hide(){"inputBox"===this.type&&this.proxy.$hideInputBox(this._id)}dispose(){this._disposed||(this.disposableCollection.dispose(),this._updateTimeout&&(clearTimeout(this._updateTimeout),this._updateTimeout=void 0),this.proxy.$disposeInputBox(this._id),this._disposed=!0)}}{constructor(){super(...arguments),this.type="inputBox"}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtHostSCM=t.ExtHostSCMInputBox=void 0;const n=r(1),i=r(0),o=r(7),{sortedDiff:s}=i.arrays;function a(e){if(e)return"string"==typeof e.iconPath?i.Uri.file(e.iconPath).toString():e.iconPath?""+e.iconPath:void 0}function c(e,t){if(!e.iconPath&&!t.iconPath)return 0;if(!e.iconPath)return-1;if(!t.iconPath)return 1;const r="string"==typeof e.iconPath?e.iconPath:e.iconPath.fsPath,n="string"==typeof t.iconPath?t.iconPath:t.iconPath.fsPath;return(0,i.comparePaths)(r,n)}function l(e,t){let r=(0,i.comparePaths)(e.resourceUri.fsPath,t.resourceUri.fsPath,!0);if(0!==r)return r;if(e.decorations&&t.decorations)r=function(e,t){let r=0;if(e.strikeThrough!==t.strikeThrough)return e.strikeThrough?1:-1;if(e.faded!==t.faded)return e.faded?1:-1;if(e.tooltip!==t.tooltip)return(e.tooltip||"").localeCompare(t.tooltip||"");if(r=c(e,t),0!==r)return r;if(e.light&&t.light)r=c(e.light,t.light);else{if(e.light)return 1;if(t.light)return-1}if(0!==r)return r;if(e.dark&&t.dark)r=c(e.dark,t.dark);else{if(e.dark)return 1;if(t.dark)return-1}return r}(e.decorations,t.decorations);else{if(e.decorations)return 1;if(t.decorations)return-1}return r}function u(e,t){return e.command===t.command&&e.title===t.title&&e.tooltip===t.tooltip&&(e.arguments&&t.arguments?function(e,t){for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}(e.arguments,t.arguments):e.arguments===t.arguments)}class d{get value(){return this._value}set value(e){this._proxy.$setInputBoxValue(this._sourceControlHandle,e),this.updateValue(e)}get onDidChange(){return this._onDidChange.event}get placeholder(){return this._placeholder}set placeholder(e){this._proxy.$setInputBoxPlaceholder(this._sourceControlHandle,e),this._placeholder=e}get validateInput(){return this._validateInput}set validateInput(e){e&&"function"!=typeof e?(0,i.getDebugLogger)().warn("Invalid SCM input box validation function"):(this._validateInput=e,this._proxy.$setValidationProviderIsEnabled(this._sourceControlHandle,!!e))}get visible(){return this._visible}set visible(e){e=!!e,this._visible=e,this._proxy.$setInputBoxVisibility(this._sourceControlHandle,e)}constructor(e,t,r){this._extension=e,this._proxy=t,this._sourceControlHandle=r,this._value="",this._onDidChange=new i.Emitter,this._placeholder="",this._visible=!0}$onInputBoxValueChange(e){this.updateValue(e)}updateValue(e){this._value=e,this._onDidChange.fire(e)}}t.ExtHostSCMInputBox=d;class h{get id(){return this._id}get label(){return this._label}set label(e){this._label=e,this._proxy.$updateGroupLabel(this._sourceControlHandle,this.handle,e)}get hideWhenEmpty(){return this._hideWhenEmpty}set hideWhenEmpty(e){this._hideWhenEmpty=e,this._proxy.$updateGroup(this._sourceControlHandle,this.handle,{hideWhenEmpty:e})}get resourceStates(){return[...this._resourceStates]}set resourceStates(e){this._resourceStates=[...e],this._onDidUpdateResourceStates.fire()}constructor(e,t,r,n,o){this._proxy=e,this._commands=t,this._sourceControlHandle=r,this._id=n,this._label=o,this._resourceHandlePool=0,this._resourceStates=[],this._resourceStatesMap=new Map,this._resourceStatesCommandsMap=new Map,this._resourceStatesDisposablesMap=new Map,this._onDidUpdateResourceStates=new i.Emitter,this.onDidUpdateResourceStates=this._onDidUpdateResourceStates.event,this._onDidDispose=new i.Emitter,this.onDidDispose=this._onDidDispose.event,this._handlesSnapshot=[],this._resourceSnapshot=[],this._hideWhenEmpty=void 0,this.handle=h._handlePool++,this._proxy.$registerGroup(r,this.handle,n,o)}getResourceState(e){return this._resourceStatesMap.get(e)}$executeResourceCommand(e,t){const r=this._resourceStatesCommandsMap.get(e);return r?(0,i.asPromise)(()=>this._commands.executeCommand(r.command,...r.arguments||[],t)):Promise.resolve(void 0)}_takeResourceStateSnapshot(){const e=[...this._resourceStates].sort(l),t=s(this._resourceSnapshot,e,l).map(e=>{const t=e.toInsert.map(e=>{const t=this._resourceHandlePool++;this._resourceStatesMap.set(t,e);const r=e.resourceUri,n=a(e.decorations),o=e.decorations&&a(e.decorations.light)||n,s=e.decorations&&a(e.decorations.dark)||n,c=[];let l;if(e.command)if("vscode.open"===e.command.command||"vscode.diff"===e.command.command){const r=new i.DisposableStore;l=this._commands.converter.toInternal(e.command,r),this._resourceStatesDisposablesMap.set(t,r)}else this._resourceStatesCommandsMap.set(t,e.command);o&&c.push(o),s&&s!==o&&c.push(s);return{rawResource:[t,r,c,e.decorations&&e.decorations.tooltip||"",e.decorations&&!!e.decorations.strikeThrough,e.decorations&&!!e.decorations.faded,e.contextValue||"",l],handle:t}});return{start:e.start,deleteCount:e.deleteCount,toInsert:t}}),r=t.map(({start:e,deleteCount:t,toInsert:r})=>[e,t,r.map(e=>e.rawResource)]),n=t.reverse();for(const{start:e,deleteCount:t,toInsert:r}of n){const n=r.map(e=>e.handle),i=this._handlesSnapshot.splice(e,t,...n);for(const e of i)this._resourceStatesMap.delete(e),this._resourceStatesCommandsMap.delete(e)}return this._resourceSnapshot=e,r}dispose(){this._proxy.$unregisterGroup(this._sourceControlHandle,this.handle),this._onDidDispose.fire()}}h._handlePool=0;class f{get actionButton(){return this._actionButton}set actionButton(e){var t,r,n;let o;this._actionButtonDisposables.value=new i.DisposableStore,this._actionButton=e,o=(0,i.isUndefined)(e)?void 0:"string"==typeof(null==e?void 0:e.command)?{command:this._commands.converter.toInternal(e,this._actionButtonDisposables.value),secondaryCommands:null===(t=e.secondaryCommands)||void 0===t?void 0:t.map(e=>e.map(e=>this._commands.converter.toInternal(e,this._actionButtonDisposables.value))),description:e.title,enabled:!0}:{command:this._commands.converter.toInternal(e.command,this._actionButtonDisposables.value),secondaryCommands:null===(r=e.secondaryCommands)||void 0===r?void 0:r.map(e=>e.map(e=>this._commands.converter.toInternal(e,this._actionButtonDisposables.value))),description:e.description||e.tooltip,enabled:null===(n=e.enabled)||void 0===n||n},this._proxy.$updateSourceControl(this.handle,{actionButton:null!=o?o:null})}get id(){return this._id}get label(){return this._label}get rootUri(){return this._rootUri}get inputBox(){return this._inputBox}get count(){return this._count}set count(e){this._count!==e&&(this._count=e,this._proxy.$updateSourceControl(this.handle,{count:e}))}get quickDiffProvider(){return this._quickDiffProvider}set quickDiffProvider(e){this._quickDiffProvider=e,this._proxy.$updateSourceControl(this.handle,{hasQuickDiffProvider:!!e})}get commitTemplate(){return this._commitTemplate}set commitTemplate(e){this._commitTemplate=e,this._proxy.$updateSourceControl(this.handle,{commitTemplate:e})}get acceptInputCommand(){return this._acceptInputCommand}set acceptInputCommand(e){this._acceptInputDisposables.value=new i.DisposableStore,this._acceptInputCommand=e;const t=this._commands.converter.toInternal(e,this._acceptInputDisposables.value);this._proxy.$updateSourceControl(this.handle,{acceptInputCommand:t})}get statusBarCommands(){return this._statusBarCommands}set statusBarCommands(e){if(this._statusBarCommands&&e&&function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!u(e[r],t[r]))return!1;return!0}(this._statusBarCommands,e))return;this._statusBarDisposables.value=new i.DisposableStore,this._statusBarCommands=e;const t=(e||[]).map(e=>this._commands.converter.toInternal(e,this._statusBarDisposables.value));this._proxy.$updateSourceControl(this.handle,{statusBarCommands:t})}get selected(){return this._selected}constructor(e,t,r,n,o,s){this._proxy=t,this._commands=r,this._id=n,this._label=o,this._rootUri=s,this._groups=new Map,this._actionButtonDisposables=new i.MutableDisposable,this._count=void 0,this._quickDiffProvider=void 0,this._commitTemplate=void 0,this._acceptInputDisposables=new i.MutableDisposable,this._acceptInputCommand=void 0,this._statusBarDisposables=new i.MutableDisposable,this._statusBarCommands=void 0,this._selected=!1,this._onDidChangeSelection=new i.Emitter,this.onDidChangeSelection=this._onDidChangeSelection.event,this.handle=f._handlePool++,this.updatedResourceGroups=new Set,this._inputBox=new d(e,this._proxy,this.handle),this._proxy.$registerSourceControl(this.handle,n,o,s)}createResourceGroup(e,t){const r=new h(this._proxy,this._commands,this.handle,e,t),n=r.onDidUpdateResourceStates(()=>{this.updatedResourceGroups.add(r),this.eventuallyUpdateResourceStates()});return i.Event.once(r.onDidDispose)(()=>{this.updatedResourceGroups.delete(r),n.dispose(),this._groups.delete(r.handle)}),this._groups.set(r.handle,r),r}eventuallyUpdateResourceStates(){const e=[];this.updatedResourceGroups.forEach(t=>{const r=t._takeResourceStateSnapshot();0!==r.length&&e.push([t.handle,r])}),e.length>0&&this._proxy.$spliceResourceStates(this.handle,e),this.updatedResourceGroups.clear()}getResourceGroup(e){return this._groups.get(e)}setSelectionState(e){this._selected=e,this._onDidChangeSelection.fire(e)}dispose(){this._acceptInputDisposables.dispose(),this._statusBarDisposables.dispose(),this._groups.forEach(e=>e.dispose()),this._proxy.$unregisterSourceControl(this.handle)}}f._handlePool=0,n.__decorate([(0,i.debounce)(100),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],f.prototype,"eventuallyUpdateResourceStates",null);class p{get onDidChangeActiveProvider(){return this._onDidChangeActiveProvider.event}constructor(e,t){this._commands=t,this.logger=(0,i.getDebugLogger)(),this._sourceControls=new Map,this._sourceControlsByExtension=new Map,this._onDidChangeActiveProvider=new i.Emitter,this._selectedSourceControlHandles=new Set,this._proxy=e.getProxy(o.MainThreadAPIIdentifier.MainThreadSCM),t.registerArgumentProcessor({processArgument:e=>{if(e&&3===e.$mid){const t=this._sourceControls.get(e.sourceControlHandle);if(!t)return e;const r=t.getResourceGroup(e.groupHandle);return r?r.getResourceState(e.handle):e}if(e&&4===e.$mid){const t=this._sourceControls.get(e.sourceControlHandle);return t?t.getResourceGroup(e.groupHandle):e}if(e&&5===e.$mid){const t=this._sourceControls.get(e.handle);return t||e}return e}})}createSourceControl(e,t,r,n){this.logger.log("ExtHostSCM#createSourceControl",e.id,t,r,n);const i=p._handlePool++,o=new f(e,this._proxy,this._commands,t,r,n);this._sourceControls.set(i,o);const s=this._sourceControlsByExtension.get(e.id)||[];return s.push(o),this._sourceControlsByExtension.set(e.id,s),o}getLastInputBox(e){this.logger.log("ExtHostSCM#getLastInputBox",e.id);const t=this._sourceControlsByExtension.get(e.id),r=t&&t[t.length-1];return r&&r.inputBox}$provideOriginalResource(e,t,r){const n=i.Uri.revive(t);this.logger.log("ExtHostSCM#$provideOriginalResource",e,n.toString());const o=this._sourceControls.get(e);return o&&o.quickDiffProvider&&o.quickDiffProvider.provideOriginalResource?(0,i.asPromise)(()=>o.quickDiffProvider.provideOriginalResource(n,r)).then(e=>e||null):Promise.resolve(null)}$onInputBoxValueChange(e,t){this.logger.log("ExtHostSCM#$onInputBoxValueChange",e);const r=this._sourceControls.get(e);return r?(r.inputBox.$onInputBoxValueChange(t),Promise.resolve(void 0)):Promise.resolve(void 0)}$executeResourceCommand(e,t,r,n){this.logger.log("ExtHostSCM#$executeResourceCommand",e,t,r);const i=this._sourceControls.get(e);if(!i)return Promise.resolve(void 0);const o=i.getResourceGroup(t);return o?o.$executeResourceCommand(r,n):Promise.resolve(void 0)}$validateInput(e,t,r){this.logger.log("ExtHostSCM#$validateInput",e);const n=this._sourceControls.get(e);return n&&n.inputBox.validateInput?(0,i.asPromise)(()=>n.inputBox.validateInput(t,r)).then(e=>e?Promise.resolve([e.message.toString(),e.type]):Promise.resolve(void 0)):Promise.resolve(void 0)}$setSelectedSourceControls(e){this.logger.log("ExtHostSCM#$setSelectedSourceControls",e);const t=new Set;for(const r of e)t.add(r);return t.forEach(e=>{if(!this._selectedSourceControlHandles.has(e)){const t=this._sourceControls.get(e);if(!t)return;t.setSelectionState(!0)}}),this._selectedSourceControlHandles.forEach(e=>{if(!t.has(e)){const t=this._sourceControls.get(e);if(!t)return;t.setSelectionState(!1)}}),this._selectedSourceControlHandles=t,Promise.resolve(void 0)}}t.ExtHostSCM=p,p._handlePool=0},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.StatusBarItemImpl=t.ExtHostStatusBar=void 0;const n=r(1),i=r(0),o=r(7),s=r(5),a=r(4),c=n.__importStar(r(4));t.ExtHostStatusBar=class{constructor(e){this.argumentProcessors=[],this.rpcProtocol=e,this.proxy=this.rpcProtocol.getProxy(o.MainThreadAPIIdentifier.MainThreadStatusBar)}setStatusBarMessage(t,r){let n;return this.proxy.$setStatusBarMessage(t),"number"==typeof r?n=e.setTimeout(()=>this.proxy.$dispose(),r):void 0!==r&&r.then(()=>this.proxy.$dispose(),()=>this.proxy.$dispose()),a.Disposable.create(()=>{this.proxy.$dispose(),n&&clearTimeout(n)})}createStatusBarItem(e,t,r,n){const i=new l(this.rpcProtocol,e,t,r,n);return this.proxy.$createStatusBarItem(i.entryId,i.id,i.alignment,i.priority),i}};class l{constructor(e,t,r,n=c.StatusBarAlignment.Left,i=0){this._rpcProtocol=e,this._extension=t,this._id=r,this._alignment=n,this._priority=i,this._entryId=l.nextId(),this._text="",this._proxy=this._rpcProtocol.getProxy(o.MainThreadAPIIdentifier.MainThreadStatusBar)}get id(){var e;return null!==(e=this._id)&&void 0!==e?e:this._extension.identifier.value}get entryId(){return this._entryId}get alignment(){return this._alignment}get priority(){return this._priority}get text(){return this._text}set text(e){this._text=e,this.update()}get name(){return this._name}set name(e){this._name=e,this.update()}get tooltip(){return this._tooltip}set tooltip(e){this._tooltip=e,this.update()}get color(){return this._color}set color(e){this._color=e,this.update()}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){e&&!l.ALLOWED_BACKGROUND_COLORS.has(e.id)&&(e=void 0),this._backgroundColor=e,this.update()}get accessibilityInformation(){return this._accessibilityInformation}set accessibilityInformation(e){this._accessibilityInformation=e,this.update()}get command(){return this._command}set command(e){this._command=e,this.update()}show(){this._isVisible=!0,this.update()}hide(){this._timeoutHandle&&clearTimeout(this._timeoutHandle),this._proxy.$dispose(this.entryId),this._isVisible=!1}update(){this._isVisible&&(this._timeoutHandle&&clearTimeout(this._timeoutHandle),this._timeoutHandle=e.setTimeout(()=>{var e,t;this._timeoutHandle=void 0;const r="string"==typeof this.command?this.command:null===(e=this.command)||void 0===e?void 0:e.command,n="string"==typeof this.command||null===(t=this.command)||void 0===t?void 0:t.arguments;let o,a;o=this._extension?this._id?`${this._extension.identifier.value}.${this._id}`:this._extension.identifier.value:this._id,a=this._name?this._name:(0,i.formatLocalize)("extension.label",this._extension.displayName||this._extension.name);let c=this._color;this._backgroundColor&&(c=l.ALLOWED_BACKGROUND_COLORS.get(this._backgroundColor.id)),this._proxy.$setMessage(this._entryId,o,a,this.text,this.priority,this.alignment,c,this._backgroundColor,s.MarkdownString.fromStrict(this.tooltip),this.accessibilityInformation,r,n)},0))}dispose(){this.hide()}static nextId(){return l.ID_PREFIX+":"+(0,i.uuid)()}}t.StatusBarItemImpl=l,l.ALLOWED_BACKGROUND_COLORS=new Map([["statusBarItem.errorBackground",new a.ThemeColor("statusBarItem.errorForeground")],["statusBarItem.warningBackground",new a.ThemeColor("statusBarItem.warningForeground")]]),l.ID_PREFIX="plugin-status-bar-item"}).call(this,r(11))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});r(1).__exportStar(r(764),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1);n.__exportStar(r(765),t),n.__exportStar(r(766),t),n.__exportStar(r(767),t),n.__exportStar(r(768),t),n.__exportStar(r(769),t),n.__exportStar(r(770),t),n.__exportStar(r(771),t),n.__exportStar(r(772),t),n.__exportStar(r(773),t),n.__exportStar(r(774),t),n.__exportStar(r(775),t),n.__exportStar(r(776),t),n.__exportStar(r(777),t),n.__exportStar(r(778),t),n.__exportStar(r(779),t),n.__exportStar(r(780),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ITerminalHoverManagerService=t.ITerminalGroupViewService=t.ITerminalSearchService=t.ITerminalController=void 0,t.ITerminalController=Symbol("ITerminalController"),t.ITerminalSearchService=Symbol("ITerminalSearchService"),t.ITerminalGroupViewService=Symbol("ITerminalGroupViewService"),t.ITerminalHoverManagerService=Symbol("ITerminalHoverManagerService")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ITerminalRestore=void 0,t.ITerminalRestore=Symbol("ITerminalRestore")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ITerminalErrorService=t.isTerminalError=t.ETerminalErrorType=void 0,function(e){e[e.CREATE_FAIL=0]="CREATE_FAIL"}(t.ETerminalErrorType||(t.ETerminalErrorType={})),t.isTerminalError=function(e){return void 0!==e.message},t.ITerminalErrorService=Symbol("ITerminalErrorService")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.asTerminalIcon=t.IExternalTerminalService=t.ITerminalServiceClient=t.ITerminalProcessService=t.ITerminalNodeService=t.PTY_SERVICE_PROXY_SERVER_PORT=t.PTY_SERVICE_PROXY_CALLBACK_PROTOCOL=t.PTY_SERVICE_PROXY_PROTOCOL=t.ITerminalProcessPath=t.ITerminalServicePath=void 0,t.ITerminalServicePath="ITerminalServicePath",t.ITerminalProcessPath="ITerminalProcessPath",t.PTY_SERVICE_PROXY_PROTOCOL="PTY_SERVICE_PROXY_PROTOCOL",t.PTY_SERVICE_PROXY_CALLBACK_PROTOCOL="PTY_SERVICE_PROXY_CALLBACK_PROTOCOL",t.PTY_SERVICE_PROXY_SERVER_PORT=10111,t.ITerminalNodeService=Symbol("ITerminalNodeService"),t.ITerminalProcessService=Symbol("ITerminalProcessService"),t.ITerminalServiceClient=Symbol("ITerminalServiceClient"),t.IExternalTerminalService=Symbol("IExternalTerminalService"),t.asTerminalIcon=function(e){if(e&&"string"!=typeof e)return"id"in e?{id:e.id,color:e.color}:e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ITerminalInternalService=t.ITerminalService=void 0,t.ITerminalService=Symbol("ITerminalService"),t.ITerminalInternalService=Symbol("ITerminalInternalService")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TERMINAL_ID_SEPARATOR=t.ITerminalClientFactory2=void 0,t.ITerminalClientFactory2=Symbol("ITerminalClientFactory2"),t.TERMINAL_ID_SEPARATOR="|"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ITerminalApiService=void 0,t.ITerminalApiService=Symbol("ITerminalApiService")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ITerminalTheme=void 0,t.ITerminalTheme=Symbol("ITerminalTheme")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateSessionId=t.apiActionViewUuid=t.userActionViewUuid=void 0;const n=r(0);let i=0;function o(){return i++}t.userActionViewUuid=()=>`UI_View_${(0,n.uuid)()}${o()}`;t.apiActionViewUuid=()=>`API_View_${(0,n.uuid)()}${o()}`;t.generateSessionId=()=>(0,n.uuid)()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ITerminalRenderProvider=t.ItemType=void 0,function(e){e[e.info=0]="info",e[e.add=1]="add"}(t.ItemType||(t.ItemType={})),t.ITerminalRenderProvider=Symbol("TerminalRenderProvider")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TerminalLocation=t.TerminalDataBufferer=void 0;t.TerminalDataBufferer=class{constructor(e){this._callback=e,this._terminalBufferMap=new Map}dispose(){for(const e of this._terminalBufferMap.values())e.dispose()}startBuffering(e,t,r=5){let n;return n=t(t=>{const i="string"==typeof t?t:t.data;let o=this._terminalBufferMap.get(e);if(o)return void o.data.push(i);const s=setTimeout(()=>this._flushBuffer(e),r);o={data:[i],timeoutId:s,dispose:()=>{clearTimeout(s),this._flushBuffer(e),n.dispose()}},this._terminalBufferMap.set(e,o)}),n}stopBuffering(e){const t=this._terminalBufferMap.get(e);t&&t.dispose()}_flushBuffer(e){const t=this._terminalBufferMap.get(e);t&&(this._terminalBufferMap.delete(e),this._callback(e,t.data.join("")))}},function(e){e[e.Panel=1]="Panel",e[e.Editor=2]="Editor"}(t.TerminalLocation||(t.TerminalLocation={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TerminalNetworkStatus=t.ITerminalNetwork=void 0,t.ITerminalNetwork=Symbol("ITerminalNetwork"),function(e){e[e.DISCONNECTED=0]="DISCONNECTED",e[e.CONNECTED=1]="CONNECTED"}(t.TerminalNetworkStatus||(t.TerminalNetworkStatus={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.computeLinks=t.LinkComputer=t.StateMachine=t.Uint8Matrix=void 0;const n=r(0);class i{constructor(e,t,r){const n=new Uint8Array(e*t);for(let i=0,o=e*t;i<o;i++)n[i]=r;this._data=n,this.rows=e,this.cols=t}get(e,t){return this._data[e*this.cols+t]}set(e,t,r){this._data[e*this.cols+t]=r}}t.Uint8Matrix=i;class o{constructor(e){let t=0,r=0;for(let n=0,i=e.length;n<i;n++){const[i,o,s]=e[n];o>t&&(t=o),i>r&&(r=i),s>r&&(r=s)}t++,r++;const n=new i(r,t,0);for(let t=0,r=e.length;t<r;t++){const[r,i,o]=e[t];n.set(r,i,o)}this._states=n,this._maxCharCode=t}nextState(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)}}t.StateMachine=o;let s=null;let a=null;class c{static _createLink(e,t,r,n,i){let o=i-1;do{const r=t.charCodeAt(o);if(2!==e.get(r))break;o--}while(o>n);if(n>0){const e=t.charCodeAt(n-1),r=t.charCodeAt(o);(40===e&&41===r||91===e&&93===r||123===e&&125===r)&&o--}return{range:{startLineNumber:r,startColumn:n+1,endLineNumber:r,endColumn:o+2},url:t.substring(n,o+1)}}static computeLinks(e,t=function(){return null===s&&(s=new o([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),s}()){const r=function(){if(null===a){a=new n.CharacterClassifier(0);const e=" \t<>'\"、。。、,.:;‘“〈《「『【〔([{「」}])〕】』」》〉”’`~…";for(let t=0;t<e.length;t++)a.set(e.charCodeAt(t),1);const t=".,;";for(let e=0;e<t.length;e++)a.set(t.charCodeAt(e),2)}return a}(),i=[];for(let n=1,o=e.getLineCount();n<=o;n++){const o=e.getLineContent(n),s=o.length;let a=0,l=0,u=0,d=1,h=!1,f=!1,p=!1,g=!1;for(;a<s;){let e=!1;const s=o.charCodeAt(a);if(13===d){let t;switch(s){case 40:h=!0,t=0;break;case 41:t=h?0:1;break;case 91:p=!0,f=!0,t=0;break;case 93:p=!1,t=f?0:1;break;case 123:g=!0,t=0;break;case 125:t=g?0:1;break;case 39:t=34===u||96===u?0:1;break;case 34:t=39===u||96===u?0:1;break;case 96:t=39===u||34===u?0:1;break;case 42:t=42===u?1:0;break;case 124:t=124===u?1:0;break;case 32:t=p?0:1;break;default:t=r.get(s)}1===t&&(i.push(c._createLink(r,o,n,l,a)),e=!0)}else if(12===d){let t;91===s?(f=!0,t=0):t=r.get(s),1===t?e=!0:d=13}else d=t.nextState(d,s),0===d&&(e=!0);e&&(d=1,h=!1,f=!1,g=!1,l=a+1,u=s),a++}13===d&&i.push(c._createLink(r,o,n,l,s))}return i}}t.LinkComputer=c,t.computeLinks=function(e){return e&&"function"==typeof e.getLineCount&&"function"==typeof e.getLineContent?c.computeLinks(e):[]}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.terminalProfileArgsMatch=t.ITerminalProfileInternalService=t.ITerminalProfileService=void 0,t.ITerminalProfileService=Symbol("ITerminalProfileService"),t.ITerminalProfileInternalService=Symbol("ITerminalProfileInternalService"),t.terminalProfileArgsMatch=function(e,t){if(!e&&!t)return!0;if("string"==typeof e&&"string"==typeof t)return e===t;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return!1}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.deserializeEnvironmentVariableCollection=t.serializeEnvironmentVariableCollection=t.EnvironmentVariableMutatorType=t.mutatorTypeLabel=t.EnvironmentVariableServiceToken=void 0,t.EnvironmentVariableServiceToken=Symbol("EnvironmentVariableServiceToken"),t.mutatorTypeLabel=function(e,t,r){switch(e){case n.Prepend:return`${r}=${t}\${env:${r}}`;case n.Append:return`${r}=\${env:${r}}${t}`;default:return`${r}=${t}`}},function(e){e[e.Replace=1]="Replace",e[e.Append=2]="Append",e[e.Prepend=3]="Prepend"}(n=t.EnvironmentVariableMutatorType||(t.EnvironmentVariableMutatorType={})),t.serializeEnvironmentVariableCollection=function(e){return[...e.entries()]},t.deserializeEnvironmentVariableCollection=function(e){return new Map(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtHostTheming=void 0;const n=r(0),i=r(7),o=r(4);t.ExtHostTheming=class{constructor(e){this.rpcProtocol=e,this._proxy=this.rpcProtocol.getProxy(i.MainThreadAPIIdentifier.MainThreadProgress),this._actual=new o.ColorTheme(o.ColorThemeKind.Dark),this._onDidChangeActiveColorTheme=new n.Emitter}get activeColorTheme(){return this._actual}$onColorThemeChange(e){let t;switch(e){case"light":t=o.ColorThemeKind.Light;break;case"dark":t=o.ColorThemeKind.Dark;break;case"hcDark":t=o.ColorThemeKind.HighContrast;break;case"hcLight":t=o.ColorThemeKind.HighContrastLight;break;default:t=o.ColorThemeKind.Dark}this._actual=new o.ColorTheme(t),this._onDidChangeActiveColorTheme.fire(this._actual)}get onDidChangeActiveColorTheme(){return this._onDidChangeActiveColorTheme.event}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtHostTreeViews=void 0;const n=r(1),i=r(0),o=r(7),s=r(7),a=r(5),c=n.__importStar(r(4));t.ExtHostTreeViews=class{constructor(e,t){this.extHostCommand=t,this.treeViews=new Map,this.treeDragAndDropService=new o.TreeviewsService,this.proxy=e.getProxy(o.MainThreadAPIIdentifier.MainThreadTreeView),t.registerArgumentProcessor({processArgument:e=>{if(!s.TreeViewSelection.is(e))return e;const{treeViewId:t,treeItemId:r}=e,n=this.treeViews.get(t);return n&&n.getTreeItem(r)}})}registerTreeDataProvider(e,t){const r=this.createTreeView(e,{treeDataProvider:t});return i.Disposable.create(()=>{this.treeViews.delete(e),r.dispose()})}createTreeView(e,t){if(!t||!t.treeDataProvider)throw new Error("Options with treeDataProvider is mandatory");const r=new l(e,t,this.proxy,this.extHostCommand);return this.treeViews.set(e,r),{get onDidExpandElement(){return r.onDidExpandElement},get onDidCollapseElement(){return r.onDidCollapseElement},get selection(){return r.selectedElements},get onDidChangeSelection(){return r.onDidChangeSelection},get visible(){return r.visible},get onDidChangeVisibility(){return r.onDidChangeVisibility},get message(){return r.message},set message(e){r.message=e},get title(){return r.title},set title(e){r.title=e},get description(){return r.description},set description(e){r.description=e},reveal:(e,t)=>r.reveal(e,t),dispose:()=>{this.treeViews.delete(e),r.dispose()}}}async $getChildren(e,t){const r=this.treeViews.get(e);if(!r)throw new Error("No tree view with id "+e);return r.getChildren(t)}async $resolveTreeItem(e,t,r){const n=this.treeViews.get(e);if(!n)throw new Error("No tree view with id "+e);return n.resolveTreeItem(t,r)}async $setExpanded(e,t,r){const n=this.treeViews.get(e);if(!n)throw new Error("No tree view with id "+e);return r?n.onExpanded(t):n.onCollapsed(t)}async $setSelection(e,t){const r=this.treeViews.get(e);if(!r)throw new Error("No tree view with id "+e);r.setSelection(t)}async $setVisible(e,t){const r=this.treeViews.get(e);if(!r)throw new Error("No tree view with id "+e);r.setVisible(t)}async $handleDrop(e,t,r,n,i,o,s,c){const l=this.treeViews.get(e);if(!l)return Promise.reject(new Error(`No tree view with id '${e}' registered.`));const u=a.DataTransfer.toDataTransfer(r,async r=>(await this.proxy.$resolveDropFileData(e,t,r)).buffer);return s===e&&c&&await this.addAdditionalTransferItems(u,l,c,i,o),l.onDrop(u,n,i)}async addAdditionalTransferItems(e,t,r,n,i){var o;const s=this.treeDragAndDropService.removeDragOperationTransfer(i);if(s)null===(o=await s)||void 0===o||o.forEach((t,r)=>{t&&e.set(r,t)});else if(i&&t.handleDrag){const o=t.handleDrag(r,e,n);this.treeDragAndDropService.addDragOperationTransfer(i,o),await o}return e}async $handleDrag(e,t,r,n){const i=this.treeViews.get(e);if(!i)return Promise.reject(new Error(`No tree view with id '${e}' registered.`));const o=await this.addAdditionalTransferItems(new c.DataTransfer,i,t,n,r);return o?a.DataTransfer.toDataTransferDTO(o):void 0}};class l{constructor(e,t,r,n){var o,s,a,c,l,u;this.treeViewId=e,this.options=t,this.proxy=r,this.commands=n,this.onDidExpandElementEmitter=new i.Emitter,this.onDidExpandElement=this.onDidExpandElementEmitter.event,this.onDidCollapseElementEmitter=new i.Emitter,this.onDidCollapseElement=this.onDidCollapseElementEmitter.event,this.onDidChangeSelectionEmitter=new i.Emitter,this.onDidChangeSelection=this.onDidChangeSelectionEmitter.event,this.onDidChangeVisibilityEmitter=new i.Emitter,this.onDidChangeVisibility=this.onDidChangeVisibilityEmitter.event,this._visible=!1,this.selectedItemIds=new Set,this.id2Element=new Map,this.element2TreeViewItem=new Map,this.element2VSCodeTreeItem=new Map,this.disposable=new i.DisposableStore,this._onDidChangeData=new i.Emitter,this.roots=void 0,this.nodes=new Map,this.refreshPromise=Promise.resolve(),this.refreshQueue=Promise.resolve(),this._refreshCancellationSource=new i.CancellationTokenSource,this.dataProvider=this.options.treeDataProvider,this.dndController=this.options.dragAndDropController;const d=null!==(s=null===(o=this.dndController)||void 0===o?void 0:o.dropMimeTypes)&&void 0!==s?s:[],h=null!==(c=null===(a=this.dndController)||void 0===a?void 0:a.dragMimeTypes)&&void 0!==c?c:[],f=!!(null===(l=this.dndController)||void 0===l?void 0:l.handleDrag),p=!!(null===(u=this.dndController)||void 0===u?void 0:u.handleDrop);if(this.disposable.add(this._onDidChangeData),r.$registerTreeDataProvider(e,{showCollapseAll:!!t.showCollapseAll,canSelectMany:!!t.canSelectMany,dropMimeTypes:d,dragMimeTypes:h,hasHandleDrag:f,hasHandleDrop:p}),this.dataProvider.onDidChangeTreeData){const e=this.dataProvider.onDidChangeTreeData(e=>{this._onDidChangeData.fire({element:e,message:!1})});e&&this.disposable.add(e)}let g,m;this.disposable.add((0,i.toDisposable)(()=>this.id2Element.clear())),this.disposable.add((0,i.toDisposable)(()=>this.element2TreeViewItem.clear())),this.disposable.add((0,i.toDisposable)(()=>this.element2VSCodeTreeItem.clear())),this.disposable.add((0,i.toDisposable)(()=>this.nodes.clear())),this.disposable.add((0,i.toDisposable)(()=>r.$unregisterTreeDataProvider(e))),this.disposable.add(i.Event.debounce(this.onDidChangeData,(e,t)=>(e||(e={message:!1,elements:[]}),!1!==t.element&&(g||(g=new Promise(e=>m=e),this.refreshPromise=this.refreshPromise.then(()=>g)),Array.isArray(t.element)?e.elements.push(...t.element):e.elements.push(t.element)),t.message&&(e.message=!0),e),200,!0)(({message:e,elements:t})=>{t.length&&(this.refreshQueue=this.refreshQueue.then(()=>{const e=m;return g=null,this.refresh(t).then(()=>e())})),e&&this.proxy.$setMessage(this.treeViewId,this._message)}))}refresh(e){if(e.some(e=>!e))return this._refreshCancellationSource.cancel(),this._refreshCancellationSource=new i.CancellationTokenSource,this.clearCache(),this.proxy.$refresh(this.treeViewId);{const t=this.getTreesNodeToRefresh(e);if(t.length)return this.refreshTreeNodes(t)}return Promise.resolve(void 0)}clearCache(){this.roots=void 0,this.nodes.clear(),this.id2Element.clear(),this.element2TreeViewItem.clear(),this.element2VSCodeTreeItem.clear()}getTreesNodeToRefresh(e){const t=new Set,r=e.map(e=>{const t=this.element2TreeViewItem.get(e);if(t)return t});for(const e of r)e&&t.add(e);return Array.from(t)}async refreshTreeNodes(e){await Promise.all(e.map(e=>this.proxy.$refresh(this.treeViewId,e)))}dispose(){this._refreshCancellationSource.dispose(),this.disposable.dispose()}get onDidChangeData(){return this._onDidChangeData.event}get title(){return this._title}set title(e){this.proxy.$setTitle(this.treeViewId,e),this._title=e}get description(){return this._description}set description(e){this.proxy.$setDescription(this.treeViewId,e),this._description=e}get message(){return this._message}set message(e){this._message=e,this._onDidChangeData.fire({message:!0,element:!1})}get visible(){return this._visible}get selectedElements(){const e=[];for(const t of this.selectedItemIds){const r=this.getTreeItem(t);r&&e.push(r)}return e}async reveal(e,t){let r=e.id;if(r||this.id2Element.forEach((t,n)=>{Object.is(t,e)&&(r=n)}),r)return this.proxy.$reveal(this.treeViewId,r,t)}getTreeItem(e){if(e)return this.id2Element.get(e)}async handleDrag(e,t,r){var n;const i=[];for(const t of e){const e=this.getTreeItem(t);e&&i.push(e)}if((null===(n=this.dndController)||void 0===n?void 0:n.handleDrag)&&0!==i.length)return await this.dndController.handleDrag(i,t,r),t}get hasHandleDrag(){var e;return!!(null===(e=this.dndController)||void 0===e?void 0:e.handleDrag)}async onDrop(e,t,r){var n;const o=t?this.getTreeItem(t):void 0;if((o||!t)&&(null===(n=this.dndController)||void 0===n?void 0:n.handleDrop))return(0,i.asPromise)(()=>{var t;return(null===(t=this.dndController)||void 0===t?void 0:t.handleDrop)?this.dndController.handleDrop(o,e,r):void 0})}async resolveTreeItem(e,t){var r;if(!this.dataProvider.resolveTreeItem)return;if(t.isCancellationRequested)return;const n=this.getTreeItem(e);if(n){const e=this.element2VSCodeTreeItem.get(n);if(!e)return;const i=null!==(r=await this.dataProvider.resolveTreeItem(e,n,t))&&void 0!==r?r:e;return e.tooltip=i.tooltip,e.command=i.command,this.toTreeViewItem(e)}}async getChildren(e){const t=this.getTreeItem(e);if(!t&&this.roots)return this.roots;let r;const n=await this.dataProvider.getChildren(t);if(this._refreshCancellationSource.token.isCancellationRequested)r=void 0;else if(n){const t=[];for(const[r,i]of n.entries()){const n=await this.dataProvider.getTreeItem(i);if(this._refreshCancellationSource.token.isCancellationRequested)return;let o;const s=n.label;s&&(o=s),!o&&n.resourceUri&&(o=n.resourceUri.path.toString(),o=decodeURIComponent(o),o.indexOf("/")>=0&&(o=o.substring(o.lastIndexOf("/")+1)));const a=n.id||`${e||"root"}/${r}:${"string"==typeof o?o:null==o?void 0:o.label}`;this.id2Element.set(a,i);const c=this.toTreeViewItem(n,{id:a});this.element2TreeViewItem.set(i,c),this.element2VSCodeTreeItem.set(i,n),t.push(c)}r=this._refreshCancellationSource.token.isCancellationRequested?void 0:t}else r=void 0;return t?this.nodes.set(t,r):this.roots=r,r}toTreeViewItem(e,t){const{id:r,label:n,iconPath:i}=e;let o,s,a;if("string"==typeof i&&-1!==i.indexOf("fa-"))o=i;else if(i instanceof c.ThemeIcon)a=i;else{const t=this.getLightIconPath(e),r=this.getDarkIconPath(e)||t;t&&(s={dark:r,light:t})}return Object.assign({id:r,label:n,icon:o,iconUrl:s,themeIcon:a,description:e.description,resourceUri:e.resourceUri,tooltip:e.tooltip,collapsibleState:e.collapsibleState,contextValue:e.contextValue,accessibilityInformation:e.accessibilityInformation,command:e.command?this.commands.converter.toInternal(e.command,this.disposable):void 0},t)}async onExpanded(e){const t=this.getTreeItem(e);t&&this.onDidExpandElementEmitter.fire({element:t})}async onCollapsed(e){const t=this.getTreeItem(e);t&&this.onDidCollapseElementEmitter.fire({element:t})}getDarkIconPath(e){if(e.iconPath&&!(e.iconPath instanceof c.ThemeIcon)&&e.iconPath.dark)return this.getIconPath(e.iconPath.dark)}getLightIconPath(e){if(e.iconPath&&!(e.iconPath instanceof c.ThemeIcon))return"string"==typeof e.iconPath||i.Uri.isUri(e.iconPath)?this.getIconPath(e.iconPath):this.getIconPath(e.iconPath.light)}getIconPath(e){return i.Uri.isUri(e)?/^http(s)?/.test(e.scheme)?e.toString():/^image/.test(e.path.toString())?"data:"+e.fsPath.toString():e.with({scheme:""}).toString():e}setVisible(e){e!==this._visible&&(this._visible=e,this.onDidChangeVisibilityEmitter.fire(Object.freeze({visible:this._visible})))}setSelection(e){this.doSetSelection(e)}doSetSelection(e){this.selectedItemIds=new Set(e),this.onDidChangeSelectionEmitter.fire(Object.freeze({selection:this.selectedElements}))}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtHostUrls=void 0;const n=r(0),i=r(7);class o{constructor(e){this.handles=new Set,this.handlers=new Map,this._proxy=e.getProxy(i.MainThreadAPIIdentifier.MainThreadUrls)}registerUriHandler(e,t){if(this.handles.has(e))throw new Error("Protocol handler already registered for extension "+e);const r=o.HandlePool++;return this.handles.add(e),this.handlers.set(r,t),this._proxy.$registerUriHandler(r,e),(0,n.toDisposable)(()=>{this.handles.delete(e),this.handlers.delete(r),this._proxy.$unregisterUriHandler(r)})}$handleExternalUri(e,t){const r=this.handlers.get(e);if(!r)return Promise.resolve(void 0);try{r.handleUri(n.Uri.revive(t))}catch(e){(0,n.onUnexpectedError)(e)}return Promise.resolve(void 0)}}t.ExtHostUrls=o,o.HandlePool=0},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WindowStateImpl=t.ExtHostWindowState=void 0;const n=r(0);t.ExtHostWindowState=class{constructor(e){this.rpcProtocol=e,this.state=new i,this._onDidChangeWindowState=new n.Emitter,this.onDidChangeWindowState=this._onDidChangeWindowState.event}$setWindowState(e){e!==this.state.focused&&(this.state.focused=e,this._onDidChangeWindowState.fire(this.state))}};class i{constructor(){this.focused=!1}}t.WindowStateImpl=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtHostWindow=t.createWindowApiFactory=void 0;const n=r(1),i=r(0),o=r(7),s=n.__importStar(r(4)),a=r(4);r(124);t.createWindowApiFactory=function(e,t,r,n,o,a,c,l,u,d,h,f,p,g,m,b,v,y){const _={id:e.id,extensionId:e.extensionId,isBuiltin:e.isBuiltin};return{withScmProgress:t=>g.withProgress(e,{location:s.ProgressLocation.SourceControl},(e,r)=>t({report(e){}})),withProgress:(t,r)=>g.withProgress(e,t,r),createStatusBarItem(t,r,n){let i,o,s;return"string"==typeof t?(i=t,o=r,s=n):(o=t,s=r),u.createStatusBarItem(e,i,o,s)},createOutputChannel:e=>h.createOutputChannel(e),setStatusBarMessage:(e,t)=>u.setStatusBarMessage(e,t),showInformationMessage:(t,n,...o)=>r.showMessage(i.MessageType.Info,t,n,e.displayName||e.name,...o),showWarningMessage:(t,n,...o)=>r.showMessage(i.MessageType.Warning,t,n,e.displayName||e.name,...o),showErrorMessage:(t,n,...o)=>r.showMessage(i.MessageType.Error,t,n,e.displayName||e.name,...o),registerTreeDataProvider:(e,t)=>a.registerTreeDataProvider(e,t),createTreeView:(e,t)=>a.createTreeView(e,t),get activeTextEditor(){return t.activeEditor&&t.activeEditor.textEditor},get visibleTextEditors(){return t.visibleEditors},onDidChangeActiveTextEditor:t.onDidChangeActiveTextEditor,onDidChangeVisibleTextEditors:t.onDidChangeVisibleTextEditors,onDidChangeTextEditorSelection:t.onDidChangeTextEditorSelection,onDidChangeTextEditorVisibleRanges:t.onDidChangeTextEditorVisibleRanges,onDidChangeTextEditorOptions:t.onDidChangeTextEditorOptions,onDidChangeTextEditorViewColumn:t.onDidChangeTextEditorViewColumn,showTextDocument:(e,r,n)=>t.showTextDocument(e,r,n),createTextEditorDecorationType:r=>t.createTextEditorDecorationType(e.id,r),showQuickPick:(e,t,r)=>d.showQuickPick(e,t,r),showWorkspaceFolderPick:e=>d.showWorkspaceFolderPick(e),createQuickPick:()=>d.createQuickPick(),showInputBox:(e,t)=>d.showInputBox(e,t),createInputBox:()=>d.createInputBox(),createWebviewPanel:(t,r,i,o)=>n.createWebview(e.extensionLocation,t,r,i,o,_),registerWebviewPanelSerializer:(e,t)=>n.registerWebviewPanelSerializer(e,t),registerFileDecorationProvider:t=>l.registerFileDecorationProvider(t,e.id),registerUriHandler:t=>m.registerUriHandler(e.id,t),showOpenDialog:e=>p.openDialog(e),showSaveDialog:e=>p.showSaveDialog(e),get onDidChangeWindowState(){return c.onDidChangeWindowState},get state(){return c.state},get activeTerminal(){return f.activeTerminal},get terminals(){return f.terminals},onDidChangeActiveTerminal:f.onDidChangeActiveTerminal,onDidCloseTerminal:f.onDidCloseTerminal,onDidOpenTerminal:f.onDidOpenTerminal,onDidChangeTerminalState:f.onDidChangeTerminalState,createTerminal:(e,t,r)=>"object"==typeof e?"pty"in e?f.createExtensionTerminal(e):f.createTerminalFromOptions(e):f.createTerminal(e,t,r),get activeColorTheme(){return b.activeColorTheme},onDidChangeActiveColorTheme:(e,t,r)=>b.onDidChangeActiveColorTheme(e,t,r),registerCustomEditorProvider:(e,t,r={})=>v.registerCustomEditorProvider(e,t,r,_),registerTerminalLinkProvider:e=>f.registerLinkProvider(e),registerTerminalProfileProvider:(t,r)=>f.registerTerminalProfileProvider(e,t,r),registerWebviewViewProvider:(t,r,n)=>o.registerWebviewViewProvider(e,t,r,null==n?void 0:n.webviewOptions),get openEditors(){return y.tabs},get onDidChangeOpenEditors(){return y.onDidChangeTabs}}};t.ExtHostWindow=class{constructor(e){this.id=0,this._onOpenedResult=new i.Emitter,this._onSavedResult=new i.Emitter,this.proxy=e.getProxy(o.MainThreadAPIIdentifier.MainThreadWindow)}openDialog(e){return new Promise(t=>{const r=(this.id++).toString();this.proxy.$showOpenDialog(r,e);const n=this._onOpenedResult.event(e=>{e.id===r&&(n.dispose(),t(e.result?e.result.map(e=>a.Uri.revive(e)):void 0))})})}showSaveDialog(e){return new Promise(t=>{const r=(this.id++).toString();this.proxy.$showSaveDialog(r,e);const n=this._onSavedResult.event(e=>{e.id===r&&(n.dispose(),t(e.result?a.Uri.revive(e.result):void 0))})})}$onOpenDialogResult(e,t){this._onOpenedResult.fire({id:e,result:t})}$onSaveDialogResult(e,t){this._onSavedResult.fire({id:e,result:t})}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtHostWorkspace=t.toWorkspaceFolder=t.createWorkspaceApiFactory=void 0;const n=r(1),i=n.__importDefault(r(63)),o=r(0),s=r(7),a=n.__importStar(r(5)),c=r(4),{Path:l,relative:u,normalize:d}=o.path;function h(e,t={}){return{uri:c.Uri.revive(e.uri),name:e.name||(e.uri.path?t[e.uri.toString()]:t[e.uri.toString()+"/"]),index:e.index}}t.createWorkspaceApiFactory=function(e,t,r,n,i,s,c){return{rootPath:e.rootPath,name:e.name,asRelativePath:(t,r)=>e.getRelativePath(t,r),updateWorkspaceFolders:(t,r,...n)=>e.updateWorkspaceFolders(t,r||0,...n),onDidChangeWorkspaceFolders:e.onDidChangeWorkspaceFolders,getWorkspaceFolder:(t,r)=>e.getWorkspaceFolder(t,r),workspaceFolders:e.workspaceFolders,getConfiguration:(e,r,n)=>t.getConfiguration(e,r,n),onDidChangeConfiguration:(e,r,n)=>t.onDidChangeConfiguration(e,r,n),get isTrusted(){return!0},requestWorkspaceTrust:e=>!0,onDidGrantWorkspaceTrust:o.Event.None,openTextDocument:r.openTextDocument.bind(r),onDidOpenTextDocument:r.onDidOpenTextDocument.bind(r),onDidCloseTextDocument:r.onDidCloseTextDocument.bind(r),onDidChangeTextDocument:r.onDidChangeTextDocument.bind(r),onWillSaveTextDocument:r.onWillSaveTextDocument.bind(r),onDidSaveTextDocument:r.onDidSaveTextDocument.bind(r),registerTextDocumentContentProvider:r.registerTextDocumentContentProvider.bind(r),registerTaskProvider:(e,t)=>(console.warn(!1,"[Deprecated warning]: Use the corresponding function on the `tasks` namespace instead"),s.registerTaskProvider(e,t,c)),applyEdit:t=>e.applyEdit(t),get textDocuments(){return r.getAllDocument()},registerFileSystemProvider:(e,t,r)=>n.registerFileSystemProvider(e,t,r),get fs(){return n.fileSystem},createFileSystemWatcher:(e,t,r,n)=>i.createFileSystemWatcher(a.fromGlobPattern(e),t,r,n),onDidCreateFiles:(e,t,r)=>i.onDidCreateFile(e,t,r),onDidDeleteFiles:(e,t,r)=>i.onDidDeleteFile(e,t,r),onDidRenameFiles:(e,t,r)=>i.onDidRenameFile(e,t,r),onWillCreateFiles:(e,t,r)=>i.getOnWillCreateFileEvent(c)(e,t,r),onWillDeleteFiles:(e,t,r)=>i.getOnWillDeleteFileEvent(c)(e,t,r),onWillRenameFiles:(e,t,r)=>i.getOnWillRenameFileEvent(c)(e,t,r),onDidRenameFile:e.onDidRenameFile,saveAll:()=>e.saveAll(),findFiles:(t,r,n,i)=>e.findFiles(a.GlobPattern.from(t),a.GlobPattern.from(r),n,null,i),onDidOpenNotebookDocument:o.Event.None,onDidChangeNotebookDocument:o.Event.None,onDidCloseNotebookDocument:o.Event.None,notebookDocuments:[],registerTimelineProvider:()=>(0,o.toDisposable)(()=>{})}},t.toWorkspaceFolder=h;t.ExtHostWorkspace=class{constructor(e,t,r){this.extHostDoc=r,this.workspaceFoldersChangedEmitter=new o.Emitter,this.onDidChangeWorkspaceFolders=this.workspaceFoldersChangedEmitter.event,this._workspaceFolder=[],this._onDidRenameFile=new o.Emitter,this.onDidRenameFile=this._onDidRenameFile.event,this.workspaceToName={},this.messageService=t,this.rpcProtocol=e,this.proxy=this.rpcProtocol.getProxy(s.MainThreadAPIIdentifier.MainThreadWorkspace)}toWorkspaceFolder(e,t){const r=c.Uri.parse(e.uri);return{uri:r,name:new l(r.path).base,index:t}}deltaFolders(e=[],t=[]){return{added:this.foldersDiff(t,e),removed:this.foldersDiff(e,t)}}foldersDiff(e=[],t=[]){const r=new Map;return e.forEach(e=>r.set(e.uri.toString(),e)),t.forEach(e=>r.delete(e.uri.toString())),e.filter(e=>r.has(e.uri.toString()))}get workspaceFolders(){return this.folders}get rootPath(){const e=this.folders&&this.folders[0];return e&&e.uri.fsPath}get name(){const e=this.folders&&this.folders[0];return e&&e.name}getRelativePath(e,t){let r;if("string"==typeof e?r=e:void 0!==e&&(r=e.fsPath),!r)return r;const n=this.getWorkspaceFolder("string"==typeof e?c.Uri.file(e):e,!0);if(!n)return r;void 0===t&&(t=this.folders.length>1);let i=u(n.uri.fsPath,r);return t&&(i=`${n.name}/${i}`),d(i)}updateWorkspaceFolders(e,t,...r){const n=new Set;if(Array.isArray(r)&&r.forEach(e=>{const t=c.Uri.isUri(e.uri)&&e.uri.toString();t&&!n.has(t)&&(n.add(t),e.name&&(this.workspaceToName[t.toString()]=e.name))}),[e,t].some(e=>"number"!=typeof e||e<0))return!1;if(0===t&&0===n.size)return!1;const i=this.workspaceFolders||[];if(e+t>i.length)return!1;const s=i.slice(0);s.splice(e,t,...[...n].map(e=>({uri:c.Uri.parse(e)})));for(let e=0;e<s.length;e++){const t=s[e];if(s.some((r,n)=>n!==e&&t.uri.toString()===r.uri.toString()))return!1}const{added:a,removed:l}=this.deltaFolders(i,s);return(0!==a.length||0!==l.length)&&(this.proxy.$updateWorkspaceFolders(e,t,this.workspaceToName,...n).then(void 0,e=>this.messageService.showMessage(o.MessageType.Error,"Failed to update workspace folders: "+e)),!0)}$onWorkspaceFoldersChanged(e){const t=(e.roots||[]).map((e,t)=>this.toWorkspaceFolder(e,t)),r=this.deltaFolders(this.folders,t);this.folders=t,this.workspaceFoldersChangedEmitter.fire(r)}getWorkspaceFolder(e,t){if(!this.folders||!this.folders.length)return;var r;t&&this.hasFolder(e)&&(e=(r=e).scheme===o.Schemes.file?c.Uri.file(i.default.dirname(r.fsPath)):r.with({path:i.default.dirname(r.path)}));const n=e.toString();let s;for(const e of this.folders){const t=e.uri.toString();if(n===t)return h(e,this.workspaceToName);n.startsWith(t)&&"/"===n[t.length]&&(!s||t.length>s.uri.toString().length)&&(s=e)}return s}resolveWorkspaceFolder(){if(!this.folders||!this.folders.length)return;const e=[];for(const t of this.folders)null==e||e.push(h(t,this.workspaceToName));return e}hasFolder(e){return!!this.folders&&this.folders.some(t=>t.uri.toString()===e.toString())}applyEdit(e){const t=a.WorkspaceEdit.from(e,this.extHostDoc);return this.proxy.$tryApplyWorkspaceEdit(t)}saveAll(){return this.proxy.$saveAll()}async $didRenameFile(e,t){this._onDidRenameFile.fire({oldUri:c.Uri.revive(e),newUri:c.Uri.revive(t)})}findFiles(e,t,r,n,i=o.CancellationToken.None){let s,a,l;return e&&("string"==typeof e?s=e:(s=e.pattern,a=c.Uri.file(e.base))),null===t?l=!1:t&&(l="string"==typeof t?t:t.pattern),i&&i.isCancellationRequested?Promise.resolve([]):this.proxy.$startFileSearch(s||"*",{cwd:a?a.fsPath:this.rootPath,absolute:!0},l,r,i).then(e=>e.map(e=>c.Uri.file(e)))}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createTaskApiFactory=t.ExtHostTasks=void 0;const n=r(1),i=r(0),o=r(7),s=n.__importStar(r(4)),a=r(235),c=(r(270),r(789));var l,u,d,h,f,p,g,m,b,v;!function(e){e.from=function(e){if(null!=e)return e},e.to=function(e){if(null!=e)return e}}(l||(l={})),function(e){e.from=function(e){if(null!=e)return e},e.to=function(e){if(null!=e)return e}}(u||(u={})),function(e){e.from=function(e){if(null!=e)return e},e.to=function(e){if(null!=e)return e}}(d||(d={})),function(e){e.is=function(e){if(e){const t=e;return t&&!!t.process}return!1},e.from=function(e){if(null==e)return;const t={process:e.process,args:e.args};return e.options&&(t.options=d.from(e.options)),t},e.to=function(e){if(null!=e)return new s.ProcessExecution(e.process,e.args,e.options)}}(h||(h={})),function(e){e.from=function(e){if(null!=e)return e},e.to=function(e){if(null!=e)return e}}(f||(f={})),function(e){e.is=function(e){if(e){const t=e;return t&&(!!t.commandLine||!!t.command)}return!1},e.from=function(e){if(null==e)return;const t={};return void 0!==e.commandLine?t.commandLine=e.commandLine:(t.command=e.command,t.args=e.args),e.options&&(t.options=f.from(e.options)),t},e.to=function(e){if(null!=e&&(void 0!==e.command||void 0!==e.commandLine))return e.commandLine?new s.ShellExecution(e.commandLine,e.options):new s.ShellExecution(e.command,e.args?e.args:[],e.options)}}(p||(p={})),function(e){e.is=function(e){if(e){const t=e;return t&&"customExecution"===t.customExecution}return!1},e.from=function(e){return{customExecution:"customExecution"}},e.to=function(e,t){return t.get(e)}}(g||(g={})),function(e){e.from=function(e){let t;return void 0!==e.scope&&"number"!=typeof e.scope&&(t=e.scope.uri),{id:e._id,workspaceFolder:t}}}(m||(m={})),function(e){e.is=function(e){if(e){const t=e;return t&&"customExecution2"===t.customExecution}return!1},e.from=function(e){return{customExecution:"customExecution2"}}}(b||(b={})),function(e){function t(e,t){if(null==e)return;let r;e.execution instanceof s.ProcessExecution?r=h.from(e.execution):e.execution instanceof s.ShellExecution?r=p.from(e.execution):e.execution&&e.execution instanceof s.CustomExecution&&(r=g.from(e.execution));const n=l.from(e.definition);let i;if(i=e.scope?"number"==typeof e.scope?e.scope:e.scope.uri:s.TaskScope.Workspace,!n||!i)return;const o=e.group?e.group.id:void 0;return{_id:e._id,definition:n,name:e.name,source:{extensionId:t.id,label:e.source,scope:i},execution:r,isBackground:e.isBackground,group:o,presentationOptions:u.from(e.presentationOptions),problemMatchers:e.problemMatchers,hasDefinedMatchers:e.hasDefinedMatchers,runOptions:e.runOptions?e.runOptions:{reevaluateOnRerun:!0}}}e.fromMany=function(e,r){if(null==e)return[];const n=[];for(const i of e){const e=t(i,r);e&&n.push(e)}return n},e.from=t,e.to=async function(e,t,r){if(null==e)return;let n;h.is(e.execution)?n=h.to(e.execution):p.is(e.execution)?n=p.to(e.execution):g.is(e.execution)&&(n=g.to(e._id,r));const o=l.to(e.definition);let a;if(e.source&&(a=void 0!==e.source.scope?"number"==typeof e.source.scope?e.source.scope:t.getWorkspaceFolder(i.Uri.from(e.source.scope)):s.TaskScope.Workspace),!o||!a)return;const c=new s.Task(o,a,e.name,e.source.label,n,e.problemMatchers);return void 0!==e.isBackground&&(c.isBackground=e.isBackground),void 0!==e.group&&(c.group=s.TaskGroup.from(e.group)),e.presentationOptions&&(c.presentationOptions=u.to(e.presentationOptions)),e._id&&(c._id=e._id),c}}(v||(v={}));class y{constructor(e,t,r){this._tasks=e,this._id=t,this._task=r}get task(){return this._task}terminate(){this._tasks.terminateTask(this)}fireDidStartProcess(e){}fireDidEndProcess(e){}}t.ExtHostTasks=class{constructor(e,t,r){this.rpcProtocol=e,this.terminalService=t,this.extHostWorkspace=r,this.handlerCounter=0,this.taskHandlers=new Map,this._onDidExecuteTask=new i.Emitter,this._onDidTerminateTask=new i.Emitter,this._onDidTaskProcessStarted=new i.Emitter,this._onDidTaskProcessEnded=new i.Emitter,this.proxy=this.rpcProtocol.getProxy(o.MainThreadAPIIdentifier.MainThreadTasks),this.providedCustomExecutions2=new Map,this.notProvidedCustomExecutions=new Set,this._taskExecutions=new Map}async $onDidStartTask(e,t){var r;const n=this.providedCustomExecutions2.get(e.id);n&&this.terminalService.attachPtyToTerminal(t,await n.callback(null===(r=e.task)||void 0===r?void 0:r.definition)),this._onDidExecuteTask.fire({execution:await this.getTaskExecution(e)})}get onDidStartTask(){return this._onDidExecuteTask.event}async $onDidEndTask(e){this._onDidTerminateTask.fire({execution:await this.getTaskExecution(e)})}get onDidEndTask(){return this._onDidTerminateTask.event}async $onDidStartTaskProcess(e){const t=await this.getTaskExecution(e.id);t&&this._onDidTaskProcessStarted.fire({execution:t,processId:e.processId})}get onDidStartTaskProcess(){return this._onDidTaskProcessStarted.event}async $onDidEndTaskProcess(e){const t=await this.getTaskExecution(e.id);t&&this._onDidTaskProcessEnded.fire({execution:t,exitCode:e.exitCode})}get onDidEndTaskProcess(){return this._onDidTaskProcessEnded.event}get taskExecutions(){return[...this._taskExecutions.values()]}terminateTask(e){return this.proxy.$terminateTask(e._id)}registerTaskProvider(e,t,r){const n=this.handlerCounter+=1;return this.taskHandlers.set(n,{type:e,provider:t,extension:r}),this.proxy.$registerTaskProvider(n,e),{dispose:()=>{this.taskHandlers.delete(n),this.proxy.$unregisterTaskProvider(e)}}}async getTaskExecution(e,t){if("string"==typeof e){const t=this._taskExecutions.get(e);if(!t)throw new Error("Unexpected: The specified task is missing an execution : "+e);return t}const r=this._taskExecutions.get(e.id);if(r)return r;const n=t||await v.to(e.task,this.extHostWorkspace,this.providedCustomExecutions2);if(!n)throw new Error("Unexpected: Task does not exist.");const i=new y(this,e.id,n);return this._taskExecutions.set(e.id,i),i}async executeTask(e,t){const r=e;if(void 0!==r._id)return this.proxy.$executeTask(m.from(r)).then(t=>this.getTaskExecution(t,e));{const r=v.from(e,t);return void 0===r?Promise.reject(new Error("Task is not valid")):(g.is(r.execution)&&await this.addCustomExecution(r,e,!1),this.proxy.$executeTask(r).then(t=>this.getTaskExecution(t,e)))}}fetchTasks(e){return this.proxy.$fetchTasks(a.TaskFilterDTO.from(e)).then(async e=>{const t=[];for(const r of e){const e=await v.to(r,this.extHostWorkspace,this.providedCustomExecutions2);e&&t.push(e)}return t})}async addCustomExecution(e,t,r){const n=await this.proxy.$createTaskId(e);r||this.providedCustomExecutions2.has(n)||this.notProvidedCustomExecutions.add(n),this.providedCustomExecutions2.set(n,t.execution)}$provideTask(e,t){const r=this.taskHandlers.get(e);if(!r)throw new Error(`taskprovider ${e} not found`);const n=[],o=(0,i.asPromise)(()=>r.provider.provideTasks(i.CancellationToken.None)).then(e=>{const o=[];if(e)for(const s of e){s.definition&&t[s.definition.type]||(0,i.getDebugLogger)().warn(!1,`The task [${s.source}, ${s.name}] uses an undefined task type. The task will be ignored in the future.`);const e=v.from(s,r.extension);e&&(o.push(e),g.is(e.execution)&&n.push(this.addCustomExecution(e,s,!1)))}return{tasks:o,extension:r.extension}}).catch(e=>((0,i.getDebugLogger)().error(e,r.extension),{tasks:[],extension:r.extension}));return new Promise(e=>{o.then(t=>{Promise.all(n).then(()=>{e(t)})})})}async $resolveTask(e,t){const r=(0,c.toTask)(t),n=this.taskHandlers.get(e);if(!n)return Promise.reject(new Error("no handler found!"));const o=await n.provider.resolveTask(r,i.CancellationToken.None);if(!o)return;const s=v.from(o,n.extension);if(!s)throw new Error("Unexpected: Task cannot be resolved.");return g.is(s.execution)&&await this.addCustomExecution(s,o,!0),s}},t.createTaskApiFactory=function(e,t){return{registerTaskProvider:(r,n)=>e.registerTaskProvider(r,n,t),fetchTasks:t=>e.fetchTasks(t),executeTask:r=>e.executeTask(r,t),get taskExecutions(){return e.taskExecutions},onDidStartTask:(t,r,n)=>e.onDidStartTask(t,r,n),onDidEndTask:(t,r,n)=>e.onDidEndTask(t,r,n),onDidStartTaskProcess:(t,r,n)=>e.onDidStartTaskProcess(t,r,n),onDidEndTaskProcess:(t,r,n)=>e.onDidEndTaskProcess(t,r,n)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getShellExecutionOptions=t.getShellArgs=t.getShellExecution=t.getProcessExecution=t.fromShellExecution=t.fromProcessExecution=t.toTask=t.fromTask=void 0;const n=r(1),i=n.__importStar(r(4)),o=r(4);function s(e,t){t.command=e.process,t.args=e.args;const r=e.options;return r&&(t.options=r),t}function a(e,t){const r=e.options;r&&(t.options=d(r));const n=e.commandLine;if(n)return t.command=n,t;const i=e.command;if("string"==typeof i)return t.command=i,t.args=u(e.args),t;throw new Error("Converting ShellQuotedString command is not implemented")}function c(e){return new i.ProcessExecution(e.command,e.args||[],e.options||{})}function l(e){return e.command&&Array.isArray(e.args)&&0!==e.args.length?new i.ShellExecution(e.command,e.args,e.options||{}):new i.ShellExecution(e.command||e.commandLine,e.options||{})}function u(e){if(!e||0===e.length)return[];if("string"==typeof e[0])return e;const t=[];return e.forEach(e=>{t.push(e.value)}),t}function d(e){const t={},r=e.env;r&&(t.env=r);const n=e.executable;n&&(t.executable=n);const i=e.shellQuoting;i&&(t.shellQuoting=i);const o=e.shellArgs;o&&(t.shellArgs=o);const s=e.cwd;return s&&Object.assign(t,{cwd:s}),t}t.fromTask=function(e){if(!e)return;const t={};t.label=e.name,t.source=e.source,t.scope="object"==typeof e.scope?e.scope.uri.toString():void 0;const r=e.definition;if(!r)return t;t.type=r.type;const{type:o}=r,c=n.__rest(r,["type"]);for(const e in c)c.hasOwnProperty(e)&&(t[e]=c[e]);const l=e.execution;return l?"shell"===r.type||i.ShellExecution.is(l)?a(l,t):"process"===r.type||i.ProcessExecution.is(l)?s(l,t):t:t},t.toTask=function(e){if(!e)throw new Error("Task should be provided for converting");const{type:t,label:r,source:s,scope:a,command:u,args:d,options:h,windows:f}=e,p=n.__rest(e,["type","label","source","scope","command","args","options","windows"]),g={};if(g.name=r,g.source=s,a){const e=o.Uri.parse(a);g.scope={uri:e,name:e.toString(),index:0}}const m=t,b={type:m};g.definition=b,"process"===m&&(g.execution=c(e));const v={command:u,args:d,options:h};if(("shell"===m||i.ShellExecution.is(v))&&(g.execution=l(e)),!p)return g;for(const e in p)p.hasOwnProperty(e)&&(b[e]=p[e]);return g},t.fromProcessExecution=s,t.fromShellExecution=a,t.getProcessExecution=c,t.getShellExecution=l,t.getShellArgs=u,t.getShellExecutionOptions=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CancellationTokenSource=void 0;r(1).__exportStar(r(4),t);var n=r(0);Object.defineProperty(t,"CancellationTokenSource",{enumerable:!0,get:function(){return n.CancellationTokenSource}})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtensionLogger=void 0;const n=r(0),i=r(792);t.ExtensionLogger=class{constructor(e){this.rpcProtocol=e,this.logger=this.rpcProtocol.getProxy(i.MainThreadExtensionLogIdentifier),this.debugLog=new n.DebugLog(n.SupportLogNamespace.ExtensionHost)}verbose(...e){return this.debugLog.info(...e),this.logger.$verbose(...e)}debug(...e){return this.debugLog.debug(...e),this.logger.$debug(...e)}log(...e){return this.debugLog.log(...e),this.logger.$log(...e)}warn(...e){return this.debugLog.warn(...e),this.logger.$warn(...e)}error(...e){return this.debugLog.error(...e),this.logger.$error(...e)}critical(...e){return this.debugLog.error(...e),this.logger.$critical(...e)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MainThreadExtensionLogIdentifier=void 0;const n=r(37);t.MainThreadExtensionLogIdentifier=(0,n.createMainContextProxyIdentifier)("MainThreadExtensionLog")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KTWorkerExtension=t.KTExtension=t.Extension=void 0;class n{constructor(e,t,r,n){this.metadata=e,this.extensionService=t,this.mainThreadExtensionService=r;const{packageJSON:i,path:o,id:s,extendConfig:a}=this.metadata;this.id=s,this.extensionPath=o,this.packageJSON=i,this.extensionKind=i.extensionKind||void 0,this.extendConfig=a||void 0,this.extensionUri=e.extensionLocation,n&&(this._exports=n)}get isActive(){return this.extensionService.isActivated(this.id)}get exports(){return this._exports||this.extensionService.getExtensionExports(this.id)}async activate(){try{return this.isActive||await this.mainThreadExtensionService.$activateExtension(this.extensionPath),this.exports}catch(e){}}}t.Extension=n;t.KTExtension=class extends n{constructor(e,t,r,n,i){super(e,t,r,n),i&&(this._extendExportsData=i)}get extendExports(){return this._extendExportsData||this.extensionService.getExtendExports(this.id)}};t.KTWorkerExtension=class extends n{constructor(e,t,r,n){super(e,t,r,n),e.workerScriptPath&&(this.workerScriptPath=e.workerScriptPath)}}},function(e,t,r){"use strict";r.r(t),r.d(t,"nanoid",(function(){return a})),r.d(t,"customAlphabet",(function(){return s})),r.d(t,"customRandom",(function(){return o})),r.d(t,"urlAlphabet",(function(){return n})),r.d(t,"random",(function(){return i}));let n="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",i=e=>crypto.getRandomValues(new Uint8Array(e)),o=(e,t,r)=>{let n=(2<<Math.log(e.length-1)/Math.LN2)-1,i=-~(1.6*n*t/e.length);return(o=t)=>{let s="";for(;;){let t=r(i),a=i;for(;a--;)if(s+=e[t[a]&n]||"",s.length===o)return s}}},s=(e,t=21)=>o(e,t,i),a=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((e,t)=>e+=(t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_","")}]);