@covalent/components 8.15.0-beta.1 → 8.15.0-beta.2
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/cell/cell.d.ts +5 -0
- package/cell/cell.d.ts.map +1 -1
- package/cell.js +2 -2
- package/cell.mjs +19 -14
- package/{code-editor-4cce5e5d.js → code-editor-7a36c890.js} +15 -15
- package/{code-editor-383a8fae.mjs → code-editor-b9acd487.mjs} +21 -21
- package/code-editor.js +1 -1
- package/code-editor.mjs +1 -1
- package/{cssMode-821261c4.js → cssMode-2cffe81f.js} +1 -1
- package/{cssMode-9b89f9af.mjs → cssMode-6f4ea93a.mjs} +1 -1
- package/{freemarker2-7095cbc4.js → freemarker2-89c6e6f3.js} +1 -1
- package/{freemarker2-4fc0d2e6.mjs → freemarker2-906bf3f7.mjs} +1 -1
- package/{handlebars-82c24f9d.mjs → handlebars-dbc16556.mjs} +1 -1
- package/{handlebars-6a356ce9.js → handlebars-e0f7efbe.js} +1 -1
- package/{html-d9124a1e.js → html-d8278158.js} +1 -1
- package/{html-a95df2b1.mjs → html-feca0a24.mjs} +1 -1
- package/{htmlMode-45fac07b.mjs → htmlMode-45e8cd50.mjs} +1 -1
- package/{htmlMode-3946317b.js → htmlMode-989d6a85.js} +1 -1
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/{javascript-0226b3a0.mjs → javascript-3fd1e5a8.mjs} +2 -2
- package/{javascript-ec698494.js → javascript-5d8f5f2a.js} +1 -1
- package/{jsonMode-a8e45f39.js → jsonMode-33e7baa8.js} +1 -1
- package/{jsonMode-bdcd2ed9.mjs → jsonMode-b4ecafe2.mjs} +1 -1
- package/{liquid-b6e2effe.js → liquid-97280cdd.js} +1 -1
- package/{liquid-2dc745b6.mjs → liquid-9be0367d.mjs} +1 -1
- package/notebook/notebook.d.ts +1 -0
- package/notebook/notebook.d.ts.map +1 -1
- package/notebook.js +18 -9
- package/notebook.mjs +24 -5
- package/package.json +1 -1
- package/{python-7770f129.mjs → python-3deb7582.mjs} +1 -1
- package/{python-c7862f06.js → python-e4403078.js} +1 -1
- package/{razor-4a6a11b1.js → razor-9fd114ce.js} +1 -1
- package/{razor-3871ef20.mjs → razor-d49ab0c5.mjs} +1 -1
- package/{tsMode-426fdb34.mjs → tsMode-4448deef.mjs} +1 -1
- package/{tsMode-9087ec29.js → tsMode-c5cc89bc.js} +1 -1
- package/{typescript-eb2ab867.js → typescript-1b8311ff.js} +1 -1
- package/{typescript-37d9bf54.mjs → typescript-8fb83e8f.mjs} +1 -1
- package/{xml-349a9a42.js → xml-c437fe38.js} +1 -1
- package/{xml-9970ffe1.mjs → xml-eee8295b.mjs} +1 -1
- package/{yaml-167e3d82.mjs → yaml-083914d5.mjs} +1 -1
- package/{yaml-837b2090.js → yaml-8c10a8e6.js} +1 -1
@@ -2,7 +2,7 @@
|
|
2
2
|
* @license
|
3
3
|
* Copyright 2020 Google LLC
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
5
|
-
*/const k9=()=>new M9;class M9{}const Hv=new WeakMap,N9=I9.e(class extends x9.c{render(s){return Ul.A}update(s,[e]){var t;const i=e!==this.G;return i&&this.G!==void 0&&this.ot(void 0),(i||this.rt!==this.lt)&&(this.G=e,this.dt=(t=s.options)===null||t===void 0?void 0:t.host,this.ot(this.lt=s.element)),Ul.A}ot(s){var e;if(typeof this.G=="function"){const t=(e=this.dt)!==null&&e!==void 0?e:globalThis;let i=Hv.get(t);i===void 0&&(i=new WeakMap,Hv.set(t,i)),i.get(this.G)!==void 0&&this.G.call(this.dt,void 0),i.set(this.G,s),s!==void 0&&this.G.call(this.dt,s)}else this.G.value=s}get rt(){var s,e,t;return typeof this.G=="function"?(e=Hv.get((s=this.dt)!==null&&s!==void 0?s:globalThis))===null||e===void 0?void 0:e.get(this.G):(t=this.G)===null||t===void 0?void 0:t.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}}),T9=`:host{--editor-width: 100%;--editor-height: 100
|
5
|
+
*/const k9=()=>new M9;class M9{}const Hv=new WeakMap,N9=I9.e(class extends x9.c{render(s){return Ul.A}update(s,[e]){var t;const i=e!==this.G;return i&&this.G!==void 0&&this.ot(void 0),(i||this.rt!==this.lt)&&(this.G=e,this.dt=(t=s.options)===null||t===void 0?void 0:t.host,this.ot(this.lt=s.element)),Ul.A}ot(s){var e;if(typeof this.G=="function"){const t=(e=this.dt)!==null&&e!==void 0?e:globalThis;let i=Hv.get(t);i===void 0&&(i=new WeakMap,Hv.set(t,i)),i.get(this.G)!==void 0&&this.G.call(this.dt,void 0),i.set(this.G,s),s!==void 0&&this.G.call(this.dt,s)}else this.G.value=s}get rt(){var s,e,t;return typeof this.G=="function"?(e=Hv.get((s=this.dt)!==null&&s!==void 0?s:globalThis))===null||e===void 0?void 0:e.get(this.G):(t=this.G)===null||t===void 0?void 0:t.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}}),T9=`:host{--editor-width: 100%;--editor-height: 100%;box-sizing:border-box}:host .monaco-editor .lines-content.monaco-editor-background{height:var(--editor-height);margin-left:4px;width:var(--editor-width)}:host .monaco-editor.focused{border:1px solid var(--cv-theme-primary)}.editor{height:var(--editor-height);min-height:var(--editor-height);max-width:calc(var(--editor-width) - 2px);padding-top:2px;width:var(--editor-width)}
|
6
6
|
`;globalThis&&globalThis.__awaiter;let B9=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function R9(s,e){let t;return e.length===0?t=s:t=s.replace(/\{(\d+)\}/g,(i,n)=>{const o=n[0],r=e[o];let a=i;return typeof r=="string"?a=r:(typeof r=="number"||typeof r=="boolean"||r===void 0||r===null)&&(a=String(r)),a}),B9&&(t="["+t.replace(/[aouei]/g,"$&$&")+"]"),t}function m(s,e,...t){return R9(e,t)}var Wv;const Uf="en";let Gb=!1,Yb=!1,gb=!1,HR=!1,hx=!1,ux=!1,J_,fb=Uf,F9,wl;const ti=typeof self=="object"?self:typeof global=="object"?global:{};let vn;typeof ti.vscode<"u"&&typeof ti.vscode.process<"u"?vn=ti.vscode.process:typeof process<"u"&&(vn=process);const O9=typeof((Wv=vn==null?void 0:vn.versions)===null||Wv===void 0?void 0:Wv.electron)=="string",P9=O9&&(vn==null?void 0:vn.type)==="renderer";if(typeof navigator=="object"&&!P9)wl=navigator.userAgent,Gb=wl.indexOf("Windows")>=0,Yb=wl.indexOf("Macintosh")>=0,ux=(wl.indexOf("Macintosh")>=0||wl.indexOf("iPad")>=0||wl.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,gb=wl.indexOf("Linux")>=0,hx=!0,m({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),J_=Uf,fb=J_;else if(typeof vn=="object"){Gb=vn.platform==="win32",Yb=vn.platform==="darwin",gb=vn.platform==="linux",gb&&vn.env.SNAP&&vn.env.SNAP_REVISION,vn.env.CI||vn.env.BUILD_ARTIFACTSTAGINGDIRECTORY,J_=Uf,fb=Uf;const s=vn.env.VSCODE_NLS_CONFIG;if(s)try{const e=JSON.parse(s),t=e.availableLanguages["*"];J_=e.locale,fb=t||Uf,F9=e._translationsConfigFile}catch{}HR=!0}else console.error("Unable to resolve platform.");const Ji=Gb,Ye=Yb,pn=gb,Gs=HR,yc=hx,H9=hx&&typeof ti.importScripts=="function",Qr=ux,jr=wl,W9=fb,V9=typeof ti.postMessage=="function"&&!ti.importScripts,WR=(()=>{if(V9){const s=[];ti.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,n=s.length;i<n;i++){const o=s[i];if(o.id===t.data.vscodeScheduleAsyncWork){s.splice(i,1),o.callback();return}}});let e=0;return t=>{const i=++e;s.push({id:i,callback:t}),ti.postMessage({vscodeScheduleAsyncWork:i},"*")}}return s=>setTimeout(s)})(),Fo=Yb||ux?2:Gb?1:3;let MM=!0,NM=!1;function VR(){if(!NM){NM=!0;const s=new Uint8Array(2);s[0]=1,s[1]=2,MM=new Uint16Array(s.buffer)[0]===512+1}return MM}const zR=!!(jr&&jr.indexOf("Chrome")>=0),z9=!!(jr&&jr.indexOf("Firefox")>=0),U9=!!(!zR&&jr&&jr.indexOf("Safari")>=0),Q9=!!(jr&&jr.indexOf("Edg/")>=0);jr&&jr.indexOf("Android")>=0;var Ue;(function(s){function e(v){return v&&typeof v=="object"&&typeof v[Symbol.iterator]=="function"}s.is=e;const t=Object.freeze([]);function i(){return t}s.empty=i;function*n(v){yield v}s.single=n;function o(v){return v||t}s.from=o;function r(v){return!v||v[Symbol.iterator]().next().done===!0}s.isEmpty=r;function a(v){return v[Symbol.iterator]().next().value}s.first=a;function l(v,L){for(const E of v)if(L(E))return!0;return!1}s.some=l;function c(v,L){for(const E of v)if(L(E))return E}s.find=c;function*d(v,L){for(const E of v)L(E)&&(yield E)}s.filter=d;function*h(v,L){let E=0;for(const S of v)yield L(S,E++)}s.map=h;function*u(...v){for(const L of v)for(const E of L)yield E}s.concat=u;function*g(v){for(const L of v)for(const E of L)yield E}s.concatNested=g;function f(v,L,E){let S=E;for(const D of v)S=L(S,D);return S}s.reduce=f;function _(v,L){let E=0;for(const S of v)L(S,E++)}s.forEach=_;function*A(v,L,E=v.length){for(L<0&&(L+=v.length),E<0?E+=v.length:E>v.length&&(E=v.length);L<E;L++)yield v[L]}s.slice=A;function b(v,L=Number.POSITIVE_INFINITY){const E=[];if(L===0)return[E,v];const S=v[Symbol.iterator]();for(let D=0;D<L;D++){const x=S.next();if(x.done)return[E,s.empty()];E.push(x.value)}return[E,{[Symbol.iterator](){return S}}]}s.consume=b;function C(v){return b(v)[0]}s.collect=C;function w(v,L,E=(S,D)=>S===D){const S=v[Symbol.iterator](),D=L[Symbol.iterator]();for(;;){const x=S.next(),R=D.next();if(x.done!==R.done)return!1;if(x.done)return!0;if(!E(x.value,R.value))return!1}}s.equals=w})(Ue||(Ue={}));let ci=class KS{constructor(e){this.element=e,this.next=KS.Undefined,this.prev=KS.Undefined}};ci.Undefined=new ci(void 0);class Dn{constructor(){this._first=ci.Undefined,this._last=ci.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===ci.Undefined}clear(){let e=this._first;for(;e!==ci.Undefined;){const t=e.next;e.prev=ci.Undefined,e.next=ci.Undefined,e=t}this._first=ci.Undefined,this._last=ci.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const i=new ci(e);if(this._first===ci.Undefined)this._first=i,this._last=i;else if(t){const o=this._last;this._last=i,i.prev=o,o.next=i}else{const o=this._first;this._first=i,i.next=o,o.prev=i}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(i))}}shift(){if(this._first!==ci.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==ci.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==ci.Undefined&&e.next!==ci.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===ci.Undefined&&e.next===ci.Undefined?(this._first=ci.Undefined,this._last=ci.Undefined):e.next===ci.Undefined?(this._last=this._last.prev,this._last.next=ci.Undefined):e.prev===ci.Undefined&&(this._first=this._first.next,this._first.prev=ci.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==ci.Undefined;)yield e.element,e=e.next}}const UR="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function j9(s=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of UR)s.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const gx=j9();function QR(s){let e=gx;if(s&&s instanceof RegExp)if(s.global)e=s;else{let t="g";s.ignoreCase&&(t+="i"),s.multiline&&(t+="m"),s.unicode&&(t+="u"),e=new RegExp(s.source,t)}return e.lastIndex=0,e}const jR=new Dn;jR.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function Om(s,e,t,i,n){if(n||(n=Ue.first(jR)),t.length>n.maxLen){let c=s-n.maxLen/2;return c<0?c=0:i+=c,t=t.substring(c,s+n.maxLen/2),Om(s,e,t,i,n)}const o=Date.now(),r=s-1-i;let a=-1,l=null;for(let c=1;!(Date.now()-o>=n.timeBudget);c++){const d=r-n.windowSize*c;e.lastIndex=Math.max(0,d);const h=G9(e,t,r,a);if(!h&&l||(l=h,d<=0))break;a=d}if(l){const c={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,c}return null}function G9(s,e,t,i){let n;for(;n=s.exec(e);){const o=n.index||0;if(o<=t&&s.lastIndex>=t)return n;if(i>0&&o>i)return null}return null}function No(s,e=0){return s[s.length-(1+e)]}function Y9(s){if(s.length===0)throw new Error("Invalid tail call");return[s.slice(0,s.length-1),s[s.length-1]]}function So(s,e,t=(i,n)=>i===n){if(s===e)return!0;if(!s||!e||s.length!==e.length)return!1;for(let i=0,n=s.length;i<n;i++)if(!t(s[i],e[i]))return!1;return!0}function K9(s,e){const t=s.length-1;e<t&&(s[e]=s[t]),s.pop()}function fx(s,e,t){return J9(s.length,i=>t(s[i],e))}function J9(s,e){let t=0,i=s-1;for(;t<=i;){const n=(t+i)/2|0,o=e(n);if(o<0)t=n+1;else if(o>0)i=n-1;else return n}return-(t+1)}function GR(s,e){let t=0,i=s.length;if(i===0)return 0;for(;t<i;){const n=Math.floor((t+i)/2);e(s[n])?i=n:t=n+1}return t}function JS(s,e,t){if(s=s|0,s>=e.length)throw new TypeError("invalid index");const i=e[Math.floor(e.length*Math.random())],n=[],o=[],r=[];for(const a of e){const l=t(a,i);l<0?n.push(a):l>0?o.push(a):r.push(a)}return s<n.length?JS(s,n,t):s<n.length+r.length?r[0]:JS(s-(n.length+r.length),o,t)}function TM(s,e){const t=[];let i;for(const n of s.slice(0).sort(e))!i||e(i[0],n)!==0?(i=[n],t.push(i)):i.push(n);return t}function s_(s){return s.filter(e=>!!e)}function YR(s){return!Array.isArray(s)||s.length===0}function sn(s){return Array.isArray(s)&&s.length>0}function Xa(s,e=t=>t){const t=new Set;return s.filter(i=>{const n=e(i);return t.has(n)?!1:(t.add(n),!0)})}function Kb(s,e){const t=$9(s,e);if(t!==-1)return s[t]}function $9(s,e){for(let t=s.length-1;t>=0;t--){const i=s[t];if(e(i))return t}return-1}function KR(s,e){return s.length>0?s[0]:e}function Cn(s,e){let t=typeof e=="number"?s:0;typeof e=="number"?t=s:(t=0,e=s);const i=[];if(t<=e)for(let n=t;n<e;n++)i.push(n);else for(let n=t;n>e;n--)i.push(n);return i}function Pw(s,e,t){const i=s.slice(0,e),n=s.slice(e);return i.concat(t,n)}function Vv(s,e){const t=s.indexOf(e);t>-1&&(s.splice(t,1),s.unshift(e))}function $_(s,e){const t=s.indexOf(e);t>-1&&(s.splice(t,1),s.push(e))}function BM(s,e){for(const t of e)s.push(t)}function mx(s){return Array.isArray(s)?s:[s]}function q9(s,e,t){const i=JR(s,e),n=s.length,o=t.length;s.length=n+o;for(let r=n-1;r>=i;r--)s[r+o]=s[r];for(let r=0;r<o;r++)s[r+i]=t[r]}function RM(s,e,t,i){const n=JR(s,e),o=s.splice(n,t);return q9(s,n,i),o}function JR(s,e){return e<0?Math.max(e+s.length,0):Math.min(e,s.length)}var FM;(function(s){function e(n){return n<0}s.isLessThan=e;function t(n){return n>0}s.isGreaterThan=t;function i(n){return n===0}s.isNeitherLessOrGreaterThan=i,s.greaterThan=1,s.lessThan=-1,s.neitherLessOrGreaterThan=0})(FM||(FM={}));function cm(s,e){return(t,i)=>e(s(t),s(i))}const X9=(s,e)=>s-e;function $R(s,e){if(s.length===0)return;let t=s[0];for(let i=1;i<s.length;i++){const n=s[i];e(n,t)>0&&(t=n)}return t}function qR(s,e){if(s.length===0)return;let t=s[0];for(let i=1;i<s.length;i++){const n=s[i];e(n,t)>=0&&(t=n)}return t}function Z9(s,e){return $R(s,(t,i)=>-e(t,i))}class Pm{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 t=this.firstIdx;for(;t<this.items.length&&e(this.items[t]);)t++;const i=t===this.firstIdx?null:this.items.slice(this.firstIdx,t);return this.firstIdx=t,i}takeFromEndWhile(e){let t=this.lastIdx;for(;t>=0&&e(this.items[t]);)t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,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 t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}function XR(s){return Array.isArray(s)}function Un(s){return typeof s=="string"}function Vn(s){return typeof s=="object"&&s!==null&&!Array.isArray(s)&&!(s instanceof RegExp)&&!(s instanceof Date)}function e6(s){const e=Object.getPrototypeOf(Uint8Array);return typeof s=="object"&&s instanceof e}function nc(s){return typeof s=="number"&&!isNaN(s)}function OM(s){return!!s&&typeof s[Symbol.iterator]=="function"}function ZR(s){return s===!0||s===!1}function Xn(s){return typeof s>"u"}function t6(s){return!_o(s)}function _o(s){return Xn(s)||s===null}function ft(s,e){if(!s)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function q_(s){if(_o(s))throw new Error("Assertion Failed: argument is undefined or null");return s}function Jb(s){return typeof s=="function"}function i6(s,e){const t=Math.min(s.length,e.length);for(let i=0;i<t;i++)n6(s[i],e[i])}function n6(s,e){if(Un(e)){if(typeof s!==e)throw new Error(`argument does not match constraint: typeof ${e}`)}else if(Jb(e)){try{if(s instanceof e)return}catch{}if(!_o(s)&&s.constructor===e||e.length===1&&e.call(void 0,s)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function o6(s){let e=[],t=Object.getPrototypeOf(s);for(;Object.prototype!==t;)e=e.concat(Object.getOwnPropertyNames(t)),t=Object.getPrototypeOf(t);return e}function px(s){const e=[];for(const t of o6(s))typeof s[t]=="function"&&e.push(t);return e}function s6(s,e){const t=n=>function(){const o=Array.prototype.slice.call(arguments,0);return e(n,o)},i={};for(const n of s)i[n]=t(n);return i}function Hn(s){return s===null?void 0:s}function Hw(s,e="Unreachable"){throw new Error(e)}function Da(s){if(!s||typeof s!="object"||s instanceof RegExp)return s;const e=Array.isArray(s)?[]:{};return Object.keys(s).forEach(t=>{s[t]&&typeof s[t]=="object"?e[t]=Da(s[t]):e[t]=s[t]}),e}function r6(s){if(!s||typeof s!="object")return s;const e=[s];for(;e.length>0;){const t=e.shift();Object.freeze(t);for(const i in t)if(eF.call(t,i)){const n=t[i];typeof n=="object"&&!Object.isFrozen(n)&&!e6(n)&&e.push(n)}}return s}const eF=Object.prototype.hasOwnProperty;function tF(s,e){return $S(s,e,new Set)}function $S(s,e,t){if(_o(s))return s;const i=e(s);if(typeof i<"u")return i;if(XR(s)){const n=[];for(const o of s)n.push($S(o,e,t));return n}if(Vn(s)){if(t.has(s))throw new Error("Cannot clone recursive data-structure");t.add(s);const n={};for(const o in s)eF.call(s,o)&&(n[o]=$S(s[o],e,t));return t.delete(s),n}return s}function ea(s,e,t=!0){return Vn(s)?(Vn(e)&&Object.keys(e).forEach(i=>{i in s?t&&(Vn(s[i])&&Vn(e[i])?ea(s[i],e[i],t):s[i]=e[i]):s[i]=e[i]}),s):e}function jo(s,e){if(s===e)return!0;if(s==null||e===null||e===void 0||typeof s!=typeof e||typeof s!="object"||Array.isArray(s)!==Array.isArray(e))return!1;let t,i;if(Array.isArray(s)){if(s.length!==e.length)return!1;for(t=0;t<s.length;t++)if(!jo(s[t],e[t]))return!1}else{const n=[];for(i in s)n.push(i);n.sort();const o=[];for(i in e)o.push(i);if(o.sort(),!jo(n,o))return!1;for(t=0;t<n.length;t++)if(!jo(s[n[t]],e[n[t]]))return!1}return!0}const nn={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}},vl=8;class iF{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class nF{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class gi{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return Ww(e,t)}compute(e,t,i){return i}}class dm{constructor(e,t){this.newValue=e,this.didChange=t}}function Ww(s,e){if(typeof s!="object"||typeof e!="object"||!s||!e)return new dm(e,s!==e);if(Array.isArray(s)||Array.isArray(e)){const i=Array.isArray(s)&&Array.isArray(e)&&So(s,e);return new dm(e,!i)}let t=!1;for(const i in e)if(e.hasOwnProperty(i)){const n=Ww(s[i],e[i]);n.didChange&&(s[i]=n.newValue,t=!0)}return new dm(s,t)}class zg{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,t){return Ww(e,t)}validate(e){return this.defaultValue}}class mh{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return Ww(e,t)}validate(e){return typeof e>"u"?this.defaultValue:e}compute(e,t,i){return i}}function Ce(s,e){return typeof s>"u"?e:s==="false"?!1:!!s}class $e extends mh{constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="boolean",n.default=i),super(e,t,i,n)}validate(e){return Ce(e,this.defaultValue)}}function qS(s,e,t,i){if(typeof s>"u")return e;let n=parseInt(s,10);return isNaN(n)?e:(n=Math.max(t,n),n=Math.min(i,n),n|0)}class kt extends mh{constructor(e,t,i,n,o,r=void 0){typeof r<"u"&&(r.type="integer",r.default=i,r.minimum=n,r.maximum=o),super(e,t,i,r),this.minimum=n,this.maximum=o}static clampedInt(e,t,i,n){return qS(e,t,i,n)}validate(e){return kt.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}class Tr extends mh{constructor(e,t,i,n,o){typeof o<"u"&&(o.type="number",o.default=i),super(e,t,i,o),this.validationFn=n}static clamp(e,t,i){return e<t?t:e>i?i:e}static float(e,t){if(typeof e=="number")return e;if(typeof e>"u")return t;const i=parseFloat(e);return isNaN(i)?t:i}validate(e){return this.validationFn(Tr.float(e,this.defaultValue))}}class $n extends mh{static string(e,t){return typeof e!="string"?t:e}constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="string",n.default=i),super(e,t,i,n)}validate(e){return $n.string(e,this.defaultValue)}}function ji(s,e,t){return typeof s!="string"||t.indexOf(s)===-1?e:s}class Ai extends mh{constructor(e,t,i,n,o=void 0){typeof o<"u"&&(o.type="string",o.enum=n,o.default=i),super(e,t,i,o),this._allowedValues=n}validate(e){return ji(e,this.defaultValue,this._allowedValues)}}class _f extends gi{constructor(e,t,i,n,o,r,a=void 0){typeof a<"u"&&(a.type="string",a.enum=o,a.default=n),super(e,t,i,a),this._allowedValues=o,this._convert=r}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function a6(s){switch(s){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class l6 extends gi{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[m("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),m("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader. Word wrapping will be disabled."),m("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:"auto",description:m("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers. Setting to on will disable word wrapping.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return i===0?e.accessibilitySupport:i}}class c6 extends gi{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(19,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:m("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:m("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 t=e;return{insertSpace:Ce(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:Ce(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function d6(s){switch(s){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var Wi;(function(s){s[s.Line=1]="Line",s[s.Block=2]="Block",s[s.Underline=3]="Underline",s[s.LineThin=4]="LineThin",s[s.BlockOutline=5]="BlockOutline",s[s.UnderlineThin=6]="UnderlineThin"})(Wi||(Wi={}));function h6(s){switch(s){case"line":return Wi.Line;case"block":return Wi.Block;case"underline":return Wi.Underline;case"line-thin":return Wi.LineThin;case"block-outline":return Wi.BlockOutline;case"underline-thin":return Wi.UnderlineThin}}class u6 extends zg{constructor(){super(130)}compute(e,t,i){const n=["monaco-editor"];return t.get(35)&&n.push(t.get(35)),e.extraEditorClassName&&n.push(e.extraEditorClassName),t.get(68)==="default"?n.push("mouse-default"):t.get(68)==="copy"&&n.push("mouse-copy"),t.get(102)&&n.push("showUnused"),t.get(128)&&n.push("showDeprecated"),n.join(" ")}}class g6 extends $e{constructor(){super(33,"emptySelectionClipboard",!0,{description:m("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}class f6 extends gi{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(37,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:m("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:[m("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),m("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),m("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:m("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:[m("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),m("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),m("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:m("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:m("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:Ye},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:m("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:m("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 t=e;return{cursorMoveOnType:Ce(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":ji(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":ji(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:Ce(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:Ce(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:Ce(t.loop,this.defaultValue.loop)}}}class Ao extends gi{constructor(){super(47,"fontLigatures",Ao.OFF,{anyOf:[{type:"boolean",description:m("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:m("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:m("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"?Ao.OFF:e==="true"?Ao.ON:e:e?Ao.ON:Ao.OFF}}Ao.OFF='"liga" off, "calt" off';Ao.ON='"liga" on, "calt" on';class m6 extends zg{constructor(){super(46)}compute(e,t,i){return e.fontInfo}}class p6 extends mh{constructor(){super(48,"fontSize",to.fontSize,{type:"number",minimum:6,maximum:100,default:to.fontSize,description:m("fontSize","Controls the font size in pixels.")})}validate(e){const t=Tr.float(e,this.defaultValue);return t===0?to.fontSize:Tr.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}class Er extends gi{constructor(){super(49,"fontWeight",to.fontWeight,{anyOf:[{type:"number",minimum:Er.MINIMUM_VALUE,maximum:Er.MAXIMUM_VALUE,errorMessage:m("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:Er.SUGGESTION_VALUES}],default:to.fontWeight,description:m("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(kt.clampedInt(e,to.fontWeight,Er.MINIMUM_VALUE,Er.MAXIMUM_VALUE))}}Er.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"];Er.MINIMUM_VALUE=1;Er.MAXIMUM_VALUE=1e3;class _6 extends gi{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[m("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),m("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),m("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(53,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:m("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":Object.assign({description:m("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:m("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleDeclarations":Object.assign({description:m("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleImplementations":Object.assign({description:m("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleReferences":Object.assign({description:m("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},t),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:m("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:m("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:m("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:m("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:m("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t,i,n,o,r;if(!e||typeof e!="object")return this.defaultValue;const a=e;return{multiple:ji(a.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(t=a.multipleDefinitions)!==null&&t!==void 0?t:ji(a.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(i=a.multipleTypeDefinitions)!==null&&i!==void 0?i:ji(a.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(n=a.multipleDeclarations)!==null&&n!==void 0?n:ji(a.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(o=a.multipleImplementations)!==null&&o!==void 0?o:ji(a.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(r=a.multipleReferences)!==null&&r!==void 0?r:ji(a.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:$n.string(a.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:$n.string(a.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:$n.string(a.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:$n.string(a.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:$n.string(a.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class A6 extends gi{constructor(){const e={enabled:!0,delay:300,sticky:!0,above:!0};super(55,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:m("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:m("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:m("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.above":{type:"boolean",default:e.above,description:m("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Ce(t.enabled,this.defaultValue.enabled),delay:kt.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:Ce(t.sticky,this.defaultValue.sticky),above:Ce(t.above,this.defaultValue.above)}}}class Nu extends zg{constructor(){super(133)}compute(e,t,i){return Nu.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=e.scrollBeyondLastLine?t-1:0,n=(e.viewLineCount+i)/(e.pixelRatio*e.height),o=Math.floor(e.viewLineCount/n);return{typicalViewportLineCount:t,extraLinesBeyondLastLine:i,desiredRatio:n,minimapLineCount:o}}static _computeMinimapLayout(e,t){const i=e.outerWidth,n=e.outerHeight,o=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(o*n),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:n};const r=t.stableMinimapLayoutInput,a=r&&e.outerHeight===r.outerHeight&&e.lineHeight===r.lineHeight&&e.typicalHalfwidthCharacterWidth===r.typicalHalfwidthCharacterWidth&&e.pixelRatio===r.pixelRatio&&e.scrollBeyondLastLine===r.scrollBeyondLastLine&&e.minimap.enabled===r.minimap.enabled&&e.minimap.side===r.minimap.side&&e.minimap.size===r.minimap.size&&e.minimap.showSlider===r.minimap.showSlider&&e.minimap.renderCharacters===r.minimap.renderCharacters&&e.minimap.maxColumn===r.minimap.maxColumn&&e.minimap.scale===r.minimap.scale&&e.verticalScrollbarWidth===r.verticalScrollbarWidth&&e.isViewportWrapping===r.isViewportWrapping,l=e.lineHeight,c=e.typicalHalfwidthCharacterWidth,d=e.scrollBeyondLastLine,h=e.minimap.renderCharacters;let u=o>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const g=e.minimap.maxColumn,f=e.minimap.size,_=e.minimap.side,A=e.verticalScrollbarWidth,b=e.viewLineCount,C=e.remainingWidth,w=e.isViewportWrapping,v=h?2:3;let L=Math.floor(o*n);const E=L/o;let S=!1,D=!1,x=v*u,R=u/o,O=1;if(f==="fill"||f==="fit"){const{typicalViewportLineCount:Le,extraLinesBeyondLastLine:We,desiredRatio:Nt,minimapLineCount:vt}=Nu.computeContainedMinimapLineCount({viewLineCount:b,scrollBeyondLastLine:d,height:n,lineHeight:l,pixelRatio:o});if(b/vt>1)S=!0,D=!0,u=1,x=1,R=u/o;else{let me=!1,It=u+1;if(f==="fit"){const Fi=Math.ceil((b+We)*x);w&&a&&C<=t.stableFitRemainingWidth?(me=!0,It=t.stableFitMaxMinimapScale):me=Fi>L}if(f==="fill"||me){S=!0;const Fi=u;x=Math.min(l*o,Math.max(1,Math.floor(1/Nt))),w&&a&&C<=t.stableFitRemainingWidth&&(It=t.stableFitMaxMinimapScale),u=Math.min(It,Math.max(1,Math.floor(x/v))),u>Fi&&(O=Math.min(2,u/Fi)),R=u/o/O,L=Math.ceil(Math.max(Le,b+We)*x),w?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=C,t.stableFitMaxMinimapScale=u):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const z=Math.floor(g*R),j=Math.min(z,Math.max(0,Math.floor((C-A-2)*R/(c+R)))+vl);let se=Math.floor(o*j);const he=se/o;se=Math.floor(se*O);const we=h?1:2,ve=_==="left"?0:i-j-A;return{renderMinimap:we,minimapLeft:ve,minimapWidth:j,minimapHeightIsEditorHeight:S,minimapIsSampling:D,minimapScale:u,minimapLineHeight:x,minimapCanvasInnerWidth:se,minimapCanvasInnerHeight:L,minimapCanvasOuterWidth:he,minimapCanvasOuterHeight:E}}static computeLayout(e,t){const i=t.outerWidth|0,n=t.outerHeight|0,o=t.lineHeight|0,r=t.lineNumbersDigitCount|0,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,c=t.pixelRatio,d=t.viewLineCount,h=e.get(125),u=h==="inherit"?e.get(124):h,g=u==="inherit"?e.get(120):u,f=e.get(123),_=e.get(2),A=t.isDominatedByLongLines,b=e.get(52),C=e.get(62).renderType!==0,w=e.get(63),v=e.get(96),L=e.get(67),E=e.get(94),S=E.verticalScrollbarSize,D=E.verticalHasArrows,x=E.arrowSize,R=E.horizontalScrollbarSize,O=e.get(60),z=e.get(39),j=e.get(101)!=="never";let se;if(typeof O=="string"&&/^\d+(\.\d+)?ch$/.test(O)){const xs=parseFloat(O.substr(0,O.length-2));se=kt.clampedInt(xs*a,0,0,1e3)}else se=kt.clampedInt(O,0,0,1e3);z&&j&&(se+=16);let he=0;if(C){const xs=Math.max(r,w);he=Math.round(xs*l)}let we=0;b&&(we=o);let ve=0,Le=ve+we,We=Le+he,Nt=We+se;const vt=i-we-he-se;let Ae=!1,me=!1,It=-1;_!==2&&(u==="inherit"&&A?(Ae=!0,me=!0):g==="on"||g==="bounded"?me=!0:g==="wordWrapColumn"&&(It=f));const Fi=Nu._computeMinimapLayout({outerWidth:i,outerHeight:n,lineHeight:o,typicalHalfwidthCharacterWidth:a,pixelRatio:c,scrollBeyondLastLine:v,minimap:L,verticalScrollbarWidth:S,viewLineCount:d,remainingWidth:vt,isViewportWrapping:me},t.memory||new nF);Fi.renderMinimap!==0&&Fi.minimapLeft===0&&(ve+=Fi.minimapWidth,Le+=Fi.minimapWidth,We+=Fi.minimapWidth,Nt+=Fi.minimapWidth);const xn=vt-Fi.minimapWidth,Es=Math.max(1,Math.floor((xn-S-2)/a)),ra=D?x:0;return me&&(It=Math.max(1,Es),g==="bounded"&&(It=Math.min(It,f))),{width:i,height:n,glyphMarginLeft:ve,glyphMarginWidth:we,lineNumbersLeft:Le,lineNumbersWidth:he,decorationsLeft:We,decorationsWidth:se,contentLeft:Nt,contentWidth:xn,minimap:Fi,viewportColumn:Es,isWordWrapMinified:Ae,isViewportWrapping:me,wrappingColumn:It,verticalScrollbarWidth:S,horizontalScrollbarHeight:R,overviewRuler:{top:ra,width:S,height:n-2*ra,right:0}}}}class b6 extends gi{constructor(){const e={enabled:!0};super(59,"lightbulb",e,{"editor.lightbulb.enabled":{type:"boolean",default:e.enabled,description:m("codeActions","Enables the code action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:Ce(e.enabled,this.defaultValue.enabled)}}}class C6 extends gi{constructor(){const e={stickyScroll:{enabled:!1}};super(34,"experimental",e,{"editor.experimental.stickyScroll.enabled":{type:"boolean",default:e.stickyScroll.enabled,description:m("editor.experimental.stickyScroll","Shows the nested current scopes during the scroll at the top of the editor.")}})}validate(e){var t;return!e||typeof e!="object"?this.defaultValue:{stickyScroll:{enabled:Ce((t=e.stickyScroll)===null||t===void 0?void 0:t.enabled,this.defaultValue.stickyScroll.enabled)}}}}class w6 extends gi{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(129,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:m("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[m("editor.inlayHints.on","Inlay hints are enabled"),m("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding `Ctrl+Alt`"),m("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding `Ctrl+Alt`"),m("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:m("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:m("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:m("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return typeof t.enabled=="boolean"&&(t.enabled=t.enabled?"on":"off"),{enabled:ji(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:kt.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:$n.string(t.fontFamily,this.defaultValue.fontFamily),padding:Ce(t.padding,this.defaultValue.padding)}}}class v6 extends Tr{constructor(){super(61,"lineHeight",to.lineHeight,e=>Tr.clamp(e,0,150),{markdownDescription:m("lineHeight",`Controls the line height.
|
7
7
|
- Use 0 to automatically compute the line height from the font size.
|
8
8
|
- Values between 0 and 8 will be used as a multiplier with the font size.
|
@@ -713,7 +713,7 @@ ${e.toString()}`}}class Tk{constructor(e=new k0,t=!1,i){this._activeInstantiatio
|
|
713
713
|
* Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
|
714
714
|
* Released under the MIT license
|
715
715
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
716
|
-
*-----------------------------------------------------------------------------*/fe({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>Promise.resolve().then(()=>require("./freemarker2-
|
716
|
+
*-----------------------------------------------------------------------------*/fe({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>Promise.resolve().then(()=>require("./freemarker2-89c6e6f3.js")).then(s=>s.TagAutoInterpolationDollar)});fe({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>Promise.resolve().then(()=>require("./freemarker2-89c6e6f3.js")).then(s=>s.TagAngleInterpolationDollar)});fe({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>Promise.resolve().then(()=>require("./freemarker2-89c6e6f3.js")).then(s=>s.TagBracketInterpolationDollar)});fe({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>Promise.resolve().then(()=>require("./freemarker2-89c6e6f3.js")).then(s=>s.TagAngleInterpolationBracket)});fe({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>Promise.resolve().then(()=>require("./freemarker2-89c6e6f3.js")).then(s=>s.TagBracketInterpolationBracket)});fe({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>Promise.resolve().then(()=>require("./freemarker2-89c6e6f3.js")).then(s=>s.TagAutoInterpolationDollar)});fe({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>Promise.resolve().then(()=>require("./freemarker2-89c6e6f3.js")).then(s=>s.TagAutoInterpolationBracket)});/*!-----------------------------------------------------------------------------
|
717
717
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
718
718
|
* Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
|
719
719
|
* Released under the MIT license
|
@@ -728,7 +728,7 @@ ${e.toString()}`}}class Tk{constructor(e=new k0,t=!1,i){this._activeInstantiatio
|
|
728
728
|
* Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
|
729
729
|
* Released under the MIT license
|
730
730
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
731
|
-
*-----------------------------------------------------------------------------*/fe({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>Promise.resolve().then(()=>require("./handlebars-
|
731
|
+
*-----------------------------------------------------------------------------*/fe({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>Promise.resolve().then(()=>require("./handlebars-e0f7efbe.js"))});/*!-----------------------------------------------------------------------------
|
732
732
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
733
733
|
* Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
|
734
734
|
* Released under the MIT license
|
@@ -738,7 +738,7 @@ ${e.toString()}`}}class Tk{constructor(e=new k0,t=!1,i){this._activeInstantiatio
|
|
738
738
|
* Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
|
739
739
|
* Released under the MIT license
|
740
740
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
741
|
-
*-----------------------------------------------------------------------------*/fe({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:()=>Promise.resolve().then(()=>require("./html-
|
741
|
+
*-----------------------------------------------------------------------------*/fe({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:()=>Promise.resolve().then(()=>require("./html-d8278158.js"))});/*!-----------------------------------------------------------------------------
|
742
742
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
743
743
|
* Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
|
744
744
|
* Released under the MIT license
|
@@ -753,7 +753,7 @@ ${e.toString()}`}}class Tk{constructor(e=new k0,t=!1,i){this._activeInstantiatio
|
|
753
753
|
* Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
|
754
754
|
* Released under the MIT license
|
755
755
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
756
|
-
*-----------------------------------------------------------------------------*/fe({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>Promise.resolve().then(()=>require("./javascript-
|
756
|
+
*-----------------------------------------------------------------------------*/fe({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>Promise.resolve().then(()=>require("./javascript-5d8f5f2a.js"))});/*!-----------------------------------------------------------------------------
|
757
757
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
758
758
|
* Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
|
759
759
|
* Released under the MIT license
|
@@ -783,7 +783,7 @@ ${e.toString()}`}}class Tk{constructor(e=new k0,t=!1,i){this._activeInstantiatio
|
|
783
783
|
* Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
|
784
784
|
* Released under the MIT license
|
785
785
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
786
|
-
*-----------------------------------------------------------------------------*/fe({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>Promise.resolve().then(()=>require("./liquid-
|
786
|
+
*-----------------------------------------------------------------------------*/fe({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>Promise.resolve().then(()=>require("./liquid-97280cdd.js"))});/*!-----------------------------------------------------------------------------
|
787
787
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
788
788
|
* Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
|
789
789
|
* Released under the MIT license
|
@@ -873,7 +873,7 @@ ${e.toString()}`}}class Tk{constructor(e=new k0,t=!1,i){this._activeInstantiatio
|
|
873
873
|
* Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
|
874
874
|
* Released under the MIT license
|
875
875
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
876
|
-
*-----------------------------------------------------------------------------*/fe({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>Promise.resolve().then(()=>require("./python-
|
876
|
+
*-----------------------------------------------------------------------------*/fe({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>Promise.resolve().then(()=>require("./python-e4403078.js"))});/*!-----------------------------------------------------------------------------
|
877
877
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
878
878
|
* Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
|
879
879
|
* Released under the MIT license
|
@@ -888,7 +888,7 @@ ${e.toString()}`}}class Tk{constructor(e=new k0,t=!1,i){this._activeInstantiatio
|
|
888
888
|
* Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
|
889
889
|
* Released under the MIT license
|
890
890
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
891
|
-
*-----------------------------------------------------------------------------*/fe({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>Promise.resolve().then(()=>require("./razor-
|
891
|
+
*-----------------------------------------------------------------------------*/fe({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>Promise.resolve().then(()=>require("./razor-9fd114ce.js"))});/*!-----------------------------------------------------------------------------
|
892
892
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
893
893
|
* Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
|
894
894
|
* Released under the MIT license
|
@@ -988,7 +988,7 @@ ${e.toString()}`}}class Tk{constructor(e=new k0,t=!1,i){this._activeInstantiatio
|
|
988
988
|
* Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
|
989
989
|
* Released under the MIT license
|
990
990
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
991
|
-
*-----------------------------------------------------------------------------*/fe({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>Promise.resolve().then(()=>require("./typescript-
|
991
|
+
*-----------------------------------------------------------------------------*/fe({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>Promise.resolve().then(()=>require("./typescript-1b8311ff.js"))});/*!-----------------------------------------------------------------------------
|
992
992
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
993
993
|
* Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
|
994
994
|
* Released under the MIT license
|
@@ -998,32 +998,32 @@ ${e.toString()}`}}class Tk{constructor(e=new k0,t=!1,i){this._activeInstantiatio
|
|
998
998
|
* Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
|
999
999
|
* Released under the MIT license
|
1000
1000
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
1001
|
-
*-----------------------------------------------------------------------------*/fe({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xsl"],firstLine:"(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",aliases:["XML","xml"],mimetypes:["text/xml","application/xml","application/xaml+xml","application/xml-dtd"],loader:()=>Promise.resolve().then(()=>require("./xml-
|
1001
|
+
*-----------------------------------------------------------------------------*/fe({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xsl"],firstLine:"(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",aliases:["XML","xml"],mimetypes:["text/xml","application/xml","application/xaml+xml","application/xml-dtd"],loader:()=>Promise.resolve().then(()=>require("./xml-c437fe38.js"))});/*!-----------------------------------------------------------------------------
|
1002
1002
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
1003
1003
|
* Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
|
1004
1004
|
* Released under the MIT license
|
1005
1005
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
1006
|
-
*-----------------------------------------------------------------------------*/fe({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>Promise.resolve().then(()=>require("./yaml-
|
1006
|
+
*-----------------------------------------------------------------------------*/fe({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>Promise.resolve().then(()=>require("./yaml-8c10a8e6.js"))});/*!-----------------------------------------------------------------------------
|
1007
1007
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
1008
1008
|
* Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
|
1009
1009
|
* Released under the MIT license
|
1010
1010
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
1011
|
-
*-----------------------------------------------------------------------------*/var sie=Object.defineProperty,rie=Object.getOwnPropertyDescriptor,aie=Object.getOwnPropertyNames,lie=Object.prototype.hasOwnProperty,g2=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of aie(e))!lie.call(s,n)&&n!==t&&sie(s,n,{get:()=>e[n],enumerable:!(i=rie(e,n))||i.enumerable});return s},cie=(s,e,t)=>(g2(s,e,"default"),t&&g2(t,e,"default")),tf={};cie(tf,ef);var Hk=class{constructor(e,t,i){Gt(this,"_onDidChange",new tf.Emitter);Gt(this,"_options");Gt(this,"_modeConfiguration");Gt(this,"_languageId");this._languageId=e,this.setOptions(t),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)}},Wk={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}},Vk={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},I5=new Hk("css",Wk,Vk),k5=new Hk("scss",Wk,Vk),M5=new Hk("less",Wk,Vk);tf.languages.css={cssDefaults:I5,lessDefaults:M5,scssDefaults:k5};function zk(){return Promise.resolve().then(()=>require("./cssMode-
|
1011
|
+
*-----------------------------------------------------------------------------*/var sie=Object.defineProperty,rie=Object.getOwnPropertyDescriptor,aie=Object.getOwnPropertyNames,lie=Object.prototype.hasOwnProperty,g2=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of aie(e))!lie.call(s,n)&&n!==t&&sie(s,n,{get:()=>e[n],enumerable:!(i=rie(e,n))||i.enumerable});return s},cie=(s,e,t)=>(g2(s,e,"default"),t&&g2(t,e,"default")),tf={};cie(tf,ef);var Hk=class{constructor(e,t,i){Gt(this,"_onDidChange",new tf.Emitter);Gt(this,"_options");Gt(this,"_modeConfiguration");Gt(this,"_languageId");this._languageId=e,this.setOptions(t),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)}},Wk={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}},Vk={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},I5=new Hk("css",Wk,Vk),k5=new Hk("scss",Wk,Vk),M5=new Hk("less",Wk,Vk);tf.languages.css={cssDefaults:I5,lessDefaults:M5,scssDefaults:k5};function zk(){return Promise.resolve().then(()=>require("./cssMode-2cffe81f.js"))}tf.languages.onLanguage("less",()=>{zk().then(s=>s.setupMode(M5))});tf.languages.onLanguage("scss",()=>{zk().then(s=>s.setupMode(k5))});tf.languages.onLanguage("css",()=>{zk().then(s=>s.setupMode(I5))});/*!-----------------------------------------------------------------------------
|
1012
1012
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
1013
1013
|
* Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
|
1014
1014
|
* Released under the MIT license
|
1015
1015
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
1016
|
-
*-----------------------------------------------------------------------------*/var die=Object.defineProperty,hie=Object.getOwnPropertyDescriptor,uie=Object.getOwnPropertyNames,gie=Object.prototype.hasOwnProperty,f2=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of uie(e))!gie.call(s,n)&&n!==t&&die(s,n,{get:()=>e[n],enumerable:!(i=hie(e,n))||i.enumerable});return s},fie=(s,e,t)=>(f2(s,e,"default"),t&&f2(t,e,"default")),q0={};fie(q0,ef);var mie=class{constructor(e,t,i){Gt(this,"_onDidChange",new q0.Emitter);Gt(this,"_options");Gt(this,"_modeConfiguration");Gt(this,"_languageId");this._languageId=e,this.setOptions(t),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)}},pie={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"},X0={format:pie,suggest:{},data:{useDefaultDataProvider:!0}};function Z0(s){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:s===Mm,documentFormattingEdits:s===Mm,documentRangeFormattingEdits:s===Mm}}var Mm="html",m2="handlebars",p2="razor",N5=ev(Mm,X0,Z0(Mm)),_ie=N5.defaults,T5=ev(m2,X0,Z0(m2)),Aie=T5.defaults,B5=ev(p2,X0,Z0(p2)),bie=B5.defaults;q0.languages.html={htmlDefaults:_ie,razorDefaults:bie,handlebarDefaults:Aie,htmlLanguageService:N5,handlebarLanguageService:T5,razorLanguageService:B5,registerHTMLLanguageService:ev};function Cie(){return Promise.resolve().then(()=>require("./htmlMode-
|
1016
|
+
*-----------------------------------------------------------------------------*/var die=Object.defineProperty,hie=Object.getOwnPropertyDescriptor,uie=Object.getOwnPropertyNames,gie=Object.prototype.hasOwnProperty,f2=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of uie(e))!gie.call(s,n)&&n!==t&&die(s,n,{get:()=>e[n],enumerable:!(i=hie(e,n))||i.enumerable});return s},fie=(s,e,t)=>(f2(s,e,"default"),t&&f2(t,e,"default")),q0={};fie(q0,ef);var mie=class{constructor(e,t,i){Gt(this,"_onDidChange",new q0.Emitter);Gt(this,"_options");Gt(this,"_modeConfiguration");Gt(this,"_languageId");this._languageId=e,this.setOptions(t),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)}},pie={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"},X0={format:pie,suggest:{},data:{useDefaultDataProvider:!0}};function Z0(s){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:s===Mm,documentFormattingEdits:s===Mm,documentRangeFormattingEdits:s===Mm}}var Mm="html",m2="handlebars",p2="razor",N5=ev(Mm,X0,Z0(Mm)),_ie=N5.defaults,T5=ev(m2,X0,Z0(m2)),Aie=T5.defaults,B5=ev(p2,X0,Z0(p2)),bie=B5.defaults;q0.languages.html={htmlDefaults:_ie,razorDefaults:bie,handlebarDefaults:Aie,htmlLanguageService:N5,handlebarLanguageService:T5,razorLanguageService:B5,registerHTMLLanguageService:ev};function Cie(){return Promise.resolve().then(()=>require("./htmlMode-989d6a85.js"))}function ev(s,e=X0,t=Z0(s)){const i=new mie(s,e,t);let n;const o=q0.languages.onLanguage(s,async()=>{n=(await Cie()).setupMode(i)});return{defaults:i,dispose(){o.dispose(),n==null||n.dispose(),n=void 0}}}/*!-----------------------------------------------------------------------------
|
1017
1017
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
1018
1018
|
* Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
|
1019
1019
|
* Released under the MIT license
|
1020
1020
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
1021
|
-
*-----------------------------------------------------------------------------*/var wie=Object.defineProperty,vie=Object.getOwnPropertyDescriptor,Sie=Object.getOwnPropertyNames,yie=Object.prototype.hasOwnProperty,_2=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Sie(e))!yie.call(s,n)&&n!==t&&wie(s,n,{get:()=>e[n],enumerable:!(i=vie(e,n))||i.enumerable});return s},Die=(s,e,t)=>(_2(s,e,"default"),t&&_2(t,e,"default")),x_={};Die(x_,ef);var Lie=class{constructor(e,t,i){Gt(this,"_onDidChange",new x_.Emitter);Gt(this,"_diagnosticsOptions");Gt(this,"_modeConfiguration");Gt(this,"_languageId");this._languageId=e,this.setDiagnosticsOptions(t),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)}},Eie={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},xie={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},R5=new Lie("json",Eie,xie);x_.languages.json={jsonDefaults:R5};function Iie(){return Promise.resolve().then(()=>require("./jsonMode-
|
1021
|
+
*-----------------------------------------------------------------------------*/var wie=Object.defineProperty,vie=Object.getOwnPropertyDescriptor,Sie=Object.getOwnPropertyNames,yie=Object.prototype.hasOwnProperty,_2=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Sie(e))!yie.call(s,n)&&n!==t&&wie(s,n,{get:()=>e[n],enumerable:!(i=vie(e,n))||i.enumerable});return s},Die=(s,e,t)=>(_2(s,e,"default"),t&&_2(t,e,"default")),x_={};Die(x_,ef);var Lie=class{constructor(e,t,i){Gt(this,"_onDidChange",new x_.Emitter);Gt(this,"_diagnosticsOptions");Gt(this,"_modeConfiguration");Gt(this,"_languageId");this._languageId=e,this.setDiagnosticsOptions(t),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)}},Eie={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},xie={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},R5=new Lie("json",Eie,xie);x_.languages.json={jsonDefaults:R5};function Iie(){return Promise.resolve().then(()=>require("./jsonMode-33e7baa8.js"))}x_.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});x_.languages.onLanguage("json",()=>{Iie().then(s=>s.setupMode(R5))});/*!-----------------------------------------------------------------------------
|
1022
1022
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
1023
1023
|
* Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
|
1024
1024
|
* Released under the MIT license
|
1025
1025
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
1026
|
-
*-----------------------------------------------------------------------------*/var kie=Object.defineProperty,Mie=Object.getOwnPropertyDescriptor,Nie=Object.getOwnPropertyNames,Tie=Object.prototype.hasOwnProperty,A2=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Nie(e))!Tie.call(s,n)&&n!==t&&kie(s,n,{get:()=>e[n],enumerable:!(i=Mie(e,n))||i.enumerable});return s},Bie=(s,e,t)=>(A2(s,e,"default"),t&&A2(t,e,"default")),Rie="4.5.5",Eg={};Bie(Eg,ef);var F5=(s=>(s[s.None=0]="None",s[s.CommonJS=1]="CommonJS",s[s.AMD=2]="AMD",s[s.UMD=3]="UMD",s[s.System=4]="System",s[s.ES2015=5]="ES2015",s[s.ESNext=99]="ESNext",s))(F5||{}),O5=(s=>(s[s.None=0]="None",s[s.Preserve=1]="Preserve",s[s.React=2]="React",s[s.ReactNative=3]="ReactNative",s[s.ReactJSX=4]="ReactJSX",s[s.ReactJSXDev=5]="ReactJSXDev",s))(O5||{}),P5=(s=>(s[s.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",s[s.LineFeed=1]="LineFeed",s))(P5||{}),H5=(s=>(s[s.ES3=0]="ES3",s[s.ES5=1]="ES5",s[s.ES2015=2]="ES2015",s[s.ES2016=3]="ES2016",s[s.ES2017=4]="ES2017",s[s.ES2018=5]="ES2018",s[s.ES2019=6]="ES2019",s[s.ES2020=7]="ES2020",s[s.ESNext=99]="ESNext",s[s.JSON=100]="JSON",s[s.Latest=99]="Latest",s))(H5||{}),W5=(s=>(s[s.Classic=1]="Classic",s[s.NodeJs=2]="NodeJs",s))(W5||{}),V5=class{constructor(s,e,t,i){Gt(this,"_onDidChange",new Eg.Emitter);Gt(this,"_onDidExtraLibsChange",new Eg.Emitter);Gt(this,"_extraLibs");Gt(this,"_removedExtraLibs");Gt(this,"_eagerModelSync");Gt(this,"_compilerOptions");Gt(this,"_diagnosticsOptions");Gt(this,"_workerOptions");Gt(this,"_onDidExtraLibsChangeTimeout");Gt(this,"_inlayHintsOptions");this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(s),this.setDiagnosticsOptions(e),this.setWorkerOptions(t),this.setInlayHintsOptions(i),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(s,e){let t;if(typeof e>"u"?t=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t=e,this._extraLibs[t]&&this._extraLibs[t].content===s)return{dispose:()=>{}};let i=1;return this._removedExtraLibs[t]&&(i=this._removedExtraLibs[t]+1),this._extraLibs[t]&&(i=this._extraLibs[t].version+1),this._extraLibs[t]={content:s,version:i},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let n=this._extraLibs[t];n&&n.version===i&&(delete this._extraLibs[t],this._removedExtraLibs[t]=i,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(s){for(const e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),s&&s.length>0)for(const e of s){const t=e.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=e.content;let n=1;this._removedExtraLibs[t]&&(n=this._removedExtraLibs[t]+1),this._extraLibs[t]={content:i,version:n}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(s){this._compilerOptions=s||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(s){this._diagnosticsOptions=s||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(s){this._workerOptions=s||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(s){this._inlayHintsOptions=s||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(s){}setEagerModelSync(s){this._eagerModelSync=s}getEagerModelSync(){return this._eagerModelSync}},Fie=Rie,Uk=new V5({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{}),z5=new V5({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{}),Oie=()=>tv().then(s=>s.getTypeScriptWorker()),Pie=()=>tv().then(s=>s.getJavaScriptWorker());Eg.languages.typescript={ModuleKind:F5,JsxEmit:O5,NewLineKind:P5,ScriptTarget:H5,ModuleResolutionKind:W5,typescriptVersion:Fie,typescriptDefaults:Uk,javascriptDefaults:z5,getTypeScriptWorker:Oie,getJavaScriptWorker:Pie};function tv(){return Promise.resolve().then(()=>require("./tsMode-9087ec29.js"))}Eg.languages.onLanguage("typescript",()=>tv().then(s=>s.setupTypeScript(Uk)));Eg.languages.onLanguage("javascript",()=>tv().then(s=>s.setupJavaScript(z5)));var Hie=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Wie=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}},iv=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((i=i.apply(s,e||[])).next())})};const nv=new ae("selectionAnchorSet",!1);let sl=class U5{constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=nv.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}static get(e){return e.getContribution(U5.ID)}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations(t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(ce.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new On().appendText(m("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),Yi(m("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 t=this.editor.getPosition();this.editor.setSelection(ce.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations(t=>{t.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};sl.ID="editor.contrib.selectionAnchorController";sl=Hie([Wie(1,xe)],sl);class Vie extends le{constructor(){super({id:"editor.action.setSelectionAnchor",label:m("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:k.editorTextFocus,primary:vi(2089,2080),weight:100}})}run(e,t){var i;return iv(this,void 0,void 0,function*(){(i=sl.get(t))===null||i===void 0||i.setSelectionAnchor()})}}class zie extends le{constructor(){super({id:"editor.action.goToSelectionAnchor",label:m("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:nv})}run(e,t){var i;return iv(this,void 0,void 0,function*(){(i=sl.get(t))===null||i===void 0||i.goToSelectionAnchor()})}}class Uie extends le{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:m("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:nv,kbOpts:{kbExpr:k.editorTextFocus,primary:vi(2089,2089),weight:100}})}run(e,t){var i;return iv(this,void 0,void 0,function*(){(i=sl.get(t))===null||i===void 0||i.selectFromAnchorToCursor()})}}class Qie extends le{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:m("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:nv,kbOpts:{kbExpr:k.editorTextFocus,primary:9,weight:100}})}run(e,t){var i;return iv(this,void 0,void 0,function*(){(i=sl.get(t))===null||i===void 0||i.cancelSelectionAnchor()})}}et(sl.ID,sl);ie(Vie);ie(zie);ie(Uie);ie(Qie);const jie=M("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hcDark:"#A0A0A0",hcLight:"#A0A0A0"},m("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class Gie extends le{constructor(){super({id:"editor.action.jumpToBracket",label:m("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:k.editorTextFocus,primary:3160,weight:100}})}run(e,t){var i;(i=qs.get(t))===null||i===void 0||i.jumpToBracket()}}class Yie extends le{constructor(){super({id:"editor.action.selectToBracket",label:m("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,description:{description:"Select to Bracket",args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){var n;let o=!0;i&&i.selectBrackets===!1&&(o=!1),(n=qs.get(t))===null||n===void 0||n.selectToBracket(o)}}class Kie{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}class qs extends V{constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new mt(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(66),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(t=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(t=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(66)&&(this._matchBrackets=this._editor.getOption(66),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()}))}static get(e){return e.getContribution(qs.ID)}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map(i=>{const n=i.getStartPosition(),o=e.bracketPairs.matchBracket(n);let r=null;if(o)o[0].containsPosition(n)&&!o[1].containsPosition(n)?r=o[1].getStartPosition():o[1].containsPosition(n)&&(r=o[0].getStartPosition());else{const a=e.bracketPairs.findEnclosingBrackets(n);if(a)r=a[1].getStartPosition();else{const l=e.bracketPairs.findNextBracket(n);l&&l.range&&(r=l.range.getStartPosition())}}return r?new ce(r.lineNumber,r.column,r.lineNumber,r.column):new ce(n.lineNumber,n.column,n.lineNumber,n.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach(n=>{const o=n.getStartPosition();let r=t.bracketPairs.matchBracket(o);if(!r&&(r=t.bracketPairs.findEnclosingBrackets(o),!r)){const c=t.bracketPairs.findNextBracket(o);c&&c.range&&(r=t.bracketPairs.matchBracket(c.range.getStartPosition()))}let a=null,l=null;if(r){r.sort(y.compareRangesUsingStarts);const[c,d]=r;if(a=e?c.getStartPosition():c.getEndPosition(),l=e?d.getEndPosition():d.getStartPosition(),d.containsPosition(o)){const h=a;a=l,l=h}}a&&l&&i.push(new ce(a.lineNumber,a.column,l.lineNumber,l.column))}),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();const e=[];let t=0;for(const i of this._lastBracketsData){const n=i.brackets;n&&(e[t++]={range:n[0],options:i.options},e[t++]={range:n[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 t=this._editor.getModel(),i=t.getVersionId();let n=[];this._lastVersionId===i&&(n=this._lastBracketsData);const o=[];let r=0;for(let h=0,u=e.length;h<u;h++){const g=e[h];g.isEmpty()&&(o[r++]=g.getStartPosition())}o.length>1&&o.sort(P.compare);const a=[];let l=0,c=0;const d=n.length;for(let h=0,u=o.length;h<u;h++){const g=o[h];for(;c<d&&n[c].position.isBefore(g);)c++;if(c<d&&n[c].position.equals(g))a[l++]=n[c];else{let f=t.bracketPairs.matchBracket(g,20),_=qs._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;!f&&this._matchBrackets==="always"&&(f=t.bracketPairs.findEnclosingBrackets(g,20),_=qs._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),a[l++]=new Kie(g,f,_)}}this._lastBracketsData=a,this._lastVersionId=i}}qs.ID="editor.contrib.bracketMatchingController";qs._DECORATION_OPTIONS_WITH_OVERVIEW_RULER=Ie.register({description:"bracket-match-overview",stickiness:1,className:"bracket-match",overviewRuler:{color:Jt(jie),position:$o.Center}});qs._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=Ie.register({description:"bracket-match-no-overview",stickiness:1,className:"bracket-match"});et(qs.ID,qs);ie(Yie);ie(Gie);xt((s,e)=>{const t=s.getColor(RQ);t&&e.addRule(`.monaco-editor .bracket-match { background-color: ${t}; }`);const i=s.getColor($4);i&&e.addRule(`.monaco-editor .bracket-match { border: 1px solid ${i}; }`)});Ko.appendMenuItem(T.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:m({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2});class Jie{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;const i=this._selection.startLineNumber,n=this._selection.startColumn,o=this._selection.endColumn;if(!(this._isMovingLeft&&n===1)&&!(!this._isMovingLeft&&o===e.getLineMaxColumn(i)))if(this._isMovingLeft){const r=new y(i,n-1,i,n),a=e.getValueInRange(r);t.addEditOperation(r,null),t.addEditOperation(new y(i,o,i,o),a)}else{const r=new y(i,o,i,o+1),a=e.getValueInRange(r);t.addEditOperation(r,null),t.addEditOperation(new y(i,n,i,n),a)}}computeCursorState(e,t){return this._isMovingLeft?new ce(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new ce(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}class Q5 extends le{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;const i=[],n=t.getSelections();for(const o of n)i.push(new Jie(o,this.left));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}class $ie extends Q5{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:m("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:k.writable})}}class qie extends Q5{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:m("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:k.writable})}}ie($ie);ie(qie);class Xie extends le{constructor(){super({id:"editor.action.transposeLetters",label:m("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:k.writable,kbOpts:{kbExpr:k.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;const i=t.getModel(),n=[],o=t.getSelections();for(const r of o){if(!r.isEmpty())continue;const a=r.startLineNumber,l=r.startColumn,c=i.getLineMaxColumn(a);if(a===1&&(l===1||l===2&&c===2))continue;const d=l===c?r.getPosition():at.rightPosition(i,r.getPosition().lineNumber,r.getPosition().column),h=at.leftPosition(i,d),u=at.leftPosition(i,h),g=i.getValueInRange(y.fromPositions(u,h)),f=i.getValueInRange(y.fromPositions(h,d)),_=y.fromPositions(u,d);n.push(new Vi(_,f+g))}n.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}}ie(Xie);var Zie=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((i=i.apply(s,e||[])).next())})};const Xd="9_cutcopypaste",ene=Gs||document.queryCommandSupported("cut"),j5=Gs||document.queryCommandSupported("copy"),tne=typeof navigator.clipboard>"u"||Do?document.queryCommandSupported("paste"):!0;function Qk(s){return s.register(),s}const ine=ene?Qk(new jg({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:Gs?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:T.MenubarEditMenu,group:"2_ccp",title:m({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:T.EditorContext,group:Xd,title:m("actions.clipboard.cutLabel","Cut"),when:k.writable,order:1},{menuId:T.CommandPalette,group:"",title:m("actions.clipboard.cutLabel","Cut"),order:1},{menuId:T.SimpleEditorContext,group:Xd,title:m("actions.clipboard.cutLabel","Cut"),when:k.writable,order:1}]})):void 0,nne=j5?Qk(new jg({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:Gs?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:T.MenubarEditMenu,group:"2_ccp",title:m({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:T.EditorContext,group:Xd,title:m("actions.clipboard.copyLabel","Copy"),order:2},{menuId:T.CommandPalette,group:"",title:m("actions.clipboard.copyLabel","Copy"),order:1},{menuId:T.SimpleEditorContext,group:Xd,title:m("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;Ko.appendMenuItem(T.MenubarEditMenu,{submenu:T.MenubarCopy,title:{value:m("copy as","Copy As"),original:"Copy As"},group:"2_ccp",order:3});Ko.appendMenuItem(T.EditorContext,{submenu:T.EditorContextCopy,title:{value:m("copy as","Copy As"),original:"Copy As"},group:Xd,order:3});Ko.appendMenuItem(T.EditorContext,{submenu:T.EditorContextShare,title:{value:m("share","Share"),original:"Share"},group:"11_share",order:-1});const cS=tne?Qk(new jg({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:Gs?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:T.MenubarEditMenu,group:"2_ccp",title:m({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:T.EditorContext,group:Xd,title:m("actions.clipboard.pasteLabel","Paste"),when:k.writable,order:4},{menuId:T.CommandPalette,group:"",title:m("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:T.SimpleEditorContext,group:Xd,title:m("actions.clipboard.pasteLabel","Paste"),when:k.writable,order:4}]})):void 0;class one extends le{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:m("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:k.textInputFocus,primary:0,weight:100}})}run(e,t){!t.hasModel()||!t.getOption(33)&&t.getSelection().isEmpty()||(bD.forceCopyWithSyntaxHighlighting=!0,t.focus(),document.execCommand("copy"),bD.forceCopyWithSyntaxHighlighting=!1)}}function G5(s,e){s&&(s.addImplementation(1e4,"code-editor",(t,i)=>{const n=t.get(lt).getFocusedCodeEditor();if(n&&n.hasTextFocus()){const o=n.getOption(33),r=n.getSelection();return r&&r.isEmpty()&&!o||document.execCommand(e),!0}return!1}),s.addImplementation(0,"generic-dom",(t,i)=>(document.execCommand(e),!0)))}G5(ine,"cut");G5(nne,"copy");cS&&(cS.addImplementation(1e4,"code-editor",(s,e)=>{const t=s.get(lt),i=s.get(dl),n=t.getFocusedCodeEditor();return n&&n.hasTextFocus()?!document.execCommand("paste")&&yc?(()=>Zie(void 0,void 0,void 0,function*(){const r=yield i.readText();if(r!==""){const a=rp.INSTANCE.get(r);let l=!1,c=null,d=null;a&&(l=n.getOption(33)&&!!a.isFromEmptySelection,c=typeof a.multicursorText<"u"?a.multicursorText:null,d=a.mode),n.trigger("keyboard","paste",{text:r,pasteOnNewLine:l,multicursorText:c,mode:d})}}))():!0:!1}),cS.addImplementation(0,"generic-dom",(s,e)=>(document.execCommand("paste"),!0)));j5&&ie(one);class Ke{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+Ke.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(e){return new Ke(this.value+Ke.sep+e)}}Ke.sep=".";Ke.None=new Ke("@@none@@");Ke.Empty=new Ke("");Ke.QuickFix=new Ke("quickfix");Ke.Refactor=new Ke("refactor");Ke.Source=new Ke("source");Ke.SourceOrganizeImports=Ke.Source.append("organizeImports");Ke.SourceFixAll=Ke.Source.append("fixAll");var An;(function(s){s.Refactor="refactor",s.RefactorPreview="refactor preview",s.Lightbulb="lightbulb",s.Default="other (default)",s.SourceAction="source action",s.QuickFix="quick fix action",s.FixAll="fix all",s.OrganizeImports="organize imports",s.AutoFix="auto fix",s.QuickFixHover="quick fix hover window",s.OnSave="save participants",s.ProblemsView="problems view"})(An||(An={}));function sne(s,e){return!(s.include&&!s.include.intersects(e)||s.excludes&&s.excludes.some(t=>Y5(e,t,s.include))||!s.includeSourceActions&&Ke.Source.contains(e))}function rne(s,e){const t=e.kind?new Ke(e.kind):void 0;return!(s.include&&(!t||!s.include.contains(t))||s.excludes&&t&&s.excludes.some(i=>Y5(t,i,s.include))||!s.includeSourceActions&&t&&Ke.Source.contains(t)||s.onlyIncludePreferredActions&&!e.isPreferred)}function Y5(s,e,t){return!(!e.contains(s)||t&&e.contains(t))}class Mr{constructor(e,t,i){this.kind=e,this.apply=t,this.preferred=i}static fromUser(e,t){return!e||typeof e!="object"?new Mr(t.kind,t.apply,!1):new Mr(Mr.getKindFromUser(e,t.kind),Mr.getApplyFromUser(e,t.apply),Mr.getPreferredUser(e))}static getApplyFromUser(e,t){switch(typeof e.apply=="string"?e.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}}static getKindFromUser(e,t){return typeof e.kind=="string"?new Ke(e.kind):t}static getPreferredUser(e){return typeof e.preferred=="boolean"?e.preferred:!1}}var jk=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((i=i.apply(s,e||[])).next())})};const K5="editor.action.codeAction",J5="editor.action.refactor",ane="editor.action.refactor.preview",$5="editor.action.sourceAction",Gk="editor.action.organizeImports",Yk="editor.action.fixAll";class q5{constructor(e,t){this.action=e,this.provider=t}resolve(e){var t;return jk(this,void 0,void 0,function*(){if(!((t=this.provider)===null||t===void 0)&&t.resolveCodeAction&&!this.action.edit){let i;try{i=yield this.provider.resolveCodeAction(this.action,e)}catch(n){Ri(n)}i&&(this.action.edit=i.edit)}return this})}}class Kk extends V{constructor(e,t,i){super(),this.documentation=t,this._register(i),this.allActions=[...e].sort(Kk.codeActionsComparator),this.validActions=this.allActions.filter(({action:n})=>!n.disabled)}static codeActionsComparator({action:e},{action:t}){return e.isPreferred&&!t.isPreferred?-1:!e.isPreferred&&t.isPreferred?1:sn(e.diagnostics)?sn(t.diagnostics)?e.diagnostics[0].message.localeCompare(t.diagnostics[0].message):-1:sn(t.diagnostics)?1:0}get hasAutoFix(){return this.validActions.some(({action:e})=>!!e.kind&&Ke.QuickFix.contains(new Ke(e.kind))&&!!e.isPreferred)}}const b2={actions:[],documentation:void 0};function Jk(s,e,t,i,n,o){var r;const a=i.filter||{},l={only:(r=a.include)===null||r===void 0?void 0:r.value,trigger:i.type},c=new Ok(e,o),d=lne(s,e,a),h=new q,u=d.map(f=>jk(this,void 0,void 0,function*(){try{n.report(f);const _=yield f.provideCodeActions(e,t,l,c.token);if(_&&h.add(_),c.token.isCancellationRequested)return b2;const A=((_==null?void 0:_.actions)||[]).filter(C=>C&&rne(a,C)),b=cne(f,A,a.include);return{actions:A.map(C=>new q5(C,f)),documentation:b}}catch(_){if(ta(_))throw _;return Ri(_),b2}})),g=s.onDidChange(()=>{const f=s.all(e);So(f,d)||c.cancel()});return Promise.all(u).then(f=>{const _=f.map(b=>b.actions).flat(),A=s_(f.map(b=>b.documentation));return new Kk(_,A,h)}).finally(()=>{g.dispose(),c.dispose()})}function lne(s,e,t){return s.all(e).filter(i=>i.providedCodeActionKinds?i.providedCodeActionKinds.some(n=>sne(t,new Ke(n))):!0)}function cne(s,e,t){if(!s.documentation)return;const i=s.documentation.map(n=>({kind:new Ke(n.kind),command:n.command}));if(t){let n;for(const o of i)o.kind.contains(t)&&(n?n.kind.contains(o.kind)&&(n=o):n=o);if(n)return n==null?void 0:n.command}for(const n of e)if(n.kind){for(const o of i)if(o.kind.contains(new Ke(n.kind)))return o.command}}qe.registerCommand("_executeCodeActionProvider",function(s,e,t,i,n){return jk(this,void 0,void 0,function*(){if(!(e instanceof pe))throw Ys();const{codeActionProvider:o}=s.get(de),r=s.get(zt).getModel(e);if(!r)throw Ys();const a=ce.isISelection(t)?ce.liftSelection(t):y.isIRange(t)?r.validateRange(t):void 0;if(!a)throw Ys();const l=typeof i=="string"?new Ke(i):void 0,c=yield Jk(o,r,a,{type:1,triggerAction:An.Default,filter:{includeSourceActions:!0,include:l}},Sh.None,Ve.None),d=[],h=Math.min(c.validActions.length,typeof n=="number"?n:0);for(let u=0;u<h;u++)d.push(c.validActions[u].resolve(Ve.None));try{return yield Promise.all(d),c.validActions.map(u=>u.action)}finally{setTimeout(()=>c.dispose(),100)}})});var dne=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},hne=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};let so=class GL{constructor(e,t){this._messageWidget=new _n,this._messageListeners=new q,this._editor=e,this._visible=GL.MESSAGE_VISIBLE.bindTo(t)}static get(e){return e.getContribution(GL.ID)}dispose(){this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){Yi(e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new C2(this._editor,t,e),this._messageListeners.add(this._editor.onDidBlurEditorText(()=>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(new xo(()=>this.closeMessage(),3e3));let i;this._messageListeners.add(this._editor.onMouseMove(n=>{n.target.position&&(i?i.containsPosition(n.target.position)||this.closeMessage():i=new y(t.lineNumber-3,1,n.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(C2.fadeOut(this._messageWidget.value))}};so.ID="editor.contrib.messageController";so.MESSAGE_VISIBLE=new ae("messageVisible",!1,m("messageVisible","Whether the editor is currently showing an inline message"));so=dne([hne(1,xe)],so);const une=Li.bindToContribution(so.get);ee(new une({id:"leaveEditorMessage",precondition:so.MESSAGE_VISIBLE,handler:s=>s.closeMessage(),kbOpts:{weight:100+30,primary:9}}));let C2=class{constructor(e,{lineNumber:t,column:i},n){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:i},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";const o=document.createElement("div");o.classList.add("anchor","top"),this._domNode.appendChild(o);const r=document.createElement("div");r.classList.add("message"),r.textContent=n,this._domNode.appendChild(r);const a=document.createElement("div");a.classList.add("anchor","below"),this._domNode.appendChild(a),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}static fadeOut(e){const t=()=>{e.dispose(),clearTimeout(i),e.getDomNode().removeEventListener("animationend",t)},i=setTimeout(t,110);return e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}}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)}};et(so.ID,so);var X5=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Aa=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}},gne=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((i=i.apply(s,e||[])).next())})};const nf={Visible:new ae("CodeActionMenuVisible",!1,m("CodeActionMenuVisible","Whether the code action list widget is visible"))};class dS extends io{constructor(e,t){super(e.command?e.command.id:e.title,fne(e.title),void 0,!e.disabled,t),this.action=e}}function fne(s){return s.replace(/\r\n|\r|\n/g," ")}const mne="codeActionWidget",hS=26;let YL=class{constructor(e,t){this.acceptKeybindings=e,this.keybindingService=t}get templateId(){return mne}renderTemplate(e){const t=Object.create(null);return t.disposables=[],t.root=e,t.text=document.createElement("span"),e.append(t.text),t}renderElement(e,t,i){const n=i,o=e.title,r=e.isEnabled,a=e.isSeparator,l=e.isDocumentation;n.text.textContent=o,r?n.root.classList.remove("option-disabled"):(n.root.classList.add("option-disabled"),n.root.style.backgroundColor="transparent !important"),a&&(n.root.classList.add("separator"),n.root.style.height="10px"),l||(()=>{var d,h;const[u,g]=this.acceptKeybindings;n.root.title=m({key:"label",comment:['placeholders are keybindings, e.g "F2 to Refactor, Shift+F2 to Preview"']},"{0} to Refactor, {1} to Preview",(d=this.keybindingService.lookupKeybinding(u))===null||d===void 0?void 0:d.getLabel(),(h=this.keybindingService.lookupKeybinding(g))===null||h===void 0?void 0:h.getLabel())})()}disposeTemplate(e){e.disposables=it(e.disposables)}};YL=X5([Aa(1,pi)],YL);let mw=class KL extends V{constructor(e,t,i,n,o,r,a,l,c,d){super(),this._editor=e,this._delegate=t,this._contextMenuService=i,this._languageFeaturesService=o,this._telemetryService=r,this._configurationService=l,this._contextViewService=c,this._contextKeyService=d,this._showingActions=this._register(new _n),this.codeActionList=this._register(new _n),this.options=[],this._visible=!1,this.viewItems=[],this.hasSeperator=!1,this._keybindingResolver=new ov({getKeybindings:()=>n.getKeybindings()}),this._ctxMenuWidgetVisible=nf.Visible.bindTo(this._contextKeyService),this.listRenderer=new YL(["onEnterSelectCodeAction","onEnterSelectCodeActionWithPreview"],n)}get isVisible(){return this._visible}isCodeActionWidgetEnabled(e){return this._configurationService.getValue("editor.experimental.useCustomCodeActionMenu",{resource:e.uri})}_onListSelection(e){e.elements.length&&e.elements.forEach(t=>{t.isEnabled&&(t.action.run(),this.hideCodeActionWidget())})}_onListHover(e){var t,i,n,o;e.element?!((i=e.element)===null||i===void 0)&&i.isEnabled?((n=this.codeActionList.value)===null||n===void 0||n.setFocus([e.element.index]),this.focusedEnabledItem=this.viewItems.indexOf(e.element),this.currSelectedItem=e.element.index):(this.currSelectedItem=void 0,(o=this.codeActionList.value)===null||o===void 0||o.setFocus([e.element.index])):(this.currSelectedItem=void 0,(t=this.codeActionList.value)===null||t===void 0||t.setFocus([]))}renderCodeActionMenuList(e,t){var i;const n=new q,o=document.createElement("div"),r=document.createElement("div");this.block=e.appendChild(r),this.block.classList.add("context-view-block"),this.block.style.position="fixed",this.block.style.cursor="initial",this.block.style.left="0",this.block.style.top="0",this.block.style.width="100%",this.block.style.height="100%",this.block.style.zIndex="-1",n.add(K(this.block,re.MOUSE_DOWN,u=>u.stopPropagation())),o.id="codeActionMenuWidget",o.classList.add("codeActionMenuWidget"),e.appendChild(o),this.codeActionList.value=new ar("codeActionWidget",o,{getHeight(u){return u.isSeparator?10:hS},getTemplateId(u){return"codeActionWidget"}},[this.listRenderer],{keyboardSupport:!1}),n.add(this.codeActionList.value.onMouseOver(u=>this._onListHover(u))),n.add(this.codeActionList.value.onDidChangeFocus(u=>{var g;return(g=this.codeActionList.value)===null||g===void 0?void 0:g.domFocus()})),n.add(this.codeActionList.value.onDidChangeSelection(u=>this._onListSelection(u))),n.add(this._editor.onDidLayoutChange(u=>this.hideCodeActionWidget())),t.forEach((u,g)=>{const f=u.class==="separator";let _=!1;u instanceof dS&&(_=u.action.kind===KL.documentationID),f&&(this.hasSeperator=!0);const A={title:u.label,detail:u.tooltip,action:t[g],isEnabled:u.enabled,isSeparator:f,index:g,isDocumentation:_};u.enabled&&this.viewItems.push(A),this.options.push(A)}),this.codeActionList.value.splice(0,this.codeActionList.value.length,this.options);const a=this.hasSeperator?(t.length-1)*hS+10:t.length*hS;o.style.height=String(a)+"px",this.codeActionList.value.layout(a);const l=[];this.options.forEach((u,g)=>{var f,_;if(!this.codeActionList.value)return;const A=(_=document.getElementById((f=this.codeActionList.value)===null||f===void 0?void 0:f.getElementID(g)))===null||_===void 0?void 0:_.getElementsByTagName("span")[0].offsetWidth;l.push(Number(A))});const c=Math.max(...l);o.style.width=c+52+"px",(i=this.codeActionList.value)===null||i===void 0||i.layout(a,c),this.viewItems.length<1||this.viewItems.every(u=>u.isDocumentation)?this.currSelectedItem=void 0:(this.focusedEnabledItem=0,this.currSelectedItem=this.viewItems[0].index,this.codeActionList.value.setFocus([this.currSelectedItem])),this.codeActionList.value.domFocus();const d=Pd(e),h=d.onDidBlur(()=>{this.hideCodeActionWidget()});return n.add(h),n.add(d),this._ctxMenuWidgetVisible.set(!0),n}focusPrevious(){var e;if(typeof this.focusedEnabledItem>"u")this.focusedEnabledItem=this.viewItems[0].index;else if(this.viewItems.length<1)return!1;const t=this.focusedEnabledItem;let i;do this.focusedEnabledItem=this.focusedEnabledItem-1,this.focusedEnabledItem<0&&(this.focusedEnabledItem=this.viewItems.length-1),i=this.viewItems[this.focusedEnabledItem],(e=this.codeActionList.value)===null||e===void 0||e.setFocus([i.index]),this.currSelectedItem=i.index;while(this.focusedEnabledItem!==t&&(!i.isEnabled||i.action.id===an.ID));return!0}focusNext(){var e;if(typeof this.focusedEnabledItem>"u")this.focusedEnabledItem=this.viewItems.length-1;else if(this.viewItems.length<1)return!1;const t=this.focusedEnabledItem;let i;do this.focusedEnabledItem=(this.focusedEnabledItem+1)%this.viewItems.length,i=this.viewItems[this.focusedEnabledItem],(e=this.codeActionList.value)===null||e===void 0||e.setFocus([i.index]),this.currSelectedItem=i.index;while(this.focusedEnabledItem!==t&&(!i.isEnabled||i.action.id===an.ID));return!0}navigateListWithKeysUp(){this.focusPrevious()}navigateListWithKeysDown(){this.focusNext()}onEnterSet(){var e;typeof this.currSelectedItem=="number"&&((e=this.codeActionList.value)===null||e===void 0||e.setSelection([this.currSelectedItem]))}dispose(){super.dispose()}hideCodeActionWidget(){this._ctxMenuWidgetVisible.reset(),this.options=[],this.viewItems=[],this.focusedEnabledItem=0,this.currSelectedItem=void 0,this.hasSeperator=!1,this._contextViewService.hideContextView({source:this})}codeActionTelemetry(e,t,i){this._telemetryService.publicLog2("codeAction.applyCodeAction",{codeActionFrom:e,validCodeActions:i.validActions.length,cancelled:t})}show(e,t,i,n){return gne(this,void 0,void 0,function*(){const o=this._editor.getModel();if(!o)return;const r=n.includeDisabledActions?t.allActions:t.validActions;if(!r.length){this._visible=!1;return}if(!this._editor.getDomNode())throw this._visible=!1,sF();this._visible=!0,this._showingActions.value=t;const a=this.getMenuActions(e,r,t.documentation),l=P.isIPosition(i)?this._toCoords(i):i||{x:0,y:0},c=this._keybindingResolver.getResolver(),d=this._editor.getOption(117);this.isCodeActionWidgetEnabled(o)?this._contextViewService.showContextView({getAnchor:()=>l,render:h=>this.renderCodeActionMenuList(h,a),onHide:h=>{const u=n.fromLightbulb?An.Lightbulb:e.triggerAction;this.codeActionTelemetry(u,h,t),this._visible=!1,this._editor.focus()}},this._editor.getDomNode(),!1):this._contextMenuService.showContextMenu({domForShadowRoot:d?this._editor.getDomNode():void 0,getAnchor:()=>l,getActions:()=>a,onHide:h=>{const u=n.fromLightbulb?An.Lightbulb:e.triggerAction;this.codeActionTelemetry(u,h,t),this._visible=!1,this._editor.focus()},autoSelectFirstItem:!0,getKeyBinding:h=>h instanceof dS?c(h.action):void 0})})}getMenuActions(e,t,i){var n,o;const r=d=>new dS(d.action,()=>this._delegate.onSelectCodeAction(d,e)),a=t.map(r),l=[...i],c=this._editor.getModel();if(c&&a.length)for(const d of this._languageFeaturesService.codeActionProvider.all(c))d._getAdditionalMenuItems&&l.push(...d._getAdditionalMenuItems({trigger:e.type,only:(o=(n=e.filter)===null||n===void 0?void 0:n.include)===null||o===void 0?void 0:o.value},t.map(h=>h.action)));return l.length&&a.push(new an,...l.map(d=>r(new q5({title:d.title,command:d,kind:KL.documentationID},void 0)))),a}_toCoords(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();const t=this._editor.getScrolledVisiblePosition(e),i=on(this._editor.getDomNode()),n=i.left+t.left,o=i.top+t.top+t.height;return{x:n,y:o}}};mw.documentationID="_documentation";mw=X5([Aa(2,cl),Aa(3,pi),Aa(4,de),Aa(5,sr),Aa(6,bt),Aa(7,ot),Aa(8,vh),Aa(9,xe)],mw);class ov{constructor(e){this._keybindingProvider=e}getResolver(){const e=new tg(()=>this._keybindingProvider.getKeybindings().filter(t=>ov.codeActionCommands.indexOf(t.command)>=0).filter(t=>t.resolvedKeybinding).map(t=>{let i=t.commandArgs;return t.command===Gk?i={kind:Ke.SourceOrganizeImports.value}:t.command===Yk&&(i={kind:Ke.SourceFixAll.value}),Object.assign({resolvedKeybinding:t.resolvedKeybinding},Mr.fromUser(i,{kind:Ke.None,apply:"never"}))}));return t=>{if(t.kind){const i=this.bestKeybindingForCodeAction(t,e.getValue());return i==null?void 0:i.resolvedKeybinding}}}bestKeybindingForCodeAction(e,t){if(!e.kind)return;const i=new Ke(e.kind);return t.filter(n=>n.kind.contains(i)).filter(n=>n.preferred?e.isPreferred:!0).reduceRight((n,o)=>n?n.kind.contains(o.kind)?o:n:o,void 0)}}ov.codeActionCommands=[J5,K5,$5,Gk,Yk];var pne=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},_ne=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}},Nm;(function(s){s.Hidden={type:0};class e{constructor(i,n,o,r){this.actions=i,this.trigger=n,this.editorPosition=o,this.widgetPosition=r,this.type=1}}s.Showing=e})(Nm||(Nm={}));let pw=class Z5 extends V{constructor(e,t,i,n){super(),this._editor=e,this._quickFixActionId=t,this._preferredFixActionId=i,this._keybindingService=n,this._onClick=this._register(new B),this.onClick=this._onClick.event,this._state=Nm.Hidden,this._domNode=document.createElement("div"),this._domNode.className=p.lightBulb.classNames,this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent(o=>{const r=this._editor.getModel();(this.state.type!==1||!r||this.state.editorPosition.lineNumber>=r.getLineCount())&&this.hide()})),gt.ignoreTarget(this._domNode),this._register(jV(this._domNode,o=>{if(this.state.type!==1)return;this._editor.focus(),o.preventDefault();const{top:r,height:a}=on(this._domNode),l=this._editor.getOption(61);let c=Math.floor(l/3);this.state.widgetPosition.position!==null&&this.state.widgetPosition.position.lineNumber<this.state.editorPosition.lineNumber&&(c+=l),this._onClick.fire({x:o.posx,y:r+a+c,actions:this.state.actions,trigger:this.state.trigger})})),this._register(K(this._domNode,"mouseenter",o=>{(o.buttons&1)===1&&this.hide()})),this._register(this._editor.onDidChangeConfiguration(o=>{o.hasChanged(59)&&!this._editor.getOption(59).enabled&&this.hide()})),this._updateLightBulbTitleAndIcon(),this._register(this._keybindingService.onDidUpdateKeybindings(this._updateLightBulbTitleAndIcon,this))}dispose(){super.dispose(),this._editor.removeContentWidget(this)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return this._state.type===1?this._state.widgetPosition:null}update(e,t,i){if(e.validActions.length<=0)return this.hide();const n=this._editor.getOptions();if(!n.get(59).enabled)return this.hide();const o=this._editor.getModel();if(!o)return this.hide();const{lineNumber:r,column:a}=o.validatePosition(i),l=o.getOptions().tabSize,c=n.get(46),d=o.getLineContent(r),h=L0(d,l),u=c.spaceWidth*h>22,g=_=>_>2&&this._editor.getTopForLineNumber(_)===this._editor.getTopForLineNumber(_-1);let f=r;if(!u){if(r>1&&!g(r-1))f-=1;else if(!g(r+1))f+=1;else if(a*c.spaceWidth<22)return this.hide()}this.state=new Nm.Showing(e,t,i,{position:{lineNumber:f,column:1},preference:Z5._posPref}),this._editor.layoutContentWidget(this)}hide(){this.state=Nm.Hidden,this._editor.layoutContentWidget(this)}get state(){return this._state}set state(e){this._state=e,this._updateLightBulbTitleAndIcon()}_updateLightBulbTitleAndIcon(){if(this.state.type===1&&this.state.actions.hasAutoFix){this._domNode.classList.remove(...p.lightBulb.classNamesArray),this._domNode.classList.add(...p.lightbulbAutofix.classNamesArray);const t=this._keybindingService.lookupKeybinding(this._preferredFixActionId);if(t){this.title=m("preferredcodeActionWithKb","Show Code Actions. Preferred Quick Fix Available ({0})",t.getLabel());return}}this._domNode.classList.remove(...p.lightbulbAutofix.classNamesArray),this._domNode.classList.add(...p.lightBulb.classNamesArray);const e=this._keybindingService.lookupKeybinding(this._quickFixActionId);e?this.title=m("codeActionWithKb","Show Code Actions ({0})",e.getLabel()):this.title=m("codeAction","Show Code Actions")}set title(e){this._domNode.title=e}};pw._posPref=[0];pw=pne([_ne(3,pi)],pw);xt((s,e)=>{var t;const i=(t=s.getColor(Ci))===null||t===void 0?void 0:t.transparent(.7),n=s.getColor(rU);n&&e.addRule(`
|
1026
|
+
*-----------------------------------------------------------------------------*/var kie=Object.defineProperty,Mie=Object.getOwnPropertyDescriptor,Nie=Object.getOwnPropertyNames,Tie=Object.prototype.hasOwnProperty,A2=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Nie(e))!Tie.call(s,n)&&n!==t&&kie(s,n,{get:()=>e[n],enumerable:!(i=Mie(e,n))||i.enumerable});return s},Bie=(s,e,t)=>(A2(s,e,"default"),t&&A2(t,e,"default")),Rie="4.5.5",Eg={};Bie(Eg,ef);var F5=(s=>(s[s.None=0]="None",s[s.CommonJS=1]="CommonJS",s[s.AMD=2]="AMD",s[s.UMD=3]="UMD",s[s.System=4]="System",s[s.ES2015=5]="ES2015",s[s.ESNext=99]="ESNext",s))(F5||{}),O5=(s=>(s[s.None=0]="None",s[s.Preserve=1]="Preserve",s[s.React=2]="React",s[s.ReactNative=3]="ReactNative",s[s.ReactJSX=4]="ReactJSX",s[s.ReactJSXDev=5]="ReactJSXDev",s))(O5||{}),P5=(s=>(s[s.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",s[s.LineFeed=1]="LineFeed",s))(P5||{}),H5=(s=>(s[s.ES3=0]="ES3",s[s.ES5=1]="ES5",s[s.ES2015=2]="ES2015",s[s.ES2016=3]="ES2016",s[s.ES2017=4]="ES2017",s[s.ES2018=5]="ES2018",s[s.ES2019=6]="ES2019",s[s.ES2020=7]="ES2020",s[s.ESNext=99]="ESNext",s[s.JSON=100]="JSON",s[s.Latest=99]="Latest",s))(H5||{}),W5=(s=>(s[s.Classic=1]="Classic",s[s.NodeJs=2]="NodeJs",s))(W5||{}),V5=class{constructor(s,e,t,i){Gt(this,"_onDidChange",new Eg.Emitter);Gt(this,"_onDidExtraLibsChange",new Eg.Emitter);Gt(this,"_extraLibs");Gt(this,"_removedExtraLibs");Gt(this,"_eagerModelSync");Gt(this,"_compilerOptions");Gt(this,"_diagnosticsOptions");Gt(this,"_workerOptions");Gt(this,"_onDidExtraLibsChangeTimeout");Gt(this,"_inlayHintsOptions");this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(s),this.setDiagnosticsOptions(e),this.setWorkerOptions(t),this.setInlayHintsOptions(i),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(s,e){let t;if(typeof e>"u"?t=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t=e,this._extraLibs[t]&&this._extraLibs[t].content===s)return{dispose:()=>{}};let i=1;return this._removedExtraLibs[t]&&(i=this._removedExtraLibs[t]+1),this._extraLibs[t]&&(i=this._extraLibs[t].version+1),this._extraLibs[t]={content:s,version:i},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let n=this._extraLibs[t];n&&n.version===i&&(delete this._extraLibs[t],this._removedExtraLibs[t]=i,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(s){for(const e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),s&&s.length>0)for(const e of s){const t=e.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=e.content;let n=1;this._removedExtraLibs[t]&&(n=this._removedExtraLibs[t]+1),this._extraLibs[t]={content:i,version:n}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(s){this._compilerOptions=s||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(s){this._diagnosticsOptions=s||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(s){this._workerOptions=s||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(s){this._inlayHintsOptions=s||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(s){}setEagerModelSync(s){this._eagerModelSync=s}getEagerModelSync(){return this._eagerModelSync}},Fie=Rie,Uk=new V5({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{}),z5=new V5({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{}),Oie=()=>tv().then(s=>s.getTypeScriptWorker()),Pie=()=>tv().then(s=>s.getJavaScriptWorker());Eg.languages.typescript={ModuleKind:F5,JsxEmit:O5,NewLineKind:P5,ScriptTarget:H5,ModuleResolutionKind:W5,typescriptVersion:Fie,typescriptDefaults:Uk,javascriptDefaults:z5,getTypeScriptWorker:Oie,getJavaScriptWorker:Pie};function tv(){return Promise.resolve().then(()=>require("./tsMode-c5cc89bc.js"))}Eg.languages.onLanguage("typescript",()=>tv().then(s=>s.setupTypeScript(Uk)));Eg.languages.onLanguage("javascript",()=>tv().then(s=>s.setupJavaScript(z5)));var Hie=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Wie=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}},iv=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((i=i.apply(s,e||[])).next())})};const nv=new ae("selectionAnchorSet",!1);let sl=class U5{constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=nv.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}static get(e){return e.getContribution(U5.ID)}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations(t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(ce.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new On().appendText(m("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),Yi(m("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 t=this.editor.getPosition();this.editor.setSelection(ce.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations(t=>{t.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};sl.ID="editor.contrib.selectionAnchorController";sl=Hie([Wie(1,xe)],sl);class Vie extends le{constructor(){super({id:"editor.action.setSelectionAnchor",label:m("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:k.editorTextFocus,primary:vi(2089,2080),weight:100}})}run(e,t){var i;return iv(this,void 0,void 0,function*(){(i=sl.get(t))===null||i===void 0||i.setSelectionAnchor()})}}class zie extends le{constructor(){super({id:"editor.action.goToSelectionAnchor",label:m("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:nv})}run(e,t){var i;return iv(this,void 0,void 0,function*(){(i=sl.get(t))===null||i===void 0||i.goToSelectionAnchor()})}}class Uie extends le{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:m("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:nv,kbOpts:{kbExpr:k.editorTextFocus,primary:vi(2089,2089),weight:100}})}run(e,t){var i;return iv(this,void 0,void 0,function*(){(i=sl.get(t))===null||i===void 0||i.selectFromAnchorToCursor()})}}class Qie extends le{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:m("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:nv,kbOpts:{kbExpr:k.editorTextFocus,primary:9,weight:100}})}run(e,t){var i;return iv(this,void 0,void 0,function*(){(i=sl.get(t))===null||i===void 0||i.cancelSelectionAnchor()})}}et(sl.ID,sl);ie(Vie);ie(zie);ie(Uie);ie(Qie);const jie=M("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hcDark:"#A0A0A0",hcLight:"#A0A0A0"},m("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class Gie extends le{constructor(){super({id:"editor.action.jumpToBracket",label:m("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:k.editorTextFocus,primary:3160,weight:100}})}run(e,t){var i;(i=qs.get(t))===null||i===void 0||i.jumpToBracket()}}class Yie extends le{constructor(){super({id:"editor.action.selectToBracket",label:m("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,description:{description:"Select to Bracket",args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){var n;let o=!0;i&&i.selectBrackets===!1&&(o=!1),(n=qs.get(t))===null||n===void 0||n.selectToBracket(o)}}class Kie{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}class qs extends V{constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new mt(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(66),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(t=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(t=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(66)&&(this._matchBrackets=this._editor.getOption(66),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()}))}static get(e){return e.getContribution(qs.ID)}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map(i=>{const n=i.getStartPosition(),o=e.bracketPairs.matchBracket(n);let r=null;if(o)o[0].containsPosition(n)&&!o[1].containsPosition(n)?r=o[1].getStartPosition():o[1].containsPosition(n)&&(r=o[0].getStartPosition());else{const a=e.bracketPairs.findEnclosingBrackets(n);if(a)r=a[1].getStartPosition();else{const l=e.bracketPairs.findNextBracket(n);l&&l.range&&(r=l.range.getStartPosition())}}return r?new ce(r.lineNumber,r.column,r.lineNumber,r.column):new ce(n.lineNumber,n.column,n.lineNumber,n.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach(n=>{const o=n.getStartPosition();let r=t.bracketPairs.matchBracket(o);if(!r&&(r=t.bracketPairs.findEnclosingBrackets(o),!r)){const c=t.bracketPairs.findNextBracket(o);c&&c.range&&(r=t.bracketPairs.matchBracket(c.range.getStartPosition()))}let a=null,l=null;if(r){r.sort(y.compareRangesUsingStarts);const[c,d]=r;if(a=e?c.getStartPosition():c.getEndPosition(),l=e?d.getEndPosition():d.getStartPosition(),d.containsPosition(o)){const h=a;a=l,l=h}}a&&l&&i.push(new ce(a.lineNumber,a.column,l.lineNumber,l.column))}),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();const e=[];let t=0;for(const i of this._lastBracketsData){const n=i.brackets;n&&(e[t++]={range:n[0],options:i.options},e[t++]={range:n[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 t=this._editor.getModel(),i=t.getVersionId();let n=[];this._lastVersionId===i&&(n=this._lastBracketsData);const o=[];let r=0;for(let h=0,u=e.length;h<u;h++){const g=e[h];g.isEmpty()&&(o[r++]=g.getStartPosition())}o.length>1&&o.sort(P.compare);const a=[];let l=0,c=0;const d=n.length;for(let h=0,u=o.length;h<u;h++){const g=o[h];for(;c<d&&n[c].position.isBefore(g);)c++;if(c<d&&n[c].position.equals(g))a[l++]=n[c];else{let f=t.bracketPairs.matchBracket(g,20),_=qs._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;!f&&this._matchBrackets==="always"&&(f=t.bracketPairs.findEnclosingBrackets(g,20),_=qs._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),a[l++]=new Kie(g,f,_)}}this._lastBracketsData=a,this._lastVersionId=i}}qs.ID="editor.contrib.bracketMatchingController";qs._DECORATION_OPTIONS_WITH_OVERVIEW_RULER=Ie.register({description:"bracket-match-overview",stickiness:1,className:"bracket-match",overviewRuler:{color:Jt(jie),position:$o.Center}});qs._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=Ie.register({description:"bracket-match-no-overview",stickiness:1,className:"bracket-match"});et(qs.ID,qs);ie(Yie);ie(Gie);xt((s,e)=>{const t=s.getColor(RQ);t&&e.addRule(`.monaco-editor .bracket-match { background-color: ${t}; }`);const i=s.getColor($4);i&&e.addRule(`.monaco-editor .bracket-match { border: 1px solid ${i}; }`)});Ko.appendMenuItem(T.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:m({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2});class Jie{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;const i=this._selection.startLineNumber,n=this._selection.startColumn,o=this._selection.endColumn;if(!(this._isMovingLeft&&n===1)&&!(!this._isMovingLeft&&o===e.getLineMaxColumn(i)))if(this._isMovingLeft){const r=new y(i,n-1,i,n),a=e.getValueInRange(r);t.addEditOperation(r,null),t.addEditOperation(new y(i,o,i,o),a)}else{const r=new y(i,o,i,o+1),a=e.getValueInRange(r);t.addEditOperation(r,null),t.addEditOperation(new y(i,n,i,n),a)}}computeCursorState(e,t){return this._isMovingLeft?new ce(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new ce(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}class Q5 extends le{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;const i=[],n=t.getSelections();for(const o of n)i.push(new Jie(o,this.left));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}class $ie extends Q5{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:m("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:k.writable})}}class qie extends Q5{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:m("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:k.writable})}}ie($ie);ie(qie);class Xie extends le{constructor(){super({id:"editor.action.transposeLetters",label:m("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:k.writable,kbOpts:{kbExpr:k.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;const i=t.getModel(),n=[],o=t.getSelections();for(const r of o){if(!r.isEmpty())continue;const a=r.startLineNumber,l=r.startColumn,c=i.getLineMaxColumn(a);if(a===1&&(l===1||l===2&&c===2))continue;const d=l===c?r.getPosition():at.rightPosition(i,r.getPosition().lineNumber,r.getPosition().column),h=at.leftPosition(i,d),u=at.leftPosition(i,h),g=i.getValueInRange(y.fromPositions(u,h)),f=i.getValueInRange(y.fromPositions(h,d)),_=y.fromPositions(u,d);n.push(new Vi(_,f+g))}n.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}}ie(Xie);var Zie=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((i=i.apply(s,e||[])).next())})};const Xd="9_cutcopypaste",ene=Gs||document.queryCommandSupported("cut"),j5=Gs||document.queryCommandSupported("copy"),tne=typeof navigator.clipboard>"u"||Do?document.queryCommandSupported("paste"):!0;function Qk(s){return s.register(),s}const ine=ene?Qk(new jg({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:Gs?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:T.MenubarEditMenu,group:"2_ccp",title:m({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:T.EditorContext,group:Xd,title:m("actions.clipboard.cutLabel","Cut"),when:k.writable,order:1},{menuId:T.CommandPalette,group:"",title:m("actions.clipboard.cutLabel","Cut"),order:1},{menuId:T.SimpleEditorContext,group:Xd,title:m("actions.clipboard.cutLabel","Cut"),when:k.writable,order:1}]})):void 0,nne=j5?Qk(new jg({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:Gs?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:T.MenubarEditMenu,group:"2_ccp",title:m({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:T.EditorContext,group:Xd,title:m("actions.clipboard.copyLabel","Copy"),order:2},{menuId:T.CommandPalette,group:"",title:m("actions.clipboard.copyLabel","Copy"),order:1},{menuId:T.SimpleEditorContext,group:Xd,title:m("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;Ko.appendMenuItem(T.MenubarEditMenu,{submenu:T.MenubarCopy,title:{value:m("copy as","Copy As"),original:"Copy As"},group:"2_ccp",order:3});Ko.appendMenuItem(T.EditorContext,{submenu:T.EditorContextCopy,title:{value:m("copy as","Copy As"),original:"Copy As"},group:Xd,order:3});Ko.appendMenuItem(T.EditorContext,{submenu:T.EditorContextShare,title:{value:m("share","Share"),original:"Share"},group:"11_share",order:-1});const cS=tne?Qk(new jg({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:Gs?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:T.MenubarEditMenu,group:"2_ccp",title:m({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:T.EditorContext,group:Xd,title:m("actions.clipboard.pasteLabel","Paste"),when:k.writable,order:4},{menuId:T.CommandPalette,group:"",title:m("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:T.SimpleEditorContext,group:Xd,title:m("actions.clipboard.pasteLabel","Paste"),when:k.writable,order:4}]})):void 0;class one extends le{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:m("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:k.textInputFocus,primary:0,weight:100}})}run(e,t){!t.hasModel()||!t.getOption(33)&&t.getSelection().isEmpty()||(bD.forceCopyWithSyntaxHighlighting=!0,t.focus(),document.execCommand("copy"),bD.forceCopyWithSyntaxHighlighting=!1)}}function G5(s,e){s&&(s.addImplementation(1e4,"code-editor",(t,i)=>{const n=t.get(lt).getFocusedCodeEditor();if(n&&n.hasTextFocus()){const o=n.getOption(33),r=n.getSelection();return r&&r.isEmpty()&&!o||document.execCommand(e),!0}return!1}),s.addImplementation(0,"generic-dom",(t,i)=>(document.execCommand(e),!0)))}G5(ine,"cut");G5(nne,"copy");cS&&(cS.addImplementation(1e4,"code-editor",(s,e)=>{const t=s.get(lt),i=s.get(dl),n=t.getFocusedCodeEditor();return n&&n.hasTextFocus()?!document.execCommand("paste")&&yc?(()=>Zie(void 0,void 0,void 0,function*(){const r=yield i.readText();if(r!==""){const a=rp.INSTANCE.get(r);let l=!1,c=null,d=null;a&&(l=n.getOption(33)&&!!a.isFromEmptySelection,c=typeof a.multicursorText<"u"?a.multicursorText:null,d=a.mode),n.trigger("keyboard","paste",{text:r,pasteOnNewLine:l,multicursorText:c,mode:d})}}))():!0:!1}),cS.addImplementation(0,"generic-dom",(s,e)=>(document.execCommand("paste"),!0)));j5&&ie(one);class Ke{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+Ke.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(e){return new Ke(this.value+Ke.sep+e)}}Ke.sep=".";Ke.None=new Ke("@@none@@");Ke.Empty=new Ke("");Ke.QuickFix=new Ke("quickfix");Ke.Refactor=new Ke("refactor");Ke.Source=new Ke("source");Ke.SourceOrganizeImports=Ke.Source.append("organizeImports");Ke.SourceFixAll=Ke.Source.append("fixAll");var An;(function(s){s.Refactor="refactor",s.RefactorPreview="refactor preview",s.Lightbulb="lightbulb",s.Default="other (default)",s.SourceAction="source action",s.QuickFix="quick fix action",s.FixAll="fix all",s.OrganizeImports="organize imports",s.AutoFix="auto fix",s.QuickFixHover="quick fix hover window",s.OnSave="save participants",s.ProblemsView="problems view"})(An||(An={}));function sne(s,e){return!(s.include&&!s.include.intersects(e)||s.excludes&&s.excludes.some(t=>Y5(e,t,s.include))||!s.includeSourceActions&&Ke.Source.contains(e))}function rne(s,e){const t=e.kind?new Ke(e.kind):void 0;return!(s.include&&(!t||!s.include.contains(t))||s.excludes&&t&&s.excludes.some(i=>Y5(t,i,s.include))||!s.includeSourceActions&&t&&Ke.Source.contains(t)||s.onlyIncludePreferredActions&&!e.isPreferred)}function Y5(s,e,t){return!(!e.contains(s)||t&&e.contains(t))}class Mr{constructor(e,t,i){this.kind=e,this.apply=t,this.preferred=i}static fromUser(e,t){return!e||typeof e!="object"?new Mr(t.kind,t.apply,!1):new Mr(Mr.getKindFromUser(e,t.kind),Mr.getApplyFromUser(e,t.apply),Mr.getPreferredUser(e))}static getApplyFromUser(e,t){switch(typeof e.apply=="string"?e.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}}static getKindFromUser(e,t){return typeof e.kind=="string"?new Ke(e.kind):t}static getPreferredUser(e){return typeof e.preferred=="boolean"?e.preferred:!1}}var jk=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((i=i.apply(s,e||[])).next())})};const K5="editor.action.codeAction",J5="editor.action.refactor",ane="editor.action.refactor.preview",$5="editor.action.sourceAction",Gk="editor.action.organizeImports",Yk="editor.action.fixAll";class q5{constructor(e,t){this.action=e,this.provider=t}resolve(e){var t;return jk(this,void 0,void 0,function*(){if(!((t=this.provider)===null||t===void 0)&&t.resolveCodeAction&&!this.action.edit){let i;try{i=yield this.provider.resolveCodeAction(this.action,e)}catch(n){Ri(n)}i&&(this.action.edit=i.edit)}return this})}}class Kk extends V{constructor(e,t,i){super(),this.documentation=t,this._register(i),this.allActions=[...e].sort(Kk.codeActionsComparator),this.validActions=this.allActions.filter(({action:n})=>!n.disabled)}static codeActionsComparator({action:e},{action:t}){return e.isPreferred&&!t.isPreferred?-1:!e.isPreferred&&t.isPreferred?1:sn(e.diagnostics)?sn(t.diagnostics)?e.diagnostics[0].message.localeCompare(t.diagnostics[0].message):-1:sn(t.diagnostics)?1:0}get hasAutoFix(){return this.validActions.some(({action:e})=>!!e.kind&&Ke.QuickFix.contains(new Ke(e.kind))&&!!e.isPreferred)}}const b2={actions:[],documentation:void 0};function Jk(s,e,t,i,n,o){var r;const a=i.filter||{},l={only:(r=a.include)===null||r===void 0?void 0:r.value,trigger:i.type},c=new Ok(e,o),d=lne(s,e,a),h=new q,u=d.map(f=>jk(this,void 0,void 0,function*(){try{n.report(f);const _=yield f.provideCodeActions(e,t,l,c.token);if(_&&h.add(_),c.token.isCancellationRequested)return b2;const A=((_==null?void 0:_.actions)||[]).filter(C=>C&&rne(a,C)),b=cne(f,A,a.include);return{actions:A.map(C=>new q5(C,f)),documentation:b}}catch(_){if(ta(_))throw _;return Ri(_),b2}})),g=s.onDidChange(()=>{const f=s.all(e);So(f,d)||c.cancel()});return Promise.all(u).then(f=>{const _=f.map(b=>b.actions).flat(),A=s_(f.map(b=>b.documentation));return new Kk(_,A,h)}).finally(()=>{g.dispose(),c.dispose()})}function lne(s,e,t){return s.all(e).filter(i=>i.providedCodeActionKinds?i.providedCodeActionKinds.some(n=>sne(t,new Ke(n))):!0)}function cne(s,e,t){if(!s.documentation)return;const i=s.documentation.map(n=>({kind:new Ke(n.kind),command:n.command}));if(t){let n;for(const o of i)o.kind.contains(t)&&(n?n.kind.contains(o.kind)&&(n=o):n=o);if(n)return n==null?void 0:n.command}for(const n of e)if(n.kind){for(const o of i)if(o.kind.contains(new Ke(n.kind)))return o.command}}qe.registerCommand("_executeCodeActionProvider",function(s,e,t,i,n){return jk(this,void 0,void 0,function*(){if(!(e instanceof pe))throw Ys();const{codeActionProvider:o}=s.get(de),r=s.get(zt).getModel(e);if(!r)throw Ys();const a=ce.isISelection(t)?ce.liftSelection(t):y.isIRange(t)?r.validateRange(t):void 0;if(!a)throw Ys();const l=typeof i=="string"?new Ke(i):void 0,c=yield Jk(o,r,a,{type:1,triggerAction:An.Default,filter:{includeSourceActions:!0,include:l}},Sh.None,Ve.None),d=[],h=Math.min(c.validActions.length,typeof n=="number"?n:0);for(let u=0;u<h;u++)d.push(c.validActions[u].resolve(Ve.None));try{return yield Promise.all(d),c.validActions.map(u=>u.action)}finally{setTimeout(()=>c.dispose(),100)}})});var dne=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},hne=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};let so=class GL{constructor(e,t){this._messageWidget=new _n,this._messageListeners=new q,this._editor=e,this._visible=GL.MESSAGE_VISIBLE.bindTo(t)}static get(e){return e.getContribution(GL.ID)}dispose(){this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){Yi(e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new C2(this._editor,t,e),this._messageListeners.add(this._editor.onDidBlurEditorText(()=>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(new xo(()=>this.closeMessage(),3e3));let i;this._messageListeners.add(this._editor.onMouseMove(n=>{n.target.position&&(i?i.containsPosition(n.target.position)||this.closeMessage():i=new y(t.lineNumber-3,1,n.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(C2.fadeOut(this._messageWidget.value))}};so.ID="editor.contrib.messageController";so.MESSAGE_VISIBLE=new ae("messageVisible",!1,m("messageVisible","Whether the editor is currently showing an inline message"));so=dne([hne(1,xe)],so);const une=Li.bindToContribution(so.get);ee(new une({id:"leaveEditorMessage",precondition:so.MESSAGE_VISIBLE,handler:s=>s.closeMessage(),kbOpts:{weight:100+30,primary:9}}));let C2=class{constructor(e,{lineNumber:t,column:i},n){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:i},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";const o=document.createElement("div");o.classList.add("anchor","top"),this._domNode.appendChild(o);const r=document.createElement("div");r.classList.add("message"),r.textContent=n,this._domNode.appendChild(r);const a=document.createElement("div");a.classList.add("anchor","below"),this._domNode.appendChild(a),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}static fadeOut(e){const t=()=>{e.dispose(),clearTimeout(i),e.getDomNode().removeEventListener("animationend",t)},i=setTimeout(t,110);return e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}}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)}};et(so.ID,so);var X5=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Aa=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}},gne=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(h){r(h)}}function l(d){try{c(i.throw(d))}catch(h){r(h)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((i=i.apply(s,e||[])).next())})};const nf={Visible:new ae("CodeActionMenuVisible",!1,m("CodeActionMenuVisible","Whether the code action list widget is visible"))};class dS extends io{constructor(e,t){super(e.command?e.command.id:e.title,fne(e.title),void 0,!e.disabled,t),this.action=e}}function fne(s){return s.replace(/\r\n|\r|\n/g," ")}const mne="codeActionWidget",hS=26;let YL=class{constructor(e,t){this.acceptKeybindings=e,this.keybindingService=t}get templateId(){return mne}renderTemplate(e){const t=Object.create(null);return t.disposables=[],t.root=e,t.text=document.createElement("span"),e.append(t.text),t}renderElement(e,t,i){const n=i,o=e.title,r=e.isEnabled,a=e.isSeparator,l=e.isDocumentation;n.text.textContent=o,r?n.root.classList.remove("option-disabled"):(n.root.classList.add("option-disabled"),n.root.style.backgroundColor="transparent !important"),a&&(n.root.classList.add("separator"),n.root.style.height="10px"),l||(()=>{var d,h;const[u,g]=this.acceptKeybindings;n.root.title=m({key:"label",comment:['placeholders are keybindings, e.g "F2 to Refactor, Shift+F2 to Preview"']},"{0} to Refactor, {1} to Preview",(d=this.keybindingService.lookupKeybinding(u))===null||d===void 0?void 0:d.getLabel(),(h=this.keybindingService.lookupKeybinding(g))===null||h===void 0?void 0:h.getLabel())})()}disposeTemplate(e){e.disposables=it(e.disposables)}};YL=X5([Aa(1,pi)],YL);let mw=class KL extends V{constructor(e,t,i,n,o,r,a,l,c,d){super(),this._editor=e,this._delegate=t,this._contextMenuService=i,this._languageFeaturesService=o,this._telemetryService=r,this._configurationService=l,this._contextViewService=c,this._contextKeyService=d,this._showingActions=this._register(new _n),this.codeActionList=this._register(new _n),this.options=[],this._visible=!1,this.viewItems=[],this.hasSeperator=!1,this._keybindingResolver=new ov({getKeybindings:()=>n.getKeybindings()}),this._ctxMenuWidgetVisible=nf.Visible.bindTo(this._contextKeyService),this.listRenderer=new YL(["onEnterSelectCodeAction","onEnterSelectCodeActionWithPreview"],n)}get isVisible(){return this._visible}isCodeActionWidgetEnabled(e){return this._configurationService.getValue("editor.experimental.useCustomCodeActionMenu",{resource:e.uri})}_onListSelection(e){e.elements.length&&e.elements.forEach(t=>{t.isEnabled&&(t.action.run(),this.hideCodeActionWidget())})}_onListHover(e){var t,i,n,o;e.element?!((i=e.element)===null||i===void 0)&&i.isEnabled?((n=this.codeActionList.value)===null||n===void 0||n.setFocus([e.element.index]),this.focusedEnabledItem=this.viewItems.indexOf(e.element),this.currSelectedItem=e.element.index):(this.currSelectedItem=void 0,(o=this.codeActionList.value)===null||o===void 0||o.setFocus([e.element.index])):(this.currSelectedItem=void 0,(t=this.codeActionList.value)===null||t===void 0||t.setFocus([]))}renderCodeActionMenuList(e,t){var i;const n=new q,o=document.createElement("div"),r=document.createElement("div");this.block=e.appendChild(r),this.block.classList.add("context-view-block"),this.block.style.position="fixed",this.block.style.cursor="initial",this.block.style.left="0",this.block.style.top="0",this.block.style.width="100%",this.block.style.height="100%",this.block.style.zIndex="-1",n.add(K(this.block,re.MOUSE_DOWN,u=>u.stopPropagation())),o.id="codeActionMenuWidget",o.classList.add("codeActionMenuWidget"),e.appendChild(o),this.codeActionList.value=new ar("codeActionWidget",o,{getHeight(u){return u.isSeparator?10:hS},getTemplateId(u){return"codeActionWidget"}},[this.listRenderer],{keyboardSupport:!1}),n.add(this.codeActionList.value.onMouseOver(u=>this._onListHover(u))),n.add(this.codeActionList.value.onDidChangeFocus(u=>{var g;return(g=this.codeActionList.value)===null||g===void 0?void 0:g.domFocus()})),n.add(this.codeActionList.value.onDidChangeSelection(u=>this._onListSelection(u))),n.add(this._editor.onDidLayoutChange(u=>this.hideCodeActionWidget())),t.forEach((u,g)=>{const f=u.class==="separator";let _=!1;u instanceof dS&&(_=u.action.kind===KL.documentationID),f&&(this.hasSeperator=!0);const A={title:u.label,detail:u.tooltip,action:t[g],isEnabled:u.enabled,isSeparator:f,index:g,isDocumentation:_};u.enabled&&this.viewItems.push(A),this.options.push(A)}),this.codeActionList.value.splice(0,this.codeActionList.value.length,this.options);const a=this.hasSeperator?(t.length-1)*hS+10:t.length*hS;o.style.height=String(a)+"px",this.codeActionList.value.layout(a);const l=[];this.options.forEach((u,g)=>{var f,_;if(!this.codeActionList.value)return;const A=(_=document.getElementById((f=this.codeActionList.value)===null||f===void 0?void 0:f.getElementID(g)))===null||_===void 0?void 0:_.getElementsByTagName("span")[0].offsetWidth;l.push(Number(A))});const c=Math.max(...l);o.style.width=c+52+"px",(i=this.codeActionList.value)===null||i===void 0||i.layout(a,c),this.viewItems.length<1||this.viewItems.every(u=>u.isDocumentation)?this.currSelectedItem=void 0:(this.focusedEnabledItem=0,this.currSelectedItem=this.viewItems[0].index,this.codeActionList.value.setFocus([this.currSelectedItem])),this.codeActionList.value.domFocus();const d=Pd(e),h=d.onDidBlur(()=>{this.hideCodeActionWidget()});return n.add(h),n.add(d),this._ctxMenuWidgetVisible.set(!0),n}focusPrevious(){var e;if(typeof this.focusedEnabledItem>"u")this.focusedEnabledItem=this.viewItems[0].index;else if(this.viewItems.length<1)return!1;const t=this.focusedEnabledItem;let i;do this.focusedEnabledItem=this.focusedEnabledItem-1,this.focusedEnabledItem<0&&(this.focusedEnabledItem=this.viewItems.length-1),i=this.viewItems[this.focusedEnabledItem],(e=this.codeActionList.value)===null||e===void 0||e.setFocus([i.index]),this.currSelectedItem=i.index;while(this.focusedEnabledItem!==t&&(!i.isEnabled||i.action.id===an.ID));return!0}focusNext(){var e;if(typeof this.focusedEnabledItem>"u")this.focusedEnabledItem=this.viewItems.length-1;else if(this.viewItems.length<1)return!1;const t=this.focusedEnabledItem;let i;do this.focusedEnabledItem=(this.focusedEnabledItem+1)%this.viewItems.length,i=this.viewItems[this.focusedEnabledItem],(e=this.codeActionList.value)===null||e===void 0||e.setFocus([i.index]),this.currSelectedItem=i.index;while(this.focusedEnabledItem!==t&&(!i.isEnabled||i.action.id===an.ID));return!0}navigateListWithKeysUp(){this.focusPrevious()}navigateListWithKeysDown(){this.focusNext()}onEnterSet(){var e;typeof this.currSelectedItem=="number"&&((e=this.codeActionList.value)===null||e===void 0||e.setSelection([this.currSelectedItem]))}dispose(){super.dispose()}hideCodeActionWidget(){this._ctxMenuWidgetVisible.reset(),this.options=[],this.viewItems=[],this.focusedEnabledItem=0,this.currSelectedItem=void 0,this.hasSeperator=!1,this._contextViewService.hideContextView({source:this})}codeActionTelemetry(e,t,i){this._telemetryService.publicLog2("codeAction.applyCodeAction",{codeActionFrom:e,validCodeActions:i.validActions.length,cancelled:t})}show(e,t,i,n){return gne(this,void 0,void 0,function*(){const o=this._editor.getModel();if(!o)return;const r=n.includeDisabledActions?t.allActions:t.validActions;if(!r.length){this._visible=!1;return}if(!this._editor.getDomNode())throw this._visible=!1,sF();this._visible=!0,this._showingActions.value=t;const a=this.getMenuActions(e,r,t.documentation),l=P.isIPosition(i)?this._toCoords(i):i||{x:0,y:0},c=this._keybindingResolver.getResolver(),d=this._editor.getOption(117);this.isCodeActionWidgetEnabled(o)?this._contextViewService.showContextView({getAnchor:()=>l,render:h=>this.renderCodeActionMenuList(h,a),onHide:h=>{const u=n.fromLightbulb?An.Lightbulb:e.triggerAction;this.codeActionTelemetry(u,h,t),this._visible=!1,this._editor.focus()}},this._editor.getDomNode(),!1):this._contextMenuService.showContextMenu({domForShadowRoot:d?this._editor.getDomNode():void 0,getAnchor:()=>l,getActions:()=>a,onHide:h=>{const u=n.fromLightbulb?An.Lightbulb:e.triggerAction;this.codeActionTelemetry(u,h,t),this._visible=!1,this._editor.focus()},autoSelectFirstItem:!0,getKeyBinding:h=>h instanceof dS?c(h.action):void 0})})}getMenuActions(e,t,i){var n,o;const r=d=>new dS(d.action,()=>this._delegate.onSelectCodeAction(d,e)),a=t.map(r),l=[...i],c=this._editor.getModel();if(c&&a.length)for(const d of this._languageFeaturesService.codeActionProvider.all(c))d._getAdditionalMenuItems&&l.push(...d._getAdditionalMenuItems({trigger:e.type,only:(o=(n=e.filter)===null||n===void 0?void 0:n.include)===null||o===void 0?void 0:o.value},t.map(h=>h.action)));return l.length&&a.push(new an,...l.map(d=>r(new q5({title:d.title,command:d,kind:KL.documentationID},void 0)))),a}_toCoords(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();const t=this._editor.getScrolledVisiblePosition(e),i=on(this._editor.getDomNode()),n=i.left+t.left,o=i.top+t.top+t.height;return{x:n,y:o}}};mw.documentationID="_documentation";mw=X5([Aa(2,cl),Aa(3,pi),Aa(4,de),Aa(5,sr),Aa(6,bt),Aa(7,ot),Aa(8,vh),Aa(9,xe)],mw);class ov{constructor(e){this._keybindingProvider=e}getResolver(){const e=new tg(()=>this._keybindingProvider.getKeybindings().filter(t=>ov.codeActionCommands.indexOf(t.command)>=0).filter(t=>t.resolvedKeybinding).map(t=>{let i=t.commandArgs;return t.command===Gk?i={kind:Ke.SourceOrganizeImports.value}:t.command===Yk&&(i={kind:Ke.SourceFixAll.value}),Object.assign({resolvedKeybinding:t.resolvedKeybinding},Mr.fromUser(i,{kind:Ke.None,apply:"never"}))}));return t=>{if(t.kind){const i=this.bestKeybindingForCodeAction(t,e.getValue());return i==null?void 0:i.resolvedKeybinding}}}bestKeybindingForCodeAction(e,t){if(!e.kind)return;const i=new Ke(e.kind);return t.filter(n=>n.kind.contains(i)).filter(n=>n.preferred?e.isPreferred:!0).reduceRight((n,o)=>n?n.kind.contains(o.kind)?o:n:o,void 0)}}ov.codeActionCommands=[J5,K5,$5,Gk,Yk];var pne=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},_ne=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}},Nm;(function(s){s.Hidden={type:0};class e{constructor(i,n,o,r){this.actions=i,this.trigger=n,this.editorPosition=o,this.widgetPosition=r,this.type=1}}s.Showing=e})(Nm||(Nm={}));let pw=class Z5 extends V{constructor(e,t,i,n){super(),this._editor=e,this._quickFixActionId=t,this._preferredFixActionId=i,this._keybindingService=n,this._onClick=this._register(new B),this.onClick=this._onClick.event,this._state=Nm.Hidden,this._domNode=document.createElement("div"),this._domNode.className=p.lightBulb.classNames,this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent(o=>{const r=this._editor.getModel();(this.state.type!==1||!r||this.state.editorPosition.lineNumber>=r.getLineCount())&&this.hide()})),gt.ignoreTarget(this._domNode),this._register(jV(this._domNode,o=>{if(this.state.type!==1)return;this._editor.focus(),o.preventDefault();const{top:r,height:a}=on(this._domNode),l=this._editor.getOption(61);let c=Math.floor(l/3);this.state.widgetPosition.position!==null&&this.state.widgetPosition.position.lineNumber<this.state.editorPosition.lineNumber&&(c+=l),this._onClick.fire({x:o.posx,y:r+a+c,actions:this.state.actions,trigger:this.state.trigger})})),this._register(K(this._domNode,"mouseenter",o=>{(o.buttons&1)===1&&this.hide()})),this._register(this._editor.onDidChangeConfiguration(o=>{o.hasChanged(59)&&!this._editor.getOption(59).enabled&&this.hide()})),this._updateLightBulbTitleAndIcon(),this._register(this._keybindingService.onDidUpdateKeybindings(this._updateLightBulbTitleAndIcon,this))}dispose(){super.dispose(),this._editor.removeContentWidget(this)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return this._state.type===1?this._state.widgetPosition:null}update(e,t,i){if(e.validActions.length<=0)return this.hide();const n=this._editor.getOptions();if(!n.get(59).enabled)return this.hide();const o=this._editor.getModel();if(!o)return this.hide();const{lineNumber:r,column:a}=o.validatePosition(i),l=o.getOptions().tabSize,c=n.get(46),d=o.getLineContent(r),h=L0(d,l),u=c.spaceWidth*h>22,g=_=>_>2&&this._editor.getTopForLineNumber(_)===this._editor.getTopForLineNumber(_-1);let f=r;if(!u){if(r>1&&!g(r-1))f-=1;else if(!g(r+1))f+=1;else if(a*c.spaceWidth<22)return this.hide()}this.state=new Nm.Showing(e,t,i,{position:{lineNumber:f,column:1},preference:Z5._posPref}),this._editor.layoutContentWidget(this)}hide(){this.state=Nm.Hidden,this._editor.layoutContentWidget(this)}get state(){return this._state}set state(e){this._state=e,this._updateLightBulbTitleAndIcon()}_updateLightBulbTitleAndIcon(){if(this.state.type===1&&this.state.actions.hasAutoFix){this._domNode.classList.remove(...p.lightBulb.classNamesArray),this._domNode.classList.add(...p.lightbulbAutofix.classNamesArray);const t=this._keybindingService.lookupKeybinding(this._preferredFixActionId);if(t){this.title=m("preferredcodeActionWithKb","Show Code Actions. Preferred Quick Fix Available ({0})",t.getLabel());return}}this._domNode.classList.remove(...p.lightbulbAutofix.classNamesArray),this._domNode.classList.add(...p.lightBulb.classNamesArray);const e=this._keybindingService.lookupKeybinding(this._quickFixActionId);e?this.title=m("codeActionWithKb","Show Code Actions ({0})",e.getLabel()):this.title=m("codeAction","Show Code Actions")}set title(e){this._domNode.title=e}};pw._posPref=[0];pw=pne([_ne(3,pi)],pw);xt((s,e)=>{var t;const i=(t=s.getColor(Ci))===null||t===void 0?void 0:t.transparent(.7),n=s.getColor(rU);n&&e.addRule(`
|
1027
1027
|
.monaco-editor .contentWidgets ${p.lightBulb.cssSelector} {
|
1028
1028
|
color: ${n};
|
1029
1029
|
background-color: ${i};
|