@vtj/pro 0.8.134 → 0.8.136
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/charts/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/element/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/ui/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/charts/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +12 -12
- package/dist/@vtj/materials/deps/@vtj/ui/style.css +1 -1
- package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/ant-design-vue/antd.min.js +1 -1
- package/dist/@vtj/materials/deps/element-plus/index.full.min.js +13 -13
- package/dist/@vtj/materials/deps/element-plus/zh-cn.js +1 -1
- package/dist/@vtj/materials/deps/vue-router/vue-router.global.js +40 -22
- package/dist/@vtj/materials/deps/vue-router/vue-router.global.prod.js +2 -2
- package/dist/assets/{Editor-Dtm2GYTx-xp460S5i.js → Editor-Dtm2GYTx-BT6MLqBK.js} +1 -1
- package/dist/assets/element-plus-DUXCcJ7v.js +21 -0
- package/dist/assets/extension-CPPqgHgD.css +1 -0
- package/dist/assets/{extension-DR30K3Yp.js → extension-HrOMgIFJ.js} +63 -63
- package/dist/assets/{index-CCwRxaP3.js → index-9vHGsqPM.js} +2 -2
- package/dist/assets/{index-4rLhjS-2.js → index-DpvyxLap.js} +1 -1
- package/dist/assets/{monaco-editor-DbXJANJ4.js → monaco-editor-DHettOks.js} +1 -1
- package/dist/assets/{preview-CKGRCS4J.js → preview-DlsTJUxD.js} +2 -2
- package/dist/assets/vue-router-BCeT4m1E.js +5 -0
- package/dist/index.html +6 -6
- package/package.json +11 -11
- package/dist/assets/element-plus-yz11ZeSD.js +0 -21
- package/dist/assets/extension-DQ_KE2A9.css +0 -1
- package/dist/assets/vue-router-Cbi7cS6v.js +0 -5
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-
|
|
2
|
-
import{d as f,R as n,u as p,ai as d,o as a,S as c,aG as _,Z as h,au as y}from"./@vue-C7bUvahi.js";import{z as v,E as g}from"./element-plus-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-DpvyxLap.js","./vue-router-BCeT4m1E.js","./@vue-C7bUvahi.js","./element-plus-DUXCcJ7v.js","./lodash-es-iLqVnzBD.js","./@vueuse-DpjzyaLR.js","./@element-plus-DAijv5qh.js","./@popperjs-egqNnATr.js","./@ctrl-riLredlm.js","./dayjs-rQ6ln_M2.js","./async-validator-7GrF_zuj.js","./memoize-one-BdPwpGay.js","./normalize-wheel-es-B6fDCfyv.js","./@floating-ui-B6ah097U.js","./element-plus-CsJRdetr.css","./extension-HrOMgIFJ.js","./vue-2D1yzxPk.js","./monaco-editor-DHettOks.js","./monaco-editor-BgBQhOSF.css","./mockjs-fDp8V4h3.js","./extension-CPPqgHgD.css","./index-CYyH7yZQ.css","./preview-DlsTJUxD.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{d as f,R as n,u as p,ai as d,o as a,S as c,aG as _,Z as h,au as y}from"./@vue-C7bUvahi.js";import{z as v,E as g}from"./element-plus-DUXCcJ7v.js";import{_ as m}from"./monaco-editor-DHettOks.js";import{createRouter as O,createWebHashHistory as P}from"./vue-router-BCeT4m1E.js";import"./lodash-es-iLqVnzBD.js";import"./@vueuse-DpjzyaLR.js";import"./@element-plus-DAijv5qh.js";import"./@popperjs-egqNnATr.js";import"./@ctrl-riLredlm.js";import"./dayjs-rQ6ln_M2.js";import"./async-validator-7GrF_zuj.js";import"./memoize-one-BdPwpGay.js";import"./normalize-wheel-es-B6fDCfyv.js";import"./@floating-ui-B6ah097U.js";(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))o(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const i of t.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&o(i)}).observe(document,{childList:!0,subtree:!0});function s(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function o(e){if(e.ep)return;e.ep=!0;const t=s(e);fetch(e.href,t)}})();const E=f({__name:"app",setup(l){return(r,s)=>{const o=d("router-view");return a(),n(p(g),{locale:p(v)},{default:c(()=>[(a(),n(_,null,{default:c(()=>[h(o)]),_:1}))]),_:1},8,["locale"])}}}),L=[{path:"/",name:"home",component:()=>m(()=>import("./index-DpvyxLap.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]),import.meta.url)},{path:"/preview/:id",name:"preview",component:()=>m(()=>import("./preview-DlsTJUxD.js"),__vite__mapDeps([22,17,18,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,19,20]),import.meta.url)}],w=O({history:P(),routes:L}),u=y(E);u.use(w);u.mount("#app");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var y=Object.defineProperty;var u=Object.getOwnPropertySymbols;var g=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable;var f=(o,t,e)=>t in o?y(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,h=(o,t)=>{for(var e in t||(t={}))g.call(t,e)&&f(o,e,t[e]);if(u)for(var e of u(t))k.call(t,e)&&f(o,e,t[e]);return o};var w=(o,t,e)=>new Promise((s,r)=>{var m=n=>{try{c(e.next(n))}catch(a){r(a)}},p=n=>{try{c(e.throw(n))}catch(a){r(a)}},c=n=>n.done?s(n.value):Promise.resolve(n.value).then(m,p);c((e=e.apply(o,t)).next())});import{useRoute as E}from"./vue-router-
|
|
1
|
+
var y=Object.defineProperty;var u=Object.getOwnPropertySymbols;var g=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable;var f=(o,t,e)=>t in o?y(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,h=(o,t)=>{for(var e in t||(t={}))g.call(t,e)&&f(o,e,t[e]);if(u)for(var e of u(t))k.call(t,e)&&f(o,e,t[e]);return o};var w=(o,t,e)=>new Promise((s,r)=>{var m=n=>{try{c(e.next(n))}catch(a){r(a)}},p=n=>{try{c(e.throw(n))}catch(a){r(a)}},c=n=>n.done?s(n.value):Promise.resolve(n.value).then(m,p);c((e=e.apply(o,t)).next())});import{useRoute as E}from"./vue-router-BCeT4m1E.js";import"./element-plus-DUXCcJ7v.js";import{M as v,c as $,l as P,E as A}from"./extension-HrOMgIFJ.js";import{d as B,e as C,bN as x,f as F,c as b,o as q}from"./@vue-C7bUvahi.js";import"./lodash-es-iLqVnzBD.js";import"./@vueuse-DpjzyaLR.js";import"./@element-plus-DAijv5qh.js";import"./@popperjs-egqNnATr.js";import"./@ctrl-riLredlm.js";import"./dayjs-rQ6ln_M2.js";import"./async-validator-7GrF_zuj.js";import"./memoize-one-BdPwpGay.js";import"./normalize-wheel-es-B6fDCfyv.js";import"./@floating-ui-B6ah097U.js";import"./vue-2D1yzxPk.js";import"./monaco-editor-DHettOks.js";import"./mockjs-fDp8V4h3.js";const M=B({__name:"index",setup(o){return w(this,null,function*(){let t,e;const s=E(),r=C(),m=new P,p=([t,e]=x(()=>m.getExtension().catch(()=>null)),t=yield t,e(),t),c=p?([t,e]=x(()=>new A(p).load()),t=yield t,e(),t):void 0,{__BASE_PATH__:n="/"}=p||{};v.set("Switcher",{props:{onClick:i=>{const _=location.pathname;let d=_===`${n}__vtj__/`?n:_;const l=i.currentFile;l&&l.type==="page"&&i.homepage!==l.id&&(d=`${d}#/page/${l.id}`),window.open(d,"VTJProject")}}}),v.set("Previewer",{props:{path:i=>`${location.pathname}#/preview/${i.id}`}});const a=new $(h({container:r,service:m,materialPath:n},c));return a.ready(()=>{a.openFile(s.query.id)}),F(()=>s.query.id,i=>{a.openFile(i)}),(i,_)=>(q(),b("div",{class:"designer",ref_key:"container",ref:r},null,512))})}}),S=(o,t)=>{const e=o.__vccOpts||o;for(const[s,r]of t)e[s]=r;return e},Y=S(M,[["__scopeId","data-v-9a3b4555"]]);export{Y as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var WZ=Object.defineProperty,HZ=Object.defineProperties;var VZ=Object.getOwnPropertyDescriptors;var qw=Object.getOwnPropertySymbols,$Z=Object.getPrototypeOf,Y4=Object.prototype.hasOwnProperty,X4=Object.prototype.propertyIsEnumerable,zZ=Reflect.get;var X_=(s,e)=>(e=Symbol[s])?e:Symbol.for("Symbol."+s),UZ=s=>{throw TypeError(s)},qc=Math.pow,Z4=(s,e,t)=>e in s?WZ(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,q=(s,e)=>{for(var t in e||(e={}))Y4.call(e,t)&&Z4(s,t,e[t]);if(qw)for(var t of qw(e))X4.call(e,t)&&Z4(s,t,e[t]);return s},pe=(s,e)=>HZ(s,VZ(e));var Q4=(s,e)=>{var t={};for(var i in s)Y4.call(s,i)&&e.indexOf(i)<0&&(t[i]=s[i]);if(s!=null&&qw)for(var i of qw(s))e.indexOf(i)<0&&X4.call(s,i)&&(t[i]=s[i]);return t};var J4=(s,e,t)=>zZ($Z(s),t,e);var T=(s,e,t)=>new Promise((i,n)=>{var o=l=>{try{a(t.next(l))}catch(d){n(d)}},r=l=>{try{a(t.throw(l))}catch(d){n(d)}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(o,r);a((t=t.apply(s,e)).next())}),jZ=function(s,e){this[0]=s,this[1]=e};var Kw=s=>{var e=s[X_("asyncIterator")],t=!1,i,n={};return e==null?(e=s[X_("iterator")](),i=o=>n[o]=r=>e[o](r)):(e=e.call(s),i=o=>n[o]=r=>{if(t){if(t=!1,o==="throw")throw r;return r}return t=!0,{done:!1,value:new jZ(new Promise(a=>{var l=e[o](r);l instanceof Object||UZ("Object expected"),a(l)}),1)}}),n[X_("iterator")]=()=>n,i("next"),"throw"in e?i("throw"):n.throw=o=>{throw o},"return"in e&&i("return"),n},yd=(s,e,t)=>(e=s[X_("asyncIterator")])?e.call(s):(s=s[X_("iterator")](),e={},t=(i,n)=>(n=s[i])&&(e[i]=o=>new Promise((r,a,l)=>(o=n.call(s,o),l=o.done,Promise.resolve(o.value).then(d=>r({value:d,done:l}),a)))),t("next"),t("return"),e);const qZ="modulepreload",KZ=function(s,e){return new URL(s,e).href},e5={},Le=function(e,t,i){let n=Promise.resolve();if(t&&t.length>0){const o=document.getElementsByTagName("link"),r=document.querySelector("meta[property=csp-nonce]"),a=(r==null?void 0:r.nonce)||(r==null?void 0:r.getAttribute("nonce"));n=Promise.all(t.map(l=>{if(l=KZ(l,i),l in e5)return;e5[l]=!0;const d=l.endsWith(".css"),c=d?'[rel="stylesheet"]':"";if(!!i)for(let g=o.length-1;g>=0;g--){const f=o[g];if(f.href===l&&(!d||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${c}`))return;const h=document.createElement("link");if(h.rel=d?"stylesheet":qZ,d||(h.as="script"),h.crossOrigin="",h.href=l,a&&h.setAttribute("nonce",a),document.head.appendChild(h),d)return new Promise((g,f)=>{h.addEventListener("load",g),h.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${l}`)))})}))}return n.then(()=>e()).catch(o=>{const r=new Event("vite:preloadError",{cancelable:!0});if(r.payload=o,window.dispatchEvent(r),!r.defaultPrevented)throw o})};function hr(s,e=0){return s[s.length-(1+e)]}function GZ(s){if(s.length===0)throw new Error("Invalid tail call");return[s.slice(0,s.length-1),s[s.length-1]]}function Ci(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 ZZ(s,e){const t=s.length-1;e<t&&(s[e]=s[t]),s.pop()}function Kv(s,e,t){return YZ(s.length,i=>t(s[i],e))}function YZ(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 aT(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?aT(s,n,t):s<n.length+r.length?r[0]:aT(s-(n.length+r.length),o,t)}function t5(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*nP(s,e){let t,i;for(const n of s)i!==void 0&&e(i,n)?t.push(n):(t&&(yield t),t=[n]),i=n;t&&(yield t)}function pH(s,e){for(let t=0;t<=s.length;t++)e(t===0?void 0:s[t-1],t===s.length?void 0:s[t])}function XZ(s,e){for(let t=0;t<s.length;t++)e(t===0?void 0:s[t-1],s[t],t+1===s.length?void 0:s[t+1])}function Ga(s){return s.filter(e=>!!e)}function i5(s){let e=0;for(let t=0;t<s.length;t++)s[t]&&(s[e]=s[t],e+=1);s.length=e}function mH(s){return!Array.isArray(s)||s.length===0}function as(s){return Array.isArray(s)&&s.length>0}function xc(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 sP(s,e){return s.length>0?s[0]:e}function eo(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 Nk(s,e,t){const i=s.slice(0,e),n=s.slice(e);return i.concat(t,n)}function JD(s,e){const t=s.indexOf(e);t>-1&&(s.splice(t,1),s.unshift(e))}function Gw(s,e){const t=s.indexOf(e);t>-1&&(s.splice(t,1),s.push(e))}function lT(s,e){for(const t of e)s.push(t)}function oP(s){return Array.isArray(s)?s:[s]}function QZ(s,e,t){const i=_H(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 n5(s,e,t,i){const n=_H(s,e);let o=s.splice(n,t);return o===void 0&&(o=[]),QZ(s,n,i),o}function _H(s,e){return e<0?Math.max(e+s.length,0):Math.min(e,s.length)}var Gv;(function(s){function e(o){return o<0}s.isLessThan=e;function t(o){return o<=0}s.isLessThanOrEqual=t;function i(o){return o>0}s.isGreaterThan=i;function n(o){return o===0}s.isNeitherLessOrGreaterThan=n,s.greaterThan=1,s.lessThan=-1,s.neitherLessOrGreaterThan=0})(Gv||(Gv={}));function kr(s,e){return(t,i)=>e(s(t),s(i))}function JZ(...s){return(e,t)=>{for(const i of s){const n=i(e,t);if(!Gv.isNeitherLessOrGreaterThan(n))return n}return Gv.neitherLessOrGreaterThan}}const gc=(s,e)=>s-e,eY=(s,e)=>gc(s?1:0,e?1:0);function bH(s){return(e,t)=>-s(e,t)}class kc{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}}class Xl{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(e){return new Xl(t=>this.iterate(i=>e(i)?t(i):!0))}map(e){return new Xl(t=>this.iterate(i=>t(e(i))))}findLast(e){let t;return this.iterate(i=>(e(i)&&(t=i),!0)),t}findLastMaxBy(e){let t,i=!0;return this.iterate(n=>((i||Gv.isGreaterThan(e(n,t)))&&(i=!1,t=n),!0)),t}}Xl.empty=new Xl(s=>{});class dy{constructor(e){this._indexMap=e}static createSortPermutation(e,t){const i=Array.from(e.keys()).sort((n,o)=>t(e[n],e[o]));return new dy(i)}apply(e){return e.map((t,i)=>e[this._indexMap[i]])}inverse(){const e=this._indexMap.slice();for(let t=0;t<this._indexMap.length;t++)e[this._indexMap[t]]=t;return new dy(e)}}function Hs(s){return typeof s=="string"}function Os(s){return typeof s=="object"&&s!==null&&!Array.isArray(s)&&!(s instanceof RegExp)&&!(s instanceof Date)}function tY(s){const e=Object.getPrototypeOf(Uint8Array);return typeof s=="object"&&s instanceof e}function ih(s){return typeof s=="number"&&!isNaN(s)}function s5(s){return!!s&&typeof s[Symbol.iterator]=="function"}function vH(s){return s===!0||s===!1}function ko(s){return typeof s=="undefined"}function Ql(s){return!qo(s)}function qo(s){return ko(s)||s===null}function Dt(s,e){if(!s)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function Cu(s){if(qo(s))throw new Error("Assertion Failed: argument is undefined or null");return s}function Zv(s){return typeof s=="function"}function iY(s,e){const t=Math.min(s.length,e.length);for(let i=0;i<t;i++)nY(s[i],e[i])}function nY(s,e){if(Hs(e)){if(typeof s!==e)throw new Error(`argument does not match constraint: typeof ${e}`)}else if(Zv(e)){try{if(s instanceof e)return}catch(t){}if(!qo(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 Wd(s){if(!s||typeof s!="object"||s instanceof RegExp)return s;const e=Array.isArray(s)?[]:{};return Object.entries(s).forEach(([t,i])=>{e[t]=i&&typeof i=="object"?Wd(i):i}),e}function sY(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(CH.call(t,i)){const n=t[i];typeof n=="object"&&!Object.isFrozen(n)&&!tY(n)&&e.push(n)}}return s}const CH=Object.prototype.hasOwnProperty;function wH(s,e){return dT(s,e,new Set)}function dT(s,e,t){if(qo(s))return s;const i=e(s);if(typeof i!="undefined")return i;if(Array.isArray(s)){const n=[];for(const o of s)n.push(dT(o,e,t));return n}if(Os(s)){if(t.has(s))throw new Error("Cannot clone recursive data-structure");t.add(s);const n={};for(const o in s)CH.call(s,o)&&(n[o]=dT(s[o],e,t));return t.delete(s),n}return s}function Ak(s,e,t=!0){return Os(s)?(Os(e)&&Object.keys(e).forEach(i=>{i in s?t&&(Os(s[i])&&Os(e[i])?Ak(s[i],e[i],t):s[i]=e[i]):s[i]=e[i]}),s):e}function Qo(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(!Qo(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(),!Qo(n,o))return!1;for(t=0;t<n.length;t++)if(!Qo(s[n[t]],e[n[t]]))return!1}return!0}function oY(s){let e=[];for(;Object.prototype!==s;)e=e.concat(Object.getOwnPropertyNames(s)),s=Object.getPrototypeOf(s);return e}function rP(s){const e=[];for(const t of oY(s))typeof s[t]=="function"&&e.push(t);return e}function rY(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}let aY=typeof document!="undefined"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function SH(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}),aY&&(t="["+t.replace(/[aouei]/g,"$&$&")+"]"),t}function p(s,e,...t){return SH(e,t)}function wt(s,e,...t){const i=SH(e,t);return{value:i,original:i}}var eE,tE;const xp="en";let cy=!1,uy=!1,wS=!1,yH=!1,aP=!1,lP=!1,xH=!1,Zw,SS=xp,o5=xp,lY,va;const fc=globalThis;let Es;typeof fc.vscode!="undefined"&&typeof fc.vscode.process!="undefined"?Es=fc.vscode.process:typeof process!="undefined"&&typeof((eE=process==null?void 0:process.versions)===null||eE===void 0?void 0:eE.node)=="string"&&(Es=process);const dY=typeof((tE=Es==null?void 0:Es.versions)===null||tE===void 0?void 0:tE.electron)=="string",cY=dY&&(Es==null?void 0:Es.type)==="renderer";if(typeof Es=="object"){cy=Es.platform==="win32",uy=Es.platform==="darwin",wS=Es.platform==="linux",wS&&Es.env.SNAP&&Es.env.SNAP_REVISION,Es.env.CI||Es.env.BUILD_ARTIFACTSTAGINGDIRECTORY,Zw=xp,SS=xp;const s=Es.env.VSCODE_NLS_CONFIG;if(s)try{const e=JSON.parse(s),t=e.availableLanguages["*"];Zw=e.locale,o5=e.osLocale,SS=t||xp,lY=e._translationsConfigFile}catch(e){}yH=!0}else typeof navigator=="object"&&!cY?(va=navigator.userAgent,cy=va.indexOf("Windows")>=0,uy=va.indexOf("Macintosh")>=0,lP=(va.indexOf("Macintosh")>=0||va.indexOf("iPad")>=0||va.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,wS=va.indexOf("Linux")>=0,xH=(va==null?void 0:va.indexOf("Mobi"))>=0,aP=!0,p({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),Zw=xp,SS=Zw,o5=navigator.language):console.error("Unable to resolve platform.");const Jn=cy,ct=uy,js=wS,Va=yH,Th=aP,uY=aP&&typeof fc.importScripts=="function",hY=uY?fc.origin:void 0,Za=lP,kH=xH,sd=va,gY=SS,fY=typeof fc.postMessage=="function"&&!fc.importScripts,LH=(()=>{if(fY){const s=[];fc.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}),fc.postMessage({vscodeScheduleAsyncWork:i},"*")}}return s=>setTimeout(s)})(),Lo=uy||lP?2:cy?1:3;let r5=!0,a5=!1;function DH(){if(!a5){a5=!0;const s=new Uint8Array(2);s[0]=1,s[1]=2,r5=new Uint16Array(s.buffer)[0]===513}return r5}const EH=!!(sd&&sd.indexOf("Chrome")>=0),pY=!!(sd&&sd.indexOf("Firefox")>=0),mY=!!(!EH&&sd&&sd.indexOf("Safari")>=0),_Y=!!(sd&&sd.indexOf("Edg/")>=0),bY=!!(sd&&sd.indexOf("Android")>=0),ss={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}};var mt;(function(s){function e(C){return C&&typeof C=="object"&&typeof C[Symbol.iterator]=="function"}s.is=e;const t=Object.freeze([]);function i(){return t}s.empty=i;function*n(C){yield C}s.single=n;function o(C){return e(C)?C:n(C)}s.wrap=o;function r(C){return C||t}s.from=r;function*a(C){for(let w=C.length-1;w>=0;w--)yield C[w]}s.reverse=a;function l(C){return!C||C[Symbol.iterator]().next().done===!0}s.isEmpty=l;function d(C){return C[Symbol.iterator]().next().value}s.first=d;function c(C,w){for(const S of C)if(w(S))return!0;return!1}s.some=c;function u(C,w){for(const S of C)if(w(S))return S}s.find=u;function*h(C,w){for(const S of C)w(S)&&(yield S)}s.filter=h;function*g(C,w){let S=0;for(const x of C)yield w(x,S++)}s.map=g;function*f(...C){for(const w of C)yield*Kw(w)}s.concat=f;function m(C,w,S){let x=S;for(const L of C)x=w(x,L);return x}s.reduce=m;function*_(C,w,S=C.length){for(w<0&&(w+=C.length),S<0?S+=C.length:S>C.length&&(S=C.length);w<S;w++)yield C[w]}s.slice=_;function b(C,w=Number.POSITIVE_INFINITY){const S=[];if(w===0)return[S,C];const x=C[Symbol.iterator]();for(let L=0;L<w;L++){const E=x.next();if(E.done)return[S,s.empty()];S.push(E.value)}return[S,{[Symbol.iterator](){return x}}]}s.consume=b;function v(C){return T(this,null,function*(){const w=[];try{for(var S=yd(C),x,L,E;x=!(L=yield S.next()).done;x=!1){const N=L.value;w.push(N)}}catch(L){E=[L]}finally{try{x&&(L=S.return)&&(yield L.call(S))}finally{if(E)throw E[0]}}return Promise.resolve(w)})}s.asyncToArray=v})(mt||(mt={}));let en=class cT{constructor(e){this.element=e,this.next=cT.Undefined,this.prev=cT.Undefined}};en.Undefined=new en(void 0);class Fs{constructor(){this._first=en.Undefined,this._last=en.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===en.Undefined}clear(){let e=this._first;for(;e!==en.Undefined;){const t=e.next;e.prev=en.Undefined,e.next=en.Undefined,e=t}this._first=en.Undefined,this._last=en.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const i=new en(e);if(this._first===en.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!==en.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==en.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==en.Undefined&&e.next!==en.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===en.Undefined&&e.next===en.Undefined?(this._first=en.Undefined,this._last=en.Undefined):e.next===en.Undefined?(this._last=this._last.prev,this._last.next=en.Undefined):e.prev===en.Undefined&&(this._first=this._first.next,this._first.prev=en.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==en.Undefined;)yield e.element,e=e.next}}const IH="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function vY(s=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of IH)s.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const dP=vY();function cP(s){let e=dP;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 TH=new Fs;TH.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function Yv(s,e,t,i,n){if(e=cP(e),n||(n=mt.first(TH)),t.length>n.maxLen){let d=s-n.maxLen/2;return d<0?d=0:i+=d,t=t.substring(d,s+n.maxLen/2),Yv(s,e,t,i,n)}const o=Date.now(),r=s-1-i;let a=-1,l=null;for(let d=1;!(Date.now()-o>=n.timeBudget);d++){const c=r-n.windowSize*d;e.lastIndex=Math.max(0,c);const u=CY(e,t,r,a);if(!u&&l||(l=u,c<=0))break;a=c}if(l){const d={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,d}return null}function CY(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}const Cl=8;class NH{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class AH{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 Rk(e,t)}compute(e,t,i){return i}}class rv{constructor(e,t){this.newValue=e,this.didChange=t}}function Rk(s,e){if(typeof s!="object"||typeof e!="object"||!s||!e)return new rv(e,s!==e);if(Array.isArray(s)||Array.isArray(e)){const i=Array.isArray(s)&&Array.isArray(e)&&Ci(s,e);return new rv(e,!i)}let t=!1;for(const i in e)if(e.hasOwnProperty(i)){const n=Rk(s[i],e[i]);n.didChange&&(s[i]=n.newValue,t=!0)}return new rv(s,t)}class ZC{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,t){return Rk(e,t)}validate(e){return this.defaultValue}}class x_{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return Rk(e,t)}validate(e){return typeof e=="undefined"?this.defaultValue:e}compute(e,t,i){return i}}function xe(s,e){return typeof s=="undefined"?e:s==="false"?!1:!!s}class St extends x_{constructor(e,t,i,n=void 0){typeof n!="undefined"&&(n.type="boolean",n.default=i),super(e,t,i,n)}validate(e){return xe(e,this.defaultValue)}}function lg(s,e,t,i){if(typeof s=="undefined")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 x_{static clampedInt(e,t,i,n){return lg(e,t,i,n)}constructor(e,t,i,n,o,r=void 0){typeof r!="undefined"&&(r.type="integer",r.default=i,r.minimum=n,r.maximum=o),super(e,t,i,r),this.minimum=n,this.maximum=o}validate(e){return Kt.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}function wY(s,e,t,i){if(typeof s=="undefined")return e;const n=Cr.float(s,e);return Cr.clamp(n,t,i)}class Cr extends x_{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=="undefined")return t;const i=parseFloat(e);return isNaN(i)?t:i}constructor(e,t,i,n,o){typeof o!="undefined"&&(o.type="number",o.default=i),super(e,t,i,o),this.validationFn=n}validate(e){return this.validationFn(Cr.float(e,this.defaultValue))}}class Ns extends x_{static string(e,t){return typeof e!="string"?t:e}constructor(e,t,i,n=void 0){typeof n!="undefined"&&(n.type="string",n.default=i),super(e,t,i,n)}validate(e){return Ns.string(e,this.defaultValue)}}function Ii(s,e,t,i){return typeof s!="string"?e:i&&s in i?i[s]:t.indexOf(s)===-1?e:s}class yi extends x_{constructor(e,t,i,n,o=void 0){typeof o!="undefined"&&(o.type="string",o.enum=n,o.default=i),super(e,t,i,o),this._allowedValues=n}validate(e){return Ii(e,this.defaultValue,this._allowedValues)}}class Yw extends gi{constructor(e,t,i,n,o,r,a=void 0){typeof a!="undefined"&&(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 SY(s){switch(s){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class yY extends gi{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[p("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached."),p("accessibilitySupport.on","Optimize for usage with a Screen Reader."),p("accessibilitySupport.off","Assume a screen reader is not attached.")],default:"auto",tags:["accessibility"],description:p("accessibilitySupport","Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return i===0?e.accessibilitySupport:i}}class xY extends gi{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(23,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:p("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:p("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:xe(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:xe(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function kY(s){switch(s){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var Mn;(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"})(Mn||(Mn={}));function LY(s){switch(s){case"line":return Mn.Line;case"block":return Mn.Block;case"underline":return Mn.Underline;case"line-thin":return Mn.LineThin;case"block-outline":return Mn.BlockOutline;case"underline-thin":return Mn.UnderlineThin}}class DY extends ZC{constructor(){super(142)}compute(e,t,i){const n=["monaco-editor"];return t.get(39)&&n.push(t.get(39)),e.extraEditorClassName&&n.push(e.extraEditorClassName),t.get(74)==="default"?n.push("mouse-default"):t.get(74)==="copy"&&n.push("mouse-copy"),t.get(111)&&n.push("showUnused"),t.get(140)&&n.push("showDeprecated"),n.join(" ")}}class EY extends St{constructor(){super(37,"emptySelectionClipboard",!0,{description:p("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}class IY extends gi{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(41,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:p("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:[p("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),p("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),p("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:p("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:[p("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),p("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),p("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:p("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:p("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:ct},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:p("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:p("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:xe(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":Ii(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":Ii(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:xe(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:xe(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:xe(t.loop,this.defaultValue.loop)}}}class Ko extends gi{constructor(){super(51,"fontLigatures",Ko.OFF,{anyOf:[{type:"boolean",description:p("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:p("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:p("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=="undefined"?this.defaultValue:typeof e=="string"?e==="false"||e.length===0?Ko.OFF:e==="true"?Ko.ON:e:e?Ko.ON:Ko.OFF}}Ko.OFF='"liga" off, "calt" off';Ko.ON='"liga" on, "calt" on';class Pa extends gi{constructor(){super(54,"fontVariations",Pa.OFF,{anyOf:[{type:"boolean",description:p("fontVariations","Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:p("fontVariationSettings","Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:p("fontVariationsGeneral","Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(e){return typeof e=="undefined"?this.defaultValue:typeof e=="string"?e==="false"?Pa.OFF:e==="true"?Pa.TRANSLATE:e:e?Pa.TRANSLATE:Pa.OFF}compute(e,t,i){return e.fontInfo.fontVariationSettings}}Pa.OFF="normal";Pa.TRANSLATE="translate";class TY extends ZC{constructor(){super(50)}compute(e,t,i){return e.fontInfo}}class NY extends x_{constructor(){super(52,"fontSize",lo.fontSize,{type:"number",minimum:6,maximum:100,default:lo.fontSize,description:p("fontSize","Controls the font size in pixels.")})}validate(e){const t=Cr.float(e,this.defaultValue);return t===0?lo.fontSize:Cr.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}class Pl extends gi{constructor(){super(53,"fontWeight",lo.fontWeight,{anyOf:[{type:"number",minimum:Pl.MINIMUM_VALUE,maximum:Pl.MAXIMUM_VALUE,errorMessage:p("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:Pl.SUGGESTION_VALUES}],default:lo.fontWeight,description:p("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,lo.fontWeight,Pl.MINIMUM_VALUE,Pl.MAXIMUM_VALUE))}}Pl.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"];Pl.MINIMUM_VALUE=1;Pl.MAXIMUM_VALUE=1e3;class AY 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:[p("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),p("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),p("editor.gotoLocation.multiple.goto","Go to the primary result and enable Peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(58,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:p("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":q({description:p("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleTypeDefinitions":q({description:p("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleDeclarations":q({description:p("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleImplementations":q({description:p("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleReferences":q({description:p("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:p("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:p("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:p("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:p("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:p("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:Ii(a.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(t=a.multipleDefinitions)!==null&&t!==void 0?t:Ii(a.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(i=a.multipleTypeDefinitions)!==null&&i!==void 0?i:Ii(a.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(n=a.multipleDeclarations)!==null&&n!==void 0?n:Ii(a.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(o=a.multipleImplementations)!==null&&o!==void 0?o:Ii(a.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(r=a.multipleReferences)!==null&&r!==void 0?r:Ii(a.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:Ns.string(a.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:Ns.string(a.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:Ns.string(a.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:Ns.string(a.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:Ns.string(a.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class RY extends gi{constructor(){const e={enabled:!0,delay:300,hidingDelay:300,sticky:!0,above:!0};super(60,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:p("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:p("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:p("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.hidingDelay":{type:"integer",minimum:0,default:e.hidingDelay,description:p("hover.hidingDelay","Controls the delay in milliseconds after which the hover is hidden. Requires `editor.hover.sticky` to be enabled.")},"editor.hover.above":{type:"boolean",default:e.above,description:p("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:xe(t.enabled,this.defaultValue.enabled),delay:Kt.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:xe(t.sticky,this.defaultValue.sticky),hidingDelay:Kt.clampedInt(t.hidingDelay,this.defaultValue.hidingDelay,0,6e5),above:xe(t.above,this.defaultValue.above)}}}class Qp extends ZC{constructor(){super(145)}compute(e,t,i){return Qp.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,glyphMarginDecorationLaneCount:e.glyphMarginDecorationLaneCount})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=Math.floor(e.paddingTop/e.lineHeight);let n=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(n=Math.max(n,t-1));const o=(i+e.viewLineCount+n)/(e.pixelRatio*e.height),r=Math.floor(e.viewLineCount/o);return{typicalViewportLineCount:t,extraLinesBeforeFirstLine:i,extraLinesBeyondLastLine:n,desiredRatio:o,minimapLineCount:r}}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.paddingTop===r.paddingTop&&e.paddingBottom===r.paddingBottom&&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,d=e.typicalHalfwidthCharacterWidth,c=e.scrollBeyondLastLine,u=e.minimap.renderCharacters;let h=o>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const g=e.minimap.maxColumn,f=e.minimap.size,m=e.minimap.side,_=e.verticalScrollbarWidth,b=e.viewLineCount,v=e.remainingWidth,C=e.isViewportWrapping,w=u?2:3;let S=Math.floor(o*n);const x=S/o;let L=!1,E=!1,N=w*h,H=h/o,O=1;if(f==="fill"||f==="fit"){const{typicalViewportLineCount:Oe,extraLinesBeforeFirstLine:Ce,extraLinesBeyondLastLine:qe,desiredRatio:Ze,minimapLineCount:Ae}=Qp.computeContainedMinimapLineCount({viewLineCount:b,scrollBeyondLastLine:c,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:n,lineHeight:l,pixelRatio:o});if(b/Ae>1)L=!0,E=!0,h=1,N=1,H=h/o;else{let Ui=!1,ks=h+1;if(f==="fit"){const rn=Math.ceil((Ce+b+qe)*N);C&&a&&v<=t.stableFitRemainingWidth?(Ui=!0,ks=t.stableFitMaxMinimapScale):Ui=rn>S}if(f==="fill"||Ui){L=!0;const rn=h;N=Math.min(l*o,Math.max(1,Math.floor(1/Ze))),C&&a&&v<=t.stableFitRemainingWidth&&(ks=t.stableFitMaxMinimapScale),h=Math.min(ks,Math.max(1,Math.floor(N/w))),h>rn&&(O=Math.min(2,h/rn)),H=h/o/O,S=Math.ceil(Math.max(Oe,Ce+b+qe)*N),C?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=v,t.stableFitMaxMinimapScale=h):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const P=Math.floor(g*H),W=Math.min(P,Math.max(0,Math.floor((v-_-2)*H/(d+H)))+Cl);let K=Math.floor(o*W);const te=K/o;K=Math.floor(K*O);const we=u?1:2,ke=m==="left"?0:i-W-_;return{renderMinimap:we,minimapLeft:ke,minimapWidth:W,minimapHeightIsEditorHeight:L,minimapIsSampling:E,minimapScale:h,minimapLineHeight:N,minimapCanvasInnerWidth:K,minimapCanvasInnerHeight:S,minimapCanvasOuterWidth:te,minimapCanvasOuterHeight:x}}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,d=t.pixelRatio,c=t.viewLineCount,u=e.get(137),h=u==="inherit"?e.get(136):u,g=h==="inherit"?e.get(132):h,f=e.get(135),m=t.isDominatedByLongLines,_=e.get(57),b=e.get(68).renderType!==0,v=e.get(69),C=e.get(105),w=e.get(84),S=e.get(73),x=e.get(103),L=x.verticalScrollbarSize,E=x.verticalHasArrows,N=x.arrowSize,H=x.horizontalScrollbarSize,O=e.get(43),P=e.get(110)!=="never";let W=e.get(66);O&&P&&(W+=16);let K=0;if(b){const gn=Math.max(r,v);K=Math.round(gn*l)}let te=0;_&&(te=o*t.glyphMarginDecorationLaneCount);let we=0,ke=we+te,Oe=ke+K,Ce=Oe+W;const qe=i-te-K-W;let Ze=!1,Ae=!1,ve=-1;h==="inherit"&&m?(Ze=!0,Ae=!0):g==="on"||g==="bounded"?Ae=!0:g==="wordWrapColumn"&&(ve=f);const Ui=Qp._computeMinimapLayout({outerWidth:i,outerHeight:n,lineHeight:o,typicalHalfwidthCharacterWidth:a,pixelRatio:d,scrollBeyondLastLine:C,paddingTop:w.top,paddingBottom:w.bottom,minimap:S,verticalScrollbarWidth:L,viewLineCount:c,remainingWidth:qe,isViewportWrapping:Ae},t.memory||new AH);Ui.renderMinimap!==0&&Ui.minimapLeft===0&&(we+=Ui.minimapWidth,ke+=Ui.minimapWidth,Oe+=Ui.minimapWidth,Ce+=Ui.minimapWidth);const ks=qe-Ui.minimapWidth,rn=Math.max(1,Math.floor((ks-L-2)/a)),Rt=E?N:0;return Ae&&(ve=Math.max(1,rn),g==="bounded"&&(ve=Math.min(ve,f))),{width:i,height:n,glyphMarginLeft:we,glyphMarginWidth:te,glyphMarginDecorationLaneCount:t.glyphMarginDecorationLaneCount,lineNumbersLeft:ke,lineNumbersWidth:K,decorationsLeft:Oe,decorationsWidth:W,contentLeft:Ce,contentWidth:ks,minimap:Ui,viewportColumn:rn,isWordWrapMinified:Ze,isViewportWrapping:Ae,wrappingColumn:ve,verticalScrollbarWidth:L,horizontalScrollbarHeight:H,overviewRuler:{top:Rt,width:L,height:n-2*Rt,right:0}}}}class MY extends gi{constructor(){super(139,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[p("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),p("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:p("wrappingStrategy","Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(e){return Ii(e,"simple",["simple","advanced"])}compute(e,t,i){return t.get(2)===2?"advanced":i}}var Qr;(function(s){s.Off="off",s.OnCode="onCode",s.On="on"})(Qr||(Qr={}));class PY extends gi{constructor(){const e={enabled:Qr.On};super(65,"lightbulb",e,{"editor.lightbulb.enabled":{type:"string",tags:["experimental"],enum:[Qr.Off,Qr.OnCode,Qr.On],default:e.enabled,enumDescriptions:[p("editor.lightbulb.enabled.off","Disable the code action menu."),p("editor.lightbulb.enabled.onCode","Show the code action menu when the cursor is on lines with code."),p("editor.lightbulb.enabled.on","Show the code action menu when the cursor is on lines with code or on empty lines.")],description:p("enabled","Enables the Code Action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:Ii(e.enabled,this.defaultValue.enabled,[Qr.Off,Qr.OnCode,Qr.On])}}}class OY extends gi{constructor(){const e={enabled:!0,maxLineCount:5,defaultModel:"outlineModel",scrollWithEditor:!0};super(115,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:p("editor.stickyScroll.enabled","Shows the nested current scopes during the scroll at the top of the editor."),tags:["experimental"]},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:20,description:p("editor.stickyScroll.maxLineCount","Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:e.defaultModel,description:p("editor.stickyScroll.defaultModel","Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.")},"editor.stickyScroll.scrollWithEditor":{type:"boolean",default:e.scrollWithEditor,description:p("editor.stickyScroll.scrollWithEditor","Enable scrolling of Sticky Scroll with the editor's horizontal scrollbar.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:xe(t.enabled,this.defaultValue.enabled),maxLineCount:Kt.clampedInt(t.maxLineCount,this.defaultValue.maxLineCount,1,20),defaultModel:Ii(t.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"]),scrollWithEditor:xe(t.scrollWithEditor,this.defaultValue.scrollWithEditor)}}}class FY extends gi{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(141,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:p("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[p("editor.inlayHints.on","Inlay hints are enabled"),p("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",ct?"Ctrl+Option":"Ctrl+Alt"),p("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",ct?"Ctrl+Option":"Ctrl+Alt"),p("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:p("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:p("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:p("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:Ii(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:Kt.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:Ns.string(t.fontFamily,this.defaultValue.fontFamily),padding:xe(t.padding,this.defaultValue.padding)}}}class BY extends gi{constructor(){super(66,"lineDecorationsWidth",10)}validate(e){return typeof e=="string"&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):Kt.clampedInt(e,this.defaultValue,0,1e3)}compute(e,t,i){return i<0?Kt.clampedInt(-i*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):i}}class WY extends Cr{constructor(){super(67,"lineHeight",lo.lineHeight,e=>Cr.clamp(e,0,150),{markdownDescription:p("lineHeight",`Controls the line height.
|
|
1
|
+
var WZ=Object.defineProperty,HZ=Object.defineProperties;var VZ=Object.getOwnPropertyDescriptors;var qw=Object.getOwnPropertySymbols,$Z=Object.getPrototypeOf,Y4=Object.prototype.hasOwnProperty,X4=Object.prototype.propertyIsEnumerable,zZ=Reflect.get;var X_=(s,e)=>(e=Symbol[s])?e:Symbol.for("Symbol."+s),UZ=s=>{throw TypeError(s)},qc=Math.pow,Z4=(s,e,t)=>e in s?WZ(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,q=(s,e)=>{for(var t in e||(e={}))Y4.call(e,t)&&Z4(s,t,e[t]);if(qw)for(var t of qw(e))X4.call(e,t)&&Z4(s,t,e[t]);return s},pe=(s,e)=>HZ(s,VZ(e));var Q4=(s,e)=>{var t={};for(var i in s)Y4.call(s,i)&&e.indexOf(i)<0&&(t[i]=s[i]);if(s!=null&&qw)for(var i of qw(s))e.indexOf(i)<0&&X4.call(s,i)&&(t[i]=s[i]);return t};var J4=(s,e,t)=>zZ($Z(s),t,e);var T=(s,e,t)=>new Promise((i,n)=>{var o=l=>{try{a(t.next(l))}catch(d){n(d)}},r=l=>{try{a(t.throw(l))}catch(d){n(d)}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(o,r);a((t=t.apply(s,e)).next())}),jZ=function(s,e){this[0]=s,this[1]=e};var Kw=s=>{var e=s[X_("asyncIterator")],t=!1,i,n={};return e==null?(e=s[X_("iterator")](),i=o=>n[o]=r=>e[o](r)):(e=e.call(s),i=o=>n[o]=r=>{if(t){if(t=!1,o==="throw")throw r;return r}return t=!0,{done:!1,value:new jZ(new Promise(a=>{var l=e[o](r);l instanceof Object||UZ("Object expected"),a(l)}),1)}}),n[X_("iterator")]=()=>n,i("next"),"throw"in e?i("throw"):n.throw=o=>{throw o},"return"in e&&i("return"),n},yd=(s,e,t)=>(e=s[X_("asyncIterator")])?e.call(s):(s=s[X_("iterator")](),e={},t=(i,n)=>(n=s[i])&&(e[i]=o=>new Promise((r,a,l)=>(o=n.call(s,o),l=o.done,Promise.resolve(o.value).then(d=>r({value:d,done:l}),a)))),t("next"),t("return"),e);const qZ="modulepreload",KZ=function(s,e){return new URL(s,e).href},e5={},Le=function(e,t,i){let n=Promise.resolve();if(t&&t.length>0){const r=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));n=Promise.allSettled(t.map(d=>{if(d=KZ(d,i),d in e5)return;e5[d]=!0;const c=d.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(!!i)for(let f=r.length-1;f>=0;f--){const m=r[f];if(m.href===d&&(!c||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${d}"]${u}`))return;const g=document.createElement("link");if(g.rel=c?"stylesheet":qZ,c||(g.as="script"),g.crossOrigin="",g.href=d,l&&g.setAttribute("nonce",l),document.head.appendChild(g),c)return new Promise((f,m)=>{g.addEventListener("load",f),g.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${d}`)))})}))}function o(r){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=r,window.dispatchEvent(a),!a.defaultPrevented)throw r}return n.then(r=>{for(const a of r||[])a.status==="rejected"&&o(a.reason);return e().catch(o)})};function hr(s,e=0){return s[s.length-(1+e)]}function GZ(s){if(s.length===0)throw new Error("Invalid tail call");return[s.slice(0,s.length-1),s[s.length-1]]}function Ci(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 ZZ(s,e){const t=s.length-1;e<t&&(s[e]=s[t]),s.pop()}function Kv(s,e,t){return YZ(s.length,i=>t(s[i],e))}function YZ(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 aT(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?aT(s,n,t):s<n.length+r.length?r[0]:aT(s-(n.length+r.length),o,t)}function t5(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*nP(s,e){let t,i;for(const n of s)i!==void 0&&e(i,n)?t.push(n):(t&&(yield t),t=[n]),i=n;t&&(yield t)}function pH(s,e){for(let t=0;t<=s.length;t++)e(t===0?void 0:s[t-1],t===s.length?void 0:s[t])}function XZ(s,e){for(let t=0;t<s.length;t++)e(t===0?void 0:s[t-1],s[t],t+1===s.length?void 0:s[t+1])}function Ga(s){return s.filter(e=>!!e)}function i5(s){let e=0;for(let t=0;t<s.length;t++)s[t]&&(s[e]=s[t],e+=1);s.length=e}function mH(s){return!Array.isArray(s)||s.length===0}function as(s){return Array.isArray(s)&&s.length>0}function xc(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 sP(s,e){return s.length>0?s[0]:e}function eo(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 Nk(s,e,t){const i=s.slice(0,e),n=s.slice(e);return i.concat(t,n)}function JD(s,e){const t=s.indexOf(e);t>-1&&(s.splice(t,1),s.unshift(e))}function Gw(s,e){const t=s.indexOf(e);t>-1&&(s.splice(t,1),s.push(e))}function lT(s,e){for(const t of e)s.push(t)}function oP(s){return Array.isArray(s)?s:[s]}function QZ(s,e,t){const i=_H(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 n5(s,e,t,i){const n=_H(s,e);let o=s.splice(n,t);return o===void 0&&(o=[]),QZ(s,n,i),o}function _H(s,e){return e<0?Math.max(e+s.length,0):Math.min(e,s.length)}var Gv;(function(s){function e(o){return o<0}s.isLessThan=e;function t(o){return o<=0}s.isLessThanOrEqual=t;function i(o){return o>0}s.isGreaterThan=i;function n(o){return o===0}s.isNeitherLessOrGreaterThan=n,s.greaterThan=1,s.lessThan=-1,s.neitherLessOrGreaterThan=0})(Gv||(Gv={}));function kr(s,e){return(t,i)=>e(s(t),s(i))}function JZ(...s){return(e,t)=>{for(const i of s){const n=i(e,t);if(!Gv.isNeitherLessOrGreaterThan(n))return n}return Gv.neitherLessOrGreaterThan}}const gc=(s,e)=>s-e,eY=(s,e)=>gc(s?1:0,e?1:0);function bH(s){return(e,t)=>-s(e,t)}class kc{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}}class Xl{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(e){return new Xl(t=>this.iterate(i=>e(i)?t(i):!0))}map(e){return new Xl(t=>this.iterate(i=>t(e(i))))}findLast(e){let t;return this.iterate(i=>(e(i)&&(t=i),!0)),t}findLastMaxBy(e){let t,i=!0;return this.iterate(n=>((i||Gv.isGreaterThan(e(n,t)))&&(i=!1,t=n),!0)),t}}Xl.empty=new Xl(s=>{});class dy{constructor(e){this._indexMap=e}static createSortPermutation(e,t){const i=Array.from(e.keys()).sort((n,o)=>t(e[n],e[o]));return new dy(i)}apply(e){return e.map((t,i)=>e[this._indexMap[i]])}inverse(){const e=this._indexMap.slice();for(let t=0;t<this._indexMap.length;t++)e[this._indexMap[t]]=t;return new dy(e)}}function Hs(s){return typeof s=="string"}function Os(s){return typeof s=="object"&&s!==null&&!Array.isArray(s)&&!(s instanceof RegExp)&&!(s instanceof Date)}function tY(s){const e=Object.getPrototypeOf(Uint8Array);return typeof s=="object"&&s instanceof e}function ih(s){return typeof s=="number"&&!isNaN(s)}function s5(s){return!!s&&typeof s[Symbol.iterator]=="function"}function vH(s){return s===!0||s===!1}function ko(s){return typeof s=="undefined"}function Ql(s){return!qo(s)}function qo(s){return ko(s)||s===null}function Dt(s,e){if(!s)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function Cu(s){if(qo(s))throw new Error("Assertion Failed: argument is undefined or null");return s}function Zv(s){return typeof s=="function"}function iY(s,e){const t=Math.min(s.length,e.length);for(let i=0;i<t;i++)nY(s[i],e[i])}function nY(s,e){if(Hs(e)){if(typeof s!==e)throw new Error(`argument does not match constraint: typeof ${e}`)}else if(Zv(e)){try{if(s instanceof e)return}catch(t){}if(!qo(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 Wd(s){if(!s||typeof s!="object"||s instanceof RegExp)return s;const e=Array.isArray(s)?[]:{};return Object.entries(s).forEach(([t,i])=>{e[t]=i&&typeof i=="object"?Wd(i):i}),e}function sY(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(CH.call(t,i)){const n=t[i];typeof n=="object"&&!Object.isFrozen(n)&&!tY(n)&&e.push(n)}}return s}const CH=Object.prototype.hasOwnProperty;function wH(s,e){return dT(s,e,new Set)}function dT(s,e,t){if(qo(s))return s;const i=e(s);if(typeof i!="undefined")return i;if(Array.isArray(s)){const n=[];for(const o of s)n.push(dT(o,e,t));return n}if(Os(s)){if(t.has(s))throw new Error("Cannot clone recursive data-structure");t.add(s);const n={};for(const o in s)CH.call(s,o)&&(n[o]=dT(s[o],e,t));return t.delete(s),n}return s}function Ak(s,e,t=!0){return Os(s)?(Os(e)&&Object.keys(e).forEach(i=>{i in s?t&&(Os(s[i])&&Os(e[i])?Ak(s[i],e[i],t):s[i]=e[i]):s[i]=e[i]}),s):e}function Qo(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(!Qo(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(),!Qo(n,o))return!1;for(t=0;t<n.length;t++)if(!Qo(s[n[t]],e[n[t]]))return!1}return!0}function oY(s){let e=[];for(;Object.prototype!==s;)e=e.concat(Object.getOwnPropertyNames(s)),s=Object.getPrototypeOf(s);return e}function rP(s){const e=[];for(const t of oY(s))typeof s[t]=="function"&&e.push(t);return e}function rY(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}let aY=typeof document!="undefined"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function SH(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}),aY&&(t="["+t.replace(/[aouei]/g,"$&$&")+"]"),t}function p(s,e,...t){return SH(e,t)}function wt(s,e,...t){const i=SH(e,t);return{value:i,original:i}}var eE,tE;const xp="en";let cy=!1,uy=!1,wS=!1,yH=!1,aP=!1,lP=!1,xH=!1,Zw,SS=xp,o5=xp,lY,va;const fc=globalThis;let Es;typeof fc.vscode!="undefined"&&typeof fc.vscode.process!="undefined"?Es=fc.vscode.process:typeof process!="undefined"&&typeof((eE=process==null?void 0:process.versions)===null||eE===void 0?void 0:eE.node)=="string"&&(Es=process);const dY=typeof((tE=Es==null?void 0:Es.versions)===null||tE===void 0?void 0:tE.electron)=="string",cY=dY&&(Es==null?void 0:Es.type)==="renderer";if(typeof Es=="object"){cy=Es.platform==="win32",uy=Es.platform==="darwin",wS=Es.platform==="linux",wS&&Es.env.SNAP&&Es.env.SNAP_REVISION,Es.env.CI||Es.env.BUILD_ARTIFACTSTAGINGDIRECTORY,Zw=xp,SS=xp;const s=Es.env.VSCODE_NLS_CONFIG;if(s)try{const e=JSON.parse(s),t=e.availableLanguages["*"];Zw=e.locale,o5=e.osLocale,SS=t||xp,lY=e._translationsConfigFile}catch(e){}yH=!0}else typeof navigator=="object"&&!cY?(va=navigator.userAgent,cy=va.indexOf("Windows")>=0,uy=va.indexOf("Macintosh")>=0,lP=(va.indexOf("Macintosh")>=0||va.indexOf("iPad")>=0||va.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,wS=va.indexOf("Linux")>=0,xH=(va==null?void 0:va.indexOf("Mobi"))>=0,aP=!0,p({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),Zw=xp,SS=Zw,o5=navigator.language):console.error("Unable to resolve platform.");const Jn=cy,ct=uy,js=wS,Va=yH,Th=aP,uY=aP&&typeof fc.importScripts=="function",hY=uY?fc.origin:void 0,Za=lP,kH=xH,sd=va,gY=SS,fY=typeof fc.postMessage=="function"&&!fc.importScripts,LH=(()=>{if(fY){const s=[];fc.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}),fc.postMessage({vscodeScheduleAsyncWork:i},"*")}}return s=>setTimeout(s)})(),Lo=uy||lP?2:cy?1:3;let r5=!0,a5=!1;function DH(){if(!a5){a5=!0;const s=new Uint8Array(2);s[0]=1,s[1]=2,r5=new Uint16Array(s.buffer)[0]===513}return r5}const EH=!!(sd&&sd.indexOf("Chrome")>=0),pY=!!(sd&&sd.indexOf("Firefox")>=0),mY=!!(!EH&&sd&&sd.indexOf("Safari")>=0),_Y=!!(sd&&sd.indexOf("Edg/")>=0),bY=!!(sd&&sd.indexOf("Android")>=0),ss={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}};var mt;(function(s){function e(C){return C&&typeof C=="object"&&typeof C[Symbol.iterator]=="function"}s.is=e;const t=Object.freeze([]);function i(){return t}s.empty=i;function*n(C){yield C}s.single=n;function o(C){return e(C)?C:n(C)}s.wrap=o;function r(C){return C||t}s.from=r;function*a(C){for(let w=C.length-1;w>=0;w--)yield C[w]}s.reverse=a;function l(C){return!C||C[Symbol.iterator]().next().done===!0}s.isEmpty=l;function d(C){return C[Symbol.iterator]().next().value}s.first=d;function c(C,w){for(const S of C)if(w(S))return!0;return!1}s.some=c;function u(C,w){for(const S of C)if(w(S))return S}s.find=u;function*h(C,w){for(const S of C)w(S)&&(yield S)}s.filter=h;function*g(C,w){let S=0;for(const x of C)yield w(x,S++)}s.map=g;function*f(...C){for(const w of C)yield*Kw(w)}s.concat=f;function m(C,w,S){let x=S;for(const L of C)x=w(x,L);return x}s.reduce=m;function*_(C,w,S=C.length){for(w<0&&(w+=C.length),S<0?S+=C.length:S>C.length&&(S=C.length);w<S;w++)yield C[w]}s.slice=_;function b(C,w=Number.POSITIVE_INFINITY){const S=[];if(w===0)return[S,C];const x=C[Symbol.iterator]();for(let L=0;L<w;L++){const E=x.next();if(E.done)return[S,s.empty()];S.push(E.value)}return[S,{[Symbol.iterator](){return x}}]}s.consume=b;function v(C){return T(this,null,function*(){const w=[];try{for(var S=yd(C),x,L,E;x=!(L=yield S.next()).done;x=!1){const N=L.value;w.push(N)}}catch(L){E=[L]}finally{try{x&&(L=S.return)&&(yield L.call(S))}finally{if(E)throw E[0]}}return Promise.resolve(w)})}s.asyncToArray=v})(mt||(mt={}));let en=class cT{constructor(e){this.element=e,this.next=cT.Undefined,this.prev=cT.Undefined}};en.Undefined=new en(void 0);class Fs{constructor(){this._first=en.Undefined,this._last=en.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===en.Undefined}clear(){let e=this._first;for(;e!==en.Undefined;){const t=e.next;e.prev=en.Undefined,e.next=en.Undefined,e=t}this._first=en.Undefined,this._last=en.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const i=new en(e);if(this._first===en.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!==en.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==en.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==en.Undefined&&e.next!==en.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===en.Undefined&&e.next===en.Undefined?(this._first=en.Undefined,this._last=en.Undefined):e.next===en.Undefined?(this._last=this._last.prev,this._last.next=en.Undefined):e.prev===en.Undefined&&(this._first=this._first.next,this._first.prev=en.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==en.Undefined;)yield e.element,e=e.next}}const IH="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function vY(s=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of IH)s.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const dP=vY();function cP(s){let e=dP;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 TH=new Fs;TH.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function Yv(s,e,t,i,n){if(e=cP(e),n||(n=mt.first(TH)),t.length>n.maxLen){let d=s-n.maxLen/2;return d<0?d=0:i+=d,t=t.substring(d,s+n.maxLen/2),Yv(s,e,t,i,n)}const o=Date.now(),r=s-1-i;let a=-1,l=null;for(let d=1;!(Date.now()-o>=n.timeBudget);d++){const c=r-n.windowSize*d;e.lastIndex=Math.max(0,c);const u=CY(e,t,r,a);if(!u&&l||(l=u,c<=0))break;a=c}if(l){const d={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,d}return null}function CY(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}const Cl=8;class NH{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class AH{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 Rk(e,t)}compute(e,t,i){return i}}class rv{constructor(e,t){this.newValue=e,this.didChange=t}}function Rk(s,e){if(typeof s!="object"||typeof e!="object"||!s||!e)return new rv(e,s!==e);if(Array.isArray(s)||Array.isArray(e)){const i=Array.isArray(s)&&Array.isArray(e)&&Ci(s,e);return new rv(e,!i)}let t=!1;for(const i in e)if(e.hasOwnProperty(i)){const n=Rk(s[i],e[i]);n.didChange&&(s[i]=n.newValue,t=!0)}return new rv(s,t)}class ZC{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,t){return Rk(e,t)}validate(e){return this.defaultValue}}class x_{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return Rk(e,t)}validate(e){return typeof e=="undefined"?this.defaultValue:e}compute(e,t,i){return i}}function xe(s,e){return typeof s=="undefined"?e:s==="false"?!1:!!s}class St extends x_{constructor(e,t,i,n=void 0){typeof n!="undefined"&&(n.type="boolean",n.default=i),super(e,t,i,n)}validate(e){return xe(e,this.defaultValue)}}function lg(s,e,t,i){if(typeof s=="undefined")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 x_{static clampedInt(e,t,i,n){return lg(e,t,i,n)}constructor(e,t,i,n,o,r=void 0){typeof r!="undefined"&&(r.type="integer",r.default=i,r.minimum=n,r.maximum=o),super(e,t,i,r),this.minimum=n,this.maximum=o}validate(e){return Kt.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}function wY(s,e,t,i){if(typeof s=="undefined")return e;const n=Cr.float(s,e);return Cr.clamp(n,t,i)}class Cr extends x_{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=="undefined")return t;const i=parseFloat(e);return isNaN(i)?t:i}constructor(e,t,i,n,o){typeof o!="undefined"&&(o.type="number",o.default=i),super(e,t,i,o),this.validationFn=n}validate(e){return this.validationFn(Cr.float(e,this.defaultValue))}}class Ns extends x_{static string(e,t){return typeof e!="string"?t:e}constructor(e,t,i,n=void 0){typeof n!="undefined"&&(n.type="string",n.default=i),super(e,t,i,n)}validate(e){return Ns.string(e,this.defaultValue)}}function Ii(s,e,t,i){return typeof s!="string"?e:i&&s in i?i[s]:t.indexOf(s)===-1?e:s}class yi extends x_{constructor(e,t,i,n,o=void 0){typeof o!="undefined"&&(o.type="string",o.enum=n,o.default=i),super(e,t,i,o),this._allowedValues=n}validate(e){return Ii(e,this.defaultValue,this._allowedValues)}}class Yw extends gi{constructor(e,t,i,n,o,r,a=void 0){typeof a!="undefined"&&(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 SY(s){switch(s){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class yY extends gi{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[p("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached."),p("accessibilitySupport.on","Optimize for usage with a Screen Reader."),p("accessibilitySupport.off","Assume a screen reader is not attached.")],default:"auto",tags:["accessibility"],description:p("accessibilitySupport","Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return i===0?e.accessibilitySupport:i}}class xY extends gi{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(23,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:p("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:p("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:xe(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:xe(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function kY(s){switch(s){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var Mn;(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"})(Mn||(Mn={}));function LY(s){switch(s){case"line":return Mn.Line;case"block":return Mn.Block;case"underline":return Mn.Underline;case"line-thin":return Mn.LineThin;case"block-outline":return Mn.BlockOutline;case"underline-thin":return Mn.UnderlineThin}}class DY extends ZC{constructor(){super(142)}compute(e,t,i){const n=["monaco-editor"];return t.get(39)&&n.push(t.get(39)),e.extraEditorClassName&&n.push(e.extraEditorClassName),t.get(74)==="default"?n.push("mouse-default"):t.get(74)==="copy"&&n.push("mouse-copy"),t.get(111)&&n.push("showUnused"),t.get(140)&&n.push("showDeprecated"),n.join(" ")}}class EY extends St{constructor(){super(37,"emptySelectionClipboard",!0,{description:p("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}class IY extends gi{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(41,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:p("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:[p("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),p("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),p("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:p("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:[p("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),p("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),p("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:p("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:p("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:ct},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:p("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:p("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:xe(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":Ii(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":Ii(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:xe(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:xe(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:xe(t.loop,this.defaultValue.loop)}}}class Ko extends gi{constructor(){super(51,"fontLigatures",Ko.OFF,{anyOf:[{type:"boolean",description:p("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:p("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:p("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=="undefined"?this.defaultValue:typeof e=="string"?e==="false"||e.length===0?Ko.OFF:e==="true"?Ko.ON:e:e?Ko.ON:Ko.OFF}}Ko.OFF='"liga" off, "calt" off';Ko.ON='"liga" on, "calt" on';class Pa extends gi{constructor(){super(54,"fontVariations",Pa.OFF,{anyOf:[{type:"boolean",description:p("fontVariations","Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:p("fontVariationSettings","Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:p("fontVariationsGeneral","Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(e){return typeof e=="undefined"?this.defaultValue:typeof e=="string"?e==="false"?Pa.OFF:e==="true"?Pa.TRANSLATE:e:e?Pa.TRANSLATE:Pa.OFF}compute(e,t,i){return e.fontInfo.fontVariationSettings}}Pa.OFF="normal";Pa.TRANSLATE="translate";class TY extends ZC{constructor(){super(50)}compute(e,t,i){return e.fontInfo}}class NY extends x_{constructor(){super(52,"fontSize",lo.fontSize,{type:"number",minimum:6,maximum:100,default:lo.fontSize,description:p("fontSize","Controls the font size in pixels.")})}validate(e){const t=Cr.float(e,this.defaultValue);return t===0?lo.fontSize:Cr.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}class Pl extends gi{constructor(){super(53,"fontWeight",lo.fontWeight,{anyOf:[{type:"number",minimum:Pl.MINIMUM_VALUE,maximum:Pl.MAXIMUM_VALUE,errorMessage:p("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:Pl.SUGGESTION_VALUES}],default:lo.fontWeight,description:p("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,lo.fontWeight,Pl.MINIMUM_VALUE,Pl.MAXIMUM_VALUE))}}Pl.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"];Pl.MINIMUM_VALUE=1;Pl.MAXIMUM_VALUE=1e3;class AY 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:[p("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),p("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),p("editor.gotoLocation.multiple.goto","Go to the primary result and enable Peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(58,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:p("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":q({description:p("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleTypeDefinitions":q({description:p("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleDeclarations":q({description:p("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleImplementations":q({description:p("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleReferences":q({description:p("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:p("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:p("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:p("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:p("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:p("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:Ii(a.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(t=a.multipleDefinitions)!==null&&t!==void 0?t:Ii(a.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(i=a.multipleTypeDefinitions)!==null&&i!==void 0?i:Ii(a.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(n=a.multipleDeclarations)!==null&&n!==void 0?n:Ii(a.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(o=a.multipleImplementations)!==null&&o!==void 0?o:Ii(a.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(r=a.multipleReferences)!==null&&r!==void 0?r:Ii(a.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:Ns.string(a.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:Ns.string(a.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:Ns.string(a.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:Ns.string(a.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:Ns.string(a.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class RY extends gi{constructor(){const e={enabled:!0,delay:300,hidingDelay:300,sticky:!0,above:!0};super(60,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:p("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:p("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:p("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.hidingDelay":{type:"integer",minimum:0,default:e.hidingDelay,description:p("hover.hidingDelay","Controls the delay in milliseconds after which the hover is hidden. Requires `editor.hover.sticky` to be enabled.")},"editor.hover.above":{type:"boolean",default:e.above,description:p("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:xe(t.enabled,this.defaultValue.enabled),delay:Kt.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:xe(t.sticky,this.defaultValue.sticky),hidingDelay:Kt.clampedInt(t.hidingDelay,this.defaultValue.hidingDelay,0,6e5),above:xe(t.above,this.defaultValue.above)}}}class Qp extends ZC{constructor(){super(145)}compute(e,t,i){return Qp.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,glyphMarginDecorationLaneCount:e.glyphMarginDecorationLaneCount})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=Math.floor(e.paddingTop/e.lineHeight);let n=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(n=Math.max(n,t-1));const o=(i+e.viewLineCount+n)/(e.pixelRatio*e.height),r=Math.floor(e.viewLineCount/o);return{typicalViewportLineCount:t,extraLinesBeforeFirstLine:i,extraLinesBeyondLastLine:n,desiredRatio:o,minimapLineCount:r}}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.paddingTop===r.paddingTop&&e.paddingBottom===r.paddingBottom&&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,d=e.typicalHalfwidthCharacterWidth,c=e.scrollBeyondLastLine,u=e.minimap.renderCharacters;let h=o>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const g=e.minimap.maxColumn,f=e.minimap.size,m=e.minimap.side,_=e.verticalScrollbarWidth,b=e.viewLineCount,v=e.remainingWidth,C=e.isViewportWrapping,w=u?2:3;let S=Math.floor(o*n);const x=S/o;let L=!1,E=!1,N=w*h,H=h/o,O=1;if(f==="fill"||f==="fit"){const{typicalViewportLineCount:Oe,extraLinesBeforeFirstLine:Ce,extraLinesBeyondLastLine:qe,desiredRatio:Ze,minimapLineCount:Ae}=Qp.computeContainedMinimapLineCount({viewLineCount:b,scrollBeyondLastLine:c,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:n,lineHeight:l,pixelRatio:o});if(b/Ae>1)L=!0,E=!0,h=1,N=1,H=h/o;else{let Ui=!1,ks=h+1;if(f==="fit"){const rn=Math.ceil((Ce+b+qe)*N);C&&a&&v<=t.stableFitRemainingWidth?(Ui=!0,ks=t.stableFitMaxMinimapScale):Ui=rn>S}if(f==="fill"||Ui){L=!0;const rn=h;N=Math.min(l*o,Math.max(1,Math.floor(1/Ze))),C&&a&&v<=t.stableFitRemainingWidth&&(ks=t.stableFitMaxMinimapScale),h=Math.min(ks,Math.max(1,Math.floor(N/w))),h>rn&&(O=Math.min(2,h/rn)),H=h/o/O,S=Math.ceil(Math.max(Oe,Ce+b+qe)*N),C?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=v,t.stableFitMaxMinimapScale=h):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const P=Math.floor(g*H),W=Math.min(P,Math.max(0,Math.floor((v-_-2)*H/(d+H)))+Cl);let K=Math.floor(o*W);const te=K/o;K=Math.floor(K*O);const we=u?1:2,ke=m==="left"?0:i-W-_;return{renderMinimap:we,minimapLeft:ke,minimapWidth:W,minimapHeightIsEditorHeight:L,minimapIsSampling:E,minimapScale:h,minimapLineHeight:N,minimapCanvasInnerWidth:K,minimapCanvasInnerHeight:S,minimapCanvasOuterWidth:te,minimapCanvasOuterHeight:x}}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,d=t.pixelRatio,c=t.viewLineCount,u=e.get(137),h=u==="inherit"?e.get(136):u,g=h==="inherit"?e.get(132):h,f=e.get(135),m=t.isDominatedByLongLines,_=e.get(57),b=e.get(68).renderType!==0,v=e.get(69),C=e.get(105),w=e.get(84),S=e.get(73),x=e.get(103),L=x.verticalScrollbarSize,E=x.verticalHasArrows,N=x.arrowSize,H=x.horizontalScrollbarSize,O=e.get(43),P=e.get(110)!=="never";let W=e.get(66);O&&P&&(W+=16);let K=0;if(b){const gn=Math.max(r,v);K=Math.round(gn*l)}let te=0;_&&(te=o*t.glyphMarginDecorationLaneCount);let we=0,ke=we+te,Oe=ke+K,Ce=Oe+W;const qe=i-te-K-W;let Ze=!1,Ae=!1,ve=-1;h==="inherit"&&m?(Ze=!0,Ae=!0):g==="on"||g==="bounded"?Ae=!0:g==="wordWrapColumn"&&(ve=f);const Ui=Qp._computeMinimapLayout({outerWidth:i,outerHeight:n,lineHeight:o,typicalHalfwidthCharacterWidth:a,pixelRatio:d,scrollBeyondLastLine:C,paddingTop:w.top,paddingBottom:w.bottom,minimap:S,verticalScrollbarWidth:L,viewLineCount:c,remainingWidth:qe,isViewportWrapping:Ae},t.memory||new AH);Ui.renderMinimap!==0&&Ui.minimapLeft===0&&(we+=Ui.minimapWidth,ke+=Ui.minimapWidth,Oe+=Ui.minimapWidth,Ce+=Ui.minimapWidth);const ks=qe-Ui.minimapWidth,rn=Math.max(1,Math.floor((ks-L-2)/a)),Rt=E?N:0;return Ae&&(ve=Math.max(1,rn),g==="bounded"&&(ve=Math.min(ve,f))),{width:i,height:n,glyphMarginLeft:we,glyphMarginWidth:te,glyphMarginDecorationLaneCount:t.glyphMarginDecorationLaneCount,lineNumbersLeft:ke,lineNumbersWidth:K,decorationsLeft:Oe,decorationsWidth:W,contentLeft:Ce,contentWidth:ks,minimap:Ui,viewportColumn:rn,isWordWrapMinified:Ze,isViewportWrapping:Ae,wrappingColumn:ve,verticalScrollbarWidth:L,horizontalScrollbarHeight:H,overviewRuler:{top:Rt,width:L,height:n-2*Rt,right:0}}}}class MY extends gi{constructor(){super(139,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[p("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),p("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:p("wrappingStrategy","Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(e){return Ii(e,"simple",["simple","advanced"])}compute(e,t,i){return t.get(2)===2?"advanced":i}}var Qr;(function(s){s.Off="off",s.OnCode="onCode",s.On="on"})(Qr||(Qr={}));class PY extends gi{constructor(){const e={enabled:Qr.On};super(65,"lightbulb",e,{"editor.lightbulb.enabled":{type:"string",tags:["experimental"],enum:[Qr.Off,Qr.OnCode,Qr.On],default:e.enabled,enumDescriptions:[p("editor.lightbulb.enabled.off","Disable the code action menu."),p("editor.lightbulb.enabled.onCode","Show the code action menu when the cursor is on lines with code."),p("editor.lightbulb.enabled.on","Show the code action menu when the cursor is on lines with code or on empty lines.")],description:p("enabled","Enables the Code Action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:Ii(e.enabled,this.defaultValue.enabled,[Qr.Off,Qr.OnCode,Qr.On])}}}class OY extends gi{constructor(){const e={enabled:!0,maxLineCount:5,defaultModel:"outlineModel",scrollWithEditor:!0};super(115,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:p("editor.stickyScroll.enabled","Shows the nested current scopes during the scroll at the top of the editor."),tags:["experimental"]},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:20,description:p("editor.stickyScroll.maxLineCount","Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:e.defaultModel,description:p("editor.stickyScroll.defaultModel","Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.")},"editor.stickyScroll.scrollWithEditor":{type:"boolean",default:e.scrollWithEditor,description:p("editor.stickyScroll.scrollWithEditor","Enable scrolling of Sticky Scroll with the editor's horizontal scrollbar.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:xe(t.enabled,this.defaultValue.enabled),maxLineCount:Kt.clampedInt(t.maxLineCount,this.defaultValue.maxLineCount,1,20),defaultModel:Ii(t.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"]),scrollWithEditor:xe(t.scrollWithEditor,this.defaultValue.scrollWithEditor)}}}class FY extends gi{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(141,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:p("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[p("editor.inlayHints.on","Inlay hints are enabled"),p("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",ct?"Ctrl+Option":"Ctrl+Alt"),p("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",ct?"Ctrl+Option":"Ctrl+Alt"),p("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:p("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:p("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:p("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:Ii(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:Kt.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:Ns.string(t.fontFamily,this.defaultValue.fontFamily),padding:xe(t.padding,this.defaultValue.padding)}}}class BY extends gi{constructor(){super(66,"lineDecorationsWidth",10)}validate(e){return typeof e=="string"&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):Kt.clampedInt(e,this.defaultValue,0,1e3)}compute(e,t,i){return i<0?Kt.clampedInt(-i*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):i}}class WY extends Cr{constructor(){super(67,"lineHeight",lo.lineHeight,e=>Cr.clamp(e,0,150),{markdownDescription:p("lineHeight",`Controls the line height.
|
|
2
2
|
- Use 0 to automatically compute the line height from the font size.
|
|
3
3
|
- Values between 0 and 8 will be used as a multiplier with the font size.
|
|
4
4
|
- Values greater than or equal to 8 will be used as effective values.`)})}compute(e,t,i){return e.fontInfo.lineHeight}}class HY extends gi{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1,showRegionSectionHeaders:!0,showMarkSectionHeaders:!0,sectionHeaderFontSize:9};super(73,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:p("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:e.autohide,description:p("minimap.autohide","Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[p("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),p("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),p("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:p("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:p("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:p("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:p("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:p("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:p("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")},"editor.minimap.showRegionSectionHeaders":{type:"boolean",default:e.showRegionSectionHeaders,description:p("minimap.showRegionSectionHeaders","Controls whether named regions are shown as section headers in the minimap.")},"editor.minimap.showMarkSectionHeaders":{type:"boolean",default:e.showMarkSectionHeaders,description:p("minimap.showMarkSectionHeaders","Controls whether MARK: comments are shown as section headers in the minimap.")},"editor.minimap.sectionHeaderFontSize":{type:"number",default:e.sectionHeaderFontSize,description:p("minimap.sectionHeaderFontSize","Controls the font size of section headers in the minimap.")}})}validate(e){var t;if(!e||typeof e!="object")return this.defaultValue;const i=e;return{enabled:xe(i.enabled,this.defaultValue.enabled),autohide:xe(i.autohide,this.defaultValue.autohide),size:Ii(i.size,this.defaultValue.size,["proportional","fill","fit"]),side:Ii(i.side,this.defaultValue.side,["right","left"]),showSlider:Ii(i.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:xe(i.renderCharacters,this.defaultValue.renderCharacters),scale:Kt.clampedInt(i.scale,1,1,3),maxColumn:Kt.clampedInt(i.maxColumn,this.defaultValue.maxColumn,1,1e4),showRegionSectionHeaders:xe(i.showRegionSectionHeaders,this.defaultValue.showRegionSectionHeaders),showMarkSectionHeaders:xe(i.showMarkSectionHeaders,this.defaultValue.showMarkSectionHeaders),sectionHeaderFontSize:Cr.clamp((t=i.sectionHeaderFontSize)!==null&&t!==void 0?t:this.defaultValue.sectionHeaderFontSize,4,32)}}}function VY(s){return s==="ctrlCmd"?ct?"metaKey":"ctrlKey":"altKey"}class $Y extends gi{constructor(){super(84,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:p("padding.top","Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:p("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{top:Kt.clampedInt(t.top,0,0,1e3),bottom:Kt.clampedInt(t.bottom,0,0,1e3)}}}class zY extends gi{constructor(){const e={enabled:!0,cycle:!0};super(86,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:p("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:p("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:xe(t.enabled,this.defaultValue.enabled),cycle:xe(t.cycle,this.defaultValue.cycle)}}}class UY extends ZC{constructor(){super(143)}compute(e,t,i){return e.pixelRatio}}class jY extends gi{constructor(){const e={other:"on",comments:"off",strings:"off"},t=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[p("on","Quick suggestions show inside the suggest widget"),p("inline","Quick suggestions show as ghost text"),p("off","Quick suggestions are disabled")]}];super(89,"quickSuggestions",e,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:t,default:e.strings,description:p("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{anyOf:t,default:e.comments,description:p("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{anyOf:t,default:e.other,description:p("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}},default:e,markdownDescription:p("quickSuggestions","Controls whether suggestions should automatically show up while typing. This can be controlled for typing in comments, strings, and other code. Quick suggestion can be configured to show as ghost text or with the suggest widget. Also be aware of the '{0}'-setting which controls if suggestions are triggered by special characters.","#editor.suggestOnTriggerCharacters#")}),this.defaultValue=e}validate(e){if(typeof e=="boolean"){const d=e?"on":"off";return{comments:d,strings:d,other:d}}if(!e||typeof e!="object")return this.defaultValue;const{other:t,comments:i,strings:n}=e,o=["on","inline","off"];let r,a,l;return typeof t=="boolean"?r=t?"on":"off":r=Ii(t,this.defaultValue.other,o),typeof i=="boolean"?a=i?"on":"off":a=Ii(i,this.defaultValue.comments,o),typeof n=="boolean"?l=n?"on":"off":l=Ii(n,this.defaultValue.strings,o),{other:r,comments:a,strings:l}}}class qY extends gi{constructor(){super(68,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[p("lineNumbers.off","Line numbers are not rendered."),p("lineNumbers.on","Line numbers are rendered as absolute number."),p("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),p("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:p("lineNumbers","Controls the display of line numbers.")})}validate(e){let t=this.defaultValue.renderType,i=this.defaultValue.renderFn;return typeof e!="undefined"&&(typeof e=="function"?(t=4,i=e):e==="interval"?t=3:e==="relative"?t=2:e==="on"?t=1:t=0),{renderType:t,renderFn:i}}}function hy(s){const e=s.get(98);return e==="editable"?s.get(91):e!=="on"}class KY extends gi{constructor(){const e=[],t={type:"number",description:p("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(102,"rulers",e,{type:"array",items:{anyOf:[t,{type:["object"],properties:{column:t,color:{type:"string",description:p("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:p("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(e){if(Array.isArray(e)){const t=[];for(const i of e)if(typeof i=="number")t.push({column:Kt.clampedInt(i,0,0,1e4),color:null});else if(i&&typeof i=="object"){const n=i;t.push({column:Kt.clampedInt(n.column,0,0,1e4),color:n.color})}return t.sort((i,n)=>i.column-n.column),t}return this.defaultValue}}class GY extends gi{constructor(){super(92,"readOnlyMessage",void 0)}validate(e){return!e||typeof e!="object"?this.defaultValue:e}}function l5(s,e){if(typeof s!="string")return e;switch(s){case"hidden":return 2;case"visible":return 3;default:return 1}}let ZY=class extends gi{constructor(){const e={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1,ignoreHorizontalScrollbarInContentHeight:!1};super(103,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[p("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),p("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),p("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:p("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[p("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),p("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),p("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:p("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:p("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:p("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:p("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")},"editor.scrollbar.ignoreHorizontalScrollbarInContentHeight":{type:"boolean",default:e.ignoreHorizontalScrollbarInContentHeight,description:p("scrollbar.ignoreHorizontalScrollbarInContentHeight","When set, the horizontal scrollbar will not increase the size of the editor's content.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e,i=Kt.clampedInt(t.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),n=Kt.clampedInt(t.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:Kt.clampedInt(t.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:l5(t.vertical,this.defaultValue.vertical),horizontal:l5(t.horizontal,this.defaultValue.horizontal),useShadows:xe(t.useShadows,this.defaultValue.useShadows),verticalHasArrows:xe(t.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:xe(t.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:xe(t.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:xe(t.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:i,horizontalSliderSize:Kt.clampedInt(t.horizontalSliderSize,i,0,1e3),verticalScrollbarSize:n,verticalSliderSize:Kt.clampedInt(t.verticalSliderSize,n,0,1e3),scrollByPage:xe(t.scrollByPage,this.defaultValue.scrollByPage),ignoreHorizontalScrollbarInContentHeight:xe(t.ignoreHorizontalScrollbarInContentHeight,this.defaultValue.ignoreHorizontalScrollbarInContentHeight)}}};const Ho="inUntrustedWorkspace",io={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments",includeStrings:"editor.unicodeHighlight.includeStrings",allowedLocales:"editor.unicodeHighlight.allowedLocales"};class YY extends gi{constructor(){const e={nonBasicASCII:Ho,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:Ho,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(125,"unicodeHighlight",e,{[io.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,Ho],default:e.nonBasicASCII,description:p("unicodeHighlight.nonBasicASCII","Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.")},[io.invisibleCharacters]:{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:p("unicodeHighlight.invisibleCharacters","Controls whether characters that just reserve space or have no width at all are highlighted.")},[io.ambiguousCharacters]:{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:p("unicodeHighlight.ambiguousCharacters","Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},[io.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,Ho],default:e.includeComments,description:p("unicodeHighlight.includeComments","Controls whether characters in comments should also be subject to Unicode highlighting.")},[io.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,Ho],default:e.includeStrings,description:p("unicodeHighlight.includeStrings","Controls whether characters in strings should also be subject to Unicode highlighting.")},[io.allowedCharacters]:{restricted:!0,type:"object",default:e.allowedCharacters,description:p("unicodeHighlight.allowedCharacters","Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[io.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:e.allowedLocales,description:p("unicodeHighlight.allowedLocales","Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(e,t){let i=!1;t.allowedCharacters&&e&&(Qo(e.allowedCharacters,t.allowedCharacters)||(e=pe(q({},e),{allowedCharacters:t.allowedCharacters}),i=!0)),t.allowedLocales&&e&&(Qo(e.allowedLocales,t.allowedLocales)||(e=pe(q({},e),{allowedLocales:t.allowedLocales}),i=!0));const n=super.applyUpdate(e,t);return i?new rv(n.newValue,!0):n}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{nonBasicASCII:Jp(t.nonBasicASCII,Ho,[!0,!1,Ho]),invisibleCharacters:xe(t.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:xe(t.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:Jp(t.includeComments,Ho,[!0,!1,Ho]),includeStrings:Jp(t.includeStrings,Ho,[!0,!1,Ho]),allowedCharacters:this.validateBooleanMap(e.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(e.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(e,t){if(typeof e!="object"||!e)return t;const i={};for(const[n,o]of Object.entries(e))o===!0&&(i[n]=!0);return i}}class XY extends gi{constructor(){const e={enabled:!0,mode:"subwordSmart",showToolbar:"onHover",suppressSuggestions:!1,keepOnBlur:!1,fontFamily:"default"};super(62,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:p("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")},"editor.inlineSuggest.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[p("inlineSuggest.showToolbar.always","Show the inline suggestion toolbar whenever an inline suggestion is shown."),p("inlineSuggest.showToolbar.onHover","Show the inline suggestion toolbar when hovering over an inline suggestion."),p("inlineSuggest.showToolbar.never","Never show the inline suggestion toolbar.")],description:p("inlineSuggest.showToolbar","Controls when to show the inline suggestion toolbar.")},"editor.inlineSuggest.suppressSuggestions":{type:"boolean",default:e.suppressSuggestions,description:p("inlineSuggest.suppressSuggestions","Controls how inline suggestions interact with the suggest widget. If enabled, the suggest widget is not shown automatically when inline suggestions are available.")},"editor.inlineSuggest.fontFamily":{type:"string",default:e.fontFamily,description:p("inlineSuggest.fontFamily","Controls the font family of the inline suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:xe(t.enabled,this.defaultValue.enabled),mode:Ii(t.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"]),showToolbar:Ii(t.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),suppressSuggestions:xe(t.suppressSuggestions,this.defaultValue.suppressSuggestions),keepOnBlur:xe(t.keepOnBlur,this.defaultValue.keepOnBlur),fontFamily:Ns.string(t.fontFamily,this.defaultValue.fontFamily)}}}class QY extends gi{constructor(){const e={enabled:!1,showToolbar:"onHover",fontFamily:"default",keepOnBlur:!1,backgroundColoring:!1};super(63,"experimentalInlineEdit",e,{"editor.experimentalInlineEdit.enabled":{type:"boolean",default:e.enabled,description:p("inlineEdit.enabled","Controls whether to show inline edits in the editor.")},"editor.experimentalInlineEdit.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[p("inlineEdit.showToolbar.always","Show the inline edit toolbar whenever an inline suggestion is shown."),p("inlineEdit.showToolbar.onHover","Show the inline edit toolbar when hovering over an inline suggestion."),p("inlineEdit.showToolbar.never","Never show the inline edit toolbar.")],description:p("inlineEdit.showToolbar","Controls when to show the inline edit toolbar.")},"editor.experimentalInlineEdit.fontFamily":{type:"string",default:e.fontFamily,description:p("inlineEdit.fontFamily","Controls the font family of the inline edit.")},"editor.experimentalInlineEdit.backgroundColoring":{type:"boolean",default:e.backgroundColoring,description:p("inlineEdit.backgroundColoring","Controls whether to color the background of inline edits.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:xe(t.enabled,this.defaultValue.enabled),showToolbar:Ii(t.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),fontFamily:Ns.string(t.fontFamily,this.defaultValue.fontFamily),keepOnBlur:xe(t.keepOnBlur,this.defaultValue.keepOnBlur),backgroundColoring:xe(t.backgroundColoring,this.defaultValue.backgroundColoring)}}}class JY extends gi{constructor(){const e={enabled:ss.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:ss.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(15,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,markdownDescription:p("bracketPairColorization.enabled","Controls whether bracket pair colorization is enabled or not. Use {0} to override the bracket highlight colors.","`#workbench.colorCustomizations#`")},"editor.bracketPairColorization.independentColorPoolPerBracketType":{type:"boolean",default:e.independentColorPoolPerBracketType,description:p("bracketPairColorization.independentColorPoolPerBracketType","Controls whether each bracket type has its own independent color pool.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:xe(t.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:xe(t.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}class eX extends gi{constructor(){const e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(16,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[p("editor.guides.bracketPairs.true","Enables bracket pair guides."),p("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),p("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:e.bracketPairs,description:p("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[p("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),p("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),p("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:p("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:p("editor.guides.highlightActiveBracketPair","Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:p("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[p("editor.guides.highlightActiveIndentation.true","Highlights the active indent guide."),p("editor.guides.highlightActiveIndentation.always","Highlights the active indent guide even if bracket guides are highlighted."),p("editor.guides.highlightActiveIndentation.false","Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:p("editor.guides.highlightActiveIndentation","Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{bracketPairs:Jp(t.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:Jp(t.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:xe(t.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:xe(t.indentation,this.defaultValue.indentation),highlightActiveIndentation:Jp(t.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}function Jp(s,e,t){const i=t.indexOf(s);return i===-1?e:t[i]}class tX extends gi{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!1,localityBonus:!1,shareSuggestSelections:!1,selectionMode:"always",showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,matchOnWordStartOnly:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(118,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[p("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),p("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:p("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:p("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:p("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:p("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.selectionMode":{type:"string",enum:["always","never","whenTriggerCharacter","whenQuickSuggestion"],enumDescriptions:[p("suggest.insertMode.always","Always select a suggestion when automatically triggering IntelliSense."),p("suggest.insertMode.never","Never select a suggestion when automatically triggering IntelliSense."),p("suggest.insertMode.whenTriggerCharacter","Select a suggestion only when triggering IntelliSense from a trigger character."),p("suggest.insertMode.whenQuickSuggestion","Select a suggestion only when triggering IntelliSense as you type.")],default:e.selectionMode,markdownDescription:p("suggest.selectionMode","Controls whether a suggestion is selected when the widget shows. Note that this only applies to automatically triggered suggestions (`#editor.quickSuggestions#` and `#editor.suggestOnTriggerCharacters#`) and that a suggestion is always selected when explicitly invoked, e.g via `Ctrl+Space`.")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:p("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:p("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:p("suggest.showStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:p("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:p("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget.")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:p("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:p("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.matchOnWordStartOnly","When enabled IntelliSense filtering requires that the first character matches on a word start. For example, `c` on `Console` or `WebContext` but _not_ on `description`. When disabled IntelliSense will show more results but still sorts them by match quality.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertMode:Ii(t.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:xe(t.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:xe(t.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:xe(t.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:xe(t.shareSuggestSelections,this.defaultValue.shareSuggestSelections),selectionMode:Ii(t.selectionMode,this.defaultValue.selectionMode,["always","never","whenQuickSuggestion","whenTriggerCharacter"]),showIcons:xe(t.showIcons,this.defaultValue.showIcons),showStatusBar:xe(t.showStatusBar,this.defaultValue.showStatusBar),preview:xe(t.preview,this.defaultValue.preview),previewMode:Ii(t.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:xe(t.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:xe(t.showMethods,this.defaultValue.showMethods),showFunctions:xe(t.showFunctions,this.defaultValue.showFunctions),showConstructors:xe(t.showConstructors,this.defaultValue.showConstructors),showDeprecated:xe(t.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:xe(t.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:xe(t.showFields,this.defaultValue.showFields),showVariables:xe(t.showVariables,this.defaultValue.showVariables),showClasses:xe(t.showClasses,this.defaultValue.showClasses),showStructs:xe(t.showStructs,this.defaultValue.showStructs),showInterfaces:xe(t.showInterfaces,this.defaultValue.showInterfaces),showModules:xe(t.showModules,this.defaultValue.showModules),showProperties:xe(t.showProperties,this.defaultValue.showProperties),showEvents:xe(t.showEvents,this.defaultValue.showEvents),showOperators:xe(t.showOperators,this.defaultValue.showOperators),showUnits:xe(t.showUnits,this.defaultValue.showUnits),showValues:xe(t.showValues,this.defaultValue.showValues),showConstants:xe(t.showConstants,this.defaultValue.showConstants),showEnums:xe(t.showEnums,this.defaultValue.showEnums),showEnumMembers:xe(t.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:xe(t.showKeywords,this.defaultValue.showKeywords),showWords:xe(t.showWords,this.defaultValue.showWords),showColors:xe(t.showColors,this.defaultValue.showColors),showFiles:xe(t.showFiles,this.defaultValue.showFiles),showReferences:xe(t.showReferences,this.defaultValue.showReferences),showFolders:xe(t.showFolders,this.defaultValue.showFolders),showTypeParameters:xe(t.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:xe(t.showSnippets,this.defaultValue.showSnippets),showUsers:xe(t.showUsers,this.defaultValue.showUsers),showIssues:xe(t.showIssues,this.defaultValue.showIssues)}}}class iX extends gi{constructor(){super(113,"smartSelect",{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:p("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"},"editor.smartSelect.selectSubwords":{description:p("selectSubwords","Whether subwords (like 'foo' in 'fooBar' or 'foo_bar') should be selected."),default:!0,type:"boolean"}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{selectLeadingAndTrailingWhitespace:xe(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace),selectSubwords:xe(e.selectSubwords,this.defaultValue.selectSubwords)}}}class nX extends gi{constructor(){const e=[];super(130,"wordSegmenterLocales",e,{anyOf:[{description:p("wordSegmenterLocales","Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"string"},{description:p("wordSegmenterLocales","Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"array",items:{type:"string"}}]})}validate(e){if(typeof e=="string"&&(e=[e]),Array.isArray(e)){const t=[];for(const i of e)if(typeof i=="string")try{Intl.Segmenter.supportedLocalesOf(i).length>0&&t.push(i)}catch(n){}return t}return this.defaultValue}}class sX extends gi{constructor(){super(138,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[p("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),p("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),p("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),p("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:p("wrappingIndent","Controls the indentation of wrapped lines."),default:"same"}})}validate(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}return 1}compute(e,t,i){return t.get(2)===2?0:i}}class oX extends ZC{constructor(){super(146)}compute(e,t,i){const n=t.get(145);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:n.isWordWrapMinified,isViewportWrapping:n.isViewportWrapping,wrappingColumn:n.wrappingColumn}}}class rX extends gi{constructor(){const e={enabled:!0,showDropSelector:"afterDrop"};super(36,"dropIntoEditor",e,{"editor.dropIntoEditor.enabled":{type:"boolean",default:e.enabled,markdownDescription:p("dropIntoEditor.enabled","Controls whether you can drag and drop a file into a text editor by holding down the `Shift` key (instead of opening the file in an editor).")},"editor.dropIntoEditor.showDropSelector":{type:"string",markdownDescription:p("dropIntoEditor.showDropSelector","Controls if a widget is shown when dropping files into the editor. This widget lets you control how the file is dropped."),enum:["afterDrop","never"],enumDescriptions:[p("dropIntoEditor.showDropSelector.afterDrop","Show the drop selector widget after a file is dropped into the editor."),p("dropIntoEditor.showDropSelector.never","Never show the drop selector widget. Instead the default drop provider is always used.")],default:"afterDrop"}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:xe(t.enabled,this.defaultValue.enabled),showDropSelector:Ii(t.showDropSelector,this.defaultValue.showDropSelector,["afterDrop","never"])}}}class aX extends gi{constructor(){const e={enabled:!0,showPasteSelector:"afterPaste"};super(85,"pasteAs",e,{"editor.pasteAs.enabled":{type:"boolean",default:e.enabled,markdownDescription:p("pasteAs.enabled","Controls whether you can paste content in different ways.")},"editor.pasteAs.showPasteSelector":{type:"string",markdownDescription:p("pasteAs.showPasteSelector","Controls if a widget is shown when pasting content in to the editor. This widget lets you control how the file is pasted."),enum:["afterPaste","never"],enumDescriptions:[p("pasteAs.showPasteSelector.afterPaste","Show the paste selector widget after content is pasted into the editor."),p("pasteAs.showPasteSelector.never","Never show the paste selector widget. Instead the default pasting behavior is always used.")],default:"afterPaste"}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:xe(t.enabled,this.defaultValue.enabled),showPasteSelector:Ii(t.showPasteSelector,this.defaultValue.showPasteSelector,["afterPaste","never"])}}}const lX="Consolas, 'Courier New', monospace",dX="Menlo, Monaco, 'Courier New', monospace",cX="'Droid Sans Mono', 'monospace', monospace",lo={fontFamily:ct?dX:js?cX:lX,fontWeight:"normal",fontSize:ct?12:14,lineHeight:0,letterSpacing:0},kp=[];function ne(s){return kp[s.id]=s,s}const sl={acceptSuggestionOnCommitCharacter:ne(new St(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:p("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:ne(new yi(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",p("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:p("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:ne(new yY),accessibilityPageSize:ne(new Kt(3,"accessibilityPageSize",10,1,1073741824,{description:p("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default."),tags:["accessibility"]})),ariaLabel:ne(new Ns(4,"ariaLabel",p("editorViewAccessibleLabel","Editor content"))),ariaRequired:ne(new St(5,"ariaRequired",!1,void 0)),screenReaderAnnounceInlineSuggestion:ne(new St(8,"screenReaderAnnounceInlineSuggestion",!0,{description:p("screenReaderAnnounceInlineSuggestion","Control whether inline suggestions are announced by a screen reader."),tags:["accessibility"]})),autoClosingBrackets:ne(new yi(6,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",p("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),p("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:p("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingComments:ne(new yi(7,"autoClosingComments","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",p("editor.autoClosingComments.languageDefined","Use language configurations to determine when to autoclose comments."),p("editor.autoClosingComments.beforeWhitespace","Autoclose comments only when the cursor is to the left of whitespace."),""],description:p("autoClosingComments","Controls whether the editor should automatically close comments after the user adds an opening comment.")})),autoClosingDelete:ne(new yi(9,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",p("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:p("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:ne(new yi(10,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",p("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:p("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:ne(new yi(11,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",p("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),p("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:p("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:ne(new Yw(12,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],SY,{enumDescriptions:[p("editor.autoIndent.none","The editor will not insert indentation automatically."),p("editor.autoIndent.keep","The editor will keep the current line's indentation."),p("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),p("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),p("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:p("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:ne(new St(13,"automaticLayout",!1)),autoSurround:ne(new yi(14,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[p("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),p("editor.autoSurround.quotes","Surround with quotes but not brackets."),p("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:p("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:ne(new JY),bracketPairGuides:ne(new eX),stickyTabStops:ne(new St(116,"stickyTabStops",!1,{description:p("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:ne(new St(17,"codeLens",!0,{description:p("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:ne(new Ns(18,"codeLensFontFamily","",{description:p("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:ne(new Kt(19,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:p("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")})),colorDecorators:ne(new St(20,"colorDecorators",!0,{description:p("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),colorDecoratorActivatedOn:ne(new yi(148,"colorDecoratorsActivatedOn","clickAndHover",["clickAndHover","hover","click"],{enumDescriptions:[p("editor.colorDecoratorActivatedOn.clickAndHover","Make the color picker appear both on click and hover of the color decorator"),p("editor.colorDecoratorActivatedOn.hover","Make the color picker appear on hover of the color decorator"),p("editor.colorDecoratorActivatedOn.click","Make the color picker appear on click of the color decorator")],description:p("colorDecoratorActivatedOn","Controls the condition to make a color picker appear from a color decorator")})),colorDecoratorsLimit:ne(new Kt(21,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:p("colorDecoratorsLimit","Controls the max number of color decorators that can be rendered in an editor at once.")})),columnSelection:ne(new St(22,"columnSelection",!1,{description:p("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:ne(new xY),contextmenu:ne(new St(24,"contextmenu",!0)),copyWithSyntaxHighlighting:ne(new St(25,"copyWithSyntaxHighlighting",!0,{description:p("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:ne(new Yw(26,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],kY,{description:p("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:ne(new yi(27,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[p("cursorSmoothCaretAnimation.off","Smooth caret animation is disabled."),p("cursorSmoothCaretAnimation.explicit","Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),p("cursorSmoothCaretAnimation.on","Smooth caret animation is always enabled.")],description:p("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:ne(new Yw(28,"cursorStyle",Mn.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],LY,{description:p("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:ne(new Kt(29,"cursorSurroundingLines",0,0,1073741824,{description:p("cursorSurroundingLines","Controls the minimal number of visible leading lines (minimum 0) and trailing lines (minimum 1) surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:ne(new yi(30,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[p("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),p("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],markdownDescription:p("cursorSurroundingLinesStyle","Controls when `#editor.cursorSurroundingLines#` should be enforced.")})),cursorWidth:ne(new Kt(31,"cursorWidth",0,0,1073741824,{markdownDescription:p("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:ne(new St(32,"disableLayerHinting",!1)),disableMonospaceOptimizations:ne(new St(33,"disableMonospaceOptimizations",!1)),domReadOnly:ne(new St(34,"domReadOnly",!1)),dragAndDrop:ne(new St(35,"dragAndDrop",!0,{description:p("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:ne(new EY),dropIntoEditor:ne(new rX),stickyScroll:ne(new OY),experimentalWhitespaceRendering:ne(new yi(38,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[p("experimentalWhitespaceRendering.svg","Use a new rendering method with svgs."),p("experimentalWhitespaceRendering.font","Use a new rendering method with font characters."),p("experimentalWhitespaceRendering.off","Use the stable rendering method.")],description:p("experimentalWhitespaceRendering","Controls whether whitespace is rendered with a new, experimental method.")})),extraEditorClassName:ne(new Ns(39,"extraEditorClassName","")),fastScrollSensitivity:ne(new Cr(40,"fastScrollSensitivity",5,s=>s<=0?5:s,{markdownDescription:p("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:ne(new IY),fixedOverflowWidgets:ne(new St(42,"fixedOverflowWidgets",!1)),folding:ne(new St(43,"folding",!0,{description:p("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:ne(new yi(44,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[p("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),p("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:p("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:ne(new St(45,"foldingHighlight",!0,{description:p("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:ne(new St(46,"foldingImportsByDefault",!1,{description:p("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:ne(new Kt(47,"foldingMaximumRegions",5e3,10,65e3,{description:p("foldingMaximumRegions","The maximum number of foldable regions. Increasing this value may result in the editor becoming less responsive when the current source has a large number of foldable regions.")})),unfoldOnClickAfterEndOfLine:ne(new St(48,"unfoldOnClickAfterEndOfLine",!1,{description:p("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:ne(new Ns(49,"fontFamily",lo.fontFamily,{description:p("fontFamily","Controls the font family.")})),fontInfo:ne(new TY),fontLigatures2:ne(new Ko),fontSize:ne(new NY),fontWeight:ne(new Pl),fontVariations:ne(new Pa),formatOnPaste:ne(new St(55,"formatOnPaste",!1,{description:p("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:ne(new St(56,"formatOnType",!1,{description:p("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:ne(new St(57,"glyphMargin",!0,{description:p("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:ne(new AY),hideCursorInOverviewRuler:ne(new St(59,"hideCursorInOverviewRuler",!1,{description:p("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:ne(new RY),inDiffEditor:ne(new St(61,"inDiffEditor",!1)),letterSpacing:ne(new Cr(64,"letterSpacing",lo.letterSpacing,s=>Cr.clamp(s,-5,20),{description:p("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:ne(new PY),lineDecorationsWidth:ne(new BY),lineHeight:ne(new WY),lineNumbers:ne(new qY),lineNumbersMinChars:ne(new Kt(69,"lineNumbersMinChars",5,1,300)),linkedEditing:ne(new St(70,"linkedEditing",!1,{description:p("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.")})),links:ne(new St(71,"links",!0,{description:p("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:ne(new yi(72,"matchBrackets","always",["always","near","never"],{description:p("matchBrackets","Highlight matching brackets.")})),minimap:ne(new HY),mouseStyle:ne(new yi(74,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:ne(new Cr(75,"mouseWheelScrollSensitivity",1,s=>s===0?1:s,{markdownDescription:p("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:ne(new St(76,"mouseWheelZoom",!1,{markdownDescription:ct?p("mouseWheelZoom.mac","Zoom the font of the editor when using mouse wheel and holding `Cmd`."):p("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:ne(new St(77,"multiCursorMergeOverlapping",!0,{description:p("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:ne(new Yw(78,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],VY,{markdownEnumDescriptions:[p("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),p("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:p({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the [multicursor modifier](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:ne(new yi(79,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[p("multiCursorPaste.spread","Each cursor pastes a single line of the text."),p("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:p("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),multiCursorLimit:ne(new Kt(80,"multiCursorLimit",1e4,1,1e5,{markdownDescription:p("multiCursorLimit","Controls the max number of cursors that can be in an active editor at once.")})),occurrencesHighlight:ne(new yi(81,"occurrencesHighlight","singleFile",["off","singleFile","multiFile"],{markdownEnumDescriptions:[p("occurrencesHighlight.off","Does not highlight occurrences."),p("occurrencesHighlight.singleFile","Highlights occurrences only in the current file."),p("occurrencesHighlight.multiFile","Experimental: Highlights occurrences across all valid open files.")],markdownDescription:p("occurrencesHighlight","Controls whether occurrences should be highlighted across open files.")})),overviewRulerBorder:ne(new St(82,"overviewRulerBorder",!0,{description:p("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:ne(new Kt(83,"overviewRulerLanes",3,0,3)),padding:ne(new $Y),pasteAs:ne(new aX),parameterHints:ne(new zY),peekWidgetDefaultFocus:ne(new yi(87,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[p("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),p("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:p("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),definitionLinkOpensInPeek:ne(new St(88,"definitionLinkOpensInPeek",!1,{description:p("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:ne(new jY),quickSuggestionsDelay:ne(new Kt(90,"quickSuggestionsDelay",10,0,1073741824,{description:p("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:ne(new St(91,"readOnly",!1)),readOnlyMessage:ne(new GY),renameOnType:ne(new St(93,"renameOnType",!1,{description:p("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:p("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:ne(new St(94,"renderControlCharacters",!0,{description:p("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:ne(new yi(95,"renderFinalNewline",js?"dimmed":"on",["off","on","dimmed"],{description:p("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:ne(new yi(96,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",p("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:p("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:ne(new St(97,"renderLineHighlightOnlyWhenFocus",!1,{description:p("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:ne(new yi(98,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:ne(new yi(99,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",p("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),p("renderWhitespace.selection","Render whitespace characters only on selected text."),p("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:p("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:ne(new Kt(100,"revealHorizontalRightPadding",15,0,1e3)),roundedSelection:ne(new St(101,"roundedSelection",!0,{description:p("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:ne(new KY),scrollbar:ne(new ZY),scrollBeyondLastColumn:ne(new Kt(104,"scrollBeyondLastColumn",4,0,1073741824,{description:p("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:ne(new St(105,"scrollBeyondLastLine",!0,{description:p("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:ne(new St(106,"scrollPredominantAxis",!0,{description:p("scrollPredominantAxis","Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:ne(new St(107,"selectionClipboard",!0,{description:p("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:js})),selectionHighlight:ne(new St(108,"selectionHighlight",!0,{description:p("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:ne(new St(109,"selectOnLineNumbers",!0)),showFoldingControls:ne(new yi(110,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[p("showFoldingControls.always","Always show the folding controls."),p("showFoldingControls.never","Never show the folding controls and reduce the gutter size."),p("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:p("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:ne(new St(111,"showUnused",!0,{description:p("showUnused","Controls fading out of unused code.")})),showDeprecated:ne(new St(140,"showDeprecated",!0,{description:p("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:ne(new FY),snippetSuggestions:ne(new yi(112,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[p("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),p("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),p("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),p("snippetSuggestions.none","Do not show snippet suggestions.")],description:p("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:ne(new iX),smoothScrolling:ne(new St(114,"smoothScrolling",!1,{description:p("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:ne(new Kt(117,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:ne(new tX),inlineSuggest:ne(new XY),inlineEdit:ne(new QY),inlineCompletionsAccessibilityVerbose:ne(new St(149,"inlineCompletionsAccessibilityVerbose",!1,{description:p("inlineCompletionsAccessibilityVerbose","Controls whether the accessibility hint should be provided to screen reader users when an inline completion is shown.")})),suggestFontSize:ne(new Kt(119,"suggestFontSize",0,0,1e3,{markdownDescription:p("suggestFontSize","Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:ne(new Kt(120,"suggestLineHeight",0,0,1e3,{markdownDescription:p("suggestLineHeight","Line height for the suggest widget. When set to {0}, the value of {1} is used. The minimum value is 8.","`0`","`#editor.lineHeight#`")})),suggestOnTriggerCharacters:ne(new St(121,"suggestOnTriggerCharacters",!0,{description:p("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:ne(new yi(122,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[p("suggestSelection.first","Always select the first suggestion."),p("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),p("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:p("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:ne(new yi(123,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[p("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),p("tabCompletion.off","Disable tab completions."),p("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:p("tabCompletion","Enables tab completions.")})),tabIndex:ne(new Kt(124,"tabIndex",0,-1,1073741824)),unicodeHighlight:ne(new YY),unusualLineTerminators:ne(new yi(126,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[p("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),p("unusualLineTerminators.off","Unusual line terminators are ignored."),p("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:p("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:ne(new St(127,"useShadowDOM",!0)),useTabStops:ne(new St(128,"useTabStops",!0,{description:p("useTabStops","Spaces and tabs are inserted and deleted in alignment with tab stops.")})),wordBreak:ne(new yi(129,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[p("wordBreak.normal","Use the default line break rule."),p("wordBreak.keepAll","Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.")],description:p("wordBreak","Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")})),wordSegmenterLocales:ne(new nX),wordSeparators:ne(new Ns(131,"wordSeparators",IH,{description:p("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:ne(new yi(132,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[p("wordWrap.off","Lines will never wrap."),p("wordWrap.on","Lines will wrap at the viewport width."),p({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),p({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:p({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:ne(new Ns(133,"wordWrapBreakAfterCharacters"," })]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」")),wordWrapBreakBeforeCharacters:ne(new Ns(134,"wordWrapBreakBeforeCharacters","([{‘“〈《「『【〔([{「£¥$£¥++")),wordWrapColumn:ne(new Kt(135,"wordWrapColumn",80,1,1073741824,{markdownDescription:p({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:ne(new yi(136,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:ne(new yi(137,"wordWrapOverride2","inherit",["off","on","inherit"])),editorClassName:ne(new DY),defaultColorDecorators:ne(new St(147,"defaultColorDecorators",!1,{markdownDescription:p("defaultColorDecorators","Controls whether inline color decorations should be shown using the default document color provider")})),pixelRatio:ne(new UY),tabFocusMode:ne(new St(144,"tabFocusMode",!1,{markdownDescription:p("tabFocusMode","Controls whether the editor receives tabs or defers them to the workbench for navigation.")})),layoutInfo:ne(new Qp),wrappingInfo:ne(new oX),wrappingIndent:ne(new sX),wrappingStrategy:ne(new MY)};class uX{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?Nm.isErrorNoTelemetry(e)?new Nm(e.message+`
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-2D1yzxPk.js","./@vue-C7bUvahi.js","./vue-router-
|
|
2
|
-
var x=Object.defineProperty,C=Object.defineProperties;var V=Object.getOwnPropertyDescriptors;var l=Object.getOwnPropertySymbols;var y=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable;var v=(o,t,e)=>t in o?x(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,f=(o,t)=>{for(var e in t||(t={}))y.call(t,e)&&v(o,e,t[e]);if(l)for(var e of l(t))h.call(t,e)&&v(o,e,t[e]);return o},E=(o,t)=>C(o,V(t));var d=(o,t,e)=>new Promise((s,n)=>{var m=r=>{try{a(e.next(r))}catch(p){n(p)}},_=r=>{try{a(e.throw(r))}catch(p){n(p)}},a=r=>r.done?s(r.value):Promise.resolve(r.value).then(m,_);a((e=e.apply(o,t)).next())});import{_ as R}from"./monaco-editor-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-2D1yzxPk.js","./@vue-C7bUvahi.js","./vue-router-BCeT4m1E.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var x=Object.defineProperty,C=Object.defineProperties;var V=Object.getOwnPropertyDescriptors;var l=Object.getOwnPropertySymbols;var y=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable;var v=(o,t,e)=>t in o?x(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,f=(o,t)=>{for(var e in t||(t={}))y.call(t,e)&&v(o,e,t[e]);if(l)for(var e of l(t))h.call(t,e)&&v(o,e,t[e]);return o},E=(o,t)=>C(o,V(t));var d=(o,t,e)=>new Promise((s,n)=>{var m=r=>{try{a(e.next(r))}catch(p){n(p)}},_=r=>{try{a(e.throw(r))}catch(p){n(p)}},a=r=>r.done?s(r.value):Promise.resolve(r.value).then(m,_);a((e=e.apply(o,t)).next())});import{_ as R}from"./monaco-editor-DHettOks.js";import{useRoute as A}from"./vue-router-BCeT4m1E.js";import"./element-plus-DUXCcJ7v.js";import{o as P,S as g,b,l as k,E as B}from"./extension-HrOMgIFJ.js";import{d as D,bN as w,e as I,i as S,R as T,V as L,W as N,o as O}from"./@vue-C7bUvahi.js";import"./lodash-es-iLqVnzBD.js";import"./@vueuse-DpjzyaLR.js";import"./@element-plus-DAijv5qh.js";import"./@popperjs-egqNnATr.js";import"./@ctrl-riLredlm.js";import"./dayjs-rQ6ln_M2.js";import"./async-validator-7GrF_zuj.js";import"./memoize-one-BdPwpGay.js";import"./normalize-wheel-es-B6fDCfyv.js";import"./@floating-ui-B6ah097U.js";import"./vue-2D1yzxPk.js";import"./mockjs-fDp8V4h3.js";const rt=D({__name:"preview",setup(o){return d(this,null,function*(){let t,e;const s=new k,n=([t,e]=w(()=>s.getExtension().catch(()=>null)),t=yield t,e(),t),m=n?([t,e]=w(()=>new B(n).load()),t=yield t,e(),t):void 0,{__BASE_PATH__:_="/"}=n||{},{provider:a,onReady:r}=P(E(f({mode:g.Runtime,service:s,materialPath:_},m||{}),{dependencies:{Vue:()=>R(()=>import("./vue-2D1yzxPk.js").then(i=>i.V),__vite__mapDeps([0,1]),import.meta.url),VueRouter:()=>R(()=>import("./vue-router-BCeT4m1E.js"),__vite__mapDeps([2,1]),import.meta.url)}})),p=A(),c=I(),u=S();return r(()=>d(this,null,function*(){const i=u==null?void 0:u.appContext.app;i&&(i.use(b),i.use(a)),c.value=yield a.getRenderComponent(p.params.id.toString())})),(i,H)=>c.value?(O(),T(L(c.value),{key:0})):N("",!0)})}});export{rt as default};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{s as ut,u as Y,aw as ft,G as H,k as T,n as ht,H as pt,a8 as dt,a5 as mt,d as Ke,a0 as gt,I as Ue,K as le,e as vt,f as yt}from"./@vue-C7bUvahi.js";/*!
|
|
2
|
+
* vue-router v4.4.5
|
|
3
|
+
* (c) 2024 Eduardo San Martin Morote
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/const K=typeof document!="undefined";function Ve(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function De(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Ve(e.default)}const P=Object.assign;function ue(e,t){const n={};for(const r in t){const o=t[r];n[r]=I(o)?o.map(e):e(o)}return n}const X=()=>{},I=Array.isArray,Qe=/#/g,Rt=/&/g,Et=/\//g,wt=/=/g,Pt=/\?/g,We=/\+/g,St=/%5B/g,Ct=/%5D/g,Fe=/%5E/g,kt=/%60/g,Ye=/%7B/g,bt=/%7C/g,Xe=/%7D/g,At=/%20/g;function ve(e){return encodeURI(""+e).replace(bt,"|").replace(St,"[").replace(Ct,"]")}function Ot(e){return ve(e).replace(Ye,"{").replace(Xe,"}").replace(Fe,"^")}function de(e){return ve(e).replace(We,"%2B").replace(At,"+").replace(Qe,"%23").replace(Rt,"%26").replace(kt,"`").replace(Ye,"{").replace(Xe,"}").replace(Fe,"^")}function _t(e){return de(e).replace(wt,"%3D")}function xt(e){return ve(e).replace(Qe,"%23").replace(Pt,"%3F")}function Mt(e){return e==null?"":xt(e).replace(Et,"%2F")}function Z(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}const Lt=/\/$/,It=e=>e.replace(Lt,"");function fe(e,t,n="/"){let r,o={},a="",p="";const d=t.indexOf("#");let i=t.indexOf("?");return d<i&&d>=0&&(i=-1),i>-1&&(r=t.slice(0,i),a=t.slice(i+1,d>-1?d:t.length),o=e(a)),d>-1&&(r=r||t.slice(0,d),p=t.slice(d,t.length)),r=$t(r!=null?r:t,n),{fullPath:r+(a&&"?")+a+p,path:r,query:o,hash:Z(p)}}function Tt(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function be(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Nt(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&U(t.matched[r],n.matched[o])&&Ze(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function U(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ze(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Ht(e[n],t[n]))return!1;return!0}function Ht(e,t){return I(e)?Ae(e,t):I(t)?Ae(t,e):e===t}function Ae(e,t){return I(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function $t(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let a=n.length-1,p,d;for(p=0;p<r.length;p++)if(d=r[p],d!==".")if(d==="..")a>1&&a--;else break;return n.slice(0,a).join("/")+"/"+r.slice(p).join("/")}const j={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var V;(function(e){e.pop="pop",e.push="push"})(V||(V={}));var q;(function(e){e.back="back",e.forward="forward",e.unknown=""})(q||(q={}));const he="";function Je(e){if(!e)if(K){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),It(e)}const jt=/^[^#]+#/;function et(e,t){return e.replace(jt,"#")+t}function Bt(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const te=()=>({left:window.scrollX,top:window.scrollY});function Gt(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Bt(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Oe(e,t){return(history.state?history.state.position-t:-1)+e}const me=new Map;function qt(e,t){me.set(e,t)}function zt(e){const t=me.get(e);return me.delete(e),t}let Kt=()=>location.protocol+"//"+location.host;function tt(e,t){const{pathname:n,search:r,hash:o}=t,a=e.indexOf("#");if(a>-1){let d=o.includes(e.slice(a))?e.slice(a).length:1,i=o.slice(d);return i[0]!=="/"&&(i="/"+i),be(i,"")}return be(n,e)+r+o}function Ut(e,t,n,r){let o=[],a=[],p=null;const d=({state:l})=>{const u=tt(e,location),w=n.value,S=t.value;let b=0;if(l){if(n.value=u,t.value=l,p&&p===w){p=null;return}b=S?l.position-S.position:0}else r(u);o.forEach(A=>{A(n.value,w,{delta:b,type:V.pop,direction:b?b>0?q.forward:q.back:q.unknown})})};function i(){p=n.value}function f(l){o.push(l);const u=()=>{const w=o.indexOf(l);w>-1&&o.splice(w,1)};return a.push(u),u}function h(){const{history:l}=window;l.state&&l.replaceState(P({},l.state,{scroll:te()}),"")}function c(){for(const l of a)l();a=[],window.removeEventListener("popstate",d),window.removeEventListener("beforeunload",h)}return window.addEventListener("popstate",d),window.addEventListener("beforeunload",h,{passive:!0}),{pauseListeners:i,listen:f,destroy:c}}function _e(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?te():null}}function Vt(e){const{history:t,location:n}=window,r={value:tt(e,n)},o={value:t.state};o.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(i,f,h){const c=e.indexOf("#"),l=c>-1?(n.host&&document.querySelector("base")?e:e.slice(c))+i:Kt()+e+i;try{t[h?"replaceState":"pushState"](f,"",l),o.value=f}catch(u){console.error(u),n[h?"replace":"assign"](l)}}function p(i,f){const h=P({},t.state,_e(o.value.back,i,o.value.forward,!0),f,{position:o.value.position});a(i,h,!0),r.value=i}function d(i,f){const h=P({},o.value,t.state,{forward:i,scroll:te()});a(h.current,h,!0);const c=P({},_e(r.value,i,null),{position:h.position+1},f);a(i,c,!1),r.value=i}return{location:r,state:o,push:d,replace:p}}function Dt(e){e=Je(e);const t=Vt(e),n=Ut(e,t.state,t.location,t.replace);function r(a,p=!0){p||n.pauseListeners(),history.go(a)}const o=P({location:"",base:e,go:r,createHref:et.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function yn(e=""){let t=[],n=[he],r=0;e=Je(e);function o(d){r++,r!==n.length&&n.splice(r),n.push(d)}function a(d,i,{direction:f,delta:h}){const c={direction:f,delta:h,type:V.pop};for(const l of t)l(d,i,c)}const p={location:he,state:{},base:e,createHref:et.bind(null,e),replace(d){n.splice(r--,1),o(d)},push(d,i){o(d)},listen(d){return t.push(d),()=>{const i=t.indexOf(d);i>-1&&t.splice(i,1)}},destroy(){t=[],n=[he],r=0},go(d,i=!0){const f=this.location,h=d<0?q.back:q.forward;r=Math.max(0,Math.min(r+d,n.length-1)),i&&a(this.location,f,{direction:h,delta:d})}};return Object.defineProperty(p,"location",{enumerable:!0,get:()=>n[r]}),p}function Rn(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Dt(e)}function Qt(e){return typeof e=="string"||e&&typeof e=="object"}function nt(e){return typeof e=="string"||typeof e=="symbol"}const rt=Symbol("");var xe;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(xe||(xe={}));function D(e,t){return P(new Error,{type:e,[rt]:!0},t)}function N(e,t){return e instanceof Error&&rt in e&&(t==null||!!(e.type&t))}const Me="[^/]+?",Wt={sensitive:!1,strict:!1,start:!0,end:!0},Ft=/[.+*?^${}()[\]/\\]/g;function Yt(e,t){const n=P({},Wt,t),r=[];let o=n.start?"^":"";const a=[];for(const f of e){const h=f.length?[]:[90];n.strict&&!f.length&&(o+="/");for(let c=0;c<f.length;c++){const l=f[c];let u=40+(n.sensitive?.25:0);if(l.type===0)c||(o+="/"),o+=l.value.replace(Ft,"\\$&"),u+=40;else if(l.type===1){const{value:w,repeatable:S,optional:b,regexp:A}=l;a.push({name:w,repeatable:S,optional:b});const E=A||Me;if(E!==Me){u+=10;try{new RegExp(`(${E})`)}catch(L){throw new Error(`Invalid custom RegExp for param "${w}" (${E}): `+L.message)}}let C=S?`((?:${E})(?:/(?:${E}))*)`:`(${E})`;c||(C=b&&f.length<2?`(?:/${C})`:"/"+C),b&&(C+="?"),o+=C,u+=20,b&&(u+=-8),S&&(u+=-20),E===".*"&&(u+=-50)}h.push(u)}r.push(h)}if(n.strict&&n.end){const f=r.length-1;r[f][r[f].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&(o+="(?:/|$)");const p=new RegExp(o,n.sensitive?"":"i");function d(f){const h=f.match(p),c={};if(!h)return null;for(let l=1;l<h.length;l++){const u=h[l]||"",w=a[l-1];c[w.name]=u&&w.repeatable?u.split("/"):u}return c}function i(f){let h="",c=!1;for(const l of e){(!c||!h.endsWith("/"))&&(h+="/"),c=!1;for(const u of l)if(u.type===0)h+=u.value;else if(u.type===1){const{value:w,repeatable:S,optional:b}=u,A=w in f?f[w]:"";if(I(A)&&!S)throw new Error(`Provided param "${w}" is an array but it is not repeatable (* or + modifiers)`);const E=I(A)?A.join("/"):A;if(!E)if(b)l.length<2&&(h.endsWith("/")?h=h.slice(0,-1):c=!0);else throw new Error(`Missing required param "${w}"`);h+=E}}return h||"/"}return{re:p,score:r,keys:a,parse:d,stringify:i}}function Xt(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function ot(e,t){let n=0;const r=e.score,o=t.score;for(;n<r.length&&n<o.length;){const a=Xt(r[n],o[n]);if(a)return a;n++}if(Math.abs(o.length-r.length)===1){if(Le(r))return 1;if(Le(o))return-1}return o.length-r.length}function Le(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Zt={type:0,value:""},Jt=/[a-zA-Z0-9_]/;function en(e){if(!e)return[[]];if(e==="/")return[[Zt]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(u){throw new Error(`ERR (${n})/"${f}": ${u}`)}let n=0,r=n;const o=[];let a;function p(){a&&o.push(a),a=[]}let d=0,i,f="",h="";function c(){f&&(n===0?a.push({type:0,value:f}):n===1||n===2||n===3?(a.length>1&&(i==="*"||i==="+")&&t(`A repeatable param (${f}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:f,regexp:h,repeatable:i==="*"||i==="+",optional:i==="*"||i==="?"})):t("Invalid state to consume buffer"),f="")}function l(){f+=i}for(;d<e.length;){if(i=e[d++],i==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:i==="/"?(f&&c(),p()):i===":"?(c(),n=1):l();break;case 4:l(),n=r;break;case 1:i==="("?n=2:Jt.test(i)?l():(c(),n=0,i!=="*"&&i!=="?"&&i!=="+"&&d--);break;case 2:i===")"?h[h.length-1]=="\\"?h=h.slice(0,-1)+i:n=3:h+=i;break;case 3:c(),n=0,i!=="*"&&i!=="?"&&i!=="+"&&d--,h="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${f}"`),c(),p(),o}function tn(e,t,n){const r=Yt(en(e.path),n),o=P(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function nn(e,t){const n=[],r=new Map;t=He({strict:!1,end:!0,sensitive:!1},t);function o(c){return r.get(c)}function a(c,l,u){const w=!u,S=Te(c);S.aliasOf=u&&u.record;const b=He(t,c),A=[S];if("alias"in c){const L=typeof c.alias=="string"?[c.alias]:c.alias;for(const G of L)A.push(Te(P({},S,{components:u?u.record.components:S.components,path:G,aliasOf:u?u.record:S})))}let E,C;for(const L of A){const{path:G}=L;if(l&&G[0]!=="/"){const $=l.record.path,M=$[$.length-1]==="/"?"":"/";L.path=l.record.path+(G&&M+G)}if(E=tn(L,l,b),u?u.alias.push(E):(C=C||E,C!==E&&C.alias.push(E),w&&c.name&&!Ne(E)&&p(c.name)),st(E)&&i(E),S.children){const $=S.children;for(let M=0;M<$.length;M++)a($[M],E,u&&u.children[M])}u=u||E}return C?()=>{p(C)}:X}function p(c){if(nt(c)){const l=r.get(c);l&&(r.delete(c),n.splice(n.indexOf(l),1),l.children.forEach(p),l.alias.forEach(p))}else{const l=n.indexOf(c);l>-1&&(n.splice(l,1),c.record.name&&r.delete(c.record.name),c.children.forEach(p),c.alias.forEach(p))}}function d(){return n}function i(c){const l=sn(c,n);n.splice(l,0,c),c.record.name&&!Ne(c)&&r.set(c.record.name,c)}function f(c,l){let u,w={},S,b;if("name"in c&&c.name){if(u=r.get(c.name),!u)throw D(1,{location:c});b=u.record.name,w=P(Ie(l.params,u.keys.filter(C=>!C.optional).concat(u.parent?u.parent.keys.filter(C=>C.optional):[]).map(C=>C.name)),c.params&&Ie(c.params,u.keys.map(C=>C.name))),S=u.stringify(w)}else if(c.path!=null)S=c.path,u=n.find(C=>C.re.test(S)),u&&(w=u.parse(S),b=u.record.name);else{if(u=l.name?r.get(l.name):n.find(C=>C.re.test(l.path)),!u)throw D(1,{location:c,currentLocation:l});b=u.record.name,w=P({},l.params,c.params),S=u.stringify(w)}const A=[];let E=u;for(;E;)A.unshift(E.record),E=E.parent;return{name:b,path:S,params:w,matched:A,meta:on(A)}}e.forEach(c=>a(c));function h(){n.length=0,r.clear()}return{addRoute:a,resolve:f,removeRoute:p,clearRoutes:h,getRoutes:d,getRecordMatcher:o}}function Ie(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Te(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:rn(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function rn(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function Ne(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function on(e){return e.reduce((t,n)=>P(t,n.meta),{})}function He(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function sn(e,t){let n=0,r=t.length;for(;n!==r;){const a=n+r>>1;ot(e,t[a])<0?r=a:n=a+1}const o=cn(e);return o&&(r=t.lastIndexOf(o,r-1)),r}function cn(e){let t=e;for(;t=t.parent;)if(st(t)&&ot(e,t)===0)return t}function st({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function an(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<r.length;++o){const a=r[o].replace(We," "),p=a.indexOf("="),d=Z(p<0?a:a.slice(0,p)),i=p<0?null:Z(a.slice(p+1));if(d in t){let f=t[d];I(f)||(f=t[d]=[f]),f.push(i)}else t[d]=i}return t}function $e(e){let t="";for(let n in e){const r=e[n];if(n=_t(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(I(r)?r.map(a=>a&&de(a)):[r&&de(r)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+n,a!=null&&(t+="="+a))})}return t}function ln(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=I(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const ye=Symbol(""),je=Symbol(""),ne=Symbol(""),Re=Symbol(""),ge=Symbol("");function F(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function it(e,t,n){const r=()=>{e[t].delete(n)};pt(r),dt(r),mt(()=>{e[t].add(n)}),e[t].add(n)}function En(e){const t=H(ye,{}).value;t&&it(t,"leaveGuards",e)}function wn(e){const t=H(ye,{}).value;t&&it(t,"updateGuards",e)}function B(e,t,n,r,o,a=p=>p()){const p=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((d,i)=>{const f=l=>{l===!1?i(D(4,{from:n,to:t})):l instanceof Error?i(l):Qt(l)?i(D(2,{from:t,to:l})):(p&&r.enterCallbacks[o]===p&&typeof l=="function"&&p.push(l),d())},h=a(()=>e.call(r&&r.instances[o],t,n,f));let c=Promise.resolve(h);e.length<3&&(c=c.then(f)),c.catch(l=>i(l))})}function pe(e,t,n,r,o=a=>a()){const a=[];for(const p of e)for(const d in p.components){let i=p.components[d];if(!(t!=="beforeRouteEnter"&&!p.instances[d]))if(Ve(i)){const h=(i.__vccOpts||i)[t];h&&a.push(B(h,n,r,p,d,o))}else{let f=i();a.push(()=>f.then(h=>{if(!h)throw new Error(`Couldn't resolve component "${d}" at "${p.path}"`);const c=De(h)?h.default:h;p.mods[d]=h,p.components[d]=c;const u=(c.__vccOpts||c)[t];return u&&B(u,n,r,p,d,o)()}))}}return a}function Pn(e){return e.matched.every(t=>t.redirect)?Promise.reject(new Error("Cannot load a route that redirects.")):Promise.all(e.matched.map(t=>t.components&&Promise.all(Object.keys(t.components).reduce((n,r)=>{const o=t.components[r];return typeof o=="function"&&!("displayName"in o)&&n.push(o().then(a=>{if(!a)return Promise.reject(new Error(`Couldn't resolve component "${r}" at "${t.path}". Ensure you passed a function that returns a promise.`));const p=De(a)?a.default:a;t.mods[r]=a,t.components[r]=p})),n},[])))).then(()=>e)}function Be(e){const t=H(ne),n=H(Re),r=T(()=>{const i=Y(e.to);return t.resolve(i)}),o=T(()=>{const{matched:i}=r.value,{length:f}=i,h=i[f-1],c=n.matched;if(!h||!c.length)return-1;const l=c.findIndex(U.bind(null,h));if(l>-1)return l;const u=Ge(i[f-2]);return f>1&&Ge(h)===u&&c[c.length-1].path!==u?c.findIndex(U.bind(null,i[f-2])):l}),a=T(()=>o.value>-1&&pn(n.params,r.value.params)),p=T(()=>o.value>-1&&o.value===n.matched.length-1&&Ze(n.params,r.value.params));function d(i={}){return hn(i)?t[Y(e.replace)?"replace":"push"](Y(e.to)).catch(X):Promise.resolve()}return{route:r,href:T(()=>r.value.href),isActive:a,isExactActive:p,navigate:d}}const un=Ke({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Be,setup(e,{slots:t}){const n=gt(Be(e)),{options:r}=H(ne),o=T(()=>({[qe(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[qe(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const a=t.default&&t.default(n);return e.custom?a:Ue("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},a)}}}),fn=un;function hn(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function pn(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!I(o)||o.length!==r.length||r.some((a,p)=>a!==o[p]))return!1}return!0}function Ge(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const qe=(e,t,n)=>e!=null?e:t!=null?t:n,dn=Ke({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=H(ge),o=T(()=>e.route||r.value),a=H(je,0),p=T(()=>{let f=Y(a);const{matched:h}=o.value;let c;for(;(c=h[f])&&!c.components;)f++;return f}),d=T(()=>o.value.matched[p.value]);le(je,T(()=>p.value+1)),le(ye,d),le(ge,o);const i=vt();return yt(()=>[i.value,d.value,e.name],([f,h,c],[l,u,w])=>{h&&(h.instances[c]=f,u&&u!==h&&f&&f===l&&(h.leaveGuards.size||(h.leaveGuards=u.leaveGuards),h.updateGuards.size||(h.updateGuards=u.updateGuards))),f&&h&&(!u||!U(h,u)||!l)&&(h.enterCallbacks[c]||[]).forEach(S=>S(f))},{flush:"post"}),()=>{const f=o.value,h=e.name,c=d.value,l=c&&c.components[h];if(!l)return ze(n.default,{Component:l,route:f});const u=c.props[h],w=u?u===!0?f.params:typeof u=="function"?u(f):u:null,b=Ue(l,P({},w,t,{onVnodeUnmounted:A=>{A.component.isUnmounted&&(c.instances[h]=null)},ref:i}));return ze(n.default,{Component:b,route:f})||b}}});function ze(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const mn=dn;function Sn(e){const t=nn(e.routes,e),n=e.parseQuery||an,r=e.stringifyQuery||$e,o=e.history,a=F(),p=F(),d=F(),i=ut(j);let f=j;K&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const h=ue.bind(null,s=>""+s),c=ue.bind(null,Mt),l=ue.bind(null,Z);function u(s,g){let m,v;return nt(s)?(m=t.getRecordMatcher(s),v=g):v=s,t.addRoute(v,m)}function w(s){const g=t.getRecordMatcher(s);g&&t.removeRoute(g)}function S(){return t.getRoutes().map(s=>s.record)}function b(s){return!!t.getRecordMatcher(s)}function A(s,g){if(g=P({},g||i.value),typeof s=="string"){const y=fe(n,s,g.path),_=t.resolve({path:y.path},g),W=o.createHref(y.fullPath);return P(y,_,{params:l(_.params),hash:Z(y.hash),redirectedFrom:void 0,href:W})}let m;if(s.path!=null)m=P({},s,{path:fe(n,s.path,g.path).path});else{const y=P({},s.params);for(const _ in y)y[_]==null&&delete y[_];m=P({},s,{params:c(y)}),g.params=c(g.params)}const v=t.resolve(m,g),k=s.hash||"";v.params=h(l(v.params));const O=Tt(r,P({},s,{hash:Ot(k),path:v.path})),R=o.createHref(O);return P({fullPath:O,hash:k,query:r===$e?ln(s.query):s.query||{}},v,{redirectedFrom:void 0,href:R})}function E(s){return typeof s=="string"?fe(n,s,i.value.path):P({},s)}function C(s,g){if(f!==s)return D(8,{from:g,to:s})}function L(s){return M(s)}function G(s){return L(P(E(s),{replace:!0}))}function $(s){const g=s.matched[s.matched.length-1];if(g&&g.redirect){const{redirect:m}=g;let v=typeof m=="function"?m(s):m;return typeof v=="string"&&(v=v.includes("?")||v.includes("#")?v=E(v):{path:v},v.params={}),P({query:s.query,hash:s.hash,params:v.path!=null?{}:s.params},v)}}function M(s,g){const m=f=A(s),v=i.value,k=s.state,O=s.force,R=s.replace===!0,y=$(m);if(y)return M(P(E(y),{state:typeof y=="object"?P({},k,y.state):k,force:O,replace:R}),g||m);const _=m;_.redirectedFrom=g;let W;return!O&&Nt(r,v,m)&&(W=D(16,{to:_,from:v}),Ce(v,v,!0,!1)),(W?Promise.resolve(W):Ee(_,v)).catch(x=>N(x)?N(x,2)?x:ie(x):se(x,_,v)).then(x=>{if(x){if(N(x,2))return M(P({replace:R},E(x.to),{state:typeof x.to=="object"?P({},k,x.to.state):k,force:O}),g||_)}else x=Pe(_,v,!0,R,k);return we(_,v,x),x})}function ct(s,g){const m=C(s,g);return m?Promise.reject(m):Promise.resolve()}function re(s){const g=ee.values().next().value;return g&&typeof g.runWithContext=="function"?g.runWithContext(s):s()}function Ee(s,g){let m;const[v,k,O]=gn(s,g);m=pe(v.reverse(),"beforeRouteLeave",s,g);for(const y of v)y.leaveGuards.forEach(_=>{m.push(B(_,s,g))});const R=ct.bind(null,s,g);return m.push(R),z(m).then(()=>{m=[];for(const y of a.list())m.push(B(y,s,g));return m.push(R),z(m)}).then(()=>{m=pe(k,"beforeRouteUpdate",s,g);for(const y of k)y.updateGuards.forEach(_=>{m.push(B(_,s,g))});return m.push(R),z(m)}).then(()=>{m=[];for(const y of O)if(y.beforeEnter)if(I(y.beforeEnter))for(const _ of y.beforeEnter)m.push(B(_,s,g));else m.push(B(y.beforeEnter,s,g));return m.push(R),z(m)}).then(()=>(s.matched.forEach(y=>y.enterCallbacks={}),m=pe(O,"beforeRouteEnter",s,g,re),m.push(R),z(m))).then(()=>{m=[];for(const y of p.list())m.push(B(y,s,g));return m.push(R),z(m)}).catch(y=>N(y,8)?y:Promise.reject(y))}function we(s,g,m){d.list().forEach(v=>re(()=>v(s,g,m)))}function Pe(s,g,m,v,k){const O=C(s,g);if(O)return O;const R=g===j,y=K?history.state:{};m&&(v||R?o.replace(s.fullPath,P({scroll:R&&y&&y.scroll},k)):o.push(s.fullPath,k)),i.value=s,Ce(s,g,m,R),ie()}let Q;function at(){Q||(Q=o.listen((s,g,m)=>{if(!ke.listening)return;const v=A(s),k=$(v);if(k){M(P(k,{replace:!0}),v).catch(X);return}f=v;const O=i.value;K&&qt(Oe(O.fullPath,m.delta),te()),Ee(v,O).catch(R=>N(R,12)?R:N(R,2)?(M(R.to,v).then(y=>{N(y,20)&&!m.delta&&m.type===V.pop&&o.go(-1,!1)}).catch(X),Promise.reject()):(m.delta&&o.go(-m.delta,!1),se(R,v,O))).then(R=>{R=R||Pe(v,O,!1),R&&(m.delta&&!N(R,8)?o.go(-m.delta,!1):m.type===V.pop&&N(R,20)&&o.go(-1,!1)),we(v,O,R)}).catch(X)}))}let oe=F(),Se=F(),J;function se(s,g,m){ie(s);const v=Se.list();return v.length?v.forEach(k=>k(s,g,m)):console.error(s),Promise.reject(s)}function lt(){return J&&i.value!==j?Promise.resolve():new Promise((s,g)=>{oe.add([s,g])})}function ie(s){return J||(J=!s,at(),oe.list().forEach(([g,m])=>s?m(s):g()),oe.reset()),s}function Ce(s,g,m,v){const{scrollBehavior:k}=e;if(!K||!k)return Promise.resolve();const O=!m&&zt(Oe(s.fullPath,0))||(v||!m)&&history.state&&history.state.scroll||null;return ht().then(()=>k(s,g,O)).then(R=>R&&Gt(R)).catch(R=>se(R,s,g))}const ce=s=>o.go(s);let ae;const ee=new Set,ke={currentRoute:i,listening:!0,addRoute:u,removeRoute:w,clearRoutes:t.clearRoutes,hasRoute:b,getRoutes:S,resolve:A,options:e,push:L,replace:G,go:ce,back:()=>ce(-1),forward:()=>ce(1),beforeEach:a.add,beforeResolve:p.add,afterEach:d.add,onError:Se.add,isReady:lt,install(s){const g=this;s.component("RouterLink",fn),s.component("RouterView",mn),s.config.globalProperties.$router=g,Object.defineProperty(s.config.globalProperties,"$route",{enumerable:!0,get:()=>Y(i)}),K&&!ae&&i.value===j&&(ae=!0,L(o.location).catch(k=>{}));const m={};for(const k in j)Object.defineProperty(m,k,{get:()=>i.value[k],enumerable:!0});s.provide(ne,g),s.provide(Re,ft(m)),s.provide(ge,i);const v=s.unmount;ee.add(s),s.unmount=function(){ee.delete(s),ee.size<1&&(f=j,Q&&Q(),Q=null,i.value=j,ae=!1,J=!1),v()}}};function z(s){return s.reduce((g,m)=>g.then(()=>re(m)),Promise.resolve())}return ke}function gn(e,t){const n=[],r=[],o=[],a=Math.max(t.matched.length,e.matched.length);for(let p=0;p<a;p++){const d=t.matched[p];d&&(e.matched.find(f=>U(f,d))?r.push(d):n.push(d));const i=e.matched[p];i&&(t.matched.find(f=>U(f,i))||o.push(i))}return[n,r,o]}function Cn(){return H(ne)}function kn(e){return H(Re)}export{xe as NavigationFailureType,fn as RouterLink,mn as RouterView,j as START_LOCATION,yn as createMemoryHistory,Sn as createRouter,nn as createRouterMatcher,Rn as createWebHashHistory,Dt as createWebHistory,N as isNavigationFailure,Pn as loadRouteLocation,ye as matchedRouteKey,En as onBeforeRouteLeave,wn as onBeforeRouteUpdate,an as parseQuery,Re as routeLocationKey,ne as routerKey,ge as routerViewLocationKey,$e as stringifyQuery,Be as useLink,kn as useRoute,Cn as useRouter,je as viewDepthKey};
|