/*!--------------------------------------------------------
 * Copyright (C) Microsoft Corporation. All rights reserved.
 *--------------------------------------------------------*/
/******************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
/* global Reflect, Promise, SuppressedError, Symbol */

var extendStatics = function(d, b) {
    extendStatics = Object.setPrototypeOf ||
        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
        function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
    return extendStatics(d, b);
};

export function __extends(d, b) {
    if (typeof b !== "function" && b !== null)
        throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
    extendStatics(d, b);
    function __() { this.constructor = d; }
    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
}

export var __assign = function() {
    __assign = Object.assign || function __assign(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
        }
        return t;
    }
    return __assign.apply(this, arguments);
}

export function __rest(s, e) {
    var t = {};
    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
        t[p] = s[p];
    if (s != null && typeof Object.getOwnPropertySymbols === "function")
        for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
            if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
                t[p[i]] = s[p[i]];
        }
    return t;
}

export function __decorate(decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
}

export function __param(paramIndex, decorator) {
    return function (target, key) { decorator(target, key, paramIndex); }
}

export function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
    function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
    var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
    var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
    var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
    var _, done = false;
    for (var i = decorators.length - 1; i >= 0; i--) {
        var context = {};
        for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
        for (var p in contextIn.access) context.access[p] = contextIn.access[p];
        context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
        var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
        if (kind === "accessor") {
            if (result === void 0) continue;
            if (result === null || typeof result !== "object") throw new TypeError("Object expected");
            if (_ = accept(result.get)) descriptor.get = _;
            if (_ = accept(result.set)) descriptor.set = _;
            if (_ = accept(result.init)) initializers.unshift(_);
        }
        else if (_ = accept(result)) {
            if (kind === "field") initializers.unshift(_);
            else descriptor[key] = _;
        }
    }
    if (target) Object.defineProperty(target, contextIn.name, descriptor);
    done = true;
};

export function __runInitializers(thisArg, initializers, value) {
    var useValue = arguments.length > 2;
    for (var i = 0; i < initializers.length; i++) {
        value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
    }
    return useValue ? value : void 0;
};

export function __propKey(x) {
    return typeof x === "symbol" ? x : "".concat(x);
};

export function __setFunctionName(f, name, prefix) {
    if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
    return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
};

export function __metadata(metadataKey, metadataValue) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
}

export function __awaiter(thisArg, _arguments, P, generator) {
    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
}

export function __generator(thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (g && (g = 0, op[0] && (_ = 0)), _) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
}

export var __createBinding = Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
        desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
});

export function __exportStar(m, o) {
    for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
}

export function __values(o) {
    var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
    if (m) return m.call(o);
    if (o && typeof o.length === "number") return {
        next: function () {
            if (o && i >= o.length) o = void 0;
            return { value: o && o[i++], done: !o };
        }
    };
    throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
}

export function __read(o, n) {
    var m = typeof Symbol === "function" && o[Symbol.iterator];
    if (!m) return o;
    var i = m.call(o), r, ar = [], e;
    try {
        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
    }
    catch (error) { e = { error: error }; }
    finally {
        try {
            if (r && !r.done && (m = i["return"])) m.call(i);
        }
        finally { if (e) throw e.error; }
    }
    return ar;
}

/** @deprecated */
export function __spread() {
    for (var ar = [], i = 0; i < arguments.length; i++)
        ar = ar.concat(__read(arguments[i]));
    return ar;
}

/** @deprecated */
export function __spreadArrays() {
    for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
    for (var r = Array(s), k = 0, i = 0; i < il; i++)
        for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
            r[k] = a[j];
    return r;
}

export function __spreadArray(to, from, pack) {
    if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
        if (ar || !(i in from)) {
            if (!ar) ar = Array.prototype.slice.call(from, 0, i);
            ar[i] = from[i];
        }
    }
    return to.concat(ar || Array.prototype.slice.call(from));
}

export function __await(v) {
    return this instanceof __await ? (this.v = v, this) : new __await(v);
}

export function __asyncGenerator(thisArg, _arguments, generator) {
    if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
    var g = generator.apply(thisArg, _arguments || []), i, q = [];
    return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
    function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
    function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
    function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
    function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
    function fulfill(value) { resume("next", value); }
    function reject(value) { resume("throw", value); }
    function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
}

export function __asyncDelegator(o) {
    var i, p;
    return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
    function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
}

export function __asyncValues(o) {
    if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
    var m = o[Symbol.asyncIterator], i;
    return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
    function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
    function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
}

export function __makeTemplateObject(cooked, raw) {
    if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
    return cooked;
};

var __setModuleDefault = Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
};

export function __importStar(mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
}

export function __importDefault(mod) {
    return (mod && mod.__esModule) ? mod : { default: mod };
}

export function __classPrivateFieldGet(receiver, state, kind, f) {
    if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
    if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
    return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
}

export function __classPrivateFieldSet(receiver, state, value, kind, f) {
    if (kind === "m") throw new TypeError("Private method is not writable");
    if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
    if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
    return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
}

export function __classPrivateFieldIn(state, receiver) {
    if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
    return typeof state === "function" ? receiver === state : state.has(receiver);
}

export function __addDisposableResource(env, value, async) {
    if (value !== null && value !== void 0) {
        if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
        var dispose, inner;
        if (async) {
            if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
            dispose = value[Symbol.asyncDispose];
        }
        if (dispose === void 0) {
            if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
            dispose = value[Symbol.dispose];
            if (async) inner = dispose;
        }
        if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
        if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };
        env.stack.push({ value: value, dispose: dispose, async: async });
    }
    else if (async) {
        env.stack.push({ async: true });
    }
    return value;

}

var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
    var e = new Error(message);
    return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
};

export function __disposeResources(env) {
    function fail(e) {
        env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
        env.hasError = true;
    }
    function next() {
        while (env.stack.length) {
            var rec = env.stack.pop();
            try {
                var result = rec.dispose && rec.dispose.call(rec.value);
                if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
            }
            catch (e) {
                fail(e);
            }
        }
        if (env.hasError) throw env.error;
    }
    return next();
}

export default {
    __extends: __extends,
    __assign: __assign,
    __rest: __rest,
    __decorate: __decorate,
    __param: __param,
    __metadata: __metadata,
    __awaiter: __awaiter,
    __generator: __generator,
    __createBinding: __createBinding,
    __exportStar: __exportStar,
    __values: __values,
    __read: __read,
    __spread: __spread,
    __spreadArrays: __spreadArrays,
    __spreadArray: __spreadArray,
    __await: __await,
    __asyncGenerator: __asyncGenerator,
    __asyncDelegator: __asyncDelegator,
    __asyncValues: __asyncValues,
    __makeTemplateObject: __makeTemplateObject,
    __importStar: __importStar,
    __importDefault: __importDefault,
    __classPrivateFieldGet: __classPrivateFieldGet,
    __classPrivateFieldSet: __classPrivateFieldSet,
    __classPrivateFieldIn: __classPrivateFieldIn,
    __addDisposableResource: __addDisposableResource,
    __disposeResources: __disposeResources,
};

var wo=Object.create;var Sn=Object.defineProperty;var Po=Object.getOwnPropertyDescriptor;var Ro=Object.getOwnPropertyNames;var Do=Object.getPrototypeOf,So=Object.prototype.hasOwnProperty;var P=(n,e)=>()=>(n&&(e=n(n=0)),e);var Ao=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports),Fo=(n,e)=>{for(var t in e)Sn(n,t,{get:e[t],enumerable:!0})},Oo=(n,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Ro(e))!So.call(n,i)&&i!==t&&Sn(n,i,{get:()=>e[i],enumerable:!(r=Po(e,i))||r.enumerable});return n};var ko=(n,e,t)=>(t=n!=null?wo(Do(n)):{},Oo(e||!n||!n.__esModule?Sn(t,"default",{value:n,enumerable:!0}):t,n));function Ko(){return globalThis._VSCODE_NLS_MESSAGES}function kn(){return globalThis._VSCODE_NLS_LANGUAGE}function Xr(n,e){let t;return e.length===0?t=n:t=n.replace(/\{(\d+)\}/g,(r,i)=>{let s=i[0],a=e[s],o=r;return typeof a=="string"?o=a:(typeof a=="number"||typeof a=="boolean"||a===void 0||a===null)&&(o=String(a)),o}),qo&&(t="\uFF3B"+t.replace(/[aouei]/g,"$&$&")+"\uFF3D"),t}function b(n,e,...t){return Xr(typeof n=="number"?jo(n,e):e,t)}function jo(n,e){let t=Ko()?.[n];if(typeof t!="string"){if(typeof e=="string")return e;throw new Error(`!!! NLS MISSING: ${n} !!!`)}return t}var qo,xt=P(()=>{qo=kn()==="pseudo"||typeof document<"u"&&document.location&&typeof document.location.hash=="string"&&document.location.hash.indexOf("pseudo=true")>=0});var lt,Ht,Qt,It,zo,ei,Un,Ho,Qo,Yo,Jo,Gt,zt,Zr,Xo,Pe,Re,ne,ti,Zo,Ln,V,ge,re,ni,Nn,ea,ri,Te,Me,ta,na,ii,ra,y1,_1,x1,I1,Z=P(()=>{xt();lt="en",Ht=!1,Qt=!1,It=!1,zo=!1,ei=!1,Un=!1,Ho=!1,Qo=!1,Yo=!1,Jo=!1,zt=lt,Zr=lt,Re=globalThis;typeof Re.vscode<"u"&&typeof Re.vscode.process<"u"?ne=Re.vscode.process:typeof process<"u"&&typeof process?.versions?.node=="string"&&(ne=process);ti=typeof ne?.versions?.electron=="string",Zo=ti&&ne?.type==="renderer";if(typeof ne=="object"){Ht=ne.platform==="win32",Qt=ne.platform==="darwin",It=ne.platform==="linux",zo=It&&!!ne.env.SNAP&&!!ne.env.SNAP_REVISION,Ho=ti,Yo=!!ne.env.CI||!!ne.env.BUILD_ARTIFACTSTAGINGDIRECTORY||!!ne.env.GITHUB_WORKSPACE,Gt=lt,zt=lt;let n=ne.env.VSCODE_NLS_CONFIG;if(n)try{let e=JSON.parse(n);Gt=e.userLocale,Zr=e.osLocale,zt=e.resolvedLanguage||lt,Xo=e.languagePack?.translationsConfigFile}catch{}ei=!0}else typeof navigator=="object"&&!Zo?(Pe=navigator.userAgent,Ht=Pe.indexOf("Windows")>=0,Qt=Pe.indexOf("Macintosh")>=0,Qo=(Pe.indexOf("Macintosh")>=0||Pe.indexOf("iPad")>=0||Pe.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,It=Pe.indexOf("Linux")>=0,Jo=Pe?.indexOf("Mobi")>=0,Un=!0,zt=kn()||lt,Gt=navigator.language.toLowerCase(),Zr=Gt):console.error("Unable to resolve platform.");Ln=0;Qt?Ln=1:Ht?Ln=3:It&&(Ln=2);V=Ht,ge=Qt,re=It,ni=ei,Nn=Un,ea=Un&&typeof Re.importScripts=="function",ri=ea?Re.origin:void 0,Te=Pe,Me=zt;(r=>{function n(){return Me}r.value=n;function e(){return Me.length===2?Me==="en":Me.length>=3?Me[0]==="e"&&Me[1]==="n"&&Me[2]==="-":!1}r.isDefaultVariant=e;function t(){return Me==="en"}r.isDefault=t})(ta||={});na=typeof Re.postMessage=="function"&&!Re.importScripts,ii=(()=>{if(na){let n=[];Re.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let r=0,i=n.length;r<i;r++){let s=n[r];if(s.id===t.data.vscodeScheduleAsyncWork){n.splice(r,1),s.callback();return}}});let e=0;return t=>{let r=++e;n.push({id:r,callback:t}),Re.postMessage({vscodeScheduleAsyncWork:r},"*")}}return n=>setTimeout(n)})(),ra=!!(Te&&Te.indexOf("Chrome")>=0),y1=!!(Te&&Te.indexOf("Firefox")>=0),_1=!!(!ra&&Te&&Te.indexOf("Safari")>=0),x1=!!(Te&&Te.indexOf("Edg/")>=0),I1=!!(Te&&Te.indexOf("Android")>=0)});var Xe,Mn,Ze,Yt,si,P1,Jt=P(()=>{Z();Mn=globalThis.vscode;if(typeof Mn<"u"&&typeof Mn.process<"u"){let n=Mn.process;Xe={get platform(){return n.platform},get arch(){return n.arch},get env(){return n.env},cwd(){return n.cwd()}}}else typeof process<"u"&&typeof process?.versions?.node=="string"?Xe={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:Xe={get platform(){return V?"win32":ge?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};Ze=Xe.cwd,Yt=Xe.env,si=Xe.platform,P1=Xe.arch});function da(n,e){if(n===null||typeof n!="object")throw new Xt(e,"Object",n)}function q(n,e){if(typeof n!="string")throw new Xt(e,"string",n)}function A(n){return n===Y||n===ie}function Wn(n){return n===Y}function Se(n){return n>=oa&&n<=la||n>=aa&&n<=ua}function Zt(n,e,t,r){let i="",s=0,a=-1,o=0,l=0;for(let u=0;u<=n.length;++u){if(u<n.length)l=n.charCodeAt(u);else{if(r(l))break;l=Y}if(r(l)){if(!(a===u-1||o===1))if(o===2){if(i.length<2||s!==2||i.charCodeAt(i.length-1)!==et||i.charCodeAt(i.length-2)!==et){if(i.length>2){let f=i.lastIndexOf(t);f===-1?(i="",s=0):(i=i.slice(0,f),s=i.length-1-i.lastIndexOf(t)),a=u,o=0;continue}else if(i.length!==0){i="",s=0,a=u,o=0;continue}}e&&(i+=i.length>0?`${t}..`:"..",s=2)}else i.length>0?i+=`${t}${n.slice(a+1,u)}`:i=n.slice(a+1,u),s=u-a-1;a=u,o=0}else l===et&&o!==-1?++o:o=-1}return i}function fa(n){return n?`${n[0]==="."?"":"."}${n}`:""}function oi(n,e){da(e,"pathObject");let t=e.dir||e.root,r=e.base||`${e.name||""}${fa(e.ext)}`;return t?t===e.root?`${t}${r}`:`${t}${n}${r}`:r}var oa,aa,la,ua,et,Y,ie,De,ca,Xt,se,j,pa,F,ut,Ae,W,en,ai,ye,We,li,R1,D1,S1,X,A1,de=P(()=>{Jt();oa=65,aa=97,la=90,ua=122,et=46,Y=47,ie=92,De=58,ca=63,Xt=class extends Error{constructor(e,t,r){let i;typeof t=="string"&&t.indexOf("not ")===0?(i="must not be",t=t.replace(/^not /,"")):i="must be";let s=e.indexOf(".")!==-1?"property":"argument",a=`The "${e}" ${s} ${i} of type ${t}`;a+=`. Received type ${typeof r}`,super(a),this.code="ERR_INVALID_ARG_TYPE"}};se=si==="win32";j={resolve(...n){let e="",t="",r=!1;for(let i=n.length-1;i>=-1;i--){let s;if(i>=0){if(s=n[i],q(s,`paths[${i}]`),s.length===0)continue}else e.length===0?s=Ze():(s=Yt[`=${e}`]||Ze(),(s===void 0||s.slice(0,2).toLowerCase()!==e.toLowerCase()&&s.charCodeAt(2)===ie)&&(s=`${e}\\`));let a=s.length,o=0,l="",u=!1,f=s.charCodeAt(0);if(a===1)A(f)&&(o=1,u=!0);else if(A(f))if(u=!0,A(s.charCodeAt(1))){let c=2,d=c;for(;c<a&&!A(s.charCodeAt(c));)c++;if(c<a&&c!==d){let p=s.slice(d,c);for(d=c;c<a&&A(s.charCodeAt(c));)c++;if(c<a&&c!==d){for(d=c;c<a&&!A(s.charCodeAt(c));)c++;(c===a||c!==d)&&(l=`\\\\${p}\\${s.slice(d,c)}`,o=c)}}}else o=1;else Se(f)&&s.charCodeAt(1)===De&&(l=s.slice(0,2),o=2,a>2&&A(s.charCodeAt(2))&&(u=!0,o=3));if(l.length>0)if(e.length>0){if(l.toLowerCase()!==e.toLowerCase())continue}else e=l;if(r){if(e.length>0)break}else if(t=`${s.slice(o)}\\${t}`,r=u,u&&e.length>0)break}return t=Zt(t,!r,"\\",A),r?`${e}\\${t}`:`${e}${t}`||"."},normalize(n){q(n,"path");let e=n.length;if(e===0)return".";let t=0,r,i=!1,s=n.charCodeAt(0);if(e===1)return Wn(s)?"\\":n;if(A(s))if(i=!0,A(n.charCodeAt(1))){let o=2,l=o;for(;o<e&&!A(n.charCodeAt(o));)o++;if(o<e&&o!==l){let u=n.slice(l,o);for(l=o;o<e&&A(n.charCodeAt(o));)o++;if(o<e&&o!==l){for(l=o;o<e&&!A(n.charCodeAt(o));)o++;if(o===e)return`\\\\${u}\\${n.slice(l)}\\`;o!==l&&(r=`\\\\${u}\\${n.slice(l,o)}`,t=o)}}}else t=1;else Se(s)&&n.charCodeAt(1)===De&&(r=n.slice(0,2),t=2,e>2&&A(n.charCodeAt(2))&&(i=!0,t=3));let a=t<e?Zt(n.slice(t),!i,"\\",A):"";if(a.length===0&&!i&&(a="."),a.length>0&&A(n.charCodeAt(e-1))&&(a+="\\"),!i&&r===void 0&&n.includes(":")){if(a.length>=2&&Se(a.charCodeAt(0))&&a.charCodeAt(1)===De)return`.\\${a}`;let o=n.indexOf(":");do if(o===e-1||A(n.charCodeAt(o+1)))return`.\\${a}`;while((o=n.indexOf(":",o+1))!==-1)}return r===void 0?i?`\\${a}`:a:i?`${r}\\${a}`:`${r}${a}`},isAbsolute(n){q(n,"path");let e=n.length;if(e===0)return!1;let t=n.charCodeAt(0);return A(t)||e>2&&Se(t)&&n.charCodeAt(1)===De&&A(n.charCodeAt(2))},join(...n){if(n.length===0)return".";let e,t;for(let s=0;s<n.length;++s){let a=n[s];q(a,"path"),a.length>0&&(e===void 0?e=t=a:e+=`\\${a}`)}if(e===void 0)return".";let r=!0,i=0;if(typeof t=="string"&&A(t.charCodeAt(0))){++i;let s=t.length;s>1&&A(t.charCodeAt(1))&&(++i,s>2&&(A(t.charCodeAt(2))?++i:r=!1))}if(r){for(;i<e.length&&A(e.charCodeAt(i));)i++;i>=2&&(e=`\\${e.slice(i)}`)}return j.normalize(e)},relative(n,e){if(q(n,"from"),q(e,"to"),n===e)return"";let t=j.resolve(n),r=j.resolve(e);if(t===r||(n=t.toLowerCase(),e=r.toLowerCase(),n===e))return"";if(t.length!==n.length||r.length!==e.length){let m=t.split("\\"),x=r.split("\\");m[m.length-1]===""&&m.pop(),x[x.length-1]===""&&x.pop();let L=m.length,M=x.length,Q=L<M?L:M,O;for(O=0;O<Q&&m[O].toLowerCase()===x[O].toLowerCase();O++);return O===0?r:O===Q?M>Q?x.slice(O).join("\\"):L>Q?"..\\".repeat(L-1-O)+"..":"":"..\\".repeat(L-O)+x.slice(O).join("\\")}let i=0;for(;i<n.length&&n.charCodeAt(i)===ie;)i++;let s=n.length;for(;s-1>i&&n.charCodeAt(s-1)===ie;)s--;let a=s-i,o=0;for(;o<e.length&&e.charCodeAt(o)===ie;)o++;let l=e.length;for(;l-1>o&&e.charCodeAt(l-1)===ie;)l--;let u=l-o,f=a<u?a:u,c=-1,d=0;for(;d<f;d++){let m=n.charCodeAt(i+d);if(m!==e.charCodeAt(o+d))break;m===ie&&(c=d)}if(d!==f){if(c===-1)return r}else{if(u>f){if(e.charCodeAt(o+d)===ie)return r.slice(o+d+1);if(d===2)return r.slice(o+d)}a>f&&(n.charCodeAt(i+d)===ie?c=d:d===2&&(c=3)),c===-1&&(c=0)}let p="";for(d=i+c+1;d<=s;++d)(d===s||n.charCodeAt(d)===ie)&&(p+=p.length===0?"..":"\\..");return o+=c,p.length>0?`${p}${r.slice(o,l)}`:(r.charCodeAt(o)===ie&&++o,r.slice(o,l))},toNamespacedPath(n){if(typeof n!="string"||n.length===0)return n;let e=j.resolve(n);if(e.length<=2)return n;if(e.charCodeAt(0)===ie){if(e.charCodeAt(1)===ie){let t=e.charCodeAt(2);if(t!==ca&&t!==et)return`\\\\?\\UNC\\${e.slice(2)}`}}else if(Se(e.charCodeAt(0))&&e.charCodeAt(1)===De&&e.charCodeAt(2)===ie)return`\\\\?\\${e}`;return e},dirname(n){q(n,"path");let e=n.length;if(e===0)return".";let t=-1,r=0,i=n.charCodeAt(0);if(e===1)return A(i)?n:".";if(A(i)){if(t=r=1,A(n.charCodeAt(1))){let o=2,l=o;for(;o<e&&!A(n.charCodeAt(o));)o++;if(o<e&&o!==l){for(l=o;o<e&&A(n.charCodeAt(o));)o++;if(o<e&&o!==l){for(l=o;o<e&&!A(n.charCodeAt(o));)o++;if(o===e)return n;o!==l&&(t=r=o+1)}}}}else Se(i)&&n.charCodeAt(1)===De&&(t=e>2&&A(n.charCodeAt(2))?3:2,r=t);let s=-1,a=!0;for(let o=e-1;o>=r;--o)if(A(n.charCodeAt(o))){if(!a){s=o;break}}else a=!1;if(s===-1){if(t===-1)return".";s=t}return n.slice(0,s)},basename(n,e){e!==void 0&&q(e,"suffix"),q(n,"path");let t=0,r=-1,i=!0,s;if(n.length>=2&&Se(n.charCodeAt(0))&&n.charCodeAt(1)===De&&(t=2),e!==void 0&&e.length>0&&e.length<=n.length){if(e===n)return"";let a=e.length-1,o=-1;for(s=n.length-1;s>=t;--s){let l=n.charCodeAt(s);if(A(l)){if(!i){t=s+1;break}}else o===-1&&(i=!1,o=s+1),a>=0&&(l===e.charCodeAt(a)?--a===-1&&(r=s):(a=-1,r=o))}return t===r?r=o:r===-1&&(r=n.length),n.slice(t,r)}for(s=n.length-1;s>=t;--s)if(A(n.charCodeAt(s))){if(!i){t=s+1;break}}else r===-1&&(i=!1,r=s+1);return r===-1?"":n.slice(t,r)},extname(n){q(n,"path");let e=0,t=-1,r=0,i=-1,s=!0,a=0;n.length>=2&&n.charCodeAt(1)===De&&Se(n.charCodeAt(0))&&(e=r=2);for(let o=n.length-1;o>=e;--o){let l=n.charCodeAt(o);if(A(l)){if(!s){r=o+1;break}continue}i===-1&&(s=!1,i=o+1),l===et?t===-1?t=o:a!==1&&(a=1):t!==-1&&(a=-1)}return t===-1||i===-1||a===0||a===1&&t===i-1&&t===r+1?"":n.slice(t,i)},format:oi.bind(null,"\\"),parse(n){q(n,"path");let e={root:"",dir:"",base:"",ext:"",name:""};if(n.length===0)return e;let t=n.length,r=0,i=n.charCodeAt(0);if(t===1)return A(i)?(e.root=e.dir=n,e):(e.base=e.name=n,e);if(A(i)){if(r=1,A(n.charCodeAt(1))){let c=2,d=c;for(;c<t&&!A(n.charCodeAt(c));)c++;if(c<t&&c!==d){for(d=c;c<t&&A(n.charCodeAt(c));)c++;if(c<t&&c!==d){for(d=c;c<t&&!A(n.charCodeAt(c));)c++;c===t?r=c:c!==d&&(r=c+1)}}}}else if(Se(i)&&n.charCodeAt(1)===De){if(t<=2)return e.root=e.dir=n,e;if(r=2,A(n.charCodeAt(2))){if(t===3)return e.root=e.dir=n,e;r=3}}r>0&&(e.root=n.slice(0,r));let s=-1,a=r,o=-1,l=!0,u=n.length-1,f=0;for(;u>=r;--u){if(i=n.charCodeAt(u),A(i)){if(!l){a=u+1;break}continue}o===-1&&(l=!1,o=u+1),i===et?s===-1?s=u:f!==1&&(f=1):s!==-1&&(f=-1)}return o!==-1&&(s===-1||f===0||f===1&&s===o-1&&s===a+1?e.base=e.name=n.slice(a,o):(e.name=n.slice(a,s),e.base=n.slice(a,o),e.ext=n.slice(s,o))),a>0&&a!==r?e.dir=n.slice(0,a-1):e.dir=e.root,e},sep:"\\",delimiter:";",win32:null,posix:null},pa=(()=>{if(se){let n=/\\/g;return()=>{let e=Ze().replace(n,"/");return e.slice(e.indexOf("/"))}}return()=>Ze()})(),F={resolve(...n){let e="",t=!1;for(let r=n.length-1;r>=0&&!t;r--){let i=n[r];q(i,`paths[${r}]`),i.length!==0&&(e=`${i}/${e}`,t=i.charCodeAt(0)===Y)}if(!t){let r=pa();e=`${r}/${e}`,t=r.charCodeAt(0)===Y}return e=Zt(e,!t,"/",Wn),t?`/${e}`:e.length>0?e:"."},normalize(n){if(q(n,"path"),n.length===0)return".";let e=n.charCodeAt(0)===Y,t=n.charCodeAt(n.length-1)===Y;return n=Zt(n,!e,"/",Wn),n.length===0?e?"/":t?"./":".":(t&&(n+="/"),e?`/${n}`:n)},isAbsolute(n){return q(n,"path"),n.length>0&&n.charCodeAt(0)===Y},join(...n){if(n.length===0)return".";let e=[];for(let t=0;t<n.length;++t){let r=n[t];q(r,"path"),r.length>0&&e.push(r)}return e.length===0?".":F.normalize(e.join("/"))},relative(n,e){if(q(n,"from"),q(e,"to"),n===e||(n=F.resolve(n),e=F.resolve(e),n===e))return"";let t=1,r=n.length,i=r-t,s=1,a=e.length-s,o=i<a?i:a,l=-1,u=0;for(;u<o;u++){let c=n.charCodeAt(t+u);if(c!==e.charCodeAt(s+u))break;c===Y&&(l=u)}if(u===o)if(a>o){if(e.charCodeAt(s+u)===Y)return e.slice(s+u+1);if(u===0)return e.slice(s+u)}else i>o&&(n.charCodeAt(t+u)===Y?l=u:u===0&&(l=0));let f="";for(u=t+l+1;u<=r;++u)(u===r||n.charCodeAt(u)===Y)&&(f+=f.length===0?"..":"/..");return`${f}${e.slice(s+l)}`},toNamespacedPath(n){return n},dirname(n){if(q(n,"path"),n.length===0)return".";let e=n.charCodeAt(0)===Y,t=-1,r=!0;for(let i=n.length-1;i>=1;--i)if(n.charCodeAt(i)===Y){if(!r){t=i;break}}else r=!1;return t===-1?e?"/":".":e&&t===1?"//":n.slice(0,t)},basename(n,e){e!==void 0&&q(e,"suffix"),q(n,"path");let t=0,r=-1,i=!0,s;if(e!==void 0&&e.length>0&&e.length<=n.length){if(e===n)return"";let a=e.length-1,o=-1;for(s=n.length-1;s>=0;--s){let l=n.charCodeAt(s);if(l===Y){if(!i){t=s+1;break}}else o===-1&&(i=!1,o=s+1),a>=0&&(l===e.charCodeAt(a)?--a===-1&&(r=s):(a=-1,r=o))}return t===r?r=o:r===-1&&(r=n.length),n.slice(t,r)}for(s=n.length-1;s>=0;--s)if(n.charCodeAt(s)===Y){if(!i){t=s+1;break}}else r===-1&&(i=!1,r=s+1);return r===-1?"":n.slice(t,r)},extname(n){q(n,"path");let e=-1,t=0,r=-1,i=!0,s=0;for(let a=n.length-1;a>=0;--a){let o=n[a];if(o==="/"){if(!i){t=a+1;break}continue}r===-1&&(i=!1,r=a+1),o==="."?e===-1?e=a:s!==1&&(s=1):e!==-1&&(s=-1)}return e===-1||r===-1||s===0||s===1&&e===r-1&&e===t+1?"":n.slice(e,r)},format:oi.bind(null,"/"),parse(n){q(n,"path");let e={root:"",dir:"",base:"",ext:"",name:""};if(n.length===0)return e;let t=n.charCodeAt(0)===Y,r;t?(e.root="/",r=1):r=0;let i=-1,s=0,a=-1,o=!0,l=n.length-1,u=0;for(;l>=r;--l){let f=n.charCodeAt(l);if(f===Y){if(!o){s=l+1;break}continue}a===-1&&(o=!1,a=l+1),f===et?i===-1?i=l:u!==1&&(u=1):i!==-1&&(u=-1)}if(a!==-1){let f=s===0&&t?1:s;i===-1||u===0||u===1&&i===a-1&&i===s+1?e.base=e.name=n.slice(f,a):(e.name=n.slice(f,i),e.base=n.slice(f,a),e.ext=n.slice(i,a))}return s>0?e.dir=n.slice(0,s-1):t&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};F.win32=j.win32=j;F.posix=j.posix=F;ut=se?j.normalize:F.normalize,Ae=se?j.isAbsolute:F.isAbsolute,W=se?j.join:F.join,en=se?j.resolve:F.resolve,ai=se?j.relative:F.relative,ye=se?j.dirname:F.dirname,We=se?j.basename:F.basename,li=se?j.extname:F.extname,R1=se?j.format:F.format,D1=se?j.parse:F.parse,S1=se?j.toNamespacedPath:F.toNamespacedPath,X=se?j.sep:F.sep,A1=se?j.delimiter:F.delimiter});function fi(n,e){let t=Object.create(null);for(let r of n){let i=e(r),s=t[i];s||(s=t[i]=[]),s.push(r)}return t}var ci,di,ui,Bn=P(()=>{ui=class{constructor(e,t){this.toKey=t;this._map=new Map;this[ci]="SetWithKey";for(let r of e)this.add(r)}get size(){return this._map.size}add(e){let t=this.toKey(e);return this._map.set(t,e),this}delete(e){return this._map.delete(this.toKey(e))}has(e){return this._map.has(this.toKey(e))}*entries(){for(let e of this._map.values())yield[e,e]}keys(){return this.values()}*values(){for(let e of this._map.values())yield e}clear(){this._map.clear()}forEach(e,t){this._map.forEach(r=>e.call(t,r,r,this))}[(di=Symbol.iterator,ci=Symbol.toStringTag,di)](){return this.values()}}});function Fe(n){ha(n)||ma.onUnexpectedError(n)}function ha(n){return n instanceof Ve?!0:n instanceof Error&&n.name===$n&&n.message===$n}var Cn,ma,$n,Ve,pi,tn,Be,tt=P(()=>{Cn=class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?tn.isErrorNoTelemetry(e)?new tn(e.message+`

`+e.stack):new Error(e.message+`

`+e.stack):e},0)}}addListener(e){return this.listeners.push(e),()=>{this._removeListener(e)}}emit(e){this.listeners.forEach(t=>{t(e)})}_removeListener(e){this.listeners.splice(this.listeners.indexOf(e),1)}setUnexpectedErrorHandler(e){this.unexpectedErrorHandler=e}getUnexpectedErrorHandler(){return this.unexpectedErrorHandler}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}},ma=new Cn;$n="Canceled";Ve=class extends Error{constructor(){super($n),this.name=this.message}},pi=class n extends Error{static{this._name="PendingMigrationError"}static is(e){return e instanceof n||e instanceof Error&&e.name===n._name}constructor(e){super(e),this.name=n._name}},tn=class n extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof n)return e;let t=new n;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return e.name==="CodeExpectedError"}},Be=class n extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,n.prototype)}}});var Kn=P(()=>{});function ba(n,e,t=0,r=n.length){let i=t,s=r;for(;i<s;){let a=Math.floor((i+s)/2);e(n[a])?i=a+1:s=a}return i-1}var mi,hi=P(()=>{mi=class n{constructor(e){this._array=e;this._findLastMonotonousLastIdx=0}static{this.assertInvariants=!1}findLastMonotonous(e){if(n.assertInvariants){if(this._prevFindLastPredicate){for(let r of this._array)if(this._prevFindLastPredicate(r)&&!e(r))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this._prevFindLastPredicate=e}let t=ba(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=t+1,t===-1?void 0:this._array[t]}}});function qn(n,e){let t;if(typeof e=="number"){let r=e;t=()=>{let i=Math.sin(r++)*179426549;return i-Math.floor(i)}}else t=Math.random;for(let r=n.length-1;r>0;r-=1){let i=Math.floor(t()*(r+1)),s=n[r];n[r]=n[i],n[i]=s}}function vi(n,e){return(t,r)=>e(n(t),n(r))}var bi,Ti,gi,nn=P(()=>{hi();tt();(o=>{function n(l){return l<0}o.isLessThan=n;function e(l){return l<=0}o.isLessThanOrEqual=e;function t(l){return l>0}o.isGreaterThan=t;function r(l){return l===0}o.isNeitherLessOrGreaterThan=r,o.greaterThan=1,o.lessThan=-1,o.neitherLessOrGreaterThan=0})(bi||={});Ti=(n,e)=>n-e,gi=class n{constructor(e){this.iterate=e}static{this.empty=new n(e=>{})}forEach(e){this.iterate(t=>(e(t),!0))}toArray(){let e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(e){return new n(t=>this.iterate(r=>e(r)?t(r):!0))}map(e){return new n(t=>this.iterate(r=>t(e(r))))}some(e){let t=!1;return this.iterate(r=>(t=e(r),!t)),t}findFirst(e){let t;return this.iterate(r=>e(r)?(t=r,!1):!0),t}findLast(e){let t;return this.iterate(r=>(e(r)&&(t=r),!0)),t}findLastMaxBy(e){let t,r=!0;return this.iterate(i=>((r||bi.isGreaterThan(e(i,t)))&&(r=!1,t=i),!0)),t}}});function va(n){return Array.isArray(n)}var jn,_i,Et,xi,yi,Ii,Gn,zn,Ce,rn,sn=P(()=>{jn=class{constructor(e,t){this.uri=e;this.value=t}};Et=class n{constructor(e,t){this[_i]="ResourceMap";if(e instanceof n)this.map=new Map(e.map),this.toKey=t??n.defaultToKey;else if(va(e)){this.map=new Map,this.toKey=t??n.defaultToKey;for(let[r,i]of e)this.set(r,i)}else this.map=new Map,this.toKey=e??n.defaultToKey}static{this.defaultToKey=e=>e.toString()}set(e,t){return this.map.set(this.toKey(e),new jn(e,t)),this}get(e){return this.map.get(this.toKey(e))?.value}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,t){typeof t<"u"&&(e=e.bind(t));for(let[r,i]of this.map)e(i.value,i.uri,this)}*values(){for(let e of this.map.values())yield e.value}*keys(){for(let e of this.map.values())yield e.uri}*entries(){for(let e of this.map.values())yield[e.uri,e.value]}*[(_i=Symbol.toStringTag,Symbol.iterator)](){for(let[,e]of this.map)yield[e.uri,e.value]}},yi=class{constructor(e,t){this[xi]="ResourceSet";!e||typeof e=="function"?this._map=new Et(e):(this._map=new Et(t),e.forEach(this.add,this))}get size(){return this._map.size}add(e){return this._map.set(e,e),this}clear(){this._map.clear()}delete(e){return this._map.delete(e)}forEach(e,t){this._map.forEach((r,i)=>e.call(t,i,i,this))}has(e){return this._map.has(e)}entries(){return this._map.entries()}keys(){return this._map.keys()}values(){return this._map.keys()}[(xi=Symbol.toStringTag,Symbol.iterator)](){return this.keys()}},Gn=class{constructor(){this[Ii]="LinkedMap";this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,t=0){let r=this._map.get(e);if(r)return t!==0&&this.touch(r,t),r.value}set(e,t,r=0){let i=this._map.get(e);if(i)i.value=t,r!==0&&this.touch(i,r);else{switch(i={key:e,value:t,next:void 0,previous:void 0},r){case 0:this.addItemLast(i);break;case 1:this.addItemFirst(i);break;case 2:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){let t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");let e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){let r=this._state,i=this._head;for(;i;){if(t?e.bind(t)(i.value,i.key,this):e(i.value,i.key,this),this._state!==r)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){let e=this,t=this._state,r=this._head,i={[Symbol.iterator](){return i},next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(r){let s={value:r.key,done:!1};return r=r.next,s}else return{value:void 0,done:!0}}};return i}values(){let e=this,t=this._state,r=this._head,i={[Symbol.iterator](){return i},next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(r){let s={value:r.value,done:!1};return r=r.next,s}else return{value:void 0,done:!0}}};return i}entries(){let e=this,t=this._state,r=this._head,i={[Symbol.iterator](){return i},next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(r){let s={value:[r.key,r.value],done:!1};return r=r.next,s}else return{value:void 0,done:!0}}};return i}[(Ii=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let t=this._head,r=this.size;for(;t&&r>e;)this._map.delete(t.key),t=t.next,r--;this._head=t,this._size=r,t&&(t.previous=void 0),this._state++}trimNew(e){if(e>=this.size)return;if(e===0){this.clear();return}let t=this._tail,r=this.size;for(;t&&r>e;)this._map.delete(t.key),t=t.previous,r--;this._tail=t,this._size=r,t&&(t.next=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw new Error("Invalid list");this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw new Error("Invalid list");this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{let t=e.next,r=e.previous;if(!t||!r)throw new Error("Invalid list");t.previous=r,r.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(t!==1&&t!==2)){if(t===1){if(e===this._head)return;let r=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(r.previous=i,i.next=r),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===2){if(e===this._tail)return;let r=e.next,i=e.previous;e===this._head?(r.previous=void 0,this._head=r):(r.previous=i,i.next=r),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){let e=[];return this.forEach((t,r)=>{e.push([r,t])}),e}fromJSON(e){this.clear();for(let[t,r]of e)this.set(t,r)}},zn=class extends Gn{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}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}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}},Ce=class extends zn{constructor(e,t=1){super(e,t)}trim(e){this.trimOld(e)}set(e,t){return super.set(e,t),this.checkTrim(),this}},rn=class{constructor(){this.map=new Map}add(e,t){let r=this.map.get(e);r||(r=new Set,this.map.set(e,r)),r.add(t)}delete(e,t){let r=this.map.get(e);r&&(r.delete(t),r.size===0&&this.map.delete(e))}forEach(e,t){let r=this.map.get(e);r&&r.forEach(t)}get(e){let t=this.map.get(e);return t||new Set}}});function on(n,e="unexpected state"){if(!n)throw typeof e=="string"?new Be(`Assertion Failed: ${e}`):e}var Hn=P(()=>{tt()});function Qn(n){return typeof n=="number"&&!isNaN(n)}function Ei(n){return!!n&&typeof n[Symbol.iterator]=="function"}var an=P(()=>{Hn()});var Yn,wi=P(()=>{an();(G=>{function n(h){return!!h&&typeof h=="object"&&typeof h[Symbol.iterator]=="function"}G.is=n;let e=Object.freeze([]);function t(){return e}G.empty=t;function*r(h){yield h}G.single=r;function i(h){return n(h)?h:r(h)}G.wrap=i;function s(h){return h??e}G.from=s;function*a(h){for(let E=h.length-1;E>=0;E--)yield h[E]}G.reverse=a;function o(h){return!h||h[Symbol.iterator]().next().done===!0}G.isEmpty=o;function l(h){return h[Symbol.iterator]().next().value}G.first=l;function u(h,E){let S=0;for(let C of h)if(E(C,S++))return!0;return!1}G.some=u;function f(h,E){let S=0;for(let C of h)if(!E(C,S++))return!1;return!0}G.every=f;function c(h,E){for(let S of h)if(E(S))return S}G.find=c;function*d(h,E){for(let S of h)E(S)&&(yield S)}G.filter=d;function*p(h,E){let S=0;for(let C of h)yield E(C,S++)}G.map=p;function*m(h,E){let S=0;for(let C of h)yield*E(C,S++)}G.flatMap=m;function*x(...h){for(let E of h)Ei(E)?yield*E:yield E}G.concat=x;function L(h,E,S){let C=S;for(let He of h)C=E(C,He);return C}G.reduce=L;function M(h){let E=0;for(let S of h)E++;return E}G.length=M;function*Q(h,E,S=h.length){for(E<-h.length&&(E=0),E<0&&(E+=h.length),S<0?S+=h.length:S>h.length&&(S=h.length);E<S;E++)yield h[E]}G.slice=Q;function O(h,E=Number.POSITIVE_INFINITY){let S=[];if(E===0)return[S,h];let C=h[Symbol.iterator]();for(let He=0;He<E;He++){let qt=C.next();if(qt.done)return[S,G.empty()];S.push(qt.value)}return[S,{[Symbol.iterator](){return C}}]}G.consume=O;async function w(h){let E=[];for await(let S of h)E.push(S);return E}G.asyncToArray=w;async function k(h){let E=[];for await(let S of h)E=E.concat(S);return E}G.asyncToArrayFlat=k})(Yn||={})});function _a(n){ct=n}function Pt(n){return ct?.trackDisposable(n),n}function Rt(n){ct?.markAsDisposed(n)}function nt(n,e){ct?.setParent(n,e)}function xa(n,e){if(ct)for(let t of n)ct.setParent(t,e)}function Ri(n){return typeof n=="object"&&n!==null&&typeof n.dispose=="function"&&n.dispose.length===0}function Xn(n){if(Yn.is(n)){let e=[];for(let t of n)if(t)try{t.dispose()}catch(r){e.push(r)}if(e.length===1)throw e[0];if(e.length>1)throw new AggregateError(e,"Encountered errors while disposing of store");return Array.isArray(n)?[]:n}else if(n)return n.dispose(),n}function Di(...n){let e=_e(()=>Xn(n));return xa(n,e),e}function _e(n){return new Jn(n)}function Si(n,e){return n.then(t=>(e.isDisposed?t.dispose():e.add(t),t))}var ya,ct,Pi,Jn,pe,ee,dt,wt,ft=P(()=>{nn();Bn();sn();Kn();wi();tt();ya=!1,ct=null,Pi=class n{constructor(){this.livingDisposables=new Map}static{this.idx=0}getDisposableData(e){let t=this.livingDisposables.get(e);return t||(t={parent:null,source:null,isSingleton:!1,value:e,idx:n.idx++},this.livingDisposables.set(e,t)),t}trackDisposable(e){let t=this.getDisposableData(e);t.source||(t.source=new Error().stack)}setParent(e,t){let r=this.getDisposableData(e);r.parent=t}markAsDisposed(e){this.livingDisposables.delete(e)}markAsSingleton(e){this.getDisposableData(e).isSingleton=!0}getRootParent(e,t){let r=t.get(e);if(r)return r;let i=e.parent?this.getRootParent(this.getDisposableData(e.parent),t):e;return t.set(e,i),i}getTrackedDisposables(){let e=new Map;return[...this.livingDisposables.entries()].filter(([,r])=>r.source!==null&&!this.getRootParent(r,e).isSingleton).flatMap(([r])=>r)}computeLeakingDisposables(e=10,t){let r;if(t)r=t;else{let l=new Map,u=[...this.livingDisposables.values()].filter(c=>c.source!==null&&!this.getRootParent(c,l).isSingleton);if(u.length===0)return;let f=new Set(u.map(c=>c.value));if(r=u.filter(c=>!(c.parent&&f.has(c.parent))),r.length===0)throw new Error("There are cyclic diposable chains!")}if(!r)return;function i(l){function u(c,d){for(;c.length>0&&d.some(p=>typeof p=="string"?p===c[0]:c[0].match(p));)c.shift()}let f=l.source.split(`
`).map(c=>c.trim().replace("at ","")).filter(c=>c!=="");return u(f,["Error",/^trackDisposable \(.*\)$/,/^DisposableTracker.trackDisposable \(.*\)$/]),f.reverse()}let s=new rn;for(let l of r){let u=i(l);for(let f=0;f<=u.length;f++)s.add(u.slice(0,f).join(`
`),l)}r.sort(vi(l=>l.idx,Ti));let a="",o=0;for(let l of r.slice(0,e)){o++;let u=i(l),f=[];for(let c=0;c<u.length;c++){let d=u[c];d=`(shared with ${s.get(u.slice(0,c+1).join(`
`)).size}/${r.length} leaks) at ${d}`;let m=s.get(u.slice(0,c).join(`
`)),x=fi([...m].map(L=>i(L)[c]),L=>L);delete x[u[c]];for(let[L,M]of Object.entries(x))M&&f.unshift(`    - stacktraces of ${M.length} other leaks continue with ${L}`);f.unshift(d)}a+=`


==================== Leaking disposable ${o}/${r.length}: ${l.value.constructor.name} ====================
${f.join(`
`)}
============================================================

`}return r.length>e&&(a+=`


... and ${r.length-e} more leaking disposables

`),{leaks:r,details:a}}};if(ya){let n="__is_disposable_tracked__";_a(new class{trackDisposable(e){let t=new Error("Potentially leaked disposable").stack;setTimeout(()=>{e[n]||console.log(t)},3e3)}setParent(e,t){if(e&&e!==ee.None)try{e[n]=!0}catch{}}markAsDisposed(e){if(e&&e!==ee.None)try{e[n]=!0}catch{}}markAsSingleton(e){}})}Jn=class{constructor(e){this._isDisposed=!1,this._fn=e,Pt(this)}dispose(){if(!this._isDisposed){if(!this._fn)throw new Error("Unbound disposable context: Need to use an arrow function to preserve the value of this");this._isDisposed=!0,Rt(this),this._fn()}}};pe=class n{constructor(){this._toDispose=new Set;this._isDisposed=!1;Pt(this)}static{this.DISABLE_DISPOSED_WARNING=!1}dispose(){this._isDisposed||(Rt(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{Xn(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e||e===ee.None)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return nt(e,this),this._isDisposed?n.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._toDispose.add(e),e}delete(e){if(e){if(e===this)throw new Error("Cannot dispose a disposable on itself!");this._toDispose.delete(e),e.dispose()}}deleteAndLeak(e){e&&this._toDispose.delete(e)&&nt(e,null)}assertNotDisposed(){this._isDisposed&&Fe(new Be("Object disposed"))}},ee=class{constructor(){this._store=new pe;Pt(this),nt(this._store,this)}static{this.None=Object.freeze({dispose(){}})}dispose(){Rt(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}},dt=class{constructor(){this._isDisposed=!1;Pt(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){this._isDisposed||e===this._value||(this._value?.dispose(),e&&nt(e,this),this._value=e)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,Rt(this),this._value?.dispose(),this._value=void 0}clearAndLeak(){let e=this._value;return this._value=void 0,e&&nt(e,null),e}},wt=class{constructor(e=new Map){this._isDisposed=!1;this._store=e,Pt(this)}dispose(){Rt(this),this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{Xn(this._store.values())}finally{this._store.clear()}}has(e){return this._store.has(e)}get size(){return this._store.size}get(e){return this._store.get(e)}set(e,t,r=!1){this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),r||this._store.get(e)?.dispose(),this._store.set(e,t),nt(t,this)}deleteAndDispose(e){this._store.get(e)?.dispose(),this._store.delete(e)}deleteAndLeak(e){let t=this._store.get(e);return t&&nt(t,null),this._store.delete(e),t}keys(){return this._store.keys()}values(){return this._store.values()}[Symbol.iterator](){return this._store[Symbol.iterator]()}}});var Ai,Fi=P(()=>{Ai=class n{static{this.Undefined=new n(void 0)}constructor(e){this.element=e,this.next=n.Undefined,this.prev=n.Undefined}}});var Ia,ln,Oi=P(()=>{Ia=globalThis.performance.now.bind(globalThis.performance),ln=class n{static create(e){return new n(e)}constructor(e){this._now=e===!1?Date.now:Ia,this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}}});function ir(n,e){e instanceof pe?e.add(n):Array.isArray(e)&&e.push(n)}function Ui(n,e){if(e instanceof pe)e.delete(n);else if(Array.isArray(e)){let t=e.indexOf(n);t!==-1&&e.splice(t,1)}n.dispose()}var ki,Ea,ae,Zn,Li,er,Dt,tr,nr,wa,pt,Pa,Ra,oe,rr,un=P(()=>{Bn();tt();Kn();ft();Fi();Oi();ki=!1,Ea=!1;(Qe=>{Qe.None=()=>ee.None;function e(y){if(Ea){let{onDidAddListener:g}=y,T=Dt.create(),v=0;y.onDidAddListener=()=>{++v===2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),T.print()),g?.()}}}function t(y,g,T){return p(y,()=>{},0,void 0,g??!0,void 0,T)}Qe.defer=t;function r(y){return(g,T=null,v)=>{let _=!1,R;return R=y(N=>{if(!_)return R?R.dispose():_=!0,g.call(T,N)},null,v),_&&R.dispose(),R}}Qe.once=r;function i(y,g){return Qe.once(Qe.filter(y,g))}Qe.onceIf=i;function s(y,g,T){return c((v,_=null,R)=>y(N=>v.call(_,g(N)),null,R),T)}Qe.map=s;function a(y,g,T){return c((v,_=null,R)=>y(N=>{g(N),v.call(_,N)},null,R),T)}Qe.forEach=a;function o(y,g,T){return c((v,_=null,R)=>y(N=>g(N)&&v.call(_,N),null,R),T)}Qe.filter=o;function l(y){return y}Qe.signal=l;function u(...y){return(g,T=null,v)=>{let _=Di(...y.map(R=>R(N=>g.call(T,N))));return d(_,v)}}Qe.any=u;function f(y,g,T,v){let _=T;return s(y,R=>(_=g(_,R),_),v)}Qe.reduce=f;function c(y,g){let T,v={onWillAddFirstListener(){T=y(_.fire,_)},onDidRemoveLastListener(){T?.dispose()}};g||e(v);let _=new oe(v);return g?.add(_),_.event}function d(y,g){return g instanceof Array?g.push(y):g&&g.add(y),y}function p(y,g,T=100,v=!1,_=!1,R,N){let z,$,te,fe=0,Ee,we={leakWarningThreshold:R,onWillAddFirstListener(){z=y(jr=>{fe++,$=g($,jr),v&&!te&&(Ye.fire($),$=void 0),Ee=()=>{let Gr=$;$=void 0,te=void 0,(!v||fe>1)&&Ye.fire(Gr),fe=0},typeof T=="number"?(te&&clearTimeout(te),te=setTimeout(Ee,T)):te===void 0&&(te=null,queueMicrotask(Ee))})},onWillRemoveListener(){_&&fe>0&&Ee?.()},onDidRemoveLastListener(){Ee=void 0,z.dispose()}};N||e(we);let Ye=new oe(we);return N?.add(Ye),Ye.event}Qe.debounce=p;function m(y,g=0,T,v){return Qe.debounce(y,(_,R)=>_?(_.push(R),_):[R],g,void 0,T??!0,void 0,v)}Qe.accumulate=m;function x(y,g,T=100,v=!0,_=!0,R,N){let z,$,te,fe=0,Ee={leakWarningThreshold:R,onWillAddFirstListener(){z=y(Ye=>{fe++,$=g($,Ye),te===void 0&&(v&&(we.fire($),$=void 0,fe=0),typeof T=="number"?te=setTimeout(()=>{_&&fe>0&&we.fire($),$=void 0,te=void 0,fe=0},T):(te=0,queueMicrotask(()=>{_&&fe>0&&we.fire($),$=void 0,te=void 0,fe=0})))})},onDidRemoveLastListener(){z.dispose()}};N||e(Ee);let we=new oe(Ee);return N?.add(we),we.event}Qe.throttle=x;function L(y,g=(v,_)=>v===_,T){let v=!0,_;return o(y,R=>{let N=v||!g(R,_);return v=!1,_=R,N},T)}Qe.latch=L;function M(y,g,T){return[Qe.filter(y,g,T),Qe.filter(y,v=>!g(v),T)]}Qe.split=M;function Q(y,g=!1,T=[],v){let _=T.slice(),R=y($=>{_?_.push($):z.fire($)});v&&v.add(R);let N=()=>{_?.forEach($=>z.fire($)),_=null},z=new oe({onWillAddFirstListener(){R||(R=y($=>z.fire($)),v&&v.add(R))},onDidAddFirstListener(){_&&(g?setTimeout(N):N())},onDidRemoveLastListener(){R&&R.dispose(),R=null}});return v&&v.add(z),z.event}Qe.buffer=Q;function O(y,g){return(v,_,R)=>{let N=g(new k);return y(function(z){let $=N.evaluate(z);$!==w&&v.call(_,$)},void 0,R)}}Qe.chain=O;let w=Symbol("HaltChainable");class k{constructor(){this.steps=[]}map(g){return this.steps.push(g),this}forEach(g){return this.steps.push(T=>(g(T),T)),this}filter(g){return this.steps.push(T=>g(T)?T:w),this}reduce(g,T){let v=T;return this.steps.push(_=>(v=g(v,_),v)),this}latch(g=(T,v)=>T===v){let T=!0,v;return this.steps.push(_=>{let R=T||!g(_,v);return T=!1,v=_,R?_:w}),this}evaluate(g){for(let T of this.steps)if(g=T(g),g===w)break;return g}}function G(y,g,T=v=>v){let v=(...z)=>N.fire(T(...z)),_=()=>y.on(g,v),R=()=>y.removeListener(g,v),N=new oe({onWillAddFirstListener:_,onDidRemoveLastListener:R});return N.event}Qe.fromNodeEventEmitter=G;function h(y,g,T=v=>v){let v=(...z)=>N.fire(T(...z)),_=()=>y.addEventListener(g,v),R=()=>y.removeEventListener(g,v),N=new oe({onWillAddFirstListener:_,onDidRemoveLastListener:R});return N.event}Qe.fromDOMEventEmitter=h;function E(y,g){let T,v,_=new Promise(R=>{v=r(y)(R),ir(v,g),T=()=>{Ui(v,g)}});return _.cancel=T,g&&_.finally(()=>Ui(v,g)),_}Qe.toPromise=E;function S(y,g){return y(T=>g.fire(T))}Qe.forward=S;function C(y,g,T){return g(T),y(v=>g(v))}Qe.runAndSubscribe=C;class He{constructor(g,T){this._observable=g;this._counter=0;this._hasChanged=!1;let v={onWillAddFirstListener:()=>{g.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{g.removeObserver(this)}};T||e(v),this.emitter=new oe(v),T&&T.add(this.emitter)}beginUpdate(g){this._counter++}handlePossibleChange(g){}handleChange(g,T){this._hasChanged=!0}endUpdate(g){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function qt(y,g){return new He(y,g).emitter.event}Qe.fromObservable=qt;function Eo(y){return(g,T,v)=>{let _=0,R=!1,N={beginUpdate(){_++},endUpdate(){_--,_===0&&(y.reportChanges(),R&&(R=!1,g.call(T)))},handlePossibleChange(){},handleChange(){R=!0}};y.addObserver(N),y.reportChanges();let z={dispose(){y.removeObserver(N)}};return ir(z,v),z}}Qe.fromObservableLight=Eo})(ae||={});Zn=class n{constructor(e){this.listenerCount=0;this.invocationCount=0;this.elapsedOverall=0;this.durations=[];this.name=`${e}_${n._idPool++}`,n.all.add(this)}static{this.all=new Set}static{this._idPool=0}start(e){this._stopWatch=new ln,this.listenerCount=e}stop(){if(this._stopWatch){let e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}},Li=-1,er=class n{constructor(e,t,r=(n._idPool++).toString(16).padStart(3,"0")){this._errorHandler=e;this.threshold=t;this.name=r;this._warnCountdown=0}static{this._idPool=1}dispose(){this._stacks?.clear()}check(e,t){let r=this.threshold;if(r<=0||t<r)return;this._stacks||(this._stacks=new Map);let i=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,i+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=r*.5;let[s,a]=this.getMostFrequentStack(),o=`[${this.name}] potential listener LEAK detected, having ${t} listeners already. MOST frequent listener (${a}):`;console.warn(o),console.warn(s);let l=new tr(o,s);this._errorHandler(l)}return()=>{let s=this._stacks.get(e.value)||0;this._stacks.set(e.value,s-1)}}getMostFrequentStack(){if(!this._stacks)return;let e,t=0;for(let[r,i]of this._stacks)(!e||t<i)&&(e=[r,i],t=i);return e}},Dt=class n{constructor(e){this.value=e}static create(){let e=new Error;return new n(e.stack??"")}print(){console.warn(this.value.split(`
`).slice(2).join(`
`))}},tr=class extends Error{constructor(e,t){super(e),this.name="ListenerLeakError",this.stack=t}},nr=class extends Error{constructor(e,t){super(e),this.name="ListenerRefusalError",this.stack=t}},wa=0,pt=class{constructor(e){this.value=e;this.id=wa++}},Pa=2,Ra=(n,e)=>{if(n instanceof pt)e(n);else for(let t=0;t<n.length;t++){let r=n[t];r&&e(r)}},oe=class{constructor(e){this._size=0;this._options=e,this._leakageMon=Li>0||this._options?.leakWarningThreshold?new er(e?.onListenerError??Fe,this._options?.leakWarningThreshold??Li):void 0,this._perfMon=this._options?._profName?new Zn(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){if(!this._disposed){if(this._disposed=!0,this._deliveryQueue?.current===this&&this._deliveryQueue.reset(),this._listeners){if(ki){let e=this._listeners;queueMicrotask(()=>{Ra(e,t=>t.stack?.print())})}this._listeners=void 0,this._size=0}this._options?.onDidRemoveLastListener?.(),this._leakageMon?.dispose()}}get event(){return this._event??=(e,t,r)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){let l=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(l);let u=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],f=new nr(`${l}. HINT: Stack shows most frequent listener (${u[1]}-times)`,u[0]);return(this._options?.onListenerError||Fe)(f),ee.None}if(this._disposed)return ee.None;t&&(e=e.bind(t));let i=new pt(e),s,a;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(i.stack=Dt.create(),s=this._leakageMon.check(i.stack,this._size+1)),ki&&(i.stack=a??Dt.create()),this._listeners?this._listeners instanceof pt?(this._deliveryQueue??=new rr,this._listeners=[this._listeners,i]):this._listeners.push(i):(this._options?.onWillAddFirstListener?.(this),this._listeners=i,this._options?.onDidAddFirstListener?.(this)),this._options?.onDidAddListener?.(this),this._size++;let o=_e(()=>{s?.(),this._removeListener(i)});return ir(o,r),o},this._event}_removeListener(e){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(this._size===1){this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),this._size=0;return}let t=this._listeners,r=t.indexOf(e);if(r===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,t[r]=void 0;let i=this._deliveryQueue.current===this;if(this._size*Pa<=t.length){let s=0;for(let a=0;a<t.length;a++)t[a]?t[s++]=t[a]:i&&s<this._deliveryQueue.end&&(this._deliveryQueue.end--,s<this._deliveryQueue.i&&this._deliveryQueue.i--);t.length=s}}_deliver(e,t){if(!e)return;let r=this._options?.onListenerError||Fe;if(!r){e.value(t);return}try{e.value(t)}catch(i){r(i)}}_deliverQueue(e){let t=e.current._listeners;for(;e.i<e.end;)this._deliver(t[e.i++],e.value);e.reset()}fire(e){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners)if(this._listeners instanceof pt)this._deliver(this._listeners,e);else{let t=this._deliveryQueue;t.enqueue(this,e,this._listeners.length),this._deliverQueue(t)}this._perfMon?.stop()}hasListeners(){return this._size>0}},rr=class{constructor(){this.i=-1;this.end=0}enqueue(e,t,r){this.i=0,this.end=r,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}});var Ni,sr,mt,be,St=P(()=>{un();ft();Ni=Object.freeze(function(n,e){let t=setTimeout(n.bind(e),0);return{dispose(){clearTimeout(t)}}});(r=>{function n(i){return i===r.None||i===r.Cancelled||i instanceof mt?!0:!i||typeof i!="object"?!1:typeof i.isCancellationRequested=="boolean"&&typeof i.onCancellationRequested=="function"}r.isCancellationToken=n,r.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:ae.None}),r.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Ni})})(sr||={});mt=class{constructor(){this._isCancelled=!1;this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?Ni:(this._emitter||(this._emitter=new oe),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}},be=class{constructor(e){this._token=void 0;this._parentListener=void 0;this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new mt),this._token}cancel(){this._token?this._token instanceof mt&&this._token.cancel():this._token=sr.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof mt&&this._token.dispose():this._token=sr.None}}});var rt=P(()=>{});function Da(n){return n}var cn,Mi=P(()=>{St();cn=class{constructor(e,t){this.lastCache=void 0;this.lastArgKey=void 0;typeof e=="function"?(this._fn=e,this._computeKey=Da):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){let t=this._computeKey(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this._fn(e)),this.lastCache}}});var me,At=P(()=>{me=class{constructor(e){this.executor=e;this._state=0}get hasValue(){return this._state===2}get value(){if(this._state===0){this._state=1;try{this._value=this.executor()}catch(e){this._error=e}finally{this._state=2}}else if(this._state===1)throw new Error("Cannot read the value of a lazy that is being initialized");if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}});var Wi=P(()=>{});function or(n){return n.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function Ki(n,e){if(!n||!e)return n;let t=e.length,r=0;if(t===1){let i=e.charCodeAt(0);for(;r<n.length&&n.charCodeAt(r)===i;)r++}else for(;n.startsWith(e,r);)r+=t;return n.substring(r)}function ar(n,e){if(!n||!e)return n;let t=e.length,r=n.length;if(t===1){let s=r,a=e.charCodeAt(0);for(;s>0&&n.charCodeAt(s-1)===a;)s--;return n.substring(0,s)}let i=r;for(;i>0&&n.endsWith(e,i);)i-=t;return n.substring(0,i)}function Ot(n,e){return n<e?-1:n>e?1:0}function dn(n,e,t=0,r=n.length,i=0,s=e.length){for(;t<r&&i<s;t++,i++){let l=n.charCodeAt(t),u=e.charCodeAt(i);if(l<u)return-1;if(l>u)return 1}let a=r-t,o=s-i;return a<o?-1:a>o?1:0}function lr(n,e){return it(n,e,0,n.length,0,e.length)}function it(n,e,t=0,r=n.length,i=0,s=e.length){for(;t<r&&i<s;t++,i++){let l=n.charCodeAt(t),u=e.charCodeAt(i);if(l===u)continue;if(l>=128||u>=128)return dn(n.toLowerCase(),e.toLowerCase(),t,r,i,s);Vi(l)&&(l-=32),Vi(u)&&(u-=32);let f=l-u;if(f!==0)return f}let a=r-t,o=s-i;return a<o?-1:a>o?1:0}function Vi(n){return n>=97&&n<=122}function st(n,e){return n.length===e.length&&it(n,e)===0}function kt(n,e){let t=e.length;return t<=n.length&&it(n,e,0,t)===0}function qi(n,e){let t=n.length,r=t-e.length;return r>=0&&it(n,e,r,t)===0}function Oa(){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,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}var Sa,Aa,Fa,Pu,Ru,Bi,Ci,$i,$e=P(()=>{Mi();rt();At();Wi();Sa=/(?:\x1b\[|\x9b)[=?>!]?[\d;:]*["$#'* ]?[a-zA-Z@^`{}|~]/,Aa=/(?:\x1b\]|\x9d).*?(?:\x1b\\|\x07|\x9c)/,Fa=/\x1b(?:[ #%\(\)\*\+\-\.\/]?[a-zA-Z0-9\|}~@])/,Pu=new RegExp("(?:"+[Sa.source,Aa.source,Fa.source].join("|")+")","g"),Ru=String.fromCharCode(65279),Bi=class n{static{this._INSTANCE=null}static getInstance(){return n._INSTANCE||(n._INSTANCE=new n),n._INSTANCE}constructor(){this._data=Oa()}getGraphemeBreakType(e){if(e<32)return e===10?3:e===13?2:4;if(e<127)return 0;let t=this._data,r=t.length/3,i=1;for(;i<=r;)if(e<t[3*i])i=2*i;else if(e>t[3*i+1])i=2*i+1;else return t[3*i+2];return 0}};Ci=class n{constructor(e){this.confusableDictionary=e}static{this.ambiguousCharacterData=new me(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,1523,96,8242,96,1370,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,118002,50,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,118003,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,118004,52,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,118005,53,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,118006,54,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,118007,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,118008,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,118009,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,117974,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,117975,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71913,67,71922,67,65315,67,8557,67,8450,67,8493,67,117976,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,117977,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,117978,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,117979,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,117980,71,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,117981,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,117983,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,117984,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,118001,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,117982,108,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,117985,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,117986,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,117987,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,118000,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,117988,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,117989,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,117990,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,117991,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,117992,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,117993,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,117994,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,117995,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71910,87,71919,87,117996,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,117997,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,117998,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,71909,90,66293,90,65338,90,8484,90,8488,90,117999,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65283,35,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"cs":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"es":[8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"fr":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"it":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"ja":[8211,45,8218,44,65281,33,8216,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65292,44,65297,49,65307,59],"ko":[8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"pt-BR":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"ru":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"zh-hans":[160,32,65374,126,8218,44,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65297,49],"zh-hant":[8211,45,65374,126,8218,44,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89]}'))}static{this.cache=new cn(e=>{let t=e.split(",");function r(c){let d=new Map;for(let p=0;p<c.length;p+=2)d.set(c[p],c[p+1]);return d}function i(c,d){let p=new Map(c);for(let[m,x]of d)p.set(m,x);return p}function s(c,d){if(!c)return d;let p=new Map;for(let[m,x]of c)d.has(m)&&p.set(m,x);return p}let a=this.ambiguousCharacterData.value,o=t.filter(c=>!c.startsWith("_")&&Object.hasOwn(a,c));o.length===0&&(o=["_default"]);let l;for(let c of o){let d=r(a[c]);l=s(l,d)}let u=r(a._common),f=i(u,l);return new n(f)})}static getInstance(e){return n.cache.get(Array.from(e).join(","))}static{this._locales=new me(()=>Object.keys(n.ambiguousCharacterData.value).filter(e=>!e.startsWith("_")))}static getLocales(){return n._locales.value}isAmbiguous(e){return this.confusableDictionary.has(e)}containsAmbiguousCharacter(e){for(let t=0;t<e.length;t++){let r=e.codePointAt(t);if(typeof r=="number"&&this.isAmbiguous(r))return!0}return!1}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}},$i=class n{static getRawData(){return JSON.parse('{"_common":[11,12,13,127,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999],"cs":[173,8203,12288],"de":[173,8203,12288],"es":[8203,12288],"fr":[173,8203,12288],"it":[160,173,12288],"ja":[173],"ko":[173,12288],"pl":[173,8203,12288],"pt-BR":[173,8203,12288],"qps-ploc":[160,173,8203,12288],"ru":[173,12288],"tr":[160,173,8203,12288],"zh-hans":[160,173,8203,12288],"zh-hant":[173,12288]}')}static{this._data=void 0}static getData(){return this._data||(this._data=new Set([...Object.values(n.getRawData())].flat())),this._data}static isInvisibleCharacter(e){return n.getData().has(e)}static containsInvisibleCharacter(e){for(let t=0;t<e.length;t++){let r=e.codePointAt(t);if(typeof r=="number"&&(n.isInvisibleCharacter(r)||r===32))return!0}return!1}static get codePoints(){return n.getData()}}});function Ke(n){return n===47||n===92}function ur(n){return n.replace(/[\\/]/g,F.sep)}function ji(n){return n.indexOf("/")===-1&&(n=ur(n)),/^[a-zA-Z]:(\/|$)/.test(n)&&(n="/"+n),n}function cr(n,e=F.sep){if(!n)return"";let t=n.length,r=n.charCodeAt(0);if(Ke(r)){if(Ke(n.charCodeAt(1))&&!Ke(n.charCodeAt(2))){let s=3,a=s;for(;s<t&&!Ke(n.charCodeAt(s));s++);if(a!==s&&!Ke(n.charCodeAt(s+1))){for(s+=1;s<t;s++)if(Ke(n.charCodeAt(s)))return n.slice(0,s+1).replace(/[\\/]/g,e)}}return e}else if(zi(r)&&n.charCodeAt(1)===58)return Ke(n.charCodeAt(2))?n.slice(0,2)+e:n.slice(0,2);let i=n.indexOf("://");if(i!==-1){for(i+=3;i<t;i++)if(Ke(n.charCodeAt(i)))return n.slice(0,i+1)}return""}function Gi(n){if(!V||!n||n.length<5)return!1;let e=n.charCodeAt(0);if(e!==92||(e=n.charCodeAt(1),e!==92))return!1;let t=2,r=t;for(;t<n.length&&(e=n.charCodeAt(t),e!==92);t++);return!(r===t||(e=n.charCodeAt(t+1),isNaN(e)||e===92))}function dr(n,e,t){let r=n===e;return!t||r?r:!n||!e?!1:st(n,e)}function Oe(n,e,t,r=X){if(n===e)return!0;if(!n||!e||e.length>n.length)return!1;if(t){if(!kt(n,e))return!1;if(e.length===n.length)return!0;let s=e.length;return e.charAt(e.length-1)===r&&s--,n.charAt(s)===r}return e.charAt(e.length-1)!==r&&(e+=r),n.indexOf(e)===0}function zi(n){return n>=65&&n<=90||n>=97&&n<=122}function fr(n){let e=ut(n);return V?n.length>3?!1:ka(e)&&(n.length===2||e.charCodeAt(2)===92):e===F.sep}function ka(n,e=V){return e?zi(n.charCodeAt(0))&&n.charCodeAt(1)===58:!1}function xe(n,e,t=8){let r="";for(let s=0;s<t;s++){let a;s===0&&V&&!e&&(t===3||t===4)?a=Ua:a=La,r+=a.charAt(Math.floor(Math.random()*a.length))}let i;return e?i=`${e}-${r}`:i=r,n?W(n,i):i}var La,Ua,qe=P(()=>{rt();de();Z();$e();an();La="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",Ua="BDEFGHIJKMOQRSTUVWXYZbdefghijkmoqrstuvwxyz0123456789"});var Hi=P(()=>{});function Ba(n,e){if(!n.scheme&&e)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${n.authority}", path: "${n.path}", query: "${n.query}", fragment: "${n.fragment}"}`);if(n.scheme&&!Ma.test(n.scheme)){let t=[...n.scheme.matchAll(/[^\w\d+.-]/gu)],r=t.length>0?` Found '${t[0][0]}' at index ${t[0].index} (${t.length} total)`:"";throw new Error(`[UriError]: Scheme contains illegal characters.${r} (len:${n.scheme.length})`)}if(n.path){if(n.authority){if(!Wa.test(n.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(Va.test(n.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function Ca(n,e){return!n&&!e?"file":n}function $a(n,e){switch(n){case"https":case"http":case"file":e?e[0]!==ve&&(e=ve+e):e=ve;break}return e}function Qi(n,e,t){let r,i=-1;for(let s=0;s<n.length;s++){let a=n.charCodeAt(s);if(a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||a===45||a===46||a===95||a===126||e&&a===47||t&&a===91||t&&a===93||t&&a===58)i!==-1&&(r+=encodeURIComponent(n.substring(i,s)),i=-1),r!==void 0&&(r+=n.charAt(s));else{r===void 0&&(r=n.substr(0,s));let o=Xi[a];o!==void 0?(i!==-1&&(r+=encodeURIComponent(n.substring(i,s)),i=-1),r+=o):i===-1&&(i=s)}}return i!==-1&&(r+=encodeURIComponent(n.substring(i))),r!==void 0?r:n}function qa(n){let e;for(let t=0;t<n.length;t++){let r=n.charCodeAt(t);r===35||r===63?(e===void 0&&(e=n.substr(0,t)),e+=Xi[r]):e!==void 0&&(e+=n[t])}return e!==void 0?e:n}function Lt(n,e){let t;return n.authority&&n.path.length>1&&n.scheme==="file"?t=`//${n.authority}${n.path}`:n.path.charCodeAt(0)===47&&(n.path.charCodeAt(1)>=65&&n.path.charCodeAt(1)<=90||n.path.charCodeAt(1)>=97&&n.path.charCodeAt(1)<=122)&&n.path.charCodeAt(2)===58?e?t=n.path.substr(1):t=n.path[1].toLowerCase()+n.path.substr(2):t=n.path,V&&(t=t.replace(/\//g,"\\")),t}function pr(n,e){let t=e?qa:Qi,r="",{scheme:i,authority:s,path:a,query:o,fragment:l}=n;if(i&&(r+=i,r+=":"),(s||i==="file")&&(r+=ve,r+=ve),s){let u=s.indexOf("@");if(u!==-1){let f=s.substr(0,u);s=s.substr(u+1),u=f.lastIndexOf(":"),u===-1?r+=t(f,!1,!1):(r+=t(f.substr(0,u),!1,!1),r+=":",r+=t(f.substr(u+1),!1,!0)),r+="@"}s=s.toLowerCase(),u=s.lastIndexOf(":"),u===-1?r+=t(s,!1,!0):(r+=t(s.substr(0,u),!1,!0),r+=s.substr(u))}if(a){if(a.length>=3&&a.charCodeAt(0)===47&&a.charCodeAt(2)===58){let u=a.charCodeAt(1);u>=65&&u<=90&&(a=`/${String.fromCharCode(u+32)}:${a.substr(3)}`)}else if(a.length>=2&&a.charCodeAt(1)===58){let u=a.charCodeAt(0);u>=65&&u<=90&&(a=`${String.fromCharCode(u+32)}:${a.substr(2)}`)}r+=t(a,!0,!1)}return o&&(r+="?",r+=t(o,!1,!1)),l&&(r+="#",r+=e?l:Qi(l,!1,!1)),r}function Zi(n){try{return decodeURIComponent(n)}catch{return n.length>3?n.substr(0,3)+Zi(n.substr(3)):n}}function fn(n){return n.match(Yi)?n.replace(Yi,e=>Zi(e)):n}var Ma,Wa,Va,B,ve,Ka,K,Ji,je,Xi,Yi,Ge=P(()=>{rt();Hi();de();Z();Ma=/^\w[\w\d+.-]*$/,Wa=/^\//,Va=/^\/\//;B="",ve="/",Ka=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,K=class n{static isUri(e){return e instanceof n?!0:!e||typeof e!="object"?!1:typeof e.authority=="string"&&typeof e.fragment=="string"&&typeof e.path=="string"&&typeof e.query=="string"&&typeof e.scheme=="string"&&typeof e.fsPath=="string"&&typeof e.with=="function"&&typeof e.toString=="function"}constructor(e,t,r,i,s,a=!1){typeof e=="object"?(this.scheme=e.scheme||B,this.authority=e.authority||B,this.path=e.path||B,this.query=e.query||B,this.fragment=e.fragment||B):(this.scheme=Ca(e,a),this.authority=t||B,this.path=$a(this.scheme,r||B),this.query=i||B,this.fragment=s||B,Ba(this,a))}get fsPath(){return Lt(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:r,path:i,query:s,fragment:a}=e;return t===void 0?t=this.scheme:t===null&&(t=B),r===void 0?r=this.authority:r===null&&(r=B),i===void 0?i=this.path:i===null&&(i=B),s===void 0?s=this.query:s===null&&(s=B),a===void 0?a=this.fragment:a===null&&(a=B),t===this.scheme&&r===this.authority&&i===this.path&&s===this.query&&a===this.fragment?this:new je(t,r,i,s,a)}static parse(e,t=!1){let r=Ka.exec(e);return r?new je(r[2]||B,fn(r[4]||B),fn(r[5]||B),fn(r[7]||B),fn(r[9]||B),t):new je(B,B,B,B,B)}static file(e){let t=B;if(V&&(e=e.replace(/\\/g,ve)),e[0]===ve&&e[1]===ve){let r=e.indexOf(ve,2);r===-1?(t=e.substring(2),e=ve):(t=e.substring(2,r),e=e.substring(r)||ve)}return new je("file",t,e,B,B)}static from(e,t){return new je(e.scheme,e.authority,e.path,e.query,e.fragment,t)}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let r;return V&&e.scheme==="file"?r=n.file(j.join(Lt(e,!0),...t)).path:r=F.join(e.path,...t),e.with({path:r})}toString(e=!1){return pr(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof n)return e;{let t=new je(e);return t._formatted=e.external??null,t._fsPath=e._sep===Ji?e.fsPath??null:null,t}}else return e}[Symbol.for("debug.description")](){return`URI(${this.toString()})`}},Ji=V?1:void 0,je=class extends K{constructor(){super(...arguments);this._formatted=null;this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=Lt(this,!1)),this._fsPath}toString(t=!1){return t?pr(this,!0):(this._formatted||(this._formatted=pr(this,!1)),this._formatted)}toJSON(){let t={$mid:1};return this._fsPath&&(t.fsPath=this._fsPath,t._sep=Ji),this._formatted&&(t.external=this._formatted),this.path&&(t.path=this.path),this.scheme&&(t.scheme=this.scheme),this.authority&&(t.authority=this.authority),this.query&&(t.query=this.query),this.fragment&&(t.fragment=this.fragment),t}},Xi={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};Yi=/(%[0-9A-Za-z][0-9A-Za-z])+/g});function za(n){return`${n.quality??"oss"}-${n.commit??"dev"}`}var H,ja,mr,Ga,Ha,hr,es,$u,Ku,Qa,pn=P(()=>{tt();Z();$e();Ge();de();(D=>(D.inMemory="inmemory",D.vscode="vscode",D.internal="private",D.walkThrough="walkThrough",D.walkThroughSnippet="walkThroughSnippet",D.http="http",D.https="https",D.file="file",D.mailto="mailto",D.untitled="untitled",D.data="data",D.command="command",D.vscodeRemote="vscode-remote",D.vscodeRemoteResource="vscode-remote-resource",D.vscodeManagedRemoteResource="vscode-managed-remote-resource",D.vscodeUserData="vscode-userdata",D.vscodeCustomEditor="vscode-custom-editor",D.vscodeNotebookCell="vscode-notebook-cell",D.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",D.vscodeNotebookCellMetadataDiff="vscode-notebook-cell-metadata-diff",D.vscodeNotebookCellOutput="vscode-notebook-cell-output",D.vscodeNotebookCellOutputDiff="vscode-notebook-cell-output-diff",D.vscodeNotebookMetadata="vscode-notebook-metadata",D.vscodeInteractiveInput="vscode-interactive-input",D.vscodeSettings="vscode-settings",D.vscodeWorkspaceTrust="vscode-workspace-trust",D.vscodeTerminal="vscode-terminal",D.vscodeChatCodeBlock="vscode-chat-code-block",D.vscodeChatCodeCompareBlock="vscode-chat-code-compare-block",D.vscodeChatEditor="vscode-chat-editor",D.vscodeChatInput="chatSessionInput",D.vscodeLocalChatSession="vscode-chat-session",D.webviewPanel="webview-panel",D.vscodeWebview="vscode-webview",D.vscodeBrowser="vscode-browser",D.extension="extension",D.vscodeFileResource="vscode-file",D.tmp="tmp",D.vsls="vsls",D.vscodeSourceControl="vscode-scm",D.commentsInput="comment",D.codeSetting="code-setting",D.outputChannel="output",D.accessibleView="accessible-view",D.chatEditingSnapshotScheme="chat-editing-snapshot-text-model",D.chatEditingModel="chat-editing-text-model",D.copilotPr="copilot-pr"))(H||={});ja="tkn",mr=class{constructor(){this._hosts=Object.create(null);this._ports=Object.create(null);this._connectionTokens=Object.create(null);this._preferredWebSchema="http";this._delegate=null;this._serverRootPath="/"}setPreferredWebSchema(e){this._preferredWebSchema=e}setDelegate(e){this._delegate=e}setServerRootPath(e,t){this._serverRootPath=F.join(t??"/",za(e))}getServerRootPath(){return this._serverRootPath}get _remoteResourcesPath(){return F.join(this._serverRootPath,H.vscodeRemoteResource)}set(e,t,r){this._hosts[e]=t,this._ports[e]=r}setConnectionToken(e,t){this._connectionTokens[e]=t}getPreferredWebSchema(){return this._preferredWebSchema}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(o){return Fe(o),e}let t=e.authority,r=this._hosts[t];r&&r.indexOf(":")!==-1&&r.indexOf("[")===-1&&(r=`[${r}]`);let i=this._ports[t],s=this._connectionTokens[t],a=`path=${encodeURIComponent(e.path)}`;return typeof s=="string"&&(a+=`&${ja}=${encodeURIComponent(s)}`),K.from({scheme:Nn?this._preferredWebSchema:H.vscodeRemoteResource,authority:`${r}:${i}`,path:this._remoteResourcesPath,query:a})}},Ga=new mr;Ha="vscode-app",hr=class n{static{this.FALLBACK_AUTHORITY=Ha}asBrowserUri(e){let t=this.toUri(e);return this.uriToBrowserUri(t)}uriToBrowserUri(e){return e.scheme===H.vscodeRemote?Ga.rewrite(e):e.scheme===H.file&&(ni||ri===`${H.vscodeFileResource}://${n.FALLBACK_AUTHORITY}`)?e.with({scheme:H.vscodeFileResource,authority:e.authority||n.FALLBACK_AUTHORITY,query:null,fragment:null}):e}asFileUri(e){let t=this.toUri(e);return this.uriToFileUri(t)}uriToFileUri(e){return e.scheme===H.vscodeFileResource?e.with({scheme:H.file,authority:e.authority!==n.FALLBACK_AUTHORITY?e.authority:null,query:null,fragment:null}):e}toUri(e){if(K.isUri(e))return e;if(globalThis._VSCODE_FILE_ROOT){let t=globalThis._VSCODE_FILE_ROOT;if(/^\w[\w\d+.-]*:\/\//.test(t))return K.joinPath(K.parse(t,!0),e);let r=W(t,e);return K.file(r)}throw new Error("Cannot determine URI for module id!")}},es=new hr,$u=Object.freeze({"Cache-Control":"no-cache, no-store"}),Ku=Object.freeze({"Document-Policy":"include-js-call-stacks-in-crash-reports"});(s=>{let n=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);s.CoopAndCoep=Object.freeze(n.get("3"));let t="vscode-coi";function r(a){let o;typeof a=="string"?o=new URL(a).searchParams:a instanceof URL?o=a.searchParams:K.isUri(a)&&(o=new URL(a.toString(!0)).searchParams);let l=o?.get(t);if(l)return n.get(l)}s.getHeadersFromQuery=r;function i(a,o,l){if(!globalThis.crossOriginIsolated)return;let u=o&&l?"3":l?"2":"1";a instanceof URLSearchParams?a.set(t,u):a[t]=u}s.addSearchParam=i})(Qa||={})});function ke(n){return Lt(n,!0)}var Ut,U,rs,Yu,Ju,Xu,Zu,ec,Ya,tc,nc,gr,rc,ic,sc,oc,ts,ns,ac,lc,Ja,mn=P(()=>{rt();qe();pn();de();Z();$e();Ge();Ut=class{constructor(e){this._ignorePathCasing=e}compare(e,t,r=!1){return e===t?0:Ot(this.getComparisonKey(e,r),this.getComparisonKey(t,r))}isEqual(e,t,r=!1){return e===t?!0:!e||!t?!1:this.getComparisonKey(e,r)===this.getComparisonKey(t,r)}getComparisonKey(e,t=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}ignorePathCasing(e){return this._ignorePathCasing(e)}isEqualOrParent(e,t,r=!1){if(e.scheme===t.scheme){if(e.scheme===H.file)return Oe(ke(e),ke(t),this._ignorePathCasing(e))&&e.query===t.query&&(r||e.fragment===t.fragment);if(ts(e.authority,t.authority))return Oe(e.path,t.path,this._ignorePathCasing(e),"/")&&e.query===t.query&&(r||e.fragment===t.fragment)}return!1}joinPath(e,...t){return K.joinPath(e,...t)}basenameOrAuthority(e){return Ya(e)||e.authority}basename(e){return F.basename(e.path)}extname(e){return F.extname(e.path)}dirname(e){if(e.path.length===0)return e;let t;return e.scheme===H.file?t=K.file(ye(ke(e))).path:(t=F.dirname(e.path),e.authority&&t.length&&t.charCodeAt(0)!==47&&(console.error(`dirname("${e.toString})) resulted in a relative path`),t="/")),e.with({path:t})}normalizePath(e){if(!e.path.length)return e;let t;return e.scheme===H.file?t=K.file(ut(ke(e))).path:t=F.normalize(e.path),e.with({path:t})}relativePath(e,t){if(e.scheme!==t.scheme||!ts(e.authority,t.authority))return;if(e.scheme===H.file){let s=ai(ke(e),ke(t));return V?ur(s):s}let r=e.path||"/",i=t.path||"/";if(this._ignorePathCasing(e)){let s=0;for(let a=Math.min(r.length,i.length);s<a&&!(r.charCodeAt(s)!==i.charCodeAt(s)&&r.charAt(s).toLowerCase()!==i.charAt(s).toLowerCase());s++);r=i.substr(0,s)+r.substr(s)}return F.relative(r,i)}resolvePath(e,t){if(e.scheme===H.file){let r=K.file(en(ke(e),t));return e.with({authority:r.authority,path:r.path})}return t=ji(t),e.with({path:F.resolve(e.path,t)})}isAbsolutePath(e){return!!e.path&&e.path[0]==="/"}isEqualAuthority(e,t){return e===t||e!==void 0&&t!==void 0&&st(e,t)}hasTrailingPathSeparator(e,t=X){if(e.scheme===H.file){let r=ke(e);return r.length>cr(r).length&&r[r.length-1]===t}else{let r=e.path;return r.length>1&&r.charCodeAt(r.length-1)===47&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e,t=X){return ns(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,t=X){let r=!1;if(e.scheme===H.file){let i=ke(e);r=i!==void 0&&i.length===cr(i).length&&i[i.length-1]===t}else{t="/";let i=e.path;r=i.length===1&&i.charCodeAt(i.length-1)===47}return!r&&!ns(e,t)?e.with({path:e.path+"/"}):e}},U=new Ut(()=>!1),rs=new Ut(n=>n.scheme===H.file?!re:!0),Yu=new Ut(n=>!0),Ju=U.isEqual.bind(U),Xu=U.isEqualOrParent.bind(U),Zu=U.getComparisonKey.bind(U),ec=U.basenameOrAuthority.bind(U),Ya=U.basename.bind(U),tc=U.extname.bind(U),nc=U.dirname.bind(U),gr=U.joinPath.bind(U),rc=U.normalizePath.bind(U),ic=U.relativePath.bind(U),sc=U.resolvePath.bind(U),oc=U.isAbsolutePath.bind(U),ts=U.isEqualAuthority.bind(U),ns=U.hasTrailingPathSeparator.bind(U),ac=U.removeTrailingPathSeparator.bind(U),lc=U.addTrailingPathSeparator.bind(U);(s=>{s.META_DATA_LABEL="label",s.META_DATA_DESCRIPTION="description",s.META_DATA_SIZE="size",s.META_DATA_MIME="mime";function i(a){let o=new Map;a.path.substring(a.path.indexOf(";")+1,a.path.lastIndexOf(";")).split(";").forEach(f=>{let[c,d]=f.split(":");c&&d&&o.set(c,d)});let u=a.path.substring(0,a.path.indexOf(";"));return u&&o.set(s.META_DATA_MIME,u),o}s.parseMetaData=i})(Ja||={})});var is=P(()=>{});function Tn(n){return!!n&&typeof n.then=="function"}function Xa(n){let e=new be,t=n(e.token),r=!1,i=new Promise((s,a)=>{let o=e.token.onCancellationRequested(()=>{r=!0,o.dispose(),a(new Ve)});Promise.resolve(t).then(l=>{o.dispose(),e.dispose(),r?Ri(l)&&l.dispose():s(l)},l=>{o.dispose(),e.dispose(),a(l)})});return new class{cancel(){e.cancel(),e.dispose()}then(s,a){return i.then(s,a)}catch(s){return this.then(void 0,s)}finally(s){return i.finally(s)}}}function yr(n,e){return e?new Promise((t,r)=>{let i=setTimeout(()=>{s.dispose(),t()},n),s=e.onCancellationRequested(()=>{clearTimeout(i),s.dispose(),r(new Ve)})}):Xa(t=>yr(n,t))}var vr,Nt,hn,gn,bn,vn,Za,br,ot,el,ss,Tr,os,ht=P(()=>{St();tt();un();ft();mn();Z();is();At();vr=class{constructor(e){this._size=0;this._isDisposed=!1;this.maxDegreeOfParalellism=e,this.outstandingPromises=[],this.runningPromises=0,this._onDrained=new oe}whenIdle(){return this.size>0?ae.toPromise(this.onDrained):Promise.resolve()}get onDrained(){return this._onDrained.event}get size(){return this._size}queue(e){if(this._isDisposed)throw new Error("Object has been disposed");return this._size++,new Promise((t,r)=>{this.outstandingPromises.push({factory:e,c:t,e:r}),this.consume()})}consume(){for(;this.outstandingPromises.length&&this.runningPromises<this.maxDegreeOfParalellism;){let e=this.outstandingPromises.shift();this.runningPromises++;let t=e.factory();t.then(e.c,e.e),t.then(()=>this.consumed(),()=>this.consumed())}}consumed(){this._isDisposed||(this.runningPromises--,--this._size===0&&this._onDrained.fire(),this.outstandingPromises.length>0&&this.consume())}clear(){if(this._isDisposed)throw new Error("Object has been disposed");this.outstandingPromises.length=0,this._size=this.runningPromises}dispose(){this._isDisposed=!0,this.outstandingPromises.length=0,this._size=0,this._onDrained.dispose()}},Nt=class extends vr{constructor(){super(1)}},hn=class{constructor(){this.queues=new Map;this.drainers=new Set;this.drainListeners=void 0;this.drainListenerCount=0}async whenDrained(){if(this.isDrained())return;let e=new ot;return this.drainers.add(e),e.p}isDrained(){for(let[,e]of this.queues)if(e.size>0)return!1;return!0}queueSize(e,t=U){let r=t.getComparisonKey(e);return this.queues.get(r)?.size??0}queueFor(e,t,r=U){let i=r.getComparisonKey(e),s=this.queues.get(i);if(!s){s=new Nt;let a=this.drainListenerCount++,o=ae.once(s.onDrained)(()=>{s?.dispose(),this.queues.delete(i),this.onDidQueueDrain(),this.drainListeners?.deleteAndDispose(a),this.drainListeners?.size===0&&(this.drainListeners.dispose(),this.drainListeners=void 0)});this.drainListeners||(this.drainListeners=new wt),this.drainListeners.set(a,o),this.queues.set(i,s)}return s.queue(t)}onDidQueueDrain(){this.isDrained()&&this.releaseDrainers()}releaseDrainers(){for(let e of this.drainers)e.complete();this.drainers.clear()}dispose(){for(let[,e]of this.queues)e.dispose();this.queues.clear(),this.releaseDrainers(),this.drainListeners?.dispose()}},gn=class{constructor(e,t){this.timeoutToken=void 0,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=void 0)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return this.timeoutToken!==void 0}flush(){this.isScheduled()&&(this.cancel(),this.doRun())}onTimeout(){this.timeoutToken=void 0,this.runner&&this.doRun()}doRun(){this.runner?.()}},bn=class extends gn{constructor(t,r){super(t,r);this.units=[]}work(t){this.units.push(t),this.isScheduled()||this.schedule()}doRun(){let t=this.units;this.units=[],this.runner?.(t)}dispose(){this.units=[],super.dispose()}},vn=class extends ee{constructor(t,r){super();this.options=t;this.handler=r;this.pendingWork=[];this.throttler=this._register(new dt);this.disposed=!1;this.lastExecutionTime=0}get pending(){return this.pendingWork.length}work(t){if(this.disposed)return!1;if(typeof this.options.maxBufferedWork=="number"){if(this.throttler.value){if(this.pending+t.length>this.options.maxBufferedWork)return!1}else if(this.pending+t.length-this.options.maxWorkChunkSize>this.options.maxBufferedWork)return!1}for(let i of t)this.pendingWork.push(i);let r=Date.now()-this.lastExecutionTime;return!this.throttler.value&&(!this.options.waitThrottleDelayBetweenWorkUnits||r>=this.options.throttleDelay)?this.doWork():!this.throttler.value&&this.options.waitThrottleDelayBetweenWorkUnits&&this.scheduleThrottler(Math.max(this.options.throttleDelay-r,0)),!0}doWork(){this.lastExecutionTime=Date.now(),this.handler(this.pendingWork.splice(0,this.options.maxWorkChunkSize)),this.pendingWork.length>0&&this.scheduleThrottler()}scheduleThrottler(t=this.options.throttleDelay){this.throttler.value=new gn(()=>{this.throttler.clear(),this.doWork()},t),this.throttler.value.schedule()}dispose(){super.dispose(),this.pendingWork.length=0,this.disposed=!0}};(function(){let n=globalThis;typeof n.requestIdleCallback!="function"||typeof n.cancelIdleCallback!="function"?br=(e,t,r)=>{ii(()=>{if(i)return;let s=Date.now()+15;t(Object.freeze({didTimeout:!0,timeRemaining(){return Math.max(0,s-Date.now())}}))});let i=!1;return{dispose(){i||(i=!0)}}}:br=(e,t,r)=>{let i=e.requestIdleCallback(t,typeof r=="number"?{timeout:r}:void 0),s=!1;return{dispose(){s||(s=!0,e.cancelIdleCallback(i))}}},Za=(e,t)=>br(globalThis,e,t)})();ot=class n{static fromPromise(e){let t=new n;return t.settleWith(e),t}get isRejected(){return this.outcome?.outcome===1}get isResolved(){return this.outcome?.outcome===0}get isSettled(){return!!this.outcome}get value(){return this.outcome?.outcome===0?this.outcome?.value:void 0}constructor(){this.p=new Promise((e,t)=>{this.completeCallback=e,this.errorCallback=t})}complete(e){return this.isSettled?Promise.resolve():new Promise(t=>{this.completeCallback(e),this.outcome={outcome:0,value:e},t()})}error(e){return this.isSettled?Promise.resolve():new Promise(t=>{this.errorCallback(e),this.outcome={outcome:1,value:e},t()})}settleWith(e){return e.then(t=>this.complete(t),t=>this.error(t))}cancel(){return this.error(new Ve)}};(t=>{async function n(r){let i,s=await Promise.all(r.map(a=>a.then(o=>o,o=>{i||(i=o)})));if(typeof i<"u")throw i;return s}t.settled=n;function e(r){return new Promise(async(i,s)=>{try{await r(i,s)}catch(a){s(a)}})}t.withAsyncBody=e})(el||={});ss=class n{static fromArray(e){return new n(t=>{t.emitMany(e)})}static fromPromise(e){return new n(async t=>{t.emitMany(await e)})}static fromPromisesResolveOrder(e){return new n(async t=>{await Promise.all(e.map(async r=>t.emitOne(await r)))})}static merge(e){return new n(async t=>{await Promise.all(e.map(async r=>{for await(let i of r)t.emitOne(i)}))})}static{this.EMPTY=n.fromArray([])}constructor(e,t){this._state=0,this._results=[],this._error=null,this._onReturn=t,this._onStateChanged=new oe,queueMicrotask(async()=>{let r={emitOne:i=>this.emitOne(i),emitMany:i=>this.emitMany(i),reject:i=>this.reject(i)};try{await Promise.resolve(e(r)),this.resolve()}catch(i){this.reject(i)}finally{r.emitOne=void 0,r.emitMany=void 0,r.reject=void 0}})}[Symbol.asyncIterator](){let e=0;return{next:async()=>{do{if(this._state===2)throw this._error;if(e<this._results.length)return{done:!1,value:this._results[e++]};if(this._state===1)return{done:!0,value:void 0};await ae.toPromise(this._onStateChanged.event)}while(!0)},return:async()=>(this._onReturn?.(),{done:!0,value:void 0})}}static map(e,t){return new n(async r=>{for await(let i of e)r.emitOne(t(i))})}map(e){return n.map(this,e)}static filter(e,t){return new n(async r=>{for await(let i of e)t(i)&&r.emitOne(i)})}filter(e){return n.filter(this,e)}static coalesce(e){return n.filter(e,t=>!!t)}coalesce(){return n.coalesce(this)}static async toPromise(e){let t=[];for await(let r of e)t.push(r);return t}toPromise(){return n.toPromise(this)}emitOne(e){this._state===0&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){this._state===0&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(e){this._state===0&&(this._state=2,this._error=e,this._onStateChanged.fire())}},Tr=class{constructor(){this._unsatisfiedConsumers=[];this._unconsumedValues=[]}get hasFinalValue(){return!!this._finalValue}produce(e){if(this._ensureNoFinalValue(),this._unsatisfiedConsumers.length>0){let t=this._unsatisfiedConsumers.shift();this._resolveOrRejectDeferred(t,e)}else this._unconsumedValues.push(e)}produceFinal(e){this._ensureNoFinalValue(),this._finalValue=e;for(let t of this._unsatisfiedConsumers)this._resolveOrRejectDeferred(t,e);this._unsatisfiedConsumers.length=0}_ensureNoFinalValue(){if(this._finalValue)throw new Be("ProducerConsumer: cannot produce after final value has been set")}_resolveOrRejectDeferred(e,t){t.ok?e.complete(t.value):e.error(t.error)}consume(){if(this._unconsumedValues.length>0||this._finalValue){let e=this._unconsumedValues.length>0?this._unconsumedValues.shift():this._finalValue;return e.ok?Promise.resolve(e.value):Promise.reject(e.error)}else{let e=new ot;return this._unsatisfiedConsumers.push(e),e.p}}},os=class n{constructor(e,t){this._onReturn=t;this._producerConsumer=new Tr;this._iterator={next:()=>this._producerConsumer.consume(),return:()=>(this._onReturn?.(),Promise.resolve({done:!0,value:void 0})),throw:async e=>(this._finishError(e),{done:!0,value:void 0})};queueMicrotask(async()=>{let r=e({emitOne:i=>this._producerConsumer.produce({ok:!0,value:{done:!1,value:i}}),emitMany:i=>{for(let s of i)this._producerConsumer.produce({ok:!0,value:{done:!1,value:s}})},reject:i=>this._finishError(i)});if(!this._producerConsumer.hasFinalValue)try{await r,this._finishOk()}catch(i){this._finishError(i)}})}static fromArray(e){return new n(t=>{t.emitMany(e)})}static fromPromise(e){return new n(async t=>{t.emitMany(await e)})}static fromPromisesResolveOrder(e){return new n(async t=>{await Promise.all(e.map(async r=>t.emitOne(await r)))})}static merge(e){return new n(async t=>{await Promise.all(e.map(async r=>{for await(let i of r)t.emitOne(i)}))})}static{this.EMPTY=n.fromArray([])}static map(e,t){return new n(async r=>{for await(let i of e)r.emitOne(t(i))})}static tee(e){let t,r,i=new ot,s=async()=>{if(!(!t||!r))try{for await(let l of e)t.emitOne(l),r.emitOne(l)}catch(l){t.reject(l),r.reject(l)}finally{i.complete()}},a=new n(async l=>(t=l,s(),i.p)),o=new n(async l=>(r=l,s(),i.p));return[a,o]}map(e){return n.map(this,e)}static coalesce(e){return n.filter(e,t=>!!t)}coalesce(){return n.coalesce(this)}static filter(e,t){return new n(async r=>{for await(let i of e)t(i)&&r.emitOne(i)})}filter(e){return n.filter(this,e)}_finishOk(){this._producerConsumer.hasFinalValue||this._producerConsumer.produceFinal({ok:!0,value:{done:!0,value:void 0}})}_finishError(e){this._producerConsumer.hasFinalValue||this._producerConsumer.produceFinal({ok:!1,error:e})}[Symbol.asyncIterator](){return this._iterator}}});function Mt(n){return as(n,"NFC",tl)}function rl(n){return as(n,"NFD",nl)}function as(n,e,t){if(!n)return n;let r=t.get(n);if(r)return r;let i;return il.test(n)?i=n.normalize(e):i=n,t.set(n,i),i}var tl,nl,il,Rc,_r=P(()=>{sn();tl=new Ce(1e4);nl=new Ce(1e4);il=/[^\u0000-\u0080]/;Rc=(function(){let n=new Ce(1e4),e=/[\u0300-\u036f]/g;return function(t){let r=n.get(t);if(r)return r;let i=rl(t).replace(e,""),s=(i.length===t.length?i:t).toLowerCase();return n.set(t,s),s}})()});import*as I from"fs";import{tmpdir as sl}from"os";import{promisify as Wt}from"util";async function cs(n,e=0,t){if(fr(n))throw new Error("rimraf - will refuse to recursively delete root");return e===0?xr(n):ol(n,t)}async function ol(n,e=xe(sl())){try{try{await I.promises.rename(n,e)}catch(t){return t.code==="ENOENT"?void 0:xr(n)}xr(e).catch(()=>{})}catch(t){if(t.code!=="ENOENT")throw t}}async function xr(n){return I.promises.rm(n,{recursive:!0,force:!0,maxRetries:3})}async function yn(n,e){try{return await ls(n,e)}catch(t){if(t.code==="ENOENT"&&V&&fr(n))try{return await ls(`${n}.`,e)}catch{}throw t}}async function ls(n,e){return ll(await(e?al(n):I.promises.readdir(n)))}async function al(n){try{return await I.promises.readdir(n,{withFileTypes:!0})}catch(r){r.code!=="ENOENT"&&console.warn("[node.js fs] readdir with filetypes failed with error: ",r)}let e=[],t=await yn(n);for(let r of t){let i=!1,s=!1,a=!1;try{let o=await I.promises.lstat(W(n,r));i=o.isFile(),s=o.isDirectory(),a=o.isSymbolicLink()}catch(o){o.code!=="ENOENT"&&console.warn("[node.js fs] unexpected error from lstat after readdir: ",o)}e.push({name:r,isFile:()=>i,isDirectory:()=>s,isSymbolicLink:()=>a})}return e}function ll(n){return n.map(e=>typeof e=="string"?ge?Mt(e):e:(e.name=ge?Mt(e.name):e.name,e))}async function ul(n){let e=await yn(n),t=[];for(let r of e)await _n.existsDirectory(W(n,r))&&t.push(r);return t}function Ir(n,e=1e3){return new Promise(t=>{let r=!1,i=setInterval(()=>{r||(r=!0,I.access(n,s=>{r=!1,s&&(clearInterval(i),t(void 0))}))},e)})}function dl(n,e,t){return cl.queueFor(K.file(n),()=>{let r=fs(t);return new Promise((i,s)=>fl(n,e,r,a=>a?s(a):i()))},rs)}function ds(n){Er=n}function fl(n,e,t,r){if(!Er)return I.writeFile(n,e,{mode:t.mode,flag:t.flag},r);I.open(n,t.flag,t.mode,(i,s)=>{if(i)return r(i);I.writeFile(s,e,a=>{if(a)return I.close(s,()=>r(a));I.fdatasync(s,o=>(o&&(console.warn("[node.js fs] fdatasync is now disabled for this session because it failed: ",o),ds(!1)),I.close(s,l=>r(l))))})})}function at(n,e,t){let r=fs(t);if(!Er)return I.writeFileSync(n,e,{mode:r.mode,flag:r.flag});let i=I.openSync(n,r.flag,r.mode);try{I.writeFileSync(i,e);try{I.fdatasyncSync(i)}catch(s){console.warn("[node.js fs] fdatasyncSync is now disabled for this session because it failed: ",s),ds(!1)}}finally{I.closeSync(i)}}function fs(n){return n?{mode:typeof n.mode=="number"?n.mode:438,flag:typeof n.flag=="string"?n.flag:"w"}:{mode:438,flag:"w"}}async function pl(n,e,t=6e4){if(n!==e)try{V&&typeof t=="number"?await ps(n,e,Date.now(),t):await I.promises.rename(n,e)}catch(r){if(n.toLowerCase()!==e.toLowerCase()&&r.code==="EXDEV"||n.endsWith("."))await ms(n,e,{preserveSymlinks:!1}),await cs(n,1);else throw r}}async function ps(n,e,t,r,i=0){try{return await I.promises.rename(n,e)}catch(s){if(s.code!=="EACCES"&&s.code!=="EPERM"&&s.code!=="EBUSY")throw s;if(Date.now()-t>=r)throw console.error(`[node.js fs] rename failed after ${i} retries with error: ${s}`),s;if(i===0){let a=!1;try{let{stat:o}=await _n.stat(e);o.isFile()||(a=!0)}catch{}if(a)throw s}return await yr(Math.min(100,i*10)),ps(n,e,t,r,i+1)}}async function ms(n,e,t){return hs(n,e,{root:{source:n,target:e},options:t,handledSourcePaths:new Set})}async function hs(n,e,t){if(t.handledSourcePaths.has(n))return;t.handledSourcePaths.add(n);let{stat:r,symbolicLink:i}=await _n.stat(n);if(i){if(t.options.preserveSymlinks)try{return await gl(n,e,t)}catch{}if(i.dangling)return}return r.isDirectory()?ml(n,e,r.mode&us,t):hl(n,e,r.mode&us)}async function ml(n,e,t,r){await I.promises.mkdir(e,{recursive:!0,mode:t});let i=await yn(n);for(let s of i)await hs(W(n,s),W(e,s),r)}async function hl(n,e,t){await I.promises.copyFile(n,e),await I.promises.chmod(e,t)}async function gl(n,e,t){let r=await I.promises.readlink(n);Oe(r,t.root.source,!re)&&(r=W(t.root.target,r.substr(t.root.source.length+1))),await I.promises.symlink(r,e)}async function bl(n){try{return await Wt(I.realpath)(n)}catch{let e=vl(n);return await I.promises.access(e,I.constants.R_OK),e}}function vl(n){return ar(ut(n),X)}var _n,cl,Er,us,le,xn=P(()=>{ht();qe();_r();de();Z();mn();Ge();$e();(r=>{async function n(i){let s;try{if(s=await I.promises.lstat(i),!s.isSymbolicLink())return{stat:s}}catch{}try{return{stat:await I.promises.stat(i),symbolicLink:s?.isSymbolicLink()?{dangling:!1}:void 0}}catch(a){if(a.code==="ENOENT"&&s)return{stat:s,symbolicLink:{dangling:!0}};if(V&&a.code==="EACCES")try{return{stat:await I.promises.stat(await I.promises.readlink(i)),symbolicLink:{dangling:!1}}}catch(o){if(o.code==="ENOENT"&&s)return{stat:s,symbolicLink:{dangling:!0}};throw o}throw a}}r.stat=n;async function e(i){try{let{stat:s,symbolicLink:a}=await r.stat(i);return s.isFile()&&a?.dangling!==!0}catch{}return!1}r.existsFile=e;async function t(i){try{let{stat:s,symbolicLink:a}=await r.stat(i);return s.isDirectory()&&a?.dangling!==!0}catch{}return!1}r.existsDirectory=t})(_n||={});cl=new hn;Er=!0;us=511;le=new class{get read(){return(n,e,t,r,i)=>new Promise((s,a)=>{I.read(n,e,t,r,i,(o,l,u)=>o?a(o):s({bytesRead:l,buffer:u}))})}get write(){return(n,e,t,r,i)=>new Promise((s,a)=>{I.write(n,e,t,r,i,(o,l,u)=>o?a(o):s({bytesWritten:l,buffer:u}))})}get fdatasync(){return Wt(I.fdatasync)}get open(){return Wt(I.open)}get close(){return Wt(I.close)}get ftruncate(){return Wt(I.ftruncate)}async exists(n){try{return await I.promises.access(n),!0}catch{return!1}}get readdir(){return yn}get readDirsInDir(){return ul}get writeFile(){return dl}get rm(){return cs}get rename(){return pl}get copy(){return ms}get realpath(){return bl}}});function bs(){return 1025+Math.floor(64510*Math.random())}var vs=P(()=>{});import*as Pr from"net";function In(n,e,t,r=1){let i=!1;return new Promise(s=>{let a=setTimeout(()=>{if(!i)return i=!0,s(0)},t);wr(n,e,r,o=>{if(!i)return i=!0,clearTimeout(a),s(o)})})}function wr(n,e,t,r){if(e===0)return r(0);let i=new Pr.Socket;i.once("connect",()=>(Ts(i),wr(n+t,e-1,t,r))),i.once("data",()=>{}),i.once("error",s=>(Ts(i),s.code!=="ECONNREFUSED"?wr(n+t,e-1,t,r):r(n))),i.connect(n,"127.0.0.1")}function Ts(n){try{n.removeAllListeners("connect"),n.removeAllListeners("error"),n.end(),n.destroy(),n.unref()}catch(e){console.error(e)}}var ys=P(()=>{});var Rr,Dr,En,Sr,Ue,gt,bt,_s=P(()=>{nn();Hn();rt();$e();Rr=class{constructor(){this._value="";this._pos=0}reset(e){return this._value=e,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos<this._value.length-1}cmp(e){let t=e.charCodeAt(0),r=this._value.charCodeAt(this._pos);return t-r}value(){return this._value[this._pos]}},Dr=class{constructor(e=!0){this._caseSensitive=e}reset(e){return this._value=e,this._from=0,this._to=0,this.next()}hasNext(){return this._to<this._value.length}next(){this._from=this._to;let e=!0;for(;this._to<this._value.length;this._to++)if(this._value.charCodeAt(this._to)===46)if(e)this._from++;else break;else e=!1;return this}cmp(e){return this._caseSensitive?dn(e,this._value,0,e.length,this._from,this._to):it(e,this._value,0,e.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}},En=class{constructor(e=!0,t=!0){this._splitOnBackslash=e;this._caseSensitive=t}reset(e){this._from=0,this._to=0,this._value=e,this._valueLen=e.length;for(let t=e.length-1;t>=0;t--,this._valueLen--){let r=this._value.charCodeAt(t);if(!(r===47||this._splitOnBackslash&&r===92))break}return this.next()}hasNext(){return this._to<this._valueLen}next(){this._from=this._to;let e=!0;for(;this._to<this._valueLen;this._to++){let t=this._value.charCodeAt(this._to);if(t===47||this._splitOnBackslash&&t===92)if(e)this._from++;else break;else e=!1}return this}cmp(e){return this._caseSensitive?dn(e,this._value,0,e.length,this._from,this._to):it(e,this._value,0,e.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}},Sr=class{constructor(e,t){this._ignorePathCasing=e;this._ignoreQueryAndFragment=t;this._states=[];this._stateIdx=0}reset(e){return this._value=e,this._states=[],this._value.scheme&&this._states.push(1),this._value.authority&&this._states.push(2),this._value.path&&(this._pathIterator=new En(!1,!this._ignorePathCasing(e)),this._pathIterator.reset(e.path),this._pathIterator.value()&&this._states.push(3)),this._ignoreQueryAndFragment(e)||(this._value.query&&this._states.push(4),this._value.fragment&&this._states.push(5)),this._stateIdx=0,this}next(){return this._states[this._stateIdx]===3&&this._pathIterator.hasNext()?this._pathIterator.next():this._stateIdx+=1,this}hasNext(){return this._states[this._stateIdx]===3&&this._pathIterator.hasNext()||this._stateIdx<this._states.length-1}cmp(e){if(this._states[this._stateIdx]===1)return lr(e,this._value.scheme);if(this._states[this._stateIdx]===2)return lr(e,this._value.authority);if(this._states[this._stateIdx]===3)return this._pathIterator.cmp(e);if(this._states[this._stateIdx]===4)return Ot(e,this._value.query);if(this._states[this._stateIdx]===5)return Ot(e,this._value.fragment);throw new Error}value(){if(this._states[this._stateIdx]===1)return this._value.scheme;if(this._states[this._stateIdx]===2)return this._value.authority;if(this._states[this._stateIdx]===3)return this._pathIterator.value();if(this._states[this._stateIdx]===4)return this._value.query;if(this._states[this._stateIdx]===5)return this._value.fragment;throw new Error}},Ue=class n{static{this.Val=Symbol("undefined_placeholder")}static wrap(e){return e===void 0?n.Val:e}static unwrap(e){return e===n.Val?void 0:e}},gt=class{constructor(){this.height=1;this.value=void 0;this.key=void 0;this.left=void 0;this.mid=void 0;this.right=void 0}isEmpty(){return!this.left&&!this.mid&&!this.right&&this.value===void 0}rotateLeft(){let e=this.right;return this.right=e.left,e.left=this,this.updateHeight(),e.updateHeight(),e}rotateRight(){let e=this.left;return this.left=e.right,e.right=this,this.updateHeight(),e.updateHeight(),e}updateHeight(){this.height=1+Math.max(this.heightLeft,this.heightRight)}balanceFactor(){return this.heightRight-this.heightLeft}get heightLeft(){return this.left?.height??0}get heightRight(){return this.right?.height??0}},bt=class n{static forUris(e=()=>!1,t=()=>!1){return new n(new Sr(e,t))}static forPaths(e=!1){return new n(new En(void 0,!e))}static forStrings(){return new n(new Rr)}static forConfigKeys(){return new n(new Dr)}constructor(e){this._iter=e}clear(){this._root=void 0}fill(e,t){if(t){let r=t.slice(0);qn(r);for(let i of r)this.set(i,e)}else{let r=e.slice(0);qn(r);for(let i of r)this.set(i[0],i[1])}}set(e,t){let r=this._iter.reset(e),i;this._root||(this._root=new gt,this._root.segment=r.value());let s=[];for(i=this._root;;){let o=r.cmp(i.segment);if(o>0)i.left||(i.left=new gt,i.left.segment=r.value()),s.push([-1,i]),i=i.left;else if(o<0)i.right||(i.right=new gt,i.right.segment=r.value()),s.push([1,i]),i=i.right;else if(r.hasNext())r.next(),i.mid||(i.mid=new gt,i.mid.segment=r.value()),s.push([0,i]),i=i.mid;else break}let a=Ue.unwrap(i.value);i.value=Ue.wrap(t),i.key=e;for(let o=s.length-1;o>=0;o--){let l=s[o][1];l.updateHeight();let u=l.balanceFactor();if(u<-1||u>1){let f=s[o][0],c=s[o+1][0];if(f===1&&c===1)s[o][1]=l.rotateLeft();else if(f===-1&&c===-1)s[o][1]=l.rotateRight();else if(f===1&&c===-1)l.right=s[o+1][1]=s[o+1][1].rotateRight(),s[o][1]=l.rotateLeft();else if(f===-1&&c===1)l.left=s[o+1][1]=s[o+1][1].rotateLeft(),s[o][1]=l.rotateRight();else throw new Error;if(o>0)switch(s[o-1][0]){case-1:s[o-1][1].left=s[o][1];break;case 1:s[o-1][1].right=s[o][1];break;case 0:s[o-1][1].mid=s[o][1];break}else this._root=s[0][1]}}return a}get(e){return Ue.unwrap(this._getNode(e)?.value)}_getNode(e){let t=this._iter.reset(e),r=this._root;for(;r;){let i=t.cmp(r.segment);if(i>0)r=r.left;else if(i<0)r=r.right;else if(t.hasNext())t.next(),r=r.mid;else break}return r}has(e){let t=this._getNode(e);return!(t?.value===void 0&&t?.mid===void 0)}delete(e){return this._delete(e,!1)}deleteSuperstr(e){return this._delete(e,!0)}_delete(e,t){let r=this._iter.reset(e),i=[],s=this._root;for(;s;){let a=r.cmp(s.segment);if(a>0)i.push([-1,s]),s=s.left;else if(a<0)i.push([1,s]),s=s.right;else if(r.hasNext())r.next(),i.push([0,s]),s=s.mid;else break}if(s){if(t?(s.left=void 0,s.mid=void 0,s.right=void 0,s.height=1):(s.key=void 0,s.value=void 0),!s.mid&&!s.value)if(s.left&&s.right){let a=[[1,s]],o=this._min(s.right,a);if(o.key){s.key=o.key,s.value=o.value,s.segment=o.segment;let l=o.right;if(a.length>1){let[f,c]=a[a.length-1];switch(f){case-1:c.left=l;break;case 0:on(!1);case 1:on(!1)}}else s.right=l;let u=this._balanceByStack(a);if(i.length>0){let[f,c]=i[i.length-1];switch(f){case-1:c.left=u;break;case 0:c.mid=u;break;case 1:c.right=u;break}}else this._root=u}}else{let a=s.left??s.right;if(i.length>0){let[o,l]=i[i.length-1];switch(o){case-1:l.left=a;break;case 0:l.mid=a;break;case 1:l.right=a;break}}else this._root=a}this._root=this._balanceByStack(i)??this._root}}_min(e,t){for(;e.left;)t.push([-1,e]),e=e.left;return e}_balanceByStack(e){for(let t=e.length-1;t>=0;t--){let r=e[t][1];r.updateHeight();let i=r.balanceFactor();if(i>1?(r.right.balanceFactor()>=0||(r.right=r.right.rotateRight()),e[t][1]=r.rotateLeft()):i<-1&&(r.left.balanceFactor()<=0||(r.left=r.left.rotateLeft()),e[t][1]=r.rotateRight()),t>0)switch(e[t-1][0]){case-1:e[t-1][1].left=e[t][1];break;case 1:e[t-1][1].right=e[t][1];break;case 0:e[t-1][1].mid=e[t][1];break}else return e[0][1]}}findSubstr(e){let t=this._iter.reset(e),r=this._root,i;for(;r;){let s=t.cmp(r.segment);if(s>0)r=r.left;else if(s<0)r=r.right;else if(t.hasNext())t.next(),i=Ue.unwrap(r.value)||i,r=r.mid;else break}return r&&Ue.unwrap(r.value)||i}findSuperstr(e){return this._findSuperstrOrElement(e,!1)}_findSuperstrOrElement(e,t){let r=this._iter.reset(e),i=this._root;for(;i;){let s=r.cmp(i.segment);if(s>0)i=i.left;else if(s<0)i=i.right;else if(r.hasNext())r.next(),i=i.mid;else return i.mid?this._entries(i.mid):t?Ue.unwrap(i.value):void 0}}hasElementOrSubtree(e){return this._findSuperstrOrElement(e,!0)!==void 0}forEach(e){for(let[t,r]of this)e(r,t)}*[Symbol.iterator](){yield*this._entries(this._root)}_entries(e){let t=[];return this._dfsEntries(e,t),t[Symbol.iterator]()}_dfsEntries(e,t){e&&(e.left&&this._dfsEntries(e.left,t),e.value!==void 0&&t.push([e.key,Ue.unwrap(e.value)]),e.mid&&this._dfsEntries(e.mid,t),e.right&&this._dfsEntries(e.right,t))}_isBalanced(){let e=t=>{if(!t)return!0;let r=t.balanceFactor();return r<-1||r>1?!1:e(t.left)&&e(t.right)};return e(this._root)}}});function xl(n,e,t){e[ze.DI_TARGET]===e?e[ze.DI_DEPENDENCIES].push({id:n,index:t}):(e[ze.DI_DEPENDENCIES]=[{id:n,index:t}],e[ze.DI_TARGET]=e)}function Bt(n){if(ze.serviceIds.has(n))return ze.serviceIds.get(n);let e=function(t,r,i){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");xl(e,t,i)};return e.toString=()=>n,ze.serviceIds.set(n,e),e}var ze,Zc,Ar=P(()=>{(i=>{i.serviceIds=new Map,i.DI_TARGET="$di$target",i.DI_DEPENDENCIES="$di$dependencies";function r(s){return s[i.DI_DEPENDENCIES]||[]}i.getServiceDependencies=r})(ze||={});Zc=Bt("instantiationService")});function Es(n,e,t){return!n||!e||n===e||e.length>n.length?!1:(e.charAt(e.length-1)!==X&&(e+=X),t?kt(n,e):n.indexOf(e)===0)}var dd,xs,Is,Fr=P(()=>{_s();de();$e();an();Ge();xt();Ar();Z();pn();At();dd=Bt("fileService"),xs=class n{constructor(e,t){this.ignorePathCasing=t;this.correlationId=void 0;this.added=new me(()=>{let e=bt.forUris(()=>this.ignorePathCasing);return e.fill(this.rawAdded.map(t=>[t,!0])),e});this.updated=new me(()=>{let e=bt.forUris(()=>this.ignorePathCasing);return e.fill(this.rawUpdated.map(t=>[t,!0])),e});this.deleted=new me(()=>{let e=bt.forUris(()=>this.ignorePathCasing);return e.fill(this.rawDeleted.map(t=>[t,!0])),e});this.rawAdded=[];this.rawUpdated=[];this.rawDeleted=[];for(let r of e){switch(r.type){case 1:this.rawAdded.push(r.resource);break;case 0:this.rawUpdated.push(r.resource);break;case 2:this.rawDeleted.push(r.resource);break}this.correlationId!==n.MIXED_CORRELATION&&(typeof r.cId=="number"?this.correlationId===void 0?this.correlationId=r.cId:this.correlationId!==r.cId&&(this.correlationId=n.MIXED_CORRELATION):this.correlationId!==void 0&&(this.correlationId=n.MIXED_CORRELATION))}}static{this.MIXED_CORRELATION=null}contains(e,...t){return this.doContains(e,{includeChildren:!1},...t)}affects(e,...t){return this.doContains(e,{includeChildren:!0},...t)}doContains(e,t,...r){if(!e)return!1;let i=r.length>0;return!!((!i||r.includes(1))&&(this.added.value.get(e)||t.includeChildren&&this.added.value.findSuperstr(e))||(!i||r.includes(0))&&(this.updated.value.get(e)||t.includeChildren&&this.updated.value.findSuperstr(e))||(!i||r.includes(2))&&(this.deleted.value.findSubstr(e)||t.includeChildren&&this.deleted.value.findSuperstr(e)))}gotAdded(){return this.rawAdded.length>0}gotDeleted(){return this.rawDeleted.length>0}gotUpdated(){return this.rawUpdated.length>0}correlates(e){return this.correlationId===e}hasCorrelation(){return typeof this.correlationId=="number"}};Is=class n{static{this.KB=1024}static{this.MB=n.KB*n.KB}static{this.GB=n.MB*n.KB}static{this.TB=n.GB*n.KB}static formatSize(e){return Qn(e)||(e=0),e<n.KB?b(2045,null,e.toFixed(0)):e<n.MB?b(2047,null,(e/n.KB).toFixed(2)):e<n.GB?b(2048,null,(e/n.MB).toFixed(2)):e<n.TB?b(2046,null,(e/n.GB).toFixed(2)):b(2049,null,(e/n.TB).toFixed(2))}}});function Ps(n,e){switch(n){case 0:return"";case 1:return`${Pn}*?`;default:return`(?:${wn}|${Pn}+${wn}${e?`|${wn}${Pn}+`:""})*?`}}function Rs(n,e){if(!n)return[];let t=[],r=!1,i=!1,s="";for(let a of n){switch(a){case e:if(!r&&!i){t.push(s),s="";continue}break;case"{":r=!0;break;case"}":r=!1;break;case"[":i=!0;break;case"]":i=!1;break}s+=a}return s&&t.push(s),t}function Os(n){if(!n)return"";let e="",t=Rs(n,ws);if(t.every(r=>r===vt))e=".*";else{let r=!1;t.forEach((i,s)=>{if(i===vt){if(r)return;e+=Ps(2,s===t.length-1)}else{let a=!1,o="",l=!1,u="";for(let f of i){if(f!=="}"&&a){o+=f;continue}if(l&&(f!=="]"||!u)){let c;f==="-"?c=f:(f==="^"||f==="!")&&!u?c="^":f===ws?c="":c=or(f),u+=c;continue}switch(f){case"{":a=!0;continue;case"[":l=!0;continue;case"}":{let d=`(?:${Rs(o,",").map(p=>Os(p)).join("|")})`;e+=d,a=!1,o="";break}case"]":{e+="["+u+"]",l=!1,u="";break}case"?":e+=Pn;continue;case"*":e+=Ps(1);continue;default:e+=or(f)}}s<t.length-1&&(t[s+1]!==vt||s+2<t.length)&&(e+=wn)}r=i===vt})}return e}function kr(n,e){if(!n)return Ie;let t;typeof n!="string"?t=n.pattern:t=n,t=t.trim();let r=e.ignoreCase??!1,i={...e,equals:r?st:(l,u)=>l===u,endsWith:r?qi:(l,u)=>l.endsWith(u),isEqualOrParent:(l,u)=>Oe(l,u,!re||r)},s=`${r?t.toLowerCase():t}_${!!e.trimForExclusions}_${r}`,a=Ds.get(s);if(a)return As(a,n,i);let o;return El.test(t)?a=Al(t.substring(4),t,i):(o=wl.exec(Or(t,i)))?a=Fl(o[1],t,i):(e.trimForExclusions?Rl:Pl).test(t)?a=Ol(t,i):(o=Dl.exec(Or(t,i)))?a=Fs(o[1].substring(1),t,!0,i):(o=Sl.exec(Or(t,i)))?a=Fs(o[1],t,!1,i):a=kl(t,i),Ds.set(s,a),As(a,n,i)}function As(n,e,t){if(typeof e=="string")return n;let r=function(i,s){return t.isEqualOrParent(i,e.base)?n(Ki(i.substring(e.base.length),X),s):null};return r.allBasenames=n.allBasenames,r.allPaths=n.allPaths,r.basenames=n.basenames,r.patterns=n.patterns,r}function Or(n,e){return e.trimForExclusions&&n.endsWith("/**")?n.substring(0,n.length-2):n}function Al(n,e,t){return function(r,i){return typeof r=="string"&&t.endsWith(r,n)?e:null}}function Fl(n,e,t){let r=`/${n}`,i=`\\${n}`,s=function(o,l){return typeof o!="string"?null:l?t.equals(l,n)?e:null:t.equals(o,n)||t.endsWith(o,r)||t.endsWith(o,i)?e:null},a=[n];return s.basenames=a,s.patterns=[e],s.allBasenames=a,s}function Ol(n,e){let t=Ls(n.slice(1,-1).split(",").map(o=>kr(o,e)).filter(o=>o!==Ie),n),r=t.length;if(!r)return Ie;if(r===1)return t[0];let i=function(o,l){for(let u=0,f=t.length;u<f;u++)if(t[u](o,l))return n;return null},s=t.find(o=>!!o.allBasenames);s&&(i.allBasenames=s.allBasenames);let a=t.reduce((o,l)=>l.allPaths?o.concat(l.allPaths):o,[]);return a.length&&(i.allPaths=a),i}function Fs(n,e,t,r){let i=X===F.sep,s=i?n:n.replace(Il,X),a=X+s,o=F.sep+n,l;return t?l=function(u,f){return typeof u=="string"&&(r.equals(u,s)||r.endsWith(u,a)||!i&&(r.equals(u,n)||r.endsWith(u,o)))?e:null}:l=function(u,f){return typeof u=="string"&&(r.equals(u,s)||!i&&r.equals(u,n))?e:null},l.allPaths=[(t?"*/":"./")+n],l}function kl(n,e){try{let t=new RegExp(`^${Os(n)}$`,e.ignoreCase?"i":void 0);return function(r){return t.lastIndex=0,typeof r=="string"&&t.test(r)?n:null}}catch{return Ie}}function ks(n,e={}){if(!n)return Ss;if(typeof n=="string"||Ll(n)){let t=kr(n,e);if(t===Ie)return Ss;let r=function(i,s){return!!t(i,s)};return t.allBasenames&&(r.allBasenames=t.allBasenames),t.allPaths&&(r.allPaths=t.allPaths),r}return Ul(n,e)}function Ll(n){let e=n;return e?typeof e.base=="string"&&typeof e.pattern=="string":!1}function Ul(n,e){let t=Ls(Object.getOwnPropertyNames(n).map(o=>Nl(o,n[o],e)).filter(o=>o!==Ie)),r=t.length;if(!r)return Ie;if(!t.some(o=>!!o.requiresSiblings)){if(r===1)return t[0];let o=function(f,c){let d;for(let p=0,m=t.length;p<m;p++){let x=t[p](f,c);if(typeof x=="string")return x;Tn(x)&&(d||(d=[]),d.push(x))}return d?(async()=>{for(let p of d){let m=await p;if(typeof m=="string")return m}return null})():null},l=t.find(f=>!!f.allBasenames);l&&(o.allBasenames=l.allBasenames);let u=t.reduce((f,c)=>c.allPaths?f.concat(c.allPaths):f,[]);return u.length&&(o.allPaths=u),o}let i=function(o,l,u){let f,c;for(let d=0,p=t.length;d<p;d++){let m=t[d];m.requiresSiblings&&u&&(l||(l=We(o)),f||(f=l.substring(0,l.length-li(o).length)));let x=m(o,l,f,u);if(typeof x=="string")return x;Tn(x)&&(c||(c=[]),c.push(x))}return c?(async()=>{for(let d of c){let p=await d;if(typeof p=="string")return p}return null})():null},s=t.find(o=>!!o.allBasenames);s&&(i.allBasenames=s.allBasenames);let a=t.reduce((o,l)=>l.allPaths?o.concat(l.allPaths):o,[]);return a.length&&(i.allPaths=a),i}function Nl(n,e,t){if(e===!1)return Ie;let r=kr(n,t);if(r===Ie)return Ie;if(typeof e=="boolean")return r;if(e){let i=e.when;if(typeof i=="string"){let s=(a,o,l,u)=>{if(!u||!r(a,o))return null;let f=i.replace("$(basename)",()=>l),c=u(f);return Tn(c)?c.then(d=>d?n:null):c?n:null};return s.requiresSiblings=!0,s}}return r}function Ls(n,e){let t=n.filter(o=>!!o.basenames);if(t.length<2)return n;let r=t.reduce((o,l)=>{let u=l.basenames;return u?o.concat(u):o},[]),i;if(e){i=[];for(let o=0,l=r.length;o<l;o++)i.push(e)}else i=t.reduce((o,l)=>{let u=l.patterns;return u?o.concat(u):o},[]);let s=function(o,l){if(typeof o!="string")return null;if(!l){let f;for(f=o.length;f>0;f--){let c=o.charCodeAt(f-1);if(c===47||c===92)break}l=o.substring(f)}let u=r.indexOf(l);return u!==-1?i[u]:null};s.basenames=r,s.patterns=i,s.allBasenames=r;let a=n.filter(o=>!o.basenames);return a.push(s),a}var vt,ws,wn,Pn,Il,El,wl,Pl,Rl,Dl,Sl,Ds,Ss,Ie,Us=P(()=>{nn();ht();rt();qe();sn();de();Z();$e();vt="**",ws="/",wn="[/\\\\]",Pn="[^/\\\\]",Il=/\//g;El=/^\*\*\/\*\.[\w\.-]+$/,wl=/^\*\*\/([\w\.-]+)\/?$/,Pl=/^{\*\*\/\*?[\w\.-]+\/?(,\*\*\/\*?[\w\.-]+\/?)*}$/,Rl=/^{\*\*\/\*?[\w\.-]+(\/(\*\*)?)?(,\*\*\/\*?[\w\.-]+(\/(\*\*)?)?)*}$/,Dl=/^\*\*((\/[\w\.-]+)+)\/?$/,Sl=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,Ds=new Ce(1e4),Ss=function(){return!1},Ie=function(){return null}});function Ms(n){return typeof n.correlationId=="number"}function Ws(n){let e=new Lr;for(let t of n)e.processEvent(t);return e.coalesce()}function Wl(n,e){return typeof e=="string"&&!e.startsWith(vt)&&!Ae(e)?{base:n,pattern:e}:e}function Ur(n,e,t){let r=[];for(let i of e)r.push(ks(Wl(n,i),{ignoreCase:t}));return r}function Vs(n,e){if(typeof e=="number")switch(n.type){case 1:return(e&4)===0;case 2:return(e&8)===0;case 0:return(e&2)===0}return!1}var Ns,Lr,Bs=P(()=>{Us();ft();de();Z();Ge();Fr();Ns=class n extends ee{constructor(t,r,i,s){super();this.onFileChanges=t;this.onLogMessage=r;this.verboseLogging=i;this.options=s;this.watcherDisposables=this._register(new dt);this.requests=void 0;this.restartCounter=0}static{this.MAX_RESTARTS=5}init(){let t=new pe;this.watcherDisposables.value=t,this.watcher=this.createWatcher(t),this.watcher.setVerboseLogging(this.verboseLogging),t.add(this.watcher.onDidChangeFile(r=>this.onFileChanges(r))),t.add(this.watcher.onDidLogMessage(r=>this.onLogMessage(r))),t.add(this.watcher.onDidError(r=>this.onError(r.error,r.request)))}onError(t,r){this.canRestart(t,r)?this.restartCounter<n.MAX_RESTARTS&&this.requests?(this.error(`restarting watcher after unexpected error: ${t}`),this.restart(this.requests)):this.error(`gave up attempting to restart watcher after unexpected error: ${t}`):this.error(t)}canRestart(t,r){return!(!this.options.restartOnError||r||t.indexOf("No space left on device")!==-1||t.indexOf("EMFILE")!==-1)}restart(t){this.restartCounter++,this.init(),this.watch(t)}async watch(t){this.requests=t,await this.watcher?.watch(t)}async setVerboseLogging(t){this.verboseLogging=t,await this.watcher?.setVerboseLogging(t)}error(t){this.onLogMessage({type:"error",message:`[File Watcher (${this.options.type})] ${t}`})}trace(t){this.onLogMessage({type:"trace",message:`[File Watcher (${this.options.type})] ${t}`})}dispose(){return this.watcher=void 0,super.dispose()}};Lr=class{constructor(){this.coalesced=new Set;this.mapPathToChange=new Map}toKey(e){return re?e.resource.fsPath:e.resource.fsPath.toLowerCase()}processEvent(e){let t=this.mapPathToChange.get(this.toKey(e)),r=!1;if(t){let i=t.type,s=e.type;t.resource.fsPath!==e.resource.fsPath&&(e.type===2||e.type===1)?r=!0:i===1&&s===2?(this.mapPathToChange.delete(this.toKey(e)),this.coalesced.delete(t)):i===2&&s===1?t.type=0:i===1&&s===0||(t.type=s)}else r=!0;r&&(this.coalesced.add(e),this.mapPathToChange.set(this.toKey(e),e))}coalesce(){let e=[],t=[];return Array.from(this.coalesced).filter(r=>r.type!==2?(e.push(r),!1):!0).sort((r,i)=>r.resource.fsPath.length-i.resource.fsPath.length).filter(r=>t.some(i=>Es(r.resource.fsPath,i,!re))?!1:(t.push(r.resource.fsPath),!0)).concat(e)}}});import{watch as Vl,promises as Bl}from"fs";async function Cs(n,e,t,r,i=512){let s=await le.open(n,"r"),a=Buffer.allocUnsafe(i),o=new be(r),l,u=!1,f={path:n,excludes:[],recursive:!1},c=new Nr(f,void 0,d=>{(async()=>{for(let{type:p}of d)if(p===0){if(u)return;u=!0;try{for(;!o.token.isCancellationRequested;){let{bytesRead:m}=await le.read(s,a,0,i,null);if(!m||o.token.isCancellationRequested)break;e(a.slice(0,m))}}catch(m){l=new Error(m),o.dispose(!0)}finally{u=!1}}})()});return await c.ready,t(),new Promise((d,p)=>{o.token.onCancellationRequested(async()=>{c.dispose();try{await le.close(s)}catch(m){l=new Error(m)}l?p(l):d()})})}var Nr,$s=P(()=>{ht();St();qe();ft();_r();de();Z();mn();Ge();xn();Fr();Bs();At();Nr=class n extends ee{constructor(t,r,i,s,a,o){super();this.request=t;this.recursiveWatcher=r;this.onDidFilesChange=i;this.onDidWatchFail=s;this.onLogMessage=a;this.verboseLogging=o;this.throttledFileChangesEmitter=this._register(new vn({maxWorkChunkSize:100,throttleDelay:200,maxBufferedWork:1e4},t=>this.onDidFilesChange(t)));this.fileChangesAggregator=this._register(new bn(t=>this.handleFileChanges(t),n.FILE_CHANGES_HANDLER_DELAY));this.cts=new be;this.realPath=new me(async()=>{let t=this.request.path;try{t=await le.realpath(this.request.path),this.request.path!==t&&this.trace(`correcting a path to watch that seems to be a symbolic link (original: ${this.request.path}, real: ${t})`)}catch{}return t});this._isReusingRecursiveWatcher=!1;this.didFail=!1;let l=!re;this.excludes=Ur(this.request.path,this.request.excludes,l),this.includes=this.request.includes?Ur(this.request.path,this.request.includes,l):void 0,this.filter=Ms(this.request)?this.request.filter:void 0,this.ready=this.watch()}static{this.FILE_DELETE_HANDLER_DELAY=100}static{this.FILE_CHANGES_HANDLER_DELAY=75}get isReusingRecursiveWatcher(){return this._isReusingRecursiveWatcher}get failed(){return this.didFail}async watch(){try{let t=await Bl.stat(this.request.path);if(this.cts.token.isCancellationRequested)return;this._register(await this.doWatch(t.isDirectory()))}catch(t){t.code!=="ENOENT"?this.error(t):this.trace(`ignoring a path for watching who's stat info failed to resolve: ${this.request.path} (error: ${t})`),this.notifyWatchFailed()}}notifyWatchFailed(){this.didFail=!0,this.onDidWatchFail?.()}async doWatch(t){let r=new pe;return this.doWatchWithExistingWatcher(t,r)?(this.trace(`reusing an existing recursive watcher for ${this.request.path}`),this._isReusingRecursiveWatcher=!0):(this._isReusingRecursiveWatcher=!1,await this.doWatchWithNodeJS(t,r)),r}doWatchWithExistingWatcher(t,r){if(t)return!1;let i=K.file(this.request.path),s=this.recursiveWatcher?.subscribe(this.request.path,async(a,o)=>{r.isDisposed||(a?await Si(this.doWatch(t),r):o&&(typeof o.cId=="number"||typeof this.request.correlationId=="number")&&this.onFileChange({resource:i,type:o.type,cId:this.request.correlationId},!0))});return s?(r.add(s),!0):!1}async doWatchWithNodeJS(t,r){let i=await this.realPath.value;if(this.cts.token.isCancellationRequested)return;if(ge&&Oe(i,"/Volumes/",!0)){this.error(`Refusing to watch ${i} for changes using fs.watch() for possibly being a network share where watching is unreliable and unstable.`);return}let s=new be(this.cts.token);r.add(_e(()=>s.dispose(!0)));let a=new pe;r.add(a);try{let o=K.file(this.request.path),l=We(i),u=Vl(i);a.add(_e(()=>{u.removeAllListeners(),u.close()})),this.trace(`Started watching: '${i}'`);let f=new Set;if(t)try{for(let d of await le.readdir(i))f.add(d)}catch(d){this.error(d)}if(s.token.isCancellationRequested)return;let c=new Map;a.add(_e(()=>{for(let[,d]of c)d.dispose();c.clear()})),u.on("error",(d,p)=>{s.token.isCancellationRequested||(this.error(`Failed to watch ${i} for changes using fs.watch() (${d}, ${p})`),this.notifyWatchFailed())}),u.on("change",(d,p)=>{if(s.token.isCancellationRequested)return;this.verboseLogging&&this.traceWithCorrelation(`[raw] ["${d}"] ${p}`);let m="";if(p&&(m=p.toString(),ge&&(m=Mt(m))),!(!m||d!=="change"&&d!=="rename"))if(t)if(d==="rename"){c.get(m)?.dispose();let x=setTimeout(async()=>{if(c.delete(m),dr(m,l,!re)&&!await le.exists(i)){this.onWatchedPathDeleted(o);return}if(s.token.isCancellationRequested)return;let L=await this.existsChildStrictCase(W(i,m));if(s.token.isCancellationRequested)return;let M;L?f.has(m)?M=0:(M=1,f.add(m)):(f.delete(m),M=2),this.onFileChange({resource:gr(o,m),type:M,cId:this.request.correlationId})},n.FILE_DELETE_HANDLER_DELAY);c.set(m,_e(()=>clearTimeout(x)))}else{let x;f.has(m)?x=0:(x=1,f.add(m)),this.onFileChange({resource:gr(o,m),type:x,cId:this.request.correlationId})}else if(d==="rename"||!dr(m,l,!re)){let x=setTimeout(async()=>{let L=await le.exists(i);s.token.isCancellationRequested||(L?(this.onFileChange({resource:o,type:0,cId:this.request.correlationId},!0),a.add(await this.doWatch(!1))):this.onWatchedPathDeleted(o))},n.FILE_DELETE_HANDLER_DELAY);a.clear(),a.add(_e(()=>clearTimeout(x)))}else this.onFileChange({resource:o,type:0,cId:this.request.correlationId},!0)})}catch(o){if(s.token.isCancellationRequested)return;this.error(`Failed to watch ${i} for changes using fs.watch() (${o.toString()})`),this.notifyWatchFailed()}}onWatchedPathDeleted(t){this.warn("Watcher shutdown because watched path got deleted"),this.onFileChange({resource:t,type:2,cId:this.request.correlationId},!0),this.fileChangesAggregator.flush(),this.notifyWatchFailed()}onFileChange(t,r=!1){this.cts.token.isCancellationRequested||(this.verboseLogging&&this.traceWithCorrelation(`${t.type===1?"[ADDED]":t.type===2?"[DELETED]":"[CHANGED]"} ${t.resource.fsPath}`),!r&&this.excludes.some(i=>i(t.resource.fsPath))?this.verboseLogging&&this.traceWithCorrelation(` >> ignored (excluded) ${t.resource.fsPath}`):!r&&this.includes&&this.includes.length>0&&!this.includes.some(i=>i(t.resource.fsPath))?this.verboseLogging&&this.traceWithCorrelation(` >> ignored (not included) ${t.resource.fsPath}`):this.fileChangesAggregator.work(t))}handleFileChanges(t){let r=Ws(t),i=[];for(let a of r){if(Vs(a,this.filter)){this.verboseLogging&&this.traceWithCorrelation(` >> ignored (filtered) ${a.resource.fsPath}`);continue}i.push(a)}if(i.length===0)return;if(this.verboseLogging)for(let a of i)this.traceWithCorrelation(` >> normalized ${a.type===1?"[ADDED]":a.type===2?"[DELETED]":"[CHANGED]"} ${a.resource.fsPath}`);this.throttledFileChangesEmitter.work(i)?this.throttledFileChangesEmitter.pending>0&&this.trace(`started throttling events due to large amount of file change events at once (pending: ${this.throttledFileChangesEmitter.pending}, most recent change: ${i[0].resource.fsPath}). Use 'files.watcherExclude' setting to exclude folders with lots of changing files (e.g. compilation output).`):this.warn(`started ignoring events due to too many file change events at once (incoming: ${i.length}, most recent change: ${i[0].resource.fsPath}). Use 'files.watcherExclude' setting to exclude folders with lots of changing files (e.g. compilation output).`)}async existsChildStrictCase(t){if(re)return le.exists(t);try{let r=We(t);return(await le.readdir(ye(t))).some(s=>s===r)}catch(r){return this.trace(r),!1}}setVerboseLogging(t){this.verboseLogging=t}error(t){this.cts.token.isCancellationRequested||this.onLogMessage?.({type:"error",message:`[File Watcher (node.js)] ${t}`})}warn(t){this.cts.token.isCancellationRequested||this.onLogMessage?.({type:"warn",message:`[File Watcher (node.js)] ${t}`})}trace(t){!this.cts.token.isCancellationRequested&&this.verboseLogging&&this.onLogMessage?.({type:"trace",message:`[File Watcher (node.js)] ${t}`})}traceWithCorrelation(t){!this.cts.token.isCancellationRequested&&this.verboseLogging&&this.trace(`${t}${typeof this.request.correlationId=="number"?` <${this.request.correlationId}> `:""}`)}dispose(){this.cts.dispose(!0),super.dispose()}}});var Gs=Ao((rf,js)=>{"use strict";function Cl(n,e){var t=n;e.slice(0,-1).forEach(function(i){t=t[i]||{}});var r=e[e.length-1];return r in t}function Ks(n){return typeof n=="number"||/^0x[0-9a-f]+$/i.test(n)?!0:/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(n)}function qs(n,e){return e==="constructor"&&typeof n[e]=="function"||e==="__proto__"}js.exports=function(n,e){e||(e={});var t={bools:{},strings:{},unknownFn:null};typeof e.unknown=="function"&&(t.unknownFn=e.unknown),typeof e.boolean=="boolean"&&e.boolean?t.allBools=!0:[].concat(e.boolean).filter(Boolean).forEach(function(w){t.bools[w]=!0});var r={};function i(w){return r[w].some(function(k){return t.bools[k]})}Object.keys(e.alias||{}).forEach(function(w){r[w]=[].concat(e.alias[w]),r[w].forEach(function(k){r[k]=[w].concat(r[w].filter(function(G){return k!==G}))})}),[].concat(e.string).filter(Boolean).forEach(function(w){t.strings[w]=!0,r[w]&&[].concat(r[w]).forEach(function(k){t.strings[k]=!0})});var s=e.default||{},a={_:[]};function o(w,k){return t.allBools&&/^--[^=]+$/.test(k)||t.strings[w]||t.bools[w]||r[w]}function l(w,k,G){for(var h=w,E=0;E<k.length-1;E++){var S=k[E];if(qs(h,S))return;h[S]===void 0&&(h[S]={}),(h[S]===Object.prototype||h[S]===Number.prototype||h[S]===String.prototype)&&(h[S]={}),h[S]===Array.prototype&&(h[S]=[]),h=h[S]}var C=k[k.length-1];qs(h,C)||((h===Object.prototype||h===Number.prototype||h===String.prototype)&&(h={}),h===Array.prototype&&(h=[]),h[C]===void 0||t.bools[C]||typeof h[C]=="boolean"?h[C]=G:Array.isArray(h[C])?h[C].push(G):h[C]=[h[C],G])}function u(w,k,G){if(!(G&&t.unknownFn&&!o(w,G)&&t.unknownFn(G)===!1)){var h=!t.strings[w]&&Ks(k)?Number(k):k;l(a,w.split("."),h),(r[w]||[]).forEach(function(E){l(a,E.split("."),h)})}}Object.keys(t.bools).forEach(function(w){u(w,s[w]===void 0?!1:s[w])});var f=[];n.indexOf("--")!==-1&&(f=n.slice(n.indexOf("--")+1),n=n.slice(0,n.indexOf("--")));for(var c=0;c<n.length;c++){var d=n[c],p,m;if(/^--.+=/.test(d)){var x=d.match(/^--([^=]+)=([\s\S]*)$/);p=x[1];var L=x[2];t.bools[p]&&(L=L!=="false"),u(p,L,d)}else if(/^--no-.+/.test(d))p=d.match(/^--no-(.+)/)[1],u(p,!1,d);else if(/^--.+/.test(d))p=d.match(/^--(.+)/)[1],m=n[c+1],m!==void 0&&!/^(-|--)[^-]/.test(m)&&!t.bools[p]&&!t.allBools&&(!r[p]||!i(p))?(u(p,m,d),c+=1):/^(true|false)$/.test(m)?(u(p,m==="true",d),c+=1):u(p,t.strings[p]?"":!0,d);else if(/^-[^-]+/.test(d)){for(var M=d.slice(1,-1).split(""),Q=!1,O=0;O<M.length;O++){if(m=d.slice(O+2),m==="-"){u(M[O],m,d);continue}if(/[A-Za-z]/.test(M[O])&&m[0]==="="){u(M[O],m.slice(1),d),Q=!0;break}if(/[A-Za-z]/.test(M[O])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(m)){u(M[O],m,d),Q=!0;break}if(M[O+1]&&M[O+1].match(/\W/)){u(M[O],d.slice(O+2),d),Q=!0;break}else u(M[O],t.strings[M[O]]?"":!0,d)}p=d.slice(-1)[0],!Q&&p!=="-"&&(n[c+1]&&!/^(-|--)[^-]/.test(n[c+1])&&!t.bools[p]&&(!r[p]||!i(p))?(u(p,n[c+1],d),c+=1):n[c+1]&&/^(true|false)$/.test(n[c+1])?(u(p,n[c+1]==="true",d),c+=1):u(p,t.strings[p]?"":!0,d))}else if((!t.unknownFn||t.unknownFn(d)!==!1)&&a._.push(t.strings._||!Ks(d)?d:Number(d)),e.stopEarly){a._.push.apply(a._,n.slice(c+1));break}}return Object.keys(s).forEach(function(w){Cl(a,w.split("."))||(l(a,w.split("."),s[w]),(r[w]||[]).forEach(function(k){l(a,k.split("."),s[w])}))}),e["--"]?a["--"]=f.slice():f.forEach(function(w){a._.push(w)}),a}});function Mr(n,e,t=Kl){let r=n.find((d,p)=>d.length>0&&d[0]!=="-"&&e.hasOwnProperty(d)&&e[d].type==="subcommand"),i={},s=["_"],a=[],o={},l;for(let d in e){let p=e[d];p.type==="subcommand"?d===r&&(l=p):(p.alias&&(i[d]=p.alias),p.type==="string"||p.type==="string[]"?(s.push(d),p.deprecates&&s.push(...p.deprecates)):p.type==="boolean"&&(a.push(d),p.deprecates&&a.push(...p.deprecates)),p.global&&(o[d]=p))}if(l&&r){let d=o;for(let L in l.options)d[L]=l.options[L];let p=n.filter(L=>L!==r),m=t.getSubcommandReporter?t.getSubcommandReporter(r):void 0,x=Mr(p,d,m);return{[r]:x,_:[]}}let u=(0,Hs.default)(n,{string:s,boolean:a,alias:i}),f={},c=u;f._=u._.map(d=>String(d)).filter(d=>d.length>0),delete c._;for(let d in e){let p=e[d];if(p.type==="subcommand")continue;p.alias&&delete c[p.alias];let m=c[d];if(p.deprecates)for(let x of p.deprecates)c.hasOwnProperty(x)&&(m||(m=c[x],m&&t.onDeprecatedOption(x,p.deprecationMessage||b(1875,null,d))),delete c[x]);if(typeof m<"u"){if(p.type==="string[]"){if(Array.isArray(m)||(m=[m]),!p.allowEmptyValue){let x=m.filter(L=>L.length>0);x.length!==m.length&&(t.onEmptyValue(d),m=x.length>0?x:void 0)}}else p.type==="string"&&(Array.isArray(m)?(m=m.pop(),t.onMultipleValues(d,m)):!m&&!p.allowEmptyValue&&(t.onEmptyValue(d),m=void 0));f[d]=m,p.deprecationMessage&&t.onDeprecatedOption(d,p.deprecationMessage)}delete c[d]}for(let d in c)t.onUnknownOption(d);return f}function ql(n,e){let t="";return e.args&&(Array.isArray(e.args)?t=` <${e.args.join("> <")}>`:t=` <${e.args}>`),e.alias?`-${e.alias} --${n}${t}`:`--${n}${t}`}function jl(n,e){let t=[];for(let r in n){let i=n[r],s=ql(r,i);t.push([s,i.description])}return Qs(t,e)}function Qs(n,e){let r=n.reduce((a,o)=>Math.max(a,o[0].length),12)+2+1;if(e-r<25)return n.reduce((a,o)=>a.concat([`  ${o[0]}`,`      ${o[1]}`]),[]);let i=e-r-1,s=[];for(let a of n){let o=a[0],l=Gl(a[1],i),u=zs(r-o.length-2);s.push("  "+o+u+l[0]);for(let f=1;f<l.length;f++)s.push(zs(r)+l[f])}return s}function zs(n){return" ".repeat(n)}function Gl(n,e){let t=[];for(;n.length;){let r=n.length<e?n.length:n.lastIndexOf(" ",e);r===0&&(r=e);let i=n.slice(0,r).trim();n=n.slice(r).trimStart(),t.push(i)}return t}function Wr(n,e,t,r,i){let s=process.stdout.isTTY&&process.stdout.columns||80,a=i?.noInputFiles?"":i?.isChat?` [${b(1874,null)}]`:` [${b(1901,null)}...]`,o=i?.isChat?" chat":"",l=[`${n} ${t}`];l.push(""),l.push(`${b(1920,null)}: ${e}${o} [${b(1899,null)}]${a}`),l.push(""),i?.noPipe!==!0&&(l.push(Vr(e,i?.isChat)),l.push(""));let u={},f=[];for(let c in r){let d=r[c];if(d.type==="subcommand")d.description&&f.push({command:c,description:d.description});else if(d.description&&d.cat){let p=d.cat,m=u[p];m||(u[p]=m={}),m[c]=d}}for(let c in u){let d=c,p=u[d];p&&(l.push($l[d]),l.push(...jl(p,s)),l.push(""))}return f.length&&(l.push(b(1911,null)),l.push(...Qs(f.map(c=>[c.command,c.description]),s)),l.push("")),l.join(`
`)}function Vr(n,e){let t;return V?e?t=`echo Hello World | ${n} chat <prompt> -`:t=`echo Hello World | ${n} -`:e?t=`ps aux | grep code | ${n} chat <prompt> -`:t=`ps aux | grep code | ${n} -`,b(1910,null,t)}function Ys(n,e){return`${n||b(1918,null)}
${e||b(1917,null)}
${process.arch}`}var Hs,$l,Ct,$t,Kl,Br=P(()=>{Hs=ko(Gs(),1);Z();xt();$l={o:b(1900,null),e:b(1884,null),t:b(1914,null),m:b(1895,null)},Ct=["tunnel","serve-web"],$t={chat:{type:"subcommand",description:"Pass in a prompt to run in a chat session in the current working directory.",options:{_:{type:"string[]",description:b(1904,null)},mode:{type:"string",cat:"o",alias:"m",args:"mode",description:b(1872,null)},"add-file":{type:"string[]",cat:"o",alias:"a",args:"path",description:b(1868,null)},maximize:{type:"boolean",cat:"o",description:b(1871,null)},"reuse-window":{type:"boolean",cat:"o",alias:"r",description:b(1907,null)},"new-window":{type:"boolean",cat:"o",alias:"n",description:b(1898,null)},profile:{type:"string",cat:"o",args:"profileName",description:b(1903,null)},help:{type:"boolean",alias:"h",description:b(1886,null)}}},"serve-web":{type:"subcommand",description:"Run a server that displays the editor UI in browsers.",options:{"cli-data-dir":{type:"string",args:"dir",description:b(1873,null)},"disable-telemetry":{type:"boolean"},"telemetry-level":{type:"string"}}},tunnel:{type:"subcommand",description:"Make the current machine accessible from vscode.dev or other machines through a secure tunnel.",options:{"cli-data-dir":{type:"string",args:"dir",description:b(1873,null)},"disable-telemetry":{type:"boolean"},"telemetry-level":{type:"string"},user:{type:"subcommand",options:{login:{type:"subcommand",options:{provider:{type:"string"},"access-token":{type:"string"}}}}}}},diff:{type:"boolean",cat:"o",alias:"d",args:["file","file"],description:b(1876,null)},merge:{type:"boolean",cat:"o",alias:"m",args:["path1","path2","base","result"],description:b(1896,null)},add:{type:"boolean",cat:"o",alias:"a",args:"folder",description:b(1867,null)},remove:{type:"boolean",cat:"o",args:"folder",description:b(1905,null)},goto:{type:"boolean",cat:"o",alias:"g",args:"file:line[:character]",description:b(1885,null)},"new-window":{type:"boolean",cat:"o",alias:"n",description:b(1897,null)},"reuse-window":{type:"boolean",cat:"o",alias:"r",description:b(1906,null)},wait:{type:"boolean",cat:"o",alias:"w",description:b(1924,null)},waitMarkerFilePath:{type:"string"},locale:{type:"string",cat:"o",args:"locale",description:b(1892,null)},"user-data-dir":{type:"string",cat:"o",args:"dir",description:b(1921,null)},profile:{type:"string",cat:"o",args:"profileName",description:b(1903,null)},help:{type:"boolean",cat:"o",alias:"h",description:b(1886,null)},"extensions-dir":{type:"string",deprecates:["extensionHomePath"],cat:"e",args:"dir",description:b(1883,null)},"extensions-download-dir":{type:"string"},"builtin-extensions-dir":{type:"string"},"list-extensions":{type:"boolean",cat:"e",description:b(1891,null)},"show-versions":{type:"boolean",cat:"e",description:b(1908,null)},category:{type:"string",allowEmptyValue:!0,cat:"e",description:b(1870,null),args:"category"},"install-extension":{type:"string[]",cat:"e",args:"ext-id | path",description:b(1890,null)},"pre-release":{type:"boolean",cat:"e",description:b(1889,null)},"uninstall-extension":{type:"string[]",cat:"e",args:"ext-id",description:b(1916,null)},"update-extensions":{type:"boolean",cat:"e",description:b(1919,null)},"enable-proposed-api":{type:"string[]",allowEmptyValue:!0,cat:"e",args:"ext-id",description:b(1882,null)},"add-mcp":{type:"string[]",cat:"m",args:"json",description:b(1869,null)},version:{type:"boolean",cat:"t",alias:"v",description:b(1923,null)},verbose:{type:"boolean",cat:"t",global:!0,description:b(1922,null)},log:{type:"string[]",cat:"t",args:"level",global:!0,description:b(1894,null)},status:{type:"boolean",alias:"s",cat:"t",description:b(1909,null)},"prof-startup":{type:"boolean",cat:"t",description:b(1902,null)},"prof-append-timers":{type:"string"},"prof-duration-markers":{type:"string[]"},"prof-duration-markers-file":{type:"string"},"no-cached-data":{type:"boolean"},"prof-startup-prefix":{type:"string"},"prof-v8-extensions":{type:"boolean"},"disable-extensions":{type:"boolean",deprecates:["disableExtensions"],cat:"t",description:b(1879,null)},"disable-extension":{type:"string[]",cat:"t",args:"ext-id",description:b(1878,null)},sync:{type:"string",cat:"t",description:b(1915,null),args:["on | off"]},"inspect-extensions":{type:"string",allowEmptyValue:!0,deprecates:["debugPluginHost"],args:"port",cat:"t",description:b(1888,null)},"inspect-brk-extensions":{type:"string",allowEmptyValue:!0,deprecates:["debugBrkPluginHost"],args:"port",cat:"t",description:b(1887,null)},"disable-lcd-text":{type:"boolean",cat:"t",description:b(1881,null)},"disable-gpu":{type:"boolean",cat:"t",description:b(1880,null)},"disable-chromium-sandbox":{type:"boolean",cat:"t",description:b(1877,null)},sandbox:{type:"boolean"},"locate-shell-integration-path":{type:"string",cat:"t",args:["shell"],description:b(1893,null)},telemetry:{type:"boolean",cat:"t",description:b(1912,null)},remote:{type:"string",allowEmptyValue:!0},"folder-uri":{type:"string[]",cat:"o",args:"uri"},"file-uri":{type:"string[]",cat:"o",args:"uri"},"locate-extension":{type:"string[]"},extensionDevelopmentPath:{type:"string[]"},extensionDevelopmentKind:{type:"string[]"},extensionTestsPath:{type:"string"},extensionEnvironment:{type:"string"},debugId:{type:"string"},debugRenderer:{type:"boolean"},"inspect-ptyhost":{type:"string",allowEmptyValue:!0},"inspect-brk-ptyhost":{type:"string",allowEmptyValue:!0},"inspect-search":{type:"string",deprecates:["debugSearch"],allowEmptyValue:!0},"inspect-brk-search":{type:"string",deprecates:["debugBrkSearch"],allowEmptyValue:!0},"inspect-sharedprocess":{type:"string",allowEmptyValue:!0},"inspect-brk-sharedprocess":{type:"string",allowEmptyValue:!0},"export-default-configuration":{type:"string"},"export-policy-data":{type:"string",allowEmptyValue:!0},"install-source":{type:"string"},"enable-smoke-test-driver":{type:"boolean"},logExtensionHostCommunication:{type:"boolean"},"skip-release-notes":{type:"boolean"},"skip-welcome":{type:"boolean"},"disable-telemetry":{type:"boolean"},"disable-updates":{type:"boolean"},transient:{type:"boolean",cat:"t",description:b(1913,null)},"use-inmemory-secretstorage":{type:"boolean",deprecates:["disable-keytar"]},"password-store":{type:"string"},"disable-workspace-trust":{type:"boolean"},"disable-crash-reporter":{type:"boolean"},"crash-reporter-directory":{type:"string"},"crash-reporter-id":{type:"string"},"skip-add-to-recently-opened":{type:"boolean"},"open-url":{type:"boolean"},"file-write":{type:"boolean"},"file-chmod":{type:"boolean"},"install-builtin-extension":{type:"string[]"},force:{type:"boolean"},"do-not-sync":{type:"boolean"},"do-not-include-pack-dependencies":{type:"boolean"},trace:{type:"boolean"},"trace-memory-infra":{type:"boolean"},"trace-category-filter":{type:"string"},"trace-options":{type:"string"},"preserve-env":{type:"boolean"},"force-user-env":{type:"boolean"},"force-disable-user-env":{type:"boolean"},"open-devtools":{type:"boolean"},"disable-gpu-sandbox":{type:"boolean"},logsPath:{type:"string"},"__enable-file-policy":{type:"boolean"},editSessionId:{type:"string"},continueOn:{type:"string"},"enable-coi":{type:"boolean"},"unresponsive-sample-interval":{type:"string"},"unresponsive-sample-period":{type:"string"},"enable-rdp-display-tracking":{type:"boolean"},"disable-layout-restore":{type:"boolean"},"disable-experiments":{type:"boolean"},"no-proxy-server":{type:"boolean"},"no-sandbox":{type:"boolean",alias:"sandbox"},"proxy-server":{type:"string"},"proxy-bypass-list":{type:"string"},"proxy-pac-url":{type:"string"},"js-flags":{type:"string"},inspect:{type:"string",allowEmptyValue:!0},"inspect-brk":{type:"string",allowEmptyValue:!0},nolazy:{type:"boolean"},"force-device-scale-factor":{type:"string"},"force-renderer-accessibility":{type:"boolean"},"ignore-certificate-errors":{type:"boolean"},"allow-insecure-localhost":{type:"boolean"},"log-net-log":{type:"string"},vmodule:{type:"string"},_urls:{type:"string[]"},"disable-dev-shm-usage":{type:"boolean"},"profile-temp":{type:"boolean"},"ozone-platform":{type:"string"},"enable-tracing":{type:"string"},"trace-startup-format":{type:"string"},"trace-startup-file":{type:"string"},"trace-startup-duration":{type:"string"},"xdg-portal-required-version":{type:"string"},_:{type:"string[]"}},Kl={onUnknownOption:()=>{},onMultipleValues:()=>{},onEmptyValue:()=>{},onDeprecatedOption:()=>{}}});import zl from"assert";function Hl(n,e){let t=(l,u)=>{console.warn(b(1928,null,l,u))},r=l=>{console.warn(b(1926,null,l))},i=(l,u)=>{console.warn(b(1925,null,l,u))},s=l=>({onUnknownOption:u=>{Ct.includes(l)||console.warn(b(1930,null,u,l))},onMultipleValues:t,onEmptyValue:r,onDeprecatedOption:i,getSubcommandReporter:Ct.includes(l)?s:void 0}),o=Mr(n,$t,e?{onUnknownOption:l=>{console.warn(b(1929,null,l))},onMultipleValues:t,onEmptyValue:r,onDeprecatedOption:i,getSubcommandReporter:s}:void 0);return o.goto&&o._.forEach(l=>zl(/^(\w:)?[^:]+(:\d*){0,2}:?$/.test(l),b(1927,null))),o}function Ql(n){let e=n.findIndex(t=>!/^-/.test(t));if(e>-1)return[...n.slice(0,e),...n.slice(e+1)]}function Js(n){let[,,...e]=n;return process.env.VSCODE_DEV&&(e=Ql(e)||[]),Hl(e,!0)}function he(n,...e){let t=n.indexOf("--");return t===-1?n.push(...e):n.splice(t,0,...e),n}var Xs=P(()=>{xt();Br()});import{exec as Zs}from"child_process";function Yl(n){let e=n.replace(/[^a-zA-Z0-9]/g,"").toLowerCase();return Jl[e]||e}async function no(n){let e,t=process.env.VSCODE_CLI_ENCODING;t?(n&&console.log(`Found VSCODE_CLI_ENCODING variable: ${t}`),e=Promise.resolve(t)):V?e=new Promise(i=>{n&&console.log('Running "chcp" to detect terminal encoding...'),Zs("chcp",(s,a,o)=>{if(a){n&&console.log(`Output from "chcp" command is: ${a}`);let l=Object.keys(eo);for(let u of l)if(a.indexOf(u)>=0)return i(eo[u])}return i(void 0)})}):e=new Promise(i=>{n&&console.log('Running "locale charmap" to detect terminal encoding...'),Zs("locale charmap",(s,a,o)=>i(a))});let r=await e;return n&&console.log(`Detected raw terminal encoding: ${r}`),!r||r.toLowerCase()==="utf-8"||r.toLowerCase()===to?to:Yl(r)}var eo,Jl,to,ro=P(()=>{Z();eo={437:"cp437",850:"cp850",852:"cp852",855:"cp855",857:"cp857",860:"cp860",861:"cp861",863:"cp863",865:"cp865",866:"cp866",869:"cp869",936:"cp936",1252:"cp1252"};Jl={ibm866:"cp866",big5:"cp950"},to="utf8"});import*as Kt from"fs";import{tmpdir as Xl}from"os";function io(){try{return!process.stdin.isTTY}catch{}return!1}function so(n){return new Promise(e=>{let t=()=>e(!0);setTimeout(()=>{process.stdin.removeListener("data",t),e(!1)},n),process.stdin.once("data",t)})}function oo(){return xe(Xl(),"code-stdin",3)}async function Zl(n){await Kt.promises.appendFile(n,""),await Kt.promises.chmod(n,384)}async function ao(n,e,t){let[r,i]=await Promise.all([no(e),import("@vscode/iconv-lite-umd"),Zl(n)]);i.default.encodingExists(r)||(console.log(`Unsupported terminal encoding: ${r}, falling back to UTF-8.`),r="utf8");let s=new Nt,a=i.default.getDecoder(r);process.stdin.on("data",o=>{let l=a.write(o);s.queue(()=>Kt.promises.appendFile(n,l))}),process.stdin.on("end",()=>{let o=a.end();s.queue(async()=>{try{typeof o=="string"&&await Kt.promises.appendFile(n,o)}finally{t?.()}})})}var lo=P(()=>{ht();qe();ro()});import{writeFileSync as e1}from"fs";import{tmpdir as t1}from"os";function uo(n){let e=xe(t1());try{return e1(e,""),n&&console.log(`Marker file for --wait created: ${e}`),e}catch(t){n&&console.error(`Failed to create marker file for --wait: ${t}`);return}}var co=P(()=>{qe()});var ue,Cr,ce,fo=P(()=>{Jt();Cr=globalThis.vscode;if(typeof Cr<"u"&&typeof Cr.context<"u"){let n=Cr.context.configuration();if(n)ue=n.product;else throw new Error("Sandbox: unable to resolve product configuration from preload script.")}else if(globalThis._VSCODE_PRODUCT_JSON&&globalThis._VSCODE_PACKAGE_JSON){if(ue=globalThis._VSCODE_PRODUCT_JSON,Yt.VSCODE_DEV&&Object.assign(ue,{nameShort:`${ue.nameShort} Dev`,nameLong:`${ue.nameLong} Dev`,dataFolderName:`${ue.dataFolderName}-dev`,serverDataFolderName:ue.serverDataFolderName?`${ue.serverDataFolderName}-dev`:void 0}),!ue.version){let n=globalThis._VSCODE_PACKAGE_JSON;Object.assign(ue,{version:n.version})}}else ue={nameShort:"Deva IDE",nameLong:"Deva IDE",applicationName:"devseccode-ide",dataFolderName:".devseccode-ide",win32MutexName:"devseccodeide",licenseName:"MIT",licenseUrl:"https://github.com/devseccode/DevSecCode-IDE/blob/main/LICENSE.txt",serverLicenseUrl:"https://github.com/devseccode/DevSecCode-IDE/blob/main/LICENSE.txt",serverGreeting:[],serverLicense:[],serverLicensePrompt:"",serverApplicationName:"devseccode-server",serverDataFolderName:".devseccode-server",tunnelApplicationName:"devseccode-tunnel",win32DirName:"Deva IDE",win32NameVersion:"Deva IDE",win32RegValueName:"DevSecCodeIDE",win32x64AppId:"{4C4A0F3C-0F55-4A0D-9146-8B24F26D74F9}",win32arm64AppId:"{F5C24F88-1CEB-4A77-8FB7-9F0C0EBD15A8}",win32x64UserAppId:"{E5C2B5D7-13BD-4D2F-9D27-62807C7D4994}",win32arm64UserAppId:"{A8D86CF0-58C7-46D8-9AC4-62D04E9CE9A7}",win32AppUserModelId:"Deva.IDE",win32ShellNameShort:"Deva &&IDE",win32TunnelServiceMutex:"devseccode-tunnelservice",win32TunnelMutex:"devseccode-tunnel",darwinBundleIdentifier:"com.devseccode.ide",darwinProfileUUID:"52F63D5F-9C7E-45AD-A4A7-C78A15CA5F9D",darwinProfilePayloadUUID:"3B6A6C46-D4A1-4EF3-81D0-48C23F73D57F",linuxIconName:"devseccode-ide",licenseFileName:"LICENSE.txt",reportIssueUrl:"https://github.com/devseccode/DevSecCode-IDE/issues/new",downloadUrl:"https://devseccode.ai/download",nodejsRepository:"https://nodejs.org",urlProtocol:"devseccode-ide",webviewContentExternalBaseUrlTemplate:"https://cdn.devseccode.ai/{{uuid}}/out/vs/workbench/contrib/webview/browser/pre/",builtInExtensions:[],extensionsGallery:{serviceUrl:"https://open-vsx.org/vscode/gallery",itemUrl:"https://open-vsx.org/vscode/item",resourceUrlTemplate:"https://open-vsx.org/vscode/unpkg/{publisher}/{name}/{version}/{path}",controlUrl:"",nlsBaseUrl:"",publisherUrl:"https://open-vsx.org/namespace/{publisher}"},dscServices:{llmProxyUrl:"https://us-central1-devseccode-9dc41.cloudfunctions.net/dsc-llm-proxy",marketplaceUrl:"https://dsc-marketplace-3h3bbdfu4a-uc.a.run.app"},enableTelemetry:!1,enabledTelemetryLevels:{error:!1,usage:!1},showTelemetryOptOut:!1,removeTelemetryMachineId:!0,defaultChatAgent:{extensionId:"devseccode.core",chatExtensionId:"devseccode.chat",chatExtensionOutputId:"devseccode.chat.log",documentationUrl:"https://docs.devseccode.ai/ide/chat",termsStatementUrl:"https://devseccode.ai/legal/terms",privacyStatementUrl:"https://devseccode.ai/legal/privacy",skusDocumentationUrl:"https://docs.devseccode.ai/ide/plans",publicCodeMatchesUrl:"https://docs.devseccode.ai/ide/code-attribution",manageSettingsUrl:"https://docs.devseccode.ai/ide/settings",managePlanUrl:"https://devseccode.ai/account/plan",manageOverageUrl:"https://devseccode.ai/account/usage",upgradePlanUrl:"https://devseccode.ai/pricing",signUpUrl:"https://devseccode.ai/signup",provider:{default:{id:"devseccode",name:"Deva"},enterprise:{id:"devseccode-enterprise",name:"Deva Enterprise"},google:{id:"google",name:"Google"},apple:{id:"apple",name:"Apple"}},providerUriSetting:"devsecai.enterprise.uri",providerScopes:[["openid","profile","email"],["openid","email"],["openid"]],entitlementUrl:"https://api.devseccode.ai/chat/entitlement",entitlementSignupLimitedUrl:"https://api.devseccode.ai/chat/entitlement/signup",chatQuotaExceededContext:"devseccode.chat.quotaExceeded",completionsQuotaExceededContext:"devseccode.completions.quotaExceeded",walkthroughCommand:"workbench.action.chat.open",completionsMenuCommand:"devseccode.action.openAIMenu",completionsRefreshTokenCommand:"devseccode.account.signIn",chatRefreshTokenCommand:"devseccode.chat.refreshAuth",generateCommitMessageCommand:"devseccode.chat.generateCommitMessage",resolveMergeConflictsCommand:"devseccode.chat.resolveMergeConflicts",completionsAdvancedSetting:"devsecAI.advanced",completionsEnablementSetting:"devsecAI.enableCompletions",nextEditSuggestionsSetting:"devsecAI.nextEditSuggestions.enabled",tokenEntitlementUrl:"https://api.devseccode.ai/chat/token",mcpRegistryDataUrl:"https://api.devseccode.ai/mcp/registry"},version:"1.110.0",commit:"071d09d3bfa1c7434837e456163beced5e5e1266",date:"2026-05-31T21:12:07.847Z"},Object.keys(ue).length===0&&Object.assign(ue,{version:"1.104.0-dev",nameShort:"Deva IDE Dev",nameLong:"Deva IDE Dev",applicationName:"devseccode-ide",dataFolderName:".devseccode-ide",urlProtocol:"devseccode-ide",reportIssueUrl:"https://github.com/devseccode/DevSecCode-IDE/issues/new",licenseName:"MIT",licenseUrl:"https://github.com/devseccode/DevSecCode-IDE/blob/main/LICENSE.txt",serverLicenseUrl:"https://github.com/devseccode/DevSecCode-IDE/blob/main/LICENSE.txt",defaultChatAgent:{extensionId:"devseccode.core",chatExtensionId:"devseccode.chat",provider:{default:{id:"devseccode",name:"Deva"},enterprise:{id:"devseccode-enterprise",name:"Deva Enterprise"}},providerScopes:[]}});ce=ue});var Sf,$r,po=P(()=>{de();Ar();Sf=Bt("IV8InspectProfilingService");(t=>{function n(r){return!!(r.samples&&r.timeDeltas)}t.isValidProfile=n;function e(r,i="noAbsolutePaths"){for(let s of r.nodes)s.callFrame&&s.callFrame.url&&(Ae(s.callFrame.url)||/^\w[\w\d+.-]*:\/\/\/?/.test(s.callFrame.url))&&(s.callFrame.url=W(i,We(s.callFrame.url)));return r}t.rewriteAbsolutePaths=e})($r||={})});function n1(){return process.uncHostAllowlist}function Kr(n){if(process.platform!=="win32")return;let e=n1();if(e)if(typeof n=="string")e.add(n.toLowerCase());else for(let t of r1(n))Kr(t)}function r1(n){let e=new Set;if(Array.isArray(n))for(let t of n)typeof t=="string"&&e.add(t);return Array.from(e)}var mo=P(()=>{});var xo={};Fo(xo,{main:()=>_o});import{spawn as Rn}from"child_process";import{chmodSync as ho,existsSync as qr,readFileSync as go,statSync as Dn,truncateSync as i1,unlinkSync as bo}from"fs";import{homedir as s1,tmpdir as vo}from"os";function o1(n){return!!n["install-source"]||!!n["list-extensions"]||!!n["install-extension"]||!!n["uninstall-extension"]||!!n["update-extensions"]||!!n["locate-extension"]||!!n["add-mcp"]||!!n.telemetry}async function _o(n){let e;try{e=Js(n)}catch(t){console.error(t.message);return}for(let t of Ct)if(e[t]){if(!ce.tunnelApplicationName){console.error(`'${t}' command not supported in ${ce.applicationName}`);return}let r={...process.env};delete r.ELECTRON_RUN_AS_NODE;let i=n.slice(n.indexOf(t)+1);return new Promise((s,a)=>{let o,l=["ignore","pipe","pipe"];if(process.env.VSCODE_DEV)o=Rn("cargo",["run","--",t,...i],{cwd:W(To(),"cli"),stdio:l,env:r});else{let u=process.platform==="darwin"?W(ye(ye(process.execPath)),"Resources","app"):ye(process.execPath),f=W(u,"bin",`${ce.tunnelApplicationName}${V?".exe":""}`);o=Rn(f,[t,...i],{cwd:Ze(),stdio:l,env:r})}o.stdout.pipe(process.stdout),o.stderr.pipe(process.stderr),o.on("exit",s),o.on("error",a)})}if(e.help){let t=`${ce.applicationName}${V?".exe":""}`;console.log(Wr(ce.nameLong,t,ce.version,$t))}else if(e.chat?.help){let t=`${ce.applicationName}${V?".exe":""}`;console.log(Wr(ce.nameLong,t,ce.version,$t.chat.options,{isChat:!0}))}else if(e.version)console.log(Ys(ce.version,ce.commit));else if(e["locate-shell-integration-path"]){let t;switch(e["locate-shell-integration-path"]){case"bash":t="shellIntegration-bash.sh";break;case"pwsh":t="shellIntegration.ps1";break;case"zsh":t="shellIntegration-rc.zsh";break;case"fish":t="shellIntegration.fish";break;default:throw new Error("Error using --locate-shell-integration-path: Invalid shell type")}console.log(W(To(),"out","vs","workbench","contrib","terminal","common","scripts",t))}else if(o1(e)){let t;process.env.VSCODE_DEV?t="./cliProcessMain.js":t="./vs/code/node/cliProcessMain.js",await(await import(t)).main(e);return}else if(e["file-write"]){let t=e._[0];if(!t||!Ae(t)||!qr(t)||!Dn(t).isFile())throw new Error("Using --file-write with invalid arguments.");let r,i;try{let s=JSON.parse(go(t,"utf8"));r=s.source,i=s.target}catch{throw new Error("Using --file-write with invalid arguments.")}if(V)for(let s of[r,i])typeof s=="string"&&Gi(s)&&Kr(K.file(s).authority);if(!r||!i||r===i||!Ae(r)||!Ae(i)||!qr(r)||!Dn(r).isFile()||!qr(i)||!Dn(i).isFile())throw new Error("Using --file-write with invalid arguments.");try{let s=0,a=!1;e["file-chmod"]&&(s=Dn(i).mode,s&128||(ho(i,s|128),a=!0));let o=go(r);V?(i1(i,0),at(i,o,{flag:"r+"})):at(i,o),a&&ho(i,s)}catch(s){throw s.message=`Error using --file-write: ${s.message}`,s}}else{let t={...process.env,ELECTRON_NO_ATTACH_CONSOLE:"1"};delete t.ELECTRON_RUN_AS_NODE;let r=[];if(e.verbose&&(t.ELECTRON_ENABLE_LOGGING="1"),(e.verbose||e.status)&&r.push(async u=>{u.stdout?.on("data",f=>console.log(f.toString("utf8").trim())),u.stderr?.on("data",f=>console.log(f.toString("utf8").trim())),await ae.toPromise(ae.fromNodeEventEmitter(u,"exit"))}),e.transient){let u=xe(vo(),"vscode"),f=W(u,"data"),c=W(u,"extensions");he(n,"--user-data-dir",f),he(n,"--extensions-dir",c),console.log(`State is temporarily stored. Relaunch this state with: ${ce.applicationName} --user-data-dir "${f}" --extensions-dir "${c}"`)}let i=e._.some(u=>u==="-")||e.chat?._.some(u=>u==="-");i&&(e._=e._.filter(u=>u!=="-"),n=n.filter(u=>u!=="-"));let s;if(io())if(i){s=oo();try{let u=new ot;await ao(s,!!e.verbose,()=>u.complete()),e.wait||r.push(()=>u.p),e.chat?he(n,"--add-file",s):(he(n,s),he(n,"--skip-add-to-recently-opened")),console.log(`Reading from stdin via: ${s}`)}catch(u){console.log(`Failed to create file to read via stdin: ${u.toString()}`),s=void 0}}else r.push(u=>so(1e3).then(f=>{f&&console.log(Vr(ce.applicationName,!!e.chat))}));let a;if(e.wait&&(a=uo(e.verbose),a&&he(n,"--waitMarkerFilePath",a),r.push(async u=>{let f;ge?f=new Promise(c=>{u.on("exit",(d,p)=>{(d!==0||p)&&c()})}):f=ae.toPromise(ae.fromNodeEventEmitter(u,"exit"));try{await Promise.race([Ir(a),ae.toPromise(ae.fromNodeEventEmitter(u,"error")),f])}finally{s&&bo(s)}})),e["prof-startup"]){let u="127.0.0.1",f=await In(bs(),10,3e3),c=await In(f+1,10,3e3),d=await In(c+1,10,3e3);if(f*c*d===0)throw new Error("Failed to find free ports for profiler. Make sure to shutdown all instances of the editor first.");let p=xe(s1(),"prof");he(n,`--inspect-brk=${u}:${f}`),he(n,`--remote-debugging-port=${u}:${c}`),he(n,`--inspect-brk-extensions=${u}:${d}`),he(n,"--prof-startup-prefix",p),he(n,"--no-cached-data"),at(p,n.slice(-6).join("|")),r.push(async m=>{class x{static async start(M,Q,O){let w=await import("v8-inspect-profiler"),k;try{k=await w.startProfiling({...O,host:u})}catch{console.error(`FAILED to start profiling for '${M}' on port '${O.port}'`)}return{async stop(){if(!k)return;let G="",h=await k.stop();process.env.VSCODE_DEV||(h.profile=$r.rewriteAbsolutePaths(h.profile,"piiRemoved"),G=".txt"),at(`${Q}.${M}.cpuprofile${G}`,JSON.stringify(h.profile,void 0,4))}}}}try{let L=x.start("main",p,{port:f}),M=x.start("extHost",p,{port:d,tries:300}),Q=x.start("renderer",p,{port:c,tries:200,target:function(G){return G.filter(h=>h.webSocketDebuggerUrl?h.type==="page"?h.url.indexOf("workbench/workbench.html")>0||h.url.indexOf("workbench/workbench-dev.html")>0:!0:!1)[0]}}),O=await L,w=await M,k=await Q;await Ir(p),await O.stop(),await k.stop(),await w.stop(),at(p,"")}catch{console.error("Failed to profile startup. Make sure to quit Code first.")}})}let o={detached:!0,env:t};e.verbose||(o.stdio="ignore");let l;if(!ge)!e.verbose&&e.status&&(o.stdio=["ignore","pipe","ignore"]),l=Rn(process.execPath,n.slice(2),o);else{let u=["-n","-g"];if(u.push("-a",process.execPath),e.verbose||e.status){u.push("--wait-apps");for(let f of e.verbose?["stdout","stderr"]:["stdout"]){let c=xe(vo(),`code-${f}`);at(c,""),u.push(`--${f}`,c),r.push(async d=>{try{let p=f==="stdout"?process.stdout:process.stderr,m=new be;d.on("close",()=>{setTimeout(()=>m.dispose(!0),200)}),await Cs(c,x=>p.write(x),()=>{},m.token)}finally{bo(c)}})}}for(let f in t)f!=="_"&&(u.push("--env"),u.push(`${f}=${t[f]}`));if(u.push("--args",...n.slice(2)),t.VSCODE_DEV){let c=u.indexOf(".");c!==-1&&(u[c]=en("."))}l=Rn("open",u,{...o,env:{}})}await Promise.all(r.map(u=>u(l)))}}function To(){return ye(es.asFileUri("").fsPath)}function yo(n){setTimeout(()=>process.exit(n),0)}var Io=P(()=>{un();de();Z();vs();xn();ys();$s();Br();Xs();lo();co();fo();St();qe();po();pn();Jt();mo();Ge();ht();_o(process.argv).then(()=>yo(0)).then(null,n=>{console.error(n.message||n.stack||n),yo(1)})});delete process.env.VSCODE_CWD;import*as J from"node:path";import*as An from"node:fs";import{createRequire as Lo}from"node:module";var c1=Lo(import.meta.url),d1=process.platform==="win32";Error.stackTraceLimit=100;if(!process.env.VSCODE_HANDLES_SIGPIPE){let n=!1;process.on("SIGPIPE",()=>{n||(n=!0,console.error(new Error("Unexpected SIGPIPE")))})}function Uo(){try{typeof process.env.VSCODE_CWD!="string"&&(process.env.VSCODE_CWD=process.cwd()),process.platform==="win32"&&process.chdir(J.dirname(process.execPath))}catch(n){console.error(n)}}Uo();function zr(n){let e=J.dirname(import.meta.dirname);function t(){return process.env.VSCODE_DEV?e:process.platform==="darwin"?J.dirname(J.dirname(J.dirname(e))):process.platform==="win32"&&n.win32VersionedUpdate?J.dirname(J.dirname(J.dirname(e))):J.dirname(J.dirname(e))}function r(){if(process.env.VSCODE_PORTABLE)return process.env.VSCODE_PORTABLE;if(process.platform==="win32"||process.platform==="linux")return J.join(t(),"data");let l=n.portable||`${n.applicationName}-portable-data`;return J.join(J.dirname(t()),l)}let i=r(),s=!("target"in n)&&An.existsSync(i),a=J.join(i,"tmp"),o=s&&An.existsSync(a);return s?process.env.VSCODE_PORTABLE=i:delete process.env.VSCODE_PORTABLE,o&&(process.platform==="win32"?(process.env.TMP=a,process.env.TEMP=a):process.env.TMPDIR=a),{portableDataPath:i,isPortable:s}}import*as jt from"node:fs";import{register as Bo}from"node:module";import{createRequire as No}from"node:module";var Tt=No(import.meta.url),Je={BUILD_INSERT_PRODUCT_CONFIGURATION:"BUILD_INSERT_PRODUCT_CONFIGURATION"};Je.BUILD_INSERT_PRODUCT_CONFIGURATION&&(Je=Tt("../product.json"));var yt={"name":"Deva IDE","version":"1.110.0","distro":"16be71799bd7ef33ea9b0206fb548ce74a47daa4","author":{"name":"Microsoft Corporation"},"license":"MIT","main":"./out/main.js","type":"module","private":true,"scripts":{"test":"echo Please run any of the test scripts from the scripts folder.","test-browser":"npx playwright install && node test/unit/browser/index.js","test-browser-no-install":"node test/unit/browser/index.js","test-node":"mocha test/unit/node/index.js --delay --ui=tdd --timeout=5000 --exit","test-extension":"vscode-test","test-build-scripts":"cd build && npm run test","preinstall":"node build/npm/preinstall.ts","postinstall":"node build/npm/postinstall.ts","compile":"npm run gulp compile","compile-check-ts-native":"tsgo --project ./src/tsconfig.json --noEmit --skipLibCheck","watch":"npm-run-all2 -lp watch-client-transpile watch-client watch-extensions","watchd":"deemon npm run watch","watch-webd":"deemon npm run watch-web","kill-watchd":"deemon --kill npm run watch","kill-watch-webd":"deemon --kill npm run watch-web","restart-watchd":"deemon --restart npm run watch","restart-watch-webd":"deemon --restart npm run watch-web","watch-client":"npm run gulp watch-client","watch-clientd":"deemon npm run watch-client","kill-watch-clientd":"deemon --kill npm run watch-client","watch-client-transpile":"node build/next/index.ts transpile --watch","watch-client-transpiled":"deemon npm run watch-client-transpile","kill-watch-client-transpiled":"deemon --kill npm run watch-client-transpile","watch-extensions":"npm run gulp watch-extensions watch-extension-media","watch-extensionsd":"deemon npm run watch-extensions","kill-watch-extensionsd":"deemon --kill npm run watch-extensions","precommit":"node --experimental-strip-types build/hygiene.ts","gulp":"node --max-old-space-size=8192 ./node_modules/gulp/bin/gulp.js","electron":"node build/lib/electron.ts","7z":"7z","update-grammars":"node build/npm/update-all-grammars.ts","update-localization-extension":"node build/npm/update-localization-extension.ts","mixin-telemetry-docs":"node build/npm/mixin-telemetry-docs.ts","smoketest":"node build/lib/preLaunch.ts && cd test/smoke && npm run compile && node test/index.js","smoketest-no-compile":"cd test/smoke && node test/index.js","release-smoke:mac":"bash scripts/release/local-macos-download-smoke.sh","download-builtin-extensions":"node build/lib/builtInExtensions.ts","download-builtin-extensions-cg":"node build/lib/builtInExtensionsCG.ts","monaco-compile-check":"tsgo --project src/tsconfig.monaco.json --noEmit","tsec-compile-check":"node node_modules/tsec/bin/tsec -p src/tsconfig.tsec.json","vscode-dts-compile-check":"tsgo --project src/tsconfig.vscode-dts.json && tsgo --project src/tsconfig.vscode-proposed-dts.json","valid-layers-check":"node build/checker/layersChecker.ts && tsgo --project build/checker/tsconfig.browser.json && tsgo --project build/checker/tsconfig.worker.json && tsgo --project build/checker/tsconfig.node.json && tsgo --project build/checker/tsconfig.electron-browser.json && tsgo --project build/checker/tsconfig.electron-main.json && tsgo --project build/checker/tsconfig.electron-utility.json","define-class-fields-check":"node build/lib/propertyInitOrderChecker.ts && tsgo --project src/tsconfig.defineClassFields.json","update-distro":"node build/npm/update-distro.ts","web":"echo 'npm run web' is replaced by './scripts/code-server' or './scripts/code-web'","compile-cli":"npm run gulp compile-cli","compile-web":"npm run gulp compile-web","watch-web":"npm run gulp watch-web","watch-cli":"npm run gulp watch-cli","eslint":"node build/eslint.ts","stylelint":"node build/stylelint.ts","playwright-install":"npm exec playwright install","compile-build":"npm run gulp compile-build-with-mangling","compile-extensions-build":"npm run gulp compile-extensions-build","minify-vscode":"npm run gulp minify-vscode","minify-vscode-reh":"npm run gulp minify-vscode-reh","minify-vscode-reh-web":"npm run gulp minify-vscode-reh-web","hygiene":"npm run gulp hygiene","core-ci":"npm run gulp core-ci","core-ci-pr":"npm run gulp core-ci-pr","extensions-ci":"npm run gulp extensions-ci","extensions-ci-pr":"npm run gulp extensions-ci-pr","perf":"node scripts/code-perf.js","update-build-ts-version":"npm install -D typescript@next && npm install -D @typescript/native-preview && (cd build && npm run typecheck)"},"dependencies":{"@anthropic-ai/sandbox-runtime":"0.0.23","@microsoft/1ds-core-js":"^3.2.13","@microsoft/1ds-post-js":"^3.2.13","@parcel/watcher":"^2.5.6","@sigma/edge-curve":"^3.1.0","@types/semver":"^7.5.8","@vscode/codicons":"^0.0.45-8","@vscode/deviceid":"^0.1.1","@vscode/iconv-lite-umd":"0.7.1","@vscode/native-watchdog":"^1.4.6","@vscode/policy-watcher":"^1.3.2","@vscode/proxy-agent":"^0.38.0","@vscode/ripgrep":"^1.15.13","@vscode/spdlog":"^0.15.8","@vscode/sqlite3":"5.1.12-vscode","@vscode/sudo-prompt":"9.3.2","@vscode/tree-sitter-wasm":"^0.3.0","@vscode/vscode-languagedetection":"1.0.21","@vscode/windows-mutex":"^0.5.0","@vscode/windows-process-tree":"^0.6.0","@vscode/windows-registry":"^1.1.0","@xterm/addon-clipboard":"^0.3.0-beta.165","@xterm/addon-image":"^0.10.0-beta.165","@xterm/addon-ligatures":"^0.11.0-beta.165","@xterm/addon-progress":"^0.3.0-beta.165","@xterm/addon-search":"^0.17.0-beta.165","@xterm/addon-serialize":"^0.15.0-beta.165","@xterm/addon-unicode11":"^0.10.0-beta.165","@xterm/addon-webgl":"^0.20.0-beta.164","@xterm/headless":"^6.1.0-beta.165","@xterm/xterm":"^6.1.0-beta.165","3d-force-graph":"^1.79.1","firebase":"^12.9.0","graphology":"^0.26.0","graphology-layout-forceatlas2":"^0.10.1","graphology-layout-noverlap":"^0.4.2","graphology-types":"^0.24.8","http-proxy-agent":"^7.0.0","https-proxy-agent":"^7.0.2","jschardet":"3.1.4","katex":"^0.16.22","kerberos":"2.1.1","minimist":"^1.2.8","native-is-elevated":"0.9.0","native-keymap":"^3.3.5","node-pty":"^1.2.0-beta.10","open":"^10.1.2","playwright-core":"^1.58.2","sigma":"^3.0.2","tas-client":"0.3.1","three":"^0.183.2","undici":"^7.18.2","v8-inspect-profiler":"^0.1.1","vscode-oniguruma":"1.7.0","vscode-regexpp":"^3.1.0","vscode-textmate":"^9.3.2","yauzl":"^3.0.0","yazl":"^2.4.3"},"devDependencies":{"@playwright/test":"^1.56.1","@stylistic/eslint-plugin-ts":"^2.8.0","@types/cookie":"^0.3.3","@types/debug":"^4.1.5","@types/eslint":"^9.6.1","@types/gulp-svgmin":"^1.2.1","@types/http-proxy-agent":"^2.0.1","@types/kerberos":"^1.1.2","@types/minimist":"^1.2.1","@types/mocha":"^10.0.10","@types/node":"^22.18.10","@types/sinon":"^10.0.2","@types/sinon-test":"^2.4.2","@types/trusted-types":"^2.0.7","@types/vscode-notebook-renderer":"^1.72.0","@types/webpack":"^5.28.5","@types/wicg-file-system-access":"^2023.10.7","@types/windows-foreground-love":"^0.3.0","@types/winreg":"^1.2.30","@types/yauzl":"^2.10.0","@types/yazl":"^2.4.2","@typescript-eslint/utils":"^8.45.0","@typescript/native-preview":"^7.0.0-dev.20260130","@vscode/gulp-electron":"https://github.com/microsoft/vscode-gulp-electron.git#405e3df0e4e9c37fcf549cbe6f5cef8d5ba5ddff","@vscode/l10n-dev":"0.0.35","@vscode/telemetry-extractor":"^1.10.2","@vscode/test-cli":"^0.0.6","@vscode/test-electron":"^2.4.0","@vscode/test-web":"^0.0.76","@vscode/v8-heap-parser":"^0.1.0","@vscode/vscode-perf":"^0.0.19","@webgpu/types":"^0.1.66","ansi-colors":"^3.2.3","asar":"^3.0.3","chromium-pickle-js":"^0.2.0","cookie":"^0.7.2","copy-webpack-plugin":"^11.0.0","css-loader":"^6.9.1","debounce":"^1.0.0","deemon":"^1.13.6","electron":"39.6.0","eslint":"^9.36.0","eslint-formatter-compact":"^8.40.0","eslint-plugin-header":"3.1.1","eslint-plugin-jsdoc":"^50.3.1","event-stream":"3.3.4","fancy-log":"^1.3.3","file-loader":"^6.2.0","glob":"^5.0.13","gulp":"^4.0.0","gulp-azure-storage":"^0.12.1","gulp-bom":"^3.0.0","gulp-buffer":"0.0.2","gulp-filter":"^5.1.0","gulp-flatmap":"^1.0.2","gulp-gunzip":"^1.0.0","gulp-gzip":"^1.4.2","gulp-json-editor":"^2.5.0","gulp-plumber":"^1.2.0","gulp-rename":"^1.2.0","gulp-replace":"^0.5.4","gulp-sourcemaps":"^3.0.0","gulp-svgmin":"^4.1.0","husky":"^0.13.1","innosetup":"^6.4.1","istanbul-lib-coverage":"^3.2.0","istanbul-lib-instrument":"^6.0.1","istanbul-lib-report":"^3.0.0","istanbul-lib-source-maps":"^4.0.1","istanbul-reports":"^3.1.5","lazy.js":"^0.4.2","merge-options":"^1.0.1","mime":"^1.4.1","minimatch":"^3.0.4","mocha":"^10.8.2","mocha-junit-reporter":"^2.2.1","mocha-multi-reporters":"^1.5.1","npm-run-all2":"^8.0.4","os-browserify":"^0.3.0","p-all":"^1.0.0","path-browserify":"^1.0.1","pump":"^1.0.1","rcedit":"^1.1.0","rimraf":"^2.2.8","sinon":"^12.0.1","sinon-test":"^3.1.3","source-map":"0.6.1","source-map-support":"^0.3.2","style-loader":"^3.3.2","tar":"^7.5.7","ts-loader":"^9.5.1","tsec":"0.2.7","tslib":"^2.6.3","typescript":"^6.0.0-dev.20260130","typescript-eslint":"^8.45.0","util":"^0.12.4","webpack":"^5.105.0","webpack-cli":"^5.1.4","webpack-stream":"^7.0.0","xml2js":"^0.5.0","yaserver":"^0.4.0"},"overrides":{"node-gyp-build":"4.8.1","kerberos@2.1.1":{"node-addon-api":"7.1.0"}},"repository":{"type":"git","url":"https://github.com/microsoft/vscode.git"},"bugs":{"url":"https://github.com/microsoft/vscode/issues"},"optionalDependencies":{"windows-foreground-love":"0.6.1"},"desktopName":"devseccode-ide.desktop"};yt.BUILD_INSERT_PACKAGE_CONFIGURATION&&(yt=Tt("../package.json"));if(process.isEmbeddedApp){try{let n=Tt("../product.sub.json");Je=Object.assign(Je,n)}catch{}try{let n=Tt("../package.sub.json");yt=Object.assign(yt,n)}catch{}}var Hr={};if(process.env.VSCODE_DEV)try{Hr=Tt("../product.overrides.json"),Je=Object.assign(Je,Hr)}catch{}var _t=Je,Qr=yt;function Fn(n){let e=[];typeof n=="number"&&e.push("code/timeOrigin",n);function t(i,s){e.push(i,s?.startTime??Date.now())}function r(){let i=[];for(let s=0;s<e.length;s+=2)i.push({name:e[s],startTime:e[s+1]});return i}return{mark:t,getMarks:r}}function Mo(){if(typeof performance=="object"&&typeof performance.mark=="function"&&!performance.nodeTiming)return typeof performance.timeOrigin!="number"&&!performance.timing?Fn():{mark(n,e){performance.mark(n,e)},getMarks(){let n=performance.timeOrigin;typeof n!="number"&&(n=(performance.timing.navigationStart||performance.timing.redirectStart||performance.timing.fetchStart)??0);let e=[{name:"code/timeOrigin",startTime:Math.round(n)}];for(let t of performance.getEntriesByType("mark"))e.push({name:t.name,startTime:Math.round(n+t.startTime)});return e}};if(typeof process=="object"){let n=performance?.timeOrigin;return Fn(n)}else return console.trace("perf-util loaded in UNKNOWN environment"),Fn()}function Wo(n){return n.MonacoPerformanceMarks||(n.MonacoPerformanceMarks=Mo()),n.MonacoPerformanceMarks}var Yr=Wo(globalThis),Ne=Yr.mark,h1=Yr.getMarks;(process.env.ELECTRON_RUN_AS_NODE||process.versions.electron)&&Bo(`data:text/javascript;base64,${Buffer.from(`
	export async function resolve(specifier, context, nextResolve) {
		if (specifier === 'fs') {
			return {
				format: 'builtin',
				shortCircuit: true,
				url: 'node:original-fs'
			};
		}

		// Defer to the next hook in the chain, which would be the
		// Node.js default resolve if this is the last user-specified loader.
		return nextResolve(specifier, context);
	}`).toString("base64")}`,import.meta.url);globalThis._VSCODE_PRODUCT_JSON={..._t};globalThis._VSCODE_PACKAGE_JSON={...Qr};globalThis._VSCODE_FILE_ROOT=import.meta.dirname;var On;function Co(){return On||(On=$o()),On}async function $o(){Ne("code/willLoadNls");let n,e;if(process.env.VSCODE_NLS_CONFIG)try{n=JSON.parse(process.env.VSCODE_NLS_CONFIG),n?.languagePack?.messagesFile?e=n.languagePack.messagesFile:n?.defaultMessagesFile&&(e=n.defaultMessagesFile),globalThis._VSCODE_NLS_LANGUAGE=n?.resolvedLanguage}catch(t){console.error(`Error reading VSCODE_NLS_CONFIG from environment: ${t}`)}if(!(process.env.VSCODE_DEV||!e)){try{globalThis._VSCODE_NLS_MESSAGES=JSON.parse((await jt.promises.readFile(e)).toString())}catch(t){if(console.error(`Error reading NLS messages file ${e}: ${t}`),n?.languagePack?.corruptMarkerFile)try{await jt.promises.writeFile(n.languagePack.corruptMarkerFile,"corrupted")}catch(r){console.error(`Error writing corrupted NLS marker file: ${r}`)}if(n?.defaultMessagesFile&&n.defaultMessagesFile!==e)try{globalThis._VSCODE_NLS_MESSAGES=JSON.parse((await jt.promises.readFile(n.defaultMessagesFile)).toString())}catch(r){console.error(`Error reading default NLS messages file ${n.defaultMessagesFile}: ${r}`)}}return Ne("code/didLoadNls"),n}}async function Jr(){await Co()}de();import{promises as Le}from"fs";xn();async function gs({userLocale:n,osLocale:e,userDataPath:t,commit:r,nlsMetadataPath:i}){if(Ne("code/willGenerateNls"),process.env.VSCODE_DEV||n==="pseudo"||n.startsWith("en")||!r||!t)return Vt(n,e,i);try{let s=await Tl(t);if(!s)return Vt(n,e,i);let a=yl(s,n);if(!a)return Vt(n,e,i);let o=s[a],l=o?.translations?.vscode;if(!o||typeof o.hash!="string"||!o.translations||typeof l!="string"||!await le.exists(l))return Vt(n,e,i);let u=`${o.hash}.${a}`,f=W(t,"clp",u),c=W(f,r),d=W(c,"nls.messages.json"),p=W(f,"tcf.json"),m=W(f,"corrupted.info");await le.exists(m)&&await Le.rm(f,{recursive:!0,force:!0,maxRetries:3});let x={userLocale:n,osLocale:e,resolvedLanguage:a,defaultMessagesFile:W(i,"nls.messages.json"),languagePack:{translationsConfigFile:p,messagesFile:d,corruptMarkerFile:m},locale:n,availableLanguages:{"*":a},_languagePackId:u,_languagePackSupport:!0,_translationsConfigFile:p,_cacheRoot:f,_resolvedLanguagePackCoreLocation:c,_corruptedFile:m};if(await le.exists(d))return _l(c).catch(()=>{}),Ne("code/didGenerateNls"),x;let[L,M,Q]=await Promise.all([Le.readFile(W(i,"nls.keys.json"),"utf-8").then(k=>JSON.parse(k)),Le.readFile(W(i,"nls.messages.json"),"utf-8").then(k=>JSON.parse(k)),Le.readFile(l,"utf-8").then(k=>JSON.parse(k))]),O=[],w=0;for(let[k,G]of L){let h=Q.contents[k];for(let E of G)O.push(h?.[E]||M[w]),w++}return await Le.mkdir(c,{recursive:!0}),await Promise.all([Le.writeFile(d,JSON.stringify(O),"utf-8"),Le.writeFile(p,JSON.stringify(o.translations),"utf-8")]),Ne("code/didGenerateNls"),x}catch(s){console.error("Generating translation files failed.",s)}return Vt(n,e,i)}async function Tl(n){let e=W(n,"languagepacks.json");try{return JSON.parse(await Le.readFile(e,"utf-8"))}catch{return}}function yl(n,e){try{for(;e;){if(n[e])return e;let t=e.lastIndexOf("-");if(t>0)e=e.substring(0,t);else return}}catch(t){console.error("Resolving language pack configuration failed.",t)}}function Vt(n,e,t){return Ne("code/didGenerateNls"),{userLocale:n,osLocale:e,resolvedLanguage:"en",defaultMessagesFile:W(t,"nls.messages.json"),locale:n,availableLanguages:{}}}function _l(n){let e=new Date;return Le.utimes(n,e,e)}var a1=await gs({userLocale:"en",osLocale:"en",commit:_t.commit,userDataPath:"",nlsMetadataPath:import.meta.dirname});process.env.VSCODE_NLS_CONFIG=JSON.stringify(a1);zr(_t);process.env.VSCODE_CLI="1";await Jr();await Promise.resolve().then(()=>(Io(),xo));
//# sourceMappingURL=https://main.vscode-cdn.net/sourcemaps/071d09d3bfa1c7434837e456163beced5e5e1266/core/cli.js.map
