@senx/discovery-code
Version:
Discovery Code Editor
1 lines • 8.31 MB
JavaScript
var __extends=this&&this.__extends||function(){var e=function(t,n){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]};return e(t,n)};return function(t,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function i(){this.constructor=t}t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,t,n,i){function a(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function o(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i["throw"](e))}catch(e){r(e)}}function c(e){e.done?n(e.value):a(e.value).then(o,s)}c((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,a,r,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(s){if(i)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(n=0)),n)try{if(i=1,a&&(r=s[0]&2?a["return"]:s[0]?a["throw"]||((r=a["return"])&&r.call(a),0):a.next)&&!(r=r.call(a,s[1])).done)return r;if(a=0,r)s=[s[0]&2,r.value];switch(s[0]){case 0:case 1:r=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;a=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){n.label=s[1];break}if(s[0]===6&&n.label<r[1]){n.label=r[1];r=s;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(s);break}if(r[2])n.ops.pop();n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e];a=0}finally{i=r=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __rest=this&&this.__rest||function(e,t){var n={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0)n[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var a=0,i=Object.getOwnPropertySymbols(e);a<i.length;a++){if(t.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a]))n[i[a]]=e[i[a]]}return n};var __asyncValues=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),n={},i("next"),i("throw"),i("return"),n[Symbol.asyncIterator]=function(){return this},n);function i(t){n[t]=e[t]&&function(n){return new Promise((function(i,r){n=e[t](n),a(i,r,n.done,n.value)}))}}function a(e,t,n,i){Promise.resolve(i).then((function(t){e({value:t,done:n})}),t)}};var __spreadArray=this&&this.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var i=0,a=t.length,r;i<a;i++){if(r||!(i in t)){if(!r)r=Array.prototype.slice.call(t,0,i);r[i]=t[i]}}return e.concat(r||Array.prototype.slice.call(t))};var __values=this&&this.__values||function(e){var t=typeof Symbol==="function"&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&i>=e.length)e=void 0;return{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};System.register(["./p-f7cb2900.system.js","./p-e523b8c9.system.js"],(function(e,t){"use strict";var n,i,a,r,o,s,c,u;return{setters:[function(e){n=e.r;i=e.c;a=e.h;r=e.g},function(e){o=e.C;s=e.U;c=e.W;u=e.E}],execute:function(){var l,h,d,p,f,m,g,v,T,b,S,w;var E=this;var O=function(){function e(e,t){if(t===void 0){t=false}this.isDebug=false;this.className=e.name;this.isDebug=t}e.prototype.setDebug=function(e){this.isDebug=e};e.prototype.log=function(e,t,n){var i=[];i.push("[".concat(this.className,"] ").concat(t.join(" - ")));i=i.concat(n);switch(e){case y.DEBUG:{if(this.isDebug){console.debug.apply(console,i)}break}case y.ERROR:{console.error.apply(console,i);break}case y.INFO:{console.log.apply(console,i);break}case y.WARN:{console.warn.apply(console,i);break}default:{if(this.isDebug){console.log.apply(console,i)}}}};e.prototype.debug=function(e){var t=[];for(var n=1;n<arguments.length;n++){t[n-1]=arguments[n]}this.log(y.DEBUG,e,t)};e.prototype.error=function(e){var t=[];for(var n=1;n<arguments.length;n++){t[n-1]=arguments[n]}this.log(y.ERROR,e,t)};e.prototype.warn=function(e){var t=[];for(var n=1;n<arguments.length;n++){t[n-1]=arguments[n]}this.log(y.WARN,e,t)};e.prototype.info=function(e){var t=[];for(var n=1;n<arguments.length;n++){t[n-1]=arguments[n]}this.log(y.INFO,e,t)};return e}();var y;(function(e){e[e["DEBUG"]=0]="DEBUG";e[e["ERROR"]=1]="ERROR";e[e["WARN"]=2]="WARN";e[e["INFO"]=3]="INFO"})(y||(y={}));function G(e,t){if(t===void 0){t=0}return e[e.length-(1+t)]}function N(e){if(e.length===0){throw new Error("Invalid tail call")}return[e.slice(0,e.length-1),e[e.length-1]]}function L(e,t,n){if(n===void 0){n=function(e,t){return e===t}}if(e===t){return true}if(!e||!t){return false}if(e.length!==t.length){return false}for(var i=0,a=e.length;i<a;i++){if(!n(e[i],t[i])){return false}}return true}function I(e,t){var n=e.length-1;if(t<n){e[t]=e[n]}e.pop()}function A(e,t,n){return k(e.length,(function(i){return n(e[i],t)}))}function k(e,t){var n=0,i=e-1;while(n<=i){var a=(n+i)/2|0;var r=t(a);if(r<0){n=a+1}else if(r>0){i=a-1}else{return a}}return-(n+1)}function R(e,t,n){e=e|0;if(e>=t.length){throw new TypeError("invalid index")}var i=t[Math.floor(t.length*Math.random())];var a=[];var r=[];var o=[];for(var s=0,c=t;s<c.length;s++){var u=c[s];var l=n(u,i);if(l<0){a.push(u)}else if(l>0){r.push(u)}else{o.push(u)}}if(e<a.length){return R(e,a,n)}else if(e<a.length+o.length){return o[0]}else{return R(e-(a.length+o.length),r,n)}}function P(e,t){var n=[];var i=undefined;for(var a=0,r=e.slice(0).sort(t);a<r.length;a++){var o=r[a];if(!i||t(i[0],o)!==0){i=[o];n.push(i)}else{i.push(o)}}return n}function B(e,t){var n,i,a,r,o;return __generator(this,(function(s){switch(s.label){case 0:a=0,r=e;s.label=1;case 1:if(!(a<r.length))return[3,7];o=r[a];if(!(i!==undefined&&t(i,o)))return[3,2];n.push(o);return[3,5];case 2:if(!n)return[3,4];return[4,n];case 3:s.sent();s.label=4;case 4:n=[o];s.label=5;case 5:i=o;s.label=6;case 6:a++;return[3,1];case 7:if(!n)return[3,9];return[4,n];case 8:s.sent();s.label=9;case 9:return[2]}}))}function x(e,t){for(var n=0;n<=e.length;n++){t(n===0?undefined:e[n-1],n===e.length?undefined:e[n])}}function C(e,t){for(var n=0;n<e.length;n++){t(n===0?undefined:e[n-1],e[n],n+1===e.length?undefined:e[n+1])}}function D(e){return e.filter((function(e){return!!e}))}function M(e){var t=0;for(var n=0;n<e.length;n++){if(!!e[n]){e[t]=e[n];t+=1}}e.length=t}function U(e){return!Array.isArray(e)||e.length===0}function H(e){return Array.isArray(e)&&e.length>0}function F(e,t){if(t===void 0){t=function(e){return e}}var n=new Set;return e.filter((function(e){var i=t(e);if(n.has(i)){return false}n.add(i);return true}))}function _(e,t){return e.length>0?e[0]:t}function W(e,t){var n=typeof t==="number"?e:0;if(typeof t==="number"){n=e}else{n=0;t=e}var i=[];if(n<=t){for(var a=n;a<t;a++){i.push(a)}}else{for(var a=n;a>t;a--){i.push(a)}}return i}function z(e,t,n){var i=e.slice(0,t);var a=e.slice(t);return i.concat(n,a)}function Y(e,t){var n=e.indexOf(t);if(n>-1){e.splice(n,1);e.unshift(t)}}function K(e,t){var n=e.indexOf(t);if(n>-1){e.splice(n,1);e.push(t)}}function j(e,t){for(var n=0,i=t;n<i.length;n++){var a=i[n];e.push(a)}}function V(e){return Array.isArray(e)?e:[e]}function q(e,t,n){var i=Z(e,t);var a=e.length;var r=n.length;e.length=a+r;for(var o=a-1;o>=i;o--){e[o+r]=e[o]}for(var o=0;o<r;o++){e[o+i]=n[o]}}function X(e,t,n,i){var a=Z(e,t);var r=e.splice(a,n);if(r===undefined){r=[]}q(e,a,i);return r}function Z(e,t){return t<0?Math.max(t+e.length,0):Math.min(t,e.length)}var J;(function(e){function t(e){return e<0}e.isLessThan=t;function n(e){return e<=0}e.isLessThanOrEqual=n;function i(e){return e>0}e.isGreaterThan=i;function a(e){return e===0}e.isNeitherLessOrGreaterThan=a;e.greaterThan=1;e.lessThan=-1;e.neitherLessOrGreaterThan=0})(J||(J={}));function Q(e,t){return function(n,i){return t(e(n),e(i))}}function $(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return function(t,n){for(var i=0,a=e;i<a.length;i++){var r=a[i];var o=r(t,n);if(!J.isNeitherLessOrGreaterThan(o)){return o}}return J.neitherLessOrGreaterThan}}var ee=function(e,t){return e-t};var te=function(e,t){return ee(e?1:0,t?1:0)};function ne(e){return function(t,n){return-e(t,n)}}var ie=function(){function e(e){this.items=e;this.firstIdx=0;this.lastIdx=this.items.length-1}Object.defineProperty(e.prototype,"length",{get:function(){return this.lastIdx-this.firstIdx+1},enumerable:false,configurable:true});e.prototype.takeWhile=function(e){var t=this.firstIdx;while(t<this.items.length&&e(this.items[t])){t++}var n=t===this.firstIdx?null:this.items.slice(this.firstIdx,t);this.firstIdx=t;return n};e.prototype.takeFromEndWhile=function(e){var t=this.lastIdx;while(t>=0&&e(this.items[t])){t--}var n=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);this.lastIdx=t;return n};e.prototype.peek=function(){if(this.length===0){return undefined}return this.items[this.firstIdx]};e.prototype.dequeue=function(){var e=this.items[this.firstIdx];this.firstIdx++;return e};e.prototype.takeCount=function(e){var t=this.items.slice(this.firstIdx,this.firstIdx+e);this.firstIdx+=e;return t};return e}();var ae=function(){function e(e){this.iterate=e}e.prototype.toArray=function(){var e=[];this.iterate((function(t){e.push(t);return true}));return e};e.prototype.filter=function(t){var n=this;return new e((function(e){return n.iterate((function(n){return t(n)?e(n):true}))}))};e.prototype.map=function(t){var n=this;return new e((function(e){return n.iterate((function(n){return e(t(n))}))}))};e.prototype.findLast=function(e){var t;this.iterate((function(n){if(e(n)){t=n}return true}));return t};e.prototype.findLastMaxBy=function(e){var t;var n=true;this.iterate((function(i){if(n||J.isGreaterThan(e(i,t))){n=false;t=i}return true}));return t};return e}();ae.empty=new ae((function(e){}));function re(e){return typeof e==="string"}function oe(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function se(e){var t=Object.getPrototypeOf(Uint8Array);return typeof e==="object"&&e instanceof t}function ce(e){return typeof e==="number"&&!isNaN(e)}function ue(e){return!!e&&typeof e[Symbol.iterator]==="function"}function le(e){return e===true||e===false}function he(e){return typeof e==="undefined"}function de(e){return!pe(e)}function pe(e){return he(e)||e===null}function fe(e,t){if(!e){throw new Error(t?"Unexpected type, expected '".concat(t,"'"):"Unexpected type")}}function me(e){if(pe(e)){throw new Error("Assertion Failed: argument is undefined or null")}return e}function ge(e){return typeof e==="function"}function ve(e,t){var n=Math.min(e.length,t.length);for(var i=0;i<n;i++){Te(e[i],t[i])}}function Te(e,t){if(re(t)){if(typeof e!==t){throw new Error("argument does not match constraint: typeof ".concat(t))}}else if(ge(t)){try{if(e instanceof t){return}}catch(e){}if(!pe(e)&&e.constructor===t){return}if(t.length===1&&t.call(undefined,e)===true){return}throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function be(e){if(!e||typeof e!=="object"){return e}if(e instanceof RegExp){return e}var t=Array.isArray(e)?[]:{};Object.entries(e).forEach((function(e){var n=e[0],i=e[1];t[n]=i&&typeof i==="object"?be(i):i}));return t}function Se(e){if(!e||typeof e!=="object"){return e}var t=[e];while(t.length>0){var n=t.shift();Object.freeze(n);for(var i in n){if(we.call(n,i)){var a=n[i];if(typeof a==="object"&&!Object.isFrozen(a)&&!se(a)){t.push(a)}}}}return e}var we=Object.prototype.hasOwnProperty;function Ee(e,t){return Oe(e,t,new Set)}function Oe(e,t,n){if(pe(e)){return e}var i=t(e);if(typeof i!=="undefined"){return i}if(Array.isArray(e)){var a=[];for(var r=0,o=e;r<o.length;r++){var s=o[r];a.push(Oe(s,t,n))}return a}if(oe(e)){if(n.has(e)){throw new Error("Cannot clone recursive data-structure")}n.add(e);var c={};for(var u in e){if(we.call(e,u)){c[u]=Oe(e[u],t,n)}}n.delete(e);return c}return e}function ye(e,t,n){if(n===void 0){n=true}if(!oe(e)){return t}if(oe(t)){Object.keys(t).forEach((function(i){if(i in e){if(n){if(oe(e[i])&&oe(t[i])){ye(e[i],t[i],n)}else{e[i]=t[i]}}}else{e[i]=t[i]}}))}return e}function Ge(e,t){if(e===t){return true}if(e===null||e===undefined||t===null||t===undefined){return false}if(typeof e!==typeof t){return false}if(typeof e!=="object"){return false}if(Array.isArray(e)!==Array.isArray(t)){return false}var n;var i;if(Array.isArray(e)){if(e.length!==t.length){return false}for(n=0;n<e.length;n++){if(!Ge(e[n],t[n])){return false}}}else{var a=[];for(i in e){a.push(i)}a.sort();var r=[];for(i in t){r.push(i)}r.sort();if(!Ge(a,r)){return false}for(n=0;n<a.length;n++){if(!Ge(e[a[n]],t[a[n]])){return false}}}return true}function Ne(e){var t=[];while(Object.prototype!==e){t=t.concat(Object.getOwnPropertyNames(e));e=Object.getPrototypeOf(e)}return t}function Le(e){var t=[];for(var n=0,i=Ne(e);n<i.length;n++){var a=i[n];if(typeof e[a]==="function"){t.push(a)}}return t}function Ie(e,t){var n=function(e){return function(){var n=Array.prototype.slice.call(arguments,0);return t(e,n)}};var i={};for(var a=0,r=e;a<r.length;a++){var o=r[a];i[o]=n(o)}return i}var Ae=typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{};function ke(){throw new Error("setTimeout has not been defined")}function Re(){throw new Error("clearTimeout has not been defined")}var Pe=ke;var Be=Re;if(typeof Ae.setTimeout==="function"){Pe=setTimeout}if(typeof Ae.clearTimeout==="function"){Be=clearTimeout}function xe(e){if(Pe===setTimeout){return setTimeout(e,0)}if((Pe===ke||!Pe)&&setTimeout){Pe=setTimeout;return setTimeout(e,0)}try{return Pe(e,0)}catch(t){try{return Pe.call(null,e,0)}catch(t){return Pe.call(this,e,0)}}}function Ce(e){if(Be===clearTimeout){return clearTimeout(e)}if((Be===Re||!Be)&&clearTimeout){Be=clearTimeout;return clearTimeout(e)}try{return Be(e)}catch(t){try{return Be.call(null,e)}catch(t){return Be.call(this,e)}}}var De=[];var Me=false;var Ue;var He=-1;function Fe(){if(!Me||!Ue){return}Me=false;if(Ue.length){De=Ue.concat(De)}else{He=-1}if(De.length){_e()}}function _e(){if(Me){return}var e=xe(Fe);Me=true;var t=De.length;while(t){Ue=De;De=[];while(++He<t){if(Ue){Ue[He].run()}}He=-1;t=De.length}Ue=null;Me=false;Ce(e)}function We(e){var t=new Array(arguments.length-1);if(arguments.length>1){for(var n=1;n<arguments.length;n++){t[n-1]=arguments[n]}}De.push(new ze(e,t));if(De.length===1&&!Me){xe(_e)}}function ze(e,t){this.fun=e;this.array=t}ze.prototype.run=function(){this.fun.apply(null,this.array)};var Ye="browser";var Ke="browser";var je=true;var Ve={};var qe=[];var Xe="";var Ze={};var Je={};var Qe={};function $e(){}var et=$e;var tt=$e;var nt=$e;var it=$e;var at=$e;var rt=$e;var ot=$e;function st(e){throw new Error("process.binding is not supported")}function ct(){return"/"}function ut(e){throw new Error("process.chdir is not supported")}function lt(){return 0}var ht=Ae.performance||{};var dt=ht.now||ht.mozNow||ht.msNow||ht.oNow||ht.webkitNow||function(){return(new Date).getTime()};function pt(e){var t=dt.call(ht)*.001;var n=Math.floor(t);var i=Math.floor(t%1*1e9);if(e){n=n-e[0];i=i-e[1];if(i<0){n--;i+=1e9}}return[n,i]}var ft=new Date;function mt(){var e=new Date;var t=e-ft;return t/1e3}var gt={nextTick:We,title:Ye,browser:je,env:Ve,argv:qe,version:Xe,versions:Ze,on:et,addListener:tt,once:nt,off:it,removeListener:at,removeAllListeners:rt,emit:ot,binding:st,cwd:ct,chdir:ut,umask:lt,hrtime:pt,platform:Ke,release:Je,config:Qe,uptime:mt};var vt=gt;var Tt=typeof document!=="undefined"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function bt(e,t){var n;if(t.length===0){n=e}else{n=e.replace(/\{(\d+)\}/g,(function(e,n){var i=n[0];var a=t[i];var r=e;if(typeof a==="string"){r=a}else if(typeof a==="number"||typeof a==="boolean"||a===void 0||a===null){r=String(a)}return r}))}if(Tt){n="["+n.replace(/[aouei]/g,"$&$&")+"]"}return n}function St(e,t){var n=[];for(var i=2;i<arguments.length;i++){n[i-2]=arguments[i]}return bt(t,n)}function wt(e,t){var n=[];for(var i=2;i<arguments.length;i++){n[i-2]=arguments[i]}var a=bt(t,n);return{value:a,original:a}}function Et(e){return undefined}var Ot;var yt="en";var Gt=false;var Nt=false;var Lt=false;var It=false;var At=false;var kt=false;var Rt=false;var Pt=undefined;var Bt=yt;var xt=undefined;var Ct=globalThis;var Dt=undefined;if(typeof Ct.vscode!=="undefined"&&typeof Ct.vscode.process!=="undefined"){Dt=Ct.vscode.process}else if(typeof vt!=="undefined"){Dt=vt}var Mt=typeof((Ot=Dt===null||Dt===void 0?void 0:Dt.versions)===null||Ot===void 0?void 0:Ot.electron)==="string";var Ut=Mt&&(Dt===null||Dt===void 0?void 0:Dt.type)==="renderer";if(typeof navigator==="object"&&!Ut){xt=navigator.userAgent;Gt=xt.indexOf("Windows")>=0;Nt=xt.indexOf("Macintosh")>=0;kt=(xt.indexOf("Macintosh")>=0||xt.indexOf("iPad")>=0||xt.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0;Lt=xt.indexOf("Linux")>=0;Rt=(xt===null||xt===void 0?void 0:xt.indexOf("Mobi"))>=0;At=true;Et(St({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"));Pt=yt;Bt=Pt}else if(typeof Dt==="object"){Gt=Dt.platform==="win32";Nt=Dt.platform==="darwin";Lt=Dt.platform==="linux";Pt=yt;Bt=yt;var Ht=Dt.env["VSCODE_NLS_CONFIG"];if(Ht){try{var Ft=JSON.parse(Ht);var _t=Ft.availableLanguages["*"];Pt=Ft.locale;Bt=_t?_t:yt}catch(e){}}It=true}else{console.error("Unable to resolve platform.")}var Wt=Gt;var zt=Nt;var Yt=Lt;var Kt=It;var jt=At;var Vt=At&&typeof Ct.importScripts==="function";var qt=Vt?Ct.origin:undefined;var Xt=kt;var Zt=Rt;var Jt=xt;var Qt=Bt;var $t=typeof Ct.postMessage==="function"&&!Ct.importScripts;var en=function(){if($t){var e=[];Ct.addEventListener("message",(function(t){if(t.data&&t.data.vscodeScheduleAsyncWork){for(var n=0,i=e.length;n<i;n++){var a=e[n];if(a.id===t.data.vscodeScheduleAsyncWork){e.splice(n,1);a.callback();return}}}}));var t=0;return function(n){var i=++t;e.push({id:i,callback:n});Ct.postMessage({vscodeScheduleAsyncWork:i},"*")}}return function(e){return setTimeout(e)}}();var tn=Nt||kt?2:Gt?1:3;var nn=true;var an=false;function rn(){if(!an){an=true;var e=new Uint8Array(2);e[0]=1;e[1]=2;var t=new Uint16Array(e.buffer);nn=t[0]===(2<<8)+1}return nn}var on=!!(Jt&&Jt.indexOf("Chrome")>=0);var sn=!!(Jt&&Jt.indexOf("Firefox")>=0);var cn=!!(!on&&(Jt&&Jt.indexOf("Safari")>=0));var un=!!(Jt&&Jt.indexOf("Edg/")>=0);!!(Jt&&Jt.indexOf("Android")>=0);var ln={tabSize:4,indentSize:4,insertSpaces:true,detectIndentation:true,trimAutoWhitespace:true,largeFileOptimizations:true,bracketPairColorizationOptions:{enabled:true,independentColorPoolPerBracketType:false}};var hn;(function(e){function t(e){return e&&typeof e==="object"&&typeof e[Symbol.iterator]==="function"}e.is=t;var n=Object.freeze([]);function i(){return n}e.empty=i;function a(e){return __generator(this,(function(t){switch(t.label){case 0:return[4,e];case 1:t.sent();return[2]}}))}e.single=a;function r(e){if(t(e)){return e}else{return a(e)}}e.wrap=r;function o(e){return e||n}e.from=o;function s(e){var t;return __generator(this,(function(n){switch(n.label){case 0:t=e.length-1;n.label=1;case 1:if(!(t>=0))return[3,4];return[4,e[t]];case 2:n.sent();n.label=3;case 3:t--;return[3,1];case 4:return[2]}}))}e.reverse=s;function c(e){return!e||e[Symbol.iterator]().next().done===true}e.isEmpty=c;function u(e){return e[Symbol.iterator]().next().value}e.first=u;function l(e,t){for(var n=0,i=e;n<i.length;n++){var a=i[n];if(t(a)){return true}}return false}e.some=l;function h(e,t){for(var n=0,i=e;n<i.length;n++){var a=i[n];if(t(a)){return a}}return undefined}e.find=h;function d(e,t){var n,i,a;return __generator(this,(function(r){switch(r.label){case 0:n=0,i=e;r.label=1;case 1:if(!(n<i.length))return[3,4];a=i[n];if(!t(a))return[3,3];return[4,a];case 2:r.sent();r.label=3;case 3:n++;return[3,1];case 4:return[2]}}))}e.filter=d;function p(e,t){var n,i,a,r;return __generator(this,(function(o){switch(o.label){case 0:n=0;i=0,a=e;o.label=1;case 1:if(!(i<a.length))return[3,4];r=a[i];return[4,t(r,n++)];case 2:o.sent();o.label=3;case 3:i++;return[3,1];case 4:return[2]}}))}e.map=p;function f(){var e,t,n,i;var a=[];for(e=0;e<arguments.length;e++){a[e]=arguments[e]}return __generator(this,(function(e){switch(e.label){case 0:t=0,n=a;e.label=1;case 1:if(!(t<n.length))return[3,4];i=n[t];return[5,__values(i)];case 2:e.sent();e.label=3;case 3:t++;return[3,1];case 4:return[2]}}))}e.concat=f;function m(e,t,n){var i=n;for(var a=0,r=e;a<r.length;a++){var o=r[a];i=t(i,o)}return i}e.reduce=m;function g(e,t,n){if(n===void 0){n=e.length}return __generator(this,(function(i){switch(i.label){case 0:if(t<0){t+=e.length}if(n<0){n+=e.length}else if(n>e.length){n=e.length}i.label=1;case 1:if(!(t<n))return[3,4];return[4,e[t]];case 2:i.sent();i.label=3;case 3:t++;return[3,1];case 4:return[2]}}))}e.slice=g;function v(t,n){var i;if(n===void 0){n=Number.POSITIVE_INFINITY}var a=[];if(n===0){return[a,t]}var r=t[Symbol.iterator]();for(var o=0;o<n;o++){var s=r.next();if(s.done){return[a,e.empty()]}a.push(s.value)}return[a,(i={},i[Symbol.iterator]=function(){return r},i)]}e.consume=v})(hn||(hn={}));var dn=function(){function e(t){this.element=t;this.next=e.Undefined;this.prev=e.Undefined}return e}();dn.Undefined=new dn(undefined);var pn=function(){function e(){this._first=dn.Undefined;this._last=dn.Undefined;this._size=0}Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:false,configurable:true});e.prototype.isEmpty=function(){return this._first===dn.Undefined};e.prototype.clear=function(){var e=this._first;while(e!==dn.Undefined){var t=e.next;e.prev=dn.Undefined;e.next=dn.Undefined;e=t}this._first=dn.Undefined;this._last=dn.Undefined;this._size=0};e.prototype.unshift=function(e){return this._insert(e,false)};e.prototype.push=function(e){return this._insert(e,true)};e.prototype._insert=function(e,t){var n=this;var i=new dn(e);if(this._first===dn.Undefined){this._first=i;this._last=i}else if(t){var a=this._last;this._last=i;i.prev=a;a.next=i}else{var r=this._first;this._first=i;i.next=r;r.prev=i}this._size+=1;var o=false;return function(){if(!o){o=true;n._remove(i)}}};e.prototype.shift=function(){if(this._first===dn.Undefined){return undefined}else{var e=this._first.element;this._remove(this._first);return e}};e.prototype.pop=function(){if(this._last===dn.Undefined){return undefined}else{var e=this._last.element;this._remove(this._last);return e}};e.prototype._remove=function(e){if(e.prev!==dn.Undefined&&e.next!==dn.Undefined){var t=e.prev;t.next=e.next;e.next.prev=t}else if(e.prev===dn.Undefined&&e.next===dn.Undefined){this._first=dn.Undefined;this._last=dn.Undefined}else if(e.next===dn.Undefined){this._last=this._last.prev;this._last.next=dn.Undefined}else if(e.prev===dn.Undefined){this._first=this._first.next;this._first.prev=dn.Undefined}this._size-=1};e.prototype[Symbol.iterator]=function(){var e;return __generator(this,(function(t){switch(t.label){case 0:e=this._first;t.label=1;case 1:if(!(e!==dn.Undefined))return[3,3];return[4,e.element];case 2:t.sent();e=e.next;return[3,1];case 3:return[2]}}))};return e}();var fn="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function mn(e){if(e===void 0){e=""}var t="(-?\\d*\\.\\d\\w*)|([^";for(var n=0,i=fn;n<i.length;n++){var a=i[n];if(e.indexOf(a)>=0){continue}t+="\\"+a}t+="\\s]+)";return new RegExp(t,"g")}var gn=mn();function vn(e){var t=gn;if(e&&e instanceof RegExp){if(!e.global){var n="g";if(e.ignoreCase){n+="i"}if(e.multiline){n+="m"}if(e.unicode){n+="u"}t=new RegExp(e.source,n)}else{t=e}}t.lastIndex=0;return t}var Tn=new pn;Tn.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function bn(e,t,n,i,a){t=vn(t);if(!a){a=hn.first(Tn)}if(n.length>a.maxLen){var r=e-a.maxLen/2;if(r<0){r=0}else{i+=r}n=n.substring(r,e+a.maxLen/2);return bn(e,t,n,i,a)}var o=Date.now();var s=e-1-i;var c=-1;var u=null;for(var l=1;;l++){if(Date.now()-o>=a.timeBudget){break}var h=s-a.windowSize*l;t.lastIndex=Math.max(0,h);var d=Sn(t,n,s,c);if(!d&&u){break}u=d;if(h<=0){break}c=h}if(u){var p={word:u[0],startColumn:i+1+u.index,endColumn:i+1+u.index+u[0].length};t.lastIndex=0;return p}return null}function Sn(e,t,n,i){var a;while(a=e.exec(t)){var r=a.index||0;if(r<=n&&e.lastIndex>=n){return a}else if(i>0&&r>i){return null}}return null}var wn=8;var En=function(){function e(e){this._values=e}e.prototype.hasChanged=function(e){return this._values[e]};return e}();var On=function(){function e(){this.stableMinimapLayoutInput=null;this.stableFitMaxMinimapScale=0;this.stableFitRemainingWidth=0}return e}();var yn=function(){function e(e,t,n,i){this.id=e;this.name=t;this.defaultValue=n;this.schema=i}e.prototype.applyUpdate=function(e,t){return Nn(e,t)};e.prototype.compute=function(e,t,n){return n};return e}();var Gn=function(){function e(e,t){this.newValue=e;this.didChange=t}return e}();function Nn(e,t){if(typeof e!=="object"||typeof t!=="object"||!e||!t){return new Gn(t,e!==t)}if(Array.isArray(e)||Array.isArray(t)){var n=Array.isArray(e)&&Array.isArray(t)&&L(e,t);return new Gn(t,!n)}var i=false;for(var a in t){if(t.hasOwnProperty(a)){var r=Nn(e[a],t[a]);if(r.didChange){e[a]=r.newValue;i=true}}}return new Gn(e,i)}var Ln=function(){function e(e){this.schema=undefined;this.id=e;this.name="_never_";this.defaultValue=undefined}e.prototype.applyUpdate=function(e,t){return Nn(e,t)};e.prototype.validate=function(e){return this.defaultValue};return e}();var In=function(){function e(e,t,n,i){this.id=e;this.name=t;this.defaultValue=n;this.schema=i}e.prototype.applyUpdate=function(e,t){return Nn(e,t)};e.prototype.validate=function(e){if(typeof e==="undefined"){return this.defaultValue}return e};e.prototype.compute=function(e,t,n){return n};return e}();function An(e,t){if(typeof e==="undefined"){return t}if(e==="false"){return false}return Boolean(e)}var kn=function(e){__extends(t,e);function t(t,n,i,a){if(a===void 0){a=undefined}if(typeof a!=="undefined"){a.type="boolean";a.default=i}return e.call(this,t,n,i,a)||this}t.prototype.validate=function(e){return An(e,this.defaultValue)};return t}(In);function Rn(e,t,n,i){if(typeof e==="undefined"){return t}var a=parseInt(e,10);if(isNaN(a)){return t}a=Math.max(n,a);a=Math.min(i,a);return a|0}var Pn=function(e){__extends(t,e);function t(t,n,i,a,r,o){if(o===void 0){o=undefined}var s=this;if(typeof o!=="undefined"){o.type="integer";o.default=i;o.minimum=a;o.maximum=r}s=e.call(this,t,n,i,o)||this;s.minimum=a;s.maximum=r;return s}t.clampedInt=function(e,t,n,i){return Rn(e,t,n,i)};t.prototype.validate=function(e){return t.clampedInt(e,this.defaultValue,this.minimum,this.maximum)};return t}(In);function Bn(e,t,n,i){if(typeof e==="undefined"){return t}var a=xn.float(e,t);return xn.clamp(a,n,i)}var xn=function(e){__extends(t,e);function t(t,n,i,a,r){var o=this;if(typeof r!=="undefined"){r.type="number";r.default=i}o=e.call(this,t,n,i,r)||this;o.validationFn=a;return o}t.clamp=function(e,t,n){if(e<t){return t}if(e>n){return n}return e};t.float=function(e,t){if(typeof e==="number"){return e}if(typeof e==="undefined"){return t}var n=parseFloat(e);return isNaN(n)?t:n};t.prototype.validate=function(e){return this.validationFn(t.float(e,this.defaultValue))};return t}(In);var Cn=function(e){__extends(t,e);function t(t,n,i,a){if(a===void 0){a=undefined}if(typeof a!=="undefined"){a.type="string";a.default=i}return e.call(this,t,n,i,a)||this}t.string=function(e,t){if(typeof e!=="string"){return t}return e};t.prototype.validate=function(e){return t.string(e,this.defaultValue)};return t}(In);function Dn(e,t,n,i){if(typeof e!=="string"){return t}if(i&&e in i){return i[e]}if(n.indexOf(e)===-1){return t}return e}var Mn=function(e){__extends(t,e);function t(t,n,i,a,r){if(r===void 0){r=undefined}var o=this;if(typeof r!=="undefined"){r.type="string";r.enum=a;r.default=i}o=e.call(this,t,n,i,r)||this;o._allowedValues=a;return o}t.prototype.validate=function(e){return Dn(e,this.defaultValue,this._allowedValues)};return t}(In);var Un=function(e){__extends(t,e);function t(t,n,i,a,r,o,s){if(s===void 0){s=undefined}var c=this;if(typeof s!=="undefined"){s.type="string";s.enum=r;s.default=a}c=e.call(this,t,n,i,s)||this;c._allowedValues=r;c._convert=o;return c}t.prototype.validate=function(e){if(typeof e!=="string"){return this.defaultValue}if(this._allowedValues.indexOf(e)===-1){return this.defaultValue}return this._convert(e)};return t}(yn);function Hn(e){switch(e){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}var Fn=function(e){__extends(t,e);function t(){return e.call(this,2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[St("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached."),St("accessibilitySupport.on","Optimize for usage with a Screen Reader."),St("accessibilitySupport.off","Assume a screen reader is not attached.")],default:"auto",tags:["accessibility"],description:St("accessibilitySupport","Controls if the UI should run in a mode where it is optimized for screen readers.")})||this}t.prototype.validate=function(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue};t.prototype.compute=function(e,t,n){if(n===0){return e.accessibilitySupport}return n};return t}(yn);var _n=function(e){__extends(t,e);function t(){var t={insertSpace:true,ignoreEmptyLines:true};return e.call(this,23,"comments",t,{"editor.comments.insertSpace":{type:"boolean",default:t.insertSpace,description:St("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:t.ignoreEmptyLines,description:St("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})||this}t.prototype.validate=function(e){if(!e||typeof e!=="object"){return this.defaultValue}var t=e;return{insertSpace:An(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:An(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}};return t}(yn);function Wn(e){switch(e){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var zn;(function(e){e[e["Line"]=1]="Line";e[e["Block"]=2]="Block";e[e["Underline"]=3]="Underline";e[e["LineThin"]=4]="LineThin";e[e["BlockOutline"]=5]="BlockOutline";e[e["UnderlineThin"]=6]="UnderlineThin"})(zn||(zn={}));function Yn(e){switch(e){case"line":return zn.Line;case"block":return zn.Block;case"underline":return zn.Underline;case"line-thin":return zn.LineThin;case"block-outline":return zn.BlockOutline;case"underline-thin":return zn.UnderlineThin}}var Kn=function(e){__extends(t,e);function t(){return e.call(this,140)||this}t.prototype.compute=function(e,t,n){var i=["monaco-editor"];if(t.get(39)){i.push(t.get(39))}if(e.extraEditorClassName){i.push(e.extraEditorClassName)}if(t.get(73)==="default"){i.push("mouse-default")}else if(t.get(73)==="copy"){i.push("mouse-copy")}if(t.get(110)){i.push("showUnused")}if(t.get(138)){i.push("showDeprecated")}return i.join(" ")};return t}(Ln);var jn=function(e){__extends(t,e);function t(){return e.call(this,37,"emptySelectionClipboard",true,{description:St("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})||this}t.prototype.compute=function(e,t,n){return n&&e.emptySelectionClipboard};return t}(kn);var Vn=function(e){__extends(t,e);function t(){var t={cursorMoveOnType:true,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:false,addExtraSpaceOnTop:true,loop:true};return e.call(this,41,"find",t,{"editor.find.cursorMoveOnType":{type:"boolean",default:t.cursorMoveOnType,description:St("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:t.seedSearchStringFromSelection,enumDescriptions:[St("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),St("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),St("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:St("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:t.autoFindInSelection,enumDescriptions:[St("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),St("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),St("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:St("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:t.globalFindClipboard,description:St("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:zt},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:t.addExtraSpaceOnTop,description:St("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:t.loop,description:St("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})||this}t.prototype.validate=function(e){if(!e||typeof e!=="object"){return this.defaultValue}var t=e;return{cursorMoveOnType:An(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection==="boolean"?e.seedSearchStringFromSelection?"always":"never":Dn(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection==="boolean"?e.autoFindInSelection?"always":"never":Dn(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:An(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:An(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:An(t.loop,this.defaultValue.loop)}};return t}(yn);var qn=function(e){__extends(t,e);function t(){return e.call(this,51,"fontLigatures",t.OFF,{anyOf:[{type:"boolean",description:St("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:St("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:St("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:false})||this}t.prototype.validate=function(e){if(typeof e==="undefined"){return this.defaultValue}if(typeof e==="string"){if(e==="false"){return t.OFF}if(e==="true"){return t.ON}return e}if(Boolean(e)){return t.ON}return t.OFF};return t}(yn);qn.OFF='"liga" off, "calt" off';qn.ON='"liga" on, "calt" on';var Xn=function(e){__extends(t,e);function t(){return e.call(this,54,"fontVariations",t.OFF,{anyOf:[{type:"boolean",description:St("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:St("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:St("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:false})||this}t.prototype.validate=function(e){if(typeof e==="undefined"){return this.defaultValue}if(typeof e==="string"){if(e==="false"){return t.OFF}if(e==="true"){return t.TRANSLATE}return e}if(Boolean(e)){return t.TRANSLATE}return t.OFF};t.prototype.compute=function(e,t,n){return e.fontInfo.fontVariationSettings};return t}(yn);Xn.OFF="normal";Xn.TRANSLATE="translate";var Zn=function(e){__extends(t,e);function t(){return e.call(this,50)||this}t.prototype.compute=function(e,t,n){return e.fontInfo};return t}(Ln);var Jn=function(e){__extends(t,e);function t(){return e.call(this,52,"fontSize",Mi.fontSize,{type:"number",minimum:6,maximum:100,default:Mi.fontSize,description:St("fontSize","Controls the font size in pixels.")})||this}t.prototype.validate=function(e){var t=xn.float(e,this.defaultValue);if(t===0){return Mi.fontSize}return xn.clamp(t,6,100)};t.prototype.compute=function(e,t,n){return e.fontInfo.fontSize};return t}(In);var Qn=function(e){__extends(t,e);function t(){return e.call(this,53,"fontWeight",Mi.fontWeight,{anyOf:[{type:"number",minimum:t.MINIMUM_VALUE,maximum:t.MAXIMUM_VALUE,errorMessage:St("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:t.SUGGESTION_VALUES}],default:Mi.fontWeight,description:St("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})||this}t.prototype.validate=function(e){if(e==="normal"||e==="bold"){return e}return String(Pn.clampedInt(e,Mi.fontWeight,t.MINIMUM_VALUE,t.MAXIMUM_VALUE))};return t}(yn);Qn.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"];Qn.MINIMUM_VALUE=1;Qn.MAXIMUM_VALUE=1e3;var $n=function(e){__extends(t,e);function t(){var t={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:""};var n={type:"string",enum:["peek","gotoAndPeek","goto"],default:t.multiple,enumDescriptions:[St("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),St("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),St("editor.gotoLocation.multiple.goto","Go to the primary result and enable Peek-less navigation to others")]};var 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"];return e.call(this,58,"gotoLocation",t,{"editor.gotoLocation.multiple":{deprecationMessage:St("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":__assign({description:St("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},n),"editor.gotoLocation.multipleTypeDefinitions":__assign({description:St("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},n),"editor.gotoLocation.multipleDeclarations":__assign({description:St("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},n),"editor.gotoLocation.multipleImplementations":__assign({description:St("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},n),"editor.gotoLocation.multipleReferences":__assign({description:St("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},n),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:t.alternativeDefinitionCommand,enum:i,description:St("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:t.alternativeTypeDefinitionCommand,enum:i,description:St("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:t.alternativeDeclarationCommand,enum:i,description:St("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:t.alternativeImplementationCommand,enum:i,description:St("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:t.alternativeReferenceCommand,enum:i,description:St("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})||this}t.prototype.validate=function(e){var t,n,i,a,r;if(!e||typeof e!=="object"){return this.defaultValue}var o=e;return{multiple:Dn(o.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(t=o.multipleDefinitions)!==null&&t!==void 0?t:Dn(o.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(n=o.multipleTypeDefinitions)!==null&&n!==void 0?n:Dn(o.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(i=o.multipleDeclarations)!==null&&i!==void 0?i:Dn(o.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(a=o.multipleImplementations)!==null&&a!==void 0?a:Dn(o.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(r=o.multipleReferences)!==null&&r!==void 0?r:Dn(o.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:Cn.string(o.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:Cn.string(o.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:Cn.string(o.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:Cn.string(o.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:Cn.string(o.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}};return t}(yn);var ei=function(e){__extends(t,e);function t(){var t={enabled:true,delay:300,hidingDelay:300,sticky:true,above:true};return e.call(this,60,"hover",t,{"editor.hover.enabled":{type:"boolean",default:t.enabled,description:St("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:t.delay,minimum:0,maximum:1e4,description:St("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:t.sticky,description:St("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.hidingDelay":{type:"integer",minimum:0,default:t.hidingDelay,description:St("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:t.above,description:St("hover.above","Prefer showing hovers above the line, if there's space.")}})||this}t.prototype.validate=function(e){if(!e||typeof e!=="object"){return this.defaultValue}var t=e;return{enabled:An(t.enabled,this.defaultValue.enabled),delay:Pn.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:An(t.sticky,this.defaultValue.sticky),hidingDelay:Pn.clampedInt(t.hidingDelay,this.defaultValue.hidingDelay,0,6e5),above:An(t.above,this.defaultValue.above)}};return t}(yn);var ti=function(e){__extends(t,e);function t(){return e.call(this,143)||this}t.prototype.compute=function(e,n,i){return t.computeLayout(n,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio,glyphMarginDecorationLaneCount:e.glyphMarginDecorationLaneCount})};t.computeContainedMinimapLineCount=function(e){var t=e.height/e.lineHeight;var n=Math.floor(e.paddingTop/e.lineHeight);var i=Math.floor(e.paddingBottom/e.lineHeight);if(e.scrollBeyondLastLine){i=Math.max(i,t-1)}var a=(n+e.viewLineCount+i)/(e.pixelRatio*e.height);var r=Math.floor(e.viewLineCount/a);return{typicalViewportLineCount:t,extraLinesBeforeFirstLine:n,extraLinesBeyondLastLine:i,desiredRatio:a,minimapLineCount:r}};t._computeMinimapLayout=function(e,n){var i=e.outerWidth;var a=e.outerHeight;var r=e.pixelRatio;if(!e.minimap.enabled){return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:false,minimapIsSampling:false,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(r*a),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:a}}var o=n.stableMinimapLayoutInput;var s=o&&e.outerHeight===o.outerHeight&&e.lineHeight===o.lineHeight&&e.typicalHalfwidthCharacterWidth===o.typicalHalfwidthCharacterWidth&&e.pixelRatio===o.pixelRatio&&e.scrollBeyondLastLine===o.scrollBeyondLastLine&&e.paddingTop===o.paddingTop&&e.paddingBottom===o.paddingBottom&&e.minimap.enabled===o.minimap.enabled&&e.minimap.side===o.minimap.side&&e.minimap.size===o.minimap.size&&e.minimap.showSlider===o.minimap.showSlider&&e.minimap.renderCharacters===o.minimap.renderCharacters&&e.minimap.maxColumn===o.minimap.maxColumn&&e.minimap.scale===o.minimap.scale&&e.verticalScrollbarWidth===o.verticalScrollbarWidth&&e.isViewportWrapping===o.isViewportWrapping;var c=e.lineHeight;var u=e.typicalHalfwidthCharacterWidth;var l=e.scrollBeyondLastLine;var h=e.minimap.renderCharacters;var d=r>=2?Math.round(e.minimap.scale*2):e.minimap.scale;var p=e.minimap.maxColumn;var f=e.minimap.size;var m=e.minimap.side;var g=e.verticalScrollbarWidth;var v=e.viewLineCount;var T=e.remainingWidth;var b=e.isViewportWrapping;var S=h?2:3;var w=Math.floor(r*a);var E=w/r;var O=false;var y=false;var G=S*d;var N=d/r;var L=1;if(f==="fill"||f==="fit"){var I=t.computeContainedMinimapLineCount({viewLineCount:v,scrollBeyondLastLine:l,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:a,lineHeight:c,pixelRatio:r}),A=I.typicalViewportLineCount,k=I.extraLinesBeforeFirstLine,R=I.extraLinesBeyondLastLine,P=I.desiredRatio,B=I.minimapLineCount;var x=v/B;if(x>1){O=true;y=true;d=1;G=1;N=d/r}else{var C=false;var D=d+1;if(f==="fit"){var M=Math.ceil((k+v+R)*G);if(b&&s&&T<=n.stableFitRemainingWidth){C=true;D=n.stableFitMaxMinimapScale}else{C=M>w}}if(f==="fill"||C){O=true;var U=d;G=Math.min(c*r,Math.max(1,Math.floor(1/P)));if(b&&s&&T<=n.stableFitRemainingWidth){D=n.stableFitMaxMinimapScale}d=Math.min(D,Math.max(1,Math.floor(G/S)));if(d>U){L=Math.min(2,d/U)}N=d/r/L;w=Math.ceil(Math.max(A,k+v+R)*G);if(b){n.stableMinimapLayoutInput=e;n.stableFitRemainingWidth=T;n.stableFitMaxMinimapScale=d}else{n.stableMinimapLayoutInput=null;n.stableFitRemainingWidth=0}}}}var H=Math.floor(p*N);var F=Math.min(H,Math.max(0,Math.floor((T-g-2)*N/(u+N)))+wn);var _=Math.floor(r*F);var W=_/r;_=Math.floor(_*L);var z=h?1:2;var Y=m==="left"?0:i-F-g;return{renderMinimap:z,minimapLeft:Y,minimapWidth:F,minimapHeightIsEditorHeight:O,minimapIsSampling:y,minimapScale:d,minimapLineHeight:G,minimapCanvasInnerWidth:_,minimapCanvasInnerHeight:w,minimapCanvasOuterWidth:W,minimapCanvasOuterHeight:E}};t.computeLayout=function(e,n){var i=n.outerWidth|0;var a=n.outerHeight|0;var r=n.lineHeight|0;var o=n.lineNumbersDigitCount|0;var s=n.typicalHalfwidthCharacterWidth;var c=n.maxDigitWidth;var u=n.pixelRatio;var l=n.viewLineCount;var h=e.get(135);var d=