@galaxyproject/galaxy-client 26.0.0 → 26.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.vite/manifest.json +166 -166
- package/dist/{BreadcrumbNavigation-BQZ4bObE.js → BreadcrumbNavigation-JQMt9LMO.js} +1 -1
- package/dist/{CellCode-BbuejK49.js → CellCode-Ke2vRCtQ.js} +1 -1
- package/dist/{CollectionCreationConfig-C9ek2z7i.js → CollectionCreationConfig-CrQX1ZeX.js} +2 -2
- package/dist/{CustomToolEditor-D0nGTy_G.js → CustomToolEditor-CgCPf42B.js} +3 -3
- package/dist/{DataLibraryUpload-B2caocb3.js → DataLibraryUpload-CyAGnE3N.js} +1 -1
- package/dist/DataSourceToolsUpload-xNjc45-A.js +1 -0
- package/dist/{ExploreZipUpload-B0rhDhuV.js → ExploreZipUpload-CE0lOAX4.js} +1 -1
- package/dist/{ImportHistoryUpload-C77RfmlZ.js → ImportHistoryUpload-D0yZrljo.js} +1 -1
- package/dist/{ImportWorkflowUpload-CxHPnPvH.js → ImportWorkflowUpload-DaIvRToH.js} +1 -1
- package/dist/{LocalFileUpload-Cu-CA2d2.js → LocalFileUpload-C5nDOahS.js} +1 -1
- package/dist/{PasteContentUpload-DW4OcSEL.js → PasteContentUpload-hiKKQFhq.js} +1 -1
- package/dist/{PasteLinksUpload-BIpUYG3M.js → PasteLinksUpload-ChOVY5zf.js} +2 -2
- package/dist/{RemoteFilesUpload-Dl7AI4D2.js → RemoteFilesUpload-mY_qzEcB.js} +2 -2
- package/dist/{RuleBasedImportUpload-CFVMQTwS.js → RuleBasedImportUpload-BsZFYIKX.js} +1 -1
- package/dist/{UploadTableOptionsHeader-BkrP7bts.js → UploadTableOptionsHeader-D8NIPUWU.js} +3 -3
- package/dist/{VegaWrapper-D3JszxJi.js → VegaWrapper-CRkzamPq.js} +1 -1
- package/dist/analysis.bundled.js +623 -623
- package/dist/base.css +1 -1
- package/dist/{cssMode-DG3PN4ZZ.js → cssMode-Ba12SoF2.js} +1 -1
- package/dist/{freemarker2-Bbu5Unr-.js → freemarker2-B8I4rQxP.js} +1 -1
- package/dist/{galaxy-app-DD-3-vKU.js → galaxy-app-C3wQd3lt.js} +102 -102
- package/dist/generic.bundled.js +1 -1
- package/dist/{handlebars-BWCujSP1.js → handlebars-CjzQJFRL.js} +1 -1
- package/dist/{html-BDpmhC2h.js → html-BOkwt1iO.js} +1 -1
- package/dist/{htmlMode-CgU4ojQY.js → htmlMode-C-YleCKL.js} +1 -1
- package/dist/{index-i5MLqhSv.js → index-Bn4CZNTv.js} +1 -1
- package/dist/{javascript-BwFEznBu.js → javascript-LzMyb5dQ.js} +1 -1
- package/dist/{jquery-core-M3a8Zero.js → jquery-core-8DPfNVZX.js} +1 -1
- package/dist/{jsonMode-TU3a9xoR.js → jsonMode-BClfgv_N.js} +1 -1
- package/dist/libs.bundled.js +1 -1
- package/dist/{liquid-BxyfMG5N.js → liquid-k_-oubBy.js} +1 -1
- package/dist/{main-bxXVNJ8X.js → main-DVok9aKE.js} +1 -1
- package/dist/{mdx-O8HLM987.js → mdx-DI2xBsuP.js} +1 -1
- package/dist/{python-QfRbQ5Hd.js → python-kBIRe_rR.js} +1 -1
- package/dist/{razor-C5834-ah.js → razor-C0Ffzfe0.js} +1 -1
- package/dist/{tsMode-ewJDSYZ4.js → tsMode-B_kU86kq.js} +1 -1
- package/dist/{typescript-K3J2Zpg_.js → typescript-BaV3OJdF.js} +1 -1
- package/dist/{xml-DQv-_kbg.js → xml-CnPYa8pZ.js} +1 -1
- package/dist/{yaml-De698brO.js → yaml-SEYcSwCv.js} +1 -1
- package/package.json +1 -1
- package/dist/DataSourceToolsUpload-C5S9YuoI.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./freemarker2-
|
|
2
|
-
import{k as xDt,dl as PGe,a as S9,o as wDt,gR as m9e,j as XWe,l as kDt,w as Aq,bA as AGe,G as o0e,H as ddn,F as hdn,ep as fdn,gS as _dn,gT as pdn,n as gdn}from"./galaxy-app-DD-3-vKU.js";import{l as YWe,p as TDt,u as mdn,a as ydn,s as bdn}from"./analysis.bundled.js";import{b as Ls}from"./index-i5MLqhSv.js";var vdn=Object.defineProperty,Cdn=Object.defineProperties,Sdn=Object.getOwnPropertyDescriptors,jvt=Object.getOwnPropertySymbols,xdn=Object.prototype.hasOwnProperty,wdn=Object.prototype.propertyIsEnumerable,zvt=(c,e,n)=>e in c?vdn(c,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):c[e]=n,y9e=(c,e)=>{for(var n in e||(e={}))xdn.call(e,n)&&zvt(c,n,e[n]);if(jvt)for(var n of jvt(e))wdn.call(e,n)&&zvt(c,n,e[n]);return c},kdn=(c,e)=>Cdn(c,Sdn(e));const b9e={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}};function Tdn(c,e){const n=XWe(()=>{const{width:o,height:a}=c;return kdn(y9e({},b9e.wrapper),{width:o,height:a})}),i=XWe(()=>y9e(y9e({},b9e.fullWidth),!e.value&&b9e.hide));return{wrapperStyle:n,containerStyle:i}}function DDt(){const c=PGe(YWe.__getMonacoInstance()),e=S9(!1);let n;return wDt(()=>{c.value||(n=YWe.init(),n.then(o=>c.value=o).catch(o=>{o?.type!=="cancelation"&&(e.value=!0,console.error("Monaco initialization error:",o))}))}),{monacoRef:c,unload:()=>n?.cancel(),isLoadFailed:e}}function Hvt(c){return typeof c=="function"?c():c}function ZWe(c){return c===void 0}function NDt(c,e,n,i){return Ddn(c,i)||Ndn(c,e,n,i)}function Ddn(c,e){return c.editor.getModel(EDt(c,e))}function Ndn(c,e,n,i){return c.editor.createModel(e,n,i?EDt(c,i):void 0)}function EDt(c,e){return c.Uri.parse(e)}var Edn=Object.defineProperty,Uvt=Object.getOwnPropertySymbols,Idn=Object.prototype.hasOwnProperty,Ldn=Object.prototype.propertyIsEnumerable,$vt=(c,e,n)=>e in c?Edn(c,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):c[e]=n,Pdn=(c,e)=>{for(var n in e||(e={}))Idn.call(e,n)&&$vt(c,n,e[n]);if(Uvt)for(var n of Uvt(e))Ldn.call(e,n)&&$vt(c,n,e[n]);return c};const Adn={display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"};var Fdn=xDt({name:"VueMonacoEditor",model:{prop:"value",event:"update:value"},props:{defaultValue:String,defaultPath:String,defaultLanguage:String,value:String,language:String,path:String,theme:{type:String,default:"vs"},line:Number,options:{type:Object,default:()=>({})},overrideServices:{type:Object,default:()=>({})},saveViewState:{type:Boolean,default:!0},width:{type:[Number,String],default:"100%"},height:{type:[Number,String],default:"100%"},className:String},emits:["update:value","beforeMount","mount","change","validate"],setup(c,e){const n=new Map,i=PGe(null),{monacoRef:o,unload:a,isLoadFailed:u}=DDt(),{editorRef:h}=Mdn(e,c,o,i),{disposeValidator:g}=Odn(e,c,o,h),b=XWe(()=>!!o.value&&!!h.value),{wrapperStyle:x,containerStyle:w}=Tdn(c,b);return kDt(()=>{var k,P;(k=g.value)==null||k.call(g),h.value?((P=h.value.getModel())==null||P.dispose(),h.value.dispose()):a()}),Aq([()=>c.path,()=>c.value,()=>c.language,()=>c.line],([k,P,A,B],[X,Q,ne,ge])=>{if(b.value){if(k!==X){const ye=NDt(o.value,P||c.defaultValue||"",A||c.defaultLanguage||"",k||c.defaultPath||"");c.saveViewState&&n.set(X,h.value.saveViewState()),h.value.setModel(ye),c.saveViewState&&h.value.restoreViewState(n.get(k)),ZWe(B)||h.value.revealLine(B);return}h.value.getValue()!==P&&h.value.setValue(P),A!==ne&&o.value.editor.setModelLanguage(h.value.getModel(),A),!ZWe(B)&&B!==ge&&h.value.revealLine(B)}}),Aq(()=>c.options,k=>h.value&&h.value.updateOptions(k),{deep:!0}),Aq(()=>c.theme,k=>o.value&&o.value.editor.setTheme(k)),{containerRef:i,isEditorReady:b,isLoadFailed:u,wrapperStyle:x,containerStyle:w}},render(){const{$slots:c,isEditorReady:e,isLoadFailed:n,wrapperStyle:i,containerStyle:o,className:a}=this;return m9e("div",{style:i},[!e&&m9e("div",{style:Adn},n?c.failure?Hvt(c.failure):"load failed":c.default?Hvt(c.default):"loading..."),m9e("div",{ref:"containerRef",key:"monaco_editor_container",style:o,class:a})])}});function Mdn({emit:c},e,n,i){const o=PGe(null);wDt(()=>{const u=Aq(n,()=>{i.value&&n.value&&(AGe(()=>u()),a())},{immediate:!0})});function a(){var u;if(!i.value||!n.value||o.value)return;c("beforeMount",n.value);const h=e.path||e.defaultPath,g=NDt(n.value,e.value||e.defaultValue||"",e.language||e.defaultLanguage||"",h||"");o.value=n.value.editor.create(i.value,Pdn({model:g,theme:e.theme,automaticLayout:!0,autoIndent:"brackets",formatOnPaste:!0,formatOnType:!0},e.options),e.overrideServices),(u=o.value)==null||u.onDidChangeModelContent(b=>{const x=o.value.getValue();x!==e.value&&(c("update:value",x),c("change",x,b))}),o.value&&!ZWe(e.line)&&o.value.revealLine(e.line),c("mount",o.value,n.value)}return{editorRef:o}}function Odn({emit:c},e,n,i){const o=S9(null),a=Aq([n,i],()=>{if(n.value&&i.value){AGe(()=>a());const u=n.value.editor.onDidChangeMarkers(h=>{var g,b;const x=(b=(g=i.value)==null?void 0:g.getModel())==null?void 0:b.uri;if(x&&h.find(k=>k.path===x.path)){const k=n.value.editor.getModelMarkers({resource:x});c("validate",k)}});o.value=()=>u?.dispose()}});return{disposeValidator:o}}function j2(c,e=0){return c[c.length-(1+e)]}function Rdn(c){if(c.length===0)throw new Error("Invalid tail call");return[c.slice(0,c.length-1),c[c.length-1]]}function sf(c,e,n=(i,o)=>i===o){if(c===e)return!0;if(!c||!e||c.length!==e.length)return!1;for(let i=0,o=c.length;i<o;i++)if(!n(c[i],e[i]))return!1;return!0}function Bdn(c,e){const n=c.length-1;e<n&&(c[e]=c[n]),c.pop()}function pre(c,e,n){return Wdn(c.length,i=>n(c[i],e))}function Wdn(c,e){let n=0,i=c-1;for(;n<=i;){const o=(n+i)/2|0,a=e(o);if(a<0)n=o+1;else if(a>0)i=o-1;else return o}return-(n+1)}function QWe(c,e,n){if(c=c|0,c>=e.length)throw new TypeError("invalid index");const i=e[Math.floor(e.length*Math.random())],o=[],a=[],u=[];for(const h of e){const g=n(h,i);g<0?o.push(h):g>0?a.push(h):u.push(h)}return c<o.length?QWe(c,o,n):c<o.length+u.length?u[0]:QWe(c-(o.length+u.length),a,n)}function qvt(c,e){const n=[];let i;for(const o of c.slice(0).sort(e))!i||e(i[0],o)!==0?(i=[o],n.push(i)):i.push(o);return n}function*FGe(c,e){let n,i;for(const o of c)i!==void 0&&e(i,o)?n.push(o):(n&&(yield n),n=[o]),i=o;n&&(yield n)}function IDt(c,e){for(let n=0;n<=c.length;n++)e(n===0?void 0:c[n-1],n===c.length?void 0:c[n])}function Vdn(c,e){for(let n=0;n<c.length;n++)e(n===0?void 0:c[n-1],c[n],n+1===c.length?void 0:c[n+1])}function nD(c){return c.filter(e=>!!e)}function Gvt(c){let e=0;for(let n=0;n<c.length;n++)c[n]&&(c[e]=c[n],e+=1);c.length=e}function LDt(c){return!Array.isArray(c)||c.length===0}function X0(c){return Array.isArray(c)&&c.length>0}function $3(c,e=n=>n){const n=new Set;return c.filter(i=>{const o=e(i);return n.has(o)?!1:(n.add(o),!0)})}function MGe(c,e){return c.length>0?c[0]:e}function Zv(c,e){let n=typeof e=="number"?c:0;typeof e=="number"?n=c:(n=0,e=c);const i=[];if(n<=e)for(let o=n;o<e;o++)i.push(o);else for(let o=n;o>e;o--)i.push(o);return i}function Mxe(c,e,n){const i=c.slice(0,e),o=c.slice(e);return i.concat(n,o)}function v9e(c,e){const n=c.indexOf(e);n>-1&&(c.splice(n,1),c.unshift(e))}function jye(c,e){const n=c.indexOf(e);n>-1&&(c.splice(n,1),c.push(e))}function eVe(c,e){for(const n of e)c.push(n)}function OGe(c){return Array.isArray(c)?c:[c]}function jdn(c,e,n){const i=PDt(c,e),o=c.length,a=n.length;c.length=o+a;for(let u=o-1;u>=i;u--)c[u+a]=c[u];for(let u=0;u<a;u++)c[u+i]=n[u]}function Kvt(c,e,n,i){const o=PDt(c,e);let a=c.splice(o,n);return a===void 0&&(a=[]),jdn(c,o,i),a}function PDt(c,e){return e<0?Math.max(e+c.length,0):Math.min(e,c.length)}var gre;(function(c){function e(a){return a<0}c.isLessThan=e;function n(a){return a<=0}c.isLessThanOrEqual=n;function i(a){return a>0}c.isGreaterThan=i;function o(a){return a===0}c.isNeitherLessOrGreaterThan=o,c.greaterThan=1,c.lessThan=-1,c.neitherLessOrGreaterThan=0})(gre||(gre={}));function Gb(c,e){return(n,i)=>e(c(n),c(i))}function zdn(...c){return(e,n)=>{for(const i of c){const o=i(e,n);if(!gre.isNeitherLessOrGreaterThan(o))return o}return gre.neitherLessOrGreaterThan}}const QT=(c,e)=>c-e,Hdn=(c,e)=>QT(c?1:0,e?1:0);function ADt(c){return(e,n)=>-c(e,n)}class q3{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let n=this.firstIdx;for(;n<this.items.length&&e(this.items[n]);)n++;const i=n===this.firstIdx?null:this.items.slice(this.firstIdx,n);return this.firstIdx=n,i}takeFromEndWhile(e){let n=this.lastIdx;for(;n>=0&&e(this.items[n]);)n--;const i=n===this.lastIdx?null:this.items.slice(n+1,this.lastIdx+1);return this.lastIdx=n,i}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const n=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,n}}const mq=class mq{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate(n=>(e.push(n),!0)),e}filter(e){return new mq(n=>this.iterate(i=>e(i)?n(i):!0))}map(e){return new mq(n=>this.iterate(i=>n(e(i))))}findLast(e){let n;return this.iterate(i=>(e(i)&&(n=i),!0)),n}findLastMaxBy(e){let n,i=!0;return this.iterate(o=>((i||gre.isGreaterThan(e(o,n)))&&(i=!1,n=o),!0)),n}};mq.empty=new mq(e=>{});let X9=mq;class Y0e{constructor(e){this._indexMap=e}static createSortPermutation(e,n){const i=Array.from(e.keys()).sort((o,a)=>n(e[o],e[a]));return new Y0e(i)}apply(e){return e.map((n,i)=>e[this._indexMap[i]])}inverse(){const e=this._indexMap.slice();for(let n=0;n<this._indexMap.length;n++)e[this._indexMap[n]]=n;return new Y0e(e)}}function rC(c){return typeof c=="string"}function Wm(c){return typeof c=="object"&&c!==null&&!Array.isArray(c)&&!(c instanceof RegExp)&&!(c instanceof Date)}function Udn(c){const e=Object.getPrototypeOf(Uint8Array);return typeof c=="object"&&c instanceof e}function tO(c){return typeof c=="number"&&!isNaN(c)}function Jvt(c){return!!c&&typeof c[Symbol.iterator]=="function"}function FDt(c){return c===!0||c===!1}function J0(c){return typeof c>"u"}function dP(c){return!Xx(c)}function Xx(c){return J0(c)||c===null}function au(c,e){if(!c)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function gM(c){if(Xx(c))throw new Error("Assertion Failed: argument is undefined or null");return c}function mre(c){return typeof c=="function"}function $dn(c,e){const n=Math.min(c.length,e.length);for(let i=0;i<n;i++)qdn(c[i],e[i])}function qdn(c,e){if(rC(e)){if(typeof c!==e)throw new Error(`argument does not match constraint: typeof ${e}`)}else if(mre(e)){try{if(c instanceof e)return}catch{}if(!Xx(c)&&c.constructor===e||e.length===1&&e.call(void 0,c)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function h3(c){if(!c||typeof c!="object"||c instanceof RegExp)return c;const e=Array.isArray(c)?[]:{};return Object.entries(c).forEach(([n,i])=>{e[n]=i&&typeof i=="object"?h3(i):i}),e}function Gdn(c){if(!c||typeof c!="object")return c;const e=[c];for(;e.length>0;){const n=e.shift();Object.freeze(n);for(const i in n)if(MDt.call(n,i)){const o=n[i];typeof o=="object"&&!Object.isFrozen(o)&&!Udn(o)&&e.push(o)}}return c}const MDt=Object.prototype.hasOwnProperty;function ODt(c,e){return tVe(c,e,new Set)}function tVe(c,e,n){if(Xx(c))return c;const i=e(c);if(typeof i<"u")return i;if(Array.isArray(c)){const o=[];for(const a of c)o.push(tVe(a,e,n));return o}if(Wm(c)){if(n.has(c))throw new Error("Cannot clone recursive data-structure");n.add(c);const o={};for(const a in c)MDt.call(c,a)&&(o[a]=tVe(c[a],e,n));return n.delete(c),o}return c}function Oxe(c,e,n=!0){return Wm(c)?(Wm(e)&&Object.keys(e).forEach(i=>{i in c?n&&(Wm(c[i])&&Wm(e[i])?Oxe(c[i],e[i],n):c[i]=e[i]):c[i]=e[i]}),c):e}function DS(c,e){if(c===e)return!0;if(c==null||e===null||e===void 0||typeof c!=typeof e||typeof c!="object"||Array.isArray(c)!==Array.isArray(e))return!1;let n,i;if(Array.isArray(c)){if(c.length!==e.length)return!1;for(n=0;n<c.length;n++)if(!DS(c[n],e[n]))return!1}else{const o=[];for(i in c)o.push(i);o.sort();const a=[];for(i in e)a.push(i);if(a.sort(),!DS(o,a))return!1;for(n=0;n<o.length;n++)if(!DS(c[o[n]],e[o[n]]))return!1}return!0}function Kdn(c){let e=[];for(;Object.prototype!==c;)e=e.concat(Object.getOwnPropertyNames(c)),c=Object.getPrototypeOf(c);return e}function nVe(c){const e=[];for(const n of Kdn(c))typeof c[n]=="function"&&e.push(n);return e}function Jdn(c,e){const n=o=>function(){const a=Array.prototype.slice.call(arguments,0);return e(o,a)},i={};for(const o of c)i[o]=n(o);return i}function RDt(){return globalThis._VSCODE_NLS_MESSAGES}function RGe(){return globalThis._VSCODE_NLS_LANGUAGE}const Xdn=RGe()==="pseudo"||typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function Z0e(c,e){let n;return e.length===0?n=c:n=c.replace(/\{(\d+)\}/g,(i,o)=>{const a=o[0],u=e[a];let h=i;return typeof u=="string"?h=u:(typeof u=="number"||typeof u=="boolean"||u===void 0||u===null)&&(h=String(u)),h}),Xdn&&(n="["+n.replace(/[aouei]/g,"$&$&")+"]"),n}function V(c,e,...n){return Z0e(typeof c=="number"?BDt(c,e):e,n)}function BDt(c,e){const n=RDt()?.[c];if(typeof n!="string"){if(typeof e=="string")return e;throw new Error(`!!! NLS MISSING: ${c} !!!`)}return n}function Ta(c,e,...n){let i;typeof c=="number"?i=BDt(c,e):i=e;const o=Z0e(i,n);return{value:o,original:e===i?o:Z0e(e,n)}}const $$="en";let Q0e=!1,ebe=!1,s0e=!1,WDt=!1,BGe=!1,WGe=!1,VDt=!1,zye,a0e=$$,Xvt=$$,Ydn,QA;const W3=globalThis;let U2;typeof W3.vscode<"u"&&typeof W3.vscode.process<"u"?U2=W3.vscode.process:typeof process<"u"&&typeof process?.versions?.node=="string"&&(U2=process);const Zdn=typeof U2?.versions?.electron=="string",Qdn=Zdn&&U2?.type==="renderer";if(typeof U2=="object"){Q0e=U2.platform==="win32",ebe=U2.platform==="darwin",s0e=U2.platform==="linux",s0e&&U2.env.SNAP&&U2.env.SNAP_REVISION,U2.env.CI||U2.env.BUILD_ARTIFACTSTAGINGDIRECTORY,zye=$$,a0e=$$;const c=U2.env.VSCODE_NLS_CONFIG;if(c)try{const e=JSON.parse(c);zye=e.userLocale,Xvt=e.osLocale,a0e=e.resolvedLanguage||$$,Ydn=e.languagePack?.translationsConfigFile}catch{}WDt=!0}else typeof navigator=="object"&&!Qdn?(QA=navigator.userAgent,Q0e=QA.indexOf("Windows")>=0,ebe=QA.indexOf("Macintosh")>=0,WGe=(QA.indexOf("Macintosh")>=0||QA.indexOf("iPad")>=0||QA.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,s0e=QA.indexOf("Linux")>=0,VDt=QA?.indexOf("Mobi")>=0,BGe=!0,a0e=RGe()||$$,zye=navigator.language.toLowerCase(),Xvt=zye):console.error("Unable to resolve platform.");const Qy=Q0e,hc=ebe,Xb=s0e,gP=WDt,OW=BGe,ehn=BGe&&typeof W3.importScripts=="function",thn=ehn?W3.origin:void 0,TE=WGe,jDt=VDt,mP=QA,nhn=a0e,ihn=typeof W3.postMessage=="function"&&!W3.importScripts,zDt=(()=>{if(ihn){const c=[];W3.addEventListener("message",n=>{if(n.data&&n.data.vscodeScheduleAsyncWork)for(let i=0,o=c.length;i<o;i++){const a=c[i];if(a.id===n.data.vscodeScheduleAsyncWork){c.splice(i,1),a.callback();return}}});let e=0;return n=>{const i=++e;c.push({id:i,callback:n}),W3.postMessage({vscodeScheduleAsyncWork:i},"*")}}return c=>setTimeout(c)})(),TS=ebe||WGe?2:Q0e?1:3;let Yvt=!0,Zvt=!1;function HDt(){if(!Zvt){Zvt=!0;const c=new Uint8Array(2);c[0]=1,c[1]=2,Yvt=new Uint16Array(c.buffer)[0]===513}return Yvt}const UDt=!!(mP&&mP.indexOf("Chrome")>=0),rhn=!!(mP&&mP.indexOf("Firefox")>=0),ohn=!!(!UDt&&mP&&mP.indexOf("Safari")>=0),shn=!!(mP&&mP.indexOf("Edg/")>=0),ahn=!!(mP&&mP.indexOf("Android")>=0),O1={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}};var Ic;(function(c){function e(ye){return ye&&typeof ye=="object"&&typeof ye[Symbol.iterator]=="function"}c.is=e;const n=Object.freeze([]);function i(){return n}c.empty=i;function*o(ye){yield ye}c.single=o;function a(ye){return e(ye)?ye:o(ye)}c.wrap=a;function u(ye){return ye||n}c.from=u;function*h(ye){for(let Me=ye.length-1;Me>=0;Me--)yield ye[Me]}c.reverse=h;function g(ye){return!ye||ye[Symbol.iterator]().next().done===!0}c.isEmpty=g;function b(ye){return ye[Symbol.iterator]().next().value}c.first=b;function x(ye,Me){let Je=0;for(const Be of ye)if(Me(Be,Je++))return!0;return!1}c.some=x;function w(ye,Me){for(const Je of ye)if(Me(Je))return Je}c.find=w;function*k(ye,Me){for(const Je of ye)Me(Je)&&(yield Je)}c.filter=k;function*P(ye,Me){let Je=0;for(const Be of ye)yield Me(Be,Je++)}c.map=P;function*A(ye,Me){let Je=0;for(const Be of ye)yield*Me(Be,Je++)}c.flatMap=A;function*B(...ye){for(const Me of ye)yield*Me}c.concat=B;function X(ye,Me,Je){let Be=Je;for(const ft of ye)Be=Me(Be,ft);return Be}c.reduce=X;function*Q(ye,Me,Je=ye.length){for(Me<0&&(Me+=ye.length),Je<0?Je+=ye.length:Je>ye.length&&(Je=ye.length);Me<Je;Me++)yield ye[Me]}c.slice=Q;function ne(ye,Me=Number.POSITIVE_INFINITY){const Je=[];if(Me===0)return[Je,ye];const Be=ye[Symbol.iterator]();for(let ft=0;ft<Me;ft++){const gt=Be.next();if(gt.done)return[Je,c.empty()];Je.push(gt.value)}return[Je,{[Symbol.iterator](){return Be}}]}c.consume=ne;async function ge(ye){const Me=[];for await(const Je of ye)Me.push(Je);return Promise.resolve(Me)}c.asyncToArray=ge})(Ic||(Ic={}));var A3;let Zg=(A3=class{constructor(e){this.element=e,this.next=A3.Undefined,this.prev=A3.Undefined}},A3.Undefined=new A3(void 0),A3);class zb{constructor(){this._first=Zg.Undefined,this._last=Zg.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Zg.Undefined}clear(){let e=this._first;for(;e!==Zg.Undefined;){const n=e.next;e.prev=Zg.Undefined,e.next=Zg.Undefined,e=n}this._first=Zg.Undefined,this._last=Zg.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,n){const i=new Zg(e);if(this._first===Zg.Undefined)this._first=i,this._last=i;else if(n){const a=this._last;this._last=i,i.prev=a,a.next=i}else{const a=this._first;this._first=i,i.next=a,a.prev=i}this._size+=1;let o=!1;return()=>{o||(o=!0,this._remove(i))}}shift(){if(this._first!==Zg.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==Zg.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==Zg.Undefined&&e.next!==Zg.Undefined){const n=e.prev;n.next=e.next,e.next.prev=n}else e.prev===Zg.Undefined&&e.next===Zg.Undefined?(this._first=Zg.Undefined,this._last=Zg.Undefined):e.next===Zg.Undefined?(this._last=this._last.prev,this._last.next=Zg.Undefined):e.prev===Zg.Undefined&&(this._first=this._first.next,this._first.prev=Zg.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==Zg.Undefined;)yield e.element,e=e.next}}const tbe="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function lhn(c=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const n of tbe)c.indexOf(n)>=0||(e+="\\"+n);return e+="\\s]+)",new RegExp(e,"g")}const VGe=lhn();function jGe(c){let e=VGe;if(c&&c instanceof RegExp)if(c.global)e=c;else{let n="g";c.ignoreCase&&(n+="i"),c.multiline&&(n+="m"),c.unicode&&(n+="u"),e=new RegExp(c.source,n)}return e.lastIndex=0,e}const $Dt=new zb;$Dt.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function yre(c,e,n,i,o){if(e=jGe(e),o||(o=Ic.first($Dt)),n.length>o.maxLen){let b=c-o.maxLen/2;return b<0?b=0:i+=b,n=n.substring(b,c+o.maxLen/2),yre(c,e,n,i,o)}const a=Date.now(),u=c-1-i;let h=-1,g=null;for(let b=1;!(Date.now()-a>=o.timeBudget);b++){const x=u-o.windowSize*b;e.lastIndex=Math.max(0,x);const w=chn(e,n,u,h);if(!w&&g||(g=w,x<=0))break;h=x}if(g){const b={word:g[0],startColumn:i+1+g.index,endColumn:i+1+g.index+g[0].length};return e.lastIndex=0,b}return null}function chn(c,e,n,i){let o;for(;o=c.exec(e);){const a=o.index||0;if(a<=n&&c.lastIndex>=n)return o;if(i>0&&a>i)return null}return null}const ML=8;class qDt{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class GDt{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class $h{constructor(e,n,i,o){this.id=e,this.name=n,this.defaultValue=i,this.schema=o}applyUpdate(e,n){return Rxe(e,n)}compute(e,n,i){return i}}class uie{constructor(e,n){this.newValue=e,this.didChange=n}}function Rxe(c,e){if(typeof c!="object"||typeof e!="object"||!c||!e)return new uie(e,c!==e);if(Array.isArray(c)||Array.isArray(e)){const i=Array.isArray(c)&&Array.isArray(e)&&sf(c,e);return new uie(e,!i)}let n=!1;for(const i in e)if(e.hasOwnProperty(i)){const o=Rxe(c[i],e[i]);o.didChange&&(c[i]=o.newValue,n=!0)}return new uie(c,n)}class Yoe{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,n){return Rxe(e,n)}validate(e){return this.defaultValue}}class sK{constructor(e,n,i,o){this.id=e,this.name=n,this.defaultValue=i,this.schema=o}applyUpdate(e,n){return Rxe(e,n)}validate(e){return typeof e>"u"?this.defaultValue:e}compute(e,n,i){return i}}function Cs(c,e){return typeof c>"u"?e:c==="false"?!1:!!c}class ou extends sK{constructor(e,n,i,o=void 0){typeof o<"u"&&(o.type="boolean",o.default=i),super(e,n,i,o)}validate(e){return Cs(e,this.defaultValue)}}function d9(c,e,n,i){if(typeof c>"u")return e;let o=parseInt(c,10);return isNaN(o)?e:(o=Math.max(n,o),o=Math.min(i,o),o|0)}class eh extends sK{static clampedInt(e,n,i,o){return d9(e,n,i,o)}constructor(e,n,i,o,a,u=void 0){typeof u<"u"&&(u.type="integer",u.default=i,u.minimum=o,u.maximum=a),super(e,n,i,u),this.minimum=o,this.maximum=a}validate(e){return eh.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}function uhn(c,e,n,i){if(typeof c>"u")return e;const o=ew.float(c,e);return ew.clamp(o,n,i)}class ew extends sK{static clamp(e,n,i){return e<n?n:e>i?i:e}static float(e,n){if(typeof e=="number")return e;if(typeof e>"u")return n;const i=parseFloat(e);return isNaN(i)?n:i}constructor(e,n,i,o,a){typeof a<"u"&&(a.type="number",a.default=i),super(e,n,i,a),this.validationFn=o}validate(e){return this.validationFn(ew.float(e,this.defaultValue))}}class G0 extends sK{static string(e,n){return typeof e!="string"?n:e}constructor(e,n,i,o=void 0){typeof o<"u"&&(o.type="string",o.default=i),super(e,n,i,o)}validate(e){return G0.string(e,this.defaultValue)}}function h_(c,e,n,i){return typeof c!="string"?e:i&&c in i?i[c]:n.indexOf(c)===-1?e:c}class d_ extends sK{constructor(e,n,i,o,a=void 0){typeof a<"u"&&(a.type="string",a.enum=o,a.default=i),super(e,n,i,a),this._allowedValues=o}validate(e){return h_(e,this.defaultValue,this._allowedValues)}}class Hye extends $h{constructor(e,n,i,o,a,u,h=void 0){typeof h<"u"&&(h.type="string",h.enum=a,h.default=o),super(e,n,i,h),this._allowedValues=a,this._convert=u}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function dhn(c){switch(c){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class hhn extends $h{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[V("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached."),V("accessibilitySupport.on","Optimize for usage with a Screen Reader."),V("accessibilitySupport.off","Assume a screen reader is not attached.")],default:"auto",tags:["accessibility"],description:V("accessibilitySupport","Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,n,i){return i===0?e.accessibilitySupport:i}}class fhn extends $h{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(23,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:V("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:V("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{insertSpace:Cs(n.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:Cs(n.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function _hn(c){switch(c){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var gy;(function(c){c[c.Line=1]="Line",c[c.Block=2]="Block",c[c.Underline=3]="Underline",c[c.LineThin=4]="LineThin",c[c.BlockOutline=5]="BlockOutline",c[c.UnderlineThin=6]="UnderlineThin"})(gy||(gy={}));function phn(c){switch(c){case"line":return gy.Line;case"block":return gy.Block;case"underline":return gy.Underline;case"line-thin":return gy.LineThin;case"block-outline":return gy.BlockOutline;case"underline-thin":return gy.UnderlineThin}}class ghn extends Yoe{constructor(){super(143)}compute(e,n,i){const o=["monaco-editor"];return n.get(39)&&o.push(n.get(39)),e.extraEditorClassName&&o.push(e.extraEditorClassName),n.get(74)==="default"?o.push("mouse-default"):n.get(74)==="copy"&&o.push("mouse-copy"),n.get(112)&&o.push("showUnused"),n.get(141)&&o.push("showDeprecated"),o.join(" ")}}class mhn extends ou{constructor(){super(37,"emptySelectionClipboard",!0,{description:V("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,n,i){return i&&e.emptySelectionClipboard}}class yhn extends $h{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(41,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:V("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[V("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),V("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),V("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:V("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[V("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),V("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),V("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:V("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:V("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:hc},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:V("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:V("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{cursorMoveOnType:Cs(n.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":h_(n.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":h_(n.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:Cs(n.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:Cs(n.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:Cs(n.loop,this.defaultValue.loop)}}}const a3=class a3 extends $h{constructor(){super(51,"fontLigatures",a3.OFF,{anyOf:[{type:"boolean",description:V("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:V("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:V("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"||e.length===0?a3.OFF:e==="true"?a3.ON:e:e?a3.ON:a3.OFF}};a3.OFF='"liga" off, "calt" off',a3.ON='"liga" on, "calt" on';let nO=a3;const l3=class l3 extends $h{constructor(){super(54,"fontVariations",l3.OFF,{anyOf:[{type:"boolean",description:V("fontVariations","Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:V("fontVariationSettings","Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:V("fontVariationsGeneral","Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?l3.OFF:e==="true"?l3.TRANSLATE:e:e?l3.TRANSLATE:l3.OFF}compute(e,n,i){return e.fontInfo.fontVariationSettings}};l3.OFF="normal",l3.TRANSLATE="translate";let bre=l3;class bhn extends Yoe{constructor(){super(50)}compute(e,n,i){return e.fontInfo}}class vhn extends sK{constructor(){super(52,"fontSize",Kb.fontSize,{type:"number",minimum:6,maximum:100,default:Kb.fontSize,description:V("fontSize","Controls the font size in pixels.")})}validate(e){const n=ew.float(e,this.defaultValue);return n===0?Kb.fontSize:ew.clamp(n,6,100)}compute(e,n,i){return e.fontInfo.fontSize}}const jL=class jL extends $h{constructor(){super(53,"fontWeight",Kb.fontWeight,{anyOf:[{type:"number",minimum:jL.MINIMUM_VALUE,maximum:jL.MAXIMUM_VALUE,errorMessage:V("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:jL.SUGGESTION_VALUES}],default:Kb.fontWeight,description:V("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(eh.clampedInt(e,Kb.fontWeight,jL.MINIMUM_VALUE,jL.MAXIMUM_VALUE))}};jL.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"],jL.MINIMUM_VALUE=1,jL.MAXIMUM_VALUE=1e3;let iVe=jL;class Chn extends $h{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",multipleTests:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:"",alternativeTestsCommand:""},n={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[V("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),V("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),V("editor.gotoLocation.multiple.goto","Go to the primary result and enable Peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(58,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:V("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":{description:V("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist."),...n},"editor.gotoLocation.multipleTypeDefinitions":{description:V("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist."),...n},"editor.gotoLocation.multipleDeclarations":{description:V("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist."),...n},"editor.gotoLocation.multipleImplementations":{description:V("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist."),...n},"editor.gotoLocation.multipleReferences":{description:V("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist."),...n},"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:V("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:V("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:V("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:V("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:V("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{multiple:h_(n.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:n.multipleDefinitions??h_(n.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:n.multipleTypeDefinitions??h_(n.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:n.multipleDeclarations??h_(n.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:n.multipleImplementations??h_(n.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:n.multipleReferences??h_(n.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),multipleTests:n.multipleTests??h_(n.multipleTests,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:G0.string(n.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:G0.string(n.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:G0.string(n.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:G0.string(n.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:G0.string(n.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand),alternativeTestsCommand:G0.string(n.alternativeTestsCommand,this.defaultValue.alternativeTestsCommand)}}}class Shn extends $h{constructor(){const e={enabled:!0,delay:300,hidingDelay:300,sticky:!0,above:!0};super(60,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:V("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:V("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:V("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.hidingDelay":{type:"integer",minimum:0,default:e.hidingDelay,description:V("hover.hidingDelay","Controls the delay in milliseconds after which the hover is hidden. Requires `editor.hover.sticky` to be enabled.")},"editor.hover.above":{type:"boolean",default:e.above,description:V("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:Cs(n.enabled,this.defaultValue.enabled),delay:eh.clampedInt(n.delay,this.defaultValue.delay,0,1e4),sticky:Cs(n.sticky,this.defaultValue.sticky),hidingDelay:eh.clampedInt(n.hidingDelay,this.defaultValue.hidingDelay,0,6e5),above:Cs(n.above,this.defaultValue.above)}}}class Fq extends Yoe{constructor(){super(146)}compute(e,n,i){return Fq.computeLayout(n,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio,glyphMarginDecorationLaneCount:e.glyphMarginDecorationLaneCount})}static computeContainedMinimapLineCount(e){const n=e.height/e.lineHeight,i=Math.floor(e.paddingTop/e.lineHeight);let o=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(o=Math.max(o,n-1));const a=(i+e.viewLineCount+o)/(e.pixelRatio*e.height),u=Math.floor(e.viewLineCount/a);return{typicalViewportLineCount:n,extraLinesBeforeFirstLine:i,extraLinesBeyondLastLine:o,desiredRatio:a,minimapLineCount:u}}static _computeMinimapLayout(e,n){const i=e.outerWidth,o=e.outerHeight,a=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(a*o),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:o};const u=n.stableMinimapLayoutInput,h=u&&e.outerHeight===u.outerHeight&&e.lineHeight===u.lineHeight&&e.typicalHalfwidthCharacterWidth===u.typicalHalfwidthCharacterWidth&&e.pixelRatio===u.pixelRatio&&e.scrollBeyondLastLine===u.scrollBeyondLastLine&&e.paddingTop===u.paddingTop&&e.paddingBottom===u.paddingBottom&&e.minimap.enabled===u.minimap.enabled&&e.minimap.side===u.minimap.side&&e.minimap.size===u.minimap.size&&e.minimap.showSlider===u.minimap.showSlider&&e.minimap.renderCharacters===u.minimap.renderCharacters&&e.minimap.maxColumn===u.minimap.maxColumn&&e.minimap.scale===u.minimap.scale&&e.verticalScrollbarWidth===u.verticalScrollbarWidth&&e.isViewportWrapping===u.isViewportWrapping,g=e.lineHeight,b=e.typicalHalfwidthCharacterWidth,x=e.scrollBeyondLastLine,w=e.minimap.renderCharacters;let k=a>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const P=e.minimap.maxColumn,A=e.minimap.size,B=e.minimap.side,X=e.verticalScrollbarWidth,Q=e.viewLineCount,ne=e.remainingWidth,ge=e.isViewportWrapping,ye=w?2:3;let Me=Math.floor(a*o);const Je=Me/a;let Be=!1,ft=!1,gt=ye*k,bn=k/a,ht=1;if(A==="fill"||A==="fit"){const{typicalViewportLineCount:Li,extraLinesBeforeFirstLine:Gn,extraLinesBeyondLastLine:Wi,desiredRatio:ci,minimapLineCount:cs}=Fq.computeContainedMinimapLineCount({viewLineCount:Q,scrollBeyondLastLine:x,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:o,lineHeight:g,pixelRatio:a});if(Q/cs>1)Be=!0,ft=!0,k=1,gt=1,bn=k/a;else{let Ba=!1,Wa=k+1;if(A==="fit"){const Dr=Math.ceil((Gn+Q+Wi)*gt);ge&&h&&ne<=n.stableFitRemainingWidth?(Ba=!0,Wa=n.stableFitMaxMinimapScale):Ba=Dr>Me}if(A==="fill"||Ba){Be=!0;const Dr=k;gt=Math.min(g*a,Math.max(1,Math.floor(1/ci))),ge&&h&&ne<=n.stableFitRemainingWidth&&(Wa=n.stableFitMaxMinimapScale),k=Math.min(Wa,Math.max(1,Math.floor(gt/ye))),k>Dr&&(ht=Math.min(2,k/Dr)),bn=k/a/ht,Me=Math.ceil(Math.max(Li,Gn+Q+Wi)*gt),ge?(n.stableMinimapLayoutInput=e,n.stableFitRemainingWidth=ne,n.stableFitMaxMinimapScale=k):(n.stableMinimapLayoutInput=null,n.stableFitRemainingWidth=0)}}}const Mt=Math.floor(P*bn),sn=Math.min(Mt,Math.max(0,Math.floor((ne-X-2)*bn/(b+bn)))+ML);let pt=Math.floor(a*sn);const cn=pt/a;pt=Math.floor(pt*ht);const Qt=w?1:2,vt=B==="left"?0:i-sn-X;return{renderMinimap:Qt,minimapLeft:vt,minimapWidth:sn,minimapHeightIsEditorHeight:Be,minimapIsSampling:ft,minimapScale:k,minimapLineHeight:gt,minimapCanvasInnerWidth:pt,minimapCanvasInnerHeight:Me,minimapCanvasOuterWidth:cn,minimapCanvasOuterHeight:Je}}static computeLayout(e,n){const i=n.outerWidth|0,o=n.outerHeight|0,a=n.lineHeight|0,u=n.lineNumbersDigitCount|0,h=n.typicalHalfwidthCharacterWidth,g=n.maxDigitWidth,b=n.pixelRatio,x=n.viewLineCount,w=e.get(138),k=w==="inherit"?e.get(137):w,P=k==="inherit"?e.get(133):k,A=e.get(136),B=n.isDominatedByLongLines,X=e.get(57),Q=e.get(68).renderType!==0,ne=e.get(69),ge=e.get(106),ye=e.get(84),Me=e.get(73),Je=e.get(104),Be=Je.verticalScrollbarSize,ft=Je.verticalHasArrows,gt=Je.arrowSize,bn=Je.horizontalScrollbarSize,ht=e.get(43),Mt=e.get(111)!=="never";let sn=e.get(66);ht&&Mt&&(sn+=16);let pt=0;if(Q){const Yu=Math.max(u,ne);pt=Math.round(Yu*g)}let cn=0;X&&(cn=a*n.glyphMarginDecorationLaneCount);let Qt=0,vt=Qt+cn,Li=vt+pt,Gn=Li+sn;const Wi=i-cn-pt-sn;let ci=!1,cs=!1,ys=-1;k==="inherit"&&B?(ci=!0,cs=!0):P==="on"||P==="bounded"?cs=!0:P==="wordWrapColumn"&&(ys=A);const Ba=Fq._computeMinimapLayout({outerWidth:i,outerHeight:o,lineHeight:a,typicalHalfwidthCharacterWidth:h,pixelRatio:b,scrollBeyondLastLine:ge,paddingTop:ye.top,paddingBottom:ye.bottom,minimap:Me,verticalScrollbarWidth:Be,viewLineCount:x,remainingWidth:Wi,isViewportWrapping:cs},n.memory||new GDt);Ba.renderMinimap!==0&&Ba.minimapLeft===0&&(Qt+=Ba.minimapWidth,vt+=Ba.minimapWidth,Li+=Ba.minimapWidth,Gn+=Ba.minimapWidth);const Wa=Wi-Ba.minimapWidth,Dr=Math.max(1,Math.floor((Wa-Be-2)/h)),Hu=ft?gt:0;return cs&&(ys=Math.max(1,Dr),P==="bounded"&&(ys=Math.min(ys,A))),{width:i,height:o,glyphMarginLeft:Qt,glyphMarginWidth:cn,glyphMarginDecorationLaneCount:n.glyphMarginDecorationLaneCount,lineNumbersLeft:vt,lineNumbersWidth:pt,decorationsLeft:Li,decorationsWidth:sn,contentLeft:Gn,contentWidth:Wa,minimap:Ba,viewportColumn:Dr,isWordWrapMinified:ci,isViewportWrapping:cs,wrappingColumn:ys,verticalScrollbarWidth:Be,horizontalScrollbarHeight:bn,overviewRuler:{top:Hu,width:Be,height:o-2*Hu,right:0}}}}class xhn extends $h{constructor(){super(140,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[V("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),V("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:V("wrappingStrategy","Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(e){return h_(e,"simple",["simple","advanced"])}compute(e,n,i){return n.get(2)===2?"advanced":i}}var $T;(function(c){c.Off="off",c.OnCode="onCode",c.On="on"})($T||($T={}));class whn extends $h{constructor(){const e={enabled:$T.OnCode};super(65,"lightbulb",e,{"editor.lightbulb.enabled":{type:"string",tags:["experimental"],enum:[$T.Off,$T.OnCode,$T.On],default:e.enabled,enumDescriptions:[V("editor.lightbulb.enabled.off","Disable the code action menu."),V("editor.lightbulb.enabled.onCode","Show the code action menu when the cursor is on lines with code."),V("editor.lightbulb.enabled.on","Show the code action menu when the cursor is on lines with code or on empty lines.")],description:V("enabled","Enables the Code Action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:h_(e.enabled,this.defaultValue.enabled,[$T.Off,$T.OnCode,$T.On])}}}class khn extends $h{constructor(){const e={enabled:!0,maxLineCount:5,defaultModel:"outlineModel",scrollWithEditor:!0};super(116,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:V("editor.stickyScroll.enabled","Shows the nested current scopes during the scroll at the top of the editor."),tags:["experimental"]},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:20,description:V("editor.stickyScroll.maxLineCount","Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:e.defaultModel,description:V("editor.stickyScroll.defaultModel","Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.")},"editor.stickyScroll.scrollWithEditor":{type:"boolean",default:e.scrollWithEditor,description:V("editor.stickyScroll.scrollWithEditor","Enable scrolling of Sticky Scroll with the editor's horizontal scrollbar.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:Cs(n.enabled,this.defaultValue.enabled),maxLineCount:eh.clampedInt(n.maxLineCount,this.defaultValue.maxLineCount,1,20),defaultModel:h_(n.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"]),scrollWithEditor:Cs(n.scrollWithEditor,this.defaultValue.scrollWithEditor)}}}class Thn extends $h{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(142,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:V("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[V("editor.inlayHints.on","Inlay hints are enabled"),V("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",hc?"Ctrl+Option":"Ctrl+Alt"),V("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",hc?"Ctrl+Option":"Ctrl+Alt"),V("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:V("inlayHints.fontSize","Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:V("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:V("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return typeof n.enabled=="boolean"&&(n.enabled=n.enabled?"on":"off"),{enabled:h_(n.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:eh.clampedInt(n.fontSize,this.defaultValue.fontSize,0,100),fontFamily:G0.string(n.fontFamily,this.defaultValue.fontFamily),padding:Cs(n.padding,this.defaultValue.padding)}}}class Dhn extends $h{constructor(){super(66,"lineDecorationsWidth",10)}validate(e){return typeof e=="string"&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):eh.clampedInt(e,this.defaultValue,0,1e3)}compute(e,n,i){return i<0?eh.clampedInt(-i*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):i}}class Nhn extends ew{constructor(){super(67,"lineHeight",Kb.lineHeight,e=>ew.clamp(e,0,150),{markdownDescription:V("lineHeight",`Controls the line height.
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./freemarker2-B8I4rQxP.js","./galaxy-app-C3wQd3lt.js","./analysis.bundled.js","./index-Bn4CZNTv.js","./jquery-core-8DPfNVZX.js","./handlebars-CjzQJFRL.js","./html-BOkwt1iO.js","./javascript-LzMyb5dQ.js","./typescript-BaV3OJdF.js","./liquid-k_-oubBy.js","./mdx-DI2xBsuP.js","./python-kBIRe_rR.js","./razor-C0Ffzfe0.js","./xml-CnPYa8pZ.js","./yaml-SEYcSwCv.js","./cssMode-Ba12SoF2.js","./htmlMode-C-YleCKL.js","./jsonMode-BClfgv_N.js","./tsMode-B_kU86kq.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{k as xDt,dl as PGe,a as S9,o as wDt,gU as m9e,j as XWe,l as kDt,w as Aq,bA as AGe,G as o0e,H as ddn,F as hdn,er as fdn,gV as _dn,gW as pdn,n as gdn}from"./galaxy-app-C3wQd3lt.js";import{l as YWe,p as TDt,u as mdn,a as ydn,s as bdn}from"./analysis.bundled.js";import{b as Ls}from"./index-Bn4CZNTv.js";var vdn=Object.defineProperty,Cdn=Object.defineProperties,Sdn=Object.getOwnPropertyDescriptors,jvt=Object.getOwnPropertySymbols,xdn=Object.prototype.hasOwnProperty,wdn=Object.prototype.propertyIsEnumerable,zvt=(c,e,n)=>e in c?vdn(c,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):c[e]=n,y9e=(c,e)=>{for(var n in e||(e={}))xdn.call(e,n)&&zvt(c,n,e[n]);if(jvt)for(var n of jvt(e))wdn.call(e,n)&&zvt(c,n,e[n]);return c},kdn=(c,e)=>Cdn(c,Sdn(e));const b9e={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}};function Tdn(c,e){const n=XWe(()=>{const{width:o,height:a}=c;return kdn(y9e({},b9e.wrapper),{width:o,height:a})}),i=XWe(()=>y9e(y9e({},b9e.fullWidth),!e.value&&b9e.hide));return{wrapperStyle:n,containerStyle:i}}function DDt(){const c=PGe(YWe.__getMonacoInstance()),e=S9(!1);let n;return wDt(()=>{c.value||(n=YWe.init(),n.then(o=>c.value=o).catch(o=>{o?.type!=="cancelation"&&(e.value=!0,console.error("Monaco initialization error:",o))}))}),{monacoRef:c,unload:()=>n?.cancel(),isLoadFailed:e}}function Hvt(c){return typeof c=="function"?c():c}function ZWe(c){return c===void 0}function NDt(c,e,n,i){return Ddn(c,i)||Ndn(c,e,n,i)}function Ddn(c,e){return c.editor.getModel(EDt(c,e))}function Ndn(c,e,n,i){return c.editor.createModel(e,n,i?EDt(c,i):void 0)}function EDt(c,e){return c.Uri.parse(e)}var Edn=Object.defineProperty,Uvt=Object.getOwnPropertySymbols,Idn=Object.prototype.hasOwnProperty,Ldn=Object.prototype.propertyIsEnumerable,$vt=(c,e,n)=>e in c?Edn(c,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):c[e]=n,Pdn=(c,e)=>{for(var n in e||(e={}))Idn.call(e,n)&&$vt(c,n,e[n]);if(Uvt)for(var n of Uvt(e))Ldn.call(e,n)&&$vt(c,n,e[n]);return c};const Adn={display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"};var Fdn=xDt({name:"VueMonacoEditor",model:{prop:"value",event:"update:value"},props:{defaultValue:String,defaultPath:String,defaultLanguage:String,value:String,language:String,path:String,theme:{type:String,default:"vs"},line:Number,options:{type:Object,default:()=>({})},overrideServices:{type:Object,default:()=>({})},saveViewState:{type:Boolean,default:!0},width:{type:[Number,String],default:"100%"},height:{type:[Number,String],default:"100%"},className:String},emits:["update:value","beforeMount","mount","change","validate"],setup(c,e){const n=new Map,i=PGe(null),{monacoRef:o,unload:a,isLoadFailed:u}=DDt(),{editorRef:h}=Mdn(e,c,o,i),{disposeValidator:g}=Odn(e,c,o,h),b=XWe(()=>!!o.value&&!!h.value),{wrapperStyle:x,containerStyle:w}=Tdn(c,b);return kDt(()=>{var k,P;(k=g.value)==null||k.call(g),h.value?((P=h.value.getModel())==null||P.dispose(),h.value.dispose()):a()}),Aq([()=>c.path,()=>c.value,()=>c.language,()=>c.line],([k,P,A,B],[X,Q,ne,ge])=>{if(b.value){if(k!==X){const ye=NDt(o.value,P||c.defaultValue||"",A||c.defaultLanguage||"",k||c.defaultPath||"");c.saveViewState&&n.set(X,h.value.saveViewState()),h.value.setModel(ye),c.saveViewState&&h.value.restoreViewState(n.get(k)),ZWe(B)||h.value.revealLine(B);return}h.value.getValue()!==P&&h.value.setValue(P),A!==ne&&o.value.editor.setModelLanguage(h.value.getModel(),A),!ZWe(B)&&B!==ge&&h.value.revealLine(B)}}),Aq(()=>c.options,k=>h.value&&h.value.updateOptions(k),{deep:!0}),Aq(()=>c.theme,k=>o.value&&o.value.editor.setTheme(k)),{containerRef:i,isEditorReady:b,isLoadFailed:u,wrapperStyle:x,containerStyle:w}},render(){const{$slots:c,isEditorReady:e,isLoadFailed:n,wrapperStyle:i,containerStyle:o,className:a}=this;return m9e("div",{style:i},[!e&&m9e("div",{style:Adn},n?c.failure?Hvt(c.failure):"load failed":c.default?Hvt(c.default):"loading..."),m9e("div",{ref:"containerRef",key:"monaco_editor_container",style:o,class:a})])}});function Mdn({emit:c},e,n,i){const o=PGe(null);wDt(()=>{const u=Aq(n,()=>{i.value&&n.value&&(AGe(()=>u()),a())},{immediate:!0})});function a(){var u;if(!i.value||!n.value||o.value)return;c("beforeMount",n.value);const h=e.path||e.defaultPath,g=NDt(n.value,e.value||e.defaultValue||"",e.language||e.defaultLanguage||"",h||"");o.value=n.value.editor.create(i.value,Pdn({model:g,theme:e.theme,automaticLayout:!0,autoIndent:"brackets",formatOnPaste:!0,formatOnType:!0},e.options),e.overrideServices),(u=o.value)==null||u.onDidChangeModelContent(b=>{const x=o.value.getValue();x!==e.value&&(c("update:value",x),c("change",x,b))}),o.value&&!ZWe(e.line)&&o.value.revealLine(e.line),c("mount",o.value,n.value)}return{editorRef:o}}function Odn({emit:c},e,n,i){const o=S9(null),a=Aq([n,i],()=>{if(n.value&&i.value){AGe(()=>a());const u=n.value.editor.onDidChangeMarkers(h=>{var g,b;const x=(b=(g=i.value)==null?void 0:g.getModel())==null?void 0:b.uri;if(x&&h.find(k=>k.path===x.path)){const k=n.value.editor.getModelMarkers({resource:x});c("validate",k)}});o.value=()=>u?.dispose()}});return{disposeValidator:o}}function j2(c,e=0){return c[c.length-(1+e)]}function Rdn(c){if(c.length===0)throw new Error("Invalid tail call");return[c.slice(0,c.length-1),c[c.length-1]]}function sf(c,e,n=(i,o)=>i===o){if(c===e)return!0;if(!c||!e||c.length!==e.length)return!1;for(let i=0,o=c.length;i<o;i++)if(!n(c[i],e[i]))return!1;return!0}function Bdn(c,e){const n=c.length-1;e<n&&(c[e]=c[n]),c.pop()}function pre(c,e,n){return Wdn(c.length,i=>n(c[i],e))}function Wdn(c,e){let n=0,i=c-1;for(;n<=i;){const o=(n+i)/2|0,a=e(o);if(a<0)n=o+1;else if(a>0)i=o-1;else return o}return-(n+1)}function QWe(c,e,n){if(c=c|0,c>=e.length)throw new TypeError("invalid index");const i=e[Math.floor(e.length*Math.random())],o=[],a=[],u=[];for(const h of e){const g=n(h,i);g<0?o.push(h):g>0?a.push(h):u.push(h)}return c<o.length?QWe(c,o,n):c<o.length+u.length?u[0]:QWe(c-(o.length+u.length),a,n)}function qvt(c,e){const n=[];let i;for(const o of c.slice(0).sort(e))!i||e(i[0],o)!==0?(i=[o],n.push(i)):i.push(o);return n}function*FGe(c,e){let n,i;for(const o of c)i!==void 0&&e(i,o)?n.push(o):(n&&(yield n),n=[o]),i=o;n&&(yield n)}function IDt(c,e){for(let n=0;n<=c.length;n++)e(n===0?void 0:c[n-1],n===c.length?void 0:c[n])}function Vdn(c,e){for(let n=0;n<c.length;n++)e(n===0?void 0:c[n-1],c[n],n+1===c.length?void 0:c[n+1])}function nD(c){return c.filter(e=>!!e)}function Gvt(c){let e=0;for(let n=0;n<c.length;n++)c[n]&&(c[e]=c[n],e+=1);c.length=e}function LDt(c){return!Array.isArray(c)||c.length===0}function X0(c){return Array.isArray(c)&&c.length>0}function $3(c,e=n=>n){const n=new Set;return c.filter(i=>{const o=e(i);return n.has(o)?!1:(n.add(o),!0)})}function MGe(c,e){return c.length>0?c[0]:e}function Zv(c,e){let n=typeof e=="number"?c:0;typeof e=="number"?n=c:(n=0,e=c);const i=[];if(n<=e)for(let o=n;o<e;o++)i.push(o);else for(let o=n;o>e;o--)i.push(o);return i}function Mxe(c,e,n){const i=c.slice(0,e),o=c.slice(e);return i.concat(n,o)}function v9e(c,e){const n=c.indexOf(e);n>-1&&(c.splice(n,1),c.unshift(e))}function jye(c,e){const n=c.indexOf(e);n>-1&&(c.splice(n,1),c.push(e))}function eVe(c,e){for(const n of e)c.push(n)}function OGe(c){return Array.isArray(c)?c:[c]}function jdn(c,e,n){const i=PDt(c,e),o=c.length,a=n.length;c.length=o+a;for(let u=o-1;u>=i;u--)c[u+a]=c[u];for(let u=0;u<a;u++)c[u+i]=n[u]}function Kvt(c,e,n,i){const o=PDt(c,e);let a=c.splice(o,n);return a===void 0&&(a=[]),jdn(c,o,i),a}function PDt(c,e){return e<0?Math.max(e+c.length,0):Math.min(e,c.length)}var gre;(function(c){function e(a){return a<0}c.isLessThan=e;function n(a){return a<=0}c.isLessThanOrEqual=n;function i(a){return a>0}c.isGreaterThan=i;function o(a){return a===0}c.isNeitherLessOrGreaterThan=o,c.greaterThan=1,c.lessThan=-1,c.neitherLessOrGreaterThan=0})(gre||(gre={}));function Gb(c,e){return(n,i)=>e(c(n),c(i))}function zdn(...c){return(e,n)=>{for(const i of c){const o=i(e,n);if(!gre.isNeitherLessOrGreaterThan(o))return o}return gre.neitherLessOrGreaterThan}}const QT=(c,e)=>c-e,Hdn=(c,e)=>QT(c?1:0,e?1:0);function ADt(c){return(e,n)=>-c(e,n)}class q3{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let n=this.firstIdx;for(;n<this.items.length&&e(this.items[n]);)n++;const i=n===this.firstIdx?null:this.items.slice(this.firstIdx,n);return this.firstIdx=n,i}takeFromEndWhile(e){let n=this.lastIdx;for(;n>=0&&e(this.items[n]);)n--;const i=n===this.lastIdx?null:this.items.slice(n+1,this.lastIdx+1);return this.lastIdx=n,i}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const n=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,n}}const mq=class mq{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate(n=>(e.push(n),!0)),e}filter(e){return new mq(n=>this.iterate(i=>e(i)?n(i):!0))}map(e){return new mq(n=>this.iterate(i=>n(e(i))))}findLast(e){let n;return this.iterate(i=>(e(i)&&(n=i),!0)),n}findLastMaxBy(e){let n,i=!0;return this.iterate(o=>((i||gre.isGreaterThan(e(o,n)))&&(i=!1,n=o),!0)),n}};mq.empty=new mq(e=>{});let X9=mq;class Y0e{constructor(e){this._indexMap=e}static createSortPermutation(e,n){const i=Array.from(e.keys()).sort((o,a)=>n(e[o],e[a]));return new Y0e(i)}apply(e){return e.map((n,i)=>e[this._indexMap[i]])}inverse(){const e=this._indexMap.slice();for(let n=0;n<this._indexMap.length;n++)e[this._indexMap[n]]=n;return new Y0e(e)}}function rC(c){return typeof c=="string"}function Wm(c){return typeof c=="object"&&c!==null&&!Array.isArray(c)&&!(c instanceof RegExp)&&!(c instanceof Date)}function Udn(c){const e=Object.getPrototypeOf(Uint8Array);return typeof c=="object"&&c instanceof e}function tO(c){return typeof c=="number"&&!isNaN(c)}function Jvt(c){return!!c&&typeof c[Symbol.iterator]=="function"}function FDt(c){return c===!0||c===!1}function J0(c){return typeof c>"u"}function dP(c){return!Xx(c)}function Xx(c){return J0(c)||c===null}function au(c,e){if(!c)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function gM(c){if(Xx(c))throw new Error("Assertion Failed: argument is undefined or null");return c}function mre(c){return typeof c=="function"}function $dn(c,e){const n=Math.min(c.length,e.length);for(let i=0;i<n;i++)qdn(c[i],e[i])}function qdn(c,e){if(rC(e)){if(typeof c!==e)throw new Error(`argument does not match constraint: typeof ${e}`)}else if(mre(e)){try{if(c instanceof e)return}catch{}if(!Xx(c)&&c.constructor===e||e.length===1&&e.call(void 0,c)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function h3(c){if(!c||typeof c!="object"||c instanceof RegExp)return c;const e=Array.isArray(c)?[]:{};return Object.entries(c).forEach(([n,i])=>{e[n]=i&&typeof i=="object"?h3(i):i}),e}function Gdn(c){if(!c||typeof c!="object")return c;const e=[c];for(;e.length>0;){const n=e.shift();Object.freeze(n);for(const i in n)if(MDt.call(n,i)){const o=n[i];typeof o=="object"&&!Object.isFrozen(o)&&!Udn(o)&&e.push(o)}}return c}const MDt=Object.prototype.hasOwnProperty;function ODt(c,e){return tVe(c,e,new Set)}function tVe(c,e,n){if(Xx(c))return c;const i=e(c);if(typeof i<"u")return i;if(Array.isArray(c)){const o=[];for(const a of c)o.push(tVe(a,e,n));return o}if(Wm(c)){if(n.has(c))throw new Error("Cannot clone recursive data-structure");n.add(c);const o={};for(const a in c)MDt.call(c,a)&&(o[a]=tVe(c[a],e,n));return n.delete(c),o}return c}function Oxe(c,e,n=!0){return Wm(c)?(Wm(e)&&Object.keys(e).forEach(i=>{i in c?n&&(Wm(c[i])&&Wm(e[i])?Oxe(c[i],e[i],n):c[i]=e[i]):c[i]=e[i]}),c):e}function DS(c,e){if(c===e)return!0;if(c==null||e===null||e===void 0||typeof c!=typeof e||typeof c!="object"||Array.isArray(c)!==Array.isArray(e))return!1;let n,i;if(Array.isArray(c)){if(c.length!==e.length)return!1;for(n=0;n<c.length;n++)if(!DS(c[n],e[n]))return!1}else{const o=[];for(i in c)o.push(i);o.sort();const a=[];for(i in e)a.push(i);if(a.sort(),!DS(o,a))return!1;for(n=0;n<o.length;n++)if(!DS(c[o[n]],e[o[n]]))return!1}return!0}function Kdn(c){let e=[];for(;Object.prototype!==c;)e=e.concat(Object.getOwnPropertyNames(c)),c=Object.getPrototypeOf(c);return e}function nVe(c){const e=[];for(const n of Kdn(c))typeof c[n]=="function"&&e.push(n);return e}function Jdn(c,e){const n=o=>function(){const a=Array.prototype.slice.call(arguments,0);return e(o,a)},i={};for(const o of c)i[o]=n(o);return i}function RDt(){return globalThis._VSCODE_NLS_MESSAGES}function RGe(){return globalThis._VSCODE_NLS_LANGUAGE}const Xdn=RGe()==="pseudo"||typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function Z0e(c,e){let n;return e.length===0?n=c:n=c.replace(/\{(\d+)\}/g,(i,o)=>{const a=o[0],u=e[a];let h=i;return typeof u=="string"?h=u:(typeof u=="number"||typeof u=="boolean"||u===void 0||u===null)&&(h=String(u)),h}),Xdn&&(n="["+n.replace(/[aouei]/g,"$&$&")+"]"),n}function V(c,e,...n){return Z0e(typeof c=="number"?BDt(c,e):e,n)}function BDt(c,e){const n=RDt()?.[c];if(typeof n!="string"){if(typeof e=="string")return e;throw new Error(`!!! NLS MISSING: ${c} !!!`)}return n}function Ta(c,e,...n){let i;typeof c=="number"?i=BDt(c,e):i=e;const o=Z0e(i,n);return{value:o,original:e===i?o:Z0e(e,n)}}const $$="en";let Q0e=!1,ebe=!1,s0e=!1,WDt=!1,BGe=!1,WGe=!1,VDt=!1,zye,a0e=$$,Xvt=$$,Ydn,QA;const W3=globalThis;let U2;typeof W3.vscode<"u"&&typeof W3.vscode.process<"u"?U2=W3.vscode.process:typeof process<"u"&&typeof process?.versions?.node=="string"&&(U2=process);const Zdn=typeof U2?.versions?.electron=="string",Qdn=Zdn&&U2?.type==="renderer";if(typeof U2=="object"){Q0e=U2.platform==="win32",ebe=U2.platform==="darwin",s0e=U2.platform==="linux",s0e&&U2.env.SNAP&&U2.env.SNAP_REVISION,U2.env.CI||U2.env.BUILD_ARTIFACTSTAGINGDIRECTORY,zye=$$,a0e=$$;const c=U2.env.VSCODE_NLS_CONFIG;if(c)try{const e=JSON.parse(c);zye=e.userLocale,Xvt=e.osLocale,a0e=e.resolvedLanguage||$$,Ydn=e.languagePack?.translationsConfigFile}catch{}WDt=!0}else typeof navigator=="object"&&!Qdn?(QA=navigator.userAgent,Q0e=QA.indexOf("Windows")>=0,ebe=QA.indexOf("Macintosh")>=0,WGe=(QA.indexOf("Macintosh")>=0||QA.indexOf("iPad")>=0||QA.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,s0e=QA.indexOf("Linux")>=0,VDt=QA?.indexOf("Mobi")>=0,BGe=!0,a0e=RGe()||$$,zye=navigator.language.toLowerCase(),Xvt=zye):console.error("Unable to resolve platform.");const Qy=Q0e,hc=ebe,Xb=s0e,gP=WDt,OW=BGe,ehn=BGe&&typeof W3.importScripts=="function",thn=ehn?W3.origin:void 0,TE=WGe,jDt=VDt,mP=QA,nhn=a0e,ihn=typeof W3.postMessage=="function"&&!W3.importScripts,zDt=(()=>{if(ihn){const c=[];W3.addEventListener("message",n=>{if(n.data&&n.data.vscodeScheduleAsyncWork)for(let i=0,o=c.length;i<o;i++){const a=c[i];if(a.id===n.data.vscodeScheduleAsyncWork){c.splice(i,1),a.callback();return}}});let e=0;return n=>{const i=++e;c.push({id:i,callback:n}),W3.postMessage({vscodeScheduleAsyncWork:i},"*")}}return c=>setTimeout(c)})(),TS=ebe||WGe?2:Q0e?1:3;let Yvt=!0,Zvt=!1;function HDt(){if(!Zvt){Zvt=!0;const c=new Uint8Array(2);c[0]=1,c[1]=2,Yvt=new Uint16Array(c.buffer)[0]===513}return Yvt}const UDt=!!(mP&&mP.indexOf("Chrome")>=0),rhn=!!(mP&&mP.indexOf("Firefox")>=0),ohn=!!(!UDt&&mP&&mP.indexOf("Safari")>=0),shn=!!(mP&&mP.indexOf("Edg/")>=0),ahn=!!(mP&&mP.indexOf("Android")>=0),O1={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}};var Ic;(function(c){function e(ye){return ye&&typeof ye=="object"&&typeof ye[Symbol.iterator]=="function"}c.is=e;const n=Object.freeze([]);function i(){return n}c.empty=i;function*o(ye){yield ye}c.single=o;function a(ye){return e(ye)?ye:o(ye)}c.wrap=a;function u(ye){return ye||n}c.from=u;function*h(ye){for(let Me=ye.length-1;Me>=0;Me--)yield ye[Me]}c.reverse=h;function g(ye){return!ye||ye[Symbol.iterator]().next().done===!0}c.isEmpty=g;function b(ye){return ye[Symbol.iterator]().next().value}c.first=b;function x(ye,Me){let Je=0;for(const Be of ye)if(Me(Be,Je++))return!0;return!1}c.some=x;function w(ye,Me){for(const Je of ye)if(Me(Je))return Je}c.find=w;function*k(ye,Me){for(const Je of ye)Me(Je)&&(yield Je)}c.filter=k;function*P(ye,Me){let Je=0;for(const Be of ye)yield Me(Be,Je++)}c.map=P;function*A(ye,Me){let Je=0;for(const Be of ye)yield*Me(Be,Je++)}c.flatMap=A;function*B(...ye){for(const Me of ye)yield*Me}c.concat=B;function X(ye,Me,Je){let Be=Je;for(const ft of ye)Be=Me(Be,ft);return Be}c.reduce=X;function*Q(ye,Me,Je=ye.length){for(Me<0&&(Me+=ye.length),Je<0?Je+=ye.length:Je>ye.length&&(Je=ye.length);Me<Je;Me++)yield ye[Me]}c.slice=Q;function ne(ye,Me=Number.POSITIVE_INFINITY){const Je=[];if(Me===0)return[Je,ye];const Be=ye[Symbol.iterator]();for(let ft=0;ft<Me;ft++){const gt=Be.next();if(gt.done)return[Je,c.empty()];Je.push(gt.value)}return[Je,{[Symbol.iterator](){return Be}}]}c.consume=ne;async function ge(ye){const Me=[];for await(const Je of ye)Me.push(Je);return Promise.resolve(Me)}c.asyncToArray=ge})(Ic||(Ic={}));var A3;let Zg=(A3=class{constructor(e){this.element=e,this.next=A3.Undefined,this.prev=A3.Undefined}},A3.Undefined=new A3(void 0),A3);class zb{constructor(){this._first=Zg.Undefined,this._last=Zg.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Zg.Undefined}clear(){let e=this._first;for(;e!==Zg.Undefined;){const n=e.next;e.prev=Zg.Undefined,e.next=Zg.Undefined,e=n}this._first=Zg.Undefined,this._last=Zg.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,n){const i=new Zg(e);if(this._first===Zg.Undefined)this._first=i,this._last=i;else if(n){const a=this._last;this._last=i,i.prev=a,a.next=i}else{const a=this._first;this._first=i,i.next=a,a.prev=i}this._size+=1;let o=!1;return()=>{o||(o=!0,this._remove(i))}}shift(){if(this._first!==Zg.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==Zg.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==Zg.Undefined&&e.next!==Zg.Undefined){const n=e.prev;n.next=e.next,e.next.prev=n}else e.prev===Zg.Undefined&&e.next===Zg.Undefined?(this._first=Zg.Undefined,this._last=Zg.Undefined):e.next===Zg.Undefined?(this._last=this._last.prev,this._last.next=Zg.Undefined):e.prev===Zg.Undefined&&(this._first=this._first.next,this._first.prev=Zg.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==Zg.Undefined;)yield e.element,e=e.next}}const tbe="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function lhn(c=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const n of tbe)c.indexOf(n)>=0||(e+="\\"+n);return e+="\\s]+)",new RegExp(e,"g")}const VGe=lhn();function jGe(c){let e=VGe;if(c&&c instanceof RegExp)if(c.global)e=c;else{let n="g";c.ignoreCase&&(n+="i"),c.multiline&&(n+="m"),c.unicode&&(n+="u"),e=new RegExp(c.source,n)}return e.lastIndex=0,e}const $Dt=new zb;$Dt.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function yre(c,e,n,i,o){if(e=jGe(e),o||(o=Ic.first($Dt)),n.length>o.maxLen){let b=c-o.maxLen/2;return b<0?b=0:i+=b,n=n.substring(b,c+o.maxLen/2),yre(c,e,n,i,o)}const a=Date.now(),u=c-1-i;let h=-1,g=null;for(let b=1;!(Date.now()-a>=o.timeBudget);b++){const x=u-o.windowSize*b;e.lastIndex=Math.max(0,x);const w=chn(e,n,u,h);if(!w&&g||(g=w,x<=0))break;h=x}if(g){const b={word:g[0],startColumn:i+1+g.index,endColumn:i+1+g.index+g[0].length};return e.lastIndex=0,b}return null}function chn(c,e,n,i){let o;for(;o=c.exec(e);){const a=o.index||0;if(a<=n&&c.lastIndex>=n)return o;if(i>0&&a>i)return null}return null}const ML=8;class qDt{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class GDt{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class $h{constructor(e,n,i,o){this.id=e,this.name=n,this.defaultValue=i,this.schema=o}applyUpdate(e,n){return Rxe(e,n)}compute(e,n,i){return i}}class uie{constructor(e,n){this.newValue=e,this.didChange=n}}function Rxe(c,e){if(typeof c!="object"||typeof e!="object"||!c||!e)return new uie(e,c!==e);if(Array.isArray(c)||Array.isArray(e)){const i=Array.isArray(c)&&Array.isArray(e)&&sf(c,e);return new uie(e,!i)}let n=!1;for(const i in e)if(e.hasOwnProperty(i)){const o=Rxe(c[i],e[i]);o.didChange&&(c[i]=o.newValue,n=!0)}return new uie(c,n)}class Yoe{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,n){return Rxe(e,n)}validate(e){return this.defaultValue}}class sK{constructor(e,n,i,o){this.id=e,this.name=n,this.defaultValue=i,this.schema=o}applyUpdate(e,n){return Rxe(e,n)}validate(e){return typeof e>"u"?this.defaultValue:e}compute(e,n,i){return i}}function Cs(c,e){return typeof c>"u"?e:c==="false"?!1:!!c}class ou extends sK{constructor(e,n,i,o=void 0){typeof o<"u"&&(o.type="boolean",o.default=i),super(e,n,i,o)}validate(e){return Cs(e,this.defaultValue)}}function d9(c,e,n,i){if(typeof c>"u")return e;let o=parseInt(c,10);return isNaN(o)?e:(o=Math.max(n,o),o=Math.min(i,o),o|0)}class eh extends sK{static clampedInt(e,n,i,o){return d9(e,n,i,o)}constructor(e,n,i,o,a,u=void 0){typeof u<"u"&&(u.type="integer",u.default=i,u.minimum=o,u.maximum=a),super(e,n,i,u),this.minimum=o,this.maximum=a}validate(e){return eh.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}function uhn(c,e,n,i){if(typeof c>"u")return e;const o=ew.float(c,e);return ew.clamp(o,n,i)}class ew extends sK{static clamp(e,n,i){return e<n?n:e>i?i:e}static float(e,n){if(typeof e=="number")return e;if(typeof e>"u")return n;const i=parseFloat(e);return isNaN(i)?n:i}constructor(e,n,i,o,a){typeof a<"u"&&(a.type="number",a.default=i),super(e,n,i,a),this.validationFn=o}validate(e){return this.validationFn(ew.float(e,this.defaultValue))}}class G0 extends sK{static string(e,n){return typeof e!="string"?n:e}constructor(e,n,i,o=void 0){typeof o<"u"&&(o.type="string",o.default=i),super(e,n,i,o)}validate(e){return G0.string(e,this.defaultValue)}}function h_(c,e,n,i){return typeof c!="string"?e:i&&c in i?i[c]:n.indexOf(c)===-1?e:c}class d_ extends sK{constructor(e,n,i,o,a=void 0){typeof a<"u"&&(a.type="string",a.enum=o,a.default=i),super(e,n,i,a),this._allowedValues=o}validate(e){return h_(e,this.defaultValue,this._allowedValues)}}class Hye extends $h{constructor(e,n,i,o,a,u,h=void 0){typeof h<"u"&&(h.type="string",h.enum=a,h.default=o),super(e,n,i,h),this._allowedValues=a,this._convert=u}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function dhn(c){switch(c){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class hhn extends $h{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[V("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached."),V("accessibilitySupport.on","Optimize for usage with a Screen Reader."),V("accessibilitySupport.off","Assume a screen reader is not attached.")],default:"auto",tags:["accessibility"],description:V("accessibilitySupport","Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,n,i){return i===0?e.accessibilitySupport:i}}class fhn extends $h{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(23,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:V("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:V("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{insertSpace:Cs(n.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:Cs(n.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function _hn(c){switch(c){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var gy;(function(c){c[c.Line=1]="Line",c[c.Block=2]="Block",c[c.Underline=3]="Underline",c[c.LineThin=4]="LineThin",c[c.BlockOutline=5]="BlockOutline",c[c.UnderlineThin=6]="UnderlineThin"})(gy||(gy={}));function phn(c){switch(c){case"line":return gy.Line;case"block":return gy.Block;case"underline":return gy.Underline;case"line-thin":return gy.LineThin;case"block-outline":return gy.BlockOutline;case"underline-thin":return gy.UnderlineThin}}class ghn extends Yoe{constructor(){super(143)}compute(e,n,i){const o=["monaco-editor"];return n.get(39)&&o.push(n.get(39)),e.extraEditorClassName&&o.push(e.extraEditorClassName),n.get(74)==="default"?o.push("mouse-default"):n.get(74)==="copy"&&o.push("mouse-copy"),n.get(112)&&o.push("showUnused"),n.get(141)&&o.push("showDeprecated"),o.join(" ")}}class mhn extends ou{constructor(){super(37,"emptySelectionClipboard",!0,{description:V("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,n,i){return i&&e.emptySelectionClipboard}}class yhn extends $h{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(41,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:V("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[V("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),V("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),V("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:V("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[V("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),V("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),V("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:V("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:V("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:hc},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:V("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:V("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{cursorMoveOnType:Cs(n.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":h_(n.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":h_(n.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:Cs(n.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:Cs(n.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:Cs(n.loop,this.defaultValue.loop)}}}const a3=class a3 extends $h{constructor(){super(51,"fontLigatures",a3.OFF,{anyOf:[{type:"boolean",description:V("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:V("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:V("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"||e.length===0?a3.OFF:e==="true"?a3.ON:e:e?a3.ON:a3.OFF}};a3.OFF='"liga" off, "calt" off',a3.ON='"liga" on, "calt" on';let nO=a3;const l3=class l3 extends $h{constructor(){super(54,"fontVariations",l3.OFF,{anyOf:[{type:"boolean",description:V("fontVariations","Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:V("fontVariationSettings","Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:V("fontVariationsGeneral","Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?l3.OFF:e==="true"?l3.TRANSLATE:e:e?l3.TRANSLATE:l3.OFF}compute(e,n,i){return e.fontInfo.fontVariationSettings}};l3.OFF="normal",l3.TRANSLATE="translate";let bre=l3;class bhn extends Yoe{constructor(){super(50)}compute(e,n,i){return e.fontInfo}}class vhn extends sK{constructor(){super(52,"fontSize",Kb.fontSize,{type:"number",minimum:6,maximum:100,default:Kb.fontSize,description:V("fontSize","Controls the font size in pixels.")})}validate(e){const n=ew.float(e,this.defaultValue);return n===0?Kb.fontSize:ew.clamp(n,6,100)}compute(e,n,i){return e.fontInfo.fontSize}}const jL=class jL extends $h{constructor(){super(53,"fontWeight",Kb.fontWeight,{anyOf:[{type:"number",minimum:jL.MINIMUM_VALUE,maximum:jL.MAXIMUM_VALUE,errorMessage:V("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:jL.SUGGESTION_VALUES}],default:Kb.fontWeight,description:V("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(eh.clampedInt(e,Kb.fontWeight,jL.MINIMUM_VALUE,jL.MAXIMUM_VALUE))}};jL.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"],jL.MINIMUM_VALUE=1,jL.MAXIMUM_VALUE=1e3;let iVe=jL;class Chn extends $h{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",multipleTests:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:"",alternativeTestsCommand:""},n={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[V("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),V("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),V("editor.gotoLocation.multiple.goto","Go to the primary result and enable Peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(58,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:V("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":{description:V("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist."),...n},"editor.gotoLocation.multipleTypeDefinitions":{description:V("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist."),...n},"editor.gotoLocation.multipleDeclarations":{description:V("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist."),...n},"editor.gotoLocation.multipleImplementations":{description:V("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist."),...n},"editor.gotoLocation.multipleReferences":{description:V("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist."),...n},"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:V("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:V("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:V("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:V("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:V("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{multiple:h_(n.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:n.multipleDefinitions??h_(n.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:n.multipleTypeDefinitions??h_(n.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:n.multipleDeclarations??h_(n.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:n.multipleImplementations??h_(n.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:n.multipleReferences??h_(n.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),multipleTests:n.multipleTests??h_(n.multipleTests,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:G0.string(n.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:G0.string(n.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:G0.string(n.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:G0.string(n.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:G0.string(n.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand),alternativeTestsCommand:G0.string(n.alternativeTestsCommand,this.defaultValue.alternativeTestsCommand)}}}class Shn extends $h{constructor(){const e={enabled:!0,delay:300,hidingDelay:300,sticky:!0,above:!0};super(60,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:V("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:V("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:V("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.hidingDelay":{type:"integer",minimum:0,default:e.hidingDelay,description:V("hover.hidingDelay","Controls the delay in milliseconds after which the hover is hidden. Requires `editor.hover.sticky` to be enabled.")},"editor.hover.above":{type:"boolean",default:e.above,description:V("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:Cs(n.enabled,this.defaultValue.enabled),delay:eh.clampedInt(n.delay,this.defaultValue.delay,0,1e4),sticky:Cs(n.sticky,this.defaultValue.sticky),hidingDelay:eh.clampedInt(n.hidingDelay,this.defaultValue.hidingDelay,0,6e5),above:Cs(n.above,this.defaultValue.above)}}}class Fq extends Yoe{constructor(){super(146)}compute(e,n,i){return Fq.computeLayout(n,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio,glyphMarginDecorationLaneCount:e.glyphMarginDecorationLaneCount})}static computeContainedMinimapLineCount(e){const n=e.height/e.lineHeight,i=Math.floor(e.paddingTop/e.lineHeight);let o=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(o=Math.max(o,n-1));const a=(i+e.viewLineCount+o)/(e.pixelRatio*e.height),u=Math.floor(e.viewLineCount/a);return{typicalViewportLineCount:n,extraLinesBeforeFirstLine:i,extraLinesBeyondLastLine:o,desiredRatio:a,minimapLineCount:u}}static _computeMinimapLayout(e,n){const i=e.outerWidth,o=e.outerHeight,a=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(a*o),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:o};const u=n.stableMinimapLayoutInput,h=u&&e.outerHeight===u.outerHeight&&e.lineHeight===u.lineHeight&&e.typicalHalfwidthCharacterWidth===u.typicalHalfwidthCharacterWidth&&e.pixelRatio===u.pixelRatio&&e.scrollBeyondLastLine===u.scrollBeyondLastLine&&e.paddingTop===u.paddingTop&&e.paddingBottom===u.paddingBottom&&e.minimap.enabled===u.minimap.enabled&&e.minimap.side===u.minimap.side&&e.minimap.size===u.minimap.size&&e.minimap.showSlider===u.minimap.showSlider&&e.minimap.renderCharacters===u.minimap.renderCharacters&&e.minimap.maxColumn===u.minimap.maxColumn&&e.minimap.scale===u.minimap.scale&&e.verticalScrollbarWidth===u.verticalScrollbarWidth&&e.isViewportWrapping===u.isViewportWrapping,g=e.lineHeight,b=e.typicalHalfwidthCharacterWidth,x=e.scrollBeyondLastLine,w=e.minimap.renderCharacters;let k=a>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const P=e.minimap.maxColumn,A=e.minimap.size,B=e.minimap.side,X=e.verticalScrollbarWidth,Q=e.viewLineCount,ne=e.remainingWidth,ge=e.isViewportWrapping,ye=w?2:3;let Me=Math.floor(a*o);const Je=Me/a;let Be=!1,ft=!1,gt=ye*k,bn=k/a,ht=1;if(A==="fill"||A==="fit"){const{typicalViewportLineCount:Li,extraLinesBeforeFirstLine:Gn,extraLinesBeyondLastLine:Wi,desiredRatio:ci,minimapLineCount:cs}=Fq.computeContainedMinimapLineCount({viewLineCount:Q,scrollBeyondLastLine:x,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:o,lineHeight:g,pixelRatio:a});if(Q/cs>1)Be=!0,ft=!0,k=1,gt=1,bn=k/a;else{let Ba=!1,Wa=k+1;if(A==="fit"){const Dr=Math.ceil((Gn+Q+Wi)*gt);ge&&h&&ne<=n.stableFitRemainingWidth?(Ba=!0,Wa=n.stableFitMaxMinimapScale):Ba=Dr>Me}if(A==="fill"||Ba){Be=!0;const Dr=k;gt=Math.min(g*a,Math.max(1,Math.floor(1/ci))),ge&&h&&ne<=n.stableFitRemainingWidth&&(Wa=n.stableFitMaxMinimapScale),k=Math.min(Wa,Math.max(1,Math.floor(gt/ye))),k>Dr&&(ht=Math.min(2,k/Dr)),bn=k/a/ht,Me=Math.ceil(Math.max(Li,Gn+Q+Wi)*gt),ge?(n.stableMinimapLayoutInput=e,n.stableFitRemainingWidth=ne,n.stableFitMaxMinimapScale=k):(n.stableMinimapLayoutInput=null,n.stableFitRemainingWidth=0)}}}const Mt=Math.floor(P*bn),sn=Math.min(Mt,Math.max(0,Math.floor((ne-X-2)*bn/(b+bn)))+ML);let pt=Math.floor(a*sn);const cn=pt/a;pt=Math.floor(pt*ht);const Qt=w?1:2,vt=B==="left"?0:i-sn-X;return{renderMinimap:Qt,minimapLeft:vt,minimapWidth:sn,minimapHeightIsEditorHeight:Be,minimapIsSampling:ft,minimapScale:k,minimapLineHeight:gt,minimapCanvasInnerWidth:pt,minimapCanvasInnerHeight:Me,minimapCanvasOuterWidth:cn,minimapCanvasOuterHeight:Je}}static computeLayout(e,n){const i=n.outerWidth|0,o=n.outerHeight|0,a=n.lineHeight|0,u=n.lineNumbersDigitCount|0,h=n.typicalHalfwidthCharacterWidth,g=n.maxDigitWidth,b=n.pixelRatio,x=n.viewLineCount,w=e.get(138),k=w==="inherit"?e.get(137):w,P=k==="inherit"?e.get(133):k,A=e.get(136),B=n.isDominatedByLongLines,X=e.get(57),Q=e.get(68).renderType!==0,ne=e.get(69),ge=e.get(106),ye=e.get(84),Me=e.get(73),Je=e.get(104),Be=Je.verticalScrollbarSize,ft=Je.verticalHasArrows,gt=Je.arrowSize,bn=Je.horizontalScrollbarSize,ht=e.get(43),Mt=e.get(111)!=="never";let sn=e.get(66);ht&&Mt&&(sn+=16);let pt=0;if(Q){const Yu=Math.max(u,ne);pt=Math.round(Yu*g)}let cn=0;X&&(cn=a*n.glyphMarginDecorationLaneCount);let Qt=0,vt=Qt+cn,Li=vt+pt,Gn=Li+sn;const Wi=i-cn-pt-sn;let ci=!1,cs=!1,ys=-1;k==="inherit"&&B?(ci=!0,cs=!0):P==="on"||P==="bounded"?cs=!0:P==="wordWrapColumn"&&(ys=A);const Ba=Fq._computeMinimapLayout({outerWidth:i,outerHeight:o,lineHeight:a,typicalHalfwidthCharacterWidth:h,pixelRatio:b,scrollBeyondLastLine:ge,paddingTop:ye.top,paddingBottom:ye.bottom,minimap:Me,verticalScrollbarWidth:Be,viewLineCount:x,remainingWidth:Wi,isViewportWrapping:cs},n.memory||new GDt);Ba.renderMinimap!==0&&Ba.minimapLeft===0&&(Qt+=Ba.minimapWidth,vt+=Ba.minimapWidth,Li+=Ba.minimapWidth,Gn+=Ba.minimapWidth);const Wa=Wi-Ba.minimapWidth,Dr=Math.max(1,Math.floor((Wa-Be-2)/h)),Hu=ft?gt:0;return cs&&(ys=Math.max(1,Dr),P==="bounded"&&(ys=Math.min(ys,A))),{width:i,height:o,glyphMarginLeft:Qt,glyphMarginWidth:cn,glyphMarginDecorationLaneCount:n.glyphMarginDecorationLaneCount,lineNumbersLeft:vt,lineNumbersWidth:pt,decorationsLeft:Li,decorationsWidth:sn,contentLeft:Gn,contentWidth:Wa,minimap:Ba,viewportColumn:Dr,isWordWrapMinified:ci,isViewportWrapping:cs,wrappingColumn:ys,verticalScrollbarWidth:Be,horizontalScrollbarHeight:bn,overviewRuler:{top:Hu,width:Be,height:o-2*Hu,right:0}}}}class xhn extends $h{constructor(){super(140,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[V("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),V("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:V("wrappingStrategy","Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(e){return h_(e,"simple",["simple","advanced"])}compute(e,n,i){return n.get(2)===2?"advanced":i}}var $T;(function(c){c.Off="off",c.OnCode="onCode",c.On="on"})($T||($T={}));class whn extends $h{constructor(){const e={enabled:$T.OnCode};super(65,"lightbulb",e,{"editor.lightbulb.enabled":{type:"string",tags:["experimental"],enum:[$T.Off,$T.OnCode,$T.On],default:e.enabled,enumDescriptions:[V("editor.lightbulb.enabled.off","Disable the code action menu."),V("editor.lightbulb.enabled.onCode","Show the code action menu when the cursor is on lines with code."),V("editor.lightbulb.enabled.on","Show the code action menu when the cursor is on lines with code or on empty lines.")],description:V("enabled","Enables the Code Action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:h_(e.enabled,this.defaultValue.enabled,[$T.Off,$T.OnCode,$T.On])}}}class khn extends $h{constructor(){const e={enabled:!0,maxLineCount:5,defaultModel:"outlineModel",scrollWithEditor:!0};super(116,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:V("editor.stickyScroll.enabled","Shows the nested current scopes during the scroll at the top of the editor."),tags:["experimental"]},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:20,description:V("editor.stickyScroll.maxLineCount","Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:e.defaultModel,description:V("editor.stickyScroll.defaultModel","Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.")},"editor.stickyScroll.scrollWithEditor":{type:"boolean",default:e.scrollWithEditor,description:V("editor.stickyScroll.scrollWithEditor","Enable scrolling of Sticky Scroll with the editor's horizontal scrollbar.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:Cs(n.enabled,this.defaultValue.enabled),maxLineCount:eh.clampedInt(n.maxLineCount,this.defaultValue.maxLineCount,1,20),defaultModel:h_(n.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"]),scrollWithEditor:Cs(n.scrollWithEditor,this.defaultValue.scrollWithEditor)}}}class Thn extends $h{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(142,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:V("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[V("editor.inlayHints.on","Inlay hints are enabled"),V("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",hc?"Ctrl+Option":"Ctrl+Alt"),V("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",hc?"Ctrl+Option":"Ctrl+Alt"),V("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:V("inlayHints.fontSize","Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:V("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:V("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return typeof n.enabled=="boolean"&&(n.enabled=n.enabled?"on":"off"),{enabled:h_(n.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:eh.clampedInt(n.fontSize,this.defaultValue.fontSize,0,100),fontFamily:G0.string(n.fontFamily,this.defaultValue.fontFamily),padding:Cs(n.padding,this.defaultValue.padding)}}}class Dhn extends $h{constructor(){super(66,"lineDecorationsWidth",10)}validate(e){return typeof e=="string"&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):eh.clampedInt(e,this.defaultValue,0,1e3)}compute(e,n,i){return i<0?eh.clampedInt(-i*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):i}}class Nhn extends ew{constructor(){super(67,"lineHeight",Kb.lineHeight,e=>ew.clamp(e,0,150),{markdownDescription:V("lineHeight",`Controls the line height.
|
|
3
3
|
- Use 0 to automatically compute the line height from the font size.
|
|
4
4
|
- Values between 0 and 8 will be used as a multiplier with the font size.
|
|
5
5
|
- Values greater than or equal to 8 will be used as effective values.`)})}compute(e,n,i){return e.fontInfo.lineHeight}}class Ehn extends $h{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1,showRegionSectionHeaders:!0,showMarkSectionHeaders:!0,sectionHeaderFontSize:9,sectionHeaderLetterSpacing:1};super(73,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:V("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:e.autohide,description:V("minimap.autohide","Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[V("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),V("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),V("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:V("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:V("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:V("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:V("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:V("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:V("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")},"editor.minimap.showRegionSectionHeaders":{type:"boolean",default:e.showRegionSectionHeaders,description:V("minimap.showRegionSectionHeaders","Controls whether named regions are shown as section headers in the minimap.")},"editor.minimap.showMarkSectionHeaders":{type:"boolean",default:e.showMarkSectionHeaders,description:V("minimap.showMarkSectionHeaders","Controls whether MARK: comments are shown as section headers in the minimap.")},"editor.minimap.sectionHeaderFontSize":{type:"number",default:e.sectionHeaderFontSize,description:V("minimap.sectionHeaderFontSize","Controls the font size of section headers in the minimap.")},"editor.minimap.sectionHeaderLetterSpacing":{type:"number",default:e.sectionHeaderLetterSpacing,description:V("minimap.sectionHeaderLetterSpacing","Controls the amount of space (in pixels) between characters of section header. This helps the readability of the header in small font sizes.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:Cs(n.enabled,this.defaultValue.enabled),autohide:Cs(n.autohide,this.defaultValue.autohide),size:h_(n.size,this.defaultValue.size,["proportional","fill","fit"]),side:h_(n.side,this.defaultValue.side,["right","left"]),showSlider:h_(n.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:Cs(n.renderCharacters,this.defaultValue.renderCharacters),scale:eh.clampedInt(n.scale,1,1,3),maxColumn:eh.clampedInt(n.maxColumn,this.defaultValue.maxColumn,1,1e4),showRegionSectionHeaders:Cs(n.showRegionSectionHeaders,this.defaultValue.showRegionSectionHeaders),showMarkSectionHeaders:Cs(n.showMarkSectionHeaders,this.defaultValue.showMarkSectionHeaders),sectionHeaderFontSize:ew.clamp(n.sectionHeaderFontSize??this.defaultValue.sectionHeaderFontSize,4,32),sectionHeaderLetterSpacing:ew.clamp(n.sectionHeaderLetterSpacing??this.defaultValue.sectionHeaderLetterSpacing,0,5)}}}function Ihn(c){return c==="ctrlCmd"?hc?"metaKey":"ctrlKey":"altKey"}class Lhn extends $h{constructor(){super(84,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:V("padding.top","Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:V("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{top:eh.clampedInt(n.top,0,0,1e3),bottom:eh.clampedInt(n.bottom,0,0,1e3)}}}class Phn extends $h{constructor(){const e={enabled:!0,cycle:!0};super(86,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:V("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:V("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:Cs(n.enabled,this.defaultValue.enabled),cycle:Cs(n.cycle,this.defaultValue.cycle)}}}class Ahn extends Yoe{constructor(){super(144)}compute(e,n,i){return e.pixelRatio}}class Fhn extends $h{constructor(){super(88,"placeholder",void 0)}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e:this.defaultValue}}class Mhn extends $h{constructor(){const e={other:"on",comments:"off",strings:"off"},n=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[V("on","Quick suggestions show inside the suggest widget"),V("inline","Quick suggestions show as ghost text"),V("off","Quick suggestions are disabled")]}];super(90,"quickSuggestions",e,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:n,default:e.strings,description:V("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{anyOf:n,default:e.comments,description:V("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{anyOf:n,default:e.other,description:V("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}},default:e,markdownDescription:V("quickSuggestions","Controls whether suggestions should automatically show up while typing. This can be controlled for typing in comments, strings, and other code. Quick suggestion can be configured to show as ghost text or with the suggest widget. Also be aware of the {0}-setting which controls if suggestions are triggered by special characters.","`#editor.suggestOnTriggerCharacters#`")}),this.defaultValue=e}validate(e){if(typeof e=="boolean"){const b=e?"on":"off";return{comments:b,strings:b,other:b}}if(!e||typeof e!="object")return this.defaultValue;const{other:n,comments:i,strings:o}=e,a=["on","inline","off"];let u,h,g;return typeof n=="boolean"?u=n?"on":"off":u=h_(n,this.defaultValue.other,a),typeof i=="boolean"?h=i?"on":"off":h=h_(i,this.defaultValue.comments,a),typeof o=="boolean"?g=o?"on":"off":g=h_(o,this.defaultValue.strings,a),{other:u,comments:h,strings:g}}}class Ohn extends $h{constructor(){super(68,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[V("lineNumbers.off","Line numbers are not rendered."),V("lineNumbers.on","Line numbers are rendered as absolute number."),V("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),V("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:V("lineNumbers","Controls the display of line numbers.")})}validate(e){let n=this.defaultValue.renderType,i=this.defaultValue.renderFn;return typeof e<"u"&&(typeof e=="function"?(n=4,i=e):e==="interval"?n=3:e==="relative"?n=2:e==="on"?n=1:n=0),{renderType:n,renderFn:i}}}function nbe(c){const e=c.get(99);return e==="editable"?c.get(92):e!=="on"}class Rhn extends $h{constructor(){const e=[],n={type:"number",description:V("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(103,"rulers",e,{type:"array",items:{anyOf:[n,{type:["object"],properties:{column:n,color:{type:"string",description:V("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:V("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(e){if(Array.isArray(e)){const n=[];for(const i of e)if(typeof i=="number")n.push({column:eh.clampedInt(i,0,0,1e4),color:null});else if(i&&typeof i=="object"){const o=i;n.push({column:eh.clampedInt(o.column,0,0,1e4),color:o.color})}return n.sort((i,o)=>i.column-o.column),n}return this.defaultValue}}class Bhn extends $h{constructor(){super(93,"readOnlyMessage",void 0)}validate(e){return!e||typeof e!="object"?this.defaultValue:e}}function Qvt(c,e){if(typeof c!="string")return e;switch(c){case"hidden":return 2;case"visible":return 3;default:return 1}}let Whn=class extends $h{constructor(){const e={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1,ignoreHorizontalScrollbarInContentHeight:!1};super(104,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[V("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),V("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),V("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:V("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[V("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),V("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),V("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:V("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:V("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:V("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:V("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")},"editor.scrollbar.ignoreHorizontalScrollbarInContentHeight":{type:"boolean",default:e.ignoreHorizontalScrollbarInContentHeight,description:V("scrollbar.ignoreHorizontalScrollbarInContentHeight","When set, the horizontal scrollbar will not increase the size of the editor's content.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e,i=eh.clampedInt(n.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),o=eh.clampedInt(n.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:eh.clampedInt(n.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:Qvt(n.vertical,this.defaultValue.vertical),horizontal:Qvt(n.horizontal,this.defaultValue.horizontal),useShadows:Cs(n.useShadows,this.defaultValue.useShadows),verticalHasArrows:Cs(n.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:Cs(n.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:Cs(n.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:Cs(n.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:i,horizontalSliderSize:eh.clampedInt(n.horizontalSliderSize,i,0,1e3),verticalScrollbarSize:o,verticalSliderSize:eh.clampedInt(n.verticalSliderSize,o,0,1e3),scrollByPage:Cs(n.scrollByPage,this.defaultValue.scrollByPage),ignoreHorizontalScrollbarInContentHeight:Cs(n.ignoreHorizontalScrollbarInContentHeight,this.defaultValue.ignoreHorizontalScrollbarInContentHeight)}}};const zx="inUntrustedWorkspace",Qv={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments",includeStrings:"editor.unicodeHighlight.includeStrings",allowedLocales:"editor.unicodeHighlight.allowedLocales"};class Vhn extends $h{constructor(){const e={nonBasicASCII:zx,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:zx,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(126,"unicodeHighlight",e,{[Qv.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,zx],default:e.nonBasicASCII,description:V("unicodeHighlight.nonBasicASCII","Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.")},[Qv.invisibleCharacters]:{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:V("unicodeHighlight.invisibleCharacters","Controls whether characters that just reserve space or have no width at all are highlighted.")},[Qv.ambiguousCharacters]:{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:V("unicodeHighlight.ambiguousCharacters","Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},[Qv.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,zx],default:e.includeComments,description:V("unicodeHighlight.includeComments","Controls whether characters in comments should also be subject to Unicode highlighting.")},[Qv.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,zx],default:e.includeStrings,description:V("unicodeHighlight.includeStrings","Controls whether characters in strings should also be subject to Unicode highlighting.")},[Qv.allowedCharacters]:{restricted:!0,type:"object",default:e.allowedCharacters,description:V("unicodeHighlight.allowedCharacters","Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[Qv.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:e.allowedLocales,description:V("unicodeHighlight.allowedLocales","Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(e,n){let i=!1;n.allowedCharacters&&e&&(DS(e.allowedCharacters,n.allowedCharacters)||(e={...e,allowedCharacters:n.allowedCharacters},i=!0)),n.allowedLocales&&e&&(DS(e.allowedLocales,n.allowedLocales)||(e={...e,allowedLocales:n.allowedLocales},i=!0));const o=super.applyUpdate(e,n);return i?new uie(o.newValue,!0):o}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{nonBasicASCII:Mq(n.nonBasicASCII,zx,[!0,!1,zx]),invisibleCharacters:Cs(n.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:Cs(n.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:Mq(n.includeComments,zx,[!0,!1,zx]),includeStrings:Mq(n.includeStrings,zx,[!0,!1,zx]),allowedCharacters:this.validateBooleanMap(e.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(e.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(e,n){if(typeof e!="object"||!e)return n;const i={};for(const[o,a]of Object.entries(e))a===!0&&(i[o]=!0);return i}}class jhn extends $h{constructor(){const e={enabled:!0,mode:"subwordSmart",showToolbar:"onHover",suppressSuggestions:!1,keepOnBlur:!1,fontFamily:"default"};super(62,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:V("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")},"editor.inlineSuggest.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[V("inlineSuggest.showToolbar.always","Show the inline suggestion toolbar whenever an inline suggestion is shown."),V("inlineSuggest.showToolbar.onHover","Show the inline suggestion toolbar when hovering over an inline suggestion."),V("inlineSuggest.showToolbar.never","Never show the inline suggestion toolbar.")],description:V("inlineSuggest.showToolbar","Controls when to show the inline suggestion toolbar.")},"editor.inlineSuggest.suppressSuggestions":{type:"boolean",default:e.suppressSuggestions,description:V("inlineSuggest.suppressSuggestions","Controls how inline suggestions interact with the suggest widget. If enabled, the suggest widget is not shown automatically when inline suggestions are available.")},"editor.inlineSuggest.fontFamily":{type:"string",default:e.fontFamily,description:V("inlineSuggest.fontFamily","Controls the font family of the inline suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:Cs(n.enabled,this.defaultValue.enabled),mode:h_(n.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"]),showToolbar:h_(n.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),suppressSuggestions:Cs(n.suppressSuggestions,this.defaultValue.suppressSuggestions),keepOnBlur:Cs(n.keepOnBlur,this.defaultValue.keepOnBlur),fontFamily:G0.string(n.fontFamily,this.defaultValue.fontFamily)}}}class zhn extends $h{constructor(){const e={enabled:!1,showToolbar:"onHover",fontFamily:"default",keepOnBlur:!1};super(63,"experimentalInlineEdit",e,{"editor.experimentalInlineEdit.enabled":{type:"boolean",default:e.enabled,description:V("inlineEdit.enabled","Controls whether to show inline edits in the editor.")},"editor.experimentalInlineEdit.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[V("inlineEdit.showToolbar.always","Show the inline edit toolbar whenever an inline suggestion is shown."),V("inlineEdit.showToolbar.onHover","Show the inline edit toolbar when hovering over an inline suggestion."),V("inlineEdit.showToolbar.never","Never show the inline edit toolbar.")],description:V("inlineEdit.showToolbar","Controls when to show the inline edit toolbar.")},"editor.experimentalInlineEdit.fontFamily":{type:"string",default:e.fontFamily,description:V("inlineEdit.fontFamily","Controls the font family of the inline edit.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:Cs(n.enabled,this.defaultValue.enabled),showToolbar:h_(n.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),fontFamily:G0.string(n.fontFamily,this.defaultValue.fontFamily),keepOnBlur:Cs(n.keepOnBlur,this.defaultValue.keepOnBlur)}}}class Hhn extends $h{constructor(){const e={enabled:O1.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:O1.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(15,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,markdownDescription:V("bracketPairColorization.enabled","Controls whether bracket pair colorization is enabled or not. Use {0} to override the bracket highlight colors.","`#workbench.colorCustomizations#`")},"editor.bracketPairColorization.independentColorPoolPerBracketType":{type:"boolean",default:e.independentColorPoolPerBracketType,description:V("bracketPairColorization.independentColorPoolPerBracketType","Controls whether each bracket type has its own independent color pool.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:Cs(n.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:Cs(n.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}class Uhn extends $h{constructor(){const e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(16,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[V("editor.guides.bracketPairs.true","Enables bracket pair guides."),V("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),V("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:e.bracketPairs,description:V("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[V("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),V("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),V("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:V("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:V("editor.guides.highlightActiveBracketPair","Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:V("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[V("editor.guides.highlightActiveIndentation.true","Highlights the active indent guide."),V("editor.guides.highlightActiveIndentation.always","Highlights the active indent guide even if bracket guides are highlighted."),V("editor.guides.highlightActiveIndentation.false","Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:V("editor.guides.highlightActiveIndentation","Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{bracketPairs:Mq(n.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:Mq(n.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:Cs(n.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:Cs(n.indentation,this.defaultValue.indentation),highlightActiveIndentation:Mq(n.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}function Mq(c,e,n){const i=n.indexOf(c);return i===-1?e:n[i]}class $hn extends $h{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!1,localityBonus:!1,shareSuggestSelections:!1,selectionMode:"always",showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,matchOnWordStartOnly:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(119,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[V("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),V("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:V("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:V("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:V("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:V("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.selectionMode":{type:"string",enum:["always","never","whenTriggerCharacter","whenQuickSuggestion"],enumDescriptions:[V("suggest.insertMode.always","Always select a suggestion when automatically triggering IntelliSense."),V("suggest.insertMode.never","Never select a suggestion when automatically triggering IntelliSense."),V("suggest.insertMode.whenTriggerCharacter","Select a suggestion only when triggering IntelliSense from a trigger character."),V("suggest.insertMode.whenQuickSuggestion","Select a suggestion only when triggering IntelliSense as you type.")],default:e.selectionMode,markdownDescription:V("suggest.selectionMode","Controls whether a suggestion is selected when the widget shows. Note that this only applies to automatically triggered suggestions ({0} and {1}) and that a suggestion is always selected when explicitly invoked, e.g via `Ctrl+Space`.","`#editor.quickSuggestions#`","`#editor.suggestOnTriggerCharacters#`")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:V("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:V("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:V("suggest.showStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:V("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:V("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget.")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:V("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:V("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.matchOnWordStartOnly","When enabled IntelliSense filtering requires that the first character matches on a word start. For example, `c` on `Console` or `WebContext` but _not_ on `description`. When disabled IntelliSense will show more results but still sorts them by match quality.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{insertMode:h_(n.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:Cs(n.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:Cs(n.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:Cs(n.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:Cs(n.shareSuggestSelections,this.defaultValue.shareSuggestSelections),selectionMode:h_(n.selectionMode,this.defaultValue.selectionMode,["always","never","whenQuickSuggestion","whenTriggerCharacter"]),showIcons:Cs(n.showIcons,this.defaultValue.showIcons),showStatusBar:Cs(n.showStatusBar,this.defaultValue.showStatusBar),preview:Cs(n.preview,this.defaultValue.preview),previewMode:h_(n.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:Cs(n.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:Cs(n.showMethods,this.defaultValue.showMethods),showFunctions:Cs(n.showFunctions,this.defaultValue.showFunctions),showConstructors:Cs(n.showConstructors,this.defaultValue.showConstructors),showDeprecated:Cs(n.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:Cs(n.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:Cs(n.showFields,this.defaultValue.showFields),showVariables:Cs(n.showVariables,this.defaultValue.showVariables),showClasses:Cs(n.showClasses,this.defaultValue.showClasses),showStructs:Cs(n.showStructs,this.defaultValue.showStructs),showInterfaces:Cs(n.showInterfaces,this.defaultValue.showInterfaces),showModules:Cs(n.showModules,this.defaultValue.showModules),showProperties:Cs(n.showProperties,this.defaultValue.showProperties),showEvents:Cs(n.showEvents,this.defaultValue.showEvents),showOperators:Cs(n.showOperators,this.defaultValue.showOperators),showUnits:Cs(n.showUnits,this.defaultValue.showUnits),showValues:Cs(n.showValues,this.defaultValue.showValues),showConstants:Cs(n.showConstants,this.defaultValue.showConstants),showEnums:Cs(n.showEnums,this.defaultValue.showEnums),showEnumMembers:Cs(n.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:Cs(n.showKeywords,this.defaultValue.showKeywords),showWords:Cs(n.showWords,this.defaultValue.showWords),showColors:Cs(n.showColors,this.defaultValue.showColors),showFiles:Cs(n.showFiles,this.defaultValue.showFiles),showReferences:Cs(n.showReferences,this.defaultValue.showReferences),showFolders:Cs(n.showFolders,this.defaultValue.showFolders),showTypeParameters:Cs(n.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:Cs(n.showSnippets,this.defaultValue.showSnippets),showUsers:Cs(n.showUsers,this.defaultValue.showUsers),showIssues:Cs(n.showIssues,this.defaultValue.showIssues)}}}class qhn extends $h{constructor(){super(114,"smartSelect",{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:V("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"},"editor.smartSelect.selectSubwords":{description:V("selectSubwords","Whether subwords (like 'foo' in 'fooBar' or 'foo_bar') should be selected."),default:!0,type:"boolean"}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{selectLeadingAndTrailingWhitespace:Cs(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace),selectSubwords:Cs(e.selectSubwords,this.defaultValue.selectSubwords)}}}class Ghn extends $h{constructor(){const e=[];super(131,"wordSegmenterLocales",e,{anyOf:[{description:V("wordSegmenterLocales","Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"string"},{description:V("wordSegmenterLocales","Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"array",items:{type:"string"}}]})}validate(e){if(typeof e=="string"&&(e=[e]),Array.isArray(e)){const n=[];for(const i of e)if(typeof i=="string")try{Intl.Segmenter.supportedLocalesOf(i).length>0&&n.push(i)}catch{}return n}return this.defaultValue}}class Khn extends $h{constructor(){super(139,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[V("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),V("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),V("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),V("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:V("wrappingIndent","Controls the indentation of wrapped lines."),default:"same"}})}validate(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}return 1}compute(e,n,i){return n.get(2)===2?0:i}}class Jhn extends Yoe{constructor(){super(147)}compute(e,n,i){const o=n.get(146);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:o.isWordWrapMinified,isViewportWrapping:o.isViewportWrapping,wrappingColumn:o.wrappingColumn}}}class Xhn extends $h{constructor(){const e={enabled:!0,showDropSelector:"afterDrop"};super(36,"dropIntoEditor",e,{"editor.dropIntoEditor.enabled":{type:"boolean",default:e.enabled,markdownDescription:V("dropIntoEditor.enabled","Controls whether you can drag and drop a file into a text editor by holding down the `Shift` key (instead of opening the file in an editor).")},"editor.dropIntoEditor.showDropSelector":{type:"string",markdownDescription:V("dropIntoEditor.showDropSelector","Controls if a widget is shown when dropping files into the editor. This widget lets you control how the file is dropped."),enum:["afterDrop","never"],enumDescriptions:[V("dropIntoEditor.showDropSelector.afterDrop","Show the drop selector widget after a file is dropped into the editor."),V("dropIntoEditor.showDropSelector.never","Never show the drop selector widget. Instead the default drop provider is always used.")],default:"afterDrop"}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:Cs(n.enabled,this.defaultValue.enabled),showDropSelector:h_(n.showDropSelector,this.defaultValue.showDropSelector,["afterDrop","never"])}}}class Yhn extends $h{constructor(){const e={enabled:!0,showPasteSelector:"afterPaste"};super(85,"pasteAs",e,{"editor.pasteAs.enabled":{type:"boolean",default:e.enabled,markdownDescription:V("pasteAs.enabled","Controls whether you can paste content in different ways.")},"editor.pasteAs.showPasteSelector":{type:"string",markdownDescription:V("pasteAs.showPasteSelector","Controls if a widget is shown when pasting content in to the editor. This widget lets you control how the file is pasted."),enum:["afterPaste","never"],enumDescriptions:[V("pasteAs.showPasteSelector.afterPaste","Show the paste selector widget after content is pasted into the editor."),V("pasteAs.showPasteSelector.never","Never show the paste selector widget. Instead the default pasting behavior is always used.")],default:"afterPaste"}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:Cs(n.enabled,this.defaultValue.enabled),showPasteSelector:h_(n.showPasteSelector,this.defaultValue.showPasteSelector,["afterPaste","never"])}}}const Zhn="Consolas, 'Courier New', monospace",Qhn="Menlo, Monaco, 'Courier New', monospace",efn="'Droid Sans Mono', 'monospace', monospace",Kb={fontFamily:hc?Qhn:Xb?efn:Zhn,fontWeight:"normal",fontSize:hc?12:14,lineHeight:0,letterSpacing:0},q$=[];function Pr(c){return q$[c.id]=c,c}const ME={acceptSuggestionOnCommitCharacter:Pr(new ou(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:V("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:Pr(new d_(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",V("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:V("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:Pr(new hhn),accessibilityPageSize:Pr(new eh(3,"accessibilityPageSize",10,1,1073741824,{description:V("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default."),tags:["accessibility"]})),ariaLabel:Pr(new G0(4,"ariaLabel",V("editorViewAccessibleLabel","Editor content"))),ariaRequired:Pr(new ou(5,"ariaRequired",!1,void 0)),screenReaderAnnounceInlineSuggestion:Pr(new ou(8,"screenReaderAnnounceInlineSuggestion",!0,{description:V("screenReaderAnnounceInlineSuggestion","Control whether inline suggestions are announced by a screen reader."),tags:["accessibility"]})),autoClosingBrackets:Pr(new d_(6,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",V("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),V("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:V("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingComments:Pr(new d_(7,"autoClosingComments","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",V("editor.autoClosingComments.languageDefined","Use language configurations to determine when to autoclose comments."),V("editor.autoClosingComments.beforeWhitespace","Autoclose comments only when the cursor is to the left of whitespace."),""],description:V("autoClosingComments","Controls whether the editor should automatically close comments after the user adds an opening comment.")})),autoClosingDelete:Pr(new d_(9,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",V("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:V("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:Pr(new d_(10,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",V("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:V("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:Pr(new d_(11,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",V("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),V("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:V("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:Pr(new Hye(12,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],dhn,{enumDescriptions:[V("editor.autoIndent.none","The editor will not insert indentation automatically."),V("editor.autoIndent.keep","The editor will keep the current line's indentation."),V("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),V("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),V("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:V("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:Pr(new ou(13,"automaticLayout",!1)),autoSurround:Pr(new d_(14,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[V("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),V("editor.autoSurround.quotes","Surround with quotes but not brackets."),V("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:V("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:Pr(new Hhn),bracketPairGuides:Pr(new Uhn),stickyTabStops:Pr(new ou(117,"stickyTabStops",!1,{description:V("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:Pr(new ou(17,"codeLens",!0,{description:V("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:Pr(new G0(18,"codeLensFontFamily","",{description:V("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:Pr(new eh(19,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:V("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")})),colorDecorators:Pr(new ou(20,"colorDecorators",!0,{description:V("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),colorDecoratorActivatedOn:Pr(new d_(149,"colorDecoratorsActivatedOn","clickAndHover",["clickAndHover","hover","click"],{enumDescriptions:[V("editor.colorDecoratorActivatedOn.clickAndHover","Make the color picker appear both on click and hover of the color decorator"),V("editor.colorDecoratorActivatedOn.hover","Make the color picker appear on hover of the color decorator"),V("editor.colorDecoratorActivatedOn.click","Make the color picker appear on click of the color decorator")],description:V("colorDecoratorActivatedOn","Controls the condition to make a color picker appear from a color decorator")})),colorDecoratorsLimit:Pr(new eh(21,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:V("colorDecoratorsLimit","Controls the max number of color decorators that can be rendered in an editor at once.")})),columnSelection:Pr(new ou(22,"columnSelection",!1,{description:V("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:Pr(new fhn),contextmenu:Pr(new ou(24,"contextmenu",!0)),copyWithSyntaxHighlighting:Pr(new ou(25,"copyWithSyntaxHighlighting",!0,{description:V("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:Pr(new Hye(26,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],_hn,{description:V("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:Pr(new d_(27,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[V("cursorSmoothCaretAnimation.off","Smooth caret animation is disabled."),V("cursorSmoothCaretAnimation.explicit","Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),V("cursorSmoothCaretAnimation.on","Smooth caret animation is always enabled.")],description:V("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:Pr(new Hye(28,"cursorStyle",gy.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],phn,{description:V("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:Pr(new eh(29,"cursorSurroundingLines",0,0,1073741824,{description:V("cursorSurroundingLines","Controls the minimal number of visible leading lines (minimum 0) and trailing lines (minimum 1) surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:Pr(new d_(30,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[V("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),V("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],markdownDescription:V("cursorSurroundingLinesStyle","Controls when `#editor.cursorSurroundingLines#` should be enforced.")})),cursorWidth:Pr(new eh(31,"cursorWidth",0,0,1073741824,{markdownDescription:V("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:Pr(new ou(32,"disableLayerHinting",!1)),disableMonospaceOptimizations:Pr(new ou(33,"disableMonospaceOptimizations",!1)),domReadOnly:Pr(new ou(34,"domReadOnly",!1)),dragAndDrop:Pr(new ou(35,"dragAndDrop",!0,{description:V("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:Pr(new mhn),dropIntoEditor:Pr(new Xhn),stickyScroll:Pr(new khn),experimentalWhitespaceRendering:Pr(new d_(38,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[V("experimentalWhitespaceRendering.svg","Use a new rendering method with svgs."),V("experimentalWhitespaceRendering.font","Use a new rendering method with font characters."),V("experimentalWhitespaceRendering.off","Use the stable rendering method.")],description:V("experimentalWhitespaceRendering","Controls whether whitespace is rendered with a new, experimental method.")})),extraEditorClassName:Pr(new G0(39,"extraEditorClassName","")),fastScrollSensitivity:Pr(new ew(40,"fastScrollSensitivity",5,c=>c<=0?5:c,{markdownDescription:V("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:Pr(new yhn),fixedOverflowWidgets:Pr(new ou(42,"fixedOverflowWidgets",!1)),folding:Pr(new ou(43,"folding",!0,{description:V("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:Pr(new d_(44,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[V("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),V("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:V("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:Pr(new ou(45,"foldingHighlight",!0,{description:V("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:Pr(new ou(46,"foldingImportsByDefault",!1,{description:V("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:Pr(new eh(47,"foldingMaximumRegions",5e3,10,65e3,{description:V("foldingMaximumRegions","The maximum number of foldable regions. Increasing this value may result in the editor becoming less responsive when the current source has a large number of foldable regions.")})),unfoldOnClickAfterEndOfLine:Pr(new ou(48,"unfoldOnClickAfterEndOfLine",!1,{description:V("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:Pr(new G0(49,"fontFamily",Kb.fontFamily,{description:V("fontFamily","Controls the font family.")})),fontInfo:Pr(new bhn),fontLigatures2:Pr(new nO),fontSize:Pr(new vhn),fontWeight:Pr(new iVe),fontVariations:Pr(new bre),formatOnPaste:Pr(new ou(55,"formatOnPaste",!1,{description:V("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:Pr(new ou(56,"formatOnType",!1,{description:V("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:Pr(new ou(57,"glyphMargin",!0,{description:V("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:Pr(new Chn),hideCursorInOverviewRuler:Pr(new ou(59,"hideCursorInOverviewRuler",!1,{description:V("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:Pr(new Shn),inDiffEditor:Pr(new ou(61,"inDiffEditor",!1)),letterSpacing:Pr(new ew(64,"letterSpacing",Kb.letterSpacing,c=>ew.clamp(c,-5,20),{description:V("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:Pr(new whn),lineDecorationsWidth:Pr(new Dhn),lineHeight:Pr(new Nhn),lineNumbers:Pr(new Ohn),lineNumbersMinChars:Pr(new eh(69,"lineNumbersMinChars",5,1,300)),linkedEditing:Pr(new ou(70,"linkedEditing",!1,{description:V("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.")})),links:Pr(new ou(71,"links",!0,{description:V("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:Pr(new d_(72,"matchBrackets","always",["always","near","never"],{description:V("matchBrackets","Highlight matching brackets.")})),minimap:Pr(new Ehn),mouseStyle:Pr(new d_(74,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:Pr(new ew(75,"mouseWheelScrollSensitivity",1,c=>c===0?1:c,{markdownDescription:V("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:Pr(new ou(76,"mouseWheelZoom",!1,{markdownDescription:hc?V("mouseWheelZoom.mac","Zoom the font of the editor when using mouse wheel and holding `Cmd`."):V("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:Pr(new ou(77,"multiCursorMergeOverlapping",!0,{description:V("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:Pr(new Hye(78,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],Ihn,{markdownEnumDescriptions:[V("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),V("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:V({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the [multicursor modifier](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:Pr(new d_(79,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[V("multiCursorPaste.spread","Each cursor pastes a single line of the text."),V("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:V("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),multiCursorLimit:Pr(new eh(80,"multiCursorLimit",1e4,1,1e5,{markdownDescription:V("multiCursorLimit","Controls the max number of cursors that can be in an active editor at once.")})),occurrencesHighlight:Pr(new d_(81,"occurrencesHighlight","singleFile",["off","singleFile","multiFile"],{markdownEnumDescriptions:[V("occurrencesHighlight.off","Does not highlight occurrences."),V("occurrencesHighlight.singleFile","Highlights occurrences only in the current file."),V("occurrencesHighlight.multiFile","Experimental: Highlights occurrences across all valid open files.")],markdownDescription:V("occurrencesHighlight","Controls whether occurrences should be highlighted across open files.")})),overviewRulerBorder:Pr(new ou(82,"overviewRulerBorder",!0,{description:V("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:Pr(new eh(83,"overviewRulerLanes",3,0,3)),padding:Pr(new Lhn),pasteAs:Pr(new Yhn),parameterHints:Pr(new Phn),peekWidgetDefaultFocus:Pr(new d_(87,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[V("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),V("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:V("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),placeholder:Pr(new Fhn),definitionLinkOpensInPeek:Pr(new ou(89,"definitionLinkOpensInPeek",!1,{description:V("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:Pr(new Mhn),quickSuggestionsDelay:Pr(new eh(91,"quickSuggestionsDelay",10,0,1073741824,{description:V("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:Pr(new ou(92,"readOnly",!1)),readOnlyMessage:Pr(new Bhn),renameOnType:Pr(new ou(94,"renameOnType",!1,{description:V("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:V("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:Pr(new ou(95,"renderControlCharacters",!0,{description:V("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:Pr(new d_(96,"renderFinalNewline",Xb?"dimmed":"on",["off","on","dimmed"],{description:V("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:Pr(new d_(97,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",V("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:V("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:Pr(new ou(98,"renderLineHighlightOnlyWhenFocus",!1,{description:V("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:Pr(new d_(99,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:Pr(new d_(100,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",V("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),V("renderWhitespace.selection","Render whitespace characters only on selected text."),V("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:V("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:Pr(new eh(101,"revealHorizontalRightPadding",15,0,1e3)),roundedSelection:Pr(new ou(102,"roundedSelection",!0,{description:V("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:Pr(new Rhn),scrollbar:Pr(new Whn),scrollBeyondLastColumn:Pr(new eh(105,"scrollBeyondLastColumn",4,0,1073741824,{description:V("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:Pr(new ou(106,"scrollBeyondLastLine",!0,{description:V("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:Pr(new ou(107,"scrollPredominantAxis",!0,{description:V("scrollPredominantAxis","Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:Pr(new ou(108,"selectionClipboard",!0,{description:V("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:Xb})),selectionHighlight:Pr(new ou(109,"selectionHighlight",!0,{description:V("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:Pr(new ou(110,"selectOnLineNumbers",!0)),showFoldingControls:Pr(new d_(111,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[V("showFoldingControls.always","Always show the folding controls."),V("showFoldingControls.never","Never show the folding controls and reduce the gutter size."),V("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:V("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:Pr(new ou(112,"showUnused",!0,{description:V("showUnused","Controls fading out of unused code.")})),showDeprecated:Pr(new ou(141,"showDeprecated",!0,{description:V("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:Pr(new Thn),snippetSuggestions:Pr(new d_(113,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[V("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),V("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),V("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),V("snippetSuggestions.none","Do not show snippet suggestions.")],description:V("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:Pr(new qhn),smoothScrolling:Pr(new ou(115,"smoothScrolling",!1,{description:V("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:Pr(new eh(118,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:Pr(new $hn),inlineSuggest:Pr(new jhn),inlineEdit:Pr(new zhn),inlineCompletionsAccessibilityVerbose:Pr(new ou(150,"inlineCompletionsAccessibilityVerbose",!1,{description:V("inlineCompletionsAccessibilityVerbose","Controls whether the accessibility hint should be provided to screen reader users when an inline completion is shown.")})),suggestFontSize:Pr(new eh(120,"suggestFontSize",0,0,1e3,{markdownDescription:V("suggestFontSize","Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:Pr(new eh(121,"suggestLineHeight",0,0,1e3,{markdownDescription:V("suggestLineHeight","Line height for the suggest widget. When set to {0}, the value of {1} is used. The minimum value is 8.","`0`","`#editor.lineHeight#`")})),suggestOnTriggerCharacters:Pr(new ou(122,"suggestOnTriggerCharacters",!0,{description:V("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:Pr(new d_(123,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[V("suggestSelection.first","Always select the first suggestion."),V("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),V("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:V("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:Pr(new d_(124,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[V("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),V("tabCompletion.off","Disable tab completions."),V("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:V("tabCompletion","Enables tab completions.")})),tabIndex:Pr(new eh(125,"tabIndex",0,-1,1073741824)),unicodeHighlight:Pr(new Vhn),unusualLineTerminators:Pr(new d_(127,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[V("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),V("unusualLineTerminators.off","Unusual line terminators are ignored."),V("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:V("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:Pr(new ou(128,"useShadowDOM",!0)),useTabStops:Pr(new ou(129,"useTabStops",!0,{description:V("useTabStops","Spaces and tabs are inserted and deleted in alignment with tab stops.")})),wordBreak:Pr(new d_(130,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[V("wordBreak.normal","Use the default line break rule."),V("wordBreak.keepAll","Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.")],description:V("wordBreak","Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")})),wordSegmenterLocales:Pr(new Ghn),wordSeparators:Pr(new G0(132,"wordSeparators",tbe,{description:V("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:Pr(new d_(133,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[V("wordWrap.off","Lines will never wrap."),V("wordWrap.on","Lines will wrap at the viewport width."),V({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),V({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:V({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:Pr(new G0(134,"wordWrapBreakAfterCharacters"," })]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」")),wordWrapBreakBeforeCharacters:Pr(new G0(135,"wordWrapBreakBeforeCharacters","([{‘“〈《「『【〔([{「£¥$£¥++")),wordWrapColumn:Pr(new eh(136,"wordWrapColumn",80,1,1073741824,{markdownDescription:V({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:Pr(new d_(137,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:Pr(new d_(138,"wordWrapOverride2","inherit",["off","on","inherit"])),editorClassName:Pr(new ghn),defaultColorDecorators:Pr(new ou(148,"defaultColorDecorators",!1,{markdownDescription:V("defaultColorDecorators","Controls whether inline color decorations should be shown using the default document color provider")})),pixelRatio:Pr(new Ahn),tabFocusMode:Pr(new ou(145,"tabFocusMode",!1,{markdownDescription:V("tabFocusMode","Controls whether the editor receives tabs or defers them to the workbench for navigation.")})),layoutInfo:Pr(new Fq),wrappingInfo:Pr(new Jhn),wrappingIndent:Pr(new Khn),wrappingStrategy:Pr(new xhn)};class tfn{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?yG.isErrorNoTelemetry(e)?new yG(e.message+`
|
|
@@ -658,7 +658,7 @@ ${e.toString()}`}}class xve{constructor(e=new wK,n=!1,i,o=nTn){this._services=e,
|
|
|
658
658
|
`:`\r
|
|
659
659
|
`),await this._clipboardService.writeText(ge)})),i.getOption(92)||X.push(new NS("diff.inline.revertChange",V("diff.inline.revertChange.label","Revert this change"),void 0,!0,async()=>{this._editor.revert(this._diff)})),X},autoSelectFirstItem:!0})};this._register(Gf(this._diffActions,"mousedown",A=>{if(!A.leftButton)return;const{top:B,height:X}=M_(this._diffActions),Q=Math.floor(x/3);A.preventDefault(),P(A.posx,B+X+Q)})),this._register(i.onMouseMove(A=>{(A.target.type===8||A.target.type===5)&&A.target.detail.viewZoneId===this._getViewZoneId()?(w=this._updateLightBulbPosition(this._marginDomNode,A.event.browserEvent.y,x),this.visibility=!0):this.visibility=!1})),this._register(i.onMouseDown(A=>{A.event.leftButton&&(A.target.type===8||A.target.type===5)&&A.target.detail.viewZoneId===this._getViewZoneId()&&(A.event.preventDefault(),w=this._updateLightBulbPosition(this._marginDomNode,A.event.browserEvent.y,x),P(A.event.posx,A.event.posy+x))}))}_updateLightBulbPosition(e,n,i){const{top:o}=M_(e),a=n-o,u=Math.floor(a/i),h=u*i;if(this._diffActions.style.top=`${h}px`,this._viewLineCounts){let g=0;for(let b=0;b<this._viewLineCounts.length;b++)if(g+=this._viewLineCounts[b],u<g)return b}return u}}const c2t=o6("diffEditorWidget",{createHTML:c=>c});function VIn(c,e,n,i){vy(i,e.fontInfo);const o=n.length>0,a=new hK(1e4);let u=0,h=0;const g=[];for(let k=0;k<c.lineTokens.length;k++){const P=k+1,A=c.lineTokens[k],B=c.lineBreakData[k],X=Ub.filter(n,P,1,Number.MAX_SAFE_INTEGER);if(B){let Q=0;for(const ne of B.breakOffsets){const ge=A.sliceAndInflate(Q,ne,0);u=Math.max(u,u2t(h,ge,Ub.extractWrapped(X,Q,ne),o,c.mightContainNonBasicASCII,c.mightContainRTL,e,a)),h++,Q=ne}g.push(B.breakOffsets.length)}else g.push(1),u=Math.max(u,u2t(h,A,X,o,c.mightContainNonBasicASCII,c.mightContainRTL,e,a)),h++}u+=e.scrollBeyondLastColumn;const b=a.build(),x=c2t?c2t.createHTML(b):b;i.innerHTML=x;const w=u*e.typicalHalfwidthCharacterWidth;return{heightInLines:h,minWidthInPx:w,viewLineCounts:g}}class jIn{constructor(e,n,i,o){this.lineTokens=e,this.lineBreakData=n,this.mightContainNonBasicASCII=i,this.mightContainRTL=o}}class pXe{static fromEditor(e){const n=e.getOptions(),i=n.get(50),o=n.get(146);return new pXe(e.getModel()?.getOptions().tabSize||0,i,n.get(33),i.typicalHalfwidthCharacterWidth,n.get(105),n.get(67),o.decorationsWidth,n.get(118),n.get(100),n.get(95),n.get(51))}constructor(e,n,i,o,a,u,h,g,b,x,w){this.tabSize=e,this.fontInfo=n,this.disableMonospaceOptimizations=i,this.typicalHalfwidthCharacterWidth=o,this.scrollBeyondLastColumn=a,this.lineHeight=u,this.lineDecorationsWidth=h,this.stopRenderingLineAfter=g,this.renderWhitespace=b,this.renderControlCharacters=x,this.fontLigatures=w}}function u2t(c,e,n,i,o,a,u,h){h.appendString('<div class="view-line'),i||h.appendString(" char-delete"),h.appendString('" style="top:'),h.appendString(String(c*u.lineHeight)),h.appendString('px;width:1000000px;">');const g=e.getLineContent(),b=uw.isBasicASCII(g,o),x=uw.containsRTL(g,b,a),w=xse(new LO(u.fontInfo.isMonospace&&!u.disableMonospaceOptimizations,u.fontInfo.canUseHalfwidthRightwardsArrow,g,!1,b,x,0,e,n,u.tabSize,0,u.fontInfo.spaceWidth,u.fontInfo.middotWidth,u.fontInfo.wsmiddotWidth,u.stopRenderingLineAfter,u.renderWhitespace,u.renderControlCharacters,u.fontLigatures!==nO.OFF,null),h);return h.appendString("</div>"),w.characterMapping.getHorizontalOffset(w.characterMapping.length)}var zIn=function(c,e,n,i){var o=arguments.length,a=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(c,e,n,i);else for(var h=c.length-1;h>=0;h--)(u=c[h])&&(a=(o<3?u(a):o>3?u(e,n,a):u(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},d2t=function(c,e){return function(n,i){e(n,i,c)}};let xUe=class extends Wn{constructor(e,n,i,o,a,u,h,g,b,x){super(),this._targetWindow=e,this._editors=n,this._diffModel=i,this._options=o,this._diffEditorWidget=a,this._canIgnoreViewZoneUpdateEvent=u,this._origViewZonesToIgnore=h,this._modViewZonesToIgnore=g,this._clipboardService=b,this._contextMenuService=x,this._originalTopPadding=Gl(this,0),this._originalScrollOffset=Gl(this,0),this._originalScrollOffsetAnimated=r2t(this._targetWindow,this._originalScrollOffset,this._store),this._modifiedTopPadding=Gl(this,0),this._modifiedScrollOffset=Gl(this,0),this._modifiedScrollOffsetAnimated=r2t(this._targetWindow,this._modifiedScrollOffset,this._store);const w=Gl("invalidateAlignmentsState",0),k=this._register(new bd(()=>{w.set(w.get()+1,void 0)},0));this._register(this._editors.original.onDidChangeViewZones(ge=>{this._canIgnoreViewZoneUpdateEvent()||k.schedule()})),this._register(this._editors.modified.onDidChangeViewZones(ge=>{this._canIgnoreViewZoneUpdateEvent()||k.schedule()})),this._register(this._editors.original.onDidChangeConfiguration(ge=>{(ge.hasChanged(147)||ge.hasChanged(67))&&k.schedule()})),this._register(this._editors.modified.onDidChangeConfiguration(ge=>{(ge.hasChanged(147)||ge.hasChanged(67))&&k.schedule()}));const P=this._diffModel.map(ge=>ge?Ju(this,ge.model.original.onDidChangeTokens,()=>ge.model.original.tokenization.backgroundTokenizationState===2):void 0).map((ge,ye)=>ge?.read(ye)),A=ps(ge=>{const ye=this._diffModel.read(ge),Me=ye?.diff.read(ge);if(!ye||!Me)return null;w.read(ge);const Be=this._options.renderSideBySide.read(ge);return h2t(this._editors.original,this._editors.modified,Me.mappings,this._origViewZonesToIgnore,this._modViewZonesToIgnore,Be)}),B=ps(ge=>{const ye=this._diffModel.read(ge)?.movedTextToCompare.read(ge);if(!ye)return null;w.read(ge);const Me=ye.changes.map(Je=>new YPt(Je));return h2t(this._editors.original,this._editors.modified,Me,this._origViewZonesToIgnore,this._modViewZonesToIgnore,!0)});function X(){const ge=document.createElement("div");return ge.className="diagonal-fill",ge}const Q=this._register(new Ai);this.viewZones=NO(this,(ge,ye)=>{Q.clear();const Me=A.read(ge)||[],Je=[],Be=[],ft=this._modifiedTopPadding.read(ge);ft>0&&Be.push({afterLineNumber:0,domNode:document.createElement("div"),heightInPx:ft,showInHiddenAreas:!0,suppressMouseDown:!0});const gt=this._originalTopPadding.read(ge);gt>0&&Je.push({afterLineNumber:0,domNode:document.createElement("div"),heightInPx:gt,showInHiddenAreas:!0,suppressMouseDown:!0});const bn=this._options.renderSideBySide.read(ge),ht=bn?void 0:this._editors.modified._getViewModel()?.createLineBreaksComputer();if(ht){const Gn=this._editors.original.getModel();for(const Wi of Me)if(Wi.diff)for(let ci=Wi.originalRange.startLineNumber;ci<Wi.originalRange.endLineNumberExclusive;ci++){if(ci>Gn.getLineCount())return{orig:Je,mod:Be};ht?.addRequest(Gn.getLineContent(ci),null,null)}}const Mt=ht?.finalize()??[];let sn=0;const pt=this._editors.modified.getOption(67),cn=this._diffModel.read(ge)?.movedTextToCompare.read(ge),Qt=this._editors.original.getModel()?.mightContainNonBasicASCII()??!1,vt=this._editors.original.getModel()?.mightContainRTL()??!1,Li=pXe.fromEditor(this._editors.modified);for(const Gn of Me)if(Gn.diff&&!bn&&(!this._options.useTrueInlineDiffRendering.read(ge)||!gXe(Gn.diff))){if(!Gn.originalRange.isEmpty){P.read(ge);const ci=document.createElement("div");ci.classList.add("view-lines","line-delete","monaco-mouse-cursor-text");const cs=this._editors.original.getModel();if(Gn.originalRange.endLineNumberExclusive-1>cs.getLineCount())return{orig:Je,mod:Be};const ys=new jIn(Gn.originalRange.mapToLineArray(Yu=>cs.tokenization.getLineTokens(Yu)),Gn.originalRange.mapToLineArray(Yu=>Mt[sn++]),Qt,vt),Ba=[];for(const Yu of Gn.diff.innerChanges||[])Ba.push(new Eie(Yu.originalRange.delta(-(Gn.diff.original.startLineNumber-1)),zG.className,0));const Wa=VIn(ys,Li,Ba,ci),Dr=document.createElement("div");if(Dr.className="inline-deleted-margin-view-zone",vy(Dr,Li.fontInfo),this._options.renderIndicators.read(ge))for(let Yu=0;Yu<Wa.heightInLines;Yu++){const bh=document.createElement("div");bh.className=`delete-sign ${ra.asClassName(KPt)}`,bh.setAttribute("style",`position:absolute;top:${Yu*pt}px;width:${Li.lineDecorationsWidth}px;height:${pt}px;right:0;`),Dr.appendChild(bh)}let Hu;Q.add(new WIn(()=>gM(Hu),Dr,this._editors.modified,Gn.diff,this._diffEditorWidget,Wa.viewLineCounts,this._editors.original.getModel(),this._contextMenuService,this._clipboardService));for(let Yu=0;Yu<Wa.viewLineCounts.length;Yu++){const bh=Wa.viewLineCounts[Yu];bh>1&&Je.push({afterLineNumber:Gn.originalRange.startLineNumber+Yu,domNode:X(),heightInPx:(bh-1)*pt,showInHiddenAreas:!0,suppressMouseDown:!0})}Be.push({afterLineNumber:Gn.modifiedRange.startLineNumber-1,domNode:ci,heightInPx:Wa.heightInLines*pt,minWidthInPx:Wa.minWidthInPx,marginDomNode:Dr,setZoneId(Yu){Hu=Yu},showInHiddenAreas:!0,suppressMouseDown:!0})}const Wi=document.createElement("div");Wi.className="gutter-delete",Je.push({afterLineNumber:Gn.originalRange.endLineNumberExclusive-1,domNode:X(),heightInPx:Gn.modifiedHeightInPx,marginDomNode:Wi,showInHiddenAreas:!0,suppressMouseDown:!0})}else{const Wi=Gn.modifiedHeightInPx-Gn.originalHeightInPx;if(Wi>0){if(cn?.lineRangeMapping.original.delta(-1).deltaLength(2).contains(Gn.originalRange.endLineNumberExclusive-1))continue;Je.push({afterLineNumber:Gn.originalRange.endLineNumberExclusive-1,domNode:X(),heightInPx:Wi,showInHiddenAreas:!0,suppressMouseDown:!0})}else{let ci=function(){const ys=document.createElement("div");return ys.className="arrow-revert-change "+ra.asClassName(wr.arrowRight),ye.add(hi(ys,"mousedown",Ba=>Ba.stopPropagation())),ye.add(hi(ys,"click",Ba=>{Ba.stopPropagation(),a.revert(Gn.diff)})),Ir("div",{},ys)};if(cn?.lineRangeMapping.modified.delta(-1).deltaLength(2).contains(Gn.modifiedRange.endLineNumberExclusive-1))continue;let cs;Gn.diff&&Gn.diff.modified.isEmpty&&this._options.shouldRenderOldRevertArrows.read(ge)&&(cs=ci()),Be.push({afterLineNumber:Gn.modifiedRange.endLineNumberExclusive-1,domNode:X(),heightInPx:-Wi,marginDomNode:cs,showInHiddenAreas:!0,suppressMouseDown:!0})}}for(const Gn of B.read(ge)??[]){if(!cn?.lineRangeMapping.original.intersect(Gn.originalRange)||!cn?.lineRangeMapping.modified.intersect(Gn.modifiedRange))continue;const Wi=Gn.modifiedHeightInPx-Gn.originalHeightInPx;Wi>0?Je.push({afterLineNumber:Gn.originalRange.endLineNumberExclusive-1,domNode:X(),heightInPx:Wi,showInHiddenAreas:!0,suppressMouseDown:!0}):Be.push({afterLineNumber:Gn.modifiedRange.endLineNumberExclusive-1,domNode:X(),heightInPx:-Wi,showInHiddenAreas:!0,suppressMouseDown:!0})}return{orig:Je,mod:Be}});let ne=!1;this._register(this._editors.original.onDidScrollChange(ge=>{ge.scrollLeftChanged&&!ne&&(ne=!0,this._editors.modified.setScrollLeft(ge.scrollLeft),ne=!1)})),this._register(this._editors.modified.onDidScrollChange(ge=>{ge.scrollLeftChanged&&!ne&&(ne=!0,this._editors.original.setScrollLeft(ge.scrollLeft),ne=!1)})),this._originalScrollTop=Ju(this._editors.original.onDidScrollChange,()=>this._editors.original.getScrollTop()),this._modifiedScrollTop=Ju(this._editors.modified.onDidScrollChange,()=>this._editors.modified.getScrollTop()),this._register(Ha(ge=>{const ye=this._originalScrollTop.read(ge)-(this._originalScrollOffsetAnimated.get()-this._modifiedScrollOffsetAnimated.read(ge))-(this._originalTopPadding.get()-this._modifiedTopPadding.read(ge));ye!==this._editors.modified.getScrollTop()&&this._editors.modified.setScrollTop(ye,1)})),this._register(Ha(ge=>{const ye=this._modifiedScrollTop.read(ge)-(this._modifiedScrollOffsetAnimated.get()-this._originalScrollOffsetAnimated.read(ge))-(this._modifiedTopPadding.get()-this._originalTopPadding.read(ge));ye!==this._editors.original.getScrollTop()&&this._editors.original.setScrollTop(ye,1)})),this._register(Ha(ge=>{const ye=this._diffModel.read(ge)?.movedTextToCompare.read(ge);let Me=0;if(ye){const Je=this._editors.original.getTopForLineNumber(ye.lineRangeMapping.original.startLineNumber,!0)-this._originalTopPadding.get();Me=this._editors.modified.getTopForLineNumber(ye.lineRangeMapping.modified.startLineNumber,!0)-this._modifiedTopPadding.get()-Je}Me>0?(this._modifiedTopPadding.set(0,void 0),this._originalTopPadding.set(Me,void 0)):Me<0?(this._modifiedTopPadding.set(-Me,void 0),this._originalTopPadding.set(0,void 0)):setTimeout(()=>{this._modifiedTopPadding.set(0,void 0),this._originalTopPadding.set(0,void 0)},400),this._editors.modified.hasTextFocus()?this._originalScrollOffset.set(this._modifiedScrollOffset.get()-Me,void 0,!0):this._modifiedScrollOffset.set(this._originalScrollOffset.get()+Me,void 0,!0)}))}};xUe=zIn([d2t(8,c6),d2t(9,OS)],xUe);function h2t(c,e,n,i,o,a){const u=new q3(f2t(c,i)),h=new q3(f2t(e,o)),g=c.getOption(67),b=e.getOption(67),x=[];let w=0,k=0;function P(A,B){for(;;){let X=u.peek(),Q=h.peek();if(X&&X.lineNumber>=A&&(X=void 0),Q&&Q.lineNumber>=B&&(Q=void 0),!X&&!Q)break;const ne=X?X.lineNumber-w:Number.MAX_VALUE,ge=Q?Q.lineNumber-k:Number.MAX_VALUE;ne<ge?(u.dequeue(),Q={lineNumber:X.lineNumber-w+k,heightInPx:0}):ne>ge?(h.dequeue(),X={lineNumber:Q.lineNumber-k+w,heightInPx:0}):(u.dequeue(),h.dequeue()),x.push({originalRange:yl.ofLength(X.lineNumber,1),modifiedRange:yl.ofLength(Q.lineNumber,1),originalHeightInPx:g+X.heightInPx,modifiedHeightInPx:b+Q.heightInPx,diff:void 0})}}for(const A of n){let ge=function(ye,Me,Je=!1){if(ye<ne||Me<Q)return;if(X)X=!1;else if(!Je&&(ye===ne||Me===Q))return;const Be=new yl(ne,ye),ft=new yl(Q,Me);if(Be.isEmpty&&ft.isEmpty)return;const gt=u.takeWhile(ht=>ht.lineNumber<ye)?.reduce((ht,Mt)=>ht+Mt.heightInPx,0)??0,bn=h.takeWhile(ht=>ht.lineNumber<Me)?.reduce((ht,Mt)=>ht+Mt.heightInPx,0)??0;x.push({originalRange:Be,modifiedRange:ft,originalHeightInPx:Be.length*g+gt,modifiedHeightInPx:ft.length*b+bn,diff:A.lineRangeMapping}),ne=ye,Q=Me};const B=A.lineRangeMapping;P(B.original.startLineNumber,B.modified.startLineNumber);let X=!0,Q=B.modified.startLineNumber,ne=B.original.startLineNumber;if(a)for(const ye of B.innerChanges||[]){ye.originalRange.startColumn>1&&ye.modifiedRange.startColumn>1&&ge(ye.originalRange.startLineNumber,ye.modifiedRange.startLineNumber);const Me=c.getModel(),Je=ye.originalRange.endLineNumber<=Me.getLineCount()?Me.getLineMaxColumn(ye.originalRange.endLineNumber):Number.MAX_SAFE_INTEGER;ye.originalRange.endColumn<Je&&ge(ye.originalRange.endLineNumber,ye.modifiedRange.endLineNumber)}ge(B.original.endLineNumberExclusive,B.modified.endLineNumberExclusive,!0),w=B.original.endLineNumberExclusive,k=B.modified.endLineNumberExclusive}return P(Number.MAX_VALUE,Number.MAX_VALUE),x}function f2t(c,e){const n=[],i=[],o=c.getOption(147).wrappingColumn!==-1,a=c._getViewModel().coordinatesConverter,u=c.getOption(67);if(o)for(let g=1;g<=c.getModel().getLineCount();g++){const b=a.getModelLineViewLineCount(g);b>1&&i.push({lineNumber:g,heightInPx:u*(b-1)})}for(const g of c.getWhitespaces()){if(e.has(g.id))continue;const b=g.afterLineNumber===0?0:a.convertViewPositionToModelPosition(new Nn(g.afterLineNumber,1)).lineNumber;n.push({lineNumber:b,heightInPx:g.height})}return pIn(n,i,g=>g.lineNumber,(g,b)=>({lineNumber:g.lineNumber,heightInPx:g.heightInPx+b.heightInPx}))}function gXe(c){return c.innerChanges?c.innerChanges.every(e=>_2t(e.modifiedRange)&&_2t(e.originalRange)||e.originalRange.equalsRange(new lt(1,1,1,1))):!1}function _2t(c){return c.startLineNumber===c.endLineNumber}const cre=class cre extends Wn{constructor(e,n,i,o,a){super(),this._rootElement=e,this._diffModel=n,this._originalEditorLayoutInfo=i,this._modifiedEditorLayoutInfo=o,this._editors=a,this._originalScrollTop=Ju(this,this._editors.original.onDidScrollChange,()=>this._editors.original.getScrollTop()),this._modifiedScrollTop=Ju(this,this._editors.modified.onDidScrollChange,()=>this._editors.modified.getScrollTop()),this._viewZonesChanged=Ky("onDidChangeViewZones",this._editors.modified.onDidChangeViewZones),this.width=Gl(this,0),this._modifiedViewZonesChangedSignal=Ky("modified.onDidChangeViewZones",this._editors.modified.onDidChangeViewZones),this._originalViewZonesChangedSignal=Ky("original.onDidChangeViewZones",this._editors.original.onDidChangeViewZones),this._state=NO(this,(x,w)=>{this._element.replaceChildren();const k=this._diffModel.read(x),P=k?.diff.read(x)?.movedTexts;if(!P||P.length===0){this.width.set(0,void 0);return}this._viewZonesChanged.read(x);const A=this._originalEditorLayoutInfo.read(x),B=this._modifiedEditorLayoutInfo.read(x);if(!A||!B){this.width.set(0,void 0);return}this._modifiedViewZonesChangedSignal.read(x),this._originalViewZonesChangedSignal.read(x);const X=P.map(Be=>{function ft(vt,Li){const Gn=Li.getTopForLineNumber(vt.startLineNumber,!0),Wi=Li.getTopForLineNumber(vt.endLineNumberExclusive,!0);return(Gn+Wi)/2}const gt=ft(Be.lineRangeMapping.original,this._editors.original),bn=this._originalScrollTop.read(x),ht=ft(Be.lineRangeMapping.modified,this._editors.modified),Mt=this._modifiedScrollTop.read(x),sn=gt-bn,pt=ht-Mt,cn=Math.min(gt,ht),Qt=Math.max(gt,ht);return{range:new Zl(cn,Qt),from:sn,to:pt,fromWithoutScroll:gt,toWithoutScroll:ht,move:Be}});X.sort(zdn(Gb(Be=>Be.fromWithoutScroll>Be.toWithoutScroll,Hdn),Gb(Be=>Be.fromWithoutScroll>Be.toWithoutScroll?Be.fromWithoutScroll:-Be.toWithoutScroll,QT)));const Q=mXe.compute(X.map(Be=>Be.range)),ne=10,ge=A.verticalScrollbarWidth,ye=(Q.getTrackCount()-1)*10+ne*2,Me=ge+ye+(B.contentLeft-cre.movedCodeBlockPadding);let Je=0;for(const Be of X){const ft=Q.getTrack(Je),gt=ge+ne+ft*10,bn=15,ht=15,Mt=Me,sn=B.glyphMarginWidth+B.lineNumbersWidth,pt=18,cn=document.createElementNS("http://www.w3.org/2000/svg","rect");cn.classList.add("arrow-rectangle"),cn.setAttribute("x",`${Mt-sn}`),cn.setAttribute("y",`${Be.to-pt/2}`),cn.setAttribute("width",`${sn}`),cn.setAttribute("height",`${pt}`),this._element.appendChild(cn);const Qt=document.createElementNS("http://www.w3.org/2000/svg","g"),vt=document.createElementNS("http://www.w3.org/2000/svg","path");vt.setAttribute("d",`M 0 ${Be.from} L ${gt} ${Be.from} L ${gt} ${Be.to} L ${Mt-ht} ${Be.to}`),vt.setAttribute("fill","none"),Qt.appendChild(vt);const Li=document.createElementNS("http://www.w3.org/2000/svg","polygon");Li.classList.add("arrow"),w.add(Ha(Gn=>{vt.classList.toggle("currentMove",Be.move===k.activeMovedText.read(Gn)),Li.classList.toggle("currentMove",Be.move===k.activeMovedText.read(Gn))})),Li.setAttribute("points",`${Mt-ht},${Be.to-bn/2} ${Mt},${Be.to} ${Mt-ht},${Be.to+bn/2}`),Qt.appendChild(Li),this._element.appendChild(Qt),Je++}this.width.set(ye,void 0)}),this._element=document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("class","moved-blocks-lines"),this._rootElement.appendChild(this._element),this._register(ws(()=>this._element.remove())),this._register(Ha(x=>{const w=this._originalEditorLayoutInfo.read(x),k=this._modifiedEditorLayoutInfo.read(x);!w||!k||(this._element.style.left=`${w.width-w.verticalScrollbarWidth}px`,this._element.style.height=`${w.height}px`,this._element.style.width=`${w.verticalScrollbarWidth+w.contentLeft-cre.movedCodeBlockPadding+this.width.read(x)}px`)})),this._register(vK(this._state));const u=ps(x=>{const k=this._diffModel.read(x)?.diff.read(x);return k?k.movedTexts.map(P=>({move:P,original:new lq(Q2(P.lineRangeMapping.original.startLineNumber-1),18),modified:new lq(Q2(P.lineRangeMapping.modified.startLineNumber-1),18)})):[]});this._register(Hve(this._editors.original,u.map(x=>x.map(w=>w.original)))),this._register(Hve(this._editors.modified,u.map(x=>x.map(w=>w.modified)))),this._register(oC((x,w)=>{const k=u.read(x);for(const P of k)w.add(new p2t(this._editors.original,P.original,P.move,"original",this._diffModel.get())),w.add(new p2t(this._editors.modified,P.modified,P.move,"modified",this._diffModel.get()))}));const h=Ky("original.onDidFocusEditorWidget",x=>this._editors.original.onDidFocusEditorWidget(()=>setTimeout(()=>x(void 0),0))),g=Ky("modified.onDidFocusEditorWidget",x=>this._editors.modified.onDidFocusEditorWidget(()=>setTimeout(()=>x(void 0),0)));let b="modified";this._register(pse({createEmptyChangeSummary:()=>{},handleChange:(x,w)=>(x.didChange(h)&&(b="original"),x.didChange(g)&&(b="modified"),!0)},x=>{h.read(x),g.read(x);const w=this._diffModel.read(x);if(!w)return;const k=w.diff.read(x);let P;if(k&&b==="original"){const A=this._editors.originalCursor.read(x);A&&(P=k.movedTexts.find(B=>B.lineRangeMapping.original.contains(A.lineNumber)))}if(k&&b==="modified"){const A=this._editors.modifiedCursor.read(x);A&&(P=k.movedTexts.find(B=>B.lineRangeMapping.modified.contains(A.lineNumber)))}P!==w.movedTextToCompare.get()&&w.movedTextToCompare.set(void 0,void 0),w.setActiveMovedText(P)}))}};cre.movedCodeBlockPadding=4;let nG=cre;class mXe{static compute(e){const n=[],i=[];for(const o of e){let a=n.findIndex(u=>!u.intersectsStrict(o));a===-1&&(n.length>=6?a=xmn(n,Gb(h=>h.intersectWithRangeLength(o),QT)):(a=n.length,n.push(new mKe))),n[a].addRange(o),i.push(a)}return new mXe(n.length,i)}constructor(e,n){this._trackCount=e,this.trackPerLineIdx=n}getTrack(e){return this.trackPerLineIdx[e]}getTrackCount(){return this._trackCount}}class p2t extends aXe{constructor(e,n,i,o,a){const u=lc("div.diff-hidden-lines-widget");super(e,n,u.root),this._editor=e,this._move=i,this._kind=o,this._diffModel=a,this._nodes=lc("div.diff-moved-code-block",{style:{marginRight:"4px"}},[lc("div.text-content@textContent"),lc("div.action-bar@actionBar")]),u.root.appendChild(this._nodes.root);const h=Ju(this._editor.onDidLayoutChange,()=>this._editor.getLayoutInfo());this._register(Z3(this._nodes.root,{paddingRight:h.map(k=>k.verticalScrollbarWidth)}));let g;i.changes.length>0?g=this._kind==="original"?V("codeMovedToWithChanges","Code moved with changes to line {0}-{1}",this._move.lineRangeMapping.modified.startLineNumber,this._move.lineRangeMapping.modified.endLineNumberExclusive-1):V("codeMovedFromWithChanges","Code moved with changes from line {0}-{1}",this._move.lineRangeMapping.original.startLineNumber,this._move.lineRangeMapping.original.endLineNumberExclusive-1):g=this._kind==="original"?V("codeMovedTo","Code moved to line {0}-{1}",this._move.lineRangeMapping.modified.startLineNumber,this._move.lineRangeMapping.modified.endLineNumberExclusive-1):V("codeMovedFrom","Code moved from line {0}-{1}",this._move.lineRangeMapping.original.startLineNumber,this._move.lineRangeMapping.original.endLineNumberExclusive-1);const b=this._register(new sw(this._nodes.actionBar,{highlightToggledItems:!0})),x=new NS("",g,"",!1);b.push(x,{icon:!1,label:!0});const w=new NS("","Compare",ra.asClassName(wr.compareChanges),!0,()=>{this._editor.focus(),this._diffModel.movedTextToCompare.set(this._diffModel.movedTextToCompare.get()===i?void 0:this._move,void 0)});this._register(Ha(k=>{const P=this._diffModel.movedTextToCompare.read(k)===i;w.checked=P})),b.push(w,{icon:!1,label:!0})}}class HIn extends Wn{constructor(e,n,i,o){super(),this._editors=e,this._diffModel=n,this._options=i,this._decorations=ps(this,a=>{const u=this._diffModel.read(a),h=u?.diff.read(a);if(!h)return null;const g=this._diffModel.read(a).movedTextToCompare.read(a),b=this._options.renderIndicators.read(a),x=this._options.showEmptyDecorations.read(a),w=[],k=[];if(!g)for(const A of h.mappings)if(A.lineRangeMapping.original.isEmpty||w.push({range:A.lineRangeMapping.original.toInclusiveRange(),options:b?goe:l2t}),A.lineRangeMapping.modified.isEmpty||k.push({range:A.lineRangeMapping.modified.toInclusiveRange(),options:b?$ve:a2t}),A.lineRangeMapping.modified.isEmpty||A.lineRangeMapping.original.isEmpty)A.lineRangeMapping.original.isEmpty||w.push({range:A.lineRangeMapping.original.toInclusiveRange(),options:hXe}),A.lineRangeMapping.modified.isEmpty||k.push({range:A.lineRangeMapping.modified.toInclusiveRange(),options:uXe});else{const B=this._options.useTrueInlineDiffRendering.read(a)&&gXe(A.lineRangeMapping);for(const X of A.lineRangeMapping.innerChanges||[])if(A.lineRangeMapping.original.contains(X.originalRange.startLineNumber)&&w.push({range:X.originalRange,options:X.originalRange.isEmpty()&&x?fXe:zG}),A.lineRangeMapping.modified.contains(X.modifiedRange.startLineNumber)&&k.push({range:X.modifiedRange,options:X.modifiedRange.isEmpty()&&x&&!B?dXe:qve}),B){const Q=u.model.original.getValueInRange(X.originalRange);k.push({range:X.modifiedRange,options:{description:"deleted-text",before:{content:Q,inlineClassName:"inline-deleted-text"},zIndex:1e5,showIfCollapsed:!0}})}}if(g)for(const A of g.changes){const B=A.original.toInclusiveRange();B&&w.push({range:B,options:b?goe:l2t});const X=A.modified.toInclusiveRange();X&&k.push({range:X,options:b?$ve:a2t});for(const Q of A.innerChanges||[])w.push({range:Q.originalRange,options:zG}),k.push({range:Q.modifiedRange,options:qve})}const P=this._diffModel.read(a).activeMovedText.read(a);for(const A of h.movedTexts)w.push({range:A.lineRangeMapping.original.toInclusiveRange(),options:{description:"moved",blockClassName:"movedOriginal"+(A===P?" currentMove":""),blockPadding:[nG.movedCodeBlockPadding,0,nG.movedCodeBlockPadding,nG.movedCodeBlockPadding]}}),k.push({range:A.lineRangeMapping.modified.toInclusiveRange(),options:{description:"moved",blockClassName:"movedModified"+(A===P?" currentMove":""),blockPadding:[4,0,4,4]}});return{originalDecorations:w,modifiedDecorations:k}}),this._register(zve(this._editors.original,this._decorations.map(a=>a?.originalDecorations||[]))),this._register(zve(this._editors.modified,this._decorations.map(a=>a?.modifiedDecorations||[])))}}class UIn{resetSash(){this._sashRatio.set(void 0,void 0)}constructor(e,n){this._options=e,this.dimensions=n,this.sashLeft=fse(this,i=>{const o=this._sashRatio.read(i)??this._options.splitViewDefaultRatio.read(i);return this._computeSashLeft(o,i)},(i,o)=>{const a=this.dimensions.width.get();this._sashRatio.set(i/a,o)}),this._sashRatio=Gl(this,void 0)}_computeSashLeft(e,n){const i=this.dimensions.width.read(n),o=Math.floor(this._options.splitViewDefaultRatio.read(n)*i),a=this._options.enableSplitViewResizing.read(n)?Math.floor(e*i):o,u=100;return i<=u*2?o:a<u?u:a>i-u?i-u:a}}class ZPt extends Wn{constructor(e,n,i,o,a,u){super(),this._domNode=e,this._dimensions=n,this._enabled=i,this._boundarySashes=o,this.sashLeft=a,this._resetSash=u,this._sash=this._register(new M1(this._domNode,{getVerticalSashTop:h=>0,getVerticalSashLeft:h=>this.sashLeft.get(),getVerticalSashHeight:h=>this._dimensions.height.get()},{orientation:0})),this._startSashPosition=void 0,this._register(this._sash.onDidStart(()=>{this._startSashPosition=this.sashLeft.get()})),this._register(this._sash.onDidChange(h=>{this.sashLeft.set(this._startSashPosition+(h.currentX-h.startX),void 0)})),this._register(this._sash.onDidEnd(()=>this._sash.layout())),this._register(this._sash.onDidReset(()=>this._resetSash())),this._register(Ha(h=>{const g=this._boundarySashes.read(h);g&&(this._sash.orthogonalEndSash=g.bottom)})),this._register(Ha(h=>{const g=this._enabled.read(h);this._sash.state=g?3:0,this.sashLeft.read(h),this._dimensions.height.read(h),this._sash.layout()}))}}class $In extends Wn{constructor(e,n,i){super(),this._editor=e,this._domNode=n,this.itemProvider=i,this.scrollTop=Ju(this,this._editor.onDidScrollChange,u=>this._editor.getScrollTop()),this.isScrollTopZero=this.scrollTop.map(u=>u===0),this.modelAttached=Ju(this,this._editor.onDidChangeModel,u=>this._editor.hasModel()),this.editorOnDidChangeViewZones=Ky("onDidChangeViewZones",this._editor.onDidChangeViewZones),this.editorOnDidContentSizeChange=Ky("onDidContentSizeChange",this._editor.onDidContentSizeChange),this.domNodeSizeChanged=bK("domNodeSizeChanged"),this.views=new Map,this._domNode.className="gutter monaco-editor";const o=this._domNode.appendChild(lc("div.scroll-decoration",{role:"presentation",ariaHidden:"true",style:{width:"100%"}}).root),a=new ResizeObserver(()=>{If(u=>{this.domNodeSizeChanged.trigger(u)})});a.observe(this._domNode),this._register(ws(()=>a.disconnect())),this._register(Ha(u=>{o.className=this.isScrollTopZero.read(u)?"":"scroll-decoration"})),this._register(Ha(u=>this.render(u)))}dispose(){super.dispose(),by(this._domNode)}render(e){if(!this.modelAttached.read(e))return;this.domNodeSizeChanged.read(e),this.editorOnDidChangeViewZones.read(e),this.editorOnDidContentSizeChange.read(e);const n=this.scrollTop.read(e),i=this._editor.getVisibleRanges(),o=new Set(this.views.keys()),a=Zl.ofStartAndLength(0,this._domNode.clientHeight);if(!a.isEmpty)for(const u of i){const h=new yl(u.startLineNumber,u.endLineNumber+1),g=this.itemProvider.getIntersectingGutterItems(h,e);If(b=>{for(const x of g){if(!x.range.intersect(h))continue;o.delete(x.id);let w=this.views.get(x.id);if(w)w.item.set(x,b);else{const B=document.createElement("div");this._domNode.appendChild(B);const X=Gl("item",x),Q=this.itemProvider.createView(X,B);w=new qIn(X,Q,B),this.views.set(x.id,w)}const k=x.range.startLineNumber<=this._editor.getModel().getLineCount()?this._editor.getTopForLineNumber(x.range.startLineNumber,!0)-n:this._editor.getBottomForLineNumber(x.range.startLineNumber-1,!1)-n,A=(x.range.endLineNumberExclusive===1?Math.max(k,this._editor.getTopForLineNumber(x.range.startLineNumber,!1)-n):Math.max(k,this._editor.getBottomForLineNumber(x.range.endLineNumberExclusive-1,!0)-n))-k;w.domNode.style.top=`${k}px`,w.domNode.style.height=`${A}px`,w.gutterItemView.layout(Zl.ofStartAndLength(k,A),a)}})}for(const u of o){const h=this.views.get(u);h.gutterItemView.dispose(),h.domNode.remove(),this.views.delete(u)}}}class qIn{constructor(e,n,i){this.item=e,this.gutterItemView=n,this.domNode=i}}class QPt extends hW{constructor(e){super(),this._getContext=e}runAction(e,n){const i=this._getContext();return super.runAction(e,i)}}class g2t extends mEt{constructor(e){super(),this._textModel=e}getValueOfRange(e){return this._textModel.getValueInRange(e)}get length(){const e=this._textModel.getLineCount(),n=this._textModel.getLineLength(e);return new sD(e-1,n)}}class GIn extends Wn{constructor(e,n,i={orientation:0}){super(),this.submenuActionViewItems=[],this.hasSecondaryActions=!1,this._onDidChangeDropdownVisibility=this._register(new ffn),this.onDidChangeDropdownVisibility=this._onDidChangeDropdownVisibility.event,this.disposables=this._register(new Ai),i.hoverDelegate=i.hoverDelegate??this._register(FG()),this.options=i,this.toggleMenuAction=this._register(new moe(()=>this.toggleMenuActionViewItem?.show(),i.toggleMenuTitle)),this.element=document.createElement("div"),this.element.className="monaco-toolbar",e.appendChild(this.element),this.actionBar=this._register(new sw(this.element,{orientation:i.orientation,ariaLabel:i.ariaLabel,actionRunner:i.actionRunner,allowContextMenu:i.allowContextMenu,highlightToggledItems:i.highlightToggledItems,hoverDelegate:i.hoverDelegate,actionViewItemProvider:(o,a)=>{if(o.id===moe.ID)return this.toggleMenuActionViewItem=new Kbe(o,o.menuActions,n,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:ra.asClassNameArray(i.moreIcon??wr.toolBarMore),anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement,skipTelemetry:this.options.skipTelemetry,isMenu:!0,hoverDelegate:this.options.hoverDelegate}),this.toggleMenuActionViewItem.setActionContext(this.actionBar.context),this.disposables.add(this._onDidChangeDropdownVisibility.add(this.toggleMenuActionViewItem.onDidChangeVisibility)),this.toggleMenuActionViewItem;if(i.actionViewItemProvider){const u=i.actionViewItemProvider(o,a);if(u)return u}if(o instanceof CG){const u=new Kbe(o,o.actions,n,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:o.class,anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement,skipTelemetry:this.options.skipTelemetry,hoverDelegate:this.options.hoverDelegate});return u.setActionContext(this.actionBar.context),this.submenuActionViewItems.push(u),this.disposables.add(this._onDidChangeDropdownVisibility.add(u.onDidChangeVisibility)),u}}}))}set actionRunner(e){this.actionBar.actionRunner=e}get actionRunner(){return this.actionBar.actionRunner}getElement(){return this.element}getItemAction(e){return this.actionBar.getAction(e)}setActions(e,n){this.clear();const i=e?e.slice(0):[];this.hasSecondaryActions=!!(n&&n.length>0),this.hasSecondaryActions&&n&&(this.toggleMenuAction.menuActions=n.slice(0),i.push(this.toggleMenuAction)),i.forEach(o=>{this.actionBar.push(o,{icon:this.options.icon??!0,label:this.options.label??!1,keybinding:this.getKeybindingLabel(o)})})}getKeybindingLabel(e){return this.options.getKeyBinding?.(e)?.getLabel()??void 0}clear(){this.submenuActionViewItems=[],this.disposables.clear(),this.actionBar.clear()}dispose(){this.clear(),this.disposables.dispose(),super.dispose()}}const USe=class USe extends NS{constructor(e,n){n=n||V("moreActions","More Actions..."),super(USe.ID,n,void 0,!0),this._menuActions=[],this.toggleDropdownMenu=e}async run(){this.toggleDropdownMenu()}get menuActions(){return this._menuActions}set menuActions(e){this._menuActions=e}};USe.ID="toolbar.toggle.more";let moe=USe;var e4t=function(c,e,n,i){var o=arguments.length,a=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(c,e,n,i);else for(var h=c.length-1;h>=0;h--)(u=c[h])&&(a=(o<3?u(a):o>3?u(e,n,a):u(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},GT=function(c,e){return function(n,i){e(n,i,c)}};let yoe=class extends GIn{constructor(e,n,i,o,a,u,h,g){super(e,a,{getKeyBinding:x=>u.lookupKeybinding(x.id)??void 0,...n,allowContextMenu:!0,skipTelemetry:typeof n?.telemetrySource=="string"}),this._options=n,this._menuService=i,this._contextKeyService=o,this._contextMenuService=a,this._keybindingService=u,this._commandService=h,this._sessionDisposables=this._store.add(new Ai);const b=n?.telemetrySource;b&&this._store.add(this.actionBar.onDidRun(x=>g.publicLog2("workbenchActionExecuted",{id:x.action.id,from:b})))}setActions(e,n=[],i){this._sessionDisposables.clear();const o=e.slice(),a=n.slice(),u=[];let h=0;const g=[];let b=!1;if(this._options?.hiddenItemStrategy!==-1)for(let x=0;x<o.length;x++){const w=o[x];!(w instanceof ES)&&!(w instanceof Bq)||w.hideActions&&(u.push(w.hideActions.toggle),w.hideActions.toggle.checked&&h++,w.hideActions.isHidden&&(b=!0,o[x]=void 0,this._options?.hiddenItemStrategy!==0&&(g[x]=w)))}if(this._options?.overflowBehavior!==void 0){const x=sxn(new Set(this._options.overflowBehavior.exempted),Ic.map(o,P=>P?.id)),w=this._options.overflowBehavior.maxItems-x.size;let k=0;for(let P=0;P<o.length;P++){const A=o[P];A&&(k++,!x.has(A.id)&&k>=w&&(o[P]=void 0,g[P]=A))}}Gvt(o),Gvt(g),super.setActions(o,rm.join(g,a)),(u.length>0||o.length>0)&&this._sessionDisposables.add(hi(this.getElement(),"contextmenu",x=>{const w=new XT(Ks(this.getElement()),x),k=this.getItemAction(w.target);if(!k)return;w.preventDefault(),w.stopPropagation();const P=[];if(k instanceof ES&&k.menuKeybinding)P.push(k.menuKeybinding);else if(!(k instanceof Bq||k instanceof moe)){const B=!!this._keybindingService.lookupKeybinding(k.id);P.push(mPt(this._commandService,this._keybindingService,k.id,void 0,B))}if(u.length>0){let B=!1;if(h===1&&this._options?.hiddenItemStrategy===0){B=!0;for(let X=0;X<u.length;X++)if(u[X].checked){u[X]=Q9({id:k.id,label:k.label,checked:!0,enabled:!1,run(){}});break}}if(!B&&(k instanceof ES||k instanceof Bq)){if(!k.hideActions)return;P.push(k.hideActions.hide)}else P.push(Q9({id:"label",label:V("hide","Hide"),enabled:!1,run(){}}))}const A=rm.join(P,u);this._options?.resetMenu&&!i&&(i=[this._options.resetMenu]),b&&i&&(A.push(new rm),A.push(Q9({id:"resetThisMenu",label:V("resetThisMenu","Reset Menu"),run:()=>this._menuService.resetHiddenStates(i)}))),A.length!==0&&this._contextMenuService.showContextMenu({getAnchor:()=>w,getActions:()=>A,menuId:this._options?.contextMenu,menuActionOptions:{renderShortTitle:!0,...this._options?.menuOptions},skipTelemetry:typeof this._options?.telemetrySource=="string",contextKeyService:this._contextKeyService})}))}};yoe=e4t([GT(2,hw),GT(3,ca),GT(4,OS),GT(5,Ou),GT(6,yh),GT(7,j1)],yoe);let Gve=class extends yoe{constructor(e,n,i,o,a,u,h,g,b){super(e,{resetMenu:n,...i},o,a,u,h,g,b),this._onDidChangeMenuItems=this._store.add(new Ln),this.onDidChangeMenuItems=this._onDidChangeMenuItems.event;const x=this._store.add(o.createMenu(n,a,{emitEventsForSubmenuChanges:!0})),w=()=>{const k=[],P=[];Iwe(x,i?.menuOptions,{primary:k,secondary:P},i?.toolbarOptions?.primaryGroup,i?.toolbarOptions?.shouldInlineSubmenu,i?.toolbarOptions?.useSeparatorsInPrimaryActions),e.classList.toggle("has-no-actions",k.length===0&&P.length===0),super.setActions(k,P)};this._store.add(x.onDidChange(()=>{w(),this._onDidChangeMenuItems.fire(this)})),w()}setActions(){throw new wu("This toolbar is populated from a menu.")}};Gve=e4t([GT(3,hw),GT(4,ca),GT(5,OS),GT(6,Ou),GT(7,yh),GT(8,j1)],Gve);var t4t=function(c,e,n,i){var o=arguments.length,a=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(c,e,n,i);else for(var h=c.length-1;h>=0;h--)(u=c[h])&&(a=(o<3?u(a):o>3?u(e,n,a):u(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},F0e=function(c,e){return function(n,i){e(n,i,c)}};const UBe=[],I1e=35;let wUe=class extends Wn{constructor(e,n,i,o,a,u,h,g,b){super(),this._diffModel=n,this._editors=i,this._options=o,this._sashLayout=a,this._boundarySashes=u,this._instantiationService=h,this._contextKeyService=g,this._menuService=b,this._menu=this._register(this._menuService.createMenu(Yo.DiffEditorHunkToolbar,this._contextKeyService)),this._actions=Ju(this,this._menu.onDidChange,()=>this._menu.getActions()),this._hasActions=this._actions.map(x=>x.length>0),this._showSash=ps(this,x=>this._options.renderSideBySide.read(x)&&this._hasActions.read(x)),this.width=ps(this,x=>this._hasActions.read(x)?I1e:0),this.elements=lc("div.gutter@gutter",{style:{position:"absolute",height:"100%",width:I1e+"px"}},[]),this._currentDiff=ps(this,x=>{const w=this._diffModel.read(x);if(!w)return;const k=w.diff.read(x)?.mappings,P=this._editors.modifiedCursor.read(x);if(P)return k?.find(A=>A.lineRangeMapping.modified.contains(P.lineNumber))}),this._selectedDiffs=ps(this,x=>{const k=this._diffModel.read(x)?.diff.read(x);if(!k)return UBe;const P=this._editors.modifiedSelections.read(x);if(P.every(Q=>Q.isEmpty()))return UBe;const A=new Y2(P.map(Q=>yl.fromRangeInclusive(Q))),X=k.mappings.filter(Q=>Q.lineRangeMapping.innerChanges&&A.intersects(Q.lineRangeMapping.modified)).map(Q=>({mapping:Q,rangeMappings:Q.lineRangeMapping.innerChanges.filter(ne=>P.some(ge=>lt.areIntersecting(ne.modifiedRange,ge)))}));return X.length===0||X.every(Q=>Q.rangeMappings.length===0)?UBe:X}),this._register(gIn(e,this.elements.root)),this._register(hi(this.elements.root,"click",()=>{this._editors.modified.focus()})),this._register(Z3(this.elements.root,{display:this._hasActions.map(x=>x?"block":"none")})),$0(this,x=>this._showSash.read(x)?new ZPt(e,this._sashLayout.dimensions,this._options.enableSplitViewResizing,this._boundarySashes,fse(this,k=>this._sashLayout.sashLeft.read(k)-I1e,(k,P)=>this._sashLayout.sashLeft.set(k+I1e,P)),()=>this._sashLayout.resetSash()):void 0).recomputeInitiallyAndOnChange(this._store),this._register(new $In(this._editors.modified,this.elements.root,{getIntersectingGutterItems:(x,w)=>{const k=this._diffModel.read(w);if(!k)return[];const P=k.diff.read(w);if(!P)return[];const A=this._selectedDiffs.read(w);if(A.length>0){const X=ow.fromRangeMappings(A.flatMap(Q=>Q.rangeMappings));return[new m2t(X,!0,Yo.DiffEditorSelectionToolbar,void 0,k.model.original.uri,k.model.modified.uri)]}const B=this._currentDiff.read(w);return P.mappings.map(X=>new m2t(X.lineRangeMapping.withInnerChangesFromLineRanges(),X.lineRangeMapping===B?.lineRangeMapping,Yo.DiffEditorHunkToolbar,void 0,k.model.original.uri,k.model.modified.uri))},createView:(x,w)=>this._instantiationService.createInstance(kUe,x,w,this)})),this._register(hi(this.elements.gutter,Nr.MOUSE_WHEEL,x=>{this._editors.modified.getOption(104).handleMouseWheel&&this._editors.modified.delegateScrollFromMouseWheelEvent(x)},{passive:!1}))}computeStagedValue(e){const n=e.innerChanges??[],i=new g2t(this._editors.modifiedModel.get()),o=new g2t(this._editors.original.getModel());return new bKe(n.map(h=>h.toTextEdit(i))).apply(o)}layout(e){this.elements.gutter.style.left=e+"px"}};wUe=t4t([F0e(6,ks),F0e(7,ca),F0e(8,hw)],wUe);class m2t{constructor(e,n,i,o,a,u){this.mapping=e,this.showAlways=n,this.menuId=i,this.rangeOverride=o,this.originalUri=a,this.modifiedUri=u}get id(){return this.mapping.modified.toString()}get range(){return this.rangeOverride??this.mapping.modified}}let kUe=class extends Wn{constructor(e,n,i,o){super(),this._item=e,this._elements=lc("div.gutterItem",{style:{height:"20px",width:"34px"}},[lc("div.background@background",{},[]),lc("div.buttons@buttons",{},[])]),this._showAlways=this._item.map(this,u=>u.showAlways),this._menuId=this._item.map(this,u=>u.menuId),this._isSmall=Gl(this,!1),this._lastItemRange=void 0,this._lastViewRange=void 0;const a=this._register(o.createInstance(DG,"element",!0,{position:{hoverPosition:1}}));this._register(aq(n,this._elements.root)),this._register(Ha(u=>{const h=this._showAlways.read(u);this._elements.root.classList.toggle("noTransition",!0),this._elements.root.classList.toggle("showAlways",h),setTimeout(()=>{this._elements.root.classList.toggle("noTransition",!1)},0)})),this._register(oC((u,h)=>{this._elements.buttons.replaceChildren();const g=h.add(o.createInstance(Gve,this._elements.buttons,this._menuId.read(u),{orientation:1,hoverDelegate:a,toolbarOptions:{primaryGroup:b=>b.startsWith("primary")},overflowBehavior:{maxItems:this._isSmall.read(u)?1:3},hiddenItemStrategy:0,actionRunner:new QPt(()=>{const b=this._item.get(),x=b.mapping;return{mapping:x,originalWithModifiedChanges:i.computeStagedValue(x),originalUri:b.originalUri,modifiedUri:b.modifiedUri}}),menuOptions:{shouldForwardArgs:!0}}));h.add(g.onDidChangeMenuItems(()=>{this._lastItemRange&&this.layout(this._lastItemRange,this._lastViewRange)}))}))}layout(e,n){this._lastItemRange=e,this._lastViewRange=n;let i=this._elements.buttons.clientHeight;this._isSmall.set(this._item.get().mapping.original.startLineNumber===1&&e.length<30,void 0),i=this._elements.buttons.clientHeight;const o=e.length/2-i/2,a=i;let u=e.start+o;const h=Zl.tryCreate(a,n.endExclusive-a-i),g=Zl.tryCreate(e.start+a,e.endExclusive-i-a);g&&h&&g.start<g.endExclusive&&(u=h.clip(u),u=g.clip(u)),this._elements.buttons.style.top=`${u-e.start}px`}};kUe=t4t([F0e(3,ks)],kUe);function kS(c){return TUe.get(c)}const rM=class rM extends Wn{static get(e){let n=rM._map.get(e);if(!n){n=new rM(e),rM._map.set(e,n);const i=e.onDidDispose(()=>{const o=rM._map.get(e);o&&(rM._map.delete(e),o.dispose(),i.dispose())})}return n}_beginUpdate(){this._updateCounter++,this._updateCounter===1&&(this._currentTransaction=new yK(()=>{}))}_endUpdate(){if(this._updateCounter--,this._updateCounter===0){const e=this._currentTransaction;this._currentTransaction=void 0,e.finish()}}constructor(e){super(),this.editor=e,this._updateCounter=0,this._currentTransaction=void 0,this._model=Gl(this,this.editor.getModel()),this.model=this._model,this.isReadonly=Ju(this,this.editor.onDidChangeConfiguration,()=>this.editor.getOption(92)),this._versionId=Lze({owner:this,lazy:!0},this.editor.getModel()?.getVersionId()??null),this.versionId=this._versionId,this._selections=Lze({owner:this,equalsFn:Nze($be(as.selectionsEqual)),lazy:!0},this.editor.getSelections()??null),this.selections=this._selections,this.isFocused=Ju(this,n=>{const i=this.editor.onDidFocusEditorWidget(n),o=this.editor.onDidBlurEditorWidget(n);return{dispose(){i.dispose(),o.dispose()}}},()=>this.editor.hasWidgetFocus()),this.value=fse(this,n=>(this.versionId.read(n),this.model.read(n)?.getValue()??""),(n,i)=>{const o=this.model.get();o!==null&&n!==o.getValue()&&o.setValue(n)}),this.valueIsEmpty=ps(this,n=>(this.versionId.read(n),this.editor.getModel()?.getValueLength()===0)),this.cursorSelection=Yx({owner:this,equalsFn:Nze(as.selectionsEqual)},n=>this.selections.read(n)?.[0]??null),this.onDidType=bK(this),this.scrollTop=Ju(this.editor.onDidScrollChange,()=>this.editor.getScrollTop()),this.scrollLeft=Ju(this.editor.onDidScrollChange,()=>this.editor.getScrollLeft()),this.layoutInfo=Ju(this.editor.onDidLayoutChange,()=>this.editor.getLayoutInfo()),this.layoutInfoContentLeft=this.layoutInfo.map(n=>n.contentLeft),this.layoutInfoDecorationsLeft=this.layoutInfo.map(n=>n.decorationsLeft),this.contentWidth=Ju(this.editor.onDidContentSizeChange,()=>this.editor.getContentWidth()),this._overlayWidgetCounter=0,this._register(this.editor.onBeginUpdate(()=>this._beginUpdate())),this._register(this.editor.onEndUpdate(()=>this._endUpdate())),this._register(this.editor.onDidChangeModel(()=>{this._beginUpdate();try{this._model.set(this.editor.getModel(),this._currentTransaction),this._forceUpdate()}finally{this._endUpdate()}})),this._register(this.editor.onDidType(n=>{this._beginUpdate();try{this._forceUpdate(),this.onDidType.trigger(this._currentTransaction,n)}finally{this._endUpdate()}})),this._register(this.editor.onDidChangeModelContent(n=>{this._beginUpdate();try{this._versionId.set(this.editor.getModel()?.getVersionId()??null,this._currentTransaction,n),this._forceUpdate()}finally{this._endUpdate()}})),this._register(this.editor.onDidChangeCursorSelection(n=>{this._beginUpdate();try{this._selections.set(this.editor.getSelections(),this._currentTransaction,n),this._forceUpdate()}finally{this._endUpdate()}}))}forceUpdate(e){this._beginUpdate();try{return this._forceUpdate(),e?e(this._currentTransaction):void 0}finally{this._endUpdate()}}_forceUpdate(){this._beginUpdate();try{this._model.set(this.editor.getModel(),this._currentTransaction),this._versionId.set(this.editor.getModel()?.getVersionId()??null,this._currentTransaction,void 0),this._selections.set(this.editor.getSelections(),this._currentTransaction,void 0)}finally{this._endUpdate()}}getOption(e){return Ju(this,n=>this.editor.onDidChangeConfiguration(i=>{i.hasChanged(e)&&n(void 0)}),()=>this.editor.getOption(e))}setDecorations(e){const n=new Ai,i=this.editor.createDecorationsCollection();return n.add(_se({owner:this,debugName:()=>`Apply decorations from ${e.debugName}`},o=>{const a=e.read(o);i.set(a)})),n.add({dispose:()=>{i.clear()}}),n}createOverlayWidget(e){const n="observableOverlayWidget"+this._overlayWidgetCounter++,i={getDomNode:()=>e.domNode,getPosition:()=>e.position.get(),getId:()=>n,allowEditorOverflow:e.allowEditorOverflow,getMinContentWidthInPx:()=>e.minContentWidthInPx.get()};this.editor.addOverlayWidget(i);const o=Ha(a=>{e.position.read(a),e.minContentWidthInPx.read(a),this.editor.layoutOverlayWidget(i)});return ws(()=>{o.dispose(),this.editor.removeOverlayWidget(i)})}};rM._map=new Map;let TUe=rM;function DUe(c,e){return gCn({createEmptyChangeSummary:()=>({deltas:[],didChange:!1}),handleChange:(n,i)=>{if(n.didChange(c)){const o=n.change;o!==void 0&&i.deltas.push(o),i.didChange=!0}return!0}},(n,i)=>{const o=c.read(n);i.didChange&&e(o,i.deltas)})}function KIn(c,e){const n=new Ai,i=DUe(c,(o,a)=>{n.clear(),e(o,a,n)});return{dispose(){i.dispose(),n.dispose()}}}var JIn=function(c,e,n,i){var o=arguments.length,a=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(c,e,n,i);else for(var h=c.length-1;h>=0;h--)(u=c[h])&&(a=(o<3?u(a):o>3?u(e,n,a):u(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},XIn=function(c,e){return function(n,i){e(n,i,c)}},M0e,bB;let Kve=(bB=class extends Wn{static setBreadcrumbsSourceFactory(e){this._breadcrumbsSourceFactory.set(e,void 0)}get isUpdatingHiddenAreas(){return this._isUpdatingHiddenAreas}constructor(e,n,i,o){super(),this._editors=e,this._diffModel=n,this._options=i,this._instantiationService=o,this._modifiedOutlineSource=$0(this,g=>{const b=this._editors.modifiedModel.read(g),x=M0e._breadcrumbsSourceFactory.read(g);return!b||!x?void 0:x(b,this._instantiationService)}),this._isUpdatingHiddenAreas=!1,this._register(this._editors.original.onDidChangeCursorPosition(g=>{if(g.reason===1)return;const b=this._diffModel.get();If(x=>{for(const w of this._editors.original.getSelections()||[])b?.ensureOriginalLineIsVisible(w.getStartPosition().lineNumber,0,x),b?.ensureOriginalLineIsVisible(w.getEndPosition().lineNumber,0,x)})})),this._register(this._editors.modified.onDidChangeCursorPosition(g=>{if(g.reason===1)return;const b=this._diffModel.get();If(x=>{for(const w of this._editors.modified.getSelections()||[])b?.ensureModifiedLineIsVisible(w.getStartPosition().lineNumber,0,x),b?.ensureModifiedLineIsVisible(w.getEndPosition().lineNumber,0,x)})}));const a=this._diffModel.map((g,b)=>{const x=g?.unchangedRegions.read(b)??[];return x.length===1&&x[0].modifiedLineNumber===1&&x[0].lineCount===this._editors.modifiedModel.read(b)?.getLineCount()?[]:x});this.viewZones=NO(this,(g,b)=>{const x=this._modifiedOutlineSource.read(g);if(!x)return{origViewZones:[],modViewZones:[]};const w=[],k=[],P=this._options.renderSideBySide.read(g),A=this._options.compactMode.read(g),B=a.read(g);for(let X=0;X<B.length;X++){const Q=B[X];if(!Q.shouldHideControls(g)&&!(A&&(X===0||X===B.length-1)))if(A){{const ne=ps(this,ye=>Q.getHiddenOriginalRange(ye).startLineNumber-1),ge=new lq(ne,12);w.push(ge),b.add(new y2t(this._editors.original,ge,Q,!P))}{const ne=ps(this,ye=>Q.getHiddenModifiedRange(ye).startLineNumber-1),ge=new lq(ne,12);k.push(ge),b.add(new y2t(this._editors.modified,ge,Q))}}else{{const ne=ps(this,ye=>Q.getHiddenOriginalRange(ye).startLineNumber-1),ge=new lq(ne,24);w.push(ge),b.add(new b2t(this._editors.original,ge,Q,Q.originalUnchangedRange,!P,x,ye=>this._diffModel.get().ensureModifiedLineIsVisible(ye,2,void 0),this._options))}{const ne=ps(this,ye=>Q.getHiddenModifiedRange(ye).startLineNumber-1),ge=new lq(ne,24);k.push(ge),b.add(new b2t(this._editors.modified,ge,Q,Q.modifiedUnchangedRange,!1,x,ye=>this._diffModel.get().ensureModifiedLineIsVisible(ye,2,void 0),this._options))}}}return{origViewZones:w,modViewZones:k}});const u={description:"unchanged lines",className:"diff-unchanged-lines",isWholeLine:!0},h={description:"Fold Unchanged",glyphMarginHoverMessage:new R1(void 0,{isTrusted:!0,supportThemeIcons:!0}).appendMarkdown(V("foldUnchanged","Fold Unchanged Region")),glyphMarginClassName:"fold-unchanged "+ra.asClassName(wr.fold),zIndex:10001};this._register(zve(this._editors.original,ps(this,g=>{const b=a.read(g),x=b.map(w=>({range:w.originalUnchangedRange.toInclusiveRange(),options:u}));for(const w of b)w.shouldHideControls(g)&&x.push({range:lt.fromPositions(new Nn(w.originalLineNumber,1)),options:h});return x}))),this._register(zve(this._editors.modified,ps(this,g=>{const b=a.read(g),x=b.map(w=>({range:w.modifiedUnchangedRange.toInclusiveRange(),options:u}));for(const w of b)w.shouldHideControls(g)&&x.push({range:yl.ofLength(w.modifiedLineNumber,1).toInclusiveRange(),options:h});return x}))),this._register(Ha(g=>{const b=a.read(g);this._isUpdatingHiddenAreas=!0;try{this._editors.original.setHiddenAreas(b.map(x=>x.getHiddenOriginalRange(g).toInclusiveRange()).filter(dP)),this._editors.modified.setHiddenAreas(b.map(x=>x.getHiddenModifiedRange(g).toInclusiveRange()).filter(dP))}finally{this._isUpdatingHiddenAreas=!1}})),this._register(this._editors.modified.onMouseUp(g=>{if(!g.event.rightButton&&g.target.position&&g.target.element?.className.includes("fold-unchanged")){const b=g.target.position.lineNumber,x=this._diffModel.get();if(!x)return;const w=x.unchangedRegions.get().find(k=>k.modifiedUnchangedRange.includes(b));if(!w)return;w.collapseAll(void 0),g.event.stopPropagation(),g.event.preventDefault()}})),this._register(this._editors.original.onMouseUp(g=>{if(!g.event.rightButton&&g.target.position&&g.target.element?.className.includes("fold-unchanged")){const b=g.target.position.lineNumber,x=this._diffModel.get();if(!x)return;const w=x.unchangedRegions.get().find(k=>k.originalUnchangedRange.includes(b));if(!w)return;w.collapseAll(void 0),g.event.stopPropagation(),g.event.preventDefault()}}))}},M0e=bB,bB._breadcrumbsSourceFactory=Gl(M0e,()=>({dispose(){},getBreadcrumbItems(e,n){return[]}})),bB);Kve=M0e=JIn([XIn(3,ks)],Kve);class y2t extends aXe{constructor(e,n,i,o=!1){const a=lc("div.diff-hidden-lines-widget");super(e,n,a.root),this._unchangedRegion=i,this._hide=o,this._nodes=lc("div.diff-hidden-lines-compact",[lc("div.line-left",[]),lc("div.text@text",[]),lc("div.line-right",[])]),a.root.appendChild(this._nodes.root),this._hide&&this._nodes.root.replaceChildren(),this._register(Ha(u=>{if(!this._hide){const h=this._unchangedRegion.getHiddenModifiedRange(u).length,g=V("hiddenLines","{0} hidden lines",h);this._nodes.text.innerText=g}}))}}class b2t extends aXe{constructor(e,n,i,o,a,u,h,g){const b=lc("div.diff-hidden-lines-widget");super(e,n,b.root),this._editor=e,this._unchangedRegion=i,this._unchangedRegionRange=o,this._hide=a,this._modifiedOutlineSource=u,this._revealModifiedHiddenLine=h,this._options=g,this._nodes=lc("div.diff-hidden-lines",[lc("div.top@top",{title:V("diff.hiddenLines.top","Click or drag to show more above")}),lc("div.center@content",{style:{display:"flex"}},[lc("div@first",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexShrink:"0"}},[Ir("a",{title:V("showUnchangedRegion","Show Unchanged Region"),role:"button",onclick:()=>{this._unchangedRegion.showAll(void 0)}},...AM("$(unfold)"))]),lc("div@others",{style:{display:"flex",justifyContent:"center",alignItems:"center"}})]),lc("div.bottom@bottom",{title:V("diff.bottom","Click or drag to show more below"),role:"button"})]),b.root.appendChild(this._nodes.root),this._hide?by(this._nodes.first):this._register(Z3(this._nodes.first,{width:kS(this._editor).layoutInfoContentLeft})),this._register(Ha(w=>{const k=this._unchangedRegion.visibleLineCountTop.read(w)+this._unchangedRegion.visibleLineCountBottom.read(w)===this._unchangedRegion.lineCount;this._nodes.bottom.classList.toggle("canMoveTop",!k),this._nodes.bottom.classList.toggle("canMoveBottom",this._unchangedRegion.visibleLineCountBottom.read(w)>0),this._nodes.top.classList.toggle("canMoveTop",this._unchangedRegion.visibleLineCountTop.read(w)>0),this._nodes.top.classList.toggle("canMoveBottom",!k);const P=this._unchangedRegion.isDragged.read(w),A=this._editor.getDomNode();A&&(A.classList.toggle("draggingUnchangedRegion",!!P),P==="top"?(A.classList.toggle("canMoveTop",this._unchangedRegion.visibleLineCountTop.read(w)>0),A.classList.toggle("canMoveBottom",!k)):P==="bottom"?(A.classList.toggle("canMoveTop",!k),A.classList.toggle("canMoveBottom",this._unchangedRegion.visibleLineCountBottom.read(w)>0)):(A.classList.toggle("canMoveTop",!1),A.classList.toggle("canMoveBottom",!1)))}));const x=this._editor;this._register(hi(this._nodes.top,"mousedown",w=>{if(w.button!==0)return;this._nodes.top.classList.toggle("dragging",!0),this._nodes.root.classList.toggle("dragging",!0),w.preventDefault();const k=w.clientY;let P=!1;const A=this._unchangedRegion.visibleLineCountTop.get();this._unchangedRegion.isDragged.set("top",void 0);const B=Ks(this._nodes.top),X=hi(B,"mousemove",ne=>{const ye=ne.clientY-k;P=P||Math.abs(ye)>2;const Me=Math.round(ye/x.getOption(67)),Je=Math.max(0,Math.min(A+Me,this._unchangedRegion.getMaxVisibleLineCountTop()));this._unchangedRegion.visibleLineCountTop.set(Je,void 0)}),Q=hi(B,"mouseup",ne=>{P||this._unchangedRegion.showMoreAbove(this._options.hideUnchangedRegionsRevealLineCount.get(),void 0),this._nodes.top.classList.toggle("dragging",!1),this._nodes.root.classList.toggle("dragging",!1),this._unchangedRegion.isDragged.set(void 0,void 0),X.dispose(),Q.dispose()})})),this._register(hi(this._nodes.bottom,"mousedown",w=>{if(w.button!==0)return;this._nodes.bottom.classList.toggle("dragging",!0),this._nodes.root.classList.toggle("dragging",!0),w.preventDefault();const k=w.clientY;let P=!1;const A=this._unchangedRegion.visibleLineCountBottom.get();this._unchangedRegion.isDragged.set("bottom",void 0);const B=Ks(this._nodes.bottom),X=hi(B,"mousemove",ne=>{const ye=ne.clientY-k;P=P||Math.abs(ye)>2;const Me=Math.round(ye/x.getOption(67)),Je=Math.max(0,Math.min(A-Me,this._unchangedRegion.getMaxVisibleLineCountBottom())),Be=this._unchangedRegionRange.endLineNumberExclusive>x.getModel().getLineCount()?x.getContentHeight():x.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);this._unchangedRegion.visibleLineCountBottom.set(Je,void 0);const ft=this._unchangedRegionRange.endLineNumberExclusive>x.getModel().getLineCount()?x.getContentHeight():x.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);x.setScrollTop(x.getScrollTop()+(ft-Be))}),Q=hi(B,"mouseup",ne=>{if(this._unchangedRegion.isDragged.set(void 0,void 0),!P){const ge=x.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);this._unchangedRegion.showMoreBelow(this._options.hideUnchangedRegionsRevealLineCount.get(),void 0);const ye=x.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);x.setScrollTop(x.getScrollTop()+(ye-ge))}this._nodes.bottom.classList.toggle("dragging",!1),this._nodes.root.classList.toggle("dragging",!1),X.dispose(),Q.dispose()})})),this._register(Ha(w=>{const k=[];if(!this._hide){const P=i.getHiddenModifiedRange(w).length,A=V("hiddenLines","{0} hidden lines",P),B=Ir("span",{title:V("diff.hiddenLines.expandAll","Double click to unfold")},A);B.addEventListener("dblclick",ne=>{ne.button===0&&(ne.preventDefault(),this._unchangedRegion.showAll(void 0))}),k.push(B);const X=this._unchangedRegion.getHiddenModifiedRange(w),Q=this._modifiedOutlineSource.getBreadcrumbItems(X,w);if(Q.length>0){k.push(Ir("span",void 0," | "));for(let ne=0;ne<Q.length;ne++){const ge=Q[ne],ye=abe.toIcon(ge.kind),Me=lc("div.breadcrumb-item",{style:{display:"flex",alignItems:"center"}},[pW(ye)," ",ge.name,...ne===Q.length-1?[]:[pW(wr.chevronRight)]]).root;k.push(Me),Me.onclick=()=>{this._revealModifiedHiddenLine(ge.startLineNumber)}}}}by(this._nodes.others,...k)}))}}var YIn=function(c,e,n,i){var o=arguments.length,a=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(c,e,n,i);else for(var h=c.length-1;h>=0;h--)(u=c[h])&&(a=(o<3?u(a):o>3?u(e,n,a):u(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},ZIn=function(c,e){return function(n,i){e(n,i,c)}},QN,O3;let boe=(O3=class extends Wn{constructor(e,n,i,o,a,u,h){super(),this._editors=e,this._rootElement=n,this._diffModel=i,this._rootWidth=o,this._rootHeight=a,this._modifiedEditorLayoutInfo=u,this._themeService=h,this.width=QN.ENTIRE_DIFF_OVERVIEW_WIDTH;const g=Ju(this._themeService.onDidColorThemeChange,()=>this._themeService.getColorTheme()),b=ps(k=>{const P=g.read(k),A=P.getColor(g1n)||(P.getColor(_1n)||Xje).transparent(2),B=P.getColor(m1n)||(P.getColor(p1n)||Yje).transparent(2);return{insertColor:A,removeColor:B}}),x=Mu(document.createElement("div"));x.setClassName("diffViewport"),x.setPosition("absolute");const w=lc("div.diffOverview",{style:{position:"absolute",top:"0px",width:QN.ENTIRE_DIFF_OVERVIEW_WIDTH+"px"}}).root;this._register(aq(w,x.domNode)),this._register(Gf(w,Nr.POINTER_DOWN,k=>{this._editors.modified.delegateVerticalScrollbarPointerDown(k)})),this._register(hi(w,Nr.MOUSE_WHEEL,k=>{this._editors.modified.delegateScrollFromMouseWheelEvent(k)},{passive:!1})),this._register(aq(this._rootElement,w)),this._register(oC((k,P)=>{const A=this._diffModel.read(k),B=this._editors.original.createOverviewRuler("original diffOverviewRuler");B&&(P.add(B),P.add(aq(w,B.getDomNode())));const X=this._editors.modified.createOverviewRuler("modified diffOverviewRuler");if(X&&(P.add(X),P.add(aq(w,X.getDomNode()))),!B||!X)return;const Q=Ky("viewZoneChanged",this._editors.original.onDidChangeViewZones),ne=Ky("viewZoneChanged",this._editors.modified.onDidChangeViewZones),ge=Ky("hiddenRangesChanged",this._editors.original.onDidChangeHiddenAreas),ye=Ky("hiddenRangesChanged",this._editors.modified.onDidChangeHiddenAreas);P.add(Ha(Me=>{Q.read(Me),ne.read(Me),ge.read(Me),ye.read(Me);const Je=b.read(Me),Be=A?.diff.read(Me)?.mappings;function ft(ht,Mt,sn){const pt=sn._getViewModel();return pt?ht.filter(cn=>cn.length>0).map(cn=>{const Qt=pt.coordinatesConverter.convertModelPositionToViewPosition(new Nn(cn.startLineNumber,1)),vt=pt.coordinatesConverter.convertModelPositionToViewPosition(new Nn(cn.endLineNumberExclusive,1)),Li=vt.lineNumber-Qt.lineNumber;return new zPt(Qt.lineNumber,vt.lineNumber,Li,Mt.toString())}):[]}const gt=ft((Be||[]).map(ht=>ht.lineRangeMapping.original),Je.removeColor,this._editors.original),bn=ft((Be||[]).map(ht=>ht.lineRangeMapping.modified),Je.insertColor,this._editors.modified);B?.setZones(gt),X?.setZones(bn)})),P.add(Ha(Me=>{const Je=this._rootHeight.read(Me),Be=this._rootWidth.read(Me),ft=this._modifiedEditorLayoutInfo.read(Me);if(ft){const gt=QN.ENTIRE_DIFF_OVERVIEW_WIDTH-2*QN.ONE_OVERVIEW_WIDTH;B.setLayout({top:0,height:Je,right:gt+QN.ONE_OVERVIEW_WIDTH,width:QN.ONE_OVERVIEW_WIDTH}),X.setLayout({top:0,height:Je,right:0,width:QN.ONE_OVERVIEW_WIDTH});const bn=this._editors.modifiedScrollTop.read(Me),ht=this._editors.modifiedScrollHeight.read(Me),Mt=this._editors.modified.getOption(104),sn=new EG(Mt.verticalHasArrows?Mt.arrowSize:0,Mt.verticalScrollbarSize,0,ft.height,ht,bn);x.setTop(sn.getSliderPosition()),x.setHeight(sn.getSliderSize())}else x.setTop(0),x.setHeight(0);w.style.height=Je+"px",w.style.left=Be-QN.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",x.setWidth(QN.ENTIRE_DIFF_OVERVIEW_WIDTH)}))}))}},QN=O3,O3.ONE_OVERVIEW_WIDTH=15,O3.ENTIRE_DIFF_OVERVIEW_WIDTH=O3.ONE_OVERVIEW_WIDTH*2,O3);boe=QN=YIn([ZIn(6,Ig)],boe);const $Be=[];class QIn extends Wn{constructor(e,n,i,o){super(),this._editors=e,this._diffModel=n,this._options=i,this._widget=o,this._selectedDiffs=ps(this,a=>{const h=this._diffModel.read(a)?.diff.read(a);if(!h)return $Be;const g=this._editors.modifiedSelections.read(a);if(g.every(k=>k.isEmpty()))return $Be;const b=new Y2(g.map(k=>yl.fromRangeInclusive(k))),w=h.mappings.filter(k=>k.lineRangeMapping.innerChanges&&b.intersects(k.lineRangeMapping.modified)).map(k=>({mapping:k,rangeMappings:k.lineRangeMapping.innerChanges.filter(P=>g.some(A=>lt.areIntersecting(P.modifiedRange,A)))}));return w.length===0||w.every(k=>k.rangeMappings.length===0)?$Be:w}),this._register(oC((a,u)=>{if(!this._options.shouldRenderOldRevertArrows.read(a))return;const h=this._diffModel.read(a),g=h?.diff.read(a);if(!h||!g||h.movedTextToCompare.read(a))return;const b=[],x=this._selectedDiffs.read(a),w=new Set(x.map(k=>k.mapping));if(x.length>0){const k=this._editors.modifiedSelections.read(a),P=u.add(new Jve(k[k.length-1].positionLineNumber,this._widget,x.flatMap(A=>A.rangeMappings),!0));this._editors.modified.addGlyphMarginWidget(P),b.push(P)}for(const k of g.mappings)if(!w.has(k)&&!k.lineRangeMapping.modified.isEmpty&&k.lineRangeMapping.innerChanges){const P=u.add(new Jve(k.lineRangeMapping.modified.startLineNumber,this._widget,k.lineRangeMapping,!1));this._editors.modified.addGlyphMarginWidget(P),b.push(P)}u.add(ws(()=>{for(const k of b)this._editors.modified.removeGlyphMarginWidget(k)}))}))}}const $Se=class $Se extends Wn{getId(){return this._id}constructor(e,n,i,o){super(),this._lineNumber=e,this._widget=n,this._diffs=i,this._revertSelection=o,this._id=`revertButton${$Se.counter++}`,this._domNode=lc("div.revertButton",{title:this._revertSelection?V("revertSelectedChanges","Revert Selected Changes"):V("revertChange","Revert Change")},[pW(wr.arrowRight)]).root,this._register(hi(this._domNode,Nr.MOUSE_DOWN,a=>{a.button!==2&&(a.stopPropagation(),a.preventDefault())})),this._register(hi(this._domNode,Nr.MOUSE_UP,a=>{a.stopPropagation(),a.preventDefault()})),this._register(hi(this._domNode,Nr.CLICK,a=>{this._diffs instanceof K0?this._widget.revert(this._diffs):this._widget.revertRangeMappings(this._diffs),a.stopPropagation(),a.preventDefault()}))}getDomNode(){return this._domNode}getPosition(){return{lane:oD.Right,range:{startColumn:1,startLineNumber:this._lineNumber,endColumn:1,endLineNumber:this._lineNumber},zIndex:10001}}};$Se.counter=0;let Jve=$Se;function eLn(c,e,n){return yCn({debugName:()=>`Configuration Key "${c}"`},i=>n.onDidChangeConfiguration(o=>{o.affectsConfiguration(c)&&i(o)}),()=>n.getValue(c)??e)}function nE(c,e,n){const i=c.bindTo(e);return _se({debugName:()=>`Set Context Key "${c.key}"`},o=>{i.set(n(o))})}var tLn=function(c,e,n,i){var o=arguments.length,a=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(c,e,n,i);else for(var h=c.length-1;h>=0;h--)(u=c[h])&&(a=(o<3?u(a):o>3?u(e,n,a):u(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},v2t=function(c,e){return function(n,i){e(n,i,c)}};let NUe=class extends Wn{get onDidContentSizeChange(){return this._onDidContentSizeChange.event}constructor(e,n,i,o,a,u,h){super(),this.originalEditorElement=e,this.modifiedEditorElement=n,this._options=i,this._argCodeEditorWidgetOptions=o,this._createInnerEditor=a,this._instantiationService=u,this._keybindingService=h,this.original=this._register(this._createLeftHandSideEditor(this._options.editorOptions.get(),this._argCodeEditorWidgetOptions.originalEditor||{})),this.modified=this._register(this._createRightHandSideEditor(this._options.editorOptions.get(),this._argCodeEditorWidgetOptions.modifiedEditor||{})),this._onDidContentSizeChange=this._register(new Ln),this.modifiedScrollTop=Ju(this,this.modified.onDidScrollChange,()=>this.modified.getScrollTop()),this.modifiedScrollHeight=Ju(this,this.modified.onDidScrollChange,()=>this.modified.getScrollHeight()),this.modifiedObs=kS(this.modified),this.originalObs=kS(this.original),this.modifiedModel=this.modifiedObs.model,this.modifiedSelections=Ju(this,this.modified.onDidChangeCursorSelection,()=>this.modified.getSelections()??[]),this.modifiedCursor=Yx({owner:this,equalsFn:Nn.equals},g=>this.modifiedSelections.read(g)[0]?.getPosition()??new Nn(1,1)),this.originalCursor=Ju(this,this.original.onDidChangeCursorPosition,()=>this.original.getPosition()??new Nn(1,1)),this._argCodeEditorWidgetOptions=null,this._register(pse({createEmptyChangeSummary:()=>({}),handleChange:(g,b)=>(g.didChange(i.editorOptions)&&Object.assign(b,g.change.changedOptions),!0)},(g,b)=>{i.editorOptions.read(g),this._options.renderSideBySide.read(g),this.modified.updateOptions(this._adjustOptionsForRightHandSide(g,b)),this.original.updateOptions(this._adjustOptionsForLeftHandSide(g,b))}))}_createLeftHandSideEditor(e,n){const i=this._adjustOptionsForLeftHandSide(void 0,e),o=this._constructInnerEditor(this._instantiationService,this.originalEditorElement,i,n);return o.setContextValue("isInDiffLeftEditor",!0),o}_createRightHandSideEditor(e,n){const i=this._adjustOptionsForRightHandSide(void 0,e),o=this._constructInnerEditor(this._instantiationService,this.modifiedEditorElement,i,n);return o.setContextValue("isInDiffRightEditor",!0),o}_constructInnerEditor(e,n,i,o){const a=this._createInnerEditor(e,n,i,o);return this._register(a.onDidContentSizeChange(u=>{const h=this.original.getContentWidth()+this.modified.getContentWidth()+boe.ENTIRE_DIFF_OVERVIEW_WIDTH,g=Math.max(this.modified.getContentHeight(),this.original.getContentHeight());this._onDidContentSizeChange.fire({contentHeight:g,contentWidth:h,contentHeightChanged:u.contentHeightChanged,contentWidthChanged:u.contentWidthChanged})})),a}_adjustOptionsForLeftHandSide(e,n){const i=this._adjustOptionsForSubEditor(n);return this._options.renderSideBySide.get()?(i.unicodeHighlight=this._options.editorOptions.get().unicodeHighlight||{},i.wordWrapOverride1=this._options.diffWordWrap.get()):(i.wordWrapOverride1="off",i.wordWrapOverride2="off",i.stickyScroll={enabled:!1},i.unicodeHighlight={nonBasicASCII:!1,ambiguousCharacters:!1,invisibleCharacters:!1}),i.glyphMargin=this._options.renderSideBySide.get(),n.originalAriaLabel&&(i.ariaLabel=n.originalAriaLabel),i.ariaLabel=this._updateAriaLabel(i.ariaLabel),i.readOnly=!this._options.originalEditable.get(),i.dropIntoEditor={enabled:!i.readOnly},i.extraEditorClassName="original-in-monaco-diff-editor",i}_adjustOptionsForRightHandSide(e,n){const i=this._adjustOptionsForSubEditor(n);return n.modifiedAriaLabel&&(i.ariaLabel=n.modifiedAriaLabel),i.ariaLabel=this._updateAriaLabel(i.ariaLabel),i.wordWrapOverride1=this._options.diffWordWrap.get(),i.revealHorizontalRightPadding=ME.revealHorizontalRightPadding.defaultValue+boe.ENTIRE_DIFF_OVERVIEW_WIDTH,i.scrollbar.verticalHasArrows=!1,i.extraEditorClassName="modified-in-monaco-diff-editor",i}_adjustOptionsForSubEditor(e){const n={...e,dimension:{height:0,width:0}};return n.inDiffEditor=!0,n.automaticLayout=!1,n.scrollbar={...n.scrollbar||{}},n.folding=!1,n.codeLens=this._options.diffCodeLens.get(),n.fixedOverflowWidgets=!0,n.minimap={...n.minimap||{}},n.minimap.enabled=!1,this._options.hideUnchangedRegions.get()?n.stickyScroll={enabled:!1}:n.stickyScroll=this._options.editorOptions.get().stickyScroll,n}_updateAriaLabel(e){e||(e="");const n=V("diff-aria-navigation-tip"," use {0} to open the accessibility help.",this._keybindingService.lookupKeybinding("editor.action.accessibilityHelp")?.getAriaLabel());return this._options.accessibilityVerbose.get()?e+n:e?e.replaceAll(n,""):""}};NUe=tLn([v2t(5,ks),v2t(6,Ou)],NUe);const qSe=class qSe extends Wn{constructor(){super(...arguments),this._id=++qSe.idCounter,this._onDidDispose=this._register(new Ln),this.onDidDispose=this._onDidDispose.event}getId(){return this.getEditorType()+":v2:"+this._id}getVisibleColumnFromPosition(e){return this._targetEditor.getVisibleColumnFromPosition(e)}getPosition(){return this._targetEditor.getPosition()}setPosition(e,n="api"){this._targetEditor.setPosition(e,n)}revealLine(e,n=0){this._targetEditor.revealLine(e,n)}revealLineInCenter(e,n=0){this._targetEditor.revealLineInCenter(e,n)}revealLineInCenterIfOutsideViewport(e,n=0){this._targetEditor.revealLineInCenterIfOutsideViewport(e,n)}revealLineNearTop(e,n=0){this._targetEditor.revealLineNearTop(e,n)}revealPosition(e,n=0){this._targetEditor.revealPosition(e,n)}revealPositionInCenter(e,n=0){this._targetEditor.revealPositionInCenter(e,n)}revealPositionInCenterIfOutsideViewport(e,n=0){this._targetEditor.revealPositionInCenterIfOutsideViewport(e,n)}revealPositionNearTop(e,n=0){this._targetEditor.revealPositionNearTop(e,n)}getSelection(){return this._targetEditor.getSelection()}getSelections(){return this._targetEditor.getSelections()}setSelection(e,n="api"){this._targetEditor.setSelection(e,n)}setSelections(e,n="api"){this._targetEditor.setSelections(e,n)}revealLines(e,n,i=0){this._targetEditor.revealLines(e,n,i)}revealLinesInCenter(e,n,i=0){this._targetEditor.revealLinesInCenter(e,n,i)}revealLinesInCenterIfOutsideViewport(e,n,i=0){this._targetEditor.revealLinesInCenterIfOutsideViewport(e,n,i)}revealLinesNearTop(e,n,i=0){this._targetEditor.revealLinesNearTop(e,n,i)}revealRange(e,n=0,i=!1,o=!0){this._targetEditor.revealRange(e,n,i,o)}revealRangeInCenter(e,n=0){this._targetEditor.revealRangeInCenter(e,n)}revealRangeInCenterIfOutsideViewport(e,n=0){this._targetEditor.revealRangeInCenterIfOutsideViewport(e,n)}revealRangeNearTop(e,n=0){this._targetEditor.revealRangeNearTop(e,n)}revealRangeNearTopIfOutsideViewport(e,n=0){this._targetEditor.revealRangeNearTopIfOutsideViewport(e,n)}revealRangeAtTop(e,n=0){this._targetEditor.revealRangeAtTop(e,n)}getSupportedActions(){return this._targetEditor.getSupportedActions()}focus(){this._targetEditor.focus()}trigger(e,n,i){this._targetEditor.trigger(e,n,i)}createDecorationsCollection(e){return this._targetEditor.createDecorationsCollection(e)}changeDecorations(e){return this._targetEditor.changeDecorations(e)}};qSe.idCounter=0;let EUe=qSe;var nLn=function(c,e,n,i){var o=arguments.length,a=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(c,e,n,i);else for(var h=c.length-1;h>=0;h--)(u=c[h])&&(a=(o<3?u(a):o>3?u(e,n,a):u(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},iLn=function(c,e){return function(n,i){e(n,i,c)}};let IUe=class{get editorOptions(){return this._options}constructor(e,n){this._accessibilityService=n,this._diffEditorWidth=Gl(this,0),this._screenReaderMode=Ju(this,this._accessibilityService.onDidChangeScreenReaderOptimized,()=>this._accessibilityService.isScreenReaderOptimized()),this.couldShowInlineViewBecauseOfSize=ps(this,o=>this._options.read(o).renderSideBySide&&this._diffEditorWidth.read(o)<=this._options.read(o).renderSideBySideInlineBreakpoint),this.renderOverviewRuler=ps(this,o=>this._options.read(o).renderOverviewRuler),this.renderSideBySide=ps(this,o=>this.compactMode.read(o)&&this.shouldRenderInlineViewInSmartMode.read(o)?!1:this._options.read(o).renderSideBySide&&!(this._options.read(o).useInlineViewWhenSpaceIsLimited&&this.couldShowInlineViewBecauseOfSize.read(o)&&!this._screenReaderMode.read(o))),this.readOnly=ps(this,o=>this._options.read(o).readOnly),this.shouldRenderOldRevertArrows=ps(this,o=>!(!this._options.read(o).renderMarginRevertIcon||!this.renderSideBySide.read(o)||this.readOnly.read(o)||this.shouldRenderGutterMenu.read(o))),this.shouldRenderGutterMenu=ps(this,o=>this._options.read(o).renderGutterMenu),this.renderIndicators=ps(this,o=>this._options.read(o).renderIndicators),this.enableSplitViewResizing=ps(this,o=>this._options.read(o).enableSplitViewResizing),this.splitViewDefaultRatio=ps(this,o=>this._options.read(o).splitViewDefaultRatio),this.ignoreTrimWhitespace=ps(this,o=>this._options.read(o).ignoreTrimWhitespace),this.maxComputationTimeMs=ps(this,o=>this._options.read(o).maxComputationTime),this.showMoves=ps(this,o=>this._options.read(o).experimental.showMoves&&this.renderSideBySide.read(o)),this.isInEmbeddedEditor=ps(this,o=>this._options.read(o).isInEmbeddedEditor),this.diffWordWrap=ps(this,o=>this._options.read(o).diffWordWrap),this.originalEditable=ps(this,o=>this._options.read(o).originalEditable),this.diffCodeLens=ps(this,o=>this._options.read(o).diffCodeLens),this.accessibilityVerbose=ps(this,o=>this._options.read(o).accessibilityVerbose),this.diffAlgorithm=ps(this,o=>this._options.read(o).diffAlgorithm),this.showEmptyDecorations=ps(this,o=>this._options.read(o).experimental.showEmptyDecorations),this.onlyShowAccessibleDiffViewer=ps(this,o=>this._options.read(o).onlyShowAccessibleDiffViewer),this.compactMode=ps(this,o=>this._options.read(o).compactMode),this.trueInlineDiffRenderingEnabled=ps(this,o=>this._options.read(o).experimental.useTrueInlineView),this.useTrueInlineDiffRendering=ps(this,o=>!this.renderSideBySide.read(o)&&this.trueInlineDiffRenderingEnabled.read(o)),this.hideUnchangedRegions=ps(this,o=>this._options.read(o).hideUnchangedRegions.enabled),this.hideUnchangedRegionsRevealLineCount=ps(this,o=>this._options.read(o).hideUnchangedRegions.revealLineCount),this.hideUnchangedRegionsContextLineCount=ps(this,o=>this._options.read(o).hideUnchangedRegions.contextLineCount),this.hideUnchangedRegionsMinimumLineCount=ps(this,o=>this._options.read(o).hideUnchangedRegions.minimumLineCount),this._model=Gl(this,void 0),this.shouldRenderInlineViewInSmartMode=this._model.map(this,o=>SCn(this,a=>{const u=o?.diff.read(a);return u?rLn(u,this.trueInlineDiffRenderingEnabled.read(a)):void 0})).flatten().map(this,o=>!!o),this.inlineViewHideOriginalLineNumbers=this.compactMode;const i={...e,...C2t(e,Hy)};this._options=Gl(this,i)}updateOptions(e){const n=C2t(e,this._options.get()),i={...this._options.get(),...e,...n};this._options.set(i,void 0,{changedOptions:e})}setWidth(e){this._diffEditorWidth.set(e,void 0)}setModel(e){this._model.set(e,void 0)}};IUe=nLn([iLn(1,RS)],IUe);function rLn(c,e){return c.mappings.every(n=>oLn(n.lineRangeMapping)||sLn(n.lineRangeMapping)||e&&gXe(n.lineRangeMapping))}function oLn(c){return c.original.length===0}function sLn(c){return c.modified.length===0}function C2t(c,e){return{enableSplitViewResizing:Cs(c.enableSplitViewResizing,e.enableSplitViewResizing),splitViewDefaultRatio:uhn(c.splitViewDefaultRatio,.5,.1,.9),renderSideBySide:Cs(c.renderSideBySide,e.renderSideBySide),renderMarginRevertIcon:Cs(c.renderMarginRevertIcon,e.renderMarginRevertIcon),maxComputationTime:d9(c.maxComputationTime,e.maxComputationTime,0,1073741824),maxFileSize:d9(c.maxFileSize,e.maxFileSize,0,1073741824),ignoreTrimWhitespace:Cs(c.ignoreTrimWhitespace,e.ignoreTrimWhitespace),renderIndicators:Cs(c.renderIndicators,e.renderIndicators),originalEditable:Cs(c.originalEditable,e.originalEditable),diffCodeLens:Cs(c.diffCodeLens,e.diffCodeLens),renderOverviewRuler:Cs(c.renderOverviewRuler,e.renderOverviewRuler),diffWordWrap:h_(c.diffWordWrap,e.diffWordWrap,["off","on","inherit"]),diffAlgorithm:h_(c.diffAlgorithm,e.diffAlgorithm,["legacy","advanced"],{smart:"legacy",experimental:"advanced"}),accessibilityVerbose:Cs(c.accessibilityVerbose,e.accessibilityVerbose),experimental:{showMoves:Cs(c.experimental?.showMoves,e.experimental.showMoves),showEmptyDecorations:Cs(c.experimental?.showEmptyDecorations,e.experimental.showEmptyDecorations),useTrueInlineView:Cs(c.experimental?.useTrueInlineView,e.experimental.useTrueInlineView)},hideUnchangedRegions:{enabled:Cs(c.hideUnchangedRegions?.enabled??c.experimental?.collapseUnchangedRegions,e.hideUnchangedRegions.enabled),contextLineCount:d9(c.hideUnchangedRegions?.contextLineCount,e.hideUnchangedRegions.contextLineCount,0,1073741824),minimumLineCount:d9(c.hideUnchangedRegions?.minimumLineCount,e.hideUnchangedRegions.minimumLineCount,0,1073741824),revealLineCount:d9(c.hideUnchangedRegions?.revealLineCount,e.hideUnchangedRegions.revealLineCount,0,1073741824)},isInEmbeddedEditor:Cs(c.isInEmbeddedEditor,e.isInEmbeddedEditor),onlyShowAccessibleDiffViewer:Cs(c.onlyShowAccessibleDiffViewer,e.onlyShowAccessibleDiffViewer),renderSideBySideInlineBreakpoint:d9(c.renderSideBySideInlineBreakpoint,e.renderSideBySideInlineBreakpoint,0,1073741824),useInlineViewWhenSpaceIsLimited:Cs(c.useInlineViewWhenSpaceIsLimited,e.useInlineViewWhenSpaceIsLimited),renderGutterMenu:Cs(c.renderGutterMenu,e.renderGutterMenu),compactMode:Cs(c.compactMode,e.compactMode)}}var aLn=function(c,e,n,i){var o=arguments.length,a=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(c,e,n,i);else for(var h=c.length-1;h>=0;h--)(u=c[h])&&(a=(o<3?u(a):o>3?u(e,n,a):u(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},Ane=function(c,e){return function(n,i){e(n,i,c)}};let Q3=class extends EUe{get onDidContentSizeChange(){return this._editors.onDidContentSizeChange}constructor(e,n,i,o,a,u,h,g){super(),this._domElement=e,this._parentContextKeyService=o,this._parentInstantiationService=a,this._accessibilitySignalService=h,this._editorProgressService=g,this.elements=lc("div.monaco-diff-editor.side-by-side",{style:{position:"relative",height:"100%"}},[lc("div.editor.original@original",{style:{position:"absolute",height:"100%"}}),lc("div.editor.modified@modified",{style:{position:"absolute",height:"100%"}}),lc("div.accessibleDiffViewer@accessibleDiffViewer",{style:{position:"absolute",height:"100%"}})]),this._diffModelSrc=this._register(Gre(this,void 0)),this._diffModel=ps(this,ye=>this._diffModelSrc.read(ye)?.object),this.onDidChangeModel=Ar.fromObservableLight(this._diffModel),this._contextKeyService=this._register(this._parentContextKeyService.createScoped(this._domElement)),this._instantiationService=this._register(this._parentInstantiationService.createChild(new wK([ca,this._contextKeyService]))),this._boundarySashes=Gl(this,void 0),this._accessibleDiffViewerShouldBeVisible=Gl(this,!1),this._accessibleDiffViewerVisible=ps(this,ye=>this._options.onlyShowAccessibleDiffViewer.read(ye)?!0:this._accessibleDiffViewerShouldBeVisible.read(ye)),this._movedBlocksLinesPart=Gl(this,void 0),this._layoutInfo=ps(this,ye=>{const Me=this._rootSizeObserver.width.read(ye),Je=this._rootSizeObserver.height.read(ye);this._rootSizeObserver.automaticLayout?this.elements.root.style.height="100%":this.elements.root.style.height=Je+"px";const Be=this._sash.read(ye),ft=this._gutter.read(ye),gt=ft?.width.read(ye)??0,bn=this._overviewRulerPart.read(ye)?.width??0;let ht,Mt,sn,pt,cn;if(!!Be){const vt=Be.sashLeft.read(ye),Li=this._movedBlocksLinesPart.read(ye)?.width.read(ye)??0;ht=0,Mt=vt-gt-Li,cn=vt-gt,sn=vt,pt=Me-sn-bn}else{cn=0;const vt=this._options.inlineViewHideOriginalLineNumbers.read(ye);ht=gt,vt?Mt=0:Mt=Math.max(5,this._editors.originalObs.layoutInfoDecorationsLeft.read(ye)),sn=gt+Mt,pt=Me-sn-bn}return this.elements.original.style.left=ht+"px",this.elements.original.style.width=Mt+"px",this._editors.original.layout({width:Mt,height:Je},!0),ft?.layout(cn),this.elements.modified.style.left=sn+"px",this.elements.modified.style.width=pt+"px",this._editors.modified.layout({width:pt,height:Je},!0),{modifiedEditor:this._editors.modified.getLayoutInfo(),originalEditor:this._editors.original.getLayoutInfo()}}),this._diffValue=this._diffModel.map((ye,Me)=>ye?.diff.read(Me)),this.onDidUpdateDiff=Ar.fromObservableLight(this._diffValue),u.willCreateDiffEditor(),this._contextKeyService.createKey("isInDiffEditor",!0),this._domElement.appendChild(this.elements.root),this._register(ws(()=>this.elements.root.remove())),this._rootSizeObserver=this._register(new GPt(this.elements.root,n.dimension)),this._rootSizeObserver.setAutomaticLayout(n.automaticLayout??!1),this._options=this._instantiationService.createInstance(IUe,n),this._register(Ha(ye=>{this._options.setWidth(this._rootSizeObserver.width.read(ye))})),this._contextKeyService.createKey(At.isEmbeddedDiffEditor.key,!1),this._register(nE(At.isEmbeddedDiffEditor,this._contextKeyService,ye=>this._options.isInEmbeddedEditor.read(ye))),this._register(nE(At.comparingMovedCode,this._contextKeyService,ye=>!!this._diffModel.read(ye)?.movedTextToCompare.read(ye))),this._register(nE(At.diffEditorRenderSideBySideInlineBreakpointReached,this._contextKeyService,ye=>this._options.couldShowInlineViewBecauseOfSize.read(ye))),this._register(nE(At.diffEditorInlineMode,this._contextKeyService,ye=>!this._options.renderSideBySide.read(ye))),this._register(nE(At.hasChanges,this._contextKeyService,ye=>(this._diffModel.read(ye)?.diff.read(ye)?.mappings.length??0)>0)),this._editors=this._register(this._instantiationService.createInstance(NUe,this.elements.original,this.elements.modified,this._options,i,(ye,Me,Je,Be)=>this._createInnerEditor(ye,Me,Je,Be))),this._register(nE(At.diffEditorOriginalWritable,this._contextKeyService,ye=>this._options.originalEditable.read(ye))),this._register(nE(At.diffEditorModifiedWritable,this._contextKeyService,ye=>!this._options.readOnly.read(ye))),this._register(nE(At.diffEditorOriginalUri,this._contextKeyService,ye=>this._diffModel.read(ye)?.model.original.uri.toString()??"")),this._register(nE(At.diffEditorModifiedUri,this._contextKeyService,ye=>this._diffModel.read(ye)?.model.modified.uri.toString()??"")),this._overviewRulerPart=$0(this,ye=>this._options.renderOverviewRuler.read(ye)?this._instantiationService.createInstance(CS(boe,ye),this._editors,this.elements.root,this._diffModel,this._rootSizeObserver.width,this._rootSizeObserver.height,this._layoutInfo.map(Me=>Me.modifiedEditor)):void 0).recomputeInitiallyAndOnChange(this._store);const b={height:this._rootSizeObserver.height,width:this._rootSizeObserver.width.map((ye,Me)=>ye-(this._overviewRulerPart.read(Me)?.width??0))};this._sashLayout=new UIn(this._options,b),this._sash=$0(this,ye=>{const Me=this._options.renderSideBySide.read(ye);return this.elements.root.classList.toggle("side-by-side",Me),Me?new ZPt(this.elements.root,b,this._options.enableSplitViewResizing,this._boundarySashes,this._sashLayout.sashLeft,()=>this._sashLayout.resetSash()):void 0}).recomputeInitiallyAndOnChange(this._store);const x=$0(this,ye=>this._instantiationService.createInstance(CS(Kve,ye),this._editors,this._diffModel,this._options)).recomputeInitiallyAndOnChange(this._store);$0(this,ye=>this._instantiationService.createInstance(CS(HIn,ye),this._editors,this._diffModel,this._options,this)).recomputeInitiallyAndOnChange(this._store);const w=new Set,k=new Set;let P=!1;const A=$0(this,ye=>this._instantiationService.createInstance(CS(xUe,ye),Ks(this._domElement),this._editors,this._diffModel,this._options,this,()=>P||x.get().isUpdatingHiddenAreas,w,k)).recomputeInitiallyAndOnChange(this._store),B=ps(this,ye=>{const Me=A.read(ye).viewZones.read(ye).orig,Je=x.read(ye).viewZones.read(ye).origViewZones;return Me.concat(Je)}),X=ps(this,ye=>{const Me=A.read(ye).viewZones.read(ye).mod,Je=x.read(ye).viewZones.read(ye).modViewZones;return Me.concat(Je)});this._register(Hve(this._editors.original,B,ye=>{P=ye},w));let Q;this._register(Hve(this._editors.modified,X,ye=>{P=ye,P?Q=AE.capture(this._editors.modified):(Q?.restore(this._editors.modified),Q=void 0)},k)),this._accessibleDiffViewer=$0(this,ye=>this._instantiationService.createInstance(CS(K9,ye),this.elements.accessibleDiffViewer,this._accessibleDiffViewerVisible,(Me,Je)=>this._accessibleDiffViewerShouldBeVisible.set(Me,Je),this._options.onlyShowAccessibleDiffViewer.map(Me=>!Me),this._rootSizeObserver.width,this._rootSizeObserver.height,this._diffModel.map((Me,Je)=>Me?.diff.read(Je)?.mappings.map(Be=>Be.lineRangeMapping)),new LIn(this._editors))).recomputeInitiallyAndOnChange(this._store);const ne=this._accessibleDiffViewerVisible.map(ye=>ye?"hidden":"visible");this._register(Z3(this.elements.modified,{visibility:ne})),this._register(Z3(this.elements.original,{visibility:ne})),this._createDiffEditorContributions(),u.addDiffEditor(this),this._gutter=$0(this,ye=>this._options.shouldRenderGutterMenu.read(ye)?this._instantiationService.createInstance(CS(wUe,ye),this.elements.root,this._diffModel,this._editors,this._options,this._sashLayout,this._boundarySashes):void 0),this._register(vK(this._layoutInfo)),$0(this,ye=>new(CS(nG,ye))(this.elements.root,this._diffModel,this._layoutInfo.map(Me=>Me.originalEditor),this._layoutInfo.map(Me=>Me.modifiedEditor),this._editors)).recomputeInitiallyAndOnChange(this._store,ye=>{this._movedBlocksLinesPart.set(ye,void 0)}),this._register(Ar.runAndSubscribe(this._editors.modified.onDidChangeCursorPosition,ye=>this._handleCursorPositionChange(ye,!0))),this._register(Ar.runAndSubscribe(this._editors.original.onDidChangeCursorPosition,ye=>this._handleCursorPositionChange(ye,!1)));const ge=this._diffModel.map(this,(ye,Me)=>{if(ye)return ye.diff.read(Me)===void 0&&!ye.isDiffUpToDate.read(Me)});this._register(oC((ye,Me)=>{if(ge.read(ye)===!0){const Je=this._editorProgressService.show(!0,1e3);Me.add(ws(()=>Je.done()))}})),this._register(oC((ye,Me)=>{Me.add(new(CS(QIn,ye))(this._editors,this._diffModel,this._options,this))})),this._register(oC((ye,Me)=>{const Je=this._diffModel.read(ye);if(Je)for(const Be of[Je.model.original,Je.model.modified])Me.add(Be.onWillDispose(ft=>{Xa(new wu("TextModel got disposed before DiffEditorWidget model got reset")),this.setModel(null)}))})),this._register(Ha(ye=>{this._options.setModel(this._diffModel.read(ye))}))}_createInnerEditor(e,n,i,o){return e.createInstance(poe,n,i,o)}_createDiffEditorContributions(){const e=eB.getDiffEditorContributions();for(const n of e)try{this._register(this._instantiationService.createInstance(n.ctor,this))}catch(i){Xa(i)}}get _targetEditor(){return this._editors.modified}getEditorType(){return Sse.IDiffEditor}layout(e){this._rootSizeObserver.observe(e)}hasTextFocus(){return this._editors.original.hasTextFocus()||this._editors.modified.hasTextFocus()}saveViewState(){const e=this._editors.original.saveViewState(),n=this._editors.modified.saveViewState();return{original:e,modified:n,modelState:this._diffModel.get()?.serializeState()}}restoreViewState(e){if(e&&e.original&&e.modified){const n=e;this._editors.original.restoreViewState(n.original),this._editors.modified.restoreViewState(n.modified),n.modelState&&this._diffModel.get()?.restoreSerializedState(n.modelState)}}handleInitialized(){this._editors.original.handleInitialized(),this._editors.modified.handleInitialized()}createViewModel(e){return this._instantiationService.createInstance(SUe,e,this._options)}getModel(){return this._diffModel.get()?.model??null}setModel(e){const n=e?"model"in e?Uve.create(e).createNewRef(this):Uve.create(this.createViewModel(e),this):null;this.setDiffModel(n)}setDiffModel(e,n){const i=this._diffModel.get();!e&&i&&this._accessibleDiffViewer.get().close(),this._diffModel.get()!==e?.object&&yW(n,o=>{const a=e?.object;Ju.batchEventsGlobally(o,()=>{this._editors.original.setModel(a?a.model.original:null),this._editors.modified.setModel(a?a.model.modified:null)});const u=this._diffModelSrc.get()?.createNewRef(this);this._diffModelSrc.set(e?.createNewRef(this),o),setTimeout(()=>{u?.dispose()},0)})}updateOptions(e){this._options.updateOptions(e)}getContainerDomNode(){return this._domElement}getOriginalEditor(){return this._editors.original}getModifiedEditor(){return this._editors.modified}getLineChanges(){const e=this._diffModel.get()?.diff.get();return e?lLn(e):null}revert(e){const n=this._diffModel.get();!n||!n.isDiffUpToDate.get()||this._editors.modified.executeEdits("diffEditor",[{range:e.modified.toExclusiveRange(),text:n.model.original.getValueInRange(e.original.toExclusiveRange())}])}revertRangeMappings(e){const n=this._diffModel.get();if(!n||!n.isDiffUpToDate.get())return;const i=e.map(o=>({range:o.modifiedRange,text:n.model.original.getValueInRange(o.originalRange)}));this._editors.modified.executeEdits("diffEditor",i)}_goTo(e){this._editors.modified.setPosition(new Nn(e.lineRangeMapping.modified.startLineNumber,1)),this._editors.modified.revealRangeInCenter(e.lineRangeMapping.modified.toExclusiveRange())}goToDiff(e){const n=this._diffModel.get()?.diff.get()?.mappings;if(!n||n.length===0)return;const i=this._editors.modified.getPosition().lineNumber;let o;e==="next"?o=n.find(a=>a.lineRangeMapping.modified.startLineNumber>i)??n[0]:o=Ire(n,a=>a.lineRangeMapping.modified.startLineNumber<i)??n[n.length-1],this._goTo(o),o.lineRangeMapping.modified.isEmpty?this._accessibilitySignalService.playSignal(Kx.diffLineDeleted,{source:"diffEditor.goToDiff"}):o.lineRangeMapping.original.isEmpty?this._accessibilitySignalService.playSignal(Kx.diffLineInserted,{source:"diffEditor.goToDiff"}):o&&this._accessibilitySignalService.playSignal(Kx.diffLineModified,{source:"diffEditor.goToDiff"})}revealFirstDiff(){const e=this._diffModel.get();e&&this.waitForDiff().then(()=>{const n=e.diff.get()?.mappings;!n||n.length===0||this._goTo(n[0])})}accessibleDiffViewerNext(){this._accessibleDiffViewer.get().next()}accessibleDiffViewerPrev(){this._accessibleDiffViewer.get().prev()}async waitForDiff(){const e=this._diffModel.get();e&&await e.waitForDiff()}mapToOtherSide(){const e=this._editors.modified.hasWidgetFocus(),n=e?this._editors.modified:this._editors.original,i=e?this._editors.original:this._editors.modified;let o;const a=n.getSelection();if(a){const u=this._diffModel.get()?.diff.get()?.mappings.map(h=>e?h.lineRangeMapping.flip():h.lineRangeMapping);if(u){const h=o2t(a.getStartPosition(),u),g=o2t(a.getEndPosition(),u);o=lt.plusRange(h,g)}}return{destination:i,destinationSelection:o}}switchSide(){const{destination:e,destinationSelection:n}=this.mapToOtherSide();e.focus(),n&&e.setSelection(n)}exitCompareMove(){const e=this._diffModel.get();e&&e.movedTextToCompare.set(void 0,void 0)}collapseAllUnchangedRegions(){const e=this._diffModel.get()?.unchangedRegions.get();e&&If(n=>{for(const i of e)i.collapseAll(n)})}showAllUnchangedRegions(){const e=this._diffModel.get()?.unchangedRegions.get();e&&If(n=>{for(const i of e)i.showAll(n)})}_handleCursorPositionChange(e,n){if(e?.reason===3){const i=this._diffModel.get()?.diff.get()?.mappings.find(o=>n?o.lineRangeMapping.modified.contains(e.position.lineNumber):o.lineRangeMapping.original.contains(e.position.lineNumber));i?.lineRangeMapping.modified.isEmpty?this._accessibilitySignalService.playSignal(Kx.diffLineDeleted,{source:"diffEditor.cursorPositionChanged"}):i?.lineRangeMapping.original.isEmpty?this._accessibilitySignalService.playSignal(Kx.diffLineInserted,{source:"diffEditor.cursorPositionChanged"}):i&&this._accessibilitySignalService.playSignal(Kx.diffLineModified,{source:"diffEditor.cursorPositionChanged"})}}};Q3=aLn([Ane(3,ca),Ane(4,ks),Ane(5,lu),Ane(6,IO),Ane(7,DO)],Q3);function lLn(c){return c.mappings.map(e=>{const n=e.lineRangeMapping;let i,o,a,u,h=n.innerChanges;return n.original.isEmpty?(i=n.original.startLineNumber-1,o=0,h=void 0):(i=n.original.startLineNumber,o=n.original.endLineNumberExclusive-1),n.modified.isEmpty?(a=n.modified.startLineNumber-1,u=0,h=void 0):(a=n.modified.startLineNumber,u=n.modified.endLineNumberExclusive-1),{originalStartLineNumber:i,originalEndLineNumber:o,modifiedStartLineNumber:a,modifiedEndLineNumber:u,charChanges:h?.map(g=>({originalStartLineNumber:g.originalRange.startLineNumber,originalStartColumn:g.originalRange.startColumn,originalEndLineNumber:g.originalRange.endLineNumber,originalEndColumn:g.originalRange.endColumn,modifiedStartLineNumber:g.modifiedRange.startLineNumber,modifiedStartColumn:g.modifiedRange.startColumn,modifiedEndLineNumber:g.modifiedRange.endLineNumber,modifiedEndColumn:g.modifiedRange.endColumn}))}})}var yXe=function(c,e,n,i){var o=arguments.length,a=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(c,e,n,i);else for(var h=c.length-1;h>=0;h--)(u=c[h])&&(a=(o<3?u(a):o>3?u(e,n,a):u(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},Th=function(c,e){return function(n,i){e(n,i,c)}};let cLn=0,S2t=!1;function uLn(c){if(!c){if(S2t)return;S2t=!0}fvn(c||Gd.document.body)}let Xve=class extends poe{constructor(e,n,i,o,a,u,h,g,b,x,w,k,P){const A={...n};A.ariaLabel=A.ariaLabel||wze.editorViewAccessibleLabel,super(e,A,{},i,o,a,u,b,x,w,k,P),g instanceof WG?this._standaloneKeybindingService=g:this._standaloneKeybindingService=null,uLn(A.ariaContainerElement),DCn((B,X)=>i.createInstance(DG,B,X,{})),NCn(h)}addCommand(e,n,i){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;const o="DYNAMIC_"+ ++cLn,a=Oi.deserialize(i);return this._standaloneKeybindingService.addDynamicKeybinding(o,e,n,a),o}createContextKey(e,n){return this._contextKeyService.createKey(e,n)}addAction(e){if(typeof e.id!="string"||typeof e.label!="string"||typeof e.run!="function")throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");if(!this._standaloneKeybindingService)return console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),Wn.None;const n=e.id,i=e.label,o=Oi.and(Oi.equals("editorId",this.getId()),Oi.deserialize(e.precondition)),a=e.keybindings,u=Oi.and(o,Oi.deserialize(e.keybindingContext)),h=e.contextMenuGroupId||null,g=e.contextMenuOrder||0,b=(P,...A)=>Promise.resolve(e.run(this,...A)),x=new Ai,w=this.getId()+":"+n;if(x.add(Lc.registerCommand(w,b)),h){const P={command:{id:w,title:i},when:o,group:h,order:g};x.add(Vm.appendMenuItem(Yo.EditorContext,P))}if(Array.isArray(a))for(const P of a)x.add(this._standaloneKeybindingService.addDynamicKeybinding(w,P,b,u));const k=new HPt(w,i,i,void 0,o,(...P)=>Promise.resolve(e.run(this,...P)),this._contextKeyService);return this._actions.set(n,k),x.add(ws(()=>{this._actions.delete(n)})),x}_triggerCommand(e,n){if(this._codeEditorService instanceof Ebe)try{this._codeEditorService.setActiveCodeEditor(this),super._triggerCommand(e,n)}finally{this._codeEditorService.setActiveCodeEditor(null)}else super._triggerCommand(e,n)}};Xve=yXe([Th(2,ks),Th(3,lu),Th(4,yh),Th(5,ca),Th(6,AP),Th(7,Ou),Th(8,Ig),Th(9,ip),Th(10,RS),Th(11,Af),Th(12,jo)],Xve);let LUe=class extends Xve{constructor(e,n,i,o,a,u,h,g,b,x,w,k,P,A,B,X){const Q={...n};kve(w,Q,!1);const ne=b.registerEditorContainer(e);typeof Q.theme=="string"&&b.setTheme(Q.theme),typeof Q.autoDetectHighContrast<"u"&&b.setAutoDetectHighContrast(!!Q.autoDetectHighContrast);const ge=Q.model;delete Q.model,super(e,Q,i,o,a,u,h,g,b,x,k,B,X),this._configurationService=w,this._standaloneThemeService=b,this._register(ne);let ye;if(typeof ge>"u"){const Me=A.getLanguageIdByMimeType(Q.language)||Q.language||Jb;ye=n4t(P,A,Q.value||"",Me,void 0),this._ownsModel=!0}else ye=ge,this._ownsModel=!1;if(this._attachModel(ye),ye){const Me={oldModelUrl:null,newModelUrl:ye.uri};this._onDidChangeModel.fire(Me)}}dispose(){super.dispose()}updateOptions(e){kve(this._configurationService,e,!1),typeof e.theme=="string"&&this._standaloneThemeService.setTheme(e.theme),typeof e.autoDetectHighContrast<"u"&&this._standaloneThemeService.setAutoDetectHighContrast(!!e.autoDetectHighContrast),super.updateOptions(e)}_postDetachModelCleanup(e){super._postDetachModelCleanup(e),e&&this._ownsModel&&(e.dispose(),this._ownsModel=!1)}};LUe=yXe([Th(2,ks),Th(3,lu),Th(4,yh),Th(5,ca),Th(6,AP),Th(7,Ou),Th(8,gw),Th(9,ip),Th(10,Kl),Th(11,RS),Th(12,Lh),Th(13,af),Th(14,Af),Th(15,jo)],LUe);let PUe=class extends Q3{constructor(e,n,i,o,a,u,h,g,b,x,w,k){const P={...n};kve(g,P,!0);const A=u.registerEditorContainer(e);typeof P.theme=="string"&&u.setTheme(P.theme),typeof P.autoDetectHighContrast<"u"&&u.setAutoDetectHighContrast(!!P.autoDetectHighContrast),super(e,P,{},o,i,a,k,x),this._configurationService=g,this._standaloneThemeService=u,this._register(A)}dispose(){super.dispose()}updateOptions(e){kve(this._configurationService,e,!0),typeof e.theme=="string"&&this._standaloneThemeService.setTheme(e.theme),typeof e.autoDetectHighContrast<"u"&&this._standaloneThemeService.setAutoDetectHighContrast(!!e.autoDetectHighContrast),super.updateOptions(e)}_createInnerEditor(e,n,i){return e.createInstance(Xve,n,i)}getOriginalEditor(){return super.getOriginalEditor()}getModifiedEditor(){return super.getModifiedEditor()}addCommand(e,n,i){return this.getModifiedEditor().addCommand(e,n,i)}createContextKey(e,n){return this.getModifiedEditor().createContextKey(e,n)}addAction(e){return this.getModifiedEditor().addAction(e)}};PUe=yXe([Th(2,ks),Th(3,ca),Th(4,lu),Th(5,gw),Th(6,ip),Th(7,Kl),Th(8,OS),Th(9,DO),Th(10,c6),Th(11,IO)],PUe);function n4t(c,e,n,i,o){if(n=n||"",!i){const a=n.indexOf(`
|
|
660
660
|
`);let u=n;return a!==-1&&(u=n.substring(0,a)),x2t(c,n,e.createByFilepathOrFirstLine(o||null,u),o)}return x2t(c,n,e.createById(i),o)}function x2t(c,e,n,i){return c.createModel(e,n,i)}var dLn=function(c,e,n,i){var o=arguments.length,a=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(c,e,n,i);else for(var h=c.length-1;h>=0;h--)(u=c[h])&&(a=(o<3?u(a):o>3?u(e,n,a):u(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},w2t=function(c,e){return function(n,i){e(n,i,c)}};class hLn{constructor(e,n){this.viewModel=e,this.deltaScrollVertical=n}getId(){return this.viewModel}}let Yve=class extends Wn{constructor(e,n,i,o,a){super(),this._container=e,this._overflowWidgetsDomNode=n,this._workbenchUIElementFactory=i,this._instantiationService=o,this._viewModel=Gl(this,void 0),this._collapsed=ps(this,g=>this._viewModel.read(g)?.collapsed.read(g)),this._editorContentHeight=Gl(this,500),this.contentHeight=ps(this,g=>(this._collapsed.read(g)?0:this._editorContentHeight.read(g))+this._outerEditorHeight),this._modifiedContentWidth=Gl(this,0),this._modifiedWidth=Gl(this,0),this._originalContentWidth=Gl(this,0),this._originalWidth=Gl(this,0),this.maxScroll=ps(this,g=>{const b=this._modifiedContentWidth.read(g)-this._modifiedWidth.read(g),x=this._originalContentWidth.read(g)-this._originalWidth.read(g);return b>x?{maxScroll:b,width:this._modifiedWidth.read(g)}:{maxScroll:x,width:this._originalWidth.read(g)}}),this._elements=lc("div.multiDiffEntry",[lc("div.header@header",[lc("div.header-content",[lc("div.collapse-button@collapseButton"),lc("div.file-path",[lc("div.title.modified.show-file-icons@primaryPath",[]),lc("div.status.deleted@status",["R"]),lc("div.title.original.show-file-icons@secondaryPath",[])]),lc("div.actions@actions")])]),lc("div.editorParent",[lc("div.editorContainer@editor")])]),this.editor=this._register(this._instantiationService.createInstance(Q3,this._elements.editor,{overflowWidgetsDomNode:this._overflowWidgetsDomNode},{})),this.isModifedFocused=kS(this.editor.getModifiedEditor()).isFocused,this.isOriginalFocused=kS(this.editor.getOriginalEditor()).isFocused,this.isFocused=ps(this,g=>this.isModifedFocused.read(g)||this.isOriginalFocused.read(g)),this._resourceLabel=this._workbenchUIElementFactory.createResourceLabel?this._register(this._workbenchUIElementFactory.createResourceLabel(this._elements.primaryPath)):void 0,this._resourceLabel2=this._workbenchUIElementFactory.createResourceLabel?this._register(this._workbenchUIElementFactory.createResourceLabel(this._elements.secondaryPath)):void 0,this._dataStore=this._register(new Ai),this._headerHeight=40,this._lastScrollTop=-1,this._isSettingScrollTop=!1;const u=new lve(this._elements.collapseButton,{});this._register(Ha(g=>{u.element.className="",u.icon=this._collapsed.read(g)?wr.chevronRight:wr.chevronDown})),this._register(u.onDidClick(()=>{this._viewModel.get()?.collapsed.set(!this._collapsed.get(),void 0)})),this._register(Ha(g=>{this._elements.editor.style.display=this._collapsed.read(g)?"none":"block"})),this._register(this.editor.getModifiedEditor().onDidLayoutChange(g=>{const b=this.editor.getModifiedEditor().getLayoutInfo().contentWidth;this._modifiedWidth.set(b,void 0)})),this._register(this.editor.getOriginalEditor().onDidLayoutChange(g=>{const b=this.editor.getOriginalEditor().getLayoutInfo().contentWidth;this._originalWidth.set(b,void 0)})),this._register(this.editor.onDidContentSizeChange(g=>{qne(b=>{this._editorContentHeight.set(g.contentHeight,b),this._modifiedContentWidth.set(this.editor.getModifiedEditor().getContentWidth(),b),this._originalContentWidth.set(this.editor.getOriginalEditor().getContentWidth(),b)})})),this._register(this.editor.getOriginalEditor().onDidScrollChange(g=>{if(this._isSettingScrollTop||!g.scrollTopChanged||!this._data)return;const b=g.scrollTop-this._lastScrollTop;this._data.deltaScrollVertical(b)})),this._register(Ha(g=>{const b=this._viewModel.read(g)?.isActive.read(g);this._elements.root.classList.toggle("active",b)})),this._container.appendChild(this._elements.root),this._outerEditorHeight=this._headerHeight,this._contextKeyService=this._register(a.createScoped(this._elements.actions));const h=this._register(this._instantiationService.createChild(new wK([ca,this._contextKeyService])));this._register(h.createInstance(Gve,this._elements.actions,Yo.MultiDiffEditorFileToolbar,{actionRunner:this._register(new QPt(()=>this._viewModel.get()?.modifiedUri)),menuOptions:{shouldForwardArgs:!0},toolbarOptions:{primaryGroup:g=>g.startsWith("navigation")},actionViewItemProvider:(g,b)=>JIt(h,g,b)}))}setScrollLeft(e){this._modifiedContentWidth.get()-this._modifiedWidth.get()>this._originalContentWidth.get()-this._originalWidth.get()?this.editor.getModifiedEditor().setScrollLeft(e):this.editor.getOriginalEditor().setScrollLeft(e)}setData(e){this._data=e;function n(o){return{...o,scrollBeyondLastLine:!1,hideUnchangedRegions:{enabled:!0},scrollbar:{vertical:"hidden",horizontal:"hidden",handleMouseWheel:!1,useShadows:!1},renderOverviewRuler:!1,fixedOverflowWidgets:!0,overviewRulerBorder:!1}}if(!e){qne(o=>{this._viewModel.set(void 0,o),this.editor.setDiffModel(null,o),this._dataStore.clear()});return}const i=e.viewModel.documentDiffItem;if(qne(o=>{this._resourceLabel?.setUri(e.viewModel.modifiedUri??e.viewModel.originalUri,{strikethrough:e.viewModel.modifiedUri===void 0});let a=!1,u=!1,h=!1,g="";e.viewModel.modifiedUri&&e.viewModel.originalUri&&e.viewModel.modifiedUri.path!==e.viewModel.originalUri.path?(g="R",a=!0):e.viewModel.modifiedUri?e.viewModel.originalUri||(g="A",h=!0):(g="D",u=!0),this._elements.status.classList.toggle("renamed",a),this._elements.status.classList.toggle("deleted",u),this._elements.status.classList.toggle("added",h),this._elements.status.innerText=g,this._resourceLabel2?.setUri(a?e.viewModel.originalUri:void 0,{strikethrough:!0}),this._dataStore.clear(),this._viewModel.set(e.viewModel,o),this.editor.setDiffModel(e.viewModel.diffEditorViewModelRef,o),this.editor.updateOptions(n(i.options??{}))}),i.onOptionsDidChange&&this._dataStore.add(i.onOptionsDidChange(()=>{this.editor.updateOptions(n(i.options??{}))})),e.viewModel.isAlive.recomputeInitiallyAndOnChange(this._dataStore,o=>{o||this.setData(void 0)}),e.viewModel.documentDiffItem.contextKeys)for(const[o,a]of Object.entries(e.viewModel.documentDiffItem.contextKeys))this._contextKeyService.createKey(o,a)}render(e,n,i,o){this._elements.root.style.visibility="visible",this._elements.root.style.top=`${e.start}px`,this._elements.root.style.height=`${e.length}px`,this._elements.root.style.width=`${n}px`,this._elements.root.style.position="absolute";const a=e.length-this._headerHeight,u=Math.max(0,Math.min(o.start-e.start,a));this._elements.header.style.transform=`translateY(${u}px)`,qne(h=>{this.editor.layout({width:n-16-2,height:e.length-this._outerEditorHeight})});try{this._isSettingScrollTop=!0,this._lastScrollTop=i,this.editor.getOriginalEditor().setScrollTop(i)}finally{this._isSettingScrollTop=!1}this._elements.header.classList.toggle("shadow",u>0||i>0),this._elements.header.classList.toggle("collapsed",u===a)}hide(){this._elements.root.style.top="-100000px",this._elements.root.style.visibility="hidden"}};Yve=dLn([w2t(3,ks),w2t(4,ca)],Yve);class fLn{constructor(e){this._create=e,this._unused=new Set,this._used=new Set,this._itemData=new Map}getUnusedObj(e){let n;if(this._unused.size===0)n=this._create(e),this._itemData.set(n,e);else{const i=[...this._unused.values()];n=i.find(o=>this._itemData.get(o).getId()===e.getId())??i[0],this._unused.delete(n),this._itemData.set(n,e),n.setData(e)}return this._used.add(n),{object:n,dispose:()=>{this._used.delete(n),this._unused.size>5?n.dispose():this._unused.add(n)}}}dispose(){for(const e of this._used)e.dispose();for(const e of this._unused)e.dispose();this._used.clear(),this._unused.clear()}}var _Ln=function(c,e,n,i){var o=arguments.length,a=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(c,e,n,i);else for(var h=c.length-1;h>=0;h--)(u=c[h])&&(a=(o<3?u(a):o>3?u(e,n,a):u(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},k2t=function(c,e){return function(n,i){e(n,i,c)}};let AUe=class extends Wn{constructor(e,n,i,o,a,u){super(),this._element=e,this._dimension=n,this._viewModel=i,this._workbenchUIElementFactory=o,this._parentContextKeyService=a,this._parentInstantiationService=u,this._scrollableElements=lc("div.scrollContent",[lc("div@content",{style:{overflow:"hidden"}}),lc("div.monaco-editor@overflowWidgetsDomNode",{})]),this._scrollable=this._register(new gK({forceIntegerValues:!1,scheduleAtNextAnimationFrame:g=>FS(Ks(this._element),g),smoothScrollDuration:100})),this._scrollableElement=this._register(new mwe(this._scrollableElements.root,{vertical:1,horizontal:1,useShadows:!1},this._scrollable)),this._elements=lc("div.monaco-component.multiDiffEditor",{},[lc("div",{},[this._scrollableElement.getDomNode()]),lc("div.placeholder@placeholder",{},[lc("div",[V("noChangedFiles","No Changed Files")])])]),this._sizeObserver=this._register(new GPt(this._element,void 0)),this._objectPool=this._register(new fLn(g=>{const b=this._instantiationService.createInstance(Yve,this._scrollableElements.content,this._scrollableElements.overflowWidgetsDomNode,this._workbenchUIElementFactory);return b.setData(g),b})),this.scrollTop=Ju(this,this._scrollableElement.onScroll,()=>this._scrollableElement.getScrollPosition().scrollTop),this.scrollLeft=Ju(this,this._scrollableElement.onScroll,()=>this._scrollableElement.getScrollPosition().scrollLeft),this._viewItemsInfo=NO(this,(g,b)=>{const x=this._viewModel.read(g);if(!x)return{items:[],getItem:A=>{throw new wu}};const w=x.items.read(g),k=new Map;return{items:w.map(A=>{const B=b.add(new pLn(A,this._objectPool,this.scrollLeft,Q=>{this._scrollableElement.setScrollPosition({scrollTop:this._scrollableElement.getScrollPosition().scrollTop+Q})})),X=this._lastDocStates?.[B.getKey()];return X&&If(Q=>{B.setViewState(X,Q)}),k.set(A,B),B}),getItem:A=>k.get(A)}}),this._viewItems=this._viewItemsInfo.map(this,g=>g.items),this._spaceBetweenPx=0,this._totalHeight=this._viewItems.map(this,(g,b)=>g.reduce((x,w)=>x+w.contentHeight.read(b)+this._spaceBetweenPx,0)),this._contextKeyService=this._register(this._parentContextKeyService.createScoped(this._element)),this._instantiationService=this._register(this._parentInstantiationService.createChild(new wK([ca,this._contextKeyService]))),this._lastDocStates={},this._contextKeyService.createKey(At.inMultiDiffEditor.key,!0),this._register(oC((g,b)=>{const x=this._viewModel.read(g);if(x&&x.contextKeys)for(const[w,k]of Object.entries(x.contextKeys)){const P=this._contextKeyService.createKey(w,void 0);P.set(k),b.add(ws(()=>P.reset()))}}));const h=this._parentContextKeyService.createKey(At.multiDiffEditorAllCollapsed.key,!1);this._register(Ha(g=>{const b=this._viewModel.read(g);if(b){const x=b.items.read(g).every(w=>w.collapsed.read(g));h.set(x)}})),this._register(Ha(g=>{const b=this._dimension.read(g);this._sizeObserver.observe(b)})),this._register(Ha(g=>{const b=this._viewItems.read(g);this._elements.placeholder.classList.toggle("visible",b.length===0)})),this._scrollableElements.content.style.position="relative",this._register(Ha(g=>{const b=this._sizeObserver.height.read(g);this._scrollableElements.root.style.height=`${b}px`;const x=this._totalHeight.read(g);this._scrollableElements.content.style.height=`${x}px`;const w=this._sizeObserver.width.read(g);let k=w;const P=this._viewItems.read(g),A=yKe(P,Gb(B=>B.maxScroll.read(g).maxScroll,QT));if(A){const B=A.maxScroll.read(g);k=w+B.maxScroll}this._scrollableElement.setScrollDimensions({width:w,height:b,scrollHeight:x,scrollWidth:k})})),e.replaceChildren(this._elements.root),this._register(ws(()=>{e.replaceChildren()})),this._register(this._register(Ha(g=>{qne(b=>{this.render(g)})})))}render(e){const n=this.scrollTop.read(e);let i=0,o=0,a=0;const u=this._sizeObserver.height.read(e),h=Zl.ofStartAndLength(n,u),g=this._sizeObserver.width.read(e);for(const b of this._viewItems.read(e)){const x=b.contentHeight.read(e),w=Math.min(x,u),k=Zl.ofStartAndLength(o,w),P=Zl.ofStartAndLength(a,x);if(P.isBefore(h))i-=x-w,b.hide();else if(P.isAfter(h))b.hide();else{const A=Math.max(0,Math.min(h.start-P.start,x-w));i-=A;const B=Zl.ofStartAndLength(n+i,u);b.render(k,A,g,B)}o+=w+this._spaceBetweenPx,a+=x+this._spaceBetweenPx}this._scrollableElements.content.style.transform=`translateY(${-(n+i)}px)`}};AUe=_Ln([k2t(4,ca),k2t(5,ks)],AUe);class pLn extends Wn{constructor(e,n,i,o){super(),this.viewModel=e,this._objectPool=n,this._scrollLeft=i,this._deltaScrollVertical=o,this._templateRef=this._register(Gre(this,void 0)),this.contentHeight=ps(this,a=>this._templateRef.read(a)?.object.contentHeight?.read(a)??this.viewModel.lastTemplateData.read(a).contentHeight),this.maxScroll=ps(this,a=>this._templateRef.read(a)?.object.maxScroll.read(a)??{maxScroll:0,scrollWidth:0}),this.template=ps(this,a=>this._templateRef.read(a)?.object),this._isHidden=Gl(this,!1),this._isFocused=ps(this,a=>this.template.read(a)?.isFocused.read(a)??!1),this.viewModel.setIsFocused(this._isFocused,void 0),this._register(Ha(a=>{const u=this._scrollLeft.read(a);this._templateRef.read(a)?.object.setScrollLeft(u)})),this._register(Ha(a=>{const u=this._templateRef.read(a);!u||!this._isHidden.read(a)||u.object.isFocused.read(a)||this._clear()}))}dispose(){this._clear(),super.dispose()}toString(){return`VirtualViewItem(${this.viewModel.documentDiffItem.modified?.uri.toString()})`}getKey(){return this.viewModel.getKey()}setViewState(e,n){this.viewModel.collapsed.set(e.collapsed,n),this._updateTemplateData(n);const i=this.viewModel.lastTemplateData.get(),o=e.selections?.map(as.liftSelection);this.viewModel.lastTemplateData.set({...i,selections:o},n);const a=this._templateRef.get();a&&o&&a.object.editor.setSelections(o)}_updateTemplateData(e){const n=this._templateRef.get();n&&this.viewModel.lastTemplateData.set({contentHeight:n.object.contentHeight.get(),selections:n.object.editor.getSelections()??void 0},e)}_clear(){const e=this._templateRef.get();e&&If(n=>{this._updateTemplateData(n),e.object.hide(),this._templateRef.set(void 0,n)})}hide(){this._isHidden.set(!0,void 0)}render(e,n,i,o){this._isHidden.set(!1,void 0);let a=this._templateRef.get();if(!a){a=this._objectPool.getUnusedObj(new hLn(this.viewModel,this._deltaScrollVertical)),this._templateRef.set(a,void 0);const u=this.viewModel.lastTemplateData.get().selections;u&&a.object.editor.setSelections(u)}a.object.render(e,i,n,o)}}Rt("multiDiffEditor.headerBackground",{dark:"#262626",light:"tab.inactiveBackground",hcDark:"tab.inactiveBackground",hcLight:"tab.inactiveBackground"},V("multiDiffEditor.headerBackground","The background color of the diff editor's header"));Rt("multiDiffEditor.background",aD,V("multiDiffEditor.background","The background color of the multi file diff editor"));Rt("multiDiffEditor.border",{dark:"sideBarSectionHeader.border",light:"#cccccc",hcDark:"sideBarSectionHeader.border",hcLight:"#cccccc"},V("multiDiffEditor.border","The border color of the multi file diff editor"));var gLn=function(c,e,n,i){var o=arguments.length,a=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(c,e,n,i);else for(var h=c.length-1;h>=0;h--)(u=c[h])&&(a=(o<3?u(a):o>3?u(e,n,a):u(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},mLn=function(c,e){return function(n,i){e(n,i,c)}};let FUe=class extends Wn{constructor(e,n,i){super(),this._element=e,this._workbenchUIElementFactory=n,this._instantiationService=i,this._dimension=Gl(this,void 0),this._viewModel=Gl(this,void 0),this._widgetImpl=NO(this,(o,a)=>(CS(Yve,o),a.add(this._instantiationService.createInstance(CS(AUe,o),this._element,this._dimension,this._viewModel,this._workbenchUIElementFactory)))),this._register(vK(this._widgetImpl))}};FUe=gLn([mLn(2,ks)],FUe);function yLn(c,e,n){return Da.initialize(n||{}).createInstance(LUe,c,e)}function bLn(c){return Da.get(lu).onCodeEditorAdd(n=>{c(n)})}function vLn(c){return Da.get(lu).onDiffEditorAdd(n=>{c(n)})}function CLn(){return Da.get(lu).listCodeEditors()}function SLn(){return Da.get(lu).listDiffEditors()}function xLn(c,e,n){return Da.initialize(n||{}).createInstance(PUe,c,e)}function wLn(c,e){const n=Da.initialize(e||{});return new FUe(c,{},n)}function kLn(c){if(typeof c.id!="string"||typeof c.run!="function")throw new Error("Invalid command descriptor, `id` and `run` are required properties!");return Lc.registerCommand(c.id,c.run)}function TLn(c){if(typeof c.id!="string"||typeof c.label!="string"||typeof c.run!="function")throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");const e=Oi.deserialize(c.precondition),n=(o,...a)=>Eg.runEditorCommand(o,a,e,(u,h,g)=>Promise.resolve(c.run(h,...g))),i=new Ai;if(i.add(Lc.registerCommand(c.id,n)),c.contextMenuGroupId){const o={command:{id:c.id,title:c.label},when:e,group:c.contextMenuGroupId,order:c.contextMenuOrder||0};i.add(Vm.appendMenuItem(Yo.EditorContext,o))}if(Array.isArray(c.keybindings)){const o=Da.get(Ou);if(!(o instanceof WG))console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService");else{const a=Oi.and(e,Oi.deserialize(c.keybindingContext));i.add(o.addDynamicKeybindings(c.keybindings.map(u=>({keybinding:u,command:c.id,when:a}))))}}return i}function DLn(c){return i4t([c])}function i4t(c){const e=Da.get(Ou);return e instanceof WG?e.addDynamicKeybindings(c.map(n=>({keybinding:n.keybinding,command:n.command,commandArgs:n.commandArgs,when:Oi.deserialize(n.when)}))):(console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),Wn.None)}function NLn(c,e,n){const i=Da.get(af),o=i.getLanguageIdByMimeType(e)||e;return n4t(Da.get(Lh),i,c,o,n)}function ELn(c,e){const n=Da.get(af),i=n.getLanguageIdByMimeType(e)||e||Jb;c.setLanguage(n.createById(i))}function ILn(c,e,n){c&&Da.get(FP).changeOne(e,c.uri,n)}function LLn(c){Da.get(FP).changeAll(c,[])}function PLn(c){return Da.get(FP).read(c)}function ALn(c){return Da.get(FP).onMarkerChanged(c)}function FLn(c){return Da.get(Lh).getModel(c)}function MLn(){return Da.get(Lh).getModels()}function OLn(c){return Da.get(Lh).onModelAdded(c)}function RLn(c){return Da.get(Lh).onModelRemoved(c)}function BLn(c){return Da.get(Lh).onModelLanguageChanged(n=>{c({model:n.model,oldLanguage:n.oldLanguageId})})}function WLn(c){return STn(Da.get(Lh),c)}function VLn(c,e){const n=Da.get(af),i=Da.get(gw);return WJe.colorizeElement(i,n,c,e).then(()=>{i.registerEditorContainer(c)})}function jLn(c,e,n){const i=Da.get(af);return Da.get(gw).registerEditorContainer(Gd.document.body),WJe.colorize(i,c,e,n)}function zLn(c,e,n=4){return Da.get(gw).registerEditorContainer(Gd.document.body),WJe.colorizeModelLine(c,e,n)}function HLn(c){const e=f_.get(c);return e||{getInitialState:()=>LG,tokenize:(n,i,o)=>KKe(c,o)}}function ULn(c,e){f_.getOrCreate(e);const n=HLn(e),i=EP(c),o=[];let a=n.getInitialState();for(let u=0,h=i.length;u<h;u++){const g=i[u],b=n.tokenize(g,!0,a);o[u]=b.tokens,a=b.endState}return o}function $Ln(c,e){Da.get(gw).defineTheme(c,e)}function qLn(c){Da.get(gw).setTheme(c)}function GLn(){Cje.clearAllFontInfos()}function KLn(c,e){return Lc.registerCommand({id:c,handler:e})}function JLn(c){return Da.get(fC).registerOpener({async open(n){return typeof n=="string"&&(n=$s.parse(n)),c.open(n)}})}function XLn(c){return Da.get(lu).registerCodeEditorOpenHandler(async(n,i,o)=>{if(!i)return null;const a=n.options?.selection;let u;return a&&typeof a.endLineNumber=="number"&&typeof a.endColumn=="number"?u=a:a&&(u={lineNumber:a.startLineNumber,column:a.startColumn}),await c.openCodeEditor(i,n.resource,u)?i:null})}function YLn(){return{create:yLn,getEditors:CLn,getDiffEditors:SLn,onDidCreateEditor:bLn,onDidCreateDiffEditor:vLn,createDiffEditor:xLn,addCommand:kLn,addEditorAction:TLn,addKeybindingRule:DLn,addKeybindingRules:i4t,createModel:NLn,setModelLanguage:ELn,setModelMarkers:ILn,getModelMarkers:PLn,removeAllMarkers:LLn,onDidChangeMarkers:ALn,getModels:MLn,getModel:FLn,onDidCreateModel:OLn,onWillDisposeModel:RLn,onDidChangeModelLanguage:BLn,createWebWorker:WLn,colorizeElement:VLn,colorize:jLn,colorizeModelLine:zLn,tokenize:ULn,defineTheme:$Ln,setTheme:qLn,remeasureFonts:GLn,registerCommand:KLn,registerLinkOpener:JLn,registerEditorOpener:XLn,AccessibilitySupport:gVe,ContentWidgetPositionPreference:SVe,CursorChangeReason:xVe,DefaultEndOfLine:wVe,EditorAutoIndentStrategy:TVe,EditorOption:DVe,EndOfLinePreference:NVe,EndOfLineSequence:EVe,MinimapPosition:VVe,MinimapSectionHeaderStyle:jVe,MouseTargetType:zVe,OverlayWidgetPositionPreference:$Ve,OverviewRulerLane:qVe,GlyphMarginLane:IVe,RenderLineNumbersType:JVe,RenderMinimap:XVe,ScrollbarVisibility:ZVe,ScrollType:YVe,TextEditorCursorBlinkingStyle:rje,TextEditorCursorStyle:oje,TrackedRangeStickiness:sje,WrappingIndent:aje,InjectedTextCursorStops:AVe,PositionAffinity:KVe,ShowLightbulbIconMode:eje,ConfigurationChangedEvent:qDt,BareFontInfo:Z9,FontInfo:vje,TextModelResolvedOptions:_0e,FindMatch:Ere,ApplyUpdateResult:uie,EditorZoom:J2,createMultiFileDiffEditor:wLn,EditorType:Sse,EditorOptions:ME}}function ZLn(c,e){if(!e||!Array.isArray(e))return!1;for(const n of e)if(!c(n))return!1;return!0}function L1e(c,e){return typeof c=="boolean"?c:e}function T2t(c,e){return typeof c=="string"?c:e}function QLn(c){const e={};for(const n of c)e[n]=!0;return e}function D2t(c,e=!1){e&&(c=c.map(function(i){return i.toLowerCase()}));const n=QLn(c);return e?function(i){return n[i.toLowerCase()]!==void 0&&n.hasOwnProperty(i.toLowerCase())}:function(i){return n[i]!==void 0&&n.hasOwnProperty(i)}}function MUe(c,e,n){e=e.replace(/@@/g,"");let i=0,o;do o=!1,e=e.replace(/@(\w+)/g,function(u,h){o=!0;let g="";if(typeof c[h]=="string")g=c[h];else if(c[h]&&c[h]instanceof RegExp)g=c[h].source;else throw c[h]===void 0?jh(c,"language definition does not contain attribute '"+h+"', used at: "+e):jh(c,"attribute reference '"+h+"' must be a string, used at: "+e);return P9(g)?"":"(?:"+g+")"}),i++;while(o&&i<5);e=e.replace(/\x01/g,"@");const a=(c.ignoreCase?"i":"")+(c.unicode?"u":"");if(n&&e.match(/\$[sS](\d\d?)/g)){let h=null,g=null;return b=>(g&&h===b||(h=b,g=new RegExp(jTn(c,e,b),a)),g)}return new RegExp(e,a)}function ePn(c,e,n,i){if(i<0)return c;if(i<e.length)return e[i];if(i>=100){i=i-100;const o=n.split(".");if(o.unshift(n),i<o.length)return o[i]}return null}function tPn(c,e,n,i){let o=-1,a=n,u=n.match(/^\$(([sS]?)(\d\d?)|#)(.*)$/);u&&(u[3]&&(o=parseInt(u[3]),u[2]&&(o=o+100)),a=u[4]);let h="~",g=a;!a||a.length===0?(h="!=",g=""):/^\w*$/.test(g)?h="==":(u=a.match(/^(@|!@|~|!~|==|!=)(.*)$/),u&&(h=u[1],g=u[2]));let b;if((h==="~"||h==="!~")&&/^(\w|\|)*$/.test(g)){const x=D2t(g.split("|"),c.ignoreCase);b=function(w){return h==="~"?x(w):!x(w)}}else if(h==="@"||h==="!@"){const x=c[g];if(!x)throw jh(c,"the @ match target '"+g+"' is not defined, in rule: "+e);if(!ZLn(function(k){return typeof k=="string"},x))throw jh(c,"the @ match target '"+g+"' must be an array of strings, in rule: "+e);const w=D2t(x,c.ignoreCase);b=function(k){return h==="@"?w(k):!w(k)}}else if(h==="~"||h==="!~")if(g.indexOf("$")<0){const x=MUe(c,"^"+g+"$",!1);b=function(w){return h==="~"?x.test(w):!x.test(w)}}else b=function(x,w,k,P){return MUe(c,"^"+uM(c,g,w,k,P)+"$",!1).test(x)};else if(g.indexOf("$")<0){const x=z3(c,g);b=function(w){return h==="=="?w===x:w!==x}}else{const x=z3(c,g);b=function(w,k,P,A,B){const X=uM(c,x,k,P,A);return h==="=="?w===X:w!==X}}return o===-1?{name:n,value:i,test:function(x,w,k,P){return b(x,x,w,k,P)}}:{name:n,value:i,test:function(x,w,k,P){const A=ePn(x,w,k,o);return b(A||"",x,w,k,P)}}}function OUe(c,e,n){if(n){if(typeof n=="string")return n;if(n.token||n.token===""){if(typeof n.token!="string")throw jh(c,"a 'token' attribute must be of type string, in rule: "+e);{const i={token:n.token};if(n.token.indexOf("$")>=0&&(i.tokenSubst=!0),typeof n.bracket=="string")if(n.bracket==="@open")i.bracket=1;else if(n.bracket==="@close")i.bracket=-1;else throw jh(c,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+e);if(n.next){if(typeof n.next!="string")throw jh(c,"the next state must be a string value in rule: "+e);{let o=n.next;if(!/^(@pop|@push|@popall)$/.test(o)&&(o[0]==="@"&&(o=o.substr(1)),o.indexOf("$")<0&&!zTn(c,uM(c,o,"",[],""))))throw jh(c,"the next state '"+n.next+"' is not defined in rule: "+e);i.next=o}}return typeof n.goBack=="number"&&(i.goBack=n.goBack),typeof n.switchTo=="string"&&(i.switchTo=n.switchTo),typeof n.log=="string"&&(i.log=n.log),typeof n.nextEmbedded=="string"&&(i.nextEmbedded=n.nextEmbedded,c.usesEmbedded=!0),i}}else if(Array.isArray(n)){const i=[];for(let o=0,a=n.length;o<a;o++)i[o]=OUe(c,e,n[o]);return{group:i}}else if(n.cases){const i=[];for(const a in n.cases)if(n.cases.hasOwnProperty(a)){const u=OUe(c,e,n.cases[a]);a==="@default"||a==="@"||a===""?i.push({test:void 0,value:u,name:a}):a==="@eos"?i.push({test:function(h,g,b,x){return x},value:u,name:a}):i.push(tPn(c,e,a,u))}const o=c.defaultToken;return{test:function(a,u,h,g){for(const b of i)if(!b.test||b.test(a,u,h,g))return b.value;return o}}}else throw jh(c,"an action must be a string, an object with a 'token' or 'cases' attribute, or an array of actions; in rule: "+e)}else return{token:""}}class nPn{constructor(e){this.regex=new RegExp(""),this.action={token:""},this.matchOnlyAtLineStart=!1,this.name="",this.name=e}setRegex(e,n){let i;if(typeof n=="string")i=n;else if(n instanceof RegExp)i=n.source;else throw jh(e,"rules must start with a match string or regular expression: "+this.name);this.matchOnlyAtLineStart=i.length>0&&i[0]==="^",this.name=this.name+": "+i,this.regex=MUe(e,"^(?:"+(this.matchOnlyAtLineStart?i.substr(1):i)+")",!0)}setAction(e,n){this.action=OUe(e,this.name,n)}resolveRegex(e){return this.regex instanceof RegExp?this.regex:this.regex(e)}}function r4t(c,e){if(!e||typeof e!="object")throw new Error("Monarch: expecting a language definition object");const n={languageId:c,includeLF:L1e(e.includeLF,!1),noThrow:!1,maxStack:100,start:typeof e.start=="string"?e.start:null,ignoreCase:L1e(e.ignoreCase,!1),unicode:L1e(e.unicode,!1),tokenPostfix:T2t(e.tokenPostfix,"."+c),defaultToken:T2t(e.defaultToken,"source"),usesEmbedded:!1,stateNames:{},tokenizer:{},brackets:[]},i=e;i.languageId=c,i.includeLF=n.includeLF,i.ignoreCase=n.ignoreCase,i.unicode=n.unicode,i.noThrow=n.noThrow,i.usesEmbedded=n.usesEmbedded,i.stateNames=e.tokenizer,i.defaultToken=n.defaultToken;function o(u,h,g){for(const b of g){let x=b.include;if(x){if(typeof x!="string")throw jh(n,"an 'include' attribute must be a string at: "+u);if(x[0]==="@"&&(x=x.substr(1)),!e.tokenizer[x])throw jh(n,"include target '"+x+"' is not defined at: "+u);o(u+"."+x,h,e.tokenizer[x])}else{const w=new nPn(u);if(Array.isArray(b)&&b.length>=1&&b.length<=3)if(w.setRegex(i,b[0]),b.length>=3)if(typeof b[1]=="string")w.setAction(i,{token:b[1],next:b[2]});else if(typeof b[1]=="object"){const k=b[1];k.next=b[2],w.setAction(i,k)}else throw jh(n,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+u);else w.setAction(i,b[1]);else{if(!b.regex)throw jh(n,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+u);b.name&&typeof b.name=="string"&&(w.name=b.name),b.matchOnlyAtStart&&(w.matchOnlyAtLineStart=L1e(b.matchOnlyAtLineStart,!1)),w.setRegex(i,b.regex),w.setAction(i,b.action)}h.push(w)}}}if(!e.tokenizer||typeof e.tokenizer!="object")throw jh(n,"a language definition must define the 'tokenizer' attribute as an object");n.tokenizer=[];for(const u in e.tokenizer)if(e.tokenizer.hasOwnProperty(u)){n.start||(n.start=u);const h=e.tokenizer[u];n.tokenizer[u]=new Array,o("tokenizer."+u,n.tokenizer[u],h)}if(n.usesEmbedded=i.usesEmbedded,e.brackets){if(!Array.isArray(e.brackets))throw jh(n,"the 'brackets' attribute must be defined as an array")}else e.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];const a=[];for(const u of e.brackets){let h=u;if(h&&Array.isArray(h)&&h.length===3&&(h={token:h[2],open:h[0],close:h[1]}),h.open===h.close)throw jh(n,"open and close brackets in a 'brackets' attribute must be different: "+h.open+`
|
|
661
|
-
hint: use the 'bracket' attribute if matching on equal brackets is required.`);if(typeof h.open=="string"&&typeof h.token=="string"&&typeof h.close=="string")a.push({token:h.token+n.tokenPostfix,open:z3(n,h.open),close:z3(n,h.close)});else throw jh(n,"every element in the 'brackets' array must be a '{open,close,token}' object or array")}return n.brackets=a,n.noThrow=!0,n}function iPn(c){SG.registerLanguage(c)}function rPn(){let c=[];return c=c.concat(SG.getLanguages()),c}function oPn(c){return Da.get(af).languageIdCodec.encodeLanguageId(c)}function sPn(c,e){return Da.withServices(()=>{const i=Da.get(af).onDidRequestRichLanguageFeatures(o=>{o===c&&(i.dispose(),e())});return i})}function aPn(c,e){return Da.withServices(()=>{const i=Da.get(af).onDidRequestBasicLanguageFeatures(o=>{o===c&&(i.dispose(),e())});return i})}function lPn(c,e){if(!Da.get(af).isRegisteredLanguageId(c))throw new Error(`Cannot set configuration for unknown language ${c}`);return Da.get(Af).register(c,e,100)}class cPn{constructor(e,n){this._languageId=e,this._actual=n}dispose(){}getInitialState(){return this._actual.getInitialState()}tokenize(e,n,i){if(typeof this._actual.tokenize=="function")return voe.adaptTokenize(this._languageId,this._actual,e,i);throw new Error("Not supported!")}tokenizeEncoded(e,n,i){const o=this._actual.tokenizeEncoded(e,i);return new Wxe(o.tokens,o.endState)}}class voe{constructor(e,n,i,o){this._languageId=e,this._actual=n,this._languageService=i,this._standaloneThemeService=o}dispose(){}getInitialState(){return this._actual.getInitialState()}static _toClassicTokens(e,n){const i=[];let o=0;for(let a=0,u=e.length;a<u;a++){const h=e[a];let g=h.startIndex;a===0?g=0:g<o&&(g=o),i[a]=new vre(g,h.scopes,n),o=g}return i}static adaptTokenize(e,n,i,o){const a=n.tokenize(i,o),u=voe._toClassicTokens(a.tokens,e);let h;return a.endState.equals(o)?h=o:h=a.endState,new GGe(u,h)}tokenize(e,n,i){return voe.adaptTokenize(this._languageId,this._actual,e,i)}_toBinaryTokens(e,n){const i=e.encodeLanguageId(this._languageId),o=this._standaloneThemeService.getColorTheme().tokenTheme,a=[];let u=0,h=0;for(let b=0,x=n.length;b<x;b++){const w=n[b],k=o.match(i,w.scopes)|1024;if(u>0&&a[u-1]===k)continue;let P=w.startIndex;b===0?P=0:P<h&&(P=h),a[u++]=P,a[u++]=k,h=P}const g=new Uint32Array(u);for(let b=0;b<u;b++)g[b]=a[b];return g}tokenizeEncoded(e,n,i){const o=this._actual.tokenize(e,i),a=this._toBinaryTokens(this._languageService.languageIdCodec,o.tokens);let u;return o.endState.equals(i)?u=i:u=o.endState,new Wxe(a,u)}}function uPn(c){return typeof c.getInitialState=="function"}function dPn(c){return"tokenizeEncoded"in c}function o4t(c){return c&&typeof c.then=="function"}function hPn(c){const e=Da.get(gw);if(c){const n=[null];for(let i=1,o=c.length;i<o;i++)n[i]=Bi.fromHex(c[i]);e.setColorMapOverride(n)}else e.setColorMapOverride(null)}function s4t(c,e){return dPn(e)?new cPn(c,e):new voe(c,e,Da.get(af),Da.get(gw))}function bXe(c,e){const n=new Hfn(async()=>{const i=await Promise.resolve(e.create());return i?uPn(i)?s4t(c,i):new loe(Da.get(af),Da.get(gw),c,r4t(c,i),Da.get(Kl)):null});return f_.registerFactory(c,n)}function fPn(c,e){if(!Da.get(af).isRegisteredLanguageId(c))throw new Error(`Cannot set tokens provider for unknown language ${c}`);return o4t(e)?bXe(c,{create:()=>e}):f_.register(c,s4t(c,e))}function _Pn(c,e){const n=i=>new loe(Da.get(af),Da.get(gw),c,r4t(c,i),Da.get(Kl));return o4t(e)?bXe(c,{create:()=>e}):f_.register(c,n(e))}function pPn(c,e){return Da.get(jo).referenceProvider.register(c,e)}function gPn(c,e){return Da.get(jo).renameProvider.register(c,e)}function mPn(c,e){return Da.get(jo).newSymbolNamesProvider.register(c,e)}function yPn(c,e){return Da.get(jo).signatureHelpProvider.register(c,e)}function bPn(c,e){return Da.get(jo).hoverProvider.register(c,{provideHover:async(i,o,a,u)=>{const h=i.getWordAtPosition(o);return Promise.resolve(e.provideHover(i,o,a,u)).then(g=>{if(g)return!g.range&&h&&(g.range=new lt(o.lineNumber,h.startColumn,o.lineNumber,h.endColumn)),g.range||(g.range=new lt(o.lineNumber,o.column,o.lineNumber,o.column)),g})}})}function vPn(c,e){return Da.get(jo).documentSymbolProvider.register(c,e)}function CPn(c,e){return Da.get(jo).documentHighlightProvider.register(c,e)}function SPn(c,e){return Da.get(jo).linkedEditingRangeProvider.register(c,e)}function xPn(c,e){return Da.get(jo).definitionProvider.register(c,e)}function wPn(c,e){return Da.get(jo).implementationProvider.register(c,e)}function kPn(c,e){return Da.get(jo).typeDefinitionProvider.register(c,e)}function TPn(c,e){return Da.get(jo).codeLensProvider.register(c,e)}function DPn(c,e,n){return Da.get(jo).codeActionProvider.register(c,{providedCodeActionKinds:n?.providedCodeActionKinds,documentation:n?.documentation,provideCodeActions:(o,a,u,h)=>{const b=Da.get(FP).read({resource:o.uri}).filter(x=>lt.areIntersectingOrTouching(x,a));return e.provideCodeActions(o,a,{markers:b,only:u.only,trigger:u.trigger},h)},resolveCodeAction:e.resolveCodeAction})}function NPn(c,e){return Da.get(jo).documentFormattingEditProvider.register(c,e)}function EPn(c,e){return Da.get(jo).documentRangeFormattingEditProvider.register(c,e)}function IPn(c,e){return Da.get(jo).onTypeFormattingEditProvider.register(c,e)}function LPn(c,e){return Da.get(jo).linkProvider.register(c,e)}function PPn(c,e){return Da.get(jo).completionProvider.register(c,e)}function APn(c,e){return Da.get(jo).colorProvider.register(c,e)}function FPn(c,e){return Da.get(jo).foldingRangeProvider.register(c,e)}function MPn(c,e){return Da.get(jo).declarationProvider.register(c,e)}function OPn(c,e){return Da.get(jo).selectionRangeProvider.register(c,e)}function RPn(c,e){return Da.get(jo).documentSemanticTokensProvider.register(c,e)}function BPn(c,e){return Da.get(jo).documentRangeSemanticTokensProvider.register(c,e)}function WPn(c,e){return Da.get(jo).inlineCompletionsProvider.register(c,e)}function VPn(c,e){return Da.get(jo).inlineEditProvider.register(c,e)}function jPn(c,e){return Da.get(jo).inlayHintsProvider.register(c,e)}function zPn(){return{register:iPn,getLanguages:rPn,onLanguage:sPn,onLanguageEncountered:aPn,getEncodedLanguageId:oPn,setLanguageConfiguration:lPn,setColorMap:hPn,registerTokensProviderFactory:bXe,setTokensProvider:fPn,setMonarchTokensProvider:_Pn,registerReferenceProvider:pPn,registerRenameProvider:gPn,registerNewSymbolNameProvider:mPn,registerCompletionItemProvider:PPn,registerSignatureHelpProvider:yPn,registerHoverProvider:bPn,registerDocumentSymbolProvider:vPn,registerDocumentHighlightProvider:CPn,registerLinkedEditingRangeProvider:SPn,registerDefinitionProvider:xPn,registerImplementationProvider:wPn,registerTypeDefinitionProvider:kPn,registerCodeLensProvider:TPn,registerCodeActionProvider:DPn,registerDocumentFormattingEditProvider:NPn,registerDocumentRangeFormattingEditProvider:EPn,registerOnTypeFormattingEditProvider:IPn,registerLinkProvider:LPn,registerColorProvider:APn,registerFoldingRangeProvider:FPn,registerDeclarationProvider:MPn,registerSelectionRangeProvider:OPn,registerDocumentSemanticTokensProvider:RPn,registerDocumentRangeSemanticTokensProvider:BPn,registerInlineCompletionsProvider:WPn,registerInlineEditProvider:VPn,registerInlayHintsProvider:jPn,DocumentHighlightKind:kVe,CompletionItemKind:bVe,CompletionItemTag:vVe,CompletionItemInsertTextRule:yVe,SymbolKind:nje,SymbolTag:ije,IndentAction:PVe,CompletionTriggerKind:CVe,SignatureHelpTriggerKind:tje,InlayHintKind:FVe,InlineCompletionTriggerKind:MVe,InlineEditTriggerKind:OVe,CodeActionTriggerType:mVe,NewSymbolNameTag:HVe,NewSymbolNameTriggerKind:UVe,PartialAcceptTriggerKind:GVe,HoverVerbosityAction:LVe,FoldingRangeKind:rO,SelectedSuggestionInfo:lNt}}const vXe=fc("IEditorCancelService"),a4t=new uo("cancellableOperation",!1,V("cancellableOperation","Whether the editor runs a cancellable operation, e.g. like 'Peek References'"));kc(vXe,class{constructor(){this._tokens=new WeakMap}add(c,e){let n=this._tokens.get(c);n||(n=c.invokeWithinContext(o=>{const a=a4t.bindTo(o.get(ca)),u=new zb;return{key:a,tokens:u}}),this._tokens.set(c,n));let i;return n.key.set(!0),i=n.tokens.push(e),()=>{i&&(i(),n.key.set(!n.tokens.isEmpty()),i=void 0)}}cancel(c){const e=this._tokens.get(c);if(!e)return;const n=e.tokens.pop();n&&(n.cancel(),e.key.set(!e.tokens.isEmpty()))}},1);class HPn extends Lf{constructor(e,n){super(n),this.editor=e,this._unregister=e.invokeWithinContext(i=>i.get(vXe).add(e,this))}dispose(){this._unregister(),super.dispose()}}to(new class extends Eg{constructor(){super({id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:a4t})}runEditorCommand(c,e){c.get(vXe).cancel(e)}});let l4t=class RUe{constructor(e,n){if(this.flags=n,(this.flags&1)!==0){const i=e.getModel();this.modelVersionId=i?lW("{0}#{1}",i.uri.toString(),i.getVersionId()):null}else this.modelVersionId=null;(this.flags&4)!==0?this.position=e.getPosition():this.position=null,(this.flags&2)!==0?this.selection=e.getSelection():this.selection=null,(this.flags&8)!==0?(this.scrollLeft=e.getScrollLeft(),this.scrollTop=e.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}_equals(e){if(!(e instanceof RUe))return!1;const n=e;return!(this.modelVersionId!==n.modelVersionId||this.scrollLeft!==n.scrollLeft||this.scrollTop!==n.scrollTop||!this.position&&n.position||this.position&&!n.position||this.position&&n.position&&!this.position.equals(n.position)||!this.selection&&n.selection||this.selection&&!n.selection||this.selection&&n.selection&&!this.selection.equalsRange(n.selection))}validate(e){return this._equals(new RUe(e,this.flags))}};class yO extends HPn{constructor(e,n,i,o){super(e,o),this._listener=new Ai,n&4&&this._listener.add(e.onDidChangeCursorPosition(a=>{(!i||!lt.containsPosition(i,a.position))&&this.cancel()})),n&2&&this._listener.add(e.onDidChangeCursorSelection(a=>{(!i||!lt.containsRange(i,a.selection))&&this.cancel()})),n&8&&this._listener.add(e.onDidScrollChange(a=>this.cancel())),n&1&&(this._listener.add(e.onDidChangeModel(a=>this.cancel())),this._listener.add(e.onDidChangeModelContent(a=>this.cancel())))}dispose(){this._listener.dispose(),super.dispose()}}class CXe extends Lf{constructor(e,n){super(n),this._listener=e.onDidChangeContent(()=>this.cancel())}dispose(){this._listener.dispose(),super.dispose()}}function TP(c){return c&&typeof c.getEditorType=="function"?c.getEditorType()===Sse.ICodeEditor:!1}function SXe(c){return c&&typeof c.getEditorType=="function"?c.getEditorType()===Sse.IDiffEditor:!1}function UPn(c){return!!c&&typeof c=="object"&&typeof c.onDidChangeActiveEditor=="function"}function c4t(c){return TP(c)?c:SXe(c)?c.getModifiedEditor():UPn(c)&&TP(c.activeCodeEditor)?c.activeCodeEditor:null}class HG{static _handleEolEdits(e,n){let i;const o=[];for(const a of n)typeof a.eol=="number"&&(i=a.eol),a.range&&typeof a.text=="string"&&o.push(a);return typeof i=="number"&&e.hasModel()&&e.getModel().pushEOL(i),o}static _isFullModelReplaceEdit(e,n){if(!e.hasModel())return!1;const i=e.getModel(),o=i.validateRange(n.range);return i.getFullModelRange().equalsRange(o)}static execute(e,n,i){i&&e.pushUndoStop();const o=AE.capture(e),a=HG._handleEolEdits(e,n);a.length===1&&HG._isFullModelReplaceEdit(e,a[0])?e.executeEdits("formatEditsCommand",a.map(u=>Ef.replace(lt.lift(u.range),u.text))):e.executeEdits("formatEditsCommand",a.map(u=>Ef.replaceMove(lt.lift(u.range),u.text))),i&&e.pushUndoStop(),o.restoreRelativeVerticalPositionOfCursor(e)}}class N2t{constructor(e){this.value=e,this._lower=e.toLowerCase()}static toKey(e){return typeof e=="string"?e.toLowerCase():e._lower}}class $Pn{constructor(e){if(this._set=new Set,e)for(const n of e)this.add(n)}add(e){this._set.add(N2t.toKey(e))}has(e){return this._set.has(N2t.toKey(e))}}function u4t(c,e,n){const i=[],o=new $Pn,a=c.ordered(n);for(const h of a)i.push(h),h.extensionId&&o.add(h.extensionId);const u=e.ordered(n);for(const h of u){if(h.extensionId){if(o.has(h.extensionId))continue;o.add(h.extensionId)}i.push({displayName:h.displayName,extensionId:h.extensionId,provideDocumentFormattingEdits(g,b,x){return h.provideDocumentRangeFormattingEdits(g,g.getFullModelRange(),b,x)}})}return i}const ure=class ure{static setFormatterSelector(e){return{dispose:ure._selectors.unshift(e)}}static async select(e,n,i,o){if(e.length===0)return;const a=Ic.first(ure._selectors);if(a)return await a(e,n,i,o)}};ure._selectors=new zb;let Coe=ure;async function d4t(c,e,n,i,o,a,u){const h=c.get(ks),{documentRangeFormattingEditProvider:g}=c.get(jo),b=TP(e)?e.getModel():e,x=g.ordered(b),w=await Coe.select(x,b,i,2);w&&(o.report(w),await h.invokeFunction(qPn,w,e,n,a,u))}async function qPn(c,e,n,i,o,a){const u=c.get(_C),h=c.get(e1),g=c.get(IO);let b,x;TP(n)?(b=n.getModel(),x=new yO(n,5,void 0,o)):(b=n,x=new CXe(n,o));const w=[];let k=0;for(const Q of OGe(i).sort(lt.compareRangesUsingStarts))k>0&<.areIntersectingOrTouching(w[k-1],Q)?w[k-1]=lt.fromPositions(w[k-1].getStartPosition(),Q.getEndPosition()):k=w.push(Q);const P=async Q=>{h.trace("[format][provideDocumentRangeFormattingEdits] (request)",e.extensionId?.value,Q);const ne=await e.provideDocumentRangeFormattingEdits(b,Q,b.getFormattingOptions(),x.token)||[];return h.trace("[format][provideDocumentRangeFormattingEdits] (response)",e.extensionId?.value,ne),ne},A=(Q,ne)=>{if(!Q.length||!ne.length)return!1;const ge=Q.reduce((ye,Me)=>lt.plusRange(ye,Me.range),Q[0].range);if(!ne.some(ye=>lt.intersectRanges(ge,ye.range)))return!1;for(const ye of Q)for(const Me of ne)if(lt.intersectRanges(ye.range,Me.range))return!0;return!1},B=[],X=[];try{if(typeof e.provideDocumentRangesFormattingEdits=="function"){h.trace("[format][provideDocumentRangeFormattingEdits] (request)",e.extensionId?.value,w);const Q=await e.provideDocumentRangesFormattingEdits(b,w,b.getFormattingOptions(),x.token)||[];h.trace("[format][provideDocumentRangeFormattingEdits] (response)",e.extensionId?.value,Q),X.push(Q)}else{for(const Q of w){if(x.token.isCancellationRequested)return!0;X.push(await P(Q))}for(let Q=0;Q<w.length;++Q)for(let ne=Q+1;ne<w.length;++ne){if(x.token.isCancellationRequested)return!0;if(A(X[Q],X[ne])){const ge=lt.plusRange(w[Q],w[ne]),ye=await P(ge);w.splice(ne,1),w.splice(Q,1),w.push(ge),X.splice(ne,1),X.splice(Q,1),X.push(ye),Q=0,ne=0}}}for(const Q of X){if(x.token.isCancellationRequested)return!0;const ne=await u.computeMoreMinimalEdits(b.uri,Q);ne&&B.push(...ne)}}finally{x.dispose()}if(B.length===0)return!1;if(TP(n))HG.execute(n,B,!0),n.revealPositionInCenterIfOutsideViewport(n.getPosition(),1);else{const[{range:Q}]=B,ne=new as(Q.startLineNumber,Q.startColumn,Q.endLineNumber,Q.endColumn);b.pushEditOperations([ne],B.map(ge=>({text:ge.text,range:lt.lift(ge.range),forceMoveMarkers:!0})),ge=>{for(const{range:ye}of ge)if(lt.areIntersectingOrTouching(ye,ne))return[new as(ye.startLineNumber,ye.startColumn,ye.endLineNumber,ye.endColumn)];return null})}return g.playSignal(Kx.format,{userGesture:a}),!0}async function GPn(c,e,n,i,o,a){const u=c.get(ks),h=c.get(jo),g=TP(e)?e.getModel():e,b=u4t(h.documentFormattingEditProvider,h.documentRangeFormattingEditProvider,g),x=await Coe.select(b,g,n,1);x&&(i.report(x),await u.invokeFunction(KPn,x,e,n,o,a))}async function KPn(c,e,n,i,o,a){const u=c.get(_C),h=c.get(IO);let g,b;TP(n)?(g=n.getModel(),b=new yO(n,5,void 0,o)):(g=n,b=new CXe(n,o));let x;try{const w=await e.provideDocumentFormattingEdits(g,g.getFormattingOptions(),b.token);if(x=await u.computeMoreMinimalEdits(g.uri,w),b.token.isCancellationRequested)return!0}finally{b.dispose()}if(!x||x.length===0)return!1;if(TP(n))HG.execute(n,x,i!==2),i!==2&&n.revealPositionInCenterIfOutsideViewport(n.getPosition(),1);else{const[{range:w}]=x,k=new as(w.startLineNumber,w.startColumn,w.endLineNumber,w.endColumn);g.pushEditOperations([k],x.map(P=>({text:P.text,range:lt.lift(P.range),forceMoveMarkers:!0})),P=>{for(const{range:A}of P)if(lt.areIntersectingOrTouching(A,k))return[new as(A.startLineNumber,A.startColumn,A.endLineNumber,A.endColumn)];return null})}return h.playSignal(Kx.format,{userGesture:a}),!0}async function JPn(c,e,n,i,o,a){const u=e.documentRangeFormattingEditProvider.ordered(n);for(const h of u){const g=await Promise.resolve(h.provideDocumentRangeFormattingEdits(n,i,o,a)).catch(O_);if(X0(g))return await c.computeMoreMinimalEdits(n.uri,g)}}async function XPn(c,e,n,i,o){const a=u4t(e.documentFormattingEditProvider,e.documentRangeFormattingEditProvider,n);for(const u of a){const h=await Promise.resolve(u.provideDocumentFormattingEdits(n,i,o)).catch(O_);if(X0(h))return await c.computeMoreMinimalEdits(n.uri,h)}}function h4t(c,e,n,i,o,a,u){const h=e.onTypeFormattingEditProvider.ordered(n);return h.length===0||h[0].autoFormatTriggerCharacters.indexOf(o)<0?Promise.resolve(void 0):Promise.resolve(h[0].provideOnTypeFormattingEdits(n,i,o,a,u)).catch(O_).then(g=>c.computeMoreMinimalEdits(n.uri,g))}Lc.registerCommand("_executeFormatRangeProvider",async function(c,...e){const[n,i,o]=e;au($s.isUri(n)),au(lt.isIRange(i));const a=c.get(dC),u=c.get(_C),h=c.get(jo),g=await a.createModelReference(n);try{return JPn(u,h,g.object.textEditorModel,lt.lift(i),o,Il.None)}finally{g.dispose()}});Lc.registerCommand("_executeFormatDocumentProvider",async function(c,...e){const[n,i]=e;au($s.isUri(n));const o=c.get(dC),a=c.get(_C),u=c.get(jo),h=await o.createModelReference(n);try{return XPn(a,u,h.object.textEditorModel,i,Il.None)}finally{h.dispose()}});Lc.registerCommand("_executeFormatOnTypeProvider",async function(c,...e){const[n,i,o,a]=e;au($s.isUri(n)),au(Nn.isIPosition(i)),au(typeof o=="string");const u=c.get(dC),h=c.get(_C),g=c.get(jo),b=await u.createModelReference(n);try{return h4t(h,g,b.object.textEditorModel,Nn.lift(i),o,a,Il.None)}finally{b.dispose()}});ME.wrappingIndent.defaultValue=0;ME.glyphMargin.defaultValue=!1;ME.autoIndent.defaultValue=3;ME.overviewRulerLanes.defaultValue=2;Coe.setFormatterSelector((c,e,n)=>Promise.resolve(c[0]));const iv=cNt();iv.editor=YLn();iv.languages=zPn();const f4t=iv.CancellationTokenSource,_4t=iv.Emitter,p4t=iv.KeyCode,g4t=iv.KeyMod,m4t=iv.Position,y4t=iv.Range,b4t=iv.Selection,v4t=iv.SelectionDirection,C4t=iv.MarkerSeverity,S4t=iv.MarkerTag,x4t=iv.Uri,w4t=iv.Token,k4t=iv.editor,T4t=iv.languages,YPn=globalThis.MonacoEnvironment;(YPn?.globalAPI||typeof define=="function"&&define.amd)&&(globalThis.monaco=iv);typeof globalThis.require<"u"&&typeof globalThis.require.config=="function"&&globalThis.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-languageserver-textdocument","vscode-languageserver-textdocument/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index","vs/basic-languages/typescript/typescript"]});const Tse=Object.freeze(Object.defineProperty({__proto__:null,CancellationTokenSource:f4t,Emitter:_4t,KeyCode:p4t,KeyMod:g4t,MarkerSeverity:C4t,MarkerTag:S4t,Position:m4t,Range:y4t,Selection:b4t,SelectionDirection:v4t,Token:w4t,Uri:x4t,editor:k4t,languages:T4t},Symbol.toStringTag,{value:"Module"}));var ZPn=Object.defineProperty,QPn=Object.getOwnPropertyDescriptor,e4n=Object.getOwnPropertyNames,t4n=Object.prototype.hasOwnProperty,n4n=(c,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of e4n(e))!t4n.call(c,o)&&o!==n&&ZPn(c,o,{get:()=>e[o],enumerable:!(i=QPn(e,o))||i.enumerable});return c},i4n=(c,e,n)=>(n4n(c,e,"default"),n),Zne={};i4n(Zne,Tse);var D4t={},qBe={},r4n=class N4t{static getOrCreate(e){return qBe[e]||(qBe[e]=new N4t(e)),qBe[e]}constructor(e){this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((n,i)=>{this._lazyLoadPromiseResolve=n,this._lazyLoadPromiseReject=i})}load(){return this._loadingTriggered||(this._loadingTriggered=!0,D4t[this._languageId].loader().then(e=>this._lazyLoadPromiseResolve(e),e=>this._lazyLoadPromiseReject(e))),this._lazyLoadPromise}};function Js(c){const e=c.id;D4t[e]=c,Zne.languages.register(c);const n=r4n.getOrCreate(e);Zne.languages.registerTokensProviderFactory(e,{create:async()=>(await n.load()).language}),Zne.languages.onLanguageEncountered(e,async()=>{const i=await n.load();Zne.languages.setLanguageConfiguration(e,i.conf)})}Js({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>Ls(()=>import("./abap-CRCWOmpq.js"),[],import.meta.url)});Js({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>Ls(()=>import("./apex-DnsZk_dE.js"),[],import.meta.url)});Js({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>Ls(()=>import("./azcli-1IWB1ccx.js"),[],import.meta.url)});Js({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>Ls(()=>import("./bat-DPkNLes8.js"),[],import.meta.url)});Js({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>Ls(()=>import("./bicep-Corcdgou.js"),[],import.meta.url)});Js({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>Ls(()=>import("./cameligo-CGrWLZr3.js"),[],import.meta.url)});Js({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>Ls(()=>import("./clojure-D9WOWImG.js"),[],import.meta.url)});Js({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>Ls(()=>import("./coffee-B7EJu28W.js"),[],import.meta.url)});Js({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>Ls(()=>import("./cpp-SEyurbux.js"),[],import.meta.url)});Js({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>Ls(()=>import("./cpp-SEyurbux.js"),[],import.meta.url)});Js({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>Ls(()=>import("./csharp-BoL64M5l.js"),[],import.meta.url)});Js({id:"csp",extensions:[".csp"],aliases:["CSP","csp"],loader:()=>Ls(()=>import("./csp-C46ZqvIl.js"),[],import.meta.url)});Js({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>Ls(()=>import("./css-DQU6DXDx.js"),[],import.meta.url)});Js({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>Ls(()=>import("./cypher-D84EuPTj.js"),[],import.meta.url)});Js({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>Ls(()=>import("./dart-D8lhlL1r.js"),[],import.meta.url)});Js({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>Ls(()=>import("./dockerfile-DLk6rpji.js"),[],import.meta.url)});Js({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>Ls(()=>import("./ecl-BO6FnfXk.js"),[],import.meta.url)});Js({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>Ls(()=>import("./elixir-BRjLKONM.js"),[],import.meta.url)});Js({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>Ls(()=>import("./flow9-Cac8vKd7.js"),[],import.meta.url)});Js({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>Ls(()=>import("./fsharp-fd1GTHhf.js"),[],import.meta.url)});Js({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>Ls(()=>import("./freemarker2-Bbu5Unr-.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url).then(c=>c.TagAutoInterpolationDollar)});Js({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>Ls(()=>import("./freemarker2-Bbu5Unr-.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url).then(c=>c.TagAngleInterpolationDollar)});Js({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>Ls(()=>import("./freemarker2-Bbu5Unr-.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url).then(c=>c.TagBracketInterpolationDollar)});Js({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>Ls(()=>import("./freemarker2-Bbu5Unr-.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url).then(c=>c.TagAngleInterpolationBracket)});Js({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>Ls(()=>import("./freemarker2-Bbu5Unr-.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url).then(c=>c.TagBracketInterpolationBracket)});Js({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>Ls(()=>import("./freemarker2-Bbu5Unr-.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url).then(c=>c.TagAutoInterpolationDollar)});Js({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>Ls(()=>import("./freemarker2-Bbu5Unr-.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url).then(c=>c.TagAutoInterpolationBracket)});Js({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>Ls(()=>import("./go-O9LJTZXk.js"),[],import.meta.url)});Js({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>Ls(()=>import("./graphql-LQdxqEYJ.js"),[],import.meta.url)});Js({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>Ls(()=>import("./handlebars-BWCujSP1.js"),__vite__mapDeps([5,1,2,3,4]),import.meta.url)});Js({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>Ls(()=>import("./hcl-DxDQ3s82.js"),[],import.meta.url)});Js({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>Ls(()=>import("./html-BDpmhC2h.js"),__vite__mapDeps([6,1,2,3,4]),import.meta.url)});Js({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>Ls(()=>import("./ini-BvajGCUy.js"),[],import.meta.url)});Js({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>Ls(()=>import("./java-SYsfObOQ.js"),[],import.meta.url)});Js({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>Ls(()=>import("./javascript-BwFEznBu.js"),__vite__mapDeps([7,8,1,2,3,4]),import.meta.url)});Js({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>Ls(()=>import("./julia-DQXNmw_w.js"),[],import.meta.url)});Js({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>Ls(()=>import("./kotlin-qQ0MG-9I.js"),[],import.meta.url)});Js({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>Ls(()=>import("./less-GGFNNJHn.js"),[],import.meta.url)});Js({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>Ls(()=>import("./lexon-Canl7DCW.js"),[],import.meta.url)});Js({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>Ls(()=>import("./lua-D28Ae8-K.js"),[],import.meta.url)});Js({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>Ls(()=>import("./liquid-BxyfMG5N.js"),__vite__mapDeps([9,1,2,3,4]),import.meta.url)});Js({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>Ls(()=>import("./m3-DPitgjJI.js"),[],import.meta.url)});Js({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>Ls(()=>import("./markdown-B811l8j2.js"),[],import.meta.url)});Js({id:"mdx",extensions:[".mdx"],aliases:["MDX","mdx"],loader:()=>Ls(()=>import("./mdx-O8HLM987.js"),__vite__mapDeps([10,1,2,3,4]),import.meta.url)});Js({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>Ls(()=>import("./mips-CdjsipkG.js"),[],import.meta.url)});Js({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>Ls(()=>import("./msdax-CYqgjx_P.js"),[],import.meta.url)});Js({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>Ls(()=>import("./mysql-BHd6q0vd.js"),[],import.meta.url)});Js({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>Ls(()=>import("./objective-c-B1aVtJYH.js"),[],import.meta.url)});Js({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>Ls(()=>import("./pascal-BhNW15KB.js"),[],import.meta.url)});Js({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>Ls(()=>import("./pascaligo-5jv8CcQD.js"),[],import.meta.url)});Js({id:"perl",extensions:[".pl",".pm"],aliases:["Perl","pl"],loader:()=>Ls(()=>import("./perl-DlYyT36c.js"),[],import.meta.url)});Js({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>Ls(()=>import("./pgsql-Dy0bjov7.js"),[],import.meta.url)});Js({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>Ls(()=>import("./php-120yhfDK.js"),[],import.meta.url)});Js({id:"pla",extensions:[".pla"],loader:()=>Ls(()=>import("./pla-CjnFlu4u.js"),[],import.meta.url)});Js({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>Ls(()=>import("./postiats-CQpG440k.js"),[],import.meta.url)});Js({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>Ls(()=>import("./powerquery-DdJtto1Z.js"),[],import.meta.url)});Js({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>Ls(()=>import("./powershell-Bu_VLpJB.js"),[],import.meta.url)});Js({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>Ls(()=>import("./protobuf-IBS6jZEB.js"),[],import.meta.url)});Js({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>Ls(()=>import("./pug-kFxLfcjb.js"),[],import.meta.url)});Js({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>Ls(()=>import("./python-QfRbQ5Hd.js"),__vite__mapDeps([11,1,2,3,4]),import.meta.url)});Js({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>Ls(()=>import("./qsharp-q7JyzKFN.js"),[],import.meta.url)});Js({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>Ls(()=>import("./r-BIFz-_sK.js"),[],import.meta.url)});Js({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>Ls(()=>import("./razor-C5834-ah.js"),__vite__mapDeps([12,1,2,3,4]),import.meta.url)});Js({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>Ls(()=>import("./redis-CHOsPHWR.js"),[],import.meta.url)});Js({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>Ls(()=>import("./redshift-CBifECDb.js"),[],import.meta.url)});Js({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>Ls(()=>import("./restructuredtext-CghPJEOS.js"),[],import.meta.url)});Js({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>Ls(()=>import("./ruby-CYWGW-b1.js"),[],import.meta.url)});Js({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>Ls(()=>import("./rust-DMDD0SHb.js"),[],import.meta.url)});Js({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>Ls(()=>import("./sb-BYAiYHFx.js"),[],import.meta.url)});Js({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>Ls(()=>import("./scala-Bqvq8jcR.js"),[],import.meta.url)});Js({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>Ls(()=>import("./scheme-Dhb-2j9p.js"),[],import.meta.url)});Js({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>Ls(()=>import("./scss-CTwUZ5N7.js"),[],import.meta.url)});Js({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>Ls(()=>import("./shell-CsDZo4DB.js"),[],import.meta.url)});Js({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>Ls(()=>import("./solidity-CME5AdoB.js"),[],import.meta.url)});Js({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>Ls(()=>import("./sophia-RYC1BQQz.js"),[],import.meta.url)});Js({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>Ls(()=>import("./sparql-KEyrF7De.js"),[],import.meta.url)});Js({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>Ls(()=>import("./sql-BdTr02Mf.js"),[],import.meta.url)});Js({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib",".TcPOU",".TcDUT",".TcGVL",".TcIO"],aliases:["StructuredText","scl","stl"],loader:()=>Ls(()=>import("./st-C7iG7M4S.js"),[],import.meta.url)});Js({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>Ls(()=>import("./swift-D7IUmUK8.js"),[],import.meta.url)});Js({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>Ls(()=>import("./systemverilog-DgMryOEJ.js"),[],import.meta.url)});Js({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>Ls(()=>import("./systemverilog-DgMryOEJ.js"),[],import.meta.url)});Js({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>Ls(()=>import("./tcl-PloMZuKG.js"),[],import.meta.url)});Js({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>Ls(()=>import("./twig-BfRIq3la.js"),[],import.meta.url)});Js({id:"typescript",extensions:[".ts",".tsx",".cts",".mts"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>Ls(()=>import("./typescript-K3J2Zpg_.js"),__vite__mapDeps([8,1,2,3,4]),import.meta.url)});Js({id:"typespec",extensions:[".tsp"],aliases:["TypeSpec"],loader:()=>Ls(()=>import("./typespec-CzxlYoT_.js"),[],import.meta.url)});Js({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>Ls(()=>import("./vb-BwAE3J76.js"),[],import.meta.url)});Js({id:"wgsl",extensions:[".wgsl"],aliases:["WebGPU Shading Language","WGSL","wgsl"],loader:()=>Ls(()=>import("./wgsl-B_1kOXbF.js"),[],import.meta.url)});Js({id:"xml",extensions:[".xml",".xsd",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xslt",".xsl"],firstLine:"(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",aliases:["XML","xml"],mimetypes:["text/xml","application/xml","application/xaml+xml","application/xml-dtd"],loader:()=>Ls(()=>import("./xml-DQv-_kbg.js"),__vite__mapDeps([13,1,2,3,4]),import.meta.url)});Js({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>Ls(()=>import("./yaml-De698brO.js"),__vite__mapDeps([14,1,2,3,4]),import.meta.url)});var o4n=Object.defineProperty,s4n=Object.getOwnPropertyDescriptor,a4n=Object.getOwnPropertyNames,l4n=Object.prototype.hasOwnProperty,c4n=(c,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of a4n(e))!l4n.call(c,o)&&o!==n&&o4n(c,o,{get:()=>e[o],enumerable:!(i=s4n(e,o))||i.enumerable});return c},u4n=(c,e,n)=>(c4n(c,e,"default"),n),DK={};u4n(DK,Tse);var xXe=class{constructor(e,n,i){this._onDidChange=new DK.Emitter,this._languageId=e,this.setOptions(n),this.setModeConfiguration(i)}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(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},wXe={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}},kXe={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},E4t=new xXe("css",wXe,kXe),I4t=new xXe("scss",wXe,kXe),L4t=new xXe("less",wXe,kXe);DK.languages.css={cssDefaults:E4t,lessDefaults:L4t,scssDefaults:I4t};function TXe(){return Ls(()=>import("./cssMode-DG3PN4ZZ.js"),__vite__mapDeps([15,1,2,3,4]),import.meta.url)}DK.languages.onLanguage("less",()=>{TXe().then(c=>c.setupMode(L4t))});DK.languages.onLanguage("scss",()=>{TXe().then(c=>c.setupMode(I4t))});DK.languages.onLanguage("css",()=>{TXe().then(c=>c.setupMode(E4t))});var d4n=Object.defineProperty,h4n=Object.getOwnPropertyDescriptor,f4n=Object.getOwnPropertyNames,_4n=Object.prototype.hasOwnProperty,p4n=(c,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of f4n(e))!_4n.call(c,o)&&o!==n&&d4n(c,o,{get:()=>e[o],enumerable:!(i=h4n(e,o))||i.enumerable});return c},g4n=(c,e,n)=>(p4n(c,e,"default"),n),Jwe={};g4n(Jwe,Tse);var m4n=class{constructor(e,n,i){this._onDidChange=new Jwe.Emitter,this._languageId=e,this.setOptions(n),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},y4n={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"},Xwe={format:y4n,suggest:{},data:{useDefaultDataProvider:!0}};function Ywe(c){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:c===Wie,documentFormattingEdits:c===Wie,documentRangeFormattingEdits:c===Wie}}var Wie="html",E2t="handlebars",I2t="razor",P4t=Zwe(Wie,Xwe,Ywe(Wie)),b4n=P4t.defaults,A4t=Zwe(E2t,Xwe,Ywe(E2t)),v4n=A4t.defaults,F4t=Zwe(I2t,Xwe,Ywe(I2t)),C4n=F4t.defaults;Jwe.languages.html={htmlDefaults:b4n,razorDefaults:C4n,handlebarDefaults:v4n,htmlLanguageService:P4t,handlebarLanguageService:A4t,razorLanguageService:F4t,registerHTMLLanguageService:Zwe};function S4n(){return Ls(()=>import("./htmlMode-CgU4ojQY.js"),__vite__mapDeps([16,1,2,3,4]),import.meta.url)}function Zwe(c,e=Xwe,n=Ywe(c)){const i=new m4n(c,e,n);let o;const a=Jwe.languages.onLanguage(c,async()=>{o=(await S4n()).setupMode(i)});return{defaults:i,dispose(){a.dispose(),o?.dispose(),o=void 0}}}var x4n=Object.defineProperty,w4n=Object.getOwnPropertyDescriptor,k4n=Object.getOwnPropertyNames,T4n=Object.prototype.hasOwnProperty,D4n=(c,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of k4n(e))!T4n.call(c,o)&&o!==n&&x4n(c,o,{get:()=>e[o],enumerable:!(i=w4n(e,o))||i.enumerable});return c},N4n=(c,e,n)=>(D4n(c,e,"default"),n),Dse={};N4n(Dse,Tse);var E4n=class{constructor(e,n,i){this._onDidChange=new Dse.Emitter,this._languageId=e,this.setDiagnosticsOptions(n),this.setModeConfiguration(i)}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)}},I4n={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},L4n={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},M4t=new E4n("json",I4n,L4n),P4n=()=>O4t().then(c=>c.getWorker());Dse.languages.json={jsonDefaults:M4t,getWorker:P4n};function O4t(){return Ls(()=>import("./jsonMode-TU3a9xoR.js"),__vite__mapDeps([17,1,2,3,4]),import.meta.url)}Dse.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});Dse.languages.onLanguage("json",()=>{O4t().then(c=>c.setupMode(M4t))});var A4n=Object.defineProperty,F4n=Object.getOwnPropertyDescriptor,M4n=Object.getOwnPropertyNames,O4n=Object.prototype.hasOwnProperty,R4n=(c,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of M4n(e))!O4n.call(c,o)&&o!==n&&A4n(c,o,{get:()=>e[o],enumerable:!(i=F4n(e,o))||i.enumerable});return c},B4n=(c,e,n)=>(R4n(c,e,"default"),n),W4n="5.4.5",UG={};B4n(UG,Tse);var R4t=(c=>(c[c.None=0]="None",c[c.CommonJS=1]="CommonJS",c[c.AMD=2]="AMD",c[c.UMD=3]="UMD",c[c.System=4]="System",c[c.ES2015=5]="ES2015",c[c.ESNext=99]="ESNext",c))(R4t||{}),B4t=(c=>(c[c.None=0]="None",c[c.Preserve=1]="Preserve",c[c.React=2]="React",c[c.ReactNative=3]="ReactNative",c[c.ReactJSX=4]="ReactJSX",c[c.ReactJSXDev=5]="ReactJSXDev",c))(B4t||{}),W4t=(c=>(c[c.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",c[c.LineFeed=1]="LineFeed",c))(W4t||{}),V4t=(c=>(c[c.ES3=0]="ES3",c[c.ES5=1]="ES5",c[c.ES2015=2]="ES2015",c[c.ES2016=3]="ES2016",c[c.ES2017=4]="ES2017",c[c.ES2018=5]="ES2018",c[c.ES2019=6]="ES2019",c[c.ES2020=7]="ES2020",c[c.ESNext=99]="ESNext",c[c.JSON=100]="JSON",c[c.Latest=99]="Latest",c))(V4t||{}),j4t=(c=>(c[c.Classic=1]="Classic",c[c.NodeJs=2]="NodeJs",c))(j4t||{}),z4t=class{constructor(c,e,n,i,o){this._onDidChange=new UG.Emitter,this._onDidExtraLibsChange=new UG.Emitter,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(c),this.setDiagnosticsOptions(e),this.setWorkerOptions(n),this.setInlayHintsOptions(i),this.setModeConfiguration(o),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(c,e){let n;if(typeof e>"u"?n=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:n=e,this._extraLibs[n]&&this._extraLibs[n].content===c)return{dispose:()=>{}};let i=1;return this._removedExtraLibs[n]&&(i=this._removedExtraLibs[n]+1),this._extraLibs[n]&&(i=this._extraLibs[n].version+1),this._extraLibs[n]={content:c,version:i},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let o=this._extraLibs[n];o&&o.version===i&&(delete this._extraLibs[n],this._removedExtraLibs[n]=i,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(c){for(const e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),c&&c.length>0)for(const e of c){const n=e.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=e.content;let o=1;this._removedExtraLibs[n]&&(o=this._removedExtraLibs[n]+1),this._extraLibs[n]={content:i,version:o}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(c){this._compilerOptions=c||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(c){this._diagnosticsOptions=c||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(c){this._workerOptions=c||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(c){this._inlayHintsOptions=c||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(c){}setEagerModelSync(c){this._eagerModelSync=c}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(c){this._modeConfiguration=c||Object.create(null),this._onDidChange.fire(void 0)}},V4n=W4n,H4t={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,diagnostics:!0,documentRangeFormattingEdits:!0,signatureHelp:!0,onTypeFormattingEdits:!0,codeActions:!0,inlayHints:!0},U4t=new z4t({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},H4t),$4t=new z4t({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},H4t),j4n=()=>Qwe().then(c=>c.getTypeScriptWorker()),z4n=()=>Qwe().then(c=>c.getJavaScriptWorker());UG.languages.typescript={ModuleKind:R4t,JsxEmit:B4t,NewLineKind:W4t,ScriptTarget:V4t,ModuleResolutionKind:j4t,typescriptVersion:V4n,typescriptDefaults:U4t,javascriptDefaults:$4t,getTypeScriptWorker:j4n,getJavaScriptWorker:z4n};function Qwe(){return Ls(()=>import("./tsMode-ewJDSYZ4.js"),__vite__mapDeps([18,1,2,3,4]),import.meta.url)}UG.languages.onLanguage("typescript",()=>Qwe().then(c=>c.setupTypeScript(U4t)));UG.languages.onLanguage("javascript",()=>Qwe().then(c=>c.setupJavaScript($4t)));class H4n extends tv{constructor(){super({id:"diffEditor.toggleCollapseUnchangedRegions",title:Ta("toggleCollapseUnchangedRegions","Toggle Collapse Unchanged Regions"),icon:wr.map,toggled:Oi.has("config.diffEditor.hideUnchangedRegions.enabled"),precondition:Oi.has("isInDiffEditor"),menu:{when:Oi.has("isInDiffEditor"),id:Yo.EditorTitle,order:22,group:"navigation"}})}run(e,...n){const i=e.get(Kl),o=!i.getValue("diffEditor.hideUnchangedRegions.enabled");i.updateValue("diffEditor.hideUnchangedRegions.enabled",o)}}class q4t extends tv{constructor(){super({id:"diffEditor.toggleShowMovedCodeBlocks",title:Ta("toggleShowMovedCodeBlocks","Toggle Show Moved Code Blocks"),precondition:Oi.has("isInDiffEditor")})}run(e,...n){const i=e.get(Kl),o=!i.getValue("diffEditor.experimental.showMoves");i.updateValue("diffEditor.experimental.showMoves",o)}}class G4t extends tv{constructor(){super({id:"diffEditor.toggleUseInlineViewWhenSpaceIsLimited",title:Ta("toggleUseInlineViewWhenSpaceIsLimited","Toggle Use Inline View When Space Is Limited"),precondition:Oi.has("isInDiffEditor")})}run(e,...n){const i=e.get(Kl),o=!i.getValue("diffEditor.useInlineViewWhenSpaceIsLimited");i.updateValue("diffEditor.useInlineViewWhenSpaceIsLimited",o)}}const Nse=Ta("diffEditor","Diff Editor");class U4n extends OE{constructor(){super({id:"diffEditor.switchSide",title:Ta("switchSide","Switch Side"),icon:wr.arrowSwap,precondition:Oi.has("isInDiffEditor"),f1:!0,category:Nse})}runEditorCommand(e,n,i){const o=NK(e);if(o instanceof Q3){if(i&&i.dryRun)return{destinationSelection:o.mapToOtherSide().destinationSelection};o.switchSide()}}}class $4n extends OE{constructor(){super({id:"diffEditor.exitCompareMove",title:Ta("exitCompareMove","Exit Compare Move"),icon:wr.close,precondition:At.comparingMovedCode,f1:!1,category:Nse,keybinding:{weight:1e4,primary:9}})}runEditorCommand(e,n,...i){const o=NK(e);o instanceof Q3&&o.exitCompareMove()}}class q4n extends OE{constructor(){super({id:"diffEditor.collapseAllUnchangedRegions",title:Ta("collapseAllUnchangedRegions","Collapse All Unchanged Regions"),icon:wr.fold,precondition:Oi.has("isInDiffEditor"),f1:!0,category:Nse})}runEditorCommand(e,n,...i){const o=NK(e);o instanceof Q3&&o.collapseAllUnchangedRegions()}}class G4n extends OE{constructor(){super({id:"diffEditor.showAllUnchangedRegions",title:Ta("showAllUnchangedRegions","Show All Unchanged Regions"),icon:wr.unfold,precondition:Oi.has("isInDiffEditor"),f1:!0,category:Nse})}runEditorCommand(e,n,...i){const o=NK(e);o instanceof Q3&&o.showAllUnchangedRegions()}}class BUe extends tv{constructor(){super({id:"diffEditor.revert",title:Ta("revert","Revert"),f1:!1,category:Nse})}run(e,n){const i=K4n(e,n.originalUri,n.modifiedUri);i instanceof Q3&&i.revertRangeMappings(n.mapping.innerChanges??[])}}const K4t=Ta("accessibleDiffViewer","Accessible Diff Viewer"),GSe=class GSe extends tv{constructor(){super({id:GSe.id,title:Ta("editor.action.accessibleDiffViewer.next","Go to Next Difference"),category:K4t,precondition:Oi.has("isInDiffEditor"),keybinding:{primary:65,weight:100},f1:!0})}run(e){NK(e)?.accessibleDiffViewerNext()}};GSe.id="editor.action.accessibleDiffViewer.next";let Soe=GSe;const KSe=class KSe extends tv{constructor(){super({id:KSe.id,title:Ta("editor.action.accessibleDiffViewer.prev","Go to Previous Difference"),category:K4t,precondition:Oi.has("isInDiffEditor"),keybinding:{primary:1089,weight:100},f1:!0})}run(e){NK(e)?.accessibleDiffViewerPrev()}};KSe.id="editor.action.accessibleDiffViewer.prev";let Zve=KSe;function K4n(c,e,n){return c.get(lu).listDiffEditors().find(a=>{const u=a.getModifiedEditor(),h=a.getOriginalEditor();return u&&u.getModel()?.uri.toString()===n.toString()&&h&&h.getModel()?.uri.toString()===e.toString()})||null}function NK(c){const n=c.get(lu).listDiffEditors(),i=Yy();if(i)for(const o of n){const a=o.getContainerDomNode();if(J4n(a,i))return o}return null}function J4n(c,e){let n=e;for(;n;){if(n===c)return!0;n=n.parentElement}return!1}nh(H4n);nh(q4t);nh(G4t);Vm.appendMenuItem(Yo.EditorTitle,{command:{id:new G4t().desc.id,title:V("useInlineViewWhenSpaceIsLimited","Use Inline View When Space Is Limited"),toggled:Oi.has("config.diffEditor.useInlineViewWhenSpaceIsLimited"),precondition:Oi.has("isInDiffEditor")},order:11,group:"1_diff",when:Oi.and(At.diffEditorRenderSideBySideInlineBreakpointReached,Oi.has("isInDiffEditor"))});Vm.appendMenuItem(Yo.EditorTitle,{command:{id:new q4t().desc.id,title:V("showMoves","Show Moved Code Blocks"),icon:wr.move,toggled:uK.create("config.diffEditor.experimental.showMoves",!0),precondition:Oi.has("isInDiffEditor")},order:10,group:"1_diff",when:Oi.has("isInDiffEditor")});nh(BUe);for(const c of[{icon:wr.arrowRight,key:At.diffEditorInlineMode.toNegated()},{icon:wr.discard,key:At.diffEditorInlineMode}])Vm.appendMenuItem(Yo.DiffEditorHunkToolbar,{command:{id:new BUe().desc.id,title:V("revertHunk","Revert Block"),icon:c.icon},when:Oi.and(At.diffEditorModifiedWritable,c.key),order:5,group:"primary"}),Vm.appendMenuItem(Yo.DiffEditorSelectionToolbar,{command:{id:new BUe().desc.id,title:V("revertSelection","Revert Selection"),icon:c.icon},when:Oi.and(At.diffEditorModifiedWritable,c.key),order:5,group:"primary"});nh(U4n);nh($4n);nh(q4n);nh(G4n);Vm.appendMenuItem(Yo.EditorTitle,{command:{id:Soe.id,title:V("Open Accessible Diff Viewer","Open Accessible Diff Viewer"),precondition:Oi.has("isInDiffEditor")},order:10,group:"2_diff",when:Oi.and(At.accessibleDiffViewerVisible.negate(),Oi.has("isInDiffEditor"))});Lc.registerCommandAlias("editor.action.diffReview.next",Soe.id);nh(Soe);Lc.registerCommandAlias("editor.action.diffReview.prev",Zve.id);nh(Zve);var X4n=function(c,e,n,i){var o=arguments.length,a=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(c,e,n,i);else for(var h=c.length-1;h>=0;h--)(u=c[h])&&(a=(o<3?u(a):o>3?u(e,n,a):u(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},Y4n=function(c,e){return function(n,i){e(n,i,c)}},WUe;const e2e=new uo("selectionAnchorSet",!1);var vB;let bO=(vB=class{static get(e){return e.getContribution(WUe.ID)}constructor(e,n){this.editor=e,this.selectionAnchorSetContextKey=e2e.bindTo(n),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations(n=>{this.decorationId&&n.removeDecoration(this.decorationId),this.decorationId=n.addDecoration(as.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new R1().appendText(V("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),Qb(V("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const n=this.editor.getPosition();this.editor.setSelection(as.fromPositions(e.getStartPosition(),n)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations(n=>{n.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}},WUe=vB,vB.ID="editor.contrib.selectionAnchorController",vB);bO=WUe=X4n([Y4n(1,ca)],bO);class Z4n extends wo{constructor(){super({id:"editor.action.setSelectionAnchor",label:V("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:At.editorTextFocus,primary:Hp(2089,2080),weight:100}})}async run(e,n){bO.get(n)?.setSelectionAnchor()}}class Q4n extends wo{constructor(){super({id:"editor.action.goToSelectionAnchor",label:V("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:e2e})}async run(e,n){bO.get(n)?.goToSelectionAnchor()}}class eAn extends wo{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:V("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:e2e,kbOpts:{kbExpr:At.editorTextFocus,primary:Hp(2089,2089),weight:100}})}async run(e,n){bO.get(n)?.selectFromAnchorToCursor()}}class tAn extends wo{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:V("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:e2e,kbOpts:{kbExpr:At.editorTextFocus,primary:9,weight:100}})}async run(e,n){bO.get(n)?.cancelSelectionAnchor()}}Hc(bO.ID,bO,4);mr(Z4n);mr(Q4n);mr(eAn);mr(tAn);const nAn=Rt("editorOverviewRuler.bracketMatchForeground","#A0A0A0",V("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class iAn extends wo{constructor(){super({id:"editor.action.jumpToBracket",label:V("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:At.editorTextFocus,primary:3165,weight:100}})}run(e,n){xW.get(n)?.jumpToBracket()}}class rAn extends wo{constructor(){super({id:"editor.action.selectToBracket",label:V("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,metadata:{description:Ta("smartSelect.selectToBracketDescription","Select the text inside and including the brackets or curly braces"),args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,n,i){let o=!0;i&&i.selectBrackets===!1&&(o=!1),xW.get(n)?.selectToBracket(o)}}class oAn extends wo{constructor(){super({id:"editor.action.removeBrackets",label:V("smartSelect.removeBrackets","Remove Brackets"),alias:"Remove Brackets",precondition:void 0,kbOpts:{kbExpr:At.editorTextFocus,primary:2561,weight:100}})}run(e,n){xW.get(n)?.removeBrackets(this.id)}}class sAn{constructor(e,n,i){this.position=e,this.brackets=n,this.options=i}}const oM=class oM extends Wn{static get(e){return e.getContribution(oM.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new bd(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(72),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(n=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(n=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(n=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(n=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(n=>{n.hasChanged(72)&&(this._matchBrackets=this._editor.getOption(72),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(e.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),n=this._editor.getSelections().map(i=>{const o=i.getStartPosition(),a=e.bracketPairs.matchBracket(o);let u=null;if(a)a[0].containsPosition(o)&&!a[1].containsPosition(o)?u=a[1].getStartPosition():a[1].containsPosition(o)&&(u=a[0].getStartPosition());else{const h=e.bracketPairs.findEnclosingBrackets(o);if(h)u=h[1].getStartPosition();else{const g=e.bracketPairs.findNextBracket(o);g&&g.range&&(u=g.range.getStartPosition())}}return u?new as(u.lineNumber,u.column,u.lineNumber,u.column):new as(o.lineNumber,o.column,o.lineNumber,o.column)});this._editor.setSelections(n),this._editor.revealRange(n[0])}selectToBracket(e){if(!this._editor.hasModel())return;const n=this._editor.getModel(),i=[];this._editor.getSelections().forEach(o=>{const a=o.getStartPosition();let u=n.bracketPairs.matchBracket(a);if(!u&&(u=n.bracketPairs.findEnclosingBrackets(a),!u)){const b=n.bracketPairs.findNextBracket(a);b&&b.range&&(u=n.bracketPairs.matchBracket(b.range.getStartPosition()))}let h=null,g=null;if(u){u.sort(lt.compareRangesUsingStarts);const[b,x]=u;if(h=e?b.getStartPosition():b.getEndPosition(),g=e?x.getEndPosition():x.getStartPosition(),x.containsPosition(a)){const w=h;h=g,g=w}}h&&g&&i.push(new as(h.lineNumber,h.column,g.lineNumber,g.column))}),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}removeBrackets(e){if(!this._editor.hasModel())return;const n=this._editor.getModel();this._editor.getSelections().forEach(i=>{const o=i.getPosition();let a=n.bracketPairs.matchBracket(o);a||(a=n.bracketPairs.findEnclosingBrackets(o)),a&&(this._editor.pushUndoStop(),this._editor.executeEdits(e,[{range:a[0],text:""},{range:a[1],text:""}]),this._editor.pushUndoStop())})}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();const e=[];let n=0;for(const i of this._lastBracketsData){const o=i.brackets;o&&(e[n++]={range:o[0],options:i.options},e[n++]={range:o[1],options:i.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}const e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}const n=this._editor.getModel(),i=n.getVersionId();let o=[];this._lastVersionId===i&&(o=this._lastBracketsData);const a=[];let u=0;for(let w=0,k=e.length;w<k;w++){const P=e[w];P.isEmpty()&&(a[u++]=P.getStartPosition())}a.length>1&&a.sort(Nn.compare);const h=[];let g=0,b=0;const x=o.length;for(let w=0,k=a.length;w<k;w++){const P=a[w];for(;b<x&&o[b].position.isBefore(P);)b++;if(b<x&&o[b].position.equals(P))h[g++]=o[b];else{let A=n.bracketPairs.matchBracket(P,20),B=oM._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;!A&&this._matchBrackets==="always"&&(A=n.bracketPairs.findEnclosingBrackets(P,20),B=oM._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),h[g++]=new sAn(P,A,B)}}this._lastBracketsData=h,this._lastVersionId=i}};oM.ID="editor.contrib.bracketMatchingController",oM._DECORATION_OPTIONS_WITH_OVERVIEW_RULER=ll.register({description:"bracket-match-overview",stickiness:1,className:"bracket-match",overviewRuler:{color:__(nAn),position:rw.Center}}),oM._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=ll.register({description:"bracket-match-no-overview",stickiness:1,className:"bracket-match"});let xW=oM;Hc(xW.ID,xW,1);mr(rAn);mr(iAn);mr(oAn);Vm.appendMenuItem(Yo.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:V({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2});class aAn{constructor(e,n){this._selection=e,this._isMovingLeft=n}getEditOperations(e,n){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;const i=this._selection.startLineNumber,o=this._selection.startColumn,a=this._selection.endColumn;if(!(this._isMovingLeft&&o===1)&&!(!this._isMovingLeft&&a===e.getLineMaxColumn(i)))if(this._isMovingLeft){const u=new lt(i,o-1,i,o),h=e.getValueInRange(u);n.addEditOperation(u,null),n.addEditOperation(new lt(i,a,i,a),h)}else{const u=new lt(i,a,i,a+1),h=e.getValueInRange(u);n.addEditOperation(u,null),n.addEditOperation(new lt(i,o,i,o),h)}}computeCursorState(e,n){return this._isMovingLeft?new as(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new as(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}class J4t extends wo{constructor(e,n){super(n),this.left=e}run(e,n){if(!n.hasModel())return;const i=[],o=n.getSelections();for(const a of o)i.push(new aAn(a,this.left));n.pushUndoStop(),n.executeCommands(this.id,i),n.pushUndoStop()}}class lAn extends J4t{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:V("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:At.writable})}}class cAn extends J4t{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:V("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:At.writable})}}mr(lAn);mr(cAn);class uAn extends wo{constructor(){super({id:"editor.action.transposeLetters",label:V("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:At.writable,kbOpts:{kbExpr:At.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,n){if(!n.hasModel())return;const i=n.getModel(),o=[],a=n.getSelections();for(const u of a){if(!u.isEmpty())continue;const h=u.startLineNumber,g=u.startColumn,b=i.getLineMaxColumn(h);if(h===1&&(g===1||g===2&&b===2))continue;const x=g===b?u.getPosition():Ku.rightPosition(i,u.getPosition().lineNumber,u.getPosition().column),w=Ku.leftPosition(i,x),k=Ku.leftPosition(i,w),P=i.getValueInRange(lt.fromPositions(k,w)),A=i.getValueInRange(lt.fromPositions(w,x)),B=lt.fromPositions(k,x);o.push(new Jy(B,A+P))}o.length>0&&(n.pushUndoStop(),n.executeCommands(this.id,o),n.pushUndoStop())}}mr(uAn);const t2e=(function(){if(typeof crypto=="object"&&typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);let c;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?c=crypto.getRandomValues.bind(crypto):c=function(i){for(let o=0;o<i.length;o++)i[o]=Math.floor(Math.random()*256);return i};const e=new Uint8Array(16),n=[];for(let i=0;i<256;i++)n.push(i.toString(16).padStart(2,"0"));return function(){c(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128;let o=0,a="";return a+=n[e[o++]],a+=n[e[o++]],a+=n[e[o++]],a+=n[e[o++]],a+="-",a+=n[e[o++]],a+=n[e[o++]],a+="-",a+=n[e[o++]],a+=n[e[o++]],a+="-",a+=n[e[o++]],a+=n[e[o++]],a+="-",a+=n[e[o++]],a+=n[e[o++]],a+=n[e[o++]],a+=n[e[o++]],a+=n[e[o++]],a+=n[e[o++]],a}})();function DXe(c){return{asString:async()=>c,asFile:()=>{},value:typeof c=="string"?c:void 0}}function dAn(c,e,n){const i={id:t2e(),name:c,uri:e,data:n};return{asString:async()=>"",asFile:()=>i,value:void 0}}class X4t{constructor(){this._entries=new Map}get size(){let e=0;for(const n of this._entries)e++;return e}has(e){return this._entries.has(this.toKey(e))}matches(e){const n=[...this._entries.keys()];return Ic.some(this,([i,o])=>o.asFile())&&n.push("files"),Z4t(Qve(e),n)}get(e){return this._entries.get(this.toKey(e))?.[0]}append(e,n){const i=this._entries.get(e);i?i.push(n):this._entries.set(this.toKey(e),[n])}replace(e,n){this._entries.set(this.toKey(e),[n])}delete(e){this._entries.delete(this.toKey(e))}*[Symbol.iterator](){for(const[e,n]of this._entries)for(const i of n)yield[e,i]}toKey(e){return Qve(e)}}function Qve(c){return c.toLowerCase()}function Y4t(c,e){return Z4t(Qve(c),e.map(Qve))}function Z4t(c,e){if(c==="*/*")return e.length>0;if(e.includes(c))return!0;const n=c.match(/^([a-z]+)\/([a-z]+|\*)$/i);if(!n)return!1;const[i,o,a]=n;return a==="*"?e.some(u=>u.startsWith(o+"/")):!1}const n2e=Object.freeze({create:c=>$3(c.map(e=>e.toString())).join(`\r
|
|
661
|
+
hint: use the 'bracket' attribute if matching on equal brackets is required.`);if(typeof h.open=="string"&&typeof h.token=="string"&&typeof h.close=="string")a.push({token:h.token+n.tokenPostfix,open:z3(n,h.open),close:z3(n,h.close)});else throw jh(n,"every element in the 'brackets' array must be a '{open,close,token}' object or array")}return n.brackets=a,n.noThrow=!0,n}function iPn(c){SG.registerLanguage(c)}function rPn(){let c=[];return c=c.concat(SG.getLanguages()),c}function oPn(c){return Da.get(af).languageIdCodec.encodeLanguageId(c)}function sPn(c,e){return Da.withServices(()=>{const i=Da.get(af).onDidRequestRichLanguageFeatures(o=>{o===c&&(i.dispose(),e())});return i})}function aPn(c,e){return Da.withServices(()=>{const i=Da.get(af).onDidRequestBasicLanguageFeatures(o=>{o===c&&(i.dispose(),e())});return i})}function lPn(c,e){if(!Da.get(af).isRegisteredLanguageId(c))throw new Error(`Cannot set configuration for unknown language ${c}`);return Da.get(Af).register(c,e,100)}class cPn{constructor(e,n){this._languageId=e,this._actual=n}dispose(){}getInitialState(){return this._actual.getInitialState()}tokenize(e,n,i){if(typeof this._actual.tokenize=="function")return voe.adaptTokenize(this._languageId,this._actual,e,i);throw new Error("Not supported!")}tokenizeEncoded(e,n,i){const o=this._actual.tokenizeEncoded(e,i);return new Wxe(o.tokens,o.endState)}}class voe{constructor(e,n,i,o){this._languageId=e,this._actual=n,this._languageService=i,this._standaloneThemeService=o}dispose(){}getInitialState(){return this._actual.getInitialState()}static _toClassicTokens(e,n){const i=[];let o=0;for(let a=0,u=e.length;a<u;a++){const h=e[a];let g=h.startIndex;a===0?g=0:g<o&&(g=o),i[a]=new vre(g,h.scopes,n),o=g}return i}static adaptTokenize(e,n,i,o){const a=n.tokenize(i,o),u=voe._toClassicTokens(a.tokens,e);let h;return a.endState.equals(o)?h=o:h=a.endState,new GGe(u,h)}tokenize(e,n,i){return voe.adaptTokenize(this._languageId,this._actual,e,i)}_toBinaryTokens(e,n){const i=e.encodeLanguageId(this._languageId),o=this._standaloneThemeService.getColorTheme().tokenTheme,a=[];let u=0,h=0;for(let b=0,x=n.length;b<x;b++){const w=n[b],k=o.match(i,w.scopes)|1024;if(u>0&&a[u-1]===k)continue;let P=w.startIndex;b===0?P=0:P<h&&(P=h),a[u++]=P,a[u++]=k,h=P}const g=new Uint32Array(u);for(let b=0;b<u;b++)g[b]=a[b];return g}tokenizeEncoded(e,n,i){const o=this._actual.tokenize(e,i),a=this._toBinaryTokens(this._languageService.languageIdCodec,o.tokens);let u;return o.endState.equals(i)?u=i:u=o.endState,new Wxe(a,u)}}function uPn(c){return typeof c.getInitialState=="function"}function dPn(c){return"tokenizeEncoded"in c}function o4t(c){return c&&typeof c.then=="function"}function hPn(c){const e=Da.get(gw);if(c){const n=[null];for(let i=1,o=c.length;i<o;i++)n[i]=Bi.fromHex(c[i]);e.setColorMapOverride(n)}else e.setColorMapOverride(null)}function s4t(c,e){return dPn(e)?new cPn(c,e):new voe(c,e,Da.get(af),Da.get(gw))}function bXe(c,e){const n=new Hfn(async()=>{const i=await Promise.resolve(e.create());return i?uPn(i)?s4t(c,i):new loe(Da.get(af),Da.get(gw),c,r4t(c,i),Da.get(Kl)):null});return f_.registerFactory(c,n)}function fPn(c,e){if(!Da.get(af).isRegisteredLanguageId(c))throw new Error(`Cannot set tokens provider for unknown language ${c}`);return o4t(e)?bXe(c,{create:()=>e}):f_.register(c,s4t(c,e))}function _Pn(c,e){const n=i=>new loe(Da.get(af),Da.get(gw),c,r4t(c,i),Da.get(Kl));return o4t(e)?bXe(c,{create:()=>e}):f_.register(c,n(e))}function pPn(c,e){return Da.get(jo).referenceProvider.register(c,e)}function gPn(c,e){return Da.get(jo).renameProvider.register(c,e)}function mPn(c,e){return Da.get(jo).newSymbolNamesProvider.register(c,e)}function yPn(c,e){return Da.get(jo).signatureHelpProvider.register(c,e)}function bPn(c,e){return Da.get(jo).hoverProvider.register(c,{provideHover:async(i,o,a,u)=>{const h=i.getWordAtPosition(o);return Promise.resolve(e.provideHover(i,o,a,u)).then(g=>{if(g)return!g.range&&h&&(g.range=new lt(o.lineNumber,h.startColumn,o.lineNumber,h.endColumn)),g.range||(g.range=new lt(o.lineNumber,o.column,o.lineNumber,o.column)),g})}})}function vPn(c,e){return Da.get(jo).documentSymbolProvider.register(c,e)}function CPn(c,e){return Da.get(jo).documentHighlightProvider.register(c,e)}function SPn(c,e){return Da.get(jo).linkedEditingRangeProvider.register(c,e)}function xPn(c,e){return Da.get(jo).definitionProvider.register(c,e)}function wPn(c,e){return Da.get(jo).implementationProvider.register(c,e)}function kPn(c,e){return Da.get(jo).typeDefinitionProvider.register(c,e)}function TPn(c,e){return Da.get(jo).codeLensProvider.register(c,e)}function DPn(c,e,n){return Da.get(jo).codeActionProvider.register(c,{providedCodeActionKinds:n?.providedCodeActionKinds,documentation:n?.documentation,provideCodeActions:(o,a,u,h)=>{const b=Da.get(FP).read({resource:o.uri}).filter(x=>lt.areIntersectingOrTouching(x,a));return e.provideCodeActions(o,a,{markers:b,only:u.only,trigger:u.trigger},h)},resolveCodeAction:e.resolveCodeAction})}function NPn(c,e){return Da.get(jo).documentFormattingEditProvider.register(c,e)}function EPn(c,e){return Da.get(jo).documentRangeFormattingEditProvider.register(c,e)}function IPn(c,e){return Da.get(jo).onTypeFormattingEditProvider.register(c,e)}function LPn(c,e){return Da.get(jo).linkProvider.register(c,e)}function PPn(c,e){return Da.get(jo).completionProvider.register(c,e)}function APn(c,e){return Da.get(jo).colorProvider.register(c,e)}function FPn(c,e){return Da.get(jo).foldingRangeProvider.register(c,e)}function MPn(c,e){return Da.get(jo).declarationProvider.register(c,e)}function OPn(c,e){return Da.get(jo).selectionRangeProvider.register(c,e)}function RPn(c,e){return Da.get(jo).documentSemanticTokensProvider.register(c,e)}function BPn(c,e){return Da.get(jo).documentRangeSemanticTokensProvider.register(c,e)}function WPn(c,e){return Da.get(jo).inlineCompletionsProvider.register(c,e)}function VPn(c,e){return Da.get(jo).inlineEditProvider.register(c,e)}function jPn(c,e){return Da.get(jo).inlayHintsProvider.register(c,e)}function zPn(){return{register:iPn,getLanguages:rPn,onLanguage:sPn,onLanguageEncountered:aPn,getEncodedLanguageId:oPn,setLanguageConfiguration:lPn,setColorMap:hPn,registerTokensProviderFactory:bXe,setTokensProvider:fPn,setMonarchTokensProvider:_Pn,registerReferenceProvider:pPn,registerRenameProvider:gPn,registerNewSymbolNameProvider:mPn,registerCompletionItemProvider:PPn,registerSignatureHelpProvider:yPn,registerHoverProvider:bPn,registerDocumentSymbolProvider:vPn,registerDocumentHighlightProvider:CPn,registerLinkedEditingRangeProvider:SPn,registerDefinitionProvider:xPn,registerImplementationProvider:wPn,registerTypeDefinitionProvider:kPn,registerCodeLensProvider:TPn,registerCodeActionProvider:DPn,registerDocumentFormattingEditProvider:NPn,registerDocumentRangeFormattingEditProvider:EPn,registerOnTypeFormattingEditProvider:IPn,registerLinkProvider:LPn,registerColorProvider:APn,registerFoldingRangeProvider:FPn,registerDeclarationProvider:MPn,registerSelectionRangeProvider:OPn,registerDocumentSemanticTokensProvider:RPn,registerDocumentRangeSemanticTokensProvider:BPn,registerInlineCompletionsProvider:WPn,registerInlineEditProvider:VPn,registerInlayHintsProvider:jPn,DocumentHighlightKind:kVe,CompletionItemKind:bVe,CompletionItemTag:vVe,CompletionItemInsertTextRule:yVe,SymbolKind:nje,SymbolTag:ije,IndentAction:PVe,CompletionTriggerKind:CVe,SignatureHelpTriggerKind:tje,InlayHintKind:FVe,InlineCompletionTriggerKind:MVe,InlineEditTriggerKind:OVe,CodeActionTriggerType:mVe,NewSymbolNameTag:HVe,NewSymbolNameTriggerKind:UVe,PartialAcceptTriggerKind:GVe,HoverVerbosityAction:LVe,FoldingRangeKind:rO,SelectedSuggestionInfo:lNt}}const vXe=fc("IEditorCancelService"),a4t=new uo("cancellableOperation",!1,V("cancellableOperation","Whether the editor runs a cancellable operation, e.g. like 'Peek References'"));kc(vXe,class{constructor(){this._tokens=new WeakMap}add(c,e){let n=this._tokens.get(c);n||(n=c.invokeWithinContext(o=>{const a=a4t.bindTo(o.get(ca)),u=new zb;return{key:a,tokens:u}}),this._tokens.set(c,n));let i;return n.key.set(!0),i=n.tokens.push(e),()=>{i&&(i(),n.key.set(!n.tokens.isEmpty()),i=void 0)}}cancel(c){const e=this._tokens.get(c);if(!e)return;const n=e.tokens.pop();n&&(n.cancel(),e.key.set(!e.tokens.isEmpty()))}},1);class HPn extends Lf{constructor(e,n){super(n),this.editor=e,this._unregister=e.invokeWithinContext(i=>i.get(vXe).add(e,this))}dispose(){this._unregister(),super.dispose()}}to(new class extends Eg{constructor(){super({id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:a4t})}runEditorCommand(c,e){c.get(vXe).cancel(e)}});let l4t=class RUe{constructor(e,n){if(this.flags=n,(this.flags&1)!==0){const i=e.getModel();this.modelVersionId=i?lW("{0}#{1}",i.uri.toString(),i.getVersionId()):null}else this.modelVersionId=null;(this.flags&4)!==0?this.position=e.getPosition():this.position=null,(this.flags&2)!==0?this.selection=e.getSelection():this.selection=null,(this.flags&8)!==0?(this.scrollLeft=e.getScrollLeft(),this.scrollTop=e.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}_equals(e){if(!(e instanceof RUe))return!1;const n=e;return!(this.modelVersionId!==n.modelVersionId||this.scrollLeft!==n.scrollLeft||this.scrollTop!==n.scrollTop||!this.position&&n.position||this.position&&!n.position||this.position&&n.position&&!this.position.equals(n.position)||!this.selection&&n.selection||this.selection&&!n.selection||this.selection&&n.selection&&!this.selection.equalsRange(n.selection))}validate(e){return this._equals(new RUe(e,this.flags))}};class yO extends HPn{constructor(e,n,i,o){super(e,o),this._listener=new Ai,n&4&&this._listener.add(e.onDidChangeCursorPosition(a=>{(!i||!lt.containsPosition(i,a.position))&&this.cancel()})),n&2&&this._listener.add(e.onDidChangeCursorSelection(a=>{(!i||!lt.containsRange(i,a.selection))&&this.cancel()})),n&8&&this._listener.add(e.onDidScrollChange(a=>this.cancel())),n&1&&(this._listener.add(e.onDidChangeModel(a=>this.cancel())),this._listener.add(e.onDidChangeModelContent(a=>this.cancel())))}dispose(){this._listener.dispose(),super.dispose()}}class CXe extends Lf{constructor(e,n){super(n),this._listener=e.onDidChangeContent(()=>this.cancel())}dispose(){this._listener.dispose(),super.dispose()}}function TP(c){return c&&typeof c.getEditorType=="function"?c.getEditorType()===Sse.ICodeEditor:!1}function SXe(c){return c&&typeof c.getEditorType=="function"?c.getEditorType()===Sse.IDiffEditor:!1}function UPn(c){return!!c&&typeof c=="object"&&typeof c.onDidChangeActiveEditor=="function"}function c4t(c){return TP(c)?c:SXe(c)?c.getModifiedEditor():UPn(c)&&TP(c.activeCodeEditor)?c.activeCodeEditor:null}class HG{static _handleEolEdits(e,n){let i;const o=[];for(const a of n)typeof a.eol=="number"&&(i=a.eol),a.range&&typeof a.text=="string"&&o.push(a);return typeof i=="number"&&e.hasModel()&&e.getModel().pushEOL(i),o}static _isFullModelReplaceEdit(e,n){if(!e.hasModel())return!1;const i=e.getModel(),o=i.validateRange(n.range);return i.getFullModelRange().equalsRange(o)}static execute(e,n,i){i&&e.pushUndoStop();const o=AE.capture(e),a=HG._handleEolEdits(e,n);a.length===1&&HG._isFullModelReplaceEdit(e,a[0])?e.executeEdits("formatEditsCommand",a.map(u=>Ef.replace(lt.lift(u.range),u.text))):e.executeEdits("formatEditsCommand",a.map(u=>Ef.replaceMove(lt.lift(u.range),u.text))),i&&e.pushUndoStop(),o.restoreRelativeVerticalPositionOfCursor(e)}}class N2t{constructor(e){this.value=e,this._lower=e.toLowerCase()}static toKey(e){return typeof e=="string"?e.toLowerCase():e._lower}}class $Pn{constructor(e){if(this._set=new Set,e)for(const n of e)this.add(n)}add(e){this._set.add(N2t.toKey(e))}has(e){return this._set.has(N2t.toKey(e))}}function u4t(c,e,n){const i=[],o=new $Pn,a=c.ordered(n);for(const h of a)i.push(h),h.extensionId&&o.add(h.extensionId);const u=e.ordered(n);for(const h of u){if(h.extensionId){if(o.has(h.extensionId))continue;o.add(h.extensionId)}i.push({displayName:h.displayName,extensionId:h.extensionId,provideDocumentFormattingEdits(g,b,x){return h.provideDocumentRangeFormattingEdits(g,g.getFullModelRange(),b,x)}})}return i}const ure=class ure{static setFormatterSelector(e){return{dispose:ure._selectors.unshift(e)}}static async select(e,n,i,o){if(e.length===0)return;const a=Ic.first(ure._selectors);if(a)return await a(e,n,i,o)}};ure._selectors=new zb;let Coe=ure;async function d4t(c,e,n,i,o,a,u){const h=c.get(ks),{documentRangeFormattingEditProvider:g}=c.get(jo),b=TP(e)?e.getModel():e,x=g.ordered(b),w=await Coe.select(x,b,i,2);w&&(o.report(w),await h.invokeFunction(qPn,w,e,n,a,u))}async function qPn(c,e,n,i,o,a){const u=c.get(_C),h=c.get(e1),g=c.get(IO);let b,x;TP(n)?(b=n.getModel(),x=new yO(n,5,void 0,o)):(b=n,x=new CXe(n,o));const w=[];let k=0;for(const Q of OGe(i).sort(lt.compareRangesUsingStarts))k>0&<.areIntersectingOrTouching(w[k-1],Q)?w[k-1]=lt.fromPositions(w[k-1].getStartPosition(),Q.getEndPosition()):k=w.push(Q);const P=async Q=>{h.trace("[format][provideDocumentRangeFormattingEdits] (request)",e.extensionId?.value,Q);const ne=await e.provideDocumentRangeFormattingEdits(b,Q,b.getFormattingOptions(),x.token)||[];return h.trace("[format][provideDocumentRangeFormattingEdits] (response)",e.extensionId?.value,ne),ne},A=(Q,ne)=>{if(!Q.length||!ne.length)return!1;const ge=Q.reduce((ye,Me)=>lt.plusRange(ye,Me.range),Q[0].range);if(!ne.some(ye=>lt.intersectRanges(ge,ye.range)))return!1;for(const ye of Q)for(const Me of ne)if(lt.intersectRanges(ye.range,Me.range))return!0;return!1},B=[],X=[];try{if(typeof e.provideDocumentRangesFormattingEdits=="function"){h.trace("[format][provideDocumentRangeFormattingEdits] (request)",e.extensionId?.value,w);const Q=await e.provideDocumentRangesFormattingEdits(b,w,b.getFormattingOptions(),x.token)||[];h.trace("[format][provideDocumentRangeFormattingEdits] (response)",e.extensionId?.value,Q),X.push(Q)}else{for(const Q of w){if(x.token.isCancellationRequested)return!0;X.push(await P(Q))}for(let Q=0;Q<w.length;++Q)for(let ne=Q+1;ne<w.length;++ne){if(x.token.isCancellationRequested)return!0;if(A(X[Q],X[ne])){const ge=lt.plusRange(w[Q],w[ne]),ye=await P(ge);w.splice(ne,1),w.splice(Q,1),w.push(ge),X.splice(ne,1),X.splice(Q,1),X.push(ye),Q=0,ne=0}}}for(const Q of X){if(x.token.isCancellationRequested)return!0;const ne=await u.computeMoreMinimalEdits(b.uri,Q);ne&&B.push(...ne)}}finally{x.dispose()}if(B.length===0)return!1;if(TP(n))HG.execute(n,B,!0),n.revealPositionInCenterIfOutsideViewport(n.getPosition(),1);else{const[{range:Q}]=B,ne=new as(Q.startLineNumber,Q.startColumn,Q.endLineNumber,Q.endColumn);b.pushEditOperations([ne],B.map(ge=>({text:ge.text,range:lt.lift(ge.range),forceMoveMarkers:!0})),ge=>{for(const{range:ye}of ge)if(lt.areIntersectingOrTouching(ye,ne))return[new as(ye.startLineNumber,ye.startColumn,ye.endLineNumber,ye.endColumn)];return null})}return g.playSignal(Kx.format,{userGesture:a}),!0}async function GPn(c,e,n,i,o,a){const u=c.get(ks),h=c.get(jo),g=TP(e)?e.getModel():e,b=u4t(h.documentFormattingEditProvider,h.documentRangeFormattingEditProvider,g),x=await Coe.select(b,g,n,1);x&&(i.report(x),await u.invokeFunction(KPn,x,e,n,o,a))}async function KPn(c,e,n,i,o,a){const u=c.get(_C),h=c.get(IO);let g,b;TP(n)?(g=n.getModel(),b=new yO(n,5,void 0,o)):(g=n,b=new CXe(n,o));let x;try{const w=await e.provideDocumentFormattingEdits(g,g.getFormattingOptions(),b.token);if(x=await u.computeMoreMinimalEdits(g.uri,w),b.token.isCancellationRequested)return!0}finally{b.dispose()}if(!x||x.length===0)return!1;if(TP(n))HG.execute(n,x,i!==2),i!==2&&n.revealPositionInCenterIfOutsideViewport(n.getPosition(),1);else{const[{range:w}]=x,k=new as(w.startLineNumber,w.startColumn,w.endLineNumber,w.endColumn);g.pushEditOperations([k],x.map(P=>({text:P.text,range:lt.lift(P.range),forceMoveMarkers:!0})),P=>{for(const{range:A}of P)if(lt.areIntersectingOrTouching(A,k))return[new as(A.startLineNumber,A.startColumn,A.endLineNumber,A.endColumn)];return null})}return h.playSignal(Kx.format,{userGesture:a}),!0}async function JPn(c,e,n,i,o,a){const u=e.documentRangeFormattingEditProvider.ordered(n);for(const h of u){const g=await Promise.resolve(h.provideDocumentRangeFormattingEdits(n,i,o,a)).catch(O_);if(X0(g))return await c.computeMoreMinimalEdits(n.uri,g)}}async function XPn(c,e,n,i,o){const a=u4t(e.documentFormattingEditProvider,e.documentRangeFormattingEditProvider,n);for(const u of a){const h=await Promise.resolve(u.provideDocumentFormattingEdits(n,i,o)).catch(O_);if(X0(h))return await c.computeMoreMinimalEdits(n.uri,h)}}function h4t(c,e,n,i,o,a,u){const h=e.onTypeFormattingEditProvider.ordered(n);return h.length===0||h[0].autoFormatTriggerCharacters.indexOf(o)<0?Promise.resolve(void 0):Promise.resolve(h[0].provideOnTypeFormattingEdits(n,i,o,a,u)).catch(O_).then(g=>c.computeMoreMinimalEdits(n.uri,g))}Lc.registerCommand("_executeFormatRangeProvider",async function(c,...e){const[n,i,o]=e;au($s.isUri(n)),au(lt.isIRange(i));const a=c.get(dC),u=c.get(_C),h=c.get(jo),g=await a.createModelReference(n);try{return JPn(u,h,g.object.textEditorModel,lt.lift(i),o,Il.None)}finally{g.dispose()}});Lc.registerCommand("_executeFormatDocumentProvider",async function(c,...e){const[n,i]=e;au($s.isUri(n));const o=c.get(dC),a=c.get(_C),u=c.get(jo),h=await o.createModelReference(n);try{return XPn(a,u,h.object.textEditorModel,i,Il.None)}finally{h.dispose()}});Lc.registerCommand("_executeFormatOnTypeProvider",async function(c,...e){const[n,i,o,a]=e;au($s.isUri(n)),au(Nn.isIPosition(i)),au(typeof o=="string");const u=c.get(dC),h=c.get(_C),g=c.get(jo),b=await u.createModelReference(n);try{return h4t(h,g,b.object.textEditorModel,Nn.lift(i),o,a,Il.None)}finally{b.dispose()}});ME.wrappingIndent.defaultValue=0;ME.glyphMargin.defaultValue=!1;ME.autoIndent.defaultValue=3;ME.overviewRulerLanes.defaultValue=2;Coe.setFormatterSelector((c,e,n)=>Promise.resolve(c[0]));const iv=cNt();iv.editor=YLn();iv.languages=zPn();const f4t=iv.CancellationTokenSource,_4t=iv.Emitter,p4t=iv.KeyCode,g4t=iv.KeyMod,m4t=iv.Position,y4t=iv.Range,b4t=iv.Selection,v4t=iv.SelectionDirection,C4t=iv.MarkerSeverity,S4t=iv.MarkerTag,x4t=iv.Uri,w4t=iv.Token,k4t=iv.editor,T4t=iv.languages,YPn=globalThis.MonacoEnvironment;(YPn?.globalAPI||typeof define=="function"&&define.amd)&&(globalThis.monaco=iv);typeof globalThis.require<"u"&&typeof globalThis.require.config=="function"&&globalThis.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-languageserver-textdocument","vscode-languageserver-textdocument/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index","vs/basic-languages/typescript/typescript"]});const Tse=Object.freeze(Object.defineProperty({__proto__:null,CancellationTokenSource:f4t,Emitter:_4t,KeyCode:p4t,KeyMod:g4t,MarkerSeverity:C4t,MarkerTag:S4t,Position:m4t,Range:y4t,Selection:b4t,SelectionDirection:v4t,Token:w4t,Uri:x4t,editor:k4t,languages:T4t},Symbol.toStringTag,{value:"Module"}));var ZPn=Object.defineProperty,QPn=Object.getOwnPropertyDescriptor,e4n=Object.getOwnPropertyNames,t4n=Object.prototype.hasOwnProperty,n4n=(c,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of e4n(e))!t4n.call(c,o)&&o!==n&&ZPn(c,o,{get:()=>e[o],enumerable:!(i=QPn(e,o))||i.enumerable});return c},i4n=(c,e,n)=>(n4n(c,e,"default"),n),Zne={};i4n(Zne,Tse);var D4t={},qBe={},r4n=class N4t{static getOrCreate(e){return qBe[e]||(qBe[e]=new N4t(e)),qBe[e]}constructor(e){this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((n,i)=>{this._lazyLoadPromiseResolve=n,this._lazyLoadPromiseReject=i})}load(){return this._loadingTriggered||(this._loadingTriggered=!0,D4t[this._languageId].loader().then(e=>this._lazyLoadPromiseResolve(e),e=>this._lazyLoadPromiseReject(e))),this._lazyLoadPromise}};function Js(c){const e=c.id;D4t[e]=c,Zne.languages.register(c);const n=r4n.getOrCreate(e);Zne.languages.registerTokensProviderFactory(e,{create:async()=>(await n.load()).language}),Zne.languages.onLanguageEncountered(e,async()=>{const i=await n.load();Zne.languages.setLanguageConfiguration(e,i.conf)})}Js({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>Ls(()=>import("./abap-CRCWOmpq.js"),[],import.meta.url)});Js({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>Ls(()=>import("./apex-DnsZk_dE.js"),[],import.meta.url)});Js({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>Ls(()=>import("./azcli-1IWB1ccx.js"),[],import.meta.url)});Js({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>Ls(()=>import("./bat-DPkNLes8.js"),[],import.meta.url)});Js({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>Ls(()=>import("./bicep-Corcdgou.js"),[],import.meta.url)});Js({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>Ls(()=>import("./cameligo-CGrWLZr3.js"),[],import.meta.url)});Js({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>Ls(()=>import("./clojure-D9WOWImG.js"),[],import.meta.url)});Js({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>Ls(()=>import("./coffee-B7EJu28W.js"),[],import.meta.url)});Js({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>Ls(()=>import("./cpp-SEyurbux.js"),[],import.meta.url)});Js({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>Ls(()=>import("./cpp-SEyurbux.js"),[],import.meta.url)});Js({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>Ls(()=>import("./csharp-BoL64M5l.js"),[],import.meta.url)});Js({id:"csp",extensions:[".csp"],aliases:["CSP","csp"],loader:()=>Ls(()=>import("./csp-C46ZqvIl.js"),[],import.meta.url)});Js({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>Ls(()=>import("./css-DQU6DXDx.js"),[],import.meta.url)});Js({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>Ls(()=>import("./cypher-D84EuPTj.js"),[],import.meta.url)});Js({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>Ls(()=>import("./dart-D8lhlL1r.js"),[],import.meta.url)});Js({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>Ls(()=>import("./dockerfile-DLk6rpji.js"),[],import.meta.url)});Js({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>Ls(()=>import("./ecl-BO6FnfXk.js"),[],import.meta.url)});Js({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>Ls(()=>import("./elixir-BRjLKONM.js"),[],import.meta.url)});Js({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>Ls(()=>import("./flow9-Cac8vKd7.js"),[],import.meta.url)});Js({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>Ls(()=>import("./fsharp-fd1GTHhf.js"),[],import.meta.url)});Js({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>Ls(()=>import("./freemarker2-B8I4rQxP.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url).then(c=>c.TagAutoInterpolationDollar)});Js({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>Ls(()=>import("./freemarker2-B8I4rQxP.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url).then(c=>c.TagAngleInterpolationDollar)});Js({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>Ls(()=>import("./freemarker2-B8I4rQxP.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url).then(c=>c.TagBracketInterpolationDollar)});Js({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>Ls(()=>import("./freemarker2-B8I4rQxP.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url).then(c=>c.TagAngleInterpolationBracket)});Js({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>Ls(()=>import("./freemarker2-B8I4rQxP.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url).then(c=>c.TagBracketInterpolationBracket)});Js({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>Ls(()=>import("./freemarker2-B8I4rQxP.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url).then(c=>c.TagAutoInterpolationDollar)});Js({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>Ls(()=>import("./freemarker2-B8I4rQxP.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url).then(c=>c.TagAutoInterpolationBracket)});Js({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>Ls(()=>import("./go-O9LJTZXk.js"),[],import.meta.url)});Js({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>Ls(()=>import("./graphql-LQdxqEYJ.js"),[],import.meta.url)});Js({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>Ls(()=>import("./handlebars-CjzQJFRL.js"),__vite__mapDeps([5,1,2,3,4]),import.meta.url)});Js({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>Ls(()=>import("./hcl-DxDQ3s82.js"),[],import.meta.url)});Js({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>Ls(()=>import("./html-BOkwt1iO.js"),__vite__mapDeps([6,1,2,3,4]),import.meta.url)});Js({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>Ls(()=>import("./ini-BvajGCUy.js"),[],import.meta.url)});Js({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>Ls(()=>import("./java-SYsfObOQ.js"),[],import.meta.url)});Js({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>Ls(()=>import("./javascript-LzMyb5dQ.js"),__vite__mapDeps([7,8,1,2,3,4]),import.meta.url)});Js({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>Ls(()=>import("./julia-DQXNmw_w.js"),[],import.meta.url)});Js({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>Ls(()=>import("./kotlin-qQ0MG-9I.js"),[],import.meta.url)});Js({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>Ls(()=>import("./less-GGFNNJHn.js"),[],import.meta.url)});Js({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>Ls(()=>import("./lexon-Canl7DCW.js"),[],import.meta.url)});Js({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>Ls(()=>import("./lua-D28Ae8-K.js"),[],import.meta.url)});Js({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>Ls(()=>import("./liquid-k_-oubBy.js"),__vite__mapDeps([9,1,2,3,4]),import.meta.url)});Js({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>Ls(()=>import("./m3-DPitgjJI.js"),[],import.meta.url)});Js({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>Ls(()=>import("./markdown-B811l8j2.js"),[],import.meta.url)});Js({id:"mdx",extensions:[".mdx"],aliases:["MDX","mdx"],loader:()=>Ls(()=>import("./mdx-DI2xBsuP.js"),__vite__mapDeps([10,1,2,3,4]),import.meta.url)});Js({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>Ls(()=>import("./mips-CdjsipkG.js"),[],import.meta.url)});Js({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>Ls(()=>import("./msdax-CYqgjx_P.js"),[],import.meta.url)});Js({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>Ls(()=>import("./mysql-BHd6q0vd.js"),[],import.meta.url)});Js({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>Ls(()=>import("./objective-c-B1aVtJYH.js"),[],import.meta.url)});Js({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>Ls(()=>import("./pascal-BhNW15KB.js"),[],import.meta.url)});Js({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>Ls(()=>import("./pascaligo-5jv8CcQD.js"),[],import.meta.url)});Js({id:"perl",extensions:[".pl",".pm"],aliases:["Perl","pl"],loader:()=>Ls(()=>import("./perl-DlYyT36c.js"),[],import.meta.url)});Js({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>Ls(()=>import("./pgsql-Dy0bjov7.js"),[],import.meta.url)});Js({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>Ls(()=>import("./php-120yhfDK.js"),[],import.meta.url)});Js({id:"pla",extensions:[".pla"],loader:()=>Ls(()=>import("./pla-CjnFlu4u.js"),[],import.meta.url)});Js({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>Ls(()=>import("./postiats-CQpG440k.js"),[],import.meta.url)});Js({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>Ls(()=>import("./powerquery-DdJtto1Z.js"),[],import.meta.url)});Js({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>Ls(()=>import("./powershell-Bu_VLpJB.js"),[],import.meta.url)});Js({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>Ls(()=>import("./protobuf-IBS6jZEB.js"),[],import.meta.url)});Js({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>Ls(()=>import("./pug-kFxLfcjb.js"),[],import.meta.url)});Js({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>Ls(()=>import("./python-kBIRe_rR.js"),__vite__mapDeps([11,1,2,3,4]),import.meta.url)});Js({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>Ls(()=>import("./qsharp-q7JyzKFN.js"),[],import.meta.url)});Js({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>Ls(()=>import("./r-BIFz-_sK.js"),[],import.meta.url)});Js({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>Ls(()=>import("./razor-C0Ffzfe0.js"),__vite__mapDeps([12,1,2,3,4]),import.meta.url)});Js({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>Ls(()=>import("./redis-CHOsPHWR.js"),[],import.meta.url)});Js({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>Ls(()=>import("./redshift-CBifECDb.js"),[],import.meta.url)});Js({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>Ls(()=>import("./restructuredtext-CghPJEOS.js"),[],import.meta.url)});Js({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>Ls(()=>import("./ruby-CYWGW-b1.js"),[],import.meta.url)});Js({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>Ls(()=>import("./rust-DMDD0SHb.js"),[],import.meta.url)});Js({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>Ls(()=>import("./sb-BYAiYHFx.js"),[],import.meta.url)});Js({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>Ls(()=>import("./scala-Bqvq8jcR.js"),[],import.meta.url)});Js({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>Ls(()=>import("./scheme-Dhb-2j9p.js"),[],import.meta.url)});Js({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>Ls(()=>import("./scss-CTwUZ5N7.js"),[],import.meta.url)});Js({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>Ls(()=>import("./shell-CsDZo4DB.js"),[],import.meta.url)});Js({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>Ls(()=>import("./solidity-CME5AdoB.js"),[],import.meta.url)});Js({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>Ls(()=>import("./sophia-RYC1BQQz.js"),[],import.meta.url)});Js({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>Ls(()=>import("./sparql-KEyrF7De.js"),[],import.meta.url)});Js({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>Ls(()=>import("./sql-BdTr02Mf.js"),[],import.meta.url)});Js({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib",".TcPOU",".TcDUT",".TcGVL",".TcIO"],aliases:["StructuredText","scl","stl"],loader:()=>Ls(()=>import("./st-C7iG7M4S.js"),[],import.meta.url)});Js({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>Ls(()=>import("./swift-D7IUmUK8.js"),[],import.meta.url)});Js({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>Ls(()=>import("./systemverilog-DgMryOEJ.js"),[],import.meta.url)});Js({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>Ls(()=>import("./systemverilog-DgMryOEJ.js"),[],import.meta.url)});Js({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>Ls(()=>import("./tcl-PloMZuKG.js"),[],import.meta.url)});Js({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>Ls(()=>import("./twig-BfRIq3la.js"),[],import.meta.url)});Js({id:"typescript",extensions:[".ts",".tsx",".cts",".mts"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>Ls(()=>import("./typescript-BaV3OJdF.js"),__vite__mapDeps([8,1,2,3,4]),import.meta.url)});Js({id:"typespec",extensions:[".tsp"],aliases:["TypeSpec"],loader:()=>Ls(()=>import("./typespec-CzxlYoT_.js"),[],import.meta.url)});Js({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>Ls(()=>import("./vb-BwAE3J76.js"),[],import.meta.url)});Js({id:"wgsl",extensions:[".wgsl"],aliases:["WebGPU Shading Language","WGSL","wgsl"],loader:()=>Ls(()=>import("./wgsl-B_1kOXbF.js"),[],import.meta.url)});Js({id:"xml",extensions:[".xml",".xsd",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xslt",".xsl"],firstLine:"(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",aliases:["XML","xml"],mimetypes:["text/xml","application/xml","application/xaml+xml","application/xml-dtd"],loader:()=>Ls(()=>import("./xml-CnPYa8pZ.js"),__vite__mapDeps([13,1,2,3,4]),import.meta.url)});Js({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>Ls(()=>import("./yaml-SEYcSwCv.js"),__vite__mapDeps([14,1,2,3,4]),import.meta.url)});var o4n=Object.defineProperty,s4n=Object.getOwnPropertyDescriptor,a4n=Object.getOwnPropertyNames,l4n=Object.prototype.hasOwnProperty,c4n=(c,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of a4n(e))!l4n.call(c,o)&&o!==n&&o4n(c,o,{get:()=>e[o],enumerable:!(i=s4n(e,o))||i.enumerable});return c},u4n=(c,e,n)=>(c4n(c,e,"default"),n),DK={};u4n(DK,Tse);var xXe=class{constructor(e,n,i){this._onDidChange=new DK.Emitter,this._languageId=e,this.setOptions(n),this.setModeConfiguration(i)}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(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},wXe={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}},kXe={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},E4t=new xXe("css",wXe,kXe),I4t=new xXe("scss",wXe,kXe),L4t=new xXe("less",wXe,kXe);DK.languages.css={cssDefaults:E4t,lessDefaults:L4t,scssDefaults:I4t};function TXe(){return Ls(()=>import("./cssMode-Ba12SoF2.js"),__vite__mapDeps([15,1,2,3,4]),import.meta.url)}DK.languages.onLanguage("less",()=>{TXe().then(c=>c.setupMode(L4t))});DK.languages.onLanguage("scss",()=>{TXe().then(c=>c.setupMode(I4t))});DK.languages.onLanguage("css",()=>{TXe().then(c=>c.setupMode(E4t))});var d4n=Object.defineProperty,h4n=Object.getOwnPropertyDescriptor,f4n=Object.getOwnPropertyNames,_4n=Object.prototype.hasOwnProperty,p4n=(c,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of f4n(e))!_4n.call(c,o)&&o!==n&&d4n(c,o,{get:()=>e[o],enumerable:!(i=h4n(e,o))||i.enumerable});return c},g4n=(c,e,n)=>(p4n(c,e,"default"),n),Jwe={};g4n(Jwe,Tse);var m4n=class{constructor(e,n,i){this._onDidChange=new Jwe.Emitter,this._languageId=e,this.setOptions(n),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},y4n={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"},Xwe={format:y4n,suggest:{},data:{useDefaultDataProvider:!0}};function Ywe(c){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:c===Wie,documentFormattingEdits:c===Wie,documentRangeFormattingEdits:c===Wie}}var Wie="html",E2t="handlebars",I2t="razor",P4t=Zwe(Wie,Xwe,Ywe(Wie)),b4n=P4t.defaults,A4t=Zwe(E2t,Xwe,Ywe(E2t)),v4n=A4t.defaults,F4t=Zwe(I2t,Xwe,Ywe(I2t)),C4n=F4t.defaults;Jwe.languages.html={htmlDefaults:b4n,razorDefaults:C4n,handlebarDefaults:v4n,htmlLanguageService:P4t,handlebarLanguageService:A4t,razorLanguageService:F4t,registerHTMLLanguageService:Zwe};function S4n(){return Ls(()=>import("./htmlMode-C-YleCKL.js"),__vite__mapDeps([16,1,2,3,4]),import.meta.url)}function Zwe(c,e=Xwe,n=Ywe(c)){const i=new m4n(c,e,n);let o;const a=Jwe.languages.onLanguage(c,async()=>{o=(await S4n()).setupMode(i)});return{defaults:i,dispose(){a.dispose(),o?.dispose(),o=void 0}}}var x4n=Object.defineProperty,w4n=Object.getOwnPropertyDescriptor,k4n=Object.getOwnPropertyNames,T4n=Object.prototype.hasOwnProperty,D4n=(c,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of k4n(e))!T4n.call(c,o)&&o!==n&&x4n(c,o,{get:()=>e[o],enumerable:!(i=w4n(e,o))||i.enumerable});return c},N4n=(c,e,n)=>(D4n(c,e,"default"),n),Dse={};N4n(Dse,Tse);var E4n=class{constructor(e,n,i){this._onDidChange=new Dse.Emitter,this._languageId=e,this.setDiagnosticsOptions(n),this.setModeConfiguration(i)}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)}},I4n={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},L4n={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},M4t=new E4n("json",I4n,L4n),P4n=()=>O4t().then(c=>c.getWorker());Dse.languages.json={jsonDefaults:M4t,getWorker:P4n};function O4t(){return Ls(()=>import("./jsonMode-BClfgv_N.js"),__vite__mapDeps([17,1,2,3,4]),import.meta.url)}Dse.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});Dse.languages.onLanguage("json",()=>{O4t().then(c=>c.setupMode(M4t))});var A4n=Object.defineProperty,F4n=Object.getOwnPropertyDescriptor,M4n=Object.getOwnPropertyNames,O4n=Object.prototype.hasOwnProperty,R4n=(c,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of M4n(e))!O4n.call(c,o)&&o!==n&&A4n(c,o,{get:()=>e[o],enumerable:!(i=F4n(e,o))||i.enumerable});return c},B4n=(c,e,n)=>(R4n(c,e,"default"),n),W4n="5.4.5",UG={};B4n(UG,Tse);var R4t=(c=>(c[c.None=0]="None",c[c.CommonJS=1]="CommonJS",c[c.AMD=2]="AMD",c[c.UMD=3]="UMD",c[c.System=4]="System",c[c.ES2015=5]="ES2015",c[c.ESNext=99]="ESNext",c))(R4t||{}),B4t=(c=>(c[c.None=0]="None",c[c.Preserve=1]="Preserve",c[c.React=2]="React",c[c.ReactNative=3]="ReactNative",c[c.ReactJSX=4]="ReactJSX",c[c.ReactJSXDev=5]="ReactJSXDev",c))(B4t||{}),W4t=(c=>(c[c.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",c[c.LineFeed=1]="LineFeed",c))(W4t||{}),V4t=(c=>(c[c.ES3=0]="ES3",c[c.ES5=1]="ES5",c[c.ES2015=2]="ES2015",c[c.ES2016=3]="ES2016",c[c.ES2017=4]="ES2017",c[c.ES2018=5]="ES2018",c[c.ES2019=6]="ES2019",c[c.ES2020=7]="ES2020",c[c.ESNext=99]="ESNext",c[c.JSON=100]="JSON",c[c.Latest=99]="Latest",c))(V4t||{}),j4t=(c=>(c[c.Classic=1]="Classic",c[c.NodeJs=2]="NodeJs",c))(j4t||{}),z4t=class{constructor(c,e,n,i,o){this._onDidChange=new UG.Emitter,this._onDidExtraLibsChange=new UG.Emitter,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(c),this.setDiagnosticsOptions(e),this.setWorkerOptions(n),this.setInlayHintsOptions(i),this.setModeConfiguration(o),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(c,e){let n;if(typeof e>"u"?n=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:n=e,this._extraLibs[n]&&this._extraLibs[n].content===c)return{dispose:()=>{}};let i=1;return this._removedExtraLibs[n]&&(i=this._removedExtraLibs[n]+1),this._extraLibs[n]&&(i=this._extraLibs[n].version+1),this._extraLibs[n]={content:c,version:i},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let o=this._extraLibs[n];o&&o.version===i&&(delete this._extraLibs[n],this._removedExtraLibs[n]=i,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(c){for(const e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),c&&c.length>0)for(const e of c){const n=e.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=e.content;let o=1;this._removedExtraLibs[n]&&(o=this._removedExtraLibs[n]+1),this._extraLibs[n]={content:i,version:o}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(c){this._compilerOptions=c||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(c){this._diagnosticsOptions=c||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(c){this._workerOptions=c||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(c){this._inlayHintsOptions=c||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(c){}setEagerModelSync(c){this._eagerModelSync=c}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(c){this._modeConfiguration=c||Object.create(null),this._onDidChange.fire(void 0)}},V4n=W4n,H4t={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,diagnostics:!0,documentRangeFormattingEdits:!0,signatureHelp:!0,onTypeFormattingEdits:!0,codeActions:!0,inlayHints:!0},U4t=new z4t({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},H4t),$4t=new z4t({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},H4t),j4n=()=>Qwe().then(c=>c.getTypeScriptWorker()),z4n=()=>Qwe().then(c=>c.getJavaScriptWorker());UG.languages.typescript={ModuleKind:R4t,JsxEmit:B4t,NewLineKind:W4t,ScriptTarget:V4t,ModuleResolutionKind:j4t,typescriptVersion:V4n,typescriptDefaults:U4t,javascriptDefaults:$4t,getTypeScriptWorker:j4n,getJavaScriptWorker:z4n};function Qwe(){return Ls(()=>import("./tsMode-B_kU86kq.js"),__vite__mapDeps([18,1,2,3,4]),import.meta.url)}UG.languages.onLanguage("typescript",()=>Qwe().then(c=>c.setupTypeScript(U4t)));UG.languages.onLanguage("javascript",()=>Qwe().then(c=>c.setupJavaScript($4t)));class H4n extends tv{constructor(){super({id:"diffEditor.toggleCollapseUnchangedRegions",title:Ta("toggleCollapseUnchangedRegions","Toggle Collapse Unchanged Regions"),icon:wr.map,toggled:Oi.has("config.diffEditor.hideUnchangedRegions.enabled"),precondition:Oi.has("isInDiffEditor"),menu:{when:Oi.has("isInDiffEditor"),id:Yo.EditorTitle,order:22,group:"navigation"}})}run(e,...n){const i=e.get(Kl),o=!i.getValue("diffEditor.hideUnchangedRegions.enabled");i.updateValue("diffEditor.hideUnchangedRegions.enabled",o)}}class q4t extends tv{constructor(){super({id:"diffEditor.toggleShowMovedCodeBlocks",title:Ta("toggleShowMovedCodeBlocks","Toggle Show Moved Code Blocks"),precondition:Oi.has("isInDiffEditor")})}run(e,...n){const i=e.get(Kl),o=!i.getValue("diffEditor.experimental.showMoves");i.updateValue("diffEditor.experimental.showMoves",o)}}class G4t extends tv{constructor(){super({id:"diffEditor.toggleUseInlineViewWhenSpaceIsLimited",title:Ta("toggleUseInlineViewWhenSpaceIsLimited","Toggle Use Inline View When Space Is Limited"),precondition:Oi.has("isInDiffEditor")})}run(e,...n){const i=e.get(Kl),o=!i.getValue("diffEditor.useInlineViewWhenSpaceIsLimited");i.updateValue("diffEditor.useInlineViewWhenSpaceIsLimited",o)}}const Nse=Ta("diffEditor","Diff Editor");class U4n extends OE{constructor(){super({id:"diffEditor.switchSide",title:Ta("switchSide","Switch Side"),icon:wr.arrowSwap,precondition:Oi.has("isInDiffEditor"),f1:!0,category:Nse})}runEditorCommand(e,n,i){const o=NK(e);if(o instanceof Q3){if(i&&i.dryRun)return{destinationSelection:o.mapToOtherSide().destinationSelection};o.switchSide()}}}class $4n extends OE{constructor(){super({id:"diffEditor.exitCompareMove",title:Ta("exitCompareMove","Exit Compare Move"),icon:wr.close,precondition:At.comparingMovedCode,f1:!1,category:Nse,keybinding:{weight:1e4,primary:9}})}runEditorCommand(e,n,...i){const o=NK(e);o instanceof Q3&&o.exitCompareMove()}}class q4n extends OE{constructor(){super({id:"diffEditor.collapseAllUnchangedRegions",title:Ta("collapseAllUnchangedRegions","Collapse All Unchanged Regions"),icon:wr.fold,precondition:Oi.has("isInDiffEditor"),f1:!0,category:Nse})}runEditorCommand(e,n,...i){const o=NK(e);o instanceof Q3&&o.collapseAllUnchangedRegions()}}class G4n extends OE{constructor(){super({id:"diffEditor.showAllUnchangedRegions",title:Ta("showAllUnchangedRegions","Show All Unchanged Regions"),icon:wr.unfold,precondition:Oi.has("isInDiffEditor"),f1:!0,category:Nse})}runEditorCommand(e,n,...i){const o=NK(e);o instanceof Q3&&o.showAllUnchangedRegions()}}class BUe extends tv{constructor(){super({id:"diffEditor.revert",title:Ta("revert","Revert"),f1:!1,category:Nse})}run(e,n){const i=K4n(e,n.originalUri,n.modifiedUri);i instanceof Q3&&i.revertRangeMappings(n.mapping.innerChanges??[])}}const K4t=Ta("accessibleDiffViewer","Accessible Diff Viewer"),GSe=class GSe extends tv{constructor(){super({id:GSe.id,title:Ta("editor.action.accessibleDiffViewer.next","Go to Next Difference"),category:K4t,precondition:Oi.has("isInDiffEditor"),keybinding:{primary:65,weight:100},f1:!0})}run(e){NK(e)?.accessibleDiffViewerNext()}};GSe.id="editor.action.accessibleDiffViewer.next";let Soe=GSe;const KSe=class KSe extends tv{constructor(){super({id:KSe.id,title:Ta("editor.action.accessibleDiffViewer.prev","Go to Previous Difference"),category:K4t,precondition:Oi.has("isInDiffEditor"),keybinding:{primary:1089,weight:100},f1:!0})}run(e){NK(e)?.accessibleDiffViewerPrev()}};KSe.id="editor.action.accessibleDiffViewer.prev";let Zve=KSe;function K4n(c,e,n){return c.get(lu).listDiffEditors().find(a=>{const u=a.getModifiedEditor(),h=a.getOriginalEditor();return u&&u.getModel()?.uri.toString()===n.toString()&&h&&h.getModel()?.uri.toString()===e.toString()})||null}function NK(c){const n=c.get(lu).listDiffEditors(),i=Yy();if(i)for(const o of n){const a=o.getContainerDomNode();if(J4n(a,i))return o}return null}function J4n(c,e){let n=e;for(;n;){if(n===c)return!0;n=n.parentElement}return!1}nh(H4n);nh(q4t);nh(G4t);Vm.appendMenuItem(Yo.EditorTitle,{command:{id:new G4t().desc.id,title:V("useInlineViewWhenSpaceIsLimited","Use Inline View When Space Is Limited"),toggled:Oi.has("config.diffEditor.useInlineViewWhenSpaceIsLimited"),precondition:Oi.has("isInDiffEditor")},order:11,group:"1_diff",when:Oi.and(At.diffEditorRenderSideBySideInlineBreakpointReached,Oi.has("isInDiffEditor"))});Vm.appendMenuItem(Yo.EditorTitle,{command:{id:new q4t().desc.id,title:V("showMoves","Show Moved Code Blocks"),icon:wr.move,toggled:uK.create("config.diffEditor.experimental.showMoves",!0),precondition:Oi.has("isInDiffEditor")},order:10,group:"1_diff",when:Oi.has("isInDiffEditor")});nh(BUe);for(const c of[{icon:wr.arrowRight,key:At.diffEditorInlineMode.toNegated()},{icon:wr.discard,key:At.diffEditorInlineMode}])Vm.appendMenuItem(Yo.DiffEditorHunkToolbar,{command:{id:new BUe().desc.id,title:V("revertHunk","Revert Block"),icon:c.icon},when:Oi.and(At.diffEditorModifiedWritable,c.key),order:5,group:"primary"}),Vm.appendMenuItem(Yo.DiffEditorSelectionToolbar,{command:{id:new BUe().desc.id,title:V("revertSelection","Revert Selection"),icon:c.icon},when:Oi.and(At.diffEditorModifiedWritable,c.key),order:5,group:"primary"});nh(U4n);nh($4n);nh(q4n);nh(G4n);Vm.appendMenuItem(Yo.EditorTitle,{command:{id:Soe.id,title:V("Open Accessible Diff Viewer","Open Accessible Diff Viewer"),precondition:Oi.has("isInDiffEditor")},order:10,group:"2_diff",when:Oi.and(At.accessibleDiffViewerVisible.negate(),Oi.has("isInDiffEditor"))});Lc.registerCommandAlias("editor.action.diffReview.next",Soe.id);nh(Soe);Lc.registerCommandAlias("editor.action.diffReview.prev",Zve.id);nh(Zve);var X4n=function(c,e,n,i){var o=arguments.length,a=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(c,e,n,i);else for(var h=c.length-1;h>=0;h--)(u=c[h])&&(a=(o<3?u(a):o>3?u(e,n,a):u(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},Y4n=function(c,e){return function(n,i){e(n,i,c)}},WUe;const e2e=new uo("selectionAnchorSet",!1);var vB;let bO=(vB=class{static get(e){return e.getContribution(WUe.ID)}constructor(e,n){this.editor=e,this.selectionAnchorSetContextKey=e2e.bindTo(n),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations(n=>{this.decorationId&&n.removeDecoration(this.decorationId),this.decorationId=n.addDecoration(as.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new R1().appendText(V("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),Qb(V("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const n=this.editor.getPosition();this.editor.setSelection(as.fromPositions(e.getStartPosition(),n)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations(n=>{n.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}},WUe=vB,vB.ID="editor.contrib.selectionAnchorController",vB);bO=WUe=X4n([Y4n(1,ca)],bO);class Z4n extends wo{constructor(){super({id:"editor.action.setSelectionAnchor",label:V("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:At.editorTextFocus,primary:Hp(2089,2080),weight:100}})}async run(e,n){bO.get(n)?.setSelectionAnchor()}}class Q4n extends wo{constructor(){super({id:"editor.action.goToSelectionAnchor",label:V("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:e2e})}async run(e,n){bO.get(n)?.goToSelectionAnchor()}}class eAn extends wo{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:V("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:e2e,kbOpts:{kbExpr:At.editorTextFocus,primary:Hp(2089,2089),weight:100}})}async run(e,n){bO.get(n)?.selectFromAnchorToCursor()}}class tAn extends wo{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:V("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:e2e,kbOpts:{kbExpr:At.editorTextFocus,primary:9,weight:100}})}async run(e,n){bO.get(n)?.cancelSelectionAnchor()}}Hc(bO.ID,bO,4);mr(Z4n);mr(Q4n);mr(eAn);mr(tAn);const nAn=Rt("editorOverviewRuler.bracketMatchForeground","#A0A0A0",V("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class iAn extends wo{constructor(){super({id:"editor.action.jumpToBracket",label:V("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:At.editorTextFocus,primary:3165,weight:100}})}run(e,n){xW.get(n)?.jumpToBracket()}}class rAn extends wo{constructor(){super({id:"editor.action.selectToBracket",label:V("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,metadata:{description:Ta("smartSelect.selectToBracketDescription","Select the text inside and including the brackets or curly braces"),args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,n,i){let o=!0;i&&i.selectBrackets===!1&&(o=!1),xW.get(n)?.selectToBracket(o)}}class oAn extends wo{constructor(){super({id:"editor.action.removeBrackets",label:V("smartSelect.removeBrackets","Remove Brackets"),alias:"Remove Brackets",precondition:void 0,kbOpts:{kbExpr:At.editorTextFocus,primary:2561,weight:100}})}run(e,n){xW.get(n)?.removeBrackets(this.id)}}class sAn{constructor(e,n,i){this.position=e,this.brackets=n,this.options=i}}const oM=class oM extends Wn{static get(e){return e.getContribution(oM.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new bd(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(72),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(n=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(n=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(n=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(n=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(n=>{n.hasChanged(72)&&(this._matchBrackets=this._editor.getOption(72),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(e.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),n=this._editor.getSelections().map(i=>{const o=i.getStartPosition(),a=e.bracketPairs.matchBracket(o);let u=null;if(a)a[0].containsPosition(o)&&!a[1].containsPosition(o)?u=a[1].getStartPosition():a[1].containsPosition(o)&&(u=a[0].getStartPosition());else{const h=e.bracketPairs.findEnclosingBrackets(o);if(h)u=h[1].getStartPosition();else{const g=e.bracketPairs.findNextBracket(o);g&&g.range&&(u=g.range.getStartPosition())}}return u?new as(u.lineNumber,u.column,u.lineNumber,u.column):new as(o.lineNumber,o.column,o.lineNumber,o.column)});this._editor.setSelections(n),this._editor.revealRange(n[0])}selectToBracket(e){if(!this._editor.hasModel())return;const n=this._editor.getModel(),i=[];this._editor.getSelections().forEach(o=>{const a=o.getStartPosition();let u=n.bracketPairs.matchBracket(a);if(!u&&(u=n.bracketPairs.findEnclosingBrackets(a),!u)){const b=n.bracketPairs.findNextBracket(a);b&&b.range&&(u=n.bracketPairs.matchBracket(b.range.getStartPosition()))}let h=null,g=null;if(u){u.sort(lt.compareRangesUsingStarts);const[b,x]=u;if(h=e?b.getStartPosition():b.getEndPosition(),g=e?x.getEndPosition():x.getStartPosition(),x.containsPosition(a)){const w=h;h=g,g=w}}h&&g&&i.push(new as(h.lineNumber,h.column,g.lineNumber,g.column))}),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}removeBrackets(e){if(!this._editor.hasModel())return;const n=this._editor.getModel();this._editor.getSelections().forEach(i=>{const o=i.getPosition();let a=n.bracketPairs.matchBracket(o);a||(a=n.bracketPairs.findEnclosingBrackets(o)),a&&(this._editor.pushUndoStop(),this._editor.executeEdits(e,[{range:a[0],text:""},{range:a[1],text:""}]),this._editor.pushUndoStop())})}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();const e=[];let n=0;for(const i of this._lastBracketsData){const o=i.brackets;o&&(e[n++]={range:o[0],options:i.options},e[n++]={range:o[1],options:i.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}const e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}const n=this._editor.getModel(),i=n.getVersionId();let o=[];this._lastVersionId===i&&(o=this._lastBracketsData);const a=[];let u=0;for(let w=0,k=e.length;w<k;w++){const P=e[w];P.isEmpty()&&(a[u++]=P.getStartPosition())}a.length>1&&a.sort(Nn.compare);const h=[];let g=0,b=0;const x=o.length;for(let w=0,k=a.length;w<k;w++){const P=a[w];for(;b<x&&o[b].position.isBefore(P);)b++;if(b<x&&o[b].position.equals(P))h[g++]=o[b];else{let A=n.bracketPairs.matchBracket(P,20),B=oM._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;!A&&this._matchBrackets==="always"&&(A=n.bracketPairs.findEnclosingBrackets(P,20),B=oM._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),h[g++]=new sAn(P,A,B)}}this._lastBracketsData=h,this._lastVersionId=i}};oM.ID="editor.contrib.bracketMatchingController",oM._DECORATION_OPTIONS_WITH_OVERVIEW_RULER=ll.register({description:"bracket-match-overview",stickiness:1,className:"bracket-match",overviewRuler:{color:__(nAn),position:rw.Center}}),oM._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=ll.register({description:"bracket-match-no-overview",stickiness:1,className:"bracket-match"});let xW=oM;Hc(xW.ID,xW,1);mr(rAn);mr(iAn);mr(oAn);Vm.appendMenuItem(Yo.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:V({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2});class aAn{constructor(e,n){this._selection=e,this._isMovingLeft=n}getEditOperations(e,n){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;const i=this._selection.startLineNumber,o=this._selection.startColumn,a=this._selection.endColumn;if(!(this._isMovingLeft&&o===1)&&!(!this._isMovingLeft&&a===e.getLineMaxColumn(i)))if(this._isMovingLeft){const u=new lt(i,o-1,i,o),h=e.getValueInRange(u);n.addEditOperation(u,null),n.addEditOperation(new lt(i,a,i,a),h)}else{const u=new lt(i,a,i,a+1),h=e.getValueInRange(u);n.addEditOperation(u,null),n.addEditOperation(new lt(i,o,i,o),h)}}computeCursorState(e,n){return this._isMovingLeft?new as(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new as(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}class J4t extends wo{constructor(e,n){super(n),this.left=e}run(e,n){if(!n.hasModel())return;const i=[],o=n.getSelections();for(const a of o)i.push(new aAn(a,this.left));n.pushUndoStop(),n.executeCommands(this.id,i),n.pushUndoStop()}}class lAn extends J4t{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:V("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:At.writable})}}class cAn extends J4t{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:V("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:At.writable})}}mr(lAn);mr(cAn);class uAn extends wo{constructor(){super({id:"editor.action.transposeLetters",label:V("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:At.writable,kbOpts:{kbExpr:At.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,n){if(!n.hasModel())return;const i=n.getModel(),o=[],a=n.getSelections();for(const u of a){if(!u.isEmpty())continue;const h=u.startLineNumber,g=u.startColumn,b=i.getLineMaxColumn(h);if(h===1&&(g===1||g===2&&b===2))continue;const x=g===b?u.getPosition():Ku.rightPosition(i,u.getPosition().lineNumber,u.getPosition().column),w=Ku.leftPosition(i,x),k=Ku.leftPosition(i,w),P=i.getValueInRange(lt.fromPositions(k,w)),A=i.getValueInRange(lt.fromPositions(w,x)),B=lt.fromPositions(k,x);o.push(new Jy(B,A+P))}o.length>0&&(n.pushUndoStop(),n.executeCommands(this.id,o),n.pushUndoStop())}}mr(uAn);const t2e=(function(){if(typeof crypto=="object"&&typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);let c;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?c=crypto.getRandomValues.bind(crypto):c=function(i){for(let o=0;o<i.length;o++)i[o]=Math.floor(Math.random()*256);return i};const e=new Uint8Array(16),n=[];for(let i=0;i<256;i++)n.push(i.toString(16).padStart(2,"0"));return function(){c(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128;let o=0,a="";return a+=n[e[o++]],a+=n[e[o++]],a+=n[e[o++]],a+=n[e[o++]],a+="-",a+=n[e[o++]],a+=n[e[o++]],a+="-",a+=n[e[o++]],a+=n[e[o++]],a+="-",a+=n[e[o++]],a+=n[e[o++]],a+="-",a+=n[e[o++]],a+=n[e[o++]],a+=n[e[o++]],a+=n[e[o++]],a+=n[e[o++]],a+=n[e[o++]],a}})();function DXe(c){return{asString:async()=>c,asFile:()=>{},value:typeof c=="string"?c:void 0}}function dAn(c,e,n){const i={id:t2e(),name:c,uri:e,data:n};return{asString:async()=>"",asFile:()=>i,value:void 0}}class X4t{constructor(){this._entries=new Map}get size(){let e=0;for(const n of this._entries)e++;return e}has(e){return this._entries.has(this.toKey(e))}matches(e){const n=[...this._entries.keys()];return Ic.some(this,([i,o])=>o.asFile())&&n.push("files"),Z4t(Qve(e),n)}get(e){return this._entries.get(this.toKey(e))?.[0]}append(e,n){const i=this._entries.get(e);i?i.push(n):this._entries.set(this.toKey(e),[n])}replace(e,n){this._entries.set(this.toKey(e),[n])}delete(e){this._entries.delete(this.toKey(e))}*[Symbol.iterator](){for(const[e,n]of this._entries)for(const i of n)yield[e,i]}toKey(e){return Qve(e)}}function Qve(c){return c.toLowerCase()}function Y4t(c,e){return Z4t(Qve(c),e.map(Qve))}function Z4t(c,e){if(c==="*/*")return e.length>0;if(e.includes(c))return!0;const n=c.match(/^([a-z]+)\/([a-z]+|\*)$/i);if(!n)return!1;const[i,o,a]=n;return a==="*"?e.some(u=>u.startsWith(o+"/")):!1}const n2e=Object.freeze({create:c=>$3(c.map(e=>e.toString())).join(`\r
|
|
662
662
|
`),split:c=>c.split(`\r
|
|
663
663
|
`),parse:c=>n2e.split(c).filter(e=>!e.startsWith("#"))}),UL=class UL{constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||this.value===""||e.value.startsWith(this.value+UL.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(...e){return new UL((this.value?[this.value,...e]:e).join(UL.sep))}};UL.sep=".",UL.None=new UL("@@none@@"),UL.Empty=new UL("");let rf=UL;const L2t={EDITORS:"CodeEditors",FILES:"CodeFiles"};class hAn{}const fAn={DragAndDropContribution:"workbench.contributions.dragAndDrop"};Pf.add(fAn.DragAndDropContribution,new hAn);const dre=class dre{constructor(){}static getInstance(){return dre.INSTANCE}hasData(e){return e&&e===this.proto}getData(e){if(this.hasData(e))return this.data}};dre.INSTANCE=new dre;let VUe=dre;function Q4t(c){const e=new X4t;for(const n of c.items){const i=n.type;if(n.kind==="string"){const o=new Promise(a=>n.getAsString(a));e.append(i,DXe(o))}else if(n.kind==="file"){const o=n.getAsFile();o&&e.append(i,_An(o))}}return e}function _An(c){const e=c.path?$s.parse(c.path):void 0;return dAn(c.name,e,async()=>new Uint8Array(await c.arrayBuffer()))}const pAn=Object.freeze([L2t.EDITORS,L2t.FILES,Kre.RESOURCES,Kre.INTERNAL_URI_LIST]);function eAt(c,e=!1){const n=Q4t(c),i=n.get(Kre.INTERNAL_URI_LIST);if(i)n.replace(A_.uriList,i);else if(e||!n.has(A_.uriList)){const o=[];for(const a of c.items){const u=a.getAsFile();if(u){const h=u.path;try{h?o.push($s.file(h).toString()):o.push($s.parse(u.name,!0).toString())}catch{}}}o.length&&n.replace(A_.uriList,DXe(n2e.create(o)))}for(const o of pAn)n.delete(o);return n}var NXe=function(c,e,n,i){var o=arguments.length,a=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(c,e,n,i);else for(var h=c.length-1;h>=0;h--)(u=c[h])&&(a=(o<3?u(a):o>3?u(e,n,a):u(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},xoe=function(c,e){return function(n,i){e(n,i,c)}};class EXe{async provideDocumentPasteEdits(e,n,i,o,a){const u=await this.getEdit(i,a);if(u)return{edits:[{insertText:u.insertText,title:u.title,kind:u.kind,handledMimeType:u.handledMimeType,yieldTo:u.yieldTo}],dispose(){}}}async provideDocumentDropEdits(e,n,i,o){const a=await this.getEdit(i,o);if(a)return{edits:[{insertText:a.insertText,title:a.title,kind:a.kind,handledMimeType:a.handledMimeType,yieldTo:a.yieldTo}],dispose(){}}}}const hre=class hre extends EXe{constructor(){super(...arguments),this.kind=hre.kind,this.dropMimeTypes=[A_.text],this.pasteMimeTypes=[A_.text]}async getEdit(e,n){const i=e.get(A_.text);if(!i||e.has(A_.uriList))return;const o=await i.asString();return{handledMimeType:A_.text,title:V("text.label","Insert Plain Text"),insertText:o,kind:this.kind}}};hre.id="text",hre.kind=new rf("text.plain");let wW=hre;class tAt extends EXe{constructor(){super(...arguments),this.kind=new rf("uri.absolute"),this.dropMimeTypes=[A_.uriList],this.pasteMimeTypes=[A_.uriList]}async getEdit(e,n){const i=await nAt(e);if(!i.length||n.isCancellationRequested)return;let o=0;const a=i.map(({uri:h,originalText:g})=>h.scheme===el.file?h.fsPath:(o++,g)).join(" ");let u;return o>0?u=i.length>1?V("defaultDropProvider.uriList.uris","Insert Uris"):V("defaultDropProvider.uriList.uri","Insert Uri"):u=i.length>1?V("defaultDropProvider.uriList.paths","Insert Paths"):V("defaultDropProvider.uriList.path","Insert Path"),{handledMimeType:A_.uriList,insertText:a,title:u,kind:this.kind}}}let eCe=class extends EXe{constructor(e){super(),this._workspaceContextService=e,this.kind=new rf("uri.relative"),this.dropMimeTypes=[A_.uriList],this.pasteMimeTypes=[A_.uriList]}async getEdit(e,n){const i=await nAt(e);if(!i.length||n.isCancellationRequested)return;const o=nD(i.map(({uri:a})=>{const u=this._workspaceContextService.getWorkspaceFolder(a);return u?Ibn(u.uri,a):void 0}));if(o.length)return{handledMimeType:A_.uriList,insertText:o.join(" "),title:i.length>1?V("defaultDropProvider.uriList.relativePaths","Insert Relative Paths"):V("defaultDropProvider.uriList.relativePath","Insert Relative Path"),kind:this.kind}}};eCe=NXe([xoe(0,mW)],eCe);class gAn{constructor(){this.kind=new rf("html"),this.pasteMimeTypes=["text/html"],this._yieldTo=[{mimeType:A_.text}]}async provideDocumentPasteEdits(e,n,i,o,a){if(o.triggerKind!==Sre.PasteAs&&!o.only?.contains(this.kind))return;const h=await i.get("text/html")?.asString();if(!(!h||a.isCancellationRequested))return{dispose(){},edits:[{insertText:h,yieldTo:this._yieldTo,title:V("pasteHtmlLabel","Insert HTML"),kind:this.kind}]}}}async function nAt(c){const e=c.get(A_.uriList);if(!e)return[];const n=await e.asString(),i=[];for(const o of n2e.parse(n))try{i.push({uri:$s.parse(o),originalText:o})}catch{}return i}let jUe=class extends Wn{constructor(e,n){super(),this._register(e.documentDropEditProvider.register("*",new wW)),this._register(e.documentDropEditProvider.register("*",new tAt)),this._register(e.documentDropEditProvider.register("*",new eCe(n)))}};jUe=NXe([xoe(0,jo),xoe(1,mW)],jUe);let zUe=class extends Wn{constructor(e,n){super(),this._register(e.documentPasteEditProvider.register("*",new wW)),this._register(e.documentPasteEditProvider.register("*",new tAt)),this._register(e.documentPasteEditProvider.register("*",new eCe(n))),this._register(e.documentPasteEditProvider.register("*",new gAn))}};zUe=NXe([xoe(0,jo),xoe(1,mW)],zUe);const zT=class zT{constructor(){this.value="",this.pos=0}static isDigitCharacter(e){return e>=48&&e<=57}static isVariableCharacter(e){return e===95||e>=97&&e<=122||e>=65&&e<=90}text(e){this.value=e,this.pos=0}tokenText(e){return this.value.substr(e.pos,e.len)}next(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};const e=this.pos;let n=0,i=this.value.charCodeAt(e),o;if(o=zT._table[i],typeof o=="number")return this.pos+=1,{type:o,pos:e,len:1};if(zT.isDigitCharacter(i)){o=8;do n+=1,i=this.value.charCodeAt(e+n);while(zT.isDigitCharacter(i));return this.pos+=n,{type:o,pos:e,len:n}}if(zT.isVariableCharacter(i)){o=9;do i=this.value.charCodeAt(e+ ++n);while(zT.isVariableCharacter(i)||zT.isDigitCharacter(i));return this.pos+=n,{type:o,pos:e,len:n}}o=10;do n+=1,i=this.value.charCodeAt(e+n);while(!isNaN(i)&&typeof zT._table[i]>"u"&&!zT.isDigitCharacter(i)&&!zT.isVariableCharacter(i));return this.pos+=n,{type:o,pos:e,len:n}}};zT._table={36:0,58:1,44:2,123:3,125:4,92:5,47:6,124:7,43:11,45:12,63:13};let HUe=zT;class EK{constructor(){this._children=[]}appendChild(e){return e instanceof jb&&this._children[this._children.length-1]instanceof jb?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}replace(e,n){const{parent:i}=e,o=i.children.indexOf(e),a=i.children.slice(0);a.splice(o,1,...n),i._children=a,(function u(h,g){for(const b of h)b.parent=g,u(b.children,b)})(n,i)}get children(){return this._children}get rightMostDescendant(){return this._children.length>0?this._children[this._children.length-1].rightMostDescendant:this}get snippet(){let e=this;for(;;){if(!e)return;if(e instanceof Ese)return e;e=e.parent}}toString(){return this.children.reduce((e,n)=>e+n.toString(),"")}len(){return 0}}class jb extends EK{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new jb(this.value)}}class iAt extends EK{}class K2 extends iAt{static compareByIndex(e,n){return e.index===n.index?0:e.isFinalTabstop?1:n.isFinalTabstop||e.index<n.index?-1:e.index>n.index?1:0}constructor(e){super(),this.index=e}get isFinalTabstop(){return this.index===0}get choice(){return this._children.length===1&&this._children[0]instanceof IK?this._children[0]:void 0}clone(){const e=new K2(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(n=>n.clone()),e}}class IK extends EK{constructor(){super(...arguments),this.options=[]}appendChild(e){return e instanceof jb&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){const e=new IK;return this.options.forEach(e.appendChild,e),e}}class IXe extends EK{constructor(){super(...arguments),this.regexp=new RegExp("")}resolve(e){const n=this;let i=!1,o=e.replace(this.regexp,function(){return i=!0,n._replace(Array.prototype.slice.call(arguments,0,-2))});return!i&&this._children.some(a=>a instanceof lE&&!!a.elseValue)&&(o=this._replace([])),o}_replace(e){let n="";for(const i of this._children)if(i instanceof lE){let o=e[i.index]||"";o=i.resolve(o),n+=o}else n+=i.toString();return n}toString(){return""}clone(){const e=new IXe;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map(n=>n.clone()),e}}class lE extends EK{constructor(e,n,i,o){super(),this.index=e,this.shorthandName=n,this.ifValue=i,this.elseValue=o}resolve(e){return this.shorthandName==="upcase"?e?e.toLocaleUpperCase():"":this.shorthandName==="downcase"?e?e.toLocaleLowerCase():"":this.shorthandName==="capitalize"?e?e[0].toLocaleUpperCase()+e.substr(1):"":this.shorthandName==="pascalcase"?e?this._toPascalCase(e):"":this.shorthandName==="camelcase"?e?this._toCamelCase(e):"":e&&typeof this.ifValue=="string"?this.ifValue:!e&&typeof this.elseValue=="string"?this.elseValue:e||""}_toPascalCase(e){const n=e.match(/[a-z0-9]+/gi);return n?n.map(i=>i.charAt(0).toUpperCase()+i.substr(1)).join(""):e}_toCamelCase(e){const n=e.match(/[a-z0-9]+/gi);return n?n.map((i,o)=>o===0?i.charAt(0).toLowerCase()+i.substr(1):i.charAt(0).toUpperCase()+i.substr(1)).join(""):e}clone(){return new lE(this.index,this.shorthandName,this.ifValue,this.elseValue)}}class woe extends iAt{constructor(e){super(),this.name=e}resolve(e){let n=e.resolve(this);return this.transform&&(n=this.transform.resolve(n||"")),n!==void 0?(this._children=[new jb(n)],!0):!1}clone(){const e=new woe(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(n=>n.clone()),e}}function P2t(c,e){const n=[...c];for(;n.length>0;){const i=n.shift();if(!e(i))break;n.unshift(...i.children)}}class Ese extends EK{get placeholderInfo(){if(!this._placeholders){const e=[];let n;this.walk(function(i){return i instanceof K2&&(e.push(i),n=!n||n.index<i.index?i:n),!0}),this._placeholders={all:e,last:n}}return this._placeholders}get placeholders(){const{all:e}=this.placeholderInfo;return e}offset(e){let n=0,i=!1;return this.walk(o=>o===e?(i=!0,!1):(n+=o.len(),!0)),i?n:-1}fullLen(e){let n=0;return P2t([e],i=>(n+=i.len(),!0)),n}enclosingPlaceholders(e){const n=[];let{parent:i}=e;for(;i;)i instanceof K2&&n.push(i),i=i.parent;return n}resolveVariables(e){return this.walk(n=>(n instanceof woe&&n.resolve(e)&&(this._placeholders=void 0),!0)),this}appendChild(e){return this._placeholders=void 0,super.appendChild(e)}replace(e,n){return this._placeholders=void 0,super.replace(e,n)}clone(){const e=new Ese;return this._children=this.children.map(n=>n.clone()),e}walk(e){P2t(this.children,e)}}class kW{constructor(){this._scanner=new HUe,this._token={type:14,pos:0,len:0}}static escape(e){return e.replace(/\$|}|\\/g,"\\$&")}static guessNeedsClipboard(e){return/\${?CLIPBOARD/.test(e)}parse(e,n,i){const o=new Ese;return this.parseFragment(e,o),this.ensureFinalTabstop(o,i??!1,n??!1),o}parseFragment(e,n){const i=n.children.length;for(this._scanner.text(e),this._token=this._scanner.next();this._parse(n););const o=new Map,a=[];n.walk(g=>(g instanceof K2&&(g.isFinalTabstop?o.set(0,void 0):!o.has(g.index)&&g.children.length>0?o.set(g.index,g.children):a.push(g)),!0));const u=(g,b)=>{const x=o.get(g.index);if(!x)return;const w=new K2(g.index);w.transform=g.transform;for(const k of x){const P=k.clone();w.appendChild(P),P instanceof K2&&o.has(P.index)&&!b.has(P.index)&&(b.add(P.index),u(P,b),b.delete(P.index))}n.replace(g,[w])},h=new Set;for(const g of a)u(g,h);return n.children.slice(i)}ensureFinalTabstop(e,n,i){(n||i&&e.placeholders.length>0)&&(e.placeholders.find(a=>a.index===0)||e.appendChild(new K2(0)))}_accept(e,n){if(e===void 0||this._token.type===e){const i=n?this._scanner.tokenText(this._token):!0;return this._token=this._scanner.next(),i}return!1}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e){const n=this._token;for(;this._token.type!==e;){if(this._token.type===14)return!1;if(this._token.type===5){const o=this._scanner.next();if(o.type!==0&&o.type!==4&&o.type!==5)return!1}this._token=this._scanner.next()}const i=this._scanner.value.substring(n.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),i}_parse(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)}_parseEscaped(e){let n;return(n=this._accept(5,!0))?(n=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||n,e.appendChild(new jb(n)),!0):!1}_parseTabstopOrVariableName(e){let n;const i=this._token;return this._accept(0)&&(n=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(n)?new K2(Number(n)):new woe(n)),!0):this._backTo(i)}_parseComplexPlaceholder(e){let n;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(n=this._accept(8,!0))))return this._backTo(i);const a=new K2(Number(n));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(a),!0;if(!this._parse(a))return e.appendChild(new jb("${"+n+":")),a.children.forEach(e.appendChild,e),!0}else if(a.index>0&&this._accept(7)){const u=new IK;for(;;){if(this._parseChoiceElement(u)){if(this._accept(2))continue;if(this._accept(7)&&(a.appendChild(u),this._accept(4)))return e.appendChild(a),!0}return this._backTo(i),!1}}else return this._accept(6)?this._parseTransform(a)?(e.appendChild(a),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(a),!0):this._backTo(i)}_parseChoiceElement(e){const n=this._token,i=[];for(;!(this._token.type===2||this._token.type===7);){let o;if((o=this._accept(5,!0))?o=this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||o:o=this._accept(void 0,!0),!o)return this._backTo(n),!1;i.push(o)}return i.length===0?(this._backTo(n),!1):(e.appendChild(new jb(i.join(""))),!0)}_parseComplexVariable(e){let n;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(n=this._accept(9,!0))))return this._backTo(i);const a=new woe(n);if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(a),!0;if(!this._parse(a))return e.appendChild(new jb("${"+n+":")),a.children.forEach(e.appendChild,e),!0}else return this._accept(6)?this._parseTransform(a)?(e.appendChild(a),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(a),!0):this._backTo(i)}_parseTransform(e){const n=new IXe;let i="",o="";for(;!this._accept(6);){let a;if(a=this._accept(5,!0)){a=this._accept(6,!0)||a,i+=a;continue}if(this._token.type!==14){i+=this._accept(void 0,!0);continue}return!1}for(;!this._accept(6);){let a;if(a=this._accept(5,!0)){a=this._accept(5,!0)||this._accept(6,!0)||a,n.appendChild(new jb(a));continue}if(!(this._parseFormatString(n)||this._parseAnything(n)))return!1}for(;!this._accept(4);){if(this._token.type!==14){o+=this._accept(void 0,!0);continue}return!1}try{n.regexp=new RegExp(i,o)}catch{return!1}return e.transform=n,!0}_parseFormatString(e){const n=this._token;if(!this._accept(0))return!1;let i=!1;this._accept(3)&&(i=!0);const o=this._accept(8,!0);if(o)if(i){if(this._accept(4))return e.appendChild(new lE(Number(o))),!0;if(!this._accept(1))return this._backTo(n),!1}else return e.appendChild(new lE(Number(o))),!0;else return this._backTo(n),!1;if(this._accept(6)){const a=this._accept(9,!0);return!a||!this._accept(4)?(this._backTo(n),!1):(e.appendChild(new lE(Number(o),a)),!0)}else if(this._accept(11)){const a=this._until(4);if(a)return e.appendChild(new lE(Number(o),void 0,a,void 0)),!0}else if(this._accept(12)){const a=this._until(4);if(a)return e.appendChild(new lE(Number(o),void 0,void 0,a)),!0}else if(this._accept(13)){const a=this._until(1);if(a){const u=this._until(4);if(u)return e.appendChild(new lE(Number(o),void 0,a,u)),!0}}else{const a=this._until(4);if(a)return e.appendChild(new lE(Number(o),void 0,void 0,a)),!0}return this._backTo(n),!1}_parseAnything(e){return this._token.type!==14?(e.appendChild(new jb(this._scanner.tokenText(this._token))),this._accept(void 0),!0):!1}}function rAt(c,e,n){return(typeof n.insertText=="string"?n.insertText==="":n.insertText.snippet==="")?{edits:n.additionalEdit?.edits??[]}:{edits:[...e.map(i=>new FM(c,{range:i,text:typeof n.insertText=="string"?kW.escape(n.insertText)+"$0":n.insertText.snippet,insertAsSnippet:!0})),...n.additionalEdit?.edits??[]]}}function oAt(c){function e(u,h){return"mimeType"in u?u.mimeType===h.handledMimeType:!!h.kind&&u.kind.contains(h.kind)}const n=new Map;for(const u of c)for(const h of u.yieldTo??[])for(const g of c)if(g!==u&&e(h,g)){let b=n.get(u);b||(b=[],n.set(u,b)),b.push(g)}if(!n.size)return Array.from(c);const i=new Set,o=[];function a(u){if(!u.length)return[];const h=u[0];if(o.includes(h))return console.warn("Yield to cycle detected",h),u;if(i.has(h))return a(u.slice(1));let g=[];const b=n.get(h);return b&&(o.push(h),g=a(b),o.pop()),i.add(h),[...g,h,...a(u.slice(1))]}return a(Array.from(c))}var mAn=function(c,e,n,i){var o=arguments.length,a=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(c,e,n,i);else for(var h=c.length-1;h>=0;h--)(u=c[h])&&(a=(o<3?u(a):o>3?u(e,n,a):u(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},yAn=function(c,e){return function(n,i){e(n,i,c)}};const bAn=ll.register({description:"inline-progress-widget",stickiness:1,showIfCollapsed:!0,after:{content:yNt,inlineClassName:"inline-editor-progress-decoration",inlineClassNameAffectsLetterSpacing:!0}}),JSe=class JSe extends Wn{constructor(e,n,i,o,a){super(),this.typeId=e,this.editor=n,this.range=i,this.delegate=a,this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this.create(o),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this)}create(e){this.domNode=Ir(".inline-progress-widget"),this.domNode.role="button",this.domNode.title=e;const n=Ir("span.icon");this.domNode.append(n),n.classList.add(...ra.asClassNameArray(wr.loading),"codicon-modifier-spin");const i=()=>{const o=this.editor.getOption(67);this.domNode.style.height=`${o}px`,this.domNode.style.width=`${Math.ceil(.8*o)}px`};i(),this._register(this.editor.onDidChangeConfiguration(o=>{(o.hasChanged(52)||o.hasChanged(67))&&i()})),this._register(hi(this.domNode,Nr.CLICK,o=>{this.delegate.cancel()}))}getId(){return JSe.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:{lineNumber:this.range.startLineNumber,column:this.range.startColumn},preference:[0]}}dispose(){super.dispose(),this.editor.removeContentWidget(this)}};JSe.baseId="editor.widget.inlineProgressWidget";let UUe=JSe,tCe=class extends Wn{constructor(e,n,i){super(),this.id=e,this._editor=n,this._instantiationService=i,this._showDelay=500,this._showPromise=this._register(new om),this._currentWidget=this._register(new om),this._operationIdPool=0,this._currentDecorations=n.createDecorationsCollection()}dispose(){super.dispose(),this._currentDecorations.clear()}async showWhile(e,n,i,o,a){const u=this._operationIdPool++;this._currentOperation=u,this.clear(),this._showPromise.value=lO(()=>{const h=lt.fromPositions(e);this._currentDecorations.set([{range:h,options:bAn}]).length>0&&(this._currentWidget.value=this._instantiationService.createInstance(UUe,this.id,this._editor,h,n,o))},a??this._showDelay);try{return await i}finally{this._currentOperation===u&&(this.clear(),this._currentOperation=void 0)}}clear(){this._showPromise.clear(),this._currentDecorations.clear(),this._currentWidget.clear()}};tCe=mAn([yAn(2,ks)],tCe);var vAn=function(c,e,n,i){var o=arguments.length,a=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(c,e,n,i);else for(var h=c.length-1;h>=0;h--)(u=c[h])&&(a=(o<3?u(a):o>3?u(e,n,a):u(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},A2t=function(c,e){return function(n,i){e(n,i,c)}},O0e,WM;let IS=(WM=class{static get(e){return e.getContribution(O0e.ID)}constructor(e,n,i){this._openerService=i,this._messageWidget=new om,this._messageListeners=new Ai,this._mouseOverMessage=!1,this._editor=e,this._visible=O0e.MESSAGE_VISIBLE.bindTo(n)}dispose(){this._message?.dispose(),this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,n){Qb(kE(e)?e.value:e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._message=kE(e)?Swe(e,{actionHandler:{callback:o=>{this.closeMessage(),JKe(this._openerService,o,kE(e)?e.isTrusted:void 0)},disposables:this._messageListeners}}):void 0,this._messageWidget.value=new F2t(this._editor,n,typeof e=="string"?e:this._message.element),this._messageListeners.add(Ar.debounce(this._editor.onDidBlurEditorText,(o,a)=>a,0)(()=>{this._mouseOverMessage||this._messageWidget.value&&tm(Yy(),this._messageWidget.value.getDomNode())||this.closeMessage()})),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add(hi(this._messageWidget.value.getDomNode(),Nr.MOUSE_ENTER,()=>this._mouseOverMessage=!0,!0)),this._messageListeners.add(hi(this._messageWidget.value.getDomNode(),Nr.MOUSE_LEAVE,()=>this._mouseOverMessage=!1,!0));let i;this._messageListeners.add(this._editor.onMouseMove(o=>{o.target.position&&(i?i.containsPosition(o.target.position)||this.closeMessage():i=new lt(n.lineNumber-3,1,o.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(F2t.fadeOut(this._messageWidget.value))}},O0e=WM,WM.ID="editor.contrib.messageController",WM.MESSAGE_VISIBLE=new uo("messageVisible",!1,V("messageVisible","Whether the editor is currently showing an inline message")),WM);IS=O0e=vAn([A2t(1,ca),A2t(2,fC)],IS);const CAn=Eg.bindToContribution(IS.get);to(new CAn({id:"leaveEditorMessage",precondition:IS.MESSAGE_VISIBLE,handler:c=>c.closeMessage(),kbOpts:{weight:130,primary:9}}));let F2t=class{static fadeOut(e){const n=()=>{e.dispose(),clearTimeout(i),e.getDomNode().removeEventListener("animationend",n)},i=setTimeout(n,110);return e.getDomNode().addEventListener("animationend",n),e.getDomNode().classList.add("fadeOut"),{dispose:n}}constructor(e,{lineNumber:n,column:i},o){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(n,n,0),this._position={lineNumber:n,column:i},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";const a=document.createElement("div");a.classList.add("anchor","top"),this._domNode.appendChild(a);const u=document.createElement("div");typeof o=="string"?(u.classList.add("message"),u.textContent=o):(o.classList.add("message"),u.appendChild(o)),this._domNode.appendChild(u);const h=document.createElement("div");h.classList.add("anchor","below"),this._domNode.appendChild(h),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2],positionAffinity:1}}afterRender(e){this._domNode.classList.toggle("below",e===2)}};Hc(IS.ID,IS,4);function GBe(c,e){return e&&(c.stack||c.stacktrace)?V("stackTrace.format","{0}: {1}",O2t(c),M2t(c.stack)||M2t(c.stacktrace)):O2t(c)}function M2t(c){return Array.isArray(c)?c.join(`
|
|
664
664
|
`):c}function O2t(c){return c.code==="ERR_UNC_HOST_NOT_ALLOWED"?`${c.message}. Please update the 'security.allowedUNCHosts' setting if you want to allow this host.`:typeof c.code=="string"&&typeof c.errno=="number"&&typeof c.syscall=="string"?V("nodeExceptionMessage","A system error occurred ({0})",c.message):c.message||V("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}function nCe(c=null,e=!1){if(!c)return V("error.defaultMessage","An unknown error occurred. Please consult the log for more details.");if(Array.isArray(c)){const n=nD(c),i=nCe(n[0],e);return n.length>1?V("error.moreErrors","{0} ({1} errors in total)",i,n.length):i}if(rC(c))return c;if(c.detail){const n=c.detail;if(n.error)return GBe(n.error,e);if(n.exception)return GBe(n.exception,e)}return c.stack?GBe(c,e):c.message?c.message:V("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}var sAt=function(c,e,n,i){var o=arguments.length,a=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(c,e,n,i);else for(var h=c.length-1;h>=0;h--)(u=c[h])&&(a=(o<3?u(a):o>3?u(e,n,a):u(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},iG=function(c,e){return function(n,i){e(n,i,c)}},$Ue,CB;let qUe=(CB=class extends Wn{constructor(e,n,i,o,a,u,h,g,b,x){super(),this.typeId=e,this.editor=n,this.showCommand=o,this.range=a,this.edits=u,this.onSelectNewEdit=h,this._contextMenuService=g,this._keybindingService=x,this.allowEditorOverflow=!0,this.suppressMouseDown=!0,this.create(),this.visibleContext=i.bindTo(b),this.visibleContext.set(!0),this._register(ws(()=>this.visibleContext.reset())),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this),this._register(ws((()=>this.editor.removeContentWidget(this)))),this._register(this.editor.onDidChangeCursorPosition(w=>{a.containsPosition(w.position)||this.dispose()})),this._register(Ar.runAndSubscribe(x.onDidUpdateKeybindings,()=>{this._updateButtonTitle()}))}_updateButtonTitle(){const e=this._keybindingService.lookupKeybinding(this.showCommand.id)?.getLabel();this.button.element.title=this.showCommand.label+(e?` (${e})`:"")}create(){this.domNode=Ir(".post-edit-widget"),this.button=this._register(new lve(this.domNode,{supportIcons:!0})),this.button.label="$(insert)",this._register(hi(this.domNode,Nr.CLICK,()=>this.showSelector()))}getId(){return $Ue.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:this.range.getEndPosition(),preference:[2]}}showSelector(){this._contextMenuService.showContextMenu({getAnchor:()=>{const e=M_(this.button.element);return{x:e.left+e.width,y:e.top+e.height}},getActions:()=>this.edits.allEdits.map((e,n)=>Q9({id:"",label:e.title,checked:n===this.edits.activeEditIndex,run:()=>{if(n!==this.edits.activeEditIndex)return this.onSelectNewEdit(n)}}))})}},$Ue=CB,CB.baseId="editor.widget.postEditWidget",CB);qUe=$Ue=sAt([iG(7,OS),iG(8,ca),iG(9,Ou)],qUe);let iCe=class extends Wn{constructor(e,n,i,o,a,u,h){super(),this._id=e,this._editor=n,this._visibleContext=i,this._showCommand=o,this._instantiationService=a,this._bulkEditService=u,this._notificationService=h,this._currentWidget=this._register(new om),this._register(Ar.any(n.onDidChangeModel,n.onDidChangeModelContent)(()=>this.clear()))}async applyEditAndShowIfNeeded(e,n,i,o,a){const u=this._editor.getModel();if(!u||!e.length)return;const h=n.allEdits.at(n.activeEditIndex);if(!h)return;const g=async X=>{const Q=this._editor.getModel();Q&&(await Q.undo(),this.applyEditAndShowIfNeeded(e,{activeEditIndex:X,allEdits:n.allEdits},i,o,a))},b=(X,Q)=>{uk(X)||(this._notificationService.error(Q),i&&this.show(e[0],n,g))};let x;try{x=await o(h,a)}catch(X){return b(X,V("resolveError",`Error resolving edit '{0}':
|