code-server
Version:
Run VS Code on a remote server.
26 lines (18 loc) • 315 kB
JavaScript
"use strict";/*!--------------------------------------------------------
* Copyright (C) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------*/var e1=function(e,t){return e1=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[s]=r[s])},e1(e,t)};export function __extends(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e1(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}export var __assign=function(){return __assign=Object.assign||function(t){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},__assign.apply(this,arguments)};export function __rest(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n}export function __decorate(e,t,n,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(a=e[u])&&(i=(s<3?a(i):s>3?a(t,n,i):a(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i}export function __param(e,t){return function(n,r){t(n,r,e)}}export function __esDecorate(e,t,n,r,s,i){function a(w){if(w!==void 0&&typeof w!="function")throw new TypeError("Function expected");return w}for(var u=r.kind,o=u==="getter"?"get":u==="setter"?"set":"value",c=!t&&e?r.static?e:e.prototype:null,f=t||(c?Object.getOwnPropertyDescriptor(c,r.name):{}),h,g=!1,m=n.length-1;m>=0;m--){var d={};for(var A in r)d[A]=A==="access"?{}:r[A];for(var A in r.access)d.access[A]=r.access[A];d.addInitializer=function(w){if(g)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(w||null))};var p=(0,n[m])(u==="accessor"?{get:f.get,set:f.set}:f[o],d);if(u==="accessor"){if(p===void 0)continue;if(p===null||typeof p!="object")throw new TypeError("Object expected");(h=a(p.get))&&(f.get=h),(h=a(p.set))&&(f.set=h),(h=a(p.init))&&s.unshift(h)}else(h=a(p))&&(u==="field"?s.unshift(h):f[o]=h)}c&&Object.defineProperty(c,r.name,f),g=!0}export function __runInitializers(e,t,n){for(var r=arguments.length>2,s=0;s<t.length;s++)n=r?t[s].call(e,n):t[s].call(e);return r?n:void 0}export function __propKey(e){return typeof e=="symbol"?e:"".concat(e)}export function __setFunctionName(e,t,n){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}export function __metadata(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}export function __awaiter(e,t,n,r){function s(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function u(f){try{c(r.next(f))}catch(h){a(h)}}function o(f){try{c(r.throw(f))}catch(h){a(h)}}function c(f){f.done?i(f.value):s(f.value).then(u,o)}c((r=r.apply(e,t||[])).next())})}export function __generator(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,s,i,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(c){return function(f){return o([c,f])}}function o(c){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(n=0)),n;)try{if(r=1,s&&(i=c[0]&2?s.return:c[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,c[1])).done)return i;switch(s=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,s=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){n.label=c[1];break}if(c[0]===6&&n.label<i[1]){n.label=i[1],i=c;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(c);break}i[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(f){c=[6,f],s=0}finally{r=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}export var __createBinding=Object.create?function(e,t,n,r){r===void 0&&(r=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,s)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]};export function __exportStar(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&__createBinding(t,e,n)}export function __values(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}export function __read(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),s,i=[],a;try{for(;(t===void 0||t-- >0)&&!(s=r.next()).done;)i.push(s.value)}catch(u){a={error:u}}finally{try{s&&!s.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i}export function __spread(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read(arguments[t]));return e}export function __spreadArrays(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),s=0,t=0;t<n;t++)for(var i=arguments[t],a=0,u=i.length;a<u;a++,s++)r[s]=i[a];return r}export function __spreadArray(e,t,n){if(n||arguments.length===2)for(var r=0,s=t.length,i;r<s;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}export function __await(e){return this instanceof __await?(this.v=e,this):new __await(e)}export function __asyncGenerator(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),s,i=[];return s={},u("next"),u("throw"),u("return",a),s[Symbol.asyncIterator]=function(){return this},s;function a(m){return function(d){return Promise.resolve(d).then(m,h)}}function u(m,d){r[m]&&(s[m]=function(A){return new Promise(function(p,w){i.push([m,A,p,w])>1||o(m,A)})},d&&(s[m]=d(s[m])))}function o(m,d){try{c(r[m](d))}catch(A){g(i[0][3],A)}}function c(m){m.value instanceof __await?Promise.resolve(m.value.v).then(f,h):g(i[0][2],m)}function f(m){o("next",m)}function h(m){o("throw",m)}function g(m,d){m(d),i.shift(),i.length&&o(i[0][0],i[0][1])}}export function __asyncDelegator(e){var t,n;return t={},r("next"),r("throw",function(s){throw s}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(s,i){t[s]=e[s]?function(a){return(n=!n)?{value:__await(e[s](a)),done:!1}:i?i(a):a}:i}}export function __asyncValues(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={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(a){return new Promise(function(u,o){a=e[i](a),s(u,o,a.done,a.value)})}}function s(i,a,u,o){Promise.resolve(o).then(function(c){i({value:c,done:u})},a)}}export function __makeTemplateObject(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var Bi=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};export function __importStar(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&__createBinding(t,e,n);return Bi(t,e),t}export function __importDefault(e){return e&&e.__esModule?e:{default:e}}export function __classPrivateFieldGet(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)}export function __classPrivateFieldSet(e,t,n,r,s){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?s.call(e,n):s?s.value=n:t.set(e,n),n}export function __classPrivateFieldIn(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}export function __addDisposableResource(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var r,s;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(s=r)}if(typeof r!="function")throw new TypeError("Object not disposable.");s&&(r=function(){try{s.call(this)}catch(i){return Promise.reject(i)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var qi=typeof SuppressedError=="function"?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};export function __disposeResources(e){function t(r){e.error=e.hasError?new qi(r,e.error,"An error was suppressed during disposal."):r,e.hasError=!0}function n(){for(;e.stack.length;){var r=e.stack.pop();try{var s=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(s).then(n,function(i){return t(i),n()})}catch(i){t(i)}}if(e.hasError)throw e.error}return n()}export default{__extends,__assign,__rest,__decorate,__param,__metadata,__awaiter,__generator,__createBinding,__exportStar,__values,__read,__spread,__spreadArrays,__spreadArray,__await,__asyncGenerator,__asyncDelegator,__asyncValues,__makeTemplateObject,__importStar,__importDefault,__classPrivateFieldGet,__classPrivateFieldSet,__classPrivateFieldIn,__addDisposableResource,__disposeResources};var Ii=class{constructor(){this.b=[],this.a=function(e){setTimeout(()=>{throw e.stack?r1.isErrorNoTelemetry(e)?new r1(e.message+`
`+e.stack):new Error(e.message+`
`+e.stack):e},0)}}addListener(e){return this.b.push(e),()=>{this.d(e)}}c(e){this.b.forEach(t=>{t(e)})}d(e){this.b.splice(this.b.indexOf(e),1)}setUnexpectedErrorHandler(e){this.a=e}getUnexpectedErrorHandler(){return this.a}onUnexpectedError(e){this.a(e),this.c(e)}onUnexpectedExternalError(e){this.a(e)}},Ui=new Ii;function st(e){ji(e)||Ui.onUnexpectedError(e)}function t1(e){if(e instanceof Error){const{name:t,message:n,cause:r}=e,s=e.stacktrace||e.stack;return{$isError:!0,name:t,message:n,stack:s,noTelemetry:r1.isErrorNoTelemetry(e),cause:r?t1(r):void 0,code:e.code}}return e}var n1="Canceled";function ji(e){return e instanceof Wi?!0:e instanceof Error&&e.name===n1&&e.message===n1}var Wi=class extends Error{constructor(){super(n1),this.name=this.message}},r1=class z1 extends Error{constructor(t){super(t),this.name="CodeExpectedError"}static fromError(t){if(t instanceof z1)return t;const n=new z1;return n.message=t.message,n.stack=t.stack,n}static isErrorNoTelemetry(t){return t.name==="CodeExpectedError"}},re=class Ni extends Error{constructor(t){super(t||"An unexpected bug occurred."),Object.setPrototypeOf(this,Ni.prototype)}},Y1;function Oi(e,t){const n=Object.create(null);for(const r of e){const s=t(r);let i=n[s];i||(i=n[s]=[]),i.push(r)}return n}var bu=class{static{Y1=Symbol.toStringTag}constructor(e,t){this.b=t,this.a=new Map,this[Y1]="SetWithKey";for(const n of e)this.add(n)}get size(){return this.a.size}add(e){const t=this.b(e);return this.a.set(t,e),this}delete(e){return this.a.delete(this.b(e))}has(e){return this.a.has(this.b(e))}*entries(){for(const e of this.a.values())yield[e,e]}keys(){return this.values()}*values(){for(const e of this.a.values())yield e}clear(){this.a.clear()}forEach(e,t){this.a.forEach(n=>e.call(t,n,n,this))}[Symbol.iterator](){return this.values()}};function Hi(e,t){const n=this;let r=!1,s;return function(){if(r)return s;if(r=!0,t)try{s=e.apply(n,arguments)}finally{t()}else s=e.apply(n,arguments);return s}}function Be(e,t){const n=qe(e,t);return n===-1?void 0:e[n]}function qe(e,t,n=0,r=e.length){let s=n,i=r;for(;s<i;){const a=Math.floor((s+i)/2);t(e[a])?s=a+1:i=a}return s-1}function zi(e,t){const n=s1(e,t);return n===e.length?void 0:e[n]}function s1(e,t,n=0,r=e.length){let s=n,i=r;for(;s<i;){const a=Math.floor((s+i)/2);t(e[a])?i=a:s=a+1}return s}var Q1=class Li{static{this.assertInvariants=!1}constructor(t){this.e=t,this.c=0}findLastMonotonous(t){if(Li.assertInvariants){if(this.d){for(const r of this.e)if(this.d(r)&&!t(r))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this.d=t}const n=qe(this.e,t,this.c);return this.c=n+1,n===-1?void 0:this.e[n]}};function K1(e,t,n=(r,s)=>r===s){if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let r=0,s=e.length;r<s;r++)if(!n(e[r],t[r]))return!1;return!0}function*Gi(e,t){let n,r;for(const s of e)r!==void 0&&t(r,s)?n.push(s):(n&&(yield n),n=[s]),r=s;n&&(yield n)}function Ci(e,t){for(let n=0;n<=e.length;n++)t(n===0?void 0:e[n-1],n===e.length?void 0:e[n])}function Xi(e,t){for(let n=0;n<e.length;n++)t(n===0?void 0:e[n-1],e[n],n+1===e.length?void 0:e[n+1])}function Ji(e,t){for(const n of t)e.push(n)}var i1;(function(e){function t(i){return i<0}e.isLessThan=t;function n(i){return i<=0}e.isLessThanOrEqual=n;function r(i){return i>0}e.isGreaterThan=r;function s(i){return i===0}e.isNeitherLessOrGreaterThan=s,e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0})(i1||(i1={}));function it(e,t){return(n,r)=>t(e(n),e(r))}var at=(e,t)=>e-t;function Zi(e){return(t,n)=>-e(t,n)}var wu=class Xt{static{this.empty=new Xt(t=>{})}constructor(t){this.iterate=t}forEach(t){this.iterate(n=>(t(n),!0))}toArray(){const t=[];return this.iterate(n=>(t.push(n),!0)),t}filter(t){return new Xt(n=>this.iterate(r=>t(r)?n(r):!0))}map(t){return new Xt(n=>this.iterate(r=>n(t(r))))}some(t){let n=!1;return this.iterate(r=>(n=t(r),!n)),n}findFirst(t){let n;return this.iterate(r=>t(r)?(n=r,!1):!0),n}findLast(t){let n;return this.iterate(r=>(t(r)&&(n=r),!0)),n}findLastMaxBy(t){let n,r=!0;return this.iterate(s=>((r||i1.isGreaterThan(t(s,n)))&&(r=!1,n=s),!0)),n}},en,tn,nn,Yi=class{constructor(e,t){this.uri=e,this.value=t}};function Qi(e){return Array.isArray(e)}var rn=class mt{static{this.c=t=>t.toString()}constructor(t,n){if(this[en]="ResourceMap",t instanceof mt)this.d=new Map(t.d),this.e=n??mt.c;else if(Qi(t)){this.d=new Map,this.e=n??mt.c;for(const[r,s]of t)this.set(r,s)}else this.d=new Map,this.e=t??mt.c}set(t,n){return this.d.set(this.e(t),new Yi(t,n)),this}get(t){return this.d.get(this.e(t))?.value}has(t){return this.d.has(this.e(t))}get size(){return this.d.size}clear(){this.d.clear()}delete(t){return this.d.delete(this.e(t))}forEach(t,n){typeof n<"u"&&(t=t.bind(n));for(const[r,s]of this.d)t(s.value,s.uri,this)}*values(){for(const t of this.d.values())yield t.value}*keys(){for(const t of this.d.values())yield t.uri}*entries(){for(const t of this.d.values())yield[t.uri,t.value]}*[(en=Symbol.toStringTag,Symbol.iterator)](){for(const[,t]of this.d)yield[t.uri,t.value]}},vu=class{constructor(e,t){this[tn]="ResourceSet",!e||typeof e=="function"?this.c=new rn(e):(this.c=new rn(t),e.forEach(this.add,this))}get size(){return this.c.size}add(e){return this.c.set(e,e),this}clear(){this.c.clear()}delete(e){return this.c.delete(e)}forEach(e,t){this.c.forEach((n,r)=>e.call(t,r,r,this))}has(e){return this.c.has(e)}entries(){return this.c.entries()}keys(){return this.c.keys()}values(){return this.c.keys()}[(tn=Symbol.toStringTag,Symbol.iterator)](){return this.keys()}},sn;(function(e){e[e.None=0]="None",e[e.AsOld=1]="AsOld",e[e.AsNew=2]="AsNew"})(sn||(sn={}));var Ki=class{constructor(){this[nn]="LinkedMap",this.c=new Map,this.d=void 0,this.e=void 0,this.f=0,this.g=0}clear(){this.c.clear(),this.d=void 0,this.e=void 0,this.f=0,this.g++}isEmpty(){return!this.d&&!this.e}get size(){return this.f}get first(){return this.d?.value}get last(){return this.e?.value}has(e){return this.c.has(e)}get(e,t=0){const n=this.c.get(e);if(n)return t!==0&&this.n(n,t),n.value}set(e,t,n=0){let r=this.c.get(e);if(r)r.value=t,n!==0&&this.n(r,n);else{switch(r={key:e,value:t,next:void 0,previous:void 0},n){case 0:this.l(r);break;case 1:this.k(r);break;case 2:this.l(r);break;default:this.l(r);break}this.c.set(e,r),this.f++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this.c.get(e);if(t)return this.c.delete(e),this.m(t),this.f--,t.value}shift(){if(!this.d&&!this.e)return;if(!this.d||!this.e)throw new Error("Invalid list");const e=this.d;return this.c.delete(e.key),this.m(e),this.f--,e.value}forEach(e,t){const n=this.g;let r=this.d;for(;r;){if(t?e.bind(t)(r.value,r.key,this):e(r.value,r.key,this),this.g!==n)throw new Error("LinkedMap got modified during iteration.");r=r.next}}keys(){const e=this,t=this.g;let n=this.d;const r={[Symbol.iterator](){return r},next(){if(e.g!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const s={value:n.key,done:!1};return n=n.next,s}else return{value:void 0,done:!0}}};return r}values(){const e=this,t=this.g;let n=this.d;const r={[Symbol.iterator](){return r},next(){if(e.g!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const s={value:n.value,done:!1};return n=n.next,s}else return{value:void 0,done:!0}}};return r}entries(){const e=this,t=this.g;let n=this.d;const r={[Symbol.iterator](){return r},next(){if(e.g!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const s={value:[n.key,n.value],done:!1};return n=n.next,s}else return{value:void 0,done:!0}}};return r}[(nn=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}h(e){if(e>=this.size)return;if(e===0){this.clear();return}let t=this.d,n=this.size;for(;t&&n>e;)this.c.delete(t.key),t=t.next,n--;this.d=t,this.f=n,t&&(t.previous=void 0),this.g++}j(e){if(e>=this.size)return;if(e===0){this.clear();return}let t=this.e,n=this.size;for(;t&&n>e;)this.c.delete(t.key),t=t.previous,n--;this.e=t,this.f=n,t&&(t.next=void 0),this.g++}k(e){if(!this.d&&!this.e)this.e=e;else if(this.d)e.next=this.d,this.d.previous=e;else throw new Error("Invalid list");this.d=e,this.g++}l(e){if(!this.d&&!this.e)this.d=e;else if(this.e)e.previous=this.e,this.e.next=e;else throw new Error("Invalid list");this.e=e,this.g++}m(e){if(e===this.d&&e===this.e)this.d=void 0,this.e=void 0;else if(e===this.d){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this.d=e.next}else if(e===this.e){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this.e=e.previous}else{const t=e.next,n=e.previous;if(!t||!n)throw new Error("Invalid list");t.previous=n,n.next=t}e.next=void 0,e.previous=void 0,this.g++}n(e,t){if(!this.d||!this.e)throw new Error("Invalid list");if(!(t!==1&&t!==2)){if(t===1){if(e===this.d)return;const n=e.next,r=e.previous;e===this.e?(r.next=void 0,this.e=r):(n.previous=r,r.next=n),e.previous=void 0,e.next=this.d,this.d.previous=e,this.d=e,this.g++}else if(t===2){if(e===this.e)return;const n=e.next,r=e.previous;e===this.d?(n.previous=void 0,this.d=n):(n.previous=r,r.next=n),e.next=void 0,e.previous=this.e,this.e.next=e,this.e=e,this.g++}}}toJSON(){const e=[];return this.forEach((t,n)=>{e.push([n,t])}),e}fromJSON(e){this.clear();for(const[t,n]of e)this.set(t,n)}},ea=class extends Ki{constructor(e,t=1){super(),this.o=e,this.p=Math.min(Math.max(0,t),1)}get limit(){return this.o}set limit(e){this.o=e,this.q()}get ratio(){return this.p}set ratio(e){this.p=Math.min(Math.max(0,e),1),this.q()}get(e,t=2){return super.get(e,t)}peek(e){return super.get(e,0)}set(e,t){return super.set(e,t,2),this}q(){this.size>this.o&&this.r(Math.round(this.o*this.p))}},ta=class extends ea{constructor(e,t=1){super(e,t)}r(e){this.h(e)}set(e,t){return super.set(e,t),this.q(),this}},an=class{constructor(){this.c=new Map}add(e,t){let n=this.c.get(e);n||(n=new Set,this.c.set(e,n)),n.add(t)}delete(e,t){const n=this.c.get(e);n&&(n.delete(t),n.size===0&&this.c.delete(e))}forEach(e,t){const n=this.c.get(e);n&&n.forEach(t)}get(e){const t=this.c.get(e);return t||new Set}};function na(e,t="Unreachable"){throw new Error(t)}function ra(e,t="unexpected state"){if(!e)throw typeof t=="string"?new re(`Assertion Failed: ${t}`):t}function lt(e){if(!e()){debugger;e(),st(new re("Assertion Failed"))}}function a1(e,t){let n=0;for(;n<e.length-1;){const r=e[n],s=e[n+1];if(!t(r,s))return!1;n++}return!0}function sa(e){return typeof e=="string"}function ia(e){return!!e&&typeof e[Symbol.iterator]=="function"}var Rt;(function(e){function t(v){return v&&typeof v=="object"&&typeof v[Symbol.iterator]=="function"}e.is=t;const n=Object.freeze([]);function r(){return n}e.empty=r;function*s(v){yield v}e.single=s;function i(v){return t(v)?v:s(v)}e.wrap=i;function a(v){return v||n}e.from=a;function*u(v){for(let N=v.length-1;N>=0;N--)yield v[N]}e.reverse=u;function o(v){return!v||v[Symbol.iterator]().next().done===!0}e.isEmpty=o;function c(v){return v[Symbol.iterator]().next().value}e.first=c;function f(v,N){let x=0;for(const _ of v)if(N(_,x++))return!0;return!1}e.some=f;function h(v,N){for(const x of v)if(N(x))return x}e.find=h;function*g(v,N){for(const x of v)N(x)&&(yield x)}e.filter=g;function*m(v,N){let x=0;for(const _ of v)yield N(_,x++)}e.map=m;function*d(v,N){let x=0;for(const _ of v)yield*N(_,x++)}e.flatMap=d;function*A(...v){for(const N of v)ia(N)?yield*N:yield N}e.concat=A;function p(v,N,x){let _=x;for(const C of v)_=N(_,C);return _}e.reduce=p;function w(v){let N=0;for(const x of v)N++;return N}e.length=w;function*E(v,N,x=v.length){for(N<-v.length&&(N=0),N<0&&(N+=v.length),x<0?x+=v.length:x>v.length&&(x=v.length);N<x;N++)yield v[N]}e.slice=E;function L(v,N=Number.POSITIVE_INFINITY){const x=[];if(N===0)return[x,v];const _=v[Symbol.iterator]();for(let C=0;C<N;C++){const K=_.next();if(K.done)return[x,e.empty()];x.push(K.value)}return[x,{[Symbol.iterator](){return _}}]}e.consume=L;async function R(v){const N=[];for await(const x of v)N.push(x);return Promise.resolve(N)}e.asyncToArray=R})(Rt||(Rt={}));var aa=!1,Ie=null,pu=class Ai{constructor(){this.b=new Map}static{this.a=0}c(t){let n=this.b.get(t);return n||(n={parent:null,source:null,isSingleton:!1,value:t,idx:Ai.a++},this.b.set(t,n)),n}trackDisposable(t){const n=this.c(t);n.source||(n.source=new Error().stack)}setParent(t,n){const r=this.c(t);r.parent=n}markAsDisposed(t){this.b.delete(t)}markAsSingleton(t){this.c(t).isSingleton=!0}f(t,n){const r=n.get(t);if(r)return r;const s=t.parent?this.f(this.c(t.parent),n):t;return n.set(t,s),s}getTrackedDisposables(){const t=new Map;return[...this.b.entries()].filter(([,r])=>r.source!==null&&!this.f(r,t).isSingleton).flatMap(([r])=>r)}computeLeakingDisposables(t=10,n){let r;if(n)r=n;else{const o=new Map,c=[...this.b.values()].filter(h=>h.source!==null&&!this.f(h,o).isSingleton);if(c.length===0)return;const f=new Set(c.map(h=>h.value));if(r=c.filter(h=>!(h.parent&&f.has(h.parent))),r.length===0)throw new Error("There are cyclic diposable chains!")}if(!r)return;function s(o){function c(h,g){for(;h.length>0&&g.some(m=>typeof m=="string"?m===h[0]:h[0].match(m));)h.shift()}const f=o.source.split(`
`).map(h=>h.trim().replace("at ","")).filter(h=>h!=="");return c(f,["Error",/^trackDisposable \(.*\)$/,/^DisposableTracker.trackDisposable \(.*\)$/]),f.reverse()}const i=new an;for(const o of r){const c=s(o);for(let f=0;f<=c.length;f++)i.add(c.slice(0,f).join(`
`),o)}r.sort(it(o=>o.idx,at));let a="",u=0;for(const o of r.slice(0,t)){u++;const c=s(o),f=[];for(let h=0;h<c.length;h++){let g=c[h];g=`(shared with ${i.get(c.slice(0,h+1).join(`
`)).size}/${r.length} leaks) at ${g}`;const d=i.get(c.slice(0,h).join(`
`)),A=Oi([...d].map(p=>s(p)[h]),p=>p);delete A[c[h]];for(const[p,w]of Object.entries(A))f.unshift(` - stacktraces of ${w.length} other leaks continue with ${p}`);f.unshift(g)}a+=`
==================== Leaking disposable ${u}/${r.length}: ${o.value.constructor.name} ====================
${f.join(`
`)}
============================================================
`}return r.length>t&&(a+=`
... and ${r.length-t} more leaking disposables
`),{leaks:r,details:a}}};function la(e){Ie=e}if(aa){const e="__is_disposable_tracked__";la(new class{trackDisposable(t){const n=new Error("Potentially leaked disposable").stack;setTimeout(()=>{t[e]||console.log(n)},3e3)}setParent(t,n){if(t&&t!==Ue.None)try{t[e]=!0}catch{}}markAsDisposed(t){if(t&&t!==Ue.None)try{t[e]=!0}catch{}}markAsSingleton(t){}})}function l1(e){return Ie?.trackDisposable(e),e}function u1(e){Ie?.markAsDisposed(e)}function o1(e,t){Ie?.setParent(e,t)}function ua(e,t){if(Ie)for(const n of e)Ie.setParent(n,t)}function ln(e){if(Rt.is(e)){const t=[];for(const n of e)if(n)try{n.dispose()}catch(r){t.push(r)}if(t.length===1)throw t[0];if(t.length>1)throw new AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}else if(e)return e.dispose(),e}function oa(...e){const t=Et(()=>ln(e));return ua(e,t),t}function Et(e){const t=l1({dispose:Hi(()=>{u1(t),e()})});return t}var c1=class Ri{static{this.DISABLE_DISPOSED_WARNING=!1}constructor(){this.f=new Set,this.g=!1,l1(this)}dispose(){this.g||(u1(this),this.g=!0,this.clear())}get isDisposed(){return this.g}clear(){if(this.f.size!==0)try{ln(this.f)}finally{this.f.clear()}}add(t){if(!t)return t;if(t===this)throw new Error("Cannot register a disposable on itself!");return o1(t,this),this.g?Ri.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this.f.add(t),t}delete(t){if(t){if(t===this)throw new Error("Cannot dispose a disposable on itself!");this.f.delete(t),t.dispose()}}deleteAndLeak(t){t&&this.f.has(t)&&(this.f.delete(t),o1(t,null))}},Ue=class{static{this.None=Object.freeze({dispose(){}})}constructor(){this.q=new c1,l1(this),o1(this.q,this)}dispose(){u1(this),this.q.dispose()}B(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this.q.add(e)}},X=class Jt{static{this.Undefined=new Jt(void 0)}constructor(t){this.element=t,this.next=Jt.Undefined,this.prev=Jt.Undefined}},ca=class{constructor(){this.a=X.Undefined,this.b=X.Undefined,this.c=0}get size(){return this.c}isEmpty(){return this.a===X.Undefined}clear(){let e=this.a;for(;e!==X.Undefined;){const t=e.next;e.prev=X.Undefined,e.next=X.Undefined,e=t}this.a=X.Undefined,this.b=X.Undefined,this.c=0}unshift(e){return this.d(e,!1)}push(e){return this.d(e,!0)}d(e,t){const n=new X(e);if(this.a===X.Undefined)this.a=n,this.b=n;else if(t){const s=this.b;this.b=n,n.prev=s,s.next=n}else{const s=this.a;this.a=n,n.next=s,s.prev=n}this.c+=1;let r=!1;return()=>{r||(r=!0,this.e(n))}}shift(){if(this.a!==X.Undefined){const e=this.a.element;return this.e(this.a),e}}pop(){if(this.b!==X.Undefined){const e=this.b.element;return this.e(this.b),e}}e(e){if(e.prev!==X.Undefined&&e.next!==X.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===X.Undefined&&e.next===X.Undefined?(this.a=X.Undefined,this.b=X.Undefined):e.next===X.Undefined?(this.b=this.b.prev,this.b.next=X.Undefined):e.prev===X.Undefined&&(this.a=this.a.next,this.a.prev=X.Undefined);this.c-=1}*[Symbol.iterator](){let e=this.a;for(;e!==X.Undefined;)yield e.element,e=e.next}},ha=globalThis.performance&&typeof globalThis.performance.now=="function",un=class Ei{static create(t){return new Ei(t)}constructor(t){this.c=ha&&t===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),this.a=this.c(),this.b=-1}stop(){this.b=this.c()}reset(){this.a=this.c(),this.b=-1}elapsed(){return this.b!==-1?this.b-this.a:this.c()-this.a}},on=!1,fa=!1,xt;(function(e){e.None=()=>Ue.None;function t(y){if(fa){const{onDidAddListener:k}=y,F=h1.create();let M=0;y.onDidAddListener=()=>{++M===2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),F.print()),k?.()}}}function n(y,k){return m(y,()=>{},0,void 0,!0,void 0,k)}e.defer=n;function r(y){return(k,F=null,M)=>{let S=!1,B;return B=y(W=>{if(!S)return B?B.dispose():S=!0,k.call(F,W)},null,M),S&&B.dispose(),B}}e.once=r;function s(y,k){return e.once(e.filter(y,k))}e.onceIf=s;function i(y,k,F){return h((M,S=null,B)=>y(W=>M.call(S,k(W)),null,B),F)}e.map=i;function a(y,k,F){return h((M,S=null,B)=>y(W=>{k(W),M.call(S,W)},null,B),F)}e.forEach=a;function u(y,k,F){return h((M,S=null,B)=>y(W=>k(W)&&M.call(S,W),null,B),F)}e.filter=u;function o(y){return y}e.signal=o;function c(...y){return(k,F=null,M)=>{const S=oa(...y.map(B=>B(W=>k.call(F,W))));return g(S,M)}}e.any=c;function f(y,k,F,M){let S=F;return i(y,B=>(S=k(S,B),S),M)}e.reduce=f;function h(y,k){let F;const M={onWillAddFirstListener(){F=y(S.fire,S)},onDidRemoveLastListener(){F?.dispose()}};k||t(M);const S=new he(M);return k?.add(S),S.event}function g(y,k){return k instanceof Array?k.push(y):k&&k.add(y),y}function m(y,k,F=100,M=!1,S=!1,B,W){let ee,se,Ve,Lt=0,rt;const Z1={leakWarningThreshold:B,onWillAddFirstListener(){ee=y($i=>{Lt++,se=k(se,$i),M&&!Ve&&(At.fire(se),se=void 0),rt=()=>{const Vi=se;se=void 0,Ve=void 0,(!M||Lt>1)&&At.fire(Vi),Lt=0},typeof F=="number"?(clearTimeout(Ve),Ve=setTimeout(rt,F)):Ve===void 0&&(Ve=0,queueMicrotask(rt))})},onWillRemoveListener(){S&&Lt>0&&rt?.()},onDidRemoveLastListener(){rt=void 0,ee.dispose()}};W||t(Z1);const At=new he(Z1);return W?.add(At),At.event}e.debounce=m;function d(y,k=0,F){return e.debounce(y,(M,S)=>M?(M.push(S),M):[S],k,void 0,!0,void 0,F)}e.accumulate=d;function A(y,k=(M,S)=>M===S,F){let M=!0,S;return u(y,B=>{const W=M||!k(B,S);return M=!1,S=B,W},F)}e.latch=A;function p(y,k,F){return[e.filter(y,k,F),e.filter(y,M=>!k(M),F)]}e.split=p;function w(y,k=!1,F=[],M){let S=F.slice(),B=y(se=>{S?S.push(se):ee.fire(se)});M&&M.add(B);const W=()=>{S?.forEach(se=>ee.fire(se)),S=null},ee=new he({onWillAddFirstListener(){B||(B=y(se=>ee.fire(se)),M&&M.add(B))},onDidAddFirstListener(){S&&(k?setTimeout(W):W())},onDidRemoveLastListener(){B&&B.dispose(),B=null}});return M&&M.add(ee),ee.event}e.buffer=w;function E(y,k){return(M,S,B)=>{const W=k(new R);return y(function(ee){const se=W.evaluate(ee);se!==L&&M.call(S,se)},void 0,B)}}e.chain=E;const L=Symbol("HaltChainable");class R{constructor(){this.f=[]}map(k){return this.f.push(k),this}forEach(k){return this.f.push(F=>(k(F),F)),this}filter(k){return this.f.push(F=>k(F)?F:L),this}reduce(k,F){let M=F;return this.f.push(S=>(M=k(M,S),M)),this}latch(k=(F,M)=>F===M){let F=!0,M;return this.f.push(S=>{const B=F||!k(S,M);return F=!1,M=S,B?S:L}),this}evaluate(k){for(const F of this.f)if(k=F(k),k===L)break;return k}}function v(y,k,F=M=>M){const M=(...ee)=>W.fire(F(...ee)),S=()=>y.on(k,M),B=()=>y.removeListener(k,M),W=new he({onWillAddFirstListener:S,onDidRemoveLastListener:B});return W.event}e.fromNodeEventEmitter=v;function N(y,k,F=M=>M){const M=(...ee)=>W.fire(F(...ee)),S=()=>y.addEventListener(k,M),B=()=>y.removeEventListener(k,M),W=new he({onWillAddFirstListener:S,onDidRemoveLastListener:B});return W.event}e.fromDOMEventEmitter=N;function x(y,k){return new Promise(F=>r(y)(F,null,k))}e.toPromise=x;function _(y){const k=new he;return y.then(F=>{k.fire(F)},()=>{k.fire(void 0)}).finally(()=>{k.dispose()}),k.event}e.fromPromise=_;function C(y,k){return y(F=>k.fire(F))}e.forward=C;function K(y,k,F){return k(F),y(M=>k(M))}e.runAndSubscribe=K;class j{constructor(k,F){this._observable=k,this.f=0,this.g=!1;const M={onWillAddFirstListener:()=>{k.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{k.removeObserver(this)}};F||t(M),this.emitter=new he(M),F&&F.add(this.emitter)}beginUpdate(k){this.f++}handlePossibleChange(k){}handleChange(k,F){this.g=!0}endUpdate(k){this.f--,this.f===0&&(this._observable.reportChanges(),this.g&&(this.g=!1,this.emitter.fire(this._observable.get())))}}function $(y,k){return new j(y,k).emitter.event}e.fromObservable=$;function be(y){return(k,F,M)=>{let S=0,B=!1;const W={beginUpdate(){S++},endUpdate(){S--,S===0&&(y.reportChanges(),B&&(B=!1,k.call(F)))},handlePossibleChange(){},handleChange(){B=!0}};y.addObserver(W),y.reportChanges();const ee={dispose(){y.removeObserver(W)}};return M instanceof c1?M.add(ee):Array.isArray(M)&&M.push(ee),ee}}e.fromObservableLight=be})(xt||(xt={}));var ga=class G1{static{this.all=new Set}static{this.f=0}constructor(t){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${t}_${G1.f++}`,G1.all.add(this)}start(t){this.g=new un,this.listenerCount=t}stop(){if(this.g){const t=this.g.elapsed();this.durations.push(t),this.elapsedOverall+=t,this.invocationCount+=1,this.g=void 0}}},cn=-1,ma=class xi{static{this.f=1}constructor(t,n,r=(xi.f++).toString(16).padStart(3,"0")){this.j=t,this.threshold=n,this.name=r,this.h=0}dispose(){this.g?.clear()}check(t,n){const r=this.threshold;if(r<=0||n<r)return;this.g||(this.g=new Map);const s=this.g.get(t.value)||0;if(this.g.set(t.value,s+1),this.h-=1,this.h<=0){this.h=r*.5;const[i,a]=this.getMostFrequentStack(),u=`[${this.name}] potential listener LEAK detected, having ${n} listeners already. MOST frequent listener (${a}):`;console.warn(u),console.warn(i);const o=new da(u,i);this.j(o)}return()=>{const i=this.g.get(t.value)||0;this.g.set(t.value,i-1)}}getMostFrequentStack(){if(!this.g)return;let t,n=0;for(const[r,s]of this.g)(!t||n<s)&&(t=[r,s],n=s);return t}},h1=class ki{static create(){const t=new Error;return new ki(t.stack??"")}constructor(t){this.value=t}print(){console.warn(this.value.split(`
`).slice(2).join(`
`))}},da=class extends Error{constructor(e,t){super(e),this.name="ListenerLeakError",this.stack=t}},ba=class extends Error{constructor(e,t){super(e),this.name="ListenerRefusalError",this.stack=t}},wa=0,kt=class{constructor(e){this.value=e,this.id=wa++}},va=2,pa=(e,t)=>{if(e instanceof kt)t(e);else for(let n=0;n<e.length;n++){const r=e[n];r&&t(r)}},he=class{constructor(e){this.z=0,this.f=e,this.g=cn>0||this.f?.leakWarningThreshold?new ma(e?.onListenerError??st,this.f?.leakWarningThreshold??cn):void 0,this.j=this.f?._profName?new ga(this.f._profName):void 0,this.w=this.f?.deliveryQueue}dispose(){if(!this.m){if(this.m=!0,this.w?.current===this&&this.w.reset(),this.u){if(on){const e=this.u;queueMicrotask(()=>{pa(e,t=>t.stack?.print())})}this.u=void 0,this.z=0}this.f?.onDidRemoveLastListener?.(),this.g?.dispose()}}get event(){return this.q??=(e,t,n)=>{if(this.g&&this.z>this.g.threshold**2){const u=`[${this.g.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this.z} vs ${this.g.threshold})`;console.warn(u);const o=this.g.getMostFrequentStack()??["UNKNOWN stack",-1],c=new ba(`${u}. HINT: Stack shows most frequent listener (${o[1]}-times)`,o[0]);return(this.f?.onListenerError||st)(c),Ue.None}if(this.m)return Ue.None;t&&(e=e.bind(t));const r=new kt(e);let s,i;this.g&&this.z>=Math.ceil(this.g.threshold*.2)&&(r.stack=h1.create(),s=this.g.check(r.stack,this.z+1)),on&&(r.stack=i??h1.create()),this.u?this.u instanceof kt?(this.w??=new Na,this.u=[this.u,r]):this.u.push(r):(this.f?.onWillAddFirstListener?.(this),this.u=r,this.f?.onDidAddFirstListener?.(this)),this.f?.onDidAddListener?.(this),this.z++;const a=Et(()=>{s?.(),this.A(r)});return n instanceof c1?n.add(a):Array.isArray(n)&&n.push(a),a},this.q}A(e){if(this.f?.onWillRemoveListener?.(this),!this.u)return;if(this.z===1){this.u=void 0,this.f?.onDidRemoveLastListener?.(this),this.z=0;return}const t=this.u,n=t.indexOf(e);if(n===-1)throw console.log("disposed?",this.m),console.log("size?",this.z),console.log("arr?",JSON.stringify(this.u)),new Error("Attempted to dispose unknown listener");this.z--,t[n]=void 0;const r=this.w.current===this;if(this.z*va<=t.length){let s=0;for(let i=0;i<t.length;i++)t[i]?t[s++]=t[i]:r&&s<this.w.end&&(this.w.end--,s<this.w.i&&this.w.i--);t.length=s}}B(e,t){if(!e)return;const n=this.f?.onListenerError||st;if(!n){e.value(t);return}try{e.value(t)}catch(r){n(r)}}C(e){const t=e.current.u;for(;e.i<e.end;)this.B(t[e.i++],e.value);e.reset()}fire(e){if(this.w?.current&&(this.C(this.w),this.j?.stop()),this.j?.start(this.z),this.u)if(this.u instanceof kt)this.B(this.u,e);else{const t=this.w;t.enqueue(this,e,this.u.length),this.C(t)}this.j?.stop()}hasListeners(){return this.z>0}},Na=class{constructor(){this.i=-1,this.end=0}enqueue(e,t,n){this.i=0,this.end=n,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}};function La(){return globalThis._VSCODE_NLS_MESSAGES}function hn(){return globalThis._VSCODE_NLS_LANGUAGE}var Aa=hn()==="pseudo"||typeof document<"u"&&document.location&&typeof document.location.hash=="string"&&document.location.hash.indexOf("pseudo=true")>=0;function fn(e,t){let n;return t.length===0?n=e:n=e.replace(/\{(\d+)\}/g,(r,s)=>{const i=s[0],a=t[i];let u=r;return typeof a=="string"?u=a:(typeof a=="number"||typeof a=="boolean"||a===void 0||a===null)&&(u=String(a)),u}),Aa&&(n="\uFF3B"+n.replace(/[aouei]/g,"$&$&")+"\uFF3D"),n}function D(e,t,...n){return fn(typeof e=="number"?Ra(e,t):t,n)}function Ra(e,t){const n=La()?.[e];if(typeof n!="string"){if(typeof t=="string")return t;throw new Error(`!!! NLS MISSING: ${e} !!!`)}return n}var je="en",Mt=!1,Ft=!1,ut=!1,Ea=!1,gn=!1,f1=!1,xa=!1,ka=!1,Ma=!1,Fa=!1,yt=void 0,_t=je,mn=je,ya=void 0,pe=void 0,Ne=globalThis,ue=void 0;typeof Ne.vscode<"u"&&typeof Ne.vscode.process<"u"?ue=Ne.vscode.process:typeof process<"u"&&typeof process?.versions?.node=="string"&&(ue=process);var dn=typeof ue?.versions?.electron=="string",_a=dn&&ue?.type==="renderer";if(typeof ue=="object"){Mt=ue.platform==="win32",Ft=ue.platform==="darwin",ut=ue.platform==="linux",Ea=ut&&!!ue.env.SNAP&&!!ue.env.SNAP_REVISION,xa=dn,Ma=!!ue.env.CI||!!ue.env.BUILD_ARTIFACTSTAGINGDIRECTORY,yt=je,_t=je;const e=ue.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e);yt=t.userLocale,mn=t.osLocale,_t=t.resolvedLanguage||je,ya=t.languagePack?.translationsConfigFile}catch{}gn=!0}else typeof navigator=="object"&&!_a?(pe=navigator.userAgent,Mt=pe.indexOf("Windows")>=0,Ft=pe.indexOf("Macintosh")>=0,ka=(pe.indexOf("Macintosh")>=0||pe.indexOf("iPad")>=0||pe.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,ut=pe.indexOf("Linux")>=0,Fa=pe?.indexOf("Mobi")>=0,f1=!0,_t=hn()||je,yt=navigator.language.toLowerCase(),mn=yt):console.error("Unable to resolve platform.");var bn;(function(e){e[e.Web=0]="Web",e[e.Mac=1]="Mac",e[e.Linux=2]="Linux",e[e.Windows=3]="Windows"})(bn||(bn={}));var g1=0;Ft?g1=1:Mt?g1=3:ut&&(g1=2);var We=Mt,Pa=Ft,Da=ut,Ta=gn,wn=f1,Sa=f1&&typeof Ne.importScripts=="function",$a=Sa?Ne.origin:void 0,we=pe,xe=_t,vn;(function(e){function t(){return xe}e.value=t;function n(){return xe.length===2?xe==="en":xe.length>=3?xe[0]==="e"&&xe[1]==="n"&&xe[2]==="-":!1}e.isDefaultVariant=n;function r(){return xe==="en"}e.isDefault=r})(vn||(vn={}));var Va=typeof Ne.postMessage=="function"&&!Ne.importScripts,Ba=(()=>{if(Va){const e=[];Ne.addEventListener("message",n=>{if(n.data&&n.data.vscodeScheduleAsyncWork)for(let r=0,s=e.length;r<s;r++){const i=e[r];if(i.id===n.data.vscodeScheduleAsyncWork){e.splice(r,1),i.callback();return}}});let t=0;return n=>{const r=++t;e.push({id:r,callback:n}),Ne.postMessage({vscodeScheduleAsyncWork:r},"*")}}return e=>setTimeout(e)})(),pn;(function(e){e[e.Windows=1]="Windows",e[e.Macintosh=2]="Macintosh",e[e.Linux=3]="Linux"})(pn||(pn={}));var qa=!!(we&&we.indexOf("Chrome")>=0),Nu=!!(we&&we.indexOf("Firefox")>=0),Lu=!!(!qa&&we&&we.indexOf("Safari")>=0),Au=!!(we&&we.indexOf("Edg/")>=0),Ru=!!(we&&we.indexOf("Android")>=0),Nn=Object.freeze(function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}}),Pt;(function(e){function t(n){return n===e.None||n===e.Cancelled||n instanceof Dt?!0:!n||typeof n!="object"?!1:typeof n.isCancellationRequested=="boolean"&&typeof n.onCancellationRequested=="function"}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:xt.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Nn})})(Pt||(Pt={}));var Dt=class{constructor(){this.a=!1,this.b=null}cancel(){this.a||(this.a=!0,this.b&&(this.b.fire(void 0),this.dispose()))}get isCancellationRequested(){return this.a}get onCancellationRequested(){return this.a?Nn:(this.b||(this.b=new he),this.b.event)}dispose(){this.b&&(this.b.dispose(),this.b=null)}},Ia=class{constructor(e){this.f=void 0,this.g=void 0,this.g=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this.f||(this.f=new Dt),this.f}cancel(){this.f?this.f instanceof Dt&&this.f.cancel():this.f=Pt.Cancelled}dispose(e=!1){e&&this.cancel(),this.g?.dispose(),this.f?this.f instanceof Dt&&this.f.dispose():this.f=Pt.None}};function Ua(e){return e}var ja=class{constructor(e,t){this.a=void 0,this.b=void 0,typeof e=="function"?(this.c=e,this.d=Ua):(this.c=t,this.d=e.getCacheKey)}get(e){const t=this.d(e);return this.b!==t&&(this.b=t,this.a=this.c(e)),this.a}},m1=class{constructor(e){this.d=e,this.a=!1}get hasValue(){return this.a}get value(){if(!this.a)try{this.b=this.d()}catch(e){this.c=e}finally{this.a=!0}if(this.c)throw this.c;return this.b}get rawValue(){return this.b}};function Wa(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function Ln(e){return e.split(/\r\n|\r|\n/)}function Oa(e){for(let t=0,n=e.length;t<n;t++){const r=e.charCodeAt(t);if(r!==32&&r!==9)return t}return-1}function Ha(e,t=e.length-1){for(let n=t;n>=0;n--){const r=e.charCodeAt(n);if(r!==32&&r!==9)return n}return-1}function za(e,t){return e<t?-1:e>t?1:0}function Ga(e,t,n=0,r=e.length,s=0,i=t.length){for(;n<r&&s<i;n++,s++){const o=e.charCodeAt(n),c=t.charCodeAt(s);if(o<c)return-1;if(o>c)return 1}const a=r-n,u=i-s;return a<u?-1:a>u?1:0}function An(e,t,n=0,r=e.length,s=0,i=t.length){for(;n<r&&s<i;n++,s++){let o=e.charCodeAt(n),c=t.charCodeAt(s);if(o===c)continue;if(o>=128||c>=128)return Ga(e.toLowerCase(),t.toLowerCase(),n,r,s,i);Rn(o)&&(o-=32),Rn(c)&&(c-=32);const f=o-c;if(f!==0)return f}const a=r-n,u=i-s;return a<u?-1:a>u?1:0}function Rn(e){return e>=97&&e<=122}function En(e){return e>=65&&e<=90}function Ca(e,t){return e.length===t.length&&An(e,t)===0}function Xa(e,t){const n=t.length;return t.length>e.length?!1:An(e,t,0,n)===0}function xn(e,t){const n=Math.min(e.length,t.length);let r;for(r=0;r<n;r++)if(e.charCodeAt(r)!==t.charCodeAt(r))return r;return n}function Ja(e,t){const n=Math.min(e.length,t.length);let r;const s=e.length-1,i=t.length-1;for(r=0;r<n;r++)if(e.charCodeAt(s-r)!==t.charCodeAt(i-r))return r;return n}function Tt(e){return 55296<=e&&e<=56319}function d1(e){return 56320<=e&&e<=57343}function kn(e,t){return(e-55296<<10)+(t-56320)+65536}function Za(e,t,n){const r=e.charCodeAt(n);if(Tt(r)&&n+1<t){const s=e.charCodeAt(n+1);if(d1(s))return kn(r,s)}return r}var Ya=/^[\t\n\r\x20-\x7E]*$/;function Qa(e){return Ya.test(e)}var Ka=/(?:\x1b\[|\x9b)[=?>!]?[\d;:]*["$#'* ]?[a-zA-Z@^`{}|~]/,e0=/(?:\x1b\]|\x9d).*?(?:\x1b\\|\x07|\x9c)/,t0=/\x1b(?:[ #%\(\)\*\+\-\.\/]?[a-zA-Z0-9\|}~@])/,Eu=new RegExp("(?:"+[Ka.source,e0.source,t0.source].join("|")+")","g"),xu="\uFEFF",Mn;(function(e){e[e.Other=0]="Other",e[e.Prepend=1]="Prepend",e[e.CR=2]="CR",e[e.LF=3]="LF",e[e.Control=4]="Control",e[e.Extend=5]="Extend",e[e.Regional_Indicator=6]="Regional_Indicator",e[e.SpacingMark=7]="SpacingMark",e[e.L=8]="L",e[e.V=9]="V",e[e.T=10]="T",e[e.LV=11]="LV",e[e.LVT=12]="LVT",e[e.ZWJ=13]="ZWJ",e[e.Extended_Pictographic=14]="Extended_Pictographic"})(Mn||(Mn={}));var ku=class dt{static{this.c=null}static getInstance(){return dt.c||(dt.c=new dt),dt.c}constructor(){this.d=n0()}getGraphemeBreakType(t){if(t<32)return t===10?3:t===13?2:4;if(t<127)return 0;const n=this.d,r=n.length/3;let s=1;for(;s<=r;)if(t<n[3*s])s=2*s;else if(t>n[3*s+1])s=2*s+1;else return n[3*s+2];return 0}};function n0(){return JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,513