818 lines
2.9 MiB
JavaScript
818 lines
2.9 MiB
JavaScript
|
/*!-----------------------------------------------------------
|
||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||
|
* Version: 0.34.0(4b8a47f3570a4a05ace9d00ae0df044b55befcd5)
|
||
|
* Released under the MIT license
|
||
|
* https://github.com/microsoft/vscode/blob/main/LICENSE.txt
|
||
|
*-----------------------------------------------------------*/(function(){var re=["exports","require","vs/base/common/lifecycle","vs/editor/common/core/range","vs/nls","vs/nls!vs/editor/editor.main","vs/base/common/event","vs/base/browser/dom","vs/base/common/strings","vs/platform/instantiation/common/instantiation","vs/base/common/async","vs/editor/common/core/position","vs/editor/browser/editorExtensions","vs/css!vs/editor/editor.main","vs/base/common/errors","vs/platform/theme/common/themeService","vs/platform/contextkey/common/contextkey","vs/base/common/platform","vs/base/common/arrays","vs/base/common/types","vs/editor/common/services/languageFeatures","vs/base/common/cancellation","vs/base/common/uri","vs/editor/common/core/selection","vs/editor/common/editorContextKeys","vs/platform/theme/common/colorRegistry","vs/platform/commands/common/commands","vs/base/common/codicons","vs/editor/common/languages","vs/editor/browser/services/codeEditorService","vs/platform/configuration/common/configuration","vs/base/common/color","vs/editor/common/languages/languageConfigurationRegistry","vs/base/browser/fastDomNode","vs/platform/registry/common/platform","vs/editor/common/model/textModel","vs/editor/common/config/editorOptions","vs/editor/common/languages/language","vs/platform/notification/common/notification","vs/platform/actions/common/actions","vs/base/common/objects","vs/base/browser/browser","vs/base/common/actions","vs/base/common/resources","vs/platform/keybinding/common/keybinding","vs/platform/opener/common/opener","vs/editor/common/model","vs/editor/browser/view/viewPart","vs/base/browser/keyboardEvent","vs/base/browser/ui/aria/aria","vs/editor/common/services/model","vs/base/common/map","vs/base/common/network","vs/platform/instantiation/common/extensions","vs/editor/common/core/editorColorRegistry","vs/base/common/iterator","vs/platform/theme/common/theme","vs/base/common/stopwatch","vs/editor/common/services/resolverService","vs/base/common/keyCodes","vs/editor/common/core/editOperation","vs/editor/common/cursorCommon","vs/base/browser/touch","vs/base/common/filters","vs/base/common/htmlContent","vs/editor/browser/config/domFontInfo","vs/editor/common/core/cursorColumns","vs/base/browser/mouseEvent","vs/base/browser/ui/widget","vs/platform/log/common/log","vs/editor/common/services/languageFeatureDebounce","vs/platform/progress/common/progress","vs/editor/common/languages/modesRegistry","vs/base/common/linkedList","vs/editor/common/viewModel","vs/base/browser/ui/scrollbar/scrollableElement","vs/editor/common/standaloneStrings","vs/platform/accessibility/common/accessibility","vs/platform/contextview/browser/contextView","vs/platform/storage/common/storage","vs/platform/theme/common/iconRegistry","vs/base/common/severity","vs/editor/common/tokens/lineTokens","vs/base/browser/ui/actionbar/actionbar","vs/platform/markers/common/markers","vs/platform/quickinput/common/quickInput","vs/platform/telemetry/common/telemetry","vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/length","vs/editor/contrib/hover/browser/hoverTypes","vs/editor/contrib/snippet/browser/snippetParser","vs/base/common/path","vs/editor/common/core/stringBuilder","vs/editor/common/services/editorWorker","vs/platform/clipboard/common/clipboardService","vs/platform/configuration/common/configurationRegistry","vs/editor/contrib/editorState/browser/editorState","vs/base/common/functional","vs/base/common/mime","vs/editor/common/languages/languageConfiguration","vs/editor/common/textModelEvents","vs/base/browser/event","vs/platform/keybinding/common/keybindingsRegistry","vs/editor/contrib/suggest/browser/suggest","vs/base/common/decorators","vs/base/common/keybindings","vs/base/common/hash","vs/base/common/iconLabels","vs/editor/common/core/characterClassifier","vs/editor/common/commands/replaceCommand","vs/editor/common/encodedTokenAttributes","vs/editor/common/languages/supports","vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/smallImmutableSet","vs/editor/browser/view/dynamicViewOverlay","vs/base/browser/ui/list
|
||
|
|
||
|
`+l.stack):new Error(l.message+`
|
||
|
|
||
|
`+l.stack):l},0)}}emit(l){this.listeners.forEach(a=>{a(l)})}onUnexpectedError(l){this.unexpectedErrorHandler(l),this.emit(l)}onUnexpectedExternalError(l){this.unexpectedErrorHandler(l)}}e.ErrorHandler=w,e.errorHandler=new w;function C(d){b(d)||e.errorHandler.onUnexpectedError(d)}e.onUnexpectedError=C;function k(d){b(d)||e.errorHandler.onUnexpectedExternalError(d)}e.onUnexpectedExternalError=k;function I(d){if(d instanceof Error){const{name:l,message:a}=d,r=d.stacktrace||d.stack;return{$isError:!0,name:l,message:a,stack:r,noTelemetry:t.isErrorNoTelemetry(d)}}return d}e.transformErrorForSerialization=I;const L="Canceled";function b(d){return d instanceof v?!0:d instanceof Error&&d.name===L&&d.message===L}e.isCancellationError=b;class v extends Error{constructor(){super(L);this.name=this.message}}e.CancellationError=v;function u(){const d=new Error(L);return d.name=d.message,d}e.canceled=u;function g(d){return d?new Error(`Illegal argument: ${d}`):new Error("Illegal argument")}e.illegalArgument=g;function n(d){return d?new Error(`Illegal state: ${d}`):new Error("Illegal state")}e.illegalState=n;class i extends Error{constructor(l){super("NotSupported");l&&(this.message=l)}}e.NotSupportedError=i;class t extends Error{constructor(l){super(l);this.name="ErrorNoTelemetry"}static fromError(l){if(l instanceof t)return l;const a=new t;return a.message=l.message,a.stack=l.stack,a}static isErrorNoTelemetry(l){return l.name==="ErrorNoTelemetry"}}e.ErrorNoTelemetry=t;class s extends Error{constructor(l){super(l||"An unexpected bug occurred.");Object.setPrototypeOf(this,s.prototype);debugger}}e.BugIndicatingError=s}),define(re[96],ae([1,0]),function($,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.once=void 0;function w(C){const k=this;let I=!1,L;return function(){return I||(I=!0,L=C.apply(k,arguments)),L}}e.once=w}),define(re[144],ae([1,0]),function($,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultGenerator=e.IdGenerator=void 0;class w{constructor(k){this._prefix=k,this._lastId=0}nextId(){return this._prefix+ ++this._lastId}}e.IdGenerator=w,e.defaultGenerator=new w("id#")}),define(re[55],ae([1,0]),function($,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Iterable=void 0;var w;(function(C){function k(_){return _&&typeof _=="object"&&typeof _[Symbol.iterator]=="function"}C.is=k;const I=Object.freeze([]);function L(){return I}C.empty=L;function*b(_){yield _}C.single=b;function v(_){return _||I}C.from=v;function u(_){return!_||_[Symbol.iterator]().next().done===!0}C.isEmpty=u;function g(_){return _[Symbol.iterator]().next().value}C.first=g;function n(_,m){for(const h of _)if(m(h))return!0;return!1}C.some=n;function i(_,m){for(const h of _)if(m(h))return h}C.find=i;function*t(_,m){for(const h of _)m(h)&&(yield h)}C.filter=t;function*s(_,m){let h=0;for(const S of _)yield m(S,h++)}C.map=s;function*d(..._){for(const m of _)for(const h of m)yield h}C.concat=d;function*l(_){for(const m of _)for(const h of m)yield h}C.concatNested=l;function a(_,m,h){let S=h;for(const y of _)S=m(S,y);return S}C.reduce=a;function r(_,m){let h=0;for(const S of _)m(S,h++)}C.forEach=r;function*o(_,m,h=_.length){for(m<0&&(m+=_.length),h<0?h+=_.length:h>_.length&&(h=_.length);m<h;m++)yield _[m]}C.slice=o;function c(_,m=Number.POSITIVE_INFINITY){const h=[];if(m===0)return[h,_];const S=_[Symbol.iterator]();for(let y=0;y<m;y++){const E=S.next();if(E.done)return[h,C.empty()];h.push(E.value)}return[h,{[Symbol.iterator](){return S}}]}C.consume=c;function f(_){return c(_)[0]}C.collect=f;function p(_,m,h=(S,y)=>S===y){const S=_[Symbol.iterator](),y=m[Symbol.iterator]();for(;;){const E=S.next(),N=y.next();if(E.done!==N.done)return!1;if(E.done)return!0;if(!h(E.value,N.value))return!1}}C.equals=p})(w=e.Iterable||(e.Iterable={}))}),define(re[59],ae([1,0]),function($,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.KeyChord=e.KeyCodeUtils=e.IMMUTABLE_KEY_CODE_TO_CODE=e.IMMUTABLE_CODE_TO_KEY_CODE=e.NATIVE_WINDOWS_KEY_CODE_TO_KEY_CODE=e.EVENT_KEY_CODE_MAP=void 0;class w{constructor(){this._keyCodeT
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function L(){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}}$.defaults=L();function b(z){$.defaults=z}var v=/[&<>"']/,u=/[&<>"']/g,g=/[<>"']|&(?!#?\w+;)/,n=/[<>"']|&(?!#?\w+;)/g,i={"&":"&","<":"<",">":">",'"':""","'":"'"},t=function(J){return i[J]};function s(z,J){if(J){if(v.test(z))return z.replace(u,t)}else if(g.test(z))return z.replace(n,t);return z}var d=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function l(z){return z.replace(d,function(J,G){return G=G.toLowerCase(),G==="colon"?":":G.charAt(0)==="#"?G.charAt(1)==="x"?String.fromCharCode(parseInt(G.substring(2),16)):String.fromCharCode(+G.substring(1)):""})}var a=/(^|[^\[])\^/g;function r(z,J){z=typeof z=="string"?z:z.source,J=J||"";var G={replace:function(j,ce){return ce=ce.source||ce,ce=ce.replace(a,"$1"),z=z.replace(j,ce),G},getRegex:function(){return new RegExp(z,J)}};return G}var o=/[^\w:]/g,c=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function f(z,J,G){if(z){var U;try{U=decodeURIComponent(l(G)).replace(o,"").toLowerCase()}catch{return null}if(U.indexOf("javascript:")===0||U.indexOf("vbscript:")===0||U.indexOf("data:")===0)return null}J&&!c.test(G)&&(G=S(J,G));try{G=encodeURI(G).replace(/%25/g,"%")}catch{return null}return G}var p={},_=/^[^:]+:\/*[^/]*$/,m=/^([^:]+:)[\s\S]*$/,h=/^([^:]+:\/*[^/]*)[\s\S]*$/;function S(z,J){p[" "+z]||(_.test(z)?p[" "+z]=z+"/":p[" "+z]=T(z,"/",!0)),z=p[" "+z];var G=z.indexOf(":")===-1;return J.substring(0,2)==="//"?G?J:z.replace(m,"$1")+J:J.charAt(0)==="/"?G?J:z.replace(h,"$1")+J:z+J}var y={exec:function(){}};function E(z){for(var J=1,G,U;J<arguments.length;J++){G=arguments[J];for(U in G)Object.prototype.hasOwnProperty.call(G,U)&&(z[U]=G[U])}return z}function N(z,J){var G=z.replace(/\|/g,function(ce,se,he){for(var me=!1,Ce=se;--Ce>=0&&he[Ce]==="\\";)me=!me;return me?"|":" |"}),U=G.split(/ \|/),j=0;if(U[0].trim()||U.shift(),U.length>0&&!U[U.length-1].trim()&&U.pop(),U.length>J)U.splice(J);else for(;U.length<J;)U.push("");for(;j<U.length;j++)U[j]=U[j].trim().replace(/\\\|/g,"|");return U}function T(z,J,G){var U=z.length;if(U===0)return"";for(var j=0;j<U;){var ce=z.charAt(U-j-1);if(ce===J&&!G)j++;else if(ce!==J&&G)j++;else break}return z.slice(0,U-j)}function R(z,J){if(z.indexOf(J[1])===-1)return-1;for(var G=z.length,U=0,j=0;j<G;j++)if(z[j]==="\\")j++;else if(z[j]===J[0])U++;else if(z[j]===J[1]&&(U--,U<0))return j;return-1}function F(z){z&&z.sanitize&&!z.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 O(z,J){if(J<1)return"";for(var G="";J>1;)J&1&&(G+=z),J>>=1,z+=z;return G+z}function D(z,J,G,U){var j=J.href,ce=J.title?s(J.title):null,se=z[1].replace(/\\([\[\]])/g,"$1");if(z[0].charAt(0)!=="!"){U.state.inLink=!0;var he={type:"link",raw:G,href:j,title:ce,text:se,tokens:U.inlineTokens(se,[])};return U.state.inLink=!1,he}return{type:"image",raw:G,href:j,title:ce,text:s(se)}}function M(z,J){var G=z.match(/^(\s+)(?:```)/);if(G===null)return J;var U=G[1];return J.split(`
|
||
|
`).map(function(j){var ce=j.match(/^\s+/);if(ce===null)return j;var se=ce[0];return se.length>=U.length?j.slice(U.length):j}).join(`
|
||
|
`)}var P=function(){function z(G){this.options=G||$.defaults}var J=z.prototype;return J.space=function(U){var j=this.rules.block.newline.exec(U);if(j&&j[0].length>0)return{type:"space",raw:j[0]}},J.code=function(U){var j=this.rules.block.code.exec(U);if(j){var ce=j[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:j[0],codeBlockStyle:"indented",text:this.options.pedantic?ce:T(ce,`
|
||
|
`)}}},J.fences=function(U){var j=this.rules.block.fences.exec(U);if(j){var ce=j[0],se=M(ce,j[3]||"");return{type:"code",raw:ce,lang:j[2]?j[2].trim():j[2],text:se}}},J.heading=function(U){var j=this.rules.block.heading.exec(U);if(j){var ce=j[2].trim();if(/#$/.test(ce)){var se=T(ce,"#");(this.options.pedantic||!se||/ $/.test(se))&&(ce=se.trim())}var he={type:"heading",raw:j[0],depth:j[1].length,text:ce,tokens:[]};return this.lexer.inline(he.text,he.tokens),he}},J.hr=function(U){var j=this.rules.block.hr.exec(U);if(j)return{type:"hr",raw:j[0]}},J.blockquote=function(U){var j=this.rules.block.blockquote.exec(U);if(j){var ce=j[0].replace(/^ *>[ \t]?/gm,"");return{type:"blockquote",raw:j[0],tokens:this.lexer.blockTokens(ce,[]),text:ce}}},J.list=function(U){var j=this.rules.block.list.exec(U);if(j){var ce,se,he,me,Ce,Le,Ee,De,Ae,pe,ue,le,ge=j[1].trim(),_e=ge.length>1,we={type:"list",raw:"",ordered:_e,start:_e?+ge.slice(0,-1):"",loose:!1,items:[]};ge=_e?"\\d{1,9}\\"+ge.slice(-1):"\\"+ge,this.options.pedantic&&(ge=_e?ge:"[*+-]");for(var Ie=new RegExp("^( {0,3}"+ge+")((?:[ ][^\\n]*)?(?:\\n|$))");U&&(le=!1,!(!(j=Ie.exec(U))||this.rules.block.hr.test(U)));){if(ce=j[0],U=U.substring(ce.length),De=j[2].split(`
|
||
|
`,1)[0],Ae=U.split(`
|
||
|
`,1)[0],this.options.pedantic?(me=2,ue=De.trimLeft()):(me=j[2].search(/[^ ]/),me=me>4?1:me,ue=De.slice(me),me+=j[1].length),Le=!1,!De&&/^ *$/.test(Ae)&&(ce+=Ae+`
|
||
|
`,U=U.substring(Ae.length+1),le=!0),!le)for(var Me=new RegExp("^ {0,"+Math.min(3,me-1)+"}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))"),Oe=new RegExp("^ {0,"+Math.min(3,me-1)+"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)");U&&(pe=U.split(`
|
||
|
`,1)[0],De=pe,this.options.pedantic&&(De=De.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(Me.test(De)||Oe.test(U)));){if(De.search(/[^ ]/)>=me||!De.trim())ue+=`
|
||
|
`+De.slice(me);else if(!Le)ue+=`
|
||
|
`+De;else break;!Le&&!De.trim()&&(Le=!0),ce+=pe+`
|
||
|
`,U=U.substring(pe.length+1)}we.loose||(Ee?we.loose=!0:/\n *\n *$/.test(ce)&&(Ee=!0)),this.options.gfm&&(se=/^\[[ xX]\] /.exec(ue),se&&(he=se[0]!=="[ ] ",ue=ue.replace(/^\[[ xX]\] +/,""))),we.items.push({type:"list_item",raw:ce,task:!!se,checked:he,loose:!1,text:ue}),we.raw+=ce}we.items[we.items.length-1].raw=ce.trimRight(),we.items[we.items.length-1].text=ue.trimRight(),we.raw=we.raw.trimRight();var be=we.items.length;for(Ce=0;Ce<be;Ce++){this.lexer.state.top=!1,we.items[Ce].tokens=this.lexer.blockTokens(we.items[Ce].text,[]);var ve=we.items[Ce].tokens.filter(function(Re){return Re.type==="space"}),ye=ve.every(function(Re){for(var Te=Re.raw.split(""),Be=0,xe=I(Te),qe;!(qe=xe()).done;){var Ze=qe.value;if(Ze===`
|
||
|
`&&(Be+=1),Be>1)return!0}return!1});!we.loose&&ve.length&&ye&&(we.loose=!0,we.items[Ce].loose=!0)}return we}},J.html=function(U){var j=this.rules.block.html.exec(U);if(j){var ce={type:"html",raw:j[0],pre:!this.options.sanitizer&&(j[1]==="pre"||j[1]==="script"||j[1]==="style"),text:j[0]};return this.options.sanitize&&(ce.type="paragraph",ce.text=this.options.sanitizer?this.options.sanitizer(j[0]):s(j[0]),ce.tokens=[],this.lexer.inline(ce.text,ce.tokens)),ce}},J.def=function(U){var j=this.rules.block.def.exec(U);if(j){j[3]&&(j[3]=j[3].substring(1,j[3].length-1));var ce=j[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:ce,raw:j[0],href:j[2],title:j[3]}}},J.table=function(U){var j=this.rules.block.table.exec(U);if(j){var ce={type:"table",header:N(j[1]).map(function(Ee){return{text:Ee}}),align:j[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:j[3]&&j[3].trim()?j[3].replace(/\n[ \t]*$/,"").split(`
|
||
|
`):[]};if(ce.header.length===ce.align.length){ce.raw=j[0];var se=ce.align.length,he,me,Ce,Le;for(he=0;he<se;he++)/^ *-+: *$/.test(ce.align[he])?ce.align[he]="right":/^ *:-+: *$/.test(ce.align[he])?ce.align[he]="center":/^ *:-+ *$/.test(ce.align[he])?ce.align[he]="left":ce.align[he]=null;for(se=ce.rows.length,he=0;he<se;he++)ce.rows[he]=N(ce.rows[he],ce.header.length).map(function(Ee){return{text:Ee}});for(se=ce.header.length,me=0;me<se;me++)ce.header[me].tokens=[],this.lexer.inline(ce.header[me].text,ce.header[me].tokens);for(se=ce.rows.length,me=0;me<se;me++)for(Le=ce.rows[me],Ce=0;Ce<Le.length;Ce++)Le[Ce].tokens=[],this.lexer.inline(Le[Ce].text,Le[Ce].tokens);return ce}}},J.lheading=function(U){var j=this.rules.block.lheading.exec(U);if(j){var ce={type:"heading",raw:j[0],depth:j[2].charAt(0)==="="?1:2,text:j[1],tokens:[]};return this.lexer.inline(ce.text,ce.tokens),ce}},J.paragraph=function(U){var j=this.rules.block.paragraph.exec(U);if(j){var ce={type:"paragraph",raw:j[0],text:j[1].charAt(j[1].length-1)===`
|
||
|
`?j[1].slice(0,-1):j[1],tokens:[]};return this.lexer.inline(ce.text,ce.tokens),ce}},J.text=function(U){var j=this.rules.block.text.exec(U);if(j){var ce={type:"text",raw:j[0],text:j[0],tokens:[]};return this.lexer.inline(ce.text,ce.tokens),ce}},J.escape=function(U){var j=this.rules.inline.escape.exec(U);if(j)return{type:"escape",raw:j[0],text:s(j[1])}},J.tag=function(U){var j=this.rules.inline.tag.exec(U);if(j)return!this.lexer.state.inLink&&/^<a /i.test(j[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(j[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(j[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(j[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:j[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(j[0]):s(j[0]):j[0]}},J.link=function(U){var j=this.rules.inline.link.exec(U);if(j){var ce=j[2].trim();if(!this.options.pedantic&&/^</.test(ce)){if(!/>$/.test(ce))return;var se=T(ce.slice(0,-1),"\\");if((ce.length-se.length)%2==0)return}else{var he=R(j[2],"()");if(he>-1){var me=j[0].indexOf("!")===0?5:4,Ce=me+j[1].length+he;j[2]=j[2].substring(0,he),j[0]=j[0].substring(0,Ce).trim(),j[3]=""}}var Le=j[2],Ee="";if(this.options.pedantic){var De=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Le);De&&(Le=De[1],Ee=De[3])}else Ee=j[3]?j[3].slice(1,-1):"";return Le=Le.trim(),/^</.test(Le)&&(this.options.pedantic&&!/>$/.test(ce)?Le=Le.slice(1):Le=Le.slice(1,-1)),D(j,{href:Le&&Le.replace(this.rules.inline._escapes,"$1"),title:Ee&&Ee.replace(this.rules.inline._escapes,"$1")},j[0],this.lexer)}},J.reflink=function(U,j){var ce;if((ce=this.rules.inline.reflink.exec(U))||(ce=this.rules.inline.nolink.exec(U))){var se=(ce[2]||ce[1]).replace(/\s+/g," ");if(se=j[se.toLowerCase()],!se||!se.href){var he=ce[0].charAt(0);return{type:"text",raw:he,text:he}}return D(ce,se,ce[0],this.lexer)}},J.emStrong=function(U,j,ce){ce===void 0&&(ce="");var se=this.rules.inline.emStrong.lDelim.exec(U);if(!!se&&!(se[3]&&ce.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-\
|
||
|
]`).replace("lheading",B.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var W={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:y,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:y,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};W._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",W.punctuation=r(W.punctuation).replace(/punctuation/g,W._punctuation).getRegex(),W.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,W.escapedEmSt=/\\\*|\\_/g,W._comment=r(B._comment).replace("(?:-->|$)","-->").getRegex(),W.emStrong.lDelim=r(W.emStrong.lDelim).replace(/punct/g,W._punctuation).getRegex(),W.emStrong.rDelimAst=r(W.emStrong.rDelimAst,"g").replace(/punct/g,W._punctuation).getRegex(),W.emStrong.rDelimUnd=r(W.emStrong.rDelimUnd,"g").replace(/punct/g,W._punctuation).getRegex(),W._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,W._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,W._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])?)+(?![-_])/,W.autolink=r(W.autolink).replace("scheme",W._scheme).replace("email",W._email).getRegex(),W._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,W.tag=r(W.tag).replace("comment",W._comment).replace("attribute",W._attribute).getRegex(),W._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,W._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,W._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,W.link=r(W.link).replace("label",W._label).replace("href",W._href).replace("title",W._title).getRegex(),W.reflink=r(W.reflink).replace("label",W._label).replace("ref",B._label).getRegex(),W.nolink=r(W.nolink).replace("ref",B._label).getRegex(),W.reflinkSearch=r(W.reflinkSearch,"g").replace("reflink",W.reflink).replace("nolink",W.nolink).getRegex(),W.normal=E({},W),W.pedantic=E({},W.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:r(/^!?\[(label)\]\((.*?)\)/).replace("label",W._label).getRegex(),reflink:r(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",W._label).getRegex()}),W.gfm=E({},W.normal,{escape:r(W.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.!#$%&'*+\/=?_`{\|}~-]+@)))/}),W.gfm.url=r(W.gfm.url,"i").replace("email",W.gfm._extended_email).getRegex(),W.breaks=E({},W.gfm,{br:r(W.br).replace("{2,}","*").getRegex(),text:r(W.gfm.text).repla
|
||
|
`),this.blockTokens(U,this.tokens);for(var j;j=this.inlineQueue.shift();)this.inlineTokens(j.src,j.tokens);return this.tokens},J.blockTokens=function(U,j){var ce=this;j===void 0&&(j=[]),this.options.pedantic?U=U.replace(/\t/g," ").replace(/^ +$/gm,""):U=U.replace(/^( *)(\t+)/gm,function(Ee,De,Ae){return De+" ".repeat(Ae.length)});for(var se,he,me,Ce;U;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(function(Ee){return(se=Ee.call({lexer:ce},U,j))?(U=U.substring(se.raw.length),j.push(se),!0):!1}))){if(se=this.tokenizer.space(U)){U=U.substring(se.raw.length),se.raw.length===1&&j.length>0?j[j.length-1].raw+=`
|
||
|
`:j.push(se);continue}if(se=this.tokenizer.code(U)){U=U.substring(se.raw.length),he=j[j.length-1],he&&(he.type==="paragraph"||he.type==="text")?(he.raw+=`
|
||
|
`+se.raw,he.text+=`
|
||
|
`+se.text,this.inlineQueue[this.inlineQueue.length-1].src=he.text):j.push(se);continue}if(se=this.tokenizer.fences(U)){U=U.substring(se.raw.length),j.push(se);continue}if(se=this.tokenizer.heading(U)){U=U.substring(se.raw.length),j.push(se);continue}if(se=this.tokenizer.hr(U)){U=U.substring(se.raw.length),j.push(se);continue}if(se=this.tokenizer.blockquote(U)){U=U.substring(se.raw.length),j.push(se);continue}if(se=this.tokenizer.list(U)){U=U.substring(se.raw.length),j.push(se);continue}if(se=this.tokenizer.html(U)){U=U.substring(se.raw.length),j.push(se);continue}if(se=this.tokenizer.def(U)){U=U.substring(se.raw.length),he=j[j.length-1],he&&(he.type==="paragraph"||he.type==="text")?(he.raw+=`
|
||
|
`+se.raw,he.text+=`
|
||
|
`+se.raw,this.inlineQueue[this.inlineQueue.length-1].src=he.text):this.tokens.links[se.tag]||(this.tokens.links[se.tag]={href:se.href,title:se.title});continue}if(se=this.tokenizer.table(U)){U=U.substring(se.raw.length),j.push(se);continue}if(se=this.tokenizer.lheading(U)){U=U.substring(se.raw.length),j.push(se);continue}if(me=U,this.options.extensions&&this.options.extensions.startBlock&&function(){var Ee=1/0,De=U.slice(1),Ae=void 0;ce.options.extensions.startBlock.forEach(function(pe){Ae=pe.call({lexer:this},De),typeof Ae=="number"&&Ae>=0&&(Ee=Math.min(Ee,Ae))}),Ee<1/0&&Ee>=0&&(me=U.substring(0,Ee+1))}(),this.state.top&&(se=this.tokenizer.paragraph(me))){he=j[j.length-1],Ce&&he.type==="paragraph"?(he.raw+=`
|
||
|
`+se.raw,he.text+=`
|
||
|
`+se.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=he.text):j.push(se),Ce=me.length!==U.length,U=U.substring(se.raw.length);continue}if(se=this.tokenizer.text(U)){U=U.substring(se.raw.length),he=j[j.length-1],he&&he.type==="text"?(he.raw+=`
|
||
|
`+se.raw,he.text+=`
|
||
|
`+se.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=he.text):j.push(se);continue}if(U){var Le="Infinite loop on byte: "+U.charCodeAt(0);if(this.options.silent){console.error(Le);break}else throw new Error(Le)}}return this.state.top=!0,j},J.inline=function(U,j){this.inlineQueue.push({src:U,tokens:j})},J.inlineTokens=function(U,j){var ce=this;j===void 0&&(j=[]);var se,he,me,Ce=U,Le,Ee,De;if(this.tokens.links){var Ae=Object.keys(this.tokens.links);if(Ae.length>0)for(;(Le=this.tokenizer.rules.inline.reflinkSearch.exec(Ce))!=null;)Ae.includes(Le[0].slice(Le[0].lastIndexOf("[")+1,-1))&&(Ce=Ce.slice(0,Le.index)+"["+O("a",Le[0].length-2)+"]"+Ce.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Le=this.tokenizer.rules.inline.blockSkip.exec(Ce))!=null;)Ce=Ce.slice(0,Le.index)+"["+O("a",Le[0].length-2)+"]"+Ce.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(Le=this.tokenizer.rules.inline.escapedEmSt.exec(Ce))!=null;)Ce=Ce.slice(0,Le.index)+"++"+Ce.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;U;)if(Ee||(De=""),Ee=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(function(ue){return(se=ue.call({lexer:ce},U,j))?(U=U.substring(se.raw.length),j.push(se),!0):!1}))){if(se=this.tokenizer.escape(U)){U=U.substring(se.raw.length),j.push(se);continue}if(se=this.tokenizer.tag(U)){U=U.substring(se.raw.length),he=j[j.length-1],he&&se.type==="text"&&he.type==="text"?(he.raw+=se.raw,he.text+=se.text):j.push(se);continue}if(se=this.tokenizer.link(U)){U=U.substring(se.raw.length),j.push(se);continue}if(se=this.tokenizer.reflink(U,this.tokens.links)){U=U.substring(se.raw.length),he=j[j.length-1],he&&se.type==="text"&&he.type==="text"?(he.raw+=se.raw,he.text+=se.text):j.push(se);continue}if(se=this.tokenizer.emStrong(U,Ce,De)){U=U.substring(se.raw.length),j.push(se);continue}if(se=this.tokenizer.codespan(U)){U=U.substring(se.raw.length),j.push(se);continue}if(se=this.tokenizer.br(U)){U=U.substring(se.raw.length),j.push(se);continue}if(se=this.tokenizer.del(U)){U=U.substring(se.raw.length),j.push(se);continue}if(se=this.tokenizer.autolink(U,A)){U=U.substring(se.raw.length),j.push(se);continue}if(!this.state.inLink&&(se=this.tokenizer.url(U,A))){U=U.substring(se.raw.length),j.push(se);continue}if(me=U,this.options.extensions&&this.options.extensions.startInline&&function(){var ue=1/0,le=U.slice(1),ge=void 0;ce.options.extensions.startInline.forEach(function(_e){ge=_e.call({lexer:this},le),typeof ge=="number"&&ge>=0&&(ue=Math.min(ue,ge))}),ue<1/0&&ue>=0&&(me=U.substring(0,ue+1))}(),se=this.tokenizer.inlineText(me,V)){U=U.substring(se.raw.length),se.raw.slice(-1)!=="_"&&(De=se.raw.slice(-1)),Ee=!0,he=j[j.length-1],he&&he.type==="text"?(he.raw+=se.raw,he.text+=se.text):j.push(se);continue}if(U){var pe="Infinite loop on byte: "+U.charCodeAt(0);if(this.options.silent){console.error(pe);break}else throw new Error(pe)}}return j},w(z,null,[{key:"rules",get:function(){return{block:B,inline:W}}}]),z}(),ee=function(){function z(G){this.options=G||$.defaults}var J=z.prototype;return J.code=function(U,j,ce){var se=(j||"").match(/\S*/)[0];if(this.options.highlight){var he=this.options.highlight(U,se);he!=null&&he!==U&&(ce=!0,U=he)}return U=U.replace(/\n$/,"")+`
|
||
|
`,se?'<pre><code class="'+this.options.langPrefix+s(se,!0)+'">'+(ce?U:s(U,!0))+`</code></pre>
|
||
|
`:"<pre><code>"+(ce?U:s(U,!0))+`</code></pre>
|
||
|
`},J.blockquote=function(U){return`<blockquote>
|
||
|
`+U+`</blockquote>
|
||
|
`},J.html=function(U){return U},J.heading=function(U,j,ce,se){if(this.options.headerIds){var he=this.options.headerPrefix+se.slug(ce);return"<h"+j+' id="'+he+'">'+U+"</h"+j+`>
|
||
|
`}return"<h"+j+">"+U+"</h"+j+`>
|
||
|
`},J.hr=function(){return this.options.xhtml?`<hr/>
|
||
|
`:`<hr>
|
||
|
`},J.list=function(U,j,ce){var se=j?"ol":"ul",he=j&&ce!==1?' start="'+ce+'"':"";return"<"+se+he+`>
|
||
|
`+U+"</"+se+`>
|
||
|
`},J.listitem=function(U){return"<li>"+U+`</li>
|
||
|
`},J.checkbox=function(U){return"<input "+(U?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},J.paragraph=function(U){return"<p>"+U+`</p>
|
||
|
`},J.table=function(U,j){return j&&(j="<tbody>"+j+"</tbody>"),`<table>
|
||
|
<thead>
|
||
|
`+U+`</thead>
|
||
|
`+j+`</table>
|
||
|
`},J.tablerow=function(U){return`<tr>
|
||
|
`+U+`</tr>
|
||
|
`},J.tablecell=function(U,j){var ce=j.header?"th":"td",se=j.align?"<"+ce+' align="'+j.align+'">':"<"+ce+">";return se+U+("</"+ce+`>
|
||
|
`)},J.strong=function(U){return"<strong>"+U+"</strong>"},J.em=function(U){return"<em>"+U+"</em>"},J.codespan=function(U){return"<code>"+U+"</code>"},J.br=function(){return this.options.xhtml?"<br/>":"<br>"},J.del=function(U){return"<del>"+U+"</del>"},J.link=function(U,j,ce){if(U=f(this.options.sanitize,this.options.baseUrl,U),U===null)return ce;var se='<a href="'+s(U)+'"';return j&&(se+=' title="'+j+'"'),se+=">"+ce+"</a>",se},J.image=function(U,j,ce){if(U=f(this.options.sanitize,this.options.baseUrl,U),U===null)return ce;var se='<img src="'+U+'" alt="'+ce+'"';return j&&(se+=' title="'+j+'"'),se+=this.options.xhtml?"/>":">",se},J.text=function(U){return U},z}(),H=function(){function z(){}var J=z.prototype;return J.strong=function(U){return U},J.em=function(U){return U},J.codespan=function(U){return U},J.del=function(U){return U},J.html=function(U){return U},J.text=function(U){return U},J.link=function(U,j,ce){return""+ce},J.image=function(U,j,ce){return""+ce},J.br=function(){return""},z}(),q=function(){function z(){this.seen={}}var J=z.prototype;return J.serialize=function(U){return U.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},J.getNextSafeSlug=function(U,j){var ce=U,se=0;if(this.seen.hasOwnProperty(ce)){se=this.seen[U];do se++,ce=U+"-"+se;while(this.seen.hasOwnProperty(ce))}return j||(this.seen[U]=se,this.seen[ce]=0),ce},J.slug=function(U,j){j===void 0&&(j={});var ce=this.serialize(U);return this.getNextSafeSlug(ce,j.dryrun)},z}(),Z=function(){function z(G){this.options=G||$.defaults,this.options.renderer=this.options.renderer||new ee,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new H,this.slugger=new q}z.parse=function(U,j){var ce=new z(j);return ce.parse(U)},z.parseInline=function(U,j){var ce=new z(j);return ce.parseInline(U)};var J=z.prototype;return J.parse=function(U,j){j===void 0&&(j=!0);var ce="",se,he,me,Ce,Le,Ee,De,Ae,pe,ue,le,ge,_e,we,Ie,Me,Oe,be,ve,ye=U.length;for(se=0;se<ye;se++){if(ue=U[se],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[ue.type]&&(ve=this.options.extensions.renderers[ue.type].call({parser:this},ue),ve!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(ue.type))){ce+=ve||"";continue}switch(ue.type){case"space":continue;case"hr":{ce+=this.renderer.hr();continue}case"heading":{ce+=this.renderer.heading(this.parseInline(ue.tokens),ue.depth,l(this.parseInline(ue.tokens,this.textRenderer)),this.slugger);continue}case"code":{ce+=this.renderer.code(ue.text,ue.lang,ue.escaped);continue}case"table":{for(Ae="",De="",Ce=ue.header.length,he=0;he<Ce;he++)De+=this.renderer.tablecell(this.parseInline(ue.header[he].tokens),{header:!0,align:ue.align[he]});for(Ae+=this.renderer.tablerow(De),pe="",Ce=ue.rows.length,he=0;he<Ce;he++){for(Ee=ue.rows[he],De="",Le=Ee.length,me=0;me<Le;me++)De+=this.renderer.tablecell(this.parseInline(Ee[me].tokens),{header:!1,align:ue.align[me]});pe+=this.renderer.tablerow(De)}ce+=this.renderer.table(Ae,pe);continue}case"blockquote":{pe=this.parse(ue.tokens),ce+=this.renderer.blockquote(pe);continue}case"list":{for(le=ue.ordered,ge=ue.start,_e=ue.loose,Ce=ue.items.length,pe="",he=0;he<Ce;he++)Ie=ue.items[he],Me=Ie.checked,Oe=Ie.task,we="",Ie.task&&(be=this.renderer.checkbox(Me),_e?Ie.tokens.length>0&&Ie.tokens[0].type==="paragraph"?(Ie.tokens[0].text=be+" "+Ie.tokens[0].text,Ie.tokens[0].tokens&&Ie.tokens[0].tokens.length>0&&Ie.tokens[0].tokens[0].type==="text"&&(Ie.tokens[0].tokens[0].text=be+" "+Ie.tokens[0].tokens[0].text)):Ie.tokens.unshift({type:"text",text:be}):we+=be),we+=this.parse(Ie.tokens,_e),pe+=this.renderer.listitem(we,Oe,Me);ce+=this.renderer.list(pe,le,ge);continue}case"html":{ce+=this.renderer.html(ue.text);continue}case"paragraph":{ce+=this.renderer.paragraph(this.parseInline(ue.tokens));continue}case"text":{for(pe=ue.tokens?this.parseInline(ue.tokens):ue.text;se+1<ye&&U[se+1].type==="text";)ue=U[++se],pe+=`
|
||
|
`+(ue.tokens?this.parseInline(ue.tokens):ue.text);ce+=j?this.renderer.paragraph(pe):pe;continue}default:{var Re='Token with "'+ue.type+'" type was not found.';if(this.options.silent){console.error(Re);return}else throw new Error(Re)}}}return ce},J.parseInline=function(U,j){j=j||this.renderer;var ce="",se,he,me,Ce=U.length;for(se=0;se<Ce;se++){if(he=U[se],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[he.type]&&(me=this.options.extensions.renderers[he.type].call({parser:this},he),me!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(he.type))){ce+=me||"";continue}switch(he.type){case"escape":{ce+=j.text(he.text);break}case"html":{ce+=j.html(he.text);break}case"link":{ce+=j.link(he.href,he.title,this.parseInline(he.tokens,j));break}case"image":{ce+=j.image(he.href,he.title,he.text);break}case"strong":{ce+=j.strong(this.parseInline(he.tokens,j));break}case"em":{ce+=j.em(this.parseInline(he.tokens,j));break}case"codespan":{ce+=j.codespan(he.text);break}case"br":{ce+=j.br();break}case"del":{ce+=j.del(this.parseInline(he.tokens,j));break}case"text":{ce+=j.text(he.text);break}default:{var Le='Token with "'+he.type+'" type was not found.';if(this.options.silent){console.error(Le);return}else throw new Error(Le)}}}return ce},z}();function ie(z,J,G){if(typeof z=="undefined"||z===null)throw new Error("marked(): input parameter is undefined or null");if(typeof z!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(z)+", string expected");if(typeof J=="function"&&(G=J,J=null),J=E({},ie.defaults,J||{}),F(J),G){var U=J.highlight,j;try{j=X.lex(z,J)}catch(me){return G(me)}var ce=function(Ce){var Le;if(!Ce)try{J.walkTokens&&ie.walkTokens(j,J.walkTokens),Le=Z.parse(j,J)}catch(Ee){Ce=Ee}return J.highlight=U,Ce?G(Ce):G(null,Le)};if(!U||U.length<3||(delete J.highlight,!j.length))return ce();var se=0;ie.walkTokens(j,function(me){me.type==="code"&&(se++,setTimeout(function(){U(me.text,me.lang,function(Ce,Le){if(Ce)return ce(Ce);Le!=null&&Le!==me.text&&(me.text=Le,me.escaped=!0),se--,se===0&&ce()})},0))}),se===0&&ce();return}try{var he=X.lex(z,J);return J.walkTokens&&ie.walkTokens(he,J.walkTokens),Z.parse(he,J)}catch(me){if(me.message+=`
|
||
|
Please report this to https://github.com/markedjs/marked.`,J.silent)return"<p>An error occurred:</p><pre>"+s(me.message+"",!0)+"</pre>";throw me}}ie.options=ie.setOptions=function(z){return E(ie.defaults,z),b(ie.defaults),ie},ie.getDefaults=L,ie.defaults=$.defaults,ie.use=function(){for(var z=arguments.length,J=new Array(z),G=0;G<z;G++)J[G]=arguments[G];var U=E.apply(void 0,[{}].concat(J)),j=ie.defaults.extensions||{renderers:{},childTokens:{}},ce;J.forEach(function(se){if(se.extensions&&(ce=!0,se.extensions.forEach(function(me){if(!me.name)throw new Error("extension name required");if(me.renderer){var Ce=j.renderers?j.renderers[me.name]:null;Ce?j.renderers[me.name]=function(){for(var Le=arguments.length,Ee=new Array(Le),De=0;De<Le;De++)Ee[De]=arguments[De];var Ae=me.renderer.apply(this,Ee);return Ae===!1&&(Ae=Ce.apply(this,Ee)),Ae}:j.renderers[me.name]=me.renderer}if(me.tokenizer){if(!me.level||me.level!=="block"&&me.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");j[me.level]?j[me.level].unshift(me.tokenizer):j[me.level]=[me.tokenizer],me.start&&(me.level==="block"?j.startBlock?j.startBlock.push(me.start):j.startBlock=[me.start]:me.level==="inline"&&(j.startInline?j.startInline.push(me.start):j.startInline=[me.start]))}me.childTokens&&(j.childTokens[me.name]=me.childTokens)})),se.renderer&&function(){var me=ie.defaults.renderer||new ee,Ce=function(De){var Ae=me[De];me[De]=function(){for(var pe=arguments.length,ue=new Array(pe),le=0;le<pe;le++)ue[le]=arguments[le];var ge=se.renderer[De].apply(me,ue);return ge===!1&&(ge=Ae.apply(me,ue)),ge}};for(var Le in se.renderer)Ce(Le);U.renderer=me}(),se.tokenizer&&function(){var me=ie.defaults.tokenizer||new P,Ce=function(De){var Ae=me[De];me[De]=function(){for(var pe=arguments.length,ue=new Array(pe),le=0;le<pe;le++)ue[le]=arguments[le];var ge=se.tokenizer[De].apply(me,ue);return ge===!1&&(ge=Ae.apply(me,ue)),ge}};for(var Le in se.tokenizer)Ce(Le);U.tokenizer=me}(),se.walkTokens){var he=ie.defaults.walkTokens;U.walkTokens=function(me){se.walkTokens.call(this,me),he&&he.call(this,me)}}ce&&(U.extensions=j),ie.setOptions(U)})},ie.walkTokens=function(z,J){for(var G=function(){var se=j.value;switch(J.call(ie,se),se.type){case"table":{for(var he=I(se.header),me;!(me=he()).done;){var Ce=me.value;ie.walkTokens(Ce.tokens,J)}for(var Le=I(se.rows),Ee;!(Ee=Le()).done;)for(var De=Ee.value,Ae=I(De),pe;!(pe=Ae()).done;){var ue=pe.value;ie.walkTokens(ue.tokens,J)}break}case"list":{ie.walkTokens(se.items,J);break}default:ie.defaults.extensions&&ie.defaults.extensions.childTokens&&ie.defaults.extensions.childTokens[se.type]?ie.defaults.extensions.childTokens[se.type].forEach(function(le){ie.walkTokens(se[le],J)}):se.tokens&&ie.walkTokens(se.tokens,J)}},U=I(z),j;!(j=U()).done;)G()},ie.parseInline=function(z,J){if(typeof z=="undefined"||z===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof z!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(z)+", string expected");J=E({},ie.defaults,J||{}),F(J);try{var G=X.lexInline(z,J);return J.walkTokens&&ie.walkTokens(G,J.walkTokens),Z.parseInline(G,J)}catch(U){if(U.message+=`
|
||
|
Please report this to https://github.com/markedjs/marked.`,J.silent)return"<p>An error occurred:</p><pre>"+s(U.message+"",!0)+"</pre>";throw U}},ie.Parser=Z,ie.parser=Z.parse,ie.Renderer=ee,ie.TextRenderer=H,ie.Lexer=X,ie.lexer=X.lex,ie.Tokenizer=P,ie.Slugger=q,ie.parse=ie;var Y=ie.options,te=ie.setOptions,de=ie.use,x=ie.walkTokens,oe=ie.parseInline,Q=ie,K=Z.parse,ne=X.lex;$.Lexer=X,$.Parser=Z,$.Renderer=ee,$.Slugger=q,$.TextRenderer=H,$.Tokenizer=P,$.getDefaults=L,$.lexer=ne,$.marked=ie,$.options=Y,$.parse=Q,$.parseInline=oe,$.parser=K,$.setOptions=te,$.use=de,$.walkTokens=x,Object.defineProperty($,"__esModule",{value:!0})}),define(re[97],ae([1,0]),function($,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Mimes=void 0,e.Mimes=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"})}),define(re[123],ae([1,0,97]),function($,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StaticDND=e.DataTransfers=void 0,e.DataTransfers={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:w.Mimes.text},e.StaticDND={CurrentDragAndDropData:void 0}}),define(re[330],ae([1,0]),function($,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayNavigator=void 0;class w{constructor(k,I=0,L=k.length,b=I-1){this.items=k,this.start=I,this.end=L,this.index=b}current(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]}next(){return this.index=Math.min(this.index+1,this.end),this.current()}previous(){return this.index=Math.max(this.index-1,this.start-1),this.current()}first(){return this.index=this.start,this.current()}last(){return this.index=this.end-1,this.current()}}e.ArrayNavigator=w}),define(re[331],ae([1,0,330]),function($,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HistoryNavigator=void 0;class C{constructor(I=[],L=10){this._initialize(I),this._limit=L,this._onChange()}getHistory(){return this._elements}add(I){this._history.delete(I),this._history.add(I),this._onChange()}next(){return this._currentPosition()!==this._elements.length-1?this._navigator.next():null}previous(){return this._currentPosition()!==0?this._navigator.previous():null}current(){return this._navigator.current()}first(){return this._navigator.first()}last(){return this._navigator.last()}has(I){return this._history.has(I)}_onChange(){this._reduceToLimit();const I=this._elements;this._navigator=new w.ArrayNavigator(I,0,I.length,I.length)}_reduceToLimit(){const I=this._elements;I.length>this._limit&&this._initialize(I.slice(I.length-this._limit))}_currentPosition(){const I=this._navigator.current();return I?this._elements.indexOf(I):-1}_initialize(I){this._history=new Set;for(const L of I)this._history.add(L)}get _elements(){const I=[];return this._history.forEach(L=>I.push(L)),I}}e.HistoryNavigator=C}),define(re[124],ae([1,0]),function($,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SlidingWindowAverage=e.MovingAverage=e.clamp=void 0;function w(I,L,b){return Math.min(Math.max(I,L),b)}e.clamp=w;class C{constructor(){this._n=1,this._val=0}update(L){return this._val=this._val+(L-this._val)/this._n,this._n+=1,this._val}get value(){return this._val}}e.MovingAverage=C;class k{constructor(L){this._n=0,this._val=0,this._values=[],this._index=0,this._sum=0,this._values=new Array(L),this._values.fill(0,0,L)}update(L){const b=this._values[this._index];return this._values[this._index]=L,this._index=(this._index+1)%this._values.length,this._sum-=b,this._sum+=L,this._n<this._values.length&&(this._n+=1),this._val=this._sum/this._n,this._val}get value(){return this._val}}e.SlidingWindowAverage=k}),define(re[146],ae([1,0]),function($,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Range=void 0;var w;(function(C){function k(v,u){if(v.start>=u.end||u.start>=v.end)return{start:0,end:0};const g=Math.max(v.start,u.start),n=Math.min(v.end,u.end);return n-g<=0?{start:0,end:0}:{start:g,end:n}}C.intersect=k;function I(v){ret
|
||
|
`;for(let Ce=0;Ce<=j;Ce++)Ce===0?me+=" |":me+=`${U[Ce-1]}|`,me+=G[Ce].slice(0,se+1).map(Le=>he(Le.toString(),3)).join("|")+`
|
||
|
`;return me}function q(G,U,j,ce){G=G.substr(U),j=j.substr(ce),console.log(H(A,G,G.length,j,j.length)),console.log(H(X,G,G.length,j,j.length)),console.log(H(V,G,G.length,j,j.length))}function Z(G,U){if(U<0||U>=G.length)return!1;const j=G.codePointAt(U);switch(j){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:case 60:case 62:case 40:case 41:case 91:case 93:case 123:case 125:return!0;case void 0:return!1;default:return!!C.isEmojiImprecise(j)}}function ie(G,U){if(U<0||U>=G.length)return!1;switch(G.charCodeAt(U)){case 32:case 9:return!0;default:return!1}}function Y(G,U,j){return U[G]!==j[G]}function te(G,U,j,ce,se,he,me=!1){for(;U<j&&se<he;)G[U]===ce[se]&&(me&&(B[U]=se),U+=1),se+=1;return U===j}e.isPatternInWord=te;var de;(function(G){G.Default=[-100,0];function U(j){return!j||j.length===2&&j[0]===-100&&j[1]===0}G.isDefault=U})(de=e.FuzzyScore||(e.FuzzyScore={}));class x{constructor(U,j){this.firstMatchCanBeWeak=U,this.boostFullMatch=j}}e.FuzzyScoreOptions=x,x.default={boostFullMatch:!0,firstMatchCanBeWeak:!1};function oe(G,U,j,ce,se,he,me=x.default){const Ce=G.length>D?D:G.length,Le=ce.length>D?D:ce.length;if(j>=Ce||he>=Le||Ce-j>Le-he||!te(U,j,Ce,se,he,Le,!0))return;Q(Ce,Le,j,he,U,se);let Ee=1,De=1,Ae=j,pe=he;const ue=[!1];for(Ee=1,Ae=j;Ae<Ce;Ee++,Ae++){const Ie=B[Ae],Me=W[Ae],Oe=Ae+1<Ce?W[Ae+1]:Le;for(De=Ie-he+1,pe=Ie;pe<Oe;De++,pe++){let be=Number.MIN_SAFE_INTEGER,ve=!1;pe<=Me&&(be=K(G,U,Ae,j,ce,se,pe,Le,he,V[Ee-1][De-1]===0,ue));let ye=0;be!==Number.MAX_SAFE_INTEGER&&(ve=!0,ye=be+A[Ee-1][De-1]);const Re=pe>Ie,Te=Re?A[Ee][De-1]+(V[Ee][De-1]>0?-5:0):0,Be=pe>Ie+1&&V[Ee][De-1]>0,xe=Be?A[Ee][De-2]+(V[Ee][De-2]>0?-5:0):0;if(Be&&(!Re||xe>=Te)&&(!ve||xe>=ye))A[Ee][De]=xe,X[Ee][De]=3,V[Ee][De]=0;else if(Re&&(!ve||Te>=ye))A[Ee][De]=Te,X[Ee][De]=2,V[Ee][De]=0;else if(ve)A[Ee][De]=ye,X[Ee][De]=1,V[Ee][De]=V[Ee-1][De-1]+1;else throw new Error("not possible")}}if(ee&&q(G,j,ce,he),!ue[0]&&!me.firstMatchCanBeWeak)return;Ee--,De--;const le=[A[Ee][De],he];let ge=0,_e=0;for(;Ee>=1;){let Ie=De;do{const Me=X[Ee][Ie];if(Me===3)Ie=Ie-2;else if(Me===2)Ie=Ie-1;else break}while(Ie>=1);ge>1&&U[j+Ee-1]===se[he+De-1]&&!Y(Ie+he-1,ce,se)&&ge+1>V[Ee][Ie]&&(Ie=De),Ie===De?ge++:ge=1,_e||(_e=Ie),Ee--,De=Ie-1,le.push(De)}Le===Ce&&me.boostFullMatch&&(le[0]+=2);const we=_e-Ce;return le[0]-=we,le}e.fuzzyScore=oe;function Q(G,U,j,ce,se,he){let me=G-1,Ce=U-1;for(;me>=j&&Ce>=ce;)se[me]===he[Ce]&&(W[me]=Ce,me--),Ce--}function K(G,U,j,ce,se,he,me,Ce,Le,Ee,De){if(U[j]!==he[me])return Number.MIN_SAFE_INTEGER;let Ae=1,pe=!1;return me===j-ce?Ae=G[j]===se[me]?7:5:Y(me,se,he)&&(me===0||!Y(me-1,se,he))?(Ae=G[j]===se[me]?7:5,pe=!0):Z(he,me)&&(me===0||!Z(he,me-1))?Ae=5:(Z(he,me-1)||ie(he,me-1))&&(Ae=5,pe=!0),Ae>1&&j===ce&&(De[0]=!0),pe||(pe=Y(me,se,he)||Z(he,me-1)||ie(he,me-1)),j===ce?me>Le&&(Ae-=pe?3:5):Ee?Ae+=pe?2:0:Ae+=pe?0:1,me+1===Ce&&(Ae-=pe?3:5),Ae}function ne(G,U,j,ce,se,he,me){return z(G,U,j,ce,se,he,!0,me)}e.fuzzyScoreGracefulAggressive=ne;function z(G,U,j,ce,se,he,me,Ce){let Le=oe(G,U,j,ce,se,he,Ce);if(Le&&!me)return Le;if(G.length>=3){const Ee=Math.min(7,G.length-1);for(let De=j+1;De<Ee;De++){const Ae=J(G,De);if(Ae){const pe=oe(Ae,Ae.toLowerCase(),j,ce,se,he,Ce);pe&&(pe[0]-=3,(!Le||pe[0]>Le[0])&&(Le=pe))}}}return Le}function J(G,U){if(U+1>=G.length)return;const j=G[U],ce=G[U+1];if(j!==ce)return G.slice(0,U)+ce+j+G.slice(U+2)}}),define(re[106],ae([1,0,27,63,8]),function($,e,w,C,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.matchesFuzzyIconAware=e.parseLabelWithIcons=e.stripIcons=e.markdownEscapeEscapedIcons=e.escapeIcons=e.iconStartMarker=void 0,e.iconStartMarker="$(";const I=new RegExp(`\\$\\(${w.CSSIcon.iconNameExpression}(?:${w.CSSIcon.iconModifierExpression})?\\)`,"g"),L=new RegExp(w.CSSIcon.iconNameCharacter),b=new RegExp(`(\\\\)?${I.source}`,"g");function v(l){return l.replace(b,(a,r)=>r?a:`\\${a}`)}e.escapeIcons=v;const u=new RegExp(`\\\\${I.source}`,"g");function g(l){return l.replace(u,a=>`\\${a}`)}e.markdownEscapeEscapedIcons=g;const n=new RegExp(`(\\s)?(\\\\)?${I.source}(\\s)?`,"g");function i(l){r
|
||
|
`:`
|
||
|
|
||
|
`),this}appendMarkdown(t){return this.value+=t,this}appendCodeblock(t,s){return this.value+="\n```",this.value+=t,this.value+=`
|
||
|
`,this.value+=s,this.value+="\n```\n",this}appendLink(t,s,d){return this.value+="[",this.value+=this._escape(s,"]"),this.value+="](",this.value+=this._escape(String(t),")"),d&&(this.value+=` "${this._escape(this._escape(d,'"'),")")}"`),this.value+=")",this}_escape(t,s){const d=new RegExp((0,k.escapeRegExpCharacters)(s),"g");return t.replace(d,(l,a)=>t.charAt(a-1)!=="\\"?`\\${l}`:l)}}e.MarkdownString=I;function L(i){return b(i)?!i.value:Array.isArray(i)?i.every(L):!0}e.isEmptyMarkdownString=L;function b(i){return i instanceof I?!0:i&&typeof i=="object"?typeof i.value=="string"&&(typeof i.isTrusted=="boolean"||i.isTrusted===void 0)&&(typeof i.supportThemeIcons=="boolean"||i.supportThemeIcons===void 0):!1}e.isMarkdownString=b;function v(i){return i.replace(/[\\`*_{}[\]()#+\-!]/g,"\\$&")}e.escapeMarkdownSyntaxTokens=v;function u(i){return i.replace(/"/g,""")}e.escapeDoubleQuotes=u;function g(i){return i&&i.replace(/\\([\\`*_{}[\]()#+\-.!])/g,"$1")}e.removeMarkdownEscapes=g;function n(i){const t=[],s=i.split("|").map(l=>l.trim());i=s[0];const d=s[1];if(d){const l=/height=(\d+)/.exec(d),a=/width=(\d+)/.exec(d),r=l?l[1]:"",o=a?a[1]:"",c=isFinite(parseInt(o)),f=isFinite(parseInt(r));c&&t.push(`width="${o}"`),f&&t.push(`height="${r}"`)}return{href:i,dimensions:t}}e.parseHrefAndDimensions=n}),define(re[333],ae([1,0,8]),function($,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.buildReplaceStringWithCasePreserved=void 0;function C(L,b){if(L&&L[0]!==""){const v=k(L,b,"-"),u=k(L,b,"_");return v&&!u?I(L,b,"-"):!v&&u?I(L,b,"_"):L[0].toUpperCase()===L[0]?b.toUpperCase():L[0].toLowerCase()===L[0]?b.toLowerCase():w.containsUppercaseCharacter(L[0][0])&&b.length>0?b[0].toUpperCase()+b.substr(1):L[0][0].toUpperCase()!==L[0][0]&&b.length>0?b[0].toLowerCase()+b.substr(1):b}else return b}e.buildReplaceStringWithCasePreserved=C;function k(L,b,v){return L[0].indexOf(v)!==-1&&b.indexOf(v)!==-1&&L[0].split(v).length===b.split(v).length}function I(L,b,v){const u=b.split(v),g=L[0].split(v);let n="";return u.forEach((i,t)=>{n+=C([g[t]],i)+v}),n.slice(0,-1)}}),define(re[81],ae([1,0,8]),function($,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var C;(function(k){k[k.Ignore=0]="Ignore",k[k.Info=1]="Info",k[k.Warning=2]="Warning",k[k.Error=3]="Error"})(C||(C={})),function(k){const I="error",L="warning",b="warn",v="info",u="ignore";function g(i){return i?w.equalsIgnoreCase(I,i)?k.Error:w.equalsIgnoreCase(L,i)||w.equalsIgnoreCase(b,i)?k.Warning:w.equalsIgnoreCase(v,i)?k.Info:k.Ignore:k.Ignore}k.fromValue=g;function n(i){switch(i){case k.Error:return I;case k.Warning:return L;case k.Info:return v;default:return u}}k.toString=n}(C||(C={})),e.default=C}),define(re[19],ae([1,0]),function($,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.assertNever=e.withNullAsUndefined=e.createProxyObject=e.getAllMethodNames=e.getAllPropertyNames=e.validateConstraint=e.validateConstraints=e.isFunction=e.assertIsDefined=e.assertType=e.isUndefinedOrNull=e.isDefined=e.isUndefined=e.isBoolean=e.isIterable=e.isNumber=e.isTypedArray=e.isObject=e.isString=e.isArray=void 0;function w(p){return Array.isArray(p)}e.isArray=w;function C(p){return typeof p=="string"}e.isString=C;function k(p){return typeof p=="object"&&p!==null&&!Array.isArray(p)&&!(p instanceof RegExp)&&!(p instanceof Date)}e.isObject=k;function I(p){const _=Object.getPrototypeOf(Uint8Array);return typeof p=="object"&&p instanceof _}e.isTypedArray=I;function L(p){return typeof p=="number"&&!isNaN(p)}e.isNumber=L;function b(p){return!!p&&typeof p[Symbol.iterator]=="function"}e.isIterable=b;function v(p){return p===!0||p===!1}e.isBoolean=v;function u(p){return typeof p=="undefined"}e.isUndefined=u;function g(p){return!n(p)}e.isDefined=g;function n(p){return u(p)||p===null}e.isUndefinedOrNull=n;function i(p,_){if(!p)throw new Error(_?`Unexpected type, expected '${_}'`:"Unexpected type")}e.assertType=i;function t(p){if(n(p))throw new Error("Assertion Failed: argument is undefined or null");return p}e.assertIsDefined=t;function s(p){return typeof p=="function"}e
|
||
|
`,i+1))!==-1;)n++;return[v,g*u.length,n]}static deduceInput(v,u,g){if(!v)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};e._debugComposition&&(console.log("------------------------deduceInput"),console.log(`PREVIOUS STATE: ${v.toString()}`),console.log(`CURRENT STATE: ${u.toString()}`));const n=Math.min(w.commonPrefixLength(v.value,u.value),v.selectionStart,u.selectionStart),i=Math.min(w.commonSuffixLength(v.value,u.value),v.value.length-v.selectionEnd,u.value.length-u.selectionEnd),t=v.value.substring(n,v.value.length-i),s=u.value.substring(n,u.value.length-i),d=v.selectionStart-n,l=v.selectionEnd-n,a=u.selectionStart-n,r=u.selectionEnd-n;if(e._debugComposition&&(console.log(`AFTER DIFFING PREVIOUS STATE: <${t}>, selectionStart: ${d}, selectionEnd: ${l}`),console.log(`AFTER DIFFING CURRENT STATE: <${s}>, selectionStart: ${a}, selectionEnd: ${r}`)),a===r){const c=v.selectionStart-n;return e._debugComposition&&console.log(`REMOVE PREVIOUS: ${c} chars`),{text:s,replacePrevCharCnt:c,replaceNextCharCnt:0,positionDelta:0}}const o=l-d;return{text:s,replacePrevCharCnt:o,replaceNextCharCnt:0,positionDelta:0}}static deduceAndroidCompositionInput(v,u){if(!v)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};if(e._debugComposition&&(console.log("------------------------deduceAndroidCompositionInput"),console.log(`PREVIOUS STATE: ${v.toString()}`),console.log(`CURRENT STATE: ${u.toString()}`)),v.value===u.value)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:u.selectionEnd-v.selectionEnd};const g=Math.min(w.commonPrefixLength(v.value,u.value),v.selectionEnd),n=Math.min(w.commonSuffixLength(v.value,u.value),v.value.length-v.selectionEnd),i=v.value.substring(g,v.value.length-n),t=u.value.substring(g,u.value.length-n),s=v.selectionStart-g,d=v.selectionEnd-g,l=u.selectionStart-g,a=u.selectionEnd-g;return e._debugComposition&&(console.log(`AFTER DIFFING PREVIOUS STATE: <${i}>, selectionStart: ${s}, selectionEnd: ${d}`),console.log(`AFTER DIFFING CURRENT STATE: <${t}>, selectionStart: ${l}, selectionEnd: ${a}`)),{text:t,replacePrevCharCnt:d,replaceNextCharCnt:i.length-d,positionDelta:a-t.length}}}e.TextAreaState=I,I.EMPTY=new I("",0,0,null,null);class L{static _getPageOfLine(v,u){return Math.floor((v-1)/u)}static _getRangeForPage(v,u){const g=v*u,n=g+1,i=g+u;return new k.Range(n,1,i+1,1)}static fromEditorSelection(v,u,g,n,i){const t=L._getPageOfLine(g.startLineNumber,n),s=L._getRangeForPage(t,n),d=L._getPageOfLine(g.endLineNumber,n),l=L._getRangeForPage(d,n),a=s.intersectRanges(new k.Range(1,1,g.startLineNumber,g.startColumn));let r=u.getValueInRange(a,1);const o=u.getLineCount(),c=u.getLineMaxColumn(o),f=l.intersectRanges(new k.Range(g.endLineNumber,g.endColumn,o,c));let p=u.getValueInRange(f,1),_;if(t===d||t+1===d)_=u.getValueInRange(g,1);else{const m=s.intersectRanges(g),h=l.intersectRanges(g);_=u.getValueInRange(m,1)+String.fromCharCode(8230)+u.getValueInRange(h,1)}if(i){const m=500;r.length>m&&(r=r.substring(r.length-m,r.length)),p.length>m&&(p=p.substring(0,m)),_.length>2*m&&(_=_.substring(0,m)+String.fromCharCode(8230)+_.substring(_.length-m,_.length))}return new I(r+_+p,r.length,r.length+_.length,new C.Position(g.startLineNumber,g.startColumn),new C.Position(g.endLineNumber,g.endColumn))}}e.PagedScreenReaderStrategy=L}),define(re[60],ae([1,0,3]),function($,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditOperation=void 0;class C{static insert(I,L){return{range:new w.Range(I.lineNumber,I.column,I.lineNumber,I.column),text:L,forceMoveMarkers:!0}}static delete(I){return{range:I,text:null}}static replace(I,L){return{range:I,text:L}}static replaceMove(I,L){return{range:I,text:L,forceMoveMarkers:!0}}}e.EditOperation=C}),define(re[406],ae([1,0,8,60,3]),function($,e,w,C,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.trimTrailingWhitespace=e.TrimTrailingWhitespaceCommand=void 0;class I{constructor(v,u){this._selection=v,this._cursors=u,this._selectionId=null}getEditOperations(v,u){const g=L(v,this._cursors);for(let n=0,i=g.l
|
||
|
* 'to': A mandatory logical position value providing where to move the cursor.
|
||
|
\`\`\`
|
||
|
'left', 'right', 'up', 'down', 'prevBlankLine', 'nextBlankLine',
|
||
|
'wrappedLineStart', 'wrappedLineEnd', 'wrappedLineColumnCenter'
|
||
|
'wrappedLineFirstNonWhitespaceCharacter', 'wrappedLineLastNonWhitespaceCharacter'
|
||
|
'viewPortTop', 'viewPortCenter', 'viewPortBottom', 'viewPortIfOutside'
|
||
|
\`\`\`
|
||
|
* 'by': Unit to move. Default is computed based on 'to' value.
|
||
|
\`\`\`
|
||
|
'line', 'wrappedLine', 'character', 'halfLine'
|
||
|
\`\`\`
|
||
|
* 'value': Number of units to move. Default is '1'.
|
||
|
* 'select': If 'true' makes the selection. Default is 'false'.
|
||
|
`,constraint:n,schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["left","right","up","down","prevBlankLine","nextBlankLine","wrappedLineStart","wrappedLineEnd","wrappedLineColumnCenter","wrappedLineFirstNonWhitespaceCharacter","wrappedLineLastNonWhitespaceCharacter","viewPortTop","viewPortCenter","viewPortBottom","viewPortIfOutside"]},by:{type:"string",enum:["line","wrappedLine","character","halfLine"]},value:{type:"number",default:1},select:{type:"boolean",default:!1}}}}]},g.RawDirection={Left:"left",Right:"right",Up:"up",Down:"down",PrevBlankLine:"prevBlankLine",NextBlankLine:"nextBlankLine",WrappedLineStart:"wrappedLineStart",WrappedLineFirstNonWhitespaceCharacter:"wrappedLineFirstNonWhitespaceCharacter",WrappedLineColumnCenter:"wrappedLineColumnCenter",WrappedLineEnd:"wrappedLineEnd",WrappedLineLastNonWhitespaceCharacter:"wrappedLineLastNonWhitespaceCharacter",ViewPortTop:"viewPortTop",ViewPortCenter:"viewPortCenter",ViewPortBottom:"viewPortBottom",ViewPortIfOutside:"viewPortIfOutside"},g.RawUnit={Line:"line",WrappedLine:"wrappedLine",Character:"character",HalfLine:"halfLine"};function i(t){if(!t.to)return null;let s;switch(t.to){case g.RawDirection.Left:s=0;break;case g.RawDirection.Right:s=1;break;case g.RawDirection.Up:s=2;break;case g.RawDirection.Down:s=3;break;case g.RawDirection.PrevBlankLine:s=4;break;case g.RawDirection.NextBlankLine:s=5;break;case g.RawDirection.WrappedLineStart:s=6;break;case g.RawDirection.WrappedLineFirstNonWhitespaceCharacter:s=7;break;case g.RawDirection.WrappedLineColumnCenter:s=8;break;case g.RawDirection.WrappedLineEnd:s=9;break;case g.RawDirection.WrappedLineLastNonWhitespaceCharacter:s=10;break;case g.RawDirection.ViewPortTop:s=11;break;case g.RawDirection.ViewPortBottom:s=13;break;case g.RawDirection.ViewPortCenter:s=12;break;case g.RawDirection.ViewPortIfOutside:s=14;break;default:return null}let d=0;switch(t.by){case g.RawUnit.Line:d=1;break;case g.RawUnit.WrappedLine:d=2;break;case g.RawUnit.Character:d=3;break;case g.RawUnit.HalfLine:d=4;break}return{direction:s,unit:d,select:!!t.select,value:t.value||1}}g.parse=i})(u=e.CursorMove||(e.CursorMove={}))}),define(re[413],ae([1,0,61,11,3,23]),function($,e,w,C,k,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Cursor=void 0;class L{constructor(v){this._selTrackedRange=null,this._trackSelection=!0,this._setState(v,new w.SingleCursorState(new k.Range(1,1,1,1),0,new C.Position(1,1),0),new w.SingleCursorState(new k.Range(1,1,1,1),0,new C.Position(1,1),0))}dispose(v){this._removeTrackedRange(v)}startTrackingSelection(v){this._trackSelection=!0,this._updateTrackedRange(v)}stopTrackingSelection(v){this._trackSelection=!1,this._removeTrackedRange(v)}_updateTrackedRange(v){!this._trackSelection||(this._selTrackedRange=v.model._setTrackedRange(this._selTrackedRange,this.modelState.selection,0))}_removeTrackedRange(v){this._selTrackedRange=v.model._setTrackedRange(this._selTrackedRange,null,0)}asCursorState(){return new w.CursorState(this.modelState,this.viewState)}readSelectionFromMarkers(v){const u=v.model._getTrackedRange(this._selTrackedRange);return I.Selection.fromRange(u,this.modelState.selection.getDirection())}ensureValidState(v){this._setState(v,this.modelState,this.viewState)}setState(v,u,g){this._setState(v,u,g)}static _validatePositionWithCache(v,u,g,n){return u.equals(g)?n:v.normalizePosition(u,2)}static _validateViewState(v,u){const g=u.position,n=u.selectionStart.getStartPosition(),i=u.selectionStart.getEndPosition(),t=v.normalizePosition(g,2),s=this._validatePositionWithCache(v,n,g,t),d=this._validatePositionWithCache(v,i,n,s);return g.equals(t)&&n.equals(s)&&i.equals(d)?u:new w.SingleCursorState(k.Range.fromPositions(s,d),u.selectionStartLeftoverVisibleColumns+n.column-s.column,t,u.leftoverVisibleColumns+g.column-t.column)}_setState(v,u,g){if(g&&(g=L._validateViewState(v.viewModel,g)),u){const n=v.model.validateRange(u.selectionStart),i=u.selectionStart.equalsRange(n)?u.selectionStartLeftoverVisibleColumns:0,t=v.model.validatePosition(u.position),s=u.position.equals(t)?u.leftove
|
||
|
`}),define(re[416],ae([1,0]),function($,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IndentRulesSupport=void 0;function w(k){return k.global&&(k.lastIndex=0),!0}class C{constructor(I){this._indentationRules=I}shouldIncrease(I){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&w(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(I))}shouldDecrease(I){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&w(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(I))}shouldIndentNextLine(I){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&w(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(I))}shouldIgnore(I){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&w(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(I))}getIndentMetadata(I){let L=0;return this.shouldIncrease(I)&&(L+=1),this.shouldDecrease(I)&&(L+=2),this.shouldIndentNextLine(I)&&(L+=4),this.shouldIgnore(I)&&(L+=8),L}}e.IndentRulesSupport=C}),define(re[417],ae([1,0]),function($,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BasicInplaceReplace=void 0;class w{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(k,I,L,b,v){if(k&&I){const u=this.doNavigateValueSet(I,v);if(u)return{range:k,value:u}}if(L&&b){const u=this.doNavigateValueSet(b,v);if(u)return{range:L,value:u}}return null}doNavigateValueSet(k,I){const L=this.numberReplace(k,I);return L!==null?L:this.textReplace(k,I)}numberReplace(k,I){const L=Math.pow(10,k.length-(k.lastIndexOf(".")+1));let b=Number(k);const v=parseFloat(k);return!isNaN(b)&&!isNaN(v)&&b===v?b===0&&!I?null:(b=Math.floor(b*L),b+=I?L:-L,String(b/L)):null}textReplace(k,I){return this.valueSetsReplace(this._defaultValueSet,k,I)}valueSetsReplace(k,I,L){let b=null;for(let v=0,u=k.length;b===null&&v<u;v++)b=this.valueSetReplace(k[v],I,L);return b}valueSetReplace(k,I,L){let b=k.indexOf(I);return b>=0?(b+=L?1:-1,b<0?b=k.length-1:b%=k.length,k[b]):null}}e.BasicInplaceReplace=w,w.INSTANCE=new w}),define(re[418],ae([1,0,222,14]),function($,e,w,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ClosingBracketKind=e.OpeningBracketKind=e.BracketKindBase=e.LanguageBracketsConfiguration=void 0;class k{constructor(g,n){this.languageId=g;let i;n.colorizedBracketPairs?i=I(n.colorizedBracketPairs.map(d=>[d[0],d[1]])):n.brackets?i=I(n.brackets.map(d=>[d[0],d[1]]).filter(d=>!(d[0]==="<"&&d[1]===">"))):i=[];const t=new w.CachedFunction(d=>{const l=new Set;return{info:new b(this,d,l),closing:l}}),s=new w.CachedFunction(d=>{const l=new Set;return{info:new v(this,d,l),opening:l}});for(const[d,l]of i){const a=t.get(d),r=s.get(l);a.closing.add(r.info),r.opening.add(a.info)}this._openingBrackets=new Map([...t.cachedValues].map(([d,l])=>[d,l.info])),this._closingBrackets=new Map([...s.cachedValues].map(([d,l])=>[d,l.info]))}get openingBrackets(){return[...this._openingBrackets.values()]}get closingBrackets(){return[...this._closingBrackets.values()]}getOpeningBracketInfo(g){return this._openingBrackets.get(g)}getClosingBracketInfo(g){return this._closingBrackets.get(g)}getBracketInfo(g){return this.getOpeningBracketInfo(g)||this.getClosingBracketInfo(g)}}e.LanguageBracketsConfiguration=k;function I(u){return u.filter(([g,n])=>g!==""&&n!=="")}class L{constructor(g,n){this.config=g,this.bracketText=n}get languageId(){return this.config.languageId}}e.BracketKindBase=L;class b extends L{constructor(g,n,i){super(g,n);this.openedBrackets=i,this.isOpeningBracket=!0}}e.OpeningBracketKind=b;class v extends L{constructor(g,n,i){super(g,n);this.closedBrackets=i,this.isOpeningBracket=!1}closes(g){if(g.languageId===this.languageId&&g.config!==this.config)throw new C.BugIndicatingError("Brackets fr
|
||
|
`)}e.generateTokensCSSForColorMap=s}),define(re[46],ae([1,0,40]),function($,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.shouldSynchronizeModel=e.ApplyEditsResult=e.SearchData=e.ValidAnnotatedEditOperation=e.isITextSnapshot=e.FindMatch=e.TextModelResolvedOptions=e.InjectedTextCursorStops=e.MinimapPosition=e.OverviewRulerLane=void 0;var C;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=4]="Right",t[t.Full=7]="Full"})(C=e.OverviewRulerLane||(e.OverviewRulerLane={}));var k;(function(t){t[t.Inline=1]="Inline",t[t.Gutter=2]="Gutter"})(k=e.MinimapPosition||(e.MinimapPosition={}));var I;(function(t){t[t.Both=0]="Both",t[t.Right=1]="Right",t[t.Left=2]="Left",t[t.None=3]="None"})(I=e.InjectedTextCursorStops||(e.InjectedTextCursorStops={}));class L{constructor(s){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,s.tabSize|0),this.indentSize=s.tabSize|0,this.insertSpaces=Boolean(s.insertSpaces),this.defaultEOL=s.defaultEOL|0,this.trimAutoWhitespace=Boolean(s.trimAutoWhitespace),this.bracketPairColorizationOptions=s.bracketPairColorizationOptions}equals(s){return this.tabSize===s.tabSize&&this.indentSize===s.indentSize&&this.insertSpaces===s.insertSpaces&&this.defaultEOL===s.defaultEOL&&this.trimAutoWhitespace===s.trimAutoWhitespace&&(0,w.equals)(this.bracketPairColorizationOptions,s.bracketPairColorizationOptions)}createChangeEvent(s){return{tabSize:this.tabSize!==s.tabSize,indentSize:this.indentSize!==s.indentSize,insertSpaces:this.insertSpaces!==s.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==s.trimAutoWhitespace}}}e.TextModelResolvedOptions=L;class b{constructor(s,d){this._findMatchBrand=void 0,this.range=s,this.matches=d}}e.FindMatch=b;function v(t){return t&&typeof t.read=="function"}e.isITextSnapshot=v;class u{constructor(s,d,l,a,r,o){this.identifier=s,this.range=d,this.text=l,this.forceMoveMarkers=a,this.isAutoWhitespaceEdit=r,this._isTracked=o}}e.ValidAnnotatedEditOperation=u;class g{constructor(s,d,l){this.regex=s,this.wordSeparators=d,this.simpleSearch=l}}e.SearchData=g;class n{constructor(s,d,l){this.reverseEdits=s,this.changes=d,this.trimAutoWhitespaceLineNumbers=l}}e.ApplyEditsResult=n;function i(t){return!t.isTooLargeForSyncing()&&!t.isForSimpleWidget}e.shouldSynchronizeModel=i}),define(re[87],ae([1,0,8,3]),function($,e,w,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.lengthOfString=e.lengthsToRange=e.positionToLength=e.lengthGreaterThanEqual=e.lengthLessThanEqual=e.lengthLessThan=e.lengthDiffNonNegative=e.lengthAdd=e.lengthGetColumnCountIfZeroLineCount=e.lengthGetLineCount=e.lengthToObj=e.toLength=e.lengthIsZero=e.lengthZero=e.lengthDiff=e.LengthObj=void 0;class k{constructor(f,p){this.lineCount=f,this.columnCount=p}toString(){return`${this.lineCount},${this.columnCount}`}}e.LengthObj=k,k.zero=new k(0,0);function I(c,f,p,_){return c!==p?v(p-c,_):v(0,_-f)}e.lengthDiff=I,e.lengthZero=0;function L(c){return c===0}e.lengthIsZero=L;const b=Math.pow(2,26);function v(c,f){return c*b+f}e.toLength=v;function u(c){const f=c,p=Math.floor(f/b),_=f-p*b;return new k(p,_)}e.lengthToObj=u;function g(c){return Math.floor(c/b)}e.lengthGetLineCount=g;function n(c){return c}e.lengthGetColumnCountIfZeroLineCount=n;function i(c,f){return f<b?c+f:c-c%b+f}e.lengthAdd=i;function t(c,f){const p=c,_=f;if(_-p<=0)return e.lengthZero;const h=Math.floor(p/b),S=Math.floor(_/b),y=_-S*b;if(h===S){const E=p-h*b;return v(0,y-E)}else return v(S-h,y)}e.lengthDiffNonNegative=t;function s(c,f){return c<f}e.lengthLessThan=s;function d(c,f){return c<=f}e.lengthLessThanEqual=d;function l(c,f){return c>=f}e.lengthGreaterThanEqual=l;function a(c){return v(c.lineNumber-1,c.column-1)}e.positionToLength=a;function r(c,f){const p=c,_=Math.floor(p/b),m=p-_*b,h=f,S=Math.floor(h/b),y=h-S*b;return new C.Range(_+1,m+1,S+1,y+1)}e.lengthsToRange=r;function o(c){const f=(0,w.splitLines)(c);return v(f.length-1,f[f.length-1].length)}e.lengthOfString=o}),define(re[235],ae([1,0,87]),function($,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BeforeEditPositionMapper=e
|
||
|
`,"gi"):null,l=[];let a,r=0,o=0,c=0,f=0;const p=new Array;for(let h=0;h<60;h++)p.push(new b((0,I.toLength)(0,h),0,-1,L.SmallImmutableSet.getEmpty(),new k.TextAstNode((0,I.toLength)(0,h))));const _=new Array;for(let h=0;h<60;h++)_.push(new b((0,I.toLength)(1,h),0,-1,L.SmallImmutableSet.getEmpty(),new k.TextAstNode((0,I.toLength)(1,h))));if(d)for(d.lastIndex=0;(a=d.exec(i))!==null;){const h=a.index,S=a[0];if(S===`
|
||
|
`)r++,o=h+1;else{if(c!==h){let y;if(f===r){const E=h-c;if(E<p.length)y=p[E];else{const N=(0,I.toLength)(0,E);y=new b(N,0,-1,L.SmallImmutableSet.getEmpty(),new k.TextAstNode(N))}}else{const E=r-f,N=h-o;if(E===1&&N<_.length)y=_[N];else{const T=(0,I.toLength)(E,N);y=new b(T,0,-1,L.SmallImmutableSet.getEmpty(),new k.TextAstNode(T))}}l.push(y)}l.push(t.getToken(S)),c=h+S.length,f=r}}const m=i.length;if(c!==m){const h=f===r?(0,I.toLength)(0,m-c):(0,I.toLength)(r-f,m-o);l.push(new b(h,0,-1,L.SmallImmutableSet.getEmpty(),new k.TextAstNode(h)))}this.length=(0,I.toLength)(r,m-o),this.tokens=l}get offset(){return this._offset}read(){return this.tokens[this.idx++]||null}peek(){return this.tokens[this.idx]||null}skip(i){throw new w.NotSupportedError}}e.FastTokenizer=g}),define(re[237],ae([1,0,8,157,87,111,183]),function($,e,w,C,k,I,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LanguageAgnosticBracketTokens=e.BracketTokens=void 0;class b{constructor(n){this.map=n,this.hasRegExp=!1,this._regExpGlobal=null}static createFromLanguage(n,i){function t(d){return i.getKey(`${d.languageId}:::${d.bracketText}`)}const s=new Map;for(const d of n.bracketsNew.openingBrackets){const l=(0,k.toLength)(0,d.bracketText.length),a=t(d),r=I.SmallImmutableSet.getEmpty().add(a,I.identityKeyProvider);s.set(d.bracketText,new L.Token(l,1,a,r,C.BracketAstNode.create(l,d,r)))}for(const d of n.bracketsNew.closingBrackets){const l=(0,k.toLength)(0,d.bracketText.length);let a=I.SmallImmutableSet.getEmpty();const r=d.getClosedBrackets();for(const o of r)a=a.add(t(o),I.identityKeyProvider);s.set(d.bracketText,new L.Token(l,2,t(r[0]),a,C.BracketAstNode.create(l,d,a)))}return new b(s)}getRegExpStr(){if(this.isEmpty)return null;{const n=[...this.map.keys()];return n.sort(),n.reverse(),n.map(i=>v(i)).join("|")}}get regExpGlobal(){if(!this.hasRegExp){const n=this.getRegExpStr();this._regExpGlobal=n?new RegExp(n,"gi"):null,this.hasRegExp=!0}return this._regExpGlobal}getToken(n){return this.map.get(n.toLowerCase())}findClosingTokenText(n){for(const[i,t]of this.map)if(t.kind===2&&t.bracketIds.intersects(n))return i}get isEmpty(){return this.map.size===0}}e.BracketTokens=b;function v(g){let n=(0,w.escapeRegExpCharacters)(g);return/^[\w ]+/.test(g)&&(n=`\\b${n}`),/[\w ]+$/.test(g)&&(n=`${n}\\b`),n}class u{constructor(n,i){this.denseKeyProvider=n,this.getLanguageConfiguration=i,this.languageIdToBracketTokens=new Map}didLanguageChange(n){return this.languageIdToBracketTokens.has(n)}getSingleLanguageBracketTokens(n){let i=this.languageIdToBracketTokens.get(n);return i||(i=b.createFromLanguage(this.getLanguageConfiguration(n),this.denseKeyProvider),this.languageIdToBracketTokens.set(n,i)),i}}e.LanguageAgnosticBracketTokens=u}),define(re[423],ae([1,0,237,87,236,111,183]),function($,e,w,C,k,I,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fixBracketsInLine=void 0;function b(u,g){const n=new I.DenseKeyProvider,i=new w.LanguageAgnosticBracketTokens(n,r=>g.getLanguageConfiguration(r)),t=new L.TextBufferTokenizer(new v([u]),i),s=(0,k.parseDocument)(t,[],void 0,!0);let d="";const l=u.getLineContent();function a(r,o){if(r.kind===2)a(r.openingBracket,o),o=(0,C.lengthAdd)(o,r.openingBracket.length),r.child&&(a(r.child,o),o=(0,C.lengthAdd)(o,r.child.length)),r.closingBracket?(a(r.closingBracket,o),o=(0,C.lengthAdd)(o,r.closingBracket.length)):d+=i.getSingleLanguageBracketTokens(r.openingBracket.languageId).findClosingTokenText(r.openingBracket.bracketIds);else if(r.kind!==3){if(r.kind===0||r.kind===1)d+=l.substring((0,C.lengthGetColumnCountIfZeroLineCount)(o),(0,C.lengthGetColumnCountIfZeroLineCount)((0,C.lengthAdd)(o,r.length)));else if(r.kind===4)for(const c of r.children)a(c,o),o=(0,C.lengthAdd)(o,c.length)}}return a(s,C.lengthZero),d}e.fixBracketsInLine=b;class v{constructor(g){this.lines=g,this.tokenization={getLineTokens:n=>this.lines[n-1]}}getLineCount(){return this.lines.length}getLineLength(g){return this.lines[g-1].getLineContent().length}}}),define(re[424],ae([1,0]),function($,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0})
|
||
|
`)>=0;let o=null;try{o=w.createRegExp(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:r,global:!0,unicode:!0})}catch{return null}if(!o)return null;let c=!this.isRegex&&!r;return c&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(c=this.matchCase),new L.SearchData(o,this.wordSeparators?(0,C.getMapForWordSeparators)(this.wordSeparators):null,c?this.searchString:null)}}e.SearchParams=v;function u(a){if(!a||a.length===0)return!1;for(let r=0,o=a.length;r<o;r++){const c=a.charCodeAt(r);if(c===10)return!0;if(c===92){if(r++,r>=o)break;const f=a.charCodeAt(r);if(f===110||f===114||f===87)return!0}}return!1}e.isMultilineRegexSource=u;function g(a,r,o){if(!o)return new L.FindMatch(a,null);const c=[];for(let f=0,p=r.length;f<p;f++)c[f]=r[f];return new L.FindMatch(a,c)}e.createFindMatch=g;class n{constructor(r){const o=[];let c=0;for(let f=0,p=r.length;f<p;f++)r.charCodeAt(f)===10&&(o[c++]=f);this._lineFeedsOffsets=o}findLineFeedCountBeforeOffset(r){const o=this._lineFeedsOffsets;let c=0,f=o.length-1;if(f===-1||r<=o[0])return 0;for(;c<f;){const p=c+((f-c)/2>>0);o[p]>=r?f=p-1:o[p+1]>=r?(c=p,f=p):c=p+1}return c+1}}class i{static findMatches(r,o,c,f,p){const _=o.parseSearchRequest();return _?_.regex.multiline?this._doFindMatchesMultiline(r,c,new l(_.wordSeparators,_.regex),f,p):this._doFindMatchesLineByLine(r,c,_,f,p):[]}static _getMultilineMatchRange(r,o,c,f,p,_){let m,h=0;f?(h=f.findLineFeedCountBeforeOffset(p),m=o+p+h):m=o+p;let S;if(f){const T=f.findLineFeedCountBeforeOffset(p+_.length)-h;S=m+_.length+T}else S=m+_.length;const y=r.getPositionAt(m),E=r.getPositionAt(S);return new I.Range(y.lineNumber,y.column,E.lineNumber,E.column)}static _doFindMatchesMultiline(r,o,c,f,p){const _=r.getOffsetAt(o.getStartPosition()),m=r.getValueInRange(o,1),h=r.getEOL()===`\r
|
||
|
`?new n(m):null,S=[];let y=0,E;for(c.reset(0);E=c.next(m);)if(S[y++]=g(this._getMultilineMatchRange(r,_,m,h,E.index,E[0]),E,f),y>=p)return S;return S}static _doFindMatchesLineByLine(r,o,c,f,p){const _=[];let m=0;if(o.startLineNumber===o.endLineNumber){const S=r.getLineContent(o.startLineNumber).substring(o.startColumn-1,o.endColumn-1);return m=this._findMatchesInLine(c,S,o.startLineNumber,o.startColumn-1,m,_,f,p),_}const h=r.getLineContent(o.startLineNumber).substring(o.startColumn-1);m=this._findMatchesInLine(c,h,o.startLineNumber,o.startColumn-1,m,_,f,p);for(let S=o.startLineNumber+1;S<o.endLineNumber&&m<p;S++)m=this._findMatchesInLine(c,r.getLineContent(S),S,0,m,_,f,p);if(m<p){const S=r.getLineContent(o.endLineNumber).substring(0,o.endColumn-1);m=this._findMatchesInLine(c,S,o.endLineNumber,0,m,_,f,p)}return _}static _findMatchesInLine(r,o,c,f,p,_,m,h){const S=r.wordSeparators;if(!m&&r.simpleSearch){const N=r.simpleSearch,T=N.length,R=o.length;let F=-T;for(;(F=o.indexOf(N,F+T))!==-1;)if((!S||d(S,o,R,F,T))&&(_[p++]=new L.FindMatch(new I.Range(c,F+1+f,c,F+1+T+f),null),p>=h))return p;return p}const y=new l(r.wordSeparators,r.regex);let E;y.reset(0);do if(E=y.next(o),E&&(_[p++]=g(new I.Range(c,E.index+1+f,c,E.index+1+E[0].length+f),E,m),p>=h))return p;while(E);return p}static findNextMatch(r,o,c,f){const p=o.parseSearchRequest();if(!p)return null;const _=new l(p.wordSeparators,p.regex);return p.regex.multiline?this._doFindNextMatchMultiline(r,c,_,f):this._doFindNextMatchLineByLine(r,c,_,f)}static _doFindNextMatchMultiline(r,o,c,f){const p=new k.Position(o.lineNumber,1),_=r.getOffsetAt(p),m=r.getLineCount(),h=r.getValueInRange(new I.Range(p.lineNumber,p.column,m,r.getLineMaxColumn(m)),1),S=r.getEOL()===`\r
|
||
|
`?new n(h):null;c.reset(o.column-1);const y=c.next(h);return y?g(this._getMultilineMatchRange(r,_,h,S,y.index,y[0]),y,f):o.lineNumber!==1||o.column!==1?this._doFindNextMatchMultiline(r,new k.Position(1,1),c,f):null}static _doFindNextMatchLineByLine(r,o,c,f){const p=r.getLineCount(),_=o.lineNumber,m=r.getLineContent(_),h=this._findFirstMatchInLine(c,m,_,o.column,f);if(h)return h;for(let S=1;S<=p;S++){const y=(_+S-1)%p,E=r.getLineContent(y+1),N=this._findFirstMatchInLine(c,E,y+1,1,f);if(N)return N}return null}static _findFirstMatchInLine(r,o,c,f,p){r.reset(f-1);const _=r.next(o);return _?g(new I.Range(c,_.index+1,c,_.index+1+_[0].length),_,p):null}static findPreviousMatch(r,o,c,f){const p=o.parseSearchRequest();if(!p)return null;const _=new l(p.wordSeparators,p.regex);return p.regex.multiline?this._doFindPreviousMatchMultiline(r,c,_,f):this._doFindPreviousMatchLineByLine(r,c,_,f)}static _doFindPreviousMatchMultiline(r,o,c,f){const p=this._doFindMatchesMultiline(r,new I.Range(1,1,o.lineNumber,o.column),c,f,10*b);if(p.length>0)return p[p.length-1];const _=r.getLineCount();return o.lineNumber!==_||o.column!==r.getLineMaxColumn(_)?this._doFindPreviousMatchMultiline(r,new k.Position(_,r.getLineMaxColumn(_)),c,f):null}static _doFindPreviousMatchLineByLine(r,o,c,f){const p=r.getLineCount(),_=o.lineNumber,m=r.getLineContent(_).substring(0,o.column-1),h=this._findLastMatchInLine(c,m,_,f);if(h)return h;for(let S=1;S<=p;S++){const y=(p+_-S-1)%p,E=r.getLineContent(y+1),N=this._findLastMatchInLine(c,E,y+1,f);if(N)return N}return null}static _findLastMatchInLine(r,o,c,f){let p=null,_;for(r.reset(0);_=r.next(o);)p=g(new I.Range(c,_.index+1,c,_.index+1+_[0].length),_,f);return p}}e.TextModelSearch=i;function t(a,r,o,c,f){if(c===0)return!0;const p=r.charCodeAt(c-1);if(a.get(p)!==0||p===13||p===10)return!0;if(f>0){const _=r.charCodeAt(c);if(a.get(_)!==0)return!0}return!1}function s(a,r,o,c,f){if(c+f===o)return!0;const p=r.charCodeAt(c+f);if(a.get(p)!==0||p===13||p===10)return!0;if(f>0){const _=r.charCodeAt(c+f-1);if(a.get(_)!==0)return!0}return!1}function d(a,r,o,c,f){return t(a,r,o,c,f)&&s(a,r,o,c,f)}e.isValidMatch=d;class l{constructor(r,o){this._wordSeparators=r,this._searchRegex=o,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(r){this._searchRegex.lastIndex=r,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(r){const o=r.length;let c;do{if(this._prevMatchStartIndex+this._prevMatchLength===o||(c=this._searchRegex.exec(r),!c))return null;const f=c.index,p=c[0].length;if(f===this._prevMatchStartIndex&&p===this._prevMatchLength){if(p===0){w.getNextCodePoint(r,o,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=f,this._prevMatchLength=p,!this._wordSeparators||d(this._wordSeparators,r,o,f,p))return c}while(c);return null}}e.Searcher=l}),define(re[240],ae([1,0,11,3,46,426,158]),function($,e,w,C,k,I,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PieceTreeBase=e.StringBuffer=e.Piece=e.createLineStarts=e.createLineStartsFast=e.LineStarts=e.createUintArray=e.AverageBufferSize=void 0,e.AverageBufferSize=65535;function b(l){let a;return l[l.length-1]<65536?a=new Uint16Array(l.length):a=new Uint32Array(l.length),a.set(l,0),a}e.createUintArray=b;class v{constructor(a,r,o,c,f){this.lineStarts=a,this.cr=r,this.lf=o,this.crlf=c,this.isBasicASCII=f}}e.LineStarts=v;function u(l,a=!0){const r=[0];let o=1;for(let c=0,f=l.length;c<f;c++){const p=l.charCodeAt(c);p===13?c+1<f&&l.charCodeAt(c+1)===10?(r[o++]=c+2,c++):r[o++]=c+1:p===10&&(r[o++]=c+1)}return a?b(r):r}e.createLineStartsFast=u;function g(l,a){l.length=0,l[0]=0;let r=1,o=0,c=0,f=0,p=!0;for(let m=0,h=a.length;m<h;m++){const S=a.charCodeAt(m);S===13?m+1<h&&a.charCodeAt(m+1)===10?(f++,l[r++]=m+2,m++):(o++,l[r++]=m+1):S===10?(c++,l[r++]=m+1):p&&S!==9&&(S<32||S>126)&&(p=!1)}const _=new v(b(l),o,c,f,p);return l.length=0,_}e.createLineStarts=g;class n{constructor(a,r,o,c,f){this.bufferIndex=a,this.start=r,this.end=o,this.lineFeedCnt=c,this.length=f}}e.Piece=n;class i{const
|
||
|
`}if(this.shouldCheckCRLF()&&this.startWithLF(r))if(this.nodeCharCodeAt(c,f-1)===13){const R=this.positionInBuffer(c,f-1);this.deleteNodeTail(c,R),r="\r"+r,c.piece.length===0&&S.push(c)}else this.deleteNodeTail(c,h);else this.deleteNodeTail(c,h);const E=this.createNewPieces(r);y.length>0&&this.rbInsertRight(c,y);let N=c;for(let T=0;T<E.length;T++)N=this.rbInsertRight(N,E[T]);this.deleteNodes(S)}else this.insertContentToNodeRight(r,c)}else{const c=this.createNewPieces(r);let f=this.rbInsertLeft(null,c[0]);for(let p=1;p<c.length;p++)f=this.rbInsertRight(f,c[p])}this.computeBufferMetadata()}delete(a,r){if(this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",r<=0||this.root===I.SENTINEL)return;const o=this.nodeAt(a),c=this.nodeAt(a+r),f=o.node,p=c.node;if(f===p){const E=this.positionInBuffer(f,o.remainder),N=this.positionInBuffer(f,c.remainder);if(o.nodeStartOffset===a){if(r===f.piece.length){const T=f.next();(0,I.rbDelete)(this,f),this.validateCRLFWithPrevNode(T),this.computeBufferMetadata();return}this.deleteNodeHead(f,N),this._searchCache.validate(a),this.validateCRLFWithPrevNode(f),this.computeBufferMetadata();return}if(o.nodeStartOffset+f.piece.length===a+r){this.deleteNodeTail(f,E),this.validateCRLFWithNextNode(f),this.computeBufferMetadata();return}this.shrinkNode(f,E,N),this.computeBufferMetadata();return}const _=[],m=this.positionInBuffer(f,o.remainder);this.deleteNodeTail(f,m),this._searchCache.validate(a),f.piece.length===0&&_.push(f);const h=this.positionInBuffer(p,c.remainder);this.deleteNodeHead(p,h),p.piece.length===0&&_.push(p);const S=f.next();for(let E=S;E!==I.SENTINEL&&E!==p;E=E.next())_.push(E);const y=f.piece.length===0?f.prev():f;this.deleteNodes(_),this.validateCRLFWithNextNode(y),this.computeBufferMetadata()}insertContentToNodeLeft(a,r){const o=[];if(this.shouldCheckCRLF()&&this.endWithCR(a)&&this.startWithLF(r)){const p=r.piece,_={line:p.start.line+1,column:0},m=new n(p.bufferIndex,_,p.end,this.getLineFeedCnt(p.bufferIndex,_,p.end),p.length-1);r.piece=m,a+=`
|
||
|
`,(0,I.updateTreeMetadata)(this,r,-1,-1),r.piece.length===0&&o.push(r)}const c=this.createNewPieces(a);let f=this.rbInsertLeft(r,c[c.length-1]);for(let p=c.length-2;p>=0;p--)f=this.rbInsertLeft(f,c[p]);this.validateCRLFWithPrevNode(f),this.deleteNodes(o)}insertContentToNodeRight(a,r){this.adjustCarriageReturnFromNext(a,r)&&(a+=`
|
||
|
`);const o=this.createNewPieces(a),c=this.rbInsertRight(r,o[0]);let f=c;for(let p=1;p<o.length;p++)f=this.rbInsertRight(f,o[p]);this.validateCRLFWithPrevNode(c)}positionInBuffer(a,r,o){const c=a.piece,f=a.piece.bufferIndex,p=this._buffers[f].lineStarts,m=p[c.start.line]+c.start.column+r;let h=c.start.line,S=c.end.line,y=0,E=0,N=0;for(;h<=S&&(y=h+(S-h)/2|0,N=p[y],y!==S);)if(E=p[y+1],m<N)S=y-1;else if(m>=E)h=y+1;else break;return o?(o.line=y,o.column=m-N,null):{line:y,column:m-N}}getLineFeedCnt(a,r,o){if(o.column===0)return o.line-r.line;const c=this._buffers[a].lineStarts;if(o.line===c.length-1)return o.line-r.line;const f=c[o.line+1],p=c[o.line]+o.column;if(f>p+1)return o.line-r.line;const _=p-1;return this._buffers[a].buffer.charCodeAt(_)===13?o.line-r.line+1:o.line-r.line}offsetInBuffer(a,r){return this._buffers[a].lineStarts[r.line]+r.column}deleteNodes(a){for(let r=0;r<a.length;r++)(0,I.rbDelete)(this,a[r])}createNewPieces(a){if(a.length>e.AverageBufferSize){const S=[];for(;a.length>e.AverageBufferSize;){const E=a.charCodeAt(e.AverageBufferSize-1);let N;E===13||E>=55296&&E<=56319?(N=a.substring(0,e.AverageBufferSize-1),a=a.substring(e.AverageBufferSize-1)):(N=a.substring(0,e.AverageBufferSize),a=a.substring(e.AverageBufferSize));const T=u(N);S.push(new n(this._buffers.length,{line:0,column:0},{line:T.length-1,column:N.length-T[T.length-1]},T.length-1,N.length)),this._buffers.push(new i(N,T))}const y=u(a);return S.push(new n(this._buffers.length,{line:0,column:0},{line:y.length-1,column:a.length-y[y.length-1]},y.length-1,a.length)),this._buffers.push(new i(a,y)),S}let r=this._buffers[0].buffer.length;const o=u(a,!1);let c=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===r&&r!==0&&this.startWithLF(a)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},c=this._lastChangeBufferPos;for(let S=0;S<o.length;S++)o[S]+=r+1;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(o.slice(1)),this._buffers[0].buffer+="_"+a,r+=1}else{if(r!==0)for(let S=0;S<o.length;S++)o[S]+=r;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(o.slice(1)),this._buffers[0].buffer+=a}const f=this._buffers[0].buffer.length,p=this._buffers[0].lineStarts.length-1,_=f-this._buffers[0].lineStarts[p],m={line:p,column:_},h=new n(0,c,m,this.getLineFeedCnt(0,c,m),f-r);return this._lastChangeBufferPos=m,[h]}getLineRawContent(a,r=0){let o=this.root,c="";const f=this._searchCache.get2(a);if(f){o=f.node;const p=this.getAccumulatedValue(o,a-f.nodeStartLineNumber-1),_=this._buffers[o.piece.bufferIndex].buffer,m=this.offsetInBuffer(o.piece.bufferIndex,o.piece.start);if(f.nodeStartLineNumber+o.piece.lineFeedCnt===a)c=_.substring(m+p,m+o.piece.length);else{const h=this.getAccumulatedValue(o,a-f.nodeStartLineNumber);return _.substring(m+p,m+h-r)}}else{let p=0;const _=a;for(;o!==I.SENTINEL;)if(o.left!==I.SENTINEL&&o.lf_left>=a-1)o=o.left;else if(o.lf_left+o.piece.lineFeedCnt>a-1){const m=this.getAccumulatedValue(o,a-o.lf_left-2),h=this.getAccumulatedValue(o,a-o.lf_left-1),S=this._buffers[o.piece.bufferIndex].buffer,y=this.offsetInBuffer(o.piece.bufferIndex,o.piece.start);return p+=o.size_left,this._searchCache.set({node:o,nodeStartOffset:p,nodeStartLineNumber:_-(a-1-o.lf_left)}),S.substring(y+m,y+h-r)}else if(o.lf_left+o.piece.lineFeedCnt===a-1){const m=this.getAccumulatedValue(o,a-o.lf_left-2),h=this._buffers[o.piece.bufferIndex].buffer,S=this.offsetInBuffer(o.piece.bufferIndex,o.piece.start);c=h.substring(S+m,S+o.piece.length);break}else a-=o.lf_left+o.piece.lineFeedCnt,p+=o.size_left+o.piece.length,o=o.right}for(o=o.next();o!==I.SENTINEL;){const p=this._buffers[o.piece.bufferIndex].buffer;if(o.piece.lineFeedCnt>0){const _=this.getAccumulatedValue(o,0),m=this.offsetInBuffer(o.piece.bufferIndex,o.piece.start);return c+=p.substring(m,m+_-r),c}else{const _=this.offsetInBuffer(o.piece.bufferIndex,o.piece.start);c+=p.substr(_,o.piece.length)}o=o.next()}return c}computeBufferMetadata(){let a=this.root,r=1,o=0;fo
|
||
|
`);const o=this.shouldCheckCRLF()&&this.startWithLF(r)&&this.endWithCR(a),c=this._buffers[0].buffer.length;this._buffers[0].buffer+=r;const f=u(r,!1);for(let N=0;N<f.length;N++)f[N]+=c;if(o){const N=this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-2];this._buffers[0].lineStarts.pop(),this._lastChangeBufferPos={line:this._lastChangeBufferPos.line-1,column:c-N}}this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(f.slice(1));const p=this._buffers[0].lineStarts.length-1,_=this._buffers[0].buffer.length-this._buffers[0].lineStarts[p],m={line:p,column:_},h=a.piece.length+r.length,S=a.piece.lineFeedCnt,y=this.getLineFeedCnt(0,a.piece.start,m),E=y-S;a.piece=new n(a.piece.bufferIndex,a.piece.start,m,y,h),this._lastChangeBufferPos=m,(0,I.updateTreeMetadata)(this,a,r.length,E)}nodeAt(a){let r=this.root;const o=this._searchCache.get(a);if(o)return{node:o.node,nodeStartOffset:o.nodeStartOffset,remainder:a-o.nodeStartOffset};let c=0;for(;r!==I.SENTINEL;)if(r.size_left>a)r=r.left;else if(r.size_left+r.piece.length>=a){c+=r.size_left;const f={node:r,remainder:a-r.size_left,nodeStartOffset:c};return this._searchCache.set(f),f}else a-=r.size_left+r.piece.length,c+=r.size_left+r.piece.length,r=r.right;return null}nodeAt2(a,r){let o=this.root,c=0;for(;o!==I.SENTINEL;)if(o.left!==I.SENTINEL&&o.lf_left>=a-1)o=o.left;else if(o.lf_left+o.piece.lineFeedCnt>a-1){const f=this.getAccumulatedValue(o,a-o.lf_left-2),p=this.getAccumulatedValue(o,a-o.lf_left-1);return c+=o.size_left,{node:o,remainder:Math.min(f+r-1,p),nodeStartOffset:c}}else if(o.lf_left+o.piece.lineFeedCnt===a-1){const f=this.getAccumulatedValue(o,a-o.lf_left-2);if(f+r-1<=o.piece.length)return{node:o,remainder:f+r-1,nodeStartOffset:c};r-=o.piece.length-f;break}else a-=o.lf_left+o.piece.lineFeedCnt,c+=o.size_left+o.piece.length,o=o.right;for(o=o.next();o!==I.SENTINEL;){if(o.piece.lineFeedCnt>0){const f=this.getAccumulatedValue(o,0),p=this.offsetOfNode(o);return{node:o,remainder:Math.min(r-1,f),nodeStartOffset:p}}else if(o.piece.length>=r-1){const f=this.offsetOfNode(o);return{node:o,remainder:r-1,nodeStartOffset:f}}else r-=o.piece.length;o=o.next()}return null}nodeCharCodeAt(a,r){if(a.piece.lineFeedCnt<1)return-1;const o=this._buffers[a.piece.bufferIndex],c=this.offsetInBuffer(a.piece.bufferIndex,a.piece.start)+r;return o.buffer.charCodeAt(c)}offsetOfNode(a){if(!a)return 0;let r=a.size_left;for(;a!==this.root;)a.parent.right===a&&(r+=a.parent.size_left+a.parent.piece.length),a=a.parent;return r}shouldCheckCRLF(){return!(this._EOLNormalized&&this._EOL===`
|
||
|
`)}startWithLF(a){if(typeof a=="string")return a.charCodeAt(0)===10;if(a===I.SENTINEL||a.piece.lineFeedCnt===0)return!1;const r=a.piece,o=this._buffers[r.bufferIndex].lineStarts,c=r.start.line,f=o[c]+r.start.column;return c===o.length-1||o[c+1]>f+1?!1:this._buffers[r.bufferIndex].buffer.charCodeAt(f)===10}endWithCR(a){return typeof a=="string"?a.charCodeAt(a.length-1)===13:a===I.SENTINEL||a.piece.lineFeedCnt===0?!1:this.nodeCharCodeAt(a,a.piece.length-1)===13}validateCRLFWithPrevNode(a){if(this.shouldCheckCRLF()&&this.startWithLF(a)){const r=a.prev();this.endWithCR(r)&&this.fixCRLF(r,a)}}validateCRLFWithNextNode(a){if(this.shouldCheckCRLF()&&this.endWithCR(a)){const r=a.next();this.startWithLF(r)&&this.fixCRLF(a,r)}}fixCRLF(a,r){const o=[],c=this._buffers[a.piece.bufferIndex].lineStarts;let f;a.piece.end.column===0?f={line:a.piece.end.line-1,column:c[a.piece.end.line]-c[a.piece.end.line-1]-1}:f={line:a.piece.end.line,column:a.piece.end.column-1};const p=a.piece.length-1,_=a.piece.lineFeedCnt-1;a.piece=new n(a.piece.bufferIndex,a.piece.start,f,_,p),(0,I.updateTreeMetadata)(this,a,-1,-1),a.piece.length===0&&o.push(a);const m={line:r.piece.start.line+1,column:0},h=r.piece.length-1,S=this.getLineFeedCnt(r.piece.bufferIndex,m,r.piece.end);r.piece=new n(r.piece.bufferIndex,m,r.piece.end,S,h),(0,I.updateTreeMetadata)(this,r,-1,-1),r.piece.length===0&&o.push(r);const y=this.createNewPieces(`\r
|
||
|
`);this.rbInsertRight(a,y[0]);for(let E=0;E<o.length;E++)(0,I.rbDelete)(this,o[E])}adjustCarriageReturnFromNext(a,r){if(this.shouldCheckCRLF()&&this.endWithCR(a)){const o=r.next();if(this.startWithLF(o)){if(a+=`
|
||
|
`,o.piece.length===1)(0,I.rbDelete)(this,o);else{const c=o.piece,f={line:c.start.line+1,column:0},p=c.length-1,_=this.getLineFeedCnt(c.bufferIndex,f,c.end);o.piece=new n(c.bufferIndex,f,c.end,_,p),(0,I.updateTreeMetadata)(this,o,-1,-1)}return!0}}return!1}iterate(a,r){if(a===I.SENTINEL)return r(I.SENTINEL);const o=this.iterate(a.left,r);return o&&r(a)&&this.iterate(a.right,r)}getNodeContent(a){if(a===I.SENTINEL)return"";const r=this._buffers[a.piece.bufferIndex],o=a.piece,c=this.offsetInBuffer(o.bufferIndex,o.start),f=this.offsetInBuffer(o.bufferIndex,o.end);return r.buffer.substring(c,f)}getPieceContent(a){const r=this._buffers[a.bufferIndex],o=this.offsetInBuffer(a.bufferIndex,a.start),c=this.offsetInBuffer(a.bufferIndex,a.end);return r.buffer.substring(o,c)}rbInsertRight(a,r){const o=new I.TreeNode(r,1);if(o.left=I.SENTINEL,o.right=I.SENTINEL,o.parent=I.SENTINEL,o.size_left=0,o.lf_left=0,this.root===I.SENTINEL)this.root=o,o.color=0;else if(a.right===I.SENTINEL)a.right=o,o.parent=a;else{const f=(0,I.leftest)(a.right);f.left=o,o.parent=f}return(0,I.fixInsert)(this,o),o}rbInsertLeft(a,r){const o=new I.TreeNode(r,1);if(o.left=I.SENTINEL,o.right=I.SENTINEL,o.parent=I.SENTINEL,o.size_left=0,o.lf_left=0,this.root===I.SENTINEL)this.root=o,o.color=0;else if(a.left===I.SENTINEL)a.left=o,o.parent=a;else{const c=(0,I.righttest)(a.left);c.right=o,o.parent=c}return(0,I.fixInsert)(this,o),o}}e.PieceTreeBase=d}),define(re[184],ae([1,0]),function($,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.computeIndentLevel=void 0;function w(C,k){let I=0,L=0;const b=C.length;for(;L<b;){const v=C.charCodeAt(L);if(v===32)I++;else if(v===9)I=I-I%k+k;else break;L++}return L===b?-1:I}e.computeIndentLevel=w}),define(re[241],ae([1,0,19,11,46]),function($,e,w,C,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OutputPosition=e.InjectedText=e.ModelLineProjectionData=void 0;class I{constructor(n,i,t,s,d){this.injectionOffsets=n,this.injectionOptions=i,this.breakOffsets=t,this.breakOffsetsVisibleColumn=s,this.wrappedTextIndentLength=d}getOutputLineCount(){return this.breakOffsets.length}getMinOutputOffset(n){return n>0?this.wrappedTextIndentLength:0}getLineLength(n){const i=n>0?this.breakOffsets[n-1]:0;let s=this.breakOffsets[n]-i;return n>0&&(s+=this.wrappedTextIndentLength),s}getMaxOutputOffset(n){return this.getLineLength(n)}translateToInputOffset(n,i){n>0&&(i=Math.max(0,i-this.wrappedTextIndentLength));let s=n===0?i:this.breakOffsets[n-1]+i;if(this.injectionOffsets!==null)for(let d=0;d<this.injectionOffsets.length&&s>this.injectionOffsets[d];d++)s<this.injectionOffsets[d]+this.injectionOptions[d].content.length?s=this.injectionOffsets[d]:s-=this.injectionOptions[d].content.length;return s}translateToOutputPosition(n,i=2){let t=n;if(this.injectionOffsets!==null)for(let s=0;s<this.injectionOffsets.length&&!(n<this.injectionOffsets[s]||i!==1&&n===this.injectionOffsets[s]);s++)t+=this.injectionOptions[s].content.length;return this.offsetInInputWithInjectionsToOutputPosition(t,i)}offsetInInputWithInjectionsToOutputPosition(n,i=2){let t=0,s=this.breakOffsets.length-1,d=0,l=0;for(;t<=s;){d=t+(s-t)/2|0;const r=this.breakOffsets[d];if(l=d>0?this.breakOffsets[d-1]:0,i===0)if(n<=l)s=d-1;else if(n>r)t=d+1;else break;else if(n<l)s=d-1;else if(n>=r)t=d+1;else break}let a=n-l;return d>0&&(a+=this.wrappedTextIndentLength),new u(d,a)}normalizeOutputPosition(n,i,t){if(this.injectionOffsets!==null){const s=this.outputPositionToOffsetInInputWithInjections(n,i),d=this.normalizeOffsetInInputWithInjectionsAroundInjections(s,t);if(d!==s)return this.offsetInInputWithInjectionsToOutputPosition(d,t)}if(t===0){if(n>0&&i===this.getMinOutputOffset(n))return new u(n-1,this.getMaxOutputOffset(n-1))}else if(t===1){const s=this.getOutputLineCount()-1;if(n<s&&i===this.getMaxOutputOffset(n))return new u(n+1,this.getMinOutputOffset(n+1))}return new u(n,i)}outputPositionToOffsetInInputWithInjections(n,i){return n>0&&(i=Math.max(0,i-this.wrappedTextIndentLength)),(n>0?this.breakOffsets[n-1]:0)+i}normalizeOffsetInInputWithInjectionsAroundInjections(n,i){c
|
||
|
`||n===" "}}),define(re[159],ae([1,0]),function($,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WrappingIndent=e.TrackedRangeStickiness=e.TextEditorCursorStyle=e.TextEditorCursorBlinkingStyle=e.SymbolTag=e.SymbolKind=e.SignatureHelpTriggerKind=e.SelectionDirection=e.ScrollbarVisibility=e.ScrollType=e.RenderMinimap=e.RenderLineNumbersType=e.PositionAffinity=e.OverviewRulerLane=e.OverlayWidgetPositionPreference=e.MouseTargetType=e.MinimapPosition=e.MarkerTag=e.MarkerSeverity=e.KeyCode=e.InlineCompletionTriggerKind=e.InlayHintKind=e.InjectedTextCursorStops=e.IndentAction=e.EndOfLineSequence=e.EndOfLinePreference=e.EditorOption=e.EditorAutoIndentStrategy=e.DocumentHighlightKind=e.DefaultEndOfLine=e.CursorChangeReason=e.ContentWidgetPositionPreference=e.CompletionTriggerKind=e.CompletionItemTag=e.CompletionItemKind=e.CompletionItemInsertTextRule=e.CodeActionTriggerType=e.AccessibilitySupport=void 0;var w;(function(A){A[A.Unknown=0]="Unknown",A[A.Disabled=1]="Disabled",A[A.Enabled=2]="Enabled"})(w=e.AccessibilitySupport||(e.AccessibilitySupport={}));var C;(function(A){A[A.Invoke=1]="Invoke",A[A.Auto=2]="Auto"})(C=e.CodeActionTriggerType||(e.CodeActionTriggerType={}));var k;(function(A){A[A.KeepWhitespace=1]="KeepWhitespace",A[A.InsertAsSnippet=4]="InsertAsSnippet"})(k=e.CompletionItemInsertTextRule||(e.CompletionItemInsertTextRule={}));var I;(function(A){A[A.Method=0]="Method",A[A.Function=1]="Function",A[A.Constructor=2]="Constructor",A[A.Field=3]="Field",A[A.Variable=4]="Variable",A[A.Class=5]="Class",A[A.Struct=6]="Struct",A[A.Interface=7]="Interface",A[A.Module=8]="Module",A[A.Property=9]="Property",A[A.Event=10]="Event",A[A.Operator=11]="Operator",A[A.Unit=12]="Unit",A[A.Value=13]="Value",A[A.Constant=14]="Constant",A[A.Enum=15]="Enum",A[A.EnumMember=16]="EnumMember",A[A.Keyword=17]="Keyword",A[A.Text=18]="Text",A[A.Color=19]="Color",A[A.File=20]="File",A[A.Reference=21]="Reference",A[A.Customcolor=22]="Customcolor",A[A.Folder=23]="Folder",A[A.TypeParameter=24]="TypeParameter",A[A.User=25]="User",A[A.Issue=26]="Issue",A[A.Snippet=27]="Snippet"})(I=e.CompletionItemKind||(e.CompletionItemKind={}));var L;(function(A){A[A.Deprecated=1]="Deprecated"})(L=e.CompletionItemTag||(e.CompletionItemTag={}));var b;(function(A){A[A.Invoke=0]="Invoke",A[A.TriggerCharacter=1]="TriggerCharacter",A[A.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(b=e.CompletionTriggerKind||(e.CompletionTriggerKind={}));var v;(function(A){A[A.EXACT=0]="EXACT",A[A.ABOVE=1]="ABOVE",A[A.BELOW=2]="BELOW"})(v=e.ContentWidgetPositionPreference||(e.ContentWidgetPositionPreference={}));var u;(function(A){A[A.NotSet=0]="NotSet",A[A.ContentFlush=1]="ContentFlush",A[A.RecoverFromMarkers=2]="RecoverFromMarkers",A[A.Explicit=3]="Explicit",A[A.Paste=4]="Paste",A[A.Undo=5]="Undo",A[A.Redo=6]="Redo"})(u=e.CursorChangeReason||(e.CursorChangeReason={}));var g;(function(A){A[A.LF=1]="LF",A[A.CRLF=2]="CRLF"})(g=e.DefaultEndOfLine||(e.DefaultEndOfLine={}));var n;(function(A){A[A.Text=0]="Text",A[A.Read=1]="Read",A[A.Write=2]="Write"})(n=e.DocumentHighlightKind||(e.DocumentHighlightKind={}));var i;(function(A){A[A.None=0]="None",A[A.Keep=1]="Keep",A[A.Brackets=2]="Brackets",A[A.Advanced=3]="Advanced",A[A.Full=4]="Full"})(i=e.EditorAutoIndentStrategy||(e.EditorAutoIndentStrategy={}));var t;(function(A){A[A.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",A[A.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",A[A.accessibilitySupport=2]="accessibilitySupport",A[A.accessibilityPageSize=3]="accessibilityPageSize",A[A.ariaLabel=4]="ariaLabel",A[A.autoClosingBrackets=5]="autoClosingBrackets",A[A.autoClosingDelete=6]="autoClosingDelete",A[A.autoClosingOvertype=7]="autoClosingOvertype",A[A.autoClosingQuotes=8]="autoClosingQuotes",A[A.autoIndent=9]="autoIndent",A[A.automaticLayout=10]="automaticLayout",A[A.autoSurround=11]="autoSurround",A[A.bracketPairColorization=12]="bracketPairColorization",A[A.guides=13]="guides",A[A.codeLens=14]="codeLens",A[A.codeLensFontFamily=15]="codeLensFontFamily",A[A.codeLensFontSize=16]=
|
||
|
`),this._selectionId=n.trackSelection(i);return}i.startLineNumber<i.endLineNumber&&i.endColumn===1&&(this._moveEndPositionDown=!0,i=i.setEndPosition(i.endLineNumber-1,g.getLineMaxColumn(i.endLineNumber-1)));const t=v._gatherPreflightData(this._type,this._insertSpace,g,i.startLineNumber,i.endLineNumber,this._ignoreEmptyLines,this._ignoreFirstLine,this.languageConfigurationService);return t.supported?this._executeLineComments(g,n,t,i):this._executeBlockComment(g,n,i)}computeCursorState(g,n){let i=n.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(i=i.setEndPosition(i.endLineNumber+1,1)),new L.Selection(i.selectionStartLineNumber,i.selectionStartColumn+this._deltaColumn,i.positionLineNumber,i.positionColumn+this._deltaColumn)}static _createRemoveLineCommentsOperations(g,n){const i=[];for(let t=0,s=g.length;t<s;t++){const d=g[t];d.ignore||i.push(C.EditOperation.delete(new I.Range(n+t,d.commentStrOffset+1,n+t,d.commentStrOffset+d.commentStrLength+1)))}return i}_createAddLineCommentsOperations(g,n){const i=[],t=this._insertSpace?" ":"";for(let s=0,d=g.length;s<d;s++){const l=g[s];l.ignore||i.push(C.EditOperation.insert(new k.Position(n+s,l.commentStrOffset+1),l.commentStr+t))}return i}static nextVisibleColumn(g,n,i,t){return i?g+(n-g%n):g+t}static _normalizeInsertionPoint(g,n,i,t){let s=1073741824,d,l;for(let a=0,r=n.length;a<r;a++){if(n[a].ignore)continue;const o=g.getLineContent(i+a);let c=0;for(let f=0,p=n[a].commentStrOffset;c<s&&f<p;f++)c=v.nextVisibleColumn(c,t,o.charCodeAt(f)===9,1);c<s&&(s=c)}s=Math.floor(s/t)*t;for(let a=0,r=n.length;a<r;a++){if(n[a].ignore)continue;const o=g.getLineContent(i+a);let c=0;for(d=0,l=n[a].commentStrOffset;c<s&&d<l;d++)c=v.nextVisibleColumn(c,t,o.charCodeAt(d)===9,1);c>s?n[a].commentStrOffset=d-1:n[a].commentStrOffset=d}}}e.LineCommentCommand=v}),define(re[450],ae([1,0,3,23]),function($,e,w,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DragAndDropCommand=void 0;class k{constructor(L,b,v){this.selection=L,this.targetPosition=b,this.copy=v,this.targetSelection=null}getEditOperations(L,b){const v=L.getValueInRange(this.selection);if(this.copy||b.addEditOperation(this.selection,null),b.addEditOperation(new w.Range(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),v),this.selection.containsPosition(this.targetPosition)&&!(this.copy&&(this.selection.getEndPosition().equals(this.targetPosition)||this.selection.getStartPosition().equals(this.targetPosition)))){this.targetSelection=this.selection;return}if(this.copy){this.targetSelection=new C.Selection(this.targetPosition.lineNumber,this.targetPosition.column,this.selection.endLineNumber-this.selection.startLineNumber+this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}if(this.targetPosition.lineNumber>this.selection.endLineNumber){this.targetSelection=new C.Selection(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}if(this.targetPosition.lineNumber<this.selection.endLineNumber){this.targetSelection=new C.Selection(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber+this.selection.endLineNumber-this.selection.startLineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}this.selection.endColumn<=this.targetPosition.column?this.targetSelection=new C.Selection(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column-this.selection.endCo
|
||
|
`,i+1);break;case 116:n.emitUnchanged(i-1),n.emitStatic(" ",i+1);break;case 117:case 85:case 108:case 76:n.emitUnchanged(i-1),n.emitStatic("",i+1),g.push(String.fromCharCode(d));break}continue}if(s===36){if(i++,i>=t)break;const d=u.charCodeAt(i);if(d===36){n.emitUnchanged(i-1),n.emitStatic("$",i+1);continue}if(d===48||d===38){n.emitUnchanged(i-1),n.emitMatchIndex(0,i+1,g),g.length=0;continue}if(49<=d&&d<=57){let l=d-48;if(i+1<t){const a=u.charCodeAt(i+1);if(48<=a&&a<=57){i++,l=l*10+(a-48),n.emitUnchanged(i-2),n.emitMatchIndex(l,i+1,g),g.length=0;continue}}n.emitUnchanged(i-1),n.emitMatchIndex(l,i+1,g),g.length=0;continue}}}return n.finalize()}e.parseReplaceString=v}),define(re[160],ae([1,0]),function($,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FoldingRegion=e.FoldingRegions=e.MAX_LINE_NUMBER=e.MAX_FOLDING_REGIONS=void 0,e.MAX_FOLDING_REGIONS=65535,e.MAX_LINE_NUMBER=16777215;const w=4278190080;class C{constructor(b){const v=Math.ceil(b/32);this._states=new Uint32Array(v)}get(b){const v=b/32|0,u=b%32;return(this._states[v]&1<<u)!=0}set(b,v){const u=b/32|0,g=b%32,n=this._states[u];v?this._states[u]=n|1<<g:this._states[u]=n&~(1<<g)}}class k{constructor(b,v,u){if(this.sourceAbbr={[0]:" ",[1]:"u",[2]:"r"},b.length!==v.length||b.length>e.MAX_FOLDING_REGIONS)throw new Error("invalid startIndexes or endIndexes size");this._startIndexes=b,this._endIndexes=v,this._collapseStates=new C(b.length),this._userDefinedStates=new C(b.length),this._recoveredStates=new C(b.length),this._types=u,this._parentsComputed=!1}ensureParentIndices(){if(!this._parentsComputed){this._parentsComputed=!0;const b=[],v=(u,g)=>{const n=b[b.length-1];return this.getStartLineNumber(n)<=u&&this.getEndLineNumber(n)>=g};for(let u=0,g=this._startIndexes.length;u<g;u++){const n=this._startIndexes[u],i=this._endIndexes[u];if(n>e.MAX_LINE_NUMBER||i>e.MAX_LINE_NUMBER)throw new Error("startLineNumber or endLineNumber must not exceed "+e.MAX_LINE_NUMBER);for(;b.length>0&&!v(n,i);)b.pop();const t=b.length>0?b[b.length-1]:-1;b.push(u),this._startIndexes[u]=n+((t&255)<<24),this._endIndexes[u]=i+((t&65280)<<16)}}}get length(){return this._startIndexes.length}getStartLineNumber(b){return this._startIndexes[b]&e.MAX_LINE_NUMBER}getEndLineNumber(b){return this._endIndexes[b]&e.MAX_LINE_NUMBER}getType(b){return this._types?this._types[b]:void 0}hasTypes(){return!!this._types}isCollapsed(b){return this._collapseStates.get(b)}setCollapsed(b,v){this._collapseStates.set(b,v)}isUserDefined(b){return this._userDefinedStates.get(b)}setUserDefined(b,v){return this._userDefinedStates.set(b,v)}isRecovered(b){return this._recoveredStates.get(b)}setRecovered(b,v){return this._recoveredStates.set(b,v)}getSource(b){return this.isUserDefined(b)?1:this.isRecovered(b)?2:0}setSource(b,v){v===1?(this.setUserDefined(b,!0),this.setRecovered(b,!1)):v===2?(this.setUserDefined(b,!1),this.setRecovered(b,!0)):(this.setUserDefined(b,!1),this.setRecovered(b,!1))}setCollapsedAllOfType(b,v){let u=!1;if(this._types)for(let g=0;g<this._types.length;g++)this._types[g]===b&&(this.setCollapsed(g,v),u=!0);return u}toRegion(b){return new I(this,b)}getParentIndex(b){this.ensureParentIndices();const v=((this._startIndexes[b]&w)>>>24)+((this._endIndexes[b]&w)>>>16);return v===e.MAX_FOLDING_REGIONS?-1:v}contains(b,v){return this.getStartLineNumber(b)<=v&&this.getEndLineNumber(b)>=v}findIndex(b){let v=0,u=this._startIndexes.length;if(u===0)return-1;for(;v<u;){const g=Math.floor((v+u)/2);b<this.getStartLineNumber(g)?u=g:v=g+1}return v-1}findRange(b){let v=this.findIndex(b);if(v>=0){if(this.getEndLineNumber(v)>=b)return v;for(v=this.getParentIndex(v);v!==-1;){if(this.contains(v,b))return v;v=this.getParentIndex(v)}}return-1}toString(){const b=[];for(let v=0;v<this.length;v++)b[v]=`[${this.sourceAbbr[this.getSource(v)]}${this.isCollapsed(v)?"+":"-"}] ${this.getStartLineNumber(v)}/${this.getEndLineNumber(v)}`;return b.join(", ")}toFoldRange(b){return{startLineNumber:this._startIndexes[b]&e.MAX_LINE_NUMBER,endLineNumber:this._endIndexes[b]&e.MAX_LINE_NUMBER,type:this._types?this._types[b]:void 0,i
|
||
|
`&&this.lineStartOffsetByLineIdx.push(g+1)}getOffset(u){return this.lineStartOffsetByLineIdx[u.lineNumber-1]+u.column-1}}const L=[];function b(){return L}e.getReadonlyEmptyArray=b}),define(re[456],ae([1,0,3,23]),function($,e,w,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CopyLinesCommand=void 0;class k{constructor(L,b,v){this._selection=L,this._isCopyingDown=b,this._noop=v||!1,this._selectionDirection=0,this._selectionId=null,this._startLineNumberDelta=0,this._endLineNumberDelta=0}getEditOperations(L,b){let v=this._selection;this._startLineNumberDelta=0,this._endLineNumberDelta=0,v.startLineNumber<v.endLineNumber&&v.endColumn===1&&(this._endLineNumberDelta=1,v=v.setEndPosition(v.endLineNumber-1,L.getLineMaxColumn(v.endLineNumber-1)));const u=[];for(let n=v.startLineNumber;n<=v.endLineNumber;n++)u.push(L.getLineContent(n));const g=u.join(`
|
||
|
`);g===""&&this._isCopyingDown&&(this._startLineNumberDelta++,this._endLineNumberDelta++),this._noop?b.addEditOperation(new w.Range(v.endLineNumber,L.getLineMaxColumn(v.endLineNumber),v.endLineNumber+1,1),v.endLineNumber===L.getLineCount()?"":`
|
||
|
`):this._isCopyingDown?b.addEditOperation(new w.Range(v.startLineNumber,1,v.startLineNumber,1),g+`
|
||
|
`):b.addEditOperation(new w.Range(v.endLineNumber,L.getLineMaxColumn(v.endLineNumber),v.endLineNumber,L.getLineMaxColumn(v.endLineNumber)),`
|
||
|
`+g),this._selectionId=b.trackSelection(v),this._selectionDirection=this._selection.getDirection()}computeCursorState(L,b){let v=b.getTrackedSelection(this._selectionId);if(this._startLineNumberDelta!==0||this._endLineNumberDelta!==0){let u=v.startLineNumber,g=v.startColumn,n=v.endLineNumber,i=v.endColumn;this._startLineNumberDelta!==0&&(u=u+this._startLineNumberDelta,g=1),this._endLineNumberDelta!==0&&(n=n+this._endLineNumberDelta,i=1),v=C.Selection.createWithDirection(u,g,n,i,this._selectionDirection)}return v}}e.CopyLinesCommand=k}),define(re[457],ae([1,0,60,3]),function($,e,w,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SortLinesCommand=void 0;class k{constructor(v,u){this.selection=v,this.descending=u,this.selectionId=null}static getCollator(){return k._COLLATOR||(k._COLLATOR=new Intl.Collator),k._COLLATOR}getEditOperations(v,u){const g=L(v,this.selection,this.descending);g&&u.addEditOperation(g.range,g.text),this.selectionId=u.trackSelection(this.selection)}computeCursorState(v,u){return u.getTrackedSelection(this.selectionId)}static canRun(v,u,g){if(v===null)return!1;const n=I(v,u,g);if(!n)return!1;for(let i=0,t=n.before.length;i<t;i++)if(n.before[i]!==n.after[i])return!0;return!1}}e.SortLinesCommand=k,k._COLLATOR=null;function I(b,v,u){const g=v.startLineNumber;let n=v.endLineNumber;if(v.endColumn===1&&n--,g>=n)return null;const i=[];for(let s=g;s<=n;s++)i.push(b.getLineContent(s));let t=i.slice(0);return t.sort(k.getCollator().compare),u===!0&&(t=t.reverse()),{startLineNumber:g,endLineNumber:n,before:i,after:t}}function L(b,v,u){const g=I(b,v,u);return g?w.EditOperation.replace(new C.Range(g.startLineNumber,1,g.endLineNumber,b.getLineMaxColumn(g.endLineNumber)),g.after.join(`
|
||
|
`)):null}}),define(re[249],ae([1,0,73,11,3]),function($,e,w,C,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BracketSelectionRangeProvider=void 0;class I{provideSelectionRanges(b,v){return Se(this,void 0,void 0,function*(){const u=[];for(const g of v){const n=[];u.push(n);const i=new Map;yield new Promise(t=>I._bracketsRightYield(t,0,b,g,i)),yield new Promise(t=>I._bracketsLeftYield(t,0,b,g,i,n))}return u})}static _bracketsRightYield(b,v,u,g,n){const i=new Map,t=Date.now();for(;;){if(v>=I._maxRounds){b();break}if(!g){b();break}const s=u.bracketPairs.findNextBracket(g);if(!s){b();break}if(Date.now()-t>I._maxDuration){setTimeout(()=>I._bracketsRightYield(b,v+1,u,g,n));break}if(s.bracketInfo.isOpeningBracket){const l=s.bracketInfo.bracketText,a=i.has(l)?i.get(l):0;i.set(l,a+1)}else{const l=s.bracketInfo.getClosedBrackets()[0].bracketText;let a=i.has(l)?i.get(l):0;if(a-=1,i.set(l,Math.max(0,a)),a<0){let r=n.get(l);r||(r=new w.LinkedList,n.set(l,r)),r.push(s.range)}}g=s.range.getEndPosition()}}static _bracketsLeftYield(b,v,u,g,n,i){const t=new Map,s=Date.now();for(;;){if(v>=I._maxRounds&&n.size===0){b();break}if(!g){b();break}const d=u.bracketPairs.findPrevBracket(g);if(!d){b();break}if(Date.now()-s>I._maxDuration){setTimeout(()=>I._bracketsLeftYield(b,v+1,u,g,n,i));break}if(d.bracketInfo.isOpeningBracket){const a=d.bracketInfo.bracketText;let r=t.has(a)?t.get(a):0;if(r-=1,t.set(a,Math.max(0,r)),r<0){const o=n.get(a);if(o){const c=o.shift();o.size===0&&n.delete(a);const f=k.Range.fromPositions(d.range.getEndPosition(),c.getStartPosition()),p=k.Range.fromPositions(d.range.getStartPosition(),c.getEndPosition());i.push({range:f}),i.push({range:p}),I._addBracketLeading(u,p,i)}}}else{const a=d.bracketInfo.getClosedBrackets()[0].bracketText,r=t.has(a)?t.get(a):0;t.set(a,r+1)}g=d.range.getStartPosition()}}static _addBracketLeading(b,v,u){if(v.startLineNumber===v.endLineNumber)return;const g=v.startLineNumber,n=b.getLineFirstNonWhitespaceColumn(g);n!==0&&n!==v.startColumn&&(u.push({range:k.Range.fromPositions(new C.Position(g,n),v.getEndPosition())}),u.push({range:k.Range.fromPositions(new C.Position(g,1),v.getEndPosition())}));const i=g-1;if(i>0){const t=b.getLineFirstNonWhitespaceColumn(i);t===v.startColumn&&t!==b.getLineLastNonWhitespaceColumn(i)&&(u.push({range:k.Range.fromPositions(new C.Position(i,t),v.getEndPosition())}),u.push({range:k.Range.fromPositions(new C.Position(i,1),v.getEndPosition())}))}}}e.BracketSelectionRangeProvider=I,I._maxDuration=30,I._maxRounds=2}),define(re[458],ae([1,0,8,3]),function($,e,w,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WordSelectionRangeProvider=void 0;class k{provideSelectionRanges(L,b){const v=[];for(const u of b){const g=[];v.push(g),this._addInWordRanges(g,L,u),this._addWordRanges(g,L,u),this._addWhitespaceLine(g,L,u),g.push({range:L.getFullModelRange()})}return v}_addInWordRanges(L,b,v){const u=b.getWordAtPosition(v);if(!u)return;const{word:g,startColumn:n}=u,i=v.column-n;let t=i,s=i,d=0;for(;t>=0;t--){const l=g.charCodeAt(t);if(t!==i&&(l===95||l===45))break;if((0,w.isLowerAsciiLetter)(l)&&(0,w.isUpperAsciiLetter)(d))break;d=l}for(t+=1;s<g.length;s++){const l=g.charCodeAt(s);if((0,w.isUpperAsciiLetter)(l)&&(0,w.isLowerAsciiLetter)(d))break;if(l===95||l===45)break;d=l}t<s&&L.push({range:new C.Range(v.lineNumber,n+t,v.lineNumber,n+s)})}_addWordRanges(L,b,v){const u=b.getWordAtPosition(v);u&&L.push({range:new C.Range(v.lineNumber,u.startColumn,v.lineNumber,u.endColumn)})}_addWhitespaceLine(L,b,v){b.getLineLength(v.lineNumber)>0&&b.getLineFirstNonWhitespaceColumn(v.lineNumber)===0&&b.getLineLastNonWhitespaceColumn(v.lineNumber)===0&&L.push({range:new C.Range(v.lineNumber,1,v.lineNumber,b.getLineMaxColumn(v.lineNumber))})}}e.WordSelectionRangeProvider=k}),define(re[89],ae([1,0]),function($,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SnippetParser=e.TextmateSnippet=e.Variable=e.FormatString=e.Transform=e.Choice=e.Placeholder=e.TransformableMarker=e.Text=e.Marker=e.Scanner=void 0;class w{constructor(){this.value="",this.pos=0}s
|
||
|
hint: use the 'bracket' attribute if matching on equal brackets is required.`);if(typeof f.open=="string"&&typeof f.token=="string"&&typeof f.close=="string")o.push({token:f.token+l.tokenPostfix,open:w.fixCase(l,f.open),close:w.fixCase(l,f.close)});else throw w.createError(l,"every element in the 'brackets' array must be a '{open,close,token}' object or array")}return l.brackets=o,l.noThrow=!0,l}e.compile=t}),define(re[462],ae([4,5]),function($,e){return $.create("vs/base/browser/ui/actionbar/actionViewItems",e)}),define(re[463],ae([4,5]),function($,e){return $.create("vs/base/browser/ui/findinput/findInput",e)}),define(re[464],ae([4,5]),function($,e){return $.create("vs/base/browser/ui/findinput/findInputToggles",e)}),define(re[465],ae([4,5]),function($,e){return $.create("vs/base/browser/ui/findinput/replaceInput",e)}),define(re[466],ae([4,5]),function($,e){return $.create("vs/base/browser/ui/iconLabel/iconLabelHover",e)}),define(re[467],ae([4,5]),function($,e){return $.create("vs/base/browser/ui/inputbox/inputBox",e)}),define(re[468],ae([4,5]),function($,e){return $.create("vs/base/browser/ui/keybindingLabel/keybindingLabel",e)}),define(re[469],ae([4,5]),function($,e){return $.create("vs/base/browser/ui/tree/abstractTree",e)}),define(re[470],ae([4,5]),function($,e){return $.create("vs/base/common/actions",e)}),define(re[471],ae([4,5]),function($,e){return $.create("vs/base/common/errorMessage",e)}),define(re[472],ae([1,0,18,19,471]),function($,e,w,C,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toErrorMessage=void 0;function I(u,g){return g&&(u.stack||u.stacktrace)?k.localize(0,null,b(u),L(u.stack)||L(u.stacktrace)):b(u)}function L(u){return Array.isArray(u)?u.join(`
|
||
|
`):u}function b(u){return typeof u.code=="string"&&typeof u.errno=="number"&&typeof u.syscall=="string"?k.localize(1,null,u.message):u.message||k.localize(2,null)}function v(u=null,g=!1){if(!u)return k.localize(3,null);if(Array.isArray(u)){const n=w.coalesce(u),i=v(n[0],g);return n.length>1?k.localize(4,null,i,n.length):i}if(C.isString(u))return u;if(u.detail){const n=u.detail;if(n.error)return I(n.error,g);if(n.exception)return I(n.exception,g)}return u.stack?I(u,g):u.message?u.message:k.localize(5,null)}e.toErrorMessage=v}),define(re[473],ae([4,5]),function($,e){return $.create("vs/base/common/keybindingLabels",e)}),define(re[190],ae([1,0,473]),function($,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UserSettingsLabelProvider=e.ElectronAcceleratorLabelProvider=e.AriaLabelProvider=e.UILabelProvider=e.ModifierLabelProvider=void 0;class C{constructor(L,b,v=b){this.modifierLabels=[null],this.modifierLabels[2]=L,this.modifierLabels[1]=b,this.modifierLabels[3]=v}toLabel(L,b,v){if(b.length===0)return null;const u=[];for(let g=0,n=b.length;g<n;g++){const i=b[g],t=v(i);if(t===null)return null;u[g]=k(i,t,this.modifierLabels[L])}return u.join(" ")}}e.ModifierLabelProvider=C,e.UILabelProvider=new C({ctrlKey:"\u2303",shiftKey:"\u21E7",altKey:"\u2325",metaKey:"\u2318",separator:""},{ctrlKey:w.localize(0,null),shiftKey:w.localize(1,null),altKey:w.localize(2,null),metaKey:w.localize(3,null),separator:"+"},{ctrlKey:w.localize(4,null),shiftKey:w.localize(5,null),altKey:w.localize(6,null),metaKey:w.localize(7,null),separator:"+"}),e.AriaLabelProvider=new C({ctrlKey:w.localize(8,null),shiftKey:w.localize(9,null),altKey:w.localize(10,null),metaKey:w.localize(11,null),separator:"+"},{ctrlKey:w.localize(12,null),shiftKey:w.localize(13,null),altKey:w.localize(14,null),metaKey:w.localize(15,null),separator:"+"},{ctrlKey:w.localize(16,null),shiftKey:w.localize(17,null),altKey:w.localize(18,null),metaKey:w.localize(19,null),separator:"+"}),e.ElectronAcceleratorLabelProvider=new C({ctrlKey:"Ctrl",shiftKey:"Shift",altKey:"Alt",metaKey:"Cmd",separator:"+"},{ctrlKey:"Ctrl",shiftKey:"Shift",altKey:"Alt",metaKey:"Super",separator:"+"}),e.UserSettingsLabelProvider=new C({ctrlKey:"ctrl",shiftKey:"shift",altKey:"alt",metaKey:"cmd",separator:"+"},{ctrlKey:"ctrl",shiftKey:"shift",altKey:"alt",metaKey:"win",separator:"+"},{ctrlKey:"ctrl",shiftKey:"shift",altKey:"alt",metaKey:"meta",separator:"+"});function k(I,L,b){if(L===null)return"";const v=[];return I.ctrlKey&&v.push(b.ctrlKey),I.shiftKey&&v.push(b.shiftKey),I.altKey&&v.push(b.altKey),I.metaKey&&v.push(b.metaKey),L!==""&&v.push(L),v.join(b.separator)}}),define(re[474],ae([4,5]),function($,e){return $.create("vs/base/common/platform",e)}),define(re[17],ae([1,0,474]),function($,e,w){"use strict";var C;Object.defineProperty(e,"__esModule",{value:!0}),e.isAndroid=e.isEdge=e.isSafari=e.isFirefox=e.isChrome=e.isLittleEndian=e.OS=e.setTimeout0=e.setTimeout0IsFaster=e.language=e.userAgent=e.isIOS=e.isWebWorker=e.isWeb=e.isNative=e.isLinux=e.isMacintosh=e.isWindows=e.globals=void 0;const k="en";let I=!1,L=!1,b=!1,v=!1,u=!1,g=!1,n=!1,i=!1,t=!1,s,d=k,l,a;e.globals=typeof self=="object"?self:typeof global=="object"?global:{};let r;typeof e.globals.vscode!="undefined"&&typeof e.globals.vscode.process!="undefined"?r=e.globals.vscode.process:typeof process!="undefined"&&(r=process);const o=typeof((C=r==null?void 0:r.versions)===null||C===void 0?void 0:C.electron)=="string",c=o&&(r==null?void 0:r.type)==="renderer";if(typeof navigator=="object"&&!c)a=navigator.userAgent,I=a.indexOf("Windows")>=0,L=a.indexOf("Macintosh")>=0,i=(a.indexOf("Macintosh")>=0||a.indexOf("iPad")>=0||a.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,b=a.indexOf("Linux")>=0,g=!0,s=w.getConfiguredDefaultLocale(w.localize(0,null))||k,d=s;else if(typeof r=="object"){I=r.platform==="win32",L=r.platform==="darwin",b=r.platform==="linux",v=b&&!!r.env.SNAP&&!!r.env.SNAP_REVISION,n=o,t=!!r.env.CI||!!r.env.BUILD_ARTIFACTSTAGINGDIRECTORY,s=k,d=k;const h=r.env.VSCODE_NLS_CONFIG;if(h)try{const S=JSON.pars
|
||
|
`).slice(2).join(`
|
||
|
`))}}class t{constructor(_,m,h){this.callback=_,this.callbackThis=m,this.stack=h,this.subscription=new C.SafeDisposable}invoke(_){this.callback.call(this.callbackThis,_)}}class s{constructor(_){var m,h;this._disposed=!1,this._options=_,this._leakageMon=g>0?new n(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=((m=this._options)===null||m===void 0?void 0:m._profName)?new u(this._options._profName):void 0,this._deliveryQueue=(h=this._options)===null||h===void 0?void 0:h.deliveryQueue}dispose(){var _,m,h,S;if(!this._disposed){if(this._disposed=!0,this._listeners){if(L){const y=Array.from(this._listeners);queueMicrotask(()=>{var E;for(const N of y)N.subscription.isset()&&(N.subscription.unset(),(E=N.stack)===null||E===void 0||E.print())})}this._listeners.clear()}(_=this._deliveryQueue)===null||_===void 0||_.clear(this),(h=(m=this._options)===null||m===void 0?void 0:m.onLastListenerRemove)===null||h===void 0||h.call(m),(S=this._leakageMon)===null||S===void 0||S.dispose()}}get event(){return this._event||(this._event=(_,m,h)=>{var S,y,E;this._listeners||(this._listeners=new k.LinkedList);const N=this._listeners.isEmpty();N&&((S=this._options)===null||S===void 0?void 0:S.onFirstListenerAdd)&&this._options.onFirstListenerAdd(this);let T,R;this._leakageMon&&this._listeners.size>=30&&(R=i.create(),T=this._leakageMon.check(R,this._listeners.size+1)),L&&(R=R??i.create());const F=new t(_,m,R),O=this._listeners.push(F);N&&((y=this._options)===null||y===void 0?void 0:y.onFirstListenerDidAdd)&&this._options.onFirstListenerDidAdd(this),((E=this._options)===null||E===void 0?void 0:E.onListenerDidAdd)&&this._options.onListenerDidAdd(this,_,m);const D=F.subscription.set(()=>{T==null||T(),this._disposed||(O(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return h instanceof C.DisposableStore?h.add(D):Array.isArray(h)&&h.push(D),D}),this._event}fire(_){var m,h;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new l);for(const S of this._listeners)this._deliveryQueue.push(this,S,_);(m=this._perfMon)===null||m===void 0||m.start(this._deliveryQueue.size),this._deliveryQueue.deliver(),(h=this._perfMon)===null||h===void 0||h.stop()}}}e.Emitter=s;class d{constructor(){this._queue=new k.LinkedList}get size(){return this._queue.size}push(_,m,h){this._queue.push(new a(_,m,h))}clear(_){const m=new k.LinkedList;for(const h of this._queue)h.emitter!==_&&m.push(h);this._queue=m}deliver(){for(;this._queue.size>0;){const _=this._queue.shift();try{_.listener.invoke(_.event)}catch(m){(0,w.onUnexpectedError)(m)}}}}e.EventDeliveryQueue=d;class l extends d{clear(_){this._queue.clear()}}class a{constructor(_,m,h){this.emitter=_,this.listener=m,this.event=h}}class r extends s{constructor(_){super(_);this._isPaused=0,this._eventQueue=new k.LinkedList,this._mergeFn=_==null?void 0:_.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused==0)if(this._mergeFn){const _=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(_))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(_){this._listeners&&(this._isPaused!==0?this._eventQueue.push(_):super.fire(_))}}e.PauseableEmitter=r;class o extends r{constructor(_){var m;super(_);this._delay=(m=_.delay)!==null&&m!==void 0?m:100}fire(_){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(_)}}e.DebounceEmitter=o;class c{constructor(){this.buffers=[]}wrapEvent(_){return(m,h,S)=>_(y=>{const E=this.buffers[this.buffers.length-1];E?E.push(()=>m.call(h,y)):m.call(h,y)},void 0,S)}bufferEvents(_){const m=[];this.buffers.push(m);const h=_();return this.buffers.pop(),m.forEach(S=>S()),h}}e.EventBufferer=c;class f{constructor(){this.listening=!1,this.inputEvent=v.None,this.inputEventListener=C.Disposable.None,this.emitter=new s({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastL
|
||
|
`)d.type===2&&(d=l.pop()),d.children.push({type:8});else if(d.type!==2){const c={type:2,content:r};d.children.push(c),l.push(d),d=c}else d.content+=r}return d.type===2&&(d=l.pop()),l.length,t}function u(n,i){return g(n,i)!==0}function g(n,i){switch(n){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;case"`":return i?7:0;default:return 0}}}),define(re[132],ae([1,0,7,2]),function($,e,w,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GlobalPointerMoveMonitor=void 0;class k{constructor(){this._hooks=new C.DisposableStore,this._pointerMoveCallback=null,this._onStopCallback=null}dispose(){this.stopMonitoring(!1),this._hooks.dispose()}stopMonitoring(L,b){if(!this.isMonitoring())return;this._hooks.clear(),this._pointerMoveCallback=null;const v=this._onStopCallback;this._onStopCallback=null,L&&v&&v(b)}isMonitoring(){return!!this._pointerMoveCallback}startMonitoring(L,b,v,u,g){this.isMonitoring()&&this.stopMonitoring(!1),this._pointerMoveCallback=u,this._onStopCallback=g;let n=L;try{L.setPointerCapture(b),this._hooks.add((0,C.toDisposable)(()=>{L.releasePointerCapture(b)}))}catch{n=window}this._hooks.add(w.addDisposableListener(n,w.EventType.POINTER_MOVE,i=>{if(i.buttons!==v){this.stopMonitoring(!0);return}i.preventDefault(),this._pointerMoveCallback(i)})),this._hooks.add(w.addDisposableListener(n,w.EventType.POINTER_UP,i=>this.stopMonitoring(!0)))}}e.GlobalPointerMoveMonitor=k});var ke=this&&this.__decorate||function($,e,w,C){var k=arguments.length,I=k<3?e:C===null?C=Object.getOwnPropertyDescriptor(e,w):C,L;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")I=Reflect.decorate($,e,w,C);else for(var b=$.length-1;b>=0;b--)(L=$[b])&&(I=(k<3?L(I):k>3?L(e,w,I):L(e,w))||I);return k>3&&I&&Object.defineProperty(e,w,I),I};define(re[62],ae([1,0,7,18,103,2]),function($,e,w,C,k,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Gesture=e.EventType=void 0;var L;(function(v){v.Tap="-monaco-gesturetap",v.Change="-monaco-gesturechange",v.Start="-monaco-gesturestart",v.End="-monaco-gesturesend",v.Contextmenu="-monaco-gesturecontextmenu"})(L=e.EventType||(e.EventType={}));class b extends I.Disposable{constructor(){super();this.dispatched=!1,this.activeTouches={},this.handle=null,this.targets=[],this.ignoreTargets=[],this._lastSetTapCountTime=0,this._register(w.addDisposableListener(document,"touchstart",u=>this.onTouchStart(u),{passive:!1})),this._register(w.addDisposableListener(document,"touchend",u=>this.onTouchEnd(u))),this._register(w.addDisposableListener(document,"touchmove",u=>this.onTouchMove(u),{passive:!1}))}static addTarget(u){return b.isTouchDevice()?(b.INSTANCE||(b.INSTANCE=new b),b.INSTANCE.targets.push(u),{dispose:()=>{b.INSTANCE.targets=b.INSTANCE.targets.filter(g=>g!==u)}}):I.Disposable.None}static ignoreTarget(u){return b.isTouchDevice()?(b.INSTANCE||(b.INSTANCE=new b),b.INSTANCE.ignoreTargets.push(u),{dispose:()=>{b.INSTANCE.ignoreTargets=b.INSTANCE.ignoreTargets.filter(g=>g!==u)}}):I.Disposable.None}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}dispose(){this.handle&&(this.handle.dispose(),this.handle=null),super.dispose()}onTouchStart(u){const g=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(let n=0,i=u.targetTouches.length;n<i;n++){const t=u.targetTouches.item(n);this.activeTouches[t.identifier]={id:t.identifier,initialTarget:t.target,initialTimeStamp:g,initialPageX:t.pageX,initialPageY:t.pageY,rollingTimestamps:[g],rollingPageX:[t.pageX],rollingPageY:[t.pageY]};const s=this.newGestureEvent(L.Start,t.target);s.pageX=t.pageX,s.pageY=t.pageY,this.dispatchEvent(s)}this.dispatched&&(u.preventDefault(),u.stopPropagation(),this.dispatched=!1)}onTouchEnd(u){const g=Date.now(),n=Object.keys(this.activeTouches).length;for(let i=0,t=u.changedTouches.length;i<t;i++){const s=u.changedTouches.item(i);if(!this.activeTouches.hasOwnProperty(String(s.identifier))){console.warn("move of an UNKNOWN touch",s);continue}const d=this.activeTouches[s.identifier],l=Date.now()-d.initialTimeStamp;if(l<b.HOLD_DELAY&&Math.abs(d.in
|
||
|
:host {
|
||
|
all: initial; /* 1st rule so subsequent properties are reset. */
|
||
|
}
|
||
|
|
||
|
@font-face {
|
||
|
font-family: "codicon";
|
||
|
font-display: block;
|
||
|
src: url("./codicon.ttf?5d4d76ab2ce5108968ad644d591a16a6") format("truetype");
|
||
|
}
|
||
|
|
||
|
.codicon[class*='codicon-'] {
|
||
|
font: normal normal normal 16px/1 codicon;
|
||
|
display: inline-block;
|
||
|
text-decoration: none;
|
||
|
text-rendering: auto;
|
||
|
text-align: center;
|
||
|
-webkit-font-smoothing: antialiased;
|
||
|
-moz-osx-font-smoothing: grayscale;
|
||
|
user-select: none;
|
||
|
-webkit-user-select: none;
|
||
|
-ms-user-select: none;
|
||
|
}
|
||
|
|
||
|
:host {
|
||
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "HelveticaNeue-Light", system-ui, "Ubuntu", "Droid Sans", sans-serif;
|
||
|
}
|
||
|
|
||
|
:host-context(.mac) { font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
|
||
|
:host-context(.mac:lang(zh-Hans)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", sans-serif; }
|
||
|
:host-context(.mac:lang(zh-Hant)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", sans-serif; }
|
||
|
:host-context(.mac:lang(ja)) { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic Pro", sans-serif; }
|
||
|
:host-context(.mac:lang(ko)) { font-family: -apple-system, BlinkMacSystemFont, "Nanum Gothic", "Apple SD Gothic Neo", "AppleGothic", sans-serif; }
|
||
|
|
||
|
:host-context(.windows) { font-family: "Segoe WPC", "Segoe UI", sans-serif; }
|
||
|
:host-context(.windows:lang(zh-Hans)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft YaHei", sans-serif; }
|
||
|
:host-context(.windows:lang(zh-Hant)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft Jhenghei", sans-serif; }
|
||
|
:host-context(.windows:lang(ja)) { font-family: "Segoe WPC", "Segoe UI", "Yu Gothic UI", "Meiryo UI", sans-serif; }
|
||
|
:host-context(.windows:lang(ko)) { font-family: "Segoe WPC", "Segoe UI", "Malgun Gothic", "Dotom", sans-serif; }
|
||
|
|
||
|
:host-context(.linux) { font-family: system-ui, "Ubuntu", "Droid Sans", sans-serif; }
|
||
|
:host-context(.linux:lang(zh-Hans)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans SC", "Source Han Sans CN", "Source Han Sans", sans-serif; }
|
||
|
:host-context(.linux:lang(zh-Hant)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans TC", "Source Han Sans TW", "Source Han Sans", sans-serif; }
|
||
|
:host-context(.linux:lang(ja)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans J", "Source Han Sans JP", "Source Han Sans", sans-serif; }
|
||
|
:host-context(.linux:lang(ko)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans K", "Source Han Sans JR", "Source Han Sans", "UnDotum", "FBaekmuk Gulim", sans-serif; }
|
||
|
`}),define(re[255],ae([1,0,7,31,40,8,339]),function($,e,w,C,k,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CountBadge=void 0;const L={badgeBackground:C.Color.fromHex("#4D4D4D"),badgeForeground:C.Color.fromHex("#FFFFFF")};class b{constructor(u,g){this.count=0,this.options=g||Object.create(null),(0,k.mixin)(this.options,L,!1),this.badgeBackground=this.options.badgeBackground,this.badgeForeground=this.options.badgeForeground,this.badgeBorder=this.options.badgeBorder,this.element=(0,w.append)(u,(0,w.$)(".monaco-count-badge")),this.countFormat=this.options.countFormat||"{0}",this.titleFormat=this.options.titleFormat||"",this.setCount(this.options.count||0)}setCount(u){this.count=u,this.render()}setTitleFormat(u){this.titleFormat=u,this.render()}render(){this.element.textContent=(0,I.format)(this.countFormat,this.count),this.element.title=(0,I.format)(this.titleFormat,this.count),this.applyStyles()}style(u){this.badgeBackground=u.badgeBackground,this.badgeForeground=u.badgeForeground,this.badgeBorder=u.badgeBorder,this.applyStyles()}applyStyles(){if(this.element){const u=this.badgeBackground?this.badgeBackground.toString():"",g=this.badgeForeground?this.badgeForeground.toString():"",n=this.badgeBorder?this.badgeBorder.toString():"";this.element.style.backgroundColor=u,this.element.style.color=g,this.element.style.borderWidth=n?"1px":"",this.element.style.borderStyle=n?"solid":"",this.element.style.borderColor=n}}}e.CountBadge=b}),define(re[482],ae([1,0,7,48,62,42,6,226]),function($,e,w,C,k,I,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DropdownMenu=e.BaseDropdown=void 0;class b extends I.ActionRunner{constructor(g,n){super();this._onDidChangeVisibility=this._register(new L.Emitter),this.onDidChangeVisibility=this._onDidChangeVisibility.event,this._element=(0,w.append)(g,(0,w.$)(".monaco-dropdown")),this._label=(0,w.append)(this._element,(0,w.$)(".dropdown-label"));let i=n.labelRenderer;i||(i=s=>(s.textContent=n.label||"",null));for(const s of[w.EventType.CLICK,w.EventType.MOUSE_DOWN,k.EventType.Tap])this._register((0,w.addDisposableListener)(this.element,s,d=>w.EventHelper.stop(d,!0)));for(const s of[w.EventType.MOUSE_DOWN,k.EventType.Tap])this._register((0,w.addDisposableListener)(this._label,s,d=>{d instanceof MouseEvent&&(d.detail>1||d.button!==0)||(this.visible?this.hide():this.show())}));this._register((0,w.addDisposableListener)(this._label,w.EventType.KEY_UP,s=>{const d=new C.StandardKeyboardEvent(s);(d.equals(3)||d.equals(10))&&(w.EventHelper.stop(s,!0),this.visible?this.hide():this.show())}));const t=i(this._label);t&&this._register(t),this._register(k.Gesture.addTarget(this._label))}get element(){return this._element}show(){this.visible||(this.visible=!0,this._onDidChangeVisibility.fire(!0))}hide(){this.visible&&(this.visible=!1,this._onDidChangeVisibility.fire(!1))}dispose(){super.dispose(),this.hide(),this.boxContainer&&(this.boxContainer.remove(),this.boxContainer=void 0),this.contents&&(this.contents.remove(),this.contents=void 0),this._label&&(this._label.remove(),this._label=void 0)}}e.BaseDropdown=b;class v extends b{constructor(g,n){super(g,n);this._actions=[],this._contextMenuProvider=n.contextMenuProvider,this.actions=n.actions||[],this.actionProvider=n.actionProvider,this.menuClassName=n.menuClassName||"",this.menuAsChild=!!n.menuAsChild}set menuOptions(g){this._menuOptions=g}get menuOptions(){return this._menuOptions}get actions(){return this.actionProvider?this.actionProvider.getActions():this._actions}set actions(g){this._actions=g}show(){super.show(),this.element.classList.add("active"),this._contextMenuProvider.showContextMenu({getAnchor:()=>this.element,getActions:()=>this.actions,getActionsContext:()=>this.menuOptions?this.menuOptions.context:null,getActionViewItem:g=>this.menuOptions&&this.menuOptions.actionViewItemProvider?this.menuOptions.actionViewItemProvider(g):void 0,getKeyBinding:g=>this.menuOptions&&this.menuOptions.getKeyBinding?this.menuOptions.getKeyBinding(g):void 0,getMenuClassName:()=>this.menuClassName,onHide:()=>this.onHide(),actionRunner
|
||
|
`?-1:0,i+=u;for(const t of v)t.end<=i||(t.start>=i&&(t.start+=g),t.end>=i&&(t.end+=g));return u+=g,"\u23CE"})}}e.HighlightedLabel=I}),define(re[197],ae([1,0,7,257,256,2,40,146,341]),function($,e,w,C,k,I,L,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IconLabel=void 0;class v{constructor(s){this._element=s}get element(){return this._element}set textContent(s){this.disposed||s===this._textContent||(this._textContent=s,this._element.textContent=s)}set className(s){this.disposed||s===this._className||(this._className=s,this._element.className=s)}set empty(s){this.disposed||s===this._empty||(this._empty=s,this._element.style.marginLeft=s?"0":"")}dispose(){this.disposed=!0}}class u extends I.Disposable{constructor(s,d){super();this.customHovers=new Map,this.domNode=this._register(new v(w.append(s,w.$(".monaco-icon-label")))),this.labelContainer=w.append(this.domNode.element,w.$(".monaco-icon-label-container"));const l=w.append(this.labelContainer,w.$("span.monaco-icon-name-container"));this.descriptionContainer=this._register(new v(w.append(this.labelContainer,w.$("span.monaco-icon-description-container")))),(d==null?void 0:d.supportHighlights)||(d==null?void 0:d.supportIcons)?this.nameNode=new i(l,!!d.supportIcons):this.nameNode=new g(l),(d==null?void 0:d.supportDescriptionHighlights)?this.descriptionNodeFactory=()=>new C.HighlightedLabel(w.append(this.descriptionContainer.element,w.$("span.label-description")),{supportIcons:!!d.supportIcons}):this.descriptionNodeFactory=()=>this._register(new v(w.append(this.descriptionContainer.element,w.$("span.label-description")))),this.hoverDelegate=d==null?void 0:d.hoverDelegate}get element(){return this.domNode.element}setLabel(s,d,l){const a=["monaco-icon-label"];l&&(l.extraClasses&&a.push(...l.extraClasses),l.italic&&a.push("italic"),l.strikethrough&&a.push("strikethrough")),this.domNode.className=a.join(" "),this.setupHover((l==null?void 0:l.descriptionTitle)?this.labelContainer:this.element,l==null?void 0:l.title),this.nameNode.setLabel(s,l),(d||this.descriptionNode)&&(this.descriptionNode||(this.descriptionNode=this.descriptionNodeFactory()),this.descriptionNode instanceof C.HighlightedLabel?(this.descriptionNode.set(d||"",l?l.descriptionMatches:void 0),this.setupHover(this.descriptionNode.element,l==null?void 0:l.descriptionTitle)):(this.descriptionNode.textContent=d||"",this.setupHover(this.descriptionNode.element,(l==null?void 0:l.descriptionTitle)||""),this.descriptionNode.empty=!d))}setupHover(s,d){const l=this.customHovers.get(s);if(l&&(l.dispose(),this.customHovers.delete(s)),!d){s.removeAttribute("title");return}if(!this.hoverDelegate)(0,k.setupNativeHover)(s,d);else{const a=(0,k.setupCustomHover)(this.hoverDelegate,s,d);a&&this.customHovers.set(s,a)}}dispose(){super.dispose();for(const s of this.customHovers.values())s.dispose();this.customHovers.clear()}}e.IconLabel=u;class g{constructor(s){this.container=s,this.label=void 0,this.singleLabel=void 0}setLabel(s,d){if(!(this.label===s&&(0,L.equals)(this.options,d)))if(this.label=s,this.options=d,typeof s=="string")this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=w.append(this.container,w.$("a.label-name",{id:d==null?void 0:d.domId}))),this.singleLabel.textContent=s;else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;for(let l=0;l<s.length;l++){const a=s[l],r=(d==null?void 0:d.domId)&&`${d==null?void 0:d.domId}_${l}`;w.append(this.container,w.$("a.label-name",{id:r,"data-icon-label-count":s.length,"data-icon-label-index":l,role:"treeitem"},a)),l<s.length-1&&w.append(this.container,w.$("span.label-separator",void 0,(d==null?void 0:d.separator)||"/"))}}}}function n(t,s,d){if(!d)return;let l=0;return t.map(a=>{const r={start:l,end:l+a.length},o=d.map(c=>b.Range.intersect(r,c)).filter(c=>!b.Range.isEmpty(c)).map(({start:c,end:f})=>({start:c-l,end:f-l}));return l=r.end+s.length,o})}class i{constructor(s,d){this.container=s,this.supportIcons=d,this.label=void 0,this.singleLabel=void 0}setLabel(s,d){if(!(t
|
||
|
.monaco-drag-image,
|
||
|
.monaco-list${oe}:focus .monaco-list-row.selected.focused { background-color: ${x.listFocusAndSelectionBackground}; }
|
||
|
`),x.listFocusAndSelectionForeground&&Q.push(`
|
||
|
.monaco-drag-image,
|
||
|
.monaco-list${oe}:focus .monaco-list-row.selected.focused { color: ${x.listFocusAndSelectionForeground}; }
|
||
|
`),x.listInactiveFocusForeground&&(Q.push(`.monaco-list${oe} .monaco-list-row.focused { color: ${x.listInactiveFocusForeground}; }`),Q.push(`.monaco-list${oe} .monaco-list-row.focused:hover { color: ${x.listInactiveFocusForeground}; }`)),x.listInactiveSelectionIconForeground&&Q.push(`.monaco-list${oe} .monaco-list-row.focused .codicon { color: ${x.listInactiveSelectionIconForeground}; }`),x.listInactiveFocusBackground&&(Q.push(`.monaco-list${oe} .monaco-list-row.focused { background-color: ${x.listInactiveFocusBackground}; }`),Q.push(`.monaco-list${oe} .monaco-list-row.focused:hover { background-color: ${x.listInactiveFocusBackground}; }`)),x.listInactiveSelectionBackground&&(Q.push(`.monaco-list${oe} .monaco-list-row.selected { background-color: ${x.listInactiveSelectionBackground}; }`),Q.push(`.monaco-list${oe} .monaco-list-row.selected:hover { background-color: ${x.listInactiveSelectionBackground}; }`)),x.listInactiveSelectionForeground&&Q.push(`.monaco-list${oe} .monaco-list-row.selected { color: ${x.listInactiveSelectionForeground}; }`),x.listHoverBackground&&Q.push(`.monaco-list${oe}:not(.drop-target) .monaco-list-row:hover:not(.selected):not(.focused) { background-color: ${x.listHoverBackground}; }`),x.listHoverForeground&&Q.push(`.monaco-list${oe} .monaco-list-row:hover:not(.selected):not(.focused) { color: ${x.listHoverForeground}; }`),x.listSelectionOutline&&Q.push(`.monaco-list${oe} .monaco-list-row.selected { outline: 1px dotted ${x.listSelectionOutline}; outline-offset: -1px; }`),x.listFocusOutline&&Q.push(`
|
||
|
.monaco-drag-image,
|
||
|
.monaco-list${oe}:focus .monaco-list-row.focused { outline: 1px solid ${x.listFocusOutline}; outline-offset: -1px; }
|
||
|
.monaco-workbench.context-menu-visible .monaco-list${oe}.last-focused .monaco-list-row.focused { outline: 1px solid ${x.listFocusOutline}; outline-offset: -1px; }
|
||
|
`),x.listInactiveFocusOutline&&Q.push(`.monaco-list${oe} .monaco-list-row.focused { outline: 1px dotted ${x.listInactiveFocusOutline}; outline-offset: -1px; }`),x.listHoverOutline&&Q.push(`.monaco-list${oe} .monaco-list-row:hover { outline: 1px dashed ${x.listHoverOutline}; outline-offset: -1px; }`),x.listDropBackground&&Q.push(`
|
||
|
.monaco-list${oe}.drop-target,
|
||
|
.monaco-list${oe} .monaco-list-rows.drop-target,
|
||
|
.monaco-list${oe} .monaco-list-row.drop-target { background-color: ${x.listDropBackground} !important; color: inherit !important; }
|
||
|
`),x.tableColumnsBorder&&Q.push(`
|
||
|
.monaco-table:hover > .monaco-split-view2,
|
||
|
.monaco-table:hover > .monaco-split-view2 .monaco-sash.vertical::before {
|
||
|
border-color: ${x.tableColumnsBorder};
|
||
|
}`),x.tableOddRowsBackgroundColor&&Q.push(`
|
||
|
.monaco-table .monaco-list-row[data-parity=odd]:not(.focused):not(.selected):not(:hover) .monaco-table-tr,
|
||
|
.monaco-table .monaco-list:not(:focus) .monaco-list-row[data-parity=odd].focused:not(.selected):not(:hover) .monaco-table-tr,
|
||
|
.monaco-table .monaco-list:not(.focused) .monaco-list-row[data-parity=odd].focused:not(.selected):not(:hover) .monaco-table-tr {
|
||
|
background-color: ${x.tableOddRowsBackgroundColor};
|
||
|
}
|
||
|
`),this.styleElement.textContent=Q.join(`
|
||
|
`)}}e.DefaultStyleController=W;const V={listFocusBackground:g.Color.fromHex("#7FB0D0"),listActiveSelectionBackground:g.Color.fromHex("#0E639C"),listActiveSelectionForeground:g.Color.fromHex("#FFFFFF"),listActiveSelectionIconForeground:g.Color.fromHex("#FFFFFF"),listFocusAndSelectionOutline:g.Color.fromHex("#90C2F9"),listFocusAndSelectionBackground:g.Color.fromHex("#094771"),listFocusAndSelectionForeground:g.Color.fromHex("#FFFFFF"),listInactiveSelectionBackground:g.Color.fromHex("#3F3F46"),listInactiveSelectionIconForeground:g.Color.fromHex("#FFFFFF"),listHoverBackground:g.Color.fromHex("#2A2D2E"),listDropBackground:g.Color.fromHex("#383B3D"),treeIndentGuidesStroke:g.Color.fromHex("#a9a9a9"),tableColumnsBorder:g.Color.fromHex("#cccccc").transparent(.2),tableOddRowsBackgroundColor:g.Color.fromHex("#cccccc").transparent(.04)},A={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI(){return null},onDragStart(){},onDragOver(){return!1},drop(){}}};function X(de,x){const oe=de.indexOf(x);if(oe===-1)return[];const Q=[];let K=oe-1;for(;K>=0&&de[K]===x-(oe-K);)Q.push(de[K--]);for(Q.reverse(),K=oe;K<de.length&&de[K]===x+(K-oe);)Q.push(de[K++]);return Q}function ee(de,x){const oe=[];let Q=0,K=0;for(;Q<de.length||K<x.length;)if(Q>=de.length)oe.push(x[K++]);else if(K>=x.length)oe.push(de[Q++]);else if(de[Q]===x[K]){oe.push(de[Q]),Q++,K++;continue}else de[Q]<x[K]?oe.push(de[Q++]):oe.push(x[K++]);return oe}function H(de,x){const oe=[];let Q=0,K=0;for(;Q<de.length||K<x.length;)if(Q>=de.length)oe.push(x[K++]);else if(K>=x.length)oe.push(de[Q++]);else if(de[Q]===x[K]){Q++,K++;continue}else de[Q]<x[K]?oe.push(de[Q++]):K++;return oe}const q=(de,x)=>de-x;class Z{constructor(x,oe){this._templateId=x,this.renderers=oe}get templateId(){return this._templateId}renderTemplate(x){return this.renderers.map(oe=>oe.renderTemplate(x))}renderElement(x,oe,Q,K){let ne=0;for(const z of this.renderers)z.renderElement(x,oe,Q[ne++],K)}disposeElement(x,oe,Q,K){var ne;let z=0;for(const J of this.renderers)(ne=J.disposeElement)===null||ne===void 0||ne.call(J,x,oe,Q[z],K),z+=1}disposeTemplate(x){let oe=0;for(const Q of this.renderers)Q.disposeTemplate(x[oe++])}}class ie{constructor(x){this.accessibilityProvider=x,this.templateId="a18n"}renderTemplate(x){return x}renderElement(x,oe,Q){const K=this.accessibilityProvider.getAriaLabel(x);K?Q.setAttribute("aria-label",K):Q.removeAttribute("aria-label");const ne=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(x);typeof ne=="number"?Q.setAttribute("aria-level",`${ne}`):Q.removeAttribute("aria-level")}disposeTemplate(x){}}class Y{constructor(x,oe){this.list=x,this.dnd=oe}getDragElements(x){const oe=this.list.getSelectedElements();return oe.indexOf(x)>-1?oe:[x]}getDragURI(x){return this.dnd.getDragURI(x)}getDragLabel(x,oe){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(x,oe)}onDragStart(x,oe){var Q,K;(K=(Q=this.dnd).onDragStart)===null||K===void 0||K.call(Q,x,oe)}onDragOver(x,oe,Q,K){return this.dnd.onDragOver(x,oe,Q,K)}onDragLeave(x,oe,Q,K){var ne,z;(z=(ne=this.dnd).onDragLeave)===null||z===void 0||z.call(ne,x,oe,Q,K)}onDragEnd(x){var oe,Q;(Q=(oe=this.dnd).onDragEnd)===null||Q===void 0||Q.call(oe,x)}drop(x,oe,Q,K){this.dnd.drop(x,oe,Q,K)}}class te{constructor(x,oe,Q,K,ne=A){var z,J,G,U;this.user=x,this._options=ne,this.focus=new p("focused"),this.anchor=new p("anchor"),this.eventBufferer=new i.EventBufferer,this._ariaLabel="",this.disposables=new s.DisposableStore,this._onDidDispose=new i.Emitter,this.onDidDispose=this._onDidDispose.event;const j=this._options.accessibilityProvider&&this._options.accessibilityProvider.getWidgetRole?(z=this._options.accessibilityProvider)===null||z===void 0?void 0:z.getWidgetRole():"list";this.selection=new _(j!=="listbox"),(0,l.mixin)(ne,V,!1);const ce=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=ne.accessibilityProvider,this.accessibilityProvider&&(ce.push(new ie(this.accessibilityProvider)),(G=(J=this.accessibilityProvider).onDidChangeActiveDescendant)===null||G===void 0||G.call(J,this.onDid
|
||
|
.monaco-menu {
|
||
|
font-size: 13px;
|
||
|
border-radius: 5px;
|
||
|
min-width: 160px;
|
||
|
}
|
||
|
|
||
|
${(0,u.formatRule)(s.Codicon.menuSelection)}
|
||
|
${(0,u.formatRule)(s.Codicon.menuSubmenu)}
|
||
|
|
||
|
.monaco-menu .monaco-action-bar {
|
||
|
text-align: right;
|
||
|
overflow: hidden;
|
||
|
white-space: nowrap;
|
||
|
}
|
||
|
|
||
|
.monaco-menu .monaco-action-bar .actions-container {
|
||
|
display: flex;
|
||
|
margin: 0 auto;
|
||
|
padding: 0;
|
||
|
width: 100%;
|
||
|
justify-content: flex-end;
|
||
|
}
|
||
|
|
||
|
.monaco-menu .monaco-action-bar.vertical .actions-container {
|
||
|
display: inline-block;
|
||
|
}
|
||
|
|
||
|
.monaco-menu .monaco-action-bar.reverse .actions-container {
|
||
|
flex-direction: row-reverse;
|
||
|
}
|
||
|
|
||
|
.monaco-menu .monaco-action-bar .action-item {
|
||
|
cursor: pointer;
|
||
|
display: inline-block;
|
||
|
transition: transform 50ms ease;
|
||
|
position: relative; /* DO NOT REMOVE - this is the key to preventing the ghosting icon bug in Chrome 42 */
|
||
|
}
|
||
|
|
||
|
.monaco-menu .monaco-action-bar .action-item.disabled {
|
||
|
cursor: default;
|
||
|
}
|
||
|
|
||
|
.monaco-menu .monaco-action-bar.animated .action-item.active {
|
||
|
transform: scale(1.272019649, 1.272019649); /* 1.272019649 = \u221A\u03C6 */
|
||
|
}
|
||
|
|
||
|
.monaco-menu .monaco-action-bar .action-item .icon,
|
||
|
.monaco-menu .monaco-action-bar .action-item .codicon {
|
||
|
display: inline-block;
|
||
|
}
|
||
|
|
||
|
.monaco-menu .monaco-action-bar .action-item .codicon {
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
}
|
||
|
|
||
|
.monaco-menu .monaco-action-bar .action-label {
|
||
|
font-size: 11px;
|
||
|
margin-right: 4px;
|
||
|
}
|
||
|
|
||
|
.monaco-menu .monaco-action-bar .action-item.disabled .action-label,
|
||
|
.monaco-menu .monaco-action-bar .action-item.disabled .action-label:hover {
|
||
|
color: var(--vscode-disabledForeground);
|
||
|
}
|
||
|
|
||
|
/* Vertical actions */
|
||
|
|
||
|
.monaco-menu .monaco-action-bar.vertical {
|
||
|
text-align: left;
|
||
|
}
|
||
|
|
||
|
.monaco-menu .monaco-action-bar.vertical .action-item {
|
||
|
display: block;
|
||
|
}
|
||
|
|
||
|
.monaco-menu .monaco-action-bar.vertical .action-label.separator {
|
||
|
display: block;
|
||
|
border-bottom: 1px solid var(--vscode-menu-separatorBackground);
|
||
|
padding-top: 1px;
|
||
|
padding: 30px;
|
||
|
}
|
||
|
|
||
|
.monaco-menu .secondary-actions .monaco-action-bar .action-label {
|
||
|
margin-left: 6px;
|
||
|
}
|
||
|
|
||
|
/* Action Items */
|
||
|
.monaco-menu .monaco-action-bar .action-item.select-container {
|
||
|
overflow: hidden; /* somehow the dropdown overflows its container, we prevent it here to not push */
|
||
|
flex: 1;
|
||
|
max-width: 170px;
|
||
|
min-width: 60px;
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
justify-content: center;
|
||
|
margin-right: 10px;
|
||
|
}
|
||
|
|
||
|
.monaco-menu .monaco-action-bar.vertical {
|
||
|
margin-left: 0;
|
||
|
overflow: visible;
|
||
|
}
|
||
|
|
||
|
.monaco-menu .monaco-action-bar.vertical .actions-container {
|
||
|
display: block;
|
||
|
}
|
||
|
|
||
|
.monaco-menu .monaco-action-bar.vertical .action-item {
|
||
|
padding: 0;
|
||
|
transform: none;
|
||
|
display: flex;
|
||
|
}
|
||
|
|
||
|
.monaco-menu .monaco-action-bar.vertical .action-item.active {
|
||
|
transform: none;
|
||
|
}
|
||
|
|
||
|
.monaco-menu .monaco-action-bar.vertical .action-menu-item {
|
||
|
flex: 1 1 auto;
|
||
|
display: flex;
|
||
|
height: 2em;
|
||
|
align-items: center;
|
||
|
position: relative;
|
||
|
}
|
||
|
|
||
|
.monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .keybinding,
|
||
|
.monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .keybinding {
|
||
|
opacity: unset;
|
||
|
}
|
||
|
|
||
|
.monaco-menu .monaco-action-bar.vertical .action-label {
|
||
|
flex: 1 1 auto;
|
||
|
text-decoration: none;
|
||
|
padding: 0 1em;
|
||
|
background: none;
|
||
|
font-size: 12px;
|
||
|
line-height: 1;
|
||
|
}
|
||
|
|
||
|
.monaco-menu .monaco-action-bar.vertical .keybinding,
|
||
|
.monaco-menu .monaco-action-bar.vertical .submenu-indicator {
|
||
|
display: inline-block;
|
||
|
flex: 2 1 auto;
|
||
|
padding: 0 1em;
|
||
|
text-align: right;
|
||
|
font-size: 12px;
|
||
|
line-height: 1;
|
||
|
}
|
||
|
|
||
|
.monaco-menu .monaco-action-bar.vertical .submenu-indicator {
|
||
|
height: 100%;
|
||
|
}
|
||
|
|
||
|
.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon {
|
||
|
font-size: 16px !important;
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
}
|
||
|
|
||
|
.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon::before {
|
||
|
margin-left: auto;
|
||
|
margin-right: -20px;
|
||
|
}
|
||
|
|
||
|
.monaco-menu .monaco-action-bar.vertical .action-item.disabled .keybinding,
|
||
|
.monaco-menu .monaco-action-bar.vertical .action-item.disabled .submenu-indicator {
|
||
|
opacity: 0.4;
|
||
|
}
|
||
|
|
||
|
.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator) {
|
||
|
display: inline-block;
|
||
|
box-sizing: border-box;
|
||
|
margin: 0;
|
||
|
}
|
||
|
|
||
|
.monaco-menu .monaco-action-bar.vertical .action-item {
|
||
|
position: static;
|
||
|
overflow: visible;
|
||
|
}
|
||
|
|
||
|
.monaco-menu .monaco-action-bar.vertical .action-item .monaco-submenu {
|
||
|
position: absolute;
|
||
|
}
|
||
|
|
||
|
.monaco-menu .monaco-action-bar.vertical .action-label.separator {
|
||
|
width: 100%;
|
||
|
height: 0px !important;
|
||
|
opacity: 1;
|
||
|
}
|
||
|
|
||
|
.monaco-menu .monaco-action-bar.vertical .action-label.separator.text {
|
||
|
padding: 0.7em 1em 0.1em 1em;
|
||
|
font-weight: bold;
|
||
|
opacity: 1;
|
||
|
}
|
||
|
|
||
|
.monaco-menu .monaco-action-bar.vertical .action-label:hover {
|
||
|
color: inherit;
|
||
|
}
|
||
|
|
||
|
.monaco-menu .monaco-action-bar.vertical .menu-item-check {
|
||
|
position: absolute;
|
||
|
visibility: hidden;
|
||
|
width: 1em;
|
||
|
height: 100%;
|
||
|
}
|
||
|
|
||
|
.monaco-menu .monaco-action-bar.vertical .action-menu-item.checked .menu-item-check {
|
||
|
visibility: visible;
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
justify-content: center;
|
||
|
}
|
||
|
|
||
|
/* Context Menu */
|
||
|
|
||
|
.context-view.monaco-menu-container {
|
||
|
outline: 0;
|
||
|
border: none;
|
||
|
animation: fadeIn 0.083s linear;
|
||
|
-webkit-app-region: no-drag;
|
||
|
}
|
||
|
|
||
|
.context-view.monaco-menu-container :focus,
|
||
|
.context-view.monaco-menu-container .monaco-action-bar.vertical:focus,
|
||
|
.context-view.monaco-menu-container .monaco-action-bar.vertical :focus {
|
||
|
outline: 0;
|
||
|
}
|
||
|
|
||
|
.hc-black .context-view.monaco-menu-container,
|
||
|
.hc-light .context-view.monaco-menu-container,
|
||
|
:host-context(.hc-black) .context-view.monaco-menu-container,
|
||
|
:host-context(.hc-light) .context-view.monaco-menu-container {
|
||
|
box-shadow: none;
|
||
|
}
|
||
|
|
||
|
.hc-black .monaco-menu .monaco-action-bar.vertical .action-item.focused,
|
||
|
.hc-light .monaco-menu .monaco-action-bar.vertical .action-item.focused,
|
||
|
:host-context(.hc-black) .monaco-menu .monaco-action-bar.vertical .action-item.focused,
|
||
|
:host-context(.hc-light) .monaco-menu .monaco-action-bar.vertical .action-item.focused {
|
||
|
background: none;
|
||
|
}
|
||
|
|
||
|
/* Vertical Action Bar Styles */
|
||
|
|
||
|
.monaco-menu .monaco-action-bar.vertical {
|
||
|
padding: .6em 0;
|
||
|
}
|
||
|
|
||
|
.monaco-menu .monaco-action-bar.vertical .action-menu-item {
|
||
|
height: 2em;
|
||
|
}
|
||
|
|
||
|
.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator),
|
||
|
.monaco-menu .monaco-action-bar.vertical .keybinding {
|
||
|
font-size: inherit;
|
||
|
padding: 0 2em;
|
||
|
}
|
||
|
|
||
|
.monaco-menu .monaco-action-bar.vertical .menu-item-check {
|
||
|
font-size: inherit;
|
||
|
width: 2em;
|
||
|
}
|
||
|
|
||
|
.monaco-menu .monaco-action-bar.vertical .action-label.separator {
|
||
|
font-size: inherit;
|
||
|
margin: 5px 0 !important;
|
||
|
padding: 0;
|
||
|
border-radius: 0;
|
||
|
}
|
||
|
|
||
|
.linux .monaco-menu .monaco-action-bar.vertical .action-label.separator,
|
||
|
:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .action-label.separator {
|
||
|
margin-left: 0;
|
||
|
margin-right: 0;
|
||
|
}
|
||
|
|
||
|
.monaco-menu .monaco-action-bar.vertical .submenu-indicator {
|
||
|
font-size: 60%;
|
||
|
padding: 0 1.8em;
|
||
|
}
|
||
|
|
||
|
.linux .monaco-menu .monaco-action-bar.vertical .submenu-indicator {
|
||
|
:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .submenu-indicator {
|
||
|
height: 100%;
|
||
|
mask-size: 10px 10px;
|
||
|
-webkit-mask-size: 10px 10px;
|
||
|
}
|
||
|
|
||
|
.monaco-menu .action-item {
|
||
|
cursor: default;
|
||
|
}`;if(y){E+=`
|
||
|
/* Arrows */
|
||
|
.monaco-scrollable-element > .scrollbar > .scra {
|
||
|
cursor: pointer;
|
||
|
font-size: 11px !important;
|
||
|
}
|
||
|
|
||
|
.monaco-scrollable-element > .visible {
|
||
|
opacity: 1;
|
||
|
|
||
|
/* Background rule added for IE9 - to allow clicks on dom node */
|
||
|
background:rgba(0,0,0,0);
|
||
|
|
||
|
transition: opacity 100ms linear;
|
||
|
}
|
||
|
.monaco-scrollable-element > .invisible {
|
||
|
opacity: 0;
|
||
|
pointer-events: none;
|
||
|
}
|
||
|
.monaco-scrollable-element > .invisible.fade {
|
||
|
transition: opacity 800ms linear;
|
||
|
}
|
||
|
|
||
|
/* Scrollable Content Inset Shadow */
|
||
|
.monaco-scrollable-element > .shadow {
|
||
|
position: absolute;
|
||
|
display: none;
|
||
|
}
|
||
|
.monaco-scrollable-element > .shadow.top {
|
||
|
display: block;
|
||
|
top: 0;
|
||
|
left: 3px;
|
||
|
height: 3px;
|
||
|
width: 100%;
|
||
|
}
|
||
|
.monaco-scrollable-element > .shadow.left {
|
||
|
display: block;
|
||
|
top: 3px;
|
||
|
left: 0;
|
||
|
height: 100%;
|
||
|
width: 3px;
|
||
|
}
|
||
|
.monaco-scrollable-element > .shadow.top-left-corner {
|
||
|
display: block;
|
||
|
top: 0;
|
||
|
left: 0;
|
||
|
height: 3px;
|
||
|
width: 3px;
|
||
|
}
|
||
|
`;const N=S.scrollbarShadow;N&&(E+=`
|
||
|
.monaco-scrollable-element > .shadow.top {
|
||
|
box-shadow: ${N} 0 6px 6px -6px inset;
|
||
|
}
|
||
|
|
||
|
.monaco-scrollable-element > .shadow.left {
|
||
|
box-shadow: ${N} 6px 0 6px -6px inset;
|
||
|
}
|
||
|
|
||
|
.monaco-scrollable-element > .shadow.top.left {
|
||
|
box-shadow: ${N} 6px 6px 6px -6px inset;
|
||
|
}
|
||
|
`);const T=S.scrollbarSliderBackground;T&&(E+=`
|
||
|
.monaco-scrollable-element > .scrollbar > .slider {
|
||
|
background: ${T};
|
||
|
}
|
||
|
`);const R=S.scrollbarSliderHoverBackground;R&&(E+=`
|
||
|
.monaco-scrollable-element > .scrollbar > .slider:hover {
|
||
|
background: ${R};
|
||
|
}
|
||
|
`);const F=S.scrollbarSliderActiveBackground;F&&(E+=`
|
||
|
.monaco-scrollable-element > .scrollbar > .slider.active {
|
||
|
background: ${F};
|
||
|
}
|
||
|
`)}return E}}),define(re[261],ae([1,0,7,135,75,18,31,6,2,124,161,19,348]),function($,e,w,C,k,I,L,b,v,u,g,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SplitView=e.Sizing=void 0;const i={separatorBorder:L.Color.transparent};class t{constructor(c,f,p,_){this.container=c,this.view=f,this.disposable=_,this._cachedVisibleSize=void 0,typeof p=="number"?(this._size=p,this._cachedVisibleSize=void 0,c.classList.add("visible")):(this._size=0,this._cachedVisibleSize=p.cachedVisibleSize)}set size(c){this._size=c}get size(){return this._size}get visible(){return typeof this._cachedVisibleSize=="undefined"}setVisible(c,f){var p,_;c!==this.visible&&(c?(this.size=(0,u.clamp)(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize=typeof f=="number"?f:this.size,this.size=0),this.container.classList.toggle("visible",c),(_=(p=this.view).setVisible)===null||_===void 0||_.call(p,c))}get minimumSize(){return this.visible?this.view.minimumSize:0}get viewMinimumSize(){return this.view.minimumSize}get maximumSize(){return this.visible?this.view.maximumSize:0}get viewMaximumSize(){return this.view.maximumSize}get priority(){return this.view.priority}get snap(){return!!this.view.snap}set enabled(c){this.container.style.pointerEvents=c?"":"none"}layout(c,f){this.layoutContainer(c),this.view.layout(this.size,c,f)}dispose(){return this.disposable.dispose(),this.view}}class s extends t{layoutContainer(c){this.container.style.top=`${c}px`,this.container.style.height=`${this.size}px`}}class d extends t{layoutContainer(c){this.container.style.left=`${c}px`,this.container.style.width=`${this.size}px`}}var l;(function(o){o[o.Idle=0]="Idle",o[o.Busy=1]="Busy"})(l||(l={}));var a;(function(o){o.Distribute={type:"distribute"};function c(p){return{type:"split",index:p}}o.Split=c;function f(p){return{type:"invisible",cachedVisibleSize:p}}o.Invisible=f})(a=e.Sizing||(e.Sizing={}));class r extends v.Disposable{constructor(c,f={}){var p,_,m,h,S;super();this.size=0,this.contentSize=0,this.proportions=void 0,this.viewItems=[],this.sashItems=[],this.state=l.Idle,this._onDidSashChange=this._register(new b.Emitter),this._onDidSashReset=this._register(new b.Emitter),this._startSnappingEnabled=!0,this._endSnappingEnabled=!0,this.onDidSashChange=this._onDidSashChange.event,this.onDidSashReset=this._onDidSashReset.event,this.orientation=(p=f.orientation)!==null&&p!==void 0?p:0,this.inverseAltBehavior=(_=f.inverseAltBehavior)!==null&&_!==void 0?_:!1,this.proportionalLayout=(m=f.proportionalLayout)!==null&&m!==void 0?m:!0,this.getSashOrthogonalSize=f.getSashOrthogonalSize,this.el=document.createElement("div"),this.el.classList.add("monaco-split-view2"),this.el.classList.add(this.orientation===0?"vertical":"horizontal"),c.appendChild(this.el),this.sashContainer=(0,w.append)(this.el,(0,w.$)(".sash-container")),this.viewContainer=(0,w.$)(".split-view-container"),this.scrollable=new g.Scrollable({forceIntegerValues:!0,smoothScrollDuration:125,scheduleAtNextAnimationFrame:w.scheduleAtNextAnimationFrame}),this.scrollableElement=this._register(new k.SmoothScrollableElement(this.viewContainer,{vertical:this.orientation===0?(h=f.scrollbarVisibility)!==null&&h!==void 0?h:1:2,horizontal:this.orientation===1?(S=f.scrollbarVisibility)!==null&&S!==void 0?S:1:2},this.scrollable)),this.onDidScroll=this.scrollableElement.onScroll,this._register(this.onDidScroll(y=>{this.viewContainer.scrollTop=y.scrollTop,this.viewContainer.scrollLeft=y.scrollLeft})),(0,w.append)(this.el,this.scrollableElement.getDomNode()),this.style(f.styles||i),f.descriptor&&(this.size=f.descriptor.size,f.descriptor.views.forEach((y,E)=>{const N=n.isUndefined(y.visible)||y.visible?y.size:{type:"invisible",cachedVisibleSize:y.size},T=y.view;this.doAddView(T,N,E,!0)}),this.contentSize=this.viewItems.reduce((y,E)=>y+E.size,0),this.saveProportions())}get orthogonalStartSash(){return this._orthogonalStartSash}get orthogonalEndSash(){return this._orthogonalEndSash}get startSnappingEnabled(){return this._startSnappingEnabled}get endSnappi
|
||
|
top: ${this.virtualDelegate.headerRowHeight+1}px;
|
||
|
height: calc(100% - ${this.virtualDelegate.headerRowHeight}px);
|
||
|
}`),this.styleElement.textContent=t.join(`
|
||
|
`),this.list.style(i)}getSelectedElements(){return this.list.getSelectedElements()}getSelection(){return this.list.getSelection()}getFocus(){return this.list.getFocus()}dispose(){this.disposables.dispose()}}e.Table=g,g.InstanceCount=0}),define(re[162],ae([1,0,68,27,31,6,350]),function($,e,w,C,k,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Toggle=void 0;const L={inputActiveOptionBorder:k.Color.fromHex("#007ACC00"),inputActiveOptionForeground:k.Color.fromHex("#FFFFFF"),inputActiveOptionBackground:k.Color.fromHex("#0E639C50")};class b extends w.Widget{constructor(u){super();this._onChange=this._register(new I.Emitter),this.onChange=this._onChange.event,this._onKeyDown=this._register(new I.Emitter),this.onKeyDown=this._onKeyDown.event,this._opts=Object.assign(Object.assign({},L),u),this._checked=this._opts.isChecked;const g=["monaco-custom-toggle"];this._opts.icon&&(this._icon=this._opts.icon,g.push(...C.CSSIcon.asClassNameArray(this._icon))),this._opts.actionClassName&&g.push(...this._opts.actionClassName.split(" ")),this._checked&&g.push("checked"),this.domNode=document.createElement("div"),this.domNode.title=this._opts.title,this.domNode.classList.add(...g),this._opts.notFocusable||(this.domNode.tabIndex=0),this.domNode.setAttribute("role","checkbox"),this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.setAttribute("aria-label",this._opts.title),this.applyStyles(),this.onclick(this.domNode,n=>{this.enabled&&(this.checked=!this._checked,this._onChange.fire(!1),n.preventDefault())}),this.ignoreGesture(this.domNode),this.onkeydown(this.domNode,n=>{if(n.keyCode===10||n.keyCode===3){this.checked=!this._checked,this._onChange.fire(!0),n.preventDefault(),n.stopPropagation();return}this._onKeyDown.fire(n)})}get enabled(){return this.domNode.getAttribute("aria-disabled")!=="true"}focus(){this.domNode.focus()}get checked(){return this._checked}set checked(u){this._checked=u,this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.classList.toggle("checked",this._checked),this.applyStyles()}width(){return 2+2+2+16}style(u){u.inputActiveOptionBorder&&(this._opts.inputActiveOptionBorder=u.inputActiveOptionBorder),u.inputActiveOptionForeground&&(this._opts.inputActiveOptionForeground=u.inputActiveOptionForeground),u.inputActiveOptionBackground&&(this._opts.inputActiveOptionBackground=u.inputActiveOptionBackground),this.applyStyles()}applyStyles(){this.domNode&&(this.domNode.style.borderColor=this._checked&&this._opts.inputActiveOptionBorder?this._opts.inputActiveOptionBorder.toString():"",this.domNode.style.color=this._checked&&this._opts.inputActiveOptionForeground?this._opts.inputActiveOptionForeground.toString():"inherit",this.domNode.style.backgroundColor=this._checked&&this._opts.inputActiveOptionBackground?this._opts.inputActiveOptionBackground.toString():"")}enable(){this.domNode.setAttribute("aria-disabled",String(!1))}disable(){this.domNode.setAttribute("aria-disabled",String(!0))}}e.Toggle=b}),define(re[262],ae([1,0,162,27,464]),function($,e,w,C,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RegexToggle=e.WholeWordsToggle=e.CaseSensitiveToggle=void 0;const I=k.localize(0,null),L=k.localize(1,null),b=k.localize(2,null);class v extends w.Toggle{constructor(i){super({icon:C.Codicon.caseSensitive,title:I+i.appendTitle,isChecked:i.isChecked,inputActiveOptionBorder:i.inputActiveOptionBorder,inputActiveOptionForeground:i.inputActiveOptionForeground,inputActiveOptionBackground:i.inputActiveOptionBackground})}}e.CaseSensitiveToggle=v;class u extends w.Toggle{constructor(i){super({icon:C.Codicon.wholeWord,title:L+i.appendTitle,isChecked:i.isChecked,inputActiveOptionBorder:i.inputActiveOptionBorder,inputActiveOptionForeground:i.inputActiveOptionForeground,inputActiveOptionBackground:i.inputActiveOptionBackground})}}e.WholeWordsToggle=u;class g extends w.Toggle{constructor(i){super({icon:C.Codicon.regex,title:b+i.appendTitle,isChecked:i.isChecked,inputActiveOptionBorder:i.inputActiveOptionBorder,inputActiveOptionForeground:i.inputActiveOptionForegroun
|
||
|
`),(q=this.findController)===null||q===void 0||q.style(H),this.view.style(H)}getParentElement(H){const q=this.model.getParentNodeLocation(H);return this.model.getNode(q).element}getFirstElementChild(H){return this.model.getFirstElementChild(H)}getNode(H){return this.model.getNode(H)}collapse(H,q=!1){return this.model.setCollapsed(H,!0,q)}expand(H,q=!1){return this.model.setCollapsed(H,!1,q)}isCollapsible(H){return this.model.isCollapsible(H)}setCollapsible(H,q){return this.model.setCollapsible(H,q)}isCollapsed(H){return this.model.isCollapsed(H)}refilter(){this._onWillRefilter.fire(void 0),this.model.refilter()}setSelection(H,q){const Z=H.map(Y=>this.model.getNode(Y));this.selection.set(Z,q);const ie=H.map(Y=>this.model.getListIndex(Y)).filter(Y=>Y>-1);this.view.setSelection(ie,q,!0)}getSelection(){return this.selection.get()}setFocus(H,q){const Z=H.map(Y=>this.model.getNode(Y));this.focus.set(Z,q);const ie=H.map(Y=>this.model.getListIndex(Y)).filter(Y=>Y>-1);this.view.setFocus(ie,q,!0)}getFocus(){return this.focus.get()}reveal(H,q){this.model.expandTo(H);const Z=this.model.getListIndex(H);Z!==-1&&this.view.reveal(Z,q)}onLeftArrow(H){H.preventDefault(),H.stopPropagation();const q=this.view.getFocusedElements();if(q.length===0)return;const Z=q[0],ie=this.model.getNodeLocation(Z);if(!this.model.setCollapsed(ie,!0)){const te=this.model.getParentNodeLocation(ie);if(!te)return;const de=this.model.getListIndex(te);this.view.reveal(de),this.view.setFocus([de])}}onRightArrow(H){H.preventDefault(),H.stopPropagation();const q=this.view.getFocusedElements();if(q.length===0)return;const Z=q[0],ie=this.model.getNodeLocation(Z);if(!this.model.setCollapsed(ie,!1)){if(!Z.children.some(x=>x.visible))return;const[te]=this.view.getFocus(),de=te+1;this.view.reveal(de),this.view.setFocus([de])}}onSpace(H){H.preventDefault(),H.stopPropagation();const q=this.view.getFocusedElements();if(q.length===0)return;const Z=q[0],ie=this.model.getNodeLocation(Z),Y=H.browserEvent.altKey;this.model.setCollapsed(ie,void 0,Y)}dispose(){(0,o.dispose)(this.disposables),this.view.dispose()}}e.AbstractTree=X}),define(re[494],ae([1,0,163,194]),function($,e,w,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DataTree=void 0;class k extends w.AbstractTree{constructor(L,b,v,u,g,n={}){super(L,b,v,u,n);this.user=L,this.dataSource=g,this.identityProvider=n.identityProvider}createModel(L,b,v){return new C.ObjectTreeModel(L,b,v)}}e.DataTree=k}),define(re[264],ae([1,0,163,479,194,103,55]),function($,e,w,C,k,I,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CompressibleObjectTree=e.ObjectTree=void 0;class b extends w.AbstractTree{constructor(i,t,s,d,l={}){super(i,t,s,d,l);this.user=i}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}setChildren(i,t=L.Iterable.empty(),s){this.model.setChildren(i,t,s)}rerender(i){if(i===void 0){this.view.rerender();return}this.model.rerender(i)}hasElement(i){return this.model.has(i)}createModel(i,t,s){return new k.ObjectTreeModel(i,t,s)}}e.ObjectTree=b;class v{constructor(i,t){this._compressedTreeNodeProvider=i,this.renderer=t,this.templateId=t.templateId,t.onDidChangeTwistieState&&(this.onDidChangeTwistieState=t.onDidChangeTwistieState)}get compressedTreeNodeProvider(){return this._compressedTreeNodeProvider()}renderTemplate(i){const t=this.renderer.renderTemplate(i);return{compressedTreeNode:void 0,data:t}}renderElement(i,t,s,d){const l=this.compressedTreeNodeProvider.getCompressedTreeNode(i.element);l.element.elements.length===1?(s.compressedTreeNode=void 0,this.renderer.renderElement(i,t,s.data,d)):(s.compressedTreeNode=l,this.renderer.renderCompressedElements(l,t,s.data,d))}disposeElement(i,t,s,d){var l,a,r,o;s.compressedTreeNode?(a=(l=this.renderer).disposeCompressedElements)===null||a===void 0||a.call(l,s.compressedTreeNode,t,s.data,d):(o=(r=this.renderer).disposeElement)===null||o===void 0||o.call(r,i,t,s.data,d)}disposeTemplate(i){this.renderer.disposeTemplate(i.data)}renderTwistie(i,t){return this.renderer.renderTwistie?this.renderer.renderTwistie(i,t):!1}}ke([I.memoize],
|
||
|
`):c.text,f),o.preventDefault(),o.clipboardData&&l.setTextData(o.clipboardData,c.text,c.html,f)}}e.TextAreaInput=d;class l{static getTextData(o){const c=o.getData(v.Mimes.text);let f=null;const p=o.getData("vscode-editor-data");if(typeof p=="string")try{f=JSON.parse(p),f.version!==1&&(f=null)}catch{}return c.length===0&&f===null&&o.files.length>0?[Array.prototype.slice.call(o.files,0).map(m=>m.name).join(`
|
||
|
`),null]:[c,f]}static setTextData(o,c,f,p){o.setData(v.Mimes.text,c),typeof f=="string"&&o.setData("text/html",f),o.setData("vscode-editor-data",JSON.stringify(p))}}class a extends b.Disposable{constructor(o){super();this._actual=o,this.onKeyDown=this._register(C.createEventEmitter(this._actual,"keydown")).event,this.onKeyUp=this._register(C.createEventEmitter(this._actual,"keyup")).event,this.onCompositionStart=this._register(C.createEventEmitter(this._actual,"compositionstart")).event,this.onCompositionUpdate=this._register(C.createEventEmitter(this._actual,"compositionupdate")).event,this.onCompositionEnd=this._register(C.createEventEmitter(this._actual,"compositionend")).event,this.onInput=this._register(C.createEventEmitter(this._actual,"input")).event,this.onCut=this._register(C.createEventEmitter(this._actual,"cut")).event,this.onCopy=this._register(C.createEventEmitter(this._actual,"copy")).event,this.onPaste=this._register(C.createEventEmitter(this._actual,"paste")).event,this.onFocus=this._register(C.createEventEmitter(this._actual,"focus")).event,this.onBlur=this._register(C.createEventEmitter(this._actual,"blur")).event,this._onSyntheticTap=this._register(new L.Emitter),this.onSyntheticTap=this._onSyntheticTap.event,this._ignoreSelectionChangeTime=0,this._register(C.addDisposableListener(this._actual,i.Tap,()=>this._onSyntheticTap.fire()))}hasFocus(){const o=C.getShadowRoot(this._actual);return o?o.activeElement===this._actual:C.isInDOM(this._actual)?document.activeElement===this._actual:!1}setIgnoreSelectionChangeTime(o){this._ignoreSelectionChangeTime=Date.now()}getIgnoreSelectionChangeTime(){return this._ignoreSelectionChangeTime}resetSelectionChangeTime(){this._ignoreSelectionChangeTime=0}getValue(){return this._actual.value}setValue(o,c){const f=this._actual;f.value!==c&&(this.setIgnoreSelectionChangeTime("setValue"),f.value=c)}getSelectionStart(){return this._actual.selectionDirection==="backward"?this._actual.selectionEnd:this._actual.selectionStart}getSelectionEnd(){return this._actual.selectionDirection==="backward"?this._actual.selectionStart:this._actual.selectionEnd}setSelectionRange(o,c,f){const p=this._actual;let _=null;const m=C.getShadowRoot(p);m?_=m.activeElement:_=document.activeElement;const h=_===p,S=p.selectionStart,y=p.selectionEnd;if(h&&S===c&&y===f){w.isFirefox&&window.parent!==window&&p.focus();return}if(h){this.setIgnoreSelectionChangeTime("setSelectionRange"),p.setSelectionRange(c,f),w.isFirefox&&window.parent!==window&&p.focus();return}try{const E=C.saveParentsScrollTop(p);this.setIgnoreSelectionChangeTime("setSelectionRange"),p.focus(),p.setSelectionRange(c,f),C.restoreParentsScrollTop(p,E)}catch{}}}e.TextAreaWrapper=a}),define(re[500],ae([1,0,7,33,47]),function($,e,w,C,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewContentWidgets=void 0;class I{constructor(g,n){this._coordinateBrand=void 0,this.top=g,this.left=n}}class L extends k.ViewPart{constructor(g,n){super(g);this._viewDomNode=n,this._widgets={},this.domNode=(0,C.createFastDomNode)(document.createElement("div")),k.PartFingerprints.write(this.domNode,1),this.domNode.setClassName("contentWidgets"),this.domNode.setPosition("absolute"),this.domNode.setTop(0),this.overflowingContentWidgetsDomNode=(0,C.createFastDomNode)(document.createElement("div")),k.PartFingerprints.write(this.overflowingContentWidgetsDomNode,2),this.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets")}dispose(){super.dispose(),this._widgets={}}onConfigurationChanged(g){const n=Object.keys(this._widgets);for(const i of n)this._widgets[i].onConfigurationChanged(g);return!0}onDecorationsChanged(g){return!0}onFlushed(g){return!0}onLineMappingChanged(g){const n=Object.keys(this._widgets);for(const i of n)this._widgets[i].onLineMappingChanged(g);return!0}onLinesChanged(g){return!0}onLinesDeleted(g){return!0}onLinesInserted(g){return!0}onScrollChanged(g){return!0}onZonesChanged(g){return!0}addWidget(g){const n=new b(this._context,this._viewDomNode,g);this._widgets[n.id]=n,n.allowEditorOverflow?this.overflowingContentWi
|
||
|
`;case 2:return`\r
|
||
|
`;case 0:return this.getEOL();default:throw new Error("Unknown EOL preference")}}setEOL(i){this._pieceTree.setEOL(i)}applyEdits(i,t,s){let d=this._mightContainRTL,l=this._mightContainUnusualLineTerminators,a=this._mightContainNonBasicASCII,r=!0,o=[];for(let S=0;S<i.length;S++){const y=i[S];r&&y._isTracked&&(r=!1);const E=y.range;if(y.text){let O=!0;a||(O=!C.isBasicASCII(y.text),a=O),!d&&O&&(d=C.containsRTL(y.text)),!l&&O&&(l=C.containsUnusualLineTerminators(y.text))}let N="",T=0,R=0,F=0;if(y.text){let O;[T,R,F,O]=(0,b.countEOL)(y.text);const D=this.getEOL();O===0||O===(D===`\r
|
||
|
`?2:1)?N=y.text:N=y.text.replace(/\r\n|\r|\n/g,D)}o[S]={sortIndex:S,identifier:y.identifier||null,range:E,rangeOffset:this.getOffsetAt(E.startLineNumber,E.startColumn),rangeLength:this.getValueLengthInRange(E),text:N,eolCount:T,firstLineLength:R,lastLineLength:F,forceMoveMarkers:Boolean(y.forceMoveMarkers),isAutoWhitespaceEdit:y.isAutoWhitespaceEdit||!1}}o.sort(g._sortOpsAscending);let c=!1;for(let S=0,y=o.length-1;S<y;S++){const E=o[S].range.getEndPosition(),N=o[S+1].range.getStartPosition();if(N.isBeforeOrEqual(E)){if(N.isBefore(E))throw new Error("Overlapping ranges are not allowed!");c=!0}}r&&(o=this._reduceOperations(o));const f=s||t?g._getInverseEditRanges(o):[],p=[];if(t)for(let S=0;S<o.length;S++){const y=o[S],E=f[S];if(y.isAutoWhitespaceEdit&&y.range.isEmpty())for(let N=E.startLineNumber;N<=E.endLineNumber;N++){let T="";N===E.startLineNumber&&(T=this.getLineContent(y.range.startLineNumber),C.firstNonWhitespaceIndex(T)!==-1)||p.push({lineNumber:N,oldContent:T})}}let _=null;if(s){let S=0;_=[];for(let y=0;y<o.length;y++){const E=o[y],N=f[y],T=this.getValueInRange(E.range),R=E.rangeOffset+S;S+=E.text.length-T.length,_[y]={sortIndex:E.sortIndex,identifier:E.identifier,range:N,text:T,textChange:new v.TextChange(E.rangeOffset,T,R,E.text)}}c||_.sort((y,E)=>y.sortIndex-E.sortIndex)}this._mightContainRTL=d,this._mightContainUnusualLineTerminators=l,this._mightContainNonBasicASCII=a;const m=this._doApplyEdits(o);let h=null;if(t&&p.length>0){p.sort((S,y)=>y.lineNumber-S.lineNumber),h=[];for(let S=0,y=p.length;S<y;S++){const E=p[S].lineNumber;if(S>0&&p[S-1].lineNumber===E)continue;const N=p[S].oldContent,T=this.getLineContent(E);T.length===0||T===N||C.firstNonWhitespaceIndex(T)!==-1||h.push(E)}}return this._onDidChangeContent.fire(),new I.ApplyEditsResult(_,m,h)}_reduceOperations(i){return i.length<1e3?i:[this._toSingleEditOperation(i)]}_toSingleEditOperation(i){let t=!1;const s=i[0].range,d=i[i.length-1].range,l=new k.Range(s.startLineNumber,s.startColumn,d.endLineNumber,d.endColumn);let a=s.startLineNumber,r=s.startColumn;const o=[];for(let m=0,h=i.length;m<h;m++){const S=i[m],y=S.range;t=t||S.forceMoveMarkers,o.push(this.getValueInRange(new k.Range(a,r,y.startLineNumber,y.startColumn))),S.text.length>0&&o.push(S.text),a=y.endLineNumber,r=y.endColumn}const c=o.join(""),[f,p,_]=(0,b.countEOL)(c);return{sortIndex:0,identifier:i[0].identifier,range:l,rangeOffset:this.getOffsetAt(l.startLineNumber,l.startColumn),rangeLength:this.getValueLengthInRange(l,0),text:c,eolCount:f,firstLineLength:p,lastLineLength:_,forceMoveMarkers:t,isAutoWhitespaceEdit:!1}}_doApplyEdits(i){i.sort(g._sortOpsDescending);const t=[];for(let s=0;s<i.length;s++){const d=i[s],l=d.range.startLineNumber,a=d.range.startColumn,r=d.range.endLineNumber,o=d.range.endColumn;if(l===r&&a===o&&d.text.length===0)continue;d.text?(this._pieceTree.delete(d.rangeOffset,d.rangeLength),this._pieceTree.insert(d.rangeOffset,d.text,!0)):this._pieceTree.delete(d.rangeOffset,d.rangeLength);const c=new k.Range(l,a,r,o);t.push({range:c,rangeLength:d.rangeLength,text:d.text,rangeOffset:d.rangeOffset,forceMoveMarkers:d.forceMoveMarkers})}return t}findMatchesLineByLine(i,t,s,d){return this._pieceTree.findMatchesLineByLine(i,t,s,d)}static _getInverseEditRanges(i){const t=[];let s=0,d=0,l=null;for(let a=0,r=i.length;a<r;a++){const o=i[a];let c,f;l?l.range.endLineNumber===o.range.startLineNumber?(c=s,f=d+(o.range.startColumn-l.range.endColumn)):(c=s+(o.range.startLineNumber-l.range.endLineNumber),f=o.range.startColumn):(c=o.range.startLineNumber,f=o.range.startColumn);let p;if(o.text.length>0){const _=o.eolCount+1;_===1?p=new k.Range(c,f,c,f+o.firstLineLength):p=new k.Range(c,f,c+_-1,o.lastLineLength+1)}else p=new k.Range(c,f,c,f);s=p.endLineNumber,d=p.endColumn,t.push(p),l=o}return t}static _sortOpsAscending(i,t){const s=k.Range.compareRangesUsingEnds(i.range,t.range);return s===0?i.sortIndex-t.sortIndex:s}static _sortOpsDescending(i,t){const s=k.Range.compareRangesUsingEnds(i.range,t.range);return s===0?t.sortIndex-i.sortIndex:-s}}e.PieceTreeTextBuffer=g}),define(re[508],ae([1,0,8,24
|
||
|
`:`\r
|
||
|
`:g>u/2?`\r
|
||
|
`:`
|
||
|
`}create(v){const u=this._getEOL(v),g=this._chunks;if(this._normalizeEOL&&(u===`\r
|
||
|
`&&(this._cr>0||this._lf>0)||u===`
|
||
|
`&&(this._cr>0||this._crlf>0)))for(let i=0,t=g.length;i<t;i++){const s=g[i].buffer.replace(/\r\n|\r|\n/g,u),d=(0,C.createLineStartsFast)(s);g[i]=new C.StringBuffer(s,d)}const n=new k.PieceTreeTextBuffer(g,this._bom,u,this._containsRTL,this._containsUnusualLineTerminators,this._isBasicASCII,this._normalizeEOL);return{textBuffer:n,disposable:n}}}e.PieceTreeTextBufferFactory=I;class L{constructor(){this.chunks=[],this.BOM="",this._hasPreviousChar=!1,this._previousChar=0,this._tmpLineStarts=[],this.cr=0,this.lf=0,this.crlf=0,this.containsRTL=!1,this.containsUnusualLineTerminators=!1,this.isBasicASCII=!0}acceptChunk(v){if(v.length===0)return;this.chunks.length===0&&w.startsWithUTF8BOM(v)&&(this.BOM=w.UTF8_BOM_CHARACTER,v=v.substr(1));const u=v.charCodeAt(v.length-1);u===13||u>=55296&&u<=56319?(this._acceptChunk1(v.substr(0,v.length-1),!1),this._hasPreviousChar=!0,this._previousChar=u):(this._acceptChunk1(v,!1),this._hasPreviousChar=!1,this._previousChar=u)}_acceptChunk1(v,u){!u&&v.length===0||(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+v):this._acceptChunk2(v))}_acceptChunk2(v){const u=(0,C.createLineStarts)(this._tmpLineStarts,v);this.chunks.push(new C.StringBuffer(v,u.lineStarts)),this.cr+=u.cr,this.lf+=u.lf,this.crlf+=u.crlf,this.isBasicASCII&&(this.isBasicASCII=u.isBasicASCII),!this.isBasicASCII&&!this.containsRTL&&(this.containsRTL=w.containsRTL(v)),!this.isBasicASCII&&!this.containsUnusualLineTerminators&&(this.containsUnusualLineTerminators=w.containsUnusualLineTerminators(v))}finish(v=!0){return this._finish(),new I(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,v)}_finish(){if(this.chunks.length===0&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;const v=this.chunks[this.chunks.length-1];v.buffer+=String.fromCharCode(this._previousChar);const u=(0,C.createLineStartsFast)(v.buffer);v.lineStarts=u,this._previousChar===13&&this.cr++}}}e.PieceTreeTextBufferBuilder=L}),define(re[509],ae([1,0,122,17]),function($,e,w,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.encodeSemanticTokensDto=void 0;function k(v){for(let u=0,g=v.length;u<g;u+=4){const n=v[u+0],i=v[u+1],t=v[u+2],s=v[u+3];v[u+0]=s,v[u+1]=t,v[u+2]=i,v[u+3]=n}}function I(v){const u=new Uint8Array(v.buffer,v.byteOffset,v.length*4);return C.isLittleEndian()||k(u),w.VSBuffer.wrap(u)}function L(v){const u=new Uint32Array(b(v));let g=0;if(u[g++]=v.id,v.type==="full")u[g++]=1,u[g++]=v.data.length,u.set(v.data,g),g+=v.data.length;else{u[g++]=2,u[g++]=v.deltas.length;for(const n of v.deltas)u[g++]=n.start,u[g++]=n.deleteCount,n.data?(u[g++]=n.data.length,u.set(n.data,g),g+=n.data.length):u[g++]=0}return I(u)}e.encodeSemanticTokensDto=L;function b(v){let u=0;if(u+=1+1,v.type==="full")u+=1+v.data.length;else{u+=1,u+=(1+1+1)*v.deltas.length;for(const g of v.deltas)g.data&&(u+=g.data.length)}return u}}),define(re[510],ae([1,0,6,2]),function($,e,w,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TokenizationRegistry=void 0;class k{constructor(){this._map=new Map,this._factories=new Map,this._onDidChange=new w.Emitter,this.onDidChange=this._onDidChange.event,this._colorMap=null}fire(b){this._onDidChange.fire({changedLanguages:b,changedColorMap:!1})}register(b,v){return this._map.set(b,v),this.fire([b]),(0,C.toDisposable)(()=>{this._map.get(b)===v&&(this._map.delete(b),this.fire([b]))})}registerFactory(b,v){var u;(u=this._factories.get(b))===null||u===void 0||u.dispose();const g=new I(this,b,v);return this._factories.set(b,g),(0,C.toDisposable)(()=>{const n=this._factories.get(b);!n||n!==g||(this._factories.delete(b),n.dispose())})}getOrCreate(b){return Se(this,void 0,void 0,function*(){const v=this.get(b);if(v)return v;const u=this._factories.get(b);return!u||u.isResolved?null:(yield u.resolve(),this.get(b))})}get(b){return this._map.get(b)||null}isResolved(b){if(this.get(b))return!0;const u=this._factories.get(b);return!!(!u||u.isResolved)}setColorMap(b){this._colorMap=b,this._onDidChange.fire({changedLangua
|
||
|
`)}))).substring(this.parts[0].column-1)}isEmpty(){return this.parts.every(g=>g.lines.length===0)}}e.GhostText=I;class L{constructor(g,n,i){this.column=g,this.lines=n,this.preview=i}}e.GhostTextPart=L;class b{constructor(g,n,i,t,s=0){this.lineNumber=g,this.columnStart=n,this.length=i,this.newLines=t,this.additionalReservedLineCount=s,this.parts=[new L(this.columnStart+this.length,this.newLines,!1)]}renderForScreenReader(g){return this.newLines.join(`
|
||
|
`)}}e.GhostTextReplacement=b;class v extends C.Disposable{constructor(g){super();this.editor=g,this._expanded=void 0,this.onDidChangeEmitter=new w.Emitter,this.onDidChange=this.onDidChangeEmitter.event,this._register(g.onDidChangeConfiguration(n=>{n.hasChanged(108)&&this._expanded===void 0&&this.onDidChangeEmitter.fire()}))}setExpanded(g){this._expanded=!0,this.onDidChangeEmitter.fire()}}e.BaseGhostTextWidgetModel=v}),define(re[206],ae([1,0,147,8,3,165]),function($,e,w,C,k,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.inlineCompletionToGhostText=e.normalizedInlineCompletionsEquals=e.minimizeInlineCompletion=void 0;function L(t,s){if(!s)return s;const d=t.getValueInRange(s.range),l=C.commonPrefixLength(d,s.insertText),a=t.getOffsetAt(s.range.getStartPosition())+l,r=t.getPositionAt(a),o=d.substr(l),c=C.commonSuffixLength(o,s.insertText),f=t.getPositionAt(Math.max(a,t.getOffsetAt(s.range.getEndPosition())-c));return{range:k.Range.fromPositions(r,f),insertText:s.insertText.substr(l,s.insertText.length-l-c),snippetInfo:s.snippetInfo,filterText:s.filterText,additionalTextEdits:s.additionalTextEdits}}e.minimizeInlineCompletion=L;function b(t,s){return t===s?!0:!t||!s?!1:t.range.equalsRange(s.range)&&t.insertText===s.insertText&&t.command===s.command}e.normalizedInlineCompletionsEquals=b;function v(t,s,d,l,a=0){if(t.range.startLineNumber!==t.range.endLineNumber)return;const r=s.getLineContent(t.range.startLineNumber),o=C.getLeadingWhitespace(r).length;if(t.range.startColumn-1<=o){const S=C.getLeadingWhitespace(t.insertText).length,y=r.substring(t.range.startColumn-1,o),E=k.Range.fromPositions(t.range.getStartPosition().delta(0,y.length),t.range.getEndPosition()),N=t.insertText.startsWith(y)?t.insertText.substring(y.length):t.insertText.substring(S);t={range:E,insertText:N,command:t.command,snippetInfo:void 0,filterText:t.filterText,additionalTextEdits:t.additionalTextEdits}}const f=s.getValueInRange(t.range),p=g(f,t.insertText);if(!p)return;const _=t.range.startLineNumber,m=new Array;if(d==="prefix"){const S=p.filter(y=>y.originalLength===0);if(S.length>1||S.length===1&&S[0].originalStart!==f.length)return}const h=t.insertText.length-a;for(const S of p){const y=t.range.startColumn+S.originalStart+S.originalLength;if(d==="subwordSmart"&&l&&l.lineNumber===t.range.startLineNumber&&y<l.column||S.originalLength>0)return;if(S.modifiedLength===0)continue;const E=S.modifiedStart+S.modifiedLength,N=Math.max(S.modifiedStart,Math.min(E,h)),T=t.insertText.substring(S.modifiedStart,N),R=t.insertText.substring(N,Math.max(S.modifiedStart,E));if(T.length>0){const F=C.splitLines(T);m.push(new I.GhostTextPart(y,F,!1))}if(R.length>0){const F=C.splitLines(R);m.push(new I.GhostTextPart(y,F,!0))}}return new I.GhostText(_,m,0)}e.inlineCompletionToGhostText=v;let u;function g(t,s){if((u==null?void 0:u.originalValue)===t&&(u==null?void 0:u.newValue)===s)return u==null?void 0:u.changes;{let d=i(t,s,!0);if(d){const l=n(d);if(l>0){const a=i(t,s,!1);a&&n(a)<l&&(d=a)}}return u={originalValue:t,newValue:s,changes:d},d}}function n(t){let s=0;for(const d of t)s+=Math.max(d.originalLength-d.modifiedLength,0);return s}function i(t,s,d){if(t.length>5e3||s.length>5e3)return;function l(p){let _=0;for(let m=0,h=p.length;m<h;m++){const S=p.charCodeAt(m);S>_&&(_=S)}return _}const a=Math.max(l(t),l(s));function r(p){if(p<0)throw new Error("unexpected");return a+p+1}function o(p){let _=0,m=0;const h=new Int32Array(p.length);for(let S=0,y=p.length;S<y;S++)if(d&&p[S]==="("){const E=m*100+_;h[S]=r(2*E),_++}else if(d&&p[S]===")"){_=Math.max(_-1,0);const E=m*100+_;h[S]=r(2*E+1),_===0&&m++}else h[S]=p.charCodeAt(S);return h}const c=o(t),f=o(s);return new w.LcsDiff({getElements:()=>c},{getElements:()=>f}).ComputeDiff(!1).changes}}),define(re[518],ae([4,5]),function($,e){return $.create("vs/base/parts/quickinput/browser/quickInput",e)}),define(re[519],ae([4,5]),function($,e){return $.create("vs/base/parts/quickinput/browser/quickInputList",e)}),define(re[520],ae([1,0,7,48,83,197,485,42,18,27,480,103,6,106,2,17,8,19,266,519,151]),function($,e,w,C,k,I,L,b,v,u
|
||
|
`);P!==this.ui.styleSheet.textContent&&(this.ui.styleSheet.textContent=P)}}}e.QuickInputController=E,E.MAX_WIDTH=600}),define(re[522],ae([4,5]),function($,e){return $.create("vs/editor/browser/controller/textAreaHandler",e)}),define(re[523],ae([4,5]),function($,e){return $.create("vs/editor/browser/coreCommands",e)}),define(re[524],ae([4,5]),function($,e){return $.create("vs/editor/browser/editorExtensions",e)}),define(re[525],ae([4,5]),function($,e){return $.create("vs/editor/browser/widget/codeEditorWidget",e)}),define(re[526],ae([4,5]),function($,e){return $.create("vs/editor/browser/widget/diffEditorWidget",e)}),define(re[527],ae([4,5]),function($,e){return $.create("vs/editor/browser/widget/diffReview",e)}),define(re[528],ae([4,5]),function($,e){return $.create("vs/editor/browser/widget/inlineDiffMargin",e)}),define(re[529],ae([1,0,528,7,42,2,3,27]),function($,e,w,C,k,I,L,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InlineDiffMargin=void 0;class v extends I.Disposable{constructor(g,n,i,t,s,d){super();this._viewZoneId=g,this._marginDomNode=n,this.editor=i,this.diff=t,this._contextMenuService=s,this._clipboardService=d,this._visibility=!1,this._marginDomNode.style.zIndex="10",this._diffActions=document.createElement("div"),this._diffActions.className=b.Codicon.lightBulb.classNames+" lightbulb-glyph",this._diffActions.style.position="absolute";const l=i.getOption(61),a=i.getModel().getEOL();this._diffActions.style.right="0px",this._diffActions.style.visibility="hidden",this._diffActions.style.height=`${l}px`,this._diffActions.style.lineHeight=`${l}px`,this._marginDomNode.appendChild(this._diffActions);const r=[],o=t.modifiedEndLineNumber===0;r.push(new k.Action("diff.clipboard.copyDeletedContent",o?t.originalEndLineNumber>t.modifiedStartLineNumber?w.localize(0,null):w.localize(1,null):t.originalEndLineNumber>t.modifiedStartLineNumber?w.localize(2,null):w.localize(3,null),void 0,!0,()=>Se(this,void 0,void 0,function*(){const m=new L.Range(t.originalStartLineNumber,1,t.originalEndLineNumber+1,1),h=t.originalModel.getValueInRange(m);yield this._clipboardService.writeText(h)})));let c=0,f;t.originalEndLineNumber>t.modifiedStartLineNumber&&(f=new k.Action("diff.clipboard.copyDeletedLineContent",o?w.localize(4,null,t.originalStartLineNumber):w.localize(5,null,t.originalStartLineNumber),void 0,!0,()=>Se(this,void 0,void 0,function*(){const m=t.originalModel.getLineContent(t.originalStartLineNumber+c);if(m===""){const h=t.originalModel.getEndOfLineSequence();yield this._clipboardService.writeText(h===0?`
|
||
|
`:`\r
|
||
|
`)}else yield this._clipboardService.writeText(m)})),r.push(f)),i.getOption(83)||r.push(new k.Action("diff.inline.revertChange",w.localize(6,null),void 0,!0,()=>Se(this,void 0,void 0,function*(){const m=new L.Range(t.originalStartLineNumber,1,t.originalEndLineNumber,t.originalModel.getLineMaxColumn(t.originalEndLineNumber)),h=t.originalModel.getValueInRange(m);if(t.modifiedEndLineNumber===0){const S=i.getModel().getLineMaxColumn(t.modifiedStartLineNumber);i.executeEdits("diffEditor",[{range:new L.Range(t.modifiedStartLineNumber,S,t.modifiedStartLineNumber,S),text:a+h}])}else{const S=i.getModel().getLineMaxColumn(t.modifiedEndLineNumber);i.executeEdits("diffEditor",[{range:new L.Range(t.modifiedStartLineNumber,1,t.modifiedEndLineNumber,S),text:h}])}})));const _=(m,h)=>{this._contextMenuService.showContextMenu({getAnchor:()=>({x:m,y:h}),getActions:()=>(f&&(f.label=o?w.localize(7,null,t.originalStartLineNumber+c):w.localize(8,null,t.originalStartLineNumber+c)),r),autoSelectFirstItem:!0})};this._register(C.addStandardDisposableListener(this._diffActions,"mousedown",m=>{const{top:h,height:S}=C.getDomNodePagePosition(this._diffActions),y=Math.floor(l/3);m.preventDefault(),_(m.posx,h+S+y)})),this._register(i.onMouseMove(m=>{m.target.type===8||m.target.type===5?m.target.detail.viewZoneId===this._viewZoneId?(this.visibility=!0,c=this._updateLightBulbPosition(this._marginDomNode,m.event.browserEvent.y,l)):this.visibility=!1:this.visibility=!1})),this._register(i.onMouseDown(m=>{!m.event.rightButton||(m.target.type===8||m.target.type===5)&&m.target.detail.viewZoneId===this._viewZoneId&&(m.event.preventDefault(),c=this._updateLightBulbPosition(this._marginDomNode,m.event.browserEvent.y,l),_(m.event.posx,m.event.posy+l))}))}get visibility(){return this._visibility}set visibility(g){this._visibility!==g&&(this._visibility=g,g?this._diffActions.style.visibility="visible":this._diffActions.style.visibility="hidden")}_updateLightBulbPosition(g,n,i){const{top:t}=C.getDomNodePagePosition(g),s=n-t,d=Math.floor(s/i),l=d*i;if(this._diffActions.style.top=`${l}px`,this.diff.viewLineCounts){let a=0;for(let r=0;r<this.diff.viewLineCounts.length;r++)if(a+=this.diff.viewLineCounts[r],d<a)return r}return d}}e.InlineDiffMargin=v}),define(re[530],ae([4,5]),function($,e){return $.create("vs/editor/common/config/editorConfigurationSchema",e)}),define(re[531],ae([4,5]),function($,e){return $.create("vs/editor/common/config/editorOptions",e)}),define(re[36],ae([1,0,531,17,128,18,40,153]),function($,e,w,C,k,I,L,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditorOptions=e.editorOptionsRegistry=e.EDITOR_FONT_DEFAULTS=e.unicodeHighlightConfigKeys=e.inUntrustedWorkspace=e.filterValidationDecorations=e.EditorLayoutInfoComputer=e.EditorFontLigatures=e.TextEditorCursorStyle=e.stringSet=e.clampedInt=e.boolean=e.ApplyUpdateResult=e.ComputeOptionsMemory=e.ConfigurationChangedEvent=e.MINIMAP_GUTTER_WIDTH=void 0,e.MINIMAP_GUTTER_WIDTH=8;class v{constructor(le){this._values=le}hasChanged(le){return this._values[le]}}e.ConfigurationChangedEvent=v;class u{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}e.ComputeOptionsMemory=u;class g{constructor(le,ge,_e,we){this.id=le,this.name=ge,this.defaultValue=_e,this.schema=we}applyUpdate(le,ge){return i(le,ge)}compute(le,ge,_e){return _e}}class n{constructor(le,ge){this.newValue=le,this.didChange=ge}}e.ApplyUpdateResult=n;function i(ue,le){if(typeof ue!="object"||typeof le!="object"||!ue||!le)return new n(le,ue!==le);if(Array.isArray(ue)||Array.isArray(le)){const _e=Array.isArray(ue)&&Array.isArray(le)&&I.equals(ue,le);return new n(le,!_e)}let ge=!1;for(const _e in le)if(le.hasOwnProperty(_e)){const we=i(ue[_e],le[_e]);we.didChange&&(ue[_e]=we.newValue,ge=!0)}return new n(ue,ge)}class t{constructor(le){this.schema=void 0,this.id=le,this.name="_never_",this.defaultValue=void 0}applyUpdate(le,ge){return i(le,ge)}validate(le){return this.defaultValue}}class s{constructor(le,ge,_e,we){this.id=le,this.name=ge,this.defaultValue=_e,this.schema=we}ap
|
||
|
`?0:1}function s(l){return l?l instanceof n||l instanceof i:!1}e.isEditStackElement=s;class d{constructor(a,r){this._model=a,this._undoRedoService=r}pushStackElement(){const a=this._undoRedoService.getLastElement(this._model.uri);s(a)&&a.close()}popStackElement(){const a=this._undoRedoService.getLastElement(this._model.uri);s(a)&&a.open()}clear(){this._undoRedoService.removeElements(this._model.uri)}_getOrCreateEditStackElement(a){const r=this._undoRedoService.getLastElement(this._model.uri);if(s(r)&&r.canAppend(this._model))return r;const o=new n(w.localize(0,null),"undoredo.textBufferEdit",this._model,a);return this._undoRedoService.pushElement(o),o}pushEOL(a){const r=this._getOrCreateEditStackElement(null);this._model.setEOL(a),r.append(this._model,[],t(this._model),this._model.getAlternativeVersionId(),null)}pushEditOperation(a,r,o){const c=this._getOrCreateEditStackElement(a),f=this._model.applyEdits(r,!0),p=d._computeCursorState(o,f),_=f.map((m,h)=>({index:h,textChange:m.textChange}));return _.sort((m,h)=>m.textChange.oldPosition===h.textChange.oldPosition?m.index-h.index:m.textChange.oldPosition-h.textChange.oldPosition),c.append(this._model,_.map(m=>m.textChange),t(this._model),this._model.getAlternativeVersionId(),p),p}static _computeCursorState(a,r){try{return a?a(r):null}catch(o){return(0,C.onUnexpectedError)(o),null}}}e.EditStack=d}),define(re[537],ae([4,5]),function($,e){return $.create("vs/editor/common/standaloneStrings",e)}),define(re[76],ae([1,0,537]),function($,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StandaloneServicesNLS=e.ToggleHighContrastNLS=e.StandaloneCodeEditorNLS=e.QuickOutlineNLS=e.QuickCommandNLS=e.QuickHelpNLS=e.GoToLineNLS=e.InspectTokensNLS=e.AccessibilityHelpNLS=void 0;var C;(function(i){i.noSelection=w.localize(0,null),i.singleSelectionRange=w.localize(1,null),i.singleSelection=w.localize(2,null),i.multiSelectionRange=w.localize(3,null),i.multiSelection=w.localize(4,null),i.emergencyConfOn=w.localize(5,null),i.openingDocs=w.localize(6,null),i.readonlyDiffEditor=w.localize(7,null),i.editableDiffEditor=w.localize(8,null),i.readonlyEditor=w.localize(9,null),i.editableEditor=w.localize(10,null),i.changeConfigToOnMac=w.localize(11,null),i.changeConfigToOnWinLinux=w.localize(12,null),i.auto_on=w.localize(13,null),i.auto_off=w.localize(14,null),i.tabFocusModeOnMsg=w.localize(15,null),i.tabFocusModeOnMsgNoKb=w.localize(16,null),i.tabFocusModeOffMsg=w.localize(17,null),i.tabFocusModeOffMsgNoKb=w.localize(18,null),i.openDocMac=w.localize(19,null),i.openDocWinLinux=w.localize(20,null),i.outroMsg=w.localize(21,null),i.showAccessibilityHelpAction=w.localize(22,null)})(C=e.AccessibilityHelpNLS||(e.AccessibilityHelpNLS={}));var k;(function(i){i.inspectTokensAction=w.localize(23,null)})(k=e.InspectTokensNLS||(e.InspectTokensNLS={}));var I;(function(i){i.gotoLineActionLabel=w.localize(24,null)})(I=e.GoToLineNLS||(e.GoToLineNLS={}));var L;(function(i){i.helpQuickAccessActionLabel=w.localize(25,null)})(L=e.QuickHelpNLS||(e.QuickHelpNLS={}));var b;(function(i){i.quickCommandActionLabel=w.localize(26,null),i.quickCommandHelp=w.localize(27,null)})(b=e.QuickCommandNLS||(e.QuickCommandNLS={}));var v;(function(i){i.quickOutlineActionLabel=w.localize(28,null),i.quickOutlineByCategoryActionLabel=w.localize(29,null)})(v=e.QuickOutlineNLS||(e.QuickOutlineNLS={}));var u;(function(i){i.editorViewAccessibleLabel=w.localize(30,null),i.accessibilityHelpMessage=w.localize(31,null)})(u=e.StandaloneCodeEditorNLS||(e.StandaloneCodeEditorNLS={}));var g;(function(i){i.toggleHighContrast=w.localize(32,null)})(g=e.ToggleHighContrastNLS||(e.ToggleHighContrastNLS={}));var n;(function(i){i.bulkEditServiceSummary=w.localize(33,null)})(n=e.StandaloneServicesNLS||(e.StandaloneServicesNLS={}))}),define(re[538],ae([4,5]),function($,e){return $.create("vs/editor/contrib/anchorSelect/browser/anchorSelect",e)}),define(re[539],ae([4,5]),function($,e){return $.create("vs/editor/contrib/bracketMatching/browser/bracketMatching",e)}),define(re[540],ae([4,5]),function($,e){return $.create("vs/editor/contrib/caretOper
|
||
|
`)}findCycleSlow(){for(const[I,L]of this._nodes){const b=new Set([I]),v=this._findCycle(L,b);if(v)return v}}_findCycle(I,L){for(const[b,v]of I.outgoing){if(L.has(b))return[...L,b].join(" -> ");L.add(b);const u=this._findCycle(v,L);if(u)return u;L.delete(b)}}}e.Graph=C}),define(re[9],ae([1,0]),function($,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createDecorator=e.IInstantiationService=e._util=void 0;var w;(function(I){I.serviceIds=new Map,I.DI_TARGET="$di$target",I.DI_DEPENDENCIES="$di$dependencies";function L(b){return b[I.DI_DEPENDENCIES]||[]}I.getServiceDependencies=L})(w=e._util||(e._util={})),e.IInstantiationService=k("instantiationService");function C(I,L,b){L[w.DI_TARGET]===L?L[w.DI_DEPENDENCIES].push({id:I,index:b}):(L[w.DI_DEPENDENCIES]=[{id:I,index:b}],L[w.DI_TARGET]=L)}function k(I){if(w.serviceIds.has(I))return w.serviceIds.get(I);const L=function(b,v,u){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");C(L,b,u)};return L.toString=()=>I,w.serviceIds.set(I,L),L}e.createDecorator=k}),define(re[138],ae([1,0,9,22,19]),function($,e,w,C,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ResourceFileEdit=e.ResourceTextEdit=e.ResourceEdit=e.IBulkEditService=void 0,e.IBulkEditService=(0,w.createDecorator)("IWorkspaceEditService");class I{constructor(u){this.metadata=u}static convert(u){return u.edits.map(g=>{if(L.is(g))return L.lift(g);if(b.is(g))return b.lift(g);throw new Error("Unsupported edit")})}}e.ResourceEdit=I;class L extends I{constructor(u,g,n=void 0,i){super(i);this.resource=u,this.textEdit=g,this.versionId=n}static is(u){return u instanceof L?!0:(0,k.isObject)(u)&&C.URI.isUri(u.resource)&&(0,k.isObject)(u.textEdit)}static lift(u){return u instanceof L?u:new L(u.resource,u.textEdit,u.versionId,u.metadata)}}e.ResourceTextEdit=L;class b extends I{constructor(u,g,n={},i){super(i);this.oldResource=u,this.newResource=g,this.options=n}static is(u){return u instanceof b?!0:(0,k.isObject)(u)&&(Boolean(u.newResource)||Boolean(u.oldResource))}static lift(u){return u instanceof b?u:new b(u.oldResource,u.newResource,u.options,u.metadata)}}e.ResourceFileEdit=b}),define(re[29],ae([1,0,9]),function($,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ICodeEditorService=void 0,e.ICodeEditorService=(0,w.createDecorator)("codeEditorService")}),define(re[37],ae([1,0,9]),function($,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ILanguageService=void 0,e.ILanguageService=(0,w.createDecorator)("languageService")}),define(re[92],ae([1,0,9]),function($,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IEditorWorkerService=e.ID_EDITOR_WORKER_SERVICE=void 0,e.ID_EDITOR_WORKER_SERVICE="editorWorkerService",e.IEditorWorkerService=(0,w.createDecorator)(e.ID_EDITOR_WORKER_SERVICE)}),define(re[20],ae([1,0,9]),function($,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ILanguageFeaturesService=void 0,e.ILanguageFeaturesService=(0,w.createDecorator)("ILanguageFeaturesService")}),define(re[628],ae([1,0,504,20,53]),function($,e,w,C,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LanguageFeaturesService=void 0;class I{constructor(){this.referenceProvider=new w.LanguageFeatureRegistry(this._score.bind(this)),this.renameProvider=new w.LanguageFeatureRegistry(this._score.bind(this)),this.codeActionProvider=new w.LanguageFeatureRegistry(this._score.bind(this)),this.definitionProvider=new w.LanguageFeatureRegistry(this._score.bind(this)),this.typeDefinitionProvider=new w.LanguageFeatureRegistry(this._score.bind(this)),this.declarationProvider=new w.LanguageFeatureRegistry(this._score.bind(this)),this.implementationProvider=new w.LanguageFeatureRegistry(this._score.bind(this)),this.documentSymbolProvider=new w.LanguageFeatureRegistry(this._score.bind(this)),this.inlayHintsProvider=new w.LanguageFeatureRegistry(this._score.bind(this)),this.colorProvider=new w.LanguageFeatureRegistry(this._score.bind(this)),this.codeLensProvider=new w.LanguageFeatureRegistr
|
||
|
`:a,m=_.length;let h=o.embeddedLanguageData,S=o.stack,y=0,E=null,N=!0;for(;N||y<m;){const T=y,R=S.depth,F=E?E.groups.length:0,O=S.state;let D=null,M=null,P=null,B=null,W=null;if(E){D=E.matches;const X=E.groups.shift();M=X.matched,P=X.action,B=E.rule,E.groups.length===0&&(E=null)}else{if(!N&&y>=m)break;N=!1;let X=this._lexer.tokenizer[O];if(!X&&(X=k.findRules(this._lexer,O),!X))throw k.createError(this._lexer,"tokenizer state is not defined: "+O);const ee=_.substr(y);for(const H of X)if((y===0||!H.matchOnlyAtLineStart)&&(D=ee.match(H.regex),D)){M=D[0],P=H.action;break}}if(D||(D=[""],M=""),P||(y<m&&(D=[_.charAt(y)],M=D[0]),P=this._lexer.defaultToken),M===null)break;for(y+=M.length;k.isFuzzyAction(P)&&k.isIAction(P)&&P.test;)P=P.test(M,D,O,y===m);let V=null;if(typeof P=="string"||Array.isArray(P))V=P;else if(P.group)V=P.group;else if(P.token!==null&&P.token!==void 0){if(P.tokenSubst?V=k.substituteMatches(this._lexer,P.token,M,D,O):V=P.token,P.nextEmbedded)if(P.nextEmbedded==="@pop"){if(!h)throw k.createError(this._lexer,"cannot pop embedded language if not inside one");h=null}else{if(h)throw k.createError(this._lexer,"cannot enter embedded language from within an embedded language");W=k.substituteMatches(this._lexer,P.nextEmbedded,M,D,O)}if(P.goBack&&(y=Math.max(0,y-P.goBack)),P.switchTo&&typeof P.switchTo=="string"){let X=k.substituteMatches(this._lexer,P.switchTo,M,D,O);if(X[0]==="@"&&(X=X.substr(1)),k.findRules(this._lexer,X))S=S.switchTo(X);else throw k.createError(this._lexer,"trying to switch to a state '"+X+"' that is undefined in rule: "+this._safeRuleName(B))}else{if(P.transform&&typeof P.transform=="function")throw k.createError(this._lexer,"action.transform not supported");if(P.next)if(P.next==="@push"){if(S.depth>=this._lexer.maxStack)throw k.createError(this._lexer,"maximum tokenizer stack size reached: ["+S.state+","+S.parent.state+",...]");S=S.push(O)}else if(P.next==="@pop"){if(S.depth<=1)throw k.createError(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(B));S=S.pop()}else if(P.next==="@popall")S=S.popall();else{let X=k.substituteMatches(this._lexer,P.next,M,D,O);if(X[0]==="@"&&(X=X.substr(1)),k.findRules(this._lexer,X))S=S.push(X);else throw k.createError(this._lexer,"trying to set a next state '"+X+"' that is undefined in rule: "+this._safeRuleName(B))}}P.log&&typeof P.log=="string"&&k.log(this._lexer,this._lexer.languageId+": "+k.substituteMatches(this._lexer,P.log,M,D,O))}if(V===null)throw k.createError(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(B));const A=X=>{const ee=this._languageService.getLanguageIdByLanguageName(X)||this._languageService.getLanguageIdByMimeType(X)||X,H=this._getNestedEmbeddedLanguageData(ee);if(y<m){const q=a.substr(y);return this._nestedTokenize(q,r,g.create(S,H),c+y,f)}else return g.create(S,H)};if(Array.isArray(V)){if(E&&E.groups.length>0)throw k.createError(this._lexer,"groups cannot be nested: "+this._safeRuleName(B));if(D.length!==V.length+1)throw k.createError(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(B));let X=0;for(let ee=1;ee<D.length;ee++)X+=D[ee].length;if(X!==M.length)throw k.createError(this._lexer,"with groups, all characters should be matched in consecutive groups in rule: "+this._safeRuleName(B));E={rule:B,matches:D,groups:[]};for(let ee=0;ee<V.length;ee++)E.groups[ee]={action:V[ee],matched:D[ee+1]};y-=M.length;continue}else{if(V==="@rematch"&&(y-=M.length,M="",D=null,V="",W!==null))return A(W);if(M.length===0){if(m===0||R!==S.depth||O!==S.state||(E?E.groups.length:0)!==F)continue;throw k.createError(this._lexer,"no progress in tokenizer in rule: "+this._safeRuleName(B))}let X=null;if(k.isString(V)&&V.indexOf("@brackets")===0){const ee=V.substr("@brackets".length),H=d(this._lexer,M);if(!H)throw k.createError(this._lexer,"@brackets token returned but no bracket defined as: "+M);X=k.sanitize(H.token+ee)}else{const ee=V===""?"":V+this._lexer.tokenPostfix;X=k.sanitize(ee)}T<p&&f.emit(T+c,X)}if(W!==null)return A(W)}return g.create(S,h)}_getNest
|
||
|
${t.toString()}`}}class g{constructor(t=new b.ServiceCollection,s=!1,d){this._activeInstantiations=new Set,this._services=t,this._strict=s,this._parent=d,this._services.set(L.IInstantiationService,this)}createChild(t){return new g(t,this._strict,this)}invokeFunction(t,...s){const d=n.traceInvocation(t);let l=!1;try{return t({get:r=>{if(l)throw(0,C.illegalState)("service accessor is only valid during the invocation of its target method");const o=this._getOrCreateServiceInstance(r,d);if(!o)throw new Error(`[invokeFunction] unknown service '${r}'`);return o}},...s)}finally{l=!0,d.stop()}}createInstance(t,...s){let d,l;return t instanceof k.SyncDescriptor?(d=n.traceCreation(t.ctor),l=this._createInstance(t.ctor,t.staticArguments.concat(s),d)):(d=n.traceCreation(t),l=this._createInstance(t,s,d)),d.stop(),l}_createInstance(t,s=[],d){const l=L._util.getServiceDependencies(t).sort((o,c)=>o.index-c.index),a=[];for(const o of l){const c=this._getOrCreateServiceInstance(o.id,d);c||this._throwIfStrict(`[createInstance] ${t.name} depends on UNKNOWN service ${o.id}.`,!1),a.push(c)}const r=l.length>0?l[0].index:s.length;if(s.length!==r){console.trace(`[createInstance] First service dependency of ${t.name} at position ${r+1} conflicts with ${s.length} static arguments`);const o=r-s.length;o>0?s=s.concat(new Array(o)):s=s.slice(0,r)}return new t(...[...s,...a])}_setServiceInstance(t,s){if(this._services.get(t)instanceof k.SyncDescriptor)this._services.set(t,s);else if(this._parent)this._parent._setServiceInstance(t,s);else throw new Error("illegalState - setting UNKNOWN service instance")}_getServiceInstanceOrDescriptor(t){const s=this._services.get(t);return!s&&this._parent?this._parent._getServiceInstanceOrDescriptor(t):s}_getOrCreateServiceInstance(t,s){const d=this._getServiceInstanceOrDescriptor(t);return d instanceof k.SyncDescriptor?this._safeCreateAndCacheServiceInstance(t,d,s.branch(t,!0)):(s.branch(t,!1),d)}_safeCreateAndCacheServiceInstance(t,s,d){if(this._activeInstantiations.has(t))throw new Error(`illegal state - RECURSIVELY instantiating service '${t}'`);this._activeInstantiations.add(t);try{return this._createAndCacheServiceInstance(t,s,d)}finally{this._activeInstantiations.delete(t)}}_createAndCacheServiceInstance(t,s,d){const l=new I.Graph(o=>o.id.toString());let a=0;const r=[{id:t,desc:s,_trace:d}];for(;r.length;){const o=r.pop();if(l.lookupOrInsertNode(o),a++>1e3)throw new u(l);for(const c of L._util.getServiceDependencies(o.desc.ctor)){const f=this._getServiceInstanceOrDescriptor(c.id);if(f||this._throwIfStrict(`[createInstance] ${t} depends on ${c.id} which is NOT registered.`,!0),f instanceof k.SyncDescriptor){const p={id:c.id,desc:f,_trace:o._trace.branch(c.id,!0)};l.insertEdge(o,p),r.push(p)}}}for(;;){const o=l.roots();if(o.length===0){if(!l.isEmpty())throw new u(l);break}for(const{data:c}of o){if(this._getServiceInstanceOrDescriptor(c.id)instanceof k.SyncDescriptor){const p=this._createServiceInstanceWithOwner(c.id,c.desc.ctor,c.desc.staticArguments,c.desc.supportsDelayedInstantiation,c._trace);this._setServiceInstance(c.id,p)}l.removeNode(c)}}return this._getServiceInstanceOrDescriptor(t)}_createServiceInstanceWithOwner(t,s,d=[],l,a){if(this._services.get(t)instanceof k.SyncDescriptor)return this._createServiceInstance(s,d,l,a);if(this._parent)return this._parent._createServiceInstanceWithOwner(t,s,d,l,a);throw new Error(`illegalState - creating UNKNOWN service instance ${s.name}`)}_createServiceInstance(t,s=[],d,l){if(d){const a=new w.IdleValue(()=>this._createInstance(t,s,l));return new Proxy(Object.create(null),{get(r,o){if(o in r)return r[o];const c=a.value;let f=c[o];return typeof f!="function"||(f=f.bind(c),r[o]=f),f},set(r,o,c){return a.value[o]=c,!0}})}else return this._createInstance(t,s,l)}_throwIfStrict(t,s){if(s&&console.warn(t),this._strict)throw new Error(t)}}e.InstantiationService=g;class n{constructor(t,s){this.type=t,this.name=s,this._start=Date.now(),this._dep=[]}static traceInvocation(t){return v?new n(1,t.name||t.toString().substring(0,42).replace(/\n/g,"")):n._None}static traceCreation(t){
|
||
|
`)}const l=[`${this.type===0?"CREATE":"CALL"} ${this.name}`,`${d(1,this)}`,`DONE, took ${t.toFixed(2)}ms (grand total ${n._totals.toFixed(2)}ms)`];(t>2||s)&&console.log(l.join(`
|
||
|
`))}}e.Trace=n,n._None=new class extends n{constructor(){super(-1,null)}stop(){}branch(){return this}},n._totals=0}),define(re[637],ae([1,0,10,6,2,615]),function($,e,w,C,k,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractKeybindingService=void 0;const L=/^(cursor|delete)/;class b extends k.Disposable{constructor(g,n,i,t,s){super();this._contextKeyService=g,this._commandService=n,this._telemetryService=i,this._notificationService=t,this._logService=s,this._onDidUpdateKeybindings=this._register(new C.Emitter),this._currentChord=null,this._currentChordChecker=new w.IntervalTimer,this._currentChordStatusMessage=null,this._ignoreSingleModifiers=v.EMPTY,this._currentSingleModifier=null,this._currentSingleModifierClearTimeout=new w.TimeoutTimer,this._logging=!1}get onDidUpdateKeybindings(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:C.Event.None}dispose(){super.dispose()}_log(g){this._logging&&this._logService.info(`[KeybindingService]: ${g}`)}getKeybindings(){return this._getResolver().getKeybindings()}lookupKeybinding(g,n){const i=this._getResolver().lookupPrimaryKeybinding(g,n||this._contextKeyService);if(!!i)return i.resolvedKeybinding}dispatchEvent(g,n){return this._dispatch(g,n)}softDispatch(g,n){this._log("/ Soft dispatching keyboard event");const i=this.resolveKeyboardEvent(g);if(i.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),null;const[t]=i.getDispatchParts();if(t===null)return this._log("\\ Keyboard event cannot be dispatched"),null;const s=this._contextKeyService.getContext(n),d=this._currentChord?this._currentChord.keypress:null;return this._getResolver().resolve(s,d,t)}_enterChordMode(g,n){this._currentChord={keypress:g,label:n},this._currentChordStatusMessage=this._notificationService.status(I.localize(0,null,n));const i=Date.now();this._currentChordChecker.cancelAndSet(()=>{if(!this._documentHasFocus()){this._leaveChordMode();return}Date.now()-i>5e3&&this._leaveChordMode()},500)}_leaveChordMode(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChord=null}_dispatch(g,n){return this._doDispatch(this.resolveKeyboardEvent(g),n,!1)}_singleModifierDispatch(g,n){const i=this.resolveKeyboardEvent(g),[t]=i.getSingleModifierDispatchParts();if(t)return this._ignoreSingleModifiers.has(t)?(this._log(`+ Ignoring single modifier ${t} due to it being pressed together with other keys.`),this._ignoreSingleModifiers=v.EMPTY,this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1):(this._ignoreSingleModifiers=v.EMPTY,this._currentSingleModifier===null?(this._log(`+ Storing single modifier for possible chord ${t}.`),this._currentSingleModifier=t,this._currentSingleModifierClearTimeout.cancelAndSet(()=>{this._log("+ Clearing single modifier due to 300ms elapsed."),this._currentSingleModifier=null},300),!1):t===this._currentSingleModifier?(this._log(`/ Dispatching single modifier chord ${t} ${t}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,this._doDispatch(i,n,!0)):(this._log(`+ Clearing single modifier due to modifier mismatch: ${this._currentSingleModifier} ${t}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1));const[s]=i.getParts();return this._ignoreSingleModifiers=new v(s),this._currentSingleModifier!==null&&this._log("+ Clearing single modifier due to other key up."),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1}_doDispatch(g,n,i=!1){let t=!1;if(g.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),!1;let s=null,d=null;if(i){const[o]=g.getSingleModifierDispatchParts();s=o,d=o}else[s]=g.getDispatchParts(),d=this._currentChord?this._currentChord.keypress:null;if(s===null)return this._log("\\ Keyboard event cannot be dispatched in keydown phase."),t;const l=this._contextKeyService.getContext(n),a=g.getLabel(),r=this._getResolver().resolve(l,d,s);return this._logService
|
||
|
`),parse:i=>i.split(`\r
|
||
|
`).filter(t=>!t.startsWith("#"))})}),define(re[211],ae([1,0,6,34]),function($,e,w,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Extensions=void 0,e.Extensions={JSONContribution:"base.contributions.json"};function k(b){return b.length>0&&b.charAt(b.length-1)==="#"?b.substring(0,b.length-1):b}class I{constructor(){this._onDidChangeSchema=new w.Emitter,this.schemasById={}}registerSchema(v,u){this.schemasById[k(v)]=u,this._onDidChangeSchema.fire(v)}notifySchemaChanged(v){this._onDidChangeSchema.fire(v)}}const L=new I;C.Registry.add(e.Extensions.JSONContribution,L)}),define(re[94],ae([1,0,18,6,19,611,30,211,34]),function($,e,w,C,k,I,L,b,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.validateProperty=e.getDefaultValue=e.overrideIdentifiersFromKey=e.OVERRIDE_PROPERTY_REGEX=e.OVERRIDE_PROPERTY_PATTERN=e.resourceLanguageSettingsSchemaId=e.resourceSettings=e.windowSettings=e.machineOverridableSettings=e.machineSettings=e.applicationSettings=e.allSettings=e.Extensions=void 0,e.Extensions={Configuration:"base.contributions.configuration"},e.allSettings={properties:{},patternProperties:{}},e.applicationSettings={properties:{},patternProperties:{}},e.machineSettings={properties:{},patternProperties:{}},e.machineOverridableSettings={properties:{},patternProperties:{}},e.windowSettings={properties:{},patternProperties:{}},e.resourceSettings={properties:{},patternProperties:{}},e.resourceLanguageSettingsSchemaId="vscode://schemas/settings/resourceLanguage";const u=v.Registry.as(b.Extensions.JSONContribution);class g{constructor(){this.overrideIdentifiers=new Set,this._onDidSchemaChange=new C.Emitter,this._onDidUpdateConfiguration=new C.Emitter,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:I.localize(0,null),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!1,errorMessage:"Unknown editor configuration setting",allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.policyConfigurations=new Map,this.excludedConfigurationProperties={},u.registerSchema(e.resourceLanguageSettingsSchemaId,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(r,o=!0){this.registerConfigurations([r],o)}registerConfigurations(r,o=!0){const c=this.doRegisterConfigurations(r,o);u.registerSchema(e.resourceLanguageSettingsSchemaId,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:c})}registerDefaultConfigurations(r){var o;const c=[],f=[];for(const{overrides:p,source:_}of r)for(const m in p)if(c.push(m),e.OVERRIDE_PROPERTY_REGEX.test(m)){const h=this.configurationDefaultsOverrides.get(m),S=(o=h==null?void 0:h.valuesSources)!==null&&o!==void 0?o:new Map;if(_)for(const T of Object.keys(p[m]))S.set(T,_);const y=Object.assign(Object.assign({},(h==null?void 0:h.value)||{}),p[m]);this.configurationDefaultsOverrides.set(m,{source:_,value:y,valuesSources:S});const E=(0,L.getLanguageTagSettingPlainKey)(m),N={type:"object",default:y,description:I.localize(1,null,E),$ref:e.resourceLanguageSettingsSchemaId,defaultDefaultValue:y,source:k.isString(_)?void 0:_,defaultValueSource:_};f.push(...t(m)),this.configurationProperties[m]=N,this.defaultLanguageConfigurationOverridesNode.properties[m]=N}else{this.configurationDefaultsOverrides.set(m,{value:p[m],source:_});const h=this.configurationProperties[m];h&&(this.updatePropertyDefaultValue(m,h),this.updateSchema(m,h))}this.registerOverrideIdentifiers(f),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:c,defaultsOverrides:!0})}registerOverrideIdentifiers(r){for(const o of r)this.overrideIdentifiers.add(o);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(r,o){const c=[];return r.forEach(f=>{c.push(...this.validateAndRegisterProperties(f,o,f.extensionInfo,f.restrictedProperties)),this.configurationContributors.p
|
||
|
`)!==y.length-1&&(E=!1),E){const D=new u.Range(O.lineNumber,1,O.lineNumber,1);N[T]=new k.ReplaceCommandThatPreservesSelection(D,y,F,!0)}else N[T]=new k.ReplaceCommand(F,y)}return new b.EditOperationResult(0,N,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _distributePasteToCursors(m,h,S,y,E){if(y||h.length===1)return null;if(E&&E.length===h.length)return E;if(m.multiCursorPaste==="spread"){S.charCodeAt(S.length-1)===10&&(S=S.substr(0,S.length-1)),S.charCodeAt(S.length-1)===13&&(S=S.substr(0,S.length-1));const N=C.splitLines(S);if(N.length===h.length)return N}return null}static paste(m,h,S,y,E,N){const T=this._distributePasteToCursors(m,S,y,E,N);return T?(S=S.sort(u.Range.compareRangesUsingStarts),this._distributedPaste(m,h,S,T)):this._simplePaste(m,h,S,y,E)}static _goodIndentForLine(m,h,S){let y=null,E="";const N=(0,s.getInheritIndentForLine)(m.autoIndent,h,S,!1,m.languageConfigurationService);if(N)y=N.action,E=N.indentation;else if(S>1){let T;for(T=S-1;T>=1;T--){const O=h.getLineContent(T);if(C.lastNonWhitespaceIndex(O)>=0)break}if(T<1)return null;const R=h.getLineMaxColumn(T),F=(0,d.getEnterAction)(m.autoIndent,h,new u.Range(T,R,T,R),m.languageConfigurationService);F&&(E=F.indentation+F.appendText)}return y&&(y===n.IndentAction.Indent&&(E=l.shiftIndent(m,E)),y===n.IndentAction.Outdent&&(E=l.unshiftIndent(m,E)),E=m.normalizeIndentation(E)),E||null}static _replaceJumpToNextIndent(m,h,S,y){let E="";const N=S.getStartPosition();if(m.insertSpaces){const T=m.visibleColumnFromColumn(h,N),R=m.indentSize,F=R-T%R;for(let O=0;O<F;O++)E+=" "}else E=" ";return new k.ReplaceCommand(S,E,y)}static tab(m,h,S){const y=[];for(let E=0,N=S.length;E<N;E++){const T=S[E];if(T.isEmpty()){const R=h.getLineContent(T.startLineNumber);if(/^\s*$/.test(R)&&h.tokenization.isCheapToTokenize(T.startLineNumber)){let F=this._goodIndentForLine(m,h,T.startLineNumber);F=F||" ";const O=m.normalizeIndentation(F);if(!R.startsWith(O)){y[E]=new k.ReplaceCommand(new u.Range(T.startLineNumber,1,T.startLineNumber,R.length+1),O,!0);continue}}y[E]=this._replaceJumpToNextIndent(m,h,T,!0)}else{if(T.startLineNumber===T.endLineNumber){const R=h.getLineMaxColumn(T.startLineNumber);if(T.startColumn!==1||T.endColumn!==R){y[E]=this._replaceJumpToNextIndent(m,h,T,!1);continue}}y[E]=new I.ShiftCommand(T,{isUnshift:!1,tabSize:m.tabSize,indentSize:m.indentSize,insertSpaces:m.insertSpaces,useTabStops:m.useTabStops,autoIndent:m.autoIndent},m.languageConfigurationService)}}return y}static compositionType(m,h,S,y,E,N,T,R){const F=y.map(O=>this._compositionType(S,O,E,N,T,R));return new b.EditOperationResult(4,F,{shouldPushStackElementBefore:c(m,4),shouldPushStackElementAfter:!1})}static _compositionType(m,h,S,y,E,N){if(!h.isEmpty())return null;const T=h.getPosition(),R=Math.max(1,T.column-y),F=Math.min(m.getLineMaxColumn(T.lineNumber),T.column+E),O=new u.Range(T.lineNumber,R,T.lineNumber,F);return m.getValueInRange(O)===S&&N===0?null:new k.ReplaceCommandWithOffsetCursorState(O,S,0,N)}static _typeCommand(m,h,S){return S?new k.ReplaceCommandWithoutChangingPosition(m,h,!0):new k.ReplaceCommand(m,h,!0)}static _enter(m,h,S,y){if(m.autoIndent===0)return l._typeCommand(y,`
|
||
|
`,S);if(!h.tokenization.isCheapToTokenize(y.getStartPosition().lineNumber)||m.autoIndent===1){const R=h.getLineContent(y.startLineNumber),F=C.getLeadingWhitespace(R).substring(0,y.startColumn-1);return l._typeCommand(y,`
|
||
|
`+m.normalizeIndentation(F),S)}const E=(0,d.getEnterAction)(m.autoIndent,h,y,m.languageConfigurationService);if(E){if(E.indentAction===n.IndentAction.None)return l._typeCommand(y,`
|
||
|
`+m.normalizeIndentation(E.indentation+E.appendText),S);if(E.indentAction===n.IndentAction.Indent)return l._typeCommand(y,`
|
||
|
`+m.normalizeIndentation(E.indentation+E.appendText),S);if(E.indentAction===n.IndentAction.IndentOutdent){const R=m.normalizeIndentation(E.indentation),F=m.normalizeIndentation(E.indentation+E.appendText),O=`
|
||
|
`+F+`
|
||
|
`+R;return S?new k.ReplaceCommandWithoutChangingPosition(y,O,!0):new k.ReplaceCommandWithOffsetCursorState(y,O,-1,F.length-R.length,!0)}else if(E.indentAction===n.IndentAction.Outdent){const R=l.unshiftIndent(m,E.indentation);return l._typeCommand(y,`
|
||
|
`+m.normalizeIndentation(R+E.appendText),S)}}const N=h.getLineContent(y.startLineNumber),T=C.getLeadingWhitespace(N).substring(0,y.startColumn-1);if(m.autoIndent>=4){const R=(0,s.getIndentForEnter)(m.autoIndent,h,y,{unshiftIndent:F=>l.unshiftIndent(m,F),shiftIndent:F=>l.shiftIndent(m,F),normalizeIndentation:F=>m.normalizeIndentation(F)},m.languageConfigurationService);if(R){let F=m.visibleColumnFromColumn(h,y.getEndPosition());const O=y.endColumn,D=h.getLineContent(y.endLineNumber),M=C.firstNonWhitespaceIndex(D);if(M>=0?y=y.setEndPosition(y.endLineNumber,Math.max(y.endColumn,M+1)):y=y.setEndPosition(y.endLineNumber,h.getLineMaxColumn(y.endLineNumber)),S)return new k.ReplaceCommandWithoutChangingPosition(y,`
|
||
|
`+m.normalizeIndentation(R.afterEnter),!0);{let P=0;return O<=M+1&&(m.insertSpaces||(F=Math.ceil(F/m.indentSize)),P=Math.min(F+1-m.normalizeIndentation(R.afterEnter).length-1,0)),new k.ReplaceCommandWithOffsetCursorState(y,`
|
||
|
`+m.normalizeIndentation(R.afterEnter),0,P,!0)}}}return l._typeCommand(y,`
|
||
|
`+m.normalizeIndentation(T),S)}static _isAutoIndentType(m,h,S){if(m.autoIndent<4)return!1;for(let y=0,E=S.length;y<E;y++)if(!h.tokenization.isCheapToTokenize(S[y].getEndPosition().lineNumber))return!1;return!0}static _runAutoIndentType(m,h,S,y){const E=(0,i.getIndentationAtPosition)(h,S.startLineNumber,S.startColumn),N=(0,s.getIndentActionForType)(m.autoIndent,h,S,y,{shiftIndent:T=>l.shiftIndent(m,T),unshiftIndent:T=>l.unshiftIndent(m,T)},m.languageConfigurationService);if(N===null)return null;if(N!==m.normalizeIndentation(E)){const T=h.getLineFirstNonWhitespaceColumn(S.startLineNumber);return T===0?l._typeCommand(new u.Range(S.startLineNumber,1,S.endLineNumber,S.endColumn),m.normalizeIndentation(N)+y,!1):l._typeCommand(new u.Range(S.startLineNumber,1,S.endLineNumber,S.endColumn),m.normalizeIndentation(N)+h.getLineContent(S.startLineNumber).substring(T-1,S.startColumn-1)+y,!1)}return null}static _isAutoClosingOvertype(m,h,S,y,E){if(m.autoClosingOvertype==="never"||!m.autoClosingPairs.autoClosingPairsCloseSingleChar.has(E))return!1;for(let N=0,T=S.length;N<T;N++){const R=S[N];if(!R.isEmpty())return!1;const F=R.getPosition(),O=h.getLineContent(F.lineNumber);if(O.charAt(F.column-1)!==E)return!1;const M=(0,b.isQuote)(E);if((F.column>2?O.charCodeAt(F.column-2):0)===92&&M)return!1;if(m.autoClosingOvertype==="auto"){let B=!1;for(let W=0,V=y.length;W<V;W++){const A=y[W];if(F.lineNumber===A.startLineNumber&&F.column===A.startColumn){B=!0;break}}if(!B)return!1}}return!0}static _runAutoClosingOvertype(m,h,S,y,E){const N=[];for(let T=0,R=y.length;T<R;T++){const O=y[T].getPosition(),D=new u.Range(O.lineNumber,O.column,O.lineNumber,O.column+1);N[T]=new k.ReplaceCommand(D,E)}return new b.EditOperationResult(4,N,{shouldPushStackElementBefore:c(m,4),shouldPushStackElementAfter:!1})}static _isBeforeClosingBrace(m,h){const S=h.charAt(0),y=m.autoClosingPairs.autoClosingPairsOpenByStart.get(S)||[],E=m.autoClosingPairs.autoClosingPairsCloseByStart.get(S)||[],N=y.some(R=>h.startsWith(R.open)),T=E.some(R=>h.startsWith(R.close));return!N&&T}static _findAutoClosingPairOpen(m,h,S,y){const E=m.autoClosingPairs.autoClosingPairsOpenByEnd.get(y);if(!E)return null;let N=null;for(const T of E)if(N===null||T.open.length>N.open.length){let R=!0;for(const F of S)if(h.getValueInRange(new u.Range(F.lineNumber,F.column-T.open.length+1,F.lineNumber,F.column))+y!==T.open){R=!1;break}R&&(N=T)}return N}static _findContainedAutoClosingPair(m,h){if(h.open.length<=1)return null;const S=h.close.charAt(h.close.length-1),y=m.autoClosingPairs.autoClosingPairsCloseByEnd.get(S)||[];let E=null;for(const N of y)N.open!==h.open&&h.open.includes(N.open)&&h.close.endsWith(N.close)&&(!E||N.open.length>E.open.length)&&(E=N);return E}static _getAutoClosingPairClose(m,h,S,y,E){const N=(0,b.isQuote)(y),T=N?m.autoClosingQuotes:m.autoClosingBrackets,R=N?m.shouldAutoCloseBefore.quote:m.shouldAutoCloseBefore.bracket;if(T==="never")return null;for(const B of S)if(!B.isEmpty())return null;const F=S.map(B=>{const W=B.getPosition();return E?{lineNumber:W.lineNumber,beforeColumn:W.column-y.length,afterColumn:W.column}:{lineNumber:W.lineNumber,beforeColumn:W.column,afterColumn:W.column}}),O=this._findAutoClosingPairOpen(m,h,F.map(B=>new g.Position(B.lineNumber,B.beforeColumn)),y);if(!O)return null;const D=this._findContainedAutoClosingPair(m,O),M=D?D.close:"";let P=!0;for(const B of F){const{lineNumber:W,beforeColumn:V,afterColumn:A}=B,X=h.getLineContent(W),ee=X.substring(0,V-1),H=X.substring(A-1);if(H.startsWith(M)||(P=!1),H.length>0){const Y=H.charAt(0);if(!l._isBeforeClosingBrace(m,H)&&!R(Y))return null}if(O.open.length===1&&(y==="'"||y==='"')&&T!=="always"){const Y=(0,v.getMapForWordSeparators)(m.wordSeparators);if(ee.length>0){const te=ee.charCodeAt(ee.length-1);if(Y.get(te)===0)return null}}if(!h.tokenization.isCheapToTokenize(W))return null;h.tokenization.forceTokenization(W);const q=h.tokenization.getLineTokens(W),Z=(0,t.createScopedLineTokens)(q,V-1);if(!O.shouldAutoClose(Z,V-Z.firstCharOffset))return null;const ie=O.findNeutralCharacter();if(ie){const Y=h.tokenization.getTokenType
|
||
|
`){const O=[];for(let D=0,M=E.length;D<M;D++)O[D]=l._enter(S,y,!1,E[D]);return new b.EditOperationResult(4,O,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(!m&&this._isAutoIndentType(S,y,E)){const O=[];let D=!1;for(let M=0,P=E.length;M<P;M++)if(O[M]=this._runAutoIndentType(S,y,E[M],T),!O[M]){D=!0;break}if(!D)return new b.EditOperationResult(4,O,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(this._isAutoClosingOvertype(S,y,E,N,T))return this._runAutoClosingOvertype(h,S,y,E,T);if(!m){const O=this._getAutoClosingPairClose(S,y,E,T,!1);if(O)return this._runAutoClosingOpenCharType(h,S,y,E,T,!1,O)}if(!m&&this._isSurroundSelectionType(S,y,E,T))return this._runSurroundSelectionType(h,S,y,E,T);if(!m&&this._isTypeInterceptorElectricChar(S,y,E)){const O=this._typeInterceptorElectricChar(h,S,y,E[0],T);if(O)return O}const R=[];for(let O=0,D=E.length;O<D;O++)R[O]=new k.ReplaceCommand(E[O],T);const F=o(T,h);return new b.EditOperationResult(F,R,{shouldPushStackElementBefore:c(h,F),shouldPushStackElementAfter:!1})}static typeWithoutInterceptors(m,h,S,y,E){const N=[];for(let R=0,F=y.length;R<F;R++)N[R]=new k.ReplaceCommand(y[R],E);const T=o(E,m);return new b.EditOperationResult(T,N,{shouldPushStackElementBefore:c(m,T),shouldPushStackElementAfter:!1})}static lineInsertBefore(m,h,S){if(h===null||S===null)return[];const y=[];for(let E=0,N=S.length;E<N;E++){let T=S[E].positionLineNumber;if(T===1)y[E]=new k.ReplaceCommandWithoutChangingPosition(new u.Range(1,1,1,1),`
|
||
|
`);else{T--;const R=h.getLineMaxColumn(T);y[E]=this._enter(m,h,!1,new u.Range(T,R,T,R))}}return y}static lineInsertAfter(m,h,S){if(h===null||S===null)return[];const y=[];for(let E=0,N=S.length;E<N;E++){const T=S[E].positionLineNumber,R=h.getLineMaxColumn(T);y[E]=this._enter(m,h,!1,new u.Range(T,R,T,R))}return y}static lineBreakInsert(m,h,S){const y=[];for(let E=0,N=S.length;E<N;E++)y[E]=this._enter(m,h,!0,S[E]);return y}}e.TypeOperations=l;class a extends k.ReplaceCommandWithOffsetCursorState{constructor(m,h,S,y){super(m,(S?h:"")+y,0,-y.length);this._openCharacter=h,this._closeCharacter=y,this.closeCharacterRange=null,this.enclosingRange=null}computeCursorState(m,h){const y=h.getInverseEditOperations()[0].range;return this.closeCharacterRange=new u.Range(y.startLineNumber,y.endColumn-this._closeCharacter.length,y.endLineNumber,y.endColumn),this.enclosingRange=new u.Range(y.startLineNumber,y.endColumn-this._openCharacter.length-this._closeCharacter.length,y.endLineNumber,y.endColumn),super.computeCursorState(m,h)}}e.TypeWithAutoClosingCommand=a;class r{constructor(m,h,S,y,E,N){this.deletedText=m,this.deletedSelectionStart=h,this.deletedSelectionEnd=S,this.insertedText=y,this.insertedSelectionStart=E,this.insertedSelectionEnd=N}}e.CompositionOutcome=r;function o(_,m){return _===" "?m===5||m===6?6:5:4}function c(_,m){return p(_)&&!p(m)?!0:_===5?!1:f(_)!==f(m)}function f(_){return _===6||_===5?"space":_}function p(_){return _===4||_===5||_===6}}),define(re[291],ae([1,0,14,8,414,61,408,181,216,3,23,99,187,2,204]),function($,e,w,C,k,I,L,b,v,u,g,n,i,t,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CursorsController=void 0;class d extends t.Disposable{constructor(p,_,m,h){super();this._model=p,this._knownModelVersionId=this._model.getVersionId(),this._viewModel=_,this._coordinatesConverter=m,this.context=new L.CursorContext(this._model,this._viewModel,this._coordinatesConverter,h),this._cursors=new k.CursorCollection(this.context),this._hasFocus=!1,this._isHandling=!1,this._compositionState=null,this._columnSelectData=null,this._autoClosedActions=[],this._prevEditOperationType=0}dispose(){this._cursors.dispose(),this._autoClosedActions=(0,t.dispose)(this._autoClosedActions),super.dispose()}updateConfiguration(p){this.context=new L.CursorContext(this._model,this._viewModel,this._coordinatesConverter,p),this._cursors.updateContext(this.context)}onLineMappingChanged(p){this._knownModelVersionId===this._model.getVersionId()&&this.setStates(p,"viewModel",0,this.getCursorStates())}setHasFocus(p){this._hasFocus=p}_validateAutoClosedActions(){if(this._autoClosedActions.length>0){const p=this._cursors.getSelections();for(let _=0;_<this._autoClosedActions.length;_++){const m=this._autoClosedActions[_];m.isValid(p)||(m.dispose(),this._autoClosedActions.splice(_,1),_--)}}}getPrimaryCursorState(){return this._cursors.getPrimaryCursor()}getLastAddedCursorIndex(){return this._cursors.getLastAddedCursorIndex()}getCursorStates(){return this._cursors.getAll()}setStates(p,_,m,h){let S=!1;h!==null&&h.length>d.MAX_CURSOR_COUNT&&(h=h.slice(0,d.MAX_CURSOR_COUNT),S=!0);const y=l.from(this._model,this);return this._cursors.setStates(h),this._cursors.normalize(),this._columnSelectData=null,this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(p,_,m,y,S)}setCursorColumnSelectData(p){this._columnSelectData=p}revealPrimary(p,_,m,h,S,y){const E=this._cursors.getViewPositions();let N=null,T=null;E.length>1?T=this._cursors.getViewSelections():N=u.Range.fromPositions(E[0],E[0]),p.emitViewEvent(new i.ViewRevealRangeRequestEvent(_,m,N,T,h,S,y))}saveState(){const p=[],_=this._cursors.getSelections();for(let m=0,h=_.length;m<h;m++){const S=_[m];p.push({inSelectionMode:!S.isEmpty(),selectionStart:{lineNumber:S.selectionStartLineNumber,column:S.selectionStartColumn},position:{lineNumber:S.positionLineNumber,column:S.positionColumn}})}return p}restoreState(p,_){const m=[];for(let h=0,S=_.length;h<S;h++){const y=_[h];let E=1,N=1;y.position&&y.position.lineNumber&&(E=y.position.lineNumber),y.position&&y.position.column&&(N=y.position.c
|
||
|
`)>=0)return null;const y=S.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!y)return null;const E=y[1],N=this.context.cursorConfig.autoClosingPairs.autoClosingPairsCloseSingleChar.get(E);if(!N||N.length!==1)return null;const T=N[0].open,R=S.text.length-y[2].length-1,F=S.text.lastIndexOf(T,R-1);if(F===-1)return null;_.push([F,R])}return _}executeEdits(p,_,m,h){let S=null;_==="snippet"&&(S=this._findAutoClosingPairs(m)),S&&(m[0]._isTracked=!0);const y=[],E=[],N=this._model.pushEditOperations(this.getSelections(),m,T=>{if(S)for(let F=0,O=S.length;F<O;F++){const[D,M]=S[F],P=T[F],B=P.range.startLineNumber,W=P.range.startColumn-1+D,V=P.range.startColumn-1+M;y.push(new u.Range(B,V+1,B,V+2)),E.push(new u.Range(B,W+1,B,V+2))}const R=h(T);return R&&(this._isHandling=!0),R});N&&(this._isHandling=!1,this.setSelections(p,_,N,0)),y.length>0&&this._pushAutoClosedAction(y,E)}_executeEdit(p,_,m,h=0){if(this.context.cursorConfig.readOnly)return;const S=l.from(this._model,this);this._cursors.stopTrackingSelections(),this._isHandling=!0;try{this._cursors.ensureValidState(),p()}catch(y){(0,w.onUnexpectedError)(y)}this._isHandling=!1,this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(_,m,h,S,!1)&&this.revealPrimary(_,m,!1,0,!0,0)}getAutoClosedCharacters(){return a.getAllAutoClosedCharacters(this._autoClosedActions)}startComposition(p){this._compositionState=new c(this._model,this.getSelections())}endComposition(p,_){const m=this._compositionState?this._compositionState.deduceOutcome(this._model,this.getSelections()):null;this._compositionState=null,this._executeEdit(()=>{_==="keyboard"&&this._executeEditOperation(v.TypeOperations.compositionEndWithInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,m,this.getSelections(),this.getAutoClosedCharacters()))},p,_)}type(p,_,m){this._executeEdit(()=>{if(m==="keyboard"){const h=_.length;let S=0;for(;S<h;){const y=C.nextCharLength(_,S),E=_.substr(S,y);this._executeEditOperation(v.TypeOperations.typeWithInterceptors(!!this._compositionState,this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),this.getAutoClosedCharacters(),E)),S+=y}}else this._executeEditOperation(v.TypeOperations.typeWithoutInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),_))},p,m)}compositionType(p,_,m,h,S,y){if(_.length===0&&m===0&&h===0){if(S!==0){const E=this.getSelections().map(N=>{const T=N.getPosition();return new g.Selection(T.lineNumber,T.column+S,T.lineNumber,T.column+S)});this.setSelections(p,y,E,0)}return}this._executeEdit(()=>{this._executeEditOperation(v.TypeOperations.compositionType(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),_,m,h,S))},p,y)}paste(p,_,m,h,S){this._executeEdit(()=>{this._executeEditOperation(v.TypeOperations.paste(this.context.cursorConfig,this._model,this.getSelections(),_,m,h||[]))},p,S,4)}cut(p,_){this._executeEdit(()=>{this._executeEditOperation(b.DeleteOperations.cut(this.context.cursorConfig,this._model,this.getSelections()))},p,_)}executeCommand(p,_,m){this._executeEdit(()=>{this._cursors.killSecondaryCursors(),this._executeEditOperation(new I.EditOperationResult(0,[_],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},p,m)}executeCommands(p,_,m){this._executeEdit(()=>{this._executeEditOperation(new I.EditOperationResult(0,_,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},p,m)}}e.CursorsController=d,d.MAX_CURSOR_COUNT=1e4;class l{constructor(p,_){this.modelVersionId=p,this.cursorState=_}static from(p,_){return new l(p.getVersionId(),_.getCursorStates())}equals(p){if(!p||this.modelVersionId!==p.modelVersionId||this.cursorState.length!==p.cursorState.length)return!1;for(let _=0,m=this.cursorState.length;_<m;_++)if(!this.cursorState[_].equals(p.cursorState[_]))return!1;return!0}}class a{constructor(p,_,m){this._model=p,this._autoClosedCharactersDecorations=_,this._autoClosedEnclosingDecorations=m}static getAllAutoClosedCharacters(p){let _=[];for(const m of
|
||
|
`);const S=this.matchEnterRuleMovingDown(t,c,a,l.startLineNumber,p,m);if(S!==null)S!==0&&this.getIndentEditsOfMovingBlock(t,s,l,a,o,S);else{f.getLineContent=E=>E===l.startLineNumber?m:E>=l.startLineNumber+1&&E<=l.endLineNumber+1?t.getLineContent(E-1):t.getLineContent(E);const y=(0,u.getGoodIndentForLine)(this._autoIndent,f,t.getLanguageIdAtPosition(p,1),l.startLineNumber+1,c,this._languageConfigurationService);if(y!==null){const E=w.getLeadingWhitespace(t.getLineContent(l.startLineNumber)),N=v.getSpaceCnt(y,a),T=v.getSpaceCnt(E,a);if(N!==T){const R=N-T;this.getIndentEditsOfMovingBlock(t,s,l,a,o,R)}}}}else s.addEditOperation(new k.Range(l.startLineNumber,1,l.startLineNumber,1),m+`
|
||
|
`)}else if(p=l.startLineNumber-1,_=t.getLineContent(p),s.addEditOperation(new k.Range(p,1,p+1,1),null),s.addEditOperation(new k.Range(l.endLineNumber,t.getLineMaxColumn(l.endLineNumber),l.endLineNumber,t.getLineMaxColumn(l.endLineNumber)),`
|
||
|
`+_),this.shouldAutoIndent(t,l)){f.getLineContent=h=>h===p?t.getLineContent(l.startLineNumber):t.getLineContent(h);const m=this.matchEnterRule(t,c,a,l.startLineNumber,l.startLineNumber-2);if(m!==null)m!==0&&this.getIndentEditsOfMovingBlock(t,s,l,a,o,m);else{const h=(0,u.getGoodIndentForLine)(this._autoIndent,f,t.getLanguageIdAtPosition(l.startLineNumber,1),p,c,this._languageConfigurationService);if(h!==null){const S=w.getLeadingWhitespace(t.getLineContent(l.startLineNumber)),y=v.getSpaceCnt(h,a),E=v.getSpaceCnt(S,a);if(y!==E){const N=y-E;this.getIndentEditsOfMovingBlock(t,s,l,a,o,N)}}}}}this._selectionId=s.trackSelection(l)}buildIndentConverter(t,s,d){return{shiftIndent:l=>C.ShiftCommand.shiftIndent(l,l.length+1,t,s,d),unshiftIndent:l=>C.ShiftCommand.unshiftIndent(l,l.length+1,t,s,d)}}parseEnterResult(t,s,d,l,a){if(a){let r=a.indentation;a.indentAction===L.IndentAction.None||a.indentAction===L.IndentAction.Indent?r=a.indentation+a.appendText:a.indentAction===L.IndentAction.IndentOutdent?r=a.indentation:a.indentAction===L.IndentAction.Outdent&&(r=s.unshiftIndent(a.indentation)+a.appendText);const o=t.getLineContent(l);if(this.trimLeft(o).indexOf(this.trimLeft(r))>=0){const c=w.getLeadingWhitespace(t.getLineContent(l));let f=w.getLeadingWhitespace(r);const p=(0,u.getIndentMetadata)(t,l,this._languageConfigurationService);p!==null&&p&2&&(f=s.unshiftIndent(f));const _=v.getSpaceCnt(f,d),m=v.getSpaceCnt(c,d);return _-m}}return null}matchEnterRuleMovingDown(t,s,d,l,a,r){if(w.lastNonWhitespaceIndex(r)>=0){const o=t.getLineMaxColumn(a),c=(0,g.getEnterAction)(this._autoIndent,t,new k.Range(a,o,a,o),this._languageConfigurationService);return this.parseEnterResult(t,s,d,l,c)}else{let o=l-1;for(;o>=1;){const p=t.getLineContent(o);if(w.lastNonWhitespaceIndex(p)>=0)break;o--}if(o<1||l>t.getLineCount())return null;const c=t.getLineMaxColumn(o),f=(0,g.getEnterAction)(this._autoIndent,t,new k.Range(o,c,o,c),this._languageConfigurationService);return this.parseEnterResult(t,s,d,l,f)}}matchEnterRule(t,s,d,l,a,r){let o=a;for(;o>=1;){let p;if(o===a&&r!==void 0?p=r:p=t.getLineContent(o),w.lastNonWhitespaceIndex(p)>=0)break;o--}if(o<1||l>t.getLineCount())return null;const c=t.getLineMaxColumn(o),f=(0,g.getEnterAction)(this._autoIndent,t,new k.Range(o,c,o,c),this._languageConfigurationService);return this.parseEnterResult(t,s,d,l,f)}trimLeft(t){return t.replace(/^\s+/,"")}shouldAutoIndent(t,s){if(this._autoIndent<4||!t.tokenization.isCheapToTokenize(s.startLineNumber))return!1;const d=t.getLanguageIdAtPosition(s.startLineNumber,1),l=t.getLanguageIdAtPosition(s.endLineNumber,1);return!(d!==l||this._languageConfigurationService.getLanguageConfiguration(d).indentRulesSupport===null)}getIndentEditsOfMovingBlock(t,s,d,l,a,r){for(let o=d.startLineNumber;o<=d.endLineNumber;o++){const c=t.getLineContent(o),f=w.getLeadingWhitespace(c),_=v.getSpaceCnt(f,l)+r,m=v.generateIndent(_,l,a);m!==f&&(s.addEditOperation(new k.Range(o,1,o,f.length+1),m),o===d.endLineNumber&&d.endColumn<=f.length+1&&m===""&&(this._moveEndLineSelectionShrink=!0))}}computeCursorState(t,s){let d=s.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(d=d.setEndPosition(d.endLineNumber+1,1)),this._moveEndLineSelectionShrink&&d.startLineNumber<d.endLineNumber&&(d=d.setEndPosition(d.endLineNumber,2)),d}};n=ke([fe(3,b.ILanguageConfigurationService)],n),e.MoveLinesCommand=n}),define(re[117],ae([1,0,496,45,37,14,272,6,2,65,72]),function($,e,w,C,k,I,L,b,v,u,g){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.MarkdownRenderer=void 0;let i=class Ni{constructor(s,d,l){this._options=s,this._languageService=d,this._openerService=l,this._onDidRenderAsync=new b.Emitter,this.onDidRenderAsync=this._onDidRenderAsync.event}dispose(){this._onDidRenderAsync.dispose()}render(s,d,l){if(!s)return{element:document.createElement("span"),dispose:()=>{}};const a=new v.DisposableStore;return{element:a.add((0,w.renderMarkdown)(s,Object.assign(Object.assign({},this._getRenderOptions(s,a)),d),l)).element,dispose:()=>a.dispose()}}_getRenderOptions(s,d){return{codeBlockRendere
|
||
|
`,p+=`prefix: ${(r=l.word)!==null&&r!==void 0?r:"(no prefix)"}
|
||
|
`,p+=`word: ${l.completion.filterText?l.completion.filterText+" (filterText)":l.textLabel}
|
||
|
`,p+=`distance: ${l.distance} (localityBonus-setting)
|
||
|
`,p+=`index: ${l.idx}, based on ${l.completion.sortText&&`sortText: "${l.completion.sortText}"`||"label"}
|
||
|
`,p+=`commit_chars: ${(o=l.completion.commitCharacters)===null||o===void 0?void 0:o.join("")}
|
||
|
`,f=new L.MarkdownString().appendCodeblock("empty",p),c=`Provider: ${l.provider._debugDisplayName}`}if(!a&&!i(l)){this.clearContents();return}if(this.domNode.classList.remove("no-docs","no-type"),c){const p=c.length>1e5?`${c.substr(0,1e5)}\u2026`:c;this._type.textContent=p,this._type.title=p,w.show(this._type),this._type.classList.toggle("auto-wrap",!/\r?\n^\s+/gmi.test(p))}else w.clearNode(this._type),this._type.title="",w.hide(this._type),this.domNode.classList.add("no-type");if(w.clearNode(this._docs),typeof f=="string")this._docs.classList.remove("markdown-docs"),this._docs.textContent=f;else if(f){this._docs.classList.add("markdown-docs"),w.clearNode(this._docs);const p=this._markdownRenderer.render(f);this._docs.appendChild(p.element),this._renderDisposeable.add(p),this._renderDisposeable.add(this._markdownRenderer.onDidRenderAsync(()=>{this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)}))}this.domNode.style.userSelect="text",this.domNode.tabIndex=-1,this._close.onmousedown=p=>{p.preventDefault(),p.stopPropagation()},this._close.onclick=p=>{p.preventDefault(),p.stopPropagation(),this._onDidClose.fire()},this._body.scrollTop=0,this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)}clearContents(){this.domNode.classList.add("no-docs"),this._type.textContent="",this._docs.textContent=""}get size(){return this._size}layout(l,a){const r=new w.Dimension(l,a);w.Dimension.equals(r,this._size)||(this._size=r,w.size(this.domNode,l,a)),this._scrollbar.scanDomNode()}scrollDown(l=8){this._body.scrollTop+=l}scrollUp(l=8){this._body.scrollTop-=l}scrollTop(){this._body.scrollTop=0}scrollBottom(){this._body.scrollTop=this._body.scrollHeight}pageDown(){this.scrollDown(80)}pageUp(){this.scrollUp(80)}set borderWidth(l){this._borderWidth=l}get borderWidth(){return this._borderWidth}};t=ke([fe(1,n.IInstantiationService)],t),e.SuggestDetailsWidget=t;class s{constructor(l,a){this.widget=l,this._editor=a,this._disposables=new b.DisposableStore,this._added=!1,this._preferAlignAtTop=!0,this._resizable=new u.ResizableHTMLElement,this._resizable.domNode.classList.add("suggest-details-container"),this._resizable.domNode.appendChild(l.domNode),this._resizable.enableSashes(!1,!0,!0,!1);let r,o,c=0,f=0;this._disposables.add(this._resizable.onDidWillResize(()=>{r=this._topLeft,o=this._resizable.size})),this._disposables.add(this._resizable.onDidResize(p=>{if(r&&o){this.widget.layout(p.dimension.width,p.dimension.height);let _=!1;p.west&&(f=o.width-p.dimension.width,_=!0),p.north&&(c=o.height-p.dimension.height,_=!0),_&&this._applyTopLeft({top:r.top+c,left:r.left+f})}p.done&&(r=void 0,o=void 0,c=0,f=0,this._userSize=p.dimension)})),this._disposables.add(this.widget.onDidChangeContents(()=>{var p;this._anchorBox&&this._placeAtAnchor(this._anchorBox,(p=this._userSize)!==null&&p!==void 0?p:this.widget.size,this._preferAlignAtTop)}))}dispose(){this._resizable.dispose(),this._disposables.dispose(),this.hide()}getId(){return"suggest.details"}getDomNode(){return this._resizable.domNode}getPosition(){return null}show(){this._added||(this._editor.addOverlayWidget(this),this.getDomNode().style.position="fixed",this._added=!0)}hide(l=!1){this._resizable.clearSashHoverState(),this._added&&(this._editor.removeOverlayWidget(this),this._added=!1,this._anchorBox=void 0,this._topLeft=void 0),l&&(this._userSize=void 0,this.widget.clearContents())}placeAtAnchor(l,a){var r;const o=l.getBoundingClientRect();this._anchorBox=o,this._preferAlignAtTop=a,this._placeAtAnchor(this._anchorBox,(r=this._userSize)!==null&&r!==void 0?r:this.widget.size,a)}_placeAtAnchor(l,a,r){var o;const c=w.getClientArea(document.body),f=this.widget.getLayoutInfo(),p=new w.Dimension(220,2*f.lineHeight),_=l.top,m=function(){const D=c.width-(l.left+l.width+f.borderWidth+f.horizontalPadding),M=-f.borderWidth+l.left+l.width,P=new w.Dimension(D,c.height-l.top-f.borderHeight-f.verticalPadding),B=P.with(void 0,l.top+l.height-f.borderHeight-f.verticalPadding);return{top:_,left:M,fi
|
||
|
`)}}const n=new g;v.Registry.add(e.Extensions.ColorContribution,n);function i(T){return T===null||typeof T.hcLight=="undefined"&&(T.hcDark===null||typeof T.hcDark=="string"?T.hcLight=T.hcDark:T.hcLight=T.light),T}function t(T,R,F,O,D){return n.registerColor(T,i(R),F,O,D)}e.registerColor=t,e.foreground=t("foreground",{dark:"#CCCCCC",light:"#616161",hcDark:"#FFFFFF",hcLight:"#292929"},L.localize(0,null)),e.disabledForeground=t("disabledForeground",{dark:"#CCCCCC80",light:"#61616180",hcDark:"#A5A5A5",hcLight:"#7F7F7F"},L.localize(1,null)),e.errorForeground=t("errorForeground",{dark:"#F48771",light:"#A1260D",hcDark:"#F48771",hcLight:"#B5200D"},L.localize(2,null)),e.descriptionForeground=t("descriptionForeground",{light:"#717171",dark:_(e.foreground,.7),hcDark:_(e.foreground,.7),hcLight:_(e.foreground,.7)},L.localize(3,null)),e.iconForeground=t("icon.foreground",{dark:"#C5C5C5",light:"#424242",hcDark:"#FFFFFF",hcLight:"#292929"},L.localize(4,null)),e.focusBorder=t("focusBorder",{dark:"#007FD4",light:"#0090F1",hcDark:"#F38518",hcLight:"#0F4A85"},L.localize(5,null)),e.contrastBorder=t("contrastBorder",{light:null,dark:null,hcDark:"#6FC3DF",hcLight:"#0F4A85"},L.localize(6,null)),e.activeContrastBorder=t("contrastActiveBorder",{light:null,dark:null,hcDark:e.focusBorder,hcLight:e.focusBorder},L.localize(7,null)),e.selectionBackground=t("selection.background",{light:null,dark:null,hcDark:null,hcLight:null},L.localize(8,null)),e.textSeparatorForeground=t("textSeparator.foreground",{light:"#0000002e",dark:"#ffffff2e",hcDark:C.Color.black,hcLight:"#292929"},L.localize(9,null)),e.textLinkForeground=t("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hcDark:"#3794FF",hcLight:"#0F4A85"},L.localize(10,null)),e.textLinkActiveForeground=t("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hcDark:"#3794FF",hcLight:"#0F4A85"},L.localize(11,null)),e.textPreformatForeground=t("textPreformat.foreground",{light:"#A31515",dark:"#D7BA7D",hcDark:"#D7BA7D",hcLight:"#292929"},L.localize(12,null)),e.textBlockQuoteBackground=t("textBlockQuote.background",{light:"#7f7f7f1a",dark:"#7f7f7f1a",hcDark:null,hcLight:"#F2F2F2"},L.localize(13,null)),e.textBlockQuoteBorder=t("textBlockQuote.border",{light:"#007acc80",dark:"#007acc80",hcDark:C.Color.white,hcLight:"#292929"},L.localize(14,null)),e.textCodeBlockBackground=t("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hcDark:C.Color.black,hcLight:"#F2F2F2"},L.localize(15,null)),e.widgetShadow=t("widget.shadow",{dark:_(C.Color.black,.36),light:_(C.Color.black,.16),hcDark:null,hcLight:null},L.localize(16,null)),e.inputBackground=t("input.background",{dark:"#3C3C3C",light:C.Color.white,hcDark:C.Color.black,hcLight:C.Color.white},L.localize(17,null)),e.inputForeground=t("input.foreground",{dark:e.foreground,light:e.foreground,hcDark:e.foreground,hcLight:e.foreground},L.localize(18,null)),e.inputBorder=t("input.border",{dark:null,light:null,hcDark:e.contrastBorder,hcLight:e.contrastBorder},L.localize(19,null)),e.inputActiveOptionBorder=t("inputOption.activeBorder",{dark:"#007ACC00",light:"#007ACC00",hcDark:e.contrastBorder,hcLight:e.contrastBorder},L.localize(20,null)),e.inputActiveOptionHoverBackground=t("inputOption.hoverBackground",{dark:"#5a5d5e80",light:"#b8b8b850",hcDark:null,hcLight:null},L.localize(21,null)),e.inputActiveOptionBackground=t("inputOption.activeBackground",{dark:_(e.focusBorder,.4),light:_(e.focusBorder,.2),hcDark:C.Color.transparent,hcLight:C.Color.transparent},L.localize(22,null)),e.inputActiveOptionForeground=t("inputOption.activeForeground",{dark:C.Color.white,light:C.Color.black,hcDark:null,hcLight:e.foreground},L.localize(23,null)),e.inputPlaceholderForeground=t("input.placeholderForeground",{light:_(e.foreground,.5),dark:_(e.foreground,.5),hcDark:_(e.foreground,.7),hcLight:_(e.foreground,.7)},L.localize(24,null)),e.inputValidationInfoBackground=t("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hcDark:C.Color.black,hcLight:C.Color.white},L.localize(25,null)),e.inputValidationInfoForeground=t("inputValidation.infoForeground",{dark:null,light:null
|
||
|
${c(h)}: ${y};`}return m+=`
|
||
|
}`,m}dispose(){this._styleElement.remove()}increaseRefCount(){this._referenceCount++}decreaseRefCount(){this._referenceCount--}hasReferences(){return this._referenceCount>0}}function c(f){return f.replace(/(^[A-Z])/,([p])=>p.toLowerCase()).replace(/([A-Z])/g,([p])=>`-${p.toLowerCase()}`)}}),define(re[142],ae([1,0,25]),function($,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.attachMenuStyler=e.defaultMenuStyles=e.defaultListStyles=e.attachListStyler=e.attachBadgeStyler=e.attachStyler=e.computeStyles=void 0;function C(v,u){const g=Object.create(null);for(const n in u){const i=u[n];i&&(g[n]=(0,w.resolveColorValue)(i,v))}return g}e.computeStyles=C;function k(v,u,g){function n(){const i=C(v.getColorTheme(),u);typeof g=="function"?g(i):g.style(i)}return n(),v.onDidColorThemeChange(n)}e.attachStyler=k;function I(v,u,g){return k(u,{badgeBackground:(g==null?void 0:g.badgeBackground)||w.badgeBackground,badgeForeground:(g==null?void 0:g.badgeForeground)||w.badgeForeground,badgeBorder:w.contrastBorder},v)}e.attachBadgeStyler=I;function L(v,u,g){return k(u,Object.assign(Object.assign({},e.defaultListStyles),g||{}),v)}e.attachListStyler=L,e.defaultListStyles={listFocusBackground:w.listFocusBackground,listFocusForeground:w.listFocusForeground,listFocusOutline:w.listFocusOutline,listActiveSelectionBackground:w.listActiveSelectionBackground,listActiveSelectionForeground:w.listActiveSelectionForeground,listActiveSelectionIconForeground:w.listActiveSelectionIconForeground,listFocusAndSelectionOutline:w.listFocusAndSelectionOutline,listFocusAndSelectionBackground:w.listActiveSelectionBackground,listFocusAndSelectionForeground:w.listActiveSelectionForeground,listInactiveSelectionBackground:w.listInactiveSelectionBackground,listInactiveSelectionIconForeground:w.listInactiveSelectionIconForeground,listInactiveSelectionForeground:w.listInactiveSelectionForeground,listInactiveFocusBackground:w.listInactiveFocusBackground,listInactiveFocusOutline:w.listInactiveFocusOutline,listHoverBackground:w.listHoverBackground,listHoverForeground:w.listHoverForeground,listDropBackground:w.listDropBackground,listSelectionOutline:w.activeContrastBorder,listHoverOutline:w.activeContrastBorder,listFilterWidgetBackground:w.listFilterWidgetBackground,listFilterWidgetOutline:w.listFilterWidgetOutline,listFilterWidgetNoMatchesOutline:w.listFilterWidgetNoMatchesOutline,listFilterWidgetShadow:w.listFilterWidgetShadow,treeIndentGuidesStroke:w.treeIndentGuidesStroke,tableColumnsBorder:w.tableColumnsBorder,tableOddRowsBackgroundColor:w.tableOddRowsBackgroundColor,inputActiveOptionBorder:w.inputActiveOptionBorder,inputActiveOptionForeground:w.inputActiveOptionForeground,inputActiveOptionBackground:w.inputActiveOptionBackground,inputBackground:w.inputBackground,inputForeground:w.inputForeground,inputBorder:w.inputBorder,inputValidationInfoBackground:w.inputValidationInfoBackground,inputValidationInfoForeground:w.inputValidationInfoForeground,inputValidationInfoBorder:w.inputValidationInfoBorder,inputValidationWarningBackground:w.inputValidationWarningBackground,inputValidationWarningForeground:w.inputValidationWarningForeground,inputValidationWarningBorder:w.inputValidationWarningBorder,inputValidationErrorBackground:w.inputValidationErrorBackground,inputValidationErrorForeground:w.inputValidationErrorForeground,inputValidationErrorBorder:w.inputValidationErrorBorder},e.defaultMenuStyles={shadowColor:w.widgetShadow,borderColor:w.menuBorder,foregroundColor:w.menuForeground,backgroundColor:w.menuBackground,selectionForegroundColor:w.menuSelectionForeground,selectionBackgroundColor:w.menuSelectionBackground,selectionBorderColor:w.menuSelectionBorder,separatorColor:w.menuSeparatorBackground,scrollbarShadow:w.scrollbarShadow,scrollbarSliderBackground:w.scrollbarSliderBackground,scrollbarSliderHoverBackground:w.scrollbarSliderHoverBackground,scrollbarSliderActiveBackground:w.scrollbarSliderActiveBackground};function b(v,u,g){return k(u,Object.assign(Object.assign({},e.defaultMenuStyles),g),v)}e.attachMenuStyler=b}),define(re[665],ae([1,0,7,67,491,42,14,2,1
|
||
|
target: ${this.target?this.target.outerHTML:null}`}_getMouseColumn(h=null){return h&&h.column<this._ctx.viewModel.getLineMaxColumn(h.lineNumber)?b.CursorColumns.visibleColumnFromColumn(this._ctx.viewModel.getLineContent(h.lineNumber),h.column,this._ctx.viewModel.model.getOptions().tabSize)+1:this.mouseColumn}fulfillUnknown(h=null){return s.createUnknown(this.target,this._getMouseColumn(h),h)}fulfillTextarea(){return s.createTextarea(this.target,this._getMouseColumn())}fulfillMargin(h,S,y,E){return s.createMargin(h,this.target,this._getMouseColumn(S),S,y,E)}fulfillViewZone(h,S,y){return s.createViewZone(h,this.target,this._getMouseColumn(S),S,y)}fulfillContentText(h,S,y){return s.createContentText(this.target,this._getMouseColumn(h),h,S,y)}fulfillContentEmpty(h,S){return s.createContentEmpty(this.target,this._getMouseColumn(h),h,S)}fulfillContentWidget(h){return s.createContentWidget(this.target,this._getMouseColumn(),h)}fulfillScrollbar(h){return s.createScrollbar(this.target,this._getMouseColumn(h),h)}fulfillOverlayWidget(h){return s.createOverlayWidget(this.target,this._getMouseColumn(),h)}withTarget(h){return new r(this._ctx,this.editorPos,this.pos,this.relativePos,h)}}const o={isAfterLines:!0};function c(m){return{isAfterLines:!1,horizontalDistanceToText:m}}class f{constructor(h,S){this._context=h,this._viewHelper=S}mouseTargetIsWidget(h){const S=h.target,y=C.PartFingerprints.collect(S,this._viewHelper.viewDomNode);return!!(d.isChildOfContentWidgets(y)||d.isChildOfOverflowingContentWidgets(y)||d.isChildOfOverlayWidgets(y))}createMouseTarget(h,S,y,E,N){const T=new l(this._context,this._viewHelper,h),R=new r(T,S,y,E,N);try{return f._createMouseTarget(T,R,!1)}catch{return R.fulfillUnknown()}}static _createMouseTarget(h,S,y){if(S.target===null){if(y)return S.fulfillUnknown();const T=f._doHitTest(h,S);return T.type===1?f.createMouseTargetFromHitTestPosition(h,S,T.spanNode,T.position,T.injectedText):this._createMouseTarget(h,S.withTarget(T.hitTarget),!0)}const E=S;let N=null;return N=N||f._hitTestContentWidget(h,E),N=N||f._hitTestOverlayWidget(h,E),N=N||f._hitTestMinimap(h,E),N=N||f._hitTestScrollbarSlider(h,E),N=N||f._hitTestViewZone(h,E),N=N||f._hitTestMargin(h,E),N=N||f._hitTestViewCursor(h,E),N=N||f._hitTestTextArea(h,E),N=N||f._hitTestViewLines(h,E,y),N=N||f._hitTestScrollbar(h,E),N||S.fulfillUnknown()}static _hitTestContentWidget(h,S){if(d.isChildOfContentWidgets(S.targetPath)||d.isChildOfOverflowingContentWidgets(S.targetPath)){const y=h.findAttribute(S.target,"widgetId");return y?S.fulfillContentWidget(y):S.fulfillUnknown()}return null}static _hitTestOverlayWidget(h,S){if(d.isChildOfOverlayWidgets(S.targetPath)){const y=h.findAttribute(S.target,"widgetId");return y?S.fulfillOverlayWidget(y):S.fulfillUnknown()}return null}static _hitTestViewCursor(h,S){if(S.target){const y=h.lastRenderData.lastViewCursorsRenderData;for(const E of y)if(S.target===E.domNode)return S.fulfillContentText(E.position,null,{mightBeForeignElement:!1,injectedText:null})}if(S.isInContentArea){const y=h.lastRenderData.lastViewCursorsRenderData,E=S.mouseContentHorizontalOffset,N=S.mouseVerticalOffset;for(const T of y){if(E<T.contentLeft||E>T.contentLeft+T.width)continue;const R=h.getVerticalOffsetForLineNumber(T.position.lineNumber);if(R<=N&&N<=R+T.height)return S.fulfillContentText(T.position,null,{mightBeForeignElement:!1,injectedText:null})}}return null}static _hitTestViewZone(h,S){const y=h.getZoneAtCoord(S.mouseVerticalOffset);if(y){const E=S.isInContentArea?8:5;return S.fulfillViewZone(E,y.position,y)}return null}static _hitTestTextArea(h,S){return d.isTextArea(S.targetPath)?h.lastRenderData.lastTextareaPosition?S.fulfillContentText(h.lastRenderData.lastTextareaPosition,null,{mightBeForeignElement:!1,injectedText:null}):S.fulfillTextarea():null}static _hitTestMargin(h,S){if(S.isInMarginArea){const y=h.getFullLineRangeAtCoord(S.mouseVerticalOffset),E=y.range.getStartPosition();let N=Math.abs(S.relativePos.x);const T={isAfterLines:y.isAfterLines,glyphMarginLeft:h.layoutInfo.glyphMarginLeft,glyphMarginWidth:h.layoutInfo.glyphMarginWidth,lin
|
||
|
.monaco-scrollable-element > .shadow.top {
|
||
|
box-shadow: ${n} 0 6px 6px -6px inset;
|
||
|
}
|
||
|
|
||
|
.monaco-scrollable-element > .shadow.left {
|
||
|
box-shadow: ${n} 6px 0 6px -6px inset;
|
||
|
}
|
||
|
|
||
|
.monaco-scrollable-element > .shadow.top.left {
|
||
|
box-shadow: ${n} 6px 6px 6px -6px inset;
|
||
|
}
|
||
|
`);const i=u.getColor(b.scrollbarSliderBackground);i&&g.addRule(`
|
||
|
.monaco-scrollable-element > .scrollbar > .slider {
|
||
|
background: ${i};
|
||
|
}
|
||
|
`);const t=u.getColor(b.scrollbarSliderHoverBackground);t&&g.addRule(`
|
||
|
.monaco-scrollable-element > .scrollbar > .slider:hover {
|
||
|
background: ${t};
|
||
|
}
|
||
|
`);const s=u.getColor(b.scrollbarSliderActiveBackground);s&&g.addRule(`
|
||
|
.monaco-scrollable-element > .scrollbar > .slider.active {
|
||
|
background: ${s};
|
||
|
}
|
||
|
`)})}),define(re[671],ae([1,0,7,33,132,2,17,8,202,47,36,3,232,274,74,25,15,23,62,405,46,96,362]),function($,e,w,C,k,I,L,b,v,u,g,n,i,t,s,d,l,a,r,o,c,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Minimap=void 0;const p=140,_=2;class m{constructor(D,M,P){const B=D.options,W=B.get(131),V=B.get(133),A=V.minimap,X=B.get(46),ee=B.get(67);this.renderMinimap=A.renderMinimap,this.size=ee.size,this.minimapHeightIsEditorHeight=A.minimapHeightIsEditorHeight,this.scrollBeyondLastLine=B.get(96),this.showSlider=ee.showSlider,this.autohide=ee.autohide,this.pixelRatio=W,this.typicalHalfwidthCharacterWidth=X.typicalHalfwidthCharacterWidth,this.lineHeight=B.get(61),this.minimapLeft=A.minimapLeft,this.minimapWidth=A.minimapWidth,this.minimapHeight=V.height,this.canvasInnerWidth=A.minimapCanvasInnerWidth,this.canvasInnerHeight=A.minimapCanvasInnerHeight,this.canvasOuterWidth=A.minimapCanvasOuterWidth,this.canvasOuterHeight=A.minimapCanvasOuterHeight,this.isSampling=A.minimapIsSampling,this.editorHeight=V.height,this.fontScale=A.minimapScale,this.minimapLineHeight=A.minimapLineHeight,this.minimapCharWidth=1*this.fontScale,this.charRenderer=(0,f.once)(()=>o.MinimapCharRendererFactory.create(this.fontScale,X.fontFamily)),this.defaultBackgroundColor=P.getColor(2),this.backgroundColor=m._getMinimapBackground(M,this.defaultBackgroundColor),this.foregroundAlpha=m._getMinimapForegroundOpacity(M)}static _getMinimapBackground(D,M){const P=D.getColor(d.minimapBackground);return P?new i.RGBA8(P.rgba.r,P.rgba.g,P.rgba.b,Math.round(255*P.rgba.a)):M}static _getMinimapForegroundOpacity(D){const M=D.getColor(d.minimapForegroundOpacity);return M?i.RGBA8._clamp(Math.round(255*M.rgba.a)):255}equals(D){return this.renderMinimap===D.renderMinimap&&this.size===D.size&&this.minimapHeightIsEditorHeight===D.minimapHeightIsEditorHeight&&this.scrollBeyondLastLine===D.scrollBeyondLastLine&&this.showSlider===D.showSlider&&this.autohide===D.autohide&&this.pixelRatio===D.pixelRatio&&this.typicalHalfwidthCharacterWidth===D.typicalHalfwidthCharacterWidth&&this.lineHeight===D.lineHeight&&this.minimapLeft===D.minimapLeft&&this.minimapWidth===D.minimapWidth&&this.minimapHeight===D.minimapHeight&&this.canvasInnerWidth===D.canvasInnerWidth&&this.canvasInnerHeight===D.canvasInnerHeight&&this.canvasOuterWidth===D.canvasOuterWidth&&this.canvasOuterHeight===D.canvasOuterHeight&&this.isSampling===D.isSampling&&this.editorHeight===D.editorHeight&&this.fontScale===D.fontScale&&this.minimapLineHeight===D.minimapLineHeight&&this.minimapCharWidth===D.minimapCharWidth&&this.defaultBackgroundColor&&this.defaultBackgroundColor.equals(D.defaultBackgroundColor)&&this.backgroundColor&&this.backgroundColor.equals(D.backgroundColor)&&this.foregroundAlpha===D.foregroundAlpha}}class h{constructor(D,M,P,B,W,V,A,X){this.scrollTop=D,this.scrollHeight=M,this.sliderNeeded=P,this._computedSliderRatio=B,this.sliderTop=W,this.sliderHeight=V,this.startLineNumber=A,this.endLineNumber=X}getDesiredScrollTopFromDelta(D){return Math.round(this.scrollTop+D/this._computedSliderRatio)}getDesiredScrollTopFromTouchLocation(D){return Math.round((D-this.sliderHeight/2)/this._computedSliderRatio)}static create(D,M,P,B,W,V,A,X,ee,H,q){const Z=D.pixelRatio,ie=D.minimapLineHeight,Y=Math.floor(D.canvasInnerHeight/ie),te=D.lineHeight;if(D.minimapHeightIsEditorHeight){const ne=X*D.lineHeight+(D.scrollBeyondLastLine?W-D.lineHeight:0),z=Math.max(1,Math.floor(W*W/ne)),J=Math.max(0,D.minimapHeight-z),G=J/(H-W),U=ee*G,j=J>0,ce=Math.floor(D.canvasInnerHeight/D.minimapLineHeight);return new h(ee,H,j,G,U,z,1,Math.min(A,ce))}let de;if(V&&P!==A){const ne=P-M+1;de=Math.floor(ne*ie/Z)}else{const ne=W/te;de=Math.floor(ne*ie/Z)}let x;D.scrollBeyondLastLine?x=(A-1)*ie/Z:x=Math.max(0,A*ie/Z-de),x=Math.min(D.minimapHeight-de,x);const oe=x/(H-W),Q=ee*oe;let K=0;if(D.scrollBeyondLastLine&&(K=W/te-1),Y>=A+K){const ne=1,z=A,J=x>0;return new h(ee,H,J,oe,Q,de,ne,z)}else{let ne=Math.max(1,Math.floor(M-Q*Z/ie));q&&q.scrollHeight===H&&(q.scrollTop>ee&&(ne=Math.min(ne,q.startLineNumber)),q.scrollTop<ee&&(ne=Math.max(ne,q.startLine
|
||
|
`),ee=A.substring(X+1),H=ee.lastIndexOf(" "),q=ee.length-H-1,Z=P.getStartPosition(),ie=Math.min(Z.column-1,q),Y=Z.column-1-ie,te=ee.substring(0,ee.length-ie),de=m(te,this._fontInfo);return{distanceToModelLineStart:Y,widthOfHiddenTextBefore:de}})(),{distanceToModelLineEnd:V}=(()=>{const A=M.value.substring(Math.max(M.selectionStart,M.selectionEnd)),X=A.indexOf(`
|
||
|
`),ee=X===-1?A:A.substring(0,X),H=ee.indexOf(" "),q=H===-1?ee.length:ee.length-H-1,Z=P.getEndPosition(),ie=Math.min(this._context.viewModel.model.getLineMaxColumn(Z.lineNumber)-Z.column,q);return{distanceToModelLineEnd:this._context.viewModel.model.getLineMaxColumn(Z.lineNumber)-Z.column-ie}})();this._context.viewModel.revealRange("keyboard",!0,l.Range.fromPositions(this._selections[0].getStartPosition()),0,1),this._visibleTextArea=new f(this._context,P.startLineNumber,B,W,V),this._visibleTextArea.prepareRender(this._visibleRangeProvider),this._render(),this.textArea.setClassName(`inputarea ${r.MOUSE_CURSOR_TEXT_CSS_CLASS_NAME} ime-input`),this._viewController.compositionStart(),this._context.viewModel.onCompositionStart()})),this._register(this._textAreaInput.onCompositionUpdate(D=>{!this._visibleTextArea||(this._visibleTextArea.prepareRender(this._visibleRangeProvider),this._render())})),this._register(this._textAreaInput.onCompositionEnd(()=>{this._visibleTextArea=null,this._render(),this.textArea.setClassName(`inputarea ${r.MOUSE_CURSOR_TEXT_CSS_CLASS_NAME}`),this._viewController.compositionEnd(),this._context.viewModel.onCompositionEnd()})),this._register(this._textAreaInput.onFocus(()=>{this._context.viewModel.setHasFocus(!0)})),this._register(this._textAreaInput.onBlur(()=>{this._context.viewModel.setHasFocus(!1)}))}dispose(){super.dispose()}_getAndroidWordAtPosition(S){const y='`~!@#$%^&*()-=+[{]}\\|;:",.<>/?',E=this._context.viewModel.getLineContent(S.lineNumber),N=(0,s.getMapForWordSeparators)(y);let T=!0,R=S.column,F=!0,O=S.column,D=0;for(;D<50&&(T||F);){if(T&&R<=1&&(T=!1),T){const M=E.charCodeAt(R-2);N.get(M)!==0?T=!1:R--}if(F&&O>E.length&&(F=!1),F){const M=E.charCodeAt(O-1);N.get(M)!==0?F=!1:O++}D++}return[E.substring(R-1,O-1),S.column-R]}_getWordBeforePosition(S){const y=this._context.viewModel.getLineContent(S.lineNumber),E=(0,s.getMapForWordSeparators)(this._context.configuration.options.get(119));let N=S.column,T=0;for(;N>1;){const R=y.charCodeAt(N-2);if(E.get(R)!==0||T>50)return y.substring(N-1,S.column-1);T++,N--}return y.substring(0,S.column-1)}_getCharacterBeforePosition(S){if(S.column>1){const E=this._context.viewModel.getLineContent(S.lineNumber).charAt(S.column-2);if(!L.isHighSurrogate(E.charCodeAt(0)))return E}return""}_getAriaLabel(S){return S.get(2)===1?w.localize(1,null,I.isLinux?"Shift+Alt+F1":"Alt+F1"):S.get(4)}_setAccessibilityOptions(S){this._accessibilitySupport=S.get(2);const y=S.get(3);this._accessibilitySupport===2&&y===t.EditorOptions.accessibilityPageSize.defaultValue?this._accessibilityPageSize=500:this._accessibilityPageSize=y}onConfigurationChanged(S){const y=this._context.configuration.options,E=y.get(133);return this._setAccessibilityOptions(y),this._contentLeft=E.contentLeft,this._contentWidth=E.contentWidth,this._contentHeight=E.height,this._fontInfo=y.get(46),this._lineHeight=y.get(61),this._emptySelectionClipboard=y.get(33),this._copyWithSyntaxHighlighting=y.get(21),this.textArea.setAttribute("aria-label",this._getAriaLabel(y)),this.textArea.setAttribute("tabindex",String(y.get(114))),(S.hasChanged(30)||S.hasChanged(83))&&(y.get(30)&&y.get(83)?this.textArea.setAttribute("readonly","true"):this.textArea.removeAttribute("readonly")),S.hasChanged(2)&&this._textAreaInput.writeScreenReaderContent("strategy changed"),!0}onCursorStateChanged(S){return this._selections=S.selections.slice(0),this._modelSelections=S.modelSelections.slice(0),this._textAreaInput.writeScreenReaderContent("selection changed"),!0}onDecorationsChanged(S){return!0}onFlushed(S){return!0}onLinesChanged(S){return!0}onLinesDeleted(S){return!0}onLinesInserted(S){return!0}onScrollChanged(S){return this._scrollLeft=S.scrollLeft,this._scrollTop=S.scrollTop,!0}onZonesChanged(S){return!0}isFocused(){return this._textAreaInput.isFocused()}focusTextArea(){this._textAreaInput.focusTextArea()}getLastRenderData(){return this._lastRenderPosition}setAriaOptions(S){S.activeDescendant?(this.textArea.setAttribute("aria-haspopup","true"),this.textArea.setAttribute("aria-autocomplete","list"),this.textArea.setAttribute("aria-act
|
||
|
`,E+1),E===-1)break;y++}while(!0);return y}_renderAtTopLeft(){this._doRender({lastRenderPosition:null,top:0,left:0,width:p?0:1,height:p?0:1,useCover:!0})}_doRender(S){this._lastRenderPosition=S.lastRenderPosition;const y=this.textArea,E=this.textAreaCover;(0,b.applyFontInfo)(y,this._fontInfo),y.setTop(S.top),y.setLeft(S.left),y.setWidth(S.width),y.setHeight(S.height),y.setColor(S.color?c.Color.Format.CSS.formatHex(S.color):""),y.setFontStyle(S.italic?"italic":""),S.bold&&y.setFontWeight("bold"),y.setTextDecoration(`${S.underline?" underline":""}${S.strikethrough?" line-through":""}`),E.setTop(S.useCover?S.top:0),E.setLeft(S.useCover?S.left:0),E.setWidth(S.useCover?S.width:0),E.setHeight(S.useCover?S.height:0);const N=this._context.configuration.options;N.get(52)?E.setClassName("monaco-editor-background textAreaCover "+i.Margin.OUTER_CLASS_NAME):N.get(62).renderType!==0?E.setClassName("monaco-editor-background textAreaCover "+n.LineNumbersOverlay.CLASS_NAME):E.setClassName("monaco-editor-background textAreaCover")}}e.TextAreaHandler=_;function m(h,S){if(h.length===0)return 0;const y=document.createElement("div");y.style.position="absolute",y.style.top="-50000px",y.style.width="50000px";const E=document.createElement("span");(0,b.applyFontInfo)(E,S),E.style.whiteSpace="pre",E.append(h),y.appendChild(E),document.body.appendChild(y);const N=E.offsetWidth;return document.body.removeChild(y),N}}),define(re[677],ae([1,0,33,31,47,11,28,54,74]),function($,e,w,C,k,I,L,b,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DecorationsOverviewRuler=void 0;class u{constructor(i,t){const s=i.options;this.lineHeight=s.get(61),this.pixelRatio=s.get(131),this.overviewRulerLanes=s.get(76),this.renderBorder=s.get(75);const d=t.getColor(b.editorOverviewRulerBorder);this.borderColor=d?d.toString():null,this.hideCursor=s.get(54);const l=t.getColor(b.editorCursorForeground);this.cursorColor=l?l.transparent(.7).toString():null,this.themeType=t.type;const a=s.get(67),r=a.enabled,o=a.side,c=t.getColor(b.editorOverviewRulerBackground),f=L.TokenizationRegistry.getDefaultBackground();let p=null;c!==void 0?p=c:r&&(p=f),p===null||o==="left"?this.backgroundColor=null:this.backgroundColor=C.Color.Format.CSS.formatHex(p);const m=s.get(133).overviewRuler;this.top=m.top,this.right=m.right,this.domWidth=m.width,this.domHeight=m.height,this.overviewRulerLanes===0?(this.canvasWidth=0,this.canvasHeight=0):(this.canvasWidth=this.domWidth*this.pixelRatio|0,this.canvasHeight=this.domHeight*this.pixelRatio|0);const[h,S]=this._initLanes(1,this.canvasWidth,this.overviewRulerLanes);this.x=h,this.w=S}_initLanes(i,t,s){const d=t-i;if(s>=3){const l=Math.floor(d/3),a=Math.floor(d/3),r=d-l-a,o=i,c=o+l,f=o+l+r;return[[0,o,c,o,f,o,c,o],[0,l,r,l+r,a,l+r+a,r+a,l+r+a]]}else if(s===2){const l=Math.floor(d/2),a=d-l,r=i,o=r+l;return[[0,r,r,r,o,r,r,r],[0,l,l,l,a,l+a,l+a,l+a]]}else{const l=i,a=d;return[[0,l,l,l,l,l,l,l],[0,a,a,a,a,a,a,a]]}}equals(i){return this.lineHeight===i.lineHeight&&this.pixelRatio===i.pixelRatio&&this.overviewRulerLanes===i.overviewRulerLanes&&this.renderBorder===i.renderBorder&&this.borderColor===i.borderColor&&this.hideCursor===i.hideCursor&&this.cursorColor===i.cursorColor&&this.themeType===i.themeType&&this.backgroundColor===i.backgroundColor&&this.top===i.top&&this.right===i.right&&this.domWidth===i.domWidth&&this.domHeight===i.domHeight&&this.canvasWidth===i.canvasWidth&&this.canvasHeight===i.canvasHeight}}class g extends k.ViewPart{constructor(i){super(i);this._domNode=(0,w.createFastDomNode)(document.createElement("canvas")),this._domNode.setClassName("decorationsOverviewRuler"),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._domNode.setAttribute("aria-hidden","true"),this._updateSettings(!1),this._tokensColorTrackerListener=L.TokenizationRegistry.onDidChange(t=>{t.changedColorMap&&this._updateSettings(!0)}),this._cursorPositions=[]}dispose(){super.dispose(),this._tokensColorTrackerListener.dispose()}_updateSettings(i){const t=new u(this._context.configuration,this._contex
|
||
|
.monaco-editor .contentWidgets ${k.Codicon.lightBulb.cssSelector} {
|
||
|
color: ${r};
|
||
|
background-color: ${a};
|
||
|
}`);const o=s.getColor(g.editorLightBulbAutoFixForeground);o&&d.addRule(`
|
||
|
.monaco-editor .contentWidgets ${k.Codicon.lightbulbAutofix.cssSelector} {
|
||
|
color: ${o};
|
||
|
background-color: ${a};
|
||
|
}`)})}),define(re[683],ae([1,0,41,7,132,68,31,6,2,548,25,15,376]),function($,e,w,C,k,I,L,b,v,u,g,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ColorPickerWidget=e.ColorPickerBody=e.ColorPickerHeader=void 0;const i=C.$;class t extends v.Disposable{constructor(f,p,_){super();this.model=p,this.domNode=i(".colorpicker-header"),C.append(f,this.domNode),this.pickedColorNode=C.append(this.domNode,i(".picked-color"));const m=(0,u.localize)(0,null);this.pickedColorNode.setAttribute("title",m);const h=C.append(this.domNode,i(".original-color"));h.style.backgroundColor=L.Color.Format.CSS.format(this.model.originalColor)||"",this.backgroundColor=_.getColorTheme().getColor(g.editorHoverBackground)||L.Color.white,this._register((0,n.registerThemingParticipant)((S,y)=>{this.backgroundColor=S.getColor(g.editorHoverBackground)||L.Color.white})),this._register(C.addDisposableListener(this.pickedColorNode,C.EventType.CLICK,()=>this.model.selectNextColorPresentation())),this._register(C.addDisposableListener(h,C.EventType.CLICK,()=>{this.model.color=this.model.originalColor,this.model.flushColor()})),this._register(p.onDidChangeColor(this.onDidChangeColor,this)),this._register(p.onDidChangePresentation(this.onDidChangePresentation,this)),this.pickedColorNode.style.backgroundColor=L.Color.Format.CSS.format(p.color)||"",this.pickedColorNode.classList.toggle("light",p.color.rgba.a<.5?this.backgroundColor.isLighter():p.color.isLighter()),this.onDidChangeColor(this.model.color)}onDidChangeColor(f){this.pickedColorNode.style.backgroundColor=L.Color.Format.CSS.format(f)||"",this.pickedColorNode.classList.toggle("light",f.rgba.a<.5?this.backgroundColor.isLighter():f.isLighter()),this.onDidChangePresentation()}onDidChangePresentation(){this.pickedColorNode.textContent=this.model.presentation?this.model.presentation.label:"",this.pickedColorNode.prepend(i(".codicon.codicon-color-mode"))}}e.ColorPickerHeader=t;class s extends v.Disposable{constructor(f,p,_){super();this.model=p,this.pixelRatio=_,this.domNode=i(".colorpicker-body"),C.append(f,this.domNode),this.saturationBox=new d(this.domNode,this.model,this.pixelRatio),this._register(this.saturationBox),this._register(this.saturationBox.onDidChange(this.onDidSaturationValueChange,this)),this._register(this.saturationBox.onColorFlushed(this.flushColor,this)),this.opacityStrip=new a(this.domNode,this.model),this._register(this.opacityStrip),this._register(this.opacityStrip.onDidChange(this.onDidOpacityChange,this)),this._register(this.opacityStrip.onColorFlushed(this.flushColor,this)),this.hueStrip=new r(this.domNode,this.model),this._register(this.hueStrip),this._register(this.hueStrip.onDidChange(this.onDidHueChange,this)),this._register(this.hueStrip.onColorFlushed(this.flushColor,this))}flushColor(){this.model.flushColor()}onDidSaturationValueChange({s:f,v:p}){const _=this.model.color.hsva;this.model.color=new L.Color(new L.HSVA(_.h,f,p,_.a))}onDidOpacityChange(f){const p=this.model.color.hsva;this.model.color=new L.Color(new L.HSVA(p.h,p.s,p.v,f))}onDidHueChange(f){const p=this.model.color.hsva,_=(1-f)*360;this.model.color=new L.Color(new L.HSVA(_===360?0:_,p.s,p.v,p.a))}layout(){this.saturationBox.layout(),this.opacityStrip.layout(),this.hueStrip.layout()}}e.ColorPickerBody=s;class d extends v.Disposable{constructor(f,p,_){super();this.model=p,this.pixelRatio=_,this._onDidChange=new b.Emitter,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new b.Emitter,this.onColorFlushed=this._onColorFlushed.event,this.domNode=i(".saturation-wrap"),C.append(f,this.domNode),this.canvas=document.createElement("canvas"),this.canvas.className="saturation-box",C.append(this.domNode,this.canvas),this.selection=i(".saturation-selection"),C.append(this.domNode,this.selection),this.layout(),this._register(C.addDisposableListener(this.domNode,C.EventType.POINTER_DOWN,m=>this.onPointerDown(m))),this._register(this.model.onDidChangeColor(this.onDidChangeColor,this)),this.monitor=null}onPointerDown(f){if(!f.target||!(f.target instanceof Element))return;this.monitor=this._register(new k.
|
||
|
${w.Codicon.symbolValue.cssSelector},${w.Codicon.symbolEnum.cssSelector} { color: ${d}; }`);const l=L.getColor(e.SYMBOL_ICON_ENUMERATOR_MEMBER_FOREGROUND);l&&b.addRule(`${w.Codicon.symbolEnumMember.cssSelector} { color: ${l}; }`);const a=L.getColor(e.SYMBOL_ICON_EVENT_FOREGROUND);a&&b.addRule(`${w.Codicon.symbolEvent.cssSelector} { color: ${a}; }`);const r=L.getColor(e.SYMBOL_ICON_FIELD_FOREGROUND);r&&b.addRule(`${w.Codicon.symbolField.cssSelector} { color: ${r}; }`);const o=L.getColor(e.SYMBOL_ICON_FILE_FOREGROUND);o&&b.addRule(`${w.Codicon.symbolFile.cssSelector} { color: ${o}; }`);const c=L.getColor(e.SYMBOL_ICON_FOLDER_FOREGROUND);c&&b.addRule(`${w.Codicon.symbolFolder.cssSelector} { color: ${c}; }`);const f=L.getColor(e.SYMBOL_ICON_FUNCTION_FOREGROUND);f&&b.addRule(`${w.Codicon.symbolFunction.cssSelector} { color: ${f}; }`);const p=L.getColor(e.SYMBOL_ICON_INTERFACE_FOREGROUND);p&&b.addRule(`${w.Codicon.symbolInterface.cssSelector} { color: ${p}; }`);const _=L.getColor(e.SYMBOL_ICON_KEY_FOREGROUND);_&&b.addRule(`${w.Codicon.symbolKey.cssSelector} { color: ${_}; }`);const m=L.getColor(e.SYMBOL_ICON_KEYWORD_FOREGROUND);m&&b.addRule(`${w.Codicon.symbolKeyword.cssSelector} { color: ${m}; }`);const h=L.getColor(e.SYMBOL_ICON_MODULE_FOREGROUND);h&&b.addRule(`${w.Codicon.symbolModule.cssSelector} { color: ${h}; }`);const S=L.getColor(e.SYMBOL_ICON_NAMESPACE_FOREGROUND);S&&b.addRule(`${w.Codicon.symbolNamespace.cssSelector} { color: ${S}; }`);const y=L.getColor(e.SYMBOL_ICON_NULL_FOREGROUND);y&&b.addRule(`${w.Codicon.symbolNull.cssSelector} { color: ${y}; }`);const E=L.getColor(e.SYMBOL_ICON_NUMBER_FOREGROUND);E&&b.addRule(`${w.Codicon.symbolNumber.cssSelector} { color: ${E}; }`);const N=L.getColor(e.SYMBOL_ICON_OBJECT_FOREGROUND);N&&b.addRule(`${w.Codicon.symbolObject.cssSelector} { color: ${N}; }`);const T=L.getColor(e.SYMBOL_ICON_OPERATOR_FOREGROUND);T&&b.addRule(`${w.Codicon.symbolOperator.cssSelector} { color: ${T}; }`);const R=L.getColor(e.SYMBOL_ICON_PACKAGE_FOREGROUND);R&&b.addRule(`${w.Codicon.symbolPackage.cssSelector} { color: ${R}; }`);const F=L.getColor(e.SYMBOL_ICON_PROPERTY_FOREGROUND);F&&b.addRule(`${w.Codicon.symbolProperty.cssSelector} { color: ${F}; }`);const O=L.getColor(e.SYMBOL_ICON_REFERENCE_FOREGROUND);O&&b.addRule(`${w.Codicon.symbolReference.cssSelector} { color: ${O}; }`);const D=L.getColor(e.SYMBOL_ICON_SNIPPET_FOREGROUND);D&&b.addRule(`${w.Codicon.symbolSnippet.cssSelector} { color: ${D}; }`);const M=L.getColor(e.SYMBOL_ICON_STRING_FOREGROUND);M&&b.addRule(`${w.Codicon.symbolString.cssSelector} { color: ${M}; }`);const P=L.getColor(e.SYMBOL_ICON_STRUCT_FOREGROUND);P&&b.addRule(`${w.Codicon.symbolStruct.cssSelector} { color: ${P}; }`);const B=L.getColor(e.SYMBOL_ICON_TEXT_FOREGROUND);B&&b.addRule(`${w.Codicon.symbolText.cssSelector} { color: ${B}; }`);const W=L.getColor(e.SYMBOL_ICON_TYPEPARAMETER_FOREGROUND);W&&b.addRule(`${w.Codicon.symbolTypeParameter.cssSelector} { color: ${W}; }`);const V=L.getColor(e.SYMBOL_ICON_UNIT_FOREGROUND);V&&b.addRule(`${w.Codicon.symbolUnit.cssSelector} { color: ${V}; }`);const A=L.getColor(e.SYMBOL_ICON_VARIABLE_FOREGROUND);A&&b.addRule(`${w.Codicon.symbolVariable.cssSelector} { color: ${A}; }`)})}),define(re[301],ae([1,0,7,52,669,29,16,53,15]),function($,e,w,C,k,I,L,b,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StandaloneCodeEditorService=void 0;let u=class extends k.AbstractCodeEditorService{constructor(n,i){super(i);this.onCodeEditorAdd(()=>this._checkContextKey()),this.onCodeEditorRemove(()=>this._checkContextKey()),this._editorIsOpen=n.createKey("editorIsOpen",!1),this._activeCodeEditor=null,this.registerCodeEditorOpenHandler((t,s,d)=>Se(this,void 0,void 0,function*(){return s?this.doOpenEditor(s,t):null}))}_checkContextKey(){let n=!1;for(const i of this.listCodeEditors())if(!i.isSimpleWidget){n=!0;break}this._editorIsOpen.set(n)}setActiveCodeEditor(n){this._activeCodeEditor=n}getActiveCodeEditor(){return this._activeCodeEditor}doOpenEditor(n,i){if(!this.findModel(n,i.resource)){if(i.resource){const d=i.resource.scheme;if(d===C.Schem
|
||
|
`))),K.push(ce),ne+=z.endLineNumber-z.startLineNumber+1-G.length}x.pushUndoStop(),x.executeEdits(this.id,Q,K),x.pushUndoStop()}}e.DeleteDuplicateLinesAction=N;class T extends k.EditorAction{constructor(){super({id:T.ID,label:l.localize(13,null),alias:"Trim Trailing Whitespace",precondition:i.EditorContextKeys.writable,kbOpts:{kbExpr:i.EditorContextKeys.editorTextFocus,primary:(0,w.KeyChord)(2048|41,2048|54),weight:100}})}run(de,x,oe){let Q=[];oe.reason==="auto-save"&&(Q=(x.getSelections()||[]).map(z=>new u.Position(z.positionLineNumber,z.positionColumn)));const K=x.getSelection();if(K===null)return;const ne=new L.TrimTrailingWhitespaceCommand(K,Q);x.pushUndoStop(),x.executeCommands(this.id,[ne]),x.pushUndoStop()}}e.TrimTrailingWhitespaceAction=T,T.ID="editor.action.trimTrailingWhitespace";class R extends k.EditorAction{constructor(){super({id:"editor.action.deleteLines",label:l.localize(14,null),alias:"Delete Line",precondition:i.EditorContextKeys.writable,kbOpts:{kbExpr:i.EditorContextKeys.textInputFocus,primary:2048|1024|41,weight:100}})}run(de,x){if(!x.hasModel())return;const oe=this._getLinesToRemove(x),Q=x.getModel();if(Q.getLineCount()===1&&Q.getLineMaxColumn(1)===1)return;let K=0;const ne=[],z=[];for(let J=0,G=oe.length;J<G;J++){const U=oe[J];let j=U.startLineNumber,ce=U.endLineNumber,se=1,he=Q.getLineMaxColumn(ce);ce<Q.getLineCount()?(ce+=1,he=1):j>1&&(j-=1,se=Q.getLineMaxColumn(j)),ne.push(v.EditOperation.replace(new n.Selection(j,se,ce,he),"")),z.push(new n.Selection(j-K,U.positionColumn,j-K,U.positionColumn)),K+=U.endLineNumber-U.startLineNumber+1}x.pushUndoStop(),x.executeEdits(this.id,ne,z),x.pushUndoStop()}_getLinesToRemove(de){const x=de.getSelections().map(K=>{let ne=K.endLineNumber;return K.startLineNumber<K.endLineNumber&&K.endColumn===1&&(ne-=1),{startLineNumber:K.startLineNumber,selectionStartColumn:K.selectionStartColumn,endLineNumber:ne,positionColumn:K.positionColumn}});x.sort((K,ne)=>K.startLineNumber===ne.startLineNumber?K.endLineNumber-ne.endLineNumber:K.startLineNumber-ne.startLineNumber);const oe=[];let Q=x[0];for(let K=1;K<x.length;K++)Q.endLineNumber+1>=x[K].startLineNumber?Q.endLineNumber=x[K].endLineNumber:(oe.push(Q),Q=x[K]);return oe.push(Q),oe}}e.DeleteLinesAction=R;class F extends k.EditorAction{constructor(){super({id:"editor.action.indentLines",label:l.localize(15,null),alias:"Indent Line",precondition:i.EditorContextKeys.writable,kbOpts:{kbExpr:i.EditorContextKeys.editorTextFocus,primary:2048|89,weight:100}})}run(de,x){const oe=x._getViewModel();!oe||(x.pushUndoStop(),x.executeCommands(this.id,b.TypeOperations.indent(oe.cursorConfig,x.getModel(),x.getSelections())),x.pushUndoStop())}}e.IndentLinesAction=F;class O extends k.EditorAction{constructor(){super({id:"editor.action.outdentLines",label:l.localize(16,null),alias:"Outdent Line",precondition:i.EditorContextKeys.writable,kbOpts:{kbExpr:i.EditorContextKeys.editorTextFocus,primary:2048|87,weight:100}})}run(de,x){C.CoreEditingCommands.Outdent.runEditorCommand(de,x,null)}}class D extends k.EditorAction{constructor(){super({id:"editor.action.insertLineBefore",label:l.localize(17,null),alias:"Insert Line Above",precondition:i.EditorContextKeys.writable,kbOpts:{kbExpr:i.EditorContextKeys.editorTextFocus,primary:2048|1024|3,weight:100}})}run(de,x){const oe=x._getViewModel();!oe||(x.pushUndoStop(),x.executeCommands(this.id,b.TypeOperations.lineInsertBefore(oe.cursorConfig,x.getModel(),x.getSelections())))}}e.InsertLineBeforeAction=D;class M extends k.EditorAction{constructor(){super({id:"editor.action.insertLineAfter",label:l.localize(18,null),alias:"Insert Line Below",precondition:i.EditorContextKeys.writable,kbOpts:{kbExpr:i.EditorContextKeys.editorTextFocus,primary:2048|3,weight:100}})}run(de,x){const oe=x._getViewModel();!oe||(x.pushUndoStop(),x.executeCommands(this.id,b.TypeOperations.lineInsertAfter(oe.cursorConfig,x.getModel(),x.getSelections())))}}e.InsertLineAfterAction=M;class P extends k.EditorAction{run(de,x){if(!x.hasModel())return;const oe=x.getSelection(),Q=this._getRangesToDelete(x),K=[];for(let J=0,G=Q.length-1;J<G;J++)
|
||
|
`):void 0}:{range:s.Range.fromPositions(this.position),text:"",rejectReason:M.length>0?M.join(`
|
||
|
`):void 0}})}provideRenameEdits(D,M){return Se(this,void 0,void 0,function*(){return this._provideRenameEdits(D,this._providerRenameIdx,[],M)})}_provideRenameEdits(D,M,P,B){return Se(this,void 0,void 0,function*(){const W=this._providers[M];if(!W)return{edits:[],rejectReason:P.join(`
|
||
|
`)};const V=yield W.provideRenameEdits(this.model,this.position,D,B);if(V){if(V.rejectReason)return this._provideRenameEdits(D,M+1,P.concat(V.rejectReason),B)}else return this._provideRenameEdits(D,M+1,P.concat(r.localize(0,null)),B);return V})}}function N(O,D,M,P){return Se(this,void 0,void 0,function*(){const B=new E(D,M,O),W=yield B.resolveRenameLocation(k.CancellationToken.None);return(W==null?void 0:W.rejectReason)?{edits:[],rejectReason:W.rejectReason}:B.provideRenameEdits(P,k.CancellationToken.None)})}e.rename=N;let T=class Fi{constructor(D,M,P,B,W,V,A,X){this.editor=D,this._instaService=M,this._notificationService=P,this._bulkEditService=B,this._progressService=W,this._logService=V,this._configService=A,this._languageFeaturesService=X,this._disposableStore=new L.DisposableStore,this._cts=new k.CancellationTokenSource,this._renameInputField=this._disposableStore.add(new C.IdleValue(()=>this._disposableStore.add(this._instaService.createInstance(S.RenameInputField,this.editor,["acceptRenameInput","acceptRenameInputWithPreview"]))))}static get(D){return D.getContribution(Fi.ID)}dispose(){this._disposableStore.dispose(),this._cts.dispose(!0)}run(){var D,M;return Se(this,void 0,void 0,function*(){if(this._cts.dispose(!0),!this.editor.hasModel())return;const P=this.editor.getPosition(),B=new E(this.editor.getModel(),P,this._languageFeaturesService.renameProvider);if(!B.hasProvider())return;this._cts=new u.EditorStateCancellationTokenSource(this.editor,4|1);let W;try{const Z=B.resolveRenameLocation(this._cts.token);this._progressService.showWhile(Z,250),W=yield Z}catch(Z){(D=a.MessageController.get(this.editor))===null||D===void 0||D.showMessage(Z||r.localize(1,null),P);return}if(!W)return;if(W.rejectReason){(M=a.MessageController.get(this.editor))===null||M===void 0||M.showMessage(W.rejectReason,P);return}if(this._cts.token.isCancellationRequested)return;this._cts.dispose(),this._cts=new u.EditorStateCancellationTokenSource(this.editor,4|1,W.range);const V=this.editor.getSelection();let A=0,X=W.text.length;!s.Range.isEmpty(V)&&!s.Range.spansMultipleLines(V)&&s.Range.containsRange(W.range,V)&&(A=Math.max(0,V.startColumn-W.range.startColumn),X=Math.min(W.range.endColumn,V.endColumn)-W.range.startColumn);const ee=this._bulkEditService.hasPreviewHandler()&&this._configService.getValue(this.editor.getModel().uri,"editor.rename.enablePreview"),H=yield this._renameInputField.value.getInput(W.range,W.text,A,X,ee,this._cts.token);if(typeof H=="boolean"){H&&this.editor.focus();return}this.editor.focus();const q=(0,C.raceCancellation)(B.provideRenameEdits(H.newName,this._cts.token),this._cts.token).then(Z=>Se(this,void 0,void 0,function*(){if(!(!Z||!this.editor.hasModel())){if(Z.rejectReason){this._notificationService.info(Z.rejectReason);return}this.editor.setSelection(s.Range.fromPositions(this.editor.getSelection().getPosition())),this._bulkEditService.apply(n.ResourceEdit.convert(Z),{editor:this.editor,showPreview:H.wantsPreview,label:r.localize(2,null,W==null?void 0:W.text,H.newName),code:"undoredo.rename",quotableLabel:r.localize(3,null,W==null?void 0:W.text,H.newName),respectAutoSaveConfig:!0}).then(ie=>{ie.ariaSummary&&(0,w.alert)(r.localize(4,null,W.text,H.newName,ie.ariaSummary))}).catch(ie=>{this._notificationService.error(r.localize(5,null)),this._logService.error(ie)})}}),Z=>{this._notificationService.error(r.localize(6,null)),this._logService.error(Z)});return this._progressService.showWhile(q,250),q})}acceptRenameInput(D){this._renameInputField.value.acceptInput(D)}cancelRenameInput(){this._renameInputField.value.cancelInput(!0)}};T.ID="editor.contrib.renameController",T=ke([fe(1,f.IInstantiationService),fe(2,_.INotificationService),fe(3,n.IBulkEditService),fe(4,m.IEditorProgressService),fe(5,p.ILogService),fe(6,l.ITextResourceConfigurationService),fe(7,y.ILanguageFeaturesService)],T);class R extends g.EditorAction{constructor(){super({id:"editor.action.rename",label:r.localize(7,null),alias:"Rename Symbol",precondition:c.ContextKeyExpr.and(d.EditorContextKeys.writable,d.EditorContextKeys.hasRenameProvider),kbOpts
|
||
|
|
||
|
- `+F;break;case 2:R+=`
|
||
|
|
||
|
- `+c.AccessibilityHelpNLS.auto_on;break;case 1:R+=`
|
||
|
|
||
|
- `+c.AccessibilityHelpNLS.auto_off,R+=" "+F;break}E.get(132)?R+=`
|
||
|
|
||
|
- `+this._descriptionForCommand(t.ToggleTabFocusModeAction.ID,c.AccessibilityHelpNLS.tabFocusModeOnMsg,c.AccessibilityHelpNLS.tabFocusModeOnMsgNoKb):R+=`
|
||
|
|
||
|
- `+this._descriptionForCommand(t.ToggleTabFocusModeAction.ID,c.AccessibilityHelpNLS.tabFocusModeOffMsg,c.AccessibilityHelpNLS.tabFocusModeOffMsgNoKb);const O=v.isMacintosh?c.AccessibilityHelpNLS.openDocMac:c.AccessibilityHelpNLS.openDocWinLinux;R+=`
|
||
|
|
||
|
- `+O,R+=`
|
||
|
|
||
|
`+c.AccessibilityHelpNLS.outroMsg,this._contentDomNode.domNode.appendChild((0,k.renderFormattedText)(R)),this._contentDomNode.domNode.setAttribute("aria-label",R)}hide(){!this._isVisible||(this._isVisible=!1,this._isVisibleKey.reset(),this._domNode.setDisplay("none"),this._domNode.setAttribute("aria-hidden","true"),this._contentDomNode.domNode.tabIndex=-1,w.clearNode(this._contentDomNode.domNode),this._editor.focus())}_layout(){const E=this._editor.getLayoutInfo(),N=Math.max(5,Math.min(jt.WIDTH,E.width-40)),T=Math.max(5,Math.min(jt.HEIGHT,E.height-40));this._domNode.setWidth(N),this._domNode.setHeight(T);const R=Math.round((E.height-T)/2);this._domNode.setTop(R);const F=Math.round((E.width-N)/2);this._domNode.setLeft(F)}};m.ID="editor.contrib.accessibilityHelpWidget",m.WIDTH=500,m.HEIGHT=300,m=ke([fe(1,s.IContextKeyService),fe(2,l.IKeybindingService),fe(3,a.IOpenerService)],m);class h extends n.EditorAction{constructor(){super({id:"editor.action.showAccessibilityHelp",label:c.AccessibilityHelpNLS.showAccessibilityHelpAction,alias:"Show Accessibility Help",precondition:void 0,kbOpts:{primary:512|59,weight:100,linux:{primary:512|1024|59,secondary:[512|59]}}})}run(E,N){const T=p.get(N);T&&T.show()}}(0,n.registerEditorContribution)(p.ID,p),(0,n.registerEditorAction)(h);const S=n.EditorCommand.bindToContribution(p.get);(0,n.registerEditorCommand)(new S({id:"closeAccessibilityHelp",precondition:f,handler:y=>y.hide(),kbOpts:{weight:100+100,kbExpr:i.EditorContextKeys.focus,primary:9,secondary:[1024|9]}})),(0,o.registerThemingParticipant)((y,E)=>{const N=y.getColor(r.editorWidgetBackground);N&&E.addRule(`.monaco-editor .accessibilityHelpWidget { background-color: ${N}; }`);const T=y.getColor(r.editorWidgetForeground);T&&E.addRule(`.monaco-editor .accessibilityHelpWidget { color: ${T}; }`);const R=y.getColor(r.widgetShadow);R&&E.addRule(`.monaco-editor .accessibilityHelpWidget { box-shadow: 0 2px 8px ${R}; }`);const F=y.getColor(r.contrastBorder);F&&E.addRule(`.monaco-editor .accessibilityHelpWidget { border: 2px solid ${F}; }`)})}),define(re[719],ae([1,0,7,2,12,17,395]),function($,e,w,C,k,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IPadShowKeyboard=void 0;class L extends C.Disposable{constructor(u){super();this.editor=u,this.widget=null,I.isIOS&&(this._register(u.onDidChangeConfiguration(()=>this.update())),this.update())}update(){const u=!this.editor.getOption(83);!this.widget&&u?this.widget=new b(this.editor):this.widget&&!u&&(this.widget.dispose(),this.widget=null)}dispose(){super.dispose(),this.widget&&(this.widget.dispose(),this.widget=null)}}e.IPadShowKeyboard=L,L.ID="editor.contrib.iPadShowKeyboard";class b extends C.Disposable{constructor(u){super();this.editor=u,this._domNode=document.createElement("textarea"),this._domNode.className="iPadShowKeyboard",this._register(w.addDisposableListener(this._domNode,"touchstart",g=>{this.editor.focus()})),this._register(w.addDisposableListener(this._domNode,"focus",g=>{this.editor.focus()})),this.editor.addOverlayWidget(this)}dispose(){this.editor.removeOverlayWidget(this),super.dispose()}getId(){return b.ID}getDomNode(){return this._domNode}getPosition(){return{preference:1}}}b.ID="editor.contrib.ShowKeyboardWidget",(0,k.registerEditorContribution)(L.ID,L)}),define(re[720],ae([1,0,7,31,2,12,28,109,136,37,115,25,15,76,56,396]),function($,e,w,C,k,I,L,b,v,u,g,n,i,t,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let d=class xi extends k.Disposable{constructor(f,p,_){super();this._editor=f,this._languageService=_,this._widget=null,this._register(this._editor.onDidChangeModel(m=>this.stop())),this._register(this._editor.onDidChangeModelLanguage(m=>this.stop())),this._register(L.TokenizationRegistry.onDidChange(m=>this.stop())),this._register(this._editor.onKeyUp(m=>m.keyCode===9&&this.stop()))}static get(f){return f.getContribution(xi.ID)}dispose(){this.stop(),super.dispose()}launch(){this._widget||!this._editor.hasModel()||(this._widget=new o(this._editor,this._languageService))}stop(){this._widget&&(this._widget.dispose(),this._widget=null)}};d
|
||
|
.monaco-editor .zone-widget ${i},
|
||
|
.markers-panel .marker-icon${i},
|
||
|
.text-search-provider-messages .providerMessage ${i},
|
||
|
.extensions-viewlet > .extensions ${i} {
|
||
|
color: ${u};
|
||
|
}
|
||
|
`)}const g=b.getColor(k.problemsWarningIconForeground);if(g){const i=w.Codicon.warning.cssSelector;v.addRule(`
|
||
|
.monaco-editor .zone-widget ${i},
|
||
|
.markers-panel .marker-icon${i},
|
||
|
.extensions-viewlet > .extensions ${i},
|
||
|
.extension-editor ${i},
|
||
|
.text-search-provider-messages .providerMessage ${i},
|
||
|
.preferences-editor ${i} {
|
||
|
color: ${g};
|
||
|
}
|
||
|
`)}const n=b.getColor(k.problemsInfoIconForeground);if(n){const i=w.Codicon.info.cssSelector;v.addRule(`
|
||
|
.monaco-editor .zone-widget ${i},
|
||
|
.markers-panel .marker-icon${i},
|
||
|
.extensions-viewlet > .extensions ${i},
|
||
|
.text-search-provider-messages .providerMessage ${i},
|
||
|
.extension-editor ${i} {
|
||
|
color: ${n};
|
||
|
}
|
||
|
`)}})}),define(re[80],ae([1,0,10,27,6,19,22,621,211,34,15]),function($,e,w,C,k,I,L,b,v,u,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.spinningLoading=e.syncing=e.gotoNextLocation=e.gotoPreviousLocation=e.widgetClose=e.iconsSchemaId=e.getIconRegistry=e.registerIcon=e.IconFontDefinition=e.IconContribution=e.Extensions=void 0,e.Extensions={IconContribution:"base.contributions.icons"};var n;(function(c){function f(p,_){let m=p.defaults;for(;g.ThemeIcon.isThemeIcon(m);){const h=s.getIcon(m.id);if(!h)return;m=h.defaults}return m}c.getDefinition=f})(n=e.IconContribution||(e.IconContribution={}));var i;(function(c){function f(_){return{weight:_.weight,style:_.style,src:_.src.map(m=>({format:m.format,location:m.location.toString()}))}}c.toJSONObject=f;function p(_){const m=h=>(0,I.isString)(h)?h:void 0;if(_&&Array.isArray(_.src)&&_.src.every(h=>(0,I.isString)(h.format)&&(0,I.isString)(h.location)))return{weight:m(_.weight),style:m(_.style),src:_.src.map(h=>({format:h.format,location:L.URI.parse(h.location)}))}}c.fromJSONObject=p})(i=e.IconFontDefinition||(e.IconFontDefinition={}));class t{constructor(){this._onDidChange=new k.Emitter,this.onDidChange=this._onDidChange.event,this.iconSchema={definitions:{icons:{type:"object",properties:{fontId:{type:"string",description:(0,b.localize)(0,null)},fontCharacter:{type:"string",description:(0,b.localize)(1,null)}},additionalProperties:!1,defaultSnippets:[{body:{fontCharacter:"\\\\e030"}}]}},type:"object",properties:{}},this.iconReferenceSchema={type:"string",pattern:`^${C.CSSIcon.iconNameExpression}$`,enum:[],enumDescriptions:[]},this.iconsById={},this.iconFontsById={}}registerIcon(f,p,_,m){const h=this.iconsById[f];if(h){if(_&&!h.description){h.description=_,this.iconSchema.properties[f].markdownDescription=`${_} $(${f})`;const E=this.iconReferenceSchema.enum.indexOf(f);E!==-1&&(this.iconReferenceSchema.enumDescriptions[E]=_),this._onDidChange.fire()}return h}const S={id:f,description:_,defaults:p,deprecationMessage:m};this.iconsById[f]=S;const y={$ref:"#/definitions/icons"};return m&&(y.deprecationMessage=m),_&&(y.markdownDescription=`${_}: $(${f})`),this.iconSchema.properties[f]=y,this.iconReferenceSchema.enum.push(f),this.iconReferenceSchema.enumDescriptions.push(_||""),this._onDidChange.fire(),{id:f}}getIcons(){return Object.keys(this.iconsById).map(f=>this.iconsById[f])}getIcon(f){return this.iconsById[f]}getIconSchema(){return this.iconSchema}toString(){const f=(h,S)=>h.id.localeCompare(S.id),p=h=>{for(;g.ThemeIcon.isThemeIcon(h.defaults);)h=this.iconsById[h.defaults.id];return`codicon codicon-${h?h.id:""}`},_=[];_.push("| preview | identifier | default codicon ID | description"),_.push("| ----------- | --------------------------------- | --------------------------------- | --------------------------------- |");const m=Object.keys(this.iconsById).map(h=>this.iconsById[h]);for(const h of m.filter(S=>!!S.description).sort(f))_.push(`|<i class="${p(h)}"></i>|${h.id}|${g.ThemeIcon.isThemeIcon(h.defaults)?h.defaults.id:h.id}|${h.description||""}|`);_.push("| preview | identifier "),_.push("| ----------- | --------------------------------- |");for(const h of m.filter(S=>!g.ThemeIcon.isThemeIcon(S.defaults)).sort(f))_.push(`|<i class="${p(h)}"></i>|${h.id}|`);return _.join(`
|
||
|
`)}}const s=new t;u.Registry.add(e.Extensions.IconContribution,s);function d(c,f,p,_){return s.registerIcon(c,f,p,_)}e.registerIcon=d;function l(){return s}e.getIconRegistry=l;function a(){for(const c of C.Codicon.getAll())s.registerIcon(c.id,c.definition,c.description)}a(),e.iconsSchemaId="vscode://schemas/icons";const r=u.Registry.as(v.Extensions.JSONContribution);r.registerSchema(e.iconsSchemaId,s.getIconSchema());const o=new w.RunOnceScheduler(()=>r.notifySchemaChanged(e.iconsSchemaId),200);s.onDidChange(()=>{o.isScheduled()||o.schedule()}),e.widgetClose=d("widget-close",C.Codicon.close,(0,b.localize)(2,null)),e.gotoPreviousLocation=d("goto-previous-location",C.Codicon.arrowUp,(0,b.localize)(3,null)),e.gotoNextLocation=d("goto-next-location",C.Codicon.arrowDown,(0,b.localize)(4,null)),e.syncing=g.ThemeIcon.modify(C.Codicon.sync,"spin"),e.spinningLoading=g.ThemeIcon.modify(C.Codicon.loading,"spin")}),define(re[731],ae([1,0,527,7,33,83,75,42,2,65,12,29,36,82,11,54,114,74,16,25,15,27,80,37,369]),function($,e,w,C,k,I,L,b,v,u,g,n,i,t,s,d,l,a,r,o,c,f,p,_){"use strict";var m;Object.defineProperty(e,"__esModule",{value:!0}),e.DiffReview=void 0;const h=3;class S{constructor(P,B,W,V){this.originalLineStart=P,this.originalLineEnd=B,this.modifiedLineStart=W,this.modifiedLineEnd=V}getType(){return this.originalLineStart===0?1:this.modifiedLineStart===0?2:0}}class y{constructor(P){this.entries=P}}const E=(0,p.registerIcon)("diff-review-insert",f.Codicon.add,w.localize(0,null)),N=(0,p.registerIcon)("diff-review-remove",f.Codicon.remove,w.localize(1,null)),T=(0,p.registerIcon)("diff-review-close",f.Codicon.close,w.localize(2,null));let R=class It extends v.Disposable{constructor(P,B){super();this._languageService=B,this._width=0,this._diffEditor=P,this._isVisible=!1,this.shadow=(0,k.createFastDomNode)(document.createElement("div")),this.shadow.setClassName("diff-review-shadow"),this.actionBarContainer=(0,k.createFastDomNode)(document.createElement("div")),this.actionBarContainer.setClassName("diff-review-actions"),this._actionBar=this._register(new I.ActionBar(this.actionBarContainer.domNode)),this._actionBar.push(new b.Action("diffreview.close",w.localize(3,null),"close-diff-review "+c.ThemeIcon.asClassName(T),!0,()=>Se(this,void 0,void 0,function*(){return this.hide()})),{label:!1,icon:!0}),this.domNode=(0,k.createFastDomNode)(document.createElement("div")),this.domNode.setClassName("diff-review monaco-editor-background"),this._content=(0,k.createFastDomNode)(document.createElement("div")),this._content.setClassName("diff-review-content"),this._content.setAttribute("role","code"),this.scrollbar=this._register(new L.DomScrollableElement(this._content.domNode,{})),this.domNode.domNode.appendChild(this.scrollbar.getDomNode()),this._register(P.onDidUpdateDiff(()=>{!this._isVisible||(this._diffs=this._compute(),this._render())})),this._register(P.getModifiedEditor().onDidChangeCursorPosition(()=>{!this._isVisible||this._render()})),this._register(C.addStandardDisposableListener(this.domNode.domNode,"click",W=>{W.preventDefault();const V=C.findParentWithClass(W.target,"diff-review-row");V&&this._goToRow(V)})),this._register(C.addStandardDisposableListener(this.domNode.domNode,"keydown",W=>{(W.equals(18)||W.equals(2048|18)||W.equals(512|18))&&(W.preventDefault(),this._goToRow(this._getNextRow())),(W.equals(16)||W.equals(2048|16)||W.equals(512|16))&&(W.preventDefault(),this._goToRow(this._getPrevRow())),(W.equals(9)||W.equals(2048|9)||W.equals(512|9)||W.equals(1024|9))&&(W.preventDefault(),this.hide()),(W.equals(10)||W.equals(3))&&(W.preventDefault(),this.accept())})),this._diffs=[],this._currentDiff=null}prev(){let P=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){let W=-1;for(let V=0,A=this._diffs.length;V<A;V++)if(this._diffs[V]===this._currentDiff){W=V;break}P=this._diffs.length+W-1}else P=this._findDiffIndex(this._diffEditor.getPosition());if(this._diffs.length===0)return;P=P%this._diffs.length;const B=this._diffs[P].entries;this._diffEditor.setPosition(new s.Position(B[0].modifiedLineStart,1)),this._diffEditor.
|
||
|
`)}}}e.getIconsStyleSheet=L;class b{getIcon(u){const g=(0,k.getIconRegistry)();let n=u.defaults;for(;I.ThemeIcon.isThemeIcon(n);){const i=g.getIcon(n.id);if(!i)return;n=i.defaults}return n}}e.UnthemedProductIconTheme=b}),define(re[309],ae([1,0,7,41,31,6,28,109,420,689,34,25,15,2,56,736]),function($,e,w,C,k,I,L,b,v,u,g,n,i,t,s,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StandaloneThemeService=e.HC_LIGHT_THEME_NAME=e.HC_BLACK_THEME_NAME=e.VS_DARK_THEME_NAME=e.VS_LIGHT_THEME_NAME=void 0,e.VS_LIGHT_THEME_NAME="vs",e.VS_DARK_THEME_NAME="vs-dark",e.HC_BLACK_THEME_NAME="hc-black",e.HC_LIGHT_THEME_NAME="hc-light";const l=g.Registry.as(n.Extensions.ColorContribution),a=g.Registry.as(i.Extensions.ThemingContribution);class r{constructor(m,h){this.semanticHighlighting=!1,this.themeData=h;const S=h.base;m.length>0?(o(m)?this.id=m:this.id=S+" "+m,this.themeName=m):(this.id=S,this.themeName=S),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}get base(){return this.themeData.base}notifyBaseUpdated(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)}getColors(){if(!this.colors){const m=new Map;for(const h in this.themeData.colors)m.set(h,k.Color.fromHex(this.themeData.colors[h]));if(this.themeData.inherit){const h=c(this.themeData.base);for(const S in h.colors)m.has(S)||m.set(S,k.Color.fromHex(h.colors[S]))}this.colors=m}return this.colors}getColor(m,h){const S=this.getColors().get(m);if(S)return S;if(h!==!1)return this.getDefault(m)}getDefault(m){let h=this.defaultColors[m];return h||(h=l.resolveDefaultColor(m,this),this.defaultColors[m]=h,h)}defines(m){return Object.prototype.hasOwnProperty.call(this.getColors(),m)}get type(){switch(this.base){case e.VS_LIGHT_THEME_NAME:return s.ColorScheme.LIGHT;case e.HC_BLACK_THEME_NAME:return s.ColorScheme.HIGH_CONTRAST_DARK;case e.HC_LIGHT_THEME_NAME:return s.ColorScheme.HIGH_CONTRAST_LIGHT;default:return s.ColorScheme.DARK}}get tokenTheme(){if(!this._tokenTheme){let m=[],h=[];if(this.themeData.inherit){const E=c(this.themeData.base);m=E.rules,E.encodedTokensColors&&(h=E.encodedTokensColors)}const S=this.themeData.colors["editor.foreground"],y=this.themeData.colors["editor.background"];if(S||y){const E={token:""};S&&(E.foreground=S),y&&(E.background=y),m.push(E)}m=m.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(h=this.themeData.encodedTokensColors),this._tokenTheme=v.TokenTheme.createFromRawTokenTheme(m,h)}return this._tokenTheme}getTokenStyleMetadata(m,h,S){const E=this.tokenTheme._match([m].concat(h).join(".")).metadata,N=b.TokenMetadata.getForeground(E),T=b.TokenMetadata.getFontStyle(E);return{foreground:N,italic:Boolean(T&1),bold:Boolean(T&2),underline:Boolean(T&4),strikethrough:Boolean(T&8)}}}function o(_){return _===e.VS_LIGHT_THEME_NAME||_===e.VS_DARK_THEME_NAME||_===e.HC_BLACK_THEME_NAME||_===e.HC_LIGHT_THEME_NAME}function c(_){switch(_){case e.VS_LIGHT_THEME_NAME:return u.vs;case e.VS_DARK_THEME_NAME:return u.vs_dark;case e.HC_BLACK_THEME_NAME:return u.hc_black;case e.HC_LIGHT_THEME_NAME:return u.hc_light}}function f(_){const m=c(_);return new r(_,m)}class p extends t.Disposable{constructor(){super();this._onColorThemeChange=this._register(new I.Emitter),this.onDidColorThemeChange=this._onColorThemeChange.event,this._onProductIconThemeChange=this._register(new I.Emitter),this.onDidProductIconThemeChange=this._onProductIconThemeChange.event,this._environment=Object.create(null),this._builtInProductIconTheme=new d.UnthemedProductIconTheme,this._autoDetectHighContrast=!0,this._knownThemes=new Map,this._knownThemes.set(e.VS_LIGHT_THEME_NAME,f(e.VS_LIGHT_THEME_NAME)),this._knownThemes.set(e.VS_DARK_THEME_NAME,f(e.VS_DARK_THEME_NAME)),this._knownThemes.set(e.HC_BLACK_THEME_NAME,f(e.HC_BLACK_THEME_NAME)),this._knownThemes.set(e.HC_LIGHT_THEME_NAME,f(e.HC_LIGHT_THEME_NAME));const m=(0,d.getIconsStyleSheet)(this);this._codiconCSS=m.getCSS(),this._themeCSS="",this._allCSS=`${this._codiconCSS}
|
||
|
${this._themeCSS}`,this._globalStyleElement=null,this._styleElements=[],this._colorMapOverride=null,this.setTheme(e.VS_LIGHT_THEME_NAME),this._onOSSchemeChanged(),m.onDidChange(()=>{this._codiconCSS=m.getCSS(),this._updateCSS()}),(0,C.addMatchMediaChangeListener)("(forced-colors: active)",()=>{this._onOSSchemeChanged()})}registerEditorContainer(m){return w.isInShadowDOM(m)?this._registerShadowDomContainer(m):this._registerRegularEditorContainer()}_registerRegularEditorContainer(){return this._globalStyleElement||(this._globalStyleElement=w.createStyleSheet(),this._globalStyleElement.className="monaco-colors",this._globalStyleElement.textContent=this._allCSS,this._styleElements.push(this._globalStyleElement)),t.Disposable.None}_registerShadowDomContainer(m){const h=w.createStyleSheet(m);return h.className="monaco-colors",h.textContent=this._allCSS,this._styleElements.push(h),{dispose:()=>{for(let S=0;S<this._styleElements.length;S++)if(this._styleElements[S]===h){this._styleElements.splice(S,1);return}}}}defineTheme(m,h){if(!/^[a-z0-9\-]+$/i.test(m))throw new Error("Illegal theme name!");if(!o(h.base)&&!o(m))throw new Error("Illegal theme base!");this._knownThemes.set(m,new r(m,h)),o(m)&&this._knownThemes.forEach(S=>{S.base===m&&S.notifyBaseUpdated()}),this._theme.themeName===m&&this.setTheme(m)}getColorTheme(){return this._theme}setColorMapOverride(m){this._colorMapOverride=m,this._updateThemeOrColorMap()}setTheme(m){let h;this._knownThemes.has(m)?h=this._knownThemes.get(m):h=this._knownThemes.get(e.VS_LIGHT_THEME_NAME),this._updateActualTheme(h)}_updateActualTheme(m){!m||this._theme===m||(this._theme=m,this._updateThemeOrColorMap())}_onOSSchemeChanged(){if(this._autoDetectHighContrast){const m=window.matchMedia("(forced-colors: active)").matches;if(m!==(0,s.isHighContrast)(this._theme.type)){let h;(0,s.isDark)(this._theme.type)?h=m?e.HC_BLACK_THEME_NAME:e.VS_DARK_THEME_NAME:h=m?e.HC_LIGHT_THEME_NAME:e.VS_LIGHT_THEME_NAME,this._updateActualTheme(this._knownThemes.get(h))}}}setAutoDetectHighContrast(m){this._autoDetectHighContrast=m,this._onOSSchemeChanged()}_updateThemeOrColorMap(){const m=[],h={},S={addRule:N=>{h[N]||(m.push(N),h[N]=!0)}};a.getThemingParticipants().forEach(N=>N(this._theme,S,this._environment));const y=[];for(const N of l.getColors()){const T=this._theme.getColor(N.id,!0);T&&y.push(`${(0,n.asCssVariableName)(N.id)}: ${T.toString()};`)}S.addRule(`.monaco-editor { ${y.join(`
|
||
|
`)} }`);const E=this._colorMapOverride||this._theme.tokenTheme.getColorMap();S.addRule((0,v.generateTokensCSSForColorMap)(E)),this._themeCSS=m.join(`
|
||
|
`),this._updateCSS(),L.TokenizationRegistry.setColorMap(E),this._onColorThemeChange.fire(this._theme)}_updateCSS(){this._allCSS=`${this._codiconCSS}
|
||
|
${this._themeCSS}`,this._styleElements.forEach(m=>m.textContent=this._allCSS)}getFileIconTheme(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}}getProductIconTheme(){return this._builtInProductIconTheme}}e.StandaloneThemeService=p}),define(re[737],ae([1,0,12,115,76,56,309]),function($,e,w,C,k,I,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0});class b extends w.EditorAction{constructor(){super({id:"editor.action.toggleHighContrast",label:k.ToggleHighContrastNLS.toggleHighContrast,alias:"Toggle High Contrast Theme",precondition:void 0});this._originalThemeName=null}run(u,g){const n=u.get(C.IStandaloneThemeService),i=n.getColorTheme();(0,I.isHighContrast)(i.type)?(n.setTheme(this._originalThemeName||((0,I.isDark)(i.type)?L.VS_DARK_THEME_NAME:L.VS_LIGHT_THEME_NAME)),this._originalThemeName=null):(n.setTheme((0,I.isDark)(i.type)?L.HC_BLACK_THEME_NAME:L.HC_LIGHT_THEME_NAME),this._originalThemeName=i.themeName)}}(0,w.registerEditorAction)(b)}),define(re[172],ae([1,0,9]),function($,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UndoRedoSource=e.UndoRedoGroup=e.ResourceEditStackSnapshot=e.IUndoRedoService=void 0,e.IUndoRedoService=(0,w.createDecorator)("undoRedoService");class C{constructor(b,v){this.resource=b,this.elements=v}}e.ResourceEditStackSnapshot=C;class k{constructor(){this.id=k._ID++,this.order=1}nextOrder(){return this.id===0?0:this.order++}}e.UndoRedoGroup=k,k._ID=0,k.None=new k;class I{constructor(){this.id=I._ID++,this.order=1}nextOrder(){return this.id===0?0:this.order++}}e.UndoRedoSource=I,I._ID=0,I.None=new I}),define(re[35],ae([1,0,18,31,14,6,2,8,22,126,179,11,3,23,153,37,32,46,507,680,279,243,424,425,271,508,158,512,99,172]),function($,e,w,C,k,I,L,b,v,u,g,n,i,t,s,d,l,a,r,o,c,f,p,_,m,h,S,y,E,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DidChangeContentEmitter=e.DidChangeDecorationsEmitter=e.ModelDecorationOptions=e.ModelDecorationInjectedTextOptions=e.ModelDecorationMinimapOptions=e.ModelDecorationOverviewRulerOptions=e.TextModel=e.LONG_LINE_BOUNDARY=e.createTextBuffer=e.createTextBufferFactoryFromSnapshot=e.createTextBufferFactory=void 0;function T(Q){const K=new h.PieceTreeTextBufferBuilder;return K.acceptChunk(Q),K.finish()}e.createTextBufferFactory=T;function R(Q){const K=new h.PieceTreeTextBufferBuilder;let ne;for(;typeof(ne=Q.read())=="string";)K.acceptChunk(ne);return K.finish()}e.createTextBufferFactoryFromSnapshot=R;function F(Q,K){let ne;return typeof Q=="string"?ne=T(Q):a.isITextSnapshot(Q)?ne=R(Q):ne=Q,ne.create(K)}e.createTextBuffer=F;let O=0;const D=999;e.LONG_LINE_BOUNDARY=1e4;class M{constructor(K){this._source=K,this._eos=!1}read(){if(this._eos)return null;const K=[];let ne=0,z=0;do{const J=this._source.read();if(J===null)return this._eos=!0,ne===0?null:K.join("");if(J.length>0&&(K[ne++]=J,z+=J.length),z>=64*1024)return K.join("")}while(!0)}}const P=()=>{throw new Error("Invalid change accessor")};let B=class Ot extends L.Disposable{constructor(K,ne,z,J=null,G,U,j){super();this._undoRedoService=G,this._languageService=U,this._languageConfigurationService=j,this._onWillDispose=this._register(new I.Emitter),this.onWillDispose=this._onWillDispose.event,this._onDidChangeDecorations=this._register(new x(Ce=>this.handleBeforeFireDecorationsChangedEvent(Ce))),this.onDidChangeDecorations=this._onDidChangeDecorations.event,this._onDidChangeOptions=this._register(new I.Emitter),this.onDidChangeOptions=this._onDidChangeOptions.event,this._onDidChangeAttached=this._register(new I.Emitter),this.onDidChangeAttached=this._onDidChangeAttached.event,this._onDidChangeInjectedText=this._register(new I.Emitter),this._eventEmitter=this._register(new oe),this._deltaDecorationCallCnt=0,O++,this.id="$model"+O,this.isForSimpleWidget=z.isForSimpleWidget,typeof J=="undefined"||J===null?this._associatedResource=v.URI.parse("inmemory://model/"+O):this._associatedResource=J,this._attachedEditorCount=0;const{textBuffer:ce,disposable:se}=F(K,z.defaultEOL);this._buffer=ce,this._bufferDisposable=se,this._options=Ot.resolveOptions(this._buffer,z),this
|
||
|
`,!1,!1,!0,!0);K.dispose(),this._buffer=K,this._bufferDisposable=L.Disposable.None}_assertNotDisposed(){if(this._isDisposed)throw new Error("Model is disposed!")}_emitContentChangedEvent(K,ne){this.__isDisposing||(this._tokenizationTextModelPart.handleDidChangeContent(ne),this._bracketPairs.handleDidChangeContent(ne),this._eventEmitter.fire(new E.InternalModelContentChangeEvent(K,ne)))}setValue(K){if(this._assertNotDisposed(),K===null)return;const{textBuffer:ne,disposable:z}=F(K,this._options.defaultEOL);this._setValueFromTextBuffer(ne,z)}_createContentChanged2(K,ne,z,J,G,U,j){return{changes:[{range:K,rangeOffset:ne,rangeLength:z,text:J}],eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:G,isRedoing:U,isFlush:j}}_setValueFromTextBuffer(K,ne){this._assertNotDisposed();const z=this.getFullModelRange(),J=this.getValueLengthInRange(z),G=this.getLineCount(),U=this.getLineMaxColumn(G);this._buffer=K,this._bufferDisposable.dispose(),this._bufferDisposable=ne,this._increaseVersionId(),this._tokenizationTextModelPart.flush(),this._decorations=Object.create(null),this._decorationsTree=new X,this._commandManager.clear(),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new E.ModelRawContentChangedEvent([new E.ModelRawFlush],this._versionId,!1,!1),this._createContentChanged2(new i.Range(1,1,G,U),0,J,this.getValue(),!1,!1,!0))}setEOL(K){this._assertNotDisposed();const ne=K===1?`\r
|
||
|
`:`
|
||
|
`;if(this._buffer.getEOL()===ne)return;const z=this.getFullModelRange(),J=this.getValueLengthInRange(z),G=this.getLineCount(),U=this.getLineMaxColumn(G);this._onBeforeEOLChange(),this._buffer.setEOL(ne),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new E.ModelRawContentChangedEvent([new E.ModelRawEOLChanged],this._versionId,!1,!1),this._createContentChanged2(new i.Range(1,1,G,U),0,J,this.getValue(),!1,!1,!1))}_onBeforeEOLChange(){this._decorationsTree.ensureAllNodesHaveRanges(this)}_onAfterEOLChange(){const K=this.getVersionId(),ne=this._decorationsTree.collectNodesPostOrder();for(let z=0,J=ne.length;z<J;z++){const G=ne[z],U=G.range,j=G.cachedAbsoluteStart-G.start,ce=this._buffer.getOffsetAt(U.startLineNumber,U.startColumn),se=this._buffer.getOffsetAt(U.endLineNumber,U.endColumn);G.cachedAbsoluteStart=ce,G.cachedAbsoluteEnd=se,G.cachedVersionId=K,G.start=ce-j,G.end=se-j,(0,_.recomputeMaxEnd)(G)}}onBeforeAttached(){this._attachedEditorCount++,this._attachedEditorCount===1&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0))}onBeforeDetached(){this._attachedEditorCount--,this._attachedEditorCount===0&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0))}isAttachedToEditor(){return this._attachedEditorCount>0}getAttachedEditorCount(){return this._attachedEditorCount}isTooLargeForSyncing(){return this._isTooLargeForSyncing}isTooLargeForTokenization(){return this._isTooLargeForTokenization}isDisposed(){return this._isDisposed}isDominatedByLongLines(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;let K=0,ne=0;const z=this._buffer.getLineCount();for(let J=1;J<=z;J++){const G=this._buffer.getLineLength(J);G>=e.LONG_LINE_BOUNDARY?ne+=G:K+=G}return ne>K}get uri(){return this._associatedResource}getOptions(){return this._assertNotDisposed(),this._options}getFormattingOptions(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}}updateOptions(K){this._assertNotDisposed();const ne=typeof K.tabSize!="undefined"?K.tabSize:this._options.tabSize,z=typeof K.indentSize!="undefined"?K.indentSize:this._options.indentSize,J=typeof K.insertSpaces!="undefined"?K.insertSpaces:this._options.insertSpaces,G=typeof K.trimAutoWhitespace!="undefined"?K.trimAutoWhitespace:this._options.trimAutoWhitespace,U=typeof K.bracketColorizationOptions!="undefined"?K.bracketColorizationOptions:this._options.bracketPairColorizationOptions,j=new a.TextModelResolvedOptions({tabSize:ne,indentSize:z,insertSpaces:J,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:G,bracketPairColorizationOptions:U});if(this._options.equals(j))return;const ce=this._options.createChangeEvent(j);this._options=j,this._bracketPairs.handleDidChangeOptions(ce),this._decorationProvider.handleDidChangeOptions(ce),this._onDidChangeOptions.fire(ce)}detectIndentation(K,ne){this._assertNotDisposed();const z=(0,p.guessIndentation)(this._buffer,ne,K);this.updateOptions({insertSpaces:z.insertSpaces,tabSize:z.tabSize,indentSize:z.tabSize})}normalizeIndentation(K){return this._assertNotDisposed(),(0,g.normalizeIndentation)(K,this._options.indentSize,this._options.insertSpaces)}getVersionId(){return this._assertNotDisposed(),this._versionId}mightContainRTL(){return this._buffer.mightContainRTL()}mightContainUnusualLineTerminators(){return this._buffer.mightContainUnusualLineTerminators()}removeUnusualLineTerminators(K=null){const ne=this.findMatches(b.UNUSUAL_LINE_TERMINATORS.source,!1,!0,!1,null,!1,1073741824);this._buffer.resetMightContainUnusualLineTerminators(),this.pushEditOperations(K,ne.map(z=>({range:z.range,text:null})),()=>null)}mightContainNonBasicASCII(){return this._buffer.mightContainNonBasicASCII()}getAlternativeVersionId(){return this._assertNotDisposed(),this._alternativeVersionId}getInitialUndoRedoSnapshot(){return this._assertNotDisposed(),this._initialUndoRedoSnapshot}getOffsetAt(K){this._assertNotDisposed();const ne=this._validatePosition(K.lineNumber,K.column,0);return this._buffer.getOffsetAt(ne.
|
||
|
`?0:1}getLineMinColumn(K){return this._assertNotDisposed(),1}getLineMaxColumn(K){if(this._assertNotDisposed(),K<1||K>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(K)+1}getLineFirstNonWhitespaceColumn(K){if(this._assertNotDisposed(),K<1||K>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(K)}getLineLastNonWhitespaceColumn(K){if(this._assertNotDisposed(),K<1||K>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(K)}_validateRangeRelaxedNoAllocations(K){const ne=this._buffer.getLineCount(),z=K.startLineNumber,J=K.startColumn;let G=Math.floor(typeof z=="number"&&!isNaN(z)?z:1),U=Math.floor(typeof J=="number"&&!isNaN(J)?J:1);if(G<1)G=1,U=1;else if(G>ne)G=ne,U=this.getLineMaxColumn(G);else if(U<=1)U=1;else{const me=this.getLineMaxColumn(G);U>=me&&(U=me)}const j=K.endLineNumber,ce=K.endColumn;let se=Math.floor(typeof j=="number"&&!isNaN(j)?j:1),he=Math.floor(typeof ce=="number"&&!isNaN(ce)?ce:1);if(se<1)se=1,he=1;else if(se>ne)se=ne,he=this.getLineMaxColumn(se);else if(he<=1)he=1;else{const me=this.getLineMaxColumn(se);he>=me&&(he=me)}return z===G&&J===U&&j===se&&ce===he&&K instanceof i.Range&&!(K instanceof t.Selection)?K:new i.Range(G,U,se,he)}_isValidPosition(K,ne,z){if(typeof K!="number"||typeof ne!="number"||isNaN(K)||isNaN(ne)||K<1||ne<1||(K|0)!==K||(ne|0)!==ne)return!1;const J=this._buffer.getLineCount();if(K>J)return!1;if(ne===1)return!0;const G=this.getLineMaxColumn(K);if(ne>G)return!1;if(z===1){const U=this._buffer.getLineCharCode(K,ne-2);if(b.isHighSurrogate(U))return!1}return!0}_validatePosition(K,ne,z){const J=Math.floor(typeof K=="number"&&!isNaN(K)?K:1),G=Math.floor(typeof ne=="number"&&!isNaN(ne)?ne:1),U=this._buffer.getLineCount();if(J<1)return new n.Position(1,1);if(J>U)return new n.Position(U,this.getLineMaxColumn(U));if(G<=1)return new n.Position(J,1);const j=this.getLineMaxColumn(J);if(G>=j)return new n.Position(J,j);if(z===1){const ce=this._buffer.getLineCharCode(J,G-2);if(b.isHighSurrogate(ce))return new n.Position(J,G-1)}return new n.Position(J,G)}validatePosition(K){const ne=1;return this._assertNotDisposed(),K instanceof n.Position&&this._isValidPosition(K.lineNumber,K.column,ne)?K:this._validatePosition(K.lineNumber,K.column,ne)}_isValidRange(K,ne){const z=K.startLineNumber,J=K.startColumn,G=K.endLineNumber,U=K.endColumn;if(!this._isValidPosition(z,J,0)||!this._isValidPosition(G,U,0))return!1;if(ne===1){const j=J>1?this._buffer.getLineCharCode(z,J-2):0,ce=U>1&&U<=this._buffer.getLineLength(G)?this._buffer.getLineCharCode(G,U-2):0,se=b.isHighSurrogate(j),he=b.isHighSurrogate(ce);return!se&&!he}return!0}validateRange(K){const ne=1;if(this._assertNotDisposed(),K instanceof i.Range&&!(K instanceof t.Selection)&&this._isValidRange(K,ne))return K;const z=this._validatePosition(K.startLineNumber,K.startColumn,0),J=this._validatePosition(K.endLineNumber,K.endColumn,0),G=z.lineNumber,U=z.column,j=J.lineNumber,ce=J.column;if(ne===1){const se=U>1?this._buffer.getLineCharCode(G,U-2):0,he=ce>1&&ce<=this._buffer.getLineLength(j)?this._buffer.getLineCharCode(j,ce-2):0,me=b.isHighSurrogate(se),Ce=b.isHighSurrogate(he);return!me&&!Ce?new i.Range(G,U,j,ce):G===j&&U===ce?new i.Range(G,U-1,j,ce-1):me&&Ce?new i.Range(G,U-1,j,ce+1):me?new i.Range(G,U-1,j,ce):new i.Range(G,U,j,ce+1)}return new i.Range(G,U,j,ce)}modifyPosition(K,ne){this._assertNotDisposed();const z=this.getOffsetAt(K)+ne;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,z)))}getFullModelRange(){this._assertNotDisposed();const K=this.getLineCount();return new i.Range(1,1,K,this.getLineMaxColumn(K))}findMatchesLineByLine(K,ne,z,J){return this._buffer.findMatchesLineByLine(K,ne,z,J)}findMatches(K,ne,z,J,G,U,j=D){this._assertNotDisposed();let ce=null;ne!==null&&(Array.isArray(ne)||(ne=[ne]),ne.every(me=>i.Range.isIRange(me))&&(ce=ne.map(me=>this.validateRange(me)))),ce===null&&(ce=[this.getFullModelRange()]),ce=ce.sort((me,Ce)=>me.startLineNumber-Ce.
|
||
|
`)<0){const Ce=new S.SearchParams(K,z,J,G).parseSearchRequest();if(!Ce)return[];he=Le=>this.findMatchesLineByLine(Le,Ce,U,j)}else he=me=>S.TextModelSearch.findMatches(this,new S.SearchParams(K,z,J,G),me,U,j);return se.map(he).reduce((me,Ce)=>me.concat(Ce),[])}findNextMatch(K,ne,z,J,G,U){this._assertNotDisposed();const j=this.validatePosition(ne);if(!z&&K.indexOf(`
|
||
|
`)<0){const se=new S.SearchParams(K,z,J,G).parseSearchRequest();if(!se)return null;const he=this.getLineCount();let me=new i.Range(j.lineNumber,j.column,he,this.getLineMaxColumn(he)),Ce=this.findMatchesLineByLine(me,se,U,1);return S.TextModelSearch.findNextMatch(this,new S.SearchParams(K,z,J,G),j,U),Ce.length>0||(me=new i.Range(1,1,j.lineNumber,this.getLineMaxColumn(j.lineNumber)),Ce=this.findMatchesLineByLine(me,se,U,1),Ce.length>0)?Ce[0]:null}return S.TextModelSearch.findNextMatch(this,new S.SearchParams(K,z,J,G),j,U)}findPreviousMatch(K,ne,z,J,G,U){this._assertNotDisposed();const j=this.validatePosition(ne);return S.TextModelSearch.findPreviousMatch(this,new S.SearchParams(K,z,J,G),j,U)}pushStackElement(){this._commandManager.pushStackElement()}popStackElement(){this._commandManager.popStackElement()}pushEOL(K){if((this.getEOL()===`
|
||
|
`?0:1)!==K)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._initialUndoRedoSnapshot===null&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEOL(K)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_validateEditOperation(K){return K instanceof a.ValidAnnotatedEditOperation?K:new a.ValidAnnotatedEditOperation(K.identifier||null,this.validateRange(K.range),K.text,K.forceMoveMarkers||!1,K.isAutoWhitespaceEdit||!1,K._isTracked||!1)}_validateEditOperations(K){const ne=[];for(let z=0,J=K.length;z<J;z++)ne[z]=this._validateEditOperation(K[z]);return ne}pushEditOperations(K,ne,z){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(K,this._validateEditOperations(ne),z)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_pushEditOperations(K,ne,z){if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){const J=ne.map(U=>({range:this.validateRange(U.range),text:U.text}));let G=!0;if(K)for(let U=0,j=K.length;U<j;U++){const ce=K[U];let se=!1;for(let he=0,me=J.length;he<me;he++){const Ce=J[he].range,Le=Ce.startLineNumber>ce.endLineNumber,Ee=ce.startLineNumber>Ce.endLineNumber;if(!Le&&!Ee){se=!0;break}}if(!se){G=!1;break}}if(G)for(let U=0,j=this._trimAutoWhitespaceLines.length;U<j;U++){const ce=this._trimAutoWhitespaceLines[U],se=this.getLineMaxColumn(ce);let he=!0;for(let me=0,Ce=J.length;me<Ce;me++){const Le=J[me].range,Ee=J[me].text;if(!(ce<Le.startLineNumber||ce>Le.endLineNumber)&&!(ce===Le.startLineNumber&&Le.startColumn===se&&Le.isEmpty()&&Ee&&Ee.length>0&&Ee.charAt(0)===`
|
||
|
`)&&!(ce===Le.startLineNumber&&Le.startColumn===1&&Le.isEmpty()&&Ee&&Ee.length>0&&Ee.charAt(Ee.length-1)===`
|
||
|
`)){he=!1;break}}if(he){const me=new i.Range(ce,1,ce,se);ne.push(new a.ValidAnnotatedEditOperation(null,me,null,!1,!1,!1))}}this._trimAutoWhitespaceLines=null}return this._initialUndoRedoSnapshot===null&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEditOperation(K,ne,z)}_applyUndo(K,ne,z,J){const G=K.map(U=>{const j=this.getPositionAt(U.newPosition),ce=this.getPositionAt(U.newEnd);return{range:new i.Range(j.lineNumber,j.column,ce.lineNumber,ce.column),text:U.oldText}});this._applyUndoRedoEdits(G,ne,!0,!1,z,J)}_applyRedo(K,ne,z,J){const G=K.map(U=>{const j=this.getPositionAt(U.oldPosition),ce=this.getPositionAt(U.oldEnd);return{range:new i.Range(j.lineNumber,j.column,ce.lineNumber,ce.column),text:U.newText}});this._applyUndoRedoEdits(G,ne,!1,!0,z,J)}_applyUndoRedoEdits(K,ne,z,J,G,U){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=z,this._isRedoing=J,this.applyEdits(K,!1),this.setEOL(ne),this._overwriteAlternativeVersionId(G)}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(U),this._onDidChangeDecorations.endDeferredEmit()}}applyEdits(K,ne=!1){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();const z=this._validateEditOperations(K);return this._doApplyEdits(z,ne)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_doApplyEdits(K,ne){const z=this._buffer.getLineCount(),J=this._buffer.applyEdits(K,this._options.trimAutoWhitespace,ne),G=this._buffer.getLineCount(),U=J.changes;if(this._trimAutoWhitespaceLines=J.trimAutoWhitespaceLineNumbers,U.length!==0){for(let se=0,he=U.length;se<he;se++){const me=U[se],[Ce,Le,Ee]=(0,u.countEOL)(me.text);this._tokenizationTextModelPart.acceptEdit(me.range,me.text,Ce,Le,Ee),this._decorationsTree.acceptReplace(me.rangeOffset,me.rangeLength,me.text.length,me.forceMoveMarkers)}const j=[];this._increaseVersionId();let ce=z;for(let se=0,he=U.length;se<he;se++){const me=U[se],[Ce]=(0,u.countEOL)(me.text);this._onDidChangeDecorations.fire();const Le=me.range.startLineNumber,Ee=me.range.endLineNumber,De=Ee-Le,Ae=Ce,pe=Math.min(De,Ae),ue=Ae-De,le=G-ce-ue+Le,ge=le,_e=le+Ae,we=this._decorationsTree.getInjectedTextInInterval(this,this.getOffsetAt(new n.Position(ge,1)),this.getOffsetAt(new n.Position(_e,this.getLineMaxColumn(_e))),0),Ie=E.LineInjectedText.fromDecorations(we),Me=new w.ArrayQueue(Ie);for(let Oe=pe;Oe>=0;Oe--){const be=Le+Oe,ve=le+Oe;Me.takeFromEndWhile(Re=>Re.lineNumber>ve);const ye=Me.takeFromEndWhile(Re=>Re.lineNumber===ve);j.push(new E.ModelRawLineChanged(be,this.getLineContent(ve),ye))}if(pe<De){const Oe=Le+pe;j.push(new E.ModelRawLinesDeleted(Oe+1,Ee))}if(pe<Ae){const Oe=new w.ArrayQueue(Ie),be=Le+pe,ve=Ae-pe,ye=G-ce-ve+be+1,Re=[],Te=[];for(let Be=0;Be<ve;Be++){const xe=ye+Be;Te[Be]=this.getLineContent(xe),Oe.takeWhile(qe=>qe.lineNumber<xe),Re[Be]=Oe.takeWhile(qe=>qe.lineNumber===xe)}j.push(new E.ModelRawLinesInserted(be+1,Le+Ae,Te,Re))}ce+=ue}this._emitContentChangedEvent(new E.ModelRawContentChangedEvent(j,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:U,eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return J.reverseEdits===null?void 0:J.reverseEdits}undo(){return this._undoRedoService.undo(this.uri)}canUndo(){return this._undoRedoService.canUndo(this.uri)}redo(){return this._undoRedoService.redo(this.uri)}canRedo(){return this._undoRedoService.canRedo(this.uri)}handleBeforeFireDecorationsChangedEvent(K){if(K===null||K.size===0)return;const z=Array.from(K).map(J=>new E.ModelRawLineChanged(J,this.getLineContent(J),this._getInjectedTextInLine(J)));this._onDidChangeInjectedText.fire(new E.ModelInjectedTextChangedEvent(z))}changeDecorations(K,ne=0){this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(ne,K)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_changeDecorations(K,ne){const z={addDecoration:(G,U
|
||
|
`?ie=2:Y===`
|
||
|
`&&(ie=1);let te=b.EDITOR_MODEL_DEFAULTS.trimAutoWhitespace;A.editor&&typeof A.editor.trimAutoWhitespace!="undefined"&&(te=A.editor.trimAutoWhitespace==="false"?!1:Boolean(A.editor.trimAutoWhitespace));let de=b.EDITOR_MODEL_DEFAULTS.detectIndentation;A.editor&&typeof A.editor.detectIndentation!="undefined"&&(de=A.editor.detectIndentation==="false"?!1:Boolean(A.editor.detectIndentation));let x=b.EDITOR_MODEL_DEFAULTS.largeFileOptimizations;A.editor&&typeof A.editor.largeFileOptimizations!="undefined"&&(x=A.editor.largeFileOptimizations==="false"?!1:Boolean(A.editor.largeFileOptimizations));let oe=b.EDITOR_MODEL_DEFAULTS.bracketPairColorizationOptions;return((ee=A.editor)===null||ee===void 0?void 0:ee.bracketPairColorization)&&typeof A.editor.bracketPairColorization=="object"&&(oe={enabled:!!A.editor.bracketPairColorization.enabled,independentColorPoolPerBracketType:!!A.editor.bracketPairColorization.independentColorPoolPerBracketType}),{isForSimpleWidget:X,tabSize:H,indentSize:q,insertSpaces:Z,detectIndentation:de,defaultEOL:ie,trimAutoWhitespace:te,largeFileOptimizations:x,bracketPairColorizationOptions:oe}}_getEOL(A,X){if(A)return this._resourcePropertiesService.getEOL(A,X);const ee=this._configurationService.getValue("files.eol",{overrideIdentifier:X});return ee&&typeof ee=="string"&&ee!=="auto"?ee:k.OS===3||k.OS===2?`
|
||
|
`:`\r
|
||
|
`}_shouldRestoreUndoStack(){const A=this._configurationService.getValue("files.restoreUndoStack");return typeof A=="boolean"?A:!0}getCreationOptions(A,X,ee){let H=this._modelCreationOptionsByLanguageAndResource[A+X];if(!H){const q=this._configurationService.getValue("editor",{overrideIdentifier:A,resource:X}),Z=this._getEOL(X,A);H=Ft._readModelOptions({editor:q,eol:Z},ee),this._modelCreationOptionsByLanguageAndResource[A+X]=H}return H}_updateModelOptions(){const A=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);const X=Object.keys(this._models);for(let ee=0,H=X.length;ee<H;ee++){const q=X[ee],Z=this._models[q],ie=Z.model.getLanguageId(),Y=Z.model.uri,te=A[ie+Y],de=this.getCreationOptions(ie,Y,Z.model.isForSimpleWidget);Ft._setModelOptionsForModel(Z.model,de,te)}}static _setModelOptionsForModel(A,X,ee){ee&&ee.defaultEOL!==X.defaultEOL&&A.getLineCount()===1&&A.setEOL(X.defaultEOL===1?0:1),!(ee&&ee.detectIndentation===X.detectIndentation&&ee.insertSpaces===X.insertSpaces&&ee.tabSize===X.tabSize&&ee.indentSize===X.indentSize&&ee.trimAutoWhitespace===X.trimAutoWhitespace&&(0,_.equals)(ee.bracketPairColorizationOptions,X.bracketPairColorizationOptions))&&(X.detectIndentation?(A.detectIndentation(X.insertSpaces,X.tabSize),A.updateOptions({trimAutoWhitespace:X.trimAutoWhitespace,bracketColorizationOptions:X.bracketPairColorizationOptions})):A.updateOptions({insertSpaces:X.insertSpaces,tabSize:X.tabSize,indentSize:X.indentSize,trimAutoWhitespace:X.trimAutoWhitespace,bracketColorizationOptions:X.bracketPairColorizationOptions}))}_insertDisposedModel(A){this._disposedModels.set(E(A.uri),A),this._disposedModelsHeapSize+=A.heapSize}_removeDisposedModel(A){const X=this._disposedModels.get(E(A));return X&&(this._disposedModelsHeapSize-=X.heapSize),this._disposedModels.delete(E(A)),X}_ensureDisposedModelsHeapSize(A){if(this._disposedModelsHeapSize>A){const X=[];for(this._disposedModels.forEach(ee=>{ee.sharesUndoRedoStack||X.push(ee)}),X.sort((ee,H)=>ee.time-H.time);X.length>0&&this._disposedModelsHeapSize>A;){const ee=X.shift();this._removeDisposedModel(ee.uri),ee.initialUndoRedoSnapshot!==null&&this._undoRedoService.restoreSnapshot(ee.initialUndoRedoSnapshot)}}}_createModelData(A,X,ee,H){const q=this.getCreationOptions(X,ee,H),Z=new L.TextModel(A,X,q,ee,this._undoRedoService,this._languageService,this._languageConfigurationService);if(ee&&this._disposedModels.has(E(ee))){const te=this._removeDisposedModel(ee),de=this._undoRedoService.getElements(ee),x=N(Z)===te.sha1;if(x||te.sharesUndoRedoStack){for(const oe of de.past)(0,o.isEditStackElement)(oe)&&oe.matchesResource(ee)&&oe.setModel(Z);for(const oe of de.future)(0,o.isEditStackElement)(oe)&&oe.matchesResource(ee)&&oe.setModel(Z);this._undoRedoService.setElementsValidFlag(ee,!0,oe=>(0,o.isEditStackElement)(oe)&&oe.matchesResource(ee)),x&&(Z._overwriteVersionId(te.versionId),Z._overwriteAlternativeVersionId(te.alternativeVersionId),Z._overwriteInitialUndoRedoSnapshot(te.initialUndoRedoSnapshot))}else te.initialUndoRedoSnapshot!==null&&this._undoRedoService.restoreSnapshot(te.initialUndoRedoSnapshot)}const ie=E(Z.uri);if(this._models[ie])throw new Error("ModelService: Cannot add model because it already exists!");const Y=new T(Z,te=>this._onWillDispose(te),(te,de)=>this._onDidChangeLanguage(te,de));return this._models[ie]=Y,Y}createModel(A,X,ee,H=!1){let q;return X?(q=this._createModelData(A,X.languageId,ee,H),this.setMode(q.model,X)):q=this._createModelData(A,v.PLAINTEXT_LANGUAGE_ID,ee,H),this._onModelAdded.fire(q.model),q.model}setMode(A,X){if(!X)return;const ee=this._models[E(A.uri)];!ee||ee.setLanguage(X)}getModels(){const A=[],X=Object.keys(this._models);for(let ee=0,H=X.length;ee<H;ee++){const q=X[ee];A.push(this._models[q].model)}return A}getModel(A){const X=E(A),ee=this._models[X];return ee?ee.model:null}getSemanticTokensProviderStyling(A){return this._semanticStyling.get(A)}_schemaShouldMaintainUndoRedoElements(A){return A.scheme===c.Schemas.file||A.scheme===c.Schemas.vscodeRemote||A.scheme===c.Schemas.vscodeUs
|
||
|
`:this.model.getEOL();N=N.slice(0),N.sort(i.Range.compareRangesUsingStarts);let O=!1,D=!1;for(const P of N)P.isEmpty()?O=!0:D=!0;if(!D){if(!T)return"";const P=N.map(W=>W.startLineNumber);let B="";for(let W=0;W<P.length;W++)W>0&&P[W-1]===P[W]||(B+=this.model.getLineContent(P[W])+F);return B}if(O&&T){const P=[];let B=0;for(const W of N){const V=W.startLineNumber;W.isEmpty()?V!==B&&P.push(this.model.getLineContent(V)):P.push(this.model.getValueInRange(W,R?2:0)),B=V}return P.length===1?P[0]:P}const M=[];for(const P of N)P.isEmpty()||M.push(this.model.getValueInRange(P,R?2:0));return M.length===1?M[0]:M}getRichTextToCopy(N,T){const R=this.model.getLanguageId();if(R===d.PLAINTEXT_LANGUAGE_ID||N.length!==1)return null;let F=N[0];if(F.isEmpty()){if(!T)return null;const W=F.startLineNumber;F=new i.Range(W,this.model.getLineMinColumn(W),W,this.model.getLineMaxColumn(W))}const O=this._configuration.options.get(46),D=this._getColorMap(),P=/[:;\\\/<>]/.test(O.fontFamily)||O.fontFamily===v.EDITOR_FONT_DEFAULTS.fontFamily;let B;return P?B=v.EDITOR_FONT_DEFAULTS.fontFamily:(B=O.fontFamily,B=B.replace(/"/g,"'"),/[,']/.test(B)||/[+ ]/.test(B)&&(B=`'${B}'`),B=`${B}, ${v.EDITOR_FONT_DEFAULTS.fontFamily}`),{mode:R,html:`<div style="color: ${D[1]};background-color: ${D[2]};font-family: ${B};font-weight: ${O.fontWeight};font-size: ${O.fontSize}px;line-height: ${O.lineHeight}px;white-space: pre;">`+this._getHTMLToCopy(F,D)+"</div>"}}_getHTMLToCopy(N,T){const R=N.startLineNumber,F=N.startColumn,O=N.endLineNumber,D=N.endColumn,M=this.getTabSize();let P="";for(let B=R;B<=O;B++){const W=this.model.tokenization.getLineTokens(B),V=W.getLineContent(),A=B===R?F-1:0,X=B===O?D-1:V.length;V===""?P+="<br>":P+=(0,l.tokenizeLineToHTML)(V,W.inflate(),T,A,X,M,L.isWindows)}return P}_getColorMap(){const N=s.TokenizationRegistry.getColorMap(),T=["#000000"];if(N)for(let R=1,F=N.length;R<F;R++)T[R]=k.Color.Format.CSS.formatHex(N[R]);return T}getPrimaryCursorState(){return this._cursor.getPrimaryCursorState()}getLastAddedCursorIndex(){return this._cursor.getLastAddedCursorIndex()}getCursorStates(){return this._cursor.getCursorStates()}setCursorStates(N,T,R){return this._withViewEventsCollector(F=>this._cursor.setStates(F,N,T,R))}getCursorColumnSelectData(){return this._cursor.getCursorColumnSelectData()}getCursorAutoClosedCharacters(){return this._cursor.getAutoClosedCharacters()}setCursorColumnSelectData(N){this._cursor.setCursorColumnSelectData(N)}getPrevEditOperationType(){return this._cursor.getPrevEditOperationType()}setPrevEditOperationType(N){this._cursor.setPrevEditOperationType(N)}getSelection(){return this._cursor.getSelection()}getSelections(){return this._cursor.getSelections()}getPosition(){return this._cursor.getPrimaryCursorState().modelState.position}setSelections(N,T,R=0){this._withViewEventsCollector(F=>this._cursor.setSelections(F,N,T,R))}saveCursorState(){return this._cursor.saveState()}restoreCursorState(N){this._withViewEventsCollector(T=>this._cursor.restoreState(T,N))}_executeCursorEdit(N){if(this._cursor.context.cursorConfig.readOnly){this._eventDispatcher.emitOutgoingEvent(new p.ReadOnlyEditAttemptEvent);return}this._withViewEventsCollector(N)}executeEdits(N,T,R){this._executeCursorEdit(F=>this._cursor.executeEdits(F,N,T,R))}startComposition(){this._executeCursorEdit(N=>this._cursor.startComposition(N))}endComposition(N){this._executeCursorEdit(T=>this._cursor.endComposition(T,N))}type(N,T){this._executeCursorEdit(R=>this._cursor.type(R,N,T))}compositionType(N,T,R,F,O){this._executeCursorEdit(D=>this._cursor.compositionType(D,N,T,R,F,O))}paste(N,T,R,F){this._executeCursorEdit(O=>this._cursor.paste(O,N,T,R,F))}cut(N){this._executeCursorEdit(T=>this._cursor.cut(T,N))}executeCommand(N,T){this._executeCursorEdit(R=>this._cursor.executeCommand(R,N,T))}executeCommands(N,T){this._executeCursorEdit(R=>this._cursor.executeCommands(R,N,T))}revealPrimaryCursor(N,T,R=!1){this._withViewEventsCollector(F=>this._cursor.revealPrimary(F,N,R,0,T,0))}revealTopMostCursor(N){const T=this._cursor.getTopMostViewPosition(),R=new i.Range(T.lineNumber,T.column,T.li
|
||
|
`?G=1:z&&z.lineEnding&&z.lineEnding===`\r
|
||
|
`&&(G=2),this._modelData.model.getValue(G,J)}setValue(z){!this._modelData||this._modelData.model.setValue(z)}getModel(){return this._modelData?this._modelData.model:null}setModel(z=null){const J=z;if(this._modelData===null&&J===null||this._modelData&&this._modelData.model===J)return;const G=this.hasTextFocus(),U=this._detachModel();this._attachModel(J),G&&this.hasModel()&&this.focus();const j={oldModelUrl:U?U.uri:null,newModelUrl:J?J.uri:null};this._removeDecorationTypes(),this._onDidChangeModel.fire(j),this._postDetachModelCleanup(U)}_removeDecorationTypes(){if(this._decorationTypeKeysToIds={},this._decorationTypeSubtypes){for(const z in this._decorationTypeSubtypes){const J=this._decorationTypeSubtypes[z];for(const G in J)this._removeDecorationType(z+"-"+G)}this._decorationTypeSubtypes={}}}getVisibleRanges(){return this._modelData?this._modelData.viewModel.getVisibleRanges():[]}getVisibleRangesPlusViewportAboveBelow(){return this._modelData?this._modelData.viewModel.getVisibleRangesPlusViewportAboveBelow():[]}getWhitespaces(){return this._modelData?this._modelData.viewModel.viewLayout.getWhitespaces():[]}static _getVerticalOffsetAfterPosition(z,J,G,U){const j=z.model.validatePosition({lineNumber:J,column:G}),ce=z.viewModel.coordinatesConverter.convertModelPositionToViewPosition(j);return z.viewModel.viewLayout.getVerticalOffsetAfterLineNumber(ce.lineNumber,U)}getTopForLineNumber(z,J=!1){return this._modelData?Tt._getVerticalOffsetForPosition(this._modelData,z,1,J):-1}getTopForPosition(z,J){return this._modelData?Tt._getVerticalOffsetForPosition(this._modelData,z,J,!1):-1}static _getVerticalOffsetForPosition(z,J,G,U=!1){const j=z.model.validatePosition({lineNumber:J,column:G}),ce=z.viewModel.coordinatesConverter.convertModelPositionToViewPosition(j);return z.viewModel.viewLayout.getVerticalOffsetForLineNumber(ce.lineNumber,U)}getBottomForLineNumber(z,J=!1){return this._modelData?Tt._getVerticalOffsetAfterPosition(this._modelData,z,1,J):-1}setHiddenAreas(z){var J;(J=this._modelData)===null||J===void 0||J.viewModel.setHiddenAreas(z.map(G=>a.Range.lift(G)))}getVisibleColumnFromPosition(z){if(!this._modelData)return z.column;const J=this._modelData.model.validatePosition(z),G=this._modelData.model.getOptions().tabSize;return d.CursorColumns.visibleColumnFromColumn(this._modelData.model.getLineContent(J.lineNumber),J.column,G)+1}getPosition(){return this._modelData?this._modelData.viewModel.getPosition():null}setPosition(z,J="api"){if(!!this._modelData){if(!l.Position.isIPosition(z))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections(J,[{selectionStartLineNumber:z.lineNumber,selectionStartColumn:z.column,positionLineNumber:z.lineNumber,positionColumn:z.column}])}}_sendRevealRange(z,J,G,U){if(!this._modelData)return;if(!a.Range.isIRange(z))throw new Error("Invalid arguments");const j=this._modelData.model.validateRange(z),ce=this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(j);this._modelData.viewModel.revealRange("api",G,ce,J,U)}revealLine(z,J=0){this._revealLine(z,0,J)}revealLineInCenter(z,J=0){this._revealLine(z,1,J)}revealLineInCenterIfOutsideViewport(z,J=0){this._revealLine(z,2,J)}revealLineNearTop(z,J=0){this._revealLine(z,5,J)}_revealLine(z,J,G){if(typeof z!="number")throw new Error("Invalid arguments");this._sendRevealRange(new a.Range(z,1,z,1),J,!1,G)}revealPosition(z,J=0){this._revealPosition(z,0,!0,J)}revealPositionInCenter(z,J=0){this._revealPosition(z,1,!0,J)}revealPositionInCenterIfOutsideViewport(z,J=0){this._revealPosition(z,2,!0,J)}revealPositionNearTop(z,J=0){this._revealPosition(z,5,!0,J)}_revealPosition(z,J,G,U){if(!l.Position.isIPosition(z))throw new Error("Invalid arguments");this._sendRevealRange(new a.Range(z.lineNumber,z.column,z.lineNumber,z.column),J,G,U)}getSelection(){return this._modelData?this._modelData.viewModel.getSelection():null}getSelections(){return this._modelData?this._modelData.viewModel.getSelections():null}setSelection(z,J="api"){const G=r.Selection.isISelection(z),U=a.Range.isIRange(z);if(!G&&!U)throw new Error("Invalid arguments")
|
||
|
.monaco-diff-editor .diffViewport {
|
||
|
background: ${Re};
|
||
|
}
|
||
|
`);const Te=pe.getColor(T.scrollbarSliderHoverBackground);Te&&ue.addRule(`
|
||
|
.monaco-diff-editor .diffViewport:hover {
|
||
|
background: ${Te};
|
||
|
}
|
||
|
`);const Be=pe.getColor(T.scrollbarSliderActiveBackground);Be&&ue.addRule(`
|
||
|
.monaco-diff-editor .diffViewport:active {
|
||
|
background: ${Be};
|
||
|
}
|
||
|
`);const xe=pe.getColor(T.diffDiagonalFill);ue.addRule(`
|
||
|
.monaco-editor .diagonal-fill {
|
||
|
background-image: linear-gradient(
|
||
|
-45deg,
|
||
|
${xe} 12.5%,
|
||
|
#0000 12.5%, #0000 50%,
|
||
|
${xe} 50%, ${xe} 62.5%,
|
||
|
#0000 62.5%, #0000 100%
|
||
|
);
|
||
|
background-size: 8px 8px;
|
||
|
}
|
||
|
`)})}),define(re[174],ae([1,0,40,29,173,26,16,9,38,15,77,32,20]),function($,e,w,C,k,I,L,b,v,u,g,n,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EmbeddedCodeEditorWidget=void 0;let t=class extends k.CodeEditorWidget{constructor(d,l,a,r,o,c,f,p,_,m,h,S){super(d,Object.assign(Object.assign({},a.getRawOptions()),{overflowWidgetsDomNode:a.getOverflowWidgetsDomNode()}),{},r,o,c,f,p,_,m,h,S);this._parentEditor=a,this._overwriteOptions=l,super.updateOptions(this._overwriteOptions),this._register(a.onDidChangeConfiguration(y=>this._onParentConfigurationChanged(y)))}getParentEditor(){return this._parentEditor}_onParentConfigurationChanged(d){super.updateOptions(this._parentEditor.getRawOptions()),super.updateOptions(this._overwriteOptions)}updateOptions(d){w.mixin(this._overwriteOptions,d,!0),super.updateOptions(this._overwriteOptions)}};t=ke([fe(3,b.IInstantiationService),fe(4,C.ICodeEditorService),fe(5,I.ICommandService),fe(6,L.IContextKeyService),fe(7,u.IThemeService),fe(8,v.INotificationService),fe(9,g.IAccessibilityService),fe(10,n.ILanguageConfigurationService),fe(11,i.ILanguageFeaturesService)],t),e.EmbeddedCodeEditorWidget=t}),define(re[740],ae([1,0,10,2,12,11,3,23,24,46,35,54,539,39,25,15,372]),function($,e,w,C,k,I,L,b,v,u,g,n,i,t,s,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BracketMatchingController=void 0;const l=(0,s.registerColor)("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hcDark:"#A0A0A0",hcLight:"#A0A0A0"},i.localize(0,null));class a extends k.EditorAction{constructor(){super({id:"editor.action.jumpToBracket",label:i.localize(1,null),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:v.EditorContextKeys.editorTextFocus,primary:2048|1024|88,weight:100}})}run(p,_){var m;(m=c.get(_))===null||m===void 0||m.jumpToBracket()}}class r extends k.EditorAction{constructor(){super({id:"editor.action.selectToBracket",label:i.localize(2,null),alias:"Select to Bracket",precondition:void 0,description:{description:"Select to Bracket",args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(p,_,m){var h;let S=!0;m&&m.selectBrackets===!1&&(S=!1),(h=c.get(_))===null||h===void 0||h.selectToBracket(S)}}class o{constructor(p,_,m){this.position=p,this.brackets=_,this.options=m}}class c extends C.Disposable{constructor(p){super();this._editor=p,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new w.RunOnceScheduler(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(66),this._updateBracketsSoon.schedule(),this._register(p.onDidChangeCursorPosition(_=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(p.onDidChangeModelContent(_=>{this._updateBracketsSoon.schedule()})),this._register(p.onDidChangeModel(_=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(p.onDidChangeModelLanguageConfiguration(_=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(p.onDidChangeConfiguration(_=>{_.hasChanged(66)&&(this._matchBrackets=this._editor.getOption(66),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(p.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(p.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}static get(p){return p.getContribution(c.ID)}jumpToBracket(){if(!this._editor.hasModel())return;const p=this._editor.getModel(),_=this._editor.getSelections().map(m=>{const h=m.getStartPosition(),S=p.bracketPairs.matchBracket(h);let y=null;if(S)S[0].containsPosition(h)&&!S[1].containsPosition(h)?y=S[1].getStartPosition():S[1].containsPosition(h)&&(y=S[0].getStartPosition());else{const E=p.bracketPairs.findEnclosingBrackets(h);if(E)y=E[1].getStartPosition();else{const N=p.bracketPairs.findNextBracket(h);N&&N.range&&(y=N.range.getStartPosition())}}return y?new b.Selection(y.lineNu
|
||
|
.monaco-editor .codelens-decoration.${this._styleClassName} { line-height: ${p}px; font-size: ${_}px; padding-right: ${Math.round(_*.5)}px; font-feature-settings: var(${y}) }
|
||
|
.monaco-editor .codelens-decoration.${this._styleClassName} span.codicon { line-height: ${p}px; font-size: ${_}px; }
|
||
|
`;m&&(E+=`.monaco-editor .codelens-decoration.${this._styleClassName} { font-family: var(${S}), ${u.EDITOR_FONT_DEFAULTS.fontFamily}}`),this._styleElement.textContent=E,this._editor.getContainerDomNode().style.setProperty(S,m??"inherit"),this._editor.getContainerDomNode().style.setProperty(y,h.fontFeatureSettings),this._editor.changeViewZones(N=>{for(const T of this._lenses)T.updateHeight(p,N)})}_localDispose(){var p,_,m;(p=this._getCodeLensModelPromise)===null||p===void 0||p.cancel(),this._getCodeLensModelPromise=void 0,(_=this._resolveCodeLensesPromise)===null||_===void 0||_.cancel(),this._resolveCodeLensesPromise=void 0,this._localToDispose.clear(),this._oldCodeLensModels.clear(),(m=this._currentCodeLensModel)===null||m===void 0||m.dispose()}_onModelChange(){this._localDispose();const p=this._editor.getModel();if(!p||!this._editor.getOption(14))return;const _=this._codeLensCache.get(p);if(_&&this._renderCodeLensSymbols(_),!this._languageFeaturesService.codeLensProvider.has(p)){_&&this._localToDispose.add((0,C.disposableTimeout)(()=>{const h=this._codeLensCache.get(p);_===h&&(this._codeLensCache.delete(p),this._onModelChange())},30*1e3));return}for(const h of this._languageFeaturesService.codeLensProvider.all(p))if(typeof h.onDidChange=="function"){const S=h.onDidChange(()=>m.schedule());this._localToDispose.add(S)}const m=new C.RunOnceScheduler(()=>{var h;const S=Date.now();(h=this._getCodeLensModelPromise)===null||h===void 0||h.cancel(),this._getCodeLensModelPromise=(0,C.createCancelablePromise)(y=>(0,n.getCodeLensModel)(this._languageFeaturesService.codeLensProvider,p,y)),this._getCodeLensModelPromise.then(y=>{this._currentCodeLensModel&&this._oldCodeLensModels.add(this._currentCodeLensModel),this._currentCodeLensModel=y,this._codeLensCache.put(p,y);const E=this._provideCodeLensDebounce.update(p,Date.now()-S);m.delay=E,this._renderCodeLensSymbols(y),this._resolveCodeLensesInViewportSoon()},k.onUnexpectedError)},this._provideCodeLensDebounce.get(p));this._localToDispose.add(m),this._localToDispose.add((0,L.toDisposable)(()=>this._resolveCodeLensesScheduler.cancel())),this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{this._editor.changeDecorations(h=>{this._editor.changeViewZones(S=>{const y=[];let E=-1;this._lenses.forEach(T=>{!T.isValid()||E===T.getLineNumber()?y.push(T):(T.update(S),E=T.getLineNumber())});const N=new t.CodeLensHelper;y.forEach(T=>{T.dispose(N,S),this._lenses.splice(this._lenses.indexOf(T),1)}),N.commit(h)})}),m.schedule()})),this._localToDispose.add(this._editor.onDidFocusEditorWidget(()=>{m.schedule()})),this._localToDispose.add(this._editor.onDidScrollChange(h=>{h.scrollTopChanged&&this._lenses.length>0&&this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add(this._editor.onDidLayoutChange(()=>{this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add((0,L.toDisposable)(()=>{if(this._editor.getModel()){const h=b.StableEditorScrollState.capture(this._editor);this._editor.changeDecorations(S=>{this._editor.changeViewZones(y=>{this._disposeAllLenses(S,y)})}),h.restore(this._editor)}else this._disposeAllLenses(void 0,void 0)})),this._localToDispose.add(this._editor.onMouseDown(h=>{if(h.target.type!==9)return;let S=h.target.element;if((S==null?void 0:S.tagName)==="SPAN"&&(S=S.parentElement),(S==null?void 0:S.tagName)==="A")for(const y of this._lenses){const E=y.getCommand(S);if(E){this._commandService.executeCommand(E.id,...E.arguments||[]).catch(N=>this._notificationService.error(N));break}}})),m.schedule()}_disposeAllLenses(p,_){const m=new t.CodeLensHelper;for(const h of this._lenses)h.dispose(m,_);p&&m.commit(p),this._lenses.length=0}_renderCodeLensSymbols(p){if(!this._editor.hasModel())return;const _=this._editor.getModel().getLineCount(),m=[];let h;for(const E of p.lenses){const N=E.symbol.range.startLineNumber;N<1||N>_||(h&&h[h.length-1].symbol.range.startLineNumber===N?h.push(E):(h=[E],m.push(h)))}const S=b.StableEditorScrollState.capture(this._editor),y=this._getLayoutInfo();this._editor.changeDecorations(E=>{this._editor.changeViewZones(N=>{const T=n
|
||
|
`),x.preventDefault();return}if(x.equals(2)){this._isReplaceVisible?this._replaceInput.focus():this._findInput.focusOnCaseSensitive(),x.preventDefault();return}if(x.equals(2048|18)){this._codeEditor.focus(),x.preventDefault();return}if(x.equals(16))return Z(x,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea"));if(x.equals(18))return ie(x,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea"))}_onReplaceInputKeyDown(x){if(x.equals(H|3))if(this._keybindingService.dispatchEvent(x,x.target)){x.preventDefault();return}else{n.isWindows&&n.isNative&&!this._ctrlEnterReplaceAllWarningPrompted&&(this._notificationService.info(d.localize(25,null)),this._ctrlEnterReplaceAllWarningPrompted=!0,this._storageService.store(ee,!0,0,0)),this._replaceInput.inputBox.insertAtCursor(`
|
||
|
`),x.preventDefault();return}if(x.equals(2)){this._findInput.focusOnCaseSensitive(),x.preventDefault();return}if(x.equals(1024|2)){this._findInput.focus(),x.preventDefault();return}if(x.equals(2048|18)){this._codeEditor.focus(),x.preventDefault();return}if(x.equals(16))return Z(x,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea"));if(x.equals(18))return ie(x,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea"))}getVerticalSashLeft(x){return 0}_keybindingLabelFor(x){const oe=this._keybindingService.lookupKeybinding(x);return oe?` (${oe.getLabel()})`:""}_buildDomNode(){const x=!0,oe=!0;this._findInput=this._register(new l.ContextScopedFindInput(null,this._contextViewProvider,{width:V,label:h,placeholder:S,appendCaseSensitiveLabel:this._keybindingLabelFor(s.FIND_IDS.ToggleCaseSensitiveCommand),appendWholeWordsLabel:this._keybindingLabelFor(s.FIND_IDS.ToggleWholeWordCommand),appendRegexLabel:this._keybindingLabelFor(s.FIND_IDS.ToggleRegexCommand),validation:G=>{if(G.length===0||!this._findInput.getRegex())return null;try{return new RegExp(G,"gu"),null}catch(U){return{content:U.message}}},flexibleHeight:x,flexibleWidth:oe,flexibleMaxHeight:118,showHistoryHint:()=>(0,a.showHistoryKeybindingHint)(this._keybindingService)},this._contextKeyService,!0)),this._findInput.setRegex(!!this._state.isRegex),this._findInput.setCaseSensitive(!!this._state.matchCase),this._findInput.setWholeWords(!!this._state.wholeWord),this._register(this._findInput.onKeyDown(G=>this._onFindInputKeyDown(G))),this._register(this._findInput.inputBox.onDidChange(()=>{this._ignoreChangeEvent||this._state.change({searchString:this._findInput.getValue()},!0)})),this._register(this._findInput.onDidOptionChange(()=>{this._state.change({isRegex:this._findInput.getRegex(),wholeWord:this._findInput.getWholeWords(),matchCase:this._findInput.getCaseSensitive()},!0)})),this._register(this._findInput.onCaseSensitiveKeyDown(G=>{G.equals(1024|2)&&this._isReplaceVisible&&(this._replaceInput.focus(),G.preventDefault())})),this._register(this._findInput.onRegexKeyDown(G=>{G.equals(2)&&this._isReplaceVisible&&(this._replaceInput.focusOnPreserve(),G.preventDefault())})),this._register(this._findInput.inputBox.onDidHeightChange(G=>{this._tryUpdateHeight()&&this._showViewZone()})),n.isLinux&&this._register(this._findInput.onMouseDown(G=>this._onFindInputMouseDown(G))),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount(),this._prevBtn=this._register(new te({label:y+this._keybindingLabelFor(s.FIND_IDS.PreviousMatchFindAction),icon:e.findPreviousMatchIcon,onTrigger:()=>{this._codeEditor.getAction(s.FIND_IDS.PreviousMatchFindAction).run().then(void 0,u.onUnexpectedError)}})),this._nextBtn=this._register(new te({label:E+this._keybindingLabelFor(s.FIND_IDS.NextMatchFindAction),icon:e.findNextMatchIcon,onTrigger:()=>{this._codeEditor.getAction(s.FIND_IDS.NextMatchFindAction).run().then(void 0,u.onUnexpectedError)}}));const Q=document.createElement("div");Q.className="find-part",Q.appendChild(this._findInput.domNode);const K=document.createElement("div");K.className="find-actions",Q.appendChild(K),K.appendChild(this._matchesCount),K.appendChild(this._prevBtn.domNode),K.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new k.Toggle({icon:p,title:N+this._keybindingLabelFor(s.FIND_IDS.ToggleSearchScopeCommand),isChecked:!1})),this._register(this._toggleSelectionFind.onChange(()=>{if(this._toggleSelectionFind.checked){if(this._codeEditor.hasModel()){const G=this._codeEditor.getSelections();G.map(U=>(U.endColumn===1&&U.endLineNumber>U.startLineNumber&&(U=U.setEndPosition(U.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(U.endLineNumber-1))),U.isEmpty()?null:U)).filter(U=>!!U),G.length&&this._state.change({searchScope:G},!0)}}else this._state.change({searchScope:null},!0)})),K.appendChild(this._toggleSelectionFind.domNode),this._closeBtn=this._register(new te({label:T+this._keybindingLabelFor(s.FIND_I
|
||
|
.monaco-editor .find-widget .button:not(.disabled):hover,
|
||
|
.monaco-editor .find-widget .codicon-find-selection:hover {
|
||
|
background-color: ${se} !important;
|
||
|
}
|
||
|
`);const he=de.getColor(r.focusBorder);he&&x.addRule(`.monaco-editor .find-widget .monaco-inputbox.synthetic-focus { outline-color: ${he}; }`)})}),define(re[313],ae([1,0,10,2,8,12,24,175,746,747,748,555,39,93,16,78,44,38,79,15]),function($,e,w,C,k,I,L,b,v,u,g,n,i,t,s,d,l,a,r,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StartFindReplaceAction=e.PreviousSelectionMatchFindAction=e.NextSelectionMatchFindAction=e.SelectionMatchFindAction=e.PreviousMatchFindAction=e.NextMatchFindAction=e.MatchFindAction=e.StartFindWithSelectionAction=e.StartFindWithArgsAction=e.StartFindAction=e.FindController=e.CommonFindController=e.getSelectionSearchString=void 0;const c=524288;function f(D,M="single",P=!1){if(!D.hasModel())return null;const B=D.getSelection();if(M==="single"&&B.startLineNumber===B.endLineNumber||M==="multiple"){if(B.isEmpty()){const W=D.getConfiguredWordAtPosition(B.getStartPosition());if(W&&P===!1)return W.word}else if(D.getModel().getValueLengthInRange(B)<c)return D.getModel().getValueInRange(B)}return null}e.getSelectionSearchString=f;let p=class Ui extends C.Disposable{constructor(M,P,B,W){super();this._editor=M,this._findWidgetVisible=b.CONTEXT_FIND_WIDGET_VISIBLE.bindTo(P),this._contextKeyService=P,this._storageService=B,this._clipboardService=W,this._updateHistoryDelayer=new w.Delayer(500),this._state=this._register(new u.FindReplaceState),this.loadQueryState(),this._register(this._state.onFindReplaceStateChange(V=>this._onStateChanged(V))),this._model=null,this._register(this._editor.onDidChangeModel(()=>{const V=this._editor.getModel()&&this._state.isRevealed;this.disposeModel(),this._state.change({searchScope:null,matchCase:this._storageService.getBoolean("editor.matchCase",1,!1),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,!1),isRegex:this._storageService.getBoolean("editor.isRegex",1,!1),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,!1)},!1),V&&this._start({forceRevealReplace:!1,seedSearchStringFromSelection:"none",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!1,updateSearchScope:!1,loop:this._editor.getOption(37).loop})}))}get editor(){return this._editor}static get(M){return M.getContribution(Ui.ID)}dispose(){this.disposeModel(),super.dispose()}disposeModel(){this._model&&(this._model.dispose(),this._model=null)}_onStateChanged(M){this.saveQueryState(M),M.isRevealed&&(this._state.isRevealed?this._findWidgetVisible.set(!0):(this._findWidgetVisible.reset(),this.disposeModel())),M.searchString&&this.setGlobalBufferTerm(this._state.searchString)}saveQueryState(M){M.isRegex&&this._storageService.store("editor.isRegex",this._state.actualIsRegex,1,0),M.wholeWord&&this._storageService.store("editor.wholeWord",this._state.actualWholeWord,1,0),M.matchCase&&this._storageService.store("editor.matchCase",this._state.actualMatchCase,1,0),M.preserveCase&&this._storageService.store("editor.preserveCase",this._state.actualPreserveCase,1,0)}loadQueryState(){this._state.change({matchCase:this._storageService.getBoolean("editor.matchCase",1,this._state.matchCase),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,this._state.wholeWord),isRegex:this._storageService.getBoolean("editor.isRegex",1,this._state.isRegex),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,this._state.preserveCase)},!1)}isFindInputFocused(){return!!b.CONTEXT_FIND_INPUT_FOCUSED.getValue(this._contextKeyService)}getState(){return this._state}closeFindWidget(){this._state.change({isRevealed:!1,searchScope:null},!1),this._editor.focus()}toggleCaseSensitive(){this._state.change({matchCase:!this._state.matchCase},!1),this._state.isRevealed||this.highlightFindOptions()}toggleWholeWords(){this._state.change({wholeWord:!this._state.wholeWord},!1),this._state.isRevealed||this.highlightFindOptions()}toggleRegex(){this._state.change({isRegex:!this._state.isRegex},!1),this._state.isRevealed||this.highlightFindOptions()}togglePreserveCase(){this._state.change({preserveCase:!this._state.preserveCase},!1),this._sta
|
||
|
* 'levels': Number of levels to unfold. If not set, defaults to 1.
|
||
|
* 'direction': If 'up', unfold given number of levels up otherwise unfolds down.
|
||
|
* 'selectionLines': Array of the start lines (0-based) of the editor selections to apply the unfold action to. If not set, the active selection(s) will be used.
|
||
|
`,constraint:R,schema:{type:"object",properties:{levels:{type:"number",default:1},direction:{type:"string",enum:["up","down"],default:"down"},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(oe,Q,K,ne){const z=ne&&ne.levels||1,J=this.getLineNumbers(ne,K);ne&&ne.direction==="up"?(0,t.setCollapseStateLevelsUp)(Q,!1,z,J):(0,t.setCollapseStateLevelsDown)(Q,!1,z,J)}}class O extends T{constructor(){super({id:"editor.unfoldRecursively",label:l.localize(2,null),alias:"Unfold Recursively",precondition:E,kbOpts:{kbExpr:g.EditorContextKeys.editorTextFocus,primary:(0,k.KeyChord)(2048|41,2048|89),weight:100}})}invoke(oe,Q,K,ne){(0,t.setCollapseStateLevelsDown)(Q,!1,Number.MAX_VALUE,this.getSelectedLines(K))}}class D extends T{constructor(){super({id:"editor.fold",label:l.localize(3,null),alias:"Fold",precondition:E,kbOpts:{kbExpr:g.EditorContextKeys.editorTextFocus,primary:2048|1024|87,mac:{primary:2048|512|87},weight:100},description:{description:"Fold the content in the editor",args:[{name:"Fold editor argument",description:`Property-value pairs that can be passed through this argument:
|
||
|
* 'levels': Number of levels to fold.
|
||
|
* 'direction': If 'up', folds given number of levels up otherwise folds down.
|
||
|
* 'selectionLines': Array of the start lines (0-based) of the editor selections to apply the fold action to. If not set, the active selection(s) will be used.
|
||
|
If no levels or direction is set, folds the region at the locations or if already collapsed, the first uncollapsed parent instead.
|
||
|
`,constraint:R,schema:{type:"object",properties:{levels:{type:"number"},direction:{type:"string",enum:["up","down"]},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(oe,Q,K,ne){const z=this.getLineNumbers(ne,K),J=ne&&ne.levels,G=ne&&ne.direction;typeof J!="number"&&typeof G!="string"?(0,t.setCollapseStateUp)(Q,!0,z):G==="up"?(0,t.setCollapseStateLevelsUp)(Q,!0,J||1,z):(0,t.setCollapseStateLevelsDown)(Q,!0,J||1,z)}}class M extends T{constructor(){super({id:"editor.toggleFold",label:l.localize(4,null),alias:"Toggle Fold",precondition:E,kbOpts:{kbExpr:g.EditorContextKeys.editorTextFocus,primary:(0,k.KeyChord)(2048|41,2048|42),weight:100}})}invoke(oe,Q,K){const ne=this.getSelectedLines(K);(0,t.toggleCollapseState)(Q,1,ne)}}class P extends T{constructor(){super({id:"editor.foldRecursively",label:l.localize(5,null),alias:"Fold Recursively",precondition:E,kbOpts:{kbExpr:g.EditorContextKeys.editorTextFocus,primary:(0,k.KeyChord)(2048|41,2048|87),weight:100}})}invoke(oe,Q,K){const ne=this.getSelectedLines(K);(0,t.setCollapseStateLevelsDown)(Q,!0,Number.MAX_VALUE,ne)}}class B extends T{constructor(){super({id:"editor.foldAllBlockComments",label:l.localize(6,null),alias:"Fold All Block Comments",precondition:E,kbOpts:{kbExpr:g.EditorContextKeys.editorTextFocus,primary:(0,k.KeyChord)(2048|41,2048|85),weight:100}})}invoke(oe,Q,K,ne,z){if(Q.regions.hasTypes())(0,t.setCollapseStateForType)(Q,n.FoldingRangeKind.Comment.value,!0);else{const J=K.getModel();if(!J)return;const G=z.getLanguageConfiguration(J.getLanguageId()).comments;if(G&&G.blockCommentStartToken){const U=new RegExp("^\\s*"+(0,L.escapeRegExpCharacters)(G.blockCommentStartToken));(0,t.setCollapseStateForMatchingLines)(Q,U,!0)}}}}class W extends T{constructor(){super({id:"editor.foldAllMarkerRegions",label:l.localize(7,null),alias:"Fold All Regions",precondition:E,kbOpts:{kbExpr:g.EditorContextKeys.editorTextFocus,primary:(0,k.KeyChord)(2048|41,2048|29),weight:100}})}invoke(oe,Q,K,ne,z){if(Q.regions.hasTypes())(0,t.setCollapseStateForType)(Q,n.FoldingRangeKind.Region.value,!0);else{const J=K.getModel();if(!J)return;const G=z.getLanguageConfiguration(J.getLanguageId()).foldingRules;if(G&&G.markers&&G.markers.start){const U=new RegExp(G.markers.start);(0,t.setCollapseStateForMatchingLines)(Q,U,!0)}}}}class V extends T{constructor(){super({id:"editor.unfoldAllMarkerRegions",label:l.localize(8,null),alias:"Unfold All Regions",precondition:E,kbOpts:{kbExpr:g.EditorContextKeys.editorTextFocus,primary:(0,k.KeyChord)(2048|41,2048|30),weight:100}})}invoke(oe,Q,K,ne,z){if(Q.regions.hasTypes())(0,t.setCollapseStateForType)(Q,n.FoldingRangeKind.Region.value,!1);else{const J=K.getModel();if(!J)return;const G=z.getLanguageConfiguration(J.getLanguageId()).foldingRules;if(G&&G.markers&&G.markers.start){const U=new RegExp(G.markers.start);(0,t.setCollapseStateForMatchingLines)(Q,U,!1)}}}}class A extends T{constructor(){super({id:"editor.foldAllExcept",label:l.localize(9,null),alias:"Fold All Regions Except Selected",precondition:E,kbOpts:{kbExpr:g.EditorContextKeys.editorTextFocus,primary:(0,k.KeyChord)(2048|41,2048|83),weight:100}})}invoke(oe,Q,K){const ne=this.getSelectedLines(K);(0,t.setCollapseStateForRest)(Q,!0,ne)}}class X extends T{constructor(){super({id:"editor.unfoldAllExcept",label:l.localize(10,null),alias:"Unfold All Regions Except Selected",precondition:E,kbOpts:{kbExpr:g.EditorContextKeys.editorTextFocus,primary:(0,k.KeyChord)(2048|41,2048|81),weight:100}})}invoke(oe,Q,K){const ne=this.getSelectedLines(K);(0,t.setCollapseStateForRest)(Q,!1,ne)}}class ee extends T{constructor(){super({id:"editor.foldAll",label:l.localize(11,null),alias:"Fold All",precondition:E,kbOpts:{kbExpr:g.EditorContextKeys.editorTextFocus,primary:(0,k.KeyChord)(2048|41,2048|21),weight:100}})}invoke(oe,Q,K){(0,t.setCollapseStateLevelsDown)(Q,!0)}}class H extends T{constructor(){super({id:"editor.unfoldAll",label:l.localize(12,null),alias:"Unfold All",precondition:E,kbOpts:{kbExpr:g.EditorContextKeys.editorTextFocus,primary:(0,k.KeyChord)(2048|41,2048|40),weight:100}})}invoke(oe,Q,K){
|
||
|
.monaco-editor .cldr${o.ThemeIcon.asCSSSelector(c.foldingExpandedIcon)},
|
||
|
.monaco-editor .cldr${o.ThemeIcon.asCSSSelector(c.foldingCollapsedIcon)},
|
||
|
.monaco-editor .cldr${o.ThemeIcon.asCSSSelector(c.foldingManualExpandedIcon)},
|
||
|
.monaco-editor .cldr${o.ThemeIcon.asCSSSelector(c.foldingManualCollapsedIcon)} {
|
||
|
color: ${K} !important;
|
||
|
}
|
||
|
`)})}),define(re[751],ae([1,0,7,260,18,2,11,3,35,28,275,88,16,9,44,102,10,24]),function($,e,w,C,k,I,L,b,v,u,g,n,i,t,s,d,l,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ContentHoverWidget=e.ContentHoverController=void 0;const r=w.$;let o=class li extends I.Disposable{constructor(h,S,y){super();this._editor=h,this._instantiationService=S,this._keybindingService=y,this._widget=this._register(this._instantiationService.createInstance(f,this._editor)),this._isChangingDecorations=!1,this._messages=[],this._messagesAreComplete=!1,this._participants=[];for(const E of n.HoverParticipantRegistry.getAll())this._participants.push(this._instantiationService.createInstance(E,this._editor));this._participants.sort((E,N)=>E.hoverOrdinal-N.hoverOrdinal),this._computer=new _(this._editor,this._participants),this._hoverOperation=this._register(new g.HoverOperation(this._editor,this._computer)),this._register(this._hoverOperation.onResult(E=>{this._withResult(E.value,E.isComplete,E.hasLoadingMessage)})),this._register(this._editor.onDidChangeModelDecorations(()=>{this._isChangingDecorations||this._onModelDecorationsChanged()})),this._register(w.addStandardDisposableListener(this._widget.getDomNode(),"keydown",E=>{E.equals(9)&&this.hide()})),this._register(u.TokenizationRegistry.onDidChange(()=>{this._widget.position&&this._computer.anchor&&this._messages.length>0&&(this._widget.clear(),this._renderMessages(this._computer.anchor,this._messages))}))}_onModelDecorationsChanged(){this._widget.position&&(this._hoverOperation.cancel(),this._widget.isColorPickerVisible||this._hoverOperation.start(0))}maybeShowAt(h){const S=[];for(const E of this._participants)if(E.suggestHoverAnchor){const N=E.suggestHoverAnchor(h);N&&S.push(N)}const y=h.target;if(y.type===6&&S.push(new n.HoverRangeAnchor(0,y.range)),y.type===7){const E=this._editor.getOption(46).typicalHalfwidthCharacterWidth/2;!y.detail.isAfterLines&&typeof y.detail.horizontalDistanceToText=="number"&&y.detail.horizontalDistanceToText<E&&S.push(new n.HoverRangeAnchor(0,y.range))}return S.length===0?!1:(S.sort((E,N)=>N.priority-E.priority),this._startShowingAt(S[0],0,!1),!0)}startShowingAtRange(h,S,y){this._startShowingAt(new n.HoverRangeAnchor(0,h),S,y)}_startShowingAt(h,S,y){if(!(this._computer.anchor&&this._computer.anchor.equals(h))){if(this._hoverOperation.cancel(),this._widget.position)if(!this._computer.anchor||!h.canAdoptVisibleHover(this._computer.anchor,this._widget.position))this.hide();else{const E=this._messages.filter(N=>N.isValidForHoverAnchor(h));if(E.length===0)this.hide();else{if(E.length===this._messages.length&&this._messagesAreComplete)return;this._renderMessages(h,E)}}this._computer.anchor=h,this._computer.shouldFocus=y,this._hoverOperation.start(S)}}hide(){this._computer.anchor=null,this._hoverOperation.cancel(),this._widget.hide()}isColorPickerVisible(){return this._widget.isColorPickerVisible}containsNode(h){return this._widget.getDomNode().contains(h)}_addLoadingMessage(h){if(this._computer.anchor){for(const S of this._participants)if(S.createLoadingMessage){const y=S.createLoadingMessage(this._computer.anchor);if(y)return h.slice(0).concat([y])}}return h}_withResult(h,S,y){this._messages=y?this._addLoadingMessage(h):h,this._messagesAreComplete=S,this._computer.anchor&&this._messages.length>0?this._renderMessages(this._computer.anchor,this._messages):S&&this.hide()}_renderMessages(h,S){const{showAtPosition:y,showAtRange:E,highlightRange:N}=li.computeHoverRanges(h.range,S),T=new I.DisposableStore,R=T.add(new p(this._keybindingService)),F=document.createDocumentFragment();let O=null;const D={fragment:F,statusBar:R,setColorPicker:M=>O=M,onContentsChanged:()=>this._widget.onContentsChanged(),hide:()=>this.hide()};for(const M of this._participants){const P=S.filter(B=>B.owner===M);P.length>0&&T.add(M.renderHoverParts(D,P))}if(R.hasContent&&F.appendChild(R.hoverElement),F.hasChildNodes()){if(N){const M=this._editor.createDecorationsCollection();try{this._isChangingDecorations=!0,M.set([{range:N,options:li._DECORATION_OPTIONS}])}finally{this._isChangingD
|
||
|
`);return new y(H,q,ie,oe,Y,te,Q)}addSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;const H=this._getNextMatch();if(!H)return null;const q=this._editor.getSelections();return new S(q.concat(H),H,0)}moveSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;const H=this._getNextMatch();if(!H)return null;const q=this._editor.getSelections();return new S(q.slice(0,q.length-1).concat(H),H,0)}_getNextMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){const ie=this.currentMatch;return this.currentMatch=null,ie}this.findController.highlightFindOptions();const H=this._editor.getSelections(),q=H[H.length-1],Z=this._editor.getModel().findNextMatch(this.searchText,q.getEndPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(119):null,!1);return Z?new u.Selection(Z.range.startLineNumber,Z.range.startColumn,Z.range.endLineNumber,Z.range.endColumn):null}addSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;const H=this._getPreviousMatch();if(!H)return null;const q=this._editor.getSelections();return new S(q.concat(H),H,0)}moveSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;const H=this._getPreviousMatch();if(!H)return null;const q=this._editor.getSelections();return new S(q.slice(0,q.length-1).concat(H),H,0)}_getPreviousMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){const ie=this.currentMatch;return this.currentMatch=null,ie}this.findController.highlightFindOptions();const H=this._editor.getSelections(),q=H[H.length-1],Z=this._editor.getModel().findPreviousMatch(this.searchText,q.getStartPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(119):null,!1);return Z?new u.Selection(Z.range.startLineNumber,Z.range.startColumn,Z.range.endLineNumber,Z.range.endColumn):null}selectAll(H){if(!this._editor.hasModel())return[];this.findController.highlightFindOptions();const q=this._editor.getModel();return H?q.findMatches(this.searchText,H,!1,this.matchCase,this.wholeWord?this._editor.getOption(119):null,!1,1073741824):q.findMatches(this.searchText,!0,!1,this.matchCase,this.wholeWord?this._editor.getOption(119):null,!1,1073741824)}}e.MultiCursorSession=y;class E extends I.Disposable{constructor(H){super();this._sessionDispose=this._register(new I.DisposableStore),this._editor=H,this._ignoreSelectionChange=!1,this._session=null}static get(H){return H.getContribution(E.ID)}dispose(){this._endSession(),super.dispose()}_beginSessionIfNeeded(H){if(!this._session){const q=y.create(this._editor,H);if(!q)return;this._session=q;const Z={searchString:this._session.searchText};this._session.isDisconnectedFromFindController&&(Z.wholeWordOverride=1,Z.matchCaseOverride=1,Z.isRegexOverride=2),H.getState().change(Z,!1),this._sessionDispose.add(this._editor.onDidChangeCursorSelection(ie=>{this._ignoreSelectionChange||this._endSession()})),this._sessionDispose.add(this._editor.onDidBlurEditorText(()=>{this._endSession()})),this._sessionDispose.add(H.getState().onFindReplaceStateChange(ie=>{(ie.matchCase||ie.wholeWord)&&this._endSession()}))}}_endSession(){if(this._sessionDispose.clear(),this._session&&this._session.isDisconnectedFromFindController){const H={wholeWordOverride:0,matchCaseOverride:0,isRegexOverride:0};this._session.findController.getState().change(H,!1)}this._session=null}_setSelections(H){this._ignoreSelectionChange=!0,this._editor.setSelections(H),this._ignoreSelectionChange=!1}_expandEmptyToWord(H,q){if(!q.isEmpty())return q;const Z=this._editor.getConfiguredWordAtPosition(q.getStartPosition());return Z?new u.Selection(q.startLineNumber,Z.startColumn,q.startLineNumber,Z.endColumn):q}_applySessionResult(H){!H||(this._setSelections(H.selections),H.revealRange&&this._editor.revealRangeInCenterIfOutsideViewport(H.revealRange,H.revealScrollType))}getSession(H){return this._session}addSelectionToNextFindMatch(H){if(!!this._editor.hasModel()){if(!this._session){const q=this._editor.getSelections();if(q.length>1){const ie=H.getState().matchCase;if(!W(this._editor.getModel(),q,ie)){const te=this._editor.getModel
|
||
|
`)}get size(){return this.elements.size}has(m){return this.elements.has(m)}set(m,h){this.elements.set(m,h)}delete(m){return this.elements.delete(m)}}class a{constructor(m,h,S,y,E,N,T){this.id=++t,this.type=1,this.actual=m,this.label=m.label,this.confirmBeforeUndo=m.confirmBeforeUndo||!1,this.resourceLabels=h,this.strResources=S,this.groupId=y,this.groupOrder=E,this.sourceId=N,this.sourceOrder=T,this.removedResources=null,this.invalidatedResources=null}canSplit(){return typeof this.actual.split=="function"}removeResource(m,h,S){this.removedResources||(this.removedResources=new l),this.removedResources.has(h)||this.removedResources.set(h,new d(m,S))}setValid(m,h,S){S?this.invalidatedResources&&(this.invalidatedResources.delete(h),this.invalidatedResources.size===0&&(this.invalidatedResources=null)):(this.invalidatedResources||(this.invalidatedResources=new l),this.invalidatedResources.has(h)||this.invalidatedResources.set(h,new d(m,0)))}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.invalidatedResources?"INVALID":" VALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class r{constructor(m,h){this.resourceLabel=m,this.strResource=h,this._past=[],this._future=[],this.locked=!1,this.versionId=1}dispose(){for(const m of this._past)m.type===1&&m.removeResource(this.resourceLabel,this.strResource,0);for(const m of this._future)m.type===1&&m.removeResource(this.resourceLabel,this.strResource,0);this.versionId++}toString(){const m=[];m.push(`* ${this.strResource}:`);for(let h=0;h<this._past.length;h++)m.push(` * [UNDO] ${this._past[h]}`);for(let h=this._future.length-1;h>=0;h--)m.push(` * [REDO] ${this._future[h]}`);return m.join(`
|
||
|
`)}flushAllElements(){this._past=[],this._future=[],this.versionId++}_setElementValidFlag(m,h){m.type===1?m.setValid(this.resourceLabel,this.strResource,h):m.setValid(h)}setElementsValidFlag(m,h){for(const S of this._past)h(S.actual)&&this._setElementValidFlag(S,m);for(const S of this._future)h(S.actual)&&this._setElementValidFlag(S,m)}pushElement(m){for(const h of this._future)h.type===1&&h.removeResource(this.resourceLabel,this.strResource,1);this._future=[],this._past.push(m),this.versionId++}createSnapshot(m){const h=[];for(let S=0,y=this._past.length;S<y;S++)h.push(this._past[S].id);for(let S=this._future.length-1;S>=0;S--)h.push(this._future[S].id);return new g.ResourceEditStackSnapshot(m,h)}restoreSnapshot(m){const h=m.elements.length;let S=!0,y=0,E=-1;for(let T=0,R=this._past.length;T<R;T++,y++){const F=this._past[T];S&&(y>=h||F.id!==m.elements[y])&&(S=!1,E=0),!S&&F.type===1&&F.removeResource(this.resourceLabel,this.strResource,0)}let N=-1;for(let T=this._future.length-1;T>=0;T--,y++){const R=this._future[T];S&&(y>=h||R.id!==m.elements[y])&&(S=!1,N=T),!S&&R.type===1&&R.removeResource(this.resourceLabel,this.strResource,0)}E!==-1&&(this._past=this._past.slice(0,E)),N!==-1&&(this._future=this._future.slice(N+1)),this.versionId++}getElements(){const m=[],h=[];for(const S of this._past)m.push(S.actual);for(const S of this._future)h.push(S.actual);return{past:m,future:h}}getClosestPastElement(){return this._past.length===0?null:this._past[this._past.length-1]}getSecondClosestPastElement(){return this._past.length<2?null:this._past[this._past.length-2]}getClosestFutureElement(){return this._future.length===0?null:this._future[this._future.length-1]}hasPastElements(){return this._past.length>0}hasFutureElements(){return this._future.length>0}splitPastWorkspaceElement(m,h){for(let S=this._past.length-1;S>=0;S--)if(this._past[S]===m){h.has(this.strResource)?this._past[S]=h.get(this.strResource):this._past.splice(S,1);break}this.versionId++}splitFutureWorkspaceElement(m,h){for(let S=this._future.length-1;S>=0;S--)if(this._future[S]===m){h.has(this.strResource)?this._future[S]=h.get(this.strResource):this._future.splice(S,1);break}this.versionId++}moveBackward(m){this._past.pop(),this._future.push(m),this.versionId++}moveForward(m){this._future.pop(),this._past.push(m),this.versionId++}}class o{constructor(m){this.editStacks=m,this._versionIds=[];for(let h=0,S=this.editStacks.length;h<S;h++)this._versionIds[h]=this.editStacks[h].versionId}isValid(){for(let m=0,h=this.editStacks.length;m<h;m++)if(this._versionIds[m]!==this.editStacks[m].versionId)return!1;return!0}}const c=new r("","");c.locked=!0;let f=class{constructor(m,h){this._dialogService=m,this._notificationService=h,this._editStacks=new Map,this._uriComparisonKeyComputers=[]}getUriComparisonKey(m){for(const h of this._uriComparisonKeyComputers)if(h[0]===m.scheme)return h[1].getComparisonKey(m);return m.toString()}_print(m){console.log("------------------------------------"),console.log(`AFTER ${m}: `);const h=[];for(const S of this._editStacks)h.push(S[1].toString());console.log(h.join(`
|
||
|
`))}pushElement(m,h=g.UndoRedoGroup.None,S=g.UndoRedoSource.None){if(m.type===0){const y=i(m.resource),E=this.getUriComparisonKey(m.resource);this._pushElement(new s(m,y,E,h.id,h.nextOrder(),S.id,S.nextOrder()))}else{const y=new Set,E=[],N=[];for(const T of m.resources){const R=i(T),F=this.getUriComparisonKey(T);y.has(F)||(y.add(F),E.push(R),N.push(F))}E.length===1?this._pushElement(new s(m,E[0],N[0],h.id,h.nextOrder(),S.id,S.nextOrder())):this._pushElement(new a(m,E,N,h.id,h.nextOrder(),S.id,S.nextOrder()))}n&&this._print("pushElement")}_pushElement(m){for(let h=0,S=m.strResources.length;h<S;h++){const y=m.resourceLabels[h],E=m.strResources[h];let N;this._editStacks.has(E)?N=this._editStacks.get(E):(N=new r(y,E),this._editStacks.set(E,N)),N.pushElement(m)}}getLastElement(m){const h=this.getUriComparisonKey(m);if(this._editStacks.has(h)){const S=this._editStacks.get(h);if(S.hasFutureElements())return null;const y=S.getClosestPastElement();return y?y.actual:null}return null}_splitPastWorkspaceElement(m,h){const S=m.actual.split(),y=new Map;for(const E of S){const N=i(E.resource),T=this.getUriComparisonKey(E.resource),R=new s(E,N,T,0,0,0,0);y.set(R.strResource,R)}for(const E of m.strResources){if(h&&h.has(E))continue;this._editStacks.get(E).splitPastWorkspaceElement(m,y)}}_splitFutureWorkspaceElement(m,h){const S=m.actual.split(),y=new Map;for(const E of S){const N=i(E.resource),T=this.getUriComparisonKey(E.resource),R=new s(E,N,T,0,0,0,0);y.set(R.strResource,R)}for(const E of m.strResources){if(h&&h.has(E))continue;this._editStacks.get(E).splitFutureWorkspaceElement(m,y)}}removeElements(m){const h=typeof m=="string"?m:this.getUriComparisonKey(m);this._editStacks.has(h)&&(this._editStacks.get(h).dispose(),this._editStacks.delete(h)),n&&this._print("removeElements")}setElementsValidFlag(m,h,S){const y=this.getUriComparisonKey(m);this._editStacks.has(y)&&this._editStacks.get(y).setElementsValidFlag(h,S),n&&this._print("setElementsValidFlag")}createSnapshot(m){const h=this.getUriComparisonKey(m);return this._editStacks.has(h)?this._editStacks.get(h).createSnapshot(m):new g.ResourceEditStackSnapshot(m,[])}restoreSnapshot(m){const h=this.getUriComparisonKey(m.resource);if(this._editStacks.has(h)){const S=this._editStacks.get(h);S.restoreSnapshot(m),!S.hasPastElements()&&!S.hasFutureElements()&&(S.dispose(),this._editStacks.delete(h))}n&&this._print("restoreSnapshot")}getElements(m){const h=this.getUriComparisonKey(m);return this._editStacks.has(h)?this._editStacks.get(h).getElements():{past:[],future:[]}}_findClosestUndoElementWithSource(m){if(!m)return[null,null];let h=null,S=null;for(const[y,E]of this._editStacks){const N=E.getClosestPastElement();!N||N.sourceId===m&&(!h||N.sourceOrder>h.sourceOrder)&&(h=N,S=y)}return[h,S]}canUndo(m){if(m instanceof g.UndoRedoSource){const[,S]=this._findClosestUndoElementWithSource(m.id);return!!S}const h=this.getUriComparisonKey(m);return this._editStacks.has(h)?this._editStacks.get(h).hasPastElements():!1}_onError(m,h){(0,w.onUnexpectedError)(m);for(const S of h.strResources)this.removeElements(S);this._notificationService.error(m)}_acquireLocks(m){for(const h of m.editStacks)if(h.locked)throw new Error("Cannot acquire edit stack lock");for(const h of m.editStacks)h.locked=!0;return()=>{for(const h of m.editStacks)h.locked=!1}}_safeInvokeWithLocks(m,h,S,y,E){const N=this._acquireLocks(S);let T;try{T=h()}catch(R){return N(),y.dispose(),this._onError(R,m)}return T?T.then(()=>(N(),y.dispose(),E()),R=>(N(),y.dispose(),this._onError(R,m))):(N(),y.dispose(),E())}_invokeWorkspacePrepare(m){return Se(this,void 0,void 0,function*(){if(typeof m.actual.prepareUndoRedo=="undefined")return C.Disposable.None;const h=m.actual.prepareUndoRedo();return typeof h=="undefined"?C.Disposable.None:h})}_invokeResourcePrepare(m,h){if(m.actual.type!==1||typeof m.actual.prepareUndoRedo=="undefined")return h(C.Disposable.None);const S=m.actual.prepareUndoRedo();return S?(0,C.isDisposable)(S)?h(S):S.then(y=>h(y)):h(C.Disposable.None)}_getAffectedEditStacks(m){const h=[];for(const S of m.strResources)h.push(this._editS
|
||
|
`),0)}get currentCompletion(){const D=this.currentCachedCompletion;if(!!D)return D.toLiveInlineCompletion()}get isValid(){return this.editor.getPosition().lineNumber===this.triggerPosition.lineNumber}scheduleAutomaticUpdate(){this.updateOperation.clear(),this.updateSoon.schedule(this.debounce.get(this.editor.getModel()))}update(D){return Se(this,void 0,void 0,function*(){if(!this.shouldUpdate())return;const M=this.editor.getPosition(),P=new Date,B=(0,w.createCancelablePromise)(V=>Se(this,void 0,void 0,function*(){let A;try{A=yield T(this.registry,M,this.editor.getModel(),{triggerKind:D,selectedSuggestionInfo:void 0},V,this.languageConfigurationService);const X=new Date;this.debounce.update(this.editor.getModel(),X.getTime()-P.getTime())}catch(X){(0,k.onUnexpectedError)(X);return}V.isCancellationRequested||(this.cache.setValue(this.editor,A,D),this.updateFilteredInlineCompletions(),this.onDidChangeEmitter.fire())})),W=new y(B,D);this.updateOperation.value=W,yield B,this.updateOperation.value===W&&this.updateOperation.clear()})}takeOwnership(D){this._register(D)}commitCurrentCompletion(){if(!this.ghostText)return;const M=this.currentCompletion;M&&this.commit(M)}commit(D){var M;const P=this.cache.clearAndLeak();D.snippetInfo?(this.editor.executeEdits("inlineSuggestion.accept",[v.EditOperation.replaceMove(D.range,""),...D.additionalTextEdits]),this.editor.setPosition(D.snippetInfo.range.getStartPosition()),(M=c.SnippetController2.get(this.editor))===null||M===void 0||M.insert(D.snippetInfo.snippet)):this.editor.executeEdits("inlineSuggestion.accept",[v.EditOperation.replaceMove(D.range,D.insertText),...D.additionalTextEdits]),D.command?this.commandService.executeCommand(D.command.id,...D.command.arguments||[]).finally(()=>{P==null||P.dispose()}).then(void 0,k.onUnexpectedExternalError):P==null||P.dispose(),this.onDidChangeEmitter.fire()}get commands(){var D;return[...new Set(((D=this.cache.value)===null||D===void 0?void 0:D.completions.map(P=>P.inlineCompletion.sourceInlineCompletions))||[])].flatMap(P=>P.commands||[])}}e.InlineCompletionsSession=S;class y{constructor(D,M){this.promise=D,this.triggerKind=M}dispose(){this.promise.cancel()}}e.UpdateOperation=y;class E extends L.Disposable{constructor(D,M,P,B){super();this.editor=M,this.onChange=P,this.triggerKind=B,this.isDisposing=!1;const W=M.changeDecorations(V=>V.deltaDecorations([],D.items.map(A=>({range:A.range,options:{description:"inline-completion-tracking-range"}}))));this._register((0,L.toDisposable)(()=>{this.isDisposing=!0,M.removeDecorations(W)})),this.completions=D.items.map((V,A)=>new N(V,W[A])),this._register(M.onDidChangeModelContent(()=>{this.updateRanges()})),this._register(D)}updateRanges(){if(this.isDisposing)return;let D=!1;const M=this.editor.getModel();for(const P of this.completions){const B=M.getDecorationRange(P.decorationId);if(!B){(0,k.onUnexpectedError)(new Error("Decoration has no range"));continue}P.synchronizedRange.equalsRange(B)||(D=!0,P.synchronizedRange=B)}D&&this.onChange()}}e.SynchronizedInlineCompletionsCache=E;class N{constructor(D,M){this.inlineCompletion=D,this.decorationId=M,this.semanticId=JSON.stringify({text:this.inlineCompletion.insertText,abbreviation:this.inlineCompletion.filterText,startLine:this.inlineCompletion.range.startLineNumber,startColumn:this.inlineCompletion.range.startColumn,command:this.inlineCompletion.command}),this.synchronizedRange=D.range}toLiveInlineCompletion(){return{insertText:this.inlineCompletion.insertText,range:this.synchronizedRange,command:this.inlineCompletion.command,sourceProvider:this.inlineCompletion.sourceProvider,sourceInlineCompletions:this.inlineCompletion.sourceInlineCompletions,sourceInlineCompletion:this.inlineCompletion.sourceInlineCompletion,snippetInfo:this.inlineCompletion.snippetInfo,filterText:this.inlineCompletion.filterText,additionalTextEdits:this.inlineCompletion.additionalTextEdits}}}function T(O,D,M,P,B=C.CancellationToken.None,W){return Se(this,void 0,void 0,function*(){const V=R(D,M),A=O.all(M),X=yield Promise.all(A.map(H=>Se(this,void 0,void 0,function*(){const q=yield Pr
|
||
|
|
||
|
`+Pe.detail),Promise.resolve(window.confirm(We))}show(Pe,We,Ue,je){return Promise.resolve({choice:0})}}class ye{info(Pe){return this.notify({severity:u.default.Info,message:Pe})}warn(Pe){return this.notify({severity:u.default.Warning,message:Pe})}error(Pe){return this.notify({severity:u.default.Error,message:Pe})}notify(Pe){switch(Pe.severity){case u.default.Error:console.error(Pe.message);break;case u.default.Warning:console.warn(Pe.message);break;default:console.log(Pe.message);break}return ye.NO_OP}status(Pe,We){return b.Disposable.None}}e.StandaloneNotificationService=ye,ye.NO_OP=new F.NoOpNotification;let Re=class{constructor(Pe){this._onWillExecuteCommand=new I.Emitter,this._onDidExecuteCommand=new I.Emitter,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this._instantiationService=Pe}executeCommand(Pe,...We){const Ue=o.CommandsRegistry.getCommand(Pe);if(!Ue)return Promise.reject(new Error(`command '${Pe}' not found`));try{this._onWillExecuteCommand.fire({commandId:Pe,args:We});const je=this._instantiationService.invokeFunction.apply(this._instantiationService,[Ue.handler,...We]);return this._onDidExecuteCommand.fire({commandId:Pe,args:We}),Promise.resolve(je)}catch(je){return Promise.reject(je)}}};Re=ke([fe(0,m.IInstantiationService)],Re),e.StandaloneCommandService=Re;let Te=class extends h.AbstractKeybindingService{constructor(Pe,We,Ue,je,it,Ge){super(Pe,We,Ue,je,it);this._cachedResolver=null,this._dynamicKeybindings=[],this._domNodeListeners=[];const Xe=lt=>{const pt=new b.DisposableStore;pt.add(C.addDisposableListener(lt,C.EventType.KEY_DOWN,St=>{const ft=new k.StandardKeyboardEvent(St);this._dispatch(ft,ft.target)&&(ft.preventDefault(),ft.stopPropagation())})),pt.add(C.addDisposableListener(lt,C.EventType.KEY_UP,St=>{const ft=new k.StandardKeyboardEvent(St);this._singleModifierDispatch(ft,ft.target)&&ft.preventDefault()})),this._domNodeListeners.push(new Be(lt,pt))},st=lt=>{for(let pt=0;pt<this._domNodeListeners.length;pt++){const St=this._domNodeListeners[pt];St.domNode===lt&&(this._domNodeListeners.splice(pt,1),St.dispose())}},gt=lt=>{lt.getOption(56)||Xe(lt.getContainerDomNode())},ct=lt=>{lt.getOption(56)||st(lt.getContainerDomNode())};this._register(Ge.onCodeEditorAdd(gt)),this._register(Ge.onCodeEditorRemove(ct)),Ge.listCodeEditors().forEach(gt);const ht=lt=>{Xe(lt.getContainerDomNode())},dt=lt=>{st(lt.getContainerDomNode())};this._register(Ge.onDiffEditorAdd(ht)),this._register(Ge.onDiffEditorRemove(dt)),Ge.listDiffEditors().forEach(ht)}addDynamicKeybinding(Pe,We,Ue,je){const it=(0,L.createKeybinding)(We,v.OS),Ge=new b.DisposableStore;return it&&(this._dynamicKeybindings.push({keybinding:it.parts,command:Pe,when:je,weight1:1e3,weight2:0,extensionId:null,isBuiltinExtension:!1}),Ge.add((0,b.toDisposable)(()=>{for(let Xe=0;Xe<this._dynamicKeybindings.length;Xe++)if(this._dynamicKeybindings[Xe].command===Pe){this._dynamicKeybindings.splice(Xe,1),this.updateResolver();return}}))),Ge.add(o.CommandsRegistry.registerCommand(Pe,Ue)),this.updateResolver(),Ge}updateResolver(){this._cachedResolver=null,this._onDidUpdateKeybindings.fire()}_getResolver(){if(!this._cachedResolver){const Pe=this._toNormalizedKeybindingItems(E.KeybindingsRegistry.getDefaultKeybindings(),!0),We=this._toNormalizedKeybindingItems(this._dynamicKeybindings,!1);this._cachedResolver=new y.KeybindingResolver(Pe,We,Ue=>this._log(Ue))}return this._cachedResolver}_documentHasFocus(){return document.hasFocus()}_toNormalizedKeybindingItems(Pe,We){const Ue=[];let je=0;for(const it of Pe){const Ge=it.when||void 0,Xe=it.keybinding;if(!Xe)Ue[je++]=new N.ResolvedKeybindingItem(void 0,it.command,it.commandArgs,Ge,We,null,!1);else{const st=T.USLayoutResolvedKeybinding.resolveUserBinding(Xe,v.OS);for(const gt of st)Ue[je++]=new N.ResolvedKeybindingItem(gt,it.command,it.commandArgs,Ge,We,null,!1)}}return Ue}resolveKeyboardEvent(Pe){const We=new L.SimpleKeybinding(Pe.ctrlKey,Pe.shiftKey,Pe.altKey,Pe.metaKey,Pe.keyCode).toChord();return new T.USLayoutResolvedKeybinding(We,v.OS)}};Te=ke([fe(0,p
|
||
|
`:`\r
|
||
|
`}};nt=ke([fe(0,c.IConfigurationService)],nt);class ot{publicLog(Pe,We){return Promise.resolve(void 0)}publicLog2(Pe,We){return this.publicLog(Pe,We)}}class ze{constructor(){const Pe=g.URI.from({scheme:ze.SCHEME,authority:"model",path:"/"});this.workspace={id:"4064f6ec-cb38-4ad0-af64-ee6467e63c82",folders:[new M.WorkspaceFolder({uri:Pe,name:"",index:0})]}}getWorkspace(){return this.workspace}getWorkspaceFolder(Pe){return Pe&&Pe.scheme===ze.SCHEME?this.workspace.folders[0]:null}}ze.SCHEME="inmemory";function Ne(Ke,Pe,We){if(!Pe||!(Ke instanceof qe))return;const Ue=[];Object.keys(Pe).forEach(je=>{(0,i.isEditorConfigurationKey)(je)&&Ue.push([`editor.${je}`,Pe[je]]),We&&(0,i.isDiffEditorConfigurationKey)(je)&&Ue.push([`diffEditor.${je}`,Pe[je]])}),Ue.length>0&&Ke.updateValues(Ue)}e.updateConfigurationService=Ne;let Fe=class{constructor(Pe){this._modelService=Pe}hasPreviewHandler(){return!1}apply(Pe,We){return Se(this,void 0,void 0,function*(){const Ue=new Map;for(const Ge of Pe){if(!(Ge instanceof n.ResourceTextEdit))throw new Error("bad edit - only text edits are supported");const Xe=this._modelService.getModel(Ge.resource);if(!Xe)throw new Error("bad edit - model not found");if(typeof Ge.versionId=="number"&&Xe.getVersionId()!==Ge.versionId)throw new Error("bad state - model changed in the meantime");let st=Ue.get(Xe);st||(st=[],Ue.set(Xe,st)),st.push(t.EditOperation.replaceMove(d.Range.lift(Ge.textEdit.range),Ge.textEdit.text))}let je=0,it=0;for(const[Ge,Xe]of Ue)Ge.pushStackElement(),Ge.pushEditOperations([],Xe,()=>[]),Ge.pushStackElement(),it+=1,je+=Xe.length;return{ariaSummary:w.format(B.StandaloneServicesNLS.bulkEditServiceSummary,je,it)}})}};Fe=ke([fe(0,l.IModelService)],Fe);class He{getUriLabel(Pe,We){return Pe.scheme==="file"?Pe.fsPath:Pe.path}getUriBasenameLabel(Pe){return(0,W.basename)(Pe)}}let Ve=class extends H.ContextViewService{constructor(Pe,We){super(Pe);this._codeEditorService=We}showContextView(Pe,We,Ue){if(!We){const je=this._codeEditorService.getFocusedCodeEditor()||this._codeEditorService.getActiveCodeEditor();je&&(We=je.getContainerDomNode())}return super.showContextView(Pe,We,Ue)}};Ve=ke([fe(0,P.ILayoutService),fe(1,V.ICodeEditorService)],Ve);class et{constructor(){this._neverEmitter=new I.Emitter,this.onDidChangeTrust=this._neverEmitter.event}isWorkspaceTrusted(){return!0}}class Qe extends q.LanguageService{constructor(){super()}}class Ye extends A.LogService{constructor(){super(new A.ConsoleLogger)}}let tt=class extends Z.ContextMenuService{constructor(Pe,We,Ue,je,it){super(Pe,We,Ue,je,it);this.configure({blockMouse:!1})}};tt=ke([fe(0,D.ITelemetryService),fe(1,F.INotificationService),fe(2,ee.IContextViewService),fe(3,S.IKeybindingService),fe(4,ie.IThemeService)],tt),(0,Y.registerSingleton)(c.IConfigurationService,qe),(0,Y.registerSingleton)(r.ITextResourceConfigurationService,Ze),(0,Y.registerSingleton)(r.ITextResourcePropertiesService,nt),(0,Y.registerSingleton)(M.IWorkspaceContextService,ze),(0,Y.registerSingleton)(R.ILabelService,He),(0,Y.registerSingleton)(D.ITelemetryService,ot),(0,Y.registerSingleton)(_.IDialogService,ve),(0,Y.registerSingleton)(F.INotificationService,ye),(0,Y.registerSingleton)(pe.IMarkerService,ue.MarkerService),(0,Y.registerSingleton)(oe.ILanguageService,Qe),(0,Y.registerSingleton)(G.IStandaloneThemeService,J.StandaloneThemeService),(0,Y.registerSingleton)(A.ILogService,Ye),(0,Y.registerSingleton)(l.IModelService,ne.ModelService),(0,Y.registerSingleton)(K.IMarkerDecorationsService,Q.MarkerDecorationsService),(0,Y.registerSingleton)(p.IContextKeyService,Ce.ContextKeyService),(0,Y.registerSingleton)(O.IProgressService,be),(0,Y.registerSingleton)(O.IEditorProgressService,Oe),(0,Y.registerSingleton)(_e.IStorageService,_e.InMemoryStorageService),(0,Y.registerSingleton)(de.IEditorWorkerService,x.EditorWorkerService),(0,Y.registerSingleton)(n.IBulkEditService,Fe),(0,Y.registerSingleton)(X.IWorkspaceTrustManagementService,et),(0,Y.registerSingleton)(a.ITextModelService,Me),(0,Y.registerSingleton)(j.IAccessibilityService,U.AccessibilityService),(0,Y.registerSingleton)(Ae.IListServ
|
||
|
`);let q=A;return H!==-1&&(q=A.substring(0,H)),B(W,A,V.createByFilepathOrFirstLine(ee||null,q),ee)}return B(W,A,V.createById(X),ee)}e.createTextModel=P;function B(W,V,A,X){return W.createModel(V,A,X)}}),define(re[782],ae([1,0,8,277,29,269,36,207,154,46,28,32,136,37,50,650,159,630,781,220,115,26,84,398]),function($,e,w,C,k,I,L,b,v,u,g,n,i,t,s,d,l,a,r,o,c,f,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createMonacoEditorAPI=e.registerCommand=e.remeasureFonts=e.setTheme=e.defineTheme=e.tokenize=e.colorizeModelLine=e.colorize=e.colorizeElement=e.createWebWorker=e.onDidChangeModelLanguage=e.onWillDisposeModel=e.onDidCreateModel=e.getModels=e.getModel=e.onDidChangeMarkers=e.getModelMarkers=e.removeAllMarkers=e.setModelMarkers=e.setModelLanguage=e.createModel=e.createDiffNavigator=e.createDiffEditor=e.getDiffEditors=e.getEditors=e.onDidCreateDiffEditor=e.onDidCreateEditor=e.create=void 0;function _(Q,K,ne){return o.StandaloneServices.initialize(ne||{}).createInstance(r.StandaloneEditor,Q,K)}e.create=_;function m(Q){return o.StandaloneServices.get(k.ICodeEditorService).onCodeEditorAdd(ne=>{Q(ne)})}e.onDidCreateEditor=m;function h(Q){return o.StandaloneServices.get(k.ICodeEditorService).onDiffEditorAdd(ne=>{Q(ne)})}e.onDidCreateDiffEditor=h;function S(){return o.StandaloneServices.get(k.ICodeEditorService).listCodeEditors()}e.getEditors=S;function y(){return o.StandaloneServices.get(k.ICodeEditorService).listDiffEditors()}e.getDiffEditors=y;function E(Q,K,ne){return o.StandaloneServices.initialize(ne||{}).createInstance(r.StandaloneDiffEditor,Q,K)}e.createDiffEditor=E;function N(Q,K){return new I.DiffNavigator(Q,K)}e.createDiffNavigator=N;function T(Q,K,ne){const z=o.StandaloneServices.get(t.ILanguageService),J=z.getLanguageIdByMimeType(K)||K;return(0,r.createTextModel)(o.StandaloneServices.get(s.IModelService),z,Q,J,ne)}e.createModel=T;function R(Q,K){const ne=o.StandaloneServices.get(t.ILanguageService);o.StandaloneServices.get(s.IModelService).setMode(Q,ne.createById(K))}e.setModelLanguage=R;function F(Q,K,ne){Q&&o.StandaloneServices.get(p.IMarkerService).changeOne(K,Q.uri,ne)}e.setModelMarkers=F;function O(Q){o.StandaloneServices.get(p.IMarkerService).changeAll(Q,[])}e.removeAllMarkers=O;function D(Q){return o.StandaloneServices.get(p.IMarkerService).read(Q)}e.getModelMarkers=D;function M(Q){return o.StandaloneServices.get(p.IMarkerService).onMarkerChanged(Q)}e.onDidChangeMarkers=M;function P(Q){return o.StandaloneServices.get(s.IModelService).getModel(Q)}e.getModel=P;function B(){return o.StandaloneServices.get(s.IModelService).getModels()}e.getModels=B;function W(Q){return o.StandaloneServices.get(s.IModelService).onModelAdded(Q)}e.onDidCreateModel=W;function V(Q){return o.StandaloneServices.get(s.IModelService).onModelRemoved(Q)}e.onWillDisposeModel=V;function A(Q){return o.StandaloneServices.get(s.IModelService).onModelLanguageChanged(ne=>{Q({model:ne.model,oldLanguage:ne.oldLanguageId})})}e.onDidChangeModelLanguage=A;function X(Q){return(0,d.createWebWorker)(o.StandaloneServices.get(s.IModelService),o.StandaloneServices.get(n.ILanguageConfigurationService),Q)}e.createWebWorker=X;function ee(Q,K){const ne=o.StandaloneServices.get(t.ILanguageService),z=o.StandaloneServices.get(c.IStandaloneThemeService);return z.registerEditorContainer(Q),a.Colorizer.colorizeElement(z,ne,Q,K)}e.colorizeElement=ee;function H(Q,K,ne){const z=o.StandaloneServices.get(t.ILanguageService);return o.StandaloneServices.get(c.IStandaloneThemeService).registerEditorContainer(document.body),a.Colorizer.colorize(z,Q,K,ne)}e.colorize=H;function q(Q,K,ne=4){return o.StandaloneServices.get(c.IStandaloneThemeService).registerEditorContainer(document.body),a.Colorizer.colorizeModelLine(Q,K,ne)}e.colorizeModelLine=q;function Z(Q){const K=g.TokenizationRegistry.get(Q);return K||{getInitialState:()=>i.NullState,tokenize:(ne,z,J)=>(0,i.nullTokenize)(Q,J)}}function ie(Q,K){g.TokenizationRegistry.getOrCreate(K);const ne=Z(K),z=(0,w.splitLines)(Q),J=[];let G=ne.getInitialState();for(let U=0,j=z.length;U<j;U++){const ce=z[U],se=ne.tokenize(ce
|
||
|
|
||
|
|
||
|
"use strict";/*!-----------------------------------------------------------------------------
|
||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||
|
* Version: 0.34.0(9d278685b078158491964f8fd7ac9628fffa0f30)
|
||
|
* Released under the MIT license
|
||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||
|
*-----------------------------------------------------------------------------*/
|
||
|
define("vs/basic-languages/monaco.contribution", ["require","require","vs/editor/editor.api"],(require)=>{
|
||
|
var moduleExports=(()=>{var y=Object.create;var g=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var q=Object.getOwnPropertyNames;var A=Object.getPrototypeOf,M=Object.prototype.hasOwnProperty;var a=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(r,s)=>(typeof require!="undefined"?require:r)[s]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var D=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var m=(e,r,s,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of q(r))!M.call(e,o)&&o!==s&&g(e,o,{get:()=>r[o],enumerable:!(n=x(r,o))||n.enumerable});return e},p=(e,r,s)=>(m(e,r,"default"),s&&m(s,r,"default")),c=(e,r,s)=>(s=e!=null?y(A(e)):{},m(r||!e||!e.__esModule?g(s,"default",{value:e,enumerable:!0}):s,e));var f=D((w,d)=>{var b=c(a("vs/editor/editor.api"));d.exports=b});var t={};p(t,c(f()));var v={},u={},l=class{static getOrCreate(r){return u[r]||(u[r]=new l(r)),u[r]}_languageId;_loadingTriggered;_lazyLoadPromise;_lazyLoadPromiseResolve;_lazyLoadPromiseReject;constructor(r){this._languageId=r,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((s,n)=>{this._lazyLoadPromiseResolve=s,this._lazyLoadPromiseReject=n})}load(){return this._loadingTriggered||(this._loadingTriggered=!0,v[this._languageId].loader().then(r=>this._lazyLoadPromiseResolve(r),r=>this._lazyLoadPromiseReject(r))),this._lazyLoadPromise}};function i(e){let r=e.id;v[r]=e,t.languages.register(e);let s=l.getOrCreate(r);t.languages.registerTokensProviderFactory(r,{create:async()=>(await s.load()).language}),t.languages.onLanguage(r,async()=>{let n=await s.load();t.languages.setLanguageConfiguration(r,n.conf)})}i({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/abap/abap"],e,r)})});i({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/apex/apex"],e,r)})});i({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/azcli/azcli"],e,r)})});i({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/bat/bat"],e,r)})});i({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/bicep/bicep"],e,r)})});i({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/cameligo/cameligo"],e,r)})});i({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/clojure/clojure"],e,r)})});i({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/coffee/coffee"],e,r)})});i({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/cpp/cpp"],e,r)})});i({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/cpp/cpp"],e,r)})});i({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/csharp/csharp"],e,r)})});i({id:"csp",extensions:[],aliases:["CSP","csp"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/csp/csp"],e,r)})});i({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/css/css"],e,r)})});i({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/cypher/cypher"],e,r)})});i({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/dart/dart"],e,r)})});i({id:"dockerfi
|
||
|
return moduleExports;
|
||
|
});
|
||
|
|
||
|
"use strict";/*!-----------------------------------------------------------------------------
|
||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||
|
* Version: 0.34.0(9d278685b078158491964f8fd7ac9628fffa0f30)
|
||
|
* Released under the MIT license
|
||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||
|
*-----------------------------------------------------------------------------*/
|
||
|
define("vs/language/css/monaco.contribution", ["require","require","vs/editor/editor.api"],(require)=>{
|
||
|
var moduleExports=(()=>{var C=Object.create;var g=Object.defineProperty;var S=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var x=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty;var l=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(n,r)=>(typeof require!="undefined"?require:n)[r]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var I=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports),M=(e,n)=>{for(var r in n)g(e,r,{get:n[r],enumerable:!0})},s=(e,n,r,a)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of b(n))!h.call(e,t)&&t!==r&&g(e,t,{get:()=>n[t],enumerable:!(a=S(n,t))||a.enumerable});return e},y=(e,n,r)=>(s(e,n,"default"),r&&s(r,n,"default")),w=(e,n,r)=>(r=e!=null?C(x(e)):{},s(n||!e||!e.__esModule?g(r,"default",{value:e,enumerable:!0}):r,e)),P=e=>s(g({},"__esModule",{value:!0}),e);var v=I((k,D)=>{var O=w(l("vs/editor/editor.api"));D.exports=O});var R={};M(R,{cssDefaults:()=>p,lessDefaults:()=>f,scssDefaults:()=>c});var o={};y(o,w(v()));var i=class{_onDidChange=new o.Emitter;_options;_modeConfiguration;_languageId;constructor(n,r,a){this._languageId=n,this.setOptions(r),this.setModeConfiguration(a)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(n){this._options=n||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(n){this.setOptions(n)}setModeConfiguration(n){this._modeConfiguration=n||Object.create(null),this._onDidChange.fire(this)}},d={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},u={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},p=new i("css",d,u),c=new i("scss",d,u),f=new i("less",d,u);o.languages.css={cssDefaults:p,lessDefaults:f,scssDefaults:c};function m(){return new Promise((e,n)=>{l(["vs/language/css/cssMode"],e,n)})}o.languages.onLanguage("less",()=>{m().then(e=>e.setupMode(f))});o.languages.onLanguage("scss",()=>{m().then(e=>e.setupMode(c))});o.languages.onLanguage("css",()=>{m().then(e=>e.setupMode(p))});return P(R);})();
|
||
|
return moduleExports;
|
||
|
});
|
||
|
|
||
|
"use strict";/*!-----------------------------------------------------------------------------
|
||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||
|
* Version: 0.34.0(9d278685b078158491964f8fd7ac9628fffa0f30)
|
||
|
* Released under the MIT license
|
||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||
|
*-----------------------------------------------------------------------------*/
|
||
|
define("vs/language/html/monaco.contribution", ["require","require","vs/editor/editor.api"],(require)=>{
|
||
|
var moduleExports=(()=>{var w=Object.create;var l=Object.defineProperty;var R=Object.getOwnPropertyDescriptor;var H=Object.getOwnPropertyNames;var O=Object.getPrototypeOf,_=Object.prototype.hasOwnProperty;var f=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(n,t)=>(typeof require!="undefined"?require:n)[t]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var k=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports),T=(e,n)=>{for(var t in n)l(e,t,{get:n[t],enumerable:!0})},d=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of H(n))!_.call(e,o)&&o!==t&&l(e,o,{get:()=>n[o],enumerable:!(r=R(n,o))||r.enumerable});return e},b=(e,n,t)=>(d(e,n,"default"),t&&d(t,n,"default")),v=(e,n,t)=>(t=e!=null?w(O(e)):{},d(n||!e||!e.__esModule?l(t,"default",{value:e,enumerable:!0}):t,e)),A=e=>d(l({},"__esModule",{value:!0}),e);var C=k((z,h)=>{var E=v(f("vs/editor/editor.api"));h.exports=E});var V={};T(V,{handlebarDefaults:()=>M,handlebarLanguageService:()=>m,htmlDefaults:()=>x,htmlLanguageService:()=>c,razorDefaults:()=>I,razorLanguageService:()=>y,registerHTMLLanguageService:()=>s});var a={};b(a,v(C()));var p=class{_onDidChange=new a.Emitter;_options;_modeConfiguration;_languageId;constructor(n,t,r){this._languageId=n,this.setOptions(t),this.setModeConfiguration(r)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(n){this._options=n||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(n){this._modeConfiguration=n||Object.create(null),this._onDidChange.fire(this)}},F={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},u={format:F,suggest:{},data:{useDefaultDataProvider:!0}};function g(e){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:e===i,documentFormattingEdits:e===i,documentRangeFormattingEdits:e===i}}var i="html",D="handlebars",L="razor",c=s(i,u,g(i)),x=c.defaults,m=s(D,u,g(D)),M=m.defaults,y=s(L,u,g(L)),I=y.defaults;a.languages.html={htmlDefaults:x,razorDefaults:I,handlebarDefaults:M,htmlLanguageService:c,handlebarLanguageService:m,razorLanguageService:y,registerHTMLLanguageService:s};function P(){return new Promise((e,n)=>{f(["vs/language/html/htmlMode"],e,n)})}function s(e,n=u,t=g(e)){let r=new p(e,n,t),o,S=a.languages.onLanguage(e,async()=>{o=(await P()).setupMode(r)});return{defaults:r,dispose(){S.dispose(),o?.dispose(),o=void 0}}}return A(V);})();
|
||
|
return moduleExports;
|
||
|
});
|
||
|
|
||
|
"use strict";/*!-----------------------------------------------------------------------------
|
||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||
|
* Version: 0.34.0(9d278685b078158491964f8fd7ac9628fffa0f30)
|
||
|
* Released under the MIT license
|
||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||
|
*-----------------------------------------------------------------------------*/
|
||
|
define("vs/language/json/monaco.contribution", ["require","require","vs/editor/editor.api"],(require)=>{
|
||
|
var moduleExports=(()=>{var p=Object.create;var r=Object.defineProperty;var y=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var v=Object.getPrototypeOf,C=Object.prototype.hasOwnProperty;var g=(o=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(o,{get:(e,n)=>(typeof require!="undefined"?require:e)[n]}):o)(function(o){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+o+'" is not supported')});var D=(o,e)=>()=>(e||o((e={exports:{}}).exports,e),e.exports),b=(o,e)=>{for(var n in e)r(o,n,{get:e[n],enumerable:!0})},s=(o,e,n,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of h(e))!C.call(o,i)&&i!==n&&r(o,i,{get:()=>e[i],enumerable:!(a=y(e,i))||a.enumerable});return o},u=(o,e,n)=>(s(o,e,"default"),n&&s(n,e,"default")),c=(o,e,n)=>(n=o!=null?p(v(o)):{},s(e||!o||!o.__esModule?r(n,"default",{value:o,enumerable:!0}):n,o)),O=o=>s(r({},"__esModule",{value:!0}),o);var f=D((w,m)=>{var M=c(g("vs/editor/editor.api"));m.exports=M});var R={};b(R,{jsonDefaults:()=>d});var t={};u(t,c(f()));var l=class{_onDidChange=new t.Emitter;_diagnosticsOptions;_modeConfiguration;_languageId;constructor(e,n,a){this._languageId=e,this.setDiagnosticsOptions(n),this.setModeConfiguration(a)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},j={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},S={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},d=new l("json",j,S);t.languages.json={jsonDefaults:d};function _(){return new Promise((o,e)=>{g(["vs/language/json/jsonMode"],o,e)})}t.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});t.languages.onLanguage("json",()=>{_().then(o=>o.setupMode(d))});return O(R);})();
|
||
|
return moduleExports;
|
||
|
});
|
||
|
|
||
|
"use strict";/*!-----------------------------------------------------------------------------
|
||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||
|
* Version: 0.34.0(9d278685b078158491964f8fd7ac9628fffa0f30)
|
||
|
* Released under the MIT license
|
||
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||
|
*-----------------------------------------------------------------------------*/
|
||
|
define("vs/language/typescript/monaco.contribution", ["require","require","vs/editor/editor.api"],(require)=>{
|
||
|
var moduleExports=(()=>{var k=Object.create;var g=Object.defineProperty;var N=Object.getOwnPropertyDescriptor;var H=Object.getOwnPropertyNames;var R=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty;var d=(n=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(n,{get:(e,t)=>(typeof require!="undefined"?require:e)[t]}):n)(function(n){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+n+'" is not supported')});var M=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports),F=(n,e)=>{for(var t in e)g(n,t,{get:e[t],enumerable:!0})},m=(n,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of H(e))!w.call(n,s)&&s!==t&&g(n,s,{get:()=>e[s],enumerable:!(o=N(e,s))||o.enumerable});return n},D=(n,e,t)=>(m(n,e,"default"),t&&m(t,e,"default")),L=(n,e,t)=>(t=n!=null?k(R(n)):{},m(e||!n||!n.__esModule?g(t,"default",{value:n,enumerable:!0}):t,n)),W=n=>m(g({},"__esModule",{value:!0}),n);var I=M((B,C)=>{var A=L(d("vs/editor/editor.api"));C.exports=A});var V={};F(V,{JsxEmit:()=>y,ModuleKind:()=>u,ModuleResolutionKind:()=>O,NewLineKind:()=>f,ScriptTarget:()=>h,getJavaScriptWorker:()=>S,getTypeScriptWorker:()=>P,javascriptDefaults:()=>v,typescriptDefaults:()=>x,typescriptVersion:()=>_});var E="4.5.5";var l={};D(l,L(I()));var u=(r=>(r[r.None=0]="None",r[r.CommonJS=1]="CommonJS",r[r.AMD=2]="AMD",r[r.UMD=3]="UMD",r[r.System=4]="System",r[r.ES2015=5]="ES2015",r[r.ESNext=99]="ESNext",r))(u||{}),y=(a=>(a[a.None=0]="None",a[a.Preserve=1]="Preserve",a[a.React=2]="React",a[a.ReactNative=3]="ReactNative",a[a.ReactJSX=4]="ReactJSX",a[a.ReactJSXDev=5]="ReactJSXDev",a))(y||{}),f=(t=>(t[t.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",t[t.LineFeed=1]="LineFeed",t))(f||{}),h=(i=>(i[i.ES3=0]="ES3",i[i.ES5=1]="ES5",i[i.ES2015=2]="ES2015",i[i.ES2016=3]="ES2016",i[i.ES2017=4]="ES2017",i[i.ES2018=5]="ES2018",i[i.ES2019=6]="ES2019",i[i.ES2020=7]="ES2020",i[i.ESNext=99]="ESNext",i[i.JSON=100]="JSON",i[i.Latest=99]="Latest",i))(h||{}),O=(t=>(t[t.Classic=1]="Classic",t[t.NodeJs=2]="NodeJs",t))(O||{}),c=class{_onDidChange=new l.Emitter;_onDidExtraLibsChange=new l.Emitter;_extraLibs;_removedExtraLibs;_eagerModelSync;_compilerOptions;_diagnosticsOptions;_workerOptions;_onDidExtraLibsChangeTimeout;_inlayHintsOptions;constructor(e,t,o,s){this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(e),this.setDiagnosticsOptions(t),this.setWorkerOptions(o),this.setInlayHintsOptions(s),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(e,t){let o;if(typeof t>"u"?o=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:o=t,this._extraLibs[o]&&this._extraLibs[o].content===e)return{dispose:()=>{}};let s=1;return this._removedExtraLibs[o]&&(s=this._removedExtraLibs[o]+1),this._extraLibs[o]&&(s=this._extraLibs[o].version+1),this._extraLibs[o]={content:e,version:s},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let p=this._extraLibs[o];!p||p.version===s&&(delete this._extraLibs[o],this._removedExtraLibs[o]=s,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(e){for(let t in this._extraLibs)this._removedExtraLibs[t]=this._extraLibs[t].version;if(this._extraLibs=Object.create(null),e&&e.length>0)for(let t of e){let o=t.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,s=t.content,p=1;this._removedExtraLibs[o]&&(p=this._removedExtraLibs[o]+1),this._extraLibs[o]={content:s,version:p}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(e){this._compilerOptions=e||Object.create(null),t
|
||
|
return moduleExports;
|
||
|
});
|
||
|
|
||
|
define("vs/editor/editor.main", ["vs/editor/edcore.main","vs/basic-languages/monaco.contribution","vs/language/css/monaco.contribution","vs/language/html/monaco.contribution","vs/language/json/monaco.contribution","vs/language/typescript/monaco.contribution"], function(api) { return api; });
|
||
|
//# sourceMappingURL=../../../min-maps/vs/editor/editor.main.js.map
|