EVOLUTION-MANAGER
Edit File: server-main.js
/*!-------------------------------------------------------- * Copyright (C) Microsoft Corporation. All rights reserved. *--------------------------------------------------------*/var hp=function(e,t){return hp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,i){s.__proto__=i}||function(s,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(s[n]=i[n])},hp(e,t)};export function __extends(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");hp(e,t);function s(){this.constructor=e}e.prototype=t===null?Object.create(t):(s.prototype=t.prototype,new s)}export var __assign=function(){return __assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(t[r]=s[r])}return t},__assign.apply(this,arguments)};export function __rest(e,t){var s={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(s[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(s[i[n]]=e[i[n]]);return s}export function __decorate(e,t,s,i){var n=arguments.length,r=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,s):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,s,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n<3?o(r):n>3?o(t,s,r):o(t,s))||r);return n>3&&r&&Object.defineProperty(t,s,r),r}export function __param(e,t){return function(s,i){t(s,i,e)}}export function __esDecorate(e,t,s,i,n,r){function o(x){if(x!==void 0&&typeof x!="function")throw new TypeError("Function expected");return x}for(var a=i.kind,c=a==="getter"?"get":a==="setter"?"set":"value",l=!t&&e?i.static?e:e.prototype:null,u=t||(l?Object.getOwnPropertyDescriptor(l,i.name):{}),h,d=!1,p=s.length-1;p>=0;p--){var g={};for(var w in i)g[w]=w==="access"?{}:i[w];for(var w in i.access)g.access[w]=i.access[w];g.addInitializer=function(x){if(d)throw new TypeError("Cannot add initializers after decoration has completed");r.push(o(x||null))};var y=(0,s[p])(a==="accessor"?{get:u.get,set:u.set}:u[c],g);if(a==="accessor"){if(y===void 0)continue;if(y===null||typeof y!="object")throw new TypeError("Object expected");(h=o(y.get))&&(u.get=h),(h=o(y.set))&&(u.set=h),(h=o(y.init))&&n.unshift(h)}else(h=o(y))&&(a==="field"?n.unshift(h):u[c]=h)}l&&Object.defineProperty(l,i.name,u),d=!0}export function __runInitializers(e,t,s){for(var i=arguments.length>2,n=0;n<t.length;n++)s=i?t[n].call(e,s):t[n].call(e);return i?s:void 0}export function __propKey(e){return typeof e=="symbol"?e:"".concat(e)}export function __setFunctionName(e,t,s){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:s?"".concat(s," ",t):t})}export function __metadata(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}export function __awaiter(e,t,s,i){function n(r){return r instanceof s?r:new s(function(o){o(r)})}return new(s||(s=Promise))(function(r,o){function a(u){try{l(i.next(u))}catch(h){o(h)}}function c(u){try{l(i.throw(u))}catch(h){o(h)}}function l(u){u.done?r(u.value):n(u.value).then(a,c)}l((i=i.apply(e,t||[])).next())})}export function __generator(e,t){var s={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,n,r,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(l){return function(u){return c([l,u])}}function c(l){if(i)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(s=0)),s;)try{if(i=1,n&&(r=l[0]&2?n.return:l[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,l[1])).done)return r;switch(n=0,r&&(l=[l[0]&2,r.value]),l[0]){case 0:case 1:r=l;break;case 4:return s.label++,{value:l[1],done:!1};case 5:s.label++,n=l[1],l=[0];continue;case 7:l=s.ops.pop(),s.trys.pop();continue;default:if(r=s.trys,!(r=r.length>0&&r[r.length-1])&&(l[0]===6||l[0]===2)){s=0;continue}if(l[0]===3&&(!r||l[1]>r[0]&&l[1]<r[3])){s.label=l[1];break}if(l[0]===6&&s.label<r[1]){s.label=r[1],r=l;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(l);break}r[2]&&s.ops.pop(),s.trys.pop();continue}l=t.call(e,s)}catch(u){l=[6,u],n=0}finally{i=r=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}export var __createBinding=Object.create?function(e,t,s,i){i===void 0&&(i=s);var n=Object.getOwnPropertyDescriptor(t,s);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,i,n)}:function(e,t,s,i){i===void 0&&(i=s),e[i]=t[s]};export function __exportStar(e,t){for(var s in e)s!=="default"&&!Object.prototype.hasOwnProperty.call(t,s)&&__createBinding(t,e,s)}export function __values(e){var t=typeof Symbol=="function"&&Symbol.iterator,s=t&&e[t],i=0;if(s)return s.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}export function __read(e,t){var s=typeof Symbol=="function"&&e[Symbol.iterator];if(!s)return e;var i=s.call(e),n,r=[],o;try{for(;(t===void 0||t-- >0)&&!(n=i.next()).done;)r.push(n.value)}catch(a){o={error:a}}finally{try{n&&!n.done&&(s=i.return)&&s.call(i)}finally{if(o)throw o.error}}return r}export function __spread(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read(arguments[t]));return e}export function __spreadArrays(){for(var e=0,t=0,s=arguments.length;t<s;t++)e+=arguments[t].length;for(var i=Array(e),n=0,t=0;t<s;t++)for(var r=arguments[t],o=0,a=r.length;o<a;o++,n++)i[n]=r[o];return i}export function __spreadArray(e,t,s){if(s||arguments.length===2)for(var i=0,n=t.length,r;i<n;i++)(r||!(i in t))&&(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}export function __await(e){return this instanceof __await?(this.v=e,this):new __await(e)}export function __asyncGenerator(e,t,s){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=s.apply(e,t||[]),n,r=[];return n={},a("next"),a("throw"),a("return",o),n[Symbol.asyncIterator]=function(){return this},n;function o(p){return function(g){return Promise.resolve(g).then(p,h)}}function a(p,g){i[p]&&(n[p]=function(w){return new Promise(function(y,x){r.push([p,w,y,x])>1||c(p,w)})},g&&(n[p]=g(n[p])))}function c(p,g){try{l(i[p](g))}catch(w){d(r[0][3],w)}}function l(p){p.value instanceof __await?Promise.resolve(p.value.v).then(u,h):d(r[0][2],p)}function u(p){c("next",p)}function h(p){c("throw",p)}function d(p,g){p(g),r.shift(),r.length&&c(r[0][0],r[0][1])}}export function __asyncDelegator(e){var t,s;return t={},i("next"),i("throw",function(n){throw n}),i("return"),t[Symbol.iterator]=function(){return this},t;function i(n,r){t[n]=e[n]?function(o){return(s=!s)?{value:__await(e[n](o)),done:!1}:r?r(o):o}:r}}export function __asyncValues(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],s;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),s={},i("next"),i("throw"),i("return"),s[Symbol.asyncIterator]=function(){return this},s);function i(r){s[r]=e[r]&&function(o){return new Promise(function(a,c){o=e[r](o),n(a,c,o.done,o.value)})}}function n(r,o,a,c){Promise.resolve(c).then(function(l){r({value:l,done:a})},o)}}export function __makeTemplateObject(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var DI=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};export function __importStar(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var s in e)s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)&&__createBinding(t,e,s);return DI(t,e),t}export function __importDefault(e){return e&&e.__esModule?e:{default:e}}export function __classPrivateFieldGet(e,t,s,i){if(s==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return s==="m"?i:s==="a"?i.call(e):i?i.value:t.get(e)}export function __classPrivateFieldSet(e,t,s,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(e,s):n?n.value=s:t.set(e,s),s}export function __classPrivateFieldIn(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}export function __addDisposableResource(e,t,s){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var i,n;if(s){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");i=t[Symbol.asyncDispose]}if(i===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");i=t[Symbol.dispose],s&&(n=i)}if(typeof i!="function")throw new TypeError("Object not disposable.");n&&(i=function(){try{n.call(this)}catch(r){return Promise.reject(r)}}),e.stack.push({value:t,dispose:i,async:s})}else s&&e.stack.push({async:!0});return t}var NI=typeof SuppressedError=="function"?SuppressedError:function(e,t,s){var i=new Error(s);return i.name="SuppressedError",i.error=e,i.suppressed=t,i};export function __disposeResources(e){function t(i){e.error=e.hasError?new NI(i,e.error,"An error was suppressed during disposal."):i,e.hasError=!0}function s(){for(;e.stack.length;){var i=e.stack.pop();try{var n=i.dispose&&i.dispose.call(i.value);if(i.async)return Promise.resolve(n).then(s,function(r){return t(r),s()})}catch(r){t(r)}}if(e.hasError)throw e.error}return s()}export default{__extends,__assign,__rest,__decorate,__param,__metadata,__awaiter,__generator,__createBinding,__exportStar,__values,__read,__spread,__spreadArrays,__spreadArray,__await,__asyncGenerator,__asyncDelegator,__asyncValues,__makeTemplateObject,__importStar,__importDefault,__classPrivateFieldGet,__classPrivateFieldSet,__classPrivateFieldIn,__addDisposableResource,__disposeResources};var RI=Object.create,fp=Object.defineProperty,LI=Object.getOwnPropertyDescriptor,dp=Object.getOwnPropertyNames,OI=Object.getPrototypeOf,CI=Object.prototype.hasOwnProperty,v=(e,t)=>function(){return e&&(t=(0,e[dp(e)[0]])(e=0)),t},jI=(e,t)=>function(){return t||(0,e[dp(e)[0]])((t={exports:{}}).exports,t),t.exports},_I=(e,t)=>{for(var s in t)fp(e,s,{get:t[s],enumerable:!0})},TI=(e,t,s,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of dp(t))!CI.call(e,n)&&n!==s&&fp(e,n,{get:()=>t[n],enumerable:!(i=LI(t,n))||i.enumerable});return e},Iv=(e,t,s)=>(s=e!=null?RI(OI(e)):{},TI(t||!e||!e.__esModule?fp(s,"default",{value:e,enumerable:!0}):s,e)),Av=jI({"node_modules/minimist/index.js"(e,t){"use strict";function s(r,o){var a=r;o.slice(0,-1).forEach(function(l){a=a[l]||{}});var c=o[o.length-1];return c in a}function i(r){return typeof r=="number"||/^0x[0-9a-f]+$/i.test(r)?!0:/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(r)}function n(r,o){return o==="constructor"&&typeof r[o]=="function"||o==="__proto__"}t.exports=function(r,o){o||(o={});var a={bools:{},strings:{},unknownFn:null};typeof o.unknown=="function"&&(a.unknownFn=o.unknown),typeof o.boolean=="boolean"&&o.boolean?a.allBools=!0:[].concat(o.boolean).filter(Boolean).forEach(function(L){a.bools[L]=!0});var c={};function l(L){return c[L].some(function(le){return a.bools[le]})}Object.keys(o.alias||{}).forEach(function(L){c[L]=[].concat(o.alias[L]),c[L].forEach(function(le){c[le]=[L].concat(c[L].filter(function(ue){return le!==ue}))})}),[].concat(o.string).filter(Boolean).forEach(function(L){a.strings[L]=!0,c[L]&&[].concat(c[L]).forEach(function(le){a.strings[le]=!0})});var u=o.default||{},h={_:[]};function d(L,le){return a.allBools&&/^--[^=]+$/.test(le)||a.strings[L]||a.bools[L]||c[L]}function p(L,le,ue){for(var K=L,ht=0;ht<le.length-1;ht++){var C=le[ht];if(n(K,C))return;K[C]===void 0&&(K[C]={}),(K[C]===Object.prototype||K[C]===Number.prototype||K[C]===String.prototype)&&(K[C]={}),K[C]===Array.prototype&&(K[C]=[]),K=K[C]}var N=le[le.length-1];n(K,N)||((K===Object.prototype||K===Number.prototype||K===String.prototype)&&(K={}),K===Array.prototype&&(K=[]),K[N]===void 0||a.bools[N]||typeof K[N]=="boolean"?K[N]=ue:Array.isArray(K[N])?K[N].push(ue):K[N]=[K[N],ue])}function g(L,le,ue){if(!(ue&&a.unknownFn&&!d(L,ue)&&a.unknownFn(ue)===!1)){var K=!a.strings[L]&&i(le)?Number(le):le;p(h,L.split("."),K),(c[L]||[]).forEach(function(ht){p(h,ht.split("."),K)})}}Object.keys(a.bools).forEach(function(L){g(L,u[L]===void 0?!1:u[L])});var w=[];r.indexOf("--")!==-1&&(w=r.slice(r.indexOf("--")+1),r=r.slice(0,r.indexOf("--")));for(var y=0;y<r.length;y++){var x=r[y],k,A;if(/^--.+=/.test(x)){var I=x.match(/^--([^=]+)=([\s\S]*)$/);k=I[1];var R=I[2];a.bools[k]&&(R=R!=="false"),g(k,R,x)}else if(/^--no-.+/.test(x))k=x.match(/^--no-(.+)/)[1],g(k,!1,x);else if(/^--.+/.test(x))k=x.match(/^--(.+)/)[1],A=r[y+1],A!==void 0&&!/^(-|--)[^-]/.test(A)&&!a.bools[k]&&!a.allBools&&(!c[k]||!l(k))?(g(k,A,x),y+=1):/^(true|false)$/.test(A)?(g(k,A==="true",x),y+=1):g(k,a.strings[k]?"":!0,x);else if(/^-[^-]+/.test(x)){for(var q=x.slice(1,-1).split(""),ee=!1,V=0;V<q.length;V++){if(A=x.slice(V+2),A==="-"){g(q[V],A,x);continue}if(/[A-Za-z]/.test(q[V])&&A[0]==="="){g(q[V],A.slice(1),x),ee=!0;break}if(/[A-Za-z]/.test(q[V])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(A)){g(q[V],A,x),ee=!0;break}if(q[V+1]&&q[V+1].match(/\W/)){g(q[V],x.slice(V+2),x),ee=!0;break}else g(q[V],a.strings[q[V]]?"":!0,x)}k=x.slice(-1)[0],!ee&&k!=="-"&&(r[y+1]&&!/^(-|--)[^-]/.test(r[y+1])&&!a.bools[k]&&(!c[k]||!l(k))?(g(k,r[y+1],x),y+=1):r[y+1]&&/^(true|false)$/.test(r[y+1])?(g(k,r[y+1]==="true",x),y+=1):g(k,a.strings[k]?"":!0,x))}else if((!a.unknownFn||a.unknownFn(x)!==!1)&&h._.push(a.strings._||!i(x)?x:Number(x)),o.stopEarly){h._.push.apply(h._,r.slice(y+1));break}}return Object.keys(u).forEach(function(L){s(h,L.split("."))||(p(h,L.split("."),u[L]),(c[L]||[]).forEach(function(le){p(h,le.split("."),u[L])}))}),o["--"]?h["--"]=w.slice():w.forEach(function(L){h._.push(L)}),h}}});function pp(e){const t=[];typeof e=="number"&&t.push("code/timeOrigin",e);function s(n,r){t.push(n,r?.startTime??Date.now())}function i(){const n=[];for(let r=0;r<t.length;r+=2)n.push({name:t[r],startTime:t[r+1]});return n}return{mark:s,getMarks:i}}function MI(){if(typeof performance=="object"&&typeof performance.mark=="function"&&!performance.nodeTiming)return typeof performance.timeOrigin!="number"&&!performance.timing?pp():{mark(e,t){performance.mark(e,t)},getMarks(){let e=performance.timeOrigin;typeof e!="number"&&(e=performance.timing.navigationStart||performance.timing.redirectStart||performance.timing.fetchStart);const t=[{name:"code/timeOrigin",startTime:Math.round(e)}];for(const s of performance.getEntriesByType("mark"))t.push({name:s.name,startTime:Math.round(e+s.startTime)});return t}};if(typeof process=="object"){const e=performance?.timeOrigin;return pp(e)}else return console.trace("perf-util loaded in UNKNOWN environment"),pp()}function UI(e){return e.MonacoPerformanceMarks||(e.MonacoPerformanceMarks=MI()),e.MonacoPerformanceMarks}var mp,Pt,Dv,Hi=v({"out-build/vs/base/common/performance.js"(){"use strict";mp=UI(globalThis),Pt=mp.mark,Dv=mp.getMarks}});import*as di from"path";import*as pi from"fs";async function Nv({userLocale:e,osLocale:t,userDataPath:s,commit:i,nlsMetadataPath:n}){if(Pt("code/willGenerateNls"),process.env.VSCODE_DEV||e==="pseudo"||e.startsWith("en")||!i||!s)return Na(e,t,n);try{const r=await FI(s);if(!r)return Na(e,t,n);const o=BI(r,e);if(!o)return Na(e,t,n);const a=r[o],c=a?.translations?.vscode;if(!a||typeof a.hash!="string"||!a.translations||typeof c!="string"||!await gp(c))return Na(e,t,n);const l=`${a.hash}.${o}`,u=di.join(s,"clp",l),h=di.join(u,i),d=di.join(h,"nls.messages.json"),p=di.join(u,"tcf.json"),g=di.join(u,"corrupted.info");await gp(g)&&await pi.promises.rm(u,{recursive:!0,force:!0,maxRetries:3});const w={userLocale:e,osLocale:t,resolvedLanguage:o,defaultMessagesFile:di.join(n,"nls.messages.json"),languagePack:{translationsConfigFile:p,messagesFile:d,corruptMarkerFile:g},locale:e,availableLanguages:{"*":o},_languagePackId:l,_languagePackSupport:!0,_translationsConfigFile:p,_cacheRoot:u,_resolvedLanguagePackCoreLocation:h,_corruptedFile:g};if(await gp(h))return zI(h).catch(()=>{}),Pt("code/didGenerateNls"),w;const[,y,x,k]=await Promise.all([pi.promises.mkdir(h,{recursive:!0}),JSON.parse(await pi.promises.readFile(di.join(n,"nls.keys.json"),"utf-8")),JSON.parse(await pi.promises.readFile(di.join(n,"nls.messages.json"),"utf-8")),JSON.parse(await pi.promises.readFile(c,"utf-8"))]),A=[];let I=0;for(const[R,q]of y){const ee=k.contents[R];for(const V of q)A.push(ee?.[V]||x[I]),I++}return await Promise.all([pi.promises.writeFile(d,JSON.stringify(A),"utf-8"),pi.promises.writeFile(p,JSON.stringify(a.translations),"utf-8")]),Pt("code/didGenerateNls"),w}catch(r){console.error("Generating translation files failed.",r)}return Na(e,t,n)}async function FI(e){const t=di.join(e,"languagepacks.json");try{return JSON.parse(await pi.promises.readFile(t,"utf-8"))}catch{return}}function BI(e,t){try{for(;t;){if(e[t])return t;const s=t.lastIndexOf("-");if(s>0)t=t.substring(0,s);else return}}catch(s){console.error("Resolving language pack configuration failed.",s)}}function Na(e,t,s){return Pt("code/didGenerateNls"),{userLocale:e,osLocale:t,resolvedLanguage:"en",defaultMessagesFile:di.join(s,"nls.messages.json"),locale:e,availableLanguages:{}}}async function gp(e){try{return await pi.promises.access(e),!0}catch{return!1}}function zI(e){const t=new Date;return pi.promises.utimes(e,t,t)}var Rv=v({"out-build/vs/base/node/nls.js"(){"use strict";Hi()}});function Lv(e){Ra.setUnexpectedErrorHandler(e)}function Ov(e){if(!e||typeof e!="object")return!1;const t=e;return t.code==="EPIPE"&&t.syscall?.toUpperCase()==="WRITE"}function Jl(e){Ra.onUnexpectedError(e)}function Vt(e){hr(e)||Ra.onUnexpectedError(e)}function hr(e){return e instanceof It?!0:e instanceof Error&&e.name===La&&e.message===La}function Cv(){const e=new Error(La);return e.name=e.message,e}function je(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")}function jv(e){return e?new Error(`Illegal state: ${e}`):new Error("Illegal state")}function Pe(e){return e?e.message?e.message:e.stack?e.stack.split(` `)[0]:String(e):"Error"}var _v,Ra,La,It,Vi,Zr,de=v({"out-build/vs/base/common/errors.js"(){"use strict";_v=class{constructor(){this.b=[],this.a=function(e){setTimeout(()=>{throw e.stack?Vi.isErrorNoTelemetry(e)?new Vi(e.message+` `+e.stack):new Error(e.message+` `+e.stack):e},0)}}addListener(e){return this.b.push(e),()=>{this.d(e)}}c(e){this.b.forEach(t=>{t(e)})}d(e){this.b.splice(this.b.indexOf(e),1)}setUnexpectedErrorHandler(e){this.a=e}getUnexpectedErrorHandler(){return this.a}onUnexpectedError(e){this.a(e),this.c(e)}onUnexpectedExternalError(e){this.a(e)}},Ra=new _v,La="Canceled",It=class extends Error{constructor(){super(La),this.name=this.message}},Vi=class uv extends Error{constructor(t){super(t),this.name="CodeExpectedError"}static fromError(t){if(t instanceof uv)return t;const s=new uv;return s.message=t.message,s.stack=t.stack,s}static isErrorNoTelemetry(t){return t.name==="CodeExpectedError"}},Zr=class HP extends Error{constructor(t){super(t||"An unexpected bug occurred."),Object.setPrototypeOf(this,HP.prototype)}}}});function HI(){return globalThis._VSCODE_NLS_MESSAGES}function Tv(){return globalThis._VSCODE_NLS_LANGUAGE}var Mv=v({"out-build/vs/nls.messages.js"(){"use strict"}});function Xl(e,t){let s;return t.length===0?s=e:s=e.replace(/\{(\d+)\}/g,(i,n)=>{const r=n[0],o=t[r];let a=i;return typeof o=="string"?a=o:(typeof o=="number"||typeof o=="boolean"||o===void 0||o===null)&&(a=String(o)),a}),Bv&&(s="\uFF3B"+s.replace(/[aouei]/g,"$&$&")+"\uFF3D"),s}function m(e,t,...s){return Xl(typeof e=="number"?Uv(e,t):t,s)}function Uv(e,t){const s=HI()?.[e];if(typeof s!="string"){if(typeof t=="string")return t;throw new Error(`!!! NLS MISSING: ${e} !!!`)}return s}function Fv(e,t,...s){let i;typeof e=="number"?i=Uv(e,t):i=t;const n=Xl(i,s);return{value:n,original:t===i?n:Xl(t,s)}}var Bv,pe=v({"out-build/vs/nls.js"(){"use strict";Mv(),Mv(),Bv=Tv()==="pseudo"||typeof document<"u"&&document.location&&typeof document.location.hash=="string"&&document.location.hash.indexOf("pseudo=true")>=0}});function zv(e){switch(e){case 0:return"Web";case 1:return"Mac";case 2:return"Linux";case 3:return"Windows"}}var xn,Kr,eo,to,wp,vp,Yl,Hv,bp,Vv,Wv,Oa,Ca,yp,qv,mi,gi,xs,Ep,Gv,Jv,ja,me,Os,it,Xv,Yv,Bs,Qv,Zv,so,Ks,ks,Kv,eb,tb,sb,fr,xp,ib,nb,rb,VI,Q=v({"out-build/vs/base/common/platform.js"(){"use strict";if(pe(),xn="en",Kr=!1,eo=!1,to=!1,wp=!1,vp=!1,Yl=!1,Hv=!1,bp=!1,Vv=!1,Wv=!1,Oa=void 0,Ca=xn,yp=xn,qv=void 0,mi=void 0,gi=globalThis,xs=void 0,typeof gi.vscode<"u"&&typeof gi.vscode.process<"u"?xs=gi.vscode.process:typeof process<"u"&&typeof process?.versions?.node=="string"&&(xs=process),Ep=typeof xs?.versions?.electron=="string",Gv=Ep&&xs?.type==="renderer",typeof xs=="object"){Kr=xs.platform==="win32",eo=xs.platform==="darwin",to=xs.platform==="linux",wp=to&&!!xs.env.SNAP&&!!xs.env.SNAP_REVISION,Hv=Ep,Vv=!!xs.env.CI||!!xs.env.BUILD_ARTIFACTSTAGINGDIRECTORY,Oa=xn,Ca=xn;const e=xs.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e);Oa=t.userLocale,yp=t.osLocale,Ca=t.resolvedLanguage||xn,qv=t.languagePack?.translationsConfigFile}catch{}vp=!0}else typeof navigator=="object"&&!Gv?(mi=navigator.userAgent,Kr=mi.indexOf("Windows")>=0,eo=mi.indexOf("Macintosh")>=0,bp=(mi.indexOf("Macintosh")>=0||mi.indexOf("iPad")>=0||mi.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,to=mi.indexOf("Linux")>=0,Wv=mi?.indexOf("Mobi")>=0,Yl=!0,Ca=Tv()||xn,Oa=navigator.language.toLowerCase(),yp=Oa):console.error("Unable to resolve platform.");(function(e){e[e.Web=0]="Web",e[e.Mac=1]="Mac",e[e.Linux=2]="Linux",e[e.Windows=3]="Windows"})(Jv||(Jv={})),ja=0,eo?ja=1:Kr?ja=3:to&&(ja=2),me=Kr,Os=eo,it=to,Xv=wp,Yv=vp,Bs=Yl,Qv=Yl&&typeof gi.importScripts=="function",Zv=Qv?gi.origin:void 0,so=ja,Ks=mi,ks=Ca,function(e){function t(){return ks}e.value=t;function s(){return ks.length===2?ks==="en":ks.length>=3?ks[0]==="e"&&ks[1]==="n"&&ks[2]==="-":!1}e.isDefaultVariant=s;function i(){return ks==="en"}e.isDefault=i}(Kv||(Kv={})),eb=typeof gi.postMessage=="function"&&!gi.importScripts,tb=(()=>{if(eb){const e=[];gi.addEventListener("message",s=>{if(s.data&&s.data.vscodeScheduleAsyncWork)for(let i=0,n=e.length;i<n;i++){const r=e[i];if(r.id===s.data.vscodeScheduleAsyncWork){e.splice(i,1),r.callback();return}}});let t=0;return s=>{const i=++t;e.push({id:i,callback:s}),gi.postMessage({vscodeScheduleAsyncWork:i},"*")}}return e=>setTimeout(e)})(),function(e){e[e.Windows=1]="Windows",e[e.Macintosh=2]="Macintosh",e[e.Linux=3]="Linux"}(sb||(sb={})),fr=eo||bp?2:Kr?1:3,xp=!!(Ks&&Ks.indexOf("Chrome")>=0),ib=!!(Ks&&Ks.indexOf("Firefox")>=0),nb=!!(!xp&&Ks&&Ks.indexOf("Safari")>=0),rb=!!(Ks&&Ks.indexOf("Edg/")>=0),VI=!!(Ks&&Ks.indexOf("Android")>=0)}});function WI(e,t){const s=Object.create(null);for(const i of e){const n=t(i);let r=s[n];r||(r=s[n]=[]),r.push(i)}return s}var ob,qI,ab=v({"out-build/vs/base/common/collections.js"(){"use strict";qI=class{static{ob=Symbol.toStringTag}constructor(e,t){this.b=t,this.a=new Map,this[ob]="SetWithKey";for(const s of e)this.add(s)}get size(){return this.a.size}add(e){const t=this.b(e);return this.a.set(t,e),this}delete(e){return this.a.delete(this.b(e))}has(e){return this.a.has(this.b(e))}*entries(){for(const e of this.a.values())yield[e,e]}keys(){return this.values()}*values(){for(const e of this.a.values())yield e}clear(){this.a.clear()}forEach(e,t){this.a.forEach(s=>e.call(t,s,s,this))}[Symbol.iterator](){return this.values()}}}});function Ql(e,t){const s=this;let i=!1,n;return function(){if(i)return n;if(i=!0,t)try{n=e.apply(s,arguments)}finally{t()}else n=e.apply(s,arguments);return n}}var Zl=v({"out-build/vs/base/common/functional.js"(){"use strict"}});function GI(e,t){const s=JI(e,t);if(s!==-1)return e[s]}function JI(e,t,s=e.length-1){for(let i=s;i>=0;i--){const n=e[i];if(t(n))return i}return-1}function XI(e,t,s=0,i=e.length){let n=s,r=i;for(;n<r;){const o=Math.floor((n+r)/2);t(e[o])?n=o+1:r=o}return n-1}var YI,cb=v({"out-build/vs/base/common/arraysFind.js"(){"use strict";YI=class VP{static{this.assertInvariants=!1}constructor(t){this.e=t,this.c=0}findLastMonotonous(t){if(VP.assertInvariants){if(this.d){for(const i of this.e)if(this.d(i)&&!t(i))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this.d=t}const s=XI(this.e,t,this.c);return this.c=s+1,s===-1?void 0:this.e[s]}}}});function kn(e,t,s=(i,n)=>i===n){if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let i=0,n=e.length;i<n;i++)if(!s(e[i],t[i]))return!1;return!0}function QI(e,t,s){return ZI(e.length,i=>s(e[i],t))}function ZI(e,t){let s=0,i=e-1;for(;s<=i;){const n=(s+i)/2|0,r=t(n);if(r<0)s=n+1;else if(r>0)i=n-1;else return n}return-(s+1)}function wi(e){return e.filter(t=>!!t)}function KI(e){let t=0;for(let s=0;s<e.length;s++)e[s]&&(e[t]=e[s],t+=1);e.length=t}function Kl(e){return Array.isArray(e)&&e.length>0}function Wi(e,t=s=>s){const s=new Set;return e.filter(i=>{const n=t(i);return s.has(n)?!1:(s.add(n),!0)})}function lb(e,t){return e.push(t),()=>eA(e,t)}function eA(e,t){const s=e.indexOf(t);if(s>-1)return e.splice(s,1),t}function ub(e,t){let s;if(typeof t=="number"){let i=t;s=()=>{const n=Math.sin(i++)*179426549;return n-Math.floor(n)}}else s=Math.random;for(let i=e.length-1;i>0;i-=1){const n=Math.floor(s()*(i+1)),r=e[i];e[i]=e[n],e[n]=r}}function hb(e){return Array.isArray(e)?e:[e]}function tA(e){return e[Math.floor(Math.random()*e.length)]}function sA(e,t){return(s,i)=>t(e(s),e(i))}var kp,fb,iA,Et=v({"out-build/vs/base/common/arrays.js"(){"use strict";cb(),de(),function(e){function t(r){return r<0}e.isLessThan=t;function s(r){return r<=0}e.isLessThanOrEqual=s;function i(r){return r>0}e.isGreaterThan=i;function n(r){return r===0}e.isNeitherLessOrGreaterThan=n,e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0}(kp||(kp={})),fb=(e,t)=>e-t,iA=class Jd{static{this.empty=new Jd(t=>{})}constructor(t){this.iterate=t}forEach(t){this.iterate(s=>(t(s),!0))}toArray(){const t=[];return this.iterate(s=>(t.push(s),!0)),t}filter(t){return new Jd(s=>this.iterate(i=>t(i)?s(i):!0))}map(t){return new Jd(s=>this.iterate(i=>s(t(i))))}some(t){let s=!1;return this.iterate(i=>(s=t(i),!s)),s}findFirst(t){let s;return this.iterate(i=>t(i)?(s=i,!1):!0),s}findLast(t){let s;return this.iterate(i=>(t(i)&&(s=i),!0)),s}findLastMaxBy(t){let s,i=!0;return this.iterate(n=>((i||kp.isGreaterThan(t(n,s)))&&(i=!1,s=n),!0)),s}}}});function nA(e){return Array.isArray(e)}var db,pb,mb,gb,At,eu,wb,vb,bb,_a,yb,as=v({"out-build/vs/base/common/map.js"(){"use strict";gb=class{constructor(e,t){this.uri=e,this.value=t}},At=class jl{static{this.c=t=>t.toString()}constructor(t,s){if(this[db]="ResourceMap",t instanceof jl)this.d=new Map(t.d),this.e=s??jl.c;else if(nA(t)){this.d=new Map,this.e=s??jl.c;for(const[i,n]of t)this.set(i,n)}else this.d=new Map,this.e=t??jl.c}set(t,s){return this.d.set(this.e(t),new gb(t,s)),this}get(t){return this.d.get(this.e(t))?.value}has(t){return this.d.has(this.e(t))}get size(){return this.d.size}clear(){this.d.clear()}delete(t){return this.d.delete(this.e(t))}forEach(t,s){typeof s<"u"&&(t=t.bind(s));for(const[i,n]of this.d)t(n.value,n.uri,this)}*values(){for(const t of this.d.values())yield t.value}*keys(){for(const t of this.d.values())yield t.uri}*entries(){for(const t of this.d.values())yield[t.uri,t.value]}*[(db=Symbol.toStringTag,Symbol.iterator)](){for(const[,t]of this.d)yield[t.uri,t.value]}},eu=class{constructor(e,t){this[pb]="ResourceSet",!e||typeof e=="function"?this.c=new At(e):(this.c=new At(t),e.forEach(this.add,this))}get size(){return this.c.size}add(e){return this.c.set(e,e),this}clear(){this.c.clear()}delete(e){return this.c.delete(e)}forEach(e,t){this.c.forEach((s,i)=>e.call(t,i,i,this))}has(e){return this.c.has(e)}entries(){return this.c.entries()}keys(){return this.c.keys()}values(){return this.c.keys()}[(pb=Symbol.toStringTag,Symbol.iterator)](){return this.keys()}},function(e){e[e.None=0]="None",e[e.AsOld=1]="AsOld",e[e.AsNew=2]="AsNew"}(wb||(wb={})),vb=class{constructor(){this[mb]="LinkedMap",this.c=new Map,this.d=void 0,this.e=void 0,this.f=0,this.g=0}clear(){this.c.clear(),this.d=void 0,this.e=void 0,this.f=0,this.g++}isEmpty(){return!this.d&&!this.e}get size(){return this.f}get first(){return this.d?.value}get last(){return this.e?.value}has(e){return this.c.has(e)}get(e,t=0){const s=this.c.get(e);if(s)return t!==0&&this.m(s,t),s.value}set(e,t,s=0){let i=this.c.get(e);if(i)i.value=t,s!==0&&this.m(i,s);else{switch(i={key:e,value:t,next:void 0,previous:void 0},s){case 0:this.k(i);break;case 1:this.j(i);break;case 2:this.k(i);break;default:this.k(i);break}this.c.set(e,i),this.f++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this.c.get(e);if(t)return this.c.delete(e),this.l(t),this.f--,t.value}shift(){if(!this.d&&!this.e)return;if(!this.d||!this.e)throw new Error("Invalid list");const e=this.d;return this.c.delete(e.key),this.l(e),this.f--,e.value}forEach(e,t){const s=this.g;let i=this.d;for(;i;){if(t?e.bind(t)(i.value,i.key,this):e(i.value,i.key,this),this.g!==s)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){const e=this,t=this.g;let s=this.d;const i={[Symbol.iterator](){return i},next(){if(e.g!==t)throw new Error("LinkedMap got modified during iteration.");if(s){const n={value:s.key,done:!1};return s=s.next,n}else return{value:void 0,done:!0}}};return i}values(){const e=this,t=this.g;let s=this.d;const i={[Symbol.iterator](){return i},next(){if(e.g!==t)throw new Error("LinkedMap got modified during iteration.");if(s){const n={value:s.value,done:!1};return s=s.next,n}else return{value:void 0,done:!0}}};return i}entries(){const e=this,t=this.g;let s=this.d;const i={[Symbol.iterator](){return i},next(){if(e.g!==t)throw new Error("LinkedMap got modified during iteration.");if(s){const n={value:[s.key,s.value],done:!1};return s=s.next,n}else return{value:void 0,done:!0}}};return i}[(mb=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}h(e){if(e>=this.size)return;if(e===0){this.clear();return}let t=this.d,s=this.size;for(;t&&s>e;)this.c.delete(t.key),t=t.next,s--;this.d=t,this.f=s,t&&(t.previous=void 0),this.g++}i(e){if(e>=this.size)return;if(e===0){this.clear();return}let t=this.e,s=this.size;for(;t&&s>e;)this.c.delete(t.key),t=t.previous,s--;this.e=t,this.f=s,t&&(t.next=void 0),this.g++}j(e){if(!this.d&&!this.e)this.e=e;else if(this.d)e.next=this.d,this.d.previous=e;else throw new Error("Invalid list");this.d=e,this.g++}k(e){if(!this.d&&!this.e)this.d=e;else if(this.e)e.previous=this.e,this.e.next=e;else throw new Error("Invalid list");this.e=e,this.g++}l(e){if(e===this.d&&e===this.e)this.d=void 0,this.e=void 0;else if(e===this.d){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this.d=e.next}else if(e===this.e){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this.e=e.previous}else{const t=e.next,s=e.previous;if(!t||!s)throw new Error("Invalid list");t.previous=s,s.next=t}e.next=void 0,e.previous=void 0,this.g++}m(e,t){if(!this.d||!this.e)throw new Error("Invalid list");if(!(t!==1&&t!==2)){if(t===1){if(e===this.d)return;const s=e.next,i=e.previous;e===this.e?(i.next=void 0,this.e=i):(s.previous=i,i.next=s),e.previous=void 0,e.next=this.d,this.d.previous=e,this.d=e,this.g++}else if(t===2){if(e===this.e)return;const s=e.next,i=e.previous;e===this.d?(s.previous=void 0,this.d=s):(s.previous=i,i.next=s),e.next=void 0,e.previous=this.e,this.e.next=e,this.e=e,this.g++}}}toJSON(){const e=[];return this.forEach((t,s)=>{e.push([s,t])}),e}fromJSON(e){this.clear();for(const[t,s]of e)this.set(t,s)}},bb=class extends vb{constructor(e,t=1){super(),this.n=e,this.o=Math.min(Math.max(0,t),1)}get limit(){return this.n}set limit(e){this.n=e,this.p()}get ratio(){return this.o}set ratio(e){this.o=Math.min(Math.max(0,e),1),this.p()}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}p(){this.size>this.n&&this.q(Math.round(this.n*this.o))}},_a=class extends bb{constructor(e,t=1){super(e,t)}q(e){this.h(e)}set(e,t){return super.set(e,t),this.p(),this}},yb=class{constructor(){this.c=new Map}add(e,t){let s=this.c.get(e);s||(s=new Set,this.c.set(e,s)),s.add(t)}delete(e,t){const s=this.c.get(e);s&&(s.delete(t),s.size===0&&this.c.delete(e))}forEach(e,t){const s=this.c.get(e);s&&s.forEach(t)}get(e){const t=this.c.get(e);return t||new Set}}}}),qi,dr=v({"out-build/vs/base/common/iterator.js"(){"use strict";(function(e){function t(I){return I&&typeof I=="object"&&typeof I[Symbol.iterator]=="function"}e.is=t;const s=Object.freeze([]);function i(){return s}e.empty=i;function*n(I){yield I}e.single=n;function r(I){return t(I)?I:n(I)}e.wrap=r;function o(I){return I||s}e.from=o;function*a(I){for(let R=I.length-1;R>=0;R--)yield I[R]}e.reverse=a;function c(I){return!I||I[Symbol.iterator]().next().done===!0}e.isEmpty=c;function l(I){return I[Symbol.iterator]().next().value}e.first=l;function u(I,R){let q=0;for(const ee of I)if(R(ee,q++))return!0;return!1}e.some=u;function h(I,R){for(const q of I)if(R(q))return q}e.find=h;function*d(I,R){for(const q of I)R(q)&&(yield q)}e.filter=d;function*p(I,R){let q=0;for(const ee of I)yield R(ee,q++)}e.map=p;function*g(I,R){let q=0;for(const ee of I)yield*R(ee,q++)}e.flatMap=g;function*w(...I){for(const R of I)yield*R}e.concat=w;function y(I,R,q){let ee=q;for(const V of I)ee=R(ee,V);return ee}e.reduce=y;function*x(I,R,q=I.length){for(R<-I.length&&(R=0),R<0&&(R+=I.length),q<0?q+=I.length:q>I.length&&(q=I.length);R<q;R++)yield I[R]}e.slice=x;function k(I,R=Number.POSITIVE_INFINITY){const q=[];if(R===0)return[q,I];const ee=I[Symbol.iterator]();for(let V=0;V<R;V++){const L=ee.next();if(L.done)return[q,e.empty()];q.push(L.value)}return[q,{[Symbol.iterator](){return ee}}]}e.consume=k;async function A(I){const R=[];for await(const q of I)R.push(q);return Promise.resolve(R)}e.asyncToArray=A})(qi||(qi={}))}});function rA(e){pr=e}function io(e){return pr?.trackDisposable(e),e}function no(e){pr?.markAsDisposed(e)}function Ta(e,t){pr?.setParent(e,t)}function oA(e,t){if(pr)for(const s of e)pr.setParent(s,t)}function aA(e){return typeof e=="object"&&e!==null&&typeof e.dispose=="function"&&e.dispose.length===0}function jt(e){if(qi.is(e)){const t=[];for(const s of e)if(s)try{s.dispose()}catch(i){t.push(i)}if(t.length===1)throw t[0];if(t.length>1)throw new AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}else if(e)return e.dispose(),e}function Eb(...e){const t=ve(()=>jt(e));return oA(e,t),t}function ve(e){const t=io({dispose:Ql(()=>{no(t),e()})});return t}var xb,pr,cA,lt,J,tu,su,H=v({"out-build/vs/base/common/lifecycle.js"(){"use strict";if(Et(),ab(),as(),Zl(),dr(),xb=!1,pr=null,cA=class WP{constructor(){this.b=new Map}static{this.a=0}c(t){let s=this.b.get(t);return s||(s={parent:null,source:null,isSingleton:!1,value:t,idx:WP.a++},this.b.set(t,s)),s}trackDisposable(t){const s=this.c(t);s.source||(s.source=new Error().stack)}setParent(t,s){const i=this.c(t);i.parent=s}markAsDisposed(t){this.b.delete(t)}markAsSingleton(t){this.c(t).isSingleton=!0}f(t,s){const i=s.get(t);if(i)return i;const n=t.parent?this.f(this.c(t.parent),s):t;return s.set(t,n),n}getTrackedDisposables(){const t=new Map;return[...this.b.entries()].filter(([,i])=>i.source!==null&&!this.f(i,t).isSingleton).flatMap(([i])=>i)}computeLeakingDisposables(t=10,s){let i;if(s)i=s;else{const c=new Map,l=[...this.b.values()].filter(h=>h.source!==null&&!this.f(h,c).isSingleton);if(l.length===0)return;const u=new Set(l.map(h=>h.value));if(i=l.filter(h=>!(h.parent&&u.has(h.parent))),i.length===0)throw new Error("There are cyclic diposable chains!")}if(!i)return;function n(c){function l(h,d){for(;h.length>0&&d.some(p=>typeof p=="string"?p===h[0]:h[0].match(p));)h.shift()}const u=c.source.split(` `).map(h=>h.trim().replace("at ","")).filter(h=>h!=="");return l(u,["Error",/^trackDisposable \(.*\)$/,/^DisposableTracker.trackDisposable \(.*\)$/]),u.reverse()}const r=new yb;for(const c of i){const l=n(c);for(let u=0;u<=l.length;u++)r.add(l.slice(0,u).join(` `),c)}i.sort(sA(c=>c.idx,fb));let o="",a=0;for(const c of i.slice(0,t)){a++;const l=n(c),u=[];for(let h=0;h<l.length;h++){let d=l[h];d=`(shared with ${r.get(l.slice(0,h+1).join(` `)).size}/${i.length} leaks) at ${d}`;const g=r.get(l.slice(0,h).join(` `)),w=WI([...g].map(y=>n(y)[h]),y=>y);delete w[l[h]];for(const[y,x]of Object.entries(w))u.unshift(` - stacktraces of ${x.length} other leaks continue with ${y}`);u.unshift(d)}o+=` ==================== Leaking disposable ${a}/${i.length}: ${c.value.constructor.name} ==================== ${u.join(` `)} ============================================================ `}return i.length>t&&(o+=` ... and ${i.length-t} more leaking disposables `),{leaks:i,details:o}}},xb){const e="__is_disposable_tracked__";rA(new class{trackDisposable(t){const s=new Error("Potentially leaked disposable").stack;setTimeout(()=>{t[e]||console.log(s)},3e3)}setParent(t,s){if(t&&t!==J.None)try{t[e]=!0}catch{}}markAsDisposed(t){if(t&&t!==J.None)try{t[e]=!0}catch{}}markAsSingleton(t){}})}lt=class qP{static{this.DISABLE_DISPOSED_WARNING=!1}constructor(){this.f=new Set,this.g=!1,io(this)}dispose(){this.g||(no(this),this.g=!0,this.clear())}get isDisposed(){return this.g}clear(){if(this.f.size!==0)try{jt(this.f)}finally{this.f.clear()}}add(t){if(!t)return t;if(t===this)throw new Error("Cannot register a disposable on itself!");return Ta(t,this),this.g?qP.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this.f.add(t),t}delete(t){if(t){if(t===this)throw new Error("Cannot dispose a disposable on itself!");this.f.delete(t),t.dispose()}}deleteAndLeak(t){t&&this.f.has(t)&&(this.f.delete(t),Ta(t,null))}},J=class{static{this.None=Object.freeze({dispose(){}})}constructor(){this.q=new lt,io(this),Ta(this.q,this)}dispose(){no(this),this.q.dispose()}B(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this.q.add(e)}},tu=class{constructor(){this.b=!1,io(this)}get value(){return this.b?void 0:this.a}set value(e){this.b||e===this.a||(this.a?.dispose(),e&&Ta(e,this),this.a=e)}clear(){this.value=void 0}dispose(){this.b=!0,no(this),this.a?.dispose(),this.a=void 0}clearAndLeak(){const e=this.a;return this.a=void 0,e&&Ta(e,null),e}},su=class{constructor(){this.a=new Map,this.b=!1,io(this)}dispose(){no(this),this.b=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this.a.size)try{jt(this.a.values())}finally{this.a.clear()}}has(e){return this.a.has(e)}get size(){return this.a.size}get(e){return this.a.get(e)}set(e,t,s=!1){this.b&&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),s||this.a.get(e)?.dispose(),this.a.set(e,t)}deleteAndDispose(e){this.a.get(e)?.dispose(),this.a.delete(e)}deleteAndLeak(e){const t=this.a.get(e);return this.a.delete(e),t}keys(){return this.a.keys()}values(){return this.a.values()}[Symbol.iterator](){return this.a[Symbol.iterator]()}}}}),nt,$p,kb=v({"out-build/vs/base/common/linkedList.js"(){"use strict";nt=class Xd{static{this.Undefined=new Xd(void 0)}constructor(t){this.element=t,this.next=Xd.Undefined,this.prev=Xd.Undefined}},$p=class{constructor(){this.a=nt.Undefined,this.b=nt.Undefined,this.c=0}get size(){return this.c}isEmpty(){return this.a===nt.Undefined}clear(){let e=this.a;for(;e!==nt.Undefined;){const t=e.next;e.prev=nt.Undefined,e.next=nt.Undefined,e=t}this.a=nt.Undefined,this.b=nt.Undefined,this.c=0}unshift(e){return this.d(e,!1)}push(e){return this.d(e,!0)}d(e,t){const s=new nt(e);if(this.a===nt.Undefined)this.a=s,this.b=s;else if(t){const n=this.b;this.b=s,s.prev=n,n.next=s}else{const n=this.a;this.a=s,s.next=n,n.prev=s}this.c+=1;let i=!1;return()=>{i||(i=!0,this.e(s))}}shift(){if(this.a!==nt.Undefined){const e=this.a.element;return this.e(this.a),e}}pop(){if(this.b!==nt.Undefined){const e=this.b.element;return this.e(this.b),e}}e(e){if(e.prev!==nt.Undefined&&e.next!==nt.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===nt.Undefined&&e.next===nt.Undefined?(this.a=nt.Undefined,this.b=nt.Undefined):e.next===nt.Undefined?(this.b=this.b.prev,this.b.next=nt.Undefined):e.prev===nt.Undefined&&(this.a=this.a.next,this.a.prev=nt.Undefined);this.c-=1}*[Symbol.iterator](){let e=this.a;for(;e!==nt.Undefined;)yield e.element,e=e.next}}}}),$b,$n,ro=v({"out-build/vs/base/common/stopwatch.js"(){"use strict";$b=globalThis.performance&&typeof globalThis.performance.now=="function",$n=class GP{static create(t){return new GP(t)}constructor(t){this.c=$b&&t===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),this.a=this.c(),this.b=-1}stop(){this.b=this.c()}reset(){this.a=this.c(),this.b=-1}elapsed(){return this.b!==-1?this.b-this.a:this.c()-this.a}}}}),Sb,Sp,Pb,z,Ib,Pp,Ab,iu,Db,Nb,Rb,Ma,Lb,Ob,nu,D,Cb,ru,jb,Ip,ae=v({"out-build/vs/base/common/event.js"(){"use strict";if(ab(),de(),Zl(),H(),kb(),ro(),Sb=!1,Sp=!1,Pb=!1,function(e){e.None=()=>J.None;function t(C){if(Pb){const{onDidAddListener:N}=C,U=iu.create();let _=0;C.onDidAddListener=()=>{++_===2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),U.print()),N?.()}}}function s(C,N){return p(C,()=>{},0,void 0,!0,void 0,N)}e.defer=s;function i(C){return(N,U=null,_)=>{let G=!1,ce;return ce=C($e=>{if(!G)return ce?ce.dispose():G=!0,N.call(U,$e)},null,_),G&&ce.dispose(),ce}}e.once=i;function n(C,N){return e.once(e.filter(C,N))}e.onceIf=n;function r(C,N,U){return h((_,G=null,ce)=>C($e=>_.call(G,N($e)),null,ce),U)}e.map=r;function o(C,N,U){return h((_,G=null,ce)=>C($e=>{N($e),_.call(G,$e)},null,ce),U)}e.forEach=o;function a(C,N,U){return h((_,G=null,ce)=>C($e=>N($e)&&_.call(G,$e),null,ce),U)}e.filter=a;function c(C){return C}e.signal=c;function l(...C){return(N,U=null,_)=>{const G=Eb(...C.map(ce=>ce($e=>N.call(U,$e))));return d(G,_)}}e.any=l;function u(C,N,U,_){let G=U;return r(C,ce=>(G=N(G,ce),G),_)}e.reduce=u;function h(C,N){let U;const _={onWillAddFirstListener(){U=C(G.fire,G)},onDidRemoveLastListener(){U?.dispose()}};N||t(_);const G=new D(_);return N?.add(G),G.event}function d(C,N){return N instanceof Array?N.push(C):N&&N.add(C),C}function p(C,N,U=100,_=!1,G=!1,ce,$e){let Je,vt,Fi,cr=0,Bi;const Yr={leakWarningThreshold:ce,onWillAddFirstListener(){Je=C(zl=>{cr++,vt=N(vt,zl),_&&!Fi&&(hi.fire(vt),vt=void 0),Bi=()=>{const Hl=vt;vt=void 0,Fi=void 0,(!_||cr>1)&&hi.fire(Hl),cr=0},typeof U=="number"?(clearTimeout(Fi),Fi=setTimeout(Bi,U)):Fi===void 0&&(Fi=0,queueMicrotask(Bi))})},onWillRemoveListener(){G&&cr>0&&Bi?.()},onDidRemoveLastListener(){Bi=void 0,Je.dispose()}};$e||t(Yr);const hi=new D(Yr);return $e?.add(hi),hi.event}e.debounce=p;function g(C,N=0,U){return e.debounce(C,(_,G)=>_?(_.push(G),_):[G],N,void 0,!0,void 0,U)}e.accumulate=g;function w(C,N=(_,G)=>_===G,U){let _=!0,G;return a(C,ce=>{const $e=_||!N(ce,G);return _=!1,G=ce,$e},U)}e.latch=w;function y(C,N,U){return[e.filter(C,N,U),e.filter(C,_=>!N(_),U)]}e.split=y;function x(C,N=!1,U=[],_){let G=U.slice(),ce=C(vt=>{G?G.push(vt):Je.fire(vt)});_&&_.add(ce);const $e=()=>{G?.forEach(vt=>Je.fire(vt)),G=null},Je=new D({onWillAddFirstListener(){ce||(ce=C(vt=>Je.fire(vt)),_&&_.add(ce))},onDidAddFirstListener(){G&&(N?setTimeout($e):$e())},onDidRemoveLastListener(){ce&&ce.dispose(),ce=null}});return _&&_.add(Je),Je.event}e.buffer=x;function k(C,N){return(_,G,ce)=>{const $e=N(new I);return C(function(Je){const vt=$e.evaluate(Je);vt!==A&&_.call(G,vt)},void 0,ce)}}e.chain=k;const A=Symbol("HaltChainable");class I{constructor(){this.f=[]}map(N){return this.f.push(N),this}forEach(N){return this.f.push(U=>(N(U),U)),this}filter(N){return this.f.push(U=>N(U)?U:A),this}reduce(N,U){let _=U;return this.f.push(G=>(_=N(_,G),_)),this}latch(N=(U,_)=>U===_){let U=!0,_;return this.f.push(G=>{const ce=U||!N(G,_);return U=!1,_=G,ce?G:A}),this}evaluate(N){for(const U of this.f)if(N=U(N),N===A)break;return N}}function R(C,N,U=_=>_){const _=(...Je)=>$e.fire(U(...Je)),G=()=>C.on(N,_),ce=()=>C.removeListener(N,_),$e=new D({onWillAddFirstListener:G,onDidRemoveLastListener:ce});return $e.event}e.fromNodeEventEmitter=R;function q(C,N,U=_=>_){const _=(...Je)=>$e.fire(U(...Je)),G=()=>C.addEventListener(N,_),ce=()=>C.removeEventListener(N,_),$e=new D({onWillAddFirstListener:G,onDidRemoveLastListener:ce});return $e.event}e.fromDOMEventEmitter=q;function ee(C){return new Promise(N=>i(C)(N))}e.toPromise=ee;function V(C){const N=new D;return C.then(U=>{N.fire(U)},()=>{N.fire(void 0)}).finally(()=>{N.dispose()}),N.event}e.fromPromise=V;function L(C,N){return C(U=>N.fire(U))}e.forward=L;function le(C,N,U){return N(U),C(_=>N(_))}e.runAndSubscribe=le;class ue{constructor(N,U){this._observable=N,this.f=0,this.g=!1;const _={onWillAddFirstListener:()=>{N.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{N.removeObserver(this)}};U||t(_),this.emitter=new D(_),U&&U.add(this.emitter)}beginUpdate(N){this.f++}handlePossibleChange(N){}handleChange(N,U){this.g=!0}endUpdate(N){this.f--,this.f===0&&(this._observable.reportChanges(),this.g&&(this.g=!1,this.emitter.fire(this._observable.get())))}}function K(C,N){return new ue(C,N).emitter.event}e.fromObservable=K;function ht(C){return(N,U,_)=>{let G=0,ce=!1;const $e={beginUpdate(){G++},endUpdate(){G--,G===0&&(C.reportChanges(),ce&&(ce=!1,N.call(U)))},handlePossibleChange(){},handleChange(){ce=!0}};C.addObserver($e),C.reportChanges();const Je={dispose(){C.removeObserver($e)}};return _ instanceof lt?_.add(Je):Array.isArray(_)&&_.push(Je),Je}}e.fromObservableLight=ht}(z||(z={})),Ib=class hv{static{this.all=new Set}static{this.f=0}constructor(t){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${t}_${hv.f++}`,hv.all.add(this)}start(t){this.g=new $n,this.listenerCount=t}stop(){if(this.g){const t=this.g.elapsed();this.durations.push(t),this.elapsedOverall+=t,this.invocationCount+=1,this.g=void 0}}},Pp=-1,Ab=class JP{static{this.f=1}constructor(t,s,i=(JP.f++).toString(16).padStart(3,"0")){this.j=t,this.threshold=s,this.name=i,this.h=0}dispose(){this.g?.clear()}check(t,s){const i=this.threshold;if(i<=0||s<i)return;this.g||(this.g=new Map);const n=this.g.get(t.value)||0;if(this.g.set(t.value,n+1),this.h-=1,this.h<=0){this.h=i*.5;const[r,o]=this.getMostFrequentStack(),a=`[${this.name}] potential listener LEAK detected, having ${s} listeners already. MOST frequent listener (${o}):`;console.warn(a),console.warn(r);const c=new Db(a,r);this.j(c)}return()=>{const r=this.g.get(t.value)||0;this.g.set(t.value,r-1)}}getMostFrequentStack(){if(!this.g)return;let t,s=0;for(const[i,n]of this.g)(!t||s<n)&&(t=[i,n],s=n);return t}},iu=class XP{static create(){const t=new Error;return new XP(t.stack??"")}constructor(t){this.value=t}print(){console.warn(this.value.split(` `).slice(2).join(` `))}},Db=class extends Error{constructor(e,t){super(e),this.name="ListenerLeakError",this.stack=t}},Nb=class extends Error{constructor(e,t){super(e),this.name="ListenerRefusalError",this.stack=t}},Rb=0,Ma=class{constructor(e){this.value=e,this.id=Rb++}},Lb=2,Ob=(e,t)=>{if(e instanceof Ma)t(e);else for(let s=0;s<e.length;s++){const i=e[s];i&&t(i)}},Sb){const e=[];setInterval(()=>{e.length!==0&&(console.warn("[LEAKING LISTENERS] GC'ed these listeners that were NOT yet disposed:"),console.warn(e.join(` `)),e.length=0)},3e3),nu=new FinalizationRegistry(t=>{typeof t=="string"&&e.push(t)})}D=class{constructor(e){this.z=0,this.f=e,this.g=Pp>0||this.f?.leakWarningThreshold?new Ab(e?.onListenerError??Vt,this.f?.leakWarningThreshold??Pp):void 0,this.j=this.f?._profName?new Ib(this.f._profName):void 0,this.w=this.f?.deliveryQueue}dispose(){if(!this.m){if(this.m=!0,this.w?.current===this&&this.w.reset(),this.u){if(Sp){const e=this.u;queueMicrotask(()=>{Ob(e,t=>t.stack?.print())})}this.u=void 0,this.z=0}this.f?.onDidRemoveLastListener?.(),this.g?.dispose()}}get event(){return this.q??=(e,t,s)=>{if(this.g&&this.z>this.g.threshold**2){const a=`[${this.g.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this.z} vs ${this.g.threshold})`;console.warn(a);const c=this.g.getMostFrequentStack()??["UNKNOWN stack",-1],l=new Nb(`${a}. HINT: Stack shows most frequent listener (${c[1]}-times)`,c[0]);return(this.f?.onListenerError||Vt)(l),J.None}if(this.m)return J.None;t&&(e=e.bind(t));const i=new Ma(e);let n,r;this.g&&this.z>=Math.ceil(this.g.threshold*.2)&&(i.stack=iu.create(),n=this.g.check(i.stack,this.z+1)),Sp&&(i.stack=r??iu.create()),this.u?this.u instanceof Ma?(this.w??=new Cb,this.u=[this.u,i]):this.u.push(i):(this.f?.onWillAddFirstListener?.(this),this.u=i,this.f?.onDidAddFirstListener?.(this)),this.f?.onDidAddListener?.(this),this.z++;const o=ve(()=>{nu?.unregister(o),n?.(),this.A(i)});if(s instanceof lt?s.add(o):Array.isArray(s)&&s.push(o),nu){const a=new Error().stack.split(` `).slice(2,3).join(` `).trim(),c=/(file:|vscode-file:\/\/vscode-app)?(\/[^:]*:\d+:\d+)/.exec(a);nu.register(o,c?.[2]??a,o)}return o},this.q}A(e){if(this.f?.onWillRemoveListener?.(this),!this.u)return;if(this.z===1){this.u=void 0,this.f?.onDidRemoveLastListener?.(this),this.z=0;return}const t=this.u,s=t.indexOf(e);if(s===-1)throw console.log("disposed?",this.m),console.log("size?",this.z),console.log("arr?",JSON.stringify(this.u)),new Error("Attempted to dispose unknown listener");this.z--,t[s]=void 0;const i=this.w.current===this;if(this.z*Lb<=t.length){let n=0;for(let r=0;r<t.length;r++)t[r]?t[n++]=t[r]:i&&n<this.w.end&&(this.w.end--,n<this.w.i&&this.w.i--);t.length=n}}B(e,t){if(!e)return;const s=this.f?.onListenerError||Vt;if(!s){e.value(t);return}try{e.value(t)}catch(i){s(i)}}C(e){const t=e.current.u;for(;e.i<e.end;)this.B(t[e.i++],e.value);e.reset()}fire(e){if(this.w?.current&&(this.C(this.w),this.j?.stop()),this.j?.start(this.z),this.u)if(this.u instanceof Ma)this.B(this.u,e);else{const t=this.w;t.enqueue(this,e,this.u.length),this.C(t)}this.j?.stop()}hasListeners(){return this.z>0}},Cb=class{constructor(){this.i=-1,this.end=0}enqueue(e,t,s){this.i=0,this.end=s,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}},ru=class extends D{get isPaused(){return this.h!==0}constructor(e){super(e),this.h=0,this.s=new $p,this.t=e?.merge}pause(){this.h++}resume(){if(this.h!==0&&--this.h===0)if(this.t){if(this.s.size>0){const e=Array.from(this.s);this.s.clear(),super.fire(this.t(e))}}else for(;!this.h&&this.s.size!==0;)super.fire(this.s.shift())}fire(e){this.z&&(this.h!==0?this.s.push(e):super.fire(e))}},jb=class{constructor(){this.g=!1,this.h=[],this.f=new D({onWillAddFirstListener:()=>this.j(),onDidRemoveLastListener:()=>this.k()})}get event(){return this.f.event}add(e){const t={event:e,listener:null};return this.h.push(t),this.g&&this.m(t),ve(Ql(()=>{this.g&&this.o(t);const i=this.h.indexOf(t);this.h.splice(i,1)}))}j(){this.g=!0,this.h.forEach(e=>this.m(e))}k(){this.g=!1,this.h.forEach(e=>this.o(e))}m(e){e.listener=e.event(t=>this.f.fire(t))}o(e){e.listener?.dispose(),e.listener=null}dispose(){this.f.dispose();for(const e of this.h)e.listener?.dispose();this.h=[]}},Ip=class{constructor(){this.f=!1,this.g=z.None,this.h=J.None,this.j=new D({onDidAddFirstListener:()=>{this.f=!0,this.h=this.g(this.j.fire,this.j)},onDidRemoveLastListener:()=>{this.f=!1,this.h.dispose()}}),this.event=this.j.event}set input(e){this.g=e,this.f&&(this.h.dispose(),this.h=e(this.j.fire,this.j))}dispose(){this.h.dispose(),this.j.dispose()}}}}),Ap,Re,Ua,vi,Dt=v({"out-build/vs/base/common/cancellation.js"(){"use strict";ae(),Ap=Object.freeze(function(e,t){const s=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(s)}}}),function(e){function t(s){return s===e.None||s===e.Cancelled||s instanceof Ua?!0:!s||typeof s!="object"?!1:typeof s.isCancellationRequested=="boolean"&&typeof s.onCancellationRequested=="function"}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:z.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Ap})}(Re||(Re={})),Ua=class{constructor(){this.a=!1,this.b=null}cancel(){this.a||(this.a=!0,this.b&&(this.b.fire(void 0),this.dispose()))}get isCancellationRequested(){return this.a}get onCancellationRequested(){return this.a?Ap:(this.b||(this.b=new D),this.b.event)}dispose(){this.b&&(this.b.dispose(),this.b=null)}},vi=class{constructor(e){this.f=void 0,this.g=void 0,this.g=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this.f||(this.f=new Ua),this.f}cancel(){this.f?this.f instanceof Ua&&this.f.cancel():this.f=Re.Cancelled}dispose(e=!1){e&&this.cancel(),this.g?.dispose(),this.f?this.f instanceof Ua&&this.f.dispose():this.f=Re.None}}}});function lA(e){return e}var _b,uA=v({"out-build/vs/base/common/cache.js"(){"use strict";Dt(),_b=class{constructor(e,t){this.a=void 0,this.b=void 0,typeof e=="function"?(this.c=e,this.d=lA):(this.c=t,this.d=e.getCacheKey)}get(e){const t=this.d(e);return this.b!==t&&(this.b=t,this.a=this.c(e)),this.a}}}}),mr,ou=v({"out-build/vs/base/common/lazy.js"(){"use strict";mr=class{constructor(e){this.d=e,this.a=!1}get hasValue(){return this.a}get value(){if(!this.a)try{this.b=this.d()}catch(e){this.c=e}finally{this.a=!0}if(this.c)throw this.c;return this.b}get rawValue(){return this.b}}}});function hA(e){return!e||typeof e!="string"?!0:e.trim().length===0}function Sn(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function fA(e,t){if(!e||!t)return e;const s=t.length;if(s===0||e.length===0)return e;let i=0;for(;e.indexOf(t,i)===i;)i=i+s;return e.substring(i)}function Tb(e,t){if(!e||!t)return e;const s=t.length,i=e.length;if(s===0||i===0)return e;let n=i,r=-1;for(;r=e.lastIndexOf(t,n-1),!(r===-1||r+s!==n);){if(r===0)return"";n=r}return e.substring(0,n)}function dA(e,t,s={}){if(!e)throw new Error("Cannot create regex from empty string");t||(e=Sn(e)),s.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e=e+"\\b"));let i="";return s.global&&(i+="g"),s.matchCase||(i+="i"),s.multiline&&(i+="m"),s.unicode&&(i+="u"),new RegExp(e,i)}function pA(e,t,s){const i=[];let n=0;for(const r of e.matchAll(t)){if(i.push(e.slice(n,r.index)),r.index===void 0)throw new Error("match.index should be defined");n=r.index+r[0].length,i.push(s(r[0],...r.slice(1),r.index,e,r.groups))}return i.push(e.slice(n)),Promise.all(i).then(r=>r.join(""))}function Dp(e,t){return e<t?-1:e>t?1:0}function Np(e,t,s=0,i=e.length,n=0,r=t.length){for(;s<i&&n<r;s++,n++){const c=e.charCodeAt(s),l=t.charCodeAt(n);if(c<l)return-1;if(c>l)return 1}const o=i-s,a=r-n;return o<a?-1:o>a?1:0}function Rp(e,t){return Fa(e,t,0,e.length,0,t.length)}function Fa(e,t,s=0,i=e.length,n=0,r=t.length){for(;s<i&&n<r;s++,n++){let c=e.charCodeAt(s),l=t.charCodeAt(n);if(c===l)continue;if(c>=128||l>=128)return Np(e.toLowerCase(),t.toLowerCase(),s,i,n,r);Mb(c)&&(c-=32),Mb(l)&&(l-=32);const u=c-l;if(u!==0)return u}const o=i-s,a=r-n;return o<a?-1:o>a?1:0}function Mb(e){return e>=97&&e<=122}function Ub(e){return e>=65&&e<=90}function Pn(e,t){return e.length===t.length&&Fa(e,t)===0}function Lp(e,t){const s=t.length;return t.length>e.length?!1:Fa(e,t,0,s)===0}function mA(e){return 55296<=e&&e<=56319}function Fb(e){return 56320<=e&&e<=57343}function gA(e,t){return(e-55296<<10)+(t-56320)+65536}function wA(){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 vA,Bb,bA,zb,yA,EA,rt=v({"out-build/vs/base/common/strings.js"(){"use strict";uA(),ou(),vA="\uFEFF",function(e){e[e.Other=0]="Other",e[e.Prepend=1]="Prepend",e[e.CR=2]="CR",e[e.LF=3]="LF",e[e.Control=4]="Control",e[e.Extend=5]="Extend",e[e.Regional_Indicator=6]="Regional_Indicator",e[e.SpacingMark=7]="SpacingMark",e[e.L=8]="L",e[e.V=9]="V",e[e.T=10]="T",e[e.LV=11]="LV",e[e.LVT=12]="LVT",e[e.ZWJ=13]="ZWJ",e[e.Extended_Pictographic=14]="Extended_Pictographic"}(Bb||(Bb={})),bA=class _l{static{this.c=null}static getInstance(){return _l.c||(_l.c=new _l),_l.c}constructor(){this.d=wA()}getGraphemeBreakType(t){if(t<32)return t===10?3:t===13?2:4;if(t<127)return 0;const s=this.d,i=s.length/3;let n=1;for(;n<=i;)if(t<s[3*n])n=2*n;else if(t>s[3*n+1])n=2*n+1;else return s[3*n+2];return 0}},function(e){e[e.zwj=8205]="zwj",e[e.emojiVariantSelector=65039]="emojiVariantSelector",e[e.enclosingKeyCap=8419]="enclosingKeyCap"}(zb||(zb={})),yA=class Tl{static{this.c=new mr(()=>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,8218,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,8242,96,1370,96,1523,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,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,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,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,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,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,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,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,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,71922,67,71913,67,65315,67,8557,67,8450,67,8493,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,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,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,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,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,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,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,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,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,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,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,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,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,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,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,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,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,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,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,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,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,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,71919,87,71910,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,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,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,66293,90,71909,90,65338,90,8484,90,8488,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,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,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,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,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,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,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,65283,35,65292,44,65307,59],"ko":[8211,45,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,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,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,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[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,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,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,65283,35,65307,59]}'))}static{this.d=new _b({getCacheKey:JSON.stringify},t=>{function s(u){const h=new Map;for(let d=0;d<u.length;d+=2)h.set(u[d],u[d+1]);return h}function i(u,h){const d=new Map(u);for(const[p,g]of h)d.set(p,g);return d}function n(u,h){if(!u)return h;const d=new Map;for(const[p,g]of u)h.has(p)&&d.set(p,g);return d}const r=this.c.value;let o=t.filter(u=>!u.startsWith("_")&&u in r);o.length===0&&(o=["_default"]);let a;for(const u of o){const h=s(r[u]);a=n(a,h)}const c=s(r._common),l=i(c,a);return new Tl(l)})}static getInstance(t){return Tl.d.get(Array.from(t))}static{this.e=new mr(()=>Object.keys(Tl.c.value).filter(t=>!t.startsWith("_")))}static getLocales(){return Tl.e.value}constructor(t){this.f=t}isAmbiguous(t){return this.f.has(t)}containsAmbiguousCharacter(t){for(let s=0;s<t.length;s++){const i=t.codePointAt(s);if(typeof i=="number"&&this.isAmbiguous(i))return!0}return!1}getPrimaryConfusable(t){return this.f.get(t)}getConfusableCodePoints(){return new Set(this.f.keys())}},EA=class Ml{static c(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,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,12288,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]")}static{this.d=void 0}static e(){return this.d||(this.d=new Set(Ml.c())),this.d}static isInvisibleCharacter(t){return Ml.e().has(t)}static containsInvisibleCharacter(t){for(let s=0;s<t.length;s++){const i=t.codePointAt(s);if(typeof i=="number"&&Ml.isInvisibleCharacter(i))return!0}return!1}static get codePoints(){return Ml.e()}}}}),gr,au,bi,Cs,Op,Cp,ei=v({"out-build/vs/base/common/process.js"(){"use strict";if(Q(),au=globalThis.vscode,typeof au<"u"&&typeof au.process<"u"){const e=au.process;gr={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd(){return e.cwd()}}}else typeof process<"u"&&typeof process?.versions?.node=="string"?gr={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:gr={get platform(){return me?"win32":Os?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};bi=gr.cwd,Cs=gr.env,Op=gr.platform,Cp=gr.arch}});function xA(e,t){if(e===null||typeof e!="object")throw new _p(t,"Object",e)}function dt(e,t){if(typeof e!="string")throw new _p(t,"string",e)}function ge(e){return e===Rt||e===cs}function jp(e){return e===Rt}function In(e){return e>=Vb&&e<=qb||e>=Wb&&e<=Gb}function cu(e,t,s,i){let n="",r=0,o=-1,a=0,c=0;for(let l=0;l<=e.length;++l){if(l<e.length)c=e.charCodeAt(l);else{if(i(c))break;c=Rt}if(i(c)){if(!(o===l-1||a===1))if(a===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==Gi||n.charCodeAt(n.length-2)!==Gi){if(n.length>2){const u=n.lastIndexOf(s);u===-1?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf(s)),o=l,a=0;continue}else if(n.length!==0){n="",r=0,o=l,a=0;continue}}t&&(n+=n.length>0?`${s}..`:"..",r=2)}else n.length>0?n+=`${s}${e.slice(o+1,l)}`:n=e.slice(o+1,l),r=l-o-1;o=l,a=0}else c===Gi&&a!==-1?++a:a=-1}return n}function kA(e){return e?`${e[0]==="."?"":"."}${e}`:""}function Hb(e,t){xA(t,"pathObject");const s=t.dir||t.root,i=t.base||`${t.name||""}${kA(t.ext)}`;return s?s===t.root?`${s}${i}`:`${s}${e}${i}`:i}var Vb,Wb,qb,Gb,Gi,Rt,cs,Ji,Jb,_p,ls,pt,Xb,Se,ti,Xi,j,Yi,Ba,Lt,ot,wr,$A,SA,PA,Yt,oo,he=v({"out-build/vs/base/common/path.js"(){"use strict";ei(),Vb=65,Wb=97,qb=90,Gb=122,Gi=46,Rt=47,cs=92,Ji=58,Jb=63,_p=class extends Error{constructor(e,t,s){let i;typeof t=="string"&&t.indexOf("not ")===0?(i="must not be",t=t.replace(/^not /,"")):i="must be";const n=e.indexOf(".")!==-1?"property":"argument";let r=`The "${e}" ${n} ${i} of type ${t}`;r+=`. Received type ${typeof s}`,super(r),this.code="ERR_INVALID_ARG_TYPE"}},ls=Op==="win32",pt={resolve(...e){let t="",s="",i=!1;for(let n=e.length-1;n>=-1;n--){let r;if(n>=0){if(r=e[n],dt(r,`paths[${n}]`),r.length===0)continue}else t.length===0?r=bi():(r=Cs[`=${t}`]||bi(),(r===void 0||r.slice(0,2).toLowerCase()!==t.toLowerCase()&&r.charCodeAt(2)===cs)&&(r=`${t}\\`));const o=r.length;let a=0,c="",l=!1;const u=r.charCodeAt(0);if(o===1)ge(u)&&(a=1,l=!0);else if(ge(u))if(l=!0,ge(r.charCodeAt(1))){let h=2,d=h;for(;h<o&&!ge(r.charCodeAt(h));)h++;if(h<o&&h!==d){const p=r.slice(d,h);for(d=h;h<o&&ge(r.charCodeAt(h));)h++;if(h<o&&h!==d){for(d=h;h<o&&!ge(r.charCodeAt(h));)h++;(h===o||h!==d)&&(c=`\\\\${p}\\${r.slice(d,h)}`,a=h)}}}else a=1;else In(u)&&r.charCodeAt(1)===Ji&&(c=r.slice(0,2),a=2,o>2&&ge(r.charCodeAt(2))&&(l=!0,a=3));if(c.length>0)if(t.length>0){if(c.toLowerCase()!==t.toLowerCase())continue}else t=c;if(i){if(t.length>0)break}else if(s=`${r.slice(a)}\\${s}`,i=l,l&&t.length>0)break}return s=cu(s,!i,"\\",ge),i?`${t}\\${s}`:`${t}${s}`||"."},normalize(e){dt(e,"path");const t=e.length;if(t===0)return".";let s=0,i,n=!1;const r=e.charCodeAt(0);if(t===1)return jp(r)?"\\":e;if(ge(r))if(n=!0,ge(e.charCodeAt(1))){let a=2,c=a;for(;a<t&&!ge(e.charCodeAt(a));)a++;if(a<t&&a!==c){const l=e.slice(c,a);for(c=a;a<t&&ge(e.charCodeAt(a));)a++;if(a<t&&a!==c){for(c=a;a<t&&!ge(e.charCodeAt(a));)a++;if(a===t)return`\\\\${l}\\${e.slice(c)}\\`;a!==c&&(i=`\\\\${l}\\${e.slice(c,a)}`,s=a)}}}else s=1;else In(r)&&e.charCodeAt(1)===Ji&&(i=e.slice(0,2),s=2,t>2&&ge(e.charCodeAt(2))&&(n=!0,s=3));let o=s<t?cu(e.slice(s),!n,"\\",ge):"";return o.length===0&&!n&&(o="."),o.length>0&&ge(e.charCodeAt(t-1))&&(o+="\\"),i===void 0?n?`\\${o}`:o:n?`${i}\\${o}`:`${i}${o}`},isAbsolute(e){dt(e,"path");const t=e.length;if(t===0)return!1;const s=e.charCodeAt(0);return ge(s)||t>2&&In(s)&&e.charCodeAt(1)===Ji&&ge(e.charCodeAt(2))},join(...e){if(e.length===0)return".";let t,s;for(let r=0;r<e.length;++r){const o=e[r];dt(o,"path"),o.length>0&&(t===void 0?t=s=o:t+=`\\${o}`)}if(t===void 0)return".";let i=!0,n=0;if(typeof s=="string"&&ge(s.charCodeAt(0))){++n;const r=s.length;r>1&&ge(s.charCodeAt(1))&&(++n,r>2&&(ge(s.charCodeAt(2))?++n:i=!1))}if(i){for(;n<t.length&&ge(t.charCodeAt(n));)n++;n>=2&&(t=`\\${t.slice(n)}`)}return pt.normalize(t)},relative(e,t){if(dt(e,"from"),dt(t,"to"),e===t)return"";const s=pt.resolve(e),i=pt.resolve(t);if(s===i||(e=s.toLowerCase(),t=i.toLowerCase(),e===t))return"";let n=0;for(;n<e.length&&e.charCodeAt(n)===cs;)n++;let r=e.length;for(;r-1>n&&e.charCodeAt(r-1)===cs;)r--;const o=r-n;let a=0;for(;a<t.length&&t.charCodeAt(a)===cs;)a++;let c=t.length;for(;c-1>a&&t.charCodeAt(c-1)===cs;)c--;const l=c-a,u=o<l?o:l;let h=-1,d=0;for(;d<u;d++){const g=e.charCodeAt(n+d);if(g!==t.charCodeAt(a+d))break;g===cs&&(h=d)}if(d!==u){if(h===-1)return i}else{if(l>u){if(t.charCodeAt(a+d)===cs)return i.slice(a+d+1);if(d===2)return i.slice(a+d)}o>u&&(e.charCodeAt(n+d)===cs?h=d:d===2&&(h=3)),h===-1&&(h=0)}let p="";for(d=n+h+1;d<=r;++d)(d===r||e.charCodeAt(d)===cs)&&(p+=p.length===0?"..":"\\..");return a+=h,p.length>0?`${p}${i.slice(a,c)}`:(i.charCodeAt(a)===cs&&++a,i.slice(a,c))},toNamespacedPath(e){if(typeof e!="string"||e.length===0)return e;const t=pt.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===cs){if(t.charCodeAt(1)===cs){const s=t.charCodeAt(2);if(s!==Jb&&s!==Gi)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(In(t.charCodeAt(0))&&t.charCodeAt(1)===Ji&&t.charCodeAt(2)===cs)return`\\\\?\\${t}`;return e},dirname(e){dt(e,"path");const t=e.length;if(t===0)return".";let s=-1,i=0;const n=e.charCodeAt(0);if(t===1)return ge(n)?e:".";if(ge(n)){if(s=i=1,ge(e.charCodeAt(1))){let a=2,c=a;for(;a<t&&!ge(e.charCodeAt(a));)a++;if(a<t&&a!==c){for(c=a;a<t&&ge(e.charCodeAt(a));)a++;if(a<t&&a!==c){for(c=a;a<t&&!ge(e.charCodeAt(a));)a++;if(a===t)return e;a!==c&&(s=i=a+1)}}}}else In(n)&&e.charCodeAt(1)===Ji&&(s=t>2&&ge(e.charCodeAt(2))?3:2,i=s);let r=-1,o=!0;for(let a=t-1;a>=i;--a)if(ge(e.charCodeAt(a))){if(!o){r=a;break}}else o=!1;if(r===-1){if(s===-1)return".";r=s}return e.slice(0,r)},basename(e,t){t!==void 0&&dt(t,"suffix"),dt(e,"path");let s=0,i=-1,n=!0,r;if(e.length>=2&&In(e.charCodeAt(0))&&e.charCodeAt(1)===Ji&&(s=2),t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(r=e.length-1;r>=s;--r){const c=e.charCodeAt(r);if(ge(c)){if(!n){s=r+1;break}}else a===-1&&(n=!1,a=r+1),o>=0&&(c===t.charCodeAt(o)?--o===-1&&(i=r):(o=-1,i=a))}return s===i?i=a:i===-1&&(i=e.length),e.slice(s,i)}for(r=e.length-1;r>=s;--r)if(ge(e.charCodeAt(r))){if(!n){s=r+1;break}}else i===-1&&(n=!1,i=r+1);return i===-1?"":e.slice(s,i)},extname(e){dt(e,"path");let t=0,s=-1,i=0,n=-1,r=!0,o=0;e.length>=2&&e.charCodeAt(1)===Ji&&In(e.charCodeAt(0))&&(t=i=2);for(let a=e.length-1;a>=t;--a){const c=e.charCodeAt(a);if(ge(c)){if(!r){i=a+1;break}continue}n===-1&&(r=!1,n=a+1),c===Gi?s===-1?s=a:o!==1&&(o=1):s!==-1&&(o=-1)}return s===-1||n===-1||o===0||o===1&&s===n-1&&s===i+1?"":e.slice(s,n)},format:Hb.bind(null,"\\"),parse(e){dt(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const s=e.length;let i=0,n=e.charCodeAt(0);if(s===1)return ge(n)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(ge(n)){if(i=1,ge(e.charCodeAt(1))){let h=2,d=h;for(;h<s&&!ge(e.charCodeAt(h));)h++;if(h<s&&h!==d){for(d=h;h<s&&ge(e.charCodeAt(h));)h++;if(h<s&&h!==d){for(d=h;h<s&&!ge(e.charCodeAt(h));)h++;h===s?i=h:h!==d&&(i=h+1)}}}}else if(In(n)&&e.charCodeAt(1)===Ji){if(s<=2)return t.root=t.dir=e,t;if(i=2,ge(e.charCodeAt(2))){if(s===3)return t.root=t.dir=e,t;i=3}}i>0&&(t.root=e.slice(0,i));let r=-1,o=i,a=-1,c=!0,l=e.length-1,u=0;for(;l>=i;--l){if(n=e.charCodeAt(l),ge(n)){if(!c){o=l+1;break}continue}a===-1&&(c=!1,a=l+1),n===Gi?r===-1?r=l:u!==1&&(u=1):r!==-1&&(u=-1)}return a!==-1&&(r===-1||u===0||u===1&&r===a-1&&r===o+1?t.base=t.name=e.slice(o,a):(t.name=e.slice(o,r),t.base=e.slice(o,a),t.ext=e.slice(r,a))),o>0&&o!==i?t.dir=e.slice(0,o-1):t.dir=t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},Xb=(()=>{if(ls){const e=/\\/g;return()=>{const t=bi().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>bi()})(),Se={resolve(...e){let t="",s=!1;for(let i=e.length-1;i>=-1&&!s;i--){const n=i>=0?e[i]:Xb();dt(n,`paths[${i}]`),n.length!==0&&(t=`${n}/${t}`,s=n.charCodeAt(0)===Rt)}return t=cu(t,!s,"/",jp),s?`/${t}`:t.length>0?t:"."},normalize(e){if(dt(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===Rt,s=e.charCodeAt(e.length-1)===Rt;return e=cu(e,!t,"/",jp),e.length===0?t?"/":s?"./":".":(s&&(e+="/"),t?`/${e}`:e)},isAbsolute(e){return dt(e,"path"),e.length>0&&e.charCodeAt(0)===Rt},join(...e){if(e.length===0)return".";let t;for(let s=0;s<e.length;++s){const i=e[s];dt(i,"path"),i.length>0&&(t===void 0?t=i:t+=`/${i}`)}return t===void 0?".":Se.normalize(t)},relative(e,t){if(dt(e,"from"),dt(t,"to"),e===t||(e=Se.resolve(e),t=Se.resolve(t),e===t))return"";const s=1,i=e.length,n=i-s,r=1,o=t.length-r,a=n<o?n:o;let c=-1,l=0;for(;l<a;l++){const h=e.charCodeAt(s+l);if(h!==t.charCodeAt(r+l))break;h===Rt&&(c=l)}if(l===a)if(o>a){if(t.charCodeAt(r+l)===Rt)return t.slice(r+l+1);if(l===0)return t.slice(r+l)}else n>a&&(e.charCodeAt(s+l)===Rt?c=l:l===0&&(c=0));let u="";for(l=s+c+1;l<=i;++l)(l===i||e.charCodeAt(l)===Rt)&&(u+=u.length===0?"..":"/..");return`${u}${t.slice(r+c)}`},toNamespacedPath(e){return e},dirname(e){if(dt(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===Rt;let s=-1,i=!0;for(let n=e.length-1;n>=1;--n)if(e.charCodeAt(n)===Rt){if(!i){s=n;break}}else i=!1;return s===-1?t?"/":".":t&&s===1?"//":e.slice(0,s)},basename(e,t){t!==void 0&&dt(t,"ext"),dt(e,"path");let s=0,i=-1,n=!0,r;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(r=e.length-1;r>=0;--r){const c=e.charCodeAt(r);if(c===Rt){if(!n){s=r+1;break}}else a===-1&&(n=!1,a=r+1),o>=0&&(c===t.charCodeAt(o)?--o===-1&&(i=r):(o=-1,i=a))}return s===i?i=a:i===-1&&(i=e.length),e.slice(s,i)}for(r=e.length-1;r>=0;--r)if(e.charCodeAt(r)===Rt){if(!n){s=r+1;break}}else i===-1&&(n=!1,i=r+1);return i===-1?"":e.slice(s,i)},extname(e){dt(e,"path");let t=-1,s=0,i=-1,n=!0,r=0;for(let o=e.length-1;o>=0;--o){const a=e.charCodeAt(o);if(a===Rt){if(!n){s=o+1;break}continue}i===-1&&(n=!1,i=o+1),a===Gi?t===-1?t=o:r!==1&&(r=1):t!==-1&&(r=-1)}return t===-1||i===-1||r===0||r===1&&t===i-1&&t===s+1?"":e.slice(t,i)},format:Hb.bind(null,"/"),parse(e){dt(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const s=e.charCodeAt(0)===Rt;let i;s?(t.root="/",i=1):i=0;let n=-1,r=0,o=-1,a=!0,c=e.length-1,l=0;for(;c>=i;--c){const u=e.charCodeAt(c);if(u===Rt){if(!a){r=c+1;break}continue}o===-1&&(a=!1,o=c+1),u===Gi?n===-1?n=c:l!==1&&(l=1):n!==-1&&(l=-1)}if(o!==-1){const u=r===0&&s?1:r;n===-1||l===0||l===1&&n===o-1&&n===r+1?t.base=t.name=e.slice(u,o):(t.name=e.slice(u,n),t.base=e.slice(u,o),t.ext=e.slice(n,o))}return r>0?t.dir=e.slice(0,r-1):s&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null},Se.win32=pt.win32=pt,Se.posix=pt.posix=Se,ti=ls?pt.normalize:Se.normalize,Xi=ls?pt.isAbsolute:Se.isAbsolute,j=ls?pt.join:Se.join,Yi=ls?pt.resolve:Se.resolve,Ba=ls?pt.relative:Se.relative,Lt=ls?pt.dirname:Se.dirname,ot=ls?pt.basename:Se.basename,wr=ls?pt.extname:Se.extname,$A=ls?pt.format:Se.format,SA=ls?pt.parse:Se.parse,PA=ls?pt.toNamespacedPath:Se.toNamespacedPath,Yt=ls?pt.sep:Se.sep,oo=ls?pt.delimiter:Se.delimiter}});function IA(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!Kb.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!ey.test(e.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(ty.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function AA(e,t){return!e&&!t?"file":e}function DA(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==zs&&(t=zs+t):t=zs;break}return t}function Yb(e){return!e||typeof e!="object"?!1:typeof e.scheme=="string"&&(typeof e.authority=="string"||typeof e.authority>"u")&&(typeof e.path=="string"||typeof e.path>"u")&&(typeof e.query=="string"||typeof e.query>"u")&&(typeof e.fragment=="string"||typeof e.fragment>"u")}function Qb(e,t,s){let i,n=-1;for(let r=0;r<e.length;r++){const o=e.charCodeAt(r);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===45||o===46||o===95||o===126||t&&o===47||s&&o===91||s&&o===93||s&&o===58)n!==-1&&(i+=encodeURIComponent(e.substring(n,r)),n=-1),i!==void 0&&(i+=e.charAt(r));else{i===void 0&&(i=e.substr(0,r));const a=Up[o];a!==void 0?(n!==-1&&(i+=encodeURIComponent(e.substring(n,r)),n=-1),i+=a):n===-1&&(n=r)}}return n!==-1&&(i+=encodeURIComponent(e.substring(n))),i!==void 0?i:e}function NA(e){let t;for(let s=0;s<e.length;s++){const i=e.charCodeAt(s);i===35||i===63?(t===void 0&&(t=e.substr(0,s)),t+=Up[i]):t!==void 0&&(t+=e[s])}return t!==void 0?t:e}function lu(e,t){let s;return e.authority&&e.path.length>1&&e.scheme==="file"?s=`//${e.authority}${e.path}`:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?t?s=e.path.substr(1):s=e.path[1].toLowerCase()+e.path.substr(2):s=e.path,me&&(s=s.replace(/\//g,"\\")),s}function Tp(e,t){const s=t?NA:Qb;let i="",{scheme:n,authority:r,path:o,query:a,fragment:c}=e;if(n&&(i+=n,i+=":"),(r||n==="file")&&(i+=zs,i+=zs),r){let l=r.indexOf("@");if(l!==-1){const u=r.substr(0,l);r=r.substr(l+1),l=u.lastIndexOf(":"),l===-1?i+=s(u,!1,!1):(i+=s(u.substr(0,l),!1,!1),i+=":",i+=s(u.substr(l+1),!1,!0)),i+="@"}r=r.toLowerCase(),l=r.lastIndexOf(":"),l===-1?i+=s(r,!1,!0):(i+=s(r.substr(0,l),!1,!0),i+=r.substr(l))}if(o){if(o.length>=3&&o.charCodeAt(0)===47&&o.charCodeAt(2)===58){const l=o.charCodeAt(1);l>=65&&l<=90&&(o=`/${String.fromCharCode(l+32)}:${o.substr(3)}`)}else if(o.length>=2&&o.charCodeAt(1)===58){const l=o.charCodeAt(0);l>=65&&l<=90&&(o=`${String.fromCharCode(l+32)}:${o.substr(2)}`)}i+=s(o,!0,!1)}return a&&(i+="?",i+=s(a,!1,!1)),c&&(i+="#",i+=t?c:Qb(c,!1,!1)),i}function Zb(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+Zb(e.substr(3)):e}}function uu(e){return e.match(Fp)?e.replace(Fp,t=>Zb(t)):e}var Kb,ey,ty,We,zs,sy,E,Mp,vr,Up,Fp,te=v({"out-build/vs/base/common/uri.js"(){"use strict";he(),Q(),Kb=/^\w[\w\d+.-]*$/,ey=/^\//,ty=/^\/\//,We="",zs="/",sy=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,E=class Yd{static isUri(t){return t instanceof Yd?!0:t?typeof t.authority=="string"&&typeof t.fragment=="string"&&typeof t.path=="string"&&typeof t.query=="string"&&typeof t.scheme=="string"&&typeof t.fsPath=="string"&&typeof t.with=="function"&&typeof t.toString=="function":!1}constructor(t,s,i,n,r,o=!1){typeof t=="object"?(this.scheme=t.scheme||We,this.authority=t.authority||We,this.path=t.path||We,this.query=t.query||We,this.fragment=t.fragment||We):(this.scheme=AA(t,o),this.authority=s||We,this.path=DA(this.scheme,i||We),this.query=n||We,this.fragment=r||We,IA(this,o))}get fsPath(){return lu(this,!1)}with(t){if(!t)return this;let{scheme:s,authority:i,path:n,query:r,fragment:o}=t;return s===void 0?s=this.scheme:s===null&&(s=We),i===void 0?i=this.authority:i===null&&(i=We),n===void 0?n=this.path:n===null&&(n=We),r===void 0?r=this.query:r===null&&(r=We),o===void 0?o=this.fragment:o===null&&(o=We),s===this.scheme&&i===this.authority&&n===this.path&&r===this.query&&o===this.fragment?this:new vr(s,i,n,r,o)}static parse(t,s=!1){const i=sy.exec(t);return i?new vr(i[2]||We,uu(i[4]||We),uu(i[5]||We),uu(i[7]||We),uu(i[9]||We),s):new vr(We,We,We,We,We)}static file(t){let s=We;if(me&&(t=t.replace(/\\/g,zs)),t[0]===zs&&t[1]===zs){const i=t.indexOf(zs,2);i===-1?(s=t.substring(2),t=zs):(s=t.substring(2,i),t=t.substring(i)||zs)}return new vr("file",s,t,We,We)}static from(t,s){return new vr(t.scheme,t.authority,t.path,t.query,t.fragment,s)}static joinPath(t,...s){if(!t.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let i;return me&&t.scheme==="file"?i=Yd.file(pt.join(lu(t,!0),...s)).path:i=Se.join(t.path,...s),t.with({path:i})}toString(t=!1){return Tp(this,t)}toJSON(){return this}static revive(t){if(t){if(t instanceof Yd)return t;{const s=new vr(t);return s._formatted=t.external??null,s._fsPath=t._sep===Mp?t.fsPath??null:null,s}}else return t}[Symbol.for("debug.description")](){return`URI(${this.toString()})`}},Mp=me?1:void 0,vr=class extends E{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=lu(this,!1)),this._fsPath}toString(e=!1){return e?Tp(this,!0):(this._formatted||(this._formatted=Tp(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=Mp),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}},Up={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"},Fp=/(%[0-9A-Za-z][0-9A-Za-z])+/g}});function iy(e,t){return Se.join(t??"/",`${e.quality??"oss"}-${e.commit??"dev"}`)}var Z,hu,ao,ny,ry,oy,ay,cy,Bp,ly,Ot,uy,Ie=v({"out-build/vs/base/common/network.js"(){"use strict";de(),Q(),rt(),te(),he(),function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote",e.vscodeRemoteResource="vscode-remote-resource",e.vscodeManagedRemoteResource="vscode-managed-remote-resource",e.vscodeUserData="vscode-userdata",e.vscodeCustomEditor="vscode-custom-editor",e.vscodeNotebookCell="vscode-notebook-cell",e.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",e.vscodeNotebookCellMetadataDiff="vscode-notebook-cell-metadata-diff",e.vscodeNotebookCellOutput="vscode-notebook-cell-output",e.vscodeNotebookCellOutputDiff="vscode-notebook-cell-output-diff",e.vscodeNotebookMetadata="vscode-notebook-metadata",e.vscodeInteractiveInput="vscode-interactive-input",e.vscodeSettings="vscode-settings",e.vscodeWorkspaceTrust="vscode-workspace-trust",e.vscodeTerminal="vscode-terminal",e.vscodeChatCodeBlock="vscode-chat-code-block",e.vscodeChatCodeCompareBlock="vscode-chat-code-compare-block",e.vscodeChatSesssion="vscode-chat-editor",e.webviewPanel="webview-panel",e.vscodeWebview="vscode-webview",e.extension="extension",e.vscodeFileResource="vscode-file",e.tmp="tmp",e.vsls="vsls",e.vscodeSourceControl="vscode-scm",e.commentsInput="comment",e.codeSetting="code-setting",e.outputChannel="output",e.accessibleView="accessible-view"}(Z||(Z={})),hu="vscode-tkn",ao="tkn",ny=class{constructor(){this.a=Object.create(null),this.b=Object.create(null),this.c=Object.create(null),this.d="http",this.e=null,this.f="/"}setPreferredWebSchema(e){this.d=e}setDelegate(e){this.e=e}setServerRootPath(e,t){this.f=iy(e,t)}getServerRootPath(){return this.f}get g(){return Se.join(this.f,Z.vscodeRemoteResource)}set(e,t,s){this.a[e]=t,this.b[e]=s}setConnectionToken(e,t){this.c[e]=t}getPreferredWebSchema(){return this.d}rewrite(e){if(this.e)try{return this.e(e)}catch(o){return Vt(o),e}const t=e.authority;let s=this.a[t];s&&s.indexOf(":")!==-1&&s.indexOf("[")===-1&&(s=`[${s}]`);const i=this.b[t],n=this.c[t];let r=`path=${encodeURIComponent(e.path)}`;return typeof n=="string"&&(r+=`&${ao}=${encodeURIComponent(n)}`),E.from({scheme:Bs?this.d:Z.vscodeRemoteResource,authority:`${s}:${i}`,path:this.g,query:r})}},ry=new ny,oy="vs/../../extensions",ay="vs/../../node_modules",cy="vs/../../node_modules.asar",Bp="vscode-app",ly=class Qd{static{this.a=Bp}asBrowserUri(t){const s=this.b(t);return this.uriToBrowserUri(s)}uriToBrowserUri(t){return t.scheme===Z.vscodeRemote?ry.rewrite(t):t.scheme===Z.file&&(Yv||Zv===`${Z.vscodeFileResource}://${Qd.a}`)?t.with({scheme:Z.vscodeFileResource,authority:t.authority||Qd.a,query:null,fragment:null}):t}asFileUri(t){const s=this.b(t);return this.uriToFileUri(s)}uriToFileUri(t){return t.scheme===Z.vscodeFileResource?t.with({scheme:Z.file,authority:t.authority!==Qd.a?t.authority:null,query:null,fragment:null}):t}b(t,s){if(E.isUri(t))return t;if(globalThis._VSCODE_FILE_ROOT){const i=globalThis._VSCODE_FILE_ROOT;if(/^\w[\w\d+.-]*:\/\//.test(i))return E.joinPath(E.parse(i,!0),t);const n=j(i,t);return E.file(n)}return E.parse(s.toUrl(t))}},Ot=new ly,function(e){const t=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"}]]);e.CoopAndCoep=Object.freeze(t.get("3"));const s="vscode-coi";function i(r){let o;typeof r=="string"?o=new URL(r).searchParams:r instanceof URL?o=r.searchParams:E.isUri(r)&&(o=new URL(r.toString(!0)).searchParams);const a=o?.get(s);if(a)return t.get(a)}e.getHeadersFromQuery=i;function n(r,o,a){if(!globalThis.crossOriginIsolated)return;const c=o&&a?"3":a?"2":"1";r instanceof URLSearchParams?r.set(s,c):r[s]=c}e.addSearchParam=n}(uy||(uy={}))}}),fu,zp=v({"out-build/vs/platform/instantiation/common/serviceCollection.js"(){"use strict";fu=class{constructor(...e){this.a=new Map;for(const[t,s]of e)this.set(t,s)}set(e,t){const s=this.a.get(e);return this.a.set(e,t),s}has(e){return this.a.has(e)}get(e){return this.a.get(e)}}}});function be(e){return typeof e=="string"}function ut(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function RA(e){const t=Object.getPrototypeOf(Uint8Array);return typeof e=="object"&&e instanceof t}function An(e){return typeof e=="number"&&!isNaN(e)}function Dn(e){return e===!0||e===!1}function Qi(e){return typeof e>"u"}function LA(e){return!xt(e)}function xt(e){return Qi(e)||e===null}function Hp(e){if(xt(e))throw new Error("Assertion Failed: argument is undefined or null");return e}function du(e){if(!ut(e))return!1;for(const t in e)if(hy.call(e,t))return!1;return!0}function Vp(e){return typeof e=="function"}function OA(e,t){if(be(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(Vp(t)){try{if(e instanceof t)return}catch{}if(!xt(e)&&e.constructor===t||t.length===1&&t.call(void 0,e)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}var hy,xe=v({"out-build/vs/base/common/types.js"(){"use strict";hy=Object.prototype.hasOwnProperty}});function Wp(e,t){return t&&(e.stack||e.stacktrace)?m(108,null,dy(e),fy(e.stack)||fy(e.stacktrace)):dy(e)}function fy(e){return Array.isArray(e)?e.join(` `):e}function dy(e){return e.code==="ERR_UNC_HOST_NOT_ALLOWED"?`${e.message}. Please update the 'security.allowedUNCHosts' setting if you want to allow this host.`:typeof e.code=="string"&&typeof e.errno=="number"&&typeof e.syscall=="string"?m(109,null,e.message):e.message||m(110,null)}function Nn(e=null,t=!1){if(!e)return m(111,null);if(Array.isArray(e)){const s=wi(e),i=Nn(s[0],t);return s.length>1?m(112,null,i,s.length):i}if(be(e))return e;if(e.detail){const s=e.detail;if(s.error)return Wp(s.error,t);if(s.exception)return Wp(s.exception,t)}return e.stack?Wp(e,t):e.message?e.message:m(113,null)}var br=v({"out-build/vs/base/common/errorMessage.js"(){"use strict";Et(),xe(),pe()}});function pu(e){const t=e;return t?[t.on,t.pause,t.resume,t.destroy].every(s=>typeof s=="function"):!1}function qp(e){const t=e;return t?pu(t.stream)&&Array.isArray(t.buffer)&&typeof t.ended=="boolean":!1}function mu(e,t){return new gy(e,t)}function CA(e,t){const s=[];let i;for(;(i=e.read())!==null;)s.push(i);return t(s)}function jA(e,t,s){const i=[];let n;for(;(n=e.read())!==null&&i.length<s;)i.push(n);return n===null&&i.length>0?t(i):{read:()=>{if(i.length>0)return i.shift();if(typeof n<"u"){const r=n;return n=void 0,r}return e.read()}}}function py(e,t){return new Promise((s,i)=>{const n=[];gu(e,{onData:r=>{t&&n.push(r)},onError:r=>{t?i(r):s(void 0)},onEnd:()=>{s(t?t(n):void 0)}})})}function gu(e,t,s){e.on("error",i=>{s?.isCancellationRequested||t.onError(i)}),e.on("end",()=>{s?.isCancellationRequested||t.onEnd()}),e.on("data",i=>{s?.isCancellationRequested||t.onData(i)})}function _A(e,t){return new Promise((s,i)=>{const n=new lt,r=[],o=l=>{if(r.push(l),r.length>t)return n.dispose(),e.pause(),s({stream:e,buffer:r,ended:!1})},a=l=>(n.dispose(),i(l)),c=()=>(n.dispose(),s({stream:e,buffer:r,ended:!0}));n.add(ve(()=>e.removeListener("error",a))),e.on("error",a),n.add(ve(()=>e.removeListener("end",c))),e.on("end",c),n.add(ve(()=>e.removeListener("data",o))),e.on("data",o)})}function TA(e){let t=!1;return{read:()=>t?null:(t=!0,e)}}function my(e,t,s){const i=mu(s);return gu(e,{onData:n=>i.write(t.data(n)),onError:n=>i.error(t.error?t.error(n):n),onEnd:()=>i.end()}),i}var gy,za=v({"out-build/vs/base/common/stream.js"(){"use strict";de(),H(),gy=class{constructor(e,t){this.e=e,this.f=t,this.a={flowing:!1,ended:!1,destroyed:!1},this.b={data:[],error:[]},this.c={data:[],error:[],end:[]},this.d=[]}pause(){this.a.destroyed||(this.a.flowing=!1)}resume(){this.a.destroyed||this.a.flowing||(this.a.flowing=!0,this.j(),this.k(),this.l())}write(e){if(!this.a.destroyed){if(this.a.flowing)this.g(e);else if(this.b.data.push(e),typeof this.f?.highWaterMark=="number"&&this.b.data.length>this.f.highWaterMark)return new Promise(t=>this.d.push(t))}}error(e){this.a.destroyed||(this.a.flowing?this.h(e):this.b.error.push(e))}end(e){this.a.destroyed||(typeof e<"u"&&this.write(e),this.a.flowing?(this.i(),this.destroy()):this.a.ended=!0)}g(e){this.c.data.slice(0).forEach(t=>t(e))}h(e){this.c.error.length===0?Vt(e):this.c.error.slice(0).forEach(t=>t(e))}i(){this.c.end.slice(0).forEach(e=>e())}on(e,t){if(!this.a.destroyed)switch(e){case"data":this.c.data.push(t),this.resume();break;case"end":this.c.end.push(t),this.a.flowing&&this.l()&&this.destroy();break;case"error":this.c.error.push(t),this.a.flowing&&this.k();break}}removeListener(e,t){if(this.a.destroyed)return;let s;switch(e){case"data":s=this.c.data;break;case"end":s=this.c.end;break;case"error":s=this.c.error;break}if(s){const i=s.indexOf(t);i>=0&&s.splice(i,1)}}j(){if(this.b.data.length>0){const e=this.e(this.b.data);this.g(e),this.b.data.length=0;const t=[...this.d];this.d.length=0,t.forEach(s=>s())}}k(){if(this.c.error.length>0){for(const e of this.b.error)this.h(e);this.b.error.length=0}}l(){return this.a.ended?(this.i(),this.c.end.length>0):!1}destroy(){this.a.destroyed||(this.a.destroyed=!0,this.a.ended=!0,this.b.data.length=0,this.b.error.length=0,this.c.data.length=0,this.c.error.length=0,this.c.end.length=0,this.d.length=0)}}}});function MA(e,t,s=0){const i=t.byteLength,n=e.byteLength;if(i===0)return 0;if(i===1)return e.indexOf(t[0]);if(i>n-s)return-1;const r=vy.value;r.fill(t.length);for(let l=0;l<t.length;l++)r[t[l]]=t.length-l-1;let o=s+t.length-1,a=o,c=-1;for(;o<n;)if(e[o]===t[a]){if(a===0){c=o;break}o--,a--}else o+=Math.max(t.length-a,r[e[o]]),a=t.length-1;return c}function UA(e,t){return e[t]*2**24+e[t+1]*2**16+e[t+2]*2**8+e[t+3]}function FA(e,t,s){e[s+3]=t,t=t>>>8,e[s+2]=t,t=t>>>8,e[s+1]=t,t=t>>>8,e[s]=t}function BA(e,t){return e[t+0]<<0>>>0|e[t+1]<<8>>>0|e[t+2]<<16>>>0|e[t+3]<<24>>>0}function zA(e,t,s){e[s+0]=t&255,t=t>>>8,e[s+1]=t&255,t=t>>>8,e[s+2]=t&255,t=t>>>8,e[s+3]=t&255}function HA(e,t){return e[t]}function VA(e,t,s){e[s]=t}function WA(e){return CA(e,t=>O.concat(t))}function qA(e){return TA(e)}function Zi(e){return py(e,t=>O.concat(t))}async function GA(e){return e.ended?O.concat(e.buffer):O.concat([...e.buffer,await Zi(e.stream)])}function JA(e){return my(e,{data:t=>typeof t=="string"?O.fromString(t):O.wrap(t)},t=>O.concat(t))}function XA(e){return mu(t=>O.concat(t),e)}function wy(e){let t=0,s=0,i=0;const n=new Uint8Array(Math.floor(e.length/4*3)),r=a=>{switch(s){case 3:n[i++]=t|a,s=0;break;case 2:n[i++]=t|a>>>2,t=a<<6,s=3;break;case 1:n[i++]=t|a>>>4,t=a<<4,s=2;break;default:t=a<<2,s=1}};for(let a=0;a<e.length;a++){const c=e.charCodeAt(a);if(c>=65&&c<=90)r(c-65);else if(c>=97&&c<=122)r(c-97+26);else if(c>=48&&c<=57)r(c-48+52);else if(c===43||c===45)r(62);else if(c===47||c===95)r(63);else{if(c===61)break;throw new SyntaxError(`Unexpected base64 character ${e[a]}`)}}const o=i;for(;s>0;)r(0);return O.wrap(n).slice(0,o)}function Gp({buffer:e},t=!0,s=!1){const i=s?yy:by;let n="";const r=e.byteLength%3;let o=0;for(;o<e.byteLength-r;o+=3){const a=e[o+0],c=e[o+1],l=e[o+2];n+=i[a>>>2],n+=i[(a<<4|c>>>4)&63],n+=i[(c<<2|l>>>6)&63],n+=i[l&63]}if(r===1){const a=e[o+0];n+=i[a>>>2],n+=i[a<<4&63],t&&(n+="==")}else if(r===2){const a=e[o+0],c=e[o+1];n+=i[a>>>2],n+=i[(a<<4|c>>>4)&63],n+=i[c<<2&63],t&&(n+="=")}return n}var Ha,vy,Jp,Xp,O,by,yy,Ue=v({"out-build/vs/base/common/buffer.js"(){"use strict";ou(),za(),Ha=typeof Buffer<"u",vy=new mr(()=>new Uint8Array(256)),O=class Ys{static alloc(t){return Ha?new Ys(Buffer.allocUnsafe(t)):new Ys(new Uint8Array(t))}static wrap(t){return Ha&&!Buffer.isBuffer(t)&&(t=Buffer.from(t.buffer,t.byteOffset,t.byteLength)),new Ys(t)}static fromString(t,s){return!(s?.dontUseNodeBuffer||!1)&&Ha?new Ys(Buffer.from(t)):(Jp||(Jp=new TextEncoder),new Ys(Jp.encode(t)))}static fromByteArray(t){const s=Ys.alloc(t.length);for(let i=0,n=t.length;i<n;i++)s.buffer[i]=t[i];return s}static concat(t,s){if(typeof s>"u"){s=0;for(let r=0,o=t.length;r<o;r++)s+=t[r].byteLength}const i=Ys.alloc(s);let n=0;for(let r=0,o=t.length;r<o;r++){const a=t[r];i.set(a,n),n+=a.byteLength}return i}constructor(t){this.buffer=t,this.byteLength=this.buffer.byteLength}clone(){const t=Ys.alloc(this.byteLength);return t.set(this),t}toString(){return Ha?this.buffer.toString():(Xp||(Xp=new TextDecoder),Xp.decode(this.buffer))}slice(t,s){return new Ys(this.buffer.subarray(t,s))}set(t,s){if(t instanceof Ys)this.buffer.set(t.buffer,s);else if(t instanceof Uint8Array)this.buffer.set(t,s);else if(t instanceof ArrayBuffer)this.buffer.set(new Uint8Array(t),s);else if(ArrayBuffer.isView(t))this.buffer.set(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),s);else throw new Error("Unknown argument 'array'")}readUInt32BE(t){return UA(this.buffer,t)}writeUInt32BE(t,s){FA(this.buffer,t,s)}readUInt32LE(t){return BA(this.buffer,t)}writeUInt32LE(t,s){zA(this.buffer,t,s)}readUInt8(t){return HA(this.buffer,t)}writeUInt8(t,s){VA(this.buffer,t,s)}indexOf(t,s=0){return MA(this.buffer,t instanceof Ys?t.buffer:t,s)}},by="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",yy="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}});function co(e){return Yp(e,0)}function Yp(e,t){switch(typeof e){case"object":return e===null?Ki(349,t):Array.isArray(e)?QA(e,t):ZA(e,t);case"string":return Ey(e,t);case"boolean":return YA(e,t);case"number":return Ki(e,t);case"undefined":return Ki(937,t);default:return Ki(617,t)}}function Ki(e,t){return(t<<5)-t+e|0}function YA(e,t){return Ki(e?433:863,t)}function Ey(e,t){t=Ki(149417,t);for(let s=0,i=e.length;s<i;s++)t=Ki(e.charCodeAt(s),t);return t}function QA(e,t){return t=Ki(104579,t),e.reduce((s,i)=>Yp(i,s),t)}function ZA(e,t){return t=Ki(181387,t),Object.keys(e).sort().reduce((s,i)=>(s=Ey(i,s),Yp(e[i],s)),t)}function Qp(e,t,s=32){const i=s-t,n=~((1<<i)-1);return(e<<t|(n&e)>>>i)>>>0}function Va(e,t=32){return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map(s=>s.toString(16).padStart(2,"0")).join(""):(e>>>0).toString(16).padStart(t/4,"0")}var xy,KA,Wa=v({"out-build/vs/base/common/hash.js"(){"use strict";Ue(),rt(),function(e){e[e.BLOCK_SIZE=64]="BLOCK_SIZE",e[e.UNICODE_REPLACEMENT=65533]="UNICODE_REPLACEMENT"}(xy||(xy={})),KA=class YP{static{this.g=new DataView(new ArrayBuffer(320))}constructor(){this.h=1732584193,this.l=4023233417,this.m=2562383102,this.n=271733878,this.o=3285377520,this.p=new Uint8Array(67),this.q=new DataView(this.p.buffer),this.r=0,this.t=0,this.u=0,this.v=!1}update(t){const s=t.length;if(s===0)return;const i=this.p;let n=this.r,r=this.u,o,a;for(r!==0?(o=r,a=-1,r=0):(o=t.charCodeAt(0),a=0);;){let c=o;if(mA(o))if(a+1<s){const l=t.charCodeAt(a+1);Fb(l)?(a++,c=gA(o,l)):c=65533}else{r=o;break}else Fb(o)&&(c=65533);if(n=this.w(i,n,c),a++,a<s)o=t.charCodeAt(a);else break}this.r=n,this.u=r}w(t,s,i){return i<128?t[s++]=i:i<2048?(t[s++]=192|(i&1984)>>>6,t[s++]=128|(i&63)>>>0):i<65536?(t[s++]=224|(i&61440)>>>12,t[s++]=128|(i&4032)>>>6,t[s++]=128|(i&63)>>>0):(t[s++]=240|(i&1835008)>>>18,t[s++]=128|(i&258048)>>>12,t[s++]=128|(i&4032)>>>6,t[s++]=128|(i&63)>>>0),s>=64&&(this.y(),s-=64,this.t+=64,t[0]=t[64],t[1]=t[65],t[2]=t[66]),s}digest(){return this.v||(this.v=!0,this.u&&(this.u=0,this.r=this.w(this.p,this.r,65533)),this.t+=this.r,this.x()),Va(this.h)+Va(this.l)+Va(this.m)+Va(this.n)+Va(this.o)}x(){this.p[this.r++]=128,this.p.subarray(this.r).fill(0),this.r>56&&(this.y(),this.p.fill(0));const t=8*this.t;this.q.setUint32(56,Math.floor(t/4294967296),!1),this.q.setUint32(60,t%4294967296,!1),this.y()}y(){const t=YP.g,s=this.q;for(let h=0;h<64;h+=4)t.setUint32(h,s.getUint32(h,!1),!1);for(let h=64;h<320;h+=4)t.setUint32(h,Qp(t.getUint32(h-12,!1)^t.getUint32(h-32,!1)^t.getUint32(h-56,!1)^t.getUint32(h-64,!1),1),!1);let i=this.h,n=this.l,r=this.m,o=this.n,a=this.o,c,l,u;for(let h=0;h<80;h++)h<20?(c=n&r|~n&o,l=1518500249):h<40?(c=n^r^o,l=1859775393):h<60?(c=n&r|n&o|r&o,l=2400959708):(c=n^r^o,l=3395469782),u=Qp(i,5)+c+a+l+t.getUint32(h*4,!1)&4294967295,a=o,o=r,r=Qp(n,30),n=i,i=u;this.h=this.h+i&4294967295,this.l=this.l+n&4294967295,this.m=this.m+r&4294967295,this.n=this.n+o&4294967295,this.o=this.o+a&4294967295}}}});function Rn(e){return e===47||e===92}function ky(e){return e.replace(/[\\/]/g,Se.sep)}function eD(e){return e.indexOf("/")===-1&&(e=ky(e)),/^[a-zA-Z]:(\/|$)/.test(e)&&(e="/"+e),e}function $y(e,t=Se.sep){if(!e)return"";const s=e.length,i=e.charCodeAt(0);if(Rn(i)){if(Rn(e.charCodeAt(1))&&!Rn(e.charCodeAt(2))){let r=3;const o=r;for(;r<s&&!Rn(e.charCodeAt(r));r++);if(o!==r&&!Rn(e.charCodeAt(r+1))){for(r+=1;r<s;r++)if(Rn(e.charCodeAt(r)))return e.slice(0,r+1).replace(/[\\/]/g,t)}}return t}else if(Sy(i)&&e.charCodeAt(1)===58)return Rn(e.charCodeAt(2))?e.slice(0,2)+t:e.slice(0,2);let n=e.indexOf("://");if(n!==-1){for(n+=3;n<s;n++)if(Rn(e.charCodeAt(n)))return e.slice(0,n+1)}return""}function Zp(e,t,s){const i=e===t;return!s||i?i:!e||!t?!1:Pn(e,t)}function Ln(e,t,s,i=Yt){if(e===t)return!0;if(!e||!t||t.length>e.length)return!1;if(s){if(!Lp(e,t))return!1;if(t.length===e.length)return!0;let r=t.length;return t.charAt(t.length-1)===i&&r--,e.charAt(r)===i}return t.charAt(t.length-1)!==i&&(t+=i),e.indexOf(t)===0}function Sy(e){return e>=65&&e<=90||e>=97&&e<=122}function tD(e){return me?(e=Tb(e,Yt),e.endsWith(":")&&(e+=Yt)):(e=Tb(e,Yt),e||(e=Yt)),e}function sD(e){const t=ti(e);return me?e.length>3?!1:Py(t)&&(e.length===2||t.charCodeAt(2)===92):t===Se.sep}function Py(e,t=me){return t?Sy(e.charCodeAt(0))&&e.charCodeAt(1)===58:!1}function iD(e,t,s=8){let i="";for(let r=0;r<s;r++){let o;r===0&&me&&!t&&(s===3||s===4)?o=Ay:o=Iy,i+=o.charAt(Math.floor(Math.random()*o.length))}let n;return t?n=`${t}-${i}`:n=i,e?j(e,n):n}var Iy,Ay,yi=v({"out-build/vs/base/common/extpath.js"(){"use strict";he(),Q(),rt(),xe(),Iy="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",Ay="BDEFGHIJKMOQRSTUVWXYZbdefghijkmoqrstuvwxyz0123456789"}});function en(e){return lu(e,!0)}var qa,ke,wu,Dy,Kp,e1,nD,rD,On,Ny,Ry,ne,Ly,oD,aD,Oy,t1,s1,cD,lD,Cy,kt=v({"out-build/vs/base/common/resources.js"(){"use strict";yi(),Ie(),he(),Q(),rt(),te(),qa=class{constructor(e){this.a=e}compare(e,t,s=!1){return e===t?0:Dp(this.getComparisonKey(e,s),this.getComparisonKey(t,s))}isEqual(e,t,s=!1){return e===t?!0:!e||!t?!1:this.getComparisonKey(e,s)===this.getComparisonKey(t,s)}getComparisonKey(e,t=!1){return e.with({path:this.a(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}ignorePathCasing(e){return this.a(e)}isEqualOrParent(e,t,s=!1){if(e.scheme===t.scheme){if(e.scheme===Z.file)return Ln(en(e),en(t),this.a(e))&&e.query===t.query&&(s||e.fragment===t.fragment);if(t1(e.authority,t.authority))return Ln(e.path,t.path,this.a(e),"/")&&e.query===t.query&&(s||e.fragment===t.fragment)}return!1}joinPath(e,...t){return E.joinPath(e,...t)}basenameOrAuthority(e){return On(e)||e.authority}basename(e){return Se.basename(e.path)}extname(e){return Se.extname(e.path)}dirname(e){if(e.path.length===0)return e;let t;return e.scheme===Z.file?t=E.file(Lt(en(e))).path:(t=Se.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===Z.file?t=E.file(ti(en(e))).path:t=Se.normalize(e.path),e.with({path:t})}relativePath(e,t){if(e.scheme!==t.scheme||!t1(e.authority,t.authority))return;if(e.scheme===Z.file){const n=Ba(en(e),en(t));return me?ky(n):n}let s=e.path||"/";const i=t.path||"/";if(this.a(e)){let n=0;for(const r=Math.min(s.length,i.length);n<r&&!(s.charCodeAt(n)!==i.charCodeAt(n)&&s.charAt(n).toLowerCase()!==i.charAt(n).toLowerCase());n++);s=i.substr(0,n)+s.substr(n)}return Se.relative(s,i)}resolvePath(e,t){if(e.scheme===Z.file){const s=E.file(Yi(en(e),t));return e.with({authority:s.authority,path:s.path})}return t=eD(t),e.with({path:Se.resolve(e.path,t)})}isAbsolutePath(e){return!!e.path&&e.path[0]==="/"}isEqualAuthority(e,t){return e===t||e!==void 0&&t!==void 0&&Pn(e,t)}hasTrailingPathSeparator(e,t=Yt){if(e.scheme===Z.file){const s=en(e);return s.length>$y(s).length&&s[s.length-1]===t}else{const s=e.path;return s.length>1&&s.charCodeAt(s.length-1)===47&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e,t=Yt){return s1(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,t=Yt){let s=!1;if(e.scheme===Z.file){const i=en(e);s=i!==void 0&&i.length===$y(i).length&&i[i.length-1]===t}else{t="/";const i=e.path;s=i.length===1&&i.charCodeAt(i.length-1)===47}return!s&&!s1(e,t)?e.with({path:e.path+"/"}):e}},ke=new qa(()=>!1),wu=new qa(e=>e.scheme===Z.file?!it:!0),Dy=new qa(e=>!0),Kp=ke.isEqual.bind(ke),e1=ke.isEqualOrParent.bind(ke),nD=ke.getComparisonKey.bind(ke),rD=ke.basenameOrAuthority.bind(ke),On=ke.basename.bind(ke),Ny=ke.extname.bind(ke),Ry=ke.dirname.bind(ke),ne=ke.joinPath.bind(ke),Ly=ke.normalizePath.bind(ke),oD=ke.relativePath.bind(ke),aD=ke.resolvePath.bind(ke),Oy=ke.isAbsolutePath.bind(ke),t1=ke.isEqualAuthority.bind(ke),s1=ke.hasTrailingPathSeparator.bind(ke),cD=ke.removeTrailingPathSeparator.bind(ke),lD=ke.addTrailingPathSeparator.bind(ke),function(e){e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime";function t(s){const i=new Map;s.path.substring(s.path.indexOf(";")+1,s.path.lastIndexOf(";")).split(";").forEach(o=>{const[a,c]=o.split(":");a&&c&&i.set(a,c)});const r=s.path.substring(0,s.path.indexOf(";"));return r&&i.set(e.META_DATA_MIME,r),i}e.parseMetaData=t}(Cy||(Cy={}))}});function i1(...e){switch(e.length){case 1:return m(1700,null,e[0]);case 2:return m(1701,null,e[0],e[1]);case 3:return m(1702,null,e[0],e[1],e[2]);default:return}}var jy,_y,Ty,lo,uD=v({"out-build/vs/platform/contextkey/common/scanner.js"(){"use strict";de(),pe(),function(e){e[e.LParen=0]="LParen",e[e.RParen=1]="RParen",e[e.Neg=2]="Neg",e[e.Eq=3]="Eq",e[e.NotEq=4]="NotEq",e[e.Lt=5]="Lt",e[e.LtEq=6]="LtEq",e[e.Gt=7]="Gt",e[e.GtEq=8]="GtEq",e[e.RegexOp=9]="RegexOp",e[e.RegexStr=10]="RegexStr",e[e.True=11]="True",e[e.False=12]="False",e[e.In=13]="In",e[e.Not=14]="Not",e[e.And=15]="And",e[e.Or=16]="Or",e[e.Str=17]="Str",e[e.QuotedStr=18]="QuotedStr",e[e.Error=19]="Error",e[e.EOF=20]="EOF"}(jy||(jy={})),_y=m(1703,null),Ty=m(1704,null),lo=class fv{constructor(){this.c="",this.d=0,this.e=0,this.f=[],this.g=[],this.m=/[a-zA-Z0-9_<>\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(t){switch(t.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return t.isTripleEq?"===":"==";case 4:return t.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:return">=";case 8:return">=";case 9:return"=~";case 10:return t.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 17:return t.lexeme;case 18:return t.lexeme;case 19:return t.lexeme;case 20:return"EOF";default:throw jv(`unhandled token type: ${JSON.stringify(t)}; have you forgotten to add a case?`)}}static{this.a=new Set(["i","g","s","m","y","u"].map(t=>t.charCodeAt(0)))}static{this.b=new Map([["not",14],["in",13],["false",12],["true",11]])}get errors(){return this.g}reset(t){return this.c=t,this.d=0,this.e=0,this.f=[],this.g=[],this}scan(){for(;!this.r();)switch(this.d=this.e,this.i()){case 40:this.k(0);break;case 41:this.k(1);break;case 33:if(this.h(61)){const s=this.h(61);this.f.push({type:4,offset:this.d,isTripleEq:s})}else this.k(2);break;case 39:this.o();break;case 47:this.q();break;case 61:if(this.h(61)){const s=this.h(61);this.f.push({type:3,offset:this.d,isTripleEq:s})}else this.h(126)?this.k(9):this.l(i1("==","=~"));break;case 60:this.k(this.h(61)?6:5);break;case 62:this.k(this.h(61)?8:7);break;case 38:this.h(38)?this.k(15):this.l(i1("&&"));break;case 124:this.h(124)?this.k(16):this.l(i1("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this.n()}return this.d=this.e,this.k(20),Array.from(this.f)}h(t){return this.r()||this.c.charCodeAt(this.e)!==t?!1:(this.e++,!0)}i(){return this.c.charCodeAt(this.e++)}j(){return this.r()?0:this.c.charCodeAt(this.e)}k(t){this.f.push({type:t,offset:this.d})}l(t){const s=this.d,i=this.c.substring(this.d,this.e),n={type:19,offset:this.d,lexeme:i};this.g.push({offset:s,lexeme:i,additionalInfo:t}),this.f.push(n)}n(){this.m.lastIndex=this.d;const t=this.m.exec(this.c);if(t){this.e=this.d+t[0].length;const s=this.c.substring(this.d,this.e),i=fv.b.get(s);i?this.k(i):this.f.push({type:17,lexeme:s,offset:this.d})}}o(){for(;this.j()!==39&&!this.r();)this.i();if(this.r()){this.l(_y);return}this.i(),this.f.push({type:18,lexeme:this.c.substring(this.d+1,this.e-1),offset:this.d+1})}q(){let t=this.e,s=!1,i=!1;for(;;){if(t>=this.c.length){this.e=t,this.l(Ty);return}const r=this.c.charCodeAt(t);if(s)s=!1;else if(r===47&&!i){t++;break}else r===91?i=!0:r===92?s=!0:r===93&&(i=!1);t++}for(;t<this.c.length&&fv.a.has(this.c.charCodeAt(t));)t++;this.e=t;const n=this.c.substring(this.d,this.e);this.f.push({type:10,lexeme:n,offset:this.d})}r(){return this.e>=this.c.length}}}});function hD(e,t,s){t[si.DI_TARGET]===t?t[si.DI_DEPENDENCIES].push({id:e,index:s}):(t[si.DI_DEPENDENCIES]=[{id:e,index:s}],t[si.DI_TARGET]=t)}function ie(e){if(si.serviceIds.has(e))return si.serviceIds.get(e);const t=function(s,i,n){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");hD(t,s,n)};return t.toString=()=>e,si.serviceIds.set(e,t),t}function FU(e){return e}var si,yr,re=v({"out-build/vs/platform/instantiation/common/instantiation.js"(){"use strict";(function(e){e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies";function t(s){return s[e.DI_DEPENDENCIES]||[]}e.getServiceDependencies=t})(si||(si={})),yr=ie("instantiationService")}});function Ga(e,t){return e.cmp(t)}function vu(e,t){if(typeof e=="string"){const s=parseFloat(e);isNaN(s)||(e=s)}return typeof e=="string"||typeof e=="number"?t(e):Qt.INSTANCE}function My(e){let t=null;for(let s=0,i=e.length;s<i;s++){const n=e[s].substituteConstants();if(e[s]!==n&&t===null){t=[];for(let r=0;r<s;r++)t[r]=e[r]}t!==null&&(t[s]=n)}return t===null?e:t}function Uy(e,t){return e<t?-1:e>t?1:0}function Er(e,t,s,i){return e<s?-1:e>s?1:t<i?-1:t>i?1:0}function Fy(e){return e.type===9?e.expr:[e]}var Nt,By,zy,Hy,Vy,Wy,qy,n1,Gy,Jy,Xy,Yy,Qy,$t,Qt,us,xr,uo,bu,yu,ho,kr,Ja,Xa,Ya,Qa,fo,Zy,r1,Eu,Ae,Ky,po=v({"out-build/vs/platform/contextkey/common/contextkey.js"(){"use strict";Q(),rt(),uD(),re(),pe(),de(),Nt=new Map,Nt.set("false",!1),Nt.set("true",!0),Nt.set("isMac",Os),Nt.set("isLinux",it),Nt.set("isWindows",me),Nt.set("isWeb",Bs),Nt.set("isMacNative",Os&&!Bs),Nt.set("isEdge",rb),Nt.set("isFirefox",ib),Nt.set("isChrome",xp),Nt.set("isSafari",nb),By=Object.prototype.hasOwnProperty,function(e){e[e.False=0]="False",e[e.True=1]="True",e[e.Defined=2]="Defined",e[e.Not=3]="Not",e[e.Equals=4]="Equals",e[e.NotEquals=5]="NotEquals",e[e.And=6]="And",e[e.Regex=7]="Regex",e[e.NotRegex=8]="NotRegex",e[e.Or=9]="Or",e[e.In=10]="In",e[e.NotIn=11]="NotIn",e[e.Greater=12]="Greater",e[e.GreaterEquals=13]="GreaterEquals",e[e.Smaller=14]="Smaller",e[e.SmallerEquals=15]="SmallerEquals"}(zy||(zy={})),Hy={regexParsingWithErrorRecovery:!0},Vy=m(1680,null),Wy=m(1681,null),qy=m(1682,null),n1=m(1683,null),Gy=m(1684,null),Jy=m(1685,null),Xy=m(1686,null),Yy=m(1687,null),Qy=class Ul{static{this.c=new Error}get lexingErrors(){return this.d.errors}get parsingErrors(){return this.h}constructor(t=Hy){this.k=t,this.d=new lo,this.f=[],this.g=0,this.h=[],this.v=/g|y/g}parse(t){if(t===""){this.h.push({message:Vy,offset:0,lexeme:"",additionalInfo:Wy});return}this.f=this.d.reset(t).scan(),this.g=0,this.h=[];try{const s=this.l();if(!this.E()){const i=this.D(),n=i.type===17?Jy:void 0;throw this.h.push({message:Gy,offset:i.offset,lexeme:lo.getLexeme(i),additionalInfo:n}),Ul.c}return s}catch(s){if(s!==Ul.c)throw s;return}}l(){return this.m()}m(){const t=[this.o()];for(;this.y(16);){const s=this.o();t.push(s)}return t.length===1?t[0]:$t.or(...t)}o(){const t=[this.s()];for(;this.y(15);){const s=this.s();t.push(s)}return t.length===1?t[0]:$t.and(...t)}s(){if(this.y(2)){const t=this.D();switch(t.type){case 11:return this.z(),Qt.INSTANCE;case 12:return this.z(),us.INSTANCE;case 0:{this.z();const s=this.l();return this.A(1,n1),s?.negate()}case 17:return this.z(),kr.create(t.lexeme);default:throw this.B("KEY | true | false | '(' expression ')'",t)}}return this.t()}t(){const t=this.D();switch(t.type){case 11:return this.z(),$t.true();case 12:return this.z(),$t.false();case 0:{this.z();const s=this.l();return this.A(1,n1),s}case 17:{const s=t.lexeme;if(this.z(),this.y(9)){const n=this.D();if(!this.k.regexParsingWithErrorRecovery){if(this.z(),n.type!==10)throw this.B("REGEX",n);const r=n.lexeme,o=r.lastIndexOf("/"),a=o===r.length-1?void 0:this.w(r.substring(o+1));let c;try{c=new RegExp(r.substring(1,o),a)}catch{throw this.B("REGEX",n)}return fo.create(s,c)}switch(n.type){case 10:case 19:{const r=[n.lexeme];this.z();let o=this.D(),a=0;for(let d=0;d<n.lexeme.length;d++)n.lexeme.charCodeAt(d)===40?a++:n.lexeme.charCodeAt(d)===41&&a--;for(;!this.E()&&o.type!==15&&o.type!==16;){switch(o.type){case 0:a++;break;case 1:a--;break;case 10:case 18:for(let d=0;d<o.lexeme.length;d++)o.lexeme.charCodeAt(d)===40?a++:n.lexeme.charCodeAt(d)===41&&a--}if(a<0)break;r.push(lo.getLexeme(o)),this.z(),o=this.D()}const c=r.join(""),l=c.lastIndexOf("/"),u=l===c.length-1?void 0:this.w(c.substring(l+1));let h;try{h=new RegExp(c.substring(1,l),u)}catch{throw this.B("REGEX",n)}return $t.regex(s,h)}case 18:{const r=n.lexeme;this.z();let o=null;if(!hA(r)){const a=r.indexOf("/"),c=r.lastIndexOf("/");if(a!==c&&a>=0){const l=r.slice(a+1,c),u=r[c+1]==="i"?"i":"";try{o=new RegExp(l,u)}catch{throw this.B("REGEX",n)}}}if(o===null)throw this.B("REGEX",n);return fo.create(s,o)}default:throw this.B("REGEX",this.D())}}if(this.y(14)){this.A(13,qy);const n=this.u();return $t.notIn(s,n)}switch(this.D().type){case 3:{this.z();const n=this.u();if(this.x().type===18)return $t.equals(s,n);switch(n){case"true":return $t.has(s);case"false":return $t.not(s);default:return $t.equals(s,n)}}case 4:{this.z();const n=this.u();if(this.x().type===18)return $t.notEquals(s,n);switch(n){case"true":return $t.not(s);case"false":return $t.has(s);default:return $t.notEquals(s,n)}}case 5:return this.z(),Ya.create(s,this.u());case 6:return this.z(),Qa.create(s,this.u());case 7:return this.z(),Ja.create(s,this.u());case 8:return this.z(),Xa.create(s,this.u());case 13:return this.z(),$t.in(s,this.u());default:return $t.has(s)}}case 20:throw this.h.push({message:Xy,offset:t.offset,lexeme:"",additionalInfo:Yy}),Ul.c;default:throw this.B(`true | false | KEY | KEY '=~' REGEX | KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value`,this.D())}}u(){const t=this.D();switch(t.type){case 17:case 18:return this.z(),t.lexeme;case 11:return this.z(),"true";case 12:return this.z(),"false";case 13:return this.z(),"in";default:return""}}w(t){return t.replaceAll(this.v,"")}x(){return this.f[this.g-1]}y(t){return this.C(t)?(this.z(),!0):!1}z(){return this.E()||this.g++,this.x()}A(t,s){if(this.C(t))return this.z();throw this.B(s,this.D())}B(t,s,i){const n=m(1688,null,t,lo.getLexeme(s)),r=s.offset,o=lo.getLexeme(s);return this.h.push({message:n,offset:r,lexeme:o,additionalInfo:i}),Ul.c}C(t){return this.D().type===t}D(){return this.f[this.g]}E(){return this.D().type===20}},$t=class{static false(){return Qt.INSTANCE}static true(){return us.INSTANCE}static has(e){return xr.create(e)}static equals(e,t){return uo.create(e,t)}static notEquals(e,t){return ho.create(e,t)}static regex(e,t){return fo.create(e,t)}static in(e,t){return bu.create(e,t)}static notIn(e,t){return yu.create(e,t)}static not(e){return kr.create(e)}static and(...e){return r1.create(e,null,!0)}static or(...e){return Eu.create(e,null,!0)}static greater(e,t){return Ja.create(e,t)}static greaterEquals(e,t){return Xa.create(e,t)}static smaller(e,t){return Ya.create(e,t)}static smallerEquals(e,t){return Qa.create(e,t)}static{this.c=new Qy({regexParsingWithErrorRecovery:!1})}static deserialize(e){return e==null?void 0:this.c.parse(e)}},Qt=class QP{static{this.INSTANCE=new QP}constructor(){this.type=0}cmp(t){return this.type-t.type}equals(t){return t.type===this.type}substituteConstants(){return this}evaluate(t){return!1}serialize(){return"false"}keys(){return[]}map(t){return this}negate(){return us.INSTANCE}},us=class ZP{static{this.INSTANCE=new ZP}constructor(){this.type=1}cmp(t){return this.type-t.type}equals(t){return t.type===this.type}substituteConstants(){return this}evaluate(t){return!0}serialize(){return"true"}keys(){return[]}map(t){return this}negate(){return Qt.INSTANCE}},xr=class KP{static create(t,s=null){const i=Nt.get(t);return typeof i=="boolean"?i?us.INSTANCE:Qt.INSTANCE:new KP(t,s)}constructor(t,s){this.key=t,this.c=s,this.type=2}cmp(t){return t.type!==this.type?this.type-t.type:Uy(this.key,t.key)}equals(t){return t.type===this.type?this.key===t.key:!1}substituteConstants(){const t=Nt.get(this.key);return typeof t=="boolean"?t?us.INSTANCE:Qt.INSTANCE:this}evaluate(t){return!!t.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}map(t){return t.mapDefined(this.key)}negate(){return this.c||(this.c=kr.create(this.key,this)),this.c}},uo=class eI{static create(t,s,i=null){if(typeof s=="boolean")return s?xr.create(t,i):kr.create(t,i);const n=Nt.get(t);return typeof n=="boolean"?s===(n?"true":"false")?us.INSTANCE:Qt.INSTANCE:new eI(t,s,i)}constructor(t,s,i){this.c=t,this.d=s,this.f=i,this.type=4}cmp(t){return t.type!==this.type?this.type-t.type:Er(this.c,this.d,t.c,t.d)}equals(t){return t.type===this.type?this.c===t.c&&this.d===t.d:!1}substituteConstants(){const t=Nt.get(this.c);if(typeof t=="boolean"){const s=t?"true":"false";return this.d===s?us.INSTANCE:Qt.INSTANCE}return this}evaluate(t){return t.getValue(this.c)==this.d}serialize(){return`${this.c} == '${this.d}'`}keys(){return[this.c]}map(t){return t.mapEquals(this.c,this.d)}negate(){return this.f||(this.f=ho.create(this.c,this.d,this)),this.f}},bu=class tI{static create(t,s){return new tI(t,s)}constructor(t,s){this.d=t,this.f=s,this.type=10,this.c=null}cmp(t){return t.type!==this.type?this.type-t.type:Er(this.d,this.f,t.d,t.f)}equals(t){return t.type===this.type?this.d===t.d&&this.f===t.f:!1}substituteConstants(){return this}evaluate(t){const s=t.getValue(this.f),i=t.getValue(this.d);return Array.isArray(s)?s.includes(i):typeof i=="string"&&typeof s=="object"&&s!==null?By.call(s,i):!1}serialize(){return`${this.d} in '${this.f}'`}keys(){return[this.d,this.f]}map(t){return t.mapIn(this.d,this.f)}negate(){return this.c||(this.c=yu.create(this.d,this.f)),this.c}},yu=class sI{static create(t,s){return new sI(t,s)}constructor(t,s){this.d=t,this.f=s,this.type=11,this.c=bu.create(t,s)}cmp(t){return t.type!==this.type?this.type-t.type:this.c.cmp(t.c)}equals(t){return t.type===this.type?this.c.equals(t.c):!1}substituteConstants(){return this}evaluate(t){return!this.c.evaluate(t)}serialize(){return`${this.d} not in '${this.f}'`}keys(){return this.c.keys()}map(t){return t.mapNotIn(this.d,this.f)}negate(){return this.c}},ho=class iI{static create(t,s,i=null){if(typeof s=="boolean")return s?kr.create(t,i):xr.create(t,i);const n=Nt.get(t);return typeof n=="boolean"?s===(n?"true":"false")?Qt.INSTANCE:us.INSTANCE:new iI(t,s,i)}constructor(t,s,i){this.c=t,this.d=s,this.f=i,this.type=5}cmp(t){return t.type!==this.type?this.type-t.type:Er(this.c,this.d,t.c,t.d)}equals(t){return t.type===this.type?this.c===t.c&&this.d===t.d:!1}substituteConstants(){const t=Nt.get(this.c);if(typeof t=="boolean"){const s=t?"true":"false";return this.d===s?Qt.INSTANCE:us.INSTANCE}return this}evaluate(t){return t.getValue(this.c)!=this.d}serialize(){return`${this.c} != '${this.d}'`}keys(){return[this.c]}map(t){return t.mapNotEquals(this.c,this.d)}negate(){return this.f||(this.f=uo.create(this.c,this.d,this)),this.f}},kr=class nI{static create(t,s=null){const i=Nt.get(t);return typeof i=="boolean"?i?Qt.INSTANCE:us.INSTANCE:new nI(t,s)}constructor(t,s){this.c=t,this.d=s,this.type=3}cmp(t){return t.type!==this.type?this.type-t.type:Uy(this.c,t.c)}equals(t){return t.type===this.type?this.c===t.c:!1}substituteConstants(){const t=Nt.get(this.c);return typeof t=="boolean"?t?Qt.INSTANCE:us.INSTANCE:this}evaluate(t){return!t.getValue(this.c)}serialize(){return`!${this.c}`}keys(){return[this.c]}map(t){return t.mapNot(this.c)}negate(){return this.d||(this.d=xr.create(this.c,this)),this.d}},Ja=class rI{static create(t,s,i=null){return vu(s,n=>new rI(t,n,i))}constructor(t,s,i){this.c=t,this.d=s,this.f=i,this.type=12}cmp(t){return t.type!==this.type?this.type-t.type:Er(this.c,this.d,t.c,t.d)}equals(t){return t.type===this.type?this.c===t.c&&this.d===t.d:!1}substituteConstants(){return this}evaluate(t){return typeof this.d=="string"?!1:parseFloat(t.getValue(this.c))>this.d}serialize(){return`${this.c} > ${this.d}`}keys(){return[this.c]}map(t){return t.mapGreater(this.c,this.d)}negate(){return this.f||(this.f=Qa.create(this.c,this.d,this)),this.f}},Xa=class oI{static create(t,s,i=null){return vu(s,n=>new oI(t,n,i))}constructor(t,s,i){this.c=t,this.d=s,this.f=i,this.type=13}cmp(t){return t.type!==this.type?this.type-t.type:Er(this.c,this.d,t.c,t.d)}equals(t){return t.type===this.type?this.c===t.c&&this.d===t.d:!1}substituteConstants(){return this}evaluate(t){return typeof this.d=="string"?!1:parseFloat(t.getValue(this.c))>=this.d}serialize(){return`${this.c} >= ${this.d}`}keys(){return[this.c]}map(t){return t.mapGreaterEquals(this.c,this.d)}negate(){return this.f||(this.f=Ya.create(this.c,this.d,this)),this.f}},Ya=class aI{static create(t,s,i=null){return vu(s,n=>new aI(t,n,i))}constructor(t,s,i){this.c=t,this.d=s,this.f=i,this.type=14}cmp(t){return t.type!==this.type?this.type-t.type:Er(this.c,this.d,t.c,t.d)}equals(t){return t.type===this.type?this.c===t.c&&this.d===t.d:!1}substituteConstants(){return this}evaluate(t){return typeof this.d=="string"?!1:parseFloat(t.getValue(this.c))<this.d}serialize(){return`${this.c} < ${this.d}`}keys(){return[this.c]}map(t){return t.mapSmaller(this.c,this.d)}negate(){return this.f||(this.f=Xa.create(this.c,this.d,this)),this.f}},Qa=class cI{static create(t,s,i=null){return vu(s,n=>new cI(t,n,i))}constructor(t,s,i){this.c=t,this.d=s,this.f=i,this.type=15}cmp(t){return t.type!==this.type?this.type-t.type:Er(this.c,this.d,t.c,t.d)}equals(t){return t.type===this.type?this.c===t.c&&this.d===t.d:!1}substituteConstants(){return this}evaluate(t){return typeof this.d=="string"?!1:parseFloat(t.getValue(this.c))<=this.d}serialize(){return`${this.c} <= ${this.d}`}keys(){return[this.c]}map(t){return t.mapSmallerEquals(this.c,this.d)}negate(){return this.f||(this.f=Ja.create(this.c,this.d,this)),this.f}},fo=class lI{static create(t,s){return new lI(t,s)}constructor(t,s){this.d=t,this.f=s,this.type=7,this.c=null}cmp(t){if(t.type!==this.type)return this.type-t.type;if(this.d<t.d)return-1;if(this.d>t.d)return 1;const s=this.f?this.f.source:"",i=t.f?t.f.source:"";return s<i?-1:s>i?1:0}equals(t){if(t.type===this.type){const s=this.f?this.f.source:"",i=t.f?t.f.source:"";return this.d===t.d&&s===i}return!1}substituteConstants(){return this}evaluate(t){const s=t.getValue(this.d);return this.f?this.f.test(s):!1}serialize(){const t=this.f?`/${this.f.source}/${this.f.flags}`:"/invalid/";return`${this.d} =~ ${t}`}keys(){return[this.d]}map(t){return t.mapRegex(this.d,this.f)}negate(){return this.c||(this.c=Zy.create(this)),this.c}},Zy=class dv{static create(t){return new dv(t)}constructor(t){this.c=t,this.type=8}cmp(t){return t.type!==this.type?this.type-t.type:this.c.cmp(t.c)}equals(t){return t.type===this.type?this.c.equals(t.c):!1}substituteConstants(){return this}evaluate(t){return!this.c.evaluate(t)}serialize(){return`!(${this.c.serialize()})`}keys(){return this.c.keys()}map(t){return new dv(this.c.map(t))}negate(){return this.c}},r1=class Sa{static create(t,s,i){return Sa.d(t,s,i)}constructor(t,s){this.expr=t,this.c=s,this.type=6}cmp(t){if(t.type!==this.type)return this.type-t.type;if(this.expr.length<t.expr.length)return-1;if(this.expr.length>t.expr.length)return 1;for(let s=0,i=this.expr.length;s<i;s++){const n=Ga(this.expr[s],t.expr[s]);if(n!==0)return n}return 0}equals(t){if(t.type===this.type){if(this.expr.length!==t.expr.length)return!1;for(let s=0,i=this.expr.length;s<i;s++)if(!this.expr[s].equals(t.expr[s]))return!1;return!0}return!1}substituteConstants(){const t=My(this.expr);return t===this.expr?this:Sa.create(t,this.c,!1)}evaluate(t){for(let s=0,i=this.expr.length;s<i;s++)if(!this.expr[s].evaluate(t))return!1;return!0}static d(t,s,i){const n=[];let r=!1;for(const o of t)if(o){if(o.type===1){r=!0;continue}if(o.type===0)return Qt.INSTANCE;if(o.type===6){n.push(...o.expr);continue}n.push(o)}if(n.length===0&&r)return us.INSTANCE;if(n.length!==0){if(n.length===1)return n[0];n.sort(Ga);for(let o=1;o<n.length;o++)n[o-1].equals(n[o])&&(n.splice(o,1),o--);if(n.length===1)return n[0];for(;n.length>1;){const o=n[n.length-1];if(o.type!==9)break;n.pop();const a=n.pop(),c=n.length===0,l=Eu.create(o.expr.map(u=>Sa.create([u,a],null,i)),null,c);l&&(n.push(l),n.sort(Ga))}if(n.length===1)return n[0];if(i){for(let o=0;o<n.length;o++)for(let a=o+1;a<n.length;a++)if(n[o].negate().equals(n[a]))return Qt.INSTANCE;if(n.length===1)return n[0]}return new Sa(n,s)}}serialize(){return this.expr.map(t=>t.serialize()).join(" && ")}keys(){const t=[];for(const s of this.expr)t.push(...s.keys());return t}map(t){return new Sa(this.expr.map(s=>s.map(t)),null)}negate(){if(!this.c){const t=[];for(const s of this.expr)t.push(s.negate());this.c=Eu.create(t,this,!0)}return this.c}},Eu=class Gr{static create(t,s,i){return Gr.d(t,s,i)}constructor(t,s){this.expr=t,this.c=s,this.type=9}cmp(t){if(t.type!==this.type)return this.type-t.type;if(this.expr.length<t.expr.length)return-1;if(this.expr.length>t.expr.length)return 1;for(let s=0,i=this.expr.length;s<i;s++){const n=Ga(this.expr[s],t.expr[s]);if(n!==0)return n}return 0}equals(t){if(t.type===this.type){if(this.expr.length!==t.expr.length)return!1;for(let s=0,i=this.expr.length;s<i;s++)if(!this.expr[s].equals(t.expr[s]))return!1;return!0}return!1}substituteConstants(){const t=My(this.expr);return t===this.expr?this:Gr.create(t,this.c,!1)}evaluate(t){for(let s=0,i=this.expr.length;s<i;s++)if(this.expr[s].evaluate(t))return!0;return!1}static d(t,s,i){let n=[],r=!1;if(t){for(let o=0,a=t.length;o<a;o++){const c=t[o];if(c){if(c.type===0){r=!0;continue}if(c.type===1)return us.INSTANCE;if(c.type===9){n=n.concat(c.expr);continue}n.push(c)}}if(n.length===0&&r)return Qt.INSTANCE;n.sort(Ga)}if(n.length!==0){if(n.length===1)return n[0];for(let o=1;o<n.length;o++)n[o-1].equals(n[o])&&(n.splice(o,1),o--);if(n.length===1)return n[0];if(i){for(let o=0;o<n.length;o++)for(let a=o+1;a<n.length;a++)if(n[o].negate().equals(n[a]))return us.INSTANCE;if(n.length===1)return n[0]}return new Gr(n,s)}}serialize(){return this.expr.map(t=>t.serialize()).join(" || ")}keys(){const t=[];for(const s of this.expr)t.push(...s.keys());return t}map(t){return new Gr(this.expr.map(s=>s.map(t)),null)}negate(){if(!this.c){const t=[];for(const s of this.expr)t.push(s.negate());for(;t.length>1;){const s=t.shift(),i=t.shift(),n=[];for(const r of Fy(s))for(const o of Fy(i))n.push(r1.create([r,o],null,!1));t.unshift(Gr.create(n,null,!1))}this.c=Gr.create(t,this,!0)}return this.c}},Ae=class Zd extends xr{static{this.d=[]}static all(){return Zd.d.values()}constructor(t,s,i){super(t,null),this.f=s,typeof i=="object"?Zd.d.push({...i,key:t}):i!==!0&&Zd.d.push({key:t,description:i,type:s!=null?typeof s:void 0})}bindTo(t){return t.createKey(this.key,this.f)}getValue(t){return t.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(t){return uo.create(this.key,t)}notEqualsTo(t){return ho.create(this.key,t)}},Ky=ie("contextKeyService")}});function o1(e){return An(e)}function fD(e,t,s){switch(t){case F.Trace:e.trace(s);break;case F.Debug:e.debug(s);break;case F.Info:e.info(s);break;case F.Warning:e.warn(s);break;case F.Error:e.error(s);break;case F.Off:break;default:throw new Error(`Invalid log level ${t}`)}}function mo(e,t=!1){let s="";for(let i=0;i<e.length;i++){let n=e[i];if(n instanceof Error&&(n=Nn(n,t)),typeof n=="object")try{n=JSON.stringify(n)}catch{}s+=(i>0?" ":"")+n}return s}function a1(e){if(e.verbose)return F.Trace;if(typeof e.logLevel=="string"){const t=dD(e.logLevel.toLowerCase());if(t!==void 0)return t}return Ka}function e4(e){switch(e){case F.Trace:return"trace";case F.Debug:return"debug";case F.Info:return"info";case F.Warning:return"warn";case F.Error:return"error";case F.Off:return"off"}}function dD(e){switch(e){case"trace":return F.Trace;case"debug":return F.Debug;case"info":return F.Info;case"warn":return F.Warning;case"error":return F.Error;case"critical":return F.Error;case"off":return F.Off}}var fe,Za,F,Ka,ec,t4,s4,i4,n4,r4,o4,pD,De=v({"out-build/vs/platform/log/common/log.js"(){"use strict";pe(),br(),ae(),Wa(),H(),as(),Q(),kt(),xe(),te(),po(),re(),fe=ie("logService"),Za=ie("loggerService"),function(e){e[e.Off=0]="Off",e[e.Trace=1]="Trace",e[e.Debug=2]="Debug",e[e.Info=3]="Info",e[e.Warning=4]="Warning",e[e.Error=5]="Error"}(F||(F={})),Ka=F.Info,ec=class extends J{constructor(){super(...arguments),this.b=Ka,this.c=this.B(new D),this.onDidChangeLogLevel=this.c.event}setLevel(e){this.b!==e&&(this.b=e,this.c.fire(this.b))}getLevel(){return this.b}f(e){return this.b!==F.Off&&this.b<=e}},t4=class extends ec{constructor(e){super(),this.h=e}f(e){return this.h||super.f(e)}trace(e,...t){this.f(F.Trace)&&this.g(F.Trace,mo([e,...t],!0))}debug(e,...t){this.f(F.Debug)&&this.g(F.Debug,mo([e,...t]))}info(e,...t){this.f(F.Info)&&this.g(F.Info,mo([e,...t]))}warn(e,...t){this.f(F.Warning)&&this.g(F.Warning,mo([e,...t]))}error(e,...t){if(this.f(F.Error))if(e instanceof Error){const s=Array.prototype.slice.call(arguments);s[0]=e.stack,this.g(F.Error,mo(s))}else this.g(F.Error,mo([e,...t]))}flush(){}},s4=class extends ec{constructor(e=Ka,t=!0){super(),this.g=t,this.setLevel(e)}trace(e,...t){this.f(F.Trace)&&(this.g?console.log("%cTRACE","color: #888",e,...t):console.log(e,...t))}debug(e,...t){this.f(F.Debug)&&(this.g?console.log("%cDEBUG","background: #eee; color: #888",e,...t):console.log(e,...t))}info(e,...t){this.f(F.Info)&&(this.g?console.log("%c INFO","color: #33f",e,...t):console.log(e,...t))}warn(e,...t){this.f(F.Warning)&&(this.g?console.log("%c WARN","color: #993",e,...t):console.log(e,...t))}error(e,...t){this.f(F.Error)&&(this.g?console.log("%c ERR","color: #f33",e,...t):console.error(e,...t))}flush(){}},i4=class extends ec{constructor(e){super(),this.g=e,e.length&&this.setLevel(e[0].getLevel())}setLevel(e){for(const t of this.g)t.setLevel(e);super.setLevel(e)}trace(e,...t){for(const s of this.g)s.trace(e,...t)}debug(e,...t){for(const s of this.g)s.debug(e,...t)}info(e,...t){for(const s of this.g)s.info(e,...t)}warn(e,...t){for(const s of this.g)s.warn(e,...t)}error(e,...t){for(const s of this.g)s.error(e,...t)}flush(){for(const e of this.g)e.flush()}dispose(){for(const e of this.g)e.dispose();super.dispose()}},n4=class extends J{constructor(e,t,s){if(super(),this.h=e,this.j=t,this.b=new At,this.c=this.B(new D),this.onDidChangeLoggers=this.c.event,this.f=this.B(new D),this.onDidChangeLogLevel=this.f.event,this.g=this.B(new D),this.onDidChangeVisibility=this.g.event,s)for(const i of s)this.b.set(i.resource,{logger:void 0,info:i})}m(e){return be(e)?[...this.b.values()].find(t=>t.info.id===e):this.b.get(e)}getLogger(e){return this.m(e)?.logger}createLogger(e,t){const s=this.n(e),i=be(e)?e:t?.id??co(s.toString()).toString(16);let n=this.b.get(s)?.logger;const r=t?.logLevel==="always"?F.Trace:t?.logLevel;n||(n=this.s(s,r??this.getLogLevel(s)??this.h,{...t,id:i}));const o={logger:n,info:{resource:s,id:i,logLevel:r,name:t?.name,hidden:t?.hidden,extensionId:t?.extensionId,when:t?.when}};return this.registerLogger(o.info),this.b.set(s,o),n}n(e){return be(e)?ne(this.j,`${e}.log`):e}setLogLevel(e,t){if(E.isUri(e)){const s=e,i=t,n=this.b.get(s);n&&i!==n.info.logLevel&&(n.info.logLevel=i===this.h?void 0:i,n.logger?.setLevel(i),this.b.set(n.info.resource,n),this.f.fire([s,i]))}else{this.h=e;for(const[s,i]of this.b.entries())this.b.get(s)?.info.logLevel===void 0&&i.logger?.setLevel(this.h);this.f.fire(this.h)}}setVisibility(e,t){const s=this.m(e);s&&t!==!s.info.hidden&&(s.info.hidden=!t,this.b.set(s.info.resource,s),this.g.fire([s.info.resource,t]))}getLogLevel(e){let t;return e&&(t=this.b.get(e)?.info.logLevel),t??this.h}registerLogger(e){const t=this.b.get(e.resource);t?t.info.hidden!==e.hidden&&this.setVisibility(e.resource,!e.hidden):(this.b.set(e.resource,{info:e,logger:void 0}),this.c.fire({added:[e],removed:[]}))}deregisterLogger(e){const t=this.b.get(e);t&&(t.logger&&t.logger.dispose(),this.b.delete(e),this.c.fire({added:[],removed:[t.info]}))}*getRegisteredLoggers(){for(const e of this.b.values())yield e.info}getRegisteredLogger(e){return this.b.get(e)?.info}dispose(){this.b.forEach(e=>e.logger?.dispose()),this.b.clear(),super.dispose()}},r4=class{constructor(){this.onDidChangeLogLevel=new D().event}setLevel(e){}getLevel(){return F.Info}trace(e,...t){}debug(e,...t){}info(e,...t){}warn(e,...t){}error(e,...t){}critical(e,...t){}dispose(){}flush(){}},o4=class extends r4{},pD=new Ae("logLevel",e4(F.Info))}}),at,xu=v({"out-build/vs/platform/instantiation/common/descriptors.js"(){"use strict";at=class{constructor(e,t=[],s=!1){this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=s}}}}),a4,mD=v({"out-build/vs/base/common/symbols.js"(){"use strict";a4=Symbol("MicrotaskDelay")}});function c1(e){return!!e&&typeof e.then=="function"}function tn(e){const t=new vi,s=e(t.token),i=new Promise((n,r)=>{const o=t.token.onCancellationRequested(()=>{o.dispose(),r(new It)});Promise.resolve(s).then(a=>{o.dispose(),t.dispose(),n(a)},a=>{o.dispose(),t.dispose(),r(a)})});return new class{cancel(){t.cancel(),t.dispose()}then(n,r){return i.then(n,r)}catch(n){return this.then(void 0,n)}finally(n){return i.finally(n)}}}function gD(){let e,t;return{promise:new Promise((i,n)=>{e=i,t=n}),resolve:e,reject:t}}function $r(e,t){return t?new Promise((s,i)=>{const n=setTimeout(()=>{r.dispose(),s()},e),r=t.onCancellationRequested(()=>{clearTimeout(n),r.dispose(),i(new It)})}):tn(s=>$r(e,s))}async function wD(e,t,s){let i;for(let n=0;n<s;n++)try{return await e()}catch(r){i=r,await $r(t)}throw i}var c4,l4,u4,h4,l1,Sr,u1,h1,go,f1,tc,d1,f4,d4,p4,ku,m4,g4,w4,$u,Zt,v4,vD,Me=v({"out-build/vs/base/common/async.js"(){"use strict";Dt(),de(),ae(),H(),kt(),Q(),mD(),ou(),c4=class{constructor(){this.f=!1,this.a=null,this.b=null,this.d=null}queue(e){if(this.f)return Promise.reject(new Error("Throttler is disposed"));if(this.a){if(this.d=e,!this.b){const t=()=>{if(this.b=null,this.f)return;const s=this.queue(this.d);return this.d=null,s};this.b=new Promise(s=>{this.a.then(t,t).then(s)})}return new Promise((t,s)=>{this.b.then(t,s)})}return this.a=e(),new Promise((t,s)=>{this.a.then(i=>{this.a=null,t(i)},i=>{this.a=null,s(i)})})}dispose(){this.f=!0}},l4=class{constructor(){this.a=Promise.resolve(null)}queue(e){return this.a=this.a.then(()=>e(),()=>e())}},u4=(e,t)=>{let s=!0;const i=setTimeout(()=>{s=!1,t()},e);return{isTriggered:()=>s,dispose:()=>{clearTimeout(i),s=!1}}},h4=e=>{let t=!0;return queueMicrotask(()=>{t&&(t=!1,e())}),{isTriggered:()=>t,dispose:()=>{t=!1}}},l1=class{constructor(e){this.defaultDelay=e,this.a=null,this.b=null,this.d=null,this.f=null,this.g=null}trigger(e,t=this.defaultDelay){this.g=e,this.h(),this.b||(this.b=new Promise((i,n)=>{this.d=i,this.f=n}).then(()=>{if(this.b=null,this.d=null,this.g){const i=this.g;return this.g=null,i()}}));const s=()=>{this.a=null,this.d?.(null)};return this.a=t===a4?h4(s):u4(t,s),this.b}isTriggered(){return!!this.a?.isTriggered()}cancel(){this.h(),this.b&&(this.f?.(new It),this.b=null)}h(){this.a?.dispose(),this.a=null}dispose(){this.cancel()}},Sr=class{constructor(e){this.a=new l1(e),this.b=new c4}trigger(e,t){return this.a.trigger(()=>this.b.queue(e),t)}isTriggered(){return this.a.isTriggered()}cancel(){this.a.cancel()}dispose(){this.a.dispose(),this.b.dispose()}},u1=class{constructor(){this.a=!1,this.b=new Promise((e,t)=>{this.d=e})}isOpen(){return this.a}open(){this.a=!0,this.d(!0)}wait(){return this.b}},h1=class{constructor(e){this.a=0,this.b=!1,this.f=e,this.g=[],this.d=0,this.h=new D}whenIdle(){return this.size>0?z.toPromise(this.onDrained):Promise.resolve()}get onDrained(){return this.h.event}get size(){return this.a}queue(e){if(this.b)throw new Error("Object has been disposed");return this.a++,new Promise((t,s)=>{this.g.push({factory:e,c:t,e:s}),this.j()})}j(){for(;this.g.length&&this.d<this.f;){const e=this.g.shift();this.d++;const t=e.factory();t.then(e.c,e.e),t.then(()=>this.k(),()=>this.k())}}k(){this.b||(this.d--,--this.a===0&&this.h.fire(),this.g.length>0&&this.j())}clear(){if(this.b)throw new Error("Object has been disposed");this.g.length=0,this.a=this.d}dispose(){this.b=!0,this.g.length=0,this.a=0,this.h.dispose()}},go=class extends h1{constructor(){super(1)}},f1=class{constructor(){this.a=new Map,this.b=new Set,this.d=void 0,this.f=0}async whenDrained(){if(this.g())return;const e=new $u;return this.b.add(e),e.p}g(){for(const[,e]of this.a)if(e.size>0)return!1;return!0}queueSize(e,t=ke){const s=t.getComparisonKey(e);return this.a.get(s)?.size??0}queueFor(e,t,s=ke){const i=s.getComparisonKey(e);let n=this.a.get(i);if(!n){n=new go;const r=this.f++,o=z.once(n.onDrained)(()=>{n?.dispose(),this.a.delete(i),this.h(),this.d?.deleteAndDispose(r),this.d?.size===0&&(this.d.dispose(),this.d=void 0)});this.d||(this.d=new su),this.d.set(r,o),this.a.set(i,n)}return n.queue(t)}h(){this.g()&&this.j()}j(){for(const e of this.b)e.complete();this.b.clear()}dispose(){for(const[,e]of this.a)e.dispose();this.a.clear(),this.j(),this.d?.dispose()}},tc=class{constructor(e,t){this.b=-1,this.a=e,this.d=t,this.f=this.g.bind(this)}dispose(){this.cancel(),this.a=null}cancel(){this.isScheduled()&&(clearTimeout(this.b),this.b=-1)}schedule(e=this.d){this.cancel(),this.b=setTimeout(this.f,e)}get delay(){return this.d}set delay(e){this.d=e}isScheduled(){return this.b!==-1}flush(){this.isScheduled()&&(this.cancel(),this.h())}g(){this.b=-1,this.a&&this.h()}h(){this.a?.()}},d1=class{constructor(e,t){t%1e3!==0&&console.warn(`ProcessTimeRunOnceScheduler resolution is 1s, ${t}ms is not a multiple of 1000ms.`),this.a=e,this.b=t,this.d=0,this.f=-1,this.g=this.h.bind(this)}dispose(){this.cancel(),this.a=null}cancel(){this.isScheduled()&&(clearInterval(this.f),this.f=-1)}schedule(e=this.b){e%1e3!==0&&console.warn(`ProcessTimeRunOnceScheduler resolution is 1s, ${e}ms is not a multiple of 1000ms.`),this.cancel(),this.d=Math.ceil(e/1e3),this.f=setInterval(this.g,1e3)}isScheduled(){return this.f!==-1}h(){this.d--,!(this.d>0)&&(clearInterval(this.f),this.f=-1,this.a?.())}},f4=class extends tc{constructor(e,t){super(e,t),this.j=[]}work(e){this.j.push(e),this.isScheduled()||this.schedule()}h(){const e=this.j;this.j=[],this.a?.(e)}dispose(){this.j=[],super.dispose()}},d4=class extends J{constructor(e,t){super(),this.h=e,this.j=t,this.a=[],this.b=this.B(new tu),this.f=!1,this.g=0}get pending(){return this.a.length}work(e){if(this.f)return!1;if(typeof this.h.maxBufferedWork=="number"){if(this.b.value){if(this.pending+e.length>this.h.maxBufferedWork)return!1}else if(this.pending+e.length-this.h.maxWorkChunkSize>this.h.maxBufferedWork)return!1}for(const s of e)this.a.push(s);const t=Date.now()-this.g;return!this.b.value&&(!this.h.waitThrottleDelayBetweenWorkUnits||t>=this.h.throttleDelay)?this.m():!this.b.value&&this.h.waitThrottleDelayBetweenWorkUnits&&this.r(Math.max(this.h.throttleDelay-t,0)),!0}m(){this.g=Date.now(),this.j(this.a.splice(0,this.h.maxWorkChunkSize)),this.a.length>0&&this.r()}r(e=this.h.throttleDelay){this.b.value=new tc(()=>{this.b.clear(),this.m()},e),this.b.value.schedule()}dispose(){super.dispose(),this.f=!0}},function(){typeof globalThis.requestIdleCallback!="function"||typeof globalThis.cancelIdleCallback!="function"?ku=(e,t,s)=>{tb(()=>{if(i)return;const n=Date.now()+15;t(Object.freeze({didTimeout:!0,timeRemaining(){return Math.max(0,n-Date.now())}}))});let i=!1;return{dispose(){i||(i=!0)}}}:ku=(e,t,s)=>{const i=e.requestIdleCallback(t,typeof s=="number"?{timeout:s}:void 0);let n=!1;return{dispose(){n||(n=!0,e.cancelIdleCallback(i))}}},p4=(e,t)=>ku(globalThis,e,t)}(),m4=class{constructor(e,t){this.g=!1,this.d=()=>{try{this.j=t()}catch(s){this.l=s}finally{this.g=!0}},this.f=ku(e,()=>this.d())}dispose(){this.f.dispose()}get value(){if(this.g||(this.f.dispose(),this.d()),this.l)throw this.l;return this.j}get isInitialized(){return this.g}},g4=class extends m4{constructor(e){super(globalThis,e)}},function(e){e[e.Resolved=0]="Resolved",e[e.Rejected=1]="Rejected"}(w4||(w4={})),$u=class{get isRejected(){return this.d?.outcome===1}get isResolved(){return this.d?.outcome===0}get isSettled(){return!!this.d}get value(){return this.d?.outcome===0?this.d?.value:void 0}constructor(){this.p=new Promise((e,t)=>{this.a=e,this.b=t})}complete(e){return new Promise(t=>{this.a(e),this.d={outcome:0,value:e},t()})}error(e){return new Promise(t=>{this.b(e),this.d={outcome:1,value:e},t()})}cancel(){return this.error(new It)}},function(e){async function t(i){let n;const r=await Promise.all(i.map(o=>o.then(a=>a,a=>{n||(n=a)})));if(typeof n<"u")throw n;return r}e.settled=t;function s(i){return new Promise(async(n,r)=>{try{await i(n,r)}catch(o){r(o)}})}e.withAsyncBody=s}(Zt||(Zt={})),function(e){e[e.Initial=0]="Initial",e[e.DoneOK=1]="DoneOK",e[e.DoneError=2]="DoneError"}(v4||(v4={})),vD=class Us{static fromArray(t){return new Us(s=>{s.emitMany(t)})}static fromPromise(t){return new Us(async s=>{s.emitMany(await t)})}static fromPromisesResolveOrder(t){return new Us(async s=>{await Promise.all(t.map(async i=>s.emitOne(await i)))})}static merge(t){return new Us(async s=>{await Promise.all(t.map(async i=>{for await(const n of i)s.emitOne(n)}))})}static{this.EMPTY=Us.fromArray([])}constructor(t,s){this.a=0,this.b=[],this.d=null,this.f=s,this.g=new D,queueMicrotask(async()=>{const i={emitOne:n=>this.h(n),emitMany:n=>this.j(n),reject:n=>this.l(n)};try{await Promise.resolve(t(i)),this.k()}catch(n){this.l(n)}finally{i.emitOne=void 0,i.emitMany=void 0,i.reject=void 0}})}[Symbol.asyncIterator](){let t=0;return{next:async()=>{do{if(this.a===2)throw this.d;if(t<this.b.length)return{done:!1,value:this.b[t++]};if(this.a===1)return{done:!0,value:void 0};await z.toPromise(this.g.event)}while(!0)},return:async()=>(this.f?.(),{done:!0,value:void 0})}}static map(t,s){return new Us(async i=>{for await(const n of t)i.emitOne(s(n))})}map(t){return Us.map(this,t)}static filter(t,s){return new Us(async i=>{for await(const n of t)s(n)&&i.emitOne(n)})}filter(t){return Us.filter(this,t)}static coalesce(t){return Us.filter(t,s=>!!s)}coalesce(){return Us.coalesce(this)}static async toPromise(t){const s=[];for await(const i of t)s.push(i);return s}toPromise(){return Us.toPromise(this)}h(t){this.a===0&&(this.b.push(t),this.g.fire())}j(t){this.a===0&&(this.b=this.b.concat(t),this.g.fire())}k(){this.a===0&&(this.a=1,this.g.fire())}l(t){this.a===0&&(this.a=2,this.d=t,this.g.fire())}}}});function b4(e,t=!1){let s=0;const i=e.length;let n="",r=0,o=16,a=0;function c(w){let y=0,x=0;for(;y<w;){const k=e.charCodeAt(s);if(k>=48&&k<=57)x=x*16+k-48;else if(k>=65&&k<=70)x=x*16+k-65+10;else if(k>=97&&k<=102)x=x*16+k-97+10;else break;s++,y++}return y<w&&(x=-1),x}function l(w){s=w,n="",r=0,o=16,a=0}function u(){const w=s;if(e.charCodeAt(s)===48)s++;else for(s++;s<e.length&&wo(e.charCodeAt(s));)s++;if(s<e.length&&e.charCodeAt(s)===46)if(s++,s<e.length&&wo(e.charCodeAt(s)))for(s++;s<e.length&&wo(e.charCodeAt(s));)s++;else return a=3,e.substring(w,s);let y=s;if(s<e.length&&(e.charCodeAt(s)===69||e.charCodeAt(s)===101))if(s++,(s<e.length&&e.charCodeAt(s)===43||e.charCodeAt(s)===45)&&s++,s<e.length&&wo(e.charCodeAt(s))){for(s++;s<e.length&&wo(e.charCodeAt(s));)s++;y=s}else a=3;return e.substring(w,y)}function h(){let w="",y=s;for(;;){if(s>=i){w+=e.substring(y,s),a=2;break}const x=e.charCodeAt(s);if(x===34){w+=e.substring(y,s),s++;break}if(x===92){if(w+=e.substring(y,s),s++,s>=i){a=2;break}switch(e.charCodeAt(s++)){case 34:w+='"';break;case 92:w+="\\";break;case 47:w+="/";break;case 98:w+="\b";break;case 102:w+="\f";break;case 110:w+=` `;break;case 114:w+="\r";break;case 116:w+=" ";break;case 117:{const A=c(4);A>=0?w+=String.fromCharCode(A):a=4;break}default:a=5}y=s;continue}if(x>=0&&x<=31)if(Su(x)){w+=e.substring(y,s),a=2;break}else a=6;s++}return w}function d(){if(n="",a=0,r=s,s>=i)return r=i,o=17;let w=e.charCodeAt(s);if(p1(w)){do s++,n+=String.fromCharCode(w),w=e.charCodeAt(s);while(p1(w));return o=15}if(Su(w))return s++,n+=String.fromCharCode(w),w===13&&e.charCodeAt(s)===10&&(s++,n+=` `),o=14;switch(w){case 123:return s++,o=1;case 125:return s++,o=2;case 91:return s++,o=3;case 93:return s++,o=4;case 58:return s++,o=6;case 44:return s++,o=5;case 34:return s++,n=h(),o=10;case 47:{const y=s-1;if(e.charCodeAt(s+1)===47){for(s+=2;s<i&&!Su(e.charCodeAt(s));)s++;return n=e.substring(y,s),o=12}if(e.charCodeAt(s+1)===42){s+=2;const x=i-1;let k=!1;for(;s<x;){if(e.charCodeAt(s)===42&&e.charCodeAt(s+1)===47){s+=2,k=!0;break}s++}return k||(s++,a=1),n=e.substring(y,s),o=13}return n+=String.fromCharCode(w),s++,o=16}case 45:if(n+=String.fromCharCode(w),s++,s===i||!wo(e.charCodeAt(s)))return o=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return n+=u(),o=11;default:for(;s<i&&p(w);)s++,w=e.charCodeAt(s);if(r!==s){switch(n=e.substring(r,s),n){case"true":return o=8;case"false":return o=9;case"null":return o=7}return o=16}return n+=String.fromCharCode(w),s++,o=16}}function p(w){if(p1(w)||Su(w))return!1;switch(w){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function g(){let w;do w=d();while(w>=12&&w<=15);return w}return{setPosition:l,getPosition:()=>s,scan:t?g:d,getToken:()=>o,getTokenValue:()=>n,getTokenOffset:()=>r,getTokenLength:()=>s-r,getTokenError:()=>a}}function p1(e){return e===32||e===9||e===11||e===12||e===160||e===5760||e>=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function Su(e){return e===10||e===13||e===8232||e===8233}function wo(e){return e>=48&&e<=57}function vo(e,t=[],s=sc.DEFAULT){let i=null,n=[];const r=[];function o(c){Array.isArray(n)?n.push(c):i!==null&&(n[i]=c)}return m1(e,{onObjectBegin:()=>{const c={};o(c),r.push(n),n=c,i=null},onObjectProperty:c=>{i=c},onObjectEnd:()=>{n=r.pop()},onArrayBegin:()=>{const c=[];o(c),r.push(n),n=c,i=null},onArrayEnd:()=>{n=r.pop()},onLiteralValue:o,onError:(c,l,u)=>{t.push({error:c,offset:l,length:u})}},s),n[0]}function bD(e,t=[],s=sc.DEFAULT){let i={type:"array",offset:-1,length:-1,children:[],parent:void 0};function n(c){i.type==="property"&&(i.length=c-i.offset,i=i.parent)}function r(c){return i.children.push(c),c}m1(e,{onObjectBegin:c=>{i=r({type:"object",offset:c,length:-1,parent:i,children:[]})},onObjectProperty:(c,l,u)=>{i=r({type:"property",offset:l,length:-1,parent:i,children:[]}),i.children.push({type:"string",value:c,offset:l,length:u,parent:i})},onObjectEnd:(c,l)=>{i.length=c+l-i.offset,i=i.parent,n(c+l)},onArrayBegin:(c,l)=>{i=r({type:"array",offset:c,length:-1,parent:i,children:[]})},onArrayEnd:(c,l)=>{i.length=c+l-i.offset,i=i.parent,n(c+l)},onLiteralValue:(c,l,u)=>{r({type:bo(c),offset:l,length:u,parent:i,value:c}),n(l+u)},onSeparator:(c,l,u)=>{i.type==="property"&&(c===":"?i.colonOffset=l:c===","&&n(l))},onError:(c,l,u)=>{t.push({error:c,offset:l,length:u})}},s);const a=i.children[0];return a&&delete a.parent,a}function y4(e,t){if(!e)return;let s=e;for(const i of t)if(typeof i=="string"){if(s.type!=="object"||!Array.isArray(s.children))return;let n=!1;for(const r of s.children)if(Array.isArray(r.children)&&r.children[0].value===i){s=r.children[1],n=!0;break}if(!n)return}else{const n=i;if(s.type!=="array"||n<0||!Array.isArray(s.children)||n>=s.children.length)return;s=s.children[n]}return s}function m1(e,t,s=sc.DEFAULT){const i=b4(e,!1);function n(L){return L?()=>L(i.getTokenOffset(),i.getTokenLength()):()=>!0}function r(L){return L?le=>L(le,i.getTokenOffset(),i.getTokenLength()):()=>!0}const o=n(t.onObjectBegin),a=r(t.onObjectProperty),c=n(t.onObjectEnd),l=n(t.onArrayBegin),u=n(t.onArrayEnd),h=r(t.onLiteralValue),d=r(t.onSeparator),p=n(t.onComment),g=r(t.onError),w=s&&s.disallowComments,y=s&&s.allowTrailingComma;function x(){for(;;){const L=i.scan();switch(i.getTokenError()){case 4:k(14);break;case 5:k(15);break;case 3:k(13);break;case 1:w||k(11);break;case 2:k(12);break;case 6:k(16);break}switch(L){case 12:case 13:w?k(10):p();break;case 16:k(1);break;case 15:case 14:break;default:return L}}}function k(L,le=[],ue=[]){if(g(L),le.length+ue.length>0){let K=i.getToken();for(;K!==17;){if(le.indexOf(K)!==-1){x();break}else if(ue.indexOf(K)!==-1)break;K=x()}}}function A(L){const le=i.getTokenValue();return L?h(le):a(le),x(),!0}function I(){switch(i.getToken()){case 11:{let L=0;try{L=JSON.parse(i.getTokenValue()),typeof L!="number"&&(k(2),L=0)}catch{k(2)}h(L);break}case 7:h(null);break;case 8:h(!0);break;case 9:h(!1);break;default:return!1}return x(),!0}function R(){return i.getToken()!==10?(k(3,[],[2,5]),!1):(A(!1),i.getToken()===6?(d(":"),x(),V()||k(4,[],[2,5])):k(5,[],[2,5]),!0)}function q(){o(),x();let L=!1;for(;i.getToken()!==2&&i.getToken()!==17;){if(i.getToken()===5){if(L||k(4,[],[]),d(","),x(),i.getToken()===2&&y)break}else L&&k(6,[],[]);R()||k(4,[],[2,5]),L=!0}return c(),i.getToken()!==2?k(7,[2],[]):x(),!0}function ee(){l(),x();let L=!1;for(;i.getToken()!==4&&i.getToken()!==17;){if(i.getToken()===5){if(L||k(4,[],[]),d(","),x(),i.getToken()===4&&y)break}else L&&k(6,[],[]);V()||k(4,[],[4,5]),L=!0}return u(),i.getToken()!==4?k(8,[4],[]):x(),!0}function V(){switch(i.getToken()){case 3:return ee();case 1:return q();case 10:return A(!0);default:return I()}}return x(),i.getToken()===17?s.allowEmptyContent?!0:(k(4,[],[]),!1):V()?(i.getToken()!==17&&k(9,[],[]),!0):(k(4,[],[]),!1)}function bo(e){switch(typeof e){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(e){if(Array.isArray(e))return"array"}else return"null";return"object"}default:return"null"}}var E4,x4,k4,sc,$4,yo=v({"out-build/vs/base/common/json.js"(){"use strict";(function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"})(E4||(E4={})),function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"}(x4||(x4={})),function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"}(k4||(k4={})),function(e){e.DEFAULT={allowTrailingComma:!0}}(sc||(sc={})),function(e){e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab"}($4||($4={}))}});function yD(e,t,s){let i,n,r,o,a;if(t){for(o=t.offset,a=o+t.length,r=o;r>0&&!Pu(e,r-1);)r--;let A=a;for(;A<e.length&&!Pu(e,A);)A++;n=e.substring(r,A),i=ED(n,s)}else n=e,i=0,r=0,o=0,a=e.length;const c=xD(s,e);let l=!1,u=0,h;s.insertSpaces?h=g1(" ",s.tabSize||4):h=" ";const d=b4(n,!1);let p=!1;function g(){return c+g1(h,i+u)}function w(){let A=d.scan();for(l=!1;A===15||A===14;)l=l||A===14,A=d.scan();return p=A===16||d.getTokenError()!==0,A}const y=[];function x(A,I,R){!p&&I<a&&R>o&&e.substring(I,R)!==A&&y.push({offset:I,length:R-I,content:A})}let k=w();if(k!==17){const A=d.getTokenOffset()+r,I=g1(h,i);x(I,r,A)}for(;k!==17;){let A=d.getTokenOffset()+d.getTokenLength()+r,I=w(),R="";for(;!l&&(I===12||I===13);){const ee=d.getTokenOffset()+r;x(" ",A,ee),A=d.getTokenOffset()+d.getTokenLength()+r,R=I===12?g():"",I=w()}if(I===2)k!==1&&(u--,R=g());else if(I===4)k!==3&&(u--,R=g());else{switch(k){case 3:case 1:u++,R=g();break;case 5:case 12:R=g();break;case 13:l?R=g():R=" ";break;case 6:R=" ";break;case 10:if(I===6){R="";break}case 7:case 8:case 9:case 11:case 2:case 4:I===12||I===13?R=" ":I!==5&&I!==17&&(p=!0);break;case 16:p=!0;break}l&&(I===12||I===13)&&(R=g())}const q=d.getTokenOffset()+r;x(R,A,q),k=I}return y}function g1(e,t){let s="";for(let i=0;i<t;i++)s+=e;return s}function ED(e,t){let s=0,i=0;const n=t.tabSize||4;for(;s<e.length;){const r=e.charAt(s);if(r===" ")i++;else if(r===" ")i+=n;else break;s++}return Math.floor(i/n)}function xD(e,t){for(let s=0;s<t.length;s++){const i=t.charAt(s);if(i==="\r")return s+1<t.length&&t.charAt(s+1)===` `?`\r `:"\r";if(i===` `)return` `}return e&&e.eol||` `}function Pu(e,t){return`\r `.indexOf(e.charAt(t))!==-1}var kD=v({"out-build/vs/base/common/jsonFormatter.js"(){"use strict";yo()}});function $D(e,t,s,i,n){const r=t.slice(),a=bD(e,[]);let c,l;for(;r.length>0&&(l=r.pop(),c=y4(a,r),c===void 0&&s!==void 0);)typeof l=="string"?s={[l]:s}:s=[s];if(c)if(c.type==="object"&&typeof l=="string"&&Array.isArray(c.children)){const u=y4(c,[l]);if(u!==void 0)if(s===void 0){if(!u.parent)throw new Error("Malformed AST");const h=c.children.indexOf(u.parent);let d,p=u.parent.offset+u.parent.length;if(h>0){const g=c.children[h-1];d=g.offset+g.length}else d=c.offset+1,c.children.length>1&&(p=c.children[1].offset);return Eo(e,{offset:d,length:p-d,content:""},i)}else return Eo(e,{offset:u.offset,length:u.length,content:JSON.stringify(s)},i);else{if(s===void 0)return[];const h=`${JSON.stringify(l)}: ${JSON.stringify(s)}`,d=n?n(c.children.map(g=>g.children[0].value)):c.children.length;let p;if(d>0){const g=c.children[d-1];p={offset:g.offset+g.length,length:0,content:","+h}}else c.children.length===0?p={offset:c.offset+1,length:0,content:h}:p={offset:c.offset+1,length:0,content:h+","};return Eo(e,p,i)}}else if(c.type==="array"&&typeof l=="number"&&Array.isArray(c.children))if(s!==void 0){const u=`${JSON.stringify(s)}`;let h;if(c.children.length===0||l===0)h={offset:c.offset+1,length:0,content:c.children.length===0?u:u+","};else{const d=l===-1||l>c.children.length?c.children.length:l,p=c.children[d-1];h={offset:p.offset+p.length,length:0,content:","+u}}return Eo(e,h,i)}else{const u=l,h=c.children[u];let d;if(c.children.length===1)d={offset:c.offset+1,length:c.length-2,content:""};else if(c.children.length-1===u){const p=c.children[u-1],g=p.offset+p.length,w=c.offset+c.length;d={offset:g,length:w-2-g,content:""}}else d={offset:h.offset,length:c.children[u+1].offset-h.offset,content:""};return Eo(e,d,i)}else throw new Error(`Can not add ${typeof l!="number"?"index":"property"} to parent of type ${c.type}`);else return s===void 0?[]:Eo(e,{offset:a?a.offset:0,length:a?a.length:0,content:JSON.stringify(s)},i)}function Eo(e,t,s){let i=w1(e,t),n=t.offset,r=t.offset+t.content.length;if(t.length===0||t.content.length===0){for(;n>0&&!Pu(i,n-1);)n--;for(;r<i.length&&!Pu(i,r);)r++}const o=yD(i,{offset:n,length:r-n},s);for(let c=o.length-1;c>=0;c--){const l=o[c];i=w1(i,l),n=Math.min(n,l.offset),r=Math.max(r,l.offset+l.length),r+=l.content.length-l.length}const a=e.length-(i.length-r)-n;return[{offset:n,length:a,content:i.substring(n,r)}]}function w1(e,t){return e.substring(0,t.offset)+t.content+e.substring(t.offset+t.length)}function SD(e,t){const s=t.slice(0).sort((n,r)=>{const o=n.offset-r.offset;return o===0?n.length-r.length:o});let i=e.length;for(let n=s.length-1;n>=0;n--){const r=s[n];if(r.offset+r.length<=i)e=w1(e,r);else throw new Error("Overlapping edit");i=r.offset}return e}var PD=v({"out-build/vs/base/common/jsonEdit.js"(){"use strict";yo(),kD()}});function sn(e){if(!e||typeof e!="object"||e instanceof RegExp)return e;const t=Array.isArray(e)?[]:{};return Object.entries(e).forEach(([s,i])=>{t[s]=i&&typeof i=="object"?sn(i):i}),t}function ID(e){if(!e||typeof e!="object")return e;const t=[e];for(;t.length>0;){const s=t.shift();Object.freeze(s);for(const i in s)if(y1.call(s,i)){const n=s[i];typeof n=="object"&&!Object.isFrozen(n)&&!RA(n)&&t.push(n)}}return e}function nn(e,t){return v1(e,t,new Set)}function v1(e,t,s){if(xt(e))return e;const i=t(e);if(typeof i<"u")return i;if(Array.isArray(e)){const n=[];for(const r of e)n.push(v1(r,t,s));return n}if(ut(e)){if(s.has(e))throw new Error("Cannot clone recursive data-structure");s.add(e);const n={};for(const r in e)y1.call(e,r)&&(n[r]=v1(e[r],t,s));return s.delete(e),n}return e}function xo(e,t,s=!0){return ut(e)?(ut(t)&&Object.keys(t).forEach(i=>{i in e?s&&(ut(e[i])&&ut(t[i])?xo(e[i],t[i],s):e[i]=t[i]):e[i]=t[i]}),e):t}function Ei(e,t){if(e===t)return!0;if(e==null||t===null||t===void 0||typeof e!=typeof t||typeof e!="object"||Array.isArray(e)!==Array.isArray(t))return!1;let s,i;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(s=0;s<e.length;s++)if(!Ei(e[s],t[s]))return!1}else{const n=[];for(i in e)n.push(i);n.sort();const r=[];for(i in t)r.push(i);if(r.sort(),!Ei(n,r))return!1;for(s=0;s<n.length;s++)if(!Ei(e[n[s]],t[n[s]]))return!1}return!0}function b1(e){const t=new Set;return JSON.stringify(e,(s,i)=>{if(ut(i)||Array.isArray(i)){if(t.has(i))return"[Circular]";t.add(i)}return typeof i=="bigint"?`[BigInt ${i.toString()}]`:i})}function AD(e,t){const s=t.toLowerCase(),i=Object.keys(e).find(n=>n.toLowerCase()===s);return i?e[i]:e[t]}var y1,Kt=v({"out-build/vs/base/common/objects.js"(){"use strict";xe(),y1=Object.prototype.hasOwnProperty}});function E1(e){return e&&typeof e=="object"&&(!e.overrideIdentifier||typeof e.overrideIdentifier=="string")&&(!e.resource||e.resource instanceof E)}function DD(e){return e&&typeof e=="object"&&(!e.overrideIdentifiers||Array.isArray(e.overrideIdentifiers))&&!e.overrideIdentifier&&(!e.resource||e.resource instanceof E)}function x1(e,t){const s=Object.create(null);for(const i in e)S4(s,i,e[i],t);return s}function S4(e,t,s,i){const n=t.split("."),r=n.pop();let o=e;for(let a=0;a<n.length;a++){const c=n[a];let l=o[c];switch(typeof l){case"undefined":l=o[c]=Object.create(null);break;case"object":if(l===null){i(`Ignoring ${t} as ${n.slice(0,a+1).join(".")} is null`);return}break;default:i(`Ignoring ${t} as ${n.slice(0,a+1).join(".")} is ${JSON.stringify(l)}`);return}o=l}if(typeof o=="object"&&o!==null)try{o[r]=s}catch{i(`Ignoring ${t} as ${n.join(".")} is ${JSON.stringify(o)}`)}else i(`Ignoring ${t} as ${n.join(".")} is ${JSON.stringify(o)}`)}function ND(e,t){const s=t.split(".");P4(e,s)}function P4(e,t){const s=t.shift();if(t.length===0){delete e[s];return}if(Object.keys(e).indexOf(s)!==-1){const i=e[s];typeof i=="object"&&!Array.isArray(i)&&(P4(i,t),Object.keys(i).length===0&&delete e[s])}}function Iu(e,t,s){function i(o,a){let c=o;for(const l of a){if(typeof c!="object"||c===null)return;c=c[l]}return c}const n=t.split("."),r=i(e,n);return typeof r>"u"?s:r}function RD(e){return e.replace(/[\[\]]/g,"")}var hs,I4,$s=v({"out-build/vs/platform/configuration/common/configuration.js"(){"use strict";xe(),te(),re(),hs=ie("configurationService"),function(e){e[e.APPLICATION=1]="APPLICATION",e[e.USER=2]="USER",e[e.USER_LOCAL=3]="USER_LOCAL",e[e.USER_REMOTE=4]="USER_REMOTE",e[e.WORKSPACE=5]="WORKSPACE",e[e.WORKSPACE_FOLDER=6]="WORKSPACE_FOLDER",e[e.DEFAULT=7]="DEFAULT",e[e.MEMORY=8]="MEMORY"}(I4||(I4={}))}});function LD(e){let t=!1;const s=new Map,i=new Map;if(OD(e,u=>{if(e===u)return!0;const h=JSON.stringify(u);if(h.length<30)return!0;const d=s.get(h);if(!d){const p={schemas:[u]};return s.set(h,p),i.set(u,p),!0}return d.schemas.push(u),i.set(u,d),t=!0,!1}),s.clear(),!t)return JSON.stringify(e);let r="$defs";for(;e.hasOwnProperty(r);)r+="_";const o=[];function a(u){return JSON.stringify(u,(h,d)=>{if(d!==u){const p=i.get(d);if(p&&p.schemas.length>1)return p.id||(p.id=`_${o.length}`,o.push(p.schemas[0])),{$ref:`#/${r}/${p.id}`}}return d})}const c=a(e),l=[];for(let u=0;u<o.length;u++)l.push(`"_${u}":${a(o[u])}`);return l.length?`${c.substring(0,c.length-1)},"${r}":{${l.join(",")}}}`:c}function ko(e){return typeof e=="object"&&e!==null}function OD(e,t){if(!e||typeof e!="object")return;const s=(...c)=>{for(const l of c)ko(l)&&o.push(l)},i=(...c)=>{for(const l of c)if(ko(l))for(const u in l){const h=l[u];ko(h)&&o.push(h)}},n=(...c)=>{for(const l of c)if(Array.isArray(l))for(const u of l)ko(u)&&o.push(u)},r=c=>{if(Array.isArray(c))for(const l of c)ko(l)&&o.push(l);else ko(c)&&o.push(c)},o=[e];let a=o.pop();for(;a;)t(a)&&(s(a.additionalItems,a.additionalProperties,a.not,a.contains,a.propertyNames,a.if,a.then,a.else,a.unevaluatedItems,a.unevaluatedProperties),i(a.definitions,a.$defs,a.properties,a.patternProperties,a.dependencies,a.dependentSchemas),n(a.anyOf,a.allOf,a.oneOf,a.prefixItems),r(a.items)),a=o.pop()}var CD=v({"out-build/vs/base/common/jsonSchema.js"(){"use strict"}});function k1(e,t){if(!e)throw new Error(t?`Assertion failed (${t})`:"Assertion Failed")}function A4(e){if(!e()){debugger;e(),Vt(new Zr("Assertion Failed"))}}var $1=v({"out-build/vs/base/common/assert.js"(){"use strict";de()}}),D4,_t,rn=v({"out-build/vs/platform/registry/common/platform.js"(){"use strict";$1(),xe(),D4=class{constructor(){this.a=new Map}add(e,t){k1(be(e)),k1(ut(t)),k1(!this.a.has(e),"There is already an extension with this id"),this.a.set(e,t)}knows(e){return this.a.has(e)}as(e){return this.a.get(e)||null}},_t=new D4}});function jD(e){return e.length>0&&e.charAt(e.length-1)==="#"?e.substring(0,e.length-1):e}var S1,N4,R4,_D=v({"out-build/vs/platform/jsonschemas/common/jsonContributionRegistry.js"(){"use strict";ae(),CD(),rn(),S1={JSONContribution:"base.contributions.json"},N4=class{constructor(){this.b=new D,this.onDidChangeSchema=this.b.event,this.a={}}registerSchema(e,t){this.a[jD(e)]=t,this.b.fire(e)}notifySchemaChanged(e){this.b.fire(e)}getSchemaContributions(){return{schemas:this.a}}getSchemaContent(e){const t=this.a[e];return t?LD(t):void 0}hasSchemaContent(e){return!!this.a[e]}},R4=new N4,_t.add(S1.JSONContribution,R4)}});function ic(e){const t=[];if(xi.test(e)){let s=I1.exec(e);for(;s?.length;){const i=s[1].trim();i&&t.push(i),s=I1.exec(e)}}return Wi(t)}function TD(e){return e.reduce((t,s)=>`${t}[${s}]`,"")}function MD(e){switch(Array.isArray(e)?e[0]:e){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}function UD(e,t){return e.trim()?xi.test(e)?m(1676,null,e):uc.getConfigurationProperties()[e]!==void 0?m(1677,null,e):t.policy?.name&&uc.getPolicyConfigurations().get(t.policy?.name)!==void 0?m(1678,null,e,t.policy?.name,uc.getPolicyConfigurations().get(t.policy?.name)):null:m(1675,null)}var L4,Ss,O4,nc,rc,oc,ac,cc,$o,Cn,lc,C4,P1,I1,jn,xi,uc,So=v({"out-build/vs/platform/configuration/common/configurationRegistry.js"(){"use strict";Et(),ae(),xe(),pe(),$s(),_D(),rn(),function(e){e.Multiline="multilineText",e.Singleline="singlelineText"}(L4||(L4={})),Ss={Configuration:"base.contributions.configuration"},function(e){e[e.APPLICATION=1]="APPLICATION",e[e.MACHINE=2]="MACHINE",e[e.WINDOW=3]="WINDOW",e[e.RESOURCE=4]="RESOURCE",e[e.LANGUAGE_OVERRIDABLE=5]="LANGUAGE_OVERRIDABLE",e[e.MACHINE_OVERRIDABLE=6]="MACHINE_OVERRIDABLE"}(O4||(O4={})),nc={properties:{},patternProperties:{}},rc={properties:{},patternProperties:{}},oc={properties:{},patternProperties:{}},ac={properties:{},patternProperties:{}},cc={properties:{},patternProperties:{}},$o={properties:{},patternProperties:{}},Cn="vscode://schemas/settings/resourceLanguage",lc=_t.as(S1.JSONContribution),C4=class{constructor(){this.a=[],this.i=new Set,this.j=new D,this.onDidSchemaChange=this.j.event,this.k=new D,this.onDidUpdateConfiguration=this.k.event,this.b=new Map,this.c={id:"defaultOverrides",title:m(1669,null),properties:{}},this.d=[this.c],this.h={properties:{},patternProperties:{},additionalProperties:!0,allowTrailingCommas:!0,allowComments:!0},this.e={},this.f=new Map,this.g={},lc.registerSchema(Cn,this.h),this.z()}registerConfiguration(e,t=!0){this.registerConfigurations([e],t)}registerConfigurations(e,t=!0){const s=new Set;this.r(e,t,s),lc.registerSchema(Cn,this.h),this.j.fire(),this.k.fire({properties:s})}deregisterConfigurations(e){const t=new Set;this.s(e,t),lc.registerSchema(Cn,this.h),this.j.fire(),this.k.fire({properties:t})}updateConfigurations({add:e,remove:t}){const s=new Set;this.s(t,s),this.r(e,!1,s),lc.registerSchema(Cn,this.h),this.j.fire(),this.k.fire({properties:s})}registerDefaultConfigurations(e){const t=new Set;this.l(e,t),this.j.fire(),this.k.fire({properties:t,defaultsOverrides:!0})}l(e,t){this.a.push(...e);const s=[];for(const{overrides:i,source:n}of e)for(const r in i){t.add(r);const o=this.b.get(r)??this.b.set(r,{configurationDefaultOverrides:[]}).get(r),a=i[r];if(o.configurationDefaultOverrides.push({value:a,source:n}),xi.test(r)){const c=this.o(r,a,n,o.configurationDefaultOverrideValue);if(!c)continue;o.configurationDefaultOverrideValue=c,this.n(r,c,n),s.push(...ic(r))}else{const c=this.p(r,a,n,o.configurationDefaultOverrideValue);if(!c)continue;o.configurationDefaultOverrideValue=c;const l=this.e[r];l&&(this.A(r,l),this.w(r,l))}}this.q(s)}deregisterDefaultConfigurations(e){const t=new Set;this.m(e,t),this.j.fire(),this.k.fire({properties:t,defaultsOverrides:!0})}m(e,t){for(const s of e){const i=this.a.indexOf(s);i!==-1&&this.a.splice(i,1)}for(const{overrides:s,source:i}of e)for(const n in s){const r=this.b.get(n);if(!r)continue;const o=r.configurationDefaultOverrides.findIndex(a=>i?a.source?.id===i.id:a.value===s[n]);if(o!==-1){if(r.configurationDefaultOverrides.splice(o,1),r.configurationDefaultOverrides.length===0&&this.b.delete(n),xi.test(n)){let a;for(const c of r.configurationDefaultOverrides)a=this.o(n,c.value,c.source,a);a&&!du(a.value)?(r.configurationDefaultOverrideValue=a,this.n(n,a,i)):(this.b.delete(n),delete this.e[n],delete this.c.properties[n])}else{let a;for(const l of r.configurationDefaultOverrides)a=this.p(n,l.value,l.source,a);r.configurationDefaultOverrideValue=a;const c=this.e[n];c&&(this.A(n,c),this.w(n,c))}t.add(n)}}this.y()}n(e,t,s){const i={type:"object",default:t.value,description:m(1670,null,RD(e)),$ref:Cn,defaultDefaultValue:t.value,source:s,defaultValueSource:s};this.e[e]=i,this.c.properties[e]=i}o(e,t,s,i){const n=i?.value||{},r=i?.source??new Map;if(!(r instanceof Map)){console.error("objectConfigurationSources is not a Map");return}for(const o of Object.keys(t)){const a=t[o];if(ut(a)&&(Qi(n[o])||ut(n[o]))){if(n[o]={...n[o]??{},...a},s)for(const l in a)r.set(`${o}.${l}`,s)}else n[o]=a,s?r.set(o,s):r.delete(o)}return{value:n,source:r}}p(e,t,s,i){const n=this.e[e],r=i?.value??n?.defaultDefaultValue;let o=s;if(ut(t)&&(n!==void 0&&n.type==="object"||n===void 0&&(Qi(r)||ut(r)))){if(o=i?.source??new Map,!(o instanceof Map)){console.error("defaultValueSource is not a Map");return}for(const c in t)s&&o.set(`${e}.${c}`,s);t={...ut(r)?r:{},...t}}return{value:t,source:o}}deltaConfiguration(e){let t=!1;const s=new Set;e.removedDefaults&&(this.m(e.removedDefaults,s),t=!0),e.addedDefaults&&(this.l(e.addedDefaults,s),t=!0),e.removedConfigurations&&this.s(e.removedConfigurations,s),e.addedConfigurations&&this.r(e.addedConfigurations,!1,s),this.j.fire(),this.k.fire({properties:s,defaultsOverrides:t})}notifyConfigurationSchemaUpdated(...e){this.j.fire()}registerOverrideIdentifiers(e){this.q(e),this.j.fire()}q(e){for(const t of e)this.i.add(t);this.y()}r(e,t,s){e.forEach(i=>{this.u(i,t,i.extensionInfo,i.restrictedProperties,void 0,s),this.d.push(i),this.v(i)})}s(e,t){const s=i=>{if(i.properties)for(const n in i.properties){t.add(n);const r=this.e[n];r?.policy?.name&&this.f.delete(r.policy.name),delete this.e[n],this.x(n,i.properties[n])}i.allOf?.forEach(n=>s(n))};for(const i of e){s(i);const n=this.d.indexOf(i);n!==-1&&this.d.splice(n,1)}}u(e,t=!0,s,i,n=3,r){n=xt(e.scope)?n:e.scope;const o=e.properties;if(o)for(const c in o){const l=o[c];if(t&&UD(c,l)){delete o[c];continue}if(l.source=s,l.defaultDefaultValue=o[c].default,this.A(c,l),xi.test(c)?l.scope=void 0:(l.scope=xt(l.scope)?n:l.scope,l.restricted=xt(l.restricted)?!!i?.includes(c):l.restricted),o[c].hasOwnProperty("included")&&!o[c].included){this.g[c]=o[c],delete o[c];continue}else this.e[c]=o[c],o[c].policy?.name&&this.f.set(o[c].policy.name,c);!o[c].deprecationMessage&&o[c].markdownDeprecationMessage&&(o[c].deprecationMessage=o[c].markdownDeprecationMessage),r.add(c)}const a=e.allOf;if(a)for(const c of a)this.u(c,t,s,i,n,r)}getConfigurations(){return this.d}getConfigurationProperties(){return this.e}getPolicyConfigurations(){return this.f}getExcludedConfigurationProperties(){return this.g}getRegisteredDefaultConfigurations(){return[...this.a]}getConfigurationDefaultsOverrides(){const e=new Map;for(const[t,s]of this.b)s.configurationDefaultOverrideValue&&e.set(t,s.configurationDefaultOverrideValue);return e}v(e){const t=s=>{const i=s.properties;if(i)for(const r in i)this.w(r,i[r]);s.allOf?.forEach(t)};t(e)}w(e,t){switch(nc.properties[e]=t,t.scope){case 1:rc.properties[e]=t;break;case 2:oc.properties[e]=t;break;case 6:ac.properties[e]=t;break;case 3:cc.properties[e]=t;break;case 4:$o.properties[e]=t;break;case 5:$o.properties[e]=t,this.h.properties[e]=t;break}}x(e,t){switch(delete nc.properties[e],t.scope){case 1:delete rc.properties[e];break;case 2:delete oc.properties[e];break;case 6:delete ac.properties[e];break;case 3:delete cc.properties[e];break;case 4:case 5:delete $o.properties[e],delete this.h.properties[e];break}}y(){for(const e of this.i.values()){const t=`[${e}]`,s={type:"object",description:m(1671,null),errorMessage:m(1672,null),$ref:Cn};this.A(t,s),nc.properties[t]=s,rc.properties[t]=s,oc.properties[t]=s,ac.properties[t]=s,cc.properties[t]=s,$o.properties[t]=s}}z(){const e={type:"object",description:m(1673,null),errorMessage:m(1674,null),$ref:Cn};nc.patternProperties[jn]=e,rc.patternProperties[jn]=e,oc.patternProperties[jn]=e,ac.patternProperties[jn]=e,cc.patternProperties[jn]=e,$o.patternProperties[jn]=e,this.j.fire()}A(e,t){const s=this.b.get(e)?.configurationDefaultOverrideValue;let i,n;s&&(!t.disallowConfigurationDefault||!s.source)&&(i=s.value,n=s.source),Qi(i)&&(i=t.defaultDefaultValue,n=void 0),Qi(i)&&(i=MD(t.type)),t.default=i,t.defaultValueSource=n}},P1="\\[([^\\]]+)\\]",I1=new RegExp(P1,"g"),jn=`^(${P1})+$`,xi=new RegExp(jn),uc=new C4,_t.add(Ss.Configuration,uc)}});function hc(e){return Object.isFrozen(e)?e:ID(e)}function _n(e,t){const{added:s,removed:i,updated:n}=j4(t?.rawConfiguration,e?.rawConfiguration),r=[],o=e?.getAllOverrideIdentifiers()||[],a=t?.getAllOverrideIdentifiers()||[];if(t){const c=a.filter(l=>!o.includes(l));for(const l of c)r.push([l,t.getKeysForOverrideIdentifier(l)])}if(e){const c=o.filter(l=>!a.includes(l));for(const l of c)r.push([l,e.getKeysForOverrideIdentifier(l)])}if(t&&e){for(const c of o)if(a.includes(c)){const l=j4({contents:e.getOverrideValue(void 0,c)||{},keys:e.getKeysForOverrideIdentifier(c)},{contents:t.getOverrideValue(void 0,c)||{},keys:t.getKeysForOverrideIdentifier(c)});r.push([c,[...l.added,...l.removed,...l.updated]])}}return{added:s,removed:i,updated:n,overrides:r}}function j4(e,t){const s=e?t?e.keys.filter(r=>t.keys.indexOf(r)===-1):[...e.keys]:[],i=t?e?t.keys.filter(r=>e.keys.indexOf(r)===-1):[...t.keys]:[],n=[];if(e&&t){for(const r of t.keys)if(e.keys.indexOf(r)!==-1){const o=Iu(t.contents,r),a=Iu(e.contents,r);Ei(o,a)||n.push(r)}}return{added:s,removed:i,updated:n}}var mt,A1,_4,T4,Au,M4,U4=v({"out-build/vs/platform/configuration/common/configurationModels.js"(){"use strict";Et(),ae(),yo(),H(),as(),Kt(),xe(),te(),$s(),So(),rn(),mt=class Jr{static createEmptyModel(t){return new Jr({},[],[],void 0,t)}constructor(t,s,i,n,r){this.b=t,this.c=s,this.d=i,this.raw=n,this.f=r,this.a=new Map}get rawConfiguration(){if(!this.g)if(this.raw?.length){const t=this.raw.map(s=>{if(s instanceof Jr)return s;const i=new A1("",this.f);return i.parseRaw(s),i.configurationModel});this.g=t.reduce((s,i)=>i===s?i:s.merge(i),t[0])}else this.g=this;return this.g}get contents(){return this.b}get overrides(){return this.d}get keys(){return this.c}isEmpty(){return this.c.length===0&&Object.keys(this.b).length===0&&this.d.length===0}getValue(t){return t?Iu(this.contents,t):this.contents}inspect(t,s){const i=this;return{get value(){return hc(i.rawConfiguration.getValue(t))},get override(){return s?hc(i.rawConfiguration.getOverrideValue(t,s)):void 0},get merged(){return hc(s?i.rawConfiguration.override(s).getValue(t):i.rawConfiguration.getValue(t))},get overrides(){const n=[];for(const{contents:r,identifiers:o,keys:a}of i.rawConfiguration.overrides){const c=new Jr(r,a,[],void 0,i.f).getValue(t);c!==void 0&&n.push({identifiers:o,value:c})}return n.length?hc(n):void 0}}}getOverrideValue(t,s){const i=this.j(s);return i?t?Iu(i,t):i:void 0}getKeysForOverrideIdentifier(t){const s=[];for(const i of this.overrides)i.identifiers.includes(t)&&s.push(...i.keys);return Wi(s)}getAllOverrideIdentifiers(){const t=[];for(const s of this.overrides)t.push(...s.identifiers);return Wi(t)}override(t){let s=this.a.get(t);return s||(s=this.h(t),this.a.set(t,s)),s}merge(...t){const s=sn(this.contents),i=sn(this.overrides),n=[...this.keys],r=this.raw?.length?[...this.raw]:[this];for(const o of t)if(r.push(...o.raw?.length?o.raw:[o]),!o.isEmpty()){this.i(s,o.contents);for(const a of o.overrides){const[c]=i.filter(l=>kn(l.identifiers,a.identifiers));c?(this.i(c.contents,a.contents),c.keys.push(...a.keys),c.keys=Wi(c.keys)):i.push(sn(a))}for(const a of o.keys)n.indexOf(a)===-1&&n.push(a)}return new Jr(s,n,i,r.every(o=>o instanceof Jr)?void 0:r,this.f)}h(t){const s=this.j(t);if(!s||typeof s!="object"||!Object.keys(s).length)return this;const i={};for(const n of Wi([...Object.keys(this.contents),...Object.keys(s)])){let r=this.contents[n];const o=s[n];o&&(typeof r=="object"&&typeof o=="object"?(r=sn(r),this.i(r,o)):r=o),i[n]=r}return new Jr(i,this.keys,this.overrides,void 0,this.f)}i(t,s){for(const i of Object.keys(s)){if(i in t&&ut(t[i])&&ut(s[i])){this.i(t[i],s[i]);continue}t[i]=sn(s[i])}}j(t){let s=null,i=null;const n=r=>{r&&(i?this.i(i,r):i=sn(r))};for(const r of this.overrides)r.identifiers.length===1&&r.identifiers[0]===t?s=r.contents:r.identifiers.includes(t)&&n(r.contents);return n(s),i}toJSON(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}}addValue(t,s){this.k(t,s,!0)}setValue(t,s){this.k(t,s,!1)}removeValue(t){const s=this.keys.indexOf(t);s!==-1&&(this.keys.splice(s,1),ND(this.contents,t),xi.test(t)&&this.overrides.splice(this.overrides.findIndex(i=>kn(i.identifiers,ic(t))),1))}k(t,s,i){if(S4(this.contents,t,s,n=>this.f.error(n)),i=i||this.keys.indexOf(t)===-1,i&&this.keys.push(t),xi.test(t)){const n=ic(t),r={identifiers:n,keys:Object.keys(this.contents[t]),contents:x1(this.contents[t],a=>this.f.error(a))},o=this.overrides.findIndex(a=>kn(a.identifiers,n));o!==-1?this.overrides[o]=r:this.overrides.push(r)}}},A1=class{constructor(e,t){this.f=e,this.g=t,this.a=null,this.b=null,this.c=[],this.d=[]}get configurationModel(){return this.b||mt.createEmptyModel(this.g)}get restrictedConfigurations(){return this.c}get errors(){return this.d}parse(e,t){if(!xt(e)){const s=this.h(e);this.parseRaw(s,t)}}reparse(e){this.a&&this.parseRaw(this.a,e)}parseRaw(e,t){this.a=e;const{contents:s,keys:i,overrides:n,restricted:r,hasExcludedProperties:o}=this.i(e,t);this.b=new mt(s,i,n,o?[e]:void 0,this.g),this.c=r||[]}h(e){let t={},s=null,i=[];const n=[],r=[];function o(c){Array.isArray(i)?i.push(c):s!==null&&(i[s]=c)}const a={onObjectBegin:()=>{const c={};o(c),n.push(i),i=c,s=null},onObjectProperty:c=>{s=c},onObjectEnd:()=>{i=n.pop()},onArrayBegin:()=>{const c=[];o(c),n.push(i),i=c,s=null},onArrayEnd:()=>{i=n.pop()},onLiteralValue:o,onError:(c,l,u)=>{r.push({error:c,offset:l,length:u})}};if(e)try{m1(e,a),t=i[0]||{}}catch(c){this.g.error(`Error while parsing settings file ${this.f}: ${c}`),this.d=[c]}return t}i(e,t){const s=_t.as(Ss.Configuration).getConfigurationProperties(),i=this.j(e,s,!0,t);e=i.raw;const n=x1(e,a=>this.g.error(`Conflict in settings file ${this.f}: ${a}`)),r=Object.keys(e),o=this.m(e,a=>this.g.error(`Conflict in settings file ${this.f}: ${a}`));return{contents:n,keys:r,overrides:o,restricted:i.restricted,hasExcludedProperties:i.hasExcludedProperties}}j(e,t,s,i){let n=!1;if(!i?.scopes&&!i?.skipRestricted&&!i?.exclude?.length)return{raw:e,restricted:[],hasExcludedProperties:n};const r={},o=[];for(const a in e)if(xi.test(a)&&s){const c=this.j(e[a],t,!1,i);r[a]=c.raw,n=n||c.hasExcludedProperties,o.push(...c.restricted)}else{const c=t[a];c?.restricted&&o.push(a),this.l(a,c,i)?r[a]=e[a]:n=!0}return{raw:r,restricted:o,hasExcludedProperties:n}}l(e,t,s){if(s.exclude?.includes(e))return!1;if(s.include?.includes(e))return!0;if(s.skipRestricted&&t?.restricted||s.skipUnregistered&&!t)return!1;const i=t?typeof t.scope<"u"?t.scope:3:void 0;return i===void 0||s.scopes===void 0?!0:s.scopes.includes(i)}m(e,t){const s=[];for(const i of Object.keys(e))if(xi.test(i)){const n={};for(const r in e[i])n[r]=e[i][r];s.push({identifiers:ic(i),keys:Object.keys(n),contents:x1(n,t)})}return s}},_4=class extends J{constructor(e,t,s,i,n){super(),this.c=e,this.f=t,this.g=i,this.h=n,this.b=this.B(new D),this.onDidChange=this.b.event,this.a=new A1(this.c.toString(),n),this.B(this.g.watch(s.dirname(this.c))),this.B(this.g.watch(this.c)),this.B(z.any(z.filter(this.g.onDidFilesChange,r=>r.contains(this.c)),z.filter(this.g.onDidRunOperation,r=>(r.isOperation(0)||r.isOperation(3)||r.isOperation(1)||r.isOperation(4))&&s.isEqual(r.resource,e)))(()=>this.b.fire()))}async loadConfiguration(){try{const e=await this.g.readFile(this.c);return this.a.parse(e.value.toString()||"{}",this.f),this.a.configurationModel}catch{return mt.createEmptyModel(this.h)}}reparse(e){return e&&(this.f=e),this.a.reparse(this.f),this.a.configurationModel}getRestrictedSettings(){return this.a.restrictedConfigurations}},T4=class{constructor(e,t,s,i,n,r,o,a,c,l,u,h,d){this.a=e,this.b=t,this.c=s,this.overrideIdentifiers=i,this.d=n,this.f=r,this.g=o,this.h=a,this.i=c,this.j=l,this.k=u,this.l=h,this.m=d}get value(){return hc(this.c)}n(e){return e?.value!==void 0||e?.override!==void 0||e?.overrides!==void 0?e:void 0}get q(){return this.p||(this.p=this.d.inspect(this.a,this.b.overrideIdentifier)),this.p}get defaultValue(){return this.q.merged}get default(){return this.n(this.q)}get s(){return this.r===void 0&&(this.r=this.f?this.f.inspect(this.a):null),this.r}get policyValue(){return this.s?.merged}get policy(){return this.s?.value!==void 0?{value:this.s.value}:void 0}get u(){return this.t===void 0&&(this.t=this.g?this.g.inspect(this.a):null),this.t}get applicationValue(){return this.u?.merged}get application(){return this.n(this.u)}get w(){return this.v||(this.v=this.h.inspect(this.a,this.b.overrideIdentifier)),this.v}get userValue(){return this.w.merged}get user(){return this.n(this.w)}get y(){return this.x||(this.x=this.i.inspect(this.a,this.b.overrideIdentifier)),this.x}get userLocalValue(){return this.y.merged}get userLocal(){return this.n(this.y)}get A(){return this.z||(this.z=this.j.inspect(this.a,this.b.overrideIdentifier)),this.z}get userRemoteValue(){return this.A.merged}get userRemote(){return this.n(this.A)}get D(){return this.B===void 0&&(this.B=this.k?this.k.inspect(this.a,this.b.overrideIdentifier):null),this.B}get workspaceValue(){return this.D?.merged}get workspace(){return this.n(this.D)}get F(){return this.E===void 0&&(this.E=this.l?this.l.inspect(this.a,this.b.overrideIdentifier):null),this.E}get workspaceFolderValue(){return this.F?.merged}get workspaceFolder(){return this.n(this.F)}get H(){return this.G===void 0&&(this.G=this.m.inspect(this.a,this.b.overrideIdentifier)),this.G}get memoryValue(){return this.H.merged}get memory(){return this.n(this.H)}},Au=class uI{constructor(t,s,i,n,r,o,a,c,l,u){this.j=t,this.l=s,this.m=i,this.n=n,this.p=r,this.q=o,this.r=a,this.s=c,this.t=l,this.u=u,this.h=null,this.i=new At,this.v=null}getValue(t,s,i){return this.w(t,s,i).getValue(t)}updateValue(t,s,i={}){let n;i.resource?(n=this.t.get(i.resource),n||(n=mt.createEmptyModel(this.u),this.t.set(i.resource,n))):n=this.s,s===void 0?n.removeValue(t):n.setValue(t,s),i.resource||(this.h=null)}inspect(t,s,i){const n=this.w(t,s,i),r=this.A(s.resource,i),o=s.resource?this.t.get(s.resource)||this.s:this.s,a=new Set;for(const c of n.overrides)for(const l of c.identifiers)n.getOverrideValue(t,l)!==void 0&&a.add(l);return new T4(t,s,n.getValue(t),a.size?[...a]:void 0,this.j,this.l.isEmpty()?void 0:this.l,this.applicationConfiguration.isEmpty()?void 0:this.applicationConfiguration,this.userConfiguration,this.localUserConfiguration,this.remoteUserConfiguration,i?this.q:void 0,r||void 0,o)}keys(t){const s=this.A(void 0,t);return{default:this.j.keys.slice(0),user:this.userConfiguration.keys.slice(0),workspace:this.q.keys.slice(0),workspaceFolder:s?s.keys.slice(0):[]}}updateDefaultConfiguration(t){this.j=t,this.h=null,this.i.clear()}updatePolicyConfiguration(t){this.l=t}updateApplicationConfiguration(t){this.m=t,this.h=null,this.i.clear()}updateLocalUserConfiguration(t){this.n=t,this.v=null,this.h=null,this.i.clear()}updateRemoteUserConfiguration(t){this.p=t,this.v=null,this.h=null,this.i.clear()}updateWorkspaceConfiguration(t){this.q=t,this.h=null,this.i.clear()}updateFolderConfiguration(t,s){this.r.set(t,s),this.i.delete(t)}deleteFolderConfiguration(t){this.folderConfigurations.delete(t),this.i.delete(t)}compareAndUpdateDefaultConfiguration(t,s){const i=[];if(!s){const{added:n,updated:r,removed:o}=_n(this.j,t);s=[...n,...r,...o]}for(const n of s)for(const r of ic(n)){const o=this.j.getKeysForOverrideIdentifier(r),a=t.getKeysForOverrideIdentifier(r),c=[...a.filter(l=>o.indexOf(l)===-1),...o.filter(l=>a.indexOf(l)===-1),...o.filter(l=>!Ei(this.j.override(r).getValue(l),t.override(r).getValue(l)))];i.push([r,c])}return this.updateDefaultConfiguration(t),{keys:s,overrides:i}}compareAndUpdatePolicyConfiguration(t){const{added:s,updated:i,removed:n}=_n(this.l,t),r=[...s,...i,...n];return r.length&&this.updatePolicyConfiguration(t),{keys:r,overrides:[]}}compareAndUpdateApplicationConfiguration(t){const{added:s,updated:i,removed:n,overrides:r}=_n(this.applicationConfiguration,t),o=[...s,...i,...n];return o.length&&this.updateApplicationConfiguration(t),{keys:o,overrides:r}}compareAndUpdateLocalUserConfiguration(t){const{added:s,updated:i,removed:n,overrides:r}=_n(this.localUserConfiguration,t),o=[...s,...i,...n];return o.length&&this.updateLocalUserConfiguration(t),{keys:o,overrides:r}}compareAndUpdateRemoteUserConfiguration(t){const{added:s,updated:i,removed:n,overrides:r}=_n(this.remoteUserConfiguration,t),o=[...s,...i,...n];return o.length&&this.updateRemoteUserConfiguration(t),{keys:o,overrides:r}}compareAndUpdateWorkspaceConfiguration(t){const{added:s,updated:i,removed:n,overrides:r}=_n(this.workspaceConfiguration,t),o=[...s,...i,...n];return o.length&&this.updateWorkspaceConfiguration(t),{keys:o,overrides:r}}compareAndUpdateFolderConfiguration(t,s){const i=this.folderConfigurations.get(t),{added:n,updated:r,removed:o,overrides:a}=_n(i,s),c=[...n,...r,...o];return(c.length||!i)&&this.updateFolderConfiguration(t,s),{keys:c,overrides:a}}compareAndDeleteFolderConfiguration(t){const s=this.folderConfigurations.get(t);if(!s)throw new Error("Unknown folder");this.deleteFolderConfiguration(t);const{added:i,updated:n,removed:r,overrides:o}=_n(s,void 0);return{keys:[...i,...n,...r],overrides:o}}get defaults(){return this.j}get applicationConfiguration(){return this.m}get userConfiguration(){return this.v||(this.v=this.p.isEmpty()?this.n:this.n.merge(this.p)),this.v}get localUserConfiguration(){return this.n}get remoteUserConfiguration(){return this.p}get workspaceConfiguration(){return this.q}get folderConfigurations(){return this.r}w(t,s,i){let n=this.x(s,i);return s.overrideIdentifier&&(n=n.override(s.overrideIdentifier)),!this.l.isEmpty()&&this.l.getValue(t)!==void 0&&(n=n.merge(this.l)),n}x({resource:t},s){let i=this.y();if(s&&t){const n=s.getFolder(t);n&&(i=this.z(n.uri)||i);const r=this.t.get(t);r&&(i=i.merge(r))}return i}y(){return this.h||(this.h=this.j.merge(this.applicationConfiguration,this.userConfiguration,this.q,this.s)),this.h}z(t){let s=this.i.get(t);if(!s){const i=this.y(),n=this.r.get(t);n?(s=i.merge(n),this.i.set(t,s)):s=i}return s}A(t,s){if(s&&t){const i=s.getFolder(t);if(i)return this.r.get(i.uri)}}toData(){return{defaults:{contents:this.j.contents,overrides:this.j.overrides,keys:this.j.keys},policy:{contents:this.l.contents,overrides:this.l.overrides,keys:this.l.keys},application:{contents:this.applicationConfiguration.contents,overrides:this.applicationConfiguration.overrides,keys:this.applicationConfiguration.keys},user:{contents:this.userConfiguration.contents,overrides:this.userConfiguration.overrides,keys:this.userConfiguration.keys},workspace:{contents:this.q.contents,overrides:this.q.overrides,keys:this.q.keys},folders:[...this.r.keys()].reduce((t,s)=>{const{contents:i,overrides:n,keys:r}=this.r.get(s);return t.push([s,{contents:i,overrides:n,keys:r}]),t},[])}}allKeys(){const t=new Set;return this.j.keys.forEach(s=>t.add(s)),this.userConfiguration.keys.forEach(s=>t.add(s)),this.q.keys.forEach(s=>t.add(s)),this.r.forEach(s=>s.keys.forEach(i=>t.add(i))),[...t.values()]}B(){const t=new Set;return this.j.getAllOverrideIdentifiers().forEach(s=>t.add(s)),this.userConfiguration.getAllOverrideIdentifiers().forEach(s=>t.add(s)),this.q.getAllOverrideIdentifiers().forEach(s=>t.add(s)),this.r.forEach(s=>s.getAllOverrideIdentifiers().forEach(i=>t.add(i))),[...t.values()]}D(t){const s=new Set;return this.j.getKeysForOverrideIdentifier(t).forEach(i=>s.add(i)),this.userConfiguration.getKeysForOverrideIdentifier(t).forEach(i=>s.add(i)),this.q.getKeysForOverrideIdentifier(t).forEach(i=>s.add(i)),this.r.forEach(i=>i.getKeysForOverrideIdentifier(t).forEach(n=>s.add(n))),[...s.values()]}static parse(t,s){const i=this.E(t.defaults,s),n=this.E(t.policy,s),r=this.E(t.application,s),o=this.E(t.user,s),a=this.E(t.workspace,s),c=t.folders.reduce((l,u)=>(l.set(E.revive(u[0]),this.E(u[1],s)),l),new At);return new uI(i,n,r,o,mt.createEmptyModel(s),a,c,mt.createEmptyModel(s),new At,s)}static E(t,s){return new mt(t.contents,t.keys,t.overrides,void 0,s)}},M4=class{constructor(e,t,s,i,n){this.change=e,this.f=t,this.g=s,this.h=i,this.i=n,this.a=` `,this.b=this.a.charCodeAt(0),this.c=46,this.affectedKeys=new Set,this.j=void 0;for(const r of e.keys)this.affectedKeys.add(r);for(const[,r]of e.overrides)for(const o of r)this.affectedKeys.add(o);this.d=this.a;for(const r of this.affectedKeys)this.d+=r+this.a}get previousConfiguration(){return!this.j&&this.f&&(this.j=Au.parse(this.f.data,this.i)),this.j}affectsConfiguration(e,t){const s=this.a+e,i=this.d.indexOf(s);if(i<0)return!1;const n=i+s.length;if(n>=this.d.length)return!1;const r=this.d.charCodeAt(n);if(r!==this.b&&r!==this.c)return!1;if(t){const o=this.previousConfiguration?this.previousConfiguration.getValue(e,t,this.f?.workspace):void 0,a=this.g.getValue(e,t,this.h);return!Ei(o,a)}return!0}}}}),F4,Du,Nu=v({"out-build/vs/platform/policy/common/policy.js"(){"use strict";ae(),dr(),H(),re(),F4=ie("policy"),Du=class{constructor(){this.onDidChange=z.None}async updatePolicyDefinitions(){return{}}getPolicyValue(){}serialize(){}}}}),B4,z4,Ru,FD=v({"out-build/vs/platform/configuration/common/configurations.js"(){"use strict";Et(),ae(),H(),Kt(),xe(),U4(),So(),De(),Nu(),rn(),B4=class extends J{get configurationModel(){return this.b}constructor(e){super(),this.c=e,this.a=this.B(new D),this.onDidChangeConfiguration=this.a.event,this.b=mt.createEmptyModel(this.c)}async initialize(){return this.h(),this.B(_t.as(Ss.Configuration).onDidUpdateConfiguration(({properties:e,defaultsOverrides:t})=>this.f(Array.from(e),t))),this.configurationModel}reload(){return this.h(),this.configurationModel}f(e,t){this.j(e,_t.as(Ss.Configuration).getConfigurationProperties()),this.a.fire({defaults:this.configurationModel,properties:e})}g(){return{}}h(){this.b=mt.createEmptyModel(this.c);const e=_t.as(Ss.Configuration).getConfigurationProperties();this.j(Object.keys(e),e)}j(e,t){const s=this.g();for(const i of e){const n=s[i],r=t[i];n!==void 0?this.b.setValue(i,n):r?this.b.setValue(i,r.default):this.b.removeValue(i)}}},z4=class{constructor(){this.onDidChangeConfiguration=z.None,this.configurationModel=mt.createEmptyModel(new o4)}async initialize(){return this.configurationModel}},Ru=class extends J{get configurationModel(){return this.b}constructor(t,s,i){super(),this.c=t,this.f=s,this.g=i,this.a=this.B(new D),this.onDidChangeConfiguration=this.a.event,this.b=mt.createEmptyModel(this.g)}async initialize(){return this.g.trace("PolicyConfiguration#initialize"),this.m(await this.h(this.c.configurationModel.keys),!1),this.B(this.f.onDidChange(t=>this.j(t))),this.B(this.c.onDidChangeConfiguration(async({properties:t})=>this.m(await this.h(t),!0))),this.b}async h(t){this.g.trace("PolicyConfiguration#updatePolicyDefinitions",t);const s={},i=[],n=_t.as(Ss.Configuration).getConfigurationProperties();for(const r of t){const o=n[r];if(!o){i.push(r);continue}if(o.policy){if(o.type!=="string"&&o.type!=="number"){this.g.warn(`Policy ${o.policy.name} has unsupported type ${o.type}`);continue}i.push(r),s[o.policy.name]={type:o.type}}}return du(s)||await this.f.updatePolicyDefinitions(s),i}j(t){this.g.trace("PolicyConfiguration#onDidChangePolicies",t);const s=_t.as(Ss.Configuration).getPolicyConfigurations(),i=wi(t.map(n=>s.get(n)));this.m(i,!0)}m(t,s){this.g.trace("PolicyConfiguration#update",t);const i=_t.as(Ss.Configuration).getConfigurationProperties(),n=[],r=this.b.isEmpty();for(const o of t){const a=i[o]?.policy?.name;if(a){const c=this.f.getPolicyValue(a);(r?c!==void 0:!Ei(this.b.getValue(o),c))&&n.push([o,c])}else this.b.getValue(o)!==void 0&&n.push([o,void 0])}if(n.length){this.g.trace("PolicyConfiguration#changed",n);const o=this.b;this.b=mt.createEmptyModel(this.g);for(const a of o.keys)this.b.setValue(a,o.getValue(a));for(const[a,c]of n)c===void 0?this.b.removeValue(a):this.b.setValue(a,c);s&&this.a.fire(this.b)}}},Ru=__decorate([__param(1,F4),__param(2,fe)],Ru)}}),D1,H4,V4=v({"out-build/vs/platform/configuration/common/configurationService.js"(){"use strict";Et(),Me(),Ue(),ae(),yo(),PD(),H(),as(),Kt(),Q(),kt(),$s(),U4(),So(),FD(),Nu(),D1=class extends J{constructor(e,t,s,i){super(),this.m=e,this.n=i,this.h=this.B(new D),this.onDidChangeConfiguration=this.h.event,this.b=this.B(new B4(i)),this.c=s instanceof Du?new z4:this.B(new Ru(this.b,s,i)),this.f=this.B(new _4(this.m,{},wu,t,i)),this.a=new Au(this.b.configurationModel,this.c.configurationModel,mt.createEmptyModel(i),mt.createEmptyModel(i),mt.createEmptyModel(i),mt.createEmptyModel(i),new At,mt.createEmptyModel(i),new At,i),this.j=new H4(e,t,this),this.g=this.B(new tc(()=>this.reloadConfiguration(),50)),this.B(this.b.onDidChangeConfiguration(({defaults:n,properties:r})=>this.s(n,r))),this.B(this.c.onDidChangeConfiguration(n=>this.t(n))),this.B(this.f.onDidChange(()=>this.g.schedule()))}async initialize(){const[e,t,s]=await Promise.all([this.b.initialize(),this.c.initialize(),this.f.loadConfiguration()]);this.a=new Au(e,t,mt.createEmptyModel(this.n),s,mt.createEmptyModel(this.n),mt.createEmptyModel(this.n),new At,mt.createEmptyModel(this.n),new At,this.n)}getConfigurationData(){return this.a.toData()}getValue(e,t){const s=typeof e=="string"?e:void 0,i=E1(e)?e:E1(t)?t:{};return this.a.getValue(s,i,void 0)}async updateValue(e,t,s,i,n){const r=DD(s)?s:E1(s)?{resource:s.resource,overrideIdentifiers:s.overrideIdentifier?[s.overrideIdentifier]:void 0}:void 0,o=r?i:s;if(o!==void 0&&o!==3&&o!==2)throw new Error(`Unable to write ${e} to target ${o}.`);r?.overrideIdentifiers&&(r.overrideIdentifiers=Wi(r.overrideIdentifiers),r.overrideIdentifiers=r.overrideIdentifiers.length?r.overrideIdentifiers:void 0);const a=this.inspect(e,{resource:r?.resource,overrideIdentifier:r?.overrideIdentifiers?r.overrideIdentifiers[0]:void 0});if(a.policyValue!==void 0)throw new Error(`Unable to write ${e} because it is configured in system policy.`);if(Ei(t,a.defaultValue)&&(t=void 0),r?.overrideIdentifiers?.length&&r.overrideIdentifiers.length>1){const l=r.overrideIdentifiers.sort(),u=this.a.localUserConfiguration.overrides.find(h=>kn([...h.identifiers].sort(),l));u&&(r.overrideIdentifiers=u.identifiers)}const c=r?.overrideIdentifiers?.length?[TD(r.overrideIdentifiers),e]:[e];await this.j.write(c,t),await this.reloadConfiguration()}inspect(e,t={}){return this.a.inspect(e,t,void 0)}keys(){return this.a.keys(void 0)}async reloadConfiguration(){const e=await this.f.loadConfiguration();this.r(e)}r(e){const t=this.a.toData(),s=this.a.compareAndUpdateLocalUserConfiguration(e);this.u(s,t,2)}s(e,t){const s=this.a.toData(),i=this.a.compareAndUpdateDefaultConfiguration(e,t);this.u(i,s,7)}t(e){const t=this.a.toData(),s=this.a.compareAndUpdatePolicyConfiguration(e);this.u(s,t,7)}u(e,t,s){const i=new M4(e,{data:t},this.a,void 0,this.n);i.source=s,this.h.fire(i)}},H4=class{constructor(e,t,s){this.b=e,this.c=t,this.d=s,this.a=new go}write(e,t){return this.a.queue(()=>this.e(e,t))}async e(e,t){let s;try{s=(await this.c.readFile(this.b)).value.toString()}catch(r){if(r.fileOperationResult===1)s="{}";else throw r}const i=[];if(vo(s,i,{allowTrailingComma:!0,allowEmptyContent:!0}),i.length>0)throw new Error("Unable to write into the settings file. Please open the file to correct errors/warnings in the file and try again.");const n=this.f(s,e,t);s=SD(s,n),await this.c.writeFile(this.b,O.fromString(s))}f(e,t,s){const{tabSize:i,insertSpaces:n,eol:r}=this.h;if(!t.length){const o=JSON.stringify(s,null,n?" ".repeat(i):" ");return[{content:o,length:o.length,offset:0}]}return $D(e,t,s,{tabSize:i,insertSpaces:n,eol:r})}get h(){if(!this.g){let e=fr===3||fr===2?` `:`\r `;const t=this.d.getValue("files.eol",{overrideIdentifier:"jsonc"});t&&typeof t=="string"&&t!=="auto"&&(e=t),this.g={eol:e,insertSpaces:!!this.d.getValue("editor.insertSpaces",{overrideIdentifier:"jsonc"}),tabSize:this.d.getValue("editor.tabSize",{overrideIdentifier:"jsonc"})}}return this.g}}}});function N1(e){return e.res.statusCode&&e.res.statusCode>=200&&e.res.statusCode<300||e.res.statusCode===1223}function W4(e){return e.res.statusCode===204}async function BD(e){return W4(e)?null:(await Zi(e.stream)).toString()}async function Pr(e){if(!N1(e))throw new Error("Server returned "+e.res.statusCode);return BD(e)}async function Lu(e){if(!N1(e))throw new Error("Server returned "+e.res.statusCode);if(W4(e))return null;const s=(await Zi(e.stream)).toString();try{return JSON.parse(s)}catch(i){throw i.message+=`: `+s,i}}function zD(e){const t=_t.as(Ss.Configuration),s=R1;R1={id:"http",order:15,title:m(2062,null),type:"object",scope:e,properties:{"http.proxy":{type:"string",pattern:"^(https?|socks|socks4a?|socks5h?)://([^:]*(:[^@]*)?@)?([^:]+|\\[[:0-9a-fA-F]+\\])(:\\d+)?/?$|^$",markdownDescription:m(2063,null),restricted:!0},"http.proxyStrictSSL":{type:"boolean",default:!0,description:m(2064,null),restricted:!0},"http.proxyKerberosServicePrincipal":{type:"string",markdownDescription:m(2065,null),restricted:!0},"http.noProxy":{type:"array",items:{type:"string"},markdownDescription:m(2066,null),restricted:!0},"http.proxyAuthorization":{type:["null","string"],default:null,markdownDescription:m(2067,null),restricted:!0},"http.proxySupport":{type:"string",enum:["off","on","fallback","override"],enumDescriptions:[m(2068,null),m(2069,null),m(2070,null),m(2071,null)],default:"override",description:m(2072,null),restricted:!0},"http.systemCertificates":{type:"boolean",default:!0,description:m(2073,null),restricted:!0},"http.experimental.systemCertificatesV2":{type:"boolean",tags:["experimental"],default:!1,description:m(2074,null),restricted:!0},"http.electronFetch":{type:"boolean",default:!1,description:m(2075,null),restricted:!0}}},t.updateConfigurations({add:[R1],remove:s?[s]:[]})}var ki,q4,G4,R1,Ir=v({"out-build/vs/platform/request/common/request.js"(){"use strict";Ue(),de(),H(),pe(),So(),re(),rn(),ki=ie("requestService"),q4=class{constructor(e){this.b=e}toJSON(){if(!this.a){const e=Object.create(null);for(const t in this.b)t.toLowerCase()==="authorization"||t.toLowerCase()==="proxy-authorization"?e[t]="*****":e[t]=this.b[t];this.a=e}return this.a}},G4=class extends J{constructor(e){super(),this.b=e,this.a=0}async c(e,t){const s=`[network] #${++this.a}: ${e.url}`;this.b.trace(`${s} - begin`,e.type,new q4(e.headers??{}));try{const i=await t();return this.b.trace(`${s} - end`,e.type,i.res.statusCode,i.res.headers),i}catch(i){throw this.b.error(`${s} - error`,e.type,Pe(i)),i}}},zD(1)}}),Ps,Hs,fs=v({"out-build/vs/platform/environment/common/environment.js"(){"use strict";re(),Ps=ie("environmentService"),Hs=Ps}});function HD(e){return J4.test(e)}var J4,He,Wt=v({"out-build/vs/base/common/uuid.js"(){"use strict";J4=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,He=function(){if(typeof crypto=="object"&&typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);let e;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?e=crypto.getRandomValues.bind(crypto):e=function(i){for(let n=0;n<i.length;n++)i[n]=Math.floor(Math.random()*256);return i};const t=new Uint8Array(16),s=[];for(let i=0;i<256;i++)s.push(i.toString(16).padStart(2,"0"));return function(){e(t),t[6]=t[6]&15|64,t[8]=t[8]&63|128;let n=0,r="";return r+=s[t[n++]],r+=s[t[n++]],r+=s[t[n++]],r+=s[t[n++]],r+="-",r+=s[t[n++]],r+=s[t[n++]],r+="-",r+=s[t[n++]],r+=s[t[n++]],r+="-",r+=s[t[n++]],r+=s[t[n++]],r+="-",r+=s[t[n++]],r+=s[t[n++]],r+=s[t[n++]],r+=s[t[n++]],r+=s[t[n++]],r+=s[t[n++]],r}}()}});function L1(e){return VD(e,"NFC",X4)}function VD(e,t,s){if(!e)return e;const i=s.get(e);if(i)return i;let n;return Y4.test(e)?n=e.normalize(t):n=e,s.set(e,n),n}var X4,WD,Y4,Q4=v({"out-build/vs/base/common/normalization.js"(){"use strict";as(),X4=new _a(1e4),WD=new _a(1e4),Y4=/[^\u0000-\u0080]/}});import*as Ve from"fs";import{tmpdir as qD}from"os";import{promisify as Ou}from"util";async function Z4(e,t=Po.UNLINK,s){if(sD(e))throw new Error("rimraf - will refuse to recursively delete root");return t===Po.UNLINK?O1(e):GD(e,s)}async function GD(e,t=iD(qD())){try{try{await Ve.promises.rename(e,t)}catch(s){return s.code==="ENOENT"?void 0:O1(e)}O1(t).catch(s=>{})}catch(s){if(s.code!=="ENOENT")throw s}}async function O1(e){return Ve.promises.rm(e,{recursive:!0,force:!0,maxRetries:3})}async function Cu(e,t){return XD(await(t?JD(e):Ve.promises.readdir(e)))}async function JD(e){try{return await Ve.promises.readdir(e,{withFileTypes:!0})}catch(i){console.warn("[node.js fs] readdir with filetypes failed with error: ",i)}const t=[],s=await Cu(e);for(const i of s){let n=!1,r=!1,o=!1;try{const a=await Ve.promises.lstat(j(e,i));n=a.isFile(),r=a.isDirectory(),o=a.isSymbolicLink()}catch(a){console.warn("[node.js fs] unexpected error from lstat after readdir: ",a)}t.push({name:i,isFile:()=>n,isDirectory:()=>r,isSymbolicLink:()=>o})}return t}function XD(e){return e.map(t=>typeof t=="string"?Os?L1(t):t:(t.name=Os?L1(t.name):t.name,t))}async function YD(e){const t=await Cu(e),s=[];for(const i of t)await ds.existsDirectory(j(e,i))&&s.push(i);return s}function QD(e,t,s){return s5.queueFor(E.file(e),()=>{const i=eN(s);return new Promise((n,r)=>KD(e,t,i,o=>o?r(o):n()))},wu)}function ZD(e){C1=e}function KD(e,t,s,i){if(!C1)return Ve.writeFile(e,t,{mode:s.mode,flag:s.flag},i);Ve.open(e,s.flag,s.mode,(n,r)=>{if(n)return i(n);Ve.writeFile(r,t,o=>{if(o)return Ve.close(r,()=>i(o));Ve.fdatasync(r,a=>(a&&(console.warn("[node.js fs] fdatasync is now disabled for this session because it failed: ",a),ZD(!1)),Ve.close(r,c=>i(c))))})})}function eN(e){return e?{mode:typeof e.mode=="number"?e.mode:438,flag:typeof e.flag=="string"?e.flag:"w"}:{mode:438,flag:"w"}}async function tN(e,t,s=6e4){if(e!==t)try{me&&typeof s=="number"?await K4(e,t,Date.now(),s):await Ve.promises.rename(e,t)}catch(i){if(e.toLowerCase()!==t.toLowerCase()&&i.code==="EXDEV"||e.endsWith("."))await e5(e,t,{preserveSymlinks:!1}),await Z4(e,Po.MOVE);else throw i}}async function K4(e,t,s,i,n=0){try{return await Ve.promises.rename(e,t)}catch(r){if(r.code!=="EACCES"&&r.code!=="EPERM"&&r.code!=="EBUSY")throw r;if(Date.now()-s>=i)throw console.error(`[node.js fs] rename failed after ${n} retries with error: ${r}`),r;if(n===0){let o=!1;try{const{stat:a}=await ds.stat(t);a.isFile()||(o=!0)}catch{}if(o)throw r}return await $r(Math.min(100,n*10)),K4(e,t,s,i,n+1)}}async function e5(e,t,s){return t5(e,t,{root:{source:e,target:t},options:s,handledSourcePaths:new Set})}async function t5(e,t,s){if(s.handledSourcePaths.has(e))return;s.handledSourcePaths.add(e);const{stat:i,symbolicLink:n}=await ds.stat(e);if(n){if(s.options.preserveSymlinks)try{return await nN(e,t,s)}catch{}if(n.dangling)return}return i.isDirectory()?sN(e,t,i.mode&j1,s):iN(e,t,i.mode&j1)}async function sN(e,t,s,i){await Ve.promises.mkdir(t,{recursive:!0,mode:s});const n=await Cu(e);for(const r of n)await t5(j(e,r),j(t,r),i)}async function iN(e,t,s){await Ve.promises.copyFile(e,t),await Ve.promises.chmod(t,s)}async function nN(e,t,s){let i=await Ve.promises.readlink(e);Ln(i,s.root.source,!it)&&(i=j(s.root.target,i.substr(s.root.source.length+1))),await Ve.promises.symlink(i,t)}var Po,ds,s5,C1,j1,Le,es=v({"out-build/vs/base/node/pfs.js"(){"use strict";Me(),yi(),Q4(),he(),Q(),kt(),te(),function(e){e[e.UNLINK=0]="UNLINK",e[e.MOVE=1]="MOVE"}(Po||(Po={})),function(e){async function t(n){let r;try{if(r=await Ve.promises.lstat(n),!r.isSymbolicLink())return{stat:r}}catch{}try{return{stat:await Ve.promises.stat(n),symbolicLink:r?.isSymbolicLink()?{dangling:!1}:void 0}}catch(o){if(o.code==="ENOENT"&&r)return{stat:r,symbolicLink:{dangling:!0}};if(me&&o.code==="EACCES")try{return{stat:await Ve.promises.stat(await Ve.promises.readlink(n)),symbolicLink:{dangling:!1}}}catch(a){if(a.code==="ENOENT"&&r)return{stat:r,symbolicLink:{dangling:!0}};throw a}throw o}}e.stat=t;async function s(n){try{const{stat:r,symbolicLink:o}=await e.stat(n);return r.isFile()&&o?.dangling!==!0}catch{}return!1}e.existsFile=s;async function i(n){try{const{stat:r,symbolicLink:o}=await e.stat(n);return r.isDirectory()&&o?.dangling!==!0}catch{}return!1}e.existsDirectory=i}(ds||(ds={})),s5=new f1,C1=!0,j1=511,Le=new class{get read(){return(e,t,s,i,n)=>new Promise((r,o)=>{Ve.read(e,t,s,i,n,(a,c,l)=>a?o(a):r({bytesRead:c,buffer:l}))})}get write(){return(e,t,s,i,n)=>new Promise((r,o)=>{Ve.write(e,t,s,i,n,(a,c,l)=>a?o(a):r({bytesWritten:c,buffer:l}))})}get fdatasync(){return Ou(Ve.fdatasync)}get open(){return Ou(Ve.open)}get close(){return Ou(Ve.close)}get realpath(){return Ou(Ve.realpath)}async exists(e){try{return await Ve.promises.access(e),!0}catch{return!1}}get readdir(){return Cu}get readDirsInDir(){return YD}get writeFile(){return QD}get rm(){return Z4}get rename(){return tN}get copy(){return e5}}}});import*as rN from"os";function oN({useAlternateBitness:e=!1}={}){return e?fc===0?process.env["ProgramFiles(x86)"]||null:Io===0&&process.env.ProgramW6432||null:process.env.ProgramFiles||null}async function ju({useAlternateBitness:e=!1,findPreview:t=!1}={}){const s=oN({useAlternateBitness:e});if(!s)return null;const i=j(s,"PowerShell");if(!await ds.existsDirectory(i))return null;let n=-1,r=null;for(const c of await Le.readdir(i)){let l=-1;if(t){const h=c.indexOf("-");if(h<0)continue;const d=c.substring(0,h);if(!_1.test(d)||c.substring(h+1)!=="preview")continue;l=parseInt(d,10)}else{if(!_1.test(c))continue;l=parseInt(c,10)}if(l<=n)continue;const u=j(i,c,"pwsh.exe");await ds.existsFile(u)&&(r=u,n=l)}if(!r)return null;const o=s.includes("x86")?" (x86)":"",a=t?" Preview":"";return new dc(r,`PowerShell${a}${o}`,!0)}async function i5({findPreview:e}={}){if(!process.env.LOCALAPPDATA)return null;const t=j(process.env.LOCALAPPDATA,"Microsoft","WindowsApps");if(!await ds.existsDirectory(t))return null;const{pwshMsixDirRegex:s,pwshMsixName:i}=e?{pwshMsixDirRegex:o5,pwshMsixName:"PowerShell Preview (Store)"}:{pwshMsixDirRegex:r5,pwshMsixName:"PowerShell (Store)"};for(const n of await Le.readdir(t))if(s.test(n)){const r=j(t,n,"pwsh.exe");return new dc(r,i)}return null}function aN(){const e=j(rN.homedir(),".dotnet","tools","pwsh.exe");return new dc(e,".NET Core PowerShell Global Tool")}function cN(){const e=j(process.env.windir,fc===1&&Io!==1?"SysNative":"System32","WindowsPowerShell","v1.0","powershell.exe");return new dc(e,"Windows PowerShell",!0)}async function*lN(){let e=await ju();e&&(yield e),e=await ju({useAlternateBitness:!0}),e&&(yield e),e=await i5(),e&&(yield e),e=aN(),e&&(yield e),e=await ju({findPreview:!0}),e&&(yield e),e=await i5({findPreview:!0}),e&&(yield e),e=await ju({useAlternateBitness:!0,findPreview:!0}),e&&(yield e),e=cN(),e&&(yield e)}async function*n5(){for await(const e of lN())await e.exists()&&(yield e)}async function uN(){for await(const e of n5())return e;return null}var _1,r5,o5,a5,fc,Io,dc,c5=v({"out-build/vs/base/node/powershell.js"(){"use strict";switch(he(),es(),_1=/^\d+$/,r5=/^Microsoft.PowerShell_.*/,o5=/^Microsoft.PowerShellPreview_.*/,function(e){e[e.x64=0]="x64",e[e.x86=1]="x86",e[e.ARM=2]="ARM"}(a5||(a5={})),process.arch){case"ia32":fc=1;break;case"arm":case"arm64":fc=2;break;default:fc=0;break}process.env.PROCESSOR_ARCHITEW6432?Io=process.env.PROCESSOR_ARCHITEW6432==="ARM64"?2:0:process.env.PROCESSOR_ARCHITECTURE==="ARM64"?Io=2:process.env.PROCESSOR_ARCHITECTURE==="X86"?Io=1:Io=0,dc=class{constructor(e,t,s){this.exePath=e,this.displayName=t,this.a=s}async exists(){return this.a===void 0&&(this.a=await ds.existsFile(this.exePath)),this.a}}}});function hN(e,...t){const s=t.reduce((r,o)=>(r[o]=!0,r),{}),i=[/^ELECTRON_.+$/,/^VSCODE_(?!(PORTABLE|SHELL_LOGIN|ENV_REPLACE|ENV_APPEND|ENV_PREPEND)).+$/,/^SNAP(|_.*)$/,/^GDK_PIXBUF_.+$/];Object.keys(e).filter(r=>!s[r]).forEach(r=>{for(let o=0;o<i.length;o++)if(r.search(i[o])!==-1){delete e[r];break}})}function l5(e){e&&(delete e.DEBUG,it&&delete e.LD_PRELOAD)}var u5,h5,_u=v({"out-build/vs/base/common/processes.js"(){"use strict";Q(),function(e){e[e.stdout=0]="stdout",e[e.stderr=1]="stderr"}(u5||(u5={})),function(e){e[e.Success=0]="Success",e[e.Unknown=1]="Unknown",e[e.AccessDenied=2]="AccessDenied",e[e.ProcessNotFound=3]="ProcessNotFound"}(h5||(h5={}))}});import{promises as f5}from"fs";function fN(e=Cs){return e.comspec||"cmd.exe"}function dN(e){let t=[],s=!1;const i=function(n){if(s){t.push(n);return}(!e.send(n,o=>{if(o&&console.error(o),s=!1,t.length>0){const a=t.slice(0);t=[],a.forEach(c=>i(c))}})||me)&&(s=!0)};return{send:i}}var d5,p5=v({"out-build/vs/base/node/processes.js"(){"use strict";he(),Q(),ei(),_u(),xe(),es(),function(e){async function t(s,i,n){if(Xi(s))return s;if(i===void 0&&(i=bi()),Lt(s)!=="."||(n===void 0&&be(Cs.PATH)&&(n=Cs.PATH.split(oo)),n===void 0||n.length===0))return j(i,s);async function o(a){if(await Le.exists(a)){let c;try{c=await f5.stat(a)}catch(l){l.message.startsWith("EACCES")&&(c=await f5.lstat(a))}return c?!c.isDirectory():!1}return!1}for(const a of n){let c;if(Xi(a)?c=j(a,s):c=j(i,a,s),await o(c))return c;let l=c+".com";if(await o(l)||(l=c+".exe",await o(l)))return l}return j(i,s)}e.findExecutable=t}(d5||(d5={}))}});import{userInfo as pN}from"os";async function m5(e,t){return e===1?me?gN():fN(t):mN(e,t)}function mN(e,t){if(it&&e===2||Os&&e===3)return"/bin/bash";if(!Tu){let s;if(me)s="/bin/bash";else{if(s=t.SHELL,!s)try{s=pN().shell}catch{}s||(s="sh"),s==="/bin/false"&&(s="/bin/bash")}Tu=s}return Tu}async function gN(){return Mu||(Mu=(await uN()).exePath),Mu}var Tu,Mu,g5=v({"out-build/vs/base/node/shell.js"(){"use strict";Q(),c5(),p5(),Tu=null,Mu=null}});function w5(e,t,s=x5){const i=e.find(d=>d.length>0&&d[0]!=="-"),n={},r=["_"],o=[],a={};let c;for(const d in t){const p=t[d];p.type==="subcommand"?d===i&&(c=p):(p.alias&&(n[d]=p.alias),p.type==="string"||p.type==="string[]"?(r.push(d),p.deprecates&&r.push(...p.deprecates)):p.type==="boolean"&&(o.push(d),p.deprecates&&o.push(...p.deprecates)),p.global&&(a[d]=p))}if(c&&i){const d=a;for(const y in c.options)d[y]=c.options[y];const p=e.filter(y=>y!==i),g=s.getSubcommandReporter?s.getSubcommandReporter(i):void 0,w=w5(p,d,g);return{[i]:w,_:[]}}const l=(0,y5.default)(e,{string:r,boolean:o,alias:n}),u={},h=l;u._=l._.map(d=>String(d)).filter(d=>d.length>0),delete h._;for(const d in t){const p=t[d];if(p.type==="subcommand")continue;p.alias&&delete h[p.alias];let g=h[d];if(p.deprecates)for(const w of p.deprecates)h.hasOwnProperty(w)&&(g||(g=h[w],g&&s.onDeprecatedOption(w,p.deprecationMessage||m(1759,null,d))),delete h[w]);if(typeof g<"u"){if(p.type==="string[]"){if(Array.isArray(g)||(g=[g]),!p.allowEmptyValue){const w=g.filter(y=>y.length>0);w.length!==g.length&&(s.onEmptyValue(d),g=w.length>0?w:void 0)}}else p.type==="string"&&(Array.isArray(g)?(g=g.pop(),s.onMultipleValues(d,g)):!g&&!p.allowEmptyValue&&(s.onEmptyValue(d),g=void 0));u[d]=g,p.deprecationMessage&&s.onDeprecatedOption(d,p.deprecationMessage)}delete h[d]}for(const d in h)s.onUnknownOption(d);return u}function wN(e,t){let s="";return t.args&&(Array.isArray(t.args)?s=` <${t.args.join("> <")}>`:s=` <${t.args}>`),t.alias?`-${t.alias} --${e}${s}`:`--${e}${s}`}function vN(e,t){const s=[];for(const i in e){const n=e[i],r=wN(i,n);s.push([r,n.description])}return v5(s,t)}function v5(e,t){const i=e.reduce((o,a)=>Math.max(o,a[0].length),12)+2+1;if(t-i<25)return e.reduce((o,a)=>o.concat([` ${a[0]}`,` ${a[1]}`]),[]);const n=t-i-1,r=[];for(const o of e){const a=o[0],c=bN(o[1],n),l=b5(i-a.length-2);r.push(" "+a+l+c[0]);for(let u=1;u<c.length;u++)r.push(b5(i)+c[u])}return r}function b5(e){return" ".repeat(e)}function bN(e,t){const s=[];for(;e.length;){const i=e.length<t?e.length:e.lastIndexOf(" ",t),n=e.slice(0,i).trim();e=e.slice(i),s.push(n)}return s}function yN(e,t,s,i,n){const r=process.stdout.isTTY&&process.stdout.columns||80,o=n?.noInputFiles!==!0?`[${m(1760,null)}...]`:"",a=[`${e} ${s}`];a.push(""),a.push(`${m(1761,null)}: ${t} [${m(1762,null)}]${o}`),a.push(""),n?.noPipe!==!0&&(me?a.push(m(1763,null,t)):a.push(m(1764,null,t)),a.push(""));const c={},l=[];for(const u in i){const h=i[u];if(h.type==="subcommand")h.description&&l.push({command:u,description:h.description});else if(h.description&&h.cat){let d=c[h.cat];d||(c[h.cat]=d={}),d[u]=h}}for(const u in c){const h=u,d=c[h];d&&(a.push(E5[h]),a.push(...vN(d,r)),a.push(""))}return l.length&&(a.push(m(1765,null)),a.push(...v5(l.map(u=>[u.command,u.description]),r)),a.push("")),a.join(` `)}function EN(e,t){return`${e||m(1766,null)} ${t||m(1767,null)} ${process.arch}`}var y5,E5,Ye,x5,Uu=v({"out-build/vs/platform/environment/node/argv.js"(){"use strict";y5=Iv(Av(),1),Q(),pe(),E5={o:m(1720,null),e:m(1721,null),t:m(1722,null)},Ye={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:m(1723,null)},"disable-telemetry":{type:"boolean"},"telemetry-level":{type:"string"},user:{type:"subcommand",options:{login:{type:"subcommand",options:{provider:{type:"string"},"access-token":{type:"string"}}}}}}},"serve-web":{type:"subcommand",description:"Run a server that displays the editor UI in browsers.",options:{"cli-data-dir":{type:"string",args:"dir",description:m(1724,null)},"disable-telemetry":{type:"boolean"},"telemetry-level":{type:"string"}}},diff:{type:"boolean",cat:"o",alias:"d",args:["file","file"],description:m(1725,null)},merge:{type:"boolean",cat:"o",alias:"m",args:["path1","path2","base","result"],description:m(1726,null)},add:{type:"boolean",cat:"o",alias:"a",args:"folder",description:m(1727,null)},goto:{type:"boolean",cat:"o",alias:"g",args:"file:line[:character]",description:m(1728,null)},"new-window":{type:"boolean",cat:"o",alias:"n",description:m(1729,null)},"reuse-window":{type:"boolean",cat:"o",alias:"r",description:m(1730,null)},wait:{type:"boolean",cat:"o",alias:"w",description:m(1731,null)},waitMarkerFilePath:{type:"string"},locale:{type:"string",cat:"o",args:"locale",description:m(1732,null)},"user-data-dir":{type:"string",cat:"o",args:"dir",description:m(1733,null)},profile:{type:"string",cat:"o",args:"profileName",description:m(1734,null)},help:{type:"boolean",cat:"o",alias:"h",description:m(1735,null)},"extensions-dir":{type:"string",deprecates:["extensionHomePath"],cat:"e",args:"dir",description:m(1736,null)},"extensions-download-dir":{type:"string"},"builtin-extensions-dir":{type:"string"},"list-extensions":{type:"boolean",cat:"e",description:m(1737,null)},"show-versions":{type:"boolean",cat:"e",description:m(1738,null)},category:{type:"string",allowEmptyValue:!0,cat:"e",description:m(1739,null),args:"category"},"install-extension":{type:"string[]",cat:"e",args:"ext-id | path",description:m(1740,null)},"pre-release":{type:"boolean",cat:"e",description:m(1741,null)},"uninstall-extension":{type:"string[]",cat:"e",args:"ext-id",description:m(1742,null)},"update-extensions":{type:"boolean",cat:"e",description:m(1743,null)},"enable-proposed-api":{type:"string[]",allowEmptyValue:!0,cat:"e",args:"ext-id",description:m(1744,null)},version:{type:"boolean",cat:"t",alias:"v",description:m(1745,null)},verbose:{type:"boolean",cat:"t",global:!0,description:m(1746,null)},log:{type:"string[]",cat:"t",args:"level",global:!0,description:m(1747,null)},status:{type:"boolean",alias:"s",cat:"t",description:m(1748,null)},"prof-startup":{type:"boolean",cat:"t",description:m(1749,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:m(1750,null)},"disable-extension":{type:"string[]",cat:"t",args:"ext-id",description:m(1751,null)},sync:{type:"string",cat:"t",description:m(1752,null),args:["on | off"]},"inspect-extensions":{type:"string",allowEmptyValue:!0,deprecates:["debugPluginHost"],args:"port",cat:"t",description:m(1753,null)},"inspect-brk-extensions":{type:"string",allowEmptyValue:!0,deprecates:["debugBrkPluginHost"],args:"port",cat:"t",description:m(1754,null)},"disable-lcd-text":{type:"boolean",cat:"t",description:m(1755,null)},"disable-gpu":{type:"boolean",cat:"t",description:m(1756,null)},"disable-chromium-sandbox":{type:"boolean",cat:"t",description:m(1757,null)},sandbox:{type:"boolean"},telemetry:{type:"boolean",cat:"t",description:m(1758,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"},"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"},"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"},trace:{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"},"locate-shell-integration-path":{type:"string",args:["bash","pwsh","zsh","fish"]},"enable-coi":{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"},_:{type:"string[]"}},x5={onUnknownOption:()=>{},onMultipleValues:()=>{},onEmptyValue:()=>{},onDeprecatedOption:()=>{}}}});import"assert";function k5(e){return e.VSCODE_CLI==="1"}var xN=v({"out-build/vs/platform/environment/node/argvHelper.js"(){"use strict";pe(),Uu()}});function kN(e,t,s){return Math.min(Math.max(e,t),s)}var $N=v({"out-build/vs/base/common/numbers.js"(){"use strict"}});import{spawn as SN}from"child_process";async function T1(e,t,s,i){return s["force-disable-user-env"]?(t.trace("resolveShellEnv(): skipped (--force-disable-user-env)"),{}):me?(t.trace("resolveShellEnv(): skipped (Windows)"),{}):k5(i)&&!s["force-user-env"]?(t.trace("resolveShellEnv(): skipped (VSCODE_CLI is set)"),{}):(k5(i)?t.trace("resolveShellEnv(): running (--force-user-env)"):t.trace("resolveShellEnv(): running (macOS/Linux)"),Fu||(Fu=Zt.withAsyncBody(async(n,r)=>{const o=new vi;let a=1e4;const c=e.getValue("application.shellEnvironmentResolutionTimeout");typeof c=="number"&&(a=kN(c,1,120)*1e3);const l=setTimeout(()=>{o.dispose(!0),r(new Error(m(2076,null)))},a);try{n(await PN(t,o.token))}catch(u){!hr(u)&&!o.token.isCancellationRequested?r(new Error(m(2077,null,Nn(u)))):n({})}finally{clearTimeout(l),o.dispose()}})),Fu)}async function PN(e,t){const s=process.env.ELECTRON_RUN_AS_NODE;e.trace("getUnixShellEnvironment#runAsNode",s);const i=process.env.ELECTRON_NO_ATTACH_CONSOLE;e.trace("getUnixShellEnvironment#noAttach",i);const n=He().replace(/-/g,"").substr(0,12),r=new RegExp(n+"({.*})"+n),o={...process.env,ELECTRON_RUN_AS_NODE:"1",ELECTRON_NO_ATTACH_CONSOLE:"1",VSCODE_RESOLVING_ENVIRONMENT:"1"};e.trace("getUnixShellEnvironment#env",o);const a=await m5(fr,o);return e.trace("getUnixShellEnvironment#shell",a),new Promise((c,l)=>{if(t.isCancellationRequested)return l(new It);const u=ot(a);let h,d;const p="";/^pwsh(-preview)?$/.test(u)?(h=`& '${process.execPath}' ${p} -p '''${n}'' + JSON.stringify(process.env) + ''${n}'''`,d=["-Login","-Command"]):u==="nu"?(h=`^'${process.execPath}' ${p} -p '"${n}" + JSON.stringify(process.env) + "${n}"'`,d=["-i","-l","-c"]):u==="xonsh"?(h=`import os, json; print("${n}", json.dumps(dict(os.environ)), "${n}")`,d=["-i","-l","-c"]):(h=`'${process.execPath}' ${p} -p '"${n}" + JSON.stringify(process.env) + "${n}"'`,u==="tcsh"||u==="csh"?d=["-ic"]:d=["-i","-l","-c"]),e.trace("getUnixShellEnvironment#spawn",JSON.stringify(d),h);const g=SN(a,[...d,h],{detached:!0,stdio:["ignore","pipe","pipe"],env:o});t.onCancellationRequested(()=>(g.kill(),l(new It))),g.on("error",x=>{e.error("getUnixShellEnvironment#errorChildProcess",Nn(x)),l(x)});const w=[];g.stdout.on("data",x=>w.push(x));const y=[];g.stderr.on("data",x=>y.push(x)),g.on("close",(x,k)=>{const A=Buffer.concat(w).toString("utf8");e.trace("getUnixShellEnvironment#raw",A);const I=Buffer.concat(y).toString("utf8");if(I.trim()&&e.trace("getUnixShellEnvironment#stderr",I),x||k)return l(new Error(m(2078,null,x,k)));const R=r.exec(A),q=R?R[1]:"{}";try{const ee=JSON.parse(q);s?ee.ELECTRON_RUN_AS_NODE=s:delete ee.ELECTRON_RUN_AS_NODE,i?ee.ELECTRON_NO_ATTACH_CONSOLE=i:delete ee.ELECTRON_NO_ATTACH_CONSOLE,delete ee.VSCODE_RESOLVING_ENVIRONMENT,delete ee.XDG_RUNTIME_DIR,e.trace("getUnixShellEnvironment#result",ee),c(ee)}catch(ee){e.error("getUnixShellEnvironment#errorCaught",Nn(ee)),l(ee)}})})}var Fu,M1=v({"out-build/vs/platform/shell/node/shellEnv.js"(){"use strict";he(),pe(),Dt(),br(),de(),Q(),Wt(),g5(),xN(),Me(),$N(),Fu=void 0}});import{parse as $5}from"url";function IN(e,t){return e.protocol==="http:"?t.HTTP_PROXY||t.http_proxy||null:e.protocol==="https:"&&(t.HTTPS_PROXY||t.https_proxy||t.HTTP_PROXY||t.http_proxy)||null}async function AN(e,t,s={}){const i=$5(e),n=s.proxyUrl||IN(i,t);if(!n)return null;const r=$5(n);if(!/^https?:$/.test(r.protocol||""))return null;const o={host:r.hostname||"",port:(r.port?+r.port:0)||(r.protocol==="https"?443:80),auth:r.auth,rejectUnauthorized:Dn(s.strictSSL)?s.strictSSL:!0};if(i.protocol==="http:"){const{default:a}=await import("http-proxy-agent");return new a.HttpProxyAgent(n,o)}else{const{default:a}=await import("https-proxy-agent");return new a.HttpsProxyAgent(n,o)}}var DN=v({"out-build/vs/platform/request/node/proxy.js"(){"use strict";xe()}});import{parse as S5}from"url";import{createGunzip as NN}from"zlib";async function RN(e){return(S5(e.url).protocol==="https:"?await import("https"):await import("http")).request}async function P5(e,t){return Zt.withAsyncBody(async(s,i)=>{const n=S5(e.url),r=e.getRawRequest?e.getRawRequest(e):await RN(e),o={hostname:n.hostname,port:n.port?parseInt(n.port):n.protocol==="https:"?443:80,protocol:n.protocol,path:n.path,method:e.type||"GET",headers:e.headers,agent:e.agent,rejectUnauthorized:Dn(e.strictSSL)?e.strictSSL:!0};e.user&&e.password&&(o.auth=e.user+":"+e.password);const a=r(o,c=>{const l=An(e.followRedirects)?e.followRedirects:3;if(c.statusCode&&c.statusCode>=300&&c.statusCode<400&&l>0&&c.headers.location)P5({...e,url:c.headers.location,followRedirects:l-1},t).then(s,i);else{let u=c;!e.isChromiumNetwork&&c.headers["content-encoding"]==="gzip"&&(u=c.pipe(NN())),s({res:c,stream:JA(u)})}});a.on("error",i),e.timeout&&a.setTimeout(e.timeout),e.isChromiumNetwork&&a.removeHeader("Content-Length"),e.data&&typeof e.data=="string"&&a.write(e.data),a.end(),t.onCancellationRequested(()=>{a.abort(),i(new It)})})}var pc,I5=v({"out-build/vs/platform/request/node/requestService.js"(){"use strict";Me(),Ue(),de(),xe(),$s(),fs(),M1(),De(),Ir(),DN(),pc=class extends G4{constructor(t,s,i){super(i),this.m=t,this.n=s,this.r(),this.B(t.onDidChangeConfiguration(n=>{n.affectsConfiguration("http")&&this.r()}))}r(){const t=this.m.getValue("http");this.f=t?.proxy,this.g=!!t?.proxyStrictSSL,this.h=t?.proxyAuthorization}async request(t,s){const{f:i,g:n}=this;let r;try{r=await T1(this.m,this.b,this.n.args,process.env)}catch(c){this.j||(this.j=!0,this.b.error("resolving shell environment failed",Pe(c)))}const o={...process.env,...r},a=t.agent?t.agent:await AN(t.url||"",o,{proxyUrl:i,strictSSL:n});return t.agent=a,t.strictSSL=n,this.h&&(t.headers={...t.headers||{},"Proxy-Authorization":this.h}),this.c(t,()=>P5(t,s))}async resolveProxy(t){}async lookupAuthorization(t){}async lookupKerberosAuthorization(t){try{const s=await import("kerberos"),i=new URL(t),n=this.m.getValue("http.proxyKerberosServicePrincipal")||(process.platform==="win32"?`HTTP/${i.hostname}`:`HTTP@${i.hostname}`);return this.b.debug("RequestService#lookupKerberosAuthorization Kerberos authentication lookup",`proxyURL:${i}`,`spn:${n}`),"Negotiate "+await(await s.initializeClient(n)).step("")}catch(s){this.b.debug("RequestService#lookupKerberosAuthorization Kerberos authentication failed",s);return}}async loadCertificates(){return(await import("@vscode/proxy-agent")).loadSystemCertificates({log:this.b})}},pc=__decorate([__param(0,hs),__param(1,Hs),__param(2,fe)],pc)}});function A5(e){if(!e)return;const t=e.indexOf("+");return t<0?e:e.substr(0,t)}var U1=v({"out-build/vs/platform/remote/common/remoteHosts.js"(){"use strict";Ie()}});function LN(e){if(so===2&&/^penguin(\.|$)/i.test(e))return"chromebook"}function ON(e,t,s,i,n,r,o,a,c,l){const u=Object.create(null);u["common.machineId"]=r,u["common.sqmId"]=o,u["common.devDeviceId"]=a,u.sessionID=He()+Date.now(),u.commitHash=i,u.version=n,u["common.platformVersion"]=(e||"").replace(/^(\d+)(\.\d+)?(\.\d+)?(.*)/,"$1$2$3"),u["common.platform"]=zv(so),u["common.nodePlatform"]=Op,u["common.nodeArch"]=s,u["common.product"]=l||"desktop",c&&(u["common.msftInternal"]=c);let h=0;const d=Date.now();Object.defineProperties(u,{timestamp:{get:()=>new Date,enumerable:!0},"common.timesincesessionstart":{get:()=>Date.now()-d,enumerable:!0},"common.sequence":{get:()=>h++,enumerable:!0}}),Xv&&(u["common.snap"]="true");const p=LN(t);return p&&(u["common.platformDetail"]=p),u}function CN(e){const t=Cs.USERDNSDOMAIN;if(!t)return!1;const s=t.toLowerCase();return e.some(i=>s===i)}var D5=v({"out-build/vs/platform/telemetry/common/commonProperties.js"(){"use strict";Q(),ei(),Wt()}}),qt,jN,F1,mc,B1,Bu,N5,R5,Is=v({"out-build/vs/platform/telemetry/common/telemetry.js"(){"use strict";re(),qt=ie("telemetryService"),jN=ie("customEndpointTelemetryService"),F1="telemetry",mc="telemetry.telemetryLevel",B1="telemetry.enableCrashReporter",Bu="telemetry.enableTelemetry",function(e){e[e.NONE=0]="NONE",e[e.CRASH=1]="CRASH",e[e.ERROR=2]="ERROR",e[e.USAGE=3]="USAGE"}(N5||(N5={})),function(e){e.OFF="off",e.CRASH="crash",e.ERROR="error",e.ON="all"}(R5||(R5={}))}});function L5(e,t){return!t.isBuilt&&!t.disableTelemetry?!0:!(t.disableTelemetry||!e.enableTelemetry)}function _N(e,t){return t.extensionTestsLocationURI?!0:!(t.isBuilt||t.disableTelemetry||e.enableTelemetry&&e.aiConfig?.ariaKey)}function O5(e){const t=e.getValue(mc),s=e.getValue(B1);if(e.getValue(Bu)===!1||s===!1)return 0;switch(t??"all"){case"all":return 3;case"error":return 2;case"crash":return 1;case"off":return 0}}function TN(e){const t={},s={},i={};C5(e,i);for(let n in i){n=n.length>150?n.substr(n.length-149):n;const r=i[n];typeof r=="number"?s[n]=r:typeof r=="boolean"?s[n]=r?1:0:typeof r=="string"?(r.length>8192&&console.warn(`Telemetry property: ${n} has been trimmed to 8192, the original length is ${r.length}`),t[n]=r.substring(0,8191)):typeof r<"u"&&r!==null&&(t[n]=r)}return{properties:t,measurements:s}}function MN(e){if(!e)return"none";const t=A5(e);return M5.has(t)?t:"other"}function C5(e,t,s=0,i){if(e)for(const n of Object.getOwnPropertyNames(e)){const r=e[n],o=i?i+n:n;Array.isArray(r)?t[o]=b1(r):r instanceof Date?t[o]=r.toISOString():ut(r)?s<2?C5(r,t,s+1,o+"."):t[o]=b1(r):t[o]=r}}function UN(e,t){const s=e.msftInternalDomains||[],i=t.getValue("telemetry.internalTesting");return CN(s)||i}function FN(e){return[e.appRoot,e.extensionsPath,e.userHome.fsPath,e.tmpDir.fsPath,e.userDataPath]}function BN(e,t){if(!e||!e.includes("/")&&!e.includes("\\"))return e;let s=e;const i=[];for(const a of t)for(;;){const c=a.exec(e);if(!c)break;i.push([c.index,a.lastIndex])}const n=/^[\\\/]?(node_modules|node_modules\.asar)[\\\/]/,r=/(file:\/\/)?([a-zA-Z]:(\\\\|\\|\/)|(\\\\|\\|\/))?([\w-\._]+(\\\\|\\|\/))+[\w-\._]*/g;let o=0;for(s="";;){const a=r.exec(e);if(!a)break;const c=i.some(([l,u])=>a.index<u&&l<r.lastIndex);!n.test(a[0])&&!c&&(s+=e.substring(o,a.index)+"<REDACTED: user-file-path>",o=r.lastIndex)}return o<e.length&&(s+=e.substr(o)),s}function zN(e){if(!e)return e;const t=[{label:"Google API Key",regex:/AIza[A-Za-z0-9_\\\-]{35}/},{label:"Slack Token",regex:/xox[pbar]\-[A-Za-z0-9]/},{label:"GitHub Token",regex:/(gh[psuro]_[a-zA-Z0-9]{36}|github_pat_[a-zA-Z0-9]{22}_[a-zA-Z0-9]{59})/},{label:"Generic Secret",regex:/(key|token|sig|secret|signature|password|passwd|pwd|android:value)[^a-zA-Z0-9]/i},{label:"CLI Credentials",regex:/((login|psexec|(certutil|psexec)\.exe).{1,50}(\s-u(ser(name)?)?\s+.{3,100})?\s-(admin|user|vm|root)?p(ass(word)?)?\s+["']?[^$\-\/\s]|(^|[\s\r\n\\])net(\.exe)?.{1,5}(user\s+|share\s+\/user:| user -? secrets ? set) \s + [^ $\s \/])/},{label:"Microsoft Entra ID",regex:/eyJ(?:0eXAiOiJKV1Qi|hbGci|[a-zA-Z0-9\-_]+\.[a-zA-Z0-9\-_]+\.)/},{label:"Email",regex:/@[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+/}];for(const s of t)if(s.regex.test(e))return`<REDACTED: ${s.label}>`;return e}function z1(e,t){return nn(e,s=>{if(s instanceof gc||Object.hasOwnProperty.call(s,"isTrustedTelemetryValue"))return s.value;if(typeof s=="string"){let i=s.replaceAll("%20"," ");i=BN(i,t);for(const n of t)i=i.replace(n,"");return i=zN(i),i}})}var gc,H1,j5,_5,T5,M5,on=v({"out-build/vs/platform/telemetry/common/telemetryUtils.js"(){"use strict";Kt(),xe(),U1(),D5(),Is(),gc=class{constructor(e){this.value=e,this.isTrustedTelemetryValue=!0}},H1=class{constructor(){this.telemetryLevel=0,this.sessionId="someValue.sessionId",this.machineId="someValue.machineId",this.sqmId="someValue.sqmId",this.devDeviceId="someValue.devDeviceId",this.firstSessionDate="someValue.firstSessionDate",this.sendErrorTelemetry=!1}publicLog(){}publicLog2(){}publicLogError(){}publicLogError2(){}setExperimentProperty(){}},j5=new H1,_5="extensionTelemetryLog",T5={log:()=>null,flush:()=>Promise.resolve(void 0)},M5=new Set(["ssh-remote","dev-container","attached-container","wsl","tunnel","codespaces","amlext"])}});function HN(e){switch(e){case"win32-x64":return"Windows 64 bit";case"win32-arm64":return"Windows ARM";case"linux-x64":return"Linux 64 bit";case"linux-arm64":return"Linux ARM 64";case"linux-armhf":return"Linux ARM";case"alpine-x64":return"Alpine Linux 64 bit";case"alpine-arm64":return"Alpine ARM 64";case"darwin-x64":return"Mac";case"darwin-arm64":return"Mac Silicon";case"web":return"Web";case"universal":return"universal";case"unknown":return"unknown";case"undefined":return"undefined"}}function VN(e){switch(e){case"win32-x64":return"win32-x64";case"win32-arm64":return"win32-arm64";case"linux-x64":return"linux-x64";case"linux-arm64":return"linux-arm64";case"linux-armhf":return"linux-armhf";case"alpine-x64":return"alpine-x64";case"alpine-arm64":return"alpine-arm64";case"darwin-x64":return"darwin-x64";case"darwin-arm64":return"darwin-arm64";case"web":return"web";case"universal":return"universal";default:return"unknown"}}function U5(e,t){switch(e){case 3:return t==="x64"?"win32-x64":t==="arm64"?"win32-arm64":"unknown";case 2:return t==="x64"?"linux-x64":t==="arm64"?"linux-arm64":t==="arm"?"linux-armhf":"unknown";case"alpine":return t==="x64"?"alpine-x64":t==="arm64"?"alpine-arm64":"unknown";case 1:return t==="x64"?"darwin-x64":t==="arm64"?"darwin-arm64":"unknown";case 0:return"web"}}function wc(e,t){return t==="web"&&!e.includes("web")}function V1(e,t,s){return wc(t,s)?!1:e==="undefined"||e==="universal"?!0:e==="unknown"?!1:e===s}function WN(e){return e&&typeof e=="object"&&typeof e.id=="string"&&(!e.uuid||typeof e.uuid=="string")}var F5,B5,z5,W1,H5,V5,W5,q5,G5,J5,X5,ii,Y5,vc,Q5,Gt,Qe,zu,qN,GN,JN,XN,As=v({"out-build/vs/platform/extensionManagement/common/extensionManagement.js"(){"use strict";pe(),re(),F5="^([a-z0-9A-Z][a-z0-9-A-Z]*)\\.([a-z0-9A-Z][a-z0-9-A-Z]*)$",B5=new RegExp(F5),z5="__web_extension",W1="extensionInstallSource",H5="dependecyOrPackExtensionInstall",V5="clientTargetPlatform",function(e){e.COMMAND="command",e.SETTINGS_SYNC="settingsSync"}(W5||(W5={})),function(e){e[e.NoneOrRelevance=0]="NoneOrRelevance",e[e.LastUpdatedDate=1]="LastUpdatedDate",e[e.Title=2]="Title",e[e.PublisherName=3]="PublisherName",e[e.InstallCount=4]="InstallCount",e[e.PublishedDate=10]="PublishedDate",e[e.AverageRating=6]="AverageRating",e[e.WeightedRating=12]="WeightedRating"}(q5||(q5={})),function(e){e[e.Default=0]="Default",e[e.Ascending=1]="Ascending",e[e.Descending=2]="Descending"}(G5||(G5={})),function(e){e.Install="install",e.Uninstall="uninstall"}(J5||(J5={})),function(e){e[e.None=1]="None",e[e.Install=2]="Install",e[e.Update=3]="Update",e[e.Migrate=4]="Migrate"}(X5||(X5={})),ii=ie("extensionGalleryService"),function(e){e.Timeout="Timeout",e.Cancelled="Cancelled",e.Failed="Failed",e.DownloadFailedWriting="DownloadFailedWriting",e.Offline="Offline"}(Y5||(Y5={})),vc=class extends Error{constructor(e,t){super(e),this.code=t,this.name=t}},function(e){e.Unsupported="Unsupported",e.Deprecated="Deprecated",e.Malicious="Malicious",e.Incompatible="Incompatible",e.IncompatibleApi="IncompatibleApi",e.IncompatibleTargetPlatform="IncompatibleTargetPlatform",e.ReleaseVersionNotFound="ReleaseVersionNotFound",e.Invalid="Invalid",e.Download="Download",e.DownloadSignature="DownloadSignature",e.DownloadFailedWriting="DownloadFailedWriting",e.UpdateMetadata="UpdateMetadata",e.Extract="Extract",e.Scanning="Scanning",e.ScanningExtension="ScanningExtension",e.ReadUninstalled="ReadUninstalled",e.UnsetUninstalled="UnsetUninstalled",e.Delete="Delete",e.Rename="Rename",e.IntializeDefaultProfile="IntializeDefaultProfile",e.AddToProfile="AddToProfile",e.InstalledExtensionNotFound="InstalledExtensionNotFound",e.PostInstall="PostInstall",e.CorruptZip="CorruptZip",e.IncompleteZip="IncompleteZip",e.PackageNotSigned="PackageNotSigned",e.SignatureVerificationInternal="SignatureVerificationInternal",e.SignatureVerificationFailed="SignatureVerificationFailed",e.NotAllowed="NotAllowed",e.Gallery="Gallery",e.Cancelled="Cancelled",e.Unknown="Unknown",e.Internal="Internal"}(Q5||(Q5={})),function(e){e.Success="Success",e.RequiredArgumentMissing="RequiredArgumentMissing",e.InvalidArgument="InvalidArgument",e.PackageIsUnreadable="PackageIsUnreadable",e.UnhandledException="UnhandledException",e.SignatureManifestIsMissing="SignatureManifestIsMissing",e.SignatureManifestIsUnreadable="SignatureManifestIsUnreadable",e.SignatureIsMissing="SignatureIsMissing",e.SignatureIsUnreadable="SignatureIsUnreadable",e.CertificateIsUnreadable="CertificateIsUnreadable",e.SignatureArchiveIsUnreadable="SignatureArchiveIsUnreadable",e.FileAlreadyExists="FileAlreadyExists",e.SignatureArchiveIsInvalidZip="SignatureArchiveIsInvalidZip",e.SignatureArchiveHasSameSignatureFile="SignatureArchiveHasSameSignatureFile",e.PackageIntegrityCheckFailed="PackageIntegrityCheckFailed",e.SignatureIsInvalid="SignatureIsInvalid",e.SignatureManifestIsInvalid="SignatureManifestIsInvalid",e.SignatureIntegrityCheckFailed="SignatureIntegrityCheckFailed",e.EntryIsMissing="EntryIsMissing",e.EntryIsTampered="EntryIsTampered",e.Untrusted="Untrusted",e.CertificateRevoked="CertificateRevoked",e.SignatureIsNotValid="SignatureIsNotValid",e.UnknownError="UnknownError",e.PackageIsInvalidZip="PackageIsInvalidZip",e.SignatureArchiveHasTooManyEntries="SignatureArchiveHasTooManyEntries"}(Gt||(Gt={})),Qe=class extends Error{constructor(e,t){super(e),this.code=t,this.name=t}},zu=ie("extensionManagementService"),qN=ie("IGlobalExtensionEnablementService"),GN=ie("IExtensionTipsService"),JN=Fv(1787,"Extensions"),XN=Fv(1788,"Preferences")}});function YN(e){return e instanceof Z5?!0:e instanceof Error&&e.name===Hu&&e.message===Hu}var Hu,Z5,QN=v({"out-build/vs/base/parts/request/common/request.js"(){"use strict";Hu="Offline",Z5=class extends Error{constructor(){super(Hu),this.name=this.message}}}});function K5(e){return ZN(e)}function ZN(e){return e.contributes&&e.contributes.localizations?e.contributes.localizations.length>0:!1}function KN(e){return e.map(t=>{const[s,i]=t.split("@");return{proposalName:s,version:i?parseInt(i):void 0}})}function eR(e){return e.map(t=>t.split("@")[0])}var q1,e6,G1,t6,s6,i6,Tn,J1,tR,$i=v({"out-build/vs/platform/extensions/common/extensions.js"(){"use strict";rt(),re(),U1(),q1="extensions.user.cache",e6="extensions.builtin.cache",G1="undefined_publisher",t6=["AI","Azure","Chat","Data Science","Debuggers","Extension Packs","Education","Formatters","Keymaps","Language Packs","Linters","Machine Learning","Notebooks","Programming Languages","SCM Providers","Snippets","Testing","Themes","Visualization","Other"],function(e){e[e.System=0]="System",e[e.User=1]="User"}(s6||(s6={})),function(e){e.WIN32_X64="win32-x64",e.WIN32_ARM64="win32-arm64",e.LINUX_X64="linux-x64",e.LINUX_ARM64="linux-arm64",e.LINUX_ARMHF="linux-armhf",e.ALPINE_X64="alpine-x64",e.ALPINE_ARM64="alpine-arm64",e.DARWIN_X64="darwin-x64",e.DARWIN_ARM64="darwin-arm64",e.WEB="web",e.UNIVERSAL="universal",e.UNKNOWN="unknown",e.UNDEFINED="undefined"}(i6||(i6={})),Tn=class{constructor(e){this.value=e,this._lower=e.toLowerCase()}static equals(e,t){if(typeof e>"u"||e===null)return typeof t>"u"||t===null;if(typeof t>"u"||t===null)return!1;if(typeof e=="string"||typeof t=="string"){const s=typeof e=="string"?e:e.value,i=typeof t=="string"?t:t.value;return Pn(s,i)}return e._lower===t._lower}static toKey(e){return typeof e=="string"?e.toLowerCase():e._lower}},J1=class{constructor(){this.c=new Map}clear(){this.c.clear()}delete(e){this.c.delete(Tn.toKey(e))}get(e){return this.c.get(Tn.toKey(e))}has(e){return this.c.has(Tn.toKey(e))}set(e,t){this.c.set(Tn.toKey(e),t)}values(){return this.c.values()}forEach(e){this.c.forEach(e)}[Symbol.iterator](){return this.c[Symbol.iterator]()}},tR=ie("IBuiltinExtensionsScannerService")}});function ye(e,t){return e.uuid&&t.uuid?e.uuid===t.uuid:e.id===t.id?!0:Rp(e.id,t.id)===0}function X1(e){const t=a6.exec(e);return t&&t[1]?[Vu(t[1]),t[2]]:[Vu(e),void 0]}function Y1(e,t){return`${e}.${t}`}function Vu(e){return e.toLowerCase()}function an(e,t){return Vu(Y1(e??G1,t))}function n6(e,t){const s=[],i=n=>{for(const r of s)if(r.some(o=>ye(t(o),t(n))))return r;return null};for(const n of e){const r=i(n);r?r.push(n):s.push([n])}return s}function sR(e){return{id:e.identifier.id,name:e.manifest.name,galleryId:null,publisherId:e.publisherId,publisherName:e.manifest.publisher,publisherDisplayName:e.publisherDisplayName,dependencies:e.manifest.extensionDependencies&&e.manifest.extensionDependencies.length>0}}function Q1(e){return{id:new gc(e.identifier.id),name:new gc(e.name),version:e.version,galleryId:e.identifier.uuid,publisherId:e.publisherId,publisherName:e.publisher,publisherDisplayName:e.publisherDisplayName,isPreReleaseVersion:e.properties.isPreReleaseVersion,dependencies:!!(e.properties.dependencies&&e.properties.dependencies.length>0),isSigned:e.isSigned,...e.telemetryData}}async function iR(e,t){if(!it)return!1;let s;try{s=(await e.readFile(E.file("/etc/os-release"))).value.toString()}catch{try{s=(await e.readFile(E.file("/usr/lib/os-release"))).value.toString()}catch(n){t.debug("Error while getting the os-release file.",Pe(n))}}return!!s&&(s.match(/^ID=([^\u001b\r\n]*)/m)||[])[1]==="alpine"}async function r6(e,t){const s=await iR(e,t),i=U5(s?"alpine":so,Cp);return t.debug("ComputeTargetPlatform:",i),i}var o6,ts,a6,nR,cn=v({"out-build/vs/platform/extensionManagement/common/extensionManagementUtil.js"(){"use strict";rt(),As(),$i(),Q(),te(),de(),ei(),on(),o6=/^([^.]+\..+)-(\d+\.\d+\.\d+)(-(.+))?$/,ts=class Kd{static create(t){const s=t.manifest?t.manifest.version:t.version,i=t.manifest?t.targetPlatform:t.properties.targetPlatform;return new Kd(t.identifier,s,i)}static parse(t){const s=o6.exec(t);return s&&s[1]&&s[2]?new Kd({id:s[1]},s[2],s[4]||void 0):null}constructor(t,s,i="undefined"){this.identifier=t,this.version=s,this.targetPlatform=i,this.id=t.id}toString(){return`${this.id}-${this.version}${this.targetPlatform!=="undefined"?`-${this.targetPlatform}`:""}`}equals(t){return t instanceof Kd?ye(this,t)&&this.version===t.version&&this.targetPlatform===t.targetPlatform:!1}},a6=/^([^.]+\..+)@((prerelease)|(\d+\.\d+\.\d+(-.*)?))$/,nR=new Tn("pprice.better-merge")}}),bc,Ze,Wu=v({"out-build/vs/base/common/severity.js"(){"use strict";rt(),function(e){e[e.Ignore=0]="Ignore",e[e.Info=1]="Info",e[e.Warning=2]="Warning",e[e.Error=3]="Error"}(bc||(bc={})),function(e){const t="error",s="warning",i="warn",n="info",r="ignore";function o(c){return c?Pn(t,c)?e.Error:Pn(s,c)||Pn(i,c)?e.Warning:Pn(n,c)?e.Info:e.Ignore:e.Ignore}e.fromValue=o;function a(c){switch(c){case e.Error:return t;case e.Warning:return s;case e.Info:return n;default:return r}}e.toString=a}(bc||(bc={})),Ze=bc}}),yc,we,rR,oR,c6,aR,cR,lR,uR,hR,fR,dR,qu,l6,pR,mR,u6,gR,wR,vR,Z1,bR,yR,ER,xR,kR,$R,SR,PR,IR,AR,DR,NR,RR,LR,OR,CR,jR,_R,Ao=v({"out-build/vs/base/common/semver/semver.js"(){"use strict";yc={},we={exports:yc},function(e,t){if(typeof yc=="object"&&typeof we=="object")we.exports=t();else if(typeof define=="function"&&define.amd)define([],t);else{var s=t();for(var i in s)(typeof yc=="object"?yc:e)[i]=s[i]}}(typeof self<"u"?self:void 0,function(){return function(e){var t={};function s(i){if(t[i])return t[i].exports;var n=t[i]={i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,s),n.l=!0,n.exports}return s.m=e,s.c=t,s.d=function(i,n,r){s.o(i,n)||Object.defineProperty(i,n,{enumerable:!0,get:r})},s.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},s.t=function(i,n){if(1&n&&(i=s(i)),8&n||4&n&&typeof i=="object"&&i&&i.__esModule)return i;var r=Object.create(null);if(s.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:i}),2&n&&typeof i!="string")for(var o in i)s.d(r,o,function(a){return i[a]}.bind(null,o));return r},s.n=function(i){var n=i&&i.__esModule?function(){return i.default}:function(){return i};return s.d(n,"a",n),n},s.o=function(i,n){return Object.prototype.hasOwnProperty.call(i,n)},s.p="",s(s.s=0)}([function(e,t,s){(function(i){var n;t=e.exports=Oe,n=typeof i=="object"&&i.env&&i.env.NODE_DEBUG&&/\bsemver\b/i.test(i.env.NODE_DEBUG)?function(){var b=Array.prototype.slice.call(arguments,0);b.unshift("SEMVER"),console.log.apply(console,b)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var r=256,o=Number.MAX_SAFE_INTEGER||9007199254740991,a=t.re=[],c=t.src=[],l=0,u=l++;c[u]="0|[1-9]\\d*";var h=l++;c[h]="[0-9]+";var d=l++;c[d]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var p=l++;c[p]="("+c[u]+")\\.("+c[u]+")\\.("+c[u]+")";var g=l++;c[g]="("+c[h]+")\\.("+c[h]+")\\.("+c[h]+")";var w=l++;c[w]="(?:"+c[u]+"|"+c[d]+")";var y=l++;c[y]="(?:"+c[h]+"|"+c[d]+")";var x=l++;c[x]="(?:-("+c[w]+"(?:\\."+c[w]+")*))";var k=l++;c[k]="(?:-?("+c[y]+"(?:\\."+c[y]+")*))";var A=l++;c[A]="[0-9A-Za-z-]+";var I=l++;c[I]="(?:\\+("+c[A]+"(?:\\."+c[A]+")*))";var R=l++,q="v?"+c[p]+c[x]+"?"+c[I]+"?";c[R]="^"+q+"$";var ee="[v=\\s]*"+c[g]+c[k]+"?"+c[I]+"?",V=l++;c[V]="^"+ee+"$";var L=l++;c[L]="((?:<|>)?=?)";var le=l++;c[le]=c[h]+"|x|X|\\*";var ue=l++;c[ue]=c[u]+"|x|X|\\*";var K=l++;c[K]="[v=\\s]*("+c[ue]+")(?:\\.("+c[ue]+")(?:\\.("+c[ue]+")(?:"+c[x]+")?"+c[I]+"?)?)?";var ht=l++;c[ht]="[v=\\s]*("+c[le]+")(?:\\.("+c[le]+")(?:\\.("+c[le]+")(?:"+c[k]+")?"+c[I]+"?)?)?";var C=l++;c[C]="^"+c[L]+"\\s*"+c[K]+"$";var N=l++;c[N]="^"+c[L]+"\\s*"+c[ht]+"$";var U=l++;c[U]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var _=l++;c[_]="(?:~>?)";var G=l++;c[G]="(\\s*)"+c[_]+"\\s+",a[G]=new RegExp(c[G],"g");var ce=l++;c[ce]="^"+c[_]+c[K]+"$";var $e=l++;c[$e]="^"+c[_]+c[ht]+"$";var Je=l++;c[Je]="(?:\\^)";var vt=l++;c[vt]="(\\s*)"+c[Je]+"\\s+",a[vt]=new RegExp(c[vt],"g");var Fi=l++;c[Fi]="^"+c[Je]+c[K]+"$";var cr=l++;c[cr]="^"+c[Je]+c[ht]+"$";var Bi=l++;c[Bi]="^"+c[L]+"\\s*("+ee+")$|^$";var Yr=l++;c[Yr]="^"+c[L]+"\\s*("+q+")$|^$";var hi=l++;c[hi]="(\\s*)"+c[L]+"\\s*("+ee+"|"+c[K]+")",a[hi]=new RegExp(c[hi],"g");var zl=l++;c[zl]="^\\s*("+c[K]+")\\s+-\\s+("+c[K]+")\\s*$";var Hl=l++;c[Hl]="^\\s*("+c[ht]+")\\s+-\\s+("+c[ht]+")\\s*$";var kv=l++;c[kv]="(<|>)?=?\\s*\\*";for(var lr=0;lr<35;lr++)n(lr,c[lr]),a[lr]||(a[lr]=new RegExp(c[lr]));function ur(b,$){if(b instanceof Oe)return b;if(typeof b!="string"||b.length>r||!($?a[V]:a[R]).test(b))return null;try{return new Oe(b,$)}catch{return null}}function Oe(b,$){if(b instanceof Oe){if(b.loose===$)return b;b=b.version}else if(typeof b!="string")throw new TypeError("Invalid Version: "+b);if(b.length>r)throw new TypeError("version is longer than "+r+" characters");if(!(this instanceof Oe))return new Oe(b,$);n("SemVer",b,$),this.loose=$;var P=b.trim().match($?a[V]:a[R]);if(!P)throw new TypeError("Invalid Version: "+b);if(this.raw=b,this.major=+P[1],this.minor=+P[2],this.patch=+P[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");P[4]?this.prerelease=P[4].split(".").map(function(W){if(/^[0-9]+$/.test(W)){var se=+W;if(se>=0&&se<o)return se}return W}):this.prerelease=[],this.build=P[5]?P[5].split("."):[],this.format()}t.parse=ur,t.valid=function(b,$){var P=ur(b,$);return P?P.version:null},t.clean=function(b,$){var P=ur(b.trim().replace(/^[=v]+/,""),$);return P?P.version:null},t.SemVer=Oe,Oe.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},Oe.prototype.toString=function(){return this.version},Oe.prototype.compare=function(b){return n("SemVer.compare",this.version,this.loose,b),b instanceof Oe||(b=new Oe(b,this.loose)),this.compareMain(b)||this.comparePre(b)},Oe.prototype.compareMain=function(b){return b instanceof Oe||(b=new Oe(b,this.loose)),Qr(this.major,b.major)||Qr(this.minor,b.minor)||Qr(this.patch,b.patch)},Oe.prototype.comparePre=function(b){if(b instanceof Oe||(b=new Oe(b,this.loose)),this.prerelease.length&&!b.prerelease.length)return-1;if(!this.prerelease.length&&b.prerelease.length)return 1;if(!this.prerelease.length&&!b.prerelease.length)return 0;var $=0;do{var P=this.prerelease[$],W=b.prerelease[$];if(n("prerelease compare",$,P,W),P===void 0&&W===void 0)return 0;if(W===void 0)return 1;if(P===void 0)return-1;if(P!==W)return Qr(P,W)}while(++$)},Oe.prototype.inc=function(b,$){switch(b){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",$);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",$);break;case"prepatch":this.prerelease.length=0,this.inc("patch",$),this.inc("pre",$);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",$),this.inc("pre",$);break;case"major":this.minor===0&&this.patch===0&&this.prerelease.length!==0||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":this.patch===0&&this.prerelease.length!==0||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{for(var P=this.prerelease.length;--P>=0;)typeof this.prerelease[P]=="number"&&(this.prerelease[P]++,P=-2);P===-1&&this.prerelease.push(0)}$&&(this.prerelease[0]===$?isNaN(this.prerelease[1])&&(this.prerelease=[$,0]):this.prerelease=[$,0]);break;default:throw new Error("invalid increment argument: "+b)}return this.format(),this.raw=this.version,this},t.inc=function(b,$,P,W){typeof P=="string"&&(W=P,P=void 0);try{return new Oe(b,P).inc($,W).version}catch{return null}},t.diff=function(b,$){if(ap(b,$))return null;var P=ur(b),W=ur($);if(P.prerelease.length||W.prerelease.length){for(var se in P)if((se==="major"||se==="minor"||se==="patch")&&P[se]!==W[se])return"pre"+se;return"prerelease"}for(var se in P)if((se==="major"||se==="minor"||se==="patch")&&P[se]!==W[se])return se},t.compareIdentifiers=Qr;var $v=/^[0-9]+$/;function Qr(b,$){var P=$v.test(b),W=$v.test($);return P&&W&&(b=+b,$=+$),P&&!W?-1:W&&!P?1:b<$?-1:b>$?1:0}function zi(b,$,P){return new Oe(b,P).compare(new Oe($,P))}function Vl(b,$,P){return zi(b,$,P)>0}function Wl(b,$,P){return zi(b,$,P)<0}function ap(b,$,P){return zi(b,$,P)===0}function Sv(b,$,P){return zi(b,$,P)!==0}function cp(b,$,P){return zi(b,$,P)>=0}function lp(b,$,P){return zi(b,$,P)<=0}function ql(b,$,P,W){var se;switch($){case"===":typeof b=="object"&&(b=b.version),typeof P=="object"&&(P=P.version),se=b===P;break;case"!==":typeof b=="object"&&(b=b.version),typeof P=="object"&&(P=P.version),se=b!==P;break;case"":case"=":case"==":se=ap(b,P,W);break;case"!=":se=Sv(b,P,W);break;case">":se=Vl(b,P,W);break;case">=":se=cp(b,P,W);break;case"<":se=Wl(b,P,W);break;case"<=":se=lp(b,P,W);break;default:throw new TypeError("Invalid operator: "+$)}return se}function Fs(b,$){if(b instanceof Fs){if(b.loose===$)return b;b=b.value}if(!(this instanceof Fs))return new Fs(b,$);n("comparator",b,$),this.loose=$,this.parse(b),this.semver===Ia?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(b,$){return Qr($,b)},t.major=function(b,$){return new Oe(b,$).major},t.minor=function(b,$){return new Oe(b,$).minor},t.patch=function(b,$){return new Oe(b,$).patch},t.compare=zi,t.compareLoose=function(b,$){return zi(b,$,!0)},t.rcompare=function(b,$,P){return zi($,b,P)},t.sort=function(b,$){return b.sort(function(P,W){return t.compare(P,W,$)})},t.rsort=function(b,$){return b.sort(function(P,W){return t.rcompare(P,W,$)})},t.gt=Vl,t.lt=Wl,t.eq=ap,t.neq=Sv,t.gte=cp,t.lte=lp,t.cmp=ql,t.Comparator=Fs;var Ia={};function ft(b,$){if(b instanceof ft)return b.loose===$?b:new ft(b.raw,$);if(b instanceof Fs)return new ft(b.value,$);if(!(this instanceof ft))return new ft(b,$);if(this.loose=$,this.raw=b,this.set=b.split(/\s*\|\|\s*/).map(function(P){return this.parseRange(P.trim())},this).filter(function(P){return P.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+b);this.format()}function os(b){return!b||b.toLowerCase()==="x"||b==="*"}function II(b,$,P,W,se,Ct,Ce,ys,bt,Xt,fi,yt,zt){return(($=os(P)?"":os(W)?">="+P+".0.0":os(se)?">="+P+"."+W+".0":">="+$)+" "+(ys=os(bt)?"":os(Xt)?"<"+(+bt+1)+".0.0":os(fi)?"<"+bt+"."+(+Xt+1)+".0":yt?"<="+bt+"."+Xt+"."+fi+"-"+yt:"<="+ys)).trim()}function AI(b,$){for(var P=0;P<b.length;P++)if(!b[P].test($))return!1;if($.prerelease.length){for(P=0;P<b.length;P++)if(n(b[P].semver),b[P].semver!==Ia&&b[P].semver.prerelease.length>0){var W=b[P].semver;if(W.major===$.major&&W.minor===$.minor&&W.patch===$.patch)return!0}return!1}return!0}function Gl(b,$,P){try{$=new ft($,P)}catch{return!1}return $.test(b)}function up(b,$,P,W){var se,Ct,Ce,ys,bt;switch(b=new Oe(b,W),$=new ft($,W),P){case">":se=Vl,Ct=lp,Ce=Wl,ys=">",bt=">=";break;case"<":se=Wl,Ct=cp,Ce=Vl,ys="<",bt="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Gl(b,$,W))return!1;for(var Xt=0;Xt<$.set.length;++Xt){var fi=$.set[Xt],yt=null,zt=null;if(fi.forEach(function(Es){Es.semver===Ia&&(Es=new Fs(">=0.0.0")),yt=yt||Es,zt=zt||Es,se(Es.semver,yt.semver,W)?yt=Es:Ce(Es.semver,zt.semver,W)&&(zt=Es)}),yt.operator===ys||yt.operator===bt||(!zt.operator||zt.operator===ys)&&Ct(b,zt.semver)||zt.operator===bt&&Ce(b,zt.semver))return!1}return!0}Fs.prototype.parse=function(b){var $=this.loose?a[Bi]:a[Yr],P=b.match($);if(!P)throw new TypeError("Invalid comparator: "+b);this.operator=P[1],this.operator==="="&&(this.operator=""),P[2]?this.semver=new Oe(P[2],this.loose):this.semver=Ia},Fs.prototype.toString=function(){return this.value},Fs.prototype.test=function(b){return n("Comparator.test",b,this.loose),this.semver===Ia||(typeof b=="string"&&(b=new Oe(b,this.loose)),ql(b,this.operator,this.semver,this.loose))},Fs.prototype.intersects=function(b,$){if(!(b instanceof Fs))throw new TypeError("a Comparator is required");var P;if(this.operator==="")return P=new ft(b.value,$),Gl(this.value,P,$);if(b.operator==="")return P=new ft(this.value,$),Gl(b.semver,P,$);var W=!(this.operator!==">="&&this.operator!==">"||b.operator!==">="&&b.operator!==">"),se=!(this.operator!=="<="&&this.operator!=="<"||b.operator!=="<="&&b.operator!=="<"),Ct=this.semver.version===b.semver.version,Ce=!(this.operator!==">="&&this.operator!=="<="||b.operator!==">="&&b.operator!=="<="),ys=ql(this.semver,"<",b.semver,$)&&(this.operator===">="||this.operator===">")&&(b.operator==="<="||b.operator==="<"),bt=ql(this.semver,">",b.semver,$)&&(this.operator==="<="||this.operator==="<")&&(b.operator===">="||b.operator===">");return W||se||Ct&&Ce||ys||bt},t.Range=ft,ft.prototype.format=function(){return this.range=this.set.map(function(b){return b.join(" ").trim()}).join("||").trim(),this.range},ft.prototype.toString=function(){return this.range},ft.prototype.parseRange=function(b){var $=this.loose;b=b.trim(),n("range",b,$);var P=$?a[Hl]:a[zl];b=b.replace(P,II),n("hyphen replace",b),b=b.replace(a[hi],"$1$2$3"),n("comparator trim",b,a[hi]),b=(b=(b=b.replace(a[G],"$1~")).replace(a[vt],"$1^")).split(/\s+/).join(" ");var W=$?a[Bi]:a[Yr],se=b.split(" ").map(function(Ct){return function(Ce,ys){return n("comp",Ce),Ce=function(bt,Xt){return bt.trim().split(/\s+/).map(function(fi){return function(yt,zt){n("caret",yt,zt);var Es=zt?a[cr]:a[Fi];return yt.replace(Es,function(Zs,oe,Ee,Xe,st){var Ht;return n("caret",yt,Zs,oe,Ee,Xe,st),os(oe)?Ht="":os(Ee)?Ht=">="+oe+".0.0 <"+(+oe+1)+".0.0":os(Xe)?Ht=oe==="0"?">="+oe+"."+Ee+".0 <"+oe+"."+(+Ee+1)+".0":">="+oe+"."+Ee+".0 <"+(+oe+1)+".0.0":st?(n("replaceCaret pr",st),st.charAt(0)!=="-"&&(st="-"+st),Ht=oe==="0"?Ee==="0"?">="+oe+"."+Ee+"."+Xe+st+" <"+oe+"."+Ee+"."+(+Xe+1):">="+oe+"."+Ee+"."+Xe+st+" <"+oe+"."+(+Ee+1)+".0":">="+oe+"."+Ee+"."+Xe+st+" <"+(+oe+1)+".0.0"):(n("no pr"),Ht=oe==="0"?Ee==="0"?">="+oe+"."+Ee+"."+Xe+" <"+oe+"."+Ee+"."+(+Xe+1):">="+oe+"."+Ee+"."+Xe+" <"+oe+"."+(+Ee+1)+".0":">="+oe+"."+Ee+"."+Xe+" <"+(+oe+1)+".0.0"),n("caret return",Ht),Ht})}(fi,Xt)}).join(" ")}(Ce,ys),n("caret",Ce),Ce=function(bt,Xt){return bt.trim().split(/\s+/).map(function(fi){return function(yt,zt){var Es=zt?a[$e]:a[ce];return yt.replace(Es,function(Zs,oe,Ee,Xe,st){var Ht;return n("tilde",yt,Zs,oe,Ee,Xe,st),os(oe)?Ht="":os(Ee)?Ht=">="+oe+".0.0 <"+(+oe+1)+".0.0":os(Xe)?Ht=">="+oe+"."+Ee+".0 <"+oe+"."+(+Ee+1)+".0":st?(n("replaceTilde pr",st),st.charAt(0)!=="-"&&(st="-"+st),Ht=">="+oe+"."+Ee+"."+Xe+st+" <"+oe+"."+(+Ee+1)+".0"):Ht=">="+oe+"."+Ee+"."+Xe+" <"+oe+"."+(+Ee+1)+".0",n("tilde return",Ht),Ht})}(fi,Xt)}).join(" ")}(Ce,ys),n("tildes",Ce),Ce=function(bt,Xt){return n("replaceXRanges",bt,Xt),bt.split(/\s+/).map(function(fi){return function(yt,zt){yt=yt.trim();var Es=zt?a[N]:a[C];return yt.replace(Es,function(Zs,oe,Ee,Xe,st,Ht){n("xRange",yt,Zs,oe,Ee,Xe,st,Ht);var Pv=os(Ee),Aa=Pv||os(Xe),Da=Aa||os(st);return oe==="="&&Da&&(oe=""),Pv?Zs=oe===">"||oe==="<"?"<0.0.0":"*":oe&&Da?(Aa&&(Xe=0),Da&&(st=0),oe===">"?(oe=">=",Aa?(Ee=+Ee+1,Xe=0,st=0):Da&&(Xe=+Xe+1,st=0)):oe==="<="&&(oe="<",Aa?Ee=+Ee+1:Xe=+Xe+1),Zs=oe+Ee+"."+Xe+"."+st):Aa?Zs=">="+Ee+".0.0 <"+(+Ee+1)+".0.0":Da&&(Zs=">="+Ee+"."+Xe+".0 <"+Ee+"."+(+Xe+1)+".0"),n("xRange return",Zs),Zs})}(fi,Xt)}).join(" ")}(Ce,ys),n("xrange",Ce),Ce=function(bt,Xt){return n("replaceStars",bt,Xt),bt.trim().replace(a[kv],"")}(Ce,ys),n("stars",Ce),Ce}(Ct,$)}).join(" ").split(/\s+/);return this.loose&&(se=se.filter(function(Ct){return!!Ct.match(W)})),se=se.map(function(Ct){return new Fs(Ct,$)})},ft.prototype.intersects=function(b,$){if(!(b instanceof ft))throw new TypeError("a Range is required");return this.set.some(function(P){return P.every(function(W){return b.set.some(function(se){return se.every(function(Ct){return W.intersects(Ct,$)})})})})},t.toComparators=function(b,$){return new ft(b,$).set.map(function(P){return P.map(function(W){return W.value}).join(" ").trim().split(" ")})},ft.prototype.test=function(b){if(!b)return!1;typeof b=="string"&&(b=new Oe(b,this.loose));for(var $=0;$<this.set.length;$++)if(AI(this.set[$],b))return!0;return!1},t.satisfies=Gl,t.maxSatisfying=function(b,$,P){var W=null,se=null;try{var Ct=new ft($,P)}catch{return null}return b.forEach(function(Ce){Ct.test(Ce)&&(W&&se.compare(Ce)!==-1||(se=new Oe(W=Ce,P)))}),W},t.minSatisfying=function(b,$,P){var W=null,se=null;try{var Ct=new ft($,P)}catch{return null}return b.forEach(function(Ce){Ct.test(Ce)&&(W&&se.compare(Ce)!==1||(se=new Oe(W=Ce,P)))}),W},t.validRange=function(b,$){try{return new ft(b,$).range||"*"}catch{return null}},t.ltr=function(b,$,P){return up(b,$,"<",P)},t.gtr=function(b,$,P){return up(b,$,">",P)},t.outside=up,t.prerelease=function(b,$){var P=ur(b,$);return P&&P.prerelease.length?P.prerelease:null},t.intersects=function(b,$,P){return b=new ft(b,P),$=new ft($,P),b.intersects($)},t.coerce=function(b){if(b instanceof Oe)return b;if(typeof b!="string")return null;var $=b.match(a[U]);return $==null?null:ur(($[1]||"0")+"."+($[2]||"0")+"."+($[3]||"0"))}}).call(this,s(1))},function(e,t){var s,i,n=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(y){if(s===setTimeout)return setTimeout(y,0);if((s===r||!s)&&setTimeout)return s=setTimeout,setTimeout(y,0);try{return s(y,0)}catch{try{return s.call(null,y,0)}catch{return s.call(this,y,0)}}}(function(){try{s=typeof setTimeout=="function"?setTimeout:r}catch{s=r}try{i=typeof clearTimeout=="function"?clearTimeout:o}catch{i=o}})();var c,l=[],u=!1,h=-1;function d(){u&&c&&(u=!1,c.length?l=c.concat(l):h=-1,l.length&&p())}function p(){if(!u){var y=a(d);u=!0;for(var x=l.length;x;){for(c=l,l=[];++h<x;)c&&c[h].run();h=-1,x=l.length}c=null,u=!1,function(k){if(i===clearTimeout)return clearTimeout(k);if((i===o||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(k);try{i(k)}catch{try{return i.call(null,k)}catch{return i.call(this,k)}}}(y)}}function g(y,x){this.fun=y,this.array=x}function w(){}n.nextTick=function(y){var x=new Array(arguments.length-1);if(arguments.length>1)for(var k=1;k<arguments.length;k++)x[k-1]=arguments[k];l.push(new g(y,x)),l.length!==1||u||a(p)},g.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=w,n.addListener=w,n.once=w,n.off=w,n.removeListener=w,n.removeAllListeners=w,n.emit=w,n.prependListener=w,n.prependOnceListener=w,n.listeners=function(y){return[]},n.binding=function(y){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(y){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}}])}),rR=we.exports.SEMVER_SPEC_VERSION,oR=we.exports.parse,c6=we.exports.valid,aR=we.exports.coerce,cR=we.exports.clean,lR=we.exports.inc,uR=we.exports.major,hR=we.exports.minor,fR=we.exports.patch,dR=we.exports.prerelease,qu=we.exports.gt,l6=we.exports.gte,pR=we.exports.lt,mR=we.exports.lte,u6=we.exports.eq,gR=we.exports.neq,wR=we.exports.cmp,vR=we.exports.compare,Z1=we.exports.rcompare,bR=we.exports.compareIdentifiers,yR=we.exports.rcompareIdentifiers,ER=we.exports.compareBuild,xR=we.exports.sort,kR=we.exports.rsort,$R=we.exports.diff,SR=we.exports.validRange,PR=we.exports.satisfies,IR=we.exports.maxSatisfying,AR=we.exports.minSatisfying,DR=we.exports.minVersion,NR=we.exports.gtr,RR=we.exports.ltr,LR=we.exports.outside,OR=we.exports.intersects,CR=we.exports.SemVer,jR=we.exports.Comparator,_R=we.exports.Range}}),h6,f6,TR=v({"out-build/vs/platform/extensions/common/extensionsApiProposals.js"(){"use strict";h6={activeComment:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.activeComment.d.ts"},aiRelatedInformation:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.aiRelatedInformation.d.ts"},aiTextSearchProvider:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.aiTextSearchProvider.d.ts"},aiTextSearchProviderNew:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.aiTextSearchProviderNew.d.ts"},attributableCoverage:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.attributableCoverage.d.ts"},authLearnMore:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.authLearnMore.d.ts"},authSession:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.authSession.d.ts"},canonicalUriProvider:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.canonicalUriProvider.d.ts"},chatParticipantAdditions:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts"},chatParticipantPrivate:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts",version:2},chatProvider:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.chatProvider.d.ts"},chatReferenceBinaryData:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.chatReferenceBinaryData.d.ts"},chatTab:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.chatTab.d.ts"},chatVariableResolver:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.chatVariableResolver.d.ts"},codeActionAI:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.codeActionAI.d.ts"},codeActionRanges:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.codeActionRanges.d.ts"},codiconDecoration:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.codiconDecoration.d.ts"},commentReactor:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.commentReactor.d.ts"},commentReveal:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.commentReveal.d.ts"},commentThreadApplicability:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.commentThreadApplicability.d.ts"},commentingRangeHint:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.commentingRangeHint.d.ts"},commentsDraftState:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.commentsDraftState.d.ts"},contribAccessibilityHelpContent:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribAccessibilityHelpContent.d.ts"},contribCommentEditorActionsMenu:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribCommentEditorActionsMenu.d.ts"},contribCommentPeekContext:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribCommentPeekContext.d.ts"},contribCommentThreadAdditionalMenu:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribCommentThreadAdditionalMenu.d.ts"},contribCommentsViewThreadMenus:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribCommentsViewThreadMenus.d.ts"},contribDebugCreateConfiguration:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribDebugCreateConfiguration.d.ts"},contribDiffEditorGutterToolBarMenus:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribDiffEditorGutterToolBarMenus.d.ts"},contribEditSessions:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribEditSessions.d.ts"},contribEditorContentMenu:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribEditorContentMenu.d.ts"},contribIssueReporter:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribIssueReporter.d.ts"},contribLabelFormatterWorkspaceTooltip:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribLabelFormatterWorkspaceTooltip.d.ts"},contribMenuBarHome:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribMenuBarHome.d.ts"},contribMergeEditorMenus:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribMergeEditorMenus.d.ts"},contribMultiDiffEditorMenus:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribMultiDiffEditorMenus.d.ts"},contribNotebookStaticPreloads:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribNotebookStaticPreloads.d.ts"},contribRemoteHelp:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribRemoteHelp.d.ts"},contribShareMenu:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribShareMenu.d.ts"},contribSourceControlHistoryItemMenu:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribSourceControlHistoryItemMenu.d.ts"},contribSourceControlHistoryTitleMenu:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribSourceControlHistoryTitleMenu.d.ts"},contribSourceControlInputBoxMenu:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribSourceControlInputBoxMenu.d.ts"},contribSourceControlTitleMenu:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribSourceControlTitleMenu.d.ts"},contribStatusBarItems:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribStatusBarItems.d.ts"},contribViewContainerTitle:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribViewContainerTitle.d.ts"},contribViewsRemote:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribViewsRemote.d.ts"},contribViewsWelcome:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribViewsWelcome.d.ts"},createFileSystemWatcher:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.createFileSystemWatcher.d.ts"},customEditorMove:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.customEditorMove.d.ts"},debugVisualization:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.debugVisualization.d.ts"},defaultChatParticipant:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.defaultChatParticipant.d.ts",version:2},diffCommand:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.diffCommand.d.ts"},diffContentOptions:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.diffContentOptions.d.ts"},documentFiltersExclusive:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.documentFiltersExclusive.d.ts"},documentPaste:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.documentPaste.d.ts"},editSessionIdentityProvider:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.editSessionIdentityProvider.d.ts"},editorHoverVerbosityLevel:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.editorHoverVerbosityLevel.d.ts"},editorInsets:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.editorInsets.d.ts"},embeddings:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.embeddings.d.ts"},extensionRuntime:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.extensionRuntime.d.ts"},extensionsAny:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.extensionsAny.d.ts"},externalUriOpener:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.externalUriOpener.d.ts"},fileComments:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.fileComments.d.ts"},fileSearchProvider:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.fileSearchProvider.d.ts"},fileSearchProviderNew:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.fileSearchProviderNew.d.ts"},findFiles2:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.findFiles2.d.ts"},findFiles2New:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.findFiles2New.d.ts"},findTextInFiles:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.findTextInFiles.d.ts"},findTextInFilesNew:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.findTextInFilesNew.d.ts"},fsChunks:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.fsChunks.d.ts"},idToken:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.idToken.d.ts"},inlineCompletionsAdditions:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.inlineCompletionsAdditions.d.ts"},inlineEdit:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.inlineEdit.d.ts"},interactive:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.interactive.d.ts"},interactiveWindow:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.interactiveWindow.d.ts"},ipc:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.ipc.d.ts"},languageModelSystem:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.languageModelSystem.d.ts"},languageStatusText:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.languageStatusText.d.ts"},lmTools:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.lmTools.d.ts",version:15},mappedEditsProvider:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.mappedEditsProvider.d.ts"},multiDocumentHighlightProvider:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.multiDocumentHighlightProvider.d.ts"},newSymbolNamesProvider:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.newSymbolNamesProvider.d.ts"},notebookCellExecution:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.notebookCellExecution.d.ts"},notebookCellExecutionState:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.notebookCellExecutionState.d.ts"},notebookControllerAffinityHidden:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.notebookControllerAffinityHidden.d.ts"},notebookDeprecated:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.notebookDeprecated.d.ts"},notebookExecution:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.notebookExecution.d.ts"},notebookKernelSource:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.notebookKernelSource.d.ts"},notebookLiveShare:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.notebookLiveShare.d.ts"},notebookMessaging:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.notebookMessaging.d.ts"},notebookMime:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.notebookMime.d.ts"},notebookReplDocument:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.notebookReplDocument.d.ts"},notebookVariableProvider:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.notebookVariableProvider.d.ts"},portsAttributes:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.portsAttributes.d.ts"},profileContentHandlers:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.profileContentHandlers.d.ts"},quickDiffProvider:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.quickDiffProvider.d.ts"},quickInputButtonLocation:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.quickInputButtonLocation.d.ts"},quickPickItemTooltip:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.quickPickItemTooltip.d.ts"},quickPickSortByLabel:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.quickPickSortByLabel.d.ts"},resolvers:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.resolvers.d.ts"},scmActionButton:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.scmActionButton.d.ts"},scmHistoryProvider:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.scmHistoryProvider.d.ts"},scmMultiDiffEditor:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.scmMultiDiffEditor.d.ts"},scmSelectedProvider:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.scmSelectedProvider.d.ts"},scmTextDocument:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.scmTextDocument.d.ts"},scmValidation:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.scmValidation.d.ts"},shareProvider:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.shareProvider.d.ts"},showLocal:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.showLocal.d.ts"},speech:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.speech.d.ts"},tabInputMultiDiff:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.tabInputMultiDiff.d.ts"},tabInputTextMerge:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.tabInputTextMerge.d.ts"},taskPresentationGroup:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.taskPresentationGroup.d.ts"},telemetry:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.telemetry.d.ts"},terminalDataWriteEvent:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.terminalDataWriteEvent.d.ts"},terminalDimensions:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.terminalDimensions.d.ts"},terminalExecuteCommandEvent:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.terminalExecuteCommandEvent.d.ts"},terminalQuickFixProvider:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.terminalQuickFixProvider.d.ts"},terminalSelection:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.terminalSelection.d.ts"},testObserver:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.testObserver.d.ts"},testRelatedCode:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.testRelatedCode.d.ts"},textSearchCompleteNew:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.textSearchCompleteNew.d.ts"},textSearchProvider:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.textSearchProvider.d.ts"},textSearchProviderNew:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.textSearchProviderNew.d.ts"},timeline:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.timeline.d.ts"},tokenInformation:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.tokenInformation.d.ts"},treeViewActiveItem:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.treeViewActiveItem.d.ts"},treeViewMarkdownMessage:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.treeViewMarkdownMessage.d.ts"},treeViewReveal:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.treeViewReveal.d.ts"},tunnelFactory:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.tunnelFactory.d.ts"},tunnels:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.tunnels.d.ts"},workspaceTrust:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.workspaceTrust.d.ts"}},f6=Object.freeze(h6)}});function MR(e){return e=e.trim(),e==="*"||sm.test(e)}function K1(e){if(!MR(e))return null;if(e=e.trim(),e==="*")return{hasCaret:!1,hasGreaterEquals:!1,majorBase:0,majorMustEqual:!1,minorBase:0,minorMustEqual:!1,patchBase:0,patchMustEqual:!1,preRelease:null};const t=e.match(sm);return t?{hasCaret:t[1]==="^",hasGreaterEquals:t[1]===">=",majorBase:t[2]==="x"?0:parseInt(t[2],10),majorMustEqual:t[2]!=="x",minorBase:t[4]==="x"?0:parseInt(t[4],10),minorMustEqual:t[4]!=="x",patchBase:t[6]==="x"?0:parseInt(t[6],10),patchMustEqual:t[6]!=="x",preRelease:t[8]||null}:null}function em(e){if(!e)return null;const t=e.majorBase,s=e.majorMustEqual,i=e.minorBase;let n=e.minorMustEqual;const r=e.patchBase;let o=e.patchMustEqual;e.hasCaret&&(t===0||(n=!1),o=!1);let a=0;if(e.preRelease){const c=m6.exec(e.preRelease);if(c){const[,l,u,h]=c;a=Date.UTC(Number(l),Number(u)-1,Number(h))}}return{majorBase:t,majorMustEqual:s,minorBase:i,minorMustEqual:n,patchBase:r,patchMustEqual:o,isMinimum:e.hasGreaterEquals,notBefore:a}}function UR(e,t,s){let i;typeof e=="string"?i=em(K1(e)):i=e;let n;t instanceof Date?n=t.getTime():typeof t=="string"&&(n=new Date(t).getTime());let r;if(typeof s=="string"?r=em(K1(s)):r=s,!i||!r)return!1;const o=i.majorBase,a=i.minorBase,c=i.patchBase;let l=r.majorBase,u=r.minorBase,h=r.patchBase;const d=r.notBefore;let p=r.majorMustEqual,g=r.minorMustEqual,w=r.patchMustEqual;return r.isMinimum?o>l?!0:o<l?!1:a>u?!0:a<u||n&&n<d?!1:c>=h:(o===1&&l===0&&(!p||!g||!w)&&(l=1,u=0,h=0,p=!0,g=!1,w=!1),o<l?!1:o>l?!p:a<u?!1:a>u?!g:c<h?!1:c>h?!w:!(n&&n<d))}function FR(e,t,s,i,n,r){const o=[];if(typeof i.publisher<"u"&&typeof i.publisher!="string")return o.push([Ze.Error,m(1843,null)]),o;if(typeof i.name!="string")return o.push([Ze.Error,m(1844,null,"name")]),o;if(typeof i.version!="string")return o.push([Ze.Error,m(1845,null,"version")]),o;if(!i.engines)return o.push([Ze.Error,m(1846,null,"engines")]),o;if(typeof i.engines.vscode!="string")return o.push([Ze.Error,m(1847,null,"engines.vscode")]),o;if(typeof i.extensionDependencies<"u"&&!p6(i.extensionDependencies))return o.push([Ze.Error,m(1848,null,"extensionDependencies")]),o;if(typeof i.activationEvents<"u"){if(!p6(i.activationEvents))return o.push([Ze.Error,m(1849,null,"activationEvents")]),o;if(typeof i.main>"u"&&typeof i.browser>"u")return o.push([Ze.Error,m(1850,null,"activationEvents","main","browser")]),o}if(typeof i.extensionKind<"u"&&typeof i.main>"u"&&o.push([Ze.Warning,m(1851,null,"extensionKind")]),typeof i.main<"u"){if(typeof i.main!="string")return o.push([Ze.Error,m(1852,null,"main")]),o;{const l=ne(s,i.main);e1(l,s)||o.push([Ze.Warning,m(1853,null,l.path,s.path)])}}if(typeof i.browser<"u"){if(typeof i.browser!="string")return o.push([Ze.Error,m(1854,null,"browser")]),o;{const l=ne(s,i.browser);e1(l,s)||o.push([Ze.Warning,m(1855,null,l.path,s.path)])}}if(!c6(i.version))return o.push([Ze.Error,m(1856,null)]),o;const a=[];if(!BR(e,t,i,n,a))for(const l of a)o.push([Ze.Error,l]);if(r&&i.enabledApiProposals?.length){const l=[];if(!tm([...i.enabledApiProposals],l))for(const u of l)o.push([Ze.Error,u])}return o}function BR(e,t,s,i,n){return i||typeof s.main>"u"&&typeof s.browser>"u"?!0:d6(e,t,s.engines.vscode,n)}function Gu(e,t,s){return e==="*"||d6(t,s,e)}function tm(e,t){if(e.length===0)return!0;const s=Array.isArray(t)?t:void 0,i=(s?void 0:t)??f6,n=[],r=KN(e);for(const{proposalName:o,version:a}of r){const c=i[o];c&&a&&c.version!==a&&n.push(o)}return n.length?(s&&(n.length===1?s.push(m(1857,null,n[0])):s.push(m(1858,null,n.slice(0,n.length-1).map(o=>`'${o}'`).join(", "),n[n.length-1]))),!1):!0}function d6(e,t,s,i=[]){const n=em(K1(s));if(!n)return i.push(m(1859,null,s)),!1;if(n.majorBase===0){if(!n.majorMustEqual||!n.minorMustEqual)return i.push(m(1860,null,s)),!1}else if(!n.majorMustEqual)return i.push(m(1861,null,s)),!1;return UR(e,t,n)?!0:(i.push(m(1862,null,e,s)),!1)}function p6(e){if(!Array.isArray(e))return!1;for(let t=0,s=e.length;t<s;t++)if(typeof e[t]!="string")return!1;return!0}var sm,m6,Ju=v({"out-build/vs/platform/extensions/common/extensionValidator.js"(){"use strict";kt(),Wu(),pe(),Ao(),$i(),TR(),sm=/^(\^|>=)?((\d+)|x)\.((\d+)|x)\.((\d+)|x)(\-.*)?$/,m6=/^-(\d{4})(\d{2})(\d{2})$/}}),g6,w6,im,v6,b6,Ec,y6,Do,Xu=v({"out-build/vs/base/common/ternarySearchTree.js"(){"use strict";Et(),rt(),g6=class{constructor(){this.b="",this.c=0}reset(e){return this.b=e,this.c=0,this}next(){return this.c+=1,this}hasNext(){return this.c<this.b.length-1}cmp(e){const t=e.charCodeAt(0),s=this.b.charCodeAt(this.c);return t-s}value(){return this.b[this.c]}},w6=class{constructor(e=!0){this.e=e}reset(e){return this.b=e,this.c=0,this.d=0,this.next()}hasNext(){return this.d<this.b.length}next(){this.c=this.d;let e=!0;for(;this.d<this.b.length;this.d++)if(this.b.charCodeAt(this.d)===46)if(e)this.c++;else break;else e=!1;return this}cmp(e){return this.e?Np(e,this.b,0,e.length,this.c,this.d):Fa(e,this.b,0,e.length,this.c,this.d)}value(){return this.b.substring(this.c,this.d)}},im=class{constructor(e=!0,t=!0){this.f=e,this.g=t}reset(e){this.d=0,this.e=0,this.b=e,this.c=e.length;for(let t=e.length-1;t>=0;t--,this.c--){const s=this.b.charCodeAt(t);if(!(s===47||this.f&&s===92))break}return this.next()}hasNext(){return this.e<this.c}next(){this.d=this.e;let e=!0;for(;this.e<this.c;this.e++){const t=this.b.charCodeAt(this.e);if(t===47||this.f&&t===92)if(e)this.d++;else break;else e=!1}return this}cmp(e){return this.g?Np(e,this.b,0,e.length,this.d,this.e):Fa(e,this.b,0,e.length,this.d,this.e)}value(){return this.b.substring(this.d,this.e)}},function(e){e[e.Scheme=1]="Scheme",e[e.Authority=2]="Authority",e[e.Path=3]="Path",e[e.Query=4]="Query",e[e.Fragment=5]="Fragment"}(v6||(v6={})),b6=class{constructor(e,t){this.f=e,this.g=t,this.d=[],this.e=0}reset(e){return this.c=e,this.d=[],this.c.scheme&&this.d.push(1),this.c.authority&&this.d.push(2),this.c.path&&(this.b=new im(!1,!this.f(e)),this.b.reset(e.path),this.b.value()&&this.d.push(3)),this.g(e)||(this.c.query&&this.d.push(4),this.c.fragment&&this.d.push(5)),this.e=0,this}next(){return this.d[this.e]===3&&this.b.hasNext()?this.b.next():this.e+=1,this}hasNext(){return this.d[this.e]===3&&this.b.hasNext()||this.e<this.d.length-1}cmp(e){if(this.d[this.e]===1)return Rp(e,this.c.scheme);if(this.d[this.e]===2)return Rp(e,this.c.authority);if(this.d[this.e]===3)return this.b.cmp(e);if(this.d[this.e]===4)return Dp(e,this.c.query);if(this.d[this.e]===5)return Dp(e,this.c.fragment);throw new Error}value(){if(this.d[this.e]===1)return this.c.scheme;if(this.d[this.e]===2)return this.c.authority;if(this.d[this.e]===3)return this.b.value();if(this.d[this.e]===4)return this.c.query;if(this.d[this.e]===5)return this.c.fragment;throw new Error}},Ec=class{constructor(){this.height=1}isEmpty(){return!this.left&&!this.mid&&!this.right&&!this.value}rotateLeft(){const e=this.right;return this.right=e.left,e.left=this,this.updateHeight(),e.updateHeight(),e}rotateRight(){const 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}},function(e){e[e.Left=-1]="Left",e[e.Mid=0]="Mid",e[e.Right=1]="Right"}(y6||(y6={})),Do=class Fl{static forUris(t=()=>!1,s=()=>!1){return new Fl(new b6(t,s))}static forPaths(t=!1){return new Fl(new im(void 0,!t))}static forStrings(){return new Fl(new g6)}static forConfigKeys(){return new Fl(new w6)}constructor(t){this.b=t}clear(){this.c=void 0}fill(t,s){if(s){const i=s.slice(0);ub(i);for(const n of i)this.set(n,t)}else{const i=t.slice(0);ub(i);for(const n of i)this.set(n[0],n[1])}}set(t,s){const i=this.b.reset(t);let n;this.c||(this.c=new Ec,this.c.segment=i.value());const r=[];for(n=this.c;;){const a=i.cmp(n.segment);if(a>0)n.left||(n.left=new Ec,n.left.segment=i.value()),r.push([-1,n]),n=n.left;else if(a<0)n.right||(n.right=new Ec,n.right.segment=i.value()),r.push([1,n]),n=n.right;else if(i.hasNext())i.next(),n.mid||(n.mid=new Ec,n.mid.segment=i.value()),r.push([0,n]),n=n.mid;else break}const o=n.value;n.value=s,n.key=t;for(let a=r.length-1;a>=0;a--){const c=r[a][1];c.updateHeight();const l=c.balanceFactor();if(l<-1||l>1){const u=r[a][0],h=r[a+1][0];if(u===1&&h===1)r[a][1]=c.rotateLeft();else if(u===-1&&h===-1)r[a][1]=c.rotateRight();else if(u===1&&h===-1)c.right=r[a+1][1]=r[a+1][1].rotateRight(),r[a][1]=c.rotateLeft();else if(u===-1&&h===1)c.left=r[a+1][1]=r[a+1][1].rotateLeft(),r[a][1]=c.rotateRight();else throw new Error;if(a>0)switch(r[a-1][0]){case-1:r[a-1][1].left=r[a][1];break;case 1:r[a-1][1].right=r[a][1];break;case 0:r[a-1][1].mid=r[a][1];break}else this.c=r[0][1]}}return o}get(t){return this.d(t)?.value}d(t){const s=this.b.reset(t);let i=this.c;for(;i;){const n=s.cmp(i.segment);if(n>0)i=i.left;else if(n<0)i=i.right;else if(s.hasNext())s.next(),i=i.mid;else break}return i}has(t){const s=this.d(t);return!(s?.value===void 0&&s?.mid===void 0)}delete(t){return this.e(t,!1)}deleteSuperstr(t){return this.e(t,!0)}e(t,s){const i=this.b.reset(t),n=[];let r=this.c;for(;r;){const o=i.cmp(r.segment);if(o>0)n.push([-1,r]),r=r.left;else if(o<0)n.push([1,r]),r=r.right;else if(i.hasNext())i.next(),n.push([0,r]),r=r.mid;else break}if(r){if(s?(r.left=void 0,r.mid=void 0,r.right=void 0,r.height=1):(r.key=void 0,r.value=void 0),!r.mid&&!r.value)if(r.left&&r.right){const o=this.f(r.right);if(o.key){const{key:a,value:c,segment:l}=o;this.e(o.key,!1),r.key=a,r.value=c,r.segment=l}}else{const o=r.left??r.right;if(n.length>0){const[a,c]=n[n.length-1];switch(a){case-1:c.left=o;break;case 0:c.mid=o;break;case 1:c.right=o;break}}else this.c=o}for(let o=n.length-1;o>=0;o--){const a=n[o][1];a.updateHeight();const c=a.balanceFactor();if(c>1?(a.right.balanceFactor()>=0||(a.right=a.right.rotateRight()),n[o][1]=a.rotateLeft()):c<-1&&(a.left.balanceFactor()<=0||(a.left=a.left.rotateLeft()),n[o][1]=a.rotateRight()),o>0)switch(n[o-1][0]){case-1:n[o-1][1].left=n[o][1];break;case 1:n[o-1][1].right=n[o][1];break;case 0:n[o-1][1].mid=n[o][1];break}else this.c=n[0][1]}}}f(t){for(;t.left;)t=t.left;return t}findSubstr(t){const s=this.b.reset(t);let i=this.c,n;for(;i;){const r=s.cmp(i.segment);if(r>0)i=i.left;else if(r<0)i=i.right;else if(s.hasNext())s.next(),n=i.value||n,i=i.mid;else break}return i&&i.value||n}findSuperstr(t){return this.g(t,!1)}g(t,s){const i=this.b.reset(t);let n=this.c;for(;n;){const r=i.cmp(n.segment);if(r>0)n=n.left;else if(r<0)n=n.right;else if(i.hasNext())i.next(),n=n.mid;else return n.mid?this.h(n.mid):s?n.value:void 0}}hasElementOrSubtree(t){return this.g(t,!0)!==void 0}forEach(t){for(const[s,i]of this)t(i,s)}*[Symbol.iterator](){yield*this.h(this.c)}h(t){const s=[];return this.j(t,s),s[Symbol.iterator]()}j(t,s){t&&(t.left&&this.j(t.left,s),t.value&&s.push([t.key,t.value]),t.mid&&this.j(t.mid,s),t.right&&this.j(t.right,s))}_isBalanced(){const t=s=>{if(!s)return!0;const i=s.balanceFactor();return i<-1||i>1?!1:t(s.left)&&t(s.right)};return t(this.c)}}}});function xc(e){return e.create===!0}function Vs(e){return!!(e.capabilities&2)}function E6(e){return!!(e.capabilities&8)}function zR(e){return!!(e.capabilities&131072)}function Mn(e){return!!(e.capabilities&4)}function nm(e){return!!(e.capabilities&16)}function rm(e){return Vs(e)?!!(e.capabilities&16384):!1}function x6(e){return Vs(e)?!!(e.capabilities&32768):!1}function HR(e){return!!(e.capabilities&65536)}function ln(e,t){return Qu.create(e,t)}function Ar(e){return e||ln(m(1877,null),Y.Unknown)}function k6(e,t){return e.name=t?`${t} (FileSystemError)`:"FileSystemError",e}function Yu(e){if(!e)return Y.Unknown;if(e instanceof Qu)return e.code;const t=/^(.+) \(FileSystemError\)$/.exec(e.name);if(!t)return Y.Unknown;switch(t[1]){case Y.FileExists:return Y.FileExists;case Y.FileIsADirectory:return Y.FileIsADirectory;case Y.FileNotADirectory:return Y.FileNotADirectory;case Y.FileNotFound:return Y.FileNotFound;case Y.FileTooLarge:return Y.FileTooLarge;case Y.FileWriteLocked:return Y.FileWriteLocked;case Y.NoPermissions:return Y.NoPermissions;case Y.Unavailable:return Y.Unavailable}return Y.Unknown}function ss(e){if(e instanceof Jt)return e.fileOperationResult;switch(Yu(e)){case Y.FileNotFound:return 1;case Y.FileIsADirectory:return 0;case Y.FileNotADirectory:return 9;case Y.FileWriteLocked:return 5;case Y.NoPermissions:return 6;case Y.FileExists:return 4;case Y.FileTooLarge:return 7;default:return 10}}function VR(e,t,s){return!e||!t||e===t||t.length>e.length?!1:(t.charAt(t.length-1)!==Yt&&(t+=Yt),s?Lp(e,t):e.indexOf(t)===0)}function $6(e){if(!(typeof e.size!="number"||typeof e.mtime!="number"))return e.mtime.toString(29)+e.size.toString(31)}var gt,Ds,No,S6,P6,Y,Qu,I6,Dr,A6,D6,Jt,Zu,Ku,N6,R6,eh,Nr,et=v({"out-build/vs/platform/files/common/files.js"(){"use strict";Xu(),he(),rt(),xe(),te(),pe(),re(),Q(),Ie(),ou(),gt=ie("fileService"),function(e){e[e.Unknown=0]="Unknown",e[e.File=1]="File",e[e.Directory=2]="Directory",e[e.SymbolicLink=64]="SymbolicLink"}(Ds||(Ds={})),function(e){e[e.Readonly=1]="Readonly",e[e.Locked=2]="Locked"}(No||(No={})),function(e){e[e.UPDATED=2]="UPDATED",e[e.ADDED=4]="ADDED",e[e.DELETED=8]="DELETED"}(S6||(S6={})),function(e){e[e.None=0]="None",e[e.FileReadWrite=2]="FileReadWrite",e[e.FileOpenReadWriteClose=4]="FileOpenReadWriteClose",e[e.FileReadStream=16]="FileReadStream",e[e.FileFolderCopy=8]="FileFolderCopy",e[e.PathCaseSensitive=1024]="PathCaseSensitive",e[e.Readonly=2048]="Readonly",e[e.Trash=4096]="Trash",e[e.FileWriteUnlock=8192]="FileWriteUnlock",e[e.FileAtomicRead=16384]="FileAtomicRead",e[e.FileAtomicWrite=32768]="FileAtomicWrite",e[e.FileAtomicDelete=65536]="FileAtomicDelete",e[e.FileClone=131072]="FileClone"}(P6||(P6={})),function(e){e.FileExists="EntryExists",e.FileNotFound="EntryNotFound",e.FileNotADirectory="EntryNotADirectory",e.FileIsADirectory="EntryIsADirectory",e.FileExceedsStorageQuota="EntryExceedsStorageQuota",e.FileTooLarge="EntryTooLarge",e.FileWriteLocked="EntryWriteLocked",e.NoPermissions="NoPermissions",e.Unavailable="Unavailable",e.Unknown="Unknown"}(Y||(Y={})),Qu=class hI extends Error{static create(t,s){const i=new hI(t.toString(),s);return k6(i,s),i}constructor(t,s){super(t),this.code=s}},function(e){e[e.CREATE=0]="CREATE",e[e.DELETE=1]="DELETE",e[e.MOVE=2]="MOVE",e[e.COPY=3]="COPY",e[e.WRITE=4]="WRITE"}(I6||(I6={})),Dr=class{constructor(e,t,s){this.resource=e,this.operation=t,this.target=s}isOperation(e){return this.operation===e}},function(e){e[e.UPDATED=0]="UPDATED",e[e.ADDED=1]="ADDED",e[e.DELETED=2]="DELETED"}(A6||(A6={})),D6=class ep{static{this.a=null}constructor(t,s){this.c=s,this.b=void 0,this.d=new mr(()=>{const i=Do.forUris(()=>this.c);return i.fill(this.rawAdded.map(n=>[n,!0])),i}),this.f=new mr(()=>{const i=Do.forUris(()=>this.c);return i.fill(this.rawUpdated.map(n=>[n,!0])),i}),this.g=new mr(()=>{const i=Do.forUris(()=>this.c);return i.fill(this.rawDeleted.map(n=>[n,!0])),i}),this.rawAdded=[],this.rawUpdated=[],this.rawDeleted=[];for(const i of t){switch(i.type){case 1:this.rawAdded.push(i.resource);break;case 0:this.rawUpdated.push(i.resource);break;case 2:this.rawDeleted.push(i.resource);break}this.b!==ep.a&&(typeof i.cId=="number"?this.b===void 0?this.b=i.cId:this.b!==i.cId&&(this.b=ep.a):this.b!==void 0&&(this.b=ep.a))}}contains(t,...s){return this.h(t,{includeChildren:!1},...s)}affects(t,...s){return this.h(t,{includeChildren:!0},...s)}h(t,s,...i){if(!t)return!1;const n=i.length>0;return!!((!n||i.includes(1))&&(this.d.value.get(t)||s.includeChildren&&this.d.value.findSuperstr(t))||(!n||i.includes(0))&&(this.f.value.get(t)||s.includeChildren&&this.f.value.findSuperstr(t))||(!n||i.includes(2))&&(this.g.value.findSubstr(t)||s.includeChildren&&this.g.value.findSuperstr(t)))}gotAdded(){return this.rawAdded.length>0}gotDeleted(){return this.rawDeleted.length>0}gotUpdated(){return this.rawUpdated.length>0}correlates(t){return this.b===t}hasCorrelation(){return typeof this.b=="number"}},Jt=class extends Error{constructor(e,t,s){super(e),this.fileOperationResult=t,this.options=s}},Zu=class extends Jt{constructor(e,t,s,i){super(e,t,i),this.fileOperationResult=t,this.size=s}},Ku=class extends Jt{constructor(e,t,s){super(e,2,s),this.stat=t}},function(e){e[e.FILE_IS_DIRECTORY=0]="FILE_IS_DIRECTORY",e[e.FILE_NOT_FOUND=1]="FILE_NOT_FOUND",e[e.FILE_NOT_MODIFIED_SINCE=2]="FILE_NOT_MODIFIED_SINCE",e[e.FILE_MODIFIED_SINCE=3]="FILE_MODIFIED_SINCE",e[e.FILE_MOVE_CONFLICT=4]="FILE_MOVE_CONFLICT",e[e.FILE_WRITE_LOCKED=5]="FILE_WRITE_LOCKED",e[e.FILE_PERMISSION_DENIED=6]="FILE_PERMISSION_DENIED",e[e.FILE_TOO_LARGE=7]="FILE_TOO_LARGE",e[e.FILE_INVALID_PATH=8]="FILE_INVALID_PATH",e[e.FILE_NOT_DIRECTORY=9]="FILE_NOT_DIRECTORY",e[e.FILE_OTHER_ERROR=10]="FILE_OTHER_ERROR"}(N6||(N6={})),function(e){e[e.FILE=0]="FILE",e[e.FOLDER=1]="FOLDER",e[e.ROOT_FOLDER=2]="ROOT_FOLDER"}(R6||(R6={})),eh="",Nr=class vs{static{this.KB=1024}static{this.MB=vs.KB*vs.KB}static{this.GB=vs.MB*vs.KB}static{this.TB=vs.GB*vs.KB}static formatSize(t){return An(t)||(t=0),t<vs.KB?m(1878,null,t.toFixed(0)):t<vs.MB?m(1879,null,(t/vs.KB).toFixed(2)):t<vs.GB?m(1880,null,(t/vs.MB).toFixed(2)):t<vs.TB?m(1881,null,(t/vs.GB).toFixed(2)):m(1882,null,(t/vs.TB).toFixed(2))}}}}),Tt,js=v({"out-build/vs/platform/product/common/productService.js"(){"use strict";re(),Tt=ie("productService")}});async function WR(e,t,s){let i=s&&s.get("storage.serviceMachineId",-1)||null;if(i)return i;try{const r=(await t.readFile(e.serviceMachineIdResource)).value.toString();i=HD(r)?r:null}catch{i=null}if(!i){i=He();try{await t.writeFile(e.serviceMachineIdResource,O.fromString(i))}catch{}}return s?.store("storage.serviceMachineId",i,-1,1),i}var qR=v({"out-build/vs/platform/externalServices/common/serviceMachineId.js"(){"use strict";Ue(),Wt()}});async function GR(e,t,s,i,n,r,o){const a={"X-Market-Client-Id":`VSCode ${e}`,"User-Agent":`VSCode ${e} (${t.nameShort})`};if(L5(t,s)&&O5(i)===3){const c=await WR(s,n,r);a["X-Market-User-Id"]=c,a["VSCode-SessionId"]=o.machineId||c}return a}var JR=v({"out-build/vs/platform/externalServices/common/marketplace.js"(){"use strict";qR(),on()}});function XR(e){return JSON.stringify(e,YR)}function L6(e){let t=JSON.parse(e);return t=Ws(t),t}function YR(e,t){return t instanceof RegExp?{$mid:2,source:t.source,flags:t.flags}:t}function Ws(e,t=0){if(!e||t>200)return e;if(typeof e=="object"){switch(e.$mid){case 1:return E.revive(e);case 2:return new RegExp(e.source,e.flags);case 17:return new Date(e.source)}if(e instanceof O||e instanceof Uint8Array)return e;if(Array.isArray(e))for(let s=0;s<e.length;++s)e[s]=Ws(e[s],t+1);else for(const s in e)Object.hasOwnProperty.call(e,s)&&(e[s]=Ws(e[s],t+1))}return e}var Ro=v({"out-build/vs/base/common/marshalling.js"(){"use strict";Ue(),te()}}),kc,ni,QR,ZR=v({"out-build/vs/base/parts/storage/common/storage.js"(){"use strict";Me(),ae(),H(),Ro(),xe(),function(e){e[e.STORAGE_DOES_NOT_EXIST=0]="STORAGE_DOES_NOT_EXIST",e[e.STORAGE_IN_MEMORY=1]="STORAGE_IN_MEMORY"}(kc||(kc={})),function(e){e[e.None=0]="None",e[e.Initialized=1]="Initialized",e[e.Closed=2]="Closed"}(ni||(ni={})),QR=class fI extends J{static{this.a=100}constructor(t,s=Object.create(null)){super(),this.r=t,this.s=s,this.b=this.B(new ru),this.onDidChangeStorage=this.b.event,this.c=ni.None,this.f=new Map,this.g=this.B(new Sr(fI.a)),this.h=new Set,this.j=new Map,this.m=void 0,this.n=[],this.t()}t(){this.B(this.r.onDidChangeItemsExternal(t=>this.u(t)))}u(t){this.b.pause();try{t.changed?.forEach((s,i)=>this.w(i,s)),t.deleted?.forEach(s=>this.w(s,void 0))}finally{this.b.resume()}}w(t,s){if(this.c===ni.Closed)return;let i=!1;xt(s)?i=this.f.delete(t):this.f.get(t)!==s&&(this.f.set(t,s),i=!0),i&&this.b.fire({key:t,external:!0})}get items(){return this.f}get size(){return this.f.size}async init(){this.c===ni.None&&(this.c=ni.Initialized,this.s.hint!==kc.STORAGE_DOES_NOT_EXIST&&(this.f=await this.r.getItems()))}get(t,s){const i=this.f.get(t);return xt(i)?s:i}getBoolean(t,s){const i=this.get(t);return xt(i)?s:i==="true"}getNumber(t,s){const i=this.get(t);return xt(i)?s:parseInt(i,10)}getObject(t,s){const i=this.get(t);return xt(i)?s:L6(i)}async set(t,s,i=!1){if(this.c===ni.Closed)return;if(xt(s))return this.delete(t,i);const n=ut(s)||Array.isArray(s)?XR(s):String(s);if(this.f.get(t)!==n)return this.f.set(t,n),this.j.set(t,n),this.h.delete(t),this.b.fire({key:t,external:i}),this.D()}async delete(t,s=!1){if(!(this.c===ni.Closed||!this.f.delete(t)))return this.h.has(t)||this.h.add(t),this.j.delete(t),this.b.fire({key:t,external:s}),this.D()}async optimize(){if(this.c!==ni.Closed)return await this.flush(0),this.r.optimize()}async close(){return this.m||(this.m=this.y()),this.m}async y(){this.c=ni.Closed;try{await this.D(0)}catch{}await this.r.close(()=>this.f)}get z(){return this.j.size>0||this.h.size>0}async C(){if(!this.z)return;const t={insert:this.j,delete:this.h};return this.h=new Set,this.j=new Map,this.r.updateItems(t).finally(()=>{if(!this.z)for(;this.n.length;)this.n.pop()?.()})}async flush(t){if(!(this.c===ni.Closed||this.m))return this.D(t)}async D(t){return this.s.hint===kc.STORAGE_IN_MEMORY?this.C():this.g.trigger(()=>this.C(),t)}async whenFlushed(){if(this.z)return new Promise(t=>this.n.push(t))}isInMemory(){return this.s.hint===kc.STORAGE_IN_MEMORY}}}});function KR(e){const t=e;return typeof t?.id=="string"&&E.isUri(t.uri)}function eL(e){const t=e;return typeof t?.id=="string"&&E.isUri(t.configPath)}function tL(e){return(typeof e=="string"?wr(e):Ny(e))===j6}var O6,C6,om,j6,sL,am=v({"out-build/vs/platform/workspace/common/workspace.js"(){"use strict";pe(),he(),Xu(),kt(),te(),re(),Ie(),O6=ie("contextService"),function(e){e[e.EMPTY=1]="EMPTY",e[e.FOLDER=2]="FOLDER",e[e.WORKSPACE=3]="WORKSPACE"}(C6||(C6={})),om="code-workspace",j6=`.${om}`,sL=[{name:m(2502,null),extensions:[om]}]}}),Mt,ri=v({"out-build/vs/platform/uriIdentity/common/uriIdentity.js"(){"use strict";re(),Mt=ie("IUriIdentityService")}});function iL(e){const t=e;return!!(t&&typeof t=="object"&&typeof t.id=="string"&&typeof t.isDefault=="boolean"&&typeof t.name=="string"&&E.isUri(t.location)&&E.isUri(t.globalStorageHome)&&E.isUri(t.settingsResource)&&E.isUri(t.keybindingsResource)&&E.isUri(t.tasksResource)&&E.isUri(t.snippetsHome)&&E.isUri(t.extensionsResource))}function _6(e,t){return{id:e.id,isDefault:e.isDefault,name:e.name,icon:e.icon,location:E.revive(e.location).with({scheme:t}),globalStorageHome:E.revive(e.globalStorageHome).with({scheme:t}),settingsResource:E.revive(e.settingsResource).with({scheme:t}),keybindingsResource:E.revive(e.keybindingsResource).with({scheme:t}),tasksResource:E.revive(e.tasksResource).with({scheme:t}),snippetsHome:E.revive(e.snippetsHome).with({scheme:t}),extensionsResource:E.revive(e.extensionsResource).with({scheme:t}),cacheHome:E.revive(e.cacheHome).with({scheme:t}),useDefaultFlags:e.useDefaultFlags,isTransient:e.isTransient,workspaces:e.workspaces?.map(s=>E.revive(s))}}function th(e,t,s,i,n,r){return{id:e,name:t,location:s,isDefault:!1,icon:n?.icon,globalStorageHome:r&&n?.useDefaultFlags?.globalState?r.globalStorageHome:ne(s,"globalStorage"),settingsResource:r&&n?.useDefaultFlags?.settings?r.settingsResource:ne(s,"settings.json"),keybindingsResource:r&&n?.useDefaultFlags?.keybindings?r.keybindingsResource:ne(s,"keybindings.json"),tasksResource:r&&n?.useDefaultFlags?.tasks?r.tasksResource:ne(s,"tasks.json"),snippetsHome:r&&n?.useDefaultFlags?.snippets?r.snippetsHome:ne(s,"snippets"),extensionsResource:r&&n?.useDefaultFlags?.extensions?r.extensionsResource:ne(s,"extensions.json"),cacheHome:ne(i,e),useDefaultFlags:n?.useDefaultFlags,isTransient:n?.transient,workspaces:n?.workspaces}}var T6,qs,sh,Gs=v({"out-build/vs/platform/userDataProfile/common/userDataProfile.js"(){"use strict";Wa(),ae(),H(),kt(),te(),pe(),fs(),et(),re(),De(),am(),ri(),Me(),Wt(),rt(),xe(),function(e){e.Settings="settings",e.Keybindings="keybindings",e.Snippets="snippets",e.Tasks="tasks",e.Extensions="extensions",e.GlobalState="globalState"}(T6||(T6={})),qs=ie("IUserDataProfilesService"),sh=class extends J{static{this.b="userDataProfiles"}static{this.c="profileAssociations"}get defaultProfile(){return this.profiles[0]}get profiles(){return[...this.C.profiles,...this.r.profiles]}constructor(t,s,i,n){super(),this.s=t,this.t=s,this.u=i,this.y=n,this.g=this.B(new D),this.onDidChangeProfiles=this.g.event,this.h=this.B(new D),this.onWillCreateProfile=this.h.event,this.j=this.B(new D),this.onWillRemoveProfile=this.j.event,this.m=this.B(new D),this.onDidResetWorkspaces=this.m.event,this.n=new Map,this.r={profiles:[],emptyWindows:new Map},this.profilesHome=ne(this.s.userRoamingDataHome,"profiles"),this.f=ne(this.s.cacheHome,"CachedProfilesData")}init(){this.z=void 0}get C(){if(!this.z){const t=this.D(),s=[t];try{for(const n of this.N()){if(!n.name||!be(n.name)||!n.location){this.y.warn("Skipping the invalid stored profile",n.location||n.name);continue}s.push(th(On(n.location),n.name,n.location,this.f,{icon:n.icon,useDefaultFlags:n.useDefaultFlags},t))}}catch(n){this.y.error(n)}const i=new Map;if(s.length)try{const n=this.P();if(n.workspaces)for(const[r,o]of Object.entries(n.workspaces)){const a=E.parse(r),c=s.find(l=>l.id===o);if(c){const l=c.workspaces?c.workspaces.slice(0):[];l.push(a),c.workspaces=l}}if(n.emptyWindows)for(const[r,o]of Object.entries(n.emptyWindows)){const a=s.find(c=>c.id===o);a&&i.set(r,a)}}catch(n){this.y.error(n)}this.z={profiles:s,emptyWindows:i}}return this.z}D(){const t=th("__default__profile__",m(2455,null),this.s.userRoamingDataHome,this.f);return{...t,extensionsResource:this.R()??t.extensionsResource,isDefault:!0}}async createTransientProfile(t){const s="Temp",i=new RegExp(`${Sn(s)}\\s(\\d+)`);let n=0;for(const o of this.profiles){const a=i.exec(o.name),c=a?parseInt(a[1]):0;n=c>n?c:n}const r=`${s} ${n+1}`;return this.createProfile(co(He()).toString(16),r,{transient:!0},t)}async createNamedProfile(t,s,i){return this.createProfile(co(He()).toString(16),t,s,i)}async createProfile(t,s,i,n){return await this.F(t,s,i,n)}async F(t,s,i,n){if(!be(s)||!s)throw new Error("Name of the profile is mandatory and must be of type `string`");let r=this.n.get(s);return r||(r=(async()=>{try{if(this.profiles.find(u=>u.id===t||!u.isTransient&&!i?.transient&&u.name===s))throw new Error(`Profile with ${s} name already exists`);const a=n?this.G(n):void 0;E.isUri(a)&&(i={...i,workspaces:[a]});const c=th(t,s,ne(this.profilesHome,t),this.f,i,this.defaultProfile);await this.t.createFolder(c.location);const l=[];return this.h.fire({profile:c,join(u){l.push(u)}}),await Zt.settled(l),a&&!E.isUri(a)&&this.L(a,c,!!c.isTransient),this.I([c],[],[]),c}finally{this.n.delete(s)}})(),this.n.set(s,r)),r}async updateProfile(t,s){const i=[];for(const r of this.profiles){let o;if(t.id===r.id)r.isDefault?s.workspaces&&(o=r,o.workspaces=s.workspaces):o=th(r.id,s.name??r.name,r.location,this.f,{icon:s.icon===null?void 0:s.icon??r.icon,transient:s.transient??r.isTransient,useDefaultFlags:s.useDefaultFlags??r.useDefaultFlags,workspaces:s.workspaces??r.workspaces},this.defaultProfile);else if(s.workspaces){const a=r.workspaces?.filter(c=>!s.workspaces?.some(l=>this.u.extUri.isEqual(c,l)));r.workspaces?.length!==a?.length&&(o=r,o.workspaces=a)}o&&i.push(o)}if(!i.length)throw t.isDefault?new Error("Cannot update default profile"):new Error(`Profile '${t.name}' does not exist`);this.I([],[],i);const n=this.profiles.find(r=>r.id===t.id);if(!n)throw new Error(`Profile '${t.name}' was not updated`);return n}async removeProfile(t){if(t.isDefault)throw new Error("Cannot remove default profile");const s=this.profiles.find(n=>n.id===t.id);if(!s)throw new Error(`Profile '${t.name}' does not exist`);const i=[];this.j.fire({profile:s,join(n){i.push(n)}});try{await Promise.allSettled(i)}catch(n){this.y.error(n)}this.I([],[s],[]);try{await this.t.del(s.cacheHome,{recursive:!0})}catch(n){ss(n)!==1&&this.y.error(n)}}async setProfileForWorkspace(t,s){const i=this.profiles.find(r=>r.id===s.id);if(!i)throw new Error(`Profile '${s.name}' does not exist`);const n=this.G(t);if(E.isUri(n)){const r=i.workspaces?[...i.workspaces]:[];r.some(o=>this.u.extUri.isEqual(o,n))||(r.push(n),await this.updateProfile(i,{workspaces:r}))}else this.L(n,i,!1),this.M(this.profiles)}unsetWorkspace(t,s=!1){const i=this.G(t);if(E.isUri(i)){const n=this.getProfileForWorkspace(t);n&&this.updateProfile(n,{workspaces:n.workspaces?.filter(r=>!this.u.extUri.isEqual(r,i))})}else this.L(i,void 0,s),this.M(this.profiles)}async resetWorkspaces(){this.r.emptyWindows.clear(),this.C.emptyWindows.clear();for(const t of this.profiles)t.workspaces=void 0;this.I([],[],this.profiles),this.m.fire()}async cleanUp(){if(await this.t.exists(this.profilesHome)){const t=await this.t.resolve(this.profilesHome);await Promise.all((t.children||[]).filter(s=>s.isDirectory&&this.profiles.every(i=>!this.u.extUri.isEqual(i.location,s.resource))).map(s=>this.t.del(s.resource,{recursive:!0})))}}async cleanUpTransientProfiles(){const t=this.r.profiles.filter(s=>!this.H(s));await Promise.allSettled(t.map(s=>this.removeProfile(s)))}getProfileForWorkspace(t){const s=this.G(t);return E.isUri(s)?this.profiles.find(i=>i.workspaces?.some(n=>this.u.extUri.isEqual(n,s))):this.C.emptyWindows.get(s)??this.r.emptyWindows.get(s)}G(t){return KR(t)?t.uri:eL(t)?t.configPath:t.id}H(t){return!!(t.workspaces?.length||[...this.C.emptyWindows.values()].some(s=>this.u.extUri.isEqual(s.location,t.location))||[...this.r.emptyWindows.values()].some(s=>this.u.extUri.isEqual(s.location,t.location)))}I(t,s,i){const n=[...this.profiles,...t],r=this.r.profiles;this.r.profiles=[];const o=[];for(let a of n){if(s.some(c=>a.id===c.id)){for(const c of[...this.C.emptyWindows.keys()])a.id===this.C.emptyWindows.get(c)?.id&&this.C.emptyWindows.delete(c);continue}if(!a.isDefault){a=i.find(l=>a.id===l.id)??a;const c=r.find(l=>a.id===l.id);if(a.isTransient)this.r.profiles.push(a);else if(c){for(const[l,u]of this.r.emptyWindows.entries())if(a.id===u.id){this.r.emptyWindows.delete(l),this.C.emptyWindows.set(l,a);break}}}a.workspaces?.length===0&&(a.workspaces=void 0),o.push(a)}this.M(o),this.J(t,s,i)}J(t,s,i){this.g.fire({added:t,removed:s,updated:i,all:this.profiles})}L(t,s,i){i=s?.isTransient?!0:i,i?s?this.r.emptyWindows.set(t,s):this.r.emptyWindows.delete(t):(this.r.emptyWindows.delete(t),s?this.C.emptyWindows.set(t,s):this.C.emptyWindows.delete(t))}M(t){const s=[],i={},n={};for(const r of t)if(!r.isTransient&&(r.isDefault||s.push({location:r.location,name:r.name,icon:r.icon,useDefaultFlags:r.useDefaultFlags}),r.workspaces))for(const o of r.workspaces)i[o.toString()]=r.id;for(const[r,o]of this.C.emptyWindows.entries())n[r.toString()]=o.id;this.Q({workspaces:i,emptyWindows:n}),this.O(s),this.z=void 0}N(){return[]}O(t){throw new Error("not implemented")}P(){return{}}Q(t){throw new Error("not implemented")}R(){}},sh=__decorate([__param(0,Ps),__param(1,gt),__param(2,Mt),__param(3,fe)],sh)}});function nL(e){const t=e.get($c);if(t)try{return JSON.parse(t)}catch{}return Object.create(null)}function M6(e){return e.isDefault||!!e.useDefaultFlags?.globalState}async function rL(e,t,s,i,n,r){const o=w=>{try{return JSON.parse(w)}catch{return w}},a=new Map,c=new Map;e.forEach((w,y)=>{a.set(y,w),c.set(y,o(w))});const l=new Map,u=new Map;t.forEach((w,y)=>{l.set(y,w),u.set(y,o(w))});const h=new Map,d=new Map;s.forEach((w,y)=>{h.set(y,w),d.set(y,o(w))}),console.group(i!==n?`Storage: Application (path: ${i})`:`Storage: Application & Profile (path: ${i}, default profile)`);const p=[];if(a.forEach((w,y)=>{p.push({key:y,value:w})}),console.table(p),console.groupEnd(),console.log(c),i!==n){console.group(`Storage: Profile (path: ${n}, profile specific)`);const w=[];l.forEach((y,x)=>{w.push({key:x,value:y})}),console.table(w),console.groupEnd(),console.log(u)}console.group(`Storage: Workspace (path: ${r})`);const g=[];h.forEach((w,y)=>{g.push({key:y,value:w})}),console.table(g),console.groupEnd(),console.log(d)}var U6,$c,cm,Lo,F6,B6,oL,z6=v({"out-build/vs/platform/storage/common/storage.js"(){"use strict";Me(),ae(),H(),Hi(),xe(),ZR(),re(),Gs(),U6="__$__isNewStorageMarker",$c="__$__targetStorageMarker",cm=ie("storageService"),function(e){e[e.NONE=0]="NONE",e[e.SHUTDOWN=1]="SHUTDOWN"}(Lo||(Lo={})),function(e){e[e.APPLICATION=-1]="APPLICATION",e[e.PROFILE=0]="PROFILE",e[e.WORKSPACE=1]="WORKSPACE"}(F6||(F6={})),function(e){e[e.USER=0]="USER",e[e.MACHINE=1]="MACHINE"}(B6||(B6={})),oL=class dI extends J{static{this.a=60*1e3}constructor(t={flushInterval:dI.a}){super(),this.m=t,this.b=this.B(new ru),this.c=this.B(new ru),this.onDidChangeTarget=this.c.event,this.f=this.B(new D),this.onWillSaveState=this.f.event,this.h=this.B(new tc(()=>this.n(),this.m.flushInterval)),this.j=this.B(new tu),this.C=void 0,this.F=void 0,this.H=void 0}onDidChangeValue(t,s,i){return z.filter(this.b.event,n=>n.scope===t&&(s===void 0||n.key===s),i)}n(){this.j.value=p4(()=>{this.r()&&this.flush(),this.h.schedule()})}r(){return!0}t(){jt([this.j,this.h])}initialize(){return this.g||(this.g=(async()=>{Pt("code/willInitStorage");try{await this.O()}finally{Pt("code/didInitStorage")}this.h.schedule()})()),this.g}u(t,s){const{key:i,external:n}=s;if(i===$c){switch(t){case-1:this.H=void 0;break;case 0:this.F=void 0;break;case 1:this.C=void 0;break}this.c.fire({scope:t})}else this.b.fire({scope:t,key:i,target:this.J(t)[i],external:n})}w(t){this.f.fire({reason:t})}get(t,s,i){return this.P(s)?.get(t,i)}getBoolean(t,s,i){return this.P(s)?.getBoolean(t,i)}getNumber(t,s,i){return this.P(s)?.getNumber(t,i)}getObject(t,s,i){return this.P(s)?.getObject(t,i)}storeAll(t,s){this.y(()=>{for(const i of t)this.store(i.key,i.value,i.scope,i.target,s)})}store(t,s,i,n,r=!1){if(xt(s)){this.remove(t,i,r);return}this.y(()=>{this.z(t,i,n),this.P(i)?.set(t,s,r)})}remove(t,s,i=!1){this.y(()=>{this.z(t,s,void 0),this.P(s)?.delete(t,i)})}y(t){this.b.pause(),this.c.pause();try{t()}finally{this.b.resume(),this.c.resume()}}keys(t,s){const i=[],n=this.J(t);for(const r of Object.keys(n))n[r]===s&&i.push(r);return i}z(t,s,i,n=!1){const r=this.J(s);typeof i=="number"?r[t]!==i&&(r[t]=i,this.P(s)?.set($c,JSON.stringify(r),n)):typeof r[t]=="number"&&(delete r[t],this.P(s)?.set($c,JSON.stringify(r),n))}get D(){return this.C||(this.C=this.L(1)),this.C}get G(){return this.F||(this.F=this.L(0)),this.F}get I(){return this.H||(this.H=this.L(-1)),this.H}J(t){switch(t){case-1:return this.I;case 0:return this.G;default:return this.D}}L(t){const s=this.P(t);return s?nL(s):Object.create(null)}isNew(t){return this.getBoolean(U6,t)===!0}async flush(t=Lo.NONE){this.f.fire({reason:t});const s=this.P(-1),i=this.P(0),n=this.P(1);switch(t){case Lo.NONE:await Zt.settled([s?.whenFlushed()??Promise.resolve(),i?.whenFlushed()??Promise.resolve(),n?.whenFlushed()??Promise.resolve()]);break;case Lo.SHUTDOWN:await Zt.settled([s?.flush(0)??Promise.resolve(),i?.flush(0)??Promise.resolve(),n?.flush(0)??Promise.resolve()]);break}}async log(){const t=this.P(-1)?.items??new Map,s=this.P(0)?.items??new Map,i=this.P(1)?.items??new Map;return rL(t,s,i,this.Q(-1)??"",this.Q(0)??"",this.Q(1)??"")}async optimize(t){return await this.flush(),this.P(t)?.optimize()}async switch(t,s){return this.w(Lo.NONE),iL(t)?this.R(t,s):this.S(t,s)}M(t,s){return!(t.id===s.id||M6(s)&&M6(t))}N(t,s,i){this.y(()=>{const n=new Set;for(const[r,o]of t)n.add(r),s.get(r)!==o&&this.u(i,{key:r,external:!0});for(const[r]of s.items)n.has(r)||this.u(i,{key:r,external:!0})})}}}});function aL(...e){return String(e.reduce((t,s)=>t|s,0))}function lm(e,t){const s=(e||[]).filter(i=>i.statisticName===t)[0];return s?s.value:0}function cL(e){const t="Microsoft.VisualStudio.Code.Translation.";return e.files.filter(i=>i.assetType.indexOf(t)===0).reduce((i,n)=>{const r=un(e,n.assetType);return r&&i.push([n.assetType.substring(t.length),r]),i},[])}function lL(e){if(e.properties){const t=e.properties.filter(n=>n.key===Ft.Repository),s=new RegExp("((git|ssh|http(s)?)|(git@[\\w.]+))(:(//)?)([\\w.@:/\\-~]+)(.git)(/)?"),i=t.filter(n=>s.test(n.value))[0];return i?{uri:i.value,fallbackUri:i.value}:null}return un(e,Ft.Repository)}function uL(e){return{uri:`${e.fallbackAssetUri}/${Ft.VSIX}?redirect=true${e.targetPlatform?`&targetPlatform=${e.targetPlatform}`:""}`,fallbackUri:`${e.fallbackAssetUri}/${Ft.VSIX}${e.targetPlatform?`?targetPlatform=${e.targetPlatform}`:""}`}}function un(e,t){return e.files.filter(i=>i.assetType===t)[0]?{uri:`${e.assetUri}/${t}${e.targetPlatform?`?targetPlatform=${e.targetPlatform}`:""}`,fallbackUri:`${e.fallbackAssetUri}/${t}${e.targetPlatform?`?targetPlatform=${e.targetPlatform}`:""}`}:null}function H6(e,t){const s=e.properties?e.properties.filter(n=>n.key===t):[],i=s.length>0&&s[0].value;return i?i.split(",").map(n=>Vu(n)):[]}function V6(e){const t=e.properties?e.properties.filter(s=>s.key===Si.Engine):[];return t.length>0&&t[0].value||""}function ih(e){const t=e.properties?e.properties.filter(s=>s.key===Si.PreRelease):[];return t.length>0&&t[0].value==="true"}function hL(e){const t=e.properties?e.properties.filter(s=>s.key===Si.ExecutesCode):[];return t.length>0?t[0].value==="true":void 0}function um(e){const t=e.properties?e.properties.filter(i=>i.key===Si.EnabledApiProposals):[],s=t.length>0&&t[0].value||"";return s?s.split(","):[]}function fL(e){const t=e.properties?e.properties.filter(i=>i.key===Si.LocalizedLanguages):[],s=t.length>0&&t[0].value||"";return s?s.split(","):[]}function dL(e){return e.properties?.find(t=>t.key===Si.SponsorLink)?.value}function pL(e){return e.properties?.find(t=>t.key===Si.SupportLink)?.value}function mL(e){return e.indexOf("preview")!==-1}function nh(e){return e.targetPlatform?VN(e.targetPlatform):"undefined"}function hm(e){const t=Wi(e.versions.map(nh)),s=!!e.tags?.includes(z5),i=t.indexOf("web");return s?i===-1&&t.push("web"):i!==-1&&t.splice(i,1),t}function W6(e,t){for(let s=0;s<e.length;s++){const i=e[s];if(i.version===e[s-1]?.version){let n=s;if(nh(i)===t)for(;n>0&&e[n-1].version===i.version;)n--;n!==s&&(e.splice(s,1),e.splice(n,0,i))}}return e}function q6(e,t,s){e.telemetryData={index:t,querySource:s,queryActivityId:e.queryContext?.[Oo]}}function G6(e,t,s,i){const n=e.versions[0],r={manifest:un(t,Ft.Manifest),readme:un(t,Ft.Details),changelog:un(t,Ft.Changelog),license:un(t,Ft.License),repository:lL(t),download:uL(t),icon:un(t,Ft.Icon),signature:un(t,Ft.Signature),coreTranslations:cL(t)};return{type:"gallery",identifier:{id:an(e.publisher.publisherName,e.extensionName),uuid:e.extensionId},name:e.extensionName,version:t.version,displayName:e.displayName,publisherId:e.publisher.publisherId,publisher:e.publisher.publisherName,publisherDisplayName:e.publisher.displayName,publisherDomain:e.publisher.domain?{link:e.publisher.domain,verified:!!e.publisher.isDomainVerified}:void 0,publisherSponsorLink:dL(n),description:e.shortDescription??"",installCount:lm(e.statistics,"install"),rating:lm(e.statistics,"averagerating"),ratingCount:lm(e.statistics,"ratingcount"),categories:e.categories||[],tags:e.tags||[],releaseDate:Date.parse(e.releaseDate),lastUpdated:Date.parse(e.lastUpdated),allTargetPlatforms:s,assets:r,properties:{dependencies:H6(t,Si.Dependency),extensionPack:H6(t,Si.ExtensionPack),engine:V6(t),enabledApiProposals:um(t),localizedLanguages:fL(t),targetPlatform:nh(t),isPreReleaseVersion:ih(t),executesCode:hL(t)},hasPreReleaseVersion:ih(n),hasReleaseVersion:!0,preview:mL(e.flags),isSigned:!!r.signature,queryContext:i,supportLink:pL(n)}}var fm,Oo,qe,Ut,Ft,Si,J6,X6,Co,Sc,dm,Pc,Y6=v({"out-build/vs/platform/extensionManagement/common/extensionGalleryService.js"(){"use strict";Et(),Dt(),de(),Q(),ei(),xe(),te(),QN(),$s(),fs(),As(),cn(),Ju(),et(),De(),js(),Ir(),JR(),z6(),Is(),ro(),fm=Bs?"web":U5(so,Cp),Oo="X-Market-Search-Activity-Id",function(e){e[e.None=0]="None",e[e.IncludeVersions=1]="IncludeVersions",e[e.IncludeFiles=2]="IncludeFiles",e[e.IncludeCategoryAndTags=4]="IncludeCategoryAndTags",e[e.IncludeSharedAccounts=8]="IncludeSharedAccounts",e[e.IncludeVersionProperties=16]="IncludeVersionProperties",e[e.ExcludeNonValidated=32]="ExcludeNonValidated",e[e.IncludeInstallationTargets=64]="IncludeInstallationTargets",e[e.IncludeAssetUri=128]="IncludeAssetUri",e[e.IncludeStatistics=256]="IncludeStatistics",e[e.IncludeLatestVersionOnly=512]="IncludeLatestVersionOnly",e[e.Unpublished=4096]="Unpublished",e[e.IncludeNameConflictInfo=32768]="IncludeNameConflictInfo"}(qe||(qe={})),function(e){e[e.Tag=1]="Tag",e[e.ExtensionId=4]="ExtensionId",e[e.Category=5]="Category",e[e.ExtensionName=7]="ExtensionName",e[e.Target=8]="Target",e[e.Featured=9]="Featured",e[e.SearchText=10]="SearchText",e[e.ExcludeWithFlags=12]="ExcludeWithFlags"}(Ut||(Ut={})),Ft={Icon:"Microsoft.VisualStudio.Services.Icons.Default",Details:"Microsoft.VisualStudio.Services.Content.Details",Changelog:"Microsoft.VisualStudio.Services.Content.Changelog",Manifest:"Microsoft.VisualStudio.Code.Manifest",VSIX:"Microsoft.VisualStudio.Services.VSIXPackage",License:"Microsoft.VisualStudio.Services.Content.License",Repository:"Microsoft.VisualStudio.Services.Links.Source",Signature:"Microsoft.VisualStudio.Services.VsixSignature"},Si={Dependency:"Microsoft.VisualStudio.Code.ExtensionDependencies",ExtensionPack:"Microsoft.VisualStudio.Code.ExtensionPack",Engine:"Microsoft.VisualStudio.Code.Engine",PreRelease:"Microsoft.VisualStudio.Code.PreRelease",EnabledApiProposals:"Microsoft.VisualStudio.Code.EnabledApiProposals",LocalizedLanguages:"Microsoft.VisualStudio.Code.LocalizedLanguages",WebExtension:"Microsoft.VisualStudio.Code.WebExtension",SponsorLink:"Microsoft.VisualStudio.Code.SponsorLink",SupportLink:"Microsoft.VisualStudio.Services.Links.Support",ExecutesCode:"Microsoft.VisualStudio.Code.ExecutesCode"},J6=10,X6={pageNumber:1,pageSize:J6,sortBy:0,sortOrder:0,flags:qe.None,criteria:[],assetTypes:[]},Co=class or{constructor(t=X6){this.d=t}get pageNumber(){return this.d.pageNumber}get pageSize(){return this.d.pageSize}get sortBy(){return this.d.sortBy}get sortOrder(){return this.d.sortOrder}get flags(){return this.d.flags}get criteria(){return this.d.criteria}withPage(t,s=this.d.pageSize){return new or({...this.d,pageNumber:t,pageSize:s})}withFilter(t,...s){const i=[...this.d.criteria,...s.length?s.map(n=>({filterType:t,value:n})):[{filterType:t}]];return new or({...this.d,criteria:i})}withSortBy(t){return new or({...this.d,sortBy:t})}withSortOrder(t){return new or({...this.d,sortOrder:t})}withFlags(...t){return new or({...this.d,flags:t.reduce((s,i)=>s|i,0)})}withAssetTypes(...t){return new or({...this.d,assetTypes:t})}withSource(t){return new or({...this.d,source:t})}get raw(){const{criteria:t,pageNumber:s,pageSize:i,sortBy:n,sortOrder:r,flags:o,assetTypes:a}=this.d;return{filters:[{criteria:t,pageNumber:s,pageSize:i,sortBy:n,sortOrder:r}],assetTypes:a,flags:o}}get searchText(){const t=this.d.criteria.filter(s=>s.filterType===Ut.SearchText)[0];return t&&t.value?t.value:""}get telemetryData(){return{filterTypes:this.d.criteria.map(t=>String(t.filterType)),flags:this.d.flags,sortBy:String(this.sortBy),sortOrder:String(this.sortOrder),pageNumber:String(this.pageNumber),source:this.d.source,searchTextLength:this.searchText.length}}},Sc=class{constructor(t,s,i,n,r,o,a,c){this.l=s,this.n=i,this.o=n,this.q=r,this.u=o,this.w=a,this.x=c;const l=a.extensionsGallery,u=l?.servicePPEUrl&&c.getValue("_extensionsGallery.enablePPE");this.d=u?l.servicePPEUrl:l?.serviceUrl,this.g=u?void 0:l?.searchUrl,this.h=l?.controlUrl,this.k=a.extensionsEnabledWithApiProposalVersion?.map(h=>h.toLowerCase())??[],this.j=GR(a.version,a,this.o,this.x,this.u,t,this.q)}y(t=""){return`${this.d}${t}`}isEnabled(){return!!this.d}async getExtensions(t,s,i){const n=Re.isCancellationToken(s)?{}:s,r=Re.isCancellationToken(s)?s:i,o=await this.z(t,n,r),a=o.map(l=>l.identifier.uuid),c=[];for(const l of t)l.uuid&&!a.includes(l.uuid)&&c.push({...l,uuid:void 0});if(c.length){this.q.publicLog2("galleryService:additionalQueryByName",{count:c.length});const l=await this.z(c,n,r);o.push(...l)}return o}async z(t,s,i){const n=[],r=[],o=[],a=[];let c=!0;for(const h of t){h.uuid?r.push(h.uuid):n.push(h.id);const d=!!(h.version||h.preRelease);o.push({id:h.id,uuid:h.uuid,includePreRelease:d}),h.version&&a.push({id:h.id,uuid:h.uuid,version:h.version}),c=c&&!!h.hasPreRelease&&!d}if(!r.length&&!n.length)return[];let l=new Co().withPage(1,t.length);r.length&&(l=l.withFilter(Ut.ExtensionId,...r)),n.length&&(l=l.withFilter(Ut.ExtensionName,...n)),(s.queryAllVersions||c)&&(l=l.withFlags(l.flags,qe.IncludeVersions)),s.source&&(l=l.withSource(s.source));const{extensions:u}=await this.C(l,{targetPlatform:s.targetPlatform??fm,includePreRelease:o,versions:a,compatible:!!s.compatible,productVersion:s.productVersion??{version:this.w.version,date:this.w.date}},i);return s.source&&u.forEach((h,d)=>q6(h,d,s.source)),u}async getCompatibleExtension(t,s,i,n={version:this.w.version,date:this.w.date}){if(wc(t.allTargetPlatforms,i))return null;if(await this.isExtensionCompatible(t,s,i))return t;const r=new Co().withFlags(qe.IncludeVersions).withPage(1,1).withFilter(Ut.ExtensionId,t.identifier.uuid),{extensions:o}=await this.C(r,{targetPlatform:i,compatible:!0,includePreRelease:s,productVersion:n},Re.None);return o[0]||null}async isExtensionCompatible(t,s,i,n={version:this.w.version,date:this.w.date}){if(!V1(t.properties.targetPlatform,t.allTargetPlatforms,i)||!s&&t.properties.isPreReleaseVersion)return!1;let r=t.properties.engine;if(!r){const o=await this.getManifest(t,Re.None);if(!o)throw new Error("Manifest was not found");r=o.engines.vscode}return!(!Gu(r,n.version,n.date)||!this.A(t.identifier,t.properties.enabledApiProposals))}A(t,s){return!s||!this.k.includes(t.id.toLowerCase())?!0:tm(s)}async B(t,s,i,n,r,o,a={version:this.w.version,date:this.w.date}){if(!V1(nh(s),r,o)||i!=="any"&&ih(s)!==(i==="prerelease"))return!1;if(n)try{const c=await this.H(t,s);if(!Gu(c,a.version,a.date))return!1}catch(c){return this.n.error(`Error while getting the engine for the version ${s.version}.`,Pe(c)),!1}return!0}async query(t,s){let i=t.text||"";const n=t.pageSize??50;let r=new Co().withPage(1,n);i?(i=i.replace(/\bcategory:("([^"]*)"|([^"]\S*))(\s+|\b|$)/g,(u,h,d)=>(r=r.withFilter(Ut.Category,d||h),"")),i=i.replace(/\btag:("([^"]*)"|([^"]\S*))(\s+|\b|$)/g,(u,h,d)=>(r=r.withFilter(Ut.Tag,d||h),"")),i=i.replace(/\bfeatured(\s+|\b|$)/g,()=>(r=r.withFilter(Ut.Featured),"")),i=i.trim(),i&&(i=i.length<200?i:i.substring(0,200),r=r.withFilter(Ut.SearchText,i)),r=r.withSortBy(0)):t.ids?r=r.withFilter(Ut.ExtensionId,...t.ids):t.names?r=r.withFilter(Ut.ExtensionName,...t.names):r=r.withSortBy(4),typeof t.sortBy=="number"&&(r=r.withSortBy(t.sortBy)),typeof t.sortOrder=="number"&&(r=r.withSortOrder(t.sortOrder)),t.source&&(r=r.withSource(t.source));const o=async(u,h)=>{const{extensions:d,total:p}=await this.C(u,{targetPlatform:fm,compatible:!1,includePreRelease:!!t.includePreRelease,productVersion:t.productVersion??{version:this.w.version,date:this.w.date}},h);return d.forEach((g,w)=>q6(g,(u.pageNumber-1)*u.pageSize+w,t.source)),{extensions:d,total:p}},{extensions:a,total:c}=await o(r,s),l=async(u,h)=>{if(h.isCancellationRequested)throw new It;const{extensions:d}=await o(r.withPage(u+1),h);return d};return{firstPage:a,total:c,pageSize:r.pageSize,getPage:l}}async C(t,s,i){const n=t.flags;t.flags&qe.IncludeLatestVersionOnly&&t.flags&qe.IncludeVersions&&(t=t.withFlags(t.flags&~qe.IncludeVersions,qe.IncludeLatestVersionOnly)),!(t.flags&qe.IncludeLatestVersionOnly)&&!(t.flags&qe.IncludeVersions)&&(t=t.withFlags(t.flags,qe.IncludeLatestVersionOnly)),s.versions?.length&&(t=t.withFlags(t.flags&~qe.IncludeLatestVersionOnly,qe.IncludeVersions)),t=t.withFlags(t.flags,qe.IncludeAssetUri,qe.IncludeCategoryAndTags,qe.IncludeFiles,qe.IncludeStatistics,qe.IncludeVersionProperties);const{galleryExtensions:r,total:o,context:a}=await this.E(t,i);if(!(t.flags&qe.IncludeLatestVersionOnly)){const h=[];for(const d of r){const p=await this.D(d,s,a);p&&h.push(p)}return{extensions:h,total:o}}const l=[],u=new Map;for(let h=0;h<r.length;h++){const d=r[h],p={id:an(d.publisher.publisherName,d.extensionName),uuid:d.extensionId},g=Dn(s.includePreRelease)?s.includePreRelease:!!s.includePreRelease.find(y=>ye(y,p))?.includePreRelease;if(s.compatible&&wc(hm(d),s.targetPlatform))continue;const w=await this.D(d,s,a);!w||w.properties.isPreReleaseVersion&&(!g||!w.hasReleaseVersion)||!w.properties.isPreReleaseVersion&&w.properties.targetPlatform!==s.targetPlatform&&w.hasPreReleaseVersion?u.set(d.extensionId,h):l.push([h,w])}if(u.size){const h=new $n,d=new Co().withFlags(n&~qe.IncludeLatestVersionOnly,qe.IncludeVersions).withPage(1,u.size).withFilter(Ut.ExtensionId,...u.keys()),{extensions:p}=await this.C(d,s,i);this.q.publicLog2("galleryService:additionalQuery",{duration:h.elapsed(),count:u.size});for(const g of p){const w=u.get(g.identifier.uuid);l.push([w,g])}}return{extensions:l.sort((h,d)=>h[0]-d[0]).map(([,h])=>h),total:o}}async D(t,s,i){const n={id:an(t.publisher.publisherName,t.extensionName),uuid:t.extensionId},r=s.versions?.find(l=>ye(l,n))?.version,o=Dn(s.includePreRelease)?s.includePreRelease:!!s.includePreRelease.find(l=>ye(l,n))?.includePreRelease,a=hm(t),c=W6(t.versions,s.targetPlatform);if(s.compatible&&wc(a,s.targetPlatform))return null;for(let l=0;l<c.length;l++){const u=c[l];if(!(r&&u.version!==r)){if(await this.B(n.id,u,o?"any":"release",s.compatible,a,s.targetPlatform,s.productVersion)){if(s.compatible&&!this.A(n,um(u)))continue;return G6(t,u,a,i)}if(r&&u.version===r)return null}}return r||s.compatible?null:G6(t,t.versions[0],a)}async E(t,s){if(!this.isEnabled())throw new Error("No extension gallery service configured.");t=t.withFlags(t.flags,qe.ExcludeNonValidated).withFilter(Ut.Target,"Microsoft.VisualStudio.Code").withFilter(Ut.ExcludeWithFlags,aL(qe.Unpublished));const i=await this.j,n=JSON.stringify(t.raw),r={...i,"Content-Type":"application/json",Accept:"application/json;api-version=3.0-preview.1","Accept-Encoding":"gzip","Content-Length":String(n.length)},o=new $n;let a,c,l=0;try{if(a=await this.l.request({type:"POST",url:this.g&&t.criteria.some(h=>h.filterType===Ut.SearchText)?this.g:this.y("/extensionquery"),data:n,headers:r},s),a.res.statusCode&&a.res.statusCode>=400&&a.res.statusCode<500)return{galleryExtensions:[],total:l};const u=await Lu(a);if(u){const h=u.results[0],d=h.extensions,p=h.resultMetadata&&h.resultMetadata.filter(g=>g.metadataType==="ResultCount")[0];return l=p&&p.metadataItems.filter(g=>g.name==="TotalCount")[0].count||0,{galleryExtensions:d,total:l,context:a.res.headers.activityid?{[Oo]:a.res.headers.activityid}:{}}}return{galleryExtensions:[],total:l}}catch(u){if(hr(u))throw c="Cancelled",u;{const h=Pe(u);throw c=YN(u)?"Offline":h.startsWith("XHR timeout")?"Timeout":"Failed",new vc(h,c)}}finally{this.q.publicLog2("galleryService:query",{...t.telemetryData,requestBodySize:String(n.length),duration:o.elapsed(),success:!!a&&N1(a),responseBodySize:a?.res.headers["Content-Length"],statusCode:a?String(a.res.statusCode):void 0,errorCode:c,count:String(l)})}}async reportStatistic(t,s,i,n){if(!this.isEnabled())return;const r=Bs?this.y(`/itemName/${t}.${s}/version/${i}/statType/${n==="install"?"1":"3"}/vscodewebextension`):this.y(`/publishers/${t}/extensions/${s}/${i}/stats?statType=${n}`),o=Bs?"api-version=6.1-preview.1":"*/*;api-version=4.0-preview.1",c={...await this.j,Accept:o};try{await this.l.request({type:"POST",url:r,headers:c},Re.None)}catch{}}async download(t,s,i){this.n.trace("ExtensionGalleryService#download",t.identifier.id);const n=Q1(t),r=new Date().getTime(),o=i===2?"install":i===3?"update":"",a=o?{uri:`${t.assets.download.uri}${E.parse(t.assets.download.uri).query?"&":"?"}${o}=true`,fallbackUri:`${t.assets.download.fallbackUri}${E.parse(t.assets.download.fallbackUri).query?"&":"?"}${o}=true`}:t.assets.download,c=t.queryContext?.[Oo]?{[Oo]:t.queryContext[Oo]}:void 0,l=await this.G(t.identifier.id,a,Ft.VSIX,c?{headers:c}:void 0);try{await this.u.writeFile(s,l.stream)}catch(u){try{await this.u.del(s)}catch(h){this.n.warn(`Error while deleting the file ${s.toString()}`,Pe(h))}throw new vc(Pe(u),"DownloadFailedWriting")}this.q.publicLog("galleryService:downloadVSIX",{...n,duration:new Date().getTime()-r})}async downloadSignatureArchive(t,s){if(!t.assets.signature)throw new Error("No signature asset found");this.n.trace("ExtensionGalleryService#downloadSignatureArchive",t.identifier.id);const i=await this.G(t.identifier.id,t.assets.signature,Ft.Signature);try{await this.u.writeFile(s,i.stream)}catch(n){try{await this.u.del(s)}catch(r){this.n.warn(`Error while deleting the file ${s.toString()}`,Pe(r))}throw new vc(Pe(n),"DownloadFailedWriting")}}async getReadme(t,s){if(t.assets.readme){const i=await this.G(t.identifier.id,t.assets.readme,Ft.Details,{},s);return await Pr(i)||""}return""}async getManifest(t,s){if(t.assets.manifest){const i=await this.G(t.identifier.id,t.assets.manifest,Ft.Manifest,{},s),n=await Pr(i);return n?JSON.parse(n):null}return null}async F(t,s,i){const n=un(s,Ft.Manifest);if(!n)throw new Error("Manifest was not found");const r={"Accept-Encoding":"gzip"},o=await this.G(t,n,Ft.Manifest,{headers:r});return await Lu(o)}async getCoreTranslation(t,s){const i=t.assets.coreTranslations.filter(n=>n[0]===s.toUpperCase())[0];if(i){const n=await this.G(t.identifier.id,i[1],i[0]),r=await Pr(n);return r?JSON.parse(r):null}return null}async getChangelog(t,s){if(t.assets.changelog){const i=await this.G(t.identifier.id,t.assets.changelog,Ft.Changelog,{},s);return await Pr(i)||""}return""}async getAllCompatibleVersions(t,s,i){let n=new Co().withFlags(qe.IncludeVersions,qe.IncludeCategoryAndTags,qe.IncludeFiles,qe.IncludeVersionProperties).withPage(1,1);t.uuid?n=n.withFilter(Ut.ExtensionId,t.uuid):n=n.withFilter(Ut.ExtensionName,t.id);const{galleryExtensions:r}=await this.E(n,Re.None);if(!r.length)return[];const o=hm(r[0]);if(wc(o,i))return[];const a=[];await Promise.all(r[0].versions.map(async u=>{try{await this.B(t.id,u,s?"any":"release",!0,o,i)&&this.A(t,um(u))&&a.push(u)}catch{}}));const c=[],l=new Set;for(const u of W6(a,i))l.has(u.version)||(l.add(u.version),c.push({version:u.version,date:u.lastUpdated,isPreReleaseVersion:ih(u)}));return c}async G(t,s,i,n={},r=Re.None){const o=await this.j,a={type:"GET"},c={...o,...n.headers||{}};n={...n,...a,headers:c};const l=s.uri,u=s.fallbackUri,h={...n,url:l};try{const d=await this.l.request(h,r);if(d.res.statusCode===200)return d;const p=await Pr(d);throw new Error(`Expected 200, got back ${d.res.statusCode} instead. ${p}`)}catch(d){if(hr(d))throw d;const p=Pe(d);this.q.publicLog2("galleryService:cdnFallback",{extension:t,assetType:i,message:p});const g={...n,url:u};return this.l.request(g,r)}}async H(t,s){let i=V6(s);if(!i){this.q.publicLog2("galleryService:engineFallback",{extension:t,version:s.version});const n=await this.F(t,s,Re.None);if(!n)throw new Error("Manifest was not found");i=n.engines.vscode}return i}async getExtensionsControlManifest(){if(!this.isEnabled())throw new Error("No extension gallery service configured.");if(!this.h)return{malicious:[],deprecated:{},search:[]};const t=await this.l.request({type:"GET",url:this.h},Re.None);if(t.res.statusCode!==200)throw new Error("Could not get extensions report.");const s=await Lu(t),i=[],n={},r=[],o=[];if(s){for(const a of s.malicious)i.push({id:a});if(s.migrateToPreRelease)for(const[a,c]of Object.entries(s.migrateToPreRelease))(!c.engine||Gu(c.engine,this.w.version,this.w.date))&&(n[a.toLowerCase()]={disallowInstall:!0,extension:{id:c.id,displayName:c.displayName,autoMigrate:{storage:!!c.migrateStorage},preRelease:!0}});if(s.deprecated)for(const[a,c]of Object.entries(s.deprecated))c&&(n[a.toLowerCase()]=Dn(c)?{}:c);if(s.search)for(const a of s.search)r.push(a);if(Array.isArray(s.extensionsEnabledWithPreRelease))for(const a of s.extensionsEnabledWithPreRelease)o.push(a.toLowerCase())}return{malicious:i,deprecated:n,search:r,extensionsEnabledWithPreRelease:o}}},Sc=__decorate([__param(1,ki),__param(2,fe),__param(3,Ps),__param(4,qt),__param(5,gt),__param(6,Tt),__param(7,hs)],Sc),dm=class extends Sc{constructor(t,s,i,n,r,o,a,c){super(t,s,i,n,r,o,a,c)}},dm=__decorate([__param(0,cm),__param(1,ki),__param(2,fe),__param(3,Ps),__param(4,qt),__param(5,gt),__param(6,Tt),__param(7,hs)],dm),Pc=class extends Sc{constructor(t,s,i,n,r,o,a){super(void 0,t,s,i,n,r,o,a)}},Pc=__decorate([__param(0,ki),__param(1,fe),__param(2,Ps),__param(3,qt),__param(4,gt),__param(5,Tt),__param(6,hs)],Pc)}});import{createWriteStream as Q6,promises as Z6}from"fs";function gL(e){const t=e.externalFileAttributes>>16||33188;return[448,56,7].map(s=>t&s).reduce((s,i)=>s+i,t&61440)}function K6(e){if(e instanceof Ic)return e;let t;return i9.test(e.message)&&(t="CorruptZip"),new Ic(t,e)}function wL(e,t,s,i,n,r){const o=Lt(t),a=j(i,o);if(!a.startsWith(i))return Promise.reject(new Error(m(143,null,t)));const c=j(i,t);let l;return r.onCancellationRequested(()=>{l?.destroy()}),Promise.resolve(Z6.mkdir(a,{recursive:!0})).then(()=>new Promise((u,h)=>{if(!r.isCancellationRequested)try{l=Q6(c,{mode:s}),l.once("close",()=>u()),l.once("error",h),e.once("error",h),e.pipe(l)}catch(d){h(d)}}))}function vL(e,t,s,i){let n=tn(()=>Promise.resolve()),r=0;const o=i.onCancellationRequested(()=>{n.cancel(),e.close()});return new Promise((a,c)=>{const l=new l4,u=h=>{h.isCancellationRequested||(r++,e.readEntry())};e.once("error",c),e.once("close",()=>n.then(()=>{i.isCancellationRequested||e.entryCount===r?a():c(new Ic("Incomplete",new Error(m(144,null,r,e.entryCount))))},c)),e.readEntry(),e.on("entry",h=>{if(i.isCancellationRequested)return;if(!s.sourcePathRegex.test(h.fileName)){u(i);return}const d=h.fileName.replace(s.sourcePathRegex,"");if(/\/$/.test(d)){const w=j(t,d);n=tn(y=>Z6.mkdir(w,{recursive:!0}).then(()=>u(y)).then(void 0,c));return}const p=t9(e,h),g=gL(h);n=tn(w=>l.queue(()=>p.then(y=>wL(y,d,g,t,s,w).then(()=>u(w)))).then(null,c))})}).finally(()=>o.dispose())}async function e9(e,t=!1){const{open:s}=await import("yauzl");return new Promise((i,n)=>{s(e,t?{lazyEntries:!0}:void 0,(r,o)=>{r?n(K6(r)):i(Hp(o))})})}function t9(e,t){return new Promise((s,i)=>{e.openReadStream(t,(n,r)=>{n?i(K6(n)):s(Hp(r))})})}async function bL(e,t){const{ZipFile:s}=await import("yazl");return new Promise((i,n)=>{const r=new s;t.forEach(a=>{a.contents?r.addBuffer(typeof a.contents=="string"?Buffer.from(a.contents,"utf8"):a.contents,a.path):a.localPath&&r.addFile(a.localPath,a.path)}),r.end();const o=Q6(e);r.outputStream.pipe(o),r.outputStream.once("error",n),o.once("error",n),o.once("finish",()=>i(e))})}function yL(e,t,s={},i){const n=new RegExp(s.sourcePath?`^${s.sourcePath}`:"");let r=e9(e,!0);return s.overwrite&&(r=r.then(o=>Le.rm(t).then(()=>o))),r.then(o=>vL(o,t,{sourcePathRegex:n},i))}function EL(e,t){return e9(e).then(s=>new Promise((i,n)=>{s.on("entry",r=>{r.fileName===t&&t9(s,r).then(o=>i(o),o=>n(o))}),s.once("close",()=>n(new Error(m(145,null,t))))}))}function s9(e,t){return EL(e,t).then(s=>new Promise((i,n)=>{const r=[];s.once("error",n),s.on("data",o=>r.push(o)),s.on("end",()=>i(Buffer.concat(r)))}))}var pm,i9,Ic,mm=v({"out-build/vs/base/node/zip.js"(){"use strict";Me(),he(),xe(),es(),pe(),pm="end of central directory record signature not found",i9=new RegExp(pm),Ic=class extends Error{constructor(e,t){let s=t.message;switch(e){case"CorruptZip":s=`Corrupt ZIP: ${s}`;break}super(s),this.type=e,this.cause=t}}}}),rh,gm=v({"out-build/vs/platform/download/common/download.js"(){"use strict";re(),rh=ie("downloadService")}});function wt(e,t){if(e instanceof Qe)return e;let s;return e instanceof vc?s=new Qe(e.message,e.code==="DownloadFailedWriting"?"DownloadFailedWriting":"Gallery"):s=new Qe(e.message,hr(e)?"Cancelled":t??"Internal"),s.stack=e.stack,s}function wm(e,t,{extensionData:s,verificationStatus:i,duration:n,error:r,source:o,durationSinceUpdate:a}){e.publicLog(t,{...s,source:o,duration:n,durationSinceUpdate:a,success:!r,errorcode:r?.code,verificationStatus:i===Gt.Success?"Verified":i??"Unverified"})}var oh,vm,bm=v({"out-build/vs/platform/extensionManagement/common/abstractExtensionManagementService.js"(){"use strict";Et(),Me(),Dt(),de(),ae(),H(),as(),Q(),te(),pe(),As(),cn(),$i(),Ju(),De(),js(),Is(),ri(),Gs(),oh=class extends J{get onInstallExtension(){return this.n.event}get onDidInstallExtensions(){return this.s.event}get onUninstallExtension(){return this.t.event}get onDidUninstallExtension(){return this.u.event}get onDidUpdateExtensionMetadata(){return this.w.event}constructor(t,s,i,n,r,o){super(),this.z=t,this.C=s,this.D=i,this.F=n,this.G=r,this.H=o,this.h=0,this.j=new Map,this.m=new Map,this.n=this.B(new D),this.s=this.B(new D),this.t=this.B(new D),this.u=this.B(new D),this.w=this.B(new D),this.y=[],this.B(ve(()=>{this.j.forEach(({task:a})=>a.cancel()),this.m.forEach(a=>a.cancel()),this.j.clear(),this.m.clear()}))}async canInstall(t){const s=await this.getTargetPlatform();return t.allTargetPlatforms.some(i=>V1(i,t.allTargetPlatforms,s))}async installFromGallery(t,s={}){try{const n=(await this.installGalleryExtensions([{extension:t,options:s}])).find(({identifier:r})=>ye(r,t.identifier));if(n?.local)return n?.local;throw n?.error?n.error:new Qe(`Unknown error while installing extension ${t.identifier.id}`,"Unknown")}catch(i){throw wt(i)}}async installGalleryExtensions(t){if(!this.z.isEnabled())throw new Qe(m(1774,null),"NotAllowed");const s=[],i=[];return await Promise.allSettled(t.map(async({extension:n,options:r})=>{try{const o=await this.O(n,!!r?.installGivenVersion,!!r?.installPreReleaseVersion,r.productVersion??{version:this.G.version,date:this.G.date});i.push({...o,options:r})}catch(o){s.push({identifier:n.identifier,operation:2,source:n,error:o,profileLocation:r.profileLocation??this.X()})}})),i.length&&s.push(...await this.I(i)),s}async uninstall(t,s){return this.F.trace("ExtensionManagementService#uninstall",t.identifier.id),this.uninstallExtensions([{extension:t,options:s}])}async toggleAppliationScope(t,s){if(K5(t.manifest)||t.isBuiltin)return t;if(t.isApplicationScoped){let i=await this.updateMetadata(t,{isApplicationScoped:!1},this.H.defaultProfile.extensionsResource);this.D.extUri.isEqual(s,this.H.defaultProfile.extensionsResource)||(i=await this.$(t,this.H.defaultProfile.extensionsResource,s));for(const n of this.H.profiles){const r=(await this.getInstalled(1,n.extensionsResource)).find(o=>ye(o.identifier,t.identifier));r?this.w.fire({local:r,profileLocation:n.extensionsResource}):this.u.fire({identifier:t.identifier,profileLocation:n.extensionsResource})}return i}else{const i=this.D.extUri.isEqual(s,this.H.defaultProfile.extensionsResource)?await this.updateMetadata(t,{isApplicationScoped:!0},this.H.defaultProfile.extensionsResource):await this.$(t,s,this.H.defaultProfile.extensionsResource,{isApplicationScoped:!0});return this.s.fire([{identifier:i.identifier,operation:2,local:i,profileLocation:this.H.defaultProfile.extensionsResource,applicationScoped:!0}]),i}}getExtensionsControlManifest(){const t=new Date().getTime();return(!this.g||t-this.h>1e3*60*5)&&(this.g=this.W(),this.h=t),this.g}registerParticipant(t){this.y.push(t)}async resetPinnedStateForAllUserExtensions(t){try{await this.M(this.H.profiles.map(async s=>{const i=await this.getInstalled(1,s.extensionsResource);await this.M(i.map(async n=>{n.pinned!==t&&await this.updateMetadata(n,{pinned:t},s.extensionsResource)}))}))}catch(s){throw this.F.error("Error while resetting pinned state for all user extensions",Pe(s)),s}}async I(t){const s=new Map,i=new Map,n=[],r=(a,c)=>`${ts.create(a).toString()}-${c.toString()}`,o=(a,c,l,u)=>{if(!E.isUri(c)){if(i.has(`${c.identifier.id.toLowerCase()}-${l.profileLocation.toString()}`))return;const p=this.j.get(r(c,l.profileLocation));if(p){if(u&&this.L(u,p.task)){const g=p.task.identifier;this.F.info("Waiting for already requested installing extension",g.id,u.identifier.id,l.profileLocation.toString()),p.waitingTasks.push(u),n.push(z.toPromise(z.filter(this.onDidInstallExtensions,w=>w.some(y=>ye(y.identifier,g)))).then(w=>{if(this.F.info("Finished waiting for already requested installing extension",g.id,u.identifier.id,l.profileLocation.toString()),!w.find(x=>ye(x.identifier,g))?.local)throw new Error(`Extension ${g.id} is not installed`)}))}return}}const h=this.Y(a,c,l),d=`${an(a.publisher,a.name)}-${l.profileLocation.toString()}`;i.set(d,{task:h,root:u}),this.n.fire({identifier:h.identifier,source:c,profileLocation:l.profileLocation}),this.F.info("Installing extension:",h.identifier.id,l),E.isUri(c)||this.j.set(r(c,l.profileLocation),{task:h,waitingTasks:[]})};try{for(const{manifest:c,extension:l,options:u}of t){const h=u.isApplicationScoped||u.isBuiltin||K5(c),d={...u,installOnlyNewlyAddedFromExtensionPack:u.installOnlyNewlyAddedFromExtensionPack??!E.isUri(l),isApplicationScoped:h,profileLocation:h?this.H.defaultProfile.extensionsResource:u.profileLocation??this.X(),productVersion:u.productVersion??{version:this.G.version,date:this.G.date}},p=E.isUri(l)?void 0:this.j.get(r(l,d.profileLocation));p?(this.F.info("Extension is already requested to install",p.task.identifier.id,d.profileLocation.toString()),n.push(p.task.waitUntilTaskIsFinished())):o(c,l,d,void 0)}await Promise.all([...i.values()].map(async({task:c})=>{if(c.options.donotIncludePackAndDependencies)this.F.info("Installing the extension without checking dependencies and pack",c.identifier.id);else try{const l=await this.N(c.identifier,c.manifest,!!c.options.installOnlyNewlyAddedFromExtensionPack,!!c.options.installPreReleaseVersion,c.options.profileLocation,c.options.productVersion),u=await this.getInstalled(void 0,c.options.profileLocation,c.options.productVersion),h={...c.options,context:{...c.options.context,[H5]:!0}};for(const{gallery:d,manifest:p}of Wi(l,({gallery:g})=>g.identifier.id))u.some(({identifier:g})=>ye(g,d.identifier))||o(p,d,h,c)}catch(l){if(E.isUri(c.source))Kl(c.manifest.extensionDependencies)&&this.F.warn("Cannot install dependencies of extension:",c.identifier.id,l.message),Kl(c.manifest.extensionPack)&&this.F.warn("Cannot install packed extensions of extension:",c.identifier.id,l.message);else throw this.F.error("Error while preparing to install dependencies and extension packs of the extension:",c.identifier.id),l}}));const a=await this.J([...i.values()].map(({task:c})=>c));for(const[c,l]of a)o(l.manifest,l.source,{...l.options,profileLocation:c},void 0);return await this.M([...i.entries()].map(async([c,{task:l}])=>{const u=new Date().getTime();let h;try{h=await l.run(),await this.M(this.y.map(d=>d.postInstall(h,l.source,l.options,Re.None)),"PostInstall")}catch(d){const p=wt(d);throw E.isUri(l.source)||wm(this.C,l.operation===3?"extensionGallery:update":"extensionGallery:install",{extensionData:Q1(l.source),error:p,source:l.options.context?.[W1]}),s.set(c,{error:p,identifier:l.identifier,operation:l.operation,source:l.source,context:l.options.context,profileLocation:l.options.profileLocation,applicationScoped:l.options.isApplicationScoped}),this.F.error("Error while installing the extension",l.identifier.id,Pe(p),l.options.profileLocation.toString()),p}if(!E.isUri(l.source)){const d=l.operation===3,p=d?void 0:(new Date().getTime()-l.source.lastUpdated)/1e3;if(wm(this.C,d?"extensionGallery:update":"extensionGallery:install",{extensionData:Q1(l.source),verificationStatus:l.verificationStatus,duration:new Date().getTime()-u,durationSinceUpdate:p,source:l.options.context?.[W1]}),Bs&&l.operation!==3)try{await this.z.reportStatistic(h.manifest.publisher,h.manifest.name,h.manifest.version,"install")}catch{}}s.set(c,{local:h,identifier:l.identifier,operation:l.operation,source:l.source,context:l.options.context,profileLocation:l.options.profileLocation,applicationScoped:h.isApplicationScoped})})),n.length&&await this.M(n),[...s.values()]}catch(a){const c=(h,d,p)=>{const g=[];h.manifest.extensionDependencies?.length&&g.push(...h.manifest.extensionDependencies),h.manifest.extensionPack?.length&&g.push(...h.manifest.extensionPack);for(const w of g){if(p.includes(w.toLowerCase()))continue;p.push(w.toLowerCase());const y=s.get(`${w.toLowerCase()}-${d.toString()}`);y?.local&&(p=c(y.local,d,p))}return p},l=h=>({identifier:h.identifier,operation:2,source:h.source,context:h.options.context,profileLocation:h.options.profileLocation,error:a}),u=[];for(const[h,{task:d,root:p}]of i){const g=s.get(h);g?g.local&&p&&!s.get(`${p.identifier.id.toLowerCase()}-${d.options.profileLocation.toString()}`)?.local&&(u.push(this.Z(g.local,{versionOnly:!0,profileLocation:d.options.profileLocation})),s.set(h,l(d))):(d.cancel(),s.set(h,l(d)))}for(const[h,{task:d}]of i){const p=s.get(h);if(!p?.local||d.options.donotIncludePackAndDependencies)continue;c(p.local,d.options.profileLocation,[p.local.identifier.id.toLowerCase()]).slice(1).some(w=>i.has(`${w.toLowerCase()}-${d.options.profileLocation.toString()}`)&&!s.get(`${w.toLowerCase()}-${d.options.profileLocation.toString()}`)?.local)&&(u.push(this.Z(p.local,{versionOnly:!0,profileLocation:d.options.profileLocation})),s.set(h,l(d)))}throw u.length&&await Promise.allSettled(u.map(async h=>{try{await h.run(),this.F.info("Rollback: Uninstalled extension",h.extension.identifier.id)}catch(d){this.F.warn("Rollback: Error while uninstalling extension",h.extension.identifier.id,Pe(d))}})),a}finally{for(const{task:a}of i.values())a.source&&!E.isUri(a.source)&&this.j.delete(r(a.source,a.options.profileLocation));if(s.size){const a=[...s.values()];for(const c of a)c.local&&this.F.info("Extension installed successfully:",c.identifier.id,c.profileLocation.toString());this.s.fire(a)}}}async J(t){const s=[],i=new At;for(const n of t)if(!(n.operation!==3||n.options.isApplicationScoped||n.options.pinned||n.options.installGivenVersion||E.isUri(n.source)))for(const r of this.H.profiles){if(this.D.extUri.isEqual(r.extensionsResource,n.options.profileLocation))continue;let o=i.get(r.extensionsResource);o||(o=await this.getInstalled(1,r.extensionsResource),i.set(r.extensionsResource,o));const a=o.find(c=>ye(c.identifier,n.identifier));a&&!a.pinned&&s.push([r.extensionsResource,n])}return s}L(t,s){for(const[,{task:i,waitingTasks:n}]of this.j.entries())if(i===t&&(n.includes(s)||n.some(r=>this.L(r,s)))||i===s&&n[0]&&!this.L(t,n[0]))return!1;return!0}async M(t,s){const i=[],n=[],r=await Promise.allSettled(t);for(const a of r)a.status==="fulfilled"?i.push(a.value):n.push(wt(a.reason,s));if(!n.length)return i;if(n.length===1)throw n[0];let o=new Qe("","Unknown");for(const a of n)o=new Qe(o.message?`${o.message}, ${a.message}`:a.message,a.code!=="Unknown"&&a.code!=="Internal"?a.code:o.code);throw o}async N(t,s,i,n,r,o){if(!this.z.isEnabled())return[];const a=await this.getInstalled(void 0,r,o),c=[],l=[],u=async(h,d)=>{c.push(h);const p=d.extensionDependencies||[],g=[...p];if(d.extensionPack){const w=i?a.find(y=>ye(y.identifier,h)):void 0;for(const y of d.extensionPack)w&&w.manifest.extensionPack&&w.manifest.extensionPack.some(x=>ye({id:x},{id:y}))||g.every(x=>!ye({id:x},{id:y}))&&g.push(y)}if(g.length){const w=g.filter(y=>c.every(x=>!ye(x,{id:y})));if(w.length){const y=await this.z.getExtensions(w.map(x=>({id:x,preRelease:n})),Re.None);for(const x of y){if(c.find(I=>ye(I,x.identifier)))continue;const k=p.some(I=>ye({id:I},x.identifier));let A;try{A=await this.O(x,!1,n,o)}catch(I){if(k)throw I;this.F.info("Skipping the packed extension as it cannot be installed",x.identifier.id,Pe(I));continue}l.push({gallery:A.extension,manifest:A.manifest}),await u(A.extension.identifier,A.manifest)}}}};return await u(t,s),l}async O(t,s,i,n){let r;const o=await this.getExtensionsControlManifest();if(o.malicious.some(l=>ye(t.identifier,l)))throw new Qe(m(1775,null,t.identifier.id),"Malicious");const a=o.deprecated[t.identifier.id.toLowerCase()];if(a?.extension?.autoMigrate){if(this.F.info(`The '${t.identifier.id}' extension is deprecated, fetching the compatible '${a.extension.id}' extension instead.`),r=(await this.z.getExtensions([{id:a.extension.id,preRelease:a.extension.preRelease}],{targetPlatform:await this.getTargetPlatform(),compatible:!0,productVersion:n},Re.None))[0],!r)throw new Qe(m(1776,null,t.identifier.id,a.extension.id),"Deprecated")}else{if(!await this.canInstall(t)){const l=await this.getTargetPlatform();throw new Qe(m(1777,null,t.identifier.id,this.G.nameLong,HN(l)),"IncompatibleTargetPlatform")}if(r=await this.P(t,s,i,n),!r){const l=[];throw tm(t.properties.enabledApiProposals??[],l)?!i&&t.properties.isPreReleaseVersion&&(await this.z.getExtensions([t.identifier],Re.None))[0]?new Qe(m(1779,null,t.displayName??t.identifier.id),"ReleaseVersionNotFound"):new Qe(m(1780,null,t.identifier.id,this.G.nameLong,this.G.version),"Incompatible"):new Qe(m(1778,null,t.displayName??t.identifier.id,l[0]),"IncompatibleApi")}}this.F.info("Getting Manifest...",r.identifier.id);const c=await this.z.getManifest(r,Re.None);if(c===null)throw new Qe(`Missing manifest for extension ${r.identifier.id}`,"Invalid");if(c.version!==r.version)throw new Qe(`Cannot install '${r.identifier.id}' extension because of version mismatch in Marketplace`,"Invalid");return{extension:r,manifest:c}}async P(t,s,i,n){const r=await this.getTargetPlatform();let o=null;return!s&&t.hasPreReleaseVersion&&t.properties.isPreReleaseVersion!==i&&(o=(await this.z.getExtensions([{...t.identifier,preRelease:i}],{targetPlatform:r,compatible:!0,productVersion:n},Re.None))[0]||null),!o&&await this.z.isExtensionCompatible(t,i,r,n)&&(o=t),o||(s?o=(await this.z.getExtensions([{...t.identifier,version:t.version}],{targetPlatform:r,compatible:!0,productVersion:n},Re.None))[0]||null:o=await this.z.getCompatibleExtension(t,i,r,n)),o}async uninstallExtensions(t){const s=(l,u)=>`${l.identifier.id.toLowerCase()}${u.versionOnly?`-${l.manifest.version}`:""}@${u.profileLocation.toString()}`,i=(l,u)=>{const h=this.Z(l,u);return this.m.set(s(h.extension,u),h),this.F.info("Uninstalling extension from the profile:",`${l.identifier.id}@${l.manifest.version}`,u.profileLocation.toString()),this.t.fire({identifier:l.identifier,profileLocation:u.profileLocation,applicationScoped:l.isApplicationScoped}),h},n=(l,u,h)=>{h?this.F.error("Failed to uninstall extension from the profile:",`${l.identifier.id}@${l.manifest.version}`,u.profileLocation.toString(),h.message):this.F.info("Successfully uninstalled extension from the profile",`${l.identifier.id}@${l.manifest.version}`,u.profileLocation.toString()),wm(this.C,"extensionGallery:uninstall",{extensionData:sR(l),error:h}),this.u.fire({identifier:l.identifier,error:h?.code,profileLocation:u.profileLocation,applicationScoped:l.isApplicationScoped})},r=[],o=[],a=[],c=new At;for(const{extension:l,options:u}of t){const h={...u,profileLocation:l.isApplicationScoped?this.H.defaultProfile.extensionsResource:u?.profileLocation??this.X()},d=this.m.get(s(l,h));d?(this.F.info("Extensions is already requested to uninstall",l.identifier.id),a.push(d.waitUntilTaskIsFinished())):r.push(i(l,h))}try{for(const l of r.slice(0)){let u=c.get(l.options.profileLocation);if(u||c.set(l.options.profileLocation,u=await this.getInstalled(1,l.options.profileLocation)),l.options.donotIncludePack)this.F.info("Uninstalling the extension without including packed extension",`${l.extension.identifier.id}@${l.extension.manifest.version}`);else{const h=this.S(l.extension,u);for(const d of h)this.m.has(s(d,l.options))?this.F.info("Extensions is already requested to uninstall",d.identifier.id):r.push(i(d,l.options))}l.options.donotCheckDependents?this.F.info("Uninstalling the extension without checking dependents",`${l.extension.identifier.id}@${l.extension.manifest.version}`):this.Q(r.map(h=>h.extension),u,l.extension)}await this.M(r.map(async l=>{try{if(await l.run(),await this.M(this.y.map(u=>u.postUninstall(l.extension,l.options,Re.None))),l.extension.identifier.uuid)try{await this.z.reportStatistic(l.extension.manifest.publisher,l.extension.manifest.name,l.extension.manifest.version,"uninstall")}catch{}}catch(u){const h=wt(u);throw n(l.extension,l.options,h),h}finally{o.push(l)}})),a.length&&await this.M(a);for(const l of r)n(l.extension,l.options)}catch(l){const u=wt(l);for(const h of r){try{h.cancel()}catch{}o.includes(h)||n(h.extension,h.options,u)}throw u}finally{for(const l of r)this.m.delete(s(l.extension,l.options))||this.F.warn("Uninstallation task is not found in the cache",l.extension.identifier.id)}}Q(t,s,i){for(const n of t){const r=this.U(n,s);if(r.length){const o=r.filter(a=>!t.some(c=>ye(c.identifier,a.identifier)));if(o.length)throw new Error(this.R(n,o,i))}}}R(t,s,i){return i===t?s.length===1?m(1781,null,i.manifest.displayName||i.manifest.name,s[0].manifest.displayName||s[0].manifest.name):s.length===2?m(1782,null,i.manifest.displayName||i.manifest.name,s[0].manifest.displayName||s[0].manifest.name,s[1].manifest.displayName||s[1].manifest.name):m(1783,null,i.manifest.displayName||i.manifest.name,s[0].manifest.displayName||s[0].manifest.name,s[1].manifest.displayName||s[1].manifest.name):s.length===1?m(1784,null,i.manifest.displayName||i.manifest.name,t.manifest.displayName||t.manifest.name,s[0].manifest.displayName||s[0].manifest.name):s.length===2?m(1785,null,i.manifest.displayName||i.manifest.name,t.manifest.displayName||t.manifest.name,s[0].manifest.displayName||s[0].manifest.name,s[1].manifest.displayName||s[1].manifest.name):m(1786,null,i.manifest.displayName||i.manifest.name,t.manifest.displayName||t.manifest.name,s[0].manifest.displayName||s[0].manifest.name,s[1].manifest.displayName||s[1].manifest.name)}S(t,s,i=[]){if(i.indexOf(t)!==-1)return[];i.push(t);const n=t.manifest.extensionPack?t.manifest.extensionPack:[];if(n.length){const r=s.filter(a=>!a.isBuiltin&&n.some(c=>ye({id:c},a.identifier))),o=[];for(const a of r)o.push(...this.S(a,s,i));return[...r,...o]}return[]}U(t,s){return s.filter(i=>i.manifest.extensionDependencies&&i.manifest.extensionDependencies.some(n=>ye({id:n},t.identifier)))}async W(){try{return this.F.trace("ExtensionManagementService.updateControlCache"),await this.z.getExtensionsControlManifest()}catch(t){return this.F.trace("ExtensionManagementService.refreshControlCache - failed to get extension control manifest",Pe(t)),{malicious:[],deprecated:{},search:[]}}}},oh=__decorate([__param(0,ii),__param(1,qt),__param(2,Mt),__param(3,fe),__param(4,Tt),__param(5,qs)],oh),vm=class{constructor(){this.d=new u1}async waitUntilTaskIsFinished(){return await this.d.wait(),this.g}run(){return this.g||(this.g=tn(e=>this.h(e))),this.d.open(),this.g}cancel(){this.g||(this.g=tn(e=>new Promise((t,s)=>{const i=e.onCancellationRequested(()=>{i.dispose(),s(new It)})})),this.d.open()),this.g.cancel()}}}});function n9(e){return ut(e)&&WN(e.identifier)&&(xL(e.location)||be(e.location)&&e.location)&&(Qi(e.relativeLocation)||be(e.relativeLocation))&&e.version&&be(e.version)}function xL(e){return e?be(e.path)&&be(e.scheme):!1}var r9,Ac,Pi,ah,jo=v({"out-build/vs/platform/extensionManagement/common/extensionsProfileScannerService.js"(){"use strict";Me(),Ue(),H(),ae(),as(),te(),As(),cn(),et(),re(),De(),Gs(),ri(),xe(),de(),Is(),function(e){e.ERROR_PROFILE_NOT_FOUND="ERROR_PROFILE_NOT_FOUND",e.ERROR_INVALID_CONTENT="ERROR_INVALID_CONTENT"}(r9||(r9={})),Ac=class extends Error{constructor(e,t){super(e),this.code=t}},Pi=ie("IExtensionsProfileScannerService"),ah=class extends J{constructor(t,s,i,n,r,o){super(),this.j=t,this.m=s,this.n=i,this.r=n,this.s=r,this.t=o,this.b=this.B(new D),this.onAddExtensions=this.b.event,this.c=this.B(new D),this.onDidAddExtensions=this.c.event,this.f=this.B(new D),this.onRemoveExtensions=this.f.event,this.g=this.B(new D),this.onDidRemoveExtensions=this.g.event,this.h=new At}scanProfileExtensions(t,s){return this.u(t,void 0,s)}async addExtensionsToProfile(t,s,i){const n=[],r=[];try{return await this.u(s,o=>{const a=[];if(i)a.push(...o);else for(const c of o)t.some(([l])=>ye(l.identifier,c.identifier)&&l.manifest.version!==c.version)?n.push(c):a.push(c);for(const[c,l]of t){const u=a.findIndex(d=>ye(d.identifier,c.identifier)&&d.version===c.manifest.version),h={identifier:c.identifier,version:c.manifest.version,location:c.location,metadata:l};u===-1?(r.push(h),a.push(h)):a.splice(u,1,h)}return r.length&&this.b.fire({extensions:r,profileLocation:s}),n.length&&this.f.fire({extensions:n,profileLocation:s}),a}),r.length&&this.c.fire({extensions:r,profileLocation:s}),n.length&&this.g.fire({extensions:n,profileLocation:s}),r}catch(o){throw r.length&&this.c.fire({extensions:r,error:o,profileLocation:s}),n.length&&this.g.fire({extensions:n,error:o,profileLocation:s}),o}}async updateMetadata(t,s){const i=[];return await this.u(s,n=>{const r=[];for(const o of n){const a=t.find(([c])=>ye(c.identifier,o.identifier)&&c.manifest.version===o.version);a&&(o.metadata={...o.metadata,...a[1]},i.push(o)),r.push(o)}return r}),i}async removeExtensionFromProfile(t,s){const i=[];try{await this.u(s,n=>{const r=[];for(const o of n)ye(o.identifier,t.identifier)?i.push(o):r.push(o);return i.length&&this.f.fire({extensions:i,profileLocation:s}),r}),i.length&&this.g.fire({extensions:i,profileLocation:s})}catch(n){throw i.length&&this.g.fire({extensions:i,error:n,profileLocation:s}),n}}async u(t,s,i){return this.F(t).queue(async()=>{let n=[],r;try{const o=await this.m.readFile(t);r=JSON.parse(o.value.toString().trim()||"[]")}catch(o){if(ss(o)!==1)throw o;if(this.r.extUri.isEqual(t,this.n.defaultProfile.extensionsResource)&&(r=await this.D()),!r&&i?.bailOutWhenFileNotFound)throw new Ac(Pe(o),"ERROR_PROFILE_NOT_FOUND")}if(r){Array.isArray(r)||this.w(t);let o=!1;for(const a of r){n9(a)||this.w(t);let c;if(be(a.relativeLocation)&&a.relativeLocation)c=this.z(a.relativeLocation);else if(be(a.location)){this.t.warn(`Extensions profile: Ignoring extension with invalid location: ${a.location}`);continue}else{c=E.revive(a.location);const l=this.y(c);l&&(o=!0,a.relativeLocation=l)}Qi(a.metadata?.hasPreReleaseVersion)&&a.metadata?.preRelease&&(o=!0,a.metadata.hasPreReleaseVersion=!0),n.push({identifier:a.identifier,location:c,version:a.version,metadata:a.metadata})}o&&await this.m.writeFile(t,O.fromString(JSON.stringify(r)))}if(s){n=s(n);const o=n.map(a=>({identifier:a.identifier,version:a.version,location:a.location.toJSON(),relativeLocation:this.y(a.location),metadata:a.metadata}));await this.m.writeFile(t,O.fromString(JSON.stringify(o)))}return n})}w(t){const s=new Ac(`Invalid extensions content in ${t.toString()}`,"ERROR_INVALID_CONTENT");throw this.s.publicLogError2("extensionsProfileScanningError",{code:s.code}),s}y(t){return this.r.extUri.isEqual(this.r.extUri.dirname(t),this.j)?this.r.extUri.basename(t):void 0}z(t){return this.r.extUri.joinPath(this.j,t)}async D(){return this.C||(this.C=(async()=>{const t=this.r.extUri.joinPath(this.n.defaultProfile.location,"extensions.json"),s=this.r.extUri.joinPath(this.j,".init-default-profile-extensions");let i;try{i=(await this.m.readFile(t)).value.toString()}catch(r){if(ss(r)===1)return;throw r}this.t.info("Migrating extensions from old default profile location",t.toString());let n;try{const r=JSON.parse(i);Array.isArray(r)&&r.every(o=>n9(o))?n=r:this.t.warn("Skipping migrating from old default profile locaiton: Found invalid data",r)}catch(r){this.t.error(r)}if(n)try{await this.m.createFile(this.n.defaultProfile.extensionsResource,O.fromString(JSON.stringify(n)),{overwrite:!1}),this.t.info("Migrated extensions from old default profile location to new location",t.toString(),this.n.defaultProfile.extensionsResource.toString())}catch(r){if(ss(r)===3)this.t.info("Migration from old default profile location to new location is done by another window",t.toString(),this.n.defaultProfile.extensionsResource.toString());else throw r}try{await this.m.del(t)}catch(r){ss(r)!==1&&this.t.error(r)}try{await this.m.del(s)}catch(r){ss(r)!==1&&this.t.error(r)}return n})()),this.C}F(t){let s=this.h.get(t);return s||(s=new go,this.h.set(t,s)),s}},ah=__decorate([__param(1,gt),__param(2,qs),__param(3,Mt),__param(4,qt),__param(5,fe)],ah)}});function ym(e){switch(e){case 1:return m(114,null);case 2:return m(115,null);case 3:return m(116,null);case 4:return m(117,null);case 5:return m(118,null);case 6:return m(119,null);case 7:return m(120,null);case 8:return m(121,null);case 9:return m(122,null);default:return""}}var kL=v({"out-build/vs/base/common/jsonErrorMessages.js"(){"use strict";pe()}});function $L(e,t,s,i){try{SL(e,t,s,i)}catch(n){e.error(n?.message??n)}return t}function SL(e,t,s,i){const n=(r,o,a)=>{const c=r[o];if(be(c)){const l=c,u=l.length;if(u>1&&l[0]==="%"&&l[u-1]==="%"){const h=l.substr(1,u-2);let d=s[h];d===void 0&&i&&(d=i[h]);const p=typeof d=="string"?d:d?.message,g=i?.[h],w=typeof g=="string"?g:g?.message;if(!p){w||e.warn(`[${t.name}]: ${m(1821,null,h)}`);return}if(a&&(o==="title"||o==="category")&&w&&w!==p){const y={value:p,original:w};r[o]=y}else r[o]=p}}else if(ut(c))for(const l in c)c.hasOwnProperty(l)&&(l==="commands"?n(c,l,!0):n(c,l,a));else if(Array.isArray(c))for(let l=0;l<c.length;l++)n(c,l,a)};for(const r in t)t.hasOwnProperty(r)&&n(t,r)}var PL=v({"out-build/vs/platform/extensionManagement/common/extensionNls.js"(){"use strict";xe(),pe()}});function ch(e,t){const s=Y1(e.manifest.publisher,e.manifest.name);return{id:s,identifier:new Tn(s),isBuiltin:e.type===0,isUserBuiltin:e.type===1&&e.isBuiltin,isUnderDevelopment:t,extensionLocation:e.location,uuid:e.identifier.uuid,targetPlatform:e.targetPlatform,publisherDisplayName:e.publisherDisplayName,...e.manifest}}var Em,Rr,lh,_o,Dc,Nc,Rc=v({"out-build/vs/platform/extensionManagement/common/extensionsScannerService.js"(){"use strict";Et(),Me(),Kt(),Ue(),de(),yo(),kL(),H(),Ie(),he(),Q(),kt(),Ao(),Wu(),xe(),te(),pe(),fs(),cn(),$i(),Ju(),et(),re(),De(),js(),ae(),Ro(),jo(),Gs(),ri(),PL(),function(e){function t(s,i){if(s===i)return!0;const n=Object.keys(s),r=new Set;for(const o of Object.keys(i))r.add(o);if(n.length!==r.size)return!1;for(const o of n){if(s[o]!==i[o])return!1;r.delete(o)}return r.size===0}e.equals=t}(Em||(Em={})),Rr=ie("IExtensionsScannerService"),lh=class extends J{constructor(t,s,i,n,r,o,a,c,l,u,h,d){super(),this.systemExtensionsLocation=t,this.userExtensionsLocation=s,this.r=i,this.s=n,this.t=r,this.u=o,this.w=a,this.y=c,this.z=l,this.C=u,this.D=h,this.F=d,this.g=this.B(new D),this.onDidChangeCache=this.g.event,this.h=ne(this.userExtensionsLocation,".obsolete"),this.j=this.B(this.F.createInstance(Nc,this.s,this.h)),this.m=this.B(this.F.createInstance(Nc,this.s,this.h)),this.n=this.B(this.F.createInstance(Dc,this.h)),this.H=void 0,this.B(this.j.onDidChangeCache(()=>this.g.fire(0))),this.B(this.m.onDidChangeCache(()=>this.g.fire(1)))}getTargetPlatform(){return this.G||(this.G=r6(this.w,this.y)),this.G}async scanAllExtensions(t,s,i){const[n,r]=await Promise.all([this.scanSystemExtensions(t),this.scanUserExtensions(s)]),o=i?await this.scanExtensionsUnderDevelopment(t,[...n,...r]):[];return this.L(n,r,o,await this.getTargetPlatform(),!0)}async scanSystemExtensions(t){const s=[];s.push(this.M(!!t.useCache,t.language)),s.push(this.N(t.language,!!t.checkControlFile));const[i,n]=await Promise.all(s);return this.J([...i,...n],0,t,!1)}async scanUserExtensions(t){const s=t.profileLocation??this.userExtensionsLocation;this.y.trace("Started scanning user extensions",s);const i=this.D.extUri.isEqual(t.profileLocation,this.t.defaultProfile.extensionsResource)?{bailOutWhenFileNotFound:!0}:void 0,n=await this.P(s,!!t.profileLocation,1,!t.includeUninstalled,t.language,!0,i,t.productVersion??this.R()),r=t.useCache&&!n.devMode&&n.excludeObsolete?this.m:this.n;let o;try{o=await r.scanExtensions(n)}catch(a){if(a instanceof Ac&&a.code==="ERROR_PROFILE_NOT_FOUND")await this.I(),o=await r.scanExtensions(n);else throw a}return o=await this.J(o,1,t,!0),this.y.trace("Scanned user extensions:",o.length),o}async scanExtensionsUnderDevelopment(t,s){if(this.z.isExtensionDevelopment&&this.z.extensionDevelopmentLocationURI){const i=(await Promise.all(this.z.extensionDevelopmentLocationURI.filter(n=>n.scheme===Z.file).map(async n=>{const r=await this.P(n,!1,1,!0,t.language,!1,void 0,t.productVersion??this.R());return(await this.n.scanOneOrMultipleExtensions(r)).map(a=>(a.type=s.find(c=>ye(c.identifier,a.identifier))?.type??a.type,this.n.validate(a,r)))}))).flat();return this.J(i,"development",t,!0)}return[]}async scanExistingExtension(t,s,i){const n=await this.P(t,!1,s,!0,i.language,!0,void 0,i.productVersion??this.R()),r=await this.n.scanExtension(n);return!r||!i.includeInvalid&&!r.isValid?null:r}async scanOneOrMultipleExtensions(t,s,i){const n=await this.P(t,!1,s,!0,i.language,!0,void 0,i.productVersion??this.R()),r=await this.n.scanOneOrMultipleExtensions(n);return this.J(r,s,i,!0)}async scanMultipleExtensions(t,s,i){const n=[];return await Promise.all(t.map(async r=>{const o=await this.scanOneOrMultipleExtensions(r,s,i);n.push(...o)})),this.J(n,s,i,!0)}async scanMetadata(t){const s=ne(t,"package.json"),i=(await this.w.readFile(s)).value.toString();return JSON.parse(i).__metadata}async updateMetadata(t,s){const i=ne(t,"package.json"),n=(await this.w.readFile(i)).value.toString(),r=JSON.parse(n);s.isMachineScoped===!1&&delete s.isMachineScoped,s.isBuiltin===!1&&delete s.isBuiltin,r.__metadata={...r.__metadata,...s},await this.w.writeFile(ne(t,"package.json"),O.fromString(JSON.stringify(r,null," ")))}async initializeDefaultProfileExtensions(){try{await this.u.scanProfileExtensions(this.t.defaultProfile.extensionsResource,{bailOutWhenFileNotFound:!0})}catch(t){if(t instanceof Ac&&t.code==="ERROR_PROFILE_NOT_FOUND")await this.I();else throw t}}async I(){return this.H||(this.H=(async()=>{try{this.y.info("Started initializing default profile extensions in extensions installation folder.",this.userExtensionsLocation.toString());const t=await this.scanUserExtensions({includeInvalid:!0});if(t.length)await this.u.addExtensionsToProfile(t.map(s=>[s,s.metadata]),this.t.defaultProfile.extensionsResource);else try{await this.w.createFile(this.t.defaultProfile.extensionsResource,O.fromString(JSON.stringify([])))}catch(s){ss(s)!==1&&this.y.warn("Failed to create default profile extensions manifest in extensions installation folder.",this.userExtensionsLocation.toString(),Pe(s))}this.y.info("Completed initializing default profile extensions in extensions installation folder.",this.userExtensionsLocation.toString())}catch(t){this.y.error(t)}finally{this.H=void 0}})()),this.H}async J(t,s,i,n){return i.includeAllVersions||(t=this.L(s===0?t:void 0,s===1?t:void 0,s==="development"?t:void 0,await this.getTargetPlatform(),n)),i.includeInvalid||(t=t.filter(r=>r.isValid)),t.sort((r,o)=>{const a=ot(r.location.fsPath),c=ot(o.location.fsPath);return a<c?-1:a>c?1:0})}L(t,s,i,n,r){const o=(c,l,u)=>{if(c.isValid&&!l.isValid)return!1;if(c.isValid===l.isValid){if(r&&qu(c.manifest.version,l.manifest.version))return this.y.debug(`Skipping extension ${l.location.path} with lower version ${l.manifest.version} in favour of ${c.location.path} with version ${c.manifest.version}`),!1;if(u6(c.manifest.version,l.manifest.version)){if(c.type===0)return this.y.debug(`Skipping extension ${l.location.path} in favour of system extension ${c.location.path} with same version`),!1;if(c.targetPlatform===n)return this.y.debug(`Skipping extension ${l.location.path} from different target platform ${l.targetPlatform}`),!1}}return u?this.y.warn(`Overwriting user extension ${c.location.path} with ${l.location.path}.`):this.y.debug(`Overwriting user extension ${c.location.path} with ${l.location.path}.`),!0},a=new J1;return t?.forEach(c=>{const l=a.get(c.identifier.id);(!l||o(l,c,!1))&&a.set(c.identifier.id,c)}),s?.forEach(c=>{const l=a.get(c.identifier.id);if(!l&&t&&c.type===0){this.y.debug(`Skipping obsolete system extension ${c.location.path}.`);return}(!l||o(l,c,!1))&&a.set(c.identifier.id,c)}),i?.forEach(c=>{const l=a.get(c.identifier.id);(!l||o(l,c,!0))&&a.set(c.identifier.id,c),a.set(c.identifier.id,c)}),[...a.values()]}async M(t,s){this.y.trace("Started scanning system extensions");const i=await this.P(this.systemExtensionsLocation,!1,0,!0,s,!0,void 0,this.R()),r=await(t&&!i.devMode?this.j:this.n).scanExtensions(i);return this.y.trace("Scanned system extensions:",r.length),r}async N(t,s){const i=this.z.isBuilt?[]:this.C.builtInExtensions;if(!i?.length)return[];this.y.trace("Started scanning dev system extensions");const n=s?await this.O():{},r=[],o=E.file(ti(j(Ot.asFileUri("").fsPath,"..",".build","builtInExtensions")));for(const c of i){const l=n[c.name]||"marketplace";switch(l){case"disabled":break;case"marketplace":r.push(ne(o,c.name));break;default:r.push(E.file(l));break}}const a=await Promise.all(r.map(async c=>this.n.scanExtension(await this.P(c,!1,0,!0,t,!0,void 0,this.R()))));return this.y.trace("Scanned dev system extensions:",a.length),wi(a)}async O(){try{const t=await this.w.readFile(this.r);return JSON.parse(t.value.toString())}catch{return{}}}async P(t,s,i,n,r,o,a,c){const l=await this.f(r??ks),u=await this.Q(t),h=s&&!this.D.extUri.isEqual(t,this.t.defaultProfile.extensionsResource)?this.t.defaultProfile.extensionsResource:void 0,d=h?await this.Q(h):void 0;return new _o(t,u,h,d,s,a,i,n,o,c.version,c.date,this.C.commit,!this.z.isBuilt,r,l)}async Q(t){try{const s=await this.w.stat(t);if(typeof s.mtime=="number")return s.mtime}catch{}}R(){return{version:this.C.version,date:this.C.date}}},lh=__decorate([__param(4,qs),__param(5,Pi),__param(6,gt),__param(7,fe),__param(8,Ps),__param(9,Tt),__param(10,Mt),__param(11,yr)],lh),_o=class{constructor(e,t,s,i,n,r,o,a,c,l,u,h,d,p,g){this.location=e,this.mtime=t,this.applicationExtensionslocation=s,this.applicationExtensionslocationMtime=i,this.profile=n,this.profileScanOptions=r,this.type=o,this.excludeObsolete=a,this.validate=c,this.productVersion=l,this.productDate=u,this.productCommit=h,this.devMode=d,this.language=p,this.translations=g}static createNlsConfiguration(e){return{language:e.language,pseudo:e.language==="pseudo",devMode:e.devMode,translations:e.translations}}static equals(e,t){return Kp(e.location,t.location)&&e.mtime===t.mtime&&Kp(e.applicationExtensionslocation,t.applicationExtensionslocation)&&e.applicationExtensionslocationMtime===t.applicationExtensionslocationMtime&&e.profile===t.profile&&Ei(e.profileScanOptions,t.profileScanOptions)&&e.type===t.type&&e.excludeObsolete===t.excludeObsolete&&e.validate===t.validate&&e.productVersion===t.productVersion&&e.productDate===t.productDate&&e.productCommit===t.productCommit&&e.devMode===t.devMode&&e.language===t.language&&Em.equals(e.translations,t.translations)}},Dc=class extends J{constructor(t,s,i,n,r,o,a){super(),this.g=t,this.h=s,this.j=i,this.m=n,this.n=o,this.r=a,this.f=r.extensionsEnabledWithApiProposalVersion?.map(c=>c.toLowerCase())??[]}async scanExtensions(t){const s=t.profile?await this.t(t):await this.s(t);let i={};if(t.excludeObsolete&&t.type===1)try{const n=(await this.m.readFile(this.g)).value.toString();i=JSON.parse(n)}catch{}return du(i)?s:s.filter(n=>!i[ts.create(n).toString()])}async s(t){const s=await this.m.resolve(t.location);if(!s.children?.length)return[];const i=await Promise.all(s.children.map(async n=>{if(!n.isDirectory||t.type===1&&On(n.resource).indexOf(".")===0)return null;const r=new _o(n.resource,t.mtime,t.applicationExtensionslocation,t.applicationExtensionslocationMtime,t.profile,t.profileScanOptions,t.type,t.excludeObsolete,t.validate,t.productVersion,t.productDate,t.productCommit,t.devMode,t.language,t.translations);return this.scanExtension(r)}));return wi(i).sort((n,r)=>n.location.path<r.location.path?-1:1)}async t(t){let s=await this.u(t.location,()=>!0,t);if(t.applicationExtensionslocation&&!this.j.extUri.isEqual(t.location,t.applicationExtensionslocation)){s=s.filter(n=>!n.metadata?.isApplicationScoped);const i=await this.u(t.applicationExtensionslocation,n=>!!n.metadata?.isBuiltin||!!n.metadata?.isApplicationScoped,t);s.push(...i)}return s}async u(t,s,i){const n=await this.h.scanProfileExtensions(t,i.profileScanOptions);if(!n.length)return[];const r=await Promise.all(n.map(async o=>{if(s(o)){const a=new _o(o.location,i.mtime,i.applicationExtensionslocation,i.applicationExtensionslocationMtime,i.profile,i.profileScanOptions,i.type,i.excludeObsolete,i.validate,i.productVersion,i.productDate,i.productCommit,i.devMode,i.language,i.translations);return this.scanExtension(a,o.metadata)}return null}));return wi(r)}async scanOneOrMultipleExtensions(t){try{if(await this.m.exists(ne(t.location,"package.json"))){const s=await this.scanExtension(t);return s?[s]:[]}else return await this.scanExtensions(t)}catch(s){return this.r.error(`Error scanning extensions at ${t.location.path}:`,Pe(s)),[]}}async scanExtension(t,s){try{let i=await this.w(t.location);if(i){i.publisher||(i.publisher=G1),s=s??i.__metadata,delete i.__metadata;const n=an(i.publisher,i.name),r=s?.id?{id:n,uuid:s.id}:{id:n},o=s?.isSystem?0:t.type,a=o===0||!!s?.isBuiltin;i=await this.y(t.location,i,_o.createNlsConfiguration(t));let c={type:o,identifier:r,manifest:i,location:t.location,isBuiltin:a,targetPlatform:s?.targetPlatform??"undefined",publisherDisplayName:s?.publisherDisplayName,metadata:s,isValid:!0,validations:[]};return t.validate&&(c=this.validate(c,t)),i.enabledApiProposals&&(!this.n.isBuilt||this.f.includes(n.toLowerCase()))&&(i.originalEnabledApiProposals=i.enabledApiProposals,i.enabledApiProposals=eR([...i.enabledApiProposals])),c}}catch(i){t.type!==0&&this.r.error(i)}return null}validate(t,s){let i=!0;const n=this.n.isBuilt&&this.f.includes(t.identifier.id.toLowerCase()),r=FR(s.productVersion,s.productDate,s.location,t.manifest,t.isBuiltin,n);for(const[o,a]of r)o===Ze.Error&&(i=!1,this.r.error(this.F(s.location,a)));return t.isValid=i,t.validations=r,t}async w(t){const s=ne(t,"package.json");let i;try{i=(await this.m.readFile(s)).value.toString()}catch(r){return ss(r)!==1&&this.r.error(this.F(t,m(1822,null,s.path,r.message))),null}let n;try{n=JSON.parse(i)}catch{const o=[];vo(i,o);for(const a of o)this.r.error(this.F(t,m(1823,null,s.path,a.offset,a.length,ym(a.error))));return null}return bo(n)!=="object"?(this.r.error(this.F(t,m(1824,null,s.path))),null):n}async y(t,s,i){const n=await this.z(t,s,i);if(n)try{const r=[],o=await this.C(n.default,r);if(r.length>0)return r.forEach(c=>{this.r.error(this.F(t,m(1825,null,n.default?.path,ym(c.error))))}),s;if(bo(n)!=="object")return this.r.error(this.F(t,m(1826,null,n.default?.path))),s;const a=n.values||Object.create(null);return $L(this.r,s,a,o)}catch{}return s}async z(t,s,i){const n=ne(t,"package.nls.json"),r=(l,u)=>{u.forEach(h=>{this.r.error(this.F(t,m(1827,null,l?.path,ym(h.error))))})},o=l=>{this.r.error(this.F(t,m(1828,null,l?.path)))},a=`${s.publisher}.${s.name}`,c=i.translations[a];if(c)try{const l=E.file(c),u=(await this.m.readFile(l)).value.toString(),h=[],d=vo(u,h);return h.length>0?(r(l,h),{values:void 0,default:n}):bo(d)!=="object"?(o(l),{values:void 0,default:n}):{values:d.contents?d.contents.package:void 0,default:n}}catch{return{values:void 0,default:n}}else{if(!await this.m.exists(n))return;let u;try{u=await this.D(t,i)}catch{return}if(!u.localized)return{values:void 0,default:u.original};try{const h=(await this.m.readFile(u.localized)).value.toString(),d=[],p=vo(h,d);return d.length>0?(r(u.localized,d),{values:void 0,default:u.original}):bo(p)!=="object"?(o(u.localized),{values:void 0,default:u.original}):{values:p,default:u.original}}catch{return{values:void 0,default:u.original}}}}async C(t,s){if(t)try{const i=(await this.m.readFile(t)).value.toString();return vo(i,s)}catch{}}D(t,s){return new Promise((i,n)=>{const r=o=>{const a=ne(t,`package.nls.${o}.json`);this.m.exists(a).then(c=>{c&&i({localized:a,original:ne(t,"package.nls.json")});const l=o.lastIndexOf("-");l===-1?i({localized:ne(t,"package.nls.json"),original:null}):(o=o.substring(0,l),r(o))})};if(s.devMode||s.pseudo||!s.language)return i({localized:ne(t,"package.nls.json"),original:null});r(s.language)})}F(t,s){return`[${t.path}]: ${s}`}},Dc=__decorate([__param(1,Pi),__param(2,Mt),__param(3,gt),__param(4,Tt),__param(5,Ps),__param(6,fe)],Dc),Nc=class extends Dc{constructor(t,s,i,n,r,o,a,c,l){super(s,n,r,o,a,c,l),this.J=t,this.L=i,this.H=this.B(new Sr(3e3)),this.I=this.B(new D),this.onDidChangeCache=this.I.event}async scanExtensions(t){const s=this.P(t),i=await this.M(s);if(this.G=t,i&&i.input&&_o.equals(i.input,this.G))return this.r.debug("Using cached extensions scan result",t.type===0?"system":"user",t.location.toString()),this.H.trigger(()=>this.O()),i.result.map(r=>(r.location=E.revive(r.location),r));const n=await super.scanExtensions(t);return await this.N(s,{input:t,result:n}),n}async M(t){try{const s=await this.m.readFile(t),i=JSON.parse(s.value.toString());return{result:i.result,input:Ws(i.input)}}catch(s){this.r.debug("Error while reading the extension cache file:",t.path,Pe(s))}return null}async N(t,s){try{await this.m.writeFile(t,O.fromString(JSON.stringify(s)))}catch(i){this.r.debug("Error while writing the extension cache file:",t.path,Pe(i))}}async O(){if(!this.G)return;const t=this.P(this.G),s=await this.M(t);if(!s)return;const i=s.result,n=JSON.parse(JSON.stringify(await super.scanExtensions(this.G)));if(!Ei(n,i))try{this.r.info("Invalidating Cache",i,n),await this.m.del(t),this.I.fire()}catch(r){this.r.error(r)}}P(t){const s=this.Q(t);return this.j.extUri.joinPath(s.cacheHome,t.type===0?e6:q1)}Q(t){return t.type===0?this.L.defaultProfile:t.profile?this.j.extUri.isEqual(t.location,this.J.extensionsResource)?this.J:this.L.profiles.find(s=>this.j.extUri.isEqual(t.location,s.extensionsResource))??this.J:this.L.defaultProfile}},Nc=__decorate([__param(2,qs),__param(3,Pi),__param(4,Mt),__param(5,gt),__param(6,Tt),__param(7,Ps),__param(8,fe)],Nc)}});function xm(e){let t="Extract";return e instanceof Ic&&(e.type==="CorruptZip"?t="CorruptZip":e.type==="Incomplete"&&(t="IncompleteZip")),wt(e,t)}async function km(e){let t;try{t=await s9(e,"extension/package.json")}catch(s){throw xm(s)}try{return JSON.parse(t.toString("utf8"))}catch{throw new Qe(m(1842,null),"Invalid")}}var o9=v({"out-build/vs/platform/extensionManagement/node/extensionManagementUtil.js"(){"use strict";mm(),pe(),bm(),As()}}),uh,Lc,$m=v({"out-build/vs/platform/extensionManagement/node/extensionSignatureVerificationService.js"(){"use strict";de(),re(),De(),Is(),As(),uh=ie("IExtensionSignatureVerificationService"),Lc=class{constructor(t,s){this.b=t,this.c=s}d(){return this.a||(this.a=this.f()),this.a}async f(){return import("@vscode/vsce-sign")}async verify(t,s,i,n,r){let o;try{o=await this.d()}catch(u){this.b.error("Could not load vsce-sign module",Pe(u)),this.b.info(`Extension signature verification is not done: ${t}`);return}const a=new Date().getTime();let c;try{this.b.trace(`Verifying extension signature for ${t}...`),c=await o.verify(i,n,this.b.getLevel()===F.Trace)}catch(u){c={code:Gt.UnknownError,didExecute:!1,output:Pe(u)}}const l=new Date().getTime()-a;return this.b.info(`Extension signature verification result for ${t}: ${c.code}. Executed: ${c.didExecute}. Duration: ${l}ms.`),this.b.trace(`Extension signature verification output for ${t}: ${c.output}`),this.c.publicLog2("extensionsignature:verification",{extensionId:t,extensionVersion:s,code:c.code,internalCode:c.internalCode,duration:l,didExecute:c.didExecute,clientTargetPlatform:r}),{code:c.code}}},Lc=__decorate([__param(0,fe),__param(1,qt)],Lc)}}),Sm,hh,IL=v({"out-build/vs/platform/extensionManagement/node/extensionDownloader.js"(){"use strict";Me(),de(),H(),Ie(),kt(),Ao(),Wt(),es(),mm(),fs(),bm(),As(),cn(),o9(),$m(),et(),De(),Is(),hh=class extends J{static{Sm=this}static{this.c=".sigzip"}constructor(t,s,i,n,r,o){super(),this.h=s,this.j=i,this.m=n,this.n=r,this.r=o,this.extensionsDownloadDir=t.extensionsDownloadLocation,this.f=20,this.g=this.C()}async download(t,s,i,n){await this.g;const r=await this.t(t,s);if(!i||!t.isSigned)return{location:r,verificationStatus:void 0};let o;try{o=await this.u(t);const a=(await this.m.verify(t.identifier.id,t.version,r.fsPath,o.fsPath,n))?.code;if(a===Gt.PackageIsInvalidZip||a===Gt.SignatureArchiveIsInvalidZip){try{await this.delete(r)}catch(c){this.r.error(c)}throw new Qe(pm,"CorruptZip")}return{location:r,verificationStatus:a}}catch(a){try{await this.delete(r)}catch(c){this.r.error(c)}throw a}finally{if(o)try{await this.delete(o)}catch(a){this.r.error(a)}}}async t(t,s){try{const i=ne(this.extensionsDownloadDir,this.D(t)),n=await this.y(t,"vsix",async()=>{await this.w(t,i,r=>this.j.download(t,r,s));try{await this.z(i.fsPath,"extension/package.json")}catch(r){try{await this.h.del(i)}catch(o){this.r.warn(`Error while deleting: ${i.path}`,Pe(o))}throw r}},2);return n>1&&this.n.publicLog2("extensiongallery:downloadvsix:retry",{extensionId:t.identifier.id,attempts:n}),i}catch(i){throw wt(i,"Download")}}async u(t){try{const s=ne(this.extensionsDownloadDir,`.${He()}`),i=await this.y(t,"sigzip",async()=>{await this.j.downloadSignatureArchive(t,s);try{await this.z(s.fsPath,".signature.p7s")}catch(n){try{await this.h.del(s)}catch(r){this.r.warn(`Error while deleting: ${s.path}`,Pe(r))}throw n}},2);return i>1&&this.n.publicLog2("extensiongallery:downloadsigzip:retry",{extensionId:t.identifier.id,attempts:i}),s}catch(s){throw wt(s,"DownloadSignature")}}async w(t,s,i){if(await this.h.exists(s))return;if(s.scheme!==Z.file){await i(s);return}const n=ne(this.extensionsDownloadDir,`.${He()}`);try{await i(n)}catch(r){try{await this.h.del(n)}catch{}throw r}try{await Le.rename(n.fsPath,s.fsPath,2*60*1e3)}catch(r){try{await this.h.del(n)}catch{}let o=!1;try{o=await this.h.exists(s)}catch{}if(o)this.r.info("Rename failed because the file was downloaded by another source. So ignoring renaming.",t.identifier.id,s.path);else throw this.r.info(`Rename failed because of ${Pe(r)}. Deleted the file from downloaded location`,n.path),r}}async y(t,s,i,n){let r=1;for(;;)try{return await i(),r}catch(o){if(r++>n)throw o;this.r.warn(`Failed downloading ${s}. ${Pe(o)}. Retry again...`,t.identifier.id)}}async z(t,s){try{await s9(t,s)}catch(i){throw xm(i)}}async delete(t){await this.g,await this.h.del(t)}async C(){try{if(!await this.h.exists(this.extensionsDownloadDir)){this.r.trace("Extension VSIX downloads cache dir does not exist");return}const t=await this.h.resolve(this.extensionsDownloadDir,{resolveMetadata:!0});if(t.children){const s=[],i=[],n=[];for(const a of t.children)if(a.name.endsWith(Sm.c))n.push(a.resource);else{const c=ts.parse(a.name);c&&i.push([c,a])}const r=n6(i,([a])=>a),o=[];for(const a of r)a.sort((c,l)=>Z1(c[0].version,l[0].version)),s.push(...a.slice(1).map(c=>c[1].resource)),o.push(a[0][1]);o.sort((a,c)=>a.mtime-c.mtime),s.push(...o.slice(0,Math.max(0,o.length-this.f)).map(a=>a.resource)),s.push(...n),await Zt.settled(s.map(a=>(this.r.trace("Deleting from cache",a.path),this.h.del(a))))}}catch(t){this.r.error(t)}}D(t){return this.f?ts.create(t).toString().toLowerCase():He()}},hh=Sm=__decorate([__param(0,Hs),__param(1,gt),__param(2,ii),__param(3,uh),__param(4,qt),__param(5,fe)],hh)}});import{fork as AL}from"child_process";var fh,DL=v({"out-build/vs/platform/extensionManagement/node/extensionLifecycle.js"(){"use strict";Me(),br(),ae(),H(),Ie(),he(),es(),De(),Gs(),fh=class extends J{constructor(t,s){super(),this.b=t,this.f=s,this.a=new h1(5)}async postUninstall(t){const s=this.g(t,"uninstall");s&&(this.f.info(t.identifier.id,t.manifest.version,"Running post uninstall script"),await this.a.queue(async()=>{try{await this.h(s.script,"uninstall",s.args,!0,t),this.f.info("Finished running post uninstall script",t.identifier.id,t.manifest.version)}catch(i){this.f.error("Failed to run post uninstall script",t.identifier.id,t.manifest.version),this.f.error(i)}}));try{await Le.rm(this.m(t))}catch(i){this.f.error("Error while removing extension storage path",t.identifier.id),this.f.error(i)}}g(t,s){const i=`vscode:${s}`;if(t.location.scheme===Z.file&&t.manifest&&t.manifest.scripts&&typeof t.manifest.scripts[i]=="string"){const n=t.manifest.scripts[i].split(" ");return n.length<2||n[0]!=="node"||!n[1]?(this.f.warn(t.identifier.id,t.manifest.version,`${i} should be a node script`),null):{script:j(t.location.fsPath,n[1]),args:n.slice(2)||[]}}return null}h(t,s,i,n,r){return new Promise((o,a)=>{const c=this.j(t,s,i,r);let l;const u=h=>{l&&(clearTimeout(l),l=null),h?a(h):o(void 0)};c.on("error",h=>{u(Nn(h)||"Unknown")}),c.on("exit",(h,d)=>{u(h?`post-${s} process exited with code ${h}`:void 0)}),n&&(l=setTimeout(()=>{l=null,c.kill(),a("timed out")},5e3))})}j(t,s,i,n){const r={silent:!0,execArgv:void 0},o=AL(t,[`--type=extension-post-${s}`,...i],r);o.stdout.setEncoding("utf8"),o.stderr.setEncoding("utf8");const a=z.fromNodeEventEmitter(o.stdout,"data"),c=z.fromNodeEventEmitter(o.stderr,"data");this.B(a(h=>this.f.info(n.identifier.id,n.manifest.version,`post-${s}`,h))),this.B(c(h=>this.f.error(n.identifier.id,n.manifest.version,`post-${s}`,h)));const l=z.any(z.map(a,h=>({data:`%c${h}`,format:[""]}),this.q),z.map(c,h=>({data:`%c${h}`,format:["color: red"]}),this.q));return z.debounce(l,(h,d)=>h?{data:h.data+d.data,format:[...h.format,...d.format]}:{data:d.data,format:d.format},100,void 0,void 0,void 0,this.q)(h=>{console.group(n.identifier.id),console.log(h.data,...h.format),console.groupEnd()}),o}m(t){return j(this.b.defaultProfile.globalStorageHome.fsPath,t.identifier.id.toLowerCase())}},fh=__decorate([__param(0,qs),__param(1,fe)],fh)}}),a9,NL=v({"out-build/vs/platform/extensionManagement/node/extensionsManifestCache.js"(){"use strict";H(),$i(),et(),a9=class extends J{constructor(e,t,s,i,n){super(),this.a=e,this.b=t,this.c=s,this.f=n,this.B(i.onDidInstallExtensions(r=>this.g(r))),this.B(i.onDidUninstallExtension(r=>this.h(r)))}g(e){for(const t of e)t.local&&this.invalidate(t.profileLocation)}h(e){e.error||this.invalidate(e.profileLocation)}async invalidate(e){if(e)for(const t of this.a.profiles)this.c.extUri.isEqual(t.extensionsResource,e)&&await this.j(t);else await this.j(this.a.defaultProfile)}async j(e){try{await this.b.del(this.c.extUri.joinPath(e.cacheHome,q1))}catch(t){ss(t)!==1&&this.f.error(t)}}}}}),c9,RL=v({"out-build/vs/platform/extensionManagement/node/extensionsWatcher.js"(){"use strict";de(),ae(),H(),as(),cn(),$i(),c9=class extends J{constructor(e,t,s,i,n,r,o){super(),this.f=e,this.g=t,this.h=s,this.j=i,this.m=n,this.n=r,this.r=o,this.a=this.B(new D),this.onDidChangeExtensionsByAnotherSource=this.a.event,this.b=new Map,this.c=this.B(new su),this.s().then(null,a=>o.error("Error while initializing Extensions Watcher",Pe(a)))}async s(){await this.g.initializeDefaultProfileExtensions(),await this.u(this.h.profiles),this.t(),await this.H()}t(){this.B(this.h.onDidChangeProfiles(e=>this.u(e.added))),this.B(this.j.onAddExtensions(e=>this.w(e))),this.B(this.j.onDidAddExtensions(e=>this.y(e))),this.B(this.j.onRemoveExtensions(e=>this.z(e))),this.B(this.j.onDidRemoveExtensions(e=>this.C(e))),this.B(this.n.onDidFilesChange(e=>this.D(e)))}async u(e){try{e.length&&await Promise.all(e.map(t=>(this.c.set(t.id,Eb(this.n.watch(this.m.extUri.dirname(t.extensionsResource)),this.n.watch(t.extensionsResource))),this.G(t.extensionsResource))))}catch(t){throw this.r.error(t),t}}async w(e){for(const t of e.extensions)this.I(this.L(t.identifier,t.version),e.profileLocation)}async y(e){for(const t of e.extensions){const s=this.L(t.identifier,t.version);e.error?this.J(s,e.profileLocation):this.I(s,e.profileLocation)}}async z(e){for(const t of e.extensions)this.J(this.L(t.identifier,t.version),e.profileLocation)}async C(e){const t=[],s=[];for(const i of e.extensions){const n=this.L(i.identifier,i.version);e.error?this.I(n,e.profileLocation):(this.J(n,e.profileLocation),this.b.has(n)||(this.r.debug("Extension is removed from all profiles",i.identifier.id,i.version),s.push(this.f.scanInstalledExtensionAtLocation(i.location).then(r=>{r?t.push(r):this.r.info("Extension not found at the location",i.location.toString())},r=>this.r.error(r)))))}try{await Promise.all(s),t.length&&await this.H(t)}catch(i){this.r.error(i)}}D(e){for(const t of this.h.profiles)e.contains(t.extensionsResource,0,1)&&this.F(t.extensionsResource)}async F(e){const t=[],s=[],i=await this.j.scanProfileExtensions(e),n=new Set,r=new Set;for(const[o,a]of this.b)a.has(e)&&r.add(o);for(const o of i){const a=this.L(o.identifier,o.version);n.add(a),r.has(a)||(t.push(o.identifier),this.I(a,e))}for(const o of r)if(!n.has(o)){const a=this.M(o);a&&(s.push(a.identifier),this.J(o,e))}(t.length||s.length)&&this.a.fire({added:t.length?{extensions:t,profileLocation:e}:void 0,removed:s.length?{extensions:s,profileLocation:e}:void 0})}async G(e){const t=await this.j.scanProfileExtensions(e);for(const s of t)this.I(this.L(s.identifier,s.version),e)}async H(e){e||(e=(await this.f.scanAllUserInstalledExtensions()).filter(s=>!this.b.has(this.L(s.identifier,s.manifest.version)))),e.length&&await this.f.markAsUninstalled(...e)}I(e,t){let s=this.b.get(e);s||this.b.set(e,s=new eu(i=>this.m.extUri.getComparisonKey(i))),s.add(t)}J(e,t){const s=this.b.get(e);s&&s.delete(t),s?.size||this.b.delete(e)}L(e,t){return`${Tn.toKey(e.id)}@${t}`}M(e){const[t,s]=X1(e);return s?{identifier:{id:t},version:s}:void 0}}}});import*as LL from"fs";var dh,Pm,Oc,ph,mh,l9,u9=v({"out-build/vs/platform/extensionManagement/node/extensionManagementService.js"(){"use strict";Me(),Ue(),Dt(),br(),de(),ae(),Wa(),H(),as(),Ie(),he(),kt(),Ao(),xe(),te(),Wt(),es(),mm(),pe(),gm(),fs(),bm(),As(),cn(),jo(),Rc(),IL(),DL(),o9(),NL(),RL(),Ju(),et(),re(),De(),js(),Is(),ri(),Gs(),$s(),Q(),dh=zu,Pm=".vsctmp",Oc=class extends oh{constructor(t,s,i,n,r,o,a,c,l,u,h,d,p){super(t,s,d,i,h,p),this.eb=n,this.fb=r,this.gb=o,this.hb=a,this.ib=c,this.jb=l,this.kb=u,this.db=new Map,this.wb=new eu;const g=this.B(c.createInstance(fh));this.ab=this.B(c.createInstance(ph,y=>g.postUninstall(y))),this.bb=this.B(new a9(p,l,d,this,this.F)),this.cb=this.B(c.createInstance(hh));const w=this.B(new c9(this,this.fb,p,o,d,l,i));this.B(w.onDidChangeExtensionsByAnotherSource(y=>this.vb(y))),this.xb()}getTargetPlatform(){return this.lb||(this.lb=r6(this.jb,this.F)),this.lb}async zip(t){this.F.trace("ExtensionManagementService#zip",t.identifier.id);const s=await this.ub(t),i=await bL(ne(this.cb.extensionsDownloadDir,He()).fsPath,s);return E.file(i)}async getManifest(t){const{location:s,cleanup:i}=await this.nb(t),n=Yi(s.fsPath);try{return await km(n)}finally{await i()}}getInstalled(t,s=this.H.defaultProfile.extensionsResource,i={version:this.G.version,date:this.G.date}){return this.ab.scanExtensions(t??null,s,i)}scanAllUserInstalledExtensions(){return this.ab.scanAllUserExtensions(!1)}scanInstalledExtensionAtLocation(t){return this.ab.scanUserExtensionAtLocation(t)}async install(t,s={}){this.F.trace("ExtensionManagementService#install",t.toString());const{location:i,cleanup:n}=await this.nb(t);try{const r=await km(Yi(i.fsPath)),o=an(r.publisher,r.name);if(r.engines&&r.engines.vscode&&!Gu(r.engines.vscode,this.G.version,this.G.date))throw new Error(m(1829,null,o,this.G.version));const c=(await this.I([{manifest:r,extension:i,options:s}])).find(({identifier:l})=>ye(l,{id:o}));if(c?.local)return c.local;throw c?.error?c.error:wt(new Error(`Unknown error while installing extension ${o}`))}finally{await n()}}async installFromLocation(t,s){this.F.trace("ExtensionManagementService#installFromLocation",t.toString());const i=await this.ab.scanUserExtensionAtLocation(t);if(!i||!i.manifest.name||!i.manifest.version)throw new Error(`Cannot find a valid extension from the location ${t.toString()}`);return await this.zb([[i,{source:"resource"}]],s),this.F.info("Successfully installed extension",i.identifier.id,s.toString()),i}async installExtensionsFromProfile(t,s,i){this.F.trace("ExtensionManagementService#installExtensionsFromProfile",t,s.toString(),i.toString());const n=(await this.getInstalled(1,s)).filter(r=>t.some(o=>ye(o,r.identifier)));if(n.length){const r=await Promise.all(n.map(o=>this.ab.scanMetadata(o,s)));await this.zb(n.map((o,a)=>[o,r[a]]),i),this.F.info("Successfully installed extensions",n.map(o=>o.identifier.id),i.toString())}return n}async updateMetadata(t,s,i){return this.F.trace("ExtensionManagementService#updateMetadata",t.identifier.id),s.isPreReleaseVersion&&(s.preRelease=!0,s.hasPreReleaseVersion=!0),s.isMachineScoped===!1&&(s.isMachineScoped=void 0),s.isBuiltin===!1&&(s.isBuiltin=void 0),s.pinned===!1&&(s.pinned=void 0),t=await this.ab.updateMetadata(t,s,i),this.bb.invalidate(i),this.w.fire({local:t,profileLocation:i}),t}async reinstallFromGallery(t){if(this.F.trace("ExtensionManagementService#reinstallFromGallery",t.identifier.id),!this.z.isEnabled())throw new Error(m(1830,null));const s=await this.getTargetPlatform(),[i]=await this.z.getExtensions([{...t.identifier,preRelease:t.preRelease}],{targetPlatform:s,compatible:!0},Re.None);if(!i)throw new Error(m(1831,null));await this.ab.setUninstalled(t);try{await this.ab.removeUninstalledExtension(t)}catch(n){throw new Error(m(1832,null,Nn(n)))}return this.installFromGallery(i)}$(t,s,i,n){return this.ab.copyExtension(t,s,i,n)}copyExtensions(t,s){return this.ab.copyExtensions(t,s,{version:this.G.version,date:this.G.date})}markAsUninstalled(...t){return this.ab.setUninstalled(...t)}async cleanUp(){this.F.trace("ExtensionManagementService#cleanUp");try{await this.ab.cleanUp()}catch(t){this.F.error(t)}}async download(t,s,i){const{location:n}=await this.sb(t,s,!i);return n}async nb(t){if(t.scheme===Z.file)return{location:t,async cleanup(){}};this.F.trace("Downloading extension from",t.toString());const s=ne(this.cb.extensionsDownloadDir,He());return await this.hb.download(t,s),this.F.info("Downloaded extension to",s.toString()),{location:s,cleanup:async()=>{try{await this.jb.del(s)}catch(n){this.F.error(n)}}}}X(){return this.H.defaultProfile.extensionsResource}Y(t,s,i){const n=s instanceof E?new ts({id:an(t.publisher,t.name)},t.version):ts.create(s);return this.ib.createInstance(mh,n,t,s,i,(r,o)=>{if(s instanceof E)return this.tb(n,s,i,o);let a=this.db.get(n.toString());return a||(this.db.set(n.toString(),a=this.rb(n,s,r,i,o)),a.finally(()=>this.db.delete(n.toString()))),a},this.ab)}Z(t,s){return new l9(t,s,this.gb)}async rb(t,s,i,n,r){const{verificationStatus:o,location:a}=await this.sb(s,i,!n.donotVerifySignature,n.context?.[V5]);try{if(r.isCancellationRequested)throw new It;const c=await km(a.fsPath);if(!new ts(s.identifier,s.version).equals(new ts({id:an(c.publisher,c.name)},c.version)))throw new Qe(m(1833,null,s.identifier.id),"Invalid");return{local:await this.ab.extractUserExtension(t,a.fsPath,{id:s.identifier.uuid,publisherId:s.publisherId,publisherDisplayName:s.publisherDisplayName,targetPlatform:s.properties.targetPlatform,isApplicationScoped:n.isApplicationScoped,isMachineScoped:n.isMachineScoped,isBuiltin:n.isBuiltin,isPreReleaseVersion:s.properties.isPreReleaseVersion,hasPreReleaseVersion:s.properties.isPreReleaseVersion,installedTimestamp:Date.now(),pinned:n.installGivenVersion?!0:!!n.pinned,preRelease:Dn(n.preRelease)?n.preRelease:n.installPreReleaseVersion||s.properties.isPreReleaseVersion,source:"gallery"},!1,r),verificationStatus:o}}catch(c){try{await this.cb.delete(a)}catch(l){this.F.warn("Error while deleting the downloaded file",a.toString(),Pe(l))}throw wt(c)}}async sb(t,s,i,n){if(i){const a=this.kb.getValue("extensions.verifySignature");i=Dn(a)?a:!0}const{location:r,verificationStatus:o}=await this.cb.download(t,s,i,n);if(o!==Gt.Success&&i&&this.eb.isBuilt&&!it){if(!t.isSigned)throw new Qe(m(1834,null),"PackageNotSigned");if(!o)throw new Qe(m(1835,null),"SignatureVerificationInternal");switch(o){case Gt.PackageIntegrityCheckFailed:case Gt.SignatureIsInvalid:case Gt.SignatureManifestIsInvalid:case Gt.SignatureIntegrityCheckFailed:case Gt.EntryIsMissing:case Gt.EntryIsTampered:case Gt.Untrusted:case Gt.CertificateRevoked:case Gt.SignatureIsNotValid:case Gt.SignatureArchiveHasTooManyEntries:throw new Qe(m(1836,null,o),"SignatureVerificationFailed")}throw new Qe(m(1837,null,o),"SignatureVerificationInternal")}return{location:r,verificationStatus:o}}async tb(t,s,i,n){return{local:await this.ab.extractUserExtension(t,Yi(s.fsPath),{isApplicationScoped:i.isApplicationScoped,isMachineScoped:i.isMachineScoped,isBuiltin:i.isBuiltin,installedTimestamp:Date.now(),pinned:i.installGivenVersion?!0:!!i.pinned,source:"vsix"},i.keepExisting??!0,n)}}async ub(t){const s=async n=>{let r=await Le.readdir(n);r=r.map(c=>j(n,c));const o=await Promise.all(r.map(c=>LL.promises.stat(c)));let a=Promise.resolve([]);return o.forEach((c,l)=>{const u=r[l];c.isFile()&&(a=a.then(h=>[...h,u])),c.isDirectory()&&(a=a.then(h=>s(u).then(d=>[...h,...d])))}),a};return(await s(t.location.fsPath)).map(n=>({path:`extension/${Ba(t.location.fsPath,n)}`,localPath:n}))}async vb({added:t,removed:s}){if(s){const i=t&&this.D.extUri.isEqual(s.profileLocation,t.profileLocation)?s.extensions.filter(n=>t.extensions.every(r=>!ye(r,n))):s.extensions;for(const n of i)this.F.info("Extensions removed from another source",n.id,s.profileLocation.toString()),this.u.fire({identifier:n,profileLocation:s.profileLocation})}if(t){const n=(await this.getInstalled(1,t.profileLocation)).filter(r=>t.extensions.some(o=>ye(o,r.identifier)));this.s.fire(n.map(r=>(this.F.info("Extensions added from another source",r.identifier.id,t.profileLocation.toString()),{identifier:r.identifier,local:r,profileLocation:t.profileLocation,operation:1})))}}async xb(){this.B(this.ab.onExtract(s=>this.wb.add(s)));const t=await this.jb.resolve(this.fb.userExtensionsLocation);for(const s of t.children??[])s.isDirectory&&this.wb.add(s.resource);this.B(this.jb.watch(this.fb.userExtensionsLocation)),this.B(this.jb.onDidFilesChange(s=>this.yb(s)))}async yb(t){if(!t.affects(this.fb.userExtensionsLocation,1))return;const s=[];for(const i of t.rawAdded){if(this.wb.has(i)||!this.D.extUri.isEqual(this.D.extUri.dirname(i),this.fb.userExtensionsLocation)||this.D.extUri.isEqual(i,this.D.extUri.joinPath(this.fb.userExtensionsLocation,".obsolete"))||this.D.extUri.basename(i).startsWith(".")||!(await this.jb.stat(i)).isDirectory)continue;const n=await this.ab.scanUserExtensionAtLocation(i);n&&n.installedTimestamp===void 0&&(this.wb.add(i),s.push(n))}s.length&&(await this.zb(s.map(i=>[i,void 0]),this.H.defaultProfile.extensionsResource),this.F.info("Added extensions to default profile from external source",s.map(i=>i.identifier.id)))}async zb(t,s){const i=t.map(n=>n[0]);await this.Ab(i),await this.gb.addExtensionsToProfile(t,s),this.s.fire(i.map(n=>({local:n,identifier:n.identifier,operation:1,profileLocation:s})))}async Ab(t){const s=await this.ab.getUninstalledExtensions();for(const i of t){const n=ts.create(i);s[n.toString()]&&(this.F.trace("Removing the extension from uninstalled list:",n.id),await this.ab.setInstalled(n),this.F.info("Removed the extension from uninstalled list:",n.id))}}},Oc=__decorate([__param(0,ii),__param(1,qt),__param(2,fe),__param(3,Hs),__param(4,Rr),__param(5,Pi),__param(6,rh),__param(7,yr),__param(8,gt),__param(9,hs),__param(10,Tt),__param(11,Mt),__param(12,qs)],Oc),ph=class extends J{constructor(t,s,i,n,r,o,a){super(),this.n=t,this.s=s,this.t=i,this.u=n,this.w=r,this.y=o,this.z=a,this.h=this.B(new D),this.onExtract=this.h.event,this.j=new At,this.m=new At,this.c=ne(this.t.userExtensionsLocation,".obsolete"),this.g=new go}async cleanUp(){await this.J(),await this.I()}async scanExtensions(t,s,i){try{const n={includeInvalid:!0,profileLocation:s,productVersion:i};let r=[];if(t===null||t===0){let o=this.j.get(s);o||(o=this.t.scanAllExtensions({includeInvalid:!0,useCache:!0},n,!1).finally(()=>this.j.delete(s)),this.j.set(s,o)),r.push(...await o)}else if(t===1){let o=this.m.get(s);o||(o=this.t.scanUserExtensions(n).finally(()=>this.m.delete(s)),this.m.set(s,o)),r.push(...await o)}return r=t!==null?r.filter(o=>o.type===t):r,await Promise.all(r.map(o=>this.H(o)))}catch(n){throw wt(n,"Scanning")}}async scanAllUserExtensions(t){try{const s=await this.t.scanUserExtensions({includeAllVersions:!t,includeInvalid:!0});return await Promise.all(s.map(i=>this.H(i)))}catch(s){throw wt(s,"Scanning")}}async scanUserExtensionAtLocation(t){try{const s=await this.t.scanExistingExtension(t,1,{includeInvalid:!0});if(s)return await this.H(s)}catch(s){this.z.error(s)}return null}async extractUserExtension(t,s,i,n,r){const o=t.toString(),a=E.file(j(this.t.userExtensionsLocation.fsPath,`.${He()}`)),c=E.file(j(this.t.userExtensionsLocation.fsPath,o));if(await this.s.exists(c)){if(!n)try{return await this.scanLocalExtension(c,1)}catch(l){this.z.warn(`Error while scanning the existing extension at ${c.path}. Deleting the existing extension and extracting it.`,Pe(l))}try{await this.D(t.id,c,"removeExisting")}catch{throw new Qe(m(1838,null,c.fsPath,t.id),"Delete")}}try{if(r.isCancellationRequested)throw new It;try{this.z.trace(`Started extracting the extension from ${s} to ${c.fsPath}`),await yL(s,a.fsPath,{sourcePath:"extension",overwrite:!0},r),this.z.info(`Extracted extension to ${c}:`,t.id)}catch(l){throw xm(l)}try{await this.t.updateMetadata(a,i)}catch(l){throw this.y.publicLog2("extension:extract",{extensionId:t.id,code:`${ss(l)}`}),wt(l,"UpdateMetadata")}if(r.isCancellationRequested)throw new It;try{this.z.trace(`Started renaming the extension from ${a.fsPath} to ${c.fsPath}`),await this.G(a.fsPath,c.fsPath),this.z.info("Renamed to",c.fsPath)}catch(l){if(l.code==="ENOTEMPTY"){this.z.info("Rename failed because extension was installed by another source. So ignoring renaming.",t.id);try{await this.s.del(a,{recursive:!0})}catch{}}else throw this.z.info(`Rename failed because of ${Pe(l)}. Deleted from extracted location`,a),l}this.h.fire(c)}catch(l){try{await this.s.del(a,{recursive:!0})}catch{}throw l}return this.scanLocalExtension(c,1)}async scanMetadata(t,s){return s?(await this.C(t,s))?.metadata:this.t.scanMetadata(t.location)}async C(t,s){return(await this.u.scanProfileExtensions(s)).find(n=>ye(n.identifier,t.identifier))}async updateMetadata(t,s,i){try{i?await this.u.updateMetadata([[t,s]],i):await this.t.updateMetadata(t.location,s)}catch(n){throw this.y.publicLog2("extension:extract",{extensionId:t.identifier.id,code:`${ss(n)}`,isProfile:!!i}),wt(n,"UpdateMetadata")}return this.scanLocalExtension(t.location,t.type,i)}async getUninstalledExtensions(){try{return await this.F()}catch(t){throw wt(t,"ReadUninstalled")}}async setUninstalled(...t){const s=t.map(i=>ts.create(i));await this.F(i=>s.forEach(n=>{i[n.toString()]=!0,this.z.info("Marked extension as uninstalled",n.toString())}))}async setInstalled(t){try{await this.F(s=>delete s[t.toString()])}catch(s){throw wt(s,"UnsetUninstalled")}}async removeExtension(t,s){if(this.w.extUri.isEqualOrParent(t.location,this.t.userExtensionsLocation))return this.D(t.identifier.id,t.location,s)}async removeUninstalledExtension(t){await this.removeExtension(t,"uninstalled"),await this.F(s=>delete s[ts.create(t).toString()])}async copyExtension(t,s,i,n){const r=await this.C(t,s),o=await this.C(t,i);if(n={...r?.metadata,...n},o)if(this.w.extUri.isEqual(o.location,t.location))await this.u.updateMetadata([[t,{...o.metadata,...n}]],i);else{const a=await this.scanLocalExtension(o.location,t.type,i);await this.u.removeExtensionFromProfile(a,i),await this.u.addExtensionsToProfile([[t,{...o.metadata,...n}]],i)}else await this.u.addExtensionsToProfile([[t,n]],i);return this.scanLocalExtension(t.location,t.type,i)}async copyExtensions(t,s,i){const n=await this.scanExtensions(1,t,i),r=await Promise.all(n.filter(o=>!o.isApplicationScoped).map(async o=>[o,await this.scanMetadata(o,t)]));await this.u.addExtensionsToProfile(r,s)}async D(t,s,i){this.z.trace(`Deleting ${i} extension from disk`,t,s.fsPath);const n=this.w.extUri.joinPath(this.w.extUri.dirname(s),`${this.w.extUri.basename(s)}.${co(He()).toString(16)}${Pm}`);await this.G(s.fsPath,n.fsPath),await this.s.del(n,{recursive:!0}),this.z.info(`Deleted ${i} extension from disk`,t,s.fsPath)}F(t){return this.g.queue(async()=>{let s;try{s=(await this.s.readFile(this.c,"utf8")).value.toString()}catch(n){if(ss(n)!==1)throw n}let i={};if(s)try{i=JSON.parse(s)}catch{}return t&&(t(i),Object.keys(i).length?await this.s.writeFile(this.c,O.fromString(JSON.stringify(i))):await this.s.del(this.c)),i})}async G(t,s){try{await Le.rename(t,s,2*60*1e3)}catch(i){throw wt(i,"Rename")}}async scanLocalExtension(t,s,i){try{if(i){const r=(await this.t.scanUserExtensions({profileLocation:i})).find(o=>this.w.extUri.isEqual(o.location,t));if(r)return await this.H(r)}else{const n=await this.t.scanExistingExtension(t,s,{includeInvalid:!0});if(n)return await this.H(n)}throw new Qe(m(1839,null,t.path),"ScanningExtension")}catch(n){throw wt(n,"ScanningExtension")}}async H(t){const s=await this.s.resolve(t.location);let i,n;return s.children&&(i=s.children.find(({name:r})=>/^readme(\.txt|\.md|)$/i.test(r))?.resource,n=s.children.find(({name:r})=>/^changelog(\.txt|\.md|)$/i.test(r))?.resource),{identifier:t.identifier,type:t.type,isBuiltin:t.isBuiltin||!!t.metadata?.isBuiltin,location:t.location,manifest:t.manifest,targetPlatform:t.targetPlatform,validations:t.validations,isValid:t.isValid,readmeUrl:i,changelogUrl:n,publisherDisplayName:t.metadata?.publisherDisplayName,publisherId:t.metadata?.publisherId||null,isApplicationScoped:!!t.metadata?.isApplicationScoped,isMachineScoped:!!t.metadata?.isMachineScoped,isPreReleaseVersion:!!t.metadata?.isPreReleaseVersion,hasPreReleaseVersion:!!t.metadata?.hasPreReleaseVersion,preRelease:!!t.metadata?.preRelease,installedTimestamp:t.metadata?.installedTimestamp,updated:!!t.metadata?.updated,pinned:!!t.metadata?.pinned,isWorkspaceScoped:!1,source:t.metadata?.source??(t.identifier.uuid?"gallery":"vsix")}}async I(){const t=await this.getUninstalledExtensions();if(Object.keys(t).length===0){this.z.debug("No uninstalled extensions found.");return}this.z.debug("Removing uninstalled extensions:",Object.keys(t));const s=await this.t.scanUserExtensions({includeAllVersions:!0,includeUninstalled:!0,includeInvalid:!0}),i=new Set;for(const r of s)t[ts.create(r).toString()]||i.add(r.identifier.id.toLowerCase());try{const r=n6(s,o=>o.identifier);await Zt.settled(r.map(async o=>{const a=o.sort((c,l)=>Z1(c.manifest.version,l.manifest.version))[0];i.has(a.identifier.id.toLowerCase())||await this.n(await this.H(a))}))}catch(r){this.z.error(r)}const n=s.filter(r=>r.metadata&&t[ts.create(r).toString()]);await Promise.allSettled(n.map(r=>this.removeUninstalledExtension(r)))}async J(){this.z.trace("ExtensionManagementService#removeTempDeleteFolders");let t;try{t=await this.s.resolve(this.t.userExtensionsLocation)}catch(s){ss(s)!==1&&this.z.error(s);return}if(t?.children)try{await Promise.allSettled(t.children.map(async s=>{if(!(!s.isDirectory||!s.name.endsWith(Pm))){this.z.trace("Deleting the temporarily deleted folder",s.resource.toString());try{await this.s.del(s.resource,{recursive:!0}),this.z.trace("Deleted the temporarily deleted folder",s.resource.toString())}catch(i){ss(i)!==1&&this.z.error(i)}}}))}catch{}}},ph=__decorate([__param(1,gt),__param(2,Rr),__param(3,Pi),__param(4,Mt),__param(5,qt),__param(6,fe)],ph),mh=class extends vm{get operation(){return this.options.operation??this.j}get verificationStatus(){return this.k}constructor(t,s,i,n,r,o,a,c,l,u,h,d){super(),this.l=t,this.manifest=s,this.source=i,this.options=n,this.m=r,this.n=o,this.o=a,this.p=c,this.q=l,this.s=u,this.t=h,this.u=d,this.j=2,this.identifier=this.l.identifier}async h(t){const i=(await this.n.scanExtensions(1,this.options.profileLocation,this.options.productVersion)).find(a=>ye(a.identifier,this.identifier));i&&(this.j=3);const n={isApplicationScoped:this.options.isApplicationScoped||i?.isApplicationScoped,isMachineScoped:this.options.isMachineScoped||i?.isMachineScoped,isBuiltin:this.options.isBuiltin||i?.isBuiltin,isSystem:i?.type===0?!0:void 0,installedTimestamp:Date.now(),pinned:this.options.installGivenVersion?!0:this.options.pinned??i?.pinned,source:this.source instanceof E?"vsix":"gallery"};let r;if(this.source instanceof E){if(i&&this.l.equals(new ts(i.identifier,i.manifest.version)))try{await this.n.removeExtension(i,"existing")}catch{throw new Error(m(1840,null,this.manifest.displayName||this.manifest.name))}const a=await this.w(this.l);if(a)try{await this.n.removeExtension(a,"existing")}catch{throw new Error(m(1841,null,this.manifest.displayName||this.manifest.name))}}else{if(n.id=this.source.identifier.uuid,n.publisherId=this.source.publisherId,n.publisherDisplayName=this.source.publisherDisplayName,n.targetPlatform=this.source.properties.targetPlatform,n.updated=!!i,n.isPreReleaseVersion=this.source.properties.isPreReleaseVersion,n.hasPreReleaseVersion=i?.hasPreReleaseVersion||this.source.properties.isPreReleaseVersion,n.preRelease=Dn(this.options.preRelease)?this.options.preRelease:this.options.installPreReleaseVersion||this.source.properties.isPreReleaseVersion||i?.preRelease,i&&i.type!==0&&i.manifest.version===this.source.version)return this.n.updateMetadata(i,n,this.options.profileLocation);r=await this.w(this.l)}if(t.isCancellationRequested)throw wt(new It);if(!r){const a=await this.m(this.operation,t);r=a.local,this.k=a.verificationStatus}if(this.o.extUri.isEqual(this.q.defaultProfile.extensionsResource,this.options.profileLocation))try{await this.s.initializeDefaultProfileExtensions()}catch(a){throw wt(a,"IntializeDefaultProfile")}if(t.isCancellationRequested)throw wt(new It);try{await this.t.addExtensionsToProfile([[r,n]],this.options.profileLocation,!r.isValid)}catch(a){throw wt(a,"AddToProfile")}const o=await this.n.scanLocalExtension(r.location,1,this.options.profileLocation);if(!o)throw new Qe("Cannot find the installed extension","InstalledExtensionNotFound");return this.source instanceof E&&this.x(r,t),o}async w(t){return(await this.n.getUninstalledExtensions())[t.toString()]?(this.u.trace("Removing the extension from uninstalled list:",t.id),await this.n.setInstalled(t),this.u.info("Removed the extension from uninstalled list:",t.id),(await this.n.scanAllUserExtensions(!0)).find(n=>ts.create(n).equals(t))):void 0}async x(t,s){try{let[i]=await this.p.getExtensions([{id:t.identifier.id,version:t.manifest.version}],s);if(i||([i]=await this.p.getExtensions([{id:t.identifier.id}],s)),i){const n={id:i.identifier.uuid,publisherDisplayName:i.publisherDisplayName,publisherId:i.publisherId,isPreReleaseVersion:i.properties.isPreReleaseVersion,hasPreReleaseVersion:t.hasPreReleaseVersion||i.properties.isPreReleaseVersion,preRelease:i.properties.isPreReleaseVersion||this.options.installPreReleaseVersion};await this.n.updateMetadata(t,n,this.options.profileLocation)}}catch{}}},mh=__decorate([__param(6,Mt),__param(7,ii),__param(8,qs),__param(9,Rr),__param(10,Pi),__param(11,fe)],mh),l9=class extends vm{constructor(e,t,s){super(),this.extension=e,this.options=t,this.j=s}async h(e){await this.j.removeExtensionFromProfile(this.extension,this.options.profileLocation)}}}}),h9,Im,OL=v({"out-build/vs/platform/instantiation/common/graph.js"(){"use strict";h9=class{constructor(e,t){this.key=e,this.data=t,this.incoming=new Map,this.outgoing=new Map}},Im=class{constructor(e){this.b=e,this.a=new Map}roots(){const e=[];for(const t of this.a.values())t.outgoing.size===0&&e.push(t);return e}insertEdge(e,t){const s=this.lookupOrInsertNode(e),i=this.lookupOrInsertNode(t);s.outgoing.set(i.key,i),i.incoming.set(s.key,s)}removeNode(e){const t=this.b(e);this.a.delete(t);for(const s of this.a.values())s.outgoing.delete(t),s.incoming.delete(t)}lookupOrInsertNode(e){const t=this.b(e);let s=this.a.get(t);return s||(s=new h9(t,e),this.a.set(t,s)),s}lookup(e){return this.a.get(this.b(e))}isEmpty(){return this.a.size===0}toString(){const e=[];for(const[t,s]of this.a)e.push(`${t} (-> incoming)[${[...s.incoming.keys()].join(", ")}] (outgoing ->)[${[...s.outgoing.keys()].join(",")}] `);return e.join(` `)}findCycleSlow(){for(const[e,t]of this.a){const s=new Set([e]),i=this.c(t,s);if(i)return i}}c(e,t){for(const[s,i]of e.outgoing){if(t.has(s))return[...t,s].join(" -> ");t.add(s);const n=this.c(i,t);if(n)return n;t.delete(s)}}}}}),f9,Am,Dm,d9,gh,p9=v({"out-build/vs/platform/instantiation/common/instantiationService.js"(){"use strict";Me(),de(),H(),xu(),OL(),re(),zp(),kb(),f9=!1,Am=class extends Error{constructor(e){super("cyclic dependency between services"),this.message=e.findCycleSlow()??`UNABLE to detect cycle, dumping graph: ${e.toString()}`}},Dm=class pv{constructor(t=new fu,s=!1,i,n=f9){this.i=t,this.j=s,this.k=i,this.l=n,this.f=!1,this.g=new Set,this.h=new Set,this.t=new Set,this.i.set(yr,this),this._globalGraph=n?i?._globalGraph??new Im(r=>r):void 0}dispose(){if(!this.f){this.f=!0,jt(this.h),this.h.clear();for(const t of this.g)aA(t)&&t.dispose();this.g.clear()}}m(){if(this.f)throw new Error("InstantiationService has been disposed")}createChild(t,s){this.m();const i=this,n=new class extends pv{dispose(){i.h.delete(n),super.dispose()}}(t,this.j,this,this.l);return this.h.add(n),s?.add(n),n}invokeFunction(t,...s){this.m();const i=gh.traceInvocation(this.l,t);let n=!1;try{return t({get:o=>{if(n)throw jv("service accessor is only valid during the invocation of its target method");const a=this.s(o,i);if(!a)throw new Error(`[invokeFunction] unknown service '${o}'`);return a}},...s)}finally{n=!0,i.stop()}}createInstance(t,...s){this.m();let i,n;return t instanceof at?(i=gh.traceCreation(this.l,t.ctor),n=this.o(t.ctor,t.staticArguments.concat(s),i)):(i=gh.traceCreation(this.l,t),n=this.o(t,s,i)),i.stop(),n}o(t,s=[],i){const n=si.getServiceDependencies(t).sort((a,c)=>a.index-c.index),r=[];for(const a of n){const c=this.s(a.id,i);c||this.y(`[createInstance] ${t.name} depends on UNKNOWN service ${a.id}.`,!1),r.push(c)}const o=n.length>0?n[0].index:s.length;if(s.length!==o){console.trace(`[createInstance] First service dependency of ${t.name} at position ${o+1} conflicts with ${s.length} static arguments`);const a=o-s.length;a>0?s=s.concat(new Array(a)):s=s.slice(0,o)}return Reflect.construct(t,s.concat(r))}q(t,s){if(this.i.get(t)instanceof at)this.i.set(t,s);else if(this.k)this.k.q(t,s);else throw new Error("illegalState - setting UNKNOWN service instance")}r(t){const s=this.i.get(t);return!s&&this.k?this.k.r(t):s}s(t,s){this._globalGraph&&this.c&&this._globalGraph.insertEdge(this.c,String(t));const i=this.r(t);return i instanceof at?this.u(t,i,s.branch(t,!0)):(s.branch(t,!1),i)}u(t,s,i){if(this.t.has(t))throw new Error(`illegal state - RECURSIVELY instantiating service '${t}'`);this.t.add(t);try{return this.v(t,s,i)}finally{this.t.delete(t)}}v(t,s,i){const n=new Im(c=>c.id.toString());let r=0;const o=[{id:t,desc:s,_trace:i}],a=new Set;for(;o.length;){const c=o.pop();if(!a.has(String(c.id))){if(a.add(String(c.id)),n.lookupOrInsertNode(c),r++>1e3)throw new Am(n);for(const l of si.getServiceDependencies(c.desc.ctor)){const u=this.r(l.id);if(u||this.y(`[createInstance] ${t} depends on ${l.id} which is NOT registered.`,!0),this._globalGraph?.insertEdge(String(c.id),String(l.id)),u instanceof at){const h={id:l.id,desc:u,_trace:c._trace.branch(l.id,!0)};n.insertEdge(c,h),o.push(h)}}}}for(;;){const c=n.roots();if(c.length===0){if(!n.isEmpty())throw new Am(n);break}for(const{data:l}of c){if(this.r(l.id)instanceof at){const h=this.w(l.id,l.desc.ctor,l.desc.staticArguments,l.desc.supportsDelayedInstantiation,l._trace);this.q(l.id,h)}n.removeNode(l)}}return this.r(t)}w(t,s,i=[],n,r){if(this.i.get(t)instanceof at)return this.x(t,s,i,n,r,this.g);if(this.k)return this.k.w(t,s,i,n,r);throw new Error(`illegalState - creating UNKNOWN service instance ${s.name}`)}x(t,s,i=[],n,r,o){if(n){const a=new pv(void 0,this.j,this,this.l);a.c=String(t);const c=new Map,l=new g4(()=>{const u=a.o(s,i,r);for(const[h,d]of c){const p=u[h];if(typeof p=="function")for(const g of d)g.disposable=p.apply(u,g.listener)}return c.clear(),o.add(u),u});return new Proxy(Object.create(null),{get(u,h){if(!l.isInitialized&&typeof h=="string"&&(h.startsWith("onDid")||h.startsWith("onWill"))){let g=c.get(h);return g||(g=new $p,c.set(h,g)),(y,x,k)=>{if(l.isInitialized)return l.value[h](y,x,k);{const A={listener:[y,x,k],disposable:void 0},I=g.push(A);return ve(()=>{I(),A.disposable?.dispose()})}}}if(h in u)return u[h];const d=l.value;let p=d[h];return typeof p!="function"||(p=p.bind(d),u[h]=p),p},set(u,h,d){return l.value[h]=d,!0},getPrototypeOf(u){return s.prototype}})}else{const a=this.o(s,i,r);return o.add(a),a}}y(t,s){if(s&&console.warn(t),this.j)throw new Error(t)}},function(e){e[e.None=0]="None",e[e.Creation=1]="Creation",e[e.Invocation=2]="Invocation",e[e.Branch=3]="Branch"}(d9||(d9={})),gh=class Mi{static{this.all=new Set}static{this.c=new class extends Mi{constructor(){super(0,null)}stop(){}branch(){return this}}}static traceInvocation(t,s){return t?new Mi(2,s.name||new Error().stack.split(` `).slice(3,4).join(` `)):Mi.c}static traceCreation(t,s){return t?new Mi(1,s.name):Mi.c}static{this.f=0}constructor(t,s){this.type=t,this.name=s,this.g=Date.now(),this.h=[]}branch(t,s){const i=new Mi(3,t.toString());return this.h.push([t,s,i]),i}stop(){const t=Date.now()-this.g;Mi.f+=t;let s=!1;function i(r,o){const a=[],c=new Array(r+1).join(" ");for(const[l,u,h]of o.h)if(u&&h){s=!0,a.push(`${c}CREATES -> ${l}`);const d=i(r+1,h);d&&a.push(d)}else a.push(`${c}uses -> ${l}`);return a.join(` `)}const n=[`${this.type===1?"CREATE":"CALL"} ${this.name}`,`${i(1,this)}`,`DONE, took ${t.toFixed(2)}ms (grand total ${Mi.f.toFixed(2)}ms)`];(t>2||s)&&Mi.all.add(n.join(` `))}}}}),Ns,wh,Bt,Cc=v({"out-build/vs/platform/product/common/product.js"(){"use strict";if(ei(),wh=globalThis.vscode,typeof wh<"u"&&typeof wh.context<"u"){const e=wh.context.configuration();if(e)Ns=e.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(Ns=globalThis._VSCODE_PRODUCT_JSON,Cs.VSCODE_DEV&&Object.assign(Ns,{nameShort:`${Ns.nameShort} Dev`,nameLong:`${Ns.nameLong} Dev`,dataFolderName:`${Ns.dataFolderName}-dev`,serverDataFolderName:Ns.serverDataFolderName?`${Ns.serverDataFolderName}-dev`:void 0}),!Ns.version){const e=globalThis._VSCODE_PACKAGE_JSON;Object.assign(Ns,{version:e.version})}}else Ns={nameShort:"Code",nameLong:"Visual Studio Code",applicationName:"code",win32x64AppId:"{{EA457B21-F73E-494C-ACAB-524FDE069978}",win32arm64AppId:"{{A5270FC5-65AD-483E-AC30-2C276B63D0AC}",win32x64UserAppId:"{{771FD6B0-FA20-440A-A002-3B3BAC16DC50}",win32arm64UserAppId:"{{D9E514E7-1A56-452D-9337-2990C0DC4310}",win32NameVersion:"Microsoft Visual Studio Code",win32DirName:"Microsoft VS Code",win32SetupExeBasename:"VSCodeSetup",win32AppUserModelId:"Microsoft.VisualStudioCode",win32ShellNameShort:"Code",win32MutexName:"vscode",win32RegValueName:"VSCode",darwinCredits:"resources/darwin/Credits.rtf",darwinBundleIdentifier:"com.microsoft.VSCode",darwinExecutable:"VSCode",linuxIconName:"vscode",licenseFileName:"LICENSE.rtf",licenseName:"Multiple, see https://code.visualstudio.com/license",serverGreeting:[],serverLicense:["*","* Visual Studio Code Server","*","* By using the software, you agree to","* the Visual Studio Code Server License Terms (https://aka.ms/vscode-server-license) and","* the Microsoft Privacy Statement (https://privacy.microsoft.com/en-US/privacystatement).","*"],serverLicensePrompt:"Do you accept the terms in the License Agreement (Y/n)?",serverApplicationName:"code-server",urlProtocol:"vscode",dataFolderName:".vscode",serverDataFolderName:".vscode-server",downloadUrl:"https://code.visualstudio.com",updateUrl:"https://update.code.visualstudio.com",webUrl:"https://vscode.dev",webEndpointUrl:"https://main.vscode-cdn.net",webEndpointUrlTemplate:"https://{{uuid}}.vscode-cdn.net/{{quality}}/{{commit}}",nlsCoreBaseUrl:"https://www.vscode-unpkg.net/nls/",webviewContentExternalBaseUrlTemplate:"https://{{uuid}}.vscode-cdn.net/{{quality}}/{{commit}}/out/vs/workbench/contrib/webview/browser/pre/",quality:"stable",extensionsGallery:{nlsBaseUrl:"https://www.vscode-unpkg.net/_lp/",serviceUrl:"https://marketplace.visualstudio.com/_apis/public/gallery",itemUrl:"https://marketplace.visualstudio.com/items",publisherUrl:"https://marketplace.visualstudio.com/publishers",resourceUrlTemplate:"https://{publisher}.vscode-unpkg.net/{publisher}/{name}/{version}/{path}",controlUrl:"https://az764295.vo.msecnd.net/extensions/marketplace.json"},profileTemplatesUrl:"https://az764295.vo.msecnd.net/profile-templates/profile-templates.json",extensionRecommendations:{"ms-dotnettools.csdevkit":{onFileOpen:[{pathGlob:"{**/*.cs,**/global.json,**/*.csproj,**/*.cshtml,**/*.sln}",important:!0},{languages:["csharp"],important:!0},{pathGlob:"{**/project.json,**/appsettings.json}"}]},"ms-python.python":{onFileOpen:[{pathGlob:"{**/*.py}",important:!0},{languages:["python"],important:!0},{pathGlob:"{**/*.ipynb}"}]},"ms-toolsai.jupyter":{onFileOpen:[{pathGlob:"{**/*.py}",contentPattern:"^#\\s*%%$",important:!0,whenInstalled:["ms-python.python"]},{pathGlob:"{**/*.ipynb}"}]},"ms-toolsai.datawrangler":{onFileOpen:[{pathGlob:"{**/*.ipynb}",contentPattern:"import\\s*pandas|from\\s*pandas",whenInstalled:["ms-toolsai.jupyter"]}]},"golang.Go":{onFileOpen:[{pathGlob:"**/*.go",important:!0},{languages:["go"],important:!0}]},"vscjava.vscode-java-pack":{onFileOpen:[{pathGlob:"{**/*.java}",important:!0,whenNotInstalled:["ASF.apache-netbeans-java","Oracle.oracle-java"]},{languages:["java"],important:!0,whenNotInstalled:["ASF.apache-netbeans-java","Oracle.oracle-java"]}]},"ms-vscode.PowerShell":{onFileOpen:[{pathGlob:"{**/*.ps1,**/*.psd1,**/*.psm1}",important:!0},{languages:["powershell"],important:!0},{pathGlob:"{**/*.ps.config,**/*.ps1.config}"}]},"ms-toolsai.prompty":{onFileOpen:[{pathGlob:"{**/*.prompty}",important:!1}]},"ms-vscode.cpptools-extension-pack":{onFileOpen:[{pathGlob:"{**/*.c,**/*.cpp,**/*.cc,**/.cxx,**/*.hh,**/*.hpp,**/*.hxx,**/*.h}",important:!0,whenNotInstalled:["llvm-vs-code-extensions.vscode-clangd"]},{languages:["c","cpp"],important:!0,whenNotInstalled:["llvm-vs-code-extensions.vscode-clangd"]}]},"ms-azuretools.vscode-docker":{onFileOpen:[{pathGlob:"{**/dockerfile,**/Dockerfile,**/docker-compose.yml,**/docker-compose.*.yml}",important:!0},{languages:["dockerfile"],important:!0},{pathGlob:"{**/*.cs,**/project.json,**/global.json,**/*.csproj,**/*.cshtml,**/*.sln,**/appsettings.json,**/*.py,**/*.ipynb,**/*.js,**/*.ts,**/package.json}"}]},"vue.volar":{onFileOpen:[{pathGlob:"{**/*.vue}",important:!0},{languages:["vue"],important:!0}]},"ms-vscode.makefile-tools":{onFileOpen:[{pathGlob:"{**/makefile,**/Makefile}",important:!0},{languages:["makefile"],important:!0}]},"ms-vscode.cmake-tools":{onFileOpen:[{pathGlob:"{**/CMakeLists.txt}",important:!0}]},"ms-azure-devops.azure-pipelines":{onFileOpen:[{pathGlob:"{**/azure-pipelines.yaml}",important:!0}]},"msazurermtools.azurerm-vscode-tools":{onFileOpen:[{pathGlob:"{**/azuredeploy.json}",important:!0}]},"ms-vscode-remote.remote-containers":{onFileOpen:[{pathGlob:"{**/devcontainer.json}",important:!0}]},"ms-azuretools.vscode-bicep":{onFileOpen:[{pathGlob:"{**/*.bicep}",important:!0,whenNotInstalled:["ms-azuretools.rad-vscode-bicep"]}]},"svelte.svelte-vscode":{onFileOpen:[{pathGlob:"{**/*.svelte}",important:!0}]},"ms-vscode.vscode-github-issue-notebooks":{onFileOpen:[{pathGlob:"{**/*.github-issues}",important:!0}]},"ms-playwright.playwright":{onFileOpen:[{pathGlob:"{**/*playwright*.config.ts,**/*playwright*.config.js,**/*playwright*.config.mjs}",important:!0}]},"vscjava.vscode-gradle":{onFileOpen:[{pathGlob:"{**/gradlew,**/gradlew.bat,**/build.gradle,**/build.gradle.kts,**/settings.gradle,**/settings.gradle.kts}",important:!0}]},"REditorSupport.r":{onFileOpen:[{pathGlob:"{**/*.r}",important:!0},{languages:["r"],important:!0}]},"firefox-devtools.vscode-firefox-debug":{onFileOpen:[{pathGlob:"{**/*.ts,**/*.tsx,**/*.js,**/*.jsx,**/*.es6,**/.babelrc}"}]},"ms-edgedevtools.vscode-edge-devtools":{onFileOpen:[{pathGlob:"{**/*.ts,**/*.tsx,**/*.js,**/*.css,**/*.html}"}]},"Ionide.Ionide-fsharp":{onFileOpen:[{pathGlob:"{**/*.fsx,**/*.fsi,**/*.fs,**/*.ml,**/*.mli}"}]},"dbaeumer.vscode-eslint":{onFileOpen:[{pathGlob:"{**/*.js,**/*.jsx,**/*.es6,**/.eslintrc.*,**/.eslintrc,**/.babelrc,**/jsconfig.json}"}]},"bmewburn.vscode-intelephense-client":{onFileOpen:[{pathGlob:"{**/*.php,**/php.ini}"}]},"xdebug.php-debug":{onFileOpen:[{pathGlob:"{**/*.php,**/php.ini}"}]},"rust-lang.rust-analyzer":{onFileOpen:[{pathGlob:"{**/*.rs,**/*.rslib}"}]},"DavidAnson.vscode-markdownlint":{onFileOpen:[{pathGlob:"{**/*.md}"}]},"EditorConfig.EditorConfig":{onFileOpen:[{pathGlob:"{**/.editorconfig}"}]},"HookyQR.beautify":{onFileOpen:[{pathGlob:"{**/.jsbeautifyrc}"}]},"donjayamanne.githistory":{onFileOpen:[{pathGlob:"{**/.gitignore,**/.git}"}]},"eamodio.gitlens":{onFileOpen:[{pathGlob:"{**/.gitignore,**/.git}"}]},"Shopify.ruby-lsp":{onFileOpen:[{pathGlob:"{**/*.rb,**/*.erb,**/*.reek,**/.fasterer.yml,**/ruby-lint.yml,**/.rubocop.yml}"}]},"DotJoshJohnson.xml":{onFileOpen:[{pathGlob:"{**/*.xml}"}]},"stylelint.vscode-stylelint":{onFileOpen:[{pathGlob:"{**/.stylelintrc,**/stylelint.config.js}"}]},"ms-mssql.mssql":{onFileOpen:[{pathGlob:"{**/*.sql}"}]},"mtxr.sqltools":{onFileOpen:[{pathGlob:"{**/*.sql}"}]},"usqlextpublisher.usql-vscode-ext":{onFileOpen:[{pathGlob:"{**/*.usql}"}]},"ms-vscode.sublime-keybindings":{onFileOpen:[{pathGlob:"{**/.sublime-project,**/.sublime-workspace}"}]},"k--kato.intellij-idea-keybindings":{onFileOpen:[{pathGlob:"{**/.idea}"}]},"christian-kohler.npm-intellisense":{onFileOpen:[{pathGlob:"{**/package.json}"}]},"cake-build.cake-vscode":{onFileOpen:[{pathGlob:"{**/build.cake}"}]},"Angular.ng-template":{onFileOpen:[{pathGlob:"{**/.angular-cli.json,**/angular.json,**/*.ng.html,**/*.ng,**/*.ngml}"}]},"vscjava.vscode-maven":{onFileOpen:[{pathGlob:"**/pom.xml"}]},"ms-azuretools.vscode-azureterraform":{onFileOpen:[{pathGlob:"**/*.tf"}]},"HashiCorp.terraform":{onFileOpen:[{pathGlob:"**/*.tf"}]},"vsciot-vscode.vscode-arduino":{onFileOpen:[{pathGlob:"**/*.ino"}]},"ms-kubernetes-tools.vscode-kubernetes-tools":{onFileOpen:[{pathGlob:"{**/Chart.yaml}"}]},"Oracle.oracledevtools":{onFileOpen:[{pathGlob:"{**/*.sql}"}]},"betterthantomorrow.calva":{onFileOpen:[{pathGlob:"{**/*.clj,**/*.cljs}"}]},"vmware.vscode-boot-dev-pack":{onFileOpen:[{pathGlob:"{**/application.properties}"}]},"GitHub.copilot":{onFileOpen:[{pathGlob:"{**/*.ts,**/*.tsx,**/*.js,**/*.jsx,**/*.py,**/*.go,**/*.rb,**/*.html,**/*.css,**/*.php,**/*.cpp,**/*.vue,**/*.c,**/*.sql,**/*.java,**/*.cs,**/*.rs,**/*.dart,**/*.ps,**/*.ps1,**/*.tex}"}],onSettingsEditorOpen:{descriptionOverride:"GitHub Copilot is an AI pair programmer tool that helps you write code faster and smarter."}},"GitHub.vscode-github-actions":{onFileOpen:[{pathGlob:"{**/.github/workflows/*.yml}",important:!0}]},"circleci.circleci":{onFileOpen:[{pathGlob:"{**/.circleci/config.yml}"}]},"mechatroner.rainbow-csv":{onFileOpen:[{pathGlob:"**/*.csv",important:!0}]},"tomoki1207.pdf":{onFileOpen:[{pathGlob:"**/*.pdf",important:!0}]},"Redis.redis-for-vscode":{onFileOpen:[{pathGlob:"{**/redis.*,**/redis-server.*,**/redis_*,**/redisinsight.*}"}]}},keymapExtensionTips:["vscodevim.vim","ms-vscode.sublime-keybindings","ms-vscode.atom-keybindings","ms-vscode.brackets-keybindings","ms-vscode.vs-keybindings","ms-vscode.notepadplusplus-keybindings","k--kato.intellij-idea-keybindings","lfs.vscode-emacs-friendly","alphabotsec.vscode-eclipse-keybindings","alefragnani.delphi-keybindings"],languageExtensionTips:["ms-python.python","ms-vscode.cpptools-extension-pack","ms-dotnettools.csdevkit","ms-toolsai.jupyter","vscjava.vscode-java-pack","ecmel.vscode-html-css","vue.volar","bmewburn.vscode-intelephense-client","dsznajder.es7-react-js-snippets","golang.go","ms-vscode.powershell","dart-code.dart-code","rust-lang.rust-analyzer","Shopify.ruby-lsp","GitHub.copilot"],configBasedExtensionTips:{git:{configPath:".git/config",configName:"Git",recommendations:{"github.vscode-pull-request-github":{name:"GitHub Pull Request",contentPattern:"^\\s*url\\s*=\\s*https:\\/\\/github\\.com.*$"},"eamodio.gitlens":{name:"GitLens"}}},devContainer:{configPath:".devcontainer/devcontainer.json",configName:"Dev Container",recommendations:{"ms-vscode-remote.remote-containers":{name:"Dev Containers",important:!0}}},maven:{configPath:"pom.xml",configName:"Maven",recommendations:{"vscjava.vscode-java-pack":{name:"Java",important:!0,isExtensionPack:!0,whenNotInstalled:["ASF.apache-netbeans-java","Oracle.oracle-java"]},"vmware.vscode-boot-dev-pack":{name:"Spring Boot Extension Pack",isExtensionPack:!0}}},gradle:{configPath:"build.gradle",configName:"Gradle",recommendations:{"vscjava.vscode-java-pack":{name:"Java",important:!0,isExtensionPack:!0,whenNotInstalled:["ASF.apache-netbeans-java","Oracle.oracle-java"]}}},"github-pull-request":{configPath:".vscode/.github-pull-request.rec",configName:"GitHub",configScheme:"vscode-vfs",recommendations:{"github.vscode-pull-request-github":{name:"GitHub Pull Request",important:!0}}},"pyproject-formatter":{configPath:"pyproject.toml",configName:"Python Formatter",recommendations:{"ms-python.black-formatter":{name:"Black Formatter",contentPattern:'(^\\s*\\[\\[?\\s*"?tool"?\\s*\\.\\s*"?black"?\\s*[\\].])|("black\\s*["[(<=>!~;@])'},"ms-python.autopep8":{name:"Autopep8",contentPattern:'(^\\s*\\[\\[?\\s*"?tool"?\\s*\\.\\s*"?autopep8"?\\s*[\\].])|("autopep8\\s*["[(<=>!~;@])'}}},"pep8-formatter":{configPath:".pep8",configName:"Python Formatter",recommendations:{"ms-python.autopep8":{name:"Autopep8"}}},"python-setup-cgf-formatter":{configPath:"setup.cfg",configName:"Python Formatter",recommendations:{"ms-python.autopep8":{name:"Autopep8",contentPattern:"^\\[pep8\\]"}}},"tox-ini-formatter":{configPath:"tox.ini",configName:"Python Formatter",recommendations:{"ms-python.autopep8":{name:"Autopep8",contentPattern:"^\\[pep8\\]"}}},"pyproject-linter":{configPath:"pyproject.toml",configName:"Python Linter",recommendations:{"ms-python.pylint":{name:"Pylint",contentPattern:'(^\\s*\\[\\[?\\s*"?tool"?\\s*\\.\\s*"?pylint"?\\s*[\\].])|("pylint\\s*["[(<=>!~;@])'},"charliermarsh.ruff":{name:"Ruff",contentPattern:'(^\\s*\\[\\[?\\s*"?tool"?\\s*\\.\\s*"?ruff"?\\s*[\\].])|("ruff\\s*["[(<=>!~;@])'},"ms-python.mypy-type-checker":{name:"Mypy Type Checker",contentPattern:'(^\\s*\\[\\[?\\s*"?tool"?\\s*\\.\\s*"?mypy"?\\s*[\\].])|("mypy\\s*["[(<=>!~;@])'},"ms-python.flake8":{name:"Flake8",contentPattern:'(^\\s*\\[\\[?\\s*"?tool"?\\s*\\.\\s*"?flake8"?\\s*[\\].])|("flake8\\s*["[(<=>!~;@])'}}},".pylintrc-linter":{configPath:".pylintrc",configName:"Python Linter",recommendations:{"ms-python.pylint":{name:"Pylint"}}},"pylintrc-linter":{configPath:"pylintrc",configName:"Python Linter",recommendations:{"ms-python.pylint":{name:"Pylint"}}},"mypy-ini-linter":{configPath:".mypy.ini",configName:"Python Linter",recommendations:{"ms-python.mypy-type-checker":{name:"Mypy Type Checker"}}},"tox-ini-linter":{configPath:"tox.ini",configName:"Python Linter",recommendations:{"ms-python.flake8":{name:"Flake8",contentPattern:"^\\[flake8\\]"}}},".flake8-linter":{configPath:".flake8",configName:"Python Linter",recommendations:{"ms-python.flake8":{name:"Flake8"}}},"python-setup-cgf-linter":{configPath:"setup.cfg",configName:"Python Linter",recommendations:{"ms-python.flake8":{name:"Flake8",contentPattern:"^\\[flake8\\]"}}}},exeBasedExtensionTips:{az:{friendlyName:"Azure CLI",windowsPath:"%ProgramFiles(x86)%\\Microsoft SDKs\\Azure\\CLI2\\wbin\\az.cmd",recommendations:{"ms-vscode.azurecli":{name:"Azure CLI Tools"}}},azd:{friendlyName:"Azure Dev CLI",windowsPath:"%USERPROFILE%\\AppData\\Local\\Programs\\Azure Dev CLI\\azd.exe",recommendations:{"ms-azuretools.azure-dev":{name:"Azure Developer CLI"},"ms-azuretools.vscode-azureresourcegroups":{name:"Azure Resources"}}},"azd-user":{friendlyName:"Azure Dev CLI",windowsPath:"%ProgramFiles%\\Azure Dev CLI\\azd.exe",recommendations:{"ms-azuretools.azure-dev":{name:"Azure Developer CLI"},"ms-azuretools.vscode-azureresourcegroups":{name:"Azure Resources"}}},heroku:{friendlyName:"Heroku CLI",windowsPath:"%ProgramFiles%\\Heroku\\bin\\heroku.cmd",recommendations:{"ms-azuretools.vscode-azureappservice":{name:"Azure App Service"},"pkosta2005.heroku-command":{name:"heroku-cli"}}},mongo:{friendlyName:"Mongo",windowsPath:"%ProgramFiles%\\MongoDB\\Server\\3.6\\bin\\mongod.exe",recommendations:{"ms-azuretools.vscode-cosmosdb":{name:"Azure Databases"}}},serverless:{friendlyName:"Serverless framework",windowsPath:"%APPDATA%\\npm\\serverless.cmd",recommendations:{"ms-azuretools.vscode-azurefunctions":{name:"Azure Functions"}}},func:{friendlyName:"Azure Function SDK",windowsPath:"%APPDATA%\\npm\\func.cmd",recommendations:{"ms-azuretools.vscode-azurefunctions":{name:"Azure Functions"}}},mysql:{friendlyName:"MySQL",windowsPath:"%ProgramFiles%\\MySQL\\MySQL Server 8.0\\bin\\mysqld.exe",recommendations:{"mtxr.sqltools":{name:"SQLTools"}}},postgres:{friendlyName:"PostgreSQL",windowsPath:"%ProgramFiles%\\PostgreSQL\\11\\bin\\psql.exe",recommendations:{"ms-ossdata.vscode-postgresql":{name:"PostgreSQL"},"mtxr.sqltools":{name:"SQLTools"}}},sqlcmd:{friendlyName:"SQL CLI",recommendations:{"ms-mssql.mssql":{name:"SQL Server (mssql)"}}},now:{friendlyName:"Now CLI",windowsPath:"%APPDATA%\\npm\\now.cmd",recommendations:{"ms-azuretools.vscode-azureappservice":{name:"Azure App Service"},"ms-azuretools.vscode-docker":{name:"Docker"}}},docker:{friendlyName:"Docker",windowsPath:"%ProgramFiles%\\Docker\\Docker\\Resources\\bin\\docker.exe",recommendations:{"ms-azuretools.vscode-docker":{name:"Docker",important:!0},"ms-vscode-remote.remote-containers":{name:"Dev Containers",important:!0},"ms-kubernetes-tools.vscode-kubernetes-tools":{name:"Kubernetes"}}},kubectl:{friendlyName:"Kubernetes",windowsPath:"%ProgramFiles%\\Docker\\Docker\\Resources\\bin\\kubectl.exe",recommendations:{"ms-azuretools.vscode-docker":{name:"Docker"},"ms-kubernetes-tools.vscode-kubernetes-tools":{name:"Kubernetes"},"ms-vscode-remote.remote-containers":{name:"Dev Containers"}}},ng:{friendlyName:"Angular CLI",windowsPath:"%APPDATA%\\npmexit\\ng.cmd",recommendations:{"johnpapa.Angular2":{name:"Angular Snippets"}}},"create-react-app":{friendlyName:"Create React App",windowsPath:"%APPDATA%\\npm\\create-react-app.cmd",recommendations:{"msjsdiag.vscode-react-native":{name:"React Native Tools"}}},"react-native":{friendlyName:"React Native",windowsPath:"%APPDATA%\\npm\\react-native-cli",recommendations:{"msjsdiag.vscode-react-native":{name:"React Native Tools"}}},p4:{friendlyName:"Perforce",recommendations:{"slevesque.perforce":{name:"Perforce for VS Code"}}},hg:{friendlyName:"Mercurial",recommendations:{"mrcrowl.hg":{name:"Hg"}}},git:{friendlyName:"Git",windowsPath:"%ProgramFiles%\\Git\\git-bash.exe",recommendations:{"eamodio.gitlens":{name:"GitLens"}}},svn:{friendlyName:"Subversion",windowsPath:"%ProgramFiles%\\TortoiseSVN\\bin\\TortoiseProc.exe",recommendations:{"johnstoncode.svn-scm":{name:"SVN"}}},subl:{friendlyName:"Sublime",windowsPath:"%ProgramFiles%\\Sublime Text3\\sublime_text.exe",recommendations:{"ms-vscode.sublime-keybindings":{name:"Sublime Text Keymap and Settings Importer"}}},atom:{friendlyName:"Atom",windowsPath:"%USERPROFILE%\\AppData\\Local\\atom\\bin\\atom.cmd",recommendations:{"ms-vscode.atom-keybindings":{name:"Atom Keymap"}}},brackets:{friendlyName:"Brackets",windowsPath:"%ProgramFiles(x86)%\\Brackets\\Brackets.exe",recommendations:{"ms-vscode.brackets-keybindings":{name:"Brackets Keymap"}}},notepadplusplus:{friendlyName:"Notepad++",windowsPath:"%ProgramFiles%\\Notepad++\\Notepad++.exe",recommendations:{"ms-vscode.notepadplusplus-keybindings":{name:"Notepad++ keymap"}}},vi:{friendlyName:"VIM",windowsPath:"%ProgramFiles(x86)%\\Vim\\vim80\\gvim.exe",recommendations:{"vscodevim.vim":{name:"Vim"}}},mvn:{friendlyName:"Maven",recommendations:{"vscjava.vscode-java-pack":{name:"Java",important:!0,isExtensionPack:!0,whenNotInstalled:["ASF.apache-netbeans-java","Oracle.oracle-java"]}}},gradle:{friendlyName:"Gradle",recommendations:{"vscjava.vscode-java-pack":{name:"Java",important:!0,isExtensionPack:!0,whenNotInstalled:["ASF.apache-netbeans-java","Oracle.oracle-java"]}}},"Microsoft Edge":{friendlyName:"Microsoft Edge",windowsPath:"%USERPROFILE%\\AppData\\Local\\Microsoft\\Edge\\Application\\msedge.exe",recommendations:{"ms-edgedevtools.vscode-edge-devtools":{name:"Microsoft Edge Developer Tools"}}},"Microsoft Edge Dev":{friendlyName:"Microsoft Edge Dev",windowsPath:"%USERPROFILE%\\AppData\\Local\\Microsoft\\Edge Dev\\Application\\msedge.exe",recommendations:{"ms-edgedevtools.vscode-edge-devtools":{name:"Microsoft Edge Developer Tools"}}},"Microsoft Edge Beta":{friendlyName:"Microsoft Edge Beta",windowsPath:"%USERPROFILE%\\AppData\\Local\\Microsoft\\Edge Beta\\Application\\msedge.exe",recommendations:{"ms-edgedevtools.vscode-edge-devtools":{name:"Microsoft Edge Developer Tools"}}},"Microsoft Edge Canary":{friendlyName:"Microsoft Edge Canary",windowsPath:"%USERPROFILE%\\AppData\\Local\\Microsoft\\Edge SxS\\Application\\msedge.exe",recommendations:{"ms-edgedevtools.vscode-edge-devtools":{name:"Microsoft Edge Developer Tools"}}},"Mozilla Firefox (x86)":{friendlyName:"Mozilla Firefox",windowsPath:"%ProgramFiles(x86)%\\Mozilla Firefox\\firefox.exe",recommendations:{"firefox-devtools.vscode-firefox-debug":{name:"Debugger for Firefox"}}},"Mozilla Firefox Developer Edition (x86)":{friendlyName:"Mozilla Firefox Developer Edition",windowsPath:"%ProgramFiles(x86)%\\Firefox Developer Edition\\firefox.exe",recommendations:{"firefox-devtools.vscode-firefox-debug":{name:"Debugger for Firefox"}}},"Mozilla Firefox":{friendlyName:"Mozilla Firefox",windowsPath:"%ProgramFiles%\\Mozilla Firefox\\firefox.exe",recommendations:{"firefox-devtools.vscode-firefox-debug":{name:"Debugger for Firefox"}}},"Mozilla Firefox Developer Edition":{friendlyName:"Mozilla Firefox Developer Edition",windowsPath:"%ProgramFiles%\\Firefox Developer Edition\\firefox.exe",recommendations:{"firefox-devtools.vscode-firefox-debug":{name:"Debugger for Firefox"}}},cordova:{friendlyName:"Cordova",windowsPath:"%APPDATA%\\npm\\cordova",recommendations:{"msjsdiag.cordova-tools":{name:"Cordova Tools"}}},gcloud:{friendlyName:"Google GCloud CLI",windowsPath:"%ProgramFiles(x86)%\\Google\\Cloud SDK\\google-cloud-sdk\\bin\\gcloud.cmd",recommendations:{"GoogleCloudTools.cloudcode":{name:"Cloud Code"}}},skaffold:{friendlyName:"Skaffold Code to Cluster",recommendations:{"ms-azuretools.vscode-docker":{name:"Docker"},"ms-kubernetes-tools.vscode-kubernetes-tools":{name:"Kubernetes"}}},minikube:{friendlyName:"MiniKube Local Kubernetes Cluster",recommendations:{"ms-azuretools.vscode-docker":{name:"Docker"},"ms-kubernetes-tools.vscode-kubernetes-tools":{name:"Kubernetes"},"ms-vscode-remote.remote-containers":{name:"Dev Containers"}}},podman:{friendlyName:"Podman",recommendations:{"ms-vscode-remote.remote-containers":{name:"Dev Containers"}}},wsl:{friendlyName:"Windows Subsystem for Linux (WSL)",windowsPath:"%WINDIR%\\system32\\lxss\\LxssManager.dll",important:!0,recommendations:{"ms-vscode-remote.remote-wsl":{name:"WSL",important:!0}}}},webExtensionTips:["tyriar.luna-paint","codespaces-contrib.codeswing","ms-vscode.vscode-github-issue-notebooks","esbenp.prettier-vscode","hediet.vscode-drawio"],virtualWorkspaceExtensionTips:{"vscode-vfs":{friendlyName:"Remote Repositories",extensionId:"ms-vscode.remote-repositories",startEntry:{helpLink:"https://aka.ms/vscode-remote/remote-repositories",startConnectLabel:"Remote Repository",startCommand:"remoteHub.continueOn.openRepository",priority:5}}},remoteExtensionTips:{wsl:{friendlyName:"WSL",extensionId:"ms-vscode-remote.remote-wsl",supportedPlatforms:["Windows","Web"],startEntry:{helpLink:"https://aka.ms/vscode-remote/wsl",startConnectLabel:"WSL",startCommand:"remote-wsl.connect",priority:3}},"ssh-remote":{friendlyName:"Remote - SSH",extensionId:"ms-vscode-remote.remote-ssh",supportedPlatforms:["Windows","Linux","Mac"],startEntry:{helpLink:"https://aka.ms/vscode-remote/ssh",startConnectLabel:"SSH ",startCommand:"opensshremotes.openEmptyWindowInCurrentWindow",priority:1}},"dev-container":{friendlyName:"Dev Containers",extensionId:"ms-vscode-remote.remote-containers",supportedPlatforms:["Windows","Linux","Mac"],startEntry:{helpLink:"https://aka.ms/vscode-remote/containers",startConnectLabel:"Dev Container",startCommand:"remote-containers.reopenInContainer",priority:2}},"attached-container":{friendlyName:"Dev Containers",extensionId:"ms-vscode-remote.remote-containers"},codespaces:{friendlyName:"GitHub Codespaces",extensionId:"github.codespaces",startEntry:{helpLink:"https://aka.ms/vscode-remote-codespaces",startConnectLabel:"GitHub Codespace ",startCommand:"github.codespaces.connect",priority:4}},tunnel:{friendlyName:"Remote - Tunnels",extensionId:"ms-vscode.remote-server",startEntry:{helpLink:"https://aka.ms/remote-tunnels-doc",startConnectLabel:"Tunnel",startCommand:"remote-tunnels.connectCurrentWindowToTunnel",priority:0}}},commandPaletteSuggestedCommandIds:["workbench.action.files.openFile","workbench.action.files.openFileFolder","workbench.action.files.openFolder","workbench.action.remote.showMenu","editor.action.formatDocument","editor.action.commentLine","workbench.action.tasks.runTask","workbench.action.openSettings2","workbench.action.selectTheme","workbench.action.openWalkthrough","workbench.action.openIssueReporter"],extensionKeywords:{md:["Markdown"],js:["JavaScript"],jsx:["JavaScript"],es6:["JavaScript"],html:["Html"],ts:["TypeScript"],tsx:["TypeScript"],css:["CSS"],scss:["SASS"],txt:["Text"],php:["PHP"],php3:["PHP"],php4:["PHP"],ph3:["PHP"],ph4:["PHP"],xml:["XML"],py:["Python"],pyc:["Python"],pyd:["Python"],pyo:["Python"],pyw:["Python"],pyz:["Python"],java:["Java"],class:["Java"],jar:["Java"],c:["c","objective c","objective-c"],m:["objective c","objective-c"],mm:["objective c","objective-c"],cpp:["cpp","c plus plus","c","c++"],cc:["cpp","c plus plus","c","c++"],cxx:["cpp","c plus plus","c++"],hh:["cpp","c plus plus","c++"],hpp:["cpp","c++"],h:["cpp","c plus plus","c++","c","objective c","objective-c"],sql:["sql"],sh:["bash"],bash:["bash"],zsh:["bash","zshell"],cs:["c#","csharp"],csproj:["c#","csharp"],sln:["c#","csharp"],go:["go"],sty:["latex"],tex:["latex"],ps:["powershell"],ps1:["powershell"],rs:["rust"],rslib:["rust"],hs:["haskell"],lhs:["haskell"],scm:["scheme"],ss:["scheme"],clj:["clojure"],cljs:["clojure"],cljc:["clojure"],edn:["clojure"],erl:["erlang"],hrl:["erlang"],scala:["scala"],sc:["scala"],pl:["perl"],pm:["perl"],t:["perl"],pod:["perl"],groovy:["groovy"],swift:["swift"],rb:["ruby"],rbw:["ruby"],jl:["julia"],f:["fortran"],for:["fortran"],f90:["fortran"],f95:["fortran"],coffee:["CoffeeScript"],litcoffee:["CoffeeScript"],yaml:["yaml"],yml:["yaml"],dart:["dart"],json:["json"]},extensionAllowedBadgeProviders:["api.bintray.com","api.travis-ci.com","api.travis-ci.org","app.fossa.io","badge.buildkite.com","badge.fury.io","badge.waffle.io","badgen.net","badges.frapsoft.com","badges.gitter.im","badges.greenkeeper.io","cdn.travis-ci.com","cdn.travis-ci.org","ci.appveyor.com","circleci.com","cla.opensource.microsoft.com","codacy.com","codeclimate.com","codecov.io","coveralls.io","david-dm.org","deepscan.io","dev.azure.com","docs.rs","flat.badgen.net","gemnasium.com","githost.io","gitlab.com","godoc.org","goreportcard.com","img.shields.io","isitmaintained.com","marketplace.visualstudio.com","nodesecurity.io","opencollective.com","snyk.io","travis-ci.com","travis-ci.org","visualstudio.com","vsmarketplacebadge.apphb.com","www.bithound.io","www.versioneye.com"],extensionAllowedBadgeProvidersRegex:["^https:\\/\\/github\\.com\\/[^/]+\\/[^/]+\\/(actions\\/)?workflows\\/.*badge\\.svg"],crashReporter:{productName:"VSCode",companyName:"Microsoft"},appCenter:{"win32-x64":"appcenter://code?aid=a4e3233c-699c-46ec-b4f4-9c2a77254662","win32-arm64":"appcenter://code?aid=3712d786-7cc8-4f11-8b08-cc12eab6d4f7","linux-x64":"appcenter://code?aid=fba07a4d-84bd-4fc8-a125-9640fc8ce171",darwin:"appcenter://code?aid=860d6632-f65b-490b-85a8-3e72944f7774","darwin-arm64":"appcenter://code?aid=be71415d-3893-4ae5-b453-e537b9668a10","darwin-universal":"appcenter://code?aid=de75e3cc-e22f-4f42-a03f-1409c21d8af8"},enableTelemetry:!0,aiConfig:{ariaKey:"5bbf946d11a54f6783919c455abaddaf-fd62977b-c92d-4714-a45d-649d06980372-7168"},msftInternalDomains:["redmond.corp.microsoft.com","northamerica.corp.microsoft.com","fareast.corp.microsoft.com","ntdev.corp.microsoft.com","wingroup.corp.microsoft.com","southpacific.corp.microsoft.com","wingroup.windeploy.ntdev.microsoft.com","ddnet.microsoft.com","europe.corp.microsoft.com"],documentationUrl:"https://go.microsoft.com/fwlink/?LinkID=533484#vscode",serverDocumentationUrl:"https://aka.ms/vscode-server-doc",releaseNotesUrl:"https://go.microsoft.com/fwlink/?LinkID=533483#vscode",keyboardShortcutsUrlMac:"https://go.microsoft.com/fwlink/?linkid=832143",keyboardShortcutsUrlLinux:"https://go.microsoft.com/fwlink/?linkid=832144",keyboardShortcutsUrlWin:"https://go.microsoft.com/fwlink/?linkid=832145",introductoryVideosUrl:"https://go.microsoft.com/fwlink/?linkid=832146",tipsAndTricksUrl:"https://go.microsoft.com/fwlink/?linkid=852118",newsletterSignupUrl:"https://www.research.net/r/vsc-newsletter",youTubeUrl:"https://aka.ms/vscode-youtube",requestFeatureUrl:"https://go.microsoft.com/fwlink/?LinkID=533482",reportIssueUrl:"https://github.com/Microsoft/vscode/issues/new",reportMarketplaceIssueUrl:"https://github.com/microsoft/vsmarketplace/issues/new",licenseUrl:"https://go.microsoft.com/fwlink/?LinkID=533485",serverLicenseUrl:"https://aka.ms/vscode-server-license",privacyStatementUrl:"https://go.microsoft.com/fwlink/?LinkId=521839",showTelemetryOptOut:!0,npsSurveyUrl:"https://aka.ms/vscode-nps",checksumFailMoreInfoUrl:"https://go.microsoft.com/fwlink/?LinkId=828886",electronRepository:"Microsoft/vscode-electron-prebuilt",nodejsRepository:"Microsoft/vscode-node",settingsSearchUrl:"https://bingsettingssearch.trafficmanager.net/api/Search",surveys:[{surveyId:"cpp.1",surveyUrl:"https://www.research.net/r/VBVV6C6",languageId:"cpp",editCount:10,userProbability:.15},{surveyId:"java.2",surveyUrl:"https://www.research.net/r/vscodejava",languageId:"java",editCount:10,userProbability:.3},{surveyId:"javascript.1",surveyUrl:"https://www.research.net/r/vscode-js",languageId:"javascript",editCount:10,userProbability:.05},{surveyId:"typescript.1",surveyUrl:"https://www.research.net/r/vscode-ts",languageId:"typescript",editCount:10,userProbability:.05},{surveyId:"csharp.1",surveyUrl:"https://www.research.net/r/8KGJ9V8",languageId:"csharp",editCount:10,userProbability:.1}],extensionsEnabledWithApiProposalVersion:["GitHub.copilot-chat","ms-vscode.vscode-commander","ms-vscode.vscode-copilot-vision"],extensionEnabledApiProposals:{"ms-vscode.vscode-selfhost-test-provider":["testObserver","testRelatedCode","attributableCoverage"],"VisualStudioExptTeam.vscodeintellicode-completions":["inlineCompletionsAdditions"],"ms-vsliveshare.vsliveshare":["contribMenuBarHome","contribShareMenu","contribStatusBarItems","diffCommand","documentFiltersExclusive","fileSearchProvider","findTextInFiles","notebookCellExecutionState","notebookLiveShare","terminalDimensions","terminalDataWriteEvent","textSearchProvider"],"ms-vscode.js-debug":["portsAttributes","findTextInFiles","workspaceTrust","tunnels"],"ms-toolsai.vscode-ai-remote":["resolvers"],"ms-python.python":["codeActionAI","contribEditorContentMenu","quickPickSortByLabel","portsAttributes","testObserver","quickPickItemTooltip","terminalDataWriteEvent","terminalExecuteCommandEvent","contribIssueReporter","notebookReplDocument","notebookVariableProvider"],"ms-dotnettools.dotnet-interactive-vscode":["notebookMessaging"],"GitHub.codespaces":["contribEditSessions","contribMenuBarHome","contribRemoteHelp","contribViewsRemote","resolvers","tunnels","terminalDataWriteEvent","treeViewReveal","notebookKernelSource"],"ms-vscode.azure-repos":["extensionRuntime","fileSearchProvider","textSearchProvider"],"ms-vscode.remote-repositories":["canonicalUriProvider","contribEditSessions","contribRemoteHelp","contribMenuBarHome","contribViewsRemote","contribViewsWelcome","contribShareMenu","documentFiltersExclusive","editSessionIdentityProvider","extensionRuntime","fileSearchProvider","quickPickSortByLabel","workspaceTrust","shareProvider","scmActionButton","scmSelectedProvider","scmValidation","textSearchProvider","timeline"],"ms-vscode-remote.remote-wsl":["resolvers","contribRemoteHelp","contribViewsRemote","telemetry"],"ms-vscode-remote.remote-ssh":["resolvers","tunnels","terminalDataWriteEvent","contribRemoteHelp","contribViewsRemote","telemetry"],"ms-vscode.remote-server":["resolvers","tunnels","contribViewsWelcome"],"ms-vscode.remote-explorer":["contribRemoteHelp","contribViewsRemote","extensionsAny"],"ms-vscode-remote.remote-containers":["contribEditSessions","resolvers","portsAttributes","tunnels","workspaceTrust","terminalDimensions","contribRemoteHelp","contribViewsRemote"],"ms-vscode.js-debug-nightly":["portsAttributes","findTextInFiles","workspaceTrust","tunnels"],"ms-vscode.lsif-browser":["documentFiltersExclusive"],"ms-vscode.vscode-speech":["speech"],"GitHub.vscode-pull-request-github":["activeComment","codiconDecoration","codeActionRanges","commentingRangeHint","commentReactor","commentReveal","commentThreadApplicability","contribAccessibilityHelpContent","contribCommentEditorActionsMenu","contribCommentPeekContext","contribCommentThreadAdditionalMenu","contribCommentsViewThreadMenus","contribEditorContentMenu","contribMultiDiffEditorMenus","contribShareMenu","diffCommand","fileComments","quickDiffProvider","shareProvider","tabInputTextMerge","tokenInformation","treeViewMarkdownMessage"],"GitHub.copilot":["inlineCompletionsAdditions"],"GitHub.copilot-nightly":["inlineCompletionsAdditions"],"GitHub.copilot-chat":["interactive","terminalDataWriteEvent","terminalExecuteCommandEvent","terminalSelection","terminalQuickFixProvider","chatParticipantAdditions","defaultChatParticipant","embeddings","chatVariableResolver","chatProvider","mappedEditsProvider","aiRelatedInformation","codeActionAI","findTextInFiles","textSearchProvider","activeComment","commentReveal","contribSourceControlInputBoxMenu","contribCommentEditorActionsMenu","contribCommentThreadAdditionalMenu","contribCommentsViewThreadMenus","newSymbolNamesProvider","findFiles2","extensionsAny","authLearnMore","testObserver","aiTextSearchProvider","documentFiltersExclusive","chatParticipantPrivate","contribDebugCreateConfiguration","inlineEdit"],"GitHub.remotehub":["contribRemoteHelp","contribMenuBarHome","contribViewsRemote","contribViewsWelcome","documentFiltersExclusive","extensionRuntime","fileSearchProvider","quickPickSortByLabel","workspaceTrust","scmSelectedProvider","scmValidation","textSearchProvider","timeline"],"ms-python.gather":["notebookCellExecutionState"],"ms-python.vscode-pylance":["notebookCellExecutionState"],"ms-python.debugpy":["contribIssueReporter","contribViewsWelcome","debugVisualization","portsAttributes"],"ms-toolsai.jupyter-renderers":["contribNotebookStaticPreloads"],"ms-toolsai.jupyter":["notebookDeprecated","notebookMessaging","notebookMime","notebookCellExecutionState","portsAttributes","quickPickSortByLabel","notebookKernelSource","interactiveWindow","notebookControllerAffinityHidden","contribNotebookStaticPreloads","quickPickItemTooltip","notebookExecution","notebookCellExecution","notebookVariableProvider","notebookReplDocument"],"dbaeumer.vscode-eslint":["notebookCellExecutionState"],"ms-vscode.azure-sphere-tools-ui":["tunnels"],"ms-azuretools.vscode-azureappservice":["terminalDataWriteEvent"],"ms-vscode.anycode":["extensionsAny"],"ms-vscode.cpptools":["terminalDataWriteEvent"],"redhat.java":["documentPaste"],"vscjava.vscode-java-pack":[],"ms-dotnettools.csdevkit":["inlineCompletionsAdditions"],"ms-dotnettools.vscodeintellicode-csharp":["inlineCompletionsAdditions"],"microsoft-IsvExpTools.powerplatform-vscode":["fileSearchProvider","textSearchProvider"],"microsoft-IsvExpTools.powerplatform-vscode-preview":["fileSearchProvider","textSearchProvider"],"TeamsDevApp.ms-teams-vscode-extension":["chatParticipantAdditions","languageModelSystem"],"ms-toolsai.datawrangler":[],"ms-vscode.vscode-commander":[],"ms-vscode.vscode-websearchforcopilot":[],"ms-vscode.vscode-copilot-data-analysis":["chatVariableResolver","chatProvider"],"ms-vscode.vscode-copilot-vision":["chatReferenceBinaryData","codeActionAI"]},tasConfig:{endpoint:"https://default.exp-tas.com/vscode/ab",telemetryEventName:"query-expfeature",assignmentContextTelemetryPropertyName:"abexp.assignmentcontext"},extensionKind:{"Shan.code-settings-sync":["ui"],"shalldie.background":["ui"],"techer.open-in-browser":["ui"],"CoenraadS.bracket-pair-colorizer-2":["ui"],"CoenraadS.bracket-pair-colorizer":["ui","workspace"],"hiro-sun.vscode-emacs":["ui","workspace"],"hnw.vscode-auto-open-markdown-preview":["ui","workspace"],"wayou.vscode-todo-highlight":["ui","workspace"],"aaron-bond.better-comments":["ui","workspace"],"vscodevim.vim":["ui"],"ollyhayes.colmak-vim":["ui"]},extensionPointExtensionKind:{typescriptServerPlugins:["workspace"]},extensionSyncedKeys:{"ritwickdey.liveserver":["liveServer.setup.version"]},extensionVirtualWorkspacesSupport:{"esbenp.prettier-vscode":{default:!1},"msjsdiag.debugger-for-chrome":{default:!1},"redhat.java":{default:!1},"HookyQR.beautify":{default:!1},"ritwickdey.LiveServer":{default:!1},"VisualStudioExptTeam.vscodeintellicode":{default:!1},"octref.vetur":{default:!1},"formulahendry.code-runner":{default:!1},"xdebug.php-debug":{default:!1},"ms-mssql.mssql":{default:!1},"christian-kohler.path-intellisense":{default:!1},"eg2.tslint":{default:!1},"eg2.vscode-npm-script":{default:!1},"donjayamanne.githistory":{default:!1},"Zignd.html-css-class-completion":{default:!1},"christian-kohler.npm-intellisense":{default:!1},"EditorConfig.EditorConfig":{default:!1},"austin.code-gnu-global":{default:!1},"johnpapa.Angular2":{default:!1},"ms-vscode.vscode-typescript-tslint-plugin":{default:!1},"DotJoshJohnson.xml":{default:!1},"techer.open-in-browser":{default:!1},"tht13.python":{default:!1},"bmewburn.vscode-intelephense-client":{default:!1},"Angular.ng-template":{default:!1},"xdebug.php-pack":{default:!1},"dbaeumer.jshint":{default:!1},"yzhang.markdown-all-in-one":{default:!1},"Dart-Code.flutter":{default:!1},"streetsidesoftware.code-spell-checker":{default:!1},"rebornix.Ruby":{default:!1},"ms-vscode.sublime-keybindings":{default:!1},"mitaki28.vscode-clang":{default:!1},"steoates.autoimport":{default:!1},"donjayamanne.python-extension-pack":{default:!1},"shd101wyy.markdown-preview-enhanced":{default:!1},"mikestead.dotenv":{default:!1},"pranaygp.vscode-css-peek":{default:!1},"ikappas.phpcs":{default:!1},"platformio.platformio-ide":{default:!1},"jchannon.csharpextensions":{default:!1},"gruntfuggly.todo-tree":{default:!1}},linkProtectionTrustedDomains:["https://*.visualstudio.com","https://*.microsoft.com","https://aka.ms","https://*.gallerycdn.vsassets.io","https://*.github.com","https://login.microsoftonline.com","https://*.vscode.dev","https://*.github.dev","https://gh.io","https://portal.azure.com","https://raw.githubusercontent.com","https://private-user-images.githubusercontent.com","https://avatars.githubusercontent.com"],trustedExtensionAuthAccess:{github:["vscode.github","github.remotehub","ms-vscode.remote-server","github.vscode-pull-request-github","github.codespaces","github.copilot","github.copilot-chat","ms-vsliveshare.vsliveshare"],"github-enterprise":["vscode.github","github.remotehub","ms-vscode.remote-server","github.vscode-pull-request-github","github.codespaces","github.copilot","github.copilot-chat","ms-vsliveshare.vsliveshare"],microsoft:["ms-vscode.azure-repos","ms-vscode.remote-server","ms-vsliveshare.vsliveshare","ms-azuretools.vscode-azureresourcegroups","ms-edu.vscode-learning","ms-toolsai.vscode-ai","ms-toolsai.vscode-ai-remote"],"microsoft-sovereign-cloud":["ms-vscode.azure-repos","ms-vscode.remote-server","ms-vsliveshare.vsliveshare","ms-azuretools.vscode-azureresourcegroups","ms-edu.vscode-learning","ms-toolsai.vscode-ai","ms-toolsai.vscode-ai-remote"]},trustedExtensionProtocolHandlers:["vscode.git","vscode.github-authentication","vscode.microsoft-authentication"],inheritAuthAccountPreference:{"github.copilot":["github.copilot-chat"]},auth:{loginUrl:"https://login.microsoftonline.com/common/oauth2/authorize",tokenUrl:"https://login.microsoftonline.com/common/oauth2/token",redirectUrl:"https://vscode-redirect.azurewebsites.net/",clientId:"aebc6443-996d-45c2-90f0-388ff96faa56"},"configurationSync.store":{url:"https://vscode-sync.trafficmanager.net/",stableUrl:"https://vscode-sync.trafficmanager.net/",insidersUrl:"https://vscode-sync-insiders.trafficmanager.net/",canSwitch:!1,authenticationProviders:{github:{scopes:["user:email"]},microsoft:{scopes:["openid","profile","email","offline_access"]}}},"editSessions.store":{url:"https://vscode-sync.trafficmanager.net/",authenticationProviders:{microsoft:{scopes:["openid","profile","email","offline_access"]},github:{scopes:["user:email"]}}},tunnelServerQualities:{stable:{serverApplicationName:"code-server"},exploration:{serverApplicationName:"code-server-exploration"},insider:{serverApplicationName:"code-server-insiders"}},tunnelApplicationName:"code-tunnel",tunnelApplicationConfig:{editorWebUrl:"https://vscode.dev",extension:{friendlyName:"Remote - Tunnels",extensionId:"ms-vscode.remote-server"},authenticationProviders:{github:{scopes:["user:email","read:org"]},microsoft:{scopes:["46da2f7e-b5ef-422a-88d4-2a7f9de6a0b2/.default","profile","openid"]}}},win32TunnelServiceMutex:"vscode-tunnelservice",win32TunnelMutex:"vscode-tunnel",commonlyUsedSettings:["files.autoSave","editor.fontSize","editor.fontFamily","GitHub.copilot.manageExtension","editor.tabSize","editor.renderWhitespace","editor.cursorStyle","editor.multiCursorModifier","editor.insertSpaces","editor.wordWrap","files.exclude","files.associations","workbench.editor.enablePreview"],aiGeneratedWorkspaceTrust:{title:"This workspace was generated by GitHub Copilot",checkboxText:"Trust the contents of all files in this workspace",trustOption:"Yes, I trust the contents",dontTrustOption:"No, I don't trust the contents",startupTrustRequestLearnMore:"If you don't trust the contents of the files generated by GitHub Copilot, we recommend continuing in restricted mode. See [our docs](https://aka.ms/vscode-workspace-trust) to learn more. "},gitHubEntitlement:{providerId:"github",command:{title:"Install GitHub Copilot (Paid for by {{org}})...",titleWithoutPlaceHolder:"Install GitHub Copilot",action:"workbench.extensions.installExtension",when:"workbench.accounts.experimental.showEntitlements"},entitlementUrl:"https://api.github.com/copilot_internal/user",extensionId:"github.copilot",enablementKey:"chat_enabled",confirmationAction:"Install",confirmationMessage:"Are you sure you want to install GitHub Copilot?"},defaultChatAgent:{extensionId:"GitHub.copilot",name:"GitHub Copilot",icon:"copilot",documentationUrl:"https://aka.ms/copilot-overview",gettingStartedCommand:"github.copilot.open.walkthrough"},chatParticipantRegistry:"https://az764295.vo.msecnd.net/extensions/chat.json",builtInExtensions:[{name:"ms-vscode.js-debug-companion",version:"1.1.3",sha256:"7380a890787452f14b2db7835dfa94de538caf358ebc263f9d46dd68ac52de93",repo:"https://github.com/microsoft/vscode-js-debug-companion",metadata:{id:"99cb0b7f-7354-4278-b8da-6cc79972169d",publisherId:{publisherId:"5f5636e7-69ed-4afe-b5d6-8d231fb3d3ee",publisherName:"ms-vscode",displayName:"Microsoft",flags:"verified"},publisherDisplayName:"Microsoft"}},{name:"ms-vscode.js-debug",version:"1.95.1",sha256:"0ac296e94c66fb31e8ca12af11cd5f1373627028c9e12e0dc6531f10bbe05f7e",repo:"https://github.com/microsoft/vscode-js-debug",metadata:{id:"25629058-ddac-4e17-abba-74678e126c5d",publisherId:{publisherId:"5f5636e7-69ed-4afe-b5d6-8d231fb3d3ee",publisherName:"ms-vscode",displayName:"Microsoft",flags:"verified"},publisherDisplayName:"Microsoft"}},{name:"ms-vscode.vscode-js-profile-table",version:"1.0.10",sha256:"7361748ddf9fd09d8a2ed1f2a2d7376a2cf9aae708692820b799708385c38e08",repo:"https://github.com/microsoft/vscode-js-profile-visualizer",metadata:{id:"7e52b41b-71ad-457b-ab7e-0620f1fc4feb",publisherId:{publisherId:"5f5636e7-69ed-4afe-b5d6-8d231fb3d3ee",publisherName:"ms-vscode",displayName:"Microsoft",flags:"verified"},publisherDisplayName:"Microsoft"}}],version:"1.95.1",commit:"65edc4939843c90c34d61f4ce11704f09d3e5cb6",date:"2024-10-31T05:14:54.222Z"},Object.keys(Ns).length===0&&Object.assign(Ns,{version:"1.95.0-dev",nameShort:"Code - OSS Dev",nameLong:"Code - OSS Dev",applicationName:"code-oss",dataFolderName:".vscode-oss",urlProtocol:"code-oss",reportIssueUrl:"https://github.com/microsoft/vscode/issues/new",licenseName:"MIT",licenseUrl:"https://github.com/microsoft/vscode/blob/main/LICENSE.txt",serverLicenseUrl:"https://github.com/microsoft/vscode/blob/main/LICENSE.txt"});Bt=Ns}});async function m9(e,t,s,i,n,r){let o;try{await CL(e,t,s,i,n,r)}catch(a){o=a}finally{o&&n.errorTransformer&&(o=n.errorTransformer(o)),typeof o<"u"&&s.error(o),s.end()}}async function CL(e,t,s,i,n,r){Nm(r);const o=await e.open(t,{create:!1});try{Nm(r);let a=0,c=0,l=n&&typeof n.length=="number"?n.length:void 0,u=O.alloc(Math.min(n.bufferSize,typeof l=="number"?l:n.bufferSize)),h=n&&typeof n.position=="number"?n.position:0,d=0;do c=await e.read(o,h,u.buffer,d,u.byteLength-d),h+=c,d+=c,a+=c,typeof l=="number"&&(l-=c),d===u.byteLength&&(await s.write(i(u)),u=O.alloc(Math.min(n.bufferSize,typeof l=="number"?l:n.bufferSize)),d=0);while(c>0&&(typeof l!="number"||l>0)&&Nm(r)&&jL(a,n));if(d>0){let p=d;typeof l=="number"&&(p=Math.min(d,l)),s.write(i(u.slice(0,p)))}}catch(a){throw Ar(a)}finally{await e.close(o)}}function Nm(e){if(e.isCancellationRequested)throw Cv();return!0}function jL(e,t){if(typeof t?.limits?.size=="number"&&e>t.limits.size)throw ln(m(1910,null),Y.FileTooLarge);return!0}var g9=v({"out-build/vs/platform/files/common/io.js"(){"use strict";Ue(),de(),pe(),et()}}),Rm,jc,w9=v({"out-build/vs/platform/files/common/fileService.js"(){"use strict";Et(),Me(),Ue(),Dt(),ae(),Wa(),dr(),H(),Xu(),Ie(),Hi(),kt(),za(),pe(),et(),g9(),De(),de(),jc=class extends J{static{Rm=this}constructor(t){super(),this.b=t,this.a=256*1024,this.c=this.B(new D),this.onDidChangeFileSystemProviderRegistrations=this.c.event,this.f=this.B(new D),this.onWillActivateFileSystemProvider=this.f.event,this.g=this.B(new D),this.onDidChangeFileSystemProviderCapabilities=this.g.event,this.h=new Map,this.r=this.B(new D),this.onDidRunOperation=this.r.event,this.X=this.B(new D),this.Y=this.B(new D),this.onDidFilesChange=this.Y.event,this.Z=this.B(new D),this.onDidWatchError=this.Z.event,this.$=new Map,this.cb=this.B(new f1)}registerProvider(t,s){if(this.h.has(t))throw new Error(`A filesystem provider for the scheme '${t}' is already registered.`);Pt(`code/registerFilesystem/${t}`);const i=new lt;return this.h.set(t,s),this.c.fire({added:!0,scheme:t,provider:s}),i.add(s.onDidChangeFile(n=>{const r=new D6(n,!this.S(s));this.X.fire(r),r.hasCorrelation()||this.Y.fire(r)})),typeof s.onDidWatchError=="function"&&i.add(s.onDidWatchError(n=>this.Z.fire(new Error(n)))),i.add(s.onDidChangeCapabilities(()=>this.g.fire({provider:s,scheme:t}))),ve(()=>{this.c.fire({added:!1,scheme:t,provider:s}),this.h.delete(t),jt(i)})}getProvider(t){return this.h.get(t)}async activateProvider(t){const s=[];this.f.fire({scheme:t,join(i){s.push(i)}}),!this.h.has(t)&&await Zt.settled(s)}async canHandleResource(t){return await this.activateProvider(t.scheme),this.hasProvider(t)}hasProvider(t){return this.h.has(t.scheme)}hasCapability(t,s){const i=this.h.get(t.scheme);return!!(i&&i.capabilities&s)}listCapabilities(){return qi.map(this.h,([t,s])=>({scheme:t,capabilities:s.capabilities}))}async j(t){if(!Oy(t))throw new Jt(m(1883,null,this.sb(t)),8);await this.activateProvider(t.scheme);const s=this.h.get(t.scheme);if(!s){const i=new Vi;throw i.message=m(1884,null,t.toString()),i}return s}async m(t){const s=await this.j(t);if(Mn(s)||Vs(s)||nm(s))return s;throw new Error(`Filesystem provider for scheme '${t.scheme}' neither has FileReadWrite, FileReadStream nor FileOpenReadWriteClose capability which is needed for the read operation.`)}async n(t){const s=await this.j(t);if(Mn(s)||Vs(s))return s;throw new Error(`Filesystem provider for scheme '${t.scheme}' neither has FileReadWrite nor FileOpenReadWriteClose capability which is needed for the write operation.`)}async resolve(t,s){try{return await this.s(t,s)}catch(i){throw Yu(i)===Y.FileNotFound?new Jt(m(1885,null,this.sb(t)),1):Ar(i)}}async s(t,s){const i=await this.j(t),n=this.S(i),r=s?.resolveTo,o=s?.resolveSingleChildDescendants,a=s?.resolveMetadata,c=await i.stat(t);let l;return this.t(i,t,c,void 0,!!a,(u,h)=>(l||(l=Do.forUris(()=>!n),l.set(t,!0),r&&l.fill(!0,r)),l.get(u.resource)||l.findSuperstr(u.resource.with({query:null,fragment:null}))?!0:u.isDirectory&&o?h===1:!1))}async t(t,s,i,n,r,o){const{providerExtUri:a}=this.R(t),c={resource:s,name:a.basename(s),isFile:(i.type&Ds.File)!==0,isDirectory:(i.type&Ds.Directory)!==0,isSymbolicLink:(i.type&Ds.SymbolicLink)!==0,mtime:i.mtime,ctime:i.ctime,size:i.size,readonly:!!((i.permissions??0)&No.Readonly)||!!(t.capabilities&2048),locked:!!((i.permissions??0)&No.Locked),etag:$6({mtime:i.mtime,size:i.size}),children:void 0};if(c.isDirectory&&o(c,n)){try{const l=await t.readdir(s),u=await Zt.settled(l.map(async([h,d])=>{try{const p=a.joinPath(s,h),g=r?await t.stat(p):{type:d};return await this.t(t,p,g,l.length,r,o)}catch(p){return this.b.trace(p),null}}));c.children=wi(u)}catch(l){this.b.trace(l),c.children=[]}return c}return c}async resolveAll(t){return Zt.settled(t.map(async s=>{try{return{stat:await this.s(s.resource,s.options),success:!0}}catch(i){return this.b.trace(i),{stat:void 0,success:!1}}}))}async stat(t){const s=await this.j(t),i=await s.stat(t);return this.t(s,t,i,void 0,!0,()=>!1)}async exists(t){const s=await this.j(t);try{return!!await s.stat(t)}catch{return!1}}async canCreateFile(t,s){try{await this.u(t,s)}catch(i){return i}return!0}async u(t,s){if(!s?.overwrite&&await this.exists(t))throw new Jt(m(1886,null,this.sb(t)),3,s)}async createFile(t,s=O.fromString(""),i){await this.u(t,i);const n=await this.writeFile(t,s);return this.r.fire(new Dr(t,0,n)),n}async writeFile(t,s,i){const n=this.qb(await this.n(t),t),{providerExtUri:r}=this.R(n);let o=i;if(x6(n)&&!o?.atomic){const a=n.enforceAtomicWriteFile?.(t);a&&(o={...i,atomic:a})}try{await this.w(n,t,o)||await this.U(n,r.dirname(t));let c;if(Vs(n)&&!(s instanceof O))if(pu(s)){const l=await _A(s,3);l.ended?c=O.concat(l.buffer):c=l}else c=jA(s,l=>O.concat(l),3);else c=s;!Mn(n)||Vs(n)&&c instanceof O||Vs(n)&&x6(n)&&o?.atomic?await this.hb(n,t,o,c):await this.db(n,t,o,c instanceof O?qA(c):c),this.r.fire(new Dr(t,4))}catch(a){throw new Jt(m(1887,null,this.sb(t),Ar(a).toString()),ss(a),o)}return this.resolve(t,{resolveMetadata:!0})}async w(t,s,i){const n=!!i?.unlock;if(n&&!(t.capabilities&8192))throw new Error(m(1888,null,this.sb(s)));if(!!i?.atomic){if(!(t.capabilities&32768))throw new Error(m(1889,null,this.sb(s)));if(!(t.capabilities&2))throw new Error(m(1890,null,this.sb(s)));if(n)throw new Error(m(1891,null,this.sb(s)))}let o;try{o=await t.stat(s)}catch{return}if(o.type&Ds.Directory)throw new Jt(m(1892,null,this.sb(s)),0,i);if(this.rb(s,o),typeof i?.mtime=="number"&&typeof i.etag=="string"&&i.etag!==eh&&typeof o.mtime=="number"&&typeof o.size=="number"&&i.mtime<o.mtime&&i.etag!==$6({mtime:i.mtime,size:o.size}))throw new Jt(m(1893,null),3,i);return o}async readFile(t,s,i){const n=await this.m(t);return s?.atomic?this.z(n,t,s,i):this.C(n,t,s,i)}async z(t,s,i,n){return new Promise((r,o)=>{this.cb.queueFor(s,async()=>{try{const a=await this.C(t,s,i,n);r(a)}catch(a){o(a)}},this.R(t).providerExtUri)})}async C(t,s,i,n){const r=await this.D(t,s,{...i,preferUnbuffered:!0},n);return{...r,value:await Zi(r.value)}}async readFileStream(t,s,i){const n=await this.m(t);return this.D(n,t,s,i)}async D(t,s,i,n){const r=new vi(n);let o=i;rm(t)&&t.enforceAtomicReadFile?.(s)&&(o={...i,atomic:!0});const a=this.J(s,o).then(l=>l,l=>{throw r.dispose(!0),l});let c;try{return typeof o?.etag=="string"&&o.etag!==eh&&await a,o?.atomic&&rm(t)||!(Mn(t)||nm(t))||Vs(t)&&o?.preferUnbuffered?c=this.I(t,s,o):nm(t)?c=this.G(t,s,r.token,o):c=this.H(t,s,r.token,o),c.on("end",()=>r.dispose()),c.on("error",()=>r.dispose()),{...await a,value:c}}catch(l){throw c&&await py(c),this.F(l,s,o)}}F(t,s,i){const n=m(1894,null,this.sb(s),Ar(t).toString());return t instanceof Ku?new Ku(n,t.stat,i):t instanceof Zu?new Zu(n,t.fileOperationResult,t.size,t.options):new Jt(n,ss(t),i)}G(t,s,i,n=Object.create(null)){const r=t.readFileStream(s,n,i);return my(r,{data:o=>o instanceof O?o:O.wrap(o),error:o=>this.F(o,s,n)},o=>O.concat(o))}H(t,s,i,n=Object.create(null)){const r=XA();return m9(t,s,r,o=>o,{...n,bufferSize:this.a,errorTransformer:o=>this.F(o,s,n)},i),r}I(t,s,i){const n=mu(r=>O.concat(r));return(async()=>{try{let r;i?.atomic&&rm(t)?r=await t.readFile(s,{atomic:!0}):r=await t.readFile(s),typeof i?.position=="number"&&(r=r.slice(i.position)),typeof i?.length=="number"&&(r=r.slice(0,i.length)),this.L(s,r.byteLength,i),n.end(O.wrap(r))}catch(r){n.error(r),n.end()}})(),n}async J(t,s){const i=await this.resolve(t,{resolveMetadata:!0});if(i.isDirectory)throw new Jt(m(1895,null,this.sb(t)),0,s);if(typeof s?.etag=="string"&&s.etag!==eh&&s.etag===i.etag)throw new Ku(m(1896,null),i,s);return this.L(t,i.size,s),i}L(t,s,i){if(typeof i?.limits?.size=="number"&&s>i.limits.size)throw new Zu(m(1897,null,this.sb(t)),7,s,i)}async canMove(t,s,i){return this.M(t,s,"move",i)}async canCopy(t,s,i){return this.M(t,s,"copy",i)}async M(t,s,i,n){if(t.toString()!==s.toString())try{const r=i==="move"?this.qb(await this.n(t),t):await this.m(t),o=this.qb(await this.n(s),s);await this.Q(r,t,o,s,i,n)}catch(r){return r}return!0}async move(t,s,i){const n=this.qb(await this.n(t),t),r=this.qb(await this.n(s),s),o=await this.N(n,t,r,s,"move",!!i),a=await this.resolve(s,{resolveMetadata:!0});return this.r.fire(new Dr(t,o==="move"?2:3,a)),a}async copy(t,s,i){const n=await this.m(t),r=this.qb(await this.n(s),s),o=await this.N(n,t,r,s,"copy",!!i),a=await this.resolve(s,{resolveMetadata:!0});return this.r.fire(new Dr(t,o==="copy"?3:2,a)),a}async N(t,s,i,n,r,o){if(s.toString()===n.toString())return r;const{exists:a,isSameResourceWithDifferentPathCase:c}=await this.Q(t,s,i,n,r,o);if(a&&!c&&o&&await this.del(n,{recursive:!0}),await this.U(i,this.R(i).providerExtUri.dirname(n)),r==="copy"){if(t===i&&E6(t))await t.copy(s,n,{overwrite:o});else{const l=await this.resolve(s);l.isDirectory?await this.P(t,l,i,n):await this.O(t,s,i,n)}return r}else return t===i?(await t.rename(s,n,{overwrite:o}),r):(await this.N(t,s,i,n,"copy",o),await this.del(s,{recursive:!0}),"copy")}async O(t,s,i,n){if(Mn(t)&&Mn(i))return this.jb(t,s,i,n);if(Mn(t)&&Vs(i))return this.pb(t,s,i,n);if(Vs(t)&&Mn(i))return this.nb(t,s,i,n);if(Vs(t)&&Vs(i))return this.lb(t,s,i,n)}async P(t,s,i,n){await i.mkdir(n),Array.isArray(s.children)&&await Zt.settled(s.children.map(async r=>{const o=this.R(i).providerExtUri.joinPath(n,r.name);return r.isDirectory?this.P(t,await this.resolve(r.resource),i,o):this.O(t,r.resource,i,o)}))}async Q(t,s,i,n,r,o){let a=!1;if(t===i){const{providerExtUri:l,isPathCaseSensitive:u}=this.R(t);if(u||(a=l.isEqual(s,n)),a&&r==="copy")throw new Error(m(1898,null,this.sb(s),this.sb(n)));if(!a&&l.isEqualOrParent(n,s))throw new Error(m(1899,null,this.sb(s),this.sb(n)))}const c=await this.exists(n);if(c&&!a){if(!o)throw new Jt(m(1900,null,this.sb(s),this.sb(n)),4);if(t===i){const{providerExtUri:l}=this.R(t);if(l.isEqualOrParent(s,n))throw new Error(m(1901,null,this.sb(s),this.sb(n)))}}return{exists:c,isSameResourceWithDifferentPathCase:a}}R(t){const s=this.S(t);return{providerExtUri:s?ke:Dy,isPathCaseSensitive:s}}S(t){return!!(t.capabilities&1024)}async createFolder(t){const s=this.qb(await this.j(t),t);await this.U(s,t);const i=await this.resolve(t,{resolveMetadata:!0});return this.r.fire(new Dr(t,0,i)),i}async U(t,s){const i=[],{providerExtUri:n}=this.R(t);for(;!n.isEqual(s,n.dirname(s));)try{if(!((await t.stat(s)).type&Ds.Directory))throw new Error(m(1902,null,this.sb(s)));break}catch(r){if(Yu(r)!==Y.FileNotFound)throw r;i.push(n.basename(s)),s=n.dirname(s)}for(let r=i.length-1;r>=0;r--){s=n.joinPath(s,i[r]);try{await t.mkdir(s)}catch(o){if(Yu(o)!==Y.FileExists)throw o}}}async canDelete(t,s){try{await this.W(t,s)}catch(i){return i}return!0}async W(t,s){const i=this.qb(await this.j(t),t),n=!!s?.useTrash;if(n&&!(i.capabilities&4096))throw new Error(m(1903,null,this.sb(t)));const r=s?.atomic;if(r&&!(i.capabilities&65536))throw new Error(m(1904,null,this.sb(t)));if(n&&r)throw new Error(m(1905,null,this.sb(t)));let o;try{o=await i.stat(t)}catch{}if(o)this.rb(t,o);else throw new Jt(m(1906,null,this.sb(t)),1);if(!!!s?.recursive){const c=await this.resolve(t);if(c.isDirectory&&Array.isArray(c.children)&&c.children.length>0)throw new Error(m(1907,null,this.sb(t)))}return i}async del(t,s){const i=await this.W(t,s);let n=s;if(HR(i)&&!n?.atomic){const c=i.enforceAtomicDelete?.(t);c&&(n={...s,atomic:c})}const r=!!n?.useTrash,o=!!n?.recursive,a=n?.atomic??!1;await i.delete(t,{recursive:o,useTrash:r,atomic:a}),this.r.fire(new Dr(t,1))}async cloneFile(t,s){const i=await this.j(t),n=this.qb(await this.n(s),s);if(!(i===n&&this.R(i).providerExtUri.isEqual(t,s)))return i===n&&zR(i)?i.cloneFile(t,s):(await this.U(n,this.R(n).providerExtUri.dirname(s)),i===n&&E6(i)?this.cb.queueFor(t,()=>i.copy(t,s,{overwrite:!0}),this.R(i).providerExtUri):this.cb.queueFor(t,()=>this.O(i,t,n,s),this.R(i).providerExtUri))}static{this.ab=0}createWatcher(t,s){return this.watch(t,{...s,correlationId:Rm.ab++})}watch(t,s={recursive:!1,excludes:[]}){const i=new lt;let n=!1,r=()=>{n=!0};i.add(ve(()=>r())),(async()=>{try{const a=await this.bb(t,s);n?jt(a):r=()=>jt(a)}catch(a){this.b.error(a)}})();const o=s.correlationId;if(typeof o=="number"){const a=i.add(new D);return i.add(this.X.event(l=>{l.correlates(o)&&a.fire(l)})),{onDidChange:a.event,dispose:()=>i.dispose()}}return i}async bb(t,s){const i=await this.j(t),n=co([this.R(i).providerExtUri.getComparisonKey(t),s]);let r=this.$.get(n);return r||(r={count:0,disposable:i.watch(t,s)},this.$.set(n,r)),r.count+=1,ve(()=>{r&&(r.count--,r.count===0&&(jt(r.disposable),this.$.delete(n)))})}dispose(){super.dispose();for(const[,t]of this.$)jt(t.disposable);this.$.clear()}async db(t,s,i,n){return this.cb.queueFor(s,async()=>{const r=await t.open(s,{create:!0,unlock:i?.unlock??!1});try{pu(n)||qp(n)?await this.eb(t,r,n):await this.fb(t,r,n)}catch(o){throw Ar(o)}finally{await t.close(r)}},this.R(t).providerExtUri)}async eb(t,s,i){let n=0,r;if(qp(i)){if(i.buffer.length>0){const o=O.concat(i.buffer);await this.gb(t,s,o,o.byteLength,n,0),n+=o.byteLength}if(i.ended)return;r=i.stream}else r=i;return new Promise((o,a)=>{gu(r,{onData:async c=>{r.pause();try{await this.gb(t,s,c,c.byteLength,n,0)}catch(l){return a(l)}n+=c.byteLength,setTimeout(()=>r.resume())},onError:c=>a(c),onEnd:()=>o()})})}async fb(t,s,i){let n=0,r;for(;(r=i.read())!==null;)await this.gb(t,s,r,r.byteLength,n,0),n+=r.byteLength}async gb(t,s,i,n,r,o){let a=0;for(;a<n;){const c=await t.write(s,r+a,i.buffer,o+a,n-a);a+=c}}async hb(t,s,i,n){return this.cb.queueFor(s,()=>this.ib(t,s,i,n),this.R(t).providerExtUri)}async ib(t,s,i,n){let r;n instanceof O?r=n:pu(n)?r=await Zi(n):qp(n)?r=await GA(n):r=WA(n),await t.writeFile(s,r.buffer,{create:!0,overwrite:!0,unlock:i?.unlock??!1,atomic:i?.atomic??!1})}async jb(t,s,i,n){return this.cb.queueFor(n,()=>this.kb(t,s,i,n),this.R(i).providerExtUri)}async kb(t,s,i,n){let r,o;try{r=await t.open(s,{create:!1}),o=await i.open(n,{create:!0,unlock:!1});const a=O.alloc(this.a);let c=0,l=0,u=0;do u=await t.read(r,c,a.buffer,l,a.byteLength-l),await this.gb(i,o,a,u,c,l),c+=u,l+=u,l===a.byteLength&&(l=0);while(u>0)}catch(a){throw Ar(a)}finally{await Zt.settled([typeof r=="number"?t.close(r):Promise.resolve(),typeof o=="number"?i.close(o):Promise.resolve()])}}async lb(t,s,i,n){return this.cb.queueFor(n,()=>this.mb(t,s,i,n),this.R(i).providerExtUri)}async mb(t,s,i,n){return i.writeFile(n,await t.readFile(s),{create:!0,overwrite:!0,unlock:!1,atomic:!1})}async nb(t,s,i,n){return this.cb.queueFor(n,()=>this.ob(t,s,i,n),this.R(i).providerExtUri)}async ob(t,s,i,n){const r=await i.open(n,{create:!0,unlock:!1});try{const o=await t.readFile(s);await this.gb(i,r,O.wrap(o),o.byteLength,0,0)}catch(o){throw Ar(o)}finally{await i.close(r)}}async pb(t,s,i,n){const r=await Zi(this.H(t,s,Re.None));await this.hb(i,n,void 0,r)}qb(t,s){if(t.capabilities&2048)throw new Jt(m(1908,null,this.sb(s)),6);return t}rb(t,s){if((s.permissions??0)&No.Readonly)throw new Jt(m(1909,null,this.sb(t)),6)}sb(t){return t.scheme===Z.file?t.fsPath:t.toString(!0)}},jc=Rm=__decorate([__param(0,fe)],jc)}});function v9(e,t){switch(e){case 0:return"";case 1:return`${Tc}*?`;default:return`(?:${_c}|${Tc}+${_c}${t?`|${_c}${Tc}+`:""})*?`}}function b9(e,t){if(!e)return[];const s=[];let i=!1,n=!1,r="";for(const o of e){switch(o){case t:if(!i&&!n){s.push(r),r="";continue}break;case"{":i=!0;break;case"}":i=!1;break;case"[":n=!0;break;case"]":n=!1;break}r+=o}return r&&s.push(r),s}function y9(e){if(!e)return"";let t="";const s=b9(e,Cm);if(s.every(i=>i===To))t=".*";else{let i=!1;s.forEach((n,r)=>{if(n===To){if(i)return;t+=v9(2,r===s.length-1)}else{let o=!1,a="",c=!1,l="";for(const u of n){if(u!=="}"&&o){a+=u;continue}if(c&&(u!=="]"||!l)){let h;u==="-"?h=u:(u==="^"||u==="!")&&!l?h="^":u===Cm?h="":h=Sn(u),l+=h;continue}switch(u){case"{":o=!0;continue;case"[":c=!0;continue;case"}":{const d=`(?:${b9(a,",").map(p=>y9(p)).join("|")})`;t+=d,o=!1,a="";break}case"]":{t+="["+l+"]",c=!1,l="";break}case"?":t+=Tc;continue;case"*":t+=v9(1);continue;default:t+=Sn(u)}}r<s.length-1&&(s[r+1]!==To||r+2<s.length)&&(t+=_c)}i=n===To})}return t}function Lm(e,t){if(!e)return oi;let s;typeof e!="string"?s=e.pattern:s=e,s=s.trim();const i=`${s}_${!!t.trimForExclusions}`;let n=jm.get(i);if(n)return E9(n,e);let r;return P9.test(s)?n=_L(s.substr(4),s):(r=I9.exec(Om(s,t)))?n=TL(r[1],s):(t.trimForExclusions?D9:A9).test(s)?n=ML(s,t):(r=N9.exec(Om(s,t)))?n=x9(r[1].substr(1),s,!0):(r=R9.exec(Om(s,t)))?n=x9(r[1],s,!1):n=UL(s),jm.set(i,n),E9(n,e)}function E9(e,t){if(typeof t=="string")return e;const s=function(i,n){return Ln(i,t.base,!it)?e(fA(i.substr(t.base.length),Yt),n):null};return s.allBasenames=e.allBasenames,s.allPaths=e.allPaths,s.basenames=e.basenames,s.patterns=e.patterns,s}function Om(e,t){return t.trimForExclusions&&e.endsWith("/**")?e.substr(0,e.length-2):e}function _L(e,t){return function(s,i){return typeof s=="string"&&s.endsWith(e)?t:null}}function TL(e,t){const s=`/${e}`,i=`\\${e}`,n=function(o,a){return typeof o!="string"?null:a?a===e?t:null:o===e||o.endsWith(s)||o.endsWith(i)?t:null},r=[e];return n.basenames=r,n.patterns=[t],n.allBasenames=r,n}function ML(e,t){const s=k9(e.slice(1,-1).split(",").map(a=>Lm(a,t)).filter(a=>a!==oi),e),i=s.length;if(!i)return oi;if(i===1)return s[0];const n=function(a,c){for(let l=0,u=s.length;l<u;l++)if(s[l](a,c))return e;return null},r=s.find(a=>!!a.allBasenames);r&&(n.allBasenames=r.allBasenames);const o=s.reduce((a,c)=>c.allPaths?a.concat(c.allPaths):a,[]);return o.length&&(n.allPaths=o),n}function x9(e,t,s){const i=Yt===Se.sep,n=i?e:e.replace(S9,Yt),r=Yt+n,o=Se.sep+e;let a;return s?a=function(c,l){return typeof c=="string"&&(c===n||c.endsWith(r)||!i&&(c===e||c.endsWith(o)))?t:null}:a=function(c,l){return typeof c=="string"&&(c===n||!i&&c===e)?t:null},a.allPaths=[(s?"*/":"./")+e],a}function UL(e){try{const t=new RegExp(`^${y9(e)}$`);return function(s){return t.lastIndex=0,typeof s=="string"&&t.test(s)?e:null}}catch{return oi}}function FL(e,t={}){if(!e)return _m;if(typeof e=="string"||BL(e)){const s=Lm(e,t);if(s===oi)return _m;const i=function(n,r){return!!s(n,r)};return s.allBasenames&&(i.allBasenames=s.allBasenames),s.allPaths&&(i.allPaths=s.allPaths),i}return zL(e,t)}function BL(e){const t=e;return t?typeof t.base=="string"&&typeof t.pattern=="string":!1}function zL(e,t){const s=k9(Object.getOwnPropertyNames(e).map(a=>HL(a,e[a],t)).filter(a=>a!==oi)),i=s.length;if(!i)return oi;if(!s.some(a=>!!a.requiresSiblings)){if(i===1)return s[0];const a=function(u,h){let d;for(let p=0,g=s.length;p<g;p++){const w=s[p](u,h);if(typeof w=="string")return w;c1(w)&&(d||(d=[]),d.push(w))}return d?(async()=>{for(const p of d){const g=await p;if(typeof g=="string")return g}return null})():null},c=s.find(u=>!!u.allBasenames);c&&(a.allBasenames=c.allBasenames);const l=s.reduce((u,h)=>h.allPaths?u.concat(h.allPaths):u,[]);return l.length&&(a.allPaths=l),a}const n=function(a,c,l){let u,h;for(let d=0,p=s.length;d<p;d++){const g=s[d];g.requiresSiblings&&l&&(c||(c=ot(a)),u||(u=c.substr(0,c.length-wr(a).length)));const w=g(a,c,u,l);if(typeof w=="string")return w;c1(w)&&(h||(h=[]),h.push(w))}return h?(async()=>{for(const d of h){const p=await d;if(typeof p=="string")return p}return null})():null},r=s.find(a=>!!a.allBasenames);r&&(n.allBasenames=r.allBasenames);const o=s.reduce((a,c)=>c.allPaths?a.concat(c.allPaths):a,[]);return o.length&&(n.allPaths=o),n}function HL(e,t,s){if(t===!1)return oi;const i=Lm(e,s);if(i===oi)return oi;if(typeof t=="boolean")return i;if(t){const n=t.when;if(typeof n=="string"){const r=(o,a,c,l)=>{if(!l||!i(o,a))return null;const u=n.replace("$(basename)",()=>c),h=l(u);return c1(h)?h.then(d=>d?e:null):h?e:null};return r.requiresSiblings=!0,r}}return i}function k9(e,t){const s=e.filter(a=>!!a.basenames);if(s.length<2)return e;const i=s.reduce((a,c)=>{const l=c.basenames;return l?a.concat(l):a},[]);let n;if(t){n=[];for(let a=0,c=i.length;a<c;a++)n.push(t)}else n=s.reduce((a,c)=>{const l=c.patterns;return l?a.concat(l):a},[]);const r=function(a,c){if(typeof a!="string")return null;if(!c){let u;for(u=a.length;u>0;u--){const h=a.charCodeAt(u-1);if(h===47||h===92)break}c=a.substr(u)}const l=i.indexOf(c);return l!==-1?n[l]:null};r.basenames=i,r.patterns=n,r.allBasenames=i;const o=e.filter(a=>!a.basenames);return o.push(r),o}function $9(e,t){return kn(e,t,(s,i)=>typeof s=="string"&&typeof i=="string"?s===i:typeof s!="string"&&typeof i!="string"?s.base===i.base&&s.pattern===i.pattern:!1)}var To,Cm,_c,Tc,S9,P9,I9,A9,D9,N9,R9,jm,_m,oi,Tm=v({"out-build/vs/base/common/glob.js"(){"use strict";Et(),Me(),yi(),as(),he(),Q(),rt(),To="**",Cm="/",_c="[/\\\\]",Tc="[^/\\\\]",S9=/\//g,P9=/^\*\*\/\*\.[\w\.-]+$/,I9=/^\*\*\/([\w\.-]+)\/?$/,A9=/^{\*\*\/\*?[\w\.-]+\/?(,\*\*\/\*?[\w\.-]+\/?)*}$/,D9=/^{\*\*\/\*?[\w\.-]+(\/(\*\*)?)?(,\*\*\/\*?[\w\.-]+(\/(\*\*)?)?)*}$/,N9=/^\*\*((\/[\w\.-]+)+)\/?$/,R9=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,jm=new _a(1e4),_m=function(){return!1},oi=function(){return null}}});function L9(e){return typeof e.correlationId=="number"}function VL(e){return e.recursive===!0}function O9(e){return e.map(t=>({type:t.type,resource:E.revive(t.resource),cId:t.cId}))}function WL(e){const t=new T9;for(const s of e)t.processEvent(s);return t.coalesce()}function qL(e,t){return typeof t=="string"&&!t.startsWith(To)&&!Xi(t)?{base:e,pattern:t}:t}function C9(e,t){const s=[];for(const i of t)s.push(FL(qL(e,i)));return s}function GL(e,t){if(typeof t=="number")switch(e.type){case 1:return(t&4)===0;case 2:return(t&8)===0;case 0:return(t&2)===0}return!1}function JL(e){if(typeof e=="number"){const t=[];return e&4&&t.push("Added"),e&8&&t.push("Deleted"),e&2&&t.push("Updated"),t.length===0?"<all>":`[${t.join(", ")}]`}return"<none>"}var Mm,j9,_9,T9,Mo=v({"out-build/vs/platform/files/common/watcher.js"(){"use strict";Tm(),H(),he(),Q(),te(),et(),Mm=class pI extends J{static{this.a=5}constructor(t,s,i,n){super(),this.h=t,this.j=s,this.m=i,this.n=n,this.c=this.B(new tu),this.f=void 0,this.g=0}s(){const t=new lt;this.c.value=t,this.b=this.r(t),this.b.setVerboseLogging(this.m),t.add(this.b.onDidChangeFile(s=>this.h(s))),t.add(this.b.onDidLogMessage(s=>this.j(s))),t.add(this.b.onDidError(s=>this.t(s.error,s.request)))}t(t,s){this.u(t,s)?this.g<pI.a&&this.f?(this.y(`restarting watcher after unexpected error: ${t}`),this.w(this.f)):this.y(`gave up attempting to restart watcher after unexpected error: ${t}`):this.y(t)}u(t,s){return!(!this.n.restartOnError||s||t.indexOf("No space left on device")!==-1||t.indexOf("EMFILE")!==-1)}w(t){this.g++,this.s(),this.watch(t)}async watch(t){this.f=t,await this.b?.watch(t)}async setVerboseLogging(t){this.m=t,await this.b?.setVerboseLogging(t)}y(t){this.j({type:"error",message:`[File Watcher (${this.n.type})] ${t}`})}z(t){this.j({type:"trace",message:`[File Watcher (${this.n.type})] ${t}`})}dispose(){return this.b=void 0,super.dispose()}},j9=class extends Mm{constructor(e,t,s){super(e,t,s,{type:"node.js",restartOnError:!1})}},_9=class extends Mm{constructor(e,t,s){super(e,t,s,{type:"universal",restartOnError:!0})}},T9=class{constructor(){this.a=new Set,this.b=new Map}c(e){return it?e.resource.fsPath:e.resource.fsPath.toLowerCase()}processEvent(e){const t=this.b.get(this.c(e));let s=!1;if(t){const i=t.type,n=e.type;t.resource.fsPath!==e.resource.fsPath&&(e.type===2||e.type===1)?s=!0:i===1&&n===2?(this.b.delete(this.c(e)),this.a.delete(t)):i===2&&n===1?t.type=0:i===1&&n===0||(t.type=n)}else s=!0;s&&(this.a.add(e),this.b.set(this.c(e),e))}coalesce(){const e=[],t=[];return Array.from(this.a).filter(s=>s.type!==2?(e.push(s),!1):!0).sort((s,i)=>s.resource.fsPath.length-i.resource.fsPath.length).filter(s=>t.some(i=>VR(s.resource.fsPath,i,!it))?!1:(t.push(s.resource.fsPath),!0)).concat(e)}}}}),M9,XL=v({"out-build/vs/platform/files/common/diskFileSystemProvider.js"(){"use strict";Et(),Me(),de(),ae(),yi(),H(),he(),Mo(),De(),M9=class extends J{constructor(e,t){super(),this.a=e,this.b=t,this.c=this.B(new D),this.onDidChangeFile=this.c.event,this.g=this.B(new D),this.onDidWatchError=this.g.event,this.j=[],this.m=this.B(new Sr(0)),this.y=[],this.z=this.B(new Sr(0))}watch(e,t){return t.recursive||this.b?.watcher?.forceUniversal?this.n(e,t):this.C(e,t)}n(e,t){const s=this.r(e,t),i=lb(this.j,s);return this.s(),ve(()=>{i(),this.s()})}r(e,t){const s={path:this.L(e),excludes:t.excludes,includes:t.includes,recursive:t.recursive,filter:t.filter,correlationId:t.correlationId};if(VL(s)){const i=this.b?.watcher?.recursive?.usePolling;i===!0?s.pollingInterval=this.b?.watcher?.recursive?.pollingInterval??5e3:Array.isArray(i)&&i.includes(s.path)&&(s.pollingInterval=this.b?.watcher?.recursive?.pollingInterval??5e3)}return s}s(){this.m.trigger(()=>this.t()).catch(e=>Vt(e))}t(){return this.h||(this.h=this.B(this.u(e=>this.c.fire(O9(e)),e=>this.H(e),this.a.getLevel()===F.Trace)),this.B(this.a.onDidChangeLogLevel(()=>{this.h?.setVerboseLogging(this.a.getLevel()===F.Trace)}))),this.h.watch(this.j)}C(e,t){const s={path:this.L(e),excludes:t.excludes,includes:t.includes,recursive:!1,filter:t.filter,correlationId:t.correlationId},i=lb(this.y,s);return this.D(),ve(()=>{i(),this.D()})}D(){this.z.trigger(()=>this.F()).catch(e=>Vt(e))}F(){return this.w||(this.w=this.B(this.G(e=>this.c.fire(O9(e)),e=>this.H(e),this.a.getLevel()===F.Trace)),this.B(this.a.onDidChangeLogLevel(()=>{this.w?.setVerboseLogging(this.a.getLevel()===F.Trace)}))),this.w.watch(this.y)}H(e){e.type==="error"&&this.g.fire(e.message),this.I(e)}I(e){this.a[e.type](e.message)}J(e){return ti(e.fsPath)}L(e){const t=this.J(e);return tD(t)}}}});function _e(e,t,s){let i=null,n=null;if(typeof s.value=="function"?(i="value",n=s.value,n.length!==0&&console.warn("Memoize should only be used in functions with zero parameters")):typeof s.get=="function"&&(i="get",n=s.get),!n)throw new Error("not supported");const r=`$memoize$${t}`;s[i]=function(...o){return this.hasOwnProperty(r)||Object.defineProperty(this,r,{configurable:!1,enumerable:!1,writable:!1,value:n.apply(this,o)}),this[r]}}var Um=v({"out-build/vs/base/common/decorators.js"(){"use strict"}});function Uo(e){switch(e){case 100:return"req";case 101:return"cancel";case 102:return"subscribe";case 103:return"unsubscribe"}}function vh(e){switch(e){case 200:return"init";case 201:return"reply:";case 202:case 203:return"replyErr:";case 204:return"event:"}}function Fo(e){let t=0;for(let s=0;;s+=7){const i=e.read(1);if(t|=(i.buffer[0]&127)<<s,!(i.buffer[0]&128))return t}}function Bo(e,t){if(t===0){e.write(z9);return}let s=0;for(let n=t;n!==0;n=n>>>7)s++;const i=O.alloc(s);for(let n=0;t!==0;n++)i.buffer[n]=t&127,t=t>>>7,t>0&&(i.buffer[n]|=128);e.write(i)}function Un(e){const t=O.alloc(1);return t.writeUInt8(e,0),t}function Mc(e,t){if(typeof t>"u")e.write(Fn.Undefined);else if(typeof t=="string"){const s=O.fromString(t);e.write(Fn.String),Bo(e,s.byteLength),e.write(s)}else if(H9&&Buffer.isBuffer(t)){const s=O.wrap(t);e.write(Fn.Buffer),Bo(e,s.byteLength),e.write(s)}else if(t instanceof O)e.write(Fn.VSBuffer),Bo(e,t.byteLength),e.write(t);else if(Array.isArray(t)){e.write(Fn.Array),Bo(e,t.length);for(const s of t)Mc(e,s)}else if(typeof t=="number"&&(t|0)===t)e.write(Fn.Uint),Bo(e,t);else{const s=O.fromString(JSON.stringify(t));e.write(Fn.Object),Bo(e,s.byteLength),e.write(s)}}function zo(e){switch(e.read(1).readUInt8(0)){case is.Undefined:return;case is.String:return e.read(Fo(e)).toString();case is.Buffer:return e.read(Fo(e)).buffer;case is.VSBuffer:return e.read(Fo(e));case is.Array:{const s=Fo(e),i=[];for(let n=0;n<s;n++)i.push(zo(e));return i}case is.Object:return JSON.parse(e.read(Fo(e)).toString());case is.Int:return Fo(e)}}function U9(e){return{call(t,s,i){return e.then(n=>n.call(t,s,i))},listen(t,s){const i=new Ip;return e.then(n=>i.input=n.listen(t,s)),i.event}}}function YL(e){let t=!1;return{call(s,i,n){return t?e.call(s,i,n):$r(0).then(()=>t=!0).then(()=>e.call(s,i,n))},listen(s,i){if(t)return e.listen(s,i);const n=new Ip;return $r(0).then(()=>t=!0).then(()=>n.input=e.listen(s,i)),n.event}}}var F9,B9,Lr,z9,bh,Fm,is,Fn,H9,V9,W9,yh,q9,G9,Uc,Ho=v({"out-build/vs/base/parts/ipc/common/ipc.js"(){"use strict";Et(),Me(),Ue(),Dt(),Um(),de(),ae(),Zl(),H(),Ro(),rt(),xe(),function(e){e[e.Promise=100]="Promise",e[e.PromiseCancel=101]="PromiseCancel",e[e.EventListen=102]="EventListen",e[e.EventDispose=103]="EventDispose"}(F9||(F9={})),function(e){e[e.Initialize=200]="Initialize",e[e.PromiseSuccess=201]="PromiseSuccess",e[e.PromiseError=202]="PromiseError",e[e.PromiseErrorObj=203]="PromiseErrorObj",e[e.EventFire=204]="EventFire"}(B9||(B9={})),function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Idle=1]="Idle"}(Lr||(Lr={})),z9=Un(0),bh=class{constructor(e){this.b=e,this.a=0}read(e){const t=this.b.slice(this.a,this.a+e);return this.a+=t.byteLength,t}},Fm=class{constructor(){this.a=[]}get buffer(){return O.concat(this.a)}write(e){this.a.push(e)}},function(e){e[e.Undefined=0]="Undefined",e[e.String=1]="String",e[e.Buffer=2]="Buffer",e[e.VSBuffer=3]="VSBuffer",e[e.Array=4]="Array",e[e.Object=5]="Object",e[e.Int=6]="Int"}(is||(is={})),Fn={Undefined:Un(is.Undefined),String:Un(is.String),Buffer:Un(is.Buffer),VSBuffer:Un(is.VSBuffer),Array:Un(is.Array),Object:Un(is.Object),Uint:Un(is.Int)},H9=typeof Buffer<"u",V9=class{constructor(e,t,s=null,i=1e3){this.h=e,this.j=t,this.k=s,this.l=i,this.b=new Map,this.d=new Map,this.g=new Map,this.f=this.h.onMessage(n=>this.q(n)),this.m({type:200})}registerChannel(e,t){this.b.set(e,t),setTimeout(()=>this.w(e),0)}m(e){switch(e.type){case 200:{const t=this.o([e.type]);this.k?.logOutgoing(t,0,1,vh(e.type));return}case 201:case 202:case 204:case 203:{const t=this.o([e.type,e.id],e.data);this.k?.logOutgoing(t,e.id,1,vh(e.type),e.data);return}}}o(e,t=void 0){const s=new Fm;return Mc(s,e),Mc(s,t),this.p(s.buffer)}p(e){try{return this.h.send(e),e.byteLength}catch{return 0}}q(e){const t=new bh(e),s=zo(t),i=zo(t),n=s[0];switch(n){case 100:return this.k?.logIncoming(e.byteLength,s[1],1,`${Uo(n)}: ${s[2]}.${s[3]}`,i),this.s({type:n,id:s[1],channelName:s[2],name:s[3],arg:i});case 102:return this.k?.logIncoming(e.byteLength,s[1],1,`${Uo(n)}: ${s[2]}.${s[3]}`,i),this.t({type:n,id:s[1],channelName:s[2],name:s[3],arg:i});case 101:return this.k?.logIncoming(e.byteLength,s[1],1,`${Uo(n)}`),this.u({type:n,id:s[1]});case 103:return this.k?.logIncoming(e.byteLength,s[1],1,`${Uo(n)}`),this.u({type:n,id:s[1]})}}s(e){const t=this.b.get(e.channelName);if(!t){this.v(e);return}const s=new vi;let i;try{i=t.call(this.j,e.name,e.arg,s.token)}catch(o){i=Promise.reject(o)}const n=e.id;i.then(o=>{this.m({id:n,data:o,type:201})},o=>{o instanceof Error?this.m({id:n,data:{message:o.message,name:o.name,stack:o.stack?o.stack.split(` `):void 0},type:202}):this.m({id:n,data:o,type:203})}).finally(()=>{r.dispose(),this.d.delete(e.id)});const r=ve(()=>s.cancel());this.d.set(e.id,r)}t(e){const t=this.b.get(e.channelName);if(!t){this.v(e);return}const s=e.id,n=t.listen(this.j,e.name,e.arg)(r=>this.m({id:s,data:r,type:204}));this.d.set(e.id,n)}u(e){const t=this.d.get(e.id);t&&(t.dispose(),this.d.delete(e.id))}v(e){let t=this.g.get(e.channelName);t||(t=[],this.g.set(e.channelName,t));const s=setTimeout(()=>{console.error(`Unknown channel: ${e.channelName}`),e.type===100&&this.m({id:e.id,data:{name:"Unknown channel",message:`Channel name '${e.channelName}' timed out after ${this.l}ms`,stack:void 0},type:202})},this.l);t.push({request:e,timeoutTimer:s})}w(e){const t=this.g.get(e);if(t){for(const s of t)switch(clearTimeout(s.timeoutTimer),s.request.type){case 100:this.s(s.request);break;case 102:this.t(s.request);break}this.g.delete(e)}}dispose(){this.f&&(this.f.dispose(),this.f=null),jt(this.d.values()),this.d.clear()}},function(e){e[e.LocalSide=0]="LocalSide",e[e.OtherSide=1]="OtherSide"}(W9||(W9={})),yh=class{constructor(e,t=null){this.l=e,this.a=!1,this.b=Lr.Uninitialized,this.d=new Set,this.f=new Map,this.g=0,this.k=new D,this.onDidInitialize=this.k.event,this.h=this.l.onMessage(s=>this.s(s)),this.j=t}getChannel(e){const t=this;return{call(s,i,n){return t.a?Promise.reject(new It):t.m(e,s,i,n)},listen(s,i){return t.a?z.None:t.o(e,s,i)}}}m(e,t,s,i=Re.None){const n=this.g++,o={id:n,type:100,channelName:e,name:t,arg:s};if(i.isCancellationRequested)return Promise.reject(new It);let a,c;return new Promise((u,h)=>{if(i.isCancellationRequested)return h(new It);const d=()=>{const w=y=>{switch(y.type){case 201:this.f.delete(n),u(y.data);break;case 202:{this.f.delete(n);const x=new Error(y.data.message);x.stack=Array.isArray(y.data.stack)?y.data.stack.join(` `):y.data.stack,x.name=y.data.name,h(x);break}case 203:this.f.delete(n),h(y.data);break}};this.f.set(n,w),this.p(o)};let p=null;this.b===Lr.Idle?d():(p=tn(w=>this.u()),p.then(()=>{p=null,d()}));const g=()=>{p?(p.cancel(),p=null):this.p({id:n,type:101}),h(new It)};a=i.onCancellationRequested(g),c={dispose:Ql(()=>{g(),a.dispose()})},this.d.add(c)}).finally(()=>{a.dispose(),this.d.delete(c)})}o(e,t,s){const i=this.g++,r={id:i,type:102,channelName:e,name:t,arg:s};let o=null;const a=new D({onWillAddFirstListener:()=>{const l=()=>{this.d.add(a),this.p(r)};this.b===Lr.Idle?l():(o=tn(u=>this.u()),o.then(()=>{o=null,l()}))},onDidRemoveLastListener:()=>{o?(o.cancel(),o=null):(this.d.delete(a),this.p({id:i,type:103}))}}),c=l=>a.fire(l.data);return this.f.set(i,c),a.event}p(e){switch(e.type){case 100:case 102:{const t=this.q([e.type,e.id,e.channelName,e.name],e.arg);this.j?.logOutgoing(t,e.id,0,`${Uo(e.type)}: ${e.channelName}.${e.name}`,e.arg);return}case 101:case 103:{const t=this.q([e.type,e.id]);this.j?.logOutgoing(t,e.id,0,Uo(e.type));return}}}q(e,t=void 0){const s=new Fm;return Mc(s,e),Mc(s,t),this.r(s.buffer)}r(e){try{return this.l.send(e),e.byteLength}catch{return 0}}s(e){const t=new bh(e),s=zo(t),i=zo(t),n=s[0];switch(n){case 200:return this.j?.logIncoming(e.byteLength,0,0,vh(n)),this.t({type:s[0]});case 201:case 202:case 204:case 203:return this.j?.logIncoming(e.byteLength,s[1],0,vh(n),i),this.t({type:s[0],id:s[1],data:i})}}t(e){if(e.type===200){this.b=Lr.Idle,this.k.fire();return}this.f.get(e.id)?.(e)}get onDidInitializePromise(){return z.toPromise(this.onDidInitialize)}u(){return this.b===Lr.Idle?Promise.resolve():this.onDidInitializePromise}dispose(){this.a=!0,this.h&&(this.h.dispose(),this.h=null),jt(this.d.values()),this.d.clear()}},__decorate([_e],yh.prototype,"onDidInitializePromise",null),q9=class{get connections(){const e=[];return this.f.forEach(t=>e.push(t)),e}constructor(e,t,s){this.a=new Map,this.f=new Set,this.g=new D,this.onDidAddConnection=this.g.event,this.h=new D,this.onDidRemoveConnection=this.h.event,this.j=new lt,this.j.add(e(({protocol:i,onDidClientDisconnect:n})=>{const r=z.once(i.onMessage);this.j.add(r(o=>{const a=new bh(o),c=zo(a),l=new V9(i,c,t,s),u=new yh(i,t);this.a.forEach((d,p)=>l.registerChannel(p,d));const h={channelServer:l,channelClient:u,ctx:c};this.f.add(h),this.g.fire(h),this.j.add(n(()=>{l.dispose(),u.dispose(),this.f.delete(h),this.h.fire(h)}))}))}))}getChannel(e,t){const s=this;return{call(i,n,r){let o;if(Vp(t)){const c=tA(s.connections.filter(t));o=c?Promise.resolve(c):z.toPromise(z.filter(s.onDidAddConnection,t))}else o=t.routeCall(s,i,n);const a=o.then(c=>c.channelClient.getChannel(e));return U9(a).call(i,n,r)},listen(i,n){if(Vp(t))return s.k(e,t,i,n);const r=t.routeEvent(s,i,n).then(o=>o.channelClient.getChannel(e));return U9(r).listen(i,n)}}}k(e,t,s,i){const n=this;let r;const o=new D({onWillAddFirstListener:()=>{r=new lt;const a=new jb,c=new Map,l=h=>{const p=h.channelClient.getChannel(e).listen(s,i),g=a.add(p);c.set(h,g)},u=h=>{const d=c.get(h);d&&(d.dispose(),c.delete(h))};n.connections.filter(t).forEach(l),z.filter(n.onDidAddConnection,t)(l,void 0,r),n.onDidRemoveConnection(u,void 0,r),a.event(o.fire,o,r),r.add(a)},onDidRemoveLastListener:()=>{r?.dispose(),r=void 0}});return n.j.add(o),o.event}registerChannel(e,t){this.a.set(e,t);for(const s of this.f)s.channelServer.registerChannel(e,t)}dispose(){this.j.dispose();for(const e of this.f)e.channelClient.dispose(),e.channelServer.dispose();this.f.clear(),this.a.clear(),this.g.dispose(),this.h.dispose()}},G9=class{constructor(e){this.a=e}routeCall(e){return this.b(e)}routeEvent(e){return this.b(e)}async b(e){for(const t of e.connections)if(await Promise.resolve(this.a(t.ctx)))return Promise.resolve(t);return await z.toPromise(e.onDidAddConnection),await this.b(e)}},function(e){function t(r,o,a){const c=r,l=a&&a.disableMarshalling,u=new Map;for(const h in c)i(h)&&u.set(h,z.buffer(c[h],!0,void 0,o));return new class{listen(h,d,p){const g=u.get(d);if(g)return g;const w=c[d];if(typeof w=="function"){if(n(d))return w.call(c,p);if(i(d))return u.set(d,z.buffer(c[d],!0,void 0,o)),u.get(d)}throw new Vi(`Event not found: ${d}`)}call(h,d,p){const g=c[d];if(typeof g=="function"){if(!l&&Array.isArray(p))for(let y=0;y<p.length;y++)p[y]=Ws(p[y]);let w=g.apply(c,p);return w instanceof Promise||(w=Promise.resolve(w)),w}throw new Vi(`Method not found: ${d}`)}}}e.fromService=t;function s(r,o){const a=o&&o.disableMarshalling;return new Proxy({},{get(c,l){if(typeof l=="string")return o?.properties?.has(l)?o.properties.get(l):n(l)?function(u){return r.listen(l,u)}:i(l)?r.listen(l):async function(...u){let h;o&&!xt(o.context)?h=[o.context,...u]:h=u;const d=await r.call(l,h);return a?d:Ws(d)};throw new Vi(`Property not found: ${String(l)}`)}})}e.toService=s;function i(r){return r[0]==="o"&&r[1]==="n"&&Ub(r.charCodeAt(2))}function n(r){return/^onDynamic/.test(r)&&Ub(r.charCodeAt(9))}}(Uc||(Uc={}))}});function QL(e){const t=e;return t&&typeof t.type=="string"&&typeof t.severity=="string"}function ZL(e){const t=[];let s;try{const i=JSON.parse(e.arguments),n=i[i.length-1];n&&n.__$stack&&(i.pop(),s=n.__$stack),t.push(...i)}catch{t.push("Unable to log remote console arguments",e.arguments)}return{args:t,stack:s}}function KL(e){if(!e)return e;const t=e.indexOf(` `);return t===-1?e:e.substring(0,t)}function eO(e,t){const{args:s,stack:i}=ZL(e),n=typeof s[0]=="string"&&s.length===1;let r=KL(i);r&&(r=`(${r.trim()})`);let o=[];if(typeof s[0]=="string"?r&&n?o=[`%c[${t}] %c${s[0]} %c${r}`,Vo("blue"),Vo(""),Vo("grey")]:o=[`%c[${t}] %c${s[0]}`,Vo("blue"),Vo(""),...s.slice(1)]:o=[`%c[${t}]%`,Vo("blue"),...s],r&&!n&&o.push(r),typeof console[e.severity]!="function")throw new Error("Unknown console method");console[e.severity].apply(console,o)}function Vo(e){return`color: ${e}`}var tO=v({"out-build/vs/base/common/console.js"(){"use strict";te()}});import{fork as sO}from"child_process";var Bm,J9=v({"out-build/vs/base/parts/ipc/node/ipc.cp.js"(){"use strict";Me(),Ue(),Dt(),tO(),de(),ae(),H(),Kt(),p5(),_u(),Ho(),Bm=class{constructor(e,t){this.i=e,this.j=t,this.c=new Set,this.g=new Map,this.h=new D,this.onDidProcessExit=this.h.event;const s=t&&t.timeout?t.timeout:6e4;this.b=new l1(s),this.d=null,this.f=null}getChannel(e){const t=this;return{call(s,i,n){return t.k(e,s,i,n)},listen(s,i){return t.l(e,s,i)}}}k(e,t,s,i=Re.None){if(!this.b)return Promise.reject(new Error("disposed"));if(i.isCancellationRequested)return Promise.reject(Cv());this.b.cancel();const n=this.n(e),r=tn(c=>n.call(t,s,c)),o=i.onCancellationRequested(()=>r.cancel()),a=ve(()=>r.cancel());return this.c.add(a),r.finally(()=>{o.dispose(),this.c.delete(a),this.c.size===0&&this.b&&this.b.trigger(()=>this.o())}),r}l(e,t,s){if(!this.b)return z.None;this.b.cancel();let i;const n=new D({onWillAddFirstListener:()=>{i=this.n(e).listen(t,s)(n.fire,n),this.c.add(i)},onDidRemoveLastListener:()=>{this.c.delete(i),i.dispose(),this.c.size===0&&this.b&&this.b.trigger(()=>this.o())}});return n.event}get m(){if(!this.f){const e=this.j&&this.j.args?this.j.args:[],t=Object.create(null);t.env={...sn(process.env),VSCODE_PARENT_PID:String(process.pid)},this.j&&this.j.env&&(t.env={...t.env,...this.j.env}),this.j&&this.j.freshExecArgv&&(t.execArgv=[]),this.j&&typeof this.j.debug=="number"&&(t.execArgv=["--nolazy","--inspect="+this.j.debug]),this.j&&typeof this.j.debugBrk=="number"&&(t.execArgv=["--nolazy","--inspect-brk="+this.j.debugBrk]),t.execArgv===void 0&&(t.execArgv=process.execArgv.filter(u=>!/^--inspect(-brk)?=/.test(u)).filter(u=>!u.startsWith("--vscode-"))),l5(t.env),this.d=sO(this.i,e,t);const s=new D,n=z.fromNodeEventEmitter(this.d,"message",u=>u)(u=>{if(QL(u)){eO(u,`IPC Library: ${this.j.serverName}`);return}s.fire(O.wrap(Buffer.from(u,"base64")))}),r=this.j.useQueue?dN(this.d):this.d,o=u=>this.d&&this.d.connected&&r.send(u.buffer.toString("base64")),a=s.event,c={send:o,onMessage:a};this.f=new yh(c);const l=()=>this.o();process.once("exit",l),this.d.on("error",u=>console.warn('IPC "'+this.j.serverName+'" errored with '+u)),this.d.on("exit",(u,h)=>{process.removeListener("exit",l),n.dispose(),this.c.forEach(d=>jt(d)),this.c.clear(),u!==0&&h!=="SIGTERM"&&console.warn('IPC "'+this.j.serverName+'" crashed with exit code '+u+" and signal "+h),this.b?.cancel(),this.o(),this.h.fire({code:u,signal:h})})}return this.f}n(e){let t=this.g.get(e);return t||(t=this.m.getChannel(e),this.g.set(e,t)),t}o(){this.f&&(this.d&&(this.d.kill(),this.d=null),this.f=null,this.g.clear())}dispose(){this.h.dispose(),this.b?.cancel(),this.b=void 0,this.o(),this.c.clear()}}}}),X9,iO=v({"out-build/vs/platform/files/node/watcher/watcherClient.js"(){"use strict";Ie(),Ho(),J9(),Mo(),X9=class extends _9{constructor(e,t,s){super(e,t,s),this.s()}r(e){const t=e.add(new Bm(Ot.asFileUri("bootstrap-fork").fsPath,{serverName:"File Watcher",args:["--type=fileWatcher"],env:{VSCODE_ESM_ENTRYPOINT:"vs/platform/files/node/watcher/watcherMain",VSCODE_PIPE_LOGGING:"true",VSCODE_VERBOSE_LOGGING:"true"}}));return e.add(t.onDidProcessExit(({code:s,signal:i})=>this.t(`terminated by itself with code ${s}, signal: ${i} (ETERM)`))),Uc.toService(YL(t.getChannel("watcher")))}}}});import{watchFile as nO,unwatchFile as rO}from"fs";var Y9,oO=v({"out-build/vs/platform/files/node/watcher/baseWatcher.js"(){"use strict";H(),Mo(),ae(),te(),Me(),Wa(),de(),Y9=class extends J{constructor(){super(),this.a=this.B(new D),this.onDidChangeFile=this.a.event,this.b=this.B(new D),this.onDidLogMessage=this.b.event,this.c=this.B(new D),this.f=this.c.event,this.g=new Map,this.h=new Map,this.j=this.B(new su),this.m=new Set,this.n=this.B(new Sr(this.y())),this.r=5007,this.s=new $u,this.R=!1,this.B(this.f(e=>this.z({id:this.u(e),correlationId:this.t(e)?e.correlationId:void 0,path:e.path})))}t(e){return L9(e)}u(e){return this.t(e)?e.correlationId:co(e)}async watch(e){this.s.isSettled||this.s.complete(),this.s=new $u;try{this.g.clear(),this.h.clear();for(const t of e)this.t(t)?this.g.set(t.correlationId,t):this.h.set(this.u(t),t);for(const[t]of this.j)!this.h.has(t)&&!this.g.has(t)&&(this.j.deleteAndDispose(t),this.m.delete(t));return await this.w(!1)}finally{this.s.complete()}}w(e){const t=[];for(const[s,i]of[...this.h,...this.g])this.j.has(s)||t.push(i);return this.n.trigger(()=>this.N(t),e?this.y():0).catch(s=>Vt(s))}y(){return 800}isSuspended(e){const t=this.u(e);return this.m.has(t)?"polling":this.j.has(t)}async z(e){if(this.j.has(e.id))return;const t=new lt;this.j.set(e.id,t),await this.s.p,!t.isDisposed&&(this.D(e,t),this.w(!0))}C(e){this.j.deleteAndDispose(e.id),this.m.delete(e.id),this.w(!1)}D(e,t){this.F(e,t)?(this.P(`reusing an existing recursive watcher to monitor ${e.path}`),this.m.delete(e.id)):(this.G(e,t),this.m.add(e.id))}F(e,t){const s=this.O?.subscribe(e.path,(i,n)=>{t.isDisposed||(i?this.D(e,t):n?.type===1&&this.H(e))});return s?(t.add(s),!0):!1}G(e,t){let s=!1;const i=(n,r)=>{if(t.isDisposed)return;const o=this.I(n),a=this.I(r),c=s;s=o,!o&&(a||c)&&this.H(e)};this.P(`starting fs.watchFile() on ${e.path} (correlationId: ${e.correlationId})`);try{nO(e.path,{persistent:!1,interval:this.r},i)}catch(n){this.Q(`fs.watchFile() failed with error ${n} on path ${e.path} (correlationId: ${e.correlationId})`)}t.add(ve(()=>{this.P(`stopping fs.watchFile() on ${e.path} (correlationId: ${e.correlationId})`);try{rO(e.path,i)}catch(n){this.Q(`fs.unwatchFile() failed with error ${n} on path ${e.path} (correlationId: ${e.correlationId})`)}}))}H(e){this.P(`detected ${e.path} exists again, resuming watcher (correlationId: ${e.correlationId})`);const t={resource:E.file(e.path),type:1,cId:e.correlationId};this.a.fire([t]),this.J(t,e),this.C(e)}I(e){return e.ctimeMs===0&&e.ino===0}async stop(){this.j.clearAndDisposeAll(),this.m.clear()}J(e,t){if(this.R){const s=` >> normalized ${e.type===1?"[ADDED]":e.type===2?"[DELETED]":"[CHANGED]"} ${e.resource.fsPath}`;this.L(s,t)}}L(e,t){this.R&&this.P(`${e}${typeof t.correlationId=="number"?` <${t.correlationId}> `:""}`)}M(e){return`${e.path} (excludes: ${e.excludes.length>0?e.excludes:"<none>"}, includes: ${e.includes&&e.includes.length>0?JSON.stringify(e.includes):"<all>"}, filter: ${JL(e.filter)}, correlationId: ${typeof e.correlationId=="number"?e.correlationId:"<none>"})`}async setVerboseLogging(e){this.R=e}}}});import"fs";async function zm(e,t){if(it)return e;const s=Lt(e);if(e===s)return e;const i=(ot(e)||e).toLowerCase();try{if(t?.isCancellationRequested)return null;const r=(await Le.readdir(s)).filter(o=>o.toLowerCase()===i);if(r.length===1){const o=await zm(s,t);if(o)return j(o,r[0])}else if(r.length>1){const o=r.indexOf(i);if(o>=0){const a=await zm(s,t);if(a)return j(a,r[o])}}}catch{}return null}var aO=v({"out-build/vs/base/node/extpath.js"(){"use strict";he(),Q(),rt(),es()}});import{watch as cO,promises as lO}from"fs";var Q9,uO=v({"out-build/vs/platform/files/node/watcher/nodejs/nodejsWatcherLib.js"(){"use strict";Me(),Dt(),yi(),H(),Q4(),he(),Q(),kt(),te(),aO(),es(),Mo(),Q9=class tp extends J{static{this.a=100}static{this.b=75}get isReusingRecursiveWatcher(){return this.n}get failed(){return this.r}constructor(t,s,i,n,r,o){super(),this.s=t,this.t=s,this.u=i,this.w=n,this.y=r,this.z=o,this.c=this.B(new d4({maxWorkChunkSize:100,throttleDelay:200,maxBufferedWork:1e4},a=>this.u(a))),this.f=this.B(new f4(a=>this.M(a),tp.b)),this.g=C9(this.s.path,this.s.excludes),this.h=this.s.includes?C9(this.s.path,this.s.includes):void 0,this.j=L9(this.s)?this.s.filter:void 0,this.m=new vi,this.ready=this.C(),this.n=!1,this.r=!1}async C(){try{const t=await this.F(this.s);if(this.m.token.isCancellationRequested)return;const s=await lO.stat(t);if(this.m.token.isCancellationRequested)return;this.B(await this.G(t,s.isDirectory()))}catch(t){t.code!=="ENOENT"?this.O(t):this.Q(`ignoring a path for watching who's stat info failed to resolve: ${this.s.path} (error: ${t})`),this.D()}}D(){this.r=!0,this.w?.()}async F(t){let s=t.path;try{s=await Le.realpath(t.path),t.path===s&&(s=await zm(t.path,this.m.token)??t.path),t.path!==s&&this.Q(`correcting a path to watch that seems to be a symbolic link or wrong casing (original: ${t.path}, real: ${s})`)}catch{}return s}async G(t,s){const i=new lt;return this.H(t,s,i)?(this.Q(`reusing an existing recursive watcher for ${this.s.path}`),this.n=!0):(this.n=!1,await this.I(t,s,i)),i}H(t,s,i){if(s)return!1;const n=E.file(this.s.path),r=this.t?.subscribe(this.s.path,async(o,a)=>{if(!i.isDisposed)if(o){const c=await this.G(t,s);i.isDisposed?c.dispose():i.add(c)}else a&&(typeof a.cId=="number"||typeof this.s.correlationId=="number")&&this.L({resource:n,type:a.type,cId:this.s.correlationId},!0)});return r?(i.add(r),!0):!1}async I(t,s,i){if(Os&&Ln(t,"/Volumes/",!0)){this.O(`Refusing to watch ${t} for changes using fs.watch() for possibly being a network share where watching is unreliable and unstable.`);return}const n=new vi(this.m.token);i.add(ve(()=>n.dispose(!0)));const r=new lt;i.add(r);try{const o=E.file(this.s.path),a=ot(t),c=cO(t);r.add(ve(()=>{c.removeAllListeners(),c.close()})),this.Q(`Started watching: '${t}'`);const l=new Set;if(s)try{for(const h of await Le.readdir(t))l.add(h)}catch(h){this.O(h)}if(n.token.isCancellationRequested)return;const u=new Map;r.add(ve(()=>{for(const[,h]of u)h.dispose();u.clear()})),c.on("error",(h,d)=>{n.token.isCancellationRequested||(this.O(`Failed to watch ${t} for changes using fs.watch() (${h}, ${d})`),this.D())}),c.on("change",(h,d)=>{if(n.token.isCancellationRequested)return;this.z&&this.R(`[raw] ["${h}"] ${d}`);let p="";if(d&&(p=d.toString(),Os&&(p=L1(p))),!(!p||h!=="change"&&h!=="rename"))if(s)if(h==="rename"){u.get(p)?.dispose();const g=setTimeout(async()=>{if(u.delete(p),p===a&&!await Le.exists(t)){this.J(o);return}if(n.token.isCancellationRequested)return;const w=await this.N(j(t,p));if(n.token.isCancellationRequested)return;let y;w?l.has(p)?y=0:(y=1,l.add(p)):(l.delete(p),y=2),this.L({resource:ne(o,p),type:y,cId:this.s.correlationId})},tp.a);u.set(p,ve(()=>clearTimeout(g)))}else{let g;l.has(p)?g=0:(g=1,l.add(p)),this.L({resource:ne(o,p),type:g,cId:this.s.correlationId})}else if(h==="rename"||p!==a){const g=setTimeout(async()=>{const w=await Le.exists(t);n.token.isCancellationRequested||(w?(this.L({resource:o,type:0,cId:this.s.correlationId},!0),r.add(await this.G(t,!1))):this.J(o))},tp.a);r.clear(),r.add(ve(()=>clearTimeout(g)))}else this.L({resource:o,type:0,cId:this.s.correlationId},!0)})}catch(o){n.token.isCancellationRequested||this.O(`Failed to watch ${t} for changes using fs.watch() (${o.toString()})`),this.D()}}J(t){this.P("Watcher shutdown because watched path got deleted"),this.L({resource:t,type:2,cId:this.s.correlationId},!0),this.f.flush(),this.D()}L(t,s=!1){this.m.token.isCancellationRequested||(this.z&&this.R(`${t.type===1?"[ADDED]":t.type===2?"[DELETED]":"[CHANGED]"} ${t.resource.fsPath}`),!s&&this.g.some(i=>i(t.resource.fsPath))?this.z&&this.R(` >> ignored (excluded) ${t.resource.fsPath}`):!s&&this.h&&this.h.length>0&&!this.h.some(i=>i(t.resource.fsPath))?this.z&&this.R(` >> ignored (not included) ${t.resource.fsPath}`):this.f.work(t))}M(t){const s=WL(t),i=[];for(const r of s){if(GL(r,this.j)){this.z&&this.R(` >> ignored (filtered) ${r.resource.fsPath}`);continue}i.push(r)}if(i.length===0)return;if(this.z)for(const r of i)this.R(` >> normalized ${r.type===1?"[ADDED]":r.type===2?"[DELETED]":"[CHANGED]"} ${r.resource.fsPath}`);this.c.work(i)?this.c.pending>0&&this.Q(`started throttling events due to large amount of file change events at once (pending: ${this.c.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.P(`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 N(t){if(it)return Le.exists(t);try{const s=ot(t);return(await Le.readdir(Lt(t))).some(n=>n===s)}catch(s){return this.Q(s),!1}}setVerboseLogging(t){this.z=t}O(t){this.m.token.isCancellationRequested||this.y?.({type:"error",message:`[File Watcher (node.js)] ${t}`})}P(t){this.m.token.isCancellationRequested||this.y?.({type:"warn",message:`[File Watcher (node.js)] ${t}`})}Q(t){!this.m.token.isCancellationRequested&&this.z&&this.y?.({type:"trace",message:`[File Watcher (node.js)] ${t}`})}R(t){!this.m.token.isCancellationRequested&&this.z&&this.Q(`${t}${typeof this.s.correlationId=="number"?` <${this.s.correlationId}> `:""}`)}dispose(){this.m.dispose(!0),super.dispose()}}}}),Z9,hO=v({"out-build/vs/platform/files/node/watcher/nodejs/nodejsWatcher.js"(){"use strict";ae(),Tm(),oO(),Q(),uO(),yi(),Z9=class extends Y9{constructor(e){super(),this.O=e,this.onDidError=z.None,this.watchers=new Set}async N(e){e=this.Z(e);const t=[],s=new Set(Array.from(this.watchers));for(const i of e){const n=this.W(i);n&&$9(n.request.excludes,i.excludes)&&$9(n.request.includes,i.includes)?s.delete(n):t.push(i)}t.length&&this.P(`Request to start watching: ${t.map(i=>this.M(i)).join(",")}`),s.size&&this.P(`Request to stop watching: ${Array.from(s).map(i=>this.M(i.request)).join(",")}`);for(const i of s)this.Y(i);for(const i of t)this.X(i)}W(e){for(const t of this.watchers)if(typeof e.correlationId=="number"||typeof t.request.correlationId=="number"){if(t.request.correlationId===e.correlationId)return t}else if(Zp(t.request.path,e.path,!it))return t}X(e){const t=new Q9(e,this.O,i=>this.a.fire(i),()=>this.c.fire(e),i=>this.b.fire(i),this.R),s={request:e,instance:t};this.watchers.add(s)}async stop(){await super.stop();for(const e of this.watchers)this.Y(e)}Y(e){this.P("stopping file watcher",e),this.watchers.delete(e),e.instance.dispose()}Z(e){const t=new Map;for(const s of e){const i=it?s.path:s.path.toLowerCase();let n=t.get(s.correlationId);n||(n=new Map,t.set(s.correlationId,n)),n.has(i)&&this.P(`ignoring a request for watching who's path is already watched: ${this.M(s)}`),n.set(i,s)}return Array.from(t.values()).map(s=>Array.from(s.values())).flat()}async setVerboseLogging(e){super.setVerboseLogging(e);for(const t of this.watchers)t.instance.setVerboseLogging(e)}P(e,t){this.R&&this.b.fire({type:"trace",message:this.bb(e,t)})}Q(e){this.b.fire({type:"warn",message:this.bb(e)})}bb(e,t){return t?`[File Watcher (node.js)] ${e} (${this.M(t.request)})`:`[File Watcher (node.js)] ${e}`}}}}),K9,fO=v({"out-build/vs/platform/files/node/watcher/nodejs/nodejsClient.js"(){"use strict";Mo(),hO(),K9=class extends j9{constructor(e,t,s){super(e,t,s),this.s()}r(e){return e.add(new Z9(void 0))}}}});import{promises as Bn}from"fs";var Fc,Eh=v({"out-build/vs/platform/files/node/diskFileSystemProvider.js"(){"use strict";Me(),as(),Ue(),ae(),yi(),H(),he(),Q(),kt(),za(),es(),pe(),et(),g9(),XL(),iO(),fO(),Fc=class Bl extends M9{static{this.M=!1}constructor(t,s){super(t,s),this.onDidChangeCapabilities=z.None,this.Q=new At(i=>wu.getComparisonKey(i)),this.Y=new Map,this.Z=new Map,this.$=new Map}get capabilities(){return this.N||(this.N=253982,it&&(this.N|=1024)),this.N}async stat(t){try{const{stat:s,symbolicLink:i}=await ds.stat(this.J(t));return{type:this.P(s,i),ctime:s.birthtime.getTime(),mtime:s.mtime.getTime(),size:s.size,permissions:s.mode&128?void 0:No.Locked}}catch(s){throw this.ib(s)}}async O(t){try{return await this.stat(t)}catch{return}}async readdir(t){try{const s=await Le.readdir(this.J(t),{withFileTypes:!0}),i=[];return await Promise.all(s.map(async n=>{try{let r;n.isSymbolicLink()?r=(await this.stat(ne(t,n.name))).type:r=this.P(n),i.push([n.name,r])}catch(r){this.a.trace(r)}})),i}catch(s){throw this.ib(s)}}P(t,s){let i;return s?.dangling?i=Ds.Unknown:t.isFile()?i=Ds.File:t.isDirectory()?i=Ds.Directory:i=Ds.Unknown,s&&(i|=Ds.SymbolicLink),i}async R(t){const s=this.J(t);this.S(`[Disk FileSystemProvider]: createResourceLock() - request to acquire resource lock (${s})`);let i;for(;i=this.Q.get(t);)this.S(`[Disk FileSystemProvider]: createResourceLock() - waiting for resource lock to be released (${s})`),await i.wait();const n=new u1;return this.Q.set(t,n),this.S(`[Disk FileSystemProvider]: createResourceLock() - new resource lock created (${s})`),ve(()=>{this.S(`[Disk FileSystemProvider]: createResourceLock() - resource lock dispose() (${s})`),this.Q.get(t)===n&&(this.S(`[Disk FileSystemProvider]: createResourceLock() - resource lock removed from resource-lock map (${s})`),this.Q.delete(t)),this.S(`[Disk FileSystemProvider]: createResourceLock() - resource lock barrier open() (${s})`),n.open()})}async readFile(t,s){let i;try{s?.atomic&&(this.S(`[Disk FileSystemProvider]: atomic read operation started (${this.J(t)})`),i=await this.R(t));const n=this.J(t);return await Bn.readFile(n)}catch(n){throw this.ib(n)}finally{i?.dispose()}}S(t){Bl.M&&this.a.trace(t)}readFileStream(t,s,i){const n=mu(r=>O.concat(r.map(o=>O.wrap(o))).buffer);return m9(this,t,n,r=>r.buffer,{...s,bufferSize:256*1024},i),n}async writeFile(t,s,i){return i?.atomic!==!1&&i?.atomic?.postfix&&await this.U(t)?this.W(t,ne(Ry(t),`${On(t)}${i.atomic.postfix}`),s,i):this.X(t,s,i)}async U(t){try{const s=this.J(t),{symbolicLink:i}=await ds.stat(s);if(i)return!1}catch{}return!0}async W(t,s,i,n){const r=new lt;try{r.add(await this.R(t)),r.add(await this.R(s)),await this.X(s,i,n,!0);try{await this.rename(s,t,{overwrite:!0})}catch(o){try{await this.delete(s,{recursive:!1,useTrash:!1,atomic:!1})}catch{}throw o}}finally{r.dispose()}}async X(t,s,i,n){let r;try{const o=this.J(t);if(!i.create||!i.overwrite){if(await Le.exists(o)){if(!i.overwrite)throw ln(m(1913,null),Y.FileExists)}else if(!i.create)throw ln(m(1914,null),Y.FileNotFound)}r=await this.open(t,{create:!0,unlock:i.unlock},n),await this.write(r,0,s,0,s.byteLength)}catch(o){throw await this.jb(t,o)}finally{typeof r=="number"&&await this.close(r)}}static{this.ab=!0}static configureFlushOnWrite(t){Bl.ab=t}async open(t,s,i){const n=this.J(t);let r;xc(s)&&!i&&(r=await this.R(t));let o;try{if(xc(s)&&s.unlock)try{const{stat:c}=await ds.stat(n);c.mode&128||await Bn.chmod(n,c.mode|128)}catch(c){c.code!=="ENOENT"&&this.a.trace(c)}let a;if(xc(s)){if(me)try{await Bn.truncate(n,0),a="r+"}catch(c){c.code!=="ENOENT"&&this.a.trace(c)}a||(a="w")}else a="r";o=await Le.open(n,a)}catch(a){throw r?.dispose(),xc(s)?await this.jb(t,a):this.ib(a)}if(this.Y.set(o,0),xc(s)&&this.$.set(o,t),r){const a=this.Z.get(o);this.S(`[Disk FileSystemProvider]: open() - storing lock for handle ${o} (${n})`),this.Z.set(o,r),a&&(this.S(`[Disk FileSystemProvider]: open() - disposing a previous lock that was still stored on same handle ${o} (${n})`),a.dispose())}return o}async close(t){const s=this.Z.get(t);try{if(this.Y.delete(t),this.$.delete(t)&&Bl.ab)try{await Le.fdatasync(t)}catch(i){Bl.configureFlushOnWrite(!1),this.a.error(i)}return await Le.close(t)}catch(i){throw this.ib(i)}finally{s&&(this.Z.get(t)===s&&(this.S(`[Disk FileSystemProvider]: close() - resource lock removed from handle-lock map ${t}`),this.Z.delete(t)),this.S(`[Disk FileSystemProvider]: close() - disposing lock for handle ${t}`),s.dispose())}}async read(t,s,i,n,r){const o=this.bb(t,s);let a=null;try{a=(await Le.read(t,i,n,r,o)).bytesRead}catch(c){throw this.ib(c)}finally{this.cb(t,o,a)}return a}bb(t,s){return s===this.Y.get(t)?null:s}cb(t,s,i){const n=this.Y.get(t);typeof n=="number"&&(typeof s=="number"||(typeof i=="number"?this.Y.set(t,n+i):this.Y.delete(t)))}async write(t,s,i,n,r){return wD(()=>this.db(t,s,i,n,r),100,3)}async db(t,s,i,n,r){const o=this.bb(t,s);let a=null;try{a=(await Le.write(t,i,n,r,o)).bytesWritten}catch(c){throw await this.jb(this.$.get(t),c)}finally{this.cb(t,o,a)}return a}async mkdir(t){try{await Bn.mkdir(this.J(t))}catch(s){throw this.ib(s)}}async delete(t,s){try{const i=this.J(t);if(s.recursive){let n;s?.atomic!==!1&&s.atomic.postfix&&(n=j(Lt(i),`${ot(i)}${s.atomic.postfix}`)),await Le.rm(i,Po.MOVE,n)}else try{await Bn.unlink(i)}catch(n){if(n.code==="EPERM"||n.code==="EISDIR"){let r=!1;try{const{stat:o,symbolicLink:a}=await ds.stat(i);r=o.isDirectory()&&!a}catch{}if(r)await Bn.rmdir(i);else throw n}else throw n}}catch(i){throw this.ib(i)}}async rename(t,s,i){const n=this.J(t),r=this.J(s);if(n!==r)try{await this.eb(t,s,"move",i.overwrite),await Le.rename(n,r)}catch(o){throw(o.code==="EINVAL"||o.code==="EBUSY"||o.code==="ENAMETOOLONG")&&(o=new Error(m(1915,null,ot(n),ot(Lt(r)),o.toString()))),this.ib(o)}}async copy(t,s,i){const n=this.J(t),r=this.J(s);if(n!==r)try{await this.eb(t,s,"copy",i.overwrite),await Le.copy(n,r,{preserveSymlinks:!0})}catch(o){throw(o.code==="EINVAL"||o.code==="EBUSY"||o.code==="ENAMETOOLONG")&&(o=new Error(m(1916,null,ot(n),ot(Lt(r)),o.toString()))),this.ib(o)}}async eb(t,s,i,n){const r=this.J(t),o=this.J(s);let a=!1;if(!!(this.capabilities&1024)||(a=Zp(r,o,!0)),a){if(i==="copy")throw ln(m(1917,null),Y.FileExists);if(i==="move")return}const l=await this.O(t);if(!l)throw ln(m(1918,null),Y.FileNotFound);const u=await this.O(s);if(u){if(!n)throw ln(m(1919,null),Y.FileExists);l.type&Ds.File&&u.type&Ds.File||await this.delete(s,{recursive:!0,useTrash:!1,atomic:!1})}}async cloneFile(t,s){return this.fb(t,s,!1)}async fb(t,s,i){const n=this.J(t),r=this.J(s),o=!!(this.capabilities&1024);if(Zp(n,r,!o))return;const a=new lt;try{a.add(await this.R(t)),a.add(await this.R(s)),i&&await Bn.mkdir(Lt(r),{recursive:!0}),await Bn.copyFile(n,r)}catch(c){if(c.code==="ENOENT"&&!i)return this.fb(t,s,!0);throw this.ib(c)}finally{a.dispose()}}u(t,s,i){return new X9(n=>t(n),n=>s(n),i)}G(t,s,i){return new K9(n=>t(n),n=>s(n),i)}ib(t){if(t instanceof Qu)return t;let s=t,i;switch(t.code){case"ENOENT":i=Y.FileNotFound;break;case"EISDIR":i=Y.FileIsADirectory;break;case"ENOTDIR":i=Y.FileNotADirectory;break;case"EEXIST":i=Y.FileExists;break;case"EPERM":case"EACCES":i=Y.NoPermissions;break;case"ERR_UNC_HOST_NOT_ALLOWED":s=`${t.message}. Please update the 'security.allowedUNCHosts' setting if you want to allow this host.`,i=Y.Unknown;break;default:i=Y.Unknown}return ln(s,i)}async jb(t,s){let i=this.ib(s);if(t&&i.code===Y.NoPermissions)try{const{stat:n}=await ds.stat(this.J(t));n.mode&128||(i=ln(s,Y.FileWriteLocked))}catch(n){this.a.trace(n)}return i}}}});function dO(e){return e.getFullYear()+"-"+String(e.getMonth()+1).padStart(2,"0")+"-"+String(e.getDate()).padStart(2,"0")+"T"+String(e.getHours()).padStart(2,"0")+":"+String(e.getMinutes()).padStart(2,"0")+":"+String(e.getSeconds()).padStart(2,"0")+"."+(e.getMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"}var e7,t7,xh,pO,mO,gO,wO=v({"out-build/vs/base/common/date.js"(){"use strict";pe(),e7=60,t7=e7*60,xh=t7*24,pO=xh*7,mO=xh*30,gO=xh*365}});function vO(e,t){return s7(e["inspect-extensions"],e["inspect-brk-extensions"],5870,t,e.debugId,e.extensionEnvironment)}function s7(e,t,s,i,n,r){const a=Number(t||e)||(i?null:s),c=a?!!t:!1;let l;if(r)try{l=JSON.parse(r)}catch{}return{port:a,break:c,debugId:n,env:l}}var Hm,Te,bO=v({"out-build/vs/platform/environment/common/environmentService.js"(){"use strict";wO(),Um(),Ie(),he(),ei(),kt(),te(),Hm=/^([^.]+\..+)[:=](.+)$/,Te=class{get appRoot(){return Lt(Ot.asFileUri("").fsPath)}get userHome(){return E.file(this.b.homeDir)}get userDataPath(){return this.b.userDataDir}get appSettingsHome(){return E.file(j(this.userDataPath,"User"))}get tmpDir(){return E.file(this.b.tmpDir)}get cacheHome(){return E.file(this.userDataPath)}get stateResource(){return ne(this.appSettingsHome,"globalStorage","storage.json")}get userRoamingDataHome(){return this.appSettingsHome.with({scheme:Z.vscodeUserData})}get userDataSyncHome(){return ne(this.appSettingsHome,"sync")}get logsHome(){if(!this.args.logsPath){const e=dO(new Date).replace(/-|:|\.\d+Z$/g,"");this.args.logsPath=j(this.userDataPath,"logs",e)}return E.file(this.args.logsPath)}get sync(){return this.args.sync}get machineSettingsResource(){return ne(E.file(j(this.userDataPath,"Machine")),"settings.json")}get workspaceStorageHome(){return ne(this.appSettingsHome,"workspaceStorage")}get localHistoryHome(){return ne(this.appSettingsHome,"History")}get keyboardLayoutResource(){return ne(this.userRoamingDataHome,"keyboardLayout.json")}get argvResource(){const e=Cs.VSCODE_PORTABLE;return e?E.file(j(e,"argv.json")):ne(this.userHome,this.c.dataFolderName,"argv.json")}get isExtensionDevelopment(){return!!this.args.extensionDevelopmentPath}get untitledWorkspacesHome(){return E.file(j(this.userDataPath,"Workspaces"))}get builtinExtensionsPath(){const e=this.args["builtin-extensions-dir"];return e?Yi(e):ti(j(Ot.asFileUri("").fsPath,"..","extensions"))}get extensionsDownloadLocation(){const e=this.args["extensions-download-dir"];return e?E.file(Yi(e)):E.file(j(this.userDataPath,"CachedExtensionVSIXs"))}get extensionsPath(){const e=this.args["extensions-dir"];if(e)return Yi(e);const t=Cs.VSCODE_EXTENSIONS;if(t)return t;const s=Cs.VSCODE_PORTABLE;return s?j(s,"extensions"):ne(this.userHome,this.c.dataFolderName,"extensions").fsPath}get extensionDevelopmentLocationURI(){const e=this.args.extensionDevelopmentPath;if(Array.isArray(e))return e.map(t=>/^[^:/?#]+?:\/\//.test(t)?E.parse(t):E.file(ti(t)))}get extensionDevelopmentKind(){return this.args.extensionDevelopmentKind?.map(e=>e==="ui"||e==="workspace"||e==="web"?e:"workspace")}get extensionTestsLocationURI(){const e=this.args.extensionTestsPath;if(e)return/^[^:/?#]+?:\/\//.test(e)?E.parse(e):E.file(ti(e))}get disableExtensions(){if(this.args["disable-extensions"])return!0;const e=this.args["disable-extension"];if(e){if(typeof e=="string")return[e];if(Array.isArray(e)&&e.length>0)return e}return!1}get debugExtensionHost(){return vO(this.args,this.isBuilt)}get debugRenderer(){return!!this.args.debugRenderer}get isBuilt(){return!Cs.VSCODE_DEV}get verbose(){return!!this.args.verbose}get logLevel(){return this.args.log?.find(e=>!Hm.test(e))}get extensionLogLevel(){const e=[];for(const t of this.args.log||[]){const s=Hm.exec(t);s&&s[1]&&s[2]&&e.push([s[1],s[2]])}return e.length?e:void 0}get serviceMachineIdResource(){return ne(E.file(this.userDataPath),"machineid")}get crashReporterId(){return this.args["crash-reporter-id"]}get crashReporterDirectory(){return this.args["crash-reporter-directory"]}get disableTelemetry(){return!!this.args["disable-telemetry"]}get disableWorkspaceTrust(){return!!this.args["disable-workspace-trust"]}get useInMemorySecretStorage(){return!!this.args["use-inmemory-secretstorage"]}get policyFile(){if(this.args["__enable-file-policy"]){const e=Cs.VSCODE_PORTABLE;return e?E.file(j(e,"policy.json")):ne(this.userHome,this.c.dataFolderName,"policy.json")}}get continueOn(){return this.args.continueOn}set continueOn(e){this.args.continueOn=e}get args(){return this.a}constructor(e,t,s){this.a=e,this.b=t,this.c=s,this.editSessionId=this.args.editSessionId}},__decorate([_e],Te.prototype,"appRoot",null),__decorate([_e],Te.prototype,"userHome",null),__decorate([_e],Te.prototype,"userDataPath",null),__decorate([_e],Te.prototype,"appSettingsHome",null),__decorate([_e],Te.prototype,"tmpDir",null),__decorate([_e],Te.prototype,"cacheHome",null),__decorate([_e],Te.prototype,"stateResource",null),__decorate([_e],Te.prototype,"userRoamingDataHome",null),__decorate([_e],Te.prototype,"userDataSyncHome",null),__decorate([_e],Te.prototype,"sync",null),__decorate([_e],Te.prototype,"machineSettingsResource",null),__decorate([_e],Te.prototype,"workspaceStorageHome",null),__decorate([_e],Te.prototype,"localHistoryHome",null),__decorate([_e],Te.prototype,"keyboardLayoutResource",null),__decorate([_e],Te.prototype,"argvResource",null),__decorate([_e],Te.prototype,"isExtensionDevelopment",null),__decorate([_e],Te.prototype,"untitledWorkspacesHome",null),__decorate([_e],Te.prototype,"builtinExtensionsPath",null),__decorate([_e],Te.prototype,"extensionsPath",null),__decorate([_e],Te.prototype,"extensionDevelopmentLocationURI",null),__decorate([_e],Te.prototype,"extensionDevelopmentKind",null),__decorate([_e],Te.prototype,"extensionTestsLocationURI",null),__decorate([_e],Te.prototype,"debugExtensionHost",null),__decorate([_e],Te.prototype,"logLevel",null),__decorate([_e],Te.prototype,"extensionLogLevel",null),__decorate([_e],Te.prototype,"serviceMachineIdResource",null),__decorate([_e],Te.prototype,"disableTelemetry",null),__decorate([_e],Te.prototype,"disableWorkspaceTrust",null),__decorate([_e],Te.prototype,"useInMemorySecretStorage",null),__decorate([_e],Te.prototype,"policyFile",null)}});import*as i7 from"os";import*as zn from"path";function yO(e,t){const s=EO(e,t),i=[s];return zn.isAbsolute(s)||i.unshift(n7),zn.resolve(...i)}function EO(e,t){process.env.VSCODE_DEV&&(t="code-oss-dev");const s=process.env.VSCODE_PORTABLE;if(s)return zn.join(s,"user-data");let i=process.env.VSCODE_APPDATA;if(i)return zn.join(i,t);const n=e["user-data-dir"];if(n)return n;switch(process.platform){case"win32":if(i=process.env.APPDATA,!i){const r=process.env.USERPROFILE;if(typeof r!="string")throw new Error("Windows: Unexpected undefined %USERPROFILE% environment variable");i=zn.join(r,"AppData","Roaming")}break;case"darwin":i=zn.join(i7.homedir(),"Library","Application Support");break;case"linux":i=process.env.XDG_CONFIG_HOME||zn.join(i7.homedir(),".config");break;default:throw new Error("Platform not supported")}return zn.join(i,t)}var n7,xO=v({"out-build/vs/platform/environment/node/userDataPath.js"(){"use strict";n7=process.env.VSCODE_CWD||process.cwd()}});import{homedir as kO,tmpdir as $O}from"os";function SO(e,t){return s7(e["inspect-ptyhost"],e["inspect-brk-ptyhost"],5877,t,e.extensionEnvironment)}var r7,o7=v({"out-build/vs/platform/environment/node/environmentService.js"(){"use strict";bO(),xO(),r7=class extends Te{constructor(e,t){super(e,{homeDir:kO(),tmpDir:$O(),userDataDir:yO(e,t.nameShort)},t)}}}}),Vm,Bc,kh,Wo=v({"out-build/vs/server/node/serverEnvironmentService.js"(){"use strict";pe(),o7(),Uu(),re(),fs(),Um(),Vm={host:{type:"string",cat:"o",args:"ip-address",description:m(2517,null)},port:{type:"string",cat:"o",args:"port | port range",description:m(2518,null)},"socket-path":{type:"string",cat:"o",args:"path",description:m(2519,null)},"server-base-path":{type:"string",cat:"o",args:"path",description:m(2520,null)},"connection-token":{type:"string",cat:"o",args:"token",deprecates:["connectionToken"],description:m(2521,null)},"connection-token-file":{type:"string",cat:"o",args:"path",deprecates:["connection-secret","connectionTokenFile"],description:m(2522,null)},"without-connection-token":{type:"boolean",cat:"o",description:m(2523,null)},"disable-websocket-compression":{type:"boolean"},"print-startup-performance":{type:"boolean"},"print-ip-address":{type:"boolean"},"accept-server-license-terms":{type:"boolean",cat:"o",description:m(2524,null)},"server-data-dir":{type:"string",cat:"o",description:m(2525,null)},"telemetry-level":{type:"string",cat:"o",args:"level",description:m(2526,null)},"user-data-dir":Ye["user-data-dir"],"enable-smoke-test-driver":Ye["enable-smoke-test-driver"],"disable-telemetry":Ye["disable-telemetry"],"disable-workspace-trust":Ye["disable-workspace-trust"],"file-watcher-polling":{type:"string",deprecates:["fileWatcherPolling"]},log:Ye.log,logsPath:Ye.logsPath,"force-disable-user-env":Ye["force-disable-user-env"],folder:{type:"string",deprecationMessage:"No longer supported. Folder needs to be provided in the browser URL or with `default-folder`."},workspace:{type:"string",deprecationMessage:"No longer supported. Workspace needs to be provided in the browser URL or with `default-workspace`."},"default-folder":{type:"string",description:m(2527,null)},"default-workspace":{type:"string",description:m(2528,null)},"enable-sync":{type:"boolean"},"github-auth":{type:"string"},"use-test-resolver":{type:"boolean"},"extensions-dir":Ye["extensions-dir"],"extensions-download-dir":Ye["extensions-download-dir"],"builtin-extensions-dir":Ye["builtin-extensions-dir"],"install-extension":Ye["install-extension"],"install-builtin-extension":Ye["install-builtin-extension"],"update-extensions":Ye["update-extensions"],"uninstall-extension":Ye["uninstall-extension"],"list-extensions":Ye["list-extensions"],"locate-extension":Ye["locate-extension"],"show-versions":Ye["show-versions"],category:Ye.category,force:Ye.force,"do-not-sync":Ye["do-not-sync"],"pre-release":Ye["pre-release"],"start-server":{type:"boolean",cat:"e",description:m(2529,null)},"enable-remote-auto-shutdown":{type:"boolean"},"remote-auto-shutdown-without-delay":{type:"boolean"},"use-host-proxy":{type:"boolean"},"without-browser-env-var":{type:"boolean"},help:Ye.help,version:Ye.version,"locate-shell-integration-path":Ye["locate-shell-integration-path"],compatibility:{type:"string"},_:Ye._},Bc=Ps,kh=class extends r7{get userRoamingDataHome(){return this.appSettingsHome}get args(){return super.args}},__decorate([_e],kh.prototype,"userRoamingDataHome",null)}}),a7,Wm,zc,c7=v({"out-build/vs/platform/extensionManagement/common/extensionManagementCLI.js"(){"use strict";Dt(),de(),Ie(),kt(),Ao(),te(),pe(),As(),cn(),$i(),a7=e=>m(1789,null,e),Wm=m(1790,null,"ms-dotnettools.csharp"),zc=class{constructor(t,s,i){this.a=t,this.b=s,this.d=i}get f(){}async listExtensions(t,s,i){let n=await this.b.getInstalled(1,i);const r=t6.map(a=>a.toLowerCase());if(s&&s!==""){if(r.indexOf(s.toLowerCase())<0){this.a.info("Invalid category please enter a valid category. To list valid categories run --category without a category specified");return}n=n.filter(a=>a.manifest.categories?a.manifest.categories.map(l=>l.toLowerCase()).indexOf(s.toLowerCase())>-1:!1)}else if(s===""){this.a.info("Possible Categories: "),r.forEach(a=>{this.a.info(a)});return}this.f&&this.a.info(m(1791,null,this.f)),n=n.sort((a,c)=>a.identifier.id.localeCompare(c.identifier.id));let o;for(const a of n)o!==a.identifier.id&&(o=a.identifier.id,this.a.info(t?`${o}@${a.manifest.version}`:o))}async installExtensions(t,s,i,n){const r=[];try{t.length&&this.a.info(this.f?m(1792,null,this.f):m(1793,null));const o=[],a=[],c=(u,h,d)=>{a.push({id:u,version:h!=="prerelease"?h:void 0,installOptions:{...i,isBuiltin:d,installPreReleaseVersion:h==="prerelease"||i.installPreReleaseVersion}})};for(const u of t)if(u instanceof E)o.push({vsix:u,installOptions:i});else{const[h,d]=X1(u);c(h,d,!1)}for(const u of s)if(u instanceof E)o.push({vsix:u,installOptions:{...i,isBuiltin:!0,donotIncludePackAndDependencies:!0}});else{const[h,d]=X1(u);c(h,d,!0)}const l=await this.b.getInstalled(void 0,i.profileLocation);if(o.length&&await Promise.all(o.map(async({vsix:u,installOptions:h})=>{try{await this.h(u,h,n,l)}catch(d){this.a.error(d),r.push(u.toString())}})),a.length){const u=await this.g(a,l,n);r.push(...u)}}catch(o){throw this.a.error(m(1794,null,Pe(o))),o}if(r.length)throw new Error(m(1795,null,r.join(", ")))}async updateExtensions(t){const s=await this.b.getInstalled(1,t),i=[];for(const a of s)a.identifier.uuid&&i.push({...a.identifier,preRelease:a.preRelease});this.a.trace(m(1796,null,i.length));const n=await this.d.getExtensions(i,{compatible:!0},Re.None),r=[];for(const a of n)for(const c of s)ye(c.identifier,a.identifier)&&qu(a.version,c.manifest.version)&&r.push({extension:a,options:{operation:3,installPreReleaseVersion:c.preRelease,profileLocation:t,isApplicationScoped:c.isApplicationScoped}});if(!r.length){this.a.info(m(1797,null));return}this.a.info(m(1798,null,r.map(a=>a.extension.identifier.id).join(", ")));const o=await this.b.installGalleryExtensions(r);for(const a of o)a.error?this.a.error(m(1799,null,a.identifier.id,Pe(a.error))):this.a.info(m(1800,null,a.identifier.id,a.local?.manifest.version))}async g(t,s,i){if(t=t.filter(({id:a,version:c})=>{const l=s.find(u=>ye(u.identifier,{id:a}));if(l){if(!i&&(!c||c==="prerelease"&&l.preRelease))return this.a.info(m(1801,null,a,l.manifest.version,a)),!1;if(c&&l.manifest.version===c)return this.a.info(m(1802,null,`${a}@${c}`)),!1}return!0}),!t.length)return[];const n=[],r=[],o=await this.j(t);if(await Promise.all(t.map(async({id:a,version:c,installOptions:l})=>{const u=o.get(a.toLowerCase());if(!u){this.a.error(`${a7(c?`${a}@${c}`:a)} ${Wm}`),n.push(a);return}try{const d=await this.d.getManifest(u,Re.None);if(d&&!this.k(d))return}catch(d){this.a.error(d.message||d.stack||d),n.push(a);return}const h=s.find(d=>ye(d.identifier,u.identifier));if(h){if(u.version===h.manifest.version){this.a.info(m(1803,null,c?`${a}@${c}`:a));return}this.a.info(m(1804,null,a,u.version))}l.isBuiltin?this.a.info(c?m(1805,null,a,c):m(1806,null,a)):this.a.info(c?m(1807,null,a,c):m(1808,null,a)),r.push({extension:u,options:{...l,installGivenVersion:!!c,isApplicationScoped:l.isApplicationScoped||h?.isApplicationScoped}})})),r.length){const a=await this.b.installGalleryExtensions(r);for(const c of a)c.error?(this.a.error(m(1809,null,c.identifier.id,Pe(c.error))),n.push(c.identifier.id)):this.a.info(m(1810,null,c.identifier.id,c.local?.manifest.version))}return n}async h(t,s,i,n){const r=await this.b.getManifest(t);if(!r)throw new Error("Invalid vsix");if(await this.l(r,i,s.profileLocation,n))try{await this.b.install(t,{...s,installGivenVersion:!0}),this.a.info(m(1811,null,On(t)))}catch(a){if(hr(a))this.a.info(m(1812,null,On(t)));else throw a}}async j(t){const s=new Map,i=t.some(o=>o.installOptions.installPreReleaseVersion),n=await this.b.getTargetPlatform(),r=[];for(const o of t)B5.test(o.id)&&r.push({...o,preRelease:i});if(r.length){const o=await this.d.getExtensions(r,{targetPlatform:n},Re.None);for(const a of o)s.set(a.identifier.id.toLowerCase(),a)}return s}k(t){return!0}async l(t,s,i,n){if(!s){const r={id:an(t.publisher,t.name)},o=n.find(a=>ye(r,a.identifier)&&qu(a.manifest.version,t.version));if(o)return this.a.info(m(1813,null,o.identifier.id,o.manifest.version,t.version)),!1}return this.k(t)}async uninstallExtensions(t,s,i){const n=async o=>{if(o instanceof E){const a=await this.b.getManifest(o);return Y1(a.publisher,a.name)}return o},r=[];for(const o of t){const a=await n(o),l=(await this.b.getInstalled(void 0,i)).filter(u=>ye(u.identifier,{id:a}));if(!l.length)throw new Error(`${this.m(a)} ${Wm}`);if(l.some(u=>u.type===0)){this.a.info(m(1814,null,a));return}if(!s&&l.some(u=>u.isBuiltin)){this.a.info(m(1815,null,a));return}this.a.info(m(1816,null,a));for(const u of l)await this.b.uninstall(u,{profileLocation:i}),r.push(u);this.f?this.a.info(m(1817,null,a,this.f)):this.a.info(m(1818,null,a))}}async locateExtension(t){const s=await this.b.getInstalled();t.forEach(i=>{s.forEach(n=>{if(n.identifier.id===i&&n.location.scheme===Z.file){this.a.info(n.location.fsPath);return}})})}m(t){return this.f?m(1819,null,t,this.f):m(1820,null,t)}},zc=__decorate([__param(1,zu),__param(2,ii)],zc)}});function PO(e){return e.tags.find(t=>t.startsWith("lp-"))?.split("lp-")[1]}var $h,Sh,qm=v({"out-build/vs/platform/languagePacks/common/languagePacks.js"(){"use strict";Dt(),H(),Q(),pe(),As(),re(),$h=ie("languagePackService"),Sh=class extends J{constructor(t){super(),this.c=t}async getAvailableLanguages(){const t=new vi;setTimeout(()=>t.cancel(),1e3);let s;try{s=await this.c.query({text:'category:"language packs"',pageSize:20},t.token)}catch{return[]}const n=s.firstPage.filter(r=>r.properties.localizedLanguages?.length&&r.tags.some(o=>o.startsWith("lp-"))).map(r=>{const o=r.properties.localizedLanguages?.[0],a=PO(r);return{...this.f(a,o,r),extensionId:r.identifier.id,galleryExtension:r}});return n.push(this.f("en","English")),n}f(t,s,i){const n=s??t;let r;if(n!==t&&(r=`(${t})`),t.toLowerCase()===ks.toLowerCase()&&(r??="",r+=m(1940,null)),i?.installCount){r??="";const o=i.installCount;let a;o>1e6?a=`${Math.floor(o/1e5)/10}M`:o>1e3?a=`${Math.floor(o/1e3)}K`:a=String(o),r+=` $(cloud-download) ${a}`}return{id:t,label:n,description:r}}},Sh=__decorate([__param(0,ii)],Sh)}});import*as IO from"fs";import{createHash as AO}from"crypto";function DO(e){if(typeof e.languageId!="string"||!Array.isArray(e.translations)||e.translations.length===0)return!1;for(const t of e.translations)if(typeof t.id!="string"||typeof t.path!="string")return!1;return!(e.languageName&&typeof e.languageName!="string"||e.localizedLanguageName&&typeof e.localizedLanguageName!="string")}var Hc,Ph,l7=v({"out-build/vs/platform/languagePacks/node/languagePacks.js"(){"use strict";Et(),Me(),H(),Ie(),he(),es(),fs(),As(),cn(),De(),qm(),te(),Hc=class extends Sh{constructor(t,s,i,n){super(i),this.h=t,this.j=n,this.g=this.B(new Ph(s,n)),this.h.registerParticipant({postInstall:async r=>this.m(r),postUninstall:async r=>this.n(r)})}async getBuiltInExtensionTranslationsUri(t,s){const n=(await this.g.getLanguagePacks())[s];if(!n){this.j.warn(`No language pack found for ${s}`);return}const r=n.translations[t];return r?E.file(r):void 0}async getInstalledLanguages(){const t=await this.g.getLanguagePacks(),s=Object.keys(t).map(i=>{const n=t[i];return{...this.f(i,n.label),extensionId:n.extensions[0].extensionIdentifier.id}});return s.push(this.f("en","English")),s.sort((i,n)=>i.label.localeCompare(n.label)),s}async m(t){t&&t.manifest&&t.manifest.contributes&&t.manifest.contributes.localizations&&t.manifest.contributes.localizations.length&&(this.j.info("Adding language packs from the extension",t.identifier.id),await this.update())}async n(t){const s=await this.g.getLanguagePacks();Object.keys(s).some(i=>s[i]&&s[i].extensions.some(n=>ye(n.extensionIdentifier,t.identifier)))&&(this.j.info("Removing language packs from the extension",t.identifier.id),await this.update())}async update(){const[t,s]=await Promise.all([this.g.getLanguagePacks(),this.h.getInstalled()]),i=await this.g.update(s);return!kn(Object.keys(t),Object.keys(i))}},Hc=__decorate([__param(0,zu),__param(1,Hs),__param(2,ii),__param(3,fe)],Hc),Ph=class extends J{constructor(t,s){super(),this.j=s,this.c={},this.f=j(t.userDataPath,"languagepacks.json"),this.g=new go}getLanguagePacks(){return this.g.size||!this.h?this.s().then(()=>this.c):Promise.resolve(this.c)}update(t){return this.s(s=>{Object.keys(s).forEach(i=>delete s[i]),this.m(s,...t)}).then(()=>this.c)}m(t,...s){for(const i of s)i&&i.manifest&&i.manifest.contributes&&i.manifest.contributes.localizations&&i.manifest.contributes.localizations.length&&this.n(t,i);Object.keys(t).forEach(i=>this.r(t[i]))}n(t,s){const i=s.identifier,n=s.manifest.contributes&&s.manifest.contributes.localizations?s.manifest.contributes.localizations:[];for(const r of n)if(s.location.scheme===Z.file&&DO(r)){let o=t[r.languageId];o||(o={hash:"",extensions:[],translations:{},label:r.localizedLanguageName??r.languageName},t[r.languageId]=o);const a=o.extensions.filter(c=>ye(c.extensionIdentifier,i))[0];a?a.version=s.manifest.version:o.extensions.push({extensionIdentifier:i,version:s.manifest.version});for(const c of r.translations)o.translations[c.id]=j(s.location.fsPath,c.path)}}r(t){if(t){const s=AO("md5");for(const i of t.extensions)s.update(i.extensionIdentifier.uuid||i.extensionIdentifier.id).update(i.version);t.hash=s.digest("hex")}}s(t=()=>null){return this.g.queue(()=>{let s=null;return IO.promises.readFile(this.f,"utf8").then(void 0,i=>i.code==="ENOENT"?Promise.resolve("{}"):Promise.reject(i)).then(i=>{try{return JSON.parse(i)}catch{return{}}}).then(i=>(s=t(i),i)).then(i=>{for(const r of Object.keys(i))i[r]||delete i[r];this.c=i,this.h=!0;const n=JSON.stringify(this.c);return this.j.debug("Writing language packs",n),Le.writeFile(this.f,n)}).then(()=>s,i=>this.j.error(i))})}},Ph=__decorate([__param(0,Hs),__param(1,fe)],Ph)}}),Ih,NO=v({"out-build/vs/platform/download/common/downloadService.js"(){"use strict";Dt(),Ie(),et(),Ir(),Ih=class{constructor(t,s){this.a=t,this.b=s}async download(t,s,i=Re.None){if(t.scheme===Z.file||t.scheme===Z.vscodeRemote){await this.b.copy(t,s);return}const n={type:"GET",url:t.toString(!0)},r=await this.a.request(n,i);if(r.res.statusCode===200)await this.b.writeFile(s,r.stream);else{const o=await Pr(r);throw new Error(`Expected 200, got back ${r.res.statusCode} instead. ${o}`)}}},Ih=__decorate([__param(0,ki),__param(1,gt)],Ih)}});function u7(e,t,s){t instanceof at||(t=new at(t,[],!!s)),h7.push([e,t])}var h7,f7,d7=v({"out-build/vs/platform/instantiation/common/extensions.js"(){"use strict";xu(),h7=[],function(e){e[e.Eager=0]="Eager",e[e.Delayed=1]="Delayed"}(f7||(f7={}))}}),p7,Ah,qo,m7,RO=v({"out-build/vs/base/common/skipList.js"(){"use strict";Ah=class{constructor(e,t,s){this.level=e,this.key=t,this.value=s,this.forward=[]}},qo=void 0,m7=class Pa{constructor(t,s=2**16){this.comparator=t,this[p7]="SkipList",this.d=0,this.f=0,this.c=Math.max(1,Math.log2(s)|0),this.e=new Ah(this.c,qo,qo)}get size(){return this.f}clear(){this.e=new Ah(this.c,qo,qo),this.f=0}has(t){return!!Pa.g(this,t,this.comparator)}get(t){return Pa.g(this,t,this.comparator)?.value}set(t,s){return Pa.h(this,t,s,this.comparator)&&(this.f+=1),this}delete(t){const s=Pa.k(this,t,this.comparator);return s&&(this.f-=1),s}forEach(t,s){let i=this.e.forward[0];for(;i;)t.call(s,i.value,i.key,this),i=i.forward[0]}[(p7=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}*entries(){let t=this.e.forward[0];for(;t;)yield[t.key,t.value],t=t.forward[0]}*keys(){let t=this.e.forward[0];for(;t;)yield t.key,t=t.forward[0]}*values(){let t=this.e.forward[0];for(;t;)yield t.value,t=t.forward[0]}toString(){let t="[SkipList]:",s=this.e.forward[0];for(;s;)t+=`node(${s.key}, ${s.value}, lvl:${s.level})`,s=s.forward[0];return t}static g(t,s,i){let n=t.e;for(let r=t.d-1;r>=0;r--)for(;n.forward[r]&&i(n.forward[r].key,s)<0;)n=n.forward[r];if(n=n.forward[0],n&&i(n.key,s)===0)return n}static h(t,s,i,n){const r=[];let o=t.e;for(let a=t.d-1;a>=0;a--){for(;o.forward[a]&&n(o.forward[a].key,s)<0;)o=o.forward[a];r[a]=o}if(o=o.forward[0],o&&n(o.key,s)===0)return o.value=i,!1;{const a=Pa.j(t);if(a>t.d){for(let c=t.d;c<a;c++)r[c]=t.e;t.d=a}o=new Ah(a,s,i);for(let c=0;c<a;c++)o.forward[c]=r[c].forward[c],r[c].forward[c]=o;return!0}}static j(t,s=.5){let i=1;for(;Math.random()<s&&i<t.c;)i+=1;return i}static k(t,s,i){const n=[];let r=t.e;for(let o=t.d-1;o>=0;o--){for(;r.forward[o]&&i(r.forward[o].key,s)<0;)r=r.forward[o];n[o]=r}if(r=r.forward[0],!r||i(r.key,s)!==0)return!1;for(let o=0;o<t.d&&n[o].forward[o]===r;o++)n[o].forward[o]=r.forward[o];for(;t.d>0&&t.e.forward[t.d-1]===qo;)t.d-=1;return!0}}}}),Gm,Go,g7=v({"out-build/vs/platform/uriIdentity/common/uriIdentityService.js"(){"use strict";ri(),d7(),et(),kt(),RO(),ae(),H(),Gm=class mv{static{this._clock=0}constructor(t){this.uri=t,this.time=mv._clock++}touch(){return this.time=mv._clock++,this}},Go=class{constructor(t){this.g=t,this.c=new lt,this.f=2**16;const s=new Map,i=n=>{let r=s.get(n.scheme);return r===void 0&&(r=t.hasProvider(n)&&!this.g.hasCapability(n,1024),s.set(n.scheme,r)),r};this.c.add(z.any(t.onDidChangeFileSystemProviderRegistrations,t.onDidChangeFileSystemProviderCapabilities)(n=>{s.delete(n.scheme)})),this.extUri=new qa(i),this.d=new m7((n,r)=>this.extUri.compare(n,r,!0),this.f)}dispose(){this.c.dispose(),this.d.clear()}asCanonicalUri(t){this.g.hasProvider(t)&&(t=Ly(t));const s=this.d.get(t);return s?s.touch().uri.with({fragment:t.fragment}):(this.d.set(t,new Gm(t)),this.h(),t)}h(){if(this.d.size<this.f)return;const t=[...this.d.entries()].sort((i,n)=>i[1].time<n[1].time?1:i[1].time>n[1].time?-1:0);Gm._clock=0,this.d.clear();const s=this.f*.5;for(let i=0;i<s;i++)this.d.set(t[i][0],t[i][1].touch())}},Go=__decorate([__param(0,gt)],Go),u7(Mt,Go,1)}});async function w7(e,t){if(!Bt.commit||!await Le.exists(Xm))return{userLocale:"en",osLocale:"en",resolvedLanguage:"en",defaultMessagesFile:Xm,locale:"en",availableLanguages:{}};const s=`${e}||${t}`;let i=Ym.get(s);return i||(i=Nv({userLocale:e,osLocale:e,commit:Bt.commit,userDataPath:t,nlsMetadataPath:Jm}),Ym.set(s,i)),i}var Jm,Xm,Ym,v7=v({"out-build/vs/server/node/remoteLanguagePacks.js"(){"use strict";Ie(),he(),Rv(),es(),Cc(),Jm=j(Ot.asFileUri("").fsPath),Xm=j(Jm,"nls.messages.json"),Ym=new Map}}),Vc,b7=v({"out-build/vs/server/node/extensionsScannerService.js"(){"use strict";kt(),te(),fs(),jo(),Rc(),et(),re(),De(),js(),ri(),Gs(),v7(),Vc=class extends lh{constructor(t,s,i,n,r,o,a,c){super(E.file(r.builtinExtensionsPath),E.file(r.extensionsPath),ne(r.userHome,".vscode-oss-dev","extensions","control.json"),t.defaultProfile,t,s,i,n,r,o,a,c),this.S=r}async f(t){const s=await w7(t,this.S.userDataPath);if(s.languagePack)try{const i=await this.w.readFile(E.file(s.languagePack.translationsConfigFile));return JSON.parse(i.value.toString())}catch{}return Object.create(null)}},Vc=__decorate([__param(0,qs),__param(1,Pi),__param(2,gt),__param(3,fe),__param(4,Hs),__param(5,Tt),__param(6,Mt),__param(7,yr)],Vc)}}),y7,E7,LO=v({"out-build/vs/platform/state/node/state.js"(){"use strict";re(),y7=ie("stateReadService"),E7=ie("stateService")}}),x7,k7,Dh,$7,OO=v({"out-build/vs/platform/state/node/stateService.js"(){"use strict";Me(),Ue(),H(),xe(),fs(),et(),De(),function(e){e[e.IMMEDIATE=0]="IMMEDIATE",e[e.DELAYED=1]="DELAYED"}(x7||(x7={})),k7=class extends J{constructor(e,t,s,i){super(),this.h=e,this.j=t,this.m=s,this.n=i,this.a=Object.create(null),this.b="",this.c=this.B(new Sr(this.j===0?0:100)),this.f=void 0,this.g=void 0}init(){return this.f||(this.f=this.r()),this.f}async r(){try{this.b=(await this.n.readFile(this.h)).value.toString(),this.a=JSON.parse(this.b)}catch(e){e.fileOperationResult!==1&&this.m.error(e)}}getItem(e,t){const s=this.a[e];return xt(s)?t:s}setItem(e,t){this.setItems([{key:e,data:t}])}setItems(e){let t=!1;for(const{key:s,data:i}of e)this.a[s]!==i&&(xt(i)?Qi(this.a[s])||(this.a[s]=void 0,t=!0):(this.a[s]=i,t=!0));t&&this.s()}removeItem(e){Qi(this.a[e])||(this.a[e]=void 0,this.s())}async s(){if(!this.g)return this.c.trigger(()=>this.t())}async t(){if(!this.f)return;await this.f;const e=JSON.stringify(this.a,null,4);if(e!==this.b)try{await this.n.writeFile(this.h,O.fromString(e),{atomic:{postfix:".vsctmp"}}),this.b=e}catch(t){this.m.error(t)}}async close(){return this.g||(this.g=this.c.trigger(()=>this.t(),0)),this.g}},Dh=class extends J{constructor(t,s,i,n){super(),this.a=this.B(new k7(s.stateResource,t,i,n))}async init(){await this.a.init()}getItem(t,s){return this.a.getItem(t,s)}},Dh=__decorate([__param(1,Ps),__param(2,fe),__param(3,gt)],Dh),$7=class extends Dh{setItem(e,t){this.a.setItem(e,t)}setItems(e){this.a.setItems(e)}removeItem(e){this.a.removeItem(e)}close(){return this.a.close()}}}}),Nh,Jo,Rh,Lh,Wc,S7=v({"out-build/vs/platform/userDataProfile/node/userDataProfile.js"(){"use strict";te(),fs(),et(),De(),LO(),ri(),Gs(),xe(),OO(),Rh=Nh=class extends sh{constructor(t,s,i,n,r){super(i,n,s,r),this.a=t,this.S=i}N(){return this.a.getItem(Nh.b,[]).map(s=>({...s,location:be(s.location)?this.u.extUri.joinPath(this.profilesHome,s.location):E.revive(s.location)}))}P(){return this.a.getItem(Nh.c,{})}R(){return this.u.extUri.joinPath(E.file(this.S.extensionsPath).with({scheme:this.profilesHome.scheme}),"extensions.json")}},Rh=Nh=__decorate([__param(0,y7),__param(1,Mt),__param(2,Hs),__param(3,gt),__param(4,fe)],Rh),Lh=Jo=class extends Rh{constructor(t,s,i,n,r){super(t,s,i,n,r),this.Y=t}O(t){t.length?this.Y.setItem(Jo.b,t.map(s=>({...s,location:this.u.extUri.basename(s.location)}))):this.Y.removeItem(Jo.b)}Q(t){t.emptyWindows||t.workspaces?this.Y.setItem(Jo.c,t):this.Y.removeItem(Jo.c)}},Lh=Jo=__decorate([__param(0,E7),__param(1,Mt),__param(2,Hs),__param(3,gt),__param(4,fe)],Lh),Wc=class extends Lh{constructor(t,s,i,n){super(new $7(0,s,n,i),t,s,i,n)}async init(){return await this.Y.init(),super.init()}},Wc=__decorate([__param(0,Mt),__param(1,Hs),__param(2,gt),__param(3,fe)],Wc)}}),qc,P7=v({"out-build/vs/platform/extensionManagement/node/extensionsProfileScannerService.js"(){"use strict";De(),Gs(),ri(),Is(),jo(),et(),fs(),te(),qc=class extends ah{constructor(t,s,i,n,r,o){super(E.file(t.extensionsPath),s,i,n,r,o)}},qc=__decorate([__param(0,Hs),__param(1,gt),__param(2,qs),__param(3,Mt),__param(4,qt),__param(5,fe)],qc)}}),Qm,I7=v({"out-build/vs/platform/log/common/logService.js"(){"use strict";H(),De(),Qm=class extends J{constructor(e,t=[]){super(),this.a=new i4([e,...t]),this.B(e.onDidChangeLogLevel(s=>this.setLevel(s)))}get onDidChangeLogLevel(){return this.a.onDidChangeLogLevel}setLevel(e){this.a.setLevel(e)}getLevel(){return this.a.getLevel()}trace(e,...t){this.a.trace(e,...t)}debug(e,...t){this.a.debug(e,...t)}info(e,...t){this.a.info(e,...t)}warn(e,...t){this.a.warn(e,...t)}error(e,...t){this.a.error(e,...t)}flush(){this.a.flush()}}}});async function CO(e,t,s,i,n){try{const r=await import("@vscode/spdlog");r.setFlushOn(hn.Trace);const o=await r.createAsyncRotatingLogger(e,t,s,i);return n?o.clearFormatters():o.setPattern("%Y-%m-%d %H:%M:%S.%e [%l] %v"),o}catch(r){console.error(r)}return null}function A7(e,t,s){switch(t){case F.Trace:e.trace(s);break;case F.Debug:e.debug(s);break;case F.Info:e.info(s);break;case F.Warning:e.warn(s);break;case F.Error:e.error(s);break;case F.Off:break;default:throw new Error(`Invalid log level ${t}`)}}function D7(e,t){switch(t){case F.Trace:e.setLevel(hn.Trace);break;case F.Debug:e.setLevel(hn.Debug);break;case F.Info:e.setLevel(hn.Info);break;case F.Warning:e.setLevel(hn.Warning);break;case F.Error:e.setLevel(hn.Error);break;case F.Off:e.setLevel(hn.Off);break;default:throw new Error(`Invalid log level ${t}`)}}var hn,N7,jO=v({"out-build/vs/platform/log/node/spdlogLog.js"(){"use strict";et(),De(),function(e){e[e.Trace=0]="Trace",e[e.Debug=1]="Debug",e[e.Info=2]="Info",e[e.Warning=3]="Warning",e[e.Error=4]="Error",e[e.Critical=5]="Critical",e[e.Off=6]="Off"}(hn||(hn={})),N7=class extends t4{constructor(e,t,s,i,n){super(),this.m=[],this.setLevel(n),this.n=this.s(e,t,s,i),this.B(this.onDidChangeLogLevel(r=>{this.r&&D7(this.r,r)}))}async s(e,t,s,i){const n=s?6:1,r=30/n*Nr.MB,o=await CO(e,t,r,n,i);if(o){this.r=o,D7(this.r,this.getLevel());for(const{level:a,message:c}of this.m)A7(this.r,a,c);this.m=[]}}g(e,t){this.r?A7(this.r,e,t):this.getLevel()<=e&&this.m.push({level:e,message:t})}flush(){this.r?this.r.flush():this.n.then(()=>this.flush())}dispose(){this.r?this.u():this.n.then(()=>this.u()),super.dispose()}u(){this.r&&(this.r.drop(),this.r=void 0)}}}}),Zm,R7=v({"out-build/vs/platform/log/node/loggerService.js"(){"use strict";Wt(),De(),jO(),Zm=class extends n4{s(e,t,s){return new N7(He(),e.fsPath,!s?.donotRotate,!!s?.donotUseFormatters,t)}}}});function _O(){return process.uncHostAllowlist}function Km(e){if(process.platform!=="win32")return;const t=_O();if(t)if(typeof e=="string")t.add(e.toLowerCase());else for(const s of TO(e))Km(s)}function TO(e){const t=new Set;if(Array.isArray(e))for(const s of e)typeof s=="string"&&t.add(s);return Array.from(t)}function L7(){process.platform==="win32"&&(process.restrictUNCAccess=!1)}var O7=v({"out-build/vs/base/node/unc.js"(){"use strict"}});function C7(e){setTimeout(()=>process.exit(e),0)}async function MO(e,t,s){if(e.help){const n=Bt.serverApplicationName+(me?".cmd":"");console.log(yN(Bt.nameLong,n,Bt.version,s,{noInputFiles:!0,noPipe:!0}));return}if(e.version){console.log(EN(Bt.version,Bt.commit));return}const i=new j7(e,t);try{await i.run(),C7(0)}catch{C7(1)}finally{i.dispose()}}var j7,UO=v({"out-build/vs/server/node/remoteExtensionHostAgentCli.js"(){"use strict";zp(),De(),xu(),V4(),$s(),Ir(),I5(),on(),Is(),As(),Y6(),u9(),$m(),p9(),Cc(),H(),w9(),Eh(),Ie(),et(),js(),Wo(),c7(),qm(),l7(),de(),te(),he(),ei(),NO(),gm(),ri(),g7(),Uu(),Q(),Rc(),b7(),Gs(),jo(),Nu(),S7(),P7(),I7(),R7(),pe(),O7(),j7=class extends J{constructor(e,t){super(),this.a=e,this.b=t,this.c()}c(){process.once("exit",()=>this.dispose())}async run(){const e=await this.f();await e.invokeFunction(async t=>{const s=t.get(hs),i=t.get(fe);me&&(s.getValue("security.restrictUNCAccess")===!1?L7():Km(s.getValue("security.allowedUNCHosts")));try{await this.g(e.createInstance(zc,new s4(i.getLevel(),!1)))}catch(n){throw i.error(n),console.error(Pe(n)),n}})}async f(){const e=new fu,t={_serviceBrand:void 0,...Bt};e.set(Tt,t);const s=new kh(this.a,t);e.set(Bc,s);const i=new Zm(a1(s),s.logsHome);e.set(Za,i);const n=new Qm(this.B(i.createLogger("remoteCLI",{name:m(2516,null)})));e.set(fe,n),n.trace(`Remote configuration data at ${this.b}`),n.trace("process arguments:",this.a);const r=this.B(new jc(n));e.set(gt,r),r.registerProvider(Z.file,this.B(new Fc(n)));const o=new Go(r);e.set(Mt,o);const a=this.B(new Wc(o,s,r,n));e.set(qs,a);const c=this.B(new D1(a.defaultProfile.settingsResource,r,new Du,n));return e.set(hs,c),await Promise.all([c.initialize(),a.init()]),e.set(ki,new at(pc)),e.set(rh,new at(Ih)),e.set(qt,j5),e.set(ii,new at(Pc)),e.set(Pi,new at(qc)),e.set(Rr,new at(Vc)),e.set(uh,new at(Lc)),e.set(dh,new at(Oc)),e.set($h,new at(Hc)),new Dm(e)}async g(e){if(this.a["list-extensions"])return e.listExtensions(!!this.a["show-versions"],this.a.category);if(this.a["install-extension"]||this.a["install-builtin-extension"]){const t={isMachineScoped:!!this.a["do-not-sync"],installPreReleaseVersion:!!this.a["pre-release"]};return e.installExtensions(this.h(this.a["install-extension"]||[]),this.h(this.a["install-builtin-extension"]||[]),t,!!this.a.force)}else{if(this.a["uninstall-extension"])return e.uninstallExtensions(this.h(this.a["uninstall-extension"]),!!this.a.force);if(this.a["update-extensions"])return e.updateExtensions();if(this.a["locate-extension"])return e.locateExtension(this.a["locate-extension"])}}h(e){return e.map(t=>/\.vsix$/i.test(t)?E.file(Xi(t)?t:j(bi(),t)):t)}}}});import{constants as FO,promises as BO}from"fs";import{createInterface as zO}from"readline";async function HO(e){if(Os||me)return;let t;for(const s of["/etc/os-release","/usr/lib/os-release","/etc/lsb-release"])try{t=await BO.open(s,FO.R_OK);break}catch{}if(!t){e("Unable to retrieve release information from known identifier paths.");return}try{const s=new Set(["ID","DISTRIB_ID","ID_LIKE","VERSION_ID","DISTRIB_RELEASE"]),i={id:"unknown"};for await(const n of zO({input:t.createReadStream(),crlfDelay:1/0})){if(!n.includes("="))continue;const r=n.split("=")[0].toUpperCase().trim();if(s.has(r)){const o=n.split("=")[1].replace(/"/g,"").toLowerCase().trim();r==="ID"||r==="DISTRIB_ID"?i.id=o:r==="ID_LIKE"?i.id_like=o:(r==="VERSION_ID"||r==="DISTRIB_RELEASE")&&(i.version_id=o)}}return i}catch(s){e(s)}}var VO=v({"out-build/vs/base/node/osReleaseInfo.js"(){"use strict";Q()}});import*as WO from"net";function qO(e,t,s,i=1){let n=!1;return new Promise(r=>{const o=setTimeout(()=>{if(!n)return n=!0,r(0)},s);eg(e,t,i,a=>{if(!n)return n=!0,clearTimeout(o),r(a)})})}function eg(e,t,s,i){if(t===0)return i(0);const n=new WO.Socket;n.once("connect",()=>(_7(n),eg(e+s,t-1,s,i))),n.once("data",()=>{}),n.once("error",r=>(_7(n),r.code!=="ECONNREFUSED"?eg(e+s,t-1,s,i):i(e))),n.connect(e,"127.0.0.1")}function _7(e){try{e.removeAllListeners("connect"),e.removeAllListeners("error"),e.end(),e.destroy(),e.unref()}catch(t){console.error(t)}}var GO=v({"out-build/vs/base/node/ports.js"(){"use strict"}});function Hn(){return Oh||(Oh=O.alloc(0)),Oh}function T7(e){switch(e){case 0:return"None";case 1:return"Regular";case 2:return"Control";case 3:return"Ack";case 5:return"Disconnect";case 6:return"ReplayRequest";case 7:return"PauseWriting";case 8:return"ResumeWriting";case 9:return"KeepAlive"}}var M7,tg,U7,Oh,sg,F7,B7,ai,ig,ng,Xo,z7,H7,V7,W7,q7=v({"out-build/vs/base/parts/ipc/common/ipc.net.js"(){"use strict";Ue(),ae(),H(),Ho(),function(e){e.Created="created",e.Read="read",e.Write="write",e.Open="open",e.Error="error",e.Close="close",e.BrowserWebSocketBlobReceived="browserWebSocketBlobReceived",e.NodeEndReceived="nodeEndReceived",e.NodeEndSent="nodeEndSent",e.NodeDrainBegin="nodeDrainBegin",e.NodeDrainEnd="nodeDrainEnd",e.zlibInflateError="zlibInflateError",e.zlibInflateData="zlibInflateData",e.zlibInflateInitialWrite="zlibInflateInitialWrite",e.zlibInflateInitialFlushFired="zlibInflateInitialFlushFired",e.zlibInflateWrite="zlibInflateWrite",e.zlibInflateFlushFired="zlibInflateFlushFired",e.zlibDeflateError="zlibDeflateError",e.zlibDeflateData="zlibDeflateData",e.zlibDeflateWrite="zlibDeflateWrite",e.zlibDeflateFlushFired="zlibDeflateFlushFired",e.WebSocketNodeSocketWrite="webSocketNodeSocketWrite",e.WebSocketNodeSocketPeekedHeader="webSocketNodeSocketPeekedHeader",e.WebSocketNodeSocketReadHeader="webSocketNodeSocketReadHeader",e.WebSocketNodeSocketReadData="webSocketNodeSocketReadData",e.WebSocketNodeSocketUnmaskedData="webSocketNodeSocketUnmaskedData",e.WebSocketNodeSocketDrainBegin="webSocketNodeSocketDrainBegin",e.WebSocketNodeSocketDrainEnd="webSocketNodeSocketDrainEnd",e.ProtocolHeaderRead="protocolHeaderRead",e.ProtocolMessageRead="protocolMessageRead",e.ProtocolHeaderWrite="protocolHeaderWrite",e.ProtocolMessageWrite="protocolMessageWrite",e.ProtocolWrite="protocolWrite"}(M7||(M7={})),function(e){e.enableDiagnostics=!1,e.records=[];const t=new WeakMap;let s=0;function i(r,o){if(!t.has(r)){const a=String(++s);t.set(r,a)}return t.get(r)}function n(r,o,a,c){if(!e.enableDiagnostics)return;const l=i(r,o);if(c instanceof O||c instanceof Uint8Array||c instanceof ArrayBuffer||ArrayBuffer.isView(c)){const u=O.alloc(c.byteLength);u.set(c),e.records.push({timestamp:Date.now(),id:l,label:o,type:a,buff:u})}else e.records.push({timestamp:Date.now(),id:l,label:o,type:a,data:c})}e.traceSocketEvent=n}(tg||(tg={})),function(e){e[e.NodeSocketCloseEvent=0]="NodeSocketCloseEvent",e[e.WebSocketCloseEvent=1]="WebSocketCloseEvent"}(U7||(U7={})),Oh=null,sg=class{get byteLength(){return this.b}constructor(){this.a=[],this.b=0}acceptChunk(e){this.a.push(e),this.b+=e.byteLength}read(e){return this.c(e,!0)}peek(e){return this.c(e,!1)}c(e,t){if(e===0)return Hn();if(e>this.b)throw new Error("Cannot read so many bytes!");if(this.a[0].byteLength===e){const r=this.a[0];return t&&(this.a.shift(),this.b-=e),r}if(this.a[0].byteLength>e){const r=this.a[0].slice(0,e);return t&&(this.a[0]=this.a[0].slice(e),this.b-=e),r}const s=O.alloc(e);let i=0,n=0;for(;e>0;){const r=this.a[n];if(r.byteLength>e){const o=r.slice(0,e);s.set(o,i),i+=e,t&&(this.a[n]=r.slice(e),this.b-=e),e-=e}else s.set(r,i),i+=r.byteLength,t?(this.a.shift(),this.b-=r.byteLength):n++,e-=r.byteLength}return s}},function(e){e[e.None=0]="None",e[e.Regular=1]="Regular",e[e.Control=2]="Control",e[e.Ack=3]="Ack",e[e.Disconnect=5]="Disconnect",e[e.ReplayRequest=6]="ReplayRequest",e[e.Pause=7]="Pause",e[e.Resume=8]="Resume",e[e.KeepAlive=9]="KeepAlive"}(F7||(F7={})),function(e){e[e.HeaderLength=13]="HeaderLength",e[e.AcknowledgeTime=2e3]="AcknowledgeTime",e[e.TimeoutTime=2e4]="TimeoutTime",e[e.ReconnectionGraceTime=108e5]="ReconnectionGraceTime",e[e.ReconnectionShortGraceTime=3e5]="ReconnectionShortGraceTime",e[e.KeepAliveSendTime=5e3]="KeepAliveSendTime"}(B7||(B7={})),ai=class{constructor(e,t,s,i){this.type=e,this.id=t,this.ack=s,this.data=i,this.writtenTime=0}get size(){return this.data.byteLength}},ig=class extends J{constructor(e){super(),this.f=this.B(new D),this.onMessage=this.f.event,this.g={readHead:!0,readLen:13,messageType:0,id:0,ack:0},this.a=e,this.b=!1,this.c=new sg,this.B(this.a.onData(t=>this.acceptChunk(t))),this.lastReadTime=Date.now()}acceptChunk(e){if(!(!e||e.byteLength===0))for(this.lastReadTime=Date.now(),this.c.acceptChunk(e);this.c.byteLength>=this.g.readLen;){const t=this.c.read(this.g.readLen);if(this.g.readHead)this.g.readHead=!1,this.g.readLen=t.readUInt32BE(9),this.g.messageType=t.readUInt8(0),this.g.id=t.readUInt32BE(1),this.g.ack=t.readUInt32BE(5),this.a.traceSocketEvent("protocolHeaderRead",{messageType:T7(this.g.messageType),id:this.g.id,ack:this.g.ack,messageSize:this.g.readLen});else{const s=this.g.messageType,i=this.g.id,n=this.g.ack;if(this.g.readHead=!0,this.g.readLen=13,this.g.messageType=0,this.g.id=0,this.g.ack=0,this.a.traceSocketEvent("protocolMessageRead",t),this.f.fire(new ai(s,i,n,t)),this.b)break}}}readEntireBuffer(){return this.c.read(this.c.byteLength)}dispose(){this.b=!0,super.dispose()}},ng=class{constructor(e){this.k=null,this.a=!1,this.b=!1,this.c=e,this.d=[],this.f=0,this.lastWriteTime=0}dispose(){try{this.flush()}catch{}this.a=!0}drain(){return this.flush(),this.c.drain()}flush(){this.m()}pause(){this.b=!0}resume(){this.b=!1,this.l()}write(e){if(this.a)return;e.writtenTime=Date.now(),this.lastWriteTime=Date.now();const t=O.alloc(13);t.writeUInt8(e.type,0),t.writeUInt32BE(e.id,1),t.writeUInt32BE(e.ack,5),t.writeUInt32BE(e.data.byteLength,9),this.c.traceSocketEvent("protocolHeaderWrite",{messageType:T7(e.type),id:e.id,ack:e.ack,messageSize:e.data.byteLength}),this.c.traceSocketEvent("protocolMessageWrite",e.data),this.j(t,e.data)}g(e,t){const s=this.f===0;return this.d.push(e,t),this.f+=e.byteLength+t.byteLength,s}h(){const e=O.concat(this.d,this.f);return this.d.length=0,this.f=0,e}j(e,t){this.g(e,t)&&this.l()}l(){this.k||(this.k=setTimeout(()=>{this.k=null,this.m()}))}m(){if(this.f===0||this.b)return;const e=this.h();this.c.traceSocketEvent("protocolWrite",{byteLength:e.byteLength}),this.c.write(e)}},Xo=class{constructor(){this.b=!1,this.c=!1,this.d=[],this.a=new D({onWillAddFirstListener:()=>{this.b=!0,queueMicrotask(()=>this.f())},onDidRemoveLastListener:()=>{this.b=!1}}),this.event=this.a.event}f(){if(!this.c){for(this.c=!0;this.b&&this.d.length>0;)this.a.fire(this.d.shift());this.c=!1}}fire(e){this.b?this.d.length>0?this.d.push(e):this.a.fire(e):this.d.push(e)}flushBuffer(){this.d=[]}},z7=class{constructor(e){this.data=e,this.next=null}},H7=class{constructor(){this.a=null,this.b=null}length(){let e=0,t=this.a;for(;t;)t=t.next,e++;return e}peek(){return this.a?this.a.data:null}toArray(){const e=[];let t=0,s=this.a;for(;s;)e[t++]=s.data,s=s.next;return e}pop(){if(this.a){if(this.a===this.b){this.a=null,this.b=null;return}this.a=this.a.next}}push(e){const t=new z7(e);if(!this.a){this.a=t,this.b=t;return}this.b.next=t,this.b=t}},V7=class Ui{static{this.a=10}static{this.b=null}static getInstance(){return Ui.b||(Ui.b=new Ui),Ui.b}constructor(){this.c=[];const t=Date.now();for(let s=0;s<Ui.a;s++)this.c[s]=t-1e3*s;setInterval(()=>{for(let s=Ui.a;s>=1;s--)this.c[s]=this.c[s-1];this.c[0]=Date.now()},1e3)}d(){const t=Date.now(),s=(1+Ui.a)*1e3;let i=0;for(let n=0;n<Ui.a;n++)t-this.c[n]<=s&&i++;return 1-i/Ui.a}hasHighLoad(){return this.d()>=.5}},W7=class{get unacknowledgedCount(){return this.d-this.f}constructor(e){this.v=new Xo,this.onControlMessage=this.v.event,this.w=new Xo,this.onMessage=this.w.event,this.x=new Xo,this.onDidDispose=this.x.event,this.y=new Xo,this.onSocketClose=this.y.event,this.z=new Xo,this.onSocketTimeout=this.z.event,this.t=e.loadEstimator??V7.getInstance(),this.u=e.sendKeepAlive??!0,this.a=!1,this.c=new H7,this.d=0,this.f=0,this.g=null,this.h=0,this.j=0,this.k=0,this.l=null,this.n=0,this.o=Date.now(),this.s=new lt,this.p=e.socket,this.q=this.s.add(new ng(this.p)),this.r=this.s.add(new ig(this.p)),this.s.add(this.r.onMessage(t=>this.A(t))),this.s.add(this.p.onClose(t=>this.y.fire(t))),e.initialChunk&&this.r.acceptChunk(e.initialChunk),this.u?this.m=setInterval(()=>{this.E()},5e3):this.m=null}dispose(){this.g&&(clearTimeout(this.g),this.g=null),this.l&&(clearTimeout(this.l),this.l=null),this.m&&(clearInterval(this.m),this.m=null),this.s.dispose()}drain(){return this.q.drain()}sendDisconnect(){if(!this.b){this.b=!0;const e=new ai(5,0,0,Hn());this.q.write(e),this.q.flush()}}sendPause(){const e=new ai(7,0,0,Hn());this.q.write(e)}sendResume(){const e=new ai(8,0,0,Hn());this.q.write(e)}pauseSocketWriting(){this.q.pause()}getSocket(){return this.p}getMillisSinceLastIncomingData(){return Date.now()-this.r.lastReadTime}beginAcceptReconnection(e,t){this.a=!0,this.s.dispose(),this.s=new lt,this.v.flushBuffer(),this.y.flushBuffer(),this.z.flushBuffer(),this.p.dispose(),this.n=0,this.o=Date.now(),this.p=e,this.q=this.s.add(new ng(this.p)),this.r=this.s.add(new ig(this.p)),this.s.add(this.r.onMessage(s=>this.A(s))),this.s.add(this.p.onClose(s=>this.y.fire(s))),this.r.acceptChunk(t)}endAcceptReconnection(){this.a=!1,this.j=this.h;const e=new ai(3,0,this.j,Hn());this.q.write(e);const t=this.c.toArray();for(let s=0,i=t.length;s<i;s++)this.q.write(t[s]);this.C()}acceptDisconnect(){this.x.fire()}A(e){if(e.ack>this.f){this.f=e.ack;do{const t=this.c.peek();if(t&&t.id<=e.ack)this.c.pop();else break}while(!0)}switch(e.type){case 0:break;case 1:{if(e.id>this.h)if(e.id!==this.h+1){const t=Date.now();t-this.n>1e4&&(this.n=t,this.q.write(new ai(6,0,0,Hn())))}else this.h=e.id,this.k=Date.now(),this.B(),this.w.fire(e.data);break}case 2:{this.v.fire(e.data);break}case 3:break;case 5:{this.x.fire();break}case 6:{const t=this.c.toArray();for(let s=0,i=t.length;s<i;s++)this.q.write(t[s]);this.C();break}case 7:{this.q.pause();break}case 8:{this.q.resume();break}case 9:break}}readEntireBuffer(){return this.r.readEntireBuffer()}flush(){this.q.flush()}send(e){const t=++this.d;this.j=this.h;const s=new ai(1,t,this.j,e);this.c.push(s),this.a||(this.q.write(s),this.C())}sendControl(e){const t=new ai(2,0,0,e);this.q.write(t)}B(){if(this.h<=this.j||this.l)return;const e=Date.now()-this.k;if(e>=2e3){this.D();return}this.l=setTimeout(()=>{this.l=null,this.B()},2e3-e+5)}C(){if(this.d<=this.f||this.g||this.a)return;const e=this.c.peek(),t=Date.now()-e.writtenTime,s=Date.now()-this.r.lastReadTime,i=Date.now()-this.o;if(t>=2e4&&s>=2e4&&i>=2e4&&!this.t.hasHighLoad()){this.o=Date.now(),this.z.fire({unacknowledgedMsgCount:this.c.length(),timeSinceOldestUnacknowledgedMsg:t,timeSinceLastReceivedSomeData:s});return}const n=Math.max(2e4-t,2e4-s,2e4-i,500);this.g=setTimeout(()=>{this.g=null,this.C()},n)}D(){if(this.h<=this.j)return;this.j=this.h;const e=new ai(3,0,this.j,Hn());this.q.write(e)}E(){this.j=this.h;const e=new ai(9,0,this.j,Hn());this.q.write(e)}}}});import"crypto";import"net";import{tmpdir as JO}from"os";import{createDeflateRaw as XO,createInflateRaw as YO}from"zlib";function QO(e,t){if(t===0)return;const s=e.byteLength>>>2;for(let c=0;c<s;c++){const l=e.readUInt32BE(c*4);e.writeUInt32BE(l^t,c*4)}const i=s*4,n=e.byteLength-i,r=t>>>24&255,o=t>>>16&255,a=t>>>8&255;n>=1&&e.writeUInt8(e.readUInt8(i)^r,i),n>=2&&e.writeUInt8(e.readUInt8(i+1)^o,i+1),n>=3&&e.writeUInt8(e.readUInt8(i+2)^a,i+2)}function rg(){const e=He();if(process.platform==="win32")return`\\\\.\\pipe\\vscode-ipc-${e}-sock`;const t=process.platform!=="darwin"&&og?og:JO(),s=j(t,`vscode-ipc-${e}.sock`);return ZO(s),s}function ZO(e){const t=e8[so];typeof t=="number"&&e.length>=t&&console.warn(`WARNING: IPC handle "${e}" is longer than ${t} chars, try a shorter --user-data-dir`)}var G7,Yo,J7,X7,Y7,Q7,Z7,K7,og,e8,Ch=v({"out-build/vs/base/parts/ipc/node/ipc.net.js"(){"use strict";Ue(),de(),ae(),H(),he(),Q(),Wt(),Ho(),q7(),G7=3e4,Yo=class{traceSocketEvent(e,t){tg.traceSocketEvent(this.socket,this.debugLabel,e,t)}constructor(e,t=""){this.f=!0,this.debugLabel=t,this.socket=e,this.traceSocketEvent("created",{type:"NodeSocket"}),this.a=i=>{if(this.traceSocketEvent("error",{code:i?.code,message:i?.message}),i){if(i.code==="EPIPE")return;Vt(i)}},this.socket.on("error",this.a);let s;this.b=i=>{this.traceSocketEvent("close",{hadError:i}),this.f=!1,s&&clearTimeout(s)},this.socket.on("close",this.b),this.d=()=>{this.traceSocketEvent("nodeEndReceived"),this.f=!1,s=setTimeout(()=>e.destroy(),G7)},this.socket.on("end",this.d)}dispose(){this.socket.off("error",this.a),this.socket.off("close",this.b),this.socket.off("end",this.d),this.socket.destroy()}onData(e){const t=s=>{this.traceSocketEvent("read",s),e(O.wrap(s))};return this.socket.on("data",t),{dispose:()=>this.socket.off("data",t)}}onClose(e){const t=s=>{e({type:0,hadError:s,error:void 0})};return this.socket.on("close",t),{dispose:()=>this.socket.off("close",t)}}onEnd(e){const t=()=>{e()};return this.socket.on("end",t),{dispose:()=>this.socket.off("end",t)}}write(e){if(!(this.socket.destroyed||!this.f))try{this.traceSocketEvent("write",e),this.socket.write(e.buffer,t=>{if(t){if(t.code==="EPIPE")return;Vt(t)}})}catch(t){if(t.code==="EPIPE")return;Vt(t)}}end(){this.traceSocketEvent("nodeEndSent"),this.socket.end()}drain(){return this.traceSocketEvent("nodeDrainBegin"),new Promise((e,t)=>{if(this.socket.bufferSize===0){this.traceSocketEvent("nodeDrainEnd"),e();return}const s=()=>{this.socket.off("close",s),this.socket.off("end",s),this.socket.off("error",s),this.socket.off("timeout",s),this.socket.off("drain",s),this.traceSocketEvent("nodeDrainEnd"),e()};this.socket.on("close",s),this.socket.on("end",s),this.socket.on("error",s),this.socket.on("timeout",s),this.socket.on("drain",s)})}},function(e){e[e.MinHeaderByteSize=2]="MinHeaderByteSize",e[e.MaxWebSocketMessageLength=262144]="MaxWebSocketMessageLength"}(J7||(J7={})),function(e){e[e.PeekHeader=1]="PeekHeader",e[e.ReadHeader=2]="ReadHeader",e[e.ReadBody=3]="ReadBody",e[e.Fin=4]="Fin"}(X7||(X7={})),Y7=class extends J{get permessageDeflate(){return this.a.permessageDeflate}get recordedInflateBytes(){return this.a.recordedInflateBytes}traceSocketEvent(e,t){this.socket.traceSocketEvent(e,t)}constructor(e,t,s,i){super(),this.f=this.B(new D),this.g=this.B(new D),this.h=!1,this.j={state:1,readLen:2,fin:0,compressed:!1,firstFrameOfMessage:!0,mask:0,opcode:0},this.socket=e,this.traceSocketEvent("created",{type:"WebSocketNodeSocket",permessageDeflate:t,inflateBytesLength:s?.byteLength||0,recordInflateBytes:i}),this.a=this.B(new Q7(this,t,s,i,this.f,(n,r)=>this.m(n,r))),this.B(this.a.onError(n=>{console.error(n),Vt(n),this.g.fire({type:0,hadError:!0,error:n})})),this.b=new sg,this.B(this.socket.onData(n=>this.n(n))),this.B(this.socket.onClose(async n=>{this.a.isProcessingReadQueue()&&await z.toPromise(this.a.onDidFinishProcessingReadQueue),this.g.fire(n)}))}dispose(){this.a.isProcessingWriteQueue()?this.B(this.a.onDidFinishProcessingWriteQueue(()=>{this.dispose()})):(this.socket.dispose(),super.dispose())}onData(e){return this.f.event(e)}onClose(e){return this.g.event(e)}onEnd(e){return this.socket.onEnd(e)}write(e){let t=0;for(;t<e.byteLength;)this.a.writeMessage(e.slice(t,Math.min(t+262144,e.byteLength)),{compressed:!0,opcode:2}),t+=262144}m(e,{compressed:t,opcode:s}){if(this.h)return;this.traceSocketEvent("webSocketNodeSocketWrite",e);let i=2;e.byteLength<126?i+=0:e.byteLength<2**16?i+=2:i+=8;const n=O.alloc(i),r=t?64:0,o=s&15;if(n.writeUInt8(128|r|o,0),e.byteLength<126)n.writeUInt8(e.byteLength,1);else if(e.byteLength<2**16){n.writeUInt8(126,1);let a=1;n.writeUInt8(e.byteLength>>>8&255,++a),n.writeUInt8(e.byteLength>>>0&255,++a)}else{n.writeUInt8(127,1);let a=1;n.writeUInt8(0,++a),n.writeUInt8(0,++a),n.writeUInt8(0,++a),n.writeUInt8(0,++a),n.writeUInt8(e.byteLength>>>24&255,++a),n.writeUInt8(e.byteLength>>>16&255,++a),n.writeUInt8(e.byteLength>>>8&255,++a),n.writeUInt8(e.byteLength>>>0&255,++a)}this.socket.write(O.concat([n,e]))}end(){this.h=!0,this.socket.end()}n(e){if(e.byteLength!==0){for(this.b.acceptChunk(e);this.b.byteLength>=this.j.readLen;)if(this.j.state===1){const t=this.b.peek(this.j.readLen),s=t.readUInt8(0),i=(s&128)>>>7,n=(s&64)>>>6,r=s&15,o=t.readUInt8(1),a=(o&128)>>>7,c=o&127;this.j.state=2,this.j.readLen=2+(a?4:0)+(c===126?2:0)+(c===127?8:0),this.j.fin=i,this.j.firstFrameOfMessage&&(this.j.compressed=!!n),this.j.firstFrameOfMessage=!!i,this.j.mask=0,this.j.opcode=r,this.traceSocketEvent("webSocketNodeSocketPeekedHeader",{headerSize:this.j.readLen,compressed:this.j.compressed,fin:this.j.fin,opcode:this.j.opcode})}else if(this.j.state===2){const t=this.b.read(this.j.readLen),s=t.readUInt8(1),i=(s&128)>>>7;let n=s&127,r=1;n===126?n=t.readUInt8(++r)*2**8+t.readUInt8(++r):n===127&&(n=t.readUInt8(++r)*0+t.readUInt8(++r)*0+t.readUInt8(++r)*0+t.readUInt8(++r)*0+t.readUInt8(++r)*2**24+t.readUInt8(++r)*2**16+t.readUInt8(++r)*2**8+t.readUInt8(++r));let o=0;i&&(o=t.readUInt8(++r)*2**24+t.readUInt8(++r)*2**16+t.readUInt8(++r)*2**8+t.readUInt8(++r)),this.j.state=3,this.j.readLen=n,this.j.mask=o,this.traceSocketEvent("webSocketNodeSocketPeekedHeader",{bodySize:this.j.readLen,compressed:this.j.compressed,fin:this.j.fin,mask:this.j.mask,opcode:this.j.opcode})}else if(this.j.state===3){const t=this.b.read(this.j.readLen);this.traceSocketEvent("webSocketNodeSocketReadData",t),QO(t,this.j.mask),this.traceSocketEvent("webSocketNodeSocketUnmaskedData",t),this.j.state=1,this.j.readLen=2,this.j.mask=0,this.j.opcode<=2?this.a.acceptFrame(t,this.j.compressed,!!this.j.fin):this.j.opcode===9&&this.a.writeMessage(t,{compressed:!1,opcode:10})}}}async drain(){this.traceSocketEvent("webSocketNodeSocketDrainBegin"),this.a.isProcessingWriteQueue()&&await z.toPromise(this.a.onDidFinishProcessingWriteQueue),await this.socket.drain(),this.traceSocketEvent("webSocketNodeSocketDrainEnd")}},Q7=class extends J{get permessageDeflate(){return!!(this.b&&this.f)}get recordedInflateBytes(){return this.b?this.b.recordedInflateBytes:O.alloc(0)}constructor(e,t,s,i,n,r){super(),this.n=e,this.r=n,this.s=r,this.a=this.B(new D),this.onError=this.a.event,this.g=[],this.h=[],this.j=this.B(new D),this.onDidFinishProcessingReadQueue=this.j.event,this.m=this.B(new D),this.onDidFinishProcessingWriteQueue=this.m.event,this.t=!1,this.y=!1,t?(this.b=this.B(new Z7(this.n,i,s,{windowBits:15})),this.f=this.B(new K7(this.n,{windowBits:15})),this.B(this.b.onError(o=>this.a.fire(o))),this.B(this.f.onError(o=>this.a.fire(o)))):(this.b=null,this.f=null)}writeMessage(e,t){this.g.push({data:e,options:t}),this.u()}async u(){if(!this.t){for(this.t=!0;this.g.length>0;){const{data:e,options:t}=this.g.shift();if(this.f&&t.compressed){const s=await this.w(this.f,e);this.s(s,t)}else this.s(e,{...t,compressed:!1})}this.t=!1,this.m.fire()}}isProcessingWriteQueue(){return this.t}w(e,t){return new Promise((s,i)=>{e.write(t),e.flush(n=>s(n))})}acceptFrame(e,t,s){this.h.push({data:e,isCompressed:t,isLastFrameOfMessage:s}),this.z()}async z(){if(!this.y){for(this.y=!0;this.h.length>0;){const e=this.h.shift();if(this.b&&e.isCompressed){const t=await this.C(this.b,e.data,e.isLastFrameOfMessage);this.r.fire(t)}else this.r.fire(e.data)}this.y=!1,this.j.fire()}}isProcessingReadQueue(){return this.y}C(e,t,s){return new Promise((i,n)=>{e.write(t),s&&e.write(O.fromByteArray([0,0,255,255])),e.flush(r=>i(r))})}},Z7=class extends J{get recordedInflateBytes(){return this.j?O.concat(this.f):O.alloc(0)}constructor(e,t,s,i){super(),this.h=e,this.j=t,this.a=this.B(new D),this.onError=this.a.event,this.f=[],this.g=[],this.b=YO(i),this.b.on("error",n=>{this.h.traceSocketEvent("zlibInflateError",{message:n?.message,code:n?.code}),this.a.fire(n)}),this.b.on("data",n=>{this.h.traceSocketEvent("zlibInflateData",n),this.g.push(O.wrap(n))}),s&&(this.h.traceSocketEvent("zlibInflateInitialWrite",s.buffer),this.b.write(s.buffer),this.b.flush(()=>{this.h.traceSocketEvent("zlibInflateInitialFlushFired"),this.g.length=0}))}write(e){this.j&&this.f.push(e.clone()),this.h.traceSocketEvent("zlibInflateWrite",e),this.b.write(e.buffer)}flush(e){this.b.flush(()=>{this.h.traceSocketEvent("zlibInflateFlushFired");const t=O.concat(this.g);this.g.length=0,e(t)})}},K7=class extends J{constructor(e,t){super(),this.g=e,this.a=this.B(new D),this.onError=this.a.event,this.f=[],this.b=XO({windowBits:15}),this.b.on("error",s=>{this.g.traceSocketEvent("zlibDeflateError",{message:s?.message,code:s?.code}),this.a.fire(s)}),this.b.on("data",s=>{this.g.traceSocketEvent("zlibDeflateData",s),this.f.push(O.wrap(s))})}write(e){this.g.traceSocketEvent("zlibDeflateWrite",e.buffer),this.b.write(e.buffer)}flush(e){this.b.flush(2,()=>{this.g.traceSocketEvent("zlibDeflateFlushFired");let t=O.concat(this.f);this.f.length=0,t=t.slice(0,t.byteLength-4),e(t)})}},og=process.env.XDG_RUNTIME_DIR,e8={2:107,1:103}}}),ag,t8,s8=v({"out-build/vs/server/node/extensionHostStatusService.js"(){"use strict";re(),ag=ie("extensionHostStatusService"),t8=class{constructor(){this.a=new Map}setExitInfo(e,t){this.a.set(e,t)}getExitInfo(e){return this.a.get(e)||null}}}});function KO(e){delete e[cg.ENV_KEY],delete e[lg.ENV_KEY],delete e[r8.ENV_KEY]}function i8(e,t){KO(t),e.serialize(t)}var n8,cg,lg,r8,eC=v({"out-build/vs/workbench/services/extensions/common/extensionHostEnv.js"(){"use strict";(function(e){e[e.IPC=1]="IPC",e[e.Socket=2]="Socket",e[e.MessagePort=3]="MessagePort"})(n8||(n8={})),cg=class mI{static{this.ENV_KEY="VSCODE_EXTHOST_IPC_HOOK"}constructor(t){this.pipeName=t,this.type=1}serialize(t){t[mI.ENV_KEY]=this.pipeName}},lg=class gI{constructor(){this.type=2}static{this.ENV_KEY="VSCODE_EXTHOST_WILL_SEND_SOCKET"}serialize(t){t[gI.ENV_KEY]="1"}},r8=class wI{constructor(){this.type=3}static{this.ENV_KEY="VSCODE_WILL_SEND_MESSAGE_PORT"}serialize(t){t[wI.ENV_KEY]="1"}}}});import*as tC from"child_process";import*as sC from"net";async function o8(e={},t,s,i,n,r){const o=await w7(s,i.userDataPath);let a={};if(t)try{a=await T1(r,n,i.args,process.env)}catch(p){n.error("ExtensionHostConnection#buildUserEnvironment resolving shell environment failed",p)}const l={...process.env,...a,VSCODE_ESM_ENTRYPOINT:"vs/workbench/api/node/extensionHostProcess",VSCODE_HANDLES_UNCAUGHT_ERRORS:"true",VSCODE_NLS_CONFIG:JSON.stringify(o),...e},u=i.isBuilt?j(i.appRoot,"bin"):j(i.appRoot,"resources","server","bin-dev"),h=j(u,"remote-cli");let d=iC(l,"PATH");return d?d=h+oo+d:d=h,nC(l,"PATH",d),i.args["without-browser-env-var"]||(l.BROWSER=j(u,"helpers",me?"browser.cmd":"browser.sh")),rC(l),l}function iC(e,t){const s=Object.keys(e).filter(n=>n.toLowerCase()===t.toLowerCase()),i=s.length>0?s[0]:t;return e[i]}function nC(e,t,s){const i=Object.keys(e).filter(r=>r.toLowerCase()===t.toLowerCase()),n=i.length>0?i[0]:t;e[n]=s}function rC(e){for(const t of Object.keys(e))e[t]===null&&delete e[t]}var ug,jh,a8=v({"out-build/vs/server/node/extensionHostConnection.js"(){"use strict";Ue(),ae(),H(),Ie(),he(),Q(),_u(),Ch(),$s(),De(),M1(),s8(),v7(),Wo(),eC(),ug=class{constructor(e,t){this.socket=e,this.initialDataChunk=t}socketDrain(){return this.socket.drain()}toIExtHostSocketMessage(){let e,t,s;return this.socket instanceof Yo?(e=!0,t=!1,s=O.alloc(0)):(e=!1,t=this.socket.permessageDeflate,s=this.socket.recordedInflateBytes),{type:"VSCODE_EXTHOST_IPC_SOCKET",initialDataChunk:this.initialDataChunk.buffer.toString("base64"),skipWebSocketFrames:e,permessageDeflate:t,inflateBytes:s.buffer.toString("base64")}}},jh=class extends J{constructor(t,s,i,n,r,o,a,c){super(),this.m=t,this.n=r,this.r=o,this.s=a,this.t=c,this.b=new D,this.onClose=this.b.event,this.c=!me||!this.n.args["socket-path"],this.f=!1,this.g=s,this.h=null,this.j=new ug(i,n),this.w("New connection established.")}dispose(){this.D(),super.dispose()}get u(){return`[${this.g}][${this.m.substr(0,8)}][ExtensionHostConnection] `}w(t){this.r.info(`${this.u}${t}`)}y(t){this.r.error(`${this.u}${t}`)}async z(t,s){const i=new lt;i.add(s.socket),i.add(ve(()=>{t.destroy()}));const n=()=>{i.dispose()};i.add(s.socket.onEnd(n)),i.add(s.socket.onClose(n)),i.add(z.fromNodeEventEmitter(t,"end")(n)),i.add(z.fromNodeEventEmitter(t,"close")(n)),i.add(z.fromNodeEventEmitter(t,"error")(n)),i.add(s.socket.onData(r=>t.write(r.buffer))),i.add(z.fromNodeEventEmitter(t,"data")(r=>{s.socket.write(O.wrap(r))})),s.initialDataChunk.byteLength>0&&t.write(s.initialDataChunk.buffer)}async C(t,s){await s.socketDrain();const i=s.toIExtHostSocketMessage();let n;s.socket instanceof Yo?n=s.socket.socket:n=s.socket.socket.socket,t.send(i,n)}shortenReconnectionGraceTimeIfNecessary(){if(!this.h)return;const t={type:"VSCODE_EXTHOST_IPC_REDUCE_GRACE_TIME"};this.h.send(t)}acceptReconnection(t,s,i){this.g=t,this.w("The client has reconnected.");const n=new ug(s,i);if(!this.h){this.j=n;return}this.C(this.h,n)}D(){this.f||(this.f=!0,this.j&&(this.j.socket.end(),this.j=null),this.h&&(this.h.kill(),this.h=null),this.b.fire(void 0))}async start(t){try{let s=process.execArgv?process.execArgv.filter(h=>!/^--inspect(-brk)?=/.test(h)):[];t.port&&!process.pkg&&(s=[`--inspect${t.break?"-brk":""}=${t.port}`]);const i=await o8(t.env,!0,t.language,this.n,this.r,this.t);l5(i);let n;if(this.c)i8(new lg,i),n=null;else{const{namedPipeServer:h,pipeName:d}=await this.F();i8(new cg(d),i),n=h}const r={env:i,execArgv:s,silent:!0};r.execArgv.unshift("--dns-result-order=ipv4first");const o=["--type=extensionHost","--transformURIs"],a=this.n.args["use-host-proxy"];o.push(`--useHostProxy=${a?"true":"false"}`),this.h=tC.fork(Ot.asFileUri("bootstrap-fork").fsPath,o,r);const c=this.h.pid;this.w(`<${c}> Launched Extension Host Process.`),this.h.stdout.setEncoding("utf8"),this.h.stderr.setEncoding("utf8");const l=z.fromNodeEventEmitter(this.h.stdout,"data"),u=z.fromNodeEventEmitter(this.h.stderr,"data");if(this.B(l(h=>this.w(`<${c}> ${h}`))),this.B(u(h=>this.w(`<${c}><stderr> ${h}`))),this.h.on("error",h=>{this.y(`<${c}> Extension Host Process had an error`),this.r.error(h),this.D()}),this.h.on("exit",(h,d)=>{this.s.setExitInfo(this.m,{code:h,signal:d}),this.w(`<${c}> Extension Host Process exited with code: ${h}, signal: ${d}.`),this.D()}),n)n.on("connection",h=>{n.close(),this.z(h,this.j)});else{const h=d=>{d.type==="VSCODE_EXTHOST_IPC_READY"&&(this.h.removeListener("message",h),this.C(this.h,this.j),this.j=null)};this.h.on("message",h)}}catch(s){console.error("ExtensionHostConnection errored"),s&&console.error(s)}}F(){return new Promise((t,s)=>{const i=rg(),n=sC.createServer();n.on("error",s),n.listen(i,()=>{n?.removeListener("error",s),t({pipeName:i,namedPipeServer:n})})})}},jh=__decorate([__param(4,Bc),__param(5,fe),__param(6,ag),__param(7,hs)],jh)}});function _h(e){let t=0,s=0,i=0;e>=1e3&&(i=Math.floor(e/1e3),e-=i*1e3),i>=60&&(s=Math.floor(i/60),i-=s*60),s>=60&&(t=Math.floor(s/60),s-=t*60);const n=t?`${t}h`:"",r=s?`${s}m`:"",o=i?`${i}s`:"",a=e?`${e}ms`:"";return`${n}${r}${o}${a}`}var c8,oC=v({"out-build/vs/server/node/remoteExtensionManagement.js"(){"use strict";ae(),Me(),c8=class{constructor(e,t,s,i){this.i=e,this.j=t,this.a=new D,this.onClose=this.a.event,this.b=108e5,this.c=3e5,this.d=s,this.protocol=i,this.e=!1,this.f=new d1(()=>{this.k(`The reconnection grace time of ${_h(this.b)} has expired, so the connection will be disposed.`),this.l()},this.b),this.g=new d1(()=>{this.k(`The reconnection short grace time of ${_h(this.c)} has expired, so the connection will be disposed.`),this.l()},this.c),this.protocol.onDidDispose(()=>{this.k("The client has disconnected gracefully, so the connection will be disposed."),this.l()}),this.protocol.onSocketClose(()=>{this.k(`The client has disconnected, will wait for reconnection ${_h(this.b)} before disposing...`),this.f.schedule()}),this.k("New connection established.")}k(e){this.i.info(`[${this.d}][${this.j.substr(0,8)}][ManagementConnection] ${e}`)}shortenReconnectionGraceTimeIfNecessary(){this.g.isScheduled()||this.f.isScheduled()&&(this.k(`Another client has connected, will shorten the wait for reconnection ${_h(this.c)} before disposing...`),this.g.schedule())}l(){if(this.e)return;this.e=!0,this.f.dispose(),this.g.dispose();const e=this.protocol.getSocket();this.protocol.sendDisconnect(),this.protocol.dispose(),e.end(),this.a.fire(void 0)}acceptReconnection(e,t,s){this.d=e,this.k("The client has reconnected."),this.f.cancel(),this.g.cancel(),this.protocol.beginAcceptReconnection(t,s),this.protocol.endAcceptReconnection()}}}});import*as aC from"cookie";import*as l8 from"fs";async function cC(e,t){const s=e["without-connection-token"],i=e["connection-token"],n=e["connection-token-file"];if(s)return typeof i<"u"||typeof n<"u"?new Or("Please do not use the argument '--connection-token' or '--connection-token-file' at the same time as '--without-connection-token'."):new h8;if(typeof n<"u"){if(typeof i<"u")return new Or("Please do not use the argument '--connection-token' at the same time as '--connection-token-file'.");let r;try{r=l8.readFileSync(n).toString().replace(/\r?\n$/,"")}catch{return new Or(`Unable to read the connection token file at '${n}'.`)}return Th.test(r)?new Mh(r):new Or(`The connection token defined in '${n} does not adhere to the characters 0-9, a-z, A-Z, _, or -.`)}return typeof i<"u"?Th.test(i)?new Mh(i):new Or(`The connection token '${i} does not adhere to the characters 0-9, a-z, A-Z or -.`):new Mh(await t())}async function lC(e){return cC(e,async()=>{if(!e["user-data-dir"])return He();const s=j(e["user-data-dir"],"token");try{const r=(await l8.promises.readFile(s)).toString().replace(/\r?\n$/,"");if(Th.test(r))return r}catch{}const i=He();try{await Le.writeFile(s,i,{mode:384})}catch{}return i})}function uC(e,t,s){if(e.validate(s.query[ao]))return!0;const i=aC.parse(t.headers.cookie||"");return e.validate(i[hu])}var Th,u8,h8,Mh,Or,hC=v({"out-build/vs/server/node/serverConnectionToken.js"(){"use strict";he(),Wt(),Ie(),es(),Th=/^[0-9A-Za-z_-]+$/,function(e){e[e.None=0]="None",e[e.Optional=1]="Optional",e[e.Mandatory=2]="Mandatory"}(u8||(u8={})),h8=class{constructor(){this.type=0}validate(e){return!0}},Mh=class{constructor(e){this.value=e,this.type=2}validate(e){return e===this.value}},Or=class{constructor(e){this.message=e}}}});import{networkInterfaces as fC}from"os";function dC(e){const t=e.replace(/\-/g,":").toLowerCase();return!f8.has(t)}function pC(){const e=fC();for(const t in e){const s=e[t];if(s){for(const{mac:i}of s)if(dC(i))return i}}throw new Error("Unable to retrieve mac address (unexpected format)")}var f8,mC=v({"out-build/vs/base/node/macAddress.js"(){"use strict";f8=new Set(["00:00:00:00:00:00","ff:ff:ff:ff:ff:ff","ac:de:48:00:11:22"])}});import{networkInterfaces as gC}from"os";async function wC(e){return fg||(fg=(async()=>await vC(e)||He())()),fg}async function vC(e){try{const t=await import("crypto"),s=pC();return t.createHash("sha256").update(s,"utf8").digest("hex")}catch(t){e(t);return}}async function bC(e){if(me){const t=await import("@vscode/windows-registry");try{return t.GetStringRegKey("HKEY_LOCAL_MACHINE",d8,"MachineId")||""}catch(s){return e(s),""}}return""}async function yC(e){try{return await(await import("@vscode/deviceid")).getDeviceId()}catch(t){return e(t),""}}var hg,fg,d8,p8=v({"out-build/vs/base/node/id.js"(){"use strict";Xu(),Wt(),mC(),Q(),hg=new class{c(e){return this.a||(this.a=Do.forStrings(),this.a.set("00-50-56",!0),this.a.set("00-0C-29",!0),this.a.set("00-05-69",!0),this.a.set("00-03-FF",!0),this.a.set("00-1C-42",!0),this.a.set("00-16-3E",!0),this.a.set("08-00-27",!0),this.a.set("00:50:56",!0),this.a.set("00:0C:29",!0),this.a.set("00:05:69",!0),this.a.set("00:03:FF",!0),this.a.set("00:1C:42",!0),this.a.set("00:16:3E",!0),this.a.set("08:00:27",!0)),!!this.a.findSubstr(e)}value(){if(this.b===void 0){let e=0,t=0;const s=gC();for(const i in s){const n=s[i];if(n)for(const{mac:r,internal:o}of n)o||(t+=1,this.c(r.toUpperCase())&&(e+=1))}this.b=t>0?e/t:0}return this.b}},d8="Software\\Microsoft\\SQMClient"}}),dg,EC=v({"out-build/vs/platform/debug/common/extensionHostDebugIpc.js"(){"use strict";ae(),H(),dg=class{constructor(){this.a=new D,this.b=new D,this.c=new D,this.d=new D}static{this.ChannelName="extensionhostdebugservice"}call(e,t,s){switch(t){case"close":return Promise.resolve(this.a.fire({sessionId:s[0]}));case"reload":return Promise.resolve(this.b.fire({sessionId:s[0]}));case"terminate":return Promise.resolve(this.c.fire({sessionId:s[0]}));case"attach":return Promise.resolve(this.d.fire({sessionId:s[0],port:s[1],subId:s[2]}))}throw new Error("Method not implemented.")}listen(e,t,s){switch(t){case"close":return this.a.event;case"reload":return this.b.event;case"terminate":return this.c.event;case"attach":return this.d.event}throw new Error("Method not implemented.")}}}}),m8,xC=v({"out-build/vs/platform/download/common/downloadIpc.js"(){"use strict";te(),m8=class{constructor(e,t){this.a=e,this.b=t}async download(e,t){const s=this.b();s&&(e=s.transformOutgoingURI(e),t=s.transformOutgoingURI(t)),await this.a.call("download",[e,t])}}}});function g8(e){return e.toJSON()}function w8(e,t,s){if(!e||s>200)return null;if(typeof e=="object"){if(e instanceof E)return t.transformOutgoing(e);for(const i in e)if(Object.hasOwnProperty.call(e,i)){const n=w8(e[i],t,s+1);n!==null&&(e[i]=n)}}return null}function Vn(e,t){const s=w8(e,t,0);return s===null?e:s}function pg(e,t,s,i){if(!e||i>200)return null;if(typeof e=="object"){if(e.$mid===1)return s?E.revive(t.transformIncoming(e)):t.transformIncoming(e);if(e instanceof O)return null;for(const n in e)if(Object.hasOwnProperty.call(e,n)){const r=pg(e[n],t,s,i+1);r!==null&&(e[n]=r)}}return null}function v8(e,t){const s=pg(e,t,!1,0);return s===null?e:s}function b8(e,t){const s=pg(e,t,!0,0);return s===null?e:s}var y8,mg,Gc=v({"out-build/vs/base/common/uriIpc.js"(){"use strict";Ue(),te(),y8=class{constructor(e){this.a=e}transformIncoming(e){const t=this.a.transformIncoming(e);return t===e?e:g8(E.from(t))}transformOutgoing(e){const t=this.a.transformOutgoing(e);return t===e?e:g8(E.from(t))}transformOutgoingURI(e){const t=this.a.transformOutgoing(e);return t===e?e:E.from(t)}transformOutgoingScheme(e){return this.a.transformOutgoingScheme(e)}},mg=new class{transformIncoming(e){return e}transformOutgoing(e){return e}transformOutgoingURI(e){return e}transformOutgoingScheme(e){return e}}}});function ci(e,t){return e?E.revive(t?t.transformIncoming(e):e):void 0}function Qo(e,t){return t?t.transformOutgoingURI(e):e}function Zo(e,t){t=t||mg;const s=e.manifest;return{...b8({...e,manifest:void 0},t),manifest:s}}function Jc(e,t){return e?.profileLocation?b8(e,t??mg):e}function Xc(e,t){return t?nn(e,s=>s instanceof E?t.transformOutgoingURI(s):void 0):e}var E8,kC=v({"out-build/vs/platform/extensionManagement/common/extensionManagementIpc.js"(){"use strict";ae(),H(),Kt(),te(),Gc(),As(),E8=class{constructor(e,t){this.a=e,this.b=t,this.onInstallExtension=z.buffer(e.onInstallExtension,!0),this.onDidInstallExtensions=z.buffer(e.onDidInstallExtensions,!0),this.onUninstallExtension=z.buffer(e.onUninstallExtension,!0),this.onDidUninstallExtension=z.buffer(e.onDidUninstallExtension,!0),this.onDidUpdateExtensionMetadata=z.buffer(e.onDidUpdateExtensionMetadata,!0)}listen(e,t){const s=this.b(e);switch(t){case"onInstallExtension":return z.map(this.onInstallExtension,i=>({...i,profileLocation:i.profileLocation?Qo(i.profileLocation,s):i.profileLocation}));case"onDidInstallExtensions":return z.map(this.onDidInstallExtensions,i=>i.map(n=>({...n,local:n.local?Xc(n.local,s):n.local,profileLocation:n.profileLocation?Qo(n.profileLocation,s):n.profileLocation})));case"onUninstallExtension":return z.map(this.onUninstallExtension,i=>({...i,profileLocation:i.profileLocation?Qo(i.profileLocation,s):i.profileLocation}));case"onDidUninstallExtension":return z.map(this.onDidUninstallExtension,i=>({...i,profileLocation:i.profileLocation?Qo(i.profileLocation,s):i.profileLocation}));case"onDidUpdateExtensionMetadata":return z.map(this.onDidUpdateExtensionMetadata,i=>({local:Xc(i.local,s),profileLocation:Qo(i.profileLocation,s)}))}throw new Error("Invalid listen")}async call(e,t,s){const i=this.b(e);switch(t){case"zip":{const n=Zo(s[0],i),r=await this.a.zip(n);return Qo(r,i)}case"install":return this.a.install(ci(s[0],i),Jc(s[1],i));case"installFromLocation":return this.a.installFromLocation(ci(s[0],i),ci(s[1],i));case"installExtensionsFromProfile":return this.a.installExtensionsFromProfile(s[0],ci(s[1],i),ci(s[2],i));case"getManifest":return this.a.getManifest(ci(s[0],i));case"getTargetPlatform":return this.a.getTargetPlatform();case"canInstall":return this.a.canInstall(s[0]);case"installFromGallery":return this.a.installFromGallery(s[0],Jc(s[1],i));case"installGalleryExtensions":{const n=s[0];return this.a.installGalleryExtensions(n.map(({extension:r,options:o})=>({extension:r,options:Jc(o,i)??{}})))}case"uninstall":return this.a.uninstall(Zo(s[0],i),Jc(s[1],i));case"uninstallExtensions":{const n=s[0];return this.a.uninstallExtensions(n.map(({extension:r,options:o})=>({extension:Zo(r,i),options:Jc(o,i)})))}case"reinstallFromGallery":return this.a.reinstallFromGallery(Zo(s[0],i));case"getInstalled":return(await this.a.getInstalled(s[0],ci(s[1],i),s[2])).map(r=>Xc(r,i));case"toggleAppliationScope":{const n=await this.a.toggleAppliationScope(Zo(s[0],i),ci(s[1],i));return Xc(n,i)}case"copyExtensions":return this.a.copyExtensions(ci(s[0],i),ci(s[1],i));case"updateMetadata":{const n=await this.a.updateMetadata(Zo(s[0],i),s[1],ci(s[2],i));return Xc(n,i)}case"resetPinnedStateForAllUserExtensions":return this.a.resetPinnedStateForAllUserExtensions(s[0]);case"getExtensionsControlManifest":return this.a.getExtensionsControlManifest();case"download":return this.a.download(s[0],s[1],s[2]);case"cleanUp":return this.a.cleanUp()}throw new Error("Invalid call")}}}}),x8,$C=v({"out-build/vs/platform/request/common/requestIpc.js"(){"use strict";Ue(),Dt(),x8=class{constructor(e){this.a=e}listen(e,t){throw new Error("Invalid listen")}call(e,t,s,i=Re.None){switch(t){case"request":return this.a.request(s[0],i).then(async({res:n,stream:r})=>{const o=await Zi(r);return[{statusCode:n.statusCode,headers:n.headers},o]});case"resolveProxy":return this.a.resolveProxy(s[0]);case"lookupAuthorization":return this.a.lookupAuthorization(s[0]);case"lookupKerberosAuthorization":return this.a.lookupKerberosAuthorization(s[0]);case"loadCertificates":return this.a.loadCertificates()}throw new Error("Invalid call")}}}}),gg,k8,SC=v({"out-build/vs/platform/telemetry/common/errorTelemetry.js"(){"use strict";Et(),de(),H(),Kt(),et(),function(e){function t(s,i){return s.callstack<i.callstack?-1:s.callstack>i.callstack?1:0}e.compare=t}(gg||(gg={})),k8=class vI{static{this.ERROR_FLUSH_TIMEOUT=5*1e3}constructor(t,s=vI.ERROR_FLUSH_TIMEOUT){this.f=-1,this.g=[],this.h=new lt,this.c=t,this.d=s;const i=Ra.addListener(n=>this.j(n));this.h.add(ve(i)),this.i()}dispose(){clearTimeout(this.f),this.l(),this.h.dispose()}i(){}j(t){if(!t||t.code||(t.detail&&t.detail.stack&&(t=t.detail),Vi.isErrorNoTelemetry(t)||t instanceof Jt||typeof t?.message=="string"&&t.message.includes("Unable to read file")))return;const s=Array.isArray(t.stack)?t.stack.join(` `):t.stack,i=t.message?t.message:b1(t);s&&this.k({msg:i,callstack:s})}k(t){const s=QI(this.g,t,gg.compare);s<0?(t.count=1,this.g.splice(~s,0,t)):(this.g[s].count||(this.g[s].count=0),this.g[s].count+=1),this.f===-1&&(this.f=setTimeout(()=>{this.l(),this.f=-1},this.d))}l(){for(const t of this.g)this.c.publicLogError2("UnhandledError",t);this.g.length=0}}}}),$8,PC=v({"out-build/vs/platform/telemetry/node/errorTelemetry.js"(){"use strict";de(),SC(),$8=class extends k8{i(){Lv(t=>console.error(t));const e=[];process.on("unhandledRejection",(t,s)=>{e.push(s),setTimeout(()=>{const i=e.indexOf(s);i>=0&&s.catch(n=>{e.splice(i,1),hr(n)||(console.warn(`rejected promise not handled within 1 second: ${n}`),n.stack&&console.warn(`stack trace: ${n.stack}`),t&&Vt(t))})},1e3)}),process.on("rejectionHandled",t=>{const s=e.indexOf(t);s>=0&&e.splice(s,1)}),process.on("uncaughtException",t=>{Ov(t)||Vt(t)})}}}}),IC,S8,P8,I8,A8,D8,N8,Yc,R8,L8,ps,O8,C8,j8,_8,T8,M8,U8,F8,B8,AC,z8,wg=v({"out-build/vs/platform/terminal/common/terminal.js"(){"use strict";re(),po(),rn(),IC=new Ae("terminalTabFocusMode",!1,!0),function(e){e.AutomationProfile="terminal.integrated.automationProfile.",e.DefaultProfile="terminal.integrated.defaultProfile.",e.Profiles="terminal.integrated.profiles."}(S8||(S8={})),function(e){e.SendKeybindingsToShell="terminal.integrated.sendKeybindingsToShell",e.AutomationProfileLinux="terminal.integrated.automationProfile.linux",e.AutomationProfileMacOs="terminal.integrated.automationProfile.osx",e.AutomationProfileWindows="terminal.integrated.automationProfile.windows",e.ProfilesWindows="terminal.integrated.profiles.windows",e.ProfilesMacOs="terminal.integrated.profiles.osx",e.ProfilesLinux="terminal.integrated.profiles.linux",e.DefaultProfileLinux="terminal.integrated.defaultProfile.linux",e.DefaultProfileMacOs="terminal.integrated.defaultProfile.osx",e.DefaultProfileWindows="terminal.integrated.defaultProfile.windows",e.UseWslProfiles="terminal.integrated.useWslProfiles",e.TabsDefaultColor="terminal.integrated.tabs.defaultColor",e.TabsDefaultIcon="terminal.integrated.tabs.defaultIcon",e.TabsEnabled="terminal.integrated.tabs.enabled",e.TabsEnableAnimation="terminal.integrated.tabs.enableAnimation",e.TabsHideCondition="terminal.integrated.tabs.hideCondition",e.TabsShowActiveTerminal="terminal.integrated.tabs.showActiveTerminal",e.TabsShowActions="terminal.integrated.tabs.showActions",e.TabsLocation="terminal.integrated.tabs.location",e.TabsFocusMode="terminal.integrated.tabs.focusMode",e.MacOptionIsMeta="terminal.integrated.macOptionIsMeta",e.MacOptionClickForcesSelection="terminal.integrated.macOptionClickForcesSelection",e.AltClickMovesCursor="terminal.integrated.altClickMovesCursor",e.CopyOnSelection="terminal.integrated.copyOnSelection",e.EnableMultiLinePasteWarning="terminal.integrated.enableMultiLinePasteWarning",e.DrawBoldTextInBrightColors="terminal.integrated.drawBoldTextInBrightColors",e.FontFamily="terminal.integrated.fontFamily",e.FontSize="terminal.integrated.fontSize",e.LetterSpacing="terminal.integrated.letterSpacing",e.LineHeight="terminal.integrated.lineHeight",e.MinimumContrastRatio="terminal.integrated.minimumContrastRatio",e.TabStopWidth="terminal.integrated.tabStopWidth",e.FastScrollSensitivity="terminal.integrated.fastScrollSensitivity",e.MouseWheelScrollSensitivity="terminal.integrated.mouseWheelScrollSensitivity",e.BellDuration="terminal.integrated.bellDuration",e.FontWeight="terminal.integrated.fontWeight",e.FontWeightBold="terminal.integrated.fontWeightBold",e.CursorBlinking="terminal.integrated.cursorBlinking",e.CursorStyle="terminal.integrated.cursorStyle",e.CursorStyleInactive="terminal.integrated.cursorStyleInactive",e.CursorWidth="terminal.integrated.cursorWidth",e.Scrollback="terminal.integrated.scrollback",e.DetectLocale="terminal.integrated.detectLocale",e.DefaultLocation="terminal.integrated.defaultLocation",e.GpuAcceleration="terminal.integrated.gpuAcceleration",e.TerminalTitleSeparator="terminal.integrated.tabs.separator",e.TerminalTitle="terminal.integrated.tabs.title",e.TerminalDescription="terminal.integrated.tabs.description",e.RightClickBehavior="terminal.integrated.rightClickBehavior",e.MiddleClickBehavior="terminal.integrated.middleClickBehavior",e.Cwd="terminal.integrated.cwd",e.ConfirmOnExit="terminal.integrated.confirmOnExit",e.ConfirmOnKill="terminal.integrated.confirmOnKill",e.EnableBell="terminal.integrated.enableBell",e.EnableVisualBell="terminal.integrated.enableVisualBell",e.CommandsToSkipShell="terminal.integrated.commandsToSkipShell",e.AllowChords="terminal.integrated.allowChords",e.AllowMnemonics="terminal.integrated.allowMnemonics",e.TabFocusMode="terminal.integrated.tabFocusMode",e.EnvMacOs="terminal.integrated.env.osx",e.EnvLinux="terminal.integrated.env.linux",e.EnvWindows="terminal.integrated.env.windows",e.EnvironmentChangesIndicator="terminal.integrated.environmentChangesIndicator",e.EnvironmentChangesRelaunch="terminal.integrated.environmentChangesRelaunch",e.ExperimentalWindowsUseConptyDll="terminal.integrated.experimental.windowsUseConptyDll",e.ShowExitAlert="terminal.integrated.showExitAlert",e.SplitCwd="terminal.integrated.splitCwd",e.WindowsEnableConpty="terminal.integrated.windowsEnableConpty",e.WordSeparators="terminal.integrated.wordSeparators",e.EnableFileLinks="terminal.integrated.enableFileLinks",e.AllowedLinkSchemes="terminal.integrated.allowedLinkSchemes",e.UnicodeVersion="terminal.integrated.unicodeVersion",e.EnablePersistentSessions="terminal.integrated.enablePersistentSessions",e.PersistentSessionReviveProcess="terminal.integrated.persistentSessionReviveProcess",e.HideOnStartup="terminal.integrated.hideOnStartup",e.CustomGlyphs="terminal.integrated.customGlyphs",e.RescaleOverlappingGlyphs="terminal.integrated.rescaleOverlappingGlyphs",e.PersistentSessionScrollback="terminal.integrated.persistentSessionScrollback",e.InheritEnv="terminal.integrated.inheritEnv",e.ShowLinkHover="terminal.integrated.showLinkHover",e.IgnoreProcessNames="terminal.integrated.ignoreProcessNames",e.ShellIntegrationEnabled="terminal.integrated.shellIntegration.enabled",e.ShellIntegrationShowWelcome="terminal.integrated.shellIntegration.showWelcome",e.ShellIntegrationDecorationsEnabled="terminal.integrated.shellIntegration.decorationsEnabled",e.EnableImages="terminal.integrated.enableImages",e.SmoothScrolling="terminal.integrated.smoothScrolling",e.IgnoreBracketedPasteMode="terminal.integrated.ignoreBracketedPasteMode",e.FocusAfterRun="terminal.integrated.focusAfterRun",e.DeveloperPtyHostLatency="terminal.integrated.developer.ptyHost.latency",e.DeveloperPtyHostStartupDelay="terminal.integrated.developer.ptyHost.startupDelay",e.DevMode="terminal.integrated.developer.devMode"}(P8||(P8={})),function(e){e.Bash="bash",e.Fish="fish",e.Sh="sh",e.Csh="csh",e.Ksh="ksh",e.Zsh="zsh"}(I8||(I8={})),function(e){e.CommandPrompt="cmd",e.Wsl="wsl",e.GitBash="gitbash"}(A8||(A8={})),function(e){e.PowerShell="pwsh",e.Python="python",e.Julia="julia",e.NuShell="nu"}(D8||(D8={})),function(e){e[e.Api=0]="Api",e[e.Process=1]="Process",e[e.Sequence=2]="Sequence",e[e.Config=3]="Config"}(N8||(N8={})),function(e){e.LocalPty="localPty",e.PtyHost="ptyHost",e.PtyHostWindow="ptyHostWindow",e.Logger="logger",e.Heartbeat="heartbeat"}(Yc||(Yc={})),function(e){e.Cwd="cwd",e.InitialCwd="initialCwd",e.FixedDimensions="fixedDimensions",e.Title="title",e.ShellType="shellType",e.HasChildProcesses="hasChildProcesses",e.ResolvedShellLaunchConfig="resolvedShellLaunchConfig",e.OverrideDimensions="overrideDimensions",e.FailedShellIntegrationActivation="failedShellIntegrationActivation",e.UsedShellIntegrationInjection="usedShellIntegrationInjection"}(R8||(R8={})),L8=ie("ptyService"),function(e){e[e.BeatInterval=5e3]="BeatInterval",e[e.ConnectingBeatInterval=2e4]="ConnectingBeatInterval",e[e.FirstWaitMultiplier=1.2]="FirstWaitMultiplier",e[e.SecondWaitMultiplier=1]="SecondWaitMultiplier",e[e.CreateProcessTimeout=5e3]="CreateProcessTimeout"}(ps||(ps={})),function(e){e[e.Panel=1]="Panel",e[e.Editor=2]="Editor"}(O8||(O8={})),function(e){e.TerminalView="view",e.Editor="editor"}(C8||(C8={})),function(e){e[e.GraceTime=6e4]="GraceTime",e[e.ShortGraceTime=6e3]="ShortGraceTime"}(j8||(j8={})),function(e){e[e.HighWatermarkChars=1e5]="HighWatermarkChars",e[e.LowWatermarkChars=5e3]="LowWatermarkChars",e[e.CharCountAckSize=5e3]="CharCountAckSize"}(_8||(_8={})),function(e){e.GitBash="Git Bash",e.Pwsh="PowerShell"}(T8||(T8={})),function(e){e[e.Off=0]="Off",e[e.FinalTerm=1]="FinalTerm",e[e.VSCode=2]="VSCode"}(M8||(M8={})),function(e){e[e.Unknown=0]="Unknown",e[e.Shutdown=1]="Shutdown",e[e.Process=2]="Process",e[e.User=3]="User",e[e.Extension=4]="Extension"}(U8||(U8={})),F8={Backend:"workbench.contributions.terminal.processBackend"},B8=class{constructor(){this.a=new Map}get backends(){return this.a}registerTerminalBackend(e){const t=this.b(e.remoteAuthority);if(this.a.has(t))throw new Error(`A terminal backend with remote authority '${t}' was already registered.`);this.a.set(t,e)}getTerminalBackend(e){return this.a.get(this.b(e))}b(e){return e?.toLowerCase()??""}},_t.add(F8.Backend,new B8),AC=ie("localPtyService"),z8=ie("terminalLogService")}}),H8,V8,W8=v({"out-build/vs/platform/log/common/logIpc.js"(){"use strict";te(),ae(),De(),H(),H8=class{constructor(e,t){this.a=e,this.b=t}listen(e,t){const s=this.b(e);switch(t){case"onDidChangeLoggers":return z.map(this.a.onDidChangeLoggers,i=>({added:[...i.added].map(n=>this.c(n,s)),removed:[...i.removed].map(n=>this.c(n,s))}));case"onDidChangeVisibility":return z.map(this.a.onDidChangeVisibility,i=>[s.transformOutgoingURI(i[0]),i[1]]);case"onDidChangeLogLevel":return z.map(this.a.onDidChangeLogLevel,i=>o1(i)?i:[s.transformOutgoingURI(i[0]),i[1]])}throw new Error(`Event not found: ${t}`)}async call(e,t,s){const i=this.b(e);switch(t){case"setLogLevel":return o1(s[0])?this.a.setLogLevel(s[0]):this.a.setLogLevel(E.revive(i.transformIncoming(s[0][0])),s[0][1]);case"getRegisteredLoggers":return Promise.resolve([...this.a.getRegisteredLoggers()].map(n=>this.c(n,i)))}throw new Error(`Call not found: ${t}`)}c(e,t){return{...e,resource:t.transformOutgoingURI(e.resource)}}},V8=class extends J{constructor(e,t){super(),t.call("setLogLevel",[e.getLogLevel()]),this.B(e.onDidChangeLogLevel(s=>t.call("setLogLevel",[s]))),t.call("getRegisteredLoggers").then(s=>{for(const i of s)e.registerLogger({...i,resource:E.revive(i.resource)})}),this.B(t.listen("onDidChangeVisibility")(([s,i])=>e.setVisibility(E.revive(s),i))),this.B(t.listen("onDidChangeLoggers")(({added:s,removed:i})=>{for(const n of s)e.registerLogger({...n,resource:E.revive(n.resource)});for(const n of i)e.deregisterLogger(n.resource)}))}}}}),Uh,DC=v({"out-build/vs/platform/terminal/common/requestStore.js"(){"use strict";Me(),Dt(),ae(),H(),De(),Uh=class extends J{constructor(t,s){super(),this.h=s,this.a=0,this.c=new Map,this.f=new Map,this.g=this.B(new D),this.onCreateRequest=this.g.event,this.b=t===void 0?15e3:t,this.B(ve(()=>{for(const i of this.f.values())jt(i)}))}createRequest(t){return new Promise((s,i)=>{const n=++this.a;this.c.set(n,s),this.g.fire({requestId:n,...t});const r=new vi;$r(this.b,r.token).then(()=>i(`Request ${n} timed out (${this.b}ms)`)),this.f.set(n,[ve(()=>r.cancel())])})}acceptReply(t,s){const i=this.c.get(t);i?(this.c.delete(t),jt(this.f.get(t)||[]),this.f.delete(t),i(s)):this.h.warn(`RequestStore#acceptReply was called without receiving a matching request ${t}`)}},Uh=__decorate([__param(1,fe)],Uh)}});function f(e,t){if(be(t)){const s=vg[t];if(s===void 0)throw new Error(`${e} references an unknown codicon: ${t}`);t=s}return vg[e]=t,{id:e}}var vg,q8=v({"out-build/vs/base/common/codiconsUtil.js"(){"use strict";xe(),vg=Object.create(null)}}),G8,NC=v({"out-build/vs/base/common/codiconsLibrary.js"(){"use strict";q8(),G8={add:f("add",6e4),plus:f("plus",6e4),gistNew:f("gist-new",6e4),repoCreate:f("repo-create",6e4),lightbulb:f("lightbulb",60001),lightBulb:f("light-bulb",60001),repo:f("repo",60002),repoDelete:f("repo-delete",60002),gistFork:f("gist-fork",60003),repoForked:f("repo-forked",60003),gitPullRequest:f("git-pull-request",60004),gitPullRequestAbandoned:f("git-pull-request-abandoned",60004),recordKeys:f("record-keys",60005),keyboard:f("keyboard",60005),tag:f("tag",60006),gitPullRequestLabel:f("git-pull-request-label",60006),tagAdd:f("tag-add",60006),tagRemove:f("tag-remove",60006),person:f("person",60007),personFollow:f("person-follow",60007),personOutline:f("person-outline",60007),personFilled:f("person-filled",60007),gitBranch:f("git-branch",60008),gitBranchCreate:f("git-branch-create",60008),gitBranchDelete:f("git-branch-delete",60008),sourceControl:f("source-control",60008),mirror:f("mirror",60009),mirrorPublic:f("mirror-public",60009),star:f("star",60010),starAdd:f("star-add",60010),starDelete:f("star-delete",60010),starEmpty:f("star-empty",60010),comment:f("comment",60011),commentAdd:f("comment-add",60011),alert:f("alert",60012),warning:f("warning",60012),search:f("search",60013),searchSave:f("search-save",60013),logOut:f("log-out",60014),signOut:f("sign-out",60014),logIn:f("log-in",60015),signIn:f("sign-in",60015),eye:f("eye",60016),eyeUnwatch:f("eye-unwatch",60016),eyeWatch:f("eye-watch",60016),circleFilled:f("circle-filled",60017),primitiveDot:f("primitive-dot",60017),closeDirty:f("close-dirty",60017),debugBreakpoint:f("debug-breakpoint",60017),debugBreakpointDisabled:f("debug-breakpoint-disabled",60017),debugHint:f("debug-hint",60017),terminalDecorationSuccess:f("terminal-decoration-success",60017),primitiveSquare:f("primitive-square",60018),edit:f("edit",60019),pencil:f("pencil",60019),info:f("info",60020),issueOpened:f("issue-opened",60020),gistPrivate:f("gist-private",60021),gitForkPrivate:f("git-fork-private",60021),lock:f("lock",60021),mirrorPrivate:f("mirror-private",60021),close:f("close",60022),removeClose:f("remove-close",60022),x:f("x",60022),repoSync:f("repo-sync",60023),sync:f("sync",60023),clone:f("clone",60024),desktopDownload:f("desktop-download",60024),beaker:f("beaker",60025),microscope:f("microscope",60025),vm:f("vm",60026),deviceDesktop:f("device-desktop",60026),file:f("file",60027),fileText:f("file-text",60027),more:f("more",60028),ellipsis:f("ellipsis",60028),kebabHorizontal:f("kebab-horizontal",60028),mailReply:f("mail-reply",60029),reply:f("reply",60029),organization:f("organization",60030),organizationFilled:f("organization-filled",60030),organizationOutline:f("organization-outline",60030),newFile:f("new-file",60031),fileAdd:f("file-add",60031),newFolder:f("new-folder",60032),fileDirectoryCreate:f("file-directory-create",60032),trash:f("trash",60033),trashcan:f("trashcan",60033),history:f("history",60034),clock:f("clock",60034),folder:f("folder",60035),fileDirectory:f("file-directory",60035),symbolFolder:f("symbol-folder",60035),logoGithub:f("logo-github",60036),markGithub:f("mark-github",60036),github:f("github",60036),terminal:f("terminal",60037),console:f("console",60037),repl:f("repl",60037),zap:f("zap",60038),symbolEvent:f("symbol-event",60038),error:f("error",60039),stop:f("stop",60039),variable:f("variable",60040),symbolVariable:f("symbol-variable",60040),array:f("array",60042),symbolArray:f("symbol-array",60042),symbolModule:f("symbol-module",60043),symbolPackage:f("symbol-package",60043),symbolNamespace:f("symbol-namespace",60043),symbolObject:f("symbol-object",60043),symbolMethod:f("symbol-method",60044),symbolFunction:f("symbol-function",60044),symbolConstructor:f("symbol-constructor",60044),symbolBoolean:f("symbol-boolean",60047),symbolNull:f("symbol-null",60047),symbolNumeric:f("symbol-numeric",60048),symbolNumber:f("symbol-number",60048),symbolStructure:f("symbol-structure",60049),symbolStruct:f("symbol-struct",60049),symbolParameter:f("symbol-parameter",60050),symbolTypeParameter:f("symbol-type-parameter",60050),symbolKey:f("symbol-key",60051),symbolText:f("symbol-text",60051),symbolReference:f("symbol-reference",60052),goToFile:f("go-to-file",60052),symbolEnum:f("symbol-enum",60053),symbolValue:f("symbol-value",60053),symbolRuler:f("symbol-ruler",60054),symbolUnit:f("symbol-unit",60054),activateBreakpoints:f("activate-breakpoints",60055),archive:f("archive",60056),arrowBoth:f("arrow-both",60057),arrowDown:f("arrow-down",60058),arrowLeft:f("arrow-left",60059),arrowRight:f("arrow-right",60060),arrowSmallDown:f("arrow-small-down",60061),arrowSmallLeft:f("arrow-small-left",60062),arrowSmallRight:f("arrow-small-right",60063),arrowSmallUp:f("arrow-small-up",60064),arrowUp:f("arrow-up",60065),bell:f("bell",60066),bold:f("bold",60067),book:f("book",60068),bookmark:f("bookmark",60069),debugBreakpointConditionalUnverified:f("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:f("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:f("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:f("debug-breakpoint-data-unverified",60072),debugBreakpointData:f("debug-breakpoint-data",60073),debugBreakpointDataDisabled:f("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:f("debug-breakpoint-log-unverified",60074),debugBreakpointLog:f("debug-breakpoint-log",60075),debugBreakpointLogDisabled:f("debug-breakpoint-log-disabled",60075),briefcase:f("briefcase",60076),broadcast:f("broadcast",60077),browser:f("browser",60078),bug:f("bug",60079),calendar:f("calendar",60080),caseSensitive:f("case-sensitive",60081),check:f("check",60082),checklist:f("checklist",60083),chevronDown:f("chevron-down",60084),chevronLeft:f("chevron-left",60085),chevronRight:f("chevron-right",60086),chevronUp:f("chevron-up",60087),chromeClose:f("chrome-close",60088),chromeMaximize:f("chrome-maximize",60089),chromeMinimize:f("chrome-minimize",60090),chromeRestore:f("chrome-restore",60091),circleOutline:f("circle-outline",60092),circle:f("circle",60092),debugBreakpointUnverified:f("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:f("terminal-decoration-incomplete",60092),circleSlash:f("circle-slash",60093),circuitBoard:f("circuit-board",60094),clearAll:f("clear-all",60095),clippy:f("clippy",60096),closeAll:f("close-all",60097),cloudDownload:f("cloud-download",60098),cloudUpload:f("cloud-upload",60099),code:f("code",60100),collapseAll:f("collapse-all",60101),colorMode:f("color-mode",60102),commentDiscussion:f("comment-discussion",60103),creditCard:f("credit-card",60105),dash:f("dash",60108),dashboard:f("dashboard",60109),database:f("database",60110),debugContinue:f("debug-continue",60111),debugDisconnect:f("debug-disconnect",60112),debugPause:f("debug-pause",60113),debugRestart:f("debug-restart",60114),debugStart:f("debug-start",60115),debugStepInto:f("debug-step-into",60116),debugStepOut:f("debug-step-out",60117),debugStepOver:f("debug-step-over",60118),debugStop:f("debug-stop",60119),debug:f("debug",60120),deviceCameraVideo:f("device-camera-video",60121),deviceCamera:f("device-camera",60122),deviceMobile:f("device-mobile",60123),diffAdded:f("diff-added",60124),diffIgnored:f("diff-ignored",60125),diffModified:f("diff-modified",60126),diffRemoved:f("diff-removed",60127),diffRenamed:f("diff-renamed",60128),diff:f("diff",60129),diffSidebyside:f("diff-sidebyside",60129),discard:f("discard",60130),editorLayout:f("editor-layout",60131),emptyWindow:f("empty-window",60132),exclude:f("exclude",60133),extensions:f("extensions",60134),eyeClosed:f("eye-closed",60135),fileBinary:f("file-binary",60136),fileCode:f("file-code",60137),fileMedia:f("file-media",60138),filePdf:f("file-pdf",60139),fileSubmodule:f("file-submodule",60140),fileSymlinkDirectory:f("file-symlink-directory",60141),fileSymlinkFile:f("file-symlink-file",60142),fileZip:f("file-zip",60143),files:f("files",60144),filter:f("filter",60145),flame:f("flame",60146),foldDown:f("fold-down",60147),foldUp:f("fold-up",60148),fold:f("fold",60149),folderActive:f("folder-active",60150),folderOpened:f("folder-opened",60151),gear:f("gear",60152),gift:f("gift",60153),gistSecret:f("gist-secret",60154),gist:f("gist",60155),gitCommit:f("git-commit",60156),gitCompare:f("git-compare",60157),compareChanges:f("compare-changes",60157),gitMerge:f("git-merge",60158),githubAction:f("github-action",60159),githubAlt:f("github-alt",60160),globe:f("globe",60161),grabber:f("grabber",60162),graph:f("graph",60163),gripper:f("gripper",60164),heart:f("heart",60165),home:f("home",60166),horizontalRule:f("horizontal-rule",60167),hubot:f("hubot",60168),inbox:f("inbox",60169),issueReopened:f("issue-reopened",60171),issues:f("issues",60172),italic:f("italic",60173),jersey:f("jersey",60174),json:f("json",60175),kebabVertical:f("kebab-vertical",60176),key:f("key",60177),law:f("law",60178),lightbulbAutofix:f("lightbulb-autofix",60179),linkExternal:f("link-external",60180),link:f("link",60181),listOrdered:f("list-ordered",60182),listUnordered:f("list-unordered",60183),liveShare:f("live-share",60184),loading:f("loading",60185),location:f("location",60186),mailRead:f("mail-read",60187),mail:f("mail",60188),markdown:f("markdown",60189),megaphone:f("megaphone",60190),mention:f("mention",60191),milestone:f("milestone",60192),gitPullRequestMilestone:f("git-pull-request-milestone",60192),mortarBoard:f("mortar-board",60193),move:f("move",60194),multipleWindows:f("multiple-windows",60195),mute:f("mute",60196),noNewline:f("no-newline",60197),note:f("note",60198),octoface:f("octoface",60199),openPreview:f("open-preview",60200),package:f("package",60201),paintcan:f("paintcan",60202),pin:f("pin",60203),play:f("play",60204),run:f("run",60204),plug:f("plug",60205),preserveCase:f("preserve-case",60206),preview:f("preview",60207),project:f("project",60208),pulse:f("pulse",60209),question:f("question",60210),quote:f("quote",60211),radioTower:f("radio-tower",60212),reactions:f("reactions",60213),references:f("references",60214),refresh:f("refresh",60215),regex:f("regex",60216),remoteExplorer:f("remote-explorer",60217),remote:f("remote",60218),remove:f("remove",60219),replaceAll:f("replace-all",60220),replace:f("replace",60221),repoClone:f("repo-clone",60222),repoForcePush:f("repo-force-push",60223),repoPull:f("repo-pull",60224),repoPush:f("repo-push",60225),report:f("report",60226),requestChanges:f("request-changes",60227),rocket:f("rocket",60228),rootFolderOpened:f("root-folder-opened",60229),rootFolder:f("root-folder",60230),rss:f("rss",60231),ruby:f("ruby",60232),saveAll:f("save-all",60233),saveAs:f("save-as",60234),save:f("save",60235),screenFull:f("screen-full",60236),screenNormal:f("screen-normal",60237),searchStop:f("search-stop",60238),server:f("server",60240),settingsGear:f("settings-gear",60241),settings:f("settings",60242),shield:f("shield",60243),smiley:f("smiley",60244),sortPrecedence:f("sort-precedence",60245),splitHorizontal:f("split-horizontal",60246),splitVertical:f("split-vertical",60247),squirrel:f("squirrel",60248),starFull:f("star-full",60249),starHalf:f("star-half",60250),symbolClass:f("symbol-class",60251),symbolColor:f("symbol-color",60252),symbolConstant:f("symbol-constant",60253),symbolEnumMember:f("symbol-enum-member",60254),symbolField:f("symbol-field",60255),symbolFile:f("symbol-file",60256),symbolInterface:f("symbol-interface",60257),symbolKeyword:f("symbol-keyword",60258),symbolMisc:f("symbol-misc",60259),symbolOperator:f("symbol-operator",60260),symbolProperty:f("symbol-property",60261),wrench:f("wrench",60261),wrenchSubaction:f("wrench-subaction",60261),symbolSnippet:f("symbol-snippet",60262),tasklist:f("tasklist",60263),telescope:f("telescope",60264),textSize:f("text-size",60265),threeBars:f("three-bars",60266),thumbsdown:f("thumbsdown",60267),thumbsup:f("thumbsup",60268),tools:f("tools",60269),triangleDown:f("triangle-down",60270),triangleLeft:f("triangle-left",60271),triangleRight:f("triangle-right",60272),triangleUp:f("triangle-up",60273),twitter:f("twitter",60274),unfold:f("unfold",60275),unlock:f("unlock",60276),unmute:f("unmute",60277),unverified:f("unverified",60278),verified:f("verified",60279),versions:f("versions",60280),vmActive:f("vm-active",60281),vmOutline:f("vm-outline",60282),vmRunning:f("vm-running",60283),watch:f("watch",60284),whitespace:f("whitespace",60285),wholeWord:f("whole-word",60286),window:f("window",60287),wordWrap:f("word-wrap",60288),zoomIn:f("zoom-in",60289),zoomOut:f("zoom-out",60290),listFilter:f("list-filter",60291),listFlat:f("list-flat",60292),listSelection:f("list-selection",60293),selection:f("selection",60293),listTree:f("list-tree",60294),debugBreakpointFunctionUnverified:f("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:f("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:f("debug-breakpoint-function-disabled",60296),debugStackframeActive:f("debug-stackframe-active",60297),circleSmallFilled:f("circle-small-filled",60298),debugStackframeDot:f("debug-stackframe-dot",60298),terminalDecorationMark:f("terminal-decoration-mark",60298),debugStackframe:f("debug-stackframe",60299),debugStackframeFocused:f("debug-stackframe-focused",60299),debugBreakpointUnsupported:f("debug-breakpoint-unsupported",60300),symbolString:f("symbol-string",60301),debugReverseContinue:f("debug-reverse-continue",60302),debugStepBack:f("debug-step-back",60303),debugRestartFrame:f("debug-restart-frame",60304),debugAlt:f("debug-alt",60305),callIncoming:f("call-incoming",60306),callOutgoing:f("call-outgoing",60307),menu:f("menu",60308),expandAll:f("expand-all",60309),feedback:f("feedback",60310),gitPullRequestReviewer:f("git-pull-request-reviewer",60310),groupByRefType:f("group-by-ref-type",60311),ungroupByRefType:f("ungroup-by-ref-type",60312),account:f("account",60313),gitPullRequestAssignee:f("git-pull-request-assignee",60313),bellDot:f("bell-dot",60314),debugConsole:f("debug-console",60315),library:f("library",60316),output:f("output",60317),runAll:f("run-all",60318),syncIgnored:f("sync-ignored",60319),pinned:f("pinned",60320),githubInverted:f("github-inverted",60321),serverProcess:f("server-process",60322),serverEnvironment:f("server-environment",60323),pass:f("pass",60324),issueClosed:f("issue-closed",60324),stopCircle:f("stop-circle",60325),playCircle:f("play-circle",60326),record:f("record",60327),debugAltSmall:f("debug-alt-small",60328),vmConnect:f("vm-connect",60329),cloud:f("cloud",60330),merge:f("merge",60331),export:f("export",60332),graphLeft:f("graph-left",60333),magnet:f("magnet",60334),notebook:f("notebook",60335),redo:f("redo",60336),checkAll:f("check-all",60337),pinnedDirty:f("pinned-dirty",60338),passFilled:f("pass-filled",60339),circleLargeFilled:f("circle-large-filled",60340),circleLarge:f("circle-large",60341),circleLargeOutline:f("circle-large-outline",60341),combine:f("combine",60342),gather:f("gather",60342),table:f("table",60343),variableGroup:f("variable-group",60344),typeHierarchy:f("type-hierarchy",60345),typeHierarchySub:f("type-hierarchy-sub",60346),typeHierarchySuper:f("type-hierarchy-super",60347),gitPullRequestCreate:f("git-pull-request-create",60348),runAbove:f("run-above",60349),runBelow:f("run-below",60350),notebookTemplate:f("notebook-template",60351),debugRerun:f("debug-rerun",60352),workspaceTrusted:f("workspace-trusted",60353),workspaceUntrusted:f("workspace-untrusted",60354),workspaceUnknown:f("workspace-unknown",60355),terminalCmd:f("terminal-cmd",60356),terminalDebian:f("terminal-debian",60357),terminalLinux:f("terminal-linux",60358),terminalPowershell:f("terminal-powershell",60359),terminalTmux:f("terminal-tmux",60360),terminalUbuntu:f("terminal-ubuntu",60361),terminalBash:f("terminal-bash",60362),arrowSwap:f("arrow-swap",60363),copy:f("copy",60364),personAdd:f("person-add",60365),filterFilled:f("filter-filled",60366),wand:f("wand",60367),debugLineByLine:f("debug-line-by-line",60368),inspect:f("inspect",60369),layers:f("layers",60370),layersDot:f("layers-dot",60371),layersActive:f("layers-active",60372),compass:f("compass",60373),compassDot:f("compass-dot",60374),compassActive:f("compass-active",60375),azure:f("azure",60376),issueDraft:f("issue-draft",60377),gitPullRequestClosed:f("git-pull-request-closed",60378),gitPullRequestDraft:f("git-pull-request-draft",60379),debugAll:f("debug-all",60380),debugCoverage:f("debug-coverage",60381),runErrors:f("run-errors",60382),folderLibrary:f("folder-library",60383),debugContinueSmall:f("debug-continue-small",60384),beakerStop:f("beaker-stop",60385),graphLine:f("graph-line",60386),graphScatter:f("graph-scatter",60387),pieChart:f("pie-chart",60388),bracket:f("bracket",60175),bracketDot:f("bracket-dot",60389),bracketError:f("bracket-error",60390),lockSmall:f("lock-small",60391),azureDevops:f("azure-devops",60392),verifiedFilled:f("verified-filled",60393),newline:f("newline",60394),layout:f("layout",60395),layoutActivitybarLeft:f("layout-activitybar-left",60396),layoutActivitybarRight:f("layout-activitybar-right",60397),layoutPanelLeft:f("layout-panel-left",60398),layoutPanelCenter:f("layout-panel-center",60399),layoutPanelJustify:f("layout-panel-justify",60400),layoutPanelRight:f("layout-panel-right",60401),layoutPanel:f("layout-panel",60402),layoutSidebarLeft:f("layout-sidebar-left",60403),layoutSidebarRight:f("layout-sidebar-right",60404),layoutStatusbar:f("layout-statusbar",60405),layoutMenubar:f("layout-menubar",60406),layoutCentered:f("layout-centered",60407),target:f("target",60408),indent:f("indent",60409),recordSmall:f("record-small",60410),errorSmall:f("error-small",60411),terminalDecorationError:f("terminal-decoration-error",60411),arrowCircleDown:f("arrow-circle-down",60412),arrowCircleLeft:f("arrow-circle-left",60413),arrowCircleRight:f("arrow-circle-right",60414),arrowCircleUp:f("arrow-circle-up",60415),layoutSidebarRightOff:f("layout-sidebar-right-off",60416),layoutPanelOff:f("layout-panel-off",60417),layoutSidebarLeftOff:f("layout-sidebar-left-off",60418),blank:f("blank",60419),heartFilled:f("heart-filled",60420),map:f("map",60421),mapHorizontal:f("map-horizontal",60421),foldHorizontal:f("fold-horizontal",60421),mapFilled:f("map-filled",60422),mapHorizontalFilled:f("map-horizontal-filled",60422),foldHorizontalFilled:f("fold-horizontal-filled",60422),circleSmall:f("circle-small",60423),bellSlash:f("bell-slash",60424),bellSlashDot:f("bell-slash-dot",60425),commentUnresolved:f("comment-unresolved",60426),gitPullRequestGoToChanges:f("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:f("git-pull-request-new-changes",60428),searchFuzzy:f("search-fuzzy",60429),commentDraft:f("comment-draft",60430),send:f("send",60431),sparkle:f("sparkle",60432),insert:f("insert",60433),mic:f("mic",60434),thumbsdownFilled:f("thumbsdown-filled",60435),thumbsupFilled:f("thumbsup-filled",60436),coffee:f("coffee",60437),snake:f("snake",60438),game:f("game",60439),vr:f("vr",60440),chip:f("chip",60441),piano:f("piano",60442),music:f("music",60443),micFilled:f("mic-filled",60444),repoFetch:f("repo-fetch",60445),copilot:f("copilot",60446),lightbulbSparkle:f("lightbulb-sparkle",60447),robot:f("robot",60448),sparkleFilled:f("sparkle-filled",60449),diffSingle:f("diff-single",60450),diffMultiple:f("diff-multiple",60451),surroundWith:f("surround-with",60452),share:f("share",60453),gitStash:f("git-stash",60454),gitStashApply:f("git-stash-apply",60455),gitStashPop:f("git-stash-pop",60456),vscode:f("vscode",60457),vscodeInsiders:f("vscode-insiders",60458),codeOss:f("code-oss",60459),runCoverage:f("run-coverage",60460),runAllCoverage:f("run-all-coverage",60461),coverage:f("coverage",60462),githubProject:f("github-project",60463),mapVertical:f("map-vertical",60464),foldVertical:f("fold-vertical",60464),mapVerticalFilled:f("map-vertical-filled",60465),foldVerticalFilled:f("fold-vertical-filled",60465),goToSearch:f("go-to-search",60466),percentage:f("percentage",60467),sortPercentage:f("sort-percentage",60467),attach:f("attach",60468),goToEditingSession:f("go-to-editing-session",60469),editSession:f("edit-session",60470),codeReview:f("code-review",60471)}}});function J8(){return Object.values(T)}var X8,T,Qc=v({"out-build/vs/base/common/codicons.js"(){"use strict";q8(),NC(),X8={dialogError:f("dialog-error","error"),dialogWarning:f("dialog-warning","warning"),dialogInfo:f("dialog-info","info"),dialogClose:f("dialog-close","close"),treeItemExpanded:f("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:f("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:f("tree-filter-on-type-off","list-selection"),treeFilterClear:f("tree-filter-clear","close"),treeItemLoading:f("tree-item-loading","loading"),menuSelection:f("menu-selection","check"),menuSubmenu:f("menu-submenu","chevron-right"),menuBarMore:f("menubar-more","more"),scrollbarButtonLeft:f("scrollbar-button-left","triangle-left"),scrollbarButtonRight:f("scrollbar-button-right","triangle-right"),scrollbarButtonUp:f("scrollbar-button-up","triangle-up"),scrollbarButtonDown:f("scrollbar-button-down","triangle-down"),toolBarMore:f("toolbar-more","more"),quickInputBack:f("quick-input-back","arrow-left"),dropDownButton:f("drop-down-button",60084),symbolCustomColor:f("symbol-customcolor",60252),exportIcon:f("export",60332),workspaceUnspecified:f("workspace-unspecified",60355),newLine:f("newline",60394),thumbsDownFilled:f("thumbsdown-filled",60435),thumbsUpFilled:f("thumbsup-filled",60436),gitFetch:f("git-fetch",60445),lightbulbSparkleAutofix:f("lightbulb-sparkle-autofix",60447),debugBreakpointPending:f("debug-breakpoint-pending",60377)},T={...G8,...X8}}}),bg,Wn,Fh=v({"out-build/vs/base/common/themables.js"(){"use strict";Qc(),function(e){function t(s){return s&&typeof s=="object"&&typeof s.id=="string"}e.isThemeColor=t}(bg||(bg={})),function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9-]+",e.iconModifierExpression="~[A-Za-z]+",e.iconNameCharacter="[A-Za-z0-9~-]";const t=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function s(d){const p=t.exec(d.id);if(!p)return s(T.error);const[,g,w]=p,y=["codicon","codicon-"+g];return w&&y.push("codicon-modifier-"+w.substring(1)),y}e.asClassNameArray=s;function i(d){return s(d).join(" ")}e.asClassName=i;function n(d){return"."+s(d).join(".")}e.asCSSSelector=n;function r(d){return d&&typeof d=="object"&&typeof d.id=="string"&&(typeof d.color>"u"||bg.isThemeColor(d.color))}e.isThemeIcon=r;const o=new RegExp(`^\\$\\((${e.iconNameExpression}(?:${e.iconModifierExpression})?)\\)$`);function a(d){const p=o.exec(d);if(!p)return;const[,g]=p;return{id:g}}e.fromString=a;function c(d){return{id:d}}e.fromId=c;function l(d,p){let g=d.id;const w=g.lastIndexOf("~");return w!==-1&&(g=g.substring(0,w)),p&&(g=`${g}~${p}`),{id:g}}e.modify=l;function u(d){const p=d.id.lastIndexOf("~");if(p!==-1)return d.id.substring(p+1)}e.getModifier=u;function h(d,p){return d.id===p.id&&d.color?.id===p.color?.id}e.isEqual=h}(Wn||(Wn={}))}});function RC(e,t){const s=[{name:null,description:m(2130,null)}];return s.push(...e.map(i=>({name:i.profileName,description:LC(i)}))),t&&s.push(...t.map(i=>({name:i.title,description:OC(i)}))),{values:s.map(i=>i.name),markdownDescriptions:s.map(i=>i.description)}}function LC(e){let t=`$(${Wn.isThemeIcon(e.icon)?e.icon.id:e.icon?e.icon:T.terminal.id}) ${e.profileName} - path: ${e.path}`;return e.args&&(typeof e.args=="string"?t+=` - args: "${e.args}"`:t+=` - args: [${e.args.length===0?"":`'${e.args.join("','")}'`}]`),e.overrideName!==void 0&&(t+=` - overrideName: ${e.overrideName}`),e.color&&(t+=` - color: ${e.color}`),e.env&&(t+=` - env: ${JSON.stringify(e.env)}`),t}function OC(e){return`$(${Wn.isThemeIcon(e.icon)?e.icon.id:e.icon?e.icon:T.terminal.id}) ${e.title} - extensionIdentifier: ${e.extensionIdentifier}`}var CC=v({"out-build/vs/platform/terminal/common/terminalProfiles.js"(){"use strict";Qc(),te(),pe(),Fh()}});function yg(e){const t=e===2?"linux":e===1?"osx":"windows";return m(2106,null,zv(e),'```json\n"terminal.integrated.profile.'+t+'": {\n "bash": null\n}\n```',"[","](https://code.visualstudio.com/docs/terminal/profiles)")}function jC(){_t.as(Ss.Configuration).registerConfiguration(Z8),_C()}function _C(e,t){const s=_t.as(Ss.Configuration);let i;e&&(i=RC(e?.profiles,t));const n=Eg;Eg={id:"terminal",order:100,title:m(2126,null),type:"object",properties:{"terminal.integrated.defaultProfile.linux":{restricted:!0,markdownDescription:m(2127,null),type:["string","null"],default:null,enum:e?.os===3?i?.values:void 0,markdownEnumDescriptions:e?.os===3?i?.markdownDescriptions:void 0},"terminal.integrated.defaultProfile.osx":{restricted:!0,markdownDescription:m(2128,null),type:["string","null"],default:null,enum:e?.os===2?i?.values:void 0,markdownEnumDescriptions:e?.os===2?i?.markdownDescriptions:void 0},"terminal.integrated.defaultProfile.windows":{restricted:!0,markdownDescription:m(2129,null),type:["string","null"],default:null,enum:e?.os===1?i?.values:void 0,markdownEnumDescriptions:e?.os===1?i?.markdownDescriptions:void 0}}},s.updateConfigurations({add:[Eg],remove:n?[n]:[]})}var Y8,Q8,Cr,Bh,zh,Z8,Eg,TC=v({"out-build/vs/platform/terminal/common/terminalPlatformConfiguration.js"(){"use strict";Qc(),Q(),pe(),So(),rn(),CC(),Y8={type:["string","null"],enum:["terminal.ansiBlack","terminal.ansiRed","terminal.ansiGreen","terminal.ansiYellow","terminal.ansiBlue","terminal.ansiMagenta","terminal.ansiCyan","terminal.ansiWhite"],default:null},Q8={type:"string",enum:Array.from(J8(),e=>e.id),markdownEnumDescriptions:Array.from(J8(),e=>`$(${e.id})`)},Cr={args:{description:m(2099,null),type:"array",items:{type:"string"}},overrideName:{description:m(2100,null),type:"boolean"},icon:{description:m(2101,null),...Q8},color:{description:m(2102,null),...Y8},env:{markdownDescription:m(2103,null),type:"object",additionalProperties:{type:["string","null"]},default:{}}},Bh={type:"object",required:["path"],properties:{path:{description:m(2104,null),type:["string","array"],items:{type:"string"}},...Cr}},zh={type:"object",required:["path"],properties:{path:{description:m(2105,null),type:["string"],items:{type:"string"}},...Cr}},Z8={id:"terminal",order:100,title:m(2107,null),type:"object",properties:{"terminal.integrated.automationProfile.linux":{restricted:!0,markdownDescription:m(2108,null),type:["object","null"],default:null,anyOf:[{type:"null"},zh],defaultSnippets:[{body:{path:"${1}",icon:"${2}"}}]},"terminal.integrated.automationProfile.osx":{restricted:!0,markdownDescription:m(2109,null),type:["object","null"],default:null,anyOf:[{type:"null"},zh],defaultSnippets:[{body:{path:"${1}",icon:"${2}"}}]},"terminal.integrated.automationProfile.windows":{restricted:!0,markdownDescription:m(2110,null,"`terminal.integrated.automationShell.windows`"),type:["object","null"],default:null,anyOf:[{type:"null"},zh],defaultSnippets:[{body:{path:"${1}",icon:"${2}"}}]},"terminal.integrated.profiles.windows":{restricted:!0,markdownDescription:yg(3),type:"object",default:{PowerShell:{source:"PowerShell",icon:"terminal-powershell"},"Command Prompt":{path:["${env:windir}\\Sysnative\\cmd.exe","${env:windir}\\System32\\cmd.exe"],args:[],icon:"terminal-cmd"},"Git Bash":{source:"Git Bash"}},additionalProperties:{anyOf:[{type:"object",required:["source"],properties:{source:{description:m(2111,null),enum:["PowerShell","Git Bash"]},...Cr}},{type:"object",required:["extensionIdentifier","id","title"],properties:{extensionIdentifier:{description:m(2112,null),type:"string"},id:{description:m(2113,null),type:"string"},title:{description:m(2114,null),type:"string"},...Cr}},{type:"null"},Bh]}},"terminal.integrated.profiles.osx":{restricted:!0,markdownDescription:yg(1),type:"object",default:{bash:{path:"bash",args:["-l"],icon:"terminal-bash"},zsh:{path:"zsh",args:["-l"]},fish:{path:"fish",args:["-l"]},tmux:{path:"tmux",icon:"terminal-tmux"},pwsh:{path:"pwsh",icon:"terminal-powershell"}},additionalProperties:{anyOf:[{type:"object",required:["extensionIdentifier","id","title"],properties:{extensionIdentifier:{description:m(2115,null),type:"string"},id:{description:m(2116,null),type:"string"},title:{description:m(2117,null),type:"string"},...Cr}},{type:"null"},Bh]}},"terminal.integrated.profiles.linux":{restricted:!0,markdownDescription:yg(2),type:"object",default:{bash:{path:"bash",icon:"terminal-bash"},zsh:{path:"zsh"},fish:{path:"fish"},tmux:{path:"tmux",icon:"terminal-tmux"},pwsh:{path:"pwsh",icon:"terminal-powershell"}},additionalProperties:{anyOf:[{type:"object",required:["extensionIdentifier","id","title"],properties:{extensionIdentifier:{description:m(2118,null),type:"string"},id:{description:m(2119,null),type:"string"},title:{description:m(2120,null),type:"string"},...Cr}},{type:"null"},Bh]}},"terminal.integrated.useWslProfiles":{description:m(2121,null),type:"boolean",default:!0},"terminal.integrated.inheritEnv":{scope:1,description:m(2122,null),type:"boolean",default:!0},"terminal.integrated.persistentSessionScrollback":{scope:1,markdownDescription:m(2123,null),type:"number",default:100},"terminal.integrated.showLinkHover":{scope:1,description:m(2124,null),type:"boolean",default:!0},"terminal.integrated.ignoreProcessNames":{markdownDescription:m(2125,null,"`#terminal.integrated.confirmOnKill#`"),type:"array",items:{type:"string",uniqueItems:!0},default:["starship","oh-my-posh","bash","zsh"]}}}}}),fn,K8=v({"out-build/vs/platform/terminal/common/environmentVariable.js"(){"use strict";(function(e){e[e.Replace=1]="Replace",e[e.Append=2]="Append",e[e.Prepend=3]="Prepend"})(fn||(fn={}))}});function MC(e){return[...e.entries()]}function UC(e){return e?[...e.entries()]:[]}function FC(e){return new Map(e)}function BC(e){return new Map(e??[])}var xg=v({"out-build/vs/platform/terminal/common/environmentVariableShared.js"(){"use strict"}});function e2(e,t,s=!1){return e.scope?!!(e.scope.workspaceFolder&&t?.workspaceFolder&&e.scope.workspaceFolder.index===t.workspaceFolder.index):s?t===e.scope:!0}function t2(e,t){if(!t)return e;const s=new Set;t.forEach(n=>s.add(n.extensionIdentifier));const i=[];return e.forEach(n=>{s.has(n.extensionIdentifier)||i.push(n)}),i.length===0?void 0:i}function zC(e,t){if(!t)return;const s=new Map;t.forEach(n=>s.set(n.extensionIdentifier,n));const i=[];return e.forEach(n=>{const r=s.get(n.extensionIdentifier);r&&(n.type!==r.type||n.value!==r.value||n.scope?.workspaceFolder?.index!==r.scope?.workspaceFolder?.index)&&i.push(r)}),i.length===0?void 0:i}var s2,i2,n2=v({"out-build/vs/platform/terminal/common/environmentVariableCollection.js"(){"use strict";Q(),K8(),s2=new Map([[fn.Append,"APPEND"],[fn.Prepend,"PREPEND"],[fn.Replace,"REPLACE"]]),i2=class{constructor(e){this.collections=e,this.a=new Map,this.b=new Map,e.forEach((t,s)=>{this.d(t,s);const i=t.map.entries();let n=i.next();for(;!n.done;){const r=n.value[1],o=n.value[0];let a=this.a.get(o);if(a||(a=[],this.a.set(o,a)),a.length>0&&a[0].type===fn.Replace){n=i.next();continue}const c={extensionIdentifier:s,value:r.value,type:r.type,scope:r.scope,variable:r.variable,options:r.options};c.scope||delete c.scope,a.unshift(c),n=i.next()}})}async applyToProcessEnvironment(e,t,s){let i;me&&(i={},Object.keys(e).forEach(n=>i[n.toLowerCase()]=n));for(const[n,r]of this.getVariableMap(t)){const o=me&&i[n.toLowerCase()]||n;for(const a of r){const c=s?await s(a.value):a.value;if(a.options?.applyAtProcessCreation??!0)switch(a.type){case fn.Append:e[o]=(e[o]||"")+c;break;case fn.Prepend:e[o]=c+(e[o]||"");break;case fn.Replace:e[o]=c;break}if(a.options?.applyAtShellIntegration??!1){const l=`VSCODE_ENV_${s2.get(a.type)}`;e[l]=(e[l]?e[l]+":":"")+n+"="+this.c(c)}}}}c(e){return e.replaceAll(":","\\x3a")}diff(e,t){const s=new Map,i=new Map,n=new Map;if(e.getVariableMap(t).forEach((r,o)=>{const a=this.getVariableMap(t).get(o),c=t2(r,a);c&&s.set(o,c)}),this.getVariableMap(t).forEach((r,o)=>{const a=e.getVariableMap(t).get(o),c=t2(r,a);c&&n.set(o,c)}),this.getVariableMap(t).forEach((r,o)=>{const a=e.getVariableMap(t).get(o),c=zC(r,a);c&&i.set(o,c)}),!(s.size===0&&i.size===0&&n.size===0))return{added:s,changed:i,removed:n}}getVariableMap(e){const t=new Map;for(const s of this.a.values()){const i=s.filter(n=>e2(n,e));i.length>0&&t.set(i[0].variable,i)}return t}getDescriptionMap(e){const t=new Map;for(const s of this.b.values()){const i=s.filter(n=>e2(n,e,!0));for(const n of i)t.set(n.extensionIdentifier,n.description)}return t}d(e,t){if(!e.descriptionMap)return;const s=e.descriptionMap.entries();let i=s.next();for(;!i.done;){const n=i.value[1],r=i.value[0];let o=this.b.get(r);o||(o=[],this.b.set(r,o));const a={extensionIdentifier:t,scope:n.scope,description:n.description};a.scope||delete a.scope,o.push(a),i=s.next()}}}}});import*as HC from"os";function VC(){const e=/(\d+)\.(\d+)\.(\d+)/g.exec(HC.release());let t=0;return e&&e.length===4&&(t=parseInt(e[3])),t}async function r2(e,t,s,i=Cs,n=Le.exists){if(Xi(e))return await n(e)?e:void 0;if(t===void 0&&(t=bi()),Lt(e)!=="."){const c=j(t,e);return await n(c)?c:void 0}const o=AD(i,"PATH");if(s===void 0&&be(o)&&(s=o.split(oo)),s===void 0||s.length===0){const c=j(t,e);return await n(c)?c:void 0}for(const c of s){let l;if(Xi(c)?l=j(c,e):l=j(t,c,e),await n(l))return l;if(me){let u=l+".com";if(await n(u)||(u=l+".exe",await n(u)))return u}}const a=j(t,e);return await n(a)?a:void 0}var dn,qn,WC=v({"out-build/vs/platform/terminal/node/terminalEnvironment.js"(){"use strict";Ie(),Kt(),he(),Q(),ei(),rt(),xe(),es(),K8(),xg(),n2(),function(e){e.WindowsPwsh="windows-pwsh",e.WindowsPwshLogin="windows-pwsh-login",e.Pwsh="pwsh",e.PwshLogin="pwsh-login",e.Zsh="zsh",e.ZshLogin="zsh-login",e.Bash="bash"}(dn||(dn={})),qn=new Map,qn.set(dn.WindowsPwsh,["-noexit","-command",'try { . "{0}\\out\\vs\\workbench\\contrib\\terminal\\common\\scripts\\shellIntegration.ps1" } catch {}{1}']),qn.set(dn.WindowsPwshLogin,["-l","-noexit","-command",'try { . "{0}\\out\\vs\\workbench\\contrib\\terminal\\common\\scripts\\shellIntegration.ps1" } catch {}{1}']),qn.set(dn.Pwsh,["-noexit","-command",'. "{0}/out/vs/workbench/contrib/terminal/common/scripts/shellIntegration.ps1"{1}']),qn.set(dn.PwshLogin,["-l","-noexit","-command",'. "{0}/out/vs/workbench/contrib/terminal/common/scripts/shellIntegration.ps1"']),qn.set(dn.Zsh,["-i"]),qn.set(dn.ZshLogin,["-il"]),qn.set(dn.Bash,["--init-file","{0}/out/vs/workbench/contrib/terminal/common/scripts/shellIntegration-bash.sh"])}});import*as qC from"fs";import*as GC from"child_process";import{dirname as JC,resolve as XC}from"path";function YC(e,t,s,i,n=process.env,r,o,a,c){return r=r||{existsFile:ds.existsFile,readFile:qC.promises.readFile},me?QC(s,r,n,o,i.getValue("terminal.integrated.useWslProfiles")!==!1,e&&typeof e=="object"?{...e}:i.getValue("terminal.integrated.profiles.windows"),typeof t=="string"?t:i.getValue("terminal.integrated.defaultProfile.windows"),c,a):nj(r,o,s,e&&typeof e=="object"?{...e}:i.getValue(it?"terminal.integrated.profiles.linux":"terminal.integrated.profiles.osx"),typeof t=="string"?t:i.getValue(it?"terminal.integrated.defaultProfile.linux":"terminal.integrated.defaultProfile.osx"),c,a,n)}async function QC(e,t,s,i,n,r,o,a,c){const l=process.env.hasOwnProperty("PROCESSOR_ARCHITEW6432"),u=`${process.env.windir}\\${l?"Sysnative":"System32"}`;let h=!1;VC()>=16299&&(h=!0),await KC(a);const d=new Map;if(e){d.set("PowerShell",{source:"PowerShell",icon:T.terminalPowershell,isAutoDetected:!0}),d.set("Windows PowerShell",{path:`${u}\\WindowsPowerShell\\v1.0\\powershell.exe`,icon:T.terminalPowershell,isAutoDetected:!0}),d.set("Git Bash",{source:"Git Bash",isAutoDetected:!0}),d.set("Command Prompt",{path:`${u}\\cmd.exe`,icon:T.terminalCmd,isAutoDetected:!0}),d.set("Cygwin",{path:[{path:`${process.env.HOMEDRIVE}\\cygwin64\\bin\\bash.exe`,isUnsafe:!0},{path:`${process.env.HOMEDRIVE}\\cygwin\\bin\\bash.exe`,isUnsafe:!0}],args:["--login"],isAutoDetected:!0}),d.set("bash (MSYS2)",{path:[{path:`${process.env.HOMEDRIVE}\\msys64\\usr\\bin\\bash.exe`,isUnsafe:!0}],args:["--login","-i"],env:{CHERE_INVOKING:"1"},icon:T.terminalBash,isAutoDetected:!0});const g=`${process.env.CMDER_ROOT||`${process.env.HOMEDRIVE}\\cmder`}\\vendor\\bin\\vscode_init.cmd`;d.set("Cmder",{path:`${u}\\cmd.exe`,args:["/K",g],requiresPath:process.env.CMDER_ROOT?g:{path:g,isUnsafe:!0},isAutoDetected:!0})}c2(r,d);const p=await o2(d.entries(),o,t,s,i,c);if(e&&n)try{const g=await sj(`${u}\\${h?"wsl":"bash"}.exe`,o);for(const w of g)(!r||!(w.profileName in r))&&p.push(w)}catch{kg&&(i?.trace("WSL is not installed, so could not detect WSL profiles"),kg=!1)}return p}async function o2(e,t,s,i=process.env,n,r){const o=[];for(const[a,c]of e)o.push(ZC(a,c,t,s,i,n,r));return(await Promise.all(o)).filter(a=>!!a)}async function ZC(e,t,s,i,n=process.env,r,o){if(t===null)return;let a,c,l;if("source"in t&&!("path"in t)){const p=Zc?.get(t.source);if(!p)return;a=p.paths,c=t.args||p.args,t.icon?l=a2(t.icon):p.icon&&(l=p.icon)}else a=Array.isArray(t.path)?t.path:[t.path],c=me||Array.isArray(t.args)?t.args:void 0,l=a2(t.icon);let u;if(o){const p=a.map(w=>typeof w=="string"?w:w.path),g=await o(p);u=new Array(a.length);for(let w=0;w<a.length;w++)typeof a[w]=="string"?u[w]=g[w]:u[w]={path:g[w],isUnsafe:!0}}else u=a.slice();let h;if(t.requiresPath){let p;if(be(t.requiresPath)?p=t.requiresPath:(p=t.requiresPath.path,t.requiresPath.isUnsafe&&(h=p)),!await i.existsFile(p))return}const d=await Hh(e,s,u,i,n,c,t.env,t.overrideName,t.isAutoDetected,h);if(!d){r?.debug("Terminal profile not validated",e,a);return}return d.isAutoDetected=t.isAutoDetected,d.icon=l,d.color=t.color,d}function a2(e){return typeof e=="string"?{id:e}:e}async function KC(e){if(Zc&&!e)return;const[t,s]=await Promise.all([ej(),e||tj()]);Zc=new Map,Zc.set("Git Bash",{profileName:"Git Bash",paths:t,args:["--login","-i"]}),Zc.set("PowerShell",{profileName:"PowerShell",paths:s,icon:T.terminalPowershell})}async function ej(){const e=new Set,t=await r2("git.exe");if(t){const n=JC(t);e.add(XC(n,"../.."))}function s(n,r){r&&n.add(r)}s(e,process.env.ProgramW6432),s(e,process.env.ProgramFiles),s(e,process.env["ProgramFiles(X86)"]),s(e,`${process.env.LocalAppData}\\Program`);const i=[];for(const n of e)i.push(`${n}\\Git\\bin\\bash.exe`,`${n}\\Git\\usr\\bin\\bash.exe`,`${n}\\usr\\bin\\bash.exe`);return i.push(`${process.env.UserProfile}\\scoop\\apps\\git\\current\\bin\\bash.exe`),i.push(`${process.env.UserProfile}\\scoop\\apps\\git-with-openssh\\current\\bin\\bash.exe`),i}async function tj(){const e=[];for await(const t of n5())e.push(t.exePath);return e}async function sj(e,t){const s=[],i=await new Promise((o,a)=>{GC.exec("wsl.exe -l -q",{encoding:"utf16le",timeout:1e3},(c,l)=>{if(c)return a("Problem occurred when getting wsl distros");o(l)})});if(!i)return[];const n=new RegExp(/[\r?\n]/),r=i.split(n).filter(o=>o.trim().length>0&&o!=="");for(const o of r){if(o===""||o.startsWith("docker-desktop"))continue;const a=`${o} (WSL)`,c={profileName:a,path:e,args:["-d",`${o}`],isDefault:a===t,icon:ij(o),isAutoDetected:!1};s.push(c)}return s}function ij(e){return e.includes("Ubuntu")?T.terminalUbuntu:e.includes("Debian")?T.terminalDebian:T.terminalLinux}async function nj(e,t,s,i,n,r,o,a){const c=new Map;if(s&&await e.existsFile("/etc/shells")){const l=(await e.readFile("/etc/shells")).toString(),u=(r||l.split(` `)).map(d=>{const p=d.indexOf("#");return p===-1?d:d.substring(0,p)}).filter(d=>d.trim().length>0),h=new Map;for(const d of u){let p=ot(d),g=h.get(p)||0;g++,g>1&&(p=`${p} (${g})`),h.set(p,g),c.set(p,{path:d,isAutoDetected:!0})}}return c2(i,c),await o2(c.entries(),n,e,a,t,o)}function c2(e,t){if(e)for(const[s,i]of Object.entries(e))i===null||typeof i!="object"||!("path"in i)&&!("source"in i)?t.delete(s):(i.icon=i.icon||t.get(s)?.icon,t.set(s,i))}async function Hh(e,t,s,i,n,r,o,a,c,l){if(s.length===0)return Promise.resolve(void 0);const u=s.shift();if(u==="")return Hh(e,t,s,i,n,r,o,a,c);const h=typeof u!="string"&&u.isUnsafe,d=typeof u=="string"?u:u.path,p={profileName:e,path:d,args:r,env:o,overrideName:a,isAutoDetected:c,isDefault:e===t,isUnsafePath:h,requiresUnsafePath:l};if(ot(d)===d){const w=n.PATH?n.PATH.split(oo):void 0,y=await r2(d,void 0,w,void 0,i.existsFile);return y?(p.path=y,p.isFromPath=!0,p):Hh(e,t,s,i,n,r)}return await i.existsFile(ti(d))?p:Hh(e,t,s,i,n,r,o,a,c)}var l2,Zc,kg,rj=v({"out-build/vs/platform/terminal/node/terminalProfiles.js"(){"use strict";Qc(),he(),Q(),xe(),es(),c5(),WC(),function(e){e.UnixShellsPath="/etc/shells"}(l2||(l2={})),kg=!0}}),$g,Vh,oj=v({"out-build/vs/platform/terminal/node/ptyHostService.js"(){"use strict";ae(),H(),Q(),Ho(),$s(),De(),W8(),M1(),DC(),wg(),TC(),rj(),g5(),ro(),function(e){e[e.MaxRestarts=5]="MaxRestarts"}($g||($g={})),Vh=class extends J{get c(){return this.h(),this.a}get f(){return this.h(),this.b}get g(){return this.b}h(){this.a||this.U()}constructor(t,s,i,n){super(),this.M=t,this.N=s,this.O=i,this.P=n,this.m=!1,this.n=0,this.r=!0,this.u=this.B(new D),this.onPtyHostExit=this.u.event,this.w=this.B(new D),this.onPtyHostStart=this.w.event,this.y=this.B(new D),this.onPtyHostUnresponsive=this.y.event,this.z=this.B(new D),this.onPtyHostResponsive=this.z.event,this.C=this.B(new D),this.onPtyHostRequestResolveVariables=this.C.event,this.D=this.B(new D),this.onProcessData=this.D.event,this.F=this.B(new D),this.onProcessReady=this.F.event,this.G=this.B(new D),this.onProcessReplay=this.G.event,this.H=this.B(new D),this.onProcessOrphanQuestion=this.H.event,this.I=this.B(new D),this.onDidRequestDetach=this.I.event,this.J=this.B(new D),this.onDidChangeProperty=this.J.event,this.L=this.B(new D),this.onProcessExit=this.L.event,jC(),this.B(this.M),this.B(ve(()=>this.W())),this.j=this.B(new Uh(void 0,this.O)),this.B(this.j.onCreateRequest(this.C.fire,this.C)),this.M.onRequestConnection&&this.B(z.once(this.M.onRequestConnection)(()=>this.h())),this.M.onWillShutdown&&this.B(this.M.onWillShutdown(()=>this.m=!0))}get Q(){return this.N.getValue("terminal.integrated.ignoreProcessNames")}async R(){return this.g?.refreshIgnoreProcessNames?.(this.Q)}async S(){if(me)return process.env;try{return await T1(this.N,this.O,{_:[]},process.env)}catch(t){return this.O.error("ptyHost was unable to resolve shell environment",t),{}}}U(){const t=this.M.start(),s=t.client;this.O.getLevel()===F.Trace&&this.O.trace("PtyHostService#_startPtyHost",new Error().stack?.replace(/^Error/,"")),Uc.toService(s.getChannel(Yc.Heartbeat)).onBeat(()=>this.X()),this.X(!0),this.B(t.onDidProcessExit(r=>{this.u.fire(r.code),!this.m&&!this.q.isDisposed&&(this.n<=$g.MaxRestarts?(this.O.error(`ptyHost terminated unexpectedly with code ${r.code}`),this.n++,this.restartPtyHost()):this.O.error(`ptyHost terminated unexpectedly with code ${r.code}, giving up`))}));const n=Uc.toService(s.getChannel(Yc.PtyHost));return this.B(n.onProcessData(r=>this.D.fire(r))),this.B(n.onProcessReady(r=>this.F.fire(r))),this.B(n.onProcessExit(r=>this.L.fire(r))),this.B(n.onDidChangeProperty(r=>this.J.fire(r))),this.B(n.onProcessReplay(r=>this.G.fire(r))),this.B(n.onProcessOrphanQuestion(r=>this.H.fire(r))),this.B(n.onDidRequestDetach(r=>this.I.fire(r))),this.B(new V8(this.P,s.getChannel(Yc.Logger))),this.a=t,this.b=n,this.w.fire(),this.B(this.N.onDidChangeConfiguration(async r=>{r.affectsConfiguration("terminal.integrated.ignoreProcessNames")&&await this.R()})),this.R(),[t,n]}async createProcess(t,s,i,n,r,o,a,c,l,u,h){const d=setTimeout(()=>this.$(),ps.CreateProcessTimeout),p=await this.f.createProcess(t,s,i,n,r,o,a,c,l,u,h);return clearTimeout(d),p}updateTitle(t,s,i){return this.f.updateTitle(t,s,i)}updateIcon(t,s,i,n){return this.f.updateIcon(t,s,i,n)}attachToProcess(t){return this.f.attachToProcess(t)}detachFromProcess(t,s){return this.f.detachFromProcess(t,s)}shutdownAll(){return this.f.shutdownAll()}listProcesses(){return this.f.listProcesses()}async getPerformanceMarks(){return this.g?.getPerformanceMarks()??[]}async reduceConnectionGraceTime(){return this.g?.reduceConnectionGraceTime()}start(t){return this.f.start(t)}shutdown(t,s){return this.f.shutdown(t,s)}input(t,s){return this.f.input(t,s)}processBinary(t,s){return this.f.processBinary(t,s)}resize(t,s,i){return this.f.resize(t,s,i)}clearBuffer(t){return this.f.clearBuffer(t)}acknowledgeDataEvent(t,s){return this.f.acknowledgeDataEvent(t,s)}setUnicodeVersion(t,s){return this.f.setUnicodeVersion(t,s)}getInitialCwd(t){return this.f.getInitialCwd(t)}getCwd(t){return this.f.getCwd(t)}async getLatency(){const t=new $n,s=await this.f.getLatency();return t.stop(),[{label:"ptyhostservice<->ptyhost",latency:t.elapsed()},...s]}orphanQuestionReply(t){return this.f.orphanQuestionReply(t)}installAutoReply(t,s){return this.f.installAutoReply(t,s)}uninstallAllAutoReplies(){return this.f.uninstallAllAutoReplies()}getDefaultSystemShell(t){return this.g?.getDefaultSystemShell(t)??m5(t??fr,process.env)}async getProfiles(t,s,i,n=!1){const r=await this.S();return YC(s,i,n,this.N,r,void 0,this.O,this.bb.bind(this,t))}async getEnvironment(){return this.b?this.f.getEnvironment():{...process.env}}getWslPath(t,s){return this.f.getWslPath(t,s)}getRevivedPtyNewId(t,s){return this.f.getRevivedPtyNewId(t,s)}setTerminalLayoutInfo(t){return this.f.setTerminalLayoutInfo(t)}async getTerminalLayoutInfo(t){return this.g?.getTerminalLayoutInfo(t)}async requestDetachInstance(t,s){return this.f.requestDetachInstance(t,s)}async acceptDetachInstanceReply(t,s){return this.f.acceptDetachInstanceReply(t,s)}async freePortKillProcess(t){if(!this.f.freePortKillProcess)throw new Error("freePortKillProcess does not exist on the pty proxy");return this.f.freePortKillProcess(t)}async serializeTerminalState(t){return this.f.serializeTerminalState(t)}async reviveTerminalProcesses(t,s,i){return this.f.reviveTerminalProcesses(t,s,i)}async refreshProperty(t,s){return this.f.refreshProperty(t,s)}async updateProperty(t,s,i){return this.f.updateProperty(t,s,i)}async restartPtyHost(){this.W(),this.r=!0,this.U()}W(){this.f.shutdownAll(),this.c.store.dispose()}X(t){this.ab(),this.s=setTimeout(()=>this.Y(),t?ps.ConnectingBeatInterval:ps.BeatInterval*ps.FirstWaitMultiplier),this.r||(this.r=!0,this.z.fire())}Y(){this.O.warn(`No ptyHost heartbeat after ${ps.BeatInterval*ps.FirstWaitMultiplier/1e3} seconds`),this.s=void 0,this.t=setTimeout(()=>this.Z(),ps.BeatInterval*ps.SecondWaitMultiplier)}Z(){this.O.error(`No ptyHost heartbeat after ${(ps.BeatInterval*ps.FirstWaitMultiplier+ps.BeatInterval*ps.FirstWaitMultiplier)/1e3} seconds`),this.t=void 0,this.r&&(this.r=!1,this.y.fire())}$(){this.ab(),this.O.error(`No ptyHost response to createProcess after ${ps.CreateProcessTimeout/1e3} seconds`),this.r&&(this.r=!1,this.y.fire())}ab(){this.s&&(clearTimeout(this.s),this.s=void 0),this.t&&(clearTimeout(this.t),this.t=void 0)}bb(t,s){return this.j.createRequest({workspaceId:t,originalText:s})}async acceptPtyHostResolvedVariables(t,s){this.j.acceptReply(t,s)}},Vh=__decorate([__param(1,hs),__param(2,fe),__param(3,Za)],Vh)}});function aj(e){return{transformIncoming:t=>t.scheme==="vscode-remote"?{scheme:"file",path:t.path,query:t.query,fragment:t.fragment}:t.scheme==="file"?{scheme:"vscode-local",path:t.path,query:t.query,fragment:t.fragment}:t,transformOutgoing:t=>t.scheme==="file"?{scheme:"vscode-remote",authority:e,path:t.path,query:t.query,fragment:t.fragment}:t.scheme==="vscode-local"?{scheme:"file",path:t.path,query:t.query,fragment:t.fragment}:t,transformOutgoingScheme:t=>t==="file"?"vscode-remote":t==="vscode-local"?"file":t}}function Kc(e){return new y8(aj(e))}var Wh=v({"out-build/vs/workbench/api/node/uriTransformer.js"(){"use strict";Gc()}});import{exec as qh}from"child_process";function Sg(e){return new Promise((t,s)=>{let i;const n=new Map;function r(c,l,u,h,d){const p=n.get(l);if(c===e||p){const g={name:o(u),cmd:u,pid:c,ppid:l,load:h,mem:d};n.set(c,g),c===e&&(i=g),p&&(p.children||(p.children=[]),p.children.push(g),p.children.length>1&&(p.children=p.children.sort((w,y)=>w.pid-y.pid)))}}function o(c){const l=/--utility-sub-type=network/i,u=/--crashes-directory/i,h=/\\pipe\\winpty-control/i,d=/conhost\.exe.+--headless/i,p=/--type=([a-zA-Z-]+)/;if(u.exec(c))return"electron-crash-reporter";if(h.exec(c))return"winpty-agent";if(d.exec(c))return"conpty-agent";let g=p.exec(c);if(g&&g.length===2)return g[1]==="renderer"?"window":g[1]==="utility"?l.exec(c)?"utility-network-service":"utility-process":g[1]==="extensionHost"?"extension-host":g[1];const w=/[a-zA-Z-]+\.js/g;let y="";do g=w.exec(c),g&&(y+=g+" ");while(g);return y&&c.indexOf("node ")<0&&c.indexOf("node.exe")<0?`electron-nodejs (${y})`:c}if(process.platform==="win32"){const c=l=>l.indexOf("\\\\?\\")===0||l.indexOf("\\??\\")===0?l.substring(4):l.indexOf('"\\\\?\\')===0||l.indexOf('"\\??\\')===0?'"'+l.substring(5):l;import("@vscode/windows-process-tree").then(l=>{l.getProcessList(e,u=>{if(!u){s(new Error(`Root process ${e} not found`));return}l.getProcessCpuUsage(u,h=>{const d=new Map;h.forEach(p=>{const g=c(p.commandLine||"");d.set(p.pid,{name:o(g),cmd:g,pid:p.pid,ppid:p.ppid,load:p.cpu||0,mem:p.memory||0})}),i=d.get(e),i?(d.forEach(p=>{const g=d.get(p.ppid);g&&(g.children||(g.children=[]),g.children.push(p))}),d.forEach(p=>{p.children&&(p.children=p.children.sort((g,w)=>g.pid-w.pid))}),t(i)):s(new Error(`Root process ${e} not found`))})},l.ProcessDataFlag.CommandLine|l.ProcessDataFlag.Memory)})}else{let c=function(){let l=[i];const u=[];for(;l.length;){const d=l.shift();d&&(u.push(d.pid),d.children&&(l=l.concat(d.children)))}let h=JSON.stringify(Ot.asFileUri("vs/base/node/cpuUsage.sh").fsPath);h+=" "+u.join(" "),qh(h,{},(d,p,g)=>{if(d||g)s(d||new Error(g.toString()));else{const w=p.toString().split(` `);for(let y=0;y<u.length;y++){const x=n.get(u[y]);x.load=parseFloat(w[y])}if(!i){s(new Error(`Root process ${e} not found`));return}t(i)}})};var a=c;qh("which ps",{},(l,u,h)=>{if(l||h)if(process.platform!=="linux")s(l||new Error(h.toString()));else{const d=JSON.stringify(Ot.asFileUri("vs/base/node/ps.sh").fsPath);qh(d,{},(p,g,w)=>{p||w?s(p||new Error(w.toString())):(u2(g,r),c())})}else{const d=u.toString().trim();qh(`${d} -ax -o pid=,ppid=,pcpu=,pmem=,command=`,{maxBuffer:1e3*1024,env:{LC_NUMERIC:"en_US.UTF-8"}},(g,w,y)=>{g||y&&!y.includes("screen size is bogus")?s(g||new Error(y.toString())):(u2(w,r),process.platform==="linux"?c():i?t(i):s(new Error(`Root process ${e} not found`)))})}})}})}function u2(e,t){const s=/^\s*([0-9]+)\s+([0-9]+)\s+([0-9]+\.[0-9]+)\s+([0-9]+\.[0-9]+)\s+(.+)$/,i=e.toString().split(` `);for(const n of i){const r=s.exec(n.trim());r&&r.length===6&&t(parseInt(r[1]),parseInt(r[2]),r[5],parseFloat(r[3]),parseFloat(r[4]))}}var h2=v({"out-build/vs/base/node/ps.js"(){"use strict";Ie()}});function f2(e){return!!e.hostName&&!!e.errorMessage}var d2,cj,lj=v({"out-build/vs/platform/diagnostics/common/diagnostics.js"(){"use strict";re(),d2="diagnosticsService",cj=ie(d2)}});import*as uj from"fs";import*as ms from"os";async function Gh(e,t){const s=`${e}::${t.join(":")}`,i=Ig.get(s);if(i)return i;const n=[{tag:"grunt.js",filePattern:/^gruntfile\.js$/i},{tag:"gulp.js",filePattern:/^gulpfile\.js$/i},{tag:"tsconfig.json",filePattern:/^tsconfig\.json$/i},{tag:"package.json",filePattern:/^package\.json$/i},{tag:"jsconfig.json",filePattern:/^jsconfig\.json$/i},{tag:"tslint.json",filePattern:/^tslint\.json$/i},{tag:"eslint.json",filePattern:/^eslint\.json$/i},{tag:"tasks.json",filePattern:/^tasks\.json$/i},{tag:"launch.json",filePattern:/^launch\.json$/i},{tag:"settings.json",filePattern:/^settings\.json$/i},{tag:"webpack.config.js",filePattern:/^webpack\.config\.js$/i},{tag:"project.json",filePattern:/^project\.json$/i},{tag:"makefile",filePattern:/^makefile$/i},{tag:"sln",filePattern:/^.+\.sln$/i},{tag:"csproj",filePattern:/^.+\.csproj$/i},{tag:"cmake",filePattern:/^.+\.cmake$/i},{tag:"github-actions",filePattern:/^.+\.ya?ml$/i,relativePathPattern:/^\.github(?:\/|\\)workflows$/i},{tag:"devcontainer.json",filePattern:/^devcontainer\.json$/i},{tag:"dockerfile",filePattern:/^(dockerfile|docker\-compose\.ya?ml)$/i},{tag:"cursorrules",filePattern:/^\.cursorrules$/i}],r=new Map,o=new Map,a=2e4;function c(u,h,d,p){const g=h.substring(u.length+1);return Zt.withAsyncBody(async w=>{let y;p.readdirCount++;try{y=await Le.readdir(h,{withFileTypes:!0})}catch{w();return}if(p.count>=a){p.count+=y.length,p.maxReached=!0,w();return}let x=y.length;if(x===0){w();return}let k=y;p.count+y.length>a&&(p.maxReached=!0,x=a-p.count,k=y.slice(0,x)),p.count+=y.length;for(const A of k)if(A.isDirectory()){if(d.includes(A.name)||await c(u,j(h,A.name),d,p),--x===0){w();return}}else{const I=A.name.lastIndexOf(".");if(I>=0){const R=A.name.substring(I+1);R&&r.set(R,(r.get(R)??0)+1)}for(const R of n)R.relativePathPattern?.test(g)!==!1&&R.filePattern.test(A.name)&&o.set(R.tag,(o.get(R.tag)??0)+1);if(--x===0){w();return}}})}const l=Zt.withAsyncBody(async u=>{const h={count:0,maxReached:!1,readdirCount:0},d=new $n(!0);await c(e,e,t,h);const p=await hj(e);u({configFiles:Pg(o),fileTypes:Pg(r),fileCount:h.count,maxFilesReached:h.maxReached,launchConfigFiles:p,totalScanTime:d.elapsed(),totalReaddirCount:h.readdirCount})});return Ig.set(s,l),l}function Pg(e){return Array.from(e.entries(),([t,s])=>({name:t,count:s})).sort((t,s)=>s.count-t.count)}function p2(){const e={os:`${ms.type()} ${ms.arch()} ${ms.release()}`,memory:`${(ms.totalmem()/Nr.GB).toFixed(2)}GB (${(ms.freemem()/Nr.GB).toFixed(2)}GB free)`,vmHint:`${Math.round(hg.value()*100)}%`},t=ms.cpus();return t&&t.length>0&&(e.cpus=`${t[0].model} (${t.length} x ${t[0].speed})`),e}async function hj(e){try{const t=new Map,s=j(e,".vscode","launch.json"),i=await uj.promises.readFile(s),n=[],r=vo(i.toString(),n);if(n.length)return console.log(`Unable to parse ${s}`),[];if(bo(r)==="object"&&r.configurations)for(const o of r.configurations){const a=o.type;a&&(t.has(a)?t.set(a,t.get(a)+1):t.set(a,1))}return Pg(t)}catch{return[]}}var Ig,Ag,fj=v({"out-build/vs/platform/diagnostics/node/diagnosticsService.js"(){"use strict";Me(),yo(),Ie(),he(),Q(),ro(),te(),p8(),es(),h2(),lj(),et(),js(),Is(),Ig=new Map,Ag=class{constructor(t,s){this.c=t,this.d=s}f(t){const s=[];return s.push(`OS Version: ${t.os}`),s.push(`CPUs: ${t.cpus}`),s.push(`Memory (System): ${t.memory}`),s.push(`VM: ${t.vmHint}`),s.join(` `)}g(t){const s=[];s.push(`Version: ${this.d.nameShort} ${this.d.version} (${this.d.commit||"Commit unknown"}, ${this.d.date||"Date unknown"})`),s.push(`OS Version: ${ms.type()} ${ms.arch()} ${ms.release()}`);const i=ms.cpus();return i&&i.length>0&&s.push(`CPUs: ${i[0].model} (${i.length} x ${i[0].speed})`),s.push(`Memory (System): ${(ms.totalmem()/Nr.GB).toFixed(2)}GB (${(ms.freemem()/Nr.GB).toFixed(2)}GB free)`),me||s.push(`Load (avg): ${ms.loadavg().map(n=>Math.round(n)).join(", ")}`),s.push(`VM: ${Math.round(hg.value()*100)}%`),s.push(`Screen Reader: ${t.screenReader?"yes":"no"}`),s.push(`Process Argv: ${t.mainArguments.join(" ")}`),s.push(`GPU Status: ${this.j(t.gpuFeatureStatus)}`),s.join(` `)}async getPerformanceInfo(t,s){return Promise.all([Sg(t.mainPID),this.k(t)]).then(async i=>{let[n,r]=i,o=this.m(t,n);return s.forEach(a=>{if(f2(a))o+=` ${a.errorMessage}`,r+=` ${a.errorMessage}`;else if(o+=` Remote: ${a.hostName}`,a.processes&&(o+=` ${this.m(t,a.processes)}`),a.workspaceMetadata){r+=` | Remote: ${a.hostName}`;for(const c of Object.keys(a.workspaceMetadata)){const l=a.workspaceMetadata[c];let u=`${l.fileCount} files`;l.maxFilesReached&&(u=`more than ${u}`),r+=`| Folder (${c}): ${u}`,r+=this.h(l)}}}),{processInfo:o,workspaceInfo:r}})}async getSystemInfo(t,s){const{memory:i,vmHint:n,os:r,cpus:o}=p2(),a={os:r,memory:i,cpus:o,vmHint:n,processArgs:`${t.mainArguments.join(" ")}`,gpuStatus:t.gpuFeatureStatus,screenReader:`${t.screenReader?"yes":"no"}`,remoteData:s};return me||(a.load=`${ms.loadavg().map(c=>Math.round(c)).join(", ")}`),it&&(a.linuxEnv={desktopSession:process.env.DESKTOP_SESSION,xdgSessionDesktop:process.env.XDG_SESSION_DESKTOP,xdgCurrentDesktop:process.env.XDG_CURRENT_DESKTOP,xdgSessionType:process.env.XDG_SESSION_TYPE}),Promise.resolve(a)}async getDiagnostics(t,s){const i=[];return Sg(t.mainPID).then(async n=>(i.push(""),i.push(this.g(t)),i.push(""),i.push(this.m(t,n)),t.windows.some(r=>r.folderURIs&&r.folderURIs.length>0&&!r.remoteAuthority)&&(i.push(""),i.push("Workspace Stats: "),i.push(await this.k(t))),s.forEach(r=>{if(f2(r))i.push(` ${r.errorMessage}`);else if(i.push(` `),i.push(`Remote: ${r.hostName}`),i.push(this.f(r.machineInfo)),r.processes&&i.push(this.m(t,r.processes)),r.workspaceMetadata)for(const o of Object.keys(r.workspaceMetadata)){const a=r.workspaceMetadata[o];let c=`${a.fileCount} files`;a.maxFilesReached&&(c=`more than ${c}`),i.push(`Folder (${o}): ${c}`),i.push(this.h(a))}}),i.push(""),i.push(""),i.join(` `)))}h(t){const s=[];let n=0;const r=(l,u)=>{const h=` ${l}(${u})`;n+h.length>60?(s.push(o),o="| ",n=o.length):n+=h.length,o+=h};let o="| File types:";const a=10,c=t.fileTypes.length>a?a:t.fileTypes.length;for(let l=0;l<c;l++){const u=t.fileTypes[l];r(u.name,u.count)}if(s.push(o),t.configFiles.length>=0&&(o="| Conf files:",n=0,t.configFiles.forEach(l=>{r(l.name,l.count)}),s.push(o)),t.launchConfigFiles.length>0){let l="| Launch Configs:";t.launchConfigFiles.forEach(u=>{const h=u.count>1?` ${u.name}(${u.count})`:` ${u.name}`;l+=h}),s.push(l)}return s.join(` `)}j(t){const s=Math.max(...Object.keys(t).map(i=>i.length));return Object.keys(t).map(i=>`${i}: ${" ".repeat(s-i.length)} ${t[i]}`).join(` `)}k(t){const s=[],i=[];return t.windows.forEach(n=>{n.folderURIs.length===0||n.remoteAuthority||(s.push(`| Window (${n.title})`),n.folderURIs.forEach(r=>{const o=E.revive(r);if(o.scheme===Z.file){const a=o.fsPath;i.push(Gh(a,["node_modules",".git"]).then(c=>{let l=`${c.fileCount} files`;c.maxFilesReached&&(l=`more than ${l}`),s.push(`| Folder (${ot(a)}): ${l}`),s.push(this.h(c))}).catch(c=>{s.push(`| Error: Unable to collect workspace stats for folder ${a} (${c.toString()})`)}))}else s.push(`| Folder (${o.toString()}): Workspace stats not available.`)}))}),Promise.all(i).then(n=>s.join(` `)).catch(n=>`Unable to collect workspace stats: ${n}`)}m(t,s){const i=new Map;t.windows.forEach(r=>i.set(r.pid,`window [${r.id}] (${r.title})`)),t.pidToNames.forEach(({pid:r,name:o})=>i.set(r,o));const n=[];return n.push("CPU % Mem MB PID Process"),s&&this.n(t.mainPID,i,n,s,0),n.join(` `)}n(t,s,i,n,r){const o=r===0;let a;o?a=n.pid===t?`${this.d.applicationName} main`:"remote agent":s.has(n.pid)?a=s.get(n.pid):a=`${" ".repeat(r)} ${n.name}`;const c=process.platform==="win32"?n.mem:ms.totalmem()*(n.mem/100);i.push(`${n.load.toFixed(0).padStart(5," ")} ${(c/Nr.MB).toFixed(0).padStart(6," ")} ${n.pid.toFixed(0).padStart(6," ")} ${a}`),Array.isArray(n.children)&&n.children.forEach(l=>this.n(t,s,i,l,r+1))}async getWorkspaceFileExtensions(t){const s=new Set;for(const{uri:i}of t.folders){const n=E.revive(i);if(n.scheme!==Z.file)continue;const r=n.fsPath;try{(await Gh(r,["node_modules",".git"])).fileTypes.forEach(a=>s.add(a.name))}catch{}}return{extensions:[...s]}}async reportWorkspaceStats(t){for(const{uri:s}of t.folders){const i=E.revive(s);if(i.scheme!==Z.file)continue;const n=i.fsPath;try{const r=await Gh(n,["node_modules",".git"]);this.c.publicLog2("workspace.stats",{"workspace.id":t.telemetryId,rendererSessionId:t.rendererSessionId}),r.fileTypes.forEach(o=>{this.c.publicLog2("workspace.stats.file",{rendererSessionId:t.rendererSessionId,type:o.name,count:o.count})}),r.launchConfigFiles.forEach(o=>{this.c.publicLog2("workspace.stats.launchConfigFile",{rendererSessionId:t.rendererSessionId,type:o.name,count:o.count})}),r.configFiles.forEach(o=>{this.c.publicLog2("workspace.stats.configFiles",{rendererSessionId:t.rendererSessionId,type:o.name,count:o.count})}),this.c.publicLog2("workspace.stats.metadata",{duration:r.totalScanTime,reachedLimit:r.maxFilesReached,fileCount:r.fileCount,readdirCount:r.totalReaddirCount})}catch{}}}},Ag=__decorate([__param(0,qt),__param(1,Tt)],Ag)}}),m2,dj=v({"out-build/vs/server/node/remoteAgentEnvironmentImpl.js"(){"use strict";Q(),Hi(),te(),Wh(),Gc(),h2(),fj(),he(),kt(),m2=class bI{static{this.a=1}constructor(t,s,i,n){this.b=t,this.c=s,this.d=i,this.e=n}async call(t,s,i){switch(s){case"getEnvironmentData":{const n=i,r=Kc(n.remoteAuthority);let o=await this.f(n.profile);return o=Vn(o,r),o}case"getExtensionHostExitInfo":{const n=i;return this.e.getExitInfo(n.reconnectionToken)}case"getDiagnosticInfo":{const n=i,r={machineInfo:p2()},o=n.includeProcesses?Sg(process.pid):Promise.resolve();let a=[];const c={};if(n.folders){const l=Kc("");a=n.folders.map(h=>E.revive(l.transformIncoming(h))).filter(h=>h.scheme==="file").map(h=>Gh(h.fsPath,["node_modules",".git"]).then(d=>{c[ot(h.fsPath)]=d}))}return Promise.all([o,...a]).then(([l,u])=>(r.processes=l||void 0,r.workspaceMetadata=n.folders?c:void 0,r))}}throw new Error(`IPC Command ${s} not found`)}listen(t,s,i){throw new Error("Not supported")}async f(t){t&&!this.d.profiles.some(i=>i.id===t)&&await this.d.createProfile(t,t);let s=!1;if(process.platform==="linux"){const i=process.glibcVersion;s=(i?parseInt(i.split(".")[1]):28)<=27}return{pid:process.pid,connectionToken:this.b.type!==0?this.b.value:"",appRoot:E.file(this.c.appRoot),settingsPath:this.c.machineSettingsResource,logsPath:this.c.logsHome,extensionHostLogsPath:ne(this.c.logsHome,`exthost${bI.a++}`),globalStorageHome:this.d.defaultProfile.globalStorageHome,workspaceStorageHome:this.c.workspaceStorageHome,localHistoryHome:this.c.localHistoryHome,userHome:this.c.userHome,os:fr,arch:process.arch,marks:Dv(),useHostProxy:!!this.c.args["use-host-proxy"],profiles:{home:this.d.profilesHome,all:[...this.d.profiles].map(i=>({...i}))},isUnsupportedGlibc:s}}}}}),g2,w2,pj=v({"out-build/vs/platform/files/node/diskFileSystemProviderServer.js"(){"use strict";ae(),Eh(),H(),Ue(),za(),Dt(),g2=class extends J{constructor(e,t){super(),this.a=e,this.b=t,this.F=new Map,this.G=new Map}call(e,t,s){const i=this.c(e);switch(t){case"stat":return this.g(i,s[0]);case"readdir":return this.h(i,s[0]);case"open":return this.r(i,s[0],s[1]);case"close":return this.s(s[0]);case"read":return this.t(s[0],s[1],s[2]);case"readFile":return this.j(i,s[0],s[1]);case"write":return this.u(s[0],s[1],s[2],s[3],s[4]);case"writeFile":return this.n(i,s[0],s[1],s[2]);case"rename":return this.z(i,s[0],s[1],s[2]);case"copy":return this.C(i,s[0],s[1],s[2]);case"cloneFile":return this.D(i,s[0],s[1]);case"mkdir":return this.w(i,s[0]);case"delete":return this.y(i,s[0],s[1]);case"watch":return this.I(i,s[0],s[1],s[2],s[3]);case"unwatch":return this.J(s[0],s[1])}throw new Error(`IPC Command ${t} not found`)}listen(e,t,s){const i=this.c(e);switch(t){case"fileChange":return this.H(i,s[0]);case"readFileStream":return this.m(i,s[0],s[1])}throw new Error(`Unknown event ${t}`)}g(e,t){const s=this.f(e,t,!0);return this.a.stat(s)}h(e,t){const s=this.f(e,t);return this.a.readdir(s)}async j(e,t,s){const i=this.f(e,t,!0),n=await this.a.readFile(i,s);return O.wrap(n)}m(e,t,s){const i=this.f(e,t,!0),n=new vi,r=new D({onDidRemoveLastListener:()=>{n.cancel()}}),o=this.a.readFileStream(i,s,n.token);return gu(o,{onData:a=>r.fire(O.wrap(a)),onError:a=>r.fire(a),onEnd:()=>{r.fire("end"),r.dispose(),n.dispose()}}),r.event}n(e,t,s,i){const n=this.f(e,t);return this.a.writeFile(n,s.buffer,i)}r(e,t,s){const i=this.f(e,t,!0);return this.a.open(i,s)}s(e){return this.a.close(e)}async t(e,t,s){const i=O.alloc(s),r=await this.a.read(e,t,i.buffer,0,s);return[i,r]}u(e,t,s,i,n){return this.a.write(e,t,s.buffer,i,n)}w(e,t){const s=this.f(e,t);return this.a.mkdir(s)}y(e,t,s){const i=this.f(e,t);return this.a.delete(i,s)}z(e,t,s,i){const n=this.f(e,t),r=this.f(e,s);return this.a.rename(n,r,i)}C(e,t,s,i){const n=this.f(e,t),r=this.f(e,s);return this.a.copy(n,r,i)}D(e,t,s){const i=this.f(e,t),n=this.f(e,s);return this.a.cloneFile(i,n)}H(e,t){const s=new D({onWillAddFirstListener:()=>{this.F.set(t,this.L(e,s))},onDidRemoveLastListener:()=>{jt(this.F.get(t)),this.F.delete(t)}});return s.event}async I(e,t,s,i,n){const r=this.F.get(t);if(r){const o=this.f(e,i),a=r.watch(s,o,n);this.G.set(t+s,a)}}async J(e,t){const s=e+t,i=this.G.get(s);i&&(jt(i),this.G.delete(s))}dispose(){super.dispose();for(const[,e]of this.G)e.dispose();this.G.clear();for(const[,e]of this.F)e.dispose();this.F.clear()}},w2=class extends J{constructor(e,t,s,i){super(),this.c=e,this.f=s,this.g=i,this.a=new Map,this.b=this.B(new Fc(this.f)),this.h(t)}h(e){const t=this.B(new D);this.B(t.event(s=>{e.fire(s.map(i=>({resource:this.c.transformOutgoingURI(i.resource),type:i.type,cId:i.cId})))})),this.B(this.b.onDidChangeFile(s=>t.fire(s))),this.B(this.b.onDidWatchError(s=>e.fire(s)))}j(e){}m(e){}watch(e,t,s){const i=this.m(this.g);return Array.isArray(i)&&(s.excludes=[...s.excludes,...i]),this.a.set(e,this.b.watch(t,s)),ve(()=>{jt(this.a.get(e)),this.a.delete(e)})}dispose(){for(const[,e]of this.a)e.dispose();this.a.clear(),super.dispose()}}}}),v2,b2,mj=v({"out-build/vs/server/node/remoteFileSystemProviderServer.js"(){"use strict";te(),Wh(),Eh(),he(),pj(),v2=class extends g2{constructor(e,t,s){super(new Fc(e),e),this.N=t,this.O=s,this.M=new Map,this.B(this.a)}c(e){let t=this.M.get(e.remoteAuthority);return t||(t=Kc(e.remoteAuthority),this.M.set(e.remoteAuthority,t)),t}f(e,t,s=!1){if(s&&t.path==="/vscode-resource"&&t.query){const i=JSON.parse(t.query).requestResourcePath;return E.from({scheme:"file",path:i})}return E.revive(e.transformIncoming(t))}L(e,t){return new b2(e,t,this.b,this.N,this.O)}},b2=class extends w2{constructor(e,t,s,i,n){super(e,t,s,i)}j(e){const t=e.args["file-watcher-polling"];if(t){const s=t.split(oo),i=Number(s[0]);if(i>0)return{usePolling:s.length>1?s.slice(1):!0,pollingInterval:i}}}m(e){if(e.extensionsPath)return[Se.join(e.extensionsPath,"**")]}}}}),y2,gj=v({"out-build/vs/platform/telemetry/common/remoteTelemetryChannel.js"(){"use strict";H(),y2=class extends J{constructor(e,t){super(),this.a=e,this.b=t}async call(e,t,s){switch(t){case"updateTelemetryLevel":{const{telemetryLevel:i}=s;return this.a.updateInjectedTelemetryLevel(i)}case"logTelemetry":{const{eventName:i,data:n}=s;return this.b?this.b.log(i,n):Promise.resolve()}case"flushTelemetry":return this.b?this.b.flush():Promise.resolve();case"ping":return}throw new Error(`IPC Command ${t} not found`)}listen(e,t,s){throw new Error("Not supported")}dispose(){this.a.updateInjectedTelemetryLevel(0),super.dispose()}}}});function wj(){const e=m(2080,null,Bt.nameLong),t=Bt.privacyStatementUrl?m(2082,null,"https://aka.ms/vscode-telemetry",Bt.privacyStatementUrl):m(2081,null,"https://aka.ms/vscode-telemetry"),s=Bs?"":m(2083,null),i=m(2084,null),n=m(2085,null),r=m(2086,null),o=m(2087,null),a=` | | ${i} | ${n} | ${r} | |:------|:---------------------:|:---------------:|:--------------:| | all | \u2713 | \u2713 | \u2713 | | error | \u2713 | \u2713 | - | | crash | \u2713 | - | - | | off | - | - | - | `,c=m(2088,null);return` ${e} ${t} ${s} ${o} ${a} ${c} `}var Jh,vj=v({"out-build/vs/platform/telemetry/common/telemetryService.js"(){"use strict";H(),Kt(),Q(),rt(),pe(),$s(),So(),Cc(),js(),rn(),Is(),on(),Jh=class{static{this.IDLE_START_EVENT_NAME="UserIdleStart"}static{this.IDLE_STOP_EVENT_NAME="UserIdleStop"}constructor(t,s,i){this.k=s,this.l=i,this.d={},this.i=new lt,this.j=[],this.b=t.appenders,this.c=t.commonProperties??Object.create(null),this.sessionId=this.c.sessionID,this.machineId=this.c["common.machineId"],this.sqmId=this.c["common.sqmId"],this.devDeviceId=this.c["common.devDeviceId"],this.firstSessionDate=this.c["common.firstSessionDate"],this.msftInternal=this.c["common.msftInternal"],this.f=t.piiPaths||[],this.g=3,this.h=!!t.sendErrorTelemetry,this.j=[/(vscode-)?file:\/\/\/.*?\/resources\/app\//gi];for(const n of this.f)this.j.push(new RegExp(Sn(n),"gi")),n.indexOf("\\")>=0&&this.j.push(new RegExp(Sn(n.replace(/\\/g,"/")),"gi"));this.m(),this.i.add(this.k.onDidChangeConfiguration(n=>{(n.affectsConfiguration(mc)||n.affectsConfiguration(Bu)||n.affectsConfiguration(B1))&&this.m()}))}setExperimentProperty(t,s){this.d[t]=s}m(){let t=O5(this.k);const s=this.l.enabledTelemetryLevels;if(s){this.h=this.sendErrorTelemetry?s.error:!1;const i=s.usage?3:s.error?2:0;t=Math.min(t,i)}this.g=t}get sendErrorTelemetry(){return this.h}get telemetryLevel(){return this.g}dispose(){this.i.dispose()}n(t,s,i){this.g<s||(i=xo(i,this.d),i=z1(i,this.j),i=xo(i,this.c),this.b.forEach(n=>n.log(t,i)))}publicLog(t,s){this.n(t,3,s)}publicLog2(t,s){this.publicLog(t,s)}publicLogError(t,s){this.h&&this.n(t,2,s)}publicLogError2(t,s){this.publicLogError(t,s)}},Jh=__decorate([__param(1,hs),__param(2,Tt)],Jh),_t.as(Ss.Configuration).registerConfiguration({id:F1,order:1,type:"object",title:m(2089,null),properties:{[mc]:{type:"string",enum:["all","error","crash","off"],enumDescriptions:[m(2090,null),m(2091,null),m(2092,null),m(2093,null)],markdownDescription:wj(),default:"all",restricted:!0,scope:1,tags:["usesOnlineServices","telemetry"]}}}),_t.as(Ss.Configuration).registerConfiguration({id:F1,order:110,type:"object",title:m(2094,null),properties:{[Bu]:{type:"boolean",markdownDescription:Bt.privacyStatementUrl?m(2096,null,Bt.nameLong,Bt.privacyStatementUrl):m(2095,null,Bt.nameLong),default:!0,restricted:!0,markdownDeprecationMessage:m(2097,null,`\`#${mc}#\``),scope:1,tags:["usesOnlineServices","telemetry"]}}})}}),Xh,E2,Yh,bj=v({"out-build/vs/platform/telemetry/common/serverTelemetryService.js"(){"use strict";$s(),re(),js(),Is(),vj(),on(),Xh=class extends Jh{constructor(t,s,i,n){super(t,i,n),this.o=s}publicLog(t,s){if(!(this.o<3))return super.publicLog(t,s)}publicLog2(t,s){return this.publicLog(t,s)}publicLogError(t,s){return this.o<2?Promise.resolve(void 0):super.publicLogError(t,s)}publicLogError2(t,s){return this.publicLogError(t,s)}async updateInjectedTelemetryLevel(t){if(t===void 0)throw this.o=0,new Error("Telemetry level cannot be undefined. This will cause infinite looping!");this.o=this.o?Math.min(this.o,t):t,this.o===0&&this.dispose()}},Xh=__decorate([__param(2,hs),__param(3,Tt)],Xh),E2=new class extends H1{async updateInjectedTelemetryLevel(){}},Yh=qt}}),yj,x2,k2,$2,Ej,xj,kj,$j,Sj=v({"out-build/vs/base/common/naturalLanguage/korean.js"(){"use strict";yj=new Uint32Array(10),function(e){e[e.InitialConsonant=4352]="InitialConsonant",e[e.Vowel=4449]="Vowel",e[e.FinalConsonant=4520]="FinalConsonant",e[e.CompatibilityJamo=12593]="CompatibilityJamo"}(x2||(x2={})),function(e){e[e.NUL=0]="NUL",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z"}(k2||(k2={})),function(e){e[e.fa=24934]="fa",e[e.fg=26470]="fg",e[e.fq=29030]="fq",e[e.fr=29286]="fr",e[e.ft=29798]="ft",e[e.fv=30310]="fv",e[e.fx=30822]="fx",e[e.hk=27496]="hk",e[e.hl=27752]="hl",e[e.ho=28520]="ho",e[e.ml=27757]="ml",e[e.nj=27246]="nj",e[e.nl=27758]="nl",e[e.np=28782]="np",e[e.qt=29809]="qt",e[e.rt=29810]="rt",e[e.sg=26483]="sg",e[e.sw=30579]="sw"}($2||($2={})),Ej=new Uint8Array([114,82,115,101,69,102,97,113,81,116,84,100,119,87,99,122,120,118,103]),xj=new Uint16Array([107,111,105,79,106,112,117,80,104,27496,28520,27752,121,110,27246,28782,27758,98,109,27757,108]),kj=new Uint16Array([114,82,29810,115,30579,26483,101,102,29286,24934,29030,29798,30822,30310,26470,97,113,29809,116,84,100,119,99,122,120,118,103]),$j=new Uint16Array([114,82,29810,115,30579,26483,101,69,102,29286,24934,29030,29798,30822,30310,26470,97,113,81,29809,116,84,100,119,87,99,122,120,118,103,107,111,105,79,106,112,117,80,104,27496,28520,27752,121,110,27246,28782,27758,98,109,27757,108])}});function S2(...e){return function(t,s){for(let i=0,n=e.length;i<n;i++){const r=e[i](t,s);if(r)return r}return null}}function P2(e,t,s){if(!s||s.length<t.length)return null;let i;return e?i=Lp(s,t):i=s.indexOf(t)===0,i?t.length>0?[{start:0,end:t.length}]:[]:null}function Pj(e,t){const s=t.toLowerCase().indexOf(e.toLowerCase());return s===-1?null:[{start:s,end:s+e.length}]}function Ij(e,t){return Dg(e.toLowerCase(),t.toLowerCase(),0,0)}function Dg(e,t,s,i){if(s===e.length)return[];if(i===t.length)return null;if(e[s]===t[i]){let n=null;return(n=Dg(e,t,s+1,i+1))?A2({start:i,end:i+1},n):null}return Dg(e,t,s,i+1)}function Ng(e){return 97<=e&&e<=122}function Qh(e){return 65<=e&&e<=90}function Rg(e){return 48<=e&&e<=57}function Aj(e){return e===32||e===9||e===10||e===13}function I2(e){return Ng(e)||Qh(e)||Rg(e)}function A2(e,t){return t.length===0?t=[e]:e.end===t[0].start?t[0].start=e.start:t.unshift(e),t}function D2(e,t){for(let s=t;s<e.length;s++){const i=e.charCodeAt(s);if(Qh(i)||Rg(i)||s>0&&!I2(e.charCodeAt(s-1)))return s}return e.length}function Lg(e,t,s,i){if(s===e.length)return[];if(i===t.length)return null;if(e[s]!==t[i].toLowerCase())return null;{let n=null,r=i+1;for(n=Lg(e,t,s+1,i+1);!n&&(r=D2(t,r))<t.length;)n=Lg(e,t,s+1,r),r++;return n===null?null:A2({start:i,end:i+1},n)}}function Dj(e){let t=0,s=0,i=0,n=0,r=0;for(let u=0;u<e.length;u++)r=e.charCodeAt(u),Qh(r)&&t++,Ng(r)&&s++,I2(r)&&i++,Rg(r)&&n++;const o=t/e.length,a=s/e.length,c=i/e.length,l=n/e.length;return{upperPercent:o,lowerPercent:a,alphaPercent:c,numericPercent:l}}function Nj(e){const{upperPercent:t,lowerPercent:s}=e;return s===0&&t>.6}function Rj(e){const{upperPercent:t,lowerPercent:s,alphaPercent:i,numericPercent:n}=e;return s>.2&&t<.8&&i>.6&&n<.2}function Lj(e){let t=0,s=0,i=0,n=0;for(let r=0;r<e.length;r++)i=e.charCodeAt(r),Qh(i)&&t++,Ng(i)&&s++,Aj(i)&&n++;return(t===0||s===0)&&n===0?e.length<=30:t<=5}function N2(e,t){if(!t||(t=t.trim(),t.length===0)||!Lj(e))return null;t.length>60&&(t=t.substring(0,60));const s=Dj(t);if(!Rj(s)){if(!Nj(s))return null;t=t.toLowerCase()}let i=null,n=0;for(e=e.toLowerCase();n<t.length&&(i=Lg(e,t,0,n))===null;)n=D2(t,n+1);return i}function Og(){const e=[],t=[];for(let s=0;s<=el;s++)t[s]=0;for(let s=0;s<=el;s++)e.push(t.slice(0));return e}function R2(e){const t=[];for(let s=0;s<=e;s++)t[s]=0;return t}var Oj,Cg,L2,Cj,jj,_j,el,Tj,Mj,Uj,Fj,Bj,O2,C2,zj,Hj=v({"out-build/vs/base/common/filters.js"(){"use strict";as(),Sj(),rt(),Oj=P2.bind(void 0,!1),Cg=P2.bind(void 0,!0),L2=new Set,"()[]{}<>`'\"-/;:,.?!".split("").forEach(e=>L2.add(e.charCodeAt(0))),Cj=S2(Cg,N2,Pj),jj=S2(Cg,N2,Ij),_j=new _a(1e4),el=128,Tj=R2(2*el),Mj=R2(2*el),Uj=Og(),Fj=Og(),Bj=Og(),function(e){e[e.Diag=1]="Diag",e[e.Left=2]="Left",e[e.LeftLeft=3]="LeftLeft"}(O2||(O2={})),function(e){e.Default=[-100,0];function t(s){return!s||s.length===2&&s[0]===-100&&s[1]===0}e.isDefault=t}(C2||(C2={})),zj=class{static{this.default={boostFullMatch:!0,firstMatchCanBeWeak:!1}}constructor(e,t){this.firstMatchCanBeWeak=e,this.boostFullMatch=t}}}});function Vj(e){return e.replace(j2,(t,s)=>s?t:`\\${t}`)}var Zh,j2,Wj,qj,Gj,Jj=v({"out-build/vs/base/common/iconLabels.js"(){"use strict";Hj(),rt(),Fh(),Zh=new RegExp(`\\$\\(${Wn.iconNameExpression}(?:${Wn.iconModifierExpression})?\\)`,"g"),j2=new RegExp(`(\\\\)?${Zh.source}`,"g"),Wj=new RegExp(`\\\\${Zh.source}`,"g"),qj=new RegExp(`(\\s)?(\\\\)?${Zh.source}(\\s)?`,"g"),Gj=new RegExp(`\\$\\(${Wn.iconNameCharacter}+\\)`,"g")}});function tl(e){return e instanceof jg?!0:e&&typeof e=="object"?typeof e.value=="string"&&(typeof e.isTrusted=="boolean"||typeof e.isTrusted=="object"||e.isTrusted===void 0)&&(typeof e.supportThemeIcons=="boolean"||e.supportThemeIcons===void 0):!1}function Xj(e){return e.replace(/[\\`*_{}[\]()#+\-!~]/g,"\\$&")}function Yj(e,t){const s=e.match(/^`+/gm)?.reduce((n,r)=>n.length>r.length?n:r).length??0,i=s>=3?s+1:3;return[`${"`".repeat(i)}${t}`,e,`${"`".repeat(i)}`].join(` `)}function Qj(e){const t=[],s=e.split("|").map(n=>n.trim());e=s[0];const i=s[1];if(i){const n=/height=(\d+)/.exec(i),r=/width=(\d+)/.exec(i),o=n?n[1]:"",a=r?r[1]:"",c=isFinite(parseInt(a)),l=isFinite(parseInt(o));c&&t.push(`width="${a}"`),l&&t.push(`height="${o}"`)}return{href:e,dimensions:t}}var _2,jg,_g=v({"out-build/vs/base/common/htmlContent.js"(){"use strict";de(),Jj(),kt(),rt(),te(),function(e){e[e.Paragraph=0]="Paragraph",e[e.Break=1]="Break"}(_2||(_2={})),jg=class{constructor(e="",t=!1){if(this.value=e,typeof this.value!="string")throw je("value");typeof t=="boolean"?(this.isTrusted=t,this.supportThemeIcons=!1,this.supportHtml=!1):(this.isTrusted=t.isTrusted??void 0,this.supportThemeIcons=t.supportThemeIcons??!1,this.supportHtml=t.supportHtml??!1)}appendText(e,t=0){return this.value+=Xj(this.supportThemeIcons?Vj(e):e).replace(/([ \t]+)/g,(s,i)=>" ".repeat(i.length)).replace(/\>/gm,"\\>").replace(/\n/g,t===1?`\\ `:` `),this}appendMarkdown(e){return this.value+=e,this}appendCodeblock(e,t){return this.value+=` ${Yj(t,e)} `,this}appendLink(e,t,s){return this.value+="[",this.value+=this.c(t,"]"),this.value+="](",this.value+=this.c(String(e),")"),s&&(this.value+=` "${this.c(this.c(s,'"'),")")}"`),this.value+=")",this}c(e,t){const s=new RegExp(Sn(t),"g");return e.replace(s,(i,n)=>e.charAt(n-1)!=="\\"?`\\${i}`:i)}}}});function Zj(e){const t=wr(e);return M2[t.toLowerCase()]}function T2(e,t){const s=U2.exec(e);return s?`${s[1].toLowerCase()}/${s[2].toLowerCase()}${s[3]??""}`:t?void 0:e}var Ii,M2,U2,Kh=v({"out-build/vs/base/common/mime.js"(){"use strict";he(),Ii=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"}),M2={".aac":"audio/x-aac",".avi":"video/x-msvideo",".bmp":"image/bmp",".flv":"video/x-flv",".gif":"image/gif",".ico":"image/x-icon",".jpe":"image/jpg",".jpeg":"image/jpg",".jpg":"image/jpg",".m1v":"video/mpeg",".m2a":"audio/mpeg",".m2v":"video/mpeg",".m3a":"audio/mpeg",".mid":"audio/midi",".midi":"audio/midi",".mk3d":"video/x-matroska",".mks":"video/x-matroska",".mkv":"video/x-matroska",".mov":"video/quicktime",".movie":"video/x-sgi-movie",".mp2":"audio/mpeg",".mp2a":"audio/mpeg",".mp3":"audio/mpeg",".mp4":"video/mp4",".mp4a":"audio/mp4",".mp4v":"video/mp4",".mpe":"video/mpeg",".mpeg":"video/mpeg",".mpg":"video/mpeg",".mpg4":"video/mp4",".mpga":"audio/mpeg",".oga":"audio/ogg",".ogg":"audio/ogg",".opus":"audio/opus",".ogv":"video/ogg",".png":"image/png",".psd":"image/vnd.adobe.photoshop",".qt":"video/quicktime",".spx":"audio/ogg",".svg":"image/svg+xml",".tga":"image/x-tga",".tif":"image/tiff",".tiff":"image/tiff",".wav":"audio/x-wav",".webm":"video/webm",".webp":"image/webp",".wma":"audio/x-ms-wma",".wmv":"video/x-ms-wmv",".woff":"application/font-woff"},U2=/^(.+)\/(.+?)(;.+)?$/}}),F2,B2,z2,H2=v({"out-build/vs/platform/remote/common/remoteAuthorityResolver.js"(){"use strict";de(),re(),F2=ie("remoteAuthorityResolverService"),function(e){e[e.WebSocket=0]="WebSocket",e[e.Managed=1]="Managed"}(B2||(B2={})),function(e){e.Unknown="Unknown",e.NotAvailable="NotAvailable",e.TemporarilyNotAvailable="TemporarilyNotAvailable",e.NoResolverFound="NoResolverFound",e.InvalidAuthority="InvalidAuthority"}(z2||(z2={}))}});function V2(e){if(e.scheme!==Z.vscodeNotebookCell)return;const t=e.fragment.indexOf("s");if(t<0)return;const s=parseInt(e.fragment.substring(0,t).replace(q2,""),Tg),i=wy(e.fragment.substring(t+1)).toString();if(!isNaN(s))return{handle:s,notebook:e.with({scheme:i,fragment:null})}}function Kj(e,t){const s=t.toString(Tg),n=`${s.length<ef.length?ef[s.length-1]:"z"}${s}s${Gp(O.fromString(e.scheme),!0,!0)}`;return e.with({scheme:Z.vscodeNotebookCell,fragment:n})}function e_(e){if(e.scheme!==Z.vscodeNotebookMetadata)return;const t=wy(e.fragment).toString();return e.with({scheme:t,fragment:null})}function t_(e){const t=`${Gp(O.fromString(e.scheme),!0,!0)}`;return e.with({scheme:Z.vscodeNotebookMetadata,fragment:t})}var W2,ef,q2,Tg,G2,s_=v({"out-build/vs/workbench/services/notebook/common/notebookDocumentService.js"(){"use strict";Ue(),as(),Ie(),d7(),re(),W2=ie("notebookDocumentService"),ef=["W","X","Y","Z","a","b","c","d","e","f"],q2=new RegExp(`^[${ef.join("")}]+`),Tg=7,G2=class{constructor(){this.a=new At}getNotebook(e){if(e.scheme===Z.vscodeNotebookCell){const t=V2(e);if(t){const s=this.a.get(t.notebook);if(s)return s}}return this.a.get(e)}addNotebookDocument(e){this.a.set(e.uri,e)}removeNotebookDocument(e){this.a.delete(e.uri)}},u7(W2,G2,1)}});function i_(e){return["application/vnd.code.notebook.stdout","application/vnd.code.notebook.stderr"].includes(e)}var Ko,n_,r_,J2,sl,X2,Y2,Q2,Z2,K2,eE,tE,sE,o_,a_,iE,nE,rE,c_,l_,oE,u_,h_,f_,aE=v({"out-build/vs/workbench/contrib/notebook/common/notebookCommon.js"(){"use strict";Ue(),Tm(),dr(),Kh(),Ie(),he(),Q(),po(),s_(),function(e){e[e.Markup=1]="Markup",e[e.Code=2]="Code"}(Ko||(Ko={})),n_=["application/json","application/javascript","text/html","image/svg+xml",Ii.latex,Ii.markdown,"image/png","image/jpeg",Ii.text],r_=[Ii.latex,Ii.markdown,"application/json","text/html","image/svg+xml","image/png","image/jpeg",Ii.text],function(e){e[e.Running=1]="Running",e[e.Idle=2]="Idle"}(J2||(J2={})),function(e){e[e.Unconfirmed=1]="Unconfirmed",e[e.Pending=2]="Pending",e[e.Executing=3]="Executing"}(sl||(sl={})),function(e){e[e.Unconfirmed=1]="Unconfirmed",e[e.Pending=2]="Pending",e[e.Executing=3]="Executing"}(X2||(X2={})),function(e){e[e.WithHardKernelDependency=0]="WithHardKernelDependency",e[e.WithOptionalKernelDependency=1]="WithOptionalKernelDependency",e[e.Pure=2]="Pure",e[e.Never=3]="Never"}(Y2||(Y2={})),function(e){e.Always="always",e.Never="never",e.Optional="optional"}(Q2||(Q2={})),function(e){e[e.ModelChange=1]="ModelChange",e[e.Move=2]="Move",e[e.ChangeCellLanguage=5]="ChangeCellLanguage",e[e.Initialize=6]="Initialize",e[e.ChangeCellMetadata=7]="ChangeCellMetadata",e[e.Output=8]="Output",e[e.OutputItem=9]="OutputItem",e[e.ChangeCellContent=10]="ChangeCellContent",e[e.ChangeDocumentMetadata=11]="ChangeDocumentMetadata",e[e.ChangeCellInternalMetadata=12]="ChangeCellInternalMetadata",e[e.ChangeCellMime=13]="ChangeCellMime",e[e.Unknown=100]="Unknown"}(Z2||(Z2={})),function(e){e[e.Handle=0]="Handle",e[e.Index=1]="Index"}(K2||(K2={})),function(e){e[e.Replace=1]="Replace",e[e.Output=2]="Output",e[e.Metadata=3]="Metadata",e[e.CellLanguage=4]="CellLanguage",e[e.DocumentMetadata=5]="DocumentMetadata",e[e.Move=6]="Move",e[e.OutputItems=7]="OutputItems",e[e.PartialMetadata=8]="PartialMetadata",e[e.PartialInternalMetadata=9]="PartialInternalMetadata"}(eE||(eE={})),function(e){e.scheme=Z.vscodeNotebookMetadata;function t(i){return t_(i)}e.generate=t;function s(i){return e_(i)}e.parse=s}(tE||(tE={})),function(e){e.scheme=Z.vscodeNotebookCell;function t(a,c){return Kj(a,c)}e.generate=t;function s(a){return V2(a)}e.parse=s;function i(a,c){return a.with({scheme:Z.vscodeNotebookCellOutput,fragment:`op${c??""},${a.scheme!==Z.file?a.scheme:""}`})}e.generateCellOutputUri=i;function n(a){if(a.scheme!==Z.vscodeNotebookCellOutput)return;const c=/^op([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})?\,(.*)$/i.exec(a.fragment);if(!c)return;const l=c[1]&&c[1]!==""?c[1]:void 0,u=c[2];return{outputId:l,notebook:a.with({scheme:u||Z.file,fragment:null})}}e.parseCellOutputUri=n;function r(a,c,l){return e.generate(a,c).with({scheme:l})}e.generateCellPropertyUri=r;function o(a,c){if(a.scheme===c)return e.parse(a.with({scheme:e.scheme}))}e.parseCellPropertyUri=o}(sE||(sE={})),o_=new Ae("notebookEditorCursorAtBoundary","none"),a_=new Ae("notebookEditorCursorAtLineBoundary","none"),function(e){e.default="default",e.option="option"}(iE||(iE={})),function(e){e.Cells="cells",e.Text="text",e.None="none"}(nE||(nE={})),function(e){e[e.Left=1]="Left",e[e.Right=2]="Right"}(rE||(rE={})),c_=class sp{static{this.d="notebook/"}static create(t,s){return`${sp.d}${t}/${s??t}`}static parse(t){if(t.startsWith(sp.d)){const s=t.substring(sp.d.length).split("/");if(s.length===2)return{notebookType:s[0],viewType:s[1]}}}},l_=new TextDecoder,oE="\x1B[A",u_=oE.split("").map(e=>e.charCodeAt(0)),h_=8,f_=13}});function B(e){return Object.assign(e,{apply:function(...s){if(s.length===0)return Reflect.construct(e,[]);{const i=s.length===1?[]:s[1];return Reflect.construct(e,i,s[0].constructor)}},call:function(...s){if(s.length===0)return Reflect.construct(e,[]);{const[i,...n]=s;return Reflect.construct(e,n,i.constructor)}}})}function cE(e){return e.isEmpty?`[${e.start.line}:${e.start.character})`:`[${e.start.line}:${e.start.character} -> ${e.end.line}:${e.end.character})`}function d_(e){let t=cE(e);return e.isEmpty||(e.active.isEqual(e.start)?t=`|${t}`:t=`${t}|`),t}function lE(e){let t="";for(let s=0;s<e.length;s++)t+=e[s].replace(/,/g,",,")+",";return t}function tf(e){if(e){if(e.covered>e.total)throw new Error(`The total number of covered items (${e.covered}) cannot be greater than the total (${e.total})`);if(e.total<0)throw new Error(`The number of covered items (${e.total}) cannot be negative`)}}var Mg,jr,pn,Ug,_r,Gn,Tr,Fg,Bg,sf,il,zg,Ai,Di,Hg,gs,Vg,uE,hE,nl,Ne,Ke,rl,ea,fE,Mr,nf,Wg,dE,ol,ta,sa,_s,mn,al,rf,of,af,pE,cf,lf,uf,Fe,hf,ff,df,pf,qg,tt,mf,Gg,mE,gE,wE,Jg,gn,Xg,Yg,Qg,vE,bE,gf,wf,cl,X,vf,bf,Zg,Kg,e0,ia,yf,yE,Ni,ll,EE,Ef,xE,na,xf,kf,ul,t0,$f,kE,$E,SE,PE,IE,AE,DE,s0,Sf,Pf,NE,If,RE,i0,hl,LE,n0,fl,Af,Df,Nf,OE,CE,Rf,r0,jE,o0,Jn,a0,_E,ra,TE,oa,c0,l0,u0,h0,f0,d0,p0,Lf,ME,Of,Cf,jf,_f,UE,FE,BE,m0,g0,Xn,zE,HE,VE,WE,qE,GE,JE,XE,w0,YE,QE,ZE,v0,KE,Ur,b0,ex,tx,sx,aa,Tf,y0,ix,nx,rx,ox,ax,E0,cx,lx,ca,ux,hx,x0,Mf,dl,Uf,fx,dx,px,mx,gx,wx,vx,k0,bx,yx,Ex,Ff,xx,kx,$0,S0,P0,$x,I0,A0,D0,N0,R0,L0,O0,Sx,C0,j0,Js,Px,Ix,Ri,_0,Ax,T0,Xs,la,M0,Dx,Nx,Rx,Lx,Ox,Cx,U0=v({"out-build/vs/workbench/api/common/extHostTypes.js"(){"use strict";Et(),de(),_g(),as(),Kh(),rt(),xe(),te(),Wt(),$i(),et(),H2(),aE(),function(e){e[e.Top=0]="Top",e[e.Bottom=1]="Bottom"}(uE||(uE={})),function(e){e[e.TerminalCommand=0]="TerminalCommand",e[e.Opener=1]="Opener",e[e.Command=3]="Command"}(hE||(hE={})),nl=Mg=class{static from(...t){let s=t;return new Mg(function(){if(s){for(const i of s)i&&typeof i.dispose=="function"&&i.dispose();s=void 0}})}#e;constructor(t){this.#e=t}dispose(){typeof this.#e=="function"&&(this.#e(),this.#e=void 0)}},nl=Mg=__decorate([B],nl),Ne=jr=class{static Min(...t){if(t.length===0)throw new TypeError;let s=t[0];for(let i=1;i<t.length;i++){const n=t[i];n.isBefore(s)&&(s=n)}return s}static Max(...t){if(t.length===0)throw new TypeError;let s=t[0];for(let i=1;i<t.length;i++){const n=t[i];n.isAfter(s)&&(s=n)}return s}static isPosition(t){if(!t)return!1;if(t instanceof jr)return!0;const{line:s,character:i}=t;return typeof s=="number"&&typeof i=="number"}static of(t){if(t instanceof jr)return t;if(this.isPosition(t))return new jr(t.line,t.character);throw new Error("Invalid argument, is NOT a position-like object")}get line(){return this.c}get character(){return this.e}constructor(t,s){if(t<0)throw je("line must be non-negative");if(s<0)throw je("character must be non-negative");this.c=t,this.e=s}isBefore(t){return this.c<t.c?!0:t.c<this.c?!1:this.e<t.e}isBeforeOrEqual(t){return this.c<t.c?!0:t.c<this.c?!1:this.e<=t.e}isAfter(t){return!this.isBeforeOrEqual(t)}isAfterOrEqual(t){return!this.isBefore(t)}isEqual(t){return this.c===t.c&&this.e===t.e}compareTo(t){return this.c<t.c?-1:this.c>t.line?1:this.e<t.e?-1:this.e>t.e?1:0}translate(t,s=0){if(t===null||s===null)throw je();let i;return typeof t>"u"?i=0:typeof t=="number"?i=t:(i=typeof t.lineDelta=="number"?t.lineDelta:0,s=typeof t.characterDelta=="number"?t.characterDelta:0),i===0&&s===0?this:new jr(this.line+i,this.character+s)}with(t,s=this.character){if(t===null||s===null)throw je();let i;return typeof t>"u"?i=this.line:typeof t=="number"?i=t:(i=typeof t.line=="number"?t.line:this.line,s=typeof t.character=="number"?t.character:this.character),i===this.line&&s===this.character?this:new jr(i,s)}toJSON(){return{line:this.line,character:this.character}}[Symbol.for("debug.description")](){return`(${this.line}:${this.character})`}},Ne=jr=__decorate([B],Ne),Ke=pn=class{static isRange(t){return t instanceof pn?!0:t?Ne.isPosition(t.start)&&Ne.isPosition(t.end):!1}static of(t){if(t instanceof pn)return t;if(this.isRange(t))return new pn(t.start,t.end);throw new Error("Invalid argument, is NOT a range-like object")}get start(){return this.c}get end(){return this.e}constructor(t,s,i,n){let r,o;if(typeof t=="number"&&typeof s=="number"&&typeof i=="number"&&typeof n=="number"?(r=new Ne(t,s),o=new Ne(i,n)):Ne.isPosition(t)&&Ne.isPosition(s)&&(r=Ne.of(t),o=Ne.of(s)),!r||!o)throw new Error("Invalid arguments");r.isBefore(o)?(this.c=r,this.e=o):(this.c=o,this.e=r)}contains(t){return pn.isRange(t)?this.contains(t.start)&&this.contains(t.end):Ne.isPosition(t)?!(Ne.of(t).isBefore(this.c)||this.e.isBefore(t)):!1}isEqual(t){return this.c.isEqual(t.c)&&this.e.isEqual(t.e)}intersection(t){const s=Ne.Max(t.start,this.c),i=Ne.Min(t.end,this.e);if(!s.isAfter(i))return new pn(s,i)}union(t){if(this.contains(t))return this;if(t.contains(this))return t;const s=Ne.Min(t.start,this.c),i=Ne.Max(t.end,this.end);return new pn(s,i)}get isEmpty(){return this.c.isEqual(this.e)}get isSingleLine(){return this.c.line===this.e.line}with(t,s=this.end){if(t===null||s===null)throw je();let i;return t?Ne.isPosition(t)?i=t:(i=t.start||this.start,s=t.end||this.end):i=this.start,i.isEqual(this.c)&&s.isEqual(this.end)?this:new pn(i,s)}toJSON(){return[this.start,this.end]}[Symbol.for("debug.description")](){return cE(this)}},Ke=pn=__decorate([B],Ke),rl=Ug=class extends Ke{static isSelection(t){return t instanceof Ug?!0:t?Ke.isRange(t)&&Ne.isPosition(t.anchor)&&Ne.isPosition(t.active)&&typeof t.isReversed=="boolean":!1}get anchor(){return this.f}get active(){return this.g}constructor(t,s,i,n){let r,o;if(typeof t=="number"&&typeof s=="number"&&typeof i=="number"&&typeof n=="number"?(r=new Ne(t,s),o=new Ne(i,n)):Ne.isPosition(t)&&Ne.isPosition(s)&&(r=Ne.of(t),o=Ne.of(s)),!r||!o)throw new Error("Invalid arguments");super(r,o),this.f=r,this.g=o}get isReversed(){return this.f===this.e}toJSON(){return{start:this.start,end:this.end,active:this.active,anchor:this.anchor}}[Symbol.for("debug.description")](){return d_(this)}},rl=Ug=__decorate([B],rl),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(ea||(ea={})),function(e){e[e.Replace=1]="Replace",e[e.Append=2]="Append",e[e.Prepend=3]="Prepend"}(fE||(fE={})),Mr=_r=class{static isTextEdit(t){return t instanceof _r?!0:t?Ke.isRange(t)&&typeof t.newText=="string":!1}static replace(t,s){return new _r(t,s)}static insert(t,s){return _r.replace(new Ke(t,t),s)}static delete(t){return _r.replace(t,"")}static setEndOfLine(t){const s=new _r(new Ke(new Ne(0,0),new Ne(0,0)),"");return s.newEol=t,s}get range(){return this.c}set range(t){if(t&&!Ke.isRange(t))throw je("range");this.c=t}get newText(){return this.e||""}set newText(t){if(t&&typeof t!="string")throw je("newText");this.e=t}get newEol(){return this.f}set newEol(t){if(t&&typeof t!="number")throw je("newEol");this.f=t}constructor(t,s){this.c=t,this.e=s}toJSON(){return{range:this.range,newText:this.newText,newEol:this.f}}},Mr=_r=__decorate([B],Mr),nf=Gn=class{static isNotebookCellEdit(t){return t instanceof Gn?!0:t?Ur.isNotebookRange(t)&&Array.isArray(t.newCells):!1}static replaceCells(t,s){return new Gn(t,s)}static insertCells(t,s){return new Gn(new Ur(t,t),s)}static deleteCells(t){return new Gn(t,[])}static updateCellMetadata(t,s){const i=new Gn(new Ur(t,t),[]);return i.newCellMetadata=s,i}static updateNotebookMetadata(t){const s=new Gn(new Ur(0,0),[]);return s.newNotebookMetadata=t,s}constructor(t,s){this.range=t,this.newCells=s}},nf=Gn=__decorate([B],nf),Wg=class ip{static isSnippetTextEdit(t){return t instanceof ip?!0:t?Ke.isRange(t.range)&&ta.isSnippetString(t.snippet):!1}static replace(t,s){return new ip(t,s)}static insert(t,s){return ip.replace(new Ke(t,t),s)}constructor(t,s){this.range=t,this.snippet=s}},function(e){e[e.File=1]="File",e[e.Text=2]="Text",e[e.Cell=3]="Cell",e[e.CellReplace=5]="CellReplace",e[e.Snippet=6]="Snippet"}(dE||(dE={})),ol=class{constructor(){this.c=[]}_allEntries(){return this.c}renameFile(t,s,i,n){this.c.push({_type:1,from:t,to:s,options:i,metadata:n})}createFile(t,s,i){this.c.push({_type:1,from:void 0,to:t,options:s,metadata:i})}deleteFile(t,s,i){this.c.push({_type:1,from:t,to:void 0,options:s,metadata:i})}e(t,s,i){this.c.push({_type:3,metadata:i,uri:t,edit:{editType:5,metadata:s}})}f(t,s,i,n){const r=s.start,o=s.end;(r!==o||i.length>0)&&this.c.push({_type:5,uri:t,index:r,count:o-r,cells:i,metadata:n})}g(t,s,i,n){this.c.push({_type:3,metadata:n,uri:t,edit:{editType:3,index:s,metadata:i}})}replace(t,s,i,n){this.c.push({_type:2,uri:t,edit:new Mr(s,i),metadata:n})}insert(t,s,i,n){this.replace(t,new Ke(s,s),i,n)}delete(t,s,i){this.replace(t,s,"",i)}has(t){return this.c.some(s=>s._type===2&&s.uri.toString()===t.toString())}set(t,s){if(s)for(const i of s){if(!i)continue;let n,r;Array.isArray(i)?(n=i[0],r=i[1]):n=i,nf.isNotebookCellEdit(n)?n.newCellMetadata?this.g(t,n.range.start,n.newCellMetadata,r):n.newNotebookMetadata?this.e(t,n.newNotebookMetadata,r):this.f(t,n.range,n.newCells,r):Wg.isSnippetTextEdit(n)?this.c.push({_type:6,uri:t,range:n.range,edit:n.snippet,metadata:r}):this.c.push({_type:2,uri:t,edit:n,metadata:r})}else{for(let i=0;i<this.c.length;i++){const n=this.c[i];switch(n._type){case 2:case 6:case 3:case 5:n.uri.toString()===t.toString()&&(this.c[i]=void 0);break}}KI(this.c)}}get(t){const s=[];for(const i of this.c)i._type===2&&i.uri.toString()===t.toString()&&s.push(i.edit);return s}entries(){const t=new At;for(const s of this.c)if(s._type===2){let i=t.get(s.uri);i||(i=[s.uri,[]],t.set(s.uri,i)),i[1].push(s.edit)}return[...t.values()]}get size(){return this.entries().length}toJSON(){return this.entries()}},ol=__decorate([B],ol),ta=Tr=class{static isSnippetString(t){return t instanceof Tr?!0:t?typeof t.value=="string":!1}static c(t){return t.replace(/\$|}|\\/g,"\\$&")}constructor(t){this.e=1,this.value=t||""}appendText(t){return this.value+=Tr.c(t),this}appendTabstop(t=this.e++){return this.value+="$",this.value+=t,this}appendPlaceholder(t,s=this.e++){if(typeof t=="function"){const i=new Tr;i.e=this.e,t(i),this.e=i.e,t=i.value}else t=Tr.c(t);return this.value+="${",this.value+=s,this.value+=":",this.value+=t,this.value+="}",this}appendChoice(t,s=this.e++){const i=t.map(n=>n.replaceAll(/[|\\,]/g,"\\$&")).join(",");return this.value+="${",this.value+=s,this.value+="|",this.value+=i,this.value+="|}",this}appendVariable(t,s){if(typeof s=="function"){const i=new Tr;i.e=this.e,s(i),this.e=i.e,s=i.value}else typeof s=="string"&&(s=s.replace(/\$|}/g,"\\$&"));return this.value+="${",this.value+=t,s&&(this.value+=":",this.value+=s),this.value+="}",this}},ta=Tr=__decorate([B],ta),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(sa||(sa={})),function(e){e[e.Hint=3]="Hint",e[e.Information=2]="Information",e[e.Warning=1]="Warning",e[e.Error=0]="Error"}(_s||(_s={})),mn=Fg=class{static isLocation(t){return t instanceof Fg?!0:t?Ke.isRange(t.range)&&E.isUri(t.uri):!1}constructor(t,s){if(this.uri=t,s)if(Ke.isRange(s))this.range=Ke.of(s);else if(Ne.isPosition(s))this.range=new Ke(s,s);else throw new Error("Illegal argument")}toJSON(){return{uri:this.uri,range:this.range}}},mn=Fg=__decorate([B],mn),al=class{static is(t){return t?typeof t.message=="string"&&t.location&&Ke.isRange(t.location.range)&&E.isUri(t.location.uri):!1}constructor(t,s){this.location=t,this.message=s}static isEqual(t,s){return t===s?!0:!t||!s?!1:t.message===s.message&&t.location.range.isEqual(s.location.range)&&t.location.uri.toString()===s.location.uri.toString()}},al=__decorate([B],al),rf=class{constructor(t,s,i=_s.Error){if(!Ke.isRange(t))throw new TypeError("range must be set");if(!s)throw new TypeError("message must be set");this.range=t,this.message=s,this.severity=i}toJSON(){return{severity:_s[this.severity],message:this.message,range:this.range,source:this.source,code:this.code}}static isEqual(t,s){return t===s?!0:!t||!s?!1:t.message===s.message&&t.severity===s.severity&&t.code===s.code&&t.severity===s.severity&&t.source===s.source&&t.range.isEqual(s.range)&&kn(t.tags,s.tags)&&kn(t.relatedInformation,s.relatedInformation,al.isEqual)}},rf=__decorate([B],rf),of=class{constructor(t,s){if(!t)throw new Error("Illegal argument, contents must be defined");Array.isArray(t)?this.contents=t:this.contents=[t],this.range=s}},of=__decorate([B],of),af=class extends of{constructor(t,s,i,n){super(t,s),this.canIncreaseVerbosity=i,this.canDecreaseVerbosity=n}},af=__decorate([B],af),function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(pE||(pE={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(cf||(cf={})),lf=class{constructor(t,s=cf.Text){this.range=t,this.kind=s}toJSON(){return{range:this.range,kind:cf[this.kind]}}},lf=__decorate([B],lf),uf=class{constructor(t,s){this.uri=t,this.highlights=s}toJSON(){return{uri:this.uri,highlights:this.highlights.map(t=>t.toJSON())}}},uf=__decorate([B],uf),function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"}(Fe||(Fe={})),function(e){e[e.Deprecated=1]="Deprecated"}(hf||(hf={})),ff=Bg=class{static validate(t){if(!t.name)throw new Error("name must not be falsy")}constructor(t,s,i,n,r){this.name=t,this.kind=s,this.containerName=r,typeof i=="string"&&(this.containerName=i),n instanceof mn?this.location=n:i instanceof Ke&&(this.location=new mn(n,i)),Bg.validate(this)}toJSON(){return{name:this.name,kind:Fe[this.kind],location:this.location,containerName:this.containerName}}},ff=Bg=__decorate([B],ff),df=sf=class{static validate(t){if(!t.name)throw new Error("name must not be falsy");if(!t.range.contains(t.selectionRange))throw new Error("selectionRange must be contained in fullRange");t.children?.forEach(sf.validate)}constructor(t,s,i,n,r){this.name=t,this.detail=s,this.kind=i,this.range=n,this.selectionRange=r,this.children=[],sf.validate(this)}},df=sf=__decorate([B],df),function(e){e[e.Invoke=1]="Invoke",e[e.Automatic=2]="Automatic"}(pf||(pf={})),qg=class{constructor(t,s){this.title=t,this.kind=s}},qg=__decorate([B],qg),tt=class{static{il=this}static{this.c="."}constructor(t){this.value=t}append(t){return new il(this.value?this.value+il.c+t:t)}intersects(t){return this.contains(t)||t.contains(this)}contains(t){return this.value===t.value||t.value.startsWith(this.value+il.c)}},tt=il=__decorate([B],tt),tt.Empty=new tt(""),tt.QuickFix=tt.Empty.append("quickfix"),tt.Refactor=tt.Empty.append("refactor"),tt.RefactorExtract=tt.Refactor.append("extract"),tt.RefactorInline=tt.Refactor.append("inline"),tt.RefactorMove=tt.Refactor.append("move"),tt.RefactorRewrite=tt.Refactor.append("rewrite"),tt.Source=tt.Empty.append("source"),tt.SourceOrganizeImports=tt.Source.append("organizeImports"),tt.SourceFixAll=tt.Source.append("fixAll"),tt.Notebook=tt.Empty.append("notebook"),mf=class{constructor(t,s){if(this.range=t,this.parent=s,s&&!s.range.contains(this.range))throw new Error("Invalid argument: parent must contain this range")}},mf=__decorate([B],mf),Gg=class{constructor(e,t,s,i,n,r){this.kind=e,this.name=t,this.detail=s,this.uri=i,this.range=n,this.selectionRange=r}},mE=class{constructor(e,t){this.fromRanges=t,this.from=e}},gE=class{constructor(e,t){this.fromRanges=t,this.to=e}},function(e){e[e.Information=0]="Information",e[e.Warning=1]="Warning",e[e.Error=2]="Error"}(wE||(wE={})),Jg=class{constructor(t,s){this.range=t,this.command=s}get isResolved(){return!!this.command}},Jg=__decorate([B],Jg),gn=zg=class{#e;static isMarkdownString(t){return t instanceof zg?!0:t&&t.appendCodeblock&&t.appendMarkdown&&t.appendText&&t.value!==void 0}constructor(t,s=!1){this.#e=new jg(t,{supportThemeIcons:s})}get value(){return this.#e.value}set value(t){this.#e.value=t}get isTrusted(){return this.#e.isTrusted}set isTrusted(t){this.#e.isTrusted=t}get supportThemeIcons(){return this.#e.supportThemeIcons}set supportThemeIcons(t){this.#e.supportThemeIcons=t}get supportHtml(){return this.#e.supportHtml}set supportHtml(t){this.#e.supportHtml=t}get baseUri(){return this.#e.baseUri}set baseUri(t){this.#e.baseUri=t}appendText(t){return this.#e.appendText(t),this}appendMarkdown(t){return this.#e.appendMarkdown(t),this}appendCodeblock(t,s){return this.#e.appendCodeblock(s??"",t),this}},gn=zg=__decorate([B],gn),Xg=class{constructor(t,s){this.label=t,this.documentation=s}},Xg=__decorate([B],Xg),Yg=class{constructor(t,s){this.label=t,this.documentation=s,this.parameters=[]}},Yg=__decorate([B],Yg),Qg=class{constructor(){this.activeSignature=0,this.activeParameter=0,this.signatures=[]}},Qg=__decorate([B],Qg),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(vE||(vE={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(bE||(bE={})),gf=class{constructor(t){this.value=t}},gf=__decorate([B],gf),wf=class{constructor(t,s,i){this.position=t,this.label=s,this.kind=i}},wf=__decorate([B],wf),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(cl||(cl={})),function(e){e[e.Text=0]="Text",e[e.Method=1]="Method",e[e.Function=2]="Function",e[e.Constructor=3]="Constructor",e[e.Field=4]="Field",e[e.Variable=5]="Variable",e[e.Class=6]="Class",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Unit=10]="Unit",e[e.Value=11]="Value",e[e.Enum=12]="Enum",e[e.Keyword=13]="Keyword",e[e.Snippet=14]="Snippet",e[e.Color=15]="Color",e[e.File=16]="File",e[e.Reference=17]="Reference",e[e.Folder=18]="Folder",e[e.EnumMember=19]="EnumMember",e[e.Constant=20]="Constant",e[e.Struct=21]="Struct",e[e.Event=22]="Event",e[e.Operator=23]="Operator",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue"}(X||(X={})),function(e){e[e.Deprecated=1]="Deprecated"}(vf||(vf={})),bf=class{constructor(t,s){this.label=t,this.kind=s}toJSON(){return{label:this.label,kind:this.kind&&X[this.kind],detail:this.detail,documentation:this.documentation,sortText:this.sortText,filterText:this.filterText,preselect:this.preselect,insertText:this.insertText,textEdit:this.textEdit}}},bf=__decorate([B],bf),Zg=class{constructor(t=[],s=!1){this.items=t,this.isIncomplete=s}},Zg=__decorate([B],Zg),Kg=class{constructor(t,s,i){this.insertText=t,this.range=s,this.command=i}},Kg=__decorate([B],Kg),e0=class{constructor(t){this.commands=void 0,this.suppressSuggestions=void 0,this.items=t}},e0=__decorate([B],e0),function(e){e[e.Unknown=0]="Unknown",e[e.Word=1]="Word",e[e.Line=2]="Line",e[e.Suggest=3]="Suggest"}(ia||(ia={})),function(e){e[e.Active=-1]="Active",e[e.Beside=-2]="Beside",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Three=3]="Three",e[e.Four=4]="Four",e[e.Five=5]="Five",e[e.Six=6]="Six",e[e.Seven=7]="Seven",e[e.Eight=8]="Eight",e[e.Nine=9]="Nine"}(yf||(yf={})),function(e){e[e.Left=1]="Left",e[e.Right=2]="Right"}(yE||(yE={})),function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval"}(Ni||(Ni={})),function(e){e[e.Manual=1]="Manual",e[e.AfterDelay=2]="AfterDelay",e[e.FocusOut=3]="FocusOut"}(ll||(ll={})),function(e){e[e.Default=0]="Default",e[e.InCenter=1]="InCenter",e[e.InCenterIfOutsideViewport=2]="InCenterIfOutsideViewport",e[e.AtTop=3]="AtTop"}(EE||(EE={})),function(e){e[e.Keyboard=1]="Keyboard",e[e.Mouse=2]="Mouse",e[e.Command=3]="Command"}(Ef||(Ef={})),function(e){e[e.Undo=1]="Undo",e[e.Redo=2]="Redo"}(xE||(xE={})),function(e){e[e.OpenOpen=0]="OpenOpen",e[e.ClosedClosed=1]="ClosedClosed",e[e.OpenClosed=2]="OpenClosed",e[e.ClosedOpen=3]="ClosedOpen"}(na||(na={})),function(e){function t(s){switch(s){case"keyboard":return e.Keyboard;case"mouse":return e.Mouse;case"api":return e.Command}}e.fromValue=t}(Ef||(Ef={})),function(e){e[e.Other=0]="Other",e[e.Comment=1]="Comment",e[e.String=2]="String",e[e.RegEx=3]="RegEx"}(xf||(xf={})),function(e){function t(s){switch(s){case e.Other:return"other";case e.Comment:return"comment";case e.String:return"string";case e.RegEx:return"regex"}return"other"}e.toString=t}(xf||(xf={})),kf=class{constructor(t,s){if(s&&!E.isUri(s))throw je("target");if(!Ke.isRange(t)||t.isEmpty)throw je("range");this.range=t,this.target=s}},kf=__decorate([B],kf),ul=class{constructor(t,s,i,n){this.red=t,this.green=s,this.blue=i,this.alpha=n}},ul=__decorate([B],ul),t0=class{constructor(t,s){if(s&&!(s instanceof ul))throw je("color");if(!Ke.isRange(t)||t.isEmpty)throw je("range");this.range=t,this.color=s}},t0=__decorate([B],t0),$f=class{constructor(t){if(!t||typeof t!="string")throw je("label");this.label=t}},$f=__decorate([B],$f),function(e){e[e.RGB=0]="RGB",e[e.HEX=1]="HEX",e[e.HSL=2]="HSL"}(kE||(kE={})),function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Information=2]="Information"}($E||($E={})),function(e){e[e.Unknown=0]="Unknown",e[e.Shutdown=1]="Shutdown",e[e.Process=2]="Process",e[e.User=3]="User",e[e.Extension=4]="Extension"}(SE||(SE={})),function(e){e[e.Low=0]="Low",e[e.Medium=1]="Medium",e[e.High=2]="High"}(PE||(PE={})),function(e){e[e.Panel=1]="Panel",e[e.Editor=2]="Editor"}(IE||(IE={})),function(e){e[e.Always=1]="Always",e[e.Silent=2]="Silent",e[e.Never=3]="Never"}(AE||(AE={})),function(e){e[e.Shared=1]="Shared",e[e.Dedicated=2]="Dedicated",e[e.New=3]="New"}(DE||(DE={})),s0=class{static{Ai=this}static{this.Clean=new Ai("clean","Clean")}static{this.Build=new Ai("build","Build")}static{this.Rebuild=new Ai("rebuild","Rebuild")}static{this.Test=new Ai("test","Test")}static from(t){switch(t){case"clean":return Ai.Clean;case"build":return Ai.Build;case"rebuild":return Ai.Rebuild;case"test":return Ai.Test;default:return}}constructor(t,s){if(this.label=s,typeof t!="string"||typeof s!="string")throw je("name");this.c=t}get id(){return this.c}},s0=Ai=__decorate([B],s0),Sf=class{constructor(t,s,i){if(typeof t!="string")throw je("process");this.e=[],this.c=t,s!==void 0&&(Array.isArray(s)?(this.e=s,this.f=i):this.f=s)}get process(){return this.c}set process(t){if(typeof t!="string")throw je("process");this.c=t}get args(){return this.e}set args(t){Array.isArray(t)||(t=[]),this.e=t}get options(){return this.f}set options(t){this.f=t}computeId(){const t=[];if(t.push("process"),this.c!==void 0&&t.push(this.c),this.e&&this.e.length>0)for(const s of this.e)t.push(s);return lE(t)}},Sf=__decorate([B],Sf),Pf=class{constructor(t,s,i){if(this.f=[],Array.isArray(s)){if(!t)throw je("command can't be undefined or null");if(typeof t!="string"&&typeof t.value!="string")throw je("command");this.e=t,this.f=s,this.g=i}else{if(typeof t!="string")throw je("commandLine");this.c=t,this.g=s}}get commandLine(){return this.c}set commandLine(t){if(typeof t!="string")throw je("commandLine");this.c=t}get command(){return this.e?this.e:""}set command(t){if(typeof t!="string"&&typeof t.value!="string")throw je("command");this.e=t}get args(){return this.f}set args(t){this.f=t||[]}get options(){return this.g}set options(t){this.g=t}computeId(){const t=[];if(t.push("shell"),this.c!==void 0&&t.push(this.c),this.e!==void 0&&t.push(typeof this.e=="string"?this.e:this.e.value),this.f&&this.f.length>0)for(const s of this.f)t.push(typeof s=="string"?s:s.value);return lE(t)}},Pf=__decorate([B],Pf),function(e){e[e.Escape=1]="Escape",e[e.Strong=2]="Strong",e[e.Weak=3]="Weak"}(NE||(NE={})),function(e){e[e.Global=1]="Global",e[e.Workspace=2]="Workspace"}(If||(If={})),RE=class{constructor(e){this.c=e}computeId(){return"customExecution"+He()}set callback(e){this.c=e}get callback(){return this.c}},i0=class{static{Di=this}static{this.c="customExecution"}static{this.e="process"}static{this.f="shell"}static{this.g="$empty"}constructor(t,s,i,n,r,o){this.k=!1,this.l=this.definition=t;let a;typeof s=="string"?(this.o=this.name=s,this.w=this.source=i,this.execution=n,a=r,this.k=!0):s===If.Global||s===If.Workspace?(this.target=s,this.o=this.name=i,this.w=this.source=n,this.execution=r,a=o):(this.target=s,this.o=this.name=i,this.w=this.source=n,this.execution=r,a=o),typeof a=="string"?(this.r=[a],this.t=!0):Array.isArray(a)?(this.r=a,this.t=!0):(this.r=[],this.t=!1),this.u=!1,this.y=Object.create(null),this.z=Object.create(null)}get _id(){return this.j}set _id(t){this.j=t}get _deprecated(){return this.k}B(){this.j!==void 0&&(this.j=void 0,this.m=void 0,this.C())}C(){this.q instanceof Sf?this.l={type:Di.e,id:this.q.computeId()}:this.q instanceof Pf?this.l={type:Di.f,id:this.q.computeId()}:this.q instanceof RE?this.l={type:Di.c,id:this.q.computeId()}:this.l={type:Di.g,id:He()}}get definition(){return this.l}set definition(t){if(t==null)throw je("Kind can't be undefined or null");this.B(),this.l=t}get scope(){return this.m}set target(t){this.B(),this.m=t}get name(){return this.o}set name(t){if(typeof t!="string")throw je("name");this.B(),this.o=t}get execution(){return this.q}set execution(t){t===null&&(t=void 0),this.B(),this.q=t;const s=this.l.type;(Di.g===s||Di.e===s||Di.f===s||Di.c===s)&&this.C()}get problemMatchers(){return this.r}set problemMatchers(t){if(Array.isArray(t))this.B(),this.r=t,this.t=!0;else{this.B(),this.r=[],this.t=!1;return}}get hasDefinedMatchers(){return this.t}get isBackground(){return this.u}set isBackground(t){t!==!0&&t!==!1&&(t=!1),this.B(),this.u=t}get source(){return this.w}set source(t){if(typeof t!="string"||t.length===0)throw je("source must be a string of length > 0");this.B(),this.w=t}get group(){return this.x}set group(t){t===null&&(t=void 0),this.B(),this.x=t}get detail(){return this.A}set detail(t){t===null&&(t=void 0),this.A=t}get presentationOptions(){return this.y}set presentationOptions(t){t==null&&(t=Object.create(null)),this.B(),this.y=t}get runOptions(){return this.z}set runOptions(t){t==null&&(t=Object.create(null)),this.B(),this.z=t}},i0=Di=__decorate([B],i0),function(e){e[e.SourceControl=1]="SourceControl",e[e.Window=10]="Window",e[e.Notification=15]="Notification"}(hl||(hl={})),function(e){function t(s){const i=s;return An(i.value)?i.tooltip&&!be(i.tooltip)?(console.log("INVALID view badge, invalid tooltip",i.tooltip),!1):!0:(console.log("INVALID view badge, invalid value",i.value),!1)}e.isViewBadge=t}(LE||(LE={})),n0=Hg=class{static isTreeItem(t,s){const i=t;if(i.checkboxState!==void 0){const n=An(i.checkboxState)?i.checkboxState:ut(i.checkboxState)&&An(i.checkboxState.state)?i.checkboxState.state:void 0,r=!An(i.checkboxState)&&ut(i.checkboxState)?i.checkboxState.tooltip:void 0;if(n===void 0||n!==Af.Checked&&n!==Af.Unchecked||r!==void 0&&!be(r))return console.log("INVALID tree item, invalid checkboxState",i.checkboxState),!1}if(t instanceof Hg)return!0;if(i.label!==void 0&&!be(i.label)&&!i.label?.label)return console.log("INVALID tree item, invalid label",i.label),!1;if(i.id!==void 0&&!be(i.id))return console.log("INVALID tree item, invalid id",i.id),!1;if(i.iconPath!==void 0&&!be(i.iconPath)&&!E.isUri(i.iconPath)&&(!i.iconPath||!be(i.iconPath.id))){const n=i.iconPath;if(!n||!be(n.light)&&!E.isUri(n.light)&&!be(n.dark)&&!E.isUri(n.dark))return console.log("INVALID tree item, invalid iconPath",i.iconPath),!1}return i.description!==void 0&&!be(i.description)&&typeof i.description!="boolean"?(console.log("INVALID tree item, invalid description",i.description),!1):i.resourceUri!==void 0&&!E.isUri(i.resourceUri)?(console.log("INVALID tree item, invalid resourceUri",i.resourceUri),!1):i.tooltip!==void 0&&!be(i.tooltip)&&!(i.tooltip instanceof gn)?(console.log("INVALID tree item, invalid tooltip",i.tooltip),!1):i.command!==void 0&&!i.command.command?(console.log("INVALID tree item, invalid command",i.command),!1):i.collapsibleState!==void 0&&i.collapsibleState<fl.None&&i.collapsibleState>fl.Expanded?(console.log("INVALID tree item, invalid collapsibleState",i.collapsibleState),!1):i.contextValue!==void 0&&!be(i.contextValue)?(console.log("INVALID tree item, invalid contextValue",i.contextValue),!1):i.accessibilityInformation!==void 0&&!i.accessibilityInformation?.label?(console.log("INVALID tree item, invalid accessibilityInformation",i.accessibilityInformation),!1):!0}constructor(t,s=fl.None){this.collapsibleState=s,E.isUri(t)?this.resourceUri=t:this.label=t}},n0=Hg=__decorate([B],n0),function(e){e[e.None=0]="None",e[e.Collapsed=1]="Collapsed",e[e.Expanded=2]="Expanded"}(fl||(fl={})),function(e){e[e.Unchecked=0]="Unchecked",e[e.Checked=1]="Checked"}(Af||(Af={})),Df=class{async asString(){return typeof this.value=="string"?this.value:JSON.stringify(this.value)}asFile(){}constructor(t){this.value=t}},Df=__decorate([B],Df),Nf=class extends Df{},OE=class extends Nf{#e;constructor(e){super(""),this.#e=e}asFile(){return this.#e}},CE=class{constructor(e,t,s,i){this.name=e,this.uri=t,this._itemId=s,this.c=i}data(){return this.c()}},Rf=class{#e=new Map;constructor(t){for(const[s,i]of t??[]){const n=this.#e.get(this.#t(s));n?n.push(i):this.#e.set(this.#t(s),[i])}}get(t){return this.#e.get(this.#t(t))?.[0]}set(t,s){this.#e.set(this.#t(t),[s])}forEach(t,s){for(const[i,n]of this.#e)for(const r of n)t.call(s,r,i,this)}*[Symbol.iterator](){for(const[t,s]of this.#e)for(const i of s)yield[t,i]}#t(t){return t.toLowerCase()}},Rf=__decorate([B],Rf),r0=class{constructor(t,s,i){this.insertText=t,this.title=s,this.kind=i}},r0=__decorate([B],r0),function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"}(jE||(jE={})),o0=class np{static{this.c="."}constructor(t){this.value=t}append(...t){return new np((this.value?[this.value,...t]:t).join(np.c))}intersects(t){return this.contains(t)||t.contains(this)}contains(t){return this.value===t.value||t.value.startsWith(this.value+np.c)}},o0.Empty=new o0(""),Jn=class{constructor(t,s){this.id=t,this.color=s}static isThemeIcon(t){return typeof t.id!="string"?(console.log("INVALID ThemeIcon, invalid id",t.id),!1):!0}},Jn=__decorate([B],Jn),Jn.File=new Jn("file"),Jn.Folder=new Jn("folder"),a0=class{constructor(t){this.id=t}},a0=__decorate([B],a0),function(e){e[e.Global=1]="Global",e[e.Workspace=2]="Workspace",e[e.WorkspaceFolder=3]="WorkspaceFolder"}(_E||(_E={})),ra=class{get base(){return this.c}set base(t){this.c=t,this.e=E.file(t)}get baseUri(){return this.e}set baseUri(t){this.e=t,this.c=t.fsPath}constructor(t,s){if(typeof t!="string"&&(!t||!E.isUri(t)&&!E.isUri(t.uri)))throw je("base");if(typeof s!="string")throw je("pattern");typeof t=="string"?this.baseUri=E.file(t):E.isUri(t)?this.baseUri=t:this.baseUri=t.uri,this.pattern=s}toJSON(){return{pattern:this.pattern,base:this.base,baseUri:this.baseUri.toJSON()}}},ra=__decorate([B],ra),TE=new WeakMap,oa=class{constructor(t,s,i,n,r){this.enabled=typeof t=="boolean"?t:!0,typeof s=="string"&&(this.condition=s),typeof i=="string"&&(this.hitCondition=i),typeof n=="string"&&(this.logMessage=n),typeof r=="string"&&(this.mode=r)}get id(){return this.c||(this.c=TE.get(this)??He()),this.c}},oa=__decorate([B],oa),c0=class extends oa{constructor(t,s,i,n,r,o){if(super(s,i,n,r,o),t===null)throw je("location");this.location=t}},c0=__decorate([B],c0),l0=class extends oa{constructor(t,s,i,n,r,o){super(s,i,n,r,o),this.functionName=t}},l0=__decorate([B],l0),u0=class extends oa{constructor(t,s,i,n,r,o,a,c){if(super(n,r,o,a,c),!s)throw je("dataId");this.label=t,this.dataId=s,this.canPersist=i}},u0=__decorate([B],u0),h0=class{constructor(t,s,i){this.command=t,this.args=s||[],this.options=i}},h0=__decorate([B],h0),f0=class{constructor(t,s){this.port=t,this.host=s}},f0=__decorate([B],f0),d0=class{constructor(t){this.path=t}},d0=__decorate([B],d0),p0=class{constructor(t){this.implementation=t}},p0=__decorate([B],p0),Lf=class{constructor(t,s){this.range=t,this.expression=s}},Lf=__decorate([B],Lf),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(ME||(ME={})),Of=class{constructor(t,s){this.range=t,this.text=s}},Of=__decorate([B],Of),Cf=class{constructor(t,s,i=!0){this.range=t,this.variableName=s,this.caseSensitiveLookup=i}},Cf=__decorate([B],Cf),jf=class{constructor(t,s){this.range=t,this.expression=s}},jf=__decorate([B],jf),_f=class{constructor(t,s){this.frameId=t,this.stoppedLocation=s}},_f=__decorate([B],_f),function(e){e[e.AIGenerated=1]="AIGenerated"}(UE||(UE={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(FE||(FE={})),function(e){e[e.Changed=1]="Changed",e[e.Created=2]="Created",e[e.Deleted=3]="Deleted"}(BE||(BE={})),m0=gs=class extends Error{static FileExists(t){return new gs(t,Y.FileExists,gs.FileExists)}static FileNotFound(t){return new gs(t,Y.FileNotFound,gs.FileNotFound)}static FileNotADirectory(t){return new gs(t,Y.FileNotADirectory,gs.FileNotADirectory)}static FileIsADirectory(t){return new gs(t,Y.FileIsADirectory,gs.FileIsADirectory)}static NoPermissions(t){return new gs(t,Y.NoPermissions,gs.NoPermissions)}static Unavailable(t){return new gs(t,Y.Unavailable,gs.Unavailable)}constructor(t,s=Y.Unknown,i){super(E.isUri(t)?t.toString(!0):t),this.code=i?.name??"Unknown",k6(this,s),Object.setPrototypeOf(this,gs.prototype),typeof Error.captureStackTrace=="function"&&typeof i=="function"&&Error.captureStackTrace(this,i)}},m0=gs=__decorate([B],m0),g0=class{constructor(t,s,i){this.start=t,this.end=s,this.kind=i}},g0=__decorate([B],g0),function(e){e[e.Comment=1]="Comment",e[e.Imports=2]="Imports",e[e.Region=3]="Region"}(Xn||(Xn={})),function(e){e[e.Collapsed=0]="Collapsed",e[e.Expanded=1]="Expanded"}(zE||(zE={})),function(e){e[e.Editing=0]="Editing",e[e.Preview=1]="Preview"}(HE||(HE={})),function(e){e[e.Published=0]="Published",e[e.Draft=1]="Draft"}(VE||(VE={})),function(e){e[e.Unresolved=0]="Unresolved",e[e.Resolved=1]="Resolved"}(WE||(WE={})),function(e){e[e.Current=0]="Current",e[e.Outdated=1]="Outdated"}(qE||(qE={})),function(e){e[e.Reply=1]="Reply",e[e.Comment=2]="Comment"}(GE||(GE={})),function(e){e[e.Separate=0]="Separate",e[e.MergeWithParent=1]="MergeWithParent"}(JE||(JE={})),function(e){e[e.Title=1]="Title",e[e.Inline=2]="Inline"}(XE||(XE={})),w0=class{static{this.Back={iconPath:new Jn("arrow-left")}}constructor(){}},w0=__decorate([B],w0),function(e){e[e.Separator=-1]="Separator",e[e.Default=0]="Default"}(YE||(YE={})),function(e){e[e.Info=1]="Info",e[e.Warning=2]="Warning",e[e.Error=3]="Error"}(QE||(QE={})),function(e){e[e.UI=1]="UI",e[e.Workspace=2]="Workspace"}(ZE||(ZE={})),v0=class{constructor(t){this.kind=t}},v0=__decorate([B],v0),function(e){e[e.Light=1]="Light",e[e.Dark=2]="Dark",e[e.HighContrast=3]="HighContrast",e[e.HighContrastLight=4]="HighContrastLight"}(KE||(KE={})),Ur=class gv{static isNotebookRange(t){return t instanceof gv?!0:t?typeof t.start=="number"&&typeof t.end=="number":!1}get start(){return this.c}get end(){return this.e}get isEmpty(){return this.c===this.e}constructor(t,s){if(t<0)throw je("start must be positive");if(s<0)throw je("end must be positive");t<=s?(this.c=t,this.e=s):(this.c=s,this.e=t)}with(t){let s=this.c,i=this.e;return t.start!==void 0&&(s=t.start),t.end!==void 0&&(i=t.end),s===this.c&&i===this.e?this:new gv(s,i)}},b0=class wv{static validate(t){if(typeof t.kind!="number")throw new Error("NotebookCellData MUST have 'kind' property");if(typeof t.value!="string")throw new Error("NotebookCellData MUST have 'value' property");if(typeof t.languageId!="string")throw new Error("NotebookCellData MUST have 'languageId' property")}static isNotebookCellDataArray(t){return Array.isArray(t)&&t.every(s=>wv.isNotebookCellData(s))}static isNotebookCellData(t){return!0}constructor(t,s,i,n,r,o,a){this.kind=t,this.value=s,this.languageId=i,this.mime=n,this.outputs=r??[],this.metadata=o,this.executionSummary=a,wv.validate(this)}},ex=class{constructor(e){this.cells=e}},tx=class En{static isNotebookCellOutputItem(t){return t instanceof En?!0:t?typeof t.mime=="string"&&t.data instanceof Uint8Array:!1}static error(t){const s={name:t.name,message:t.message,stack:t.stack};return En.json(s,"application/vnd.code.notebook.error")}static stdout(t){return En.text(t,"application/vnd.code.notebook.stdout")}static stderr(t){return En.text(t,"application/vnd.code.notebook.stderr")}static bytes(t,s="application/octet-stream"){return new En(t,s)}static#e=new TextEncoder;static text(t,s=Ii.text){const i=En.#e.encode(String(t));return new En(i,s)}static json(t,s="text/x-json"){const i=JSON.stringify(t,void 0," ");return En.text(i,s)}constructor(t,s){this.data=t,this.mime=s;const i=T2(s,!0);if(!i)throw new Error(`INVALID mime type: ${s}. Must be in the format "type/subtype[;optionalparameter]"`);this.mime=i}},sx=class vv{static isNotebookCellOutput(t){return t instanceof vv?!0:!t||typeof t!="object"?!1:typeof t.id=="string"&&Array.isArray(t.items)}static ensureUniqueMimeTypes(t,s=!1){const i=new Set,n=new Set;for(let r=0;r<t.length;r++){const o=t[r],a=T2(o.mime);if(!i.has(a)||i_(a)){i.add(a);continue}n.add(r),s&&console.warn(`DUPLICATED mime type '${o.mime}' will be dropped`)}return n.size===0?t:t.filter((r,o)=>!n.has(o))}constructor(t,s,i){this.items=vv.ensureUniqueMimeTypes(t,!0),typeof s=="string"?(this.id=s,this.metadata=i):(this.id=He(),this.metadata=s??i)}},function(e){e[e.Markup=1]="Markup",e[e.Code=2]="Code"}(aa||(aa={})),function(e){e[e.Idle=1]="Idle",e[e.Pending=2]="Pending",e[e.Executing=3]="Executing"}(Tf||(Tf={})),function(e){e[e.Left=1]="Left",e[e.Right=2]="Right"}(y0||(y0={})),function(e){e[e.Default=0]="Default",e[e.InCenter=1]="InCenter",e[e.InCenterIfOutsideViewport=2]="InCenterIfOutsideViewport",e[e.AtTop=3]="AtTop"}(ix||(ix={})),function(e){e[e.Default=1]="Default",e[e.Preferred=2]="Preferred"}(nx||(nx={})),function(e){e[e.Default=1]="Default",e[e.Preferred=2]="Preferred",e[e.Hidden=-1]="Hidden"}(rx||(rx={})),ox=class{constructor(e,t=[]){this.uri=e,this.provides=hb(t)}},function(e){e[e.Named=1]="Named",e[e.Indexed=2]="Indexed"}(ax||(ax={})),E0=class{constructor(t,s){this.label=t,this.timestamp=s}},E0=__decorate([B],E0),function(e){e[e.Production=1]="Production",e[e.Development=2]="Development",e[e.Test=3]="Test"}(cx||(cx={})),function(e){e[e.Node=1]="Node",e[e.Webworker=2]="Webworker"}(lx||(lx={})),function(e){e[e.Other=0]="Other",e[e.Comment=1]="Comment",e[e.String=2]="String",e[e.RegEx=3]="RegEx"}(ca||(ca={})),function(e){e[e.Queued=1]="Queued",e[e.Running=2]="Running",e[e.Passed=3]="Passed",e[e.Failed=4]="Failed",e[e.Skipped=5]="Skipped",e[e.Errored=6]="Errored"}(ux||(ux={})),function(e){e[e.Run=1]="Run",e[e.Debug=2]="Debug",e[e.Coverage=3]="Coverage"}(hx||(hx={})),x0=class{constructor(t=void 0,s=void 0,i=void 0,n=!1,r=!0){this.include=t,this.exclude=s,this.profile=i,this.continuous=n,this.preserveFocus=r}},x0=__decorate([B],x0),Mf=Vg=class{static diff(t,s,i){const n=new Vg(t);return n.expectedOutput=s,n.actualOutput=i,n}constructor(t){this.message=t}},Mf=Vg=__decorate([B],Mf),dl=class{constructor(t){this.id=t}},dl=__decorate([B],dl),Uf=class{constructor(e,t){this.covered=e,this.total=t,tf(this)}},fx=class yI{static fromDetails(t,s){const i=new Uf(0,0),n=new Uf(0,0),r=new Uf(0,0);for(const a of s)if("branches"in a){i.total+=1,i.covered+=a.executed?1:0;for(const c of a.branches)n.total+=1,n.covered+=c.executed?1:0}else r.total+=1,r.covered+=a.executed?1:0;const o=new yI(t,i,n.total>0?n:void 0,r.total>0?r:void 0);return o.detailedCoverage=s,o}constructor(t,s,i,n,r=[]){this.uri=t,this.statementCoverage=s,this.branchCoverage=i,this.declarationCoverage=n,this.fromTests=r}},dx=class{get executionCount(){return+this.executed}set executionCount(e){this.executed=e}constructor(e,t,s=[]){this.executed=e,this.location=t,this.branches=s}},px=class{get executionCount(){return+this.executed}set executionCount(e){this.executed=e}constructor(e,t,s){this.executed=e,this.location=t,this.label=s}},mx=class{get executionCount(){return+this.executed}set executionCount(e){this.executed=e}constructor(e,t,s){this.name=e,this.executed=t,this.location=s}},function(e){e[e.None=0]="None",e[e.Option=1]="Option",e[e.Default=2]="Default",e[e.Preferred=3]="Preferred"}(gx||(gx={})),function(e){e[e.Untrusted=0]="Untrusted",e[e.Trusted=1]="Trusted",e[e.Unspecified=2]="Unspecified"}(wx||(wx={})),function(e){e[e.Notify=1]="Notify",e[e.OpenBrowser=2]="OpenBrowser",e[e.OpenPreview=3]="OpenPreview",e[e.Silent=4]="Silent",e[e.Ignore=5]="Ignore",e[e.OpenBrowserOnce=6]="OpenBrowserOnce"}(vx||(vx={})),k0=class{constructor(e,t,s,i,n,r){this.kind=e,this.name=t,this.detail=s,this.uri=i,this.range=n,this.selectionRange=r}},function(e){e[e.Down=0]="Down",e[e.Up=1]="Up"}(bx||(bx={})),function(e){e[e.Action=1]="Action",e[e.Toolbar=2]="Toolbar"}(yx||(yx={})),function(e){e[e.Short=1]="Short",e[e.Medium=2]="Medium",e[e.Full=3]="Full"}(Ex||(Ex={})),function(e){e[e.Accepted=1]="Accepted",e[e.Rejected=2]="Rejected"}(Ff||(Ff={})),function(e){e[e.Unhelpful=0]="Unhelpful",e[e.Helpful=1]="Helpful",e[e.Undone=2]="Undone",e[e.Accepted=3]="Accepted",e[e.Bug=4]="Bug"}(xx||(xx={})),function(e){e[e.Unhelpful=0]="Unhelpful",e[e.Helpful=1]="Helpful"}(kx||(kx={})),$0=class{constructor(e){if(typeof e!="string"&&e.isTrusted===!0)throw new Error("The boolean form of MarkdownString.isTrusted is NOT supported for chat participants.");this.value=typeof e=="string"?new gn(e):e}},S0=class{constructor(e,t){if(typeof e!="string"&&e.isTrusted===!0)throw new Error("The boolean form of MarkdownString.isTrusted is NOT supported for chat participants.");this.value=typeof e=="string"?new gn(e):e,this.vulnerabilities=t}},P0=class{constructor(e,t){this.participant=e,this.command=t}},$x=class{constructor(e,t,s,i){this.title=e,this.message=t,this.data=s,this.buttons=i}},I0=class{constructor(e,t){this.value=e,this.baseUri=t}},A0=class{constructor(e,t){this.value=e,this.value2=e,this.title=t}},D0=class{constructor(e){this.value=e}},N0=class{constructor(e){if(typeof e!="string"&&e.isTrusted===!0)throw new Error("The boolean form of MarkdownString.isTrusted is NOT supported for chat participants.");this.value=typeof e=="string"?new gn(e):e}},R0=class{constructor(e){this.value=e}},L0=class{constructor(e,t,s){this.value=e,this.iconPath=t,this.options=s}},O0=class{constructor(e){this.value=e}},Sx=class{constructor(e,t,s){this.value=e,this.license=t,this.snippet=s}},C0=class{constructor(e,t){this.uri=e,this.range=t}},j0=class{constructor(e,t){this.uri=e,this.edits=Array.isArray(t)?t:[t]}},function(e){e[e.Panel=1]="Panel",e[e.Terminal=2]="Terminal",e[e.Notebook=3]="Notebook",e[e.Editor=4]="Editor",e[e.EditingSession=5]="EditingSession"}(Js||(Js={})),function(e){e[e.Complete=1]="Complete",e[e.Partial=2]="Partial",e[e.Omitted=3]="Omitted"}(Px||(Px={})),Ix=class{constructor(e,t){this.mimeType=e,this.data=t}},function(e){e[e.User=1]="User",e[e.Assistant=2]="Assistant",e[e.System=3]="System"}(Ri||(Ri={})),_0=class{constructor(e,t,s){this.callId=e,this.content=t,this.isError=s??!1}},Ax=class bv{static User(t,s){return new bv(Ri.User,t,s)}static Assistant(t,s){return new bv(Ri.Assistant,t,s)}set content(t){typeof t=="string"?this.c=[new Xs(t)]:this.c=t}get content(){return this.c}set content2(t){t&&(this.content=t.map(s=>typeof s=="string"?new Xs(s):s))}get content2(){return this.content.map(t=>t instanceof Xs?t.value:t)}constructor(t,s,i){this.c=[],this.role=t,this.content=s,this.name=i}},T0=class{constructor(e,t,s){this.callId=e,this.name=t,this.input=s,this.parameters=s}},Xs=class{constructor(e){this.value=e}toJSON(){return{$mid:21,value:this.value}}},la=class{constructor(e){this.value=e}toJSON(){return{$mid:22,value:this.value}}},M0=class{constructor(e){this.content=e}toJSON(){return{$mid:20,content:this.content}}},function(e){e[e.Auto=1]="Auto",e[e.Required=2]="Required"}(Dx||(Dx={})),function(e){e[e.SymbolInformation=1]="SymbolInformation",e[e.CommandInformation=2]="CommandInformation",e[e.SearchInformation=3]="SearchInformation",e[e.SettingInformation=4]="SettingInformation"}(Nx||(Nx={})),function(e){e[e.Started=1]="Started",e[e.Recognizing=2]="Recognizing",e[e.Recognized=3]="Recognized",e[e.Stopped=4]="Stopped",e[e.Error=5]="Error"}(Rx||(Rx={})),function(e){e[e.Started=1]="Started",e[e.Stopped=2]="Stopped",e[e.Error=3]="Error"}(Lx||(Lx={})),function(e){e[e.Recognized=1]="Recognized",e[e.Stopped=2]="Stopped"}(Ox||(Ox={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(Cx||(Cx={}))}}),Bf,p_=v({"out-build/vs/base/common/dataTransfer.js"(){"use strict";Et(),dr(),Wt(),Bf=Object.freeze({create:e=>Wi(e.map(t=>t.toString())).join(`\r `),split:e=>e.split(`\r `),parse:e=>Bf.split(e).filter(t=>!t.startsWith("#"))})}});function F0(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function jx(e){Yn=e}function Ts(e,t){if(t){if(B0.test(e))return e.replace(Ux,H0)}else if(z0.test(e))return e.replace(Fx,H0);return e}function Ge(e,t){let s=typeof e=="string"?e:e.source;t=t||"";const i={replace:(n,r)=>{let o=typeof r=="string"?r:r.source;return o=o.replace(zx,"$1"),s=s.replace(n,o),i},getRegex:()=>new RegExp(s,t)};return i}function _x(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}function Tx(e,t){const s=e.replace(/\|/g,(r,o,a)=>{let c=!1,l=o;for(;--l>=0&&a[l]==="\\";)c=!c;return c?"|":" |"}),i=s.split(/ \|/);let n=0;if(i[0].trim()||i.shift(),i.length>0&&!i[i.length-1].trim()&&i.pop(),t)if(i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;n<i.length;n++)i[n]=i[n].trim().replace(/\\\|/g,"|");return i}function pl(e,t,s){const i=e.length;if(i===0)return"";let n=0;for(;n<i;){const r=e.charAt(i-n-1);if(r===t&&!s)n++;else if(r!==t&&s)n++;else break}return e.slice(0,i-n)}function m_(e,t){if(e.indexOf(t[1])===-1)return-1;let s=0;for(let i=0;i<e.length;i++)if(e[i]==="\\")i++;else if(e[i]===t[0])s++;else if(e[i]===t[1]&&(s--,s<0))return i;return-1}function Mx(e,t,s,i){const n=t.href,r=t.title?Ts(t.title):null,o=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){i.state.inLink=!0;const a={type:"link",raw:s,href:n,title:r,text:o,tokens:i.inlineTokens(o)};return i.state.inLink=!1,a}return{type:"image",raw:s,href:n,title:r,text:Ts(o)}}function g_(e,t){const s=e.match(/^(\s+)(?:```)/);if(s===null)return t;const i=s[1];return t.split(` `).map(n=>{const r=n.match(/^\s+/);if(r===null)return n;const[o]=r;return o.length>=i.length?n.slice(i.length):n}).join(` `)}function Be(e,t){return Kn.parse(e,t)}var Yn,B0,Ux,z0,Fx,Bx,H0,zx,ua,ml,Hx,Vx,Wx,ha,qx,V0,W0,zf,Gx,Hf,Jx,Xx,gl,Vf,Yx,q0,Qx,Wf,G0,Zx,Kx,J0,e3,X0,t3,fa,s3,i3,n3,r3,o3,a3,c3,l3,u3,wl,h3,Y0,Q0,f3,qf,d3,Gf,p3,vl,da,Qn,bl,Jf,Zn,yl,m3,Kn,w_,v_,b_,y_,E_,x_,k_,$_=v({"out-build/vs/base/common/marked/marked.js"(){"use strict";Yn=F0(),B0=/[&<>"']/,Ux=new RegExp(B0.source,"g"),z0=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Fx=new RegExp(z0.source,"g"),Bx={"&":"&","<":"<",">":">",'"':""","'":"'"},H0=e=>Bx[e],zx=/(^|[^\[])\^/g,ua={exec:()=>null},ml=class{options;rules;lexer;constructor(e){this.options=e||Yn}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const s=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?s:pl(s,` `)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const s=t[0],i=g_(s,t[3]||"");return{type:"code",raw:s,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:i}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let s=t[2].trim();if(/#$/.test(s)){const i=pl(s,"#");(this.options.pedantic||!i||/ $/.test(i))&&(s=i.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:s,tokens:this.lexer.inline(s)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:pl(t[0],` `)}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){let s=pl(t[0],` `).split(` `),i="",n="";const r=[];for(;s.length>0;){let o=!1;const a=[];let c;for(c=0;c<s.length;c++)if(/^ {0,3}>/.test(s[c]))a.push(s[c]),o=!0;else if(!o)a.push(s[c]);else break;s=s.slice(c);const l=a.join(` `),u=l.replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,` $1`).replace(/^ {0,3}>[ \t]?/gm,"");i=i?`${i} ${l}`:l,n=n?`${n} ${u}`:u;const h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(u,r,!0),this.lexer.state.top=h,s.length===0)break;const d=r[r.length-1];if(d?.type==="code")break;if(d?.type==="blockquote"){const p=d,g=p.raw+` `+s.join(` `),w=this.blockquote(g);r[r.length-1]=w,i=i.substring(0,i.length-p.raw.length)+w.raw,n=n.substring(0,n.length-p.text.length)+w.text;break}else if(d?.type==="list"){const p=d,g=p.raw+` `+s.join(` `),w=this.list(g);r[r.length-1]=w,i=i.substring(0,i.length-d.raw.length)+w.raw,n=n.substring(0,n.length-p.raw.length)+w.raw,s=g.substring(r[r.length-1].raw.length).split(` `);continue}}return{type:"blockquote",raw:i,tokens:r,text:n}}}list(e){let t=this.rules.block.list.exec(e);if(t){let s=t[1].trim();const i=s.length>1,n={type:"list",raw:"",ordered:i,start:i?+s.slice(0,-1):"",loose:!1,items:[]};s=i?`\\d{1,9}\\${s.slice(-1)}`:`\\${s}`,this.options.pedantic&&(s=i?s:"[*+-]");const r=new RegExp(`^( {0,3}${s})((?:[ ][^\\n]*)?(?:\\n|$))`);let o=!1;for(;e;){let a=!1,c="",l="";if(!(t=r.exec(e))||this.rules.block.hr.test(e))break;c=t[0],e=e.substring(c.length);let u=t[2].split(` `,1)[0].replace(/^\t+/,y=>" ".repeat(3*y.length)),h=e.split(` `,1)[0],d=!u.trim(),p=0;if(this.options.pedantic?(p=2,l=u.trimStart()):d?p=t[1].length+1:(p=t[2].search(/[^ ]/),p=p>4?1:p,l=u.slice(p),p+=t[1].length),d&&/^ *$/.test(h)&&(c+=h+` `,e=e.substring(h.length+1),a=!0),!a){const y=new RegExp(`^ {0,${Math.min(3,p-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),x=new RegExp(`^ {0,${Math.min(3,p-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),k=new RegExp(`^ {0,${Math.min(3,p-1)}}(?:\`\`\`|~~~)`),A=new RegExp(`^ {0,${Math.min(3,p-1)}}#`);for(;e;){const I=e.split(` `,1)[0];if(h=I,this.options.pedantic&&(h=h.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),k.test(h)||A.test(h)||y.test(h)||x.test(e))break;if(h.search(/[^ ]/)>=p||!h.trim())l+=` `+h.slice(p);else{if(d||u.search(/[^ ]/)>=4||k.test(u)||A.test(u)||x.test(u))break;l+=` `+h}!d&&!h.trim()&&(d=!0),c+=I+` `,e=e.substring(I.length+1),u=h.slice(p)}}n.loose||(o?n.loose=!0:/\n *\n *$/.test(c)&&(o=!0));let g=null,w;this.options.gfm&&(g=/^\[[ xX]\] /.exec(l),g&&(w=g[0]!=="[ ] ",l=l.replace(/^\[[ xX]\] +/,""))),n.items.push({type:"list_item",raw:c,task:!!g,checked:w,loose:!1,text:l,tokens:[]}),n.raw+=c}n.items[n.items.length-1].raw=n.items[n.items.length-1].raw.trimEnd(),n.items[n.items.length-1].text=n.items[n.items.length-1].text.trimEnd(),n.raw=n.raw.trimEnd();for(let a=0;a<n.items.length;a++)if(this.lexer.state.top=!1,n.items[a].tokens=this.lexer.blockTokens(n.items[a].text,[]),!n.loose){const c=n.items[a].tokens.filter(u=>u.type==="space"),l=c.length>0&&c.some(u=>/\n.*\n/.test(u.raw));n.loose=l}if(n.loose)for(let a=0;a<n.items.length;a++)n.items[a].loose=!0;return n}}html(e){const t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){const t=this.rules.block.def.exec(e);if(t){const s=t[1].toLowerCase().replace(/\s+/g," "),i=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",n=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:s,raw:t[0],href:i,title:n}}}table(e){const t=this.rules.block.table.exec(e);if(!t||!/[:|]/.test(t[2]))return;const s=Tx(t[1]),i=t[2].replace(/^\||\| *$/g,"").split("|"),n=t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split(` `):[],r={type:"table",raw:t[0],header:[],align:[],rows:[]};if(s.length===i.length){for(const o of i)/^ *-+: *$/.test(o)?r.align.push("right"):/^ *:-+: *$/.test(o)?r.align.push("center"):/^ *:-+ *$/.test(o)?r.align.push("left"):r.align.push(null);for(let o=0;o<s.length;o++)r.header.push({text:s[o],tokens:this.lexer.inline(s[o]),header:!0,align:r.align[o]});for(const o of n)r.rows.push(Tx(o,r.header.length).map((a,c)=>({text:a,tokens:this.lexer.inline(a),header:!1,align:r.align[c]})));return r}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const s=t[1].charAt(t[1].length-1)===` `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:s,tokens:this.lexer.inline(s)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:Ts(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const s=t[2].trim();if(!this.options.pedantic&&/^</.test(s)){if(!/>$/.test(s))return;const r=pl(s.slice(0,-1),"\\");if((s.length-r.length)%2===0)return}else{const r=m_(t[2],"()");if(r>-1){const a=(t[0].indexOf("!")===0?5:4)+t[1].length+r;t[2]=t[2].substring(0,r),t[0]=t[0].substring(0,a).trim(),t[3]=""}}let i=t[2],n="";if(this.options.pedantic){const r=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);r&&(i=r[1],n=r[3])}else n=t[3]?t[3].slice(1,-1):"";return i=i.trim(),/^</.test(i)&&(this.options.pedantic&&!/>$/.test(s)?i=i.slice(1):i=i.slice(1,-1)),Mx(t,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:n&&n.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer)}}reflink(e,t){let s;if((s=this.rules.inline.reflink.exec(e))||(s=this.rules.inline.nolink.exec(e))){const i=(s[2]||s[1]).replace(/\s+/g," "),n=t[i.toLowerCase()];if(!n){const r=s[0].charAt(0);return{type:"text",raw:r,text:r}}return Mx(s,n,s[0],this.lexer)}}emStrong(e,t,s=""){let i=this.rules.inline.emStrongLDelim.exec(e);if(!i||i[3]&&s.match(/[\p{L}\p{N}]/u))return;if(!(i[1]||i[2]||"")||!s||this.rules.inline.punctuation.exec(s)){const r=[...i[0]].length-1;let o,a,c=r,l=0;const u=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(u.lastIndex=0,t=t.slice(-1*e.length+r);(i=u.exec(t))!=null;){if(o=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!o)continue;if(a=[...o].length,i[3]||i[4]){c+=a;continue}else if((i[5]||i[6])&&r%3&&!((r+a)%3)){l+=a;continue}if(c-=a,c>0)continue;a=Math.min(a,a+c+l);const h=[...i[0]][0].length,d=e.slice(0,r+i.index+h+a);if(Math.min(r,a)%2){const g=d.slice(1,-1);return{type:"em",raw:d,text:g,tokens:this.lexer.inlineTokens(g)}}const p=d.slice(2,-2);return{type:"strong",raw:d,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let s=t[2].replace(/\n/g," ");const i=/[^ ]/.test(s),n=/^ /.test(s)&&/ $/.test(s);return i&&n&&(s=s.substring(1,s.length-1)),s=Ts(s,!0),{type:"codespan",raw:t[0],text:s}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let s,i;return t[2]==="@"?(s=Ts(t[1]),i="mailto:"+s):(s=Ts(t[1]),i=s),{type:"link",raw:t[0],text:s,href:i,tokens:[{type:"text",raw:s,text:s}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let s,i;if(t[2]==="@")s=Ts(t[0]),i="mailto:"+s;else{let n;do n=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(n!==t[0]);s=Ts(t[0]),t[1]==="www."?i="http://"+t[0]:i=t[0]}return{type:"link",raw:t[0],text:s,href:i,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){let s;return this.lexer.state.inRawBlock?s=t[0]:s=Ts(t[0]),{type:"text",raw:t[0],text:s}}}},Hx=/^(?: *(?:\n|$))+/,Vx=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,Wx=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,ha=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,qx=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,V0=/(?:[*+-]|\d{1,9}[.)])/,W0=Ge(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,V0).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),zf=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Gx=/^[^\n]+/,Hf=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Jx=Ge(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",Hf).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Xx=Ge(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,V0).getRegex(),gl="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Vf=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Yx=Ge("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",Vf).replace("tag",gl).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),q0=Ge(zf).replace("hr",ha).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",gl).getRegex(),Qx=Ge(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",q0).getRegex(),Wf={blockquote:Qx,code:Vx,def:Jx,fences:Wx,heading:qx,hr:ha,html:Yx,lheading:W0,list:Xx,newline:Hx,paragraph:q0,table:ua,text:Gx},G0=Ge("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ha).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",gl).getRegex(),Zx={...Wf,table:G0,paragraph:Ge(zf).replace("hr",ha).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",G0).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",gl).getRegex()},Kx={...Wf,html:Ge(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Vf).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:ua,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ge(zf).replace("hr",ha).replace("heading",` *#{1,6} *[^ ]`).replace("lheading",W0).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},J0=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,e3=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,X0=/^( {2,}|\\)\n(?!\s*$)/,t3=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,fa="\\p{P}\\p{S}",s3=Ge(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,fa).getRegex(),i3=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,n3=Ge(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,fa).getRegex(),r3=Ge("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,fa).getRegex(),o3=Ge("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,fa).getRegex(),a3=Ge(/\\([punct])/,"gu").replace(/punct/g,fa).getRegex(),c3=Ge(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),l3=Ge(Vf).replace("(?:-->|$)","-->").getRegex(),u3=Ge("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",l3).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),wl=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,h3=Ge(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",wl).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Y0=Ge(/^!?\[(label)\]\[(ref)\]/).replace("label",wl).replace("ref",Hf).getRegex(),Q0=Ge(/^!?\[(ref)\](?:\[\])?/).replace("ref",Hf).getRegex(),f3=Ge("reflink|nolink(?!\\()","g").replace("reflink",Y0).replace("nolink",Q0).getRegex(),qf={_backpedal:ua,anyPunctuation:a3,autolink:c3,blockSkip:i3,br:X0,code:e3,del:ua,emStrongLDelim:n3,emStrongRDelimAst:r3,emStrongRDelimUnd:o3,escape:J0,link:h3,nolink:Q0,punctuation:s3,reflink:Y0,reflinkSearch:f3,tag:u3,text:t3,url:ua},d3={...qf,link:Ge(/^!?\[(label)\]\((.*?)\)/).replace("label",wl).getRegex(),reflink:Ge(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",wl).getRegex()},Gf={...qf,escape:Ge(J0).replace("])","~|])").getRegex(),url:Ge(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},p3={...Gf,br:Ge(X0).replace("{2,}","*").getRegex(),text:Ge(Gf.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},vl={normal:Wf,gfm:Zx,pedantic:Kx},da={normal:qf,gfm:Gf,breaks:p3,pedantic:d3},Qn=class yv{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Yn,this.options.tokenizer=this.options.tokenizer||new ml,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const s={block:vl.normal,inline:da.normal};this.options.pedantic?(s.block=vl.pedantic,s.inline=da.pedantic):this.options.gfm&&(s.block=vl.gfm,this.options.breaks?s.inline=da.breaks:s.inline=da.gfm),this.tokenizer.rules=s}static get rules(){return{block:vl,inline:da}}static lex(t,s){return new yv(s).lex(t)}static lexInline(t,s){return new yv(s).inlineTokens(t)}lex(t){t=t.replace(/\r\n|\r/g,` `),this.blockTokens(t,this.tokens);for(let s=0;s<this.inlineQueue.length;s++){const i=this.inlineQueue[s];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,s=[],i=!1){this.options.pedantic?t=t.replace(/\t/g," ").replace(/^ +$/gm,""):t=t.replace(/^( *)(\t+)/gm,(a,c,l)=>c+" ".repeat(l.length));let n,r,o;for(;t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(a=>(n=a.call({lexer:this},t,s))?(t=t.substring(n.raw.length),s.push(n),!0):!1))){if(n=this.tokenizer.space(t)){t=t.substring(n.raw.length),n.raw.length===1&&s.length>0?s[s.length-1].raw+=` `:s.push(n);continue}if(n=this.tokenizer.code(t)){t=t.substring(n.raw.length),r=s[s.length-1],r&&(r.type==="paragraph"||r.type==="text")?(r.raw+=` `+n.raw,r.text+=` `+n.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text):s.push(n);continue}if(n=this.tokenizer.fences(t)){t=t.substring(n.raw.length),s.push(n);continue}if(n=this.tokenizer.heading(t)){t=t.substring(n.raw.length),s.push(n);continue}if(n=this.tokenizer.hr(t)){t=t.substring(n.raw.length),s.push(n);continue}if(n=this.tokenizer.blockquote(t)){t=t.substring(n.raw.length),s.push(n);continue}if(n=this.tokenizer.list(t)){t=t.substring(n.raw.length),s.push(n);continue}if(n=this.tokenizer.html(t)){t=t.substring(n.raw.length),s.push(n);continue}if(n=this.tokenizer.def(t)){t=t.substring(n.raw.length),r=s[s.length-1],r&&(r.type==="paragraph"||r.type==="text")?(r.raw+=` `+n.raw,r.text+=` `+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title});continue}if(n=this.tokenizer.table(t)){t=t.substring(n.raw.length),s.push(n);continue}if(n=this.tokenizer.lheading(t)){t=t.substring(n.raw.length),s.push(n);continue}if(o=t,this.options.extensions&&this.options.extensions.startBlock){let a=1/0;const c=t.slice(1);let l;this.options.extensions.startBlock.forEach(u=>{l=u.call({lexer:this},c),typeof l=="number"&&l>=0&&(a=Math.min(a,l))}),a<1/0&&a>=0&&(o=t.substring(0,a+1))}if(this.state.top&&(n=this.tokenizer.paragraph(o))){r=s[s.length-1],i&&r?.type==="paragraph"?(r.raw+=` `+n.raw,r.text+=` `+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):s.push(n),i=o.length!==t.length,t=t.substring(n.raw.length);continue}if(n=this.tokenizer.text(t)){t=t.substring(n.raw.length),r=s[s.length-1],r&&r.type==="text"?(r.raw+=` `+n.raw,r.text+=` `+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):s.push(n);continue}if(t){const a="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,s}inline(t,s=[]){return this.inlineQueue.push({src:t,tokens:s}),s}inlineTokens(t,s=[]){let i,n,r,o=t,a,c,l;if(this.tokens.links){const u=Object.keys(this.tokens.links);if(u.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(o))!=null;)u.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(o=o.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(a=this.tokenizer.rules.inline.blockSkip.exec(o))!=null;)o=o.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(a=this.tokenizer.rules.inline.anyPunctuation.exec(o))!=null;)o=o.slice(0,a.index)+"++"+o.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;t;)if(c||(l=""),c=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(u=>(i=u.call({lexer:this},t,s))?(t=t.substring(i.raw.length),s.push(i),!0):!1))){if(i=this.tokenizer.escape(t)){t=t.substring(i.raw.length),s.push(i);continue}if(i=this.tokenizer.tag(t)){t=t.substring(i.raw.length),n=s[s.length-1],n&&i.type==="text"&&n.type==="text"?(n.raw+=i.raw,n.text+=i.text):s.push(i);continue}if(i=this.tokenizer.link(t)){t=t.substring(i.raw.length),s.push(i);continue}if(i=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(i.raw.length),n=s[s.length-1],n&&i.type==="text"&&n.type==="text"?(n.raw+=i.raw,n.text+=i.text):s.push(i);continue}if(i=this.tokenizer.emStrong(t,o,l)){t=t.substring(i.raw.length),s.push(i);continue}if(i=this.tokenizer.codespan(t)){t=t.substring(i.raw.length),s.push(i);continue}if(i=this.tokenizer.br(t)){t=t.substring(i.raw.length),s.push(i);continue}if(i=this.tokenizer.del(t)){t=t.substring(i.raw.length),s.push(i);continue}if(i=this.tokenizer.autolink(t)){t=t.substring(i.raw.length),s.push(i);continue}if(!this.state.inLink&&(i=this.tokenizer.url(t))){t=t.substring(i.raw.length),s.push(i);continue}if(r=t,this.options.extensions&&this.options.extensions.startInline){let u=1/0;const h=t.slice(1);let d;this.options.extensions.startInline.forEach(p=>{d=p.call({lexer:this},h),typeof d=="number"&&d>=0&&(u=Math.min(u,d))}),u<1/0&&u>=0&&(r=t.substring(0,u+1))}if(i=this.tokenizer.inlineText(r)){t=t.substring(i.raw.length),i.raw.slice(-1)!=="_"&&(l=i.raw.slice(-1)),c=!0,n=s[s.length-1],n&&n.type==="text"?(n.raw+=i.raw,n.text+=i.text):s.push(i);continue}if(t){const u="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return s}},bl=class{options;parser;constructor(e){this.options=e||Yn}space(e){return""}code({text:e,lang:t,escaped:s}){const i=(t||"").match(/^\S*/)?.[0],n=e.replace(/\n$/,"")+` `;return i?'<pre><code class="language-'+Ts(i)+'">'+(s?n:Ts(n,!0))+`</code></pre> `:"<pre><code>"+(s?n:Ts(n,!0))+`</code></pre> `}blockquote({tokens:e}){return`<blockquote> ${this.parser.parse(e)}</blockquote> `}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}> `}hr(e){return`<hr> `}list(e){const t=e.ordered,s=e.start;let i="";for(let o=0;o<e.items.length;o++){const a=e.items[o];i+=this.listitem(a)}const n=t?"ol":"ul",r=t&&s!==1?' start="'+s+'"':"";return"<"+n+r+`> `+i+"</"+n+`> `}listitem(e){let t="";if(e.task){const s=this.checkbox({checked:!!e.checked});e.loose?e.tokens.length>0&&e.tokens[0].type==="paragraph"?(e.tokens[0].text=s+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=s+" "+e.tokens[0].tokens[0].text)):e.tokens.unshift({type:"text",raw:s+" ",text:s+" "}):t+=s+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li> `}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p> `}table(e){let t="",s="";for(let n=0;n<e.header.length;n++)s+=this.tablecell(e.header[n]);t+=this.tablerow({text:s});let i="";for(let n=0;n<e.rows.length;n++){const r=e.rows[n];s="";for(let o=0;o<r.length;o++)s+=this.tablecell(r[o]);i+=this.tablerow({text:s})}return i&&(i=`<tbody>${i}</tbody>`),`<table> <thead> `+t+`</thead> `+i+`</table> `}tablerow({text:e}){return`<tr> ${e}</tr> `}tablecell(e){const t=this.parser.parseInline(e.tokens),s=e.header?"th":"td";return(e.align?`<${s} align="${e.align}">`:`<${s}>`)+t+`</${s}> `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${e}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:s}){const i=this.parser.parseInline(s),n=_x(e);if(n===null)return i;e=n;let r='<a href="'+e+'"';return t&&(r+=' title="'+t+'"'),r+=">"+i+"</a>",r}image({href:e,title:t,text:s}){const i=_x(e);if(i===null)return s;e=i;let n=`<img src="${e}" alt="${s}"`;return t&&(n+=` title="${t}"`),n+=">",n}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):e.text}},Jf=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},Zn=class Ev{options;renderer;textRenderer;constructor(t){this.options=t||Yn,this.options.renderer=this.options.renderer||new bl,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Jf}static parse(t,s){return new Ev(s).parse(t)}static parseInline(t,s){return new Ev(s).parseInline(t)}parse(t,s=!0){let i="";for(let n=0;n<t.length;n++){const r=t[n];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]){const a=r,c=this.options.extensions.renderers[a.type].call({parser:this},a);if(c!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(a.type)){i+=c||"";continue}}const o=r;switch(o.type){case"space":{i+=this.renderer.space(o);continue}case"hr":{i+=this.renderer.hr(o);continue}case"heading":{i+=this.renderer.heading(o);continue}case"code":{i+=this.renderer.code(o);continue}case"table":{i+=this.renderer.table(o);continue}case"blockquote":{i+=this.renderer.blockquote(o);continue}case"list":{i+=this.renderer.list(o);continue}case"html":{i+=this.renderer.html(o);continue}case"paragraph":{i+=this.renderer.paragraph(o);continue}case"text":{let a=o,c=this.renderer.text(a);for(;n+1<t.length&&t[n+1].type==="text";)a=t[++n],c+=` `+this.renderer.text(a);s?i+=this.renderer.paragraph({type:"paragraph",raw:c,text:c,tokens:[{type:"text",raw:c,text:c}]}):i+=c;continue}default:{const a='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return i}parseInline(t,s){s=s||this.renderer;let i="";for(let n=0;n<t.length;n++){const r=t[n];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]){const a=this.options.extensions.renderers[r.type].call({parser:this},r);if(a!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)){i+=a||"";continue}}const o=r;switch(o.type){case"escape":{i+=s.text(o);break}case"html":{i+=s.html(o);break}case"link":{i+=s.link(o);break}case"image":{i+=s.image(o);break}case"strong":{i+=s.strong(o);break}case"em":{i+=s.em(o);break}case"codespan":{i+=s.codespan(o);break}case"br":{i+=s.br(o);break}case"del":{i+=s.del(o);break}case"text":{i+=s.text(o);break}default:{const a='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return i}},yl=class{options;constructor(e){this.options=e||Yn}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}},m3=class{defaults=F0();options=this.setOptions;parse=this.parseMarkdown(Qn.lex,Zn.parse);parseInline=this.parseMarkdown(Qn.lexInline,Zn.parseInline);Parser=Zn;Renderer=bl;TextRenderer=Jf;Lexer=Qn;Tokenizer=ml;Hooks=yl;constructor(...e){this.use(...e)}walkTokens(e,t){let s=[];for(const i of e)switch(s=s.concat(t.call(this,i)),i.type){case"table":{const n=i;for(const r of n.header)s=s.concat(this.walkTokens(r.tokens,t));for(const r of n.rows)for(const o of r)s=s.concat(this.walkTokens(o.tokens,t));break}case"list":{const n=i;s=s.concat(this.walkTokens(n.items,t));break}default:{const n=i;this.defaults.extensions?.childTokens?.[n.type]?this.defaults.extensions.childTokens[n.type].forEach(r=>{const o=n[r].flat(1/0);s=s.concat(this.walkTokens(o,t))}):n.tokens&&(s=s.concat(this.walkTokens(n.tokens,t)))}}return s}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(s=>{const i={...s};if(i.async=this.defaults.async||i.async||!1,s.extensions&&(s.extensions.forEach(n=>{if(!n.name)throw new Error("extension name required");if("renderer"in n){const r=t.renderers[n.name];r?t.renderers[n.name]=function(...o){let a=n.renderer.apply(this,o);return a===!1&&(a=r.apply(this,o)),a}:t.renderers[n.name]=n.renderer}if("tokenizer"in n){if(!n.level||n.level!=="block"&&n.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const r=t[n.level];r?r.unshift(n.tokenizer):t[n.level]=[n.tokenizer],n.start&&(n.level==="block"?t.startBlock?t.startBlock.push(n.start):t.startBlock=[n.start]:n.level==="inline"&&(t.startInline?t.startInline.push(n.start):t.startInline=[n.start]))}"childTokens"in n&&n.childTokens&&(t.childTokens[n.name]=n.childTokens)}),i.extensions=t),s.renderer){const n=this.defaults.renderer||new bl(this.defaults);for(const r in s.renderer){if(!(r in n))throw new Error(`renderer '${r}' does not exist`);if(["options","parser"].includes(r))continue;const o=r,a=s.renderer[o],c=n[o];n[o]=(...l)=>{let u=a.apply(n,l);return u===!1&&(u=c.apply(n,l)),u||""}}i.renderer=n}if(s.tokenizer){const n=this.defaults.tokenizer||new ml(this.defaults);for(const r in s.tokenizer){if(!(r in n))throw new Error(`tokenizer '${r}' does not exist`);if(["options","rules","lexer"].includes(r))continue;const o=r,a=s.tokenizer[o],c=n[o];n[o]=(...l)=>{let u=a.apply(n,l);return u===!1&&(u=c.apply(n,l)),u}}i.tokenizer=n}if(s.hooks){const n=this.defaults.hooks||new yl;for(const r in s.hooks){if(!(r in n))throw new Error(`hook '${r}' does not exist`);if(r==="options")continue;const o=r,a=s.hooks[o],c=n[o];yl.passThroughHooks.has(r)?n[o]=l=>{if(this.defaults.async)return Promise.resolve(a.call(n,l)).then(h=>c.call(n,h));const u=a.call(n,l);return c.call(n,u)}:n[o]=(...l)=>{let u=a.apply(n,l);return u===!1&&(u=c.apply(n,l)),u}}i.hooks=n}if(s.walkTokens){const n=this.defaults.walkTokens,r=s.walkTokens;i.walkTokens=function(o){let a=[];return a.push(r.call(this,o)),n&&(a=a.concat(n.call(this,o))),a}}this.defaults={...this.defaults,...i}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Qn.lex(e,t??this.defaults)}parser(e,t){return Zn.parse(e,t??this.defaults)}parseMarkdown(e,t){return(i,n)=>{const r={...n},o={...this.defaults,...r},a=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&r.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof i>"u"||i===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof i!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected"));if(o.hooks&&(o.hooks.options=o),o.async)return Promise.resolve(o.hooks?o.hooks.preprocess(i):i).then(c=>e(c,o)).then(c=>o.hooks?o.hooks.processAllTokens(c):c).then(c=>o.walkTokens?Promise.all(this.walkTokens(c,o.walkTokens)).then(()=>c):c).then(c=>t(c,o)).then(c=>o.hooks?o.hooks.postprocess(c):c).catch(a);try{o.hooks&&(i=o.hooks.preprocess(i));let c=e(i,o);o.hooks&&(c=o.hooks.processAllTokens(c)),o.walkTokens&&this.walkTokens(c,o.walkTokens);let l=t(c,o);return o.hooks&&(l=o.hooks.postprocess(l)),l}catch(c){return a(c)}}}onError(e,t){return s=>{if(s.message+=` Please report this to https://github.com/markedjs/marked.`,e){const i="<p>An error occurred:</p><pre>"+Ts(s.message+"",!0)+"</pre>";return t?Promise.resolve(i):i}if(t)return Promise.reject(s);throw s}}},Kn=new m3,Be.options=Be.setOptions=function(e){return Kn.setOptions(e),Be.defaults=Kn.defaults,jx(Be.defaults),Be},Be.getDefaults=F0,Be.defaults=Yn,Be.use=function(...e){return Kn.use(...e),Be.defaults=Kn.defaults,jx(Be.defaults),Be},Be.walkTokens=function(e,t){return Kn.walkTokens(e,t)},Be.parseInline=Kn.parseInline,Be.Parser=Zn,Be.parser=Zn.parse,Be.Renderer=bl,Be.TextRenderer=Jf,Be.Lexer=Qn,Be.lexer=Qn.lex,Be.Tokenizer=ml,Be.Hooks=yl,Be.parse=Be,w_=Be.options,v_=Be.setOptions,b_=Be.use,y_=Be.walkTokens,E_=Be.parseInline,x_=Zn.parse,k_=Qn.lex}});function*g3(e){const t=[e];for(;t.length>0;){const s=t.pop();if(yield s,s.children)for(const i of s.children.values())t.push(i)}}var ns,w3,Xf,S_=v({"out-build/vs/base/common/prefixTree.js"(){"use strict";dr(),ns=Symbol("unset"),w3=class{constructor(){this.a=new Xf,this.b=0}get size(){return this.b}get nodes(){return this.a.children?.values()||qi.empty()}get entries(){return this.a.children?.entries()||qi.empty()}insert(e,t,s){this.d(e,i=>i._value=t,s)}mutate(e,t){this.d(e,s=>s._value=t(s._value===ns?void 0:s._value))}mutatePath(e,t){this.d(e,()=>{},s=>t(s))}delete(e){const t=this.c(e);if(!t)return;let s=t.length-1;const i=t[s].node._value;if(i!==ns){for(this.b--,t[s].node._value=ns;s>0;s--){const{node:n,part:r}=t[s];if(n.children?.size||n._value!==ns)break;t[s-1].node.children.delete(r)}return i}}*deleteRecursive(e){const t=this.c(e);if(!t)return;const s=t[t.length-1].node;for(let i=t.length-1;i>0;i--){const n=t[i-1];if(n.node.children.delete(t[i].part),n.node.children.size>0||n.node._value!==ns)break}for(const i of g3(s))i._value!==ns&&(this.b--,yield i._value)}find(e){let t=this.a;for(const s of e){const i=t.children?.get(s);if(!i)return;t=i}return t._value===ns?void 0:t._value}hasKeyOrParent(e){let t=this.a;for(const s of e){const i=t.children?.get(s);if(!i)return!1;if(i._value!==ns)return!0;t=i}return!1}hasKeyOrChildren(e){let t=this.a;for(const s of e){const i=t.children?.get(s);if(!i)return!1;t=i}return!0}hasKey(e){let t=this.a;for(const s of e){const i=t.children?.get(s);if(!i)return!1;t=i}return t._value!==ns}c(e){const t=[{part:"",node:this.a}];let s=0;for(const i of e){const n=t[s].node.children?.get(i);if(!n)return;t.push({part:i,node:n}),s++}return t}d(e,t,s){let i=this.a;for(const o of e){if(i.children)if(i.children.has(o))i=i.children.get(o);else{const a=new Xf;i.children.set(o,a),i=a}else{const a=new Xf;i.children=new Map([[o,a]]),i=a}s?.(i)}const n=i._value===ns?0:1;t(i);const r=i._value===ns?0:1;this.b+=r-n}*values(){for(const{_value:e}of g3(this.a))e!==ns&&(yield e)}},Xf=class{constructor(){this._value=ns}get value(){return this._value===ns?void 0:this._value}set value(e){this._value=e===void 0?ns:e}}}}),Fr,Z0=v({"out-build/vs/editor/common/core/position.js"(){"use strict";Fr=class Xr{constructor(t,s){this.lineNumber=t,this.column=s}with(t=this.lineNumber,s=this.column){return t===this.lineNumber&&s===this.column?this:new Xr(t,s)}delta(t=0,s=0){return this.with(this.lineNumber+t,this.column+s)}equals(t){return Xr.equals(this,t)}static equals(t,s){return!t&&!s?!0:!!t&&!!s&&t.lineNumber===s.lineNumber&&t.column===s.column}isBefore(t){return Xr.isBefore(this,t)}static isBefore(t,s){return t.lineNumber<s.lineNumber?!0:s.lineNumber<t.lineNumber?!1:t.column<s.column}isBeforeOrEqual(t){return Xr.isBeforeOrEqual(this,t)}static isBeforeOrEqual(t,s){return t.lineNumber<s.lineNumber?!0:s.lineNumber<t.lineNumber?!1:t.column<=s.column}static compare(t,s){const i=t.lineNumber|0,n=s.lineNumber|0;if(i===n){const r=t.column|0,o=s.column|0;return r-o}return i-n}clone(){return new Xr(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(t){return new Xr(t.lineNumber,t.column)}static isIPosition(t){return t&&typeof t.lineNumber=="number"&&typeof t.column=="number"}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}}}}),Li,pa=v({"out-build/vs/editor/common/core/range.js"(){"use strict";Z0(),Li=class St{constructor(t,s,i,n){t>i||t===i&&s>n?(this.startLineNumber=i,this.startColumn=n,this.endLineNumber=t,this.endColumn=s):(this.startLineNumber=t,this.startColumn=s,this.endLineNumber=i,this.endColumn=n)}isEmpty(){return St.isEmpty(this)}static isEmpty(t){return t.startLineNumber===t.endLineNumber&&t.startColumn===t.endColumn}containsPosition(t){return St.containsPosition(this,t)}static containsPosition(t,s){return!(s.lineNumber<t.startLineNumber||s.lineNumber>t.endLineNumber||s.lineNumber===t.startLineNumber&&s.column<t.startColumn||s.lineNumber===t.endLineNumber&&s.column>t.endColumn)}static strictContainsPosition(t,s){return!(s.lineNumber<t.startLineNumber||s.lineNumber>t.endLineNumber||s.lineNumber===t.startLineNumber&&s.column<=t.startColumn||s.lineNumber===t.endLineNumber&&s.column>=t.endColumn)}containsRange(t){return St.containsRange(this,t)}static containsRange(t,s){return!(s.startLineNumber<t.startLineNumber||s.endLineNumber<t.startLineNumber||s.startLineNumber>t.endLineNumber||s.endLineNumber>t.endLineNumber||s.startLineNumber===t.startLineNumber&&s.startColumn<t.startColumn||s.endLineNumber===t.endLineNumber&&s.endColumn>t.endColumn)}strictContainsRange(t){return St.strictContainsRange(this,t)}static strictContainsRange(t,s){return!(s.startLineNumber<t.startLineNumber||s.endLineNumber<t.startLineNumber||s.startLineNumber>t.endLineNumber||s.endLineNumber>t.endLineNumber||s.startLineNumber===t.startLineNumber&&s.startColumn<=t.startColumn||s.endLineNumber===t.endLineNumber&&s.endColumn>=t.endColumn)}plusRange(t){return St.plusRange(this,t)}static plusRange(t,s){let i,n,r,o;return s.startLineNumber<t.startLineNumber?(i=s.startLineNumber,n=s.startColumn):s.startLineNumber===t.startLineNumber?(i=s.startLineNumber,n=Math.min(s.startColumn,t.startColumn)):(i=t.startLineNumber,n=t.startColumn),s.endLineNumber>t.endLineNumber?(r=s.endLineNumber,o=s.endColumn):s.endLineNumber===t.endLineNumber?(r=s.endLineNumber,o=Math.max(s.endColumn,t.endColumn)):(r=t.endLineNumber,o=t.endColumn),new St(i,n,r,o)}intersectRanges(t){return St.intersectRanges(this,t)}static intersectRanges(t,s){let i=t.startLineNumber,n=t.startColumn,r=t.endLineNumber,o=t.endColumn;const a=s.startLineNumber,c=s.startColumn,l=s.endLineNumber,u=s.endColumn;return i<a?(i=a,n=c):i===a&&(n=Math.max(n,c)),r>l?(r=l,o=u):r===l&&(o=Math.min(o,u)),i>r||i===r&&n>o?null:new St(i,n,r,o)}equalsRange(t){return St.equalsRange(this,t)}static equalsRange(t,s){return!t&&!s?!0:!!t&&!!s&&t.startLineNumber===s.startLineNumber&&t.startColumn===s.startColumn&&t.endLineNumber===s.endLineNumber&&t.endColumn===s.endColumn}getEndPosition(){return St.getEndPosition(this)}static getEndPosition(t){return new Fr(t.endLineNumber,t.endColumn)}getStartPosition(){return St.getStartPosition(this)}static getStartPosition(t){return new Fr(t.startLineNumber,t.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(t,s){return new St(this.startLineNumber,this.startColumn,t,s)}setStartPosition(t,s){return new St(t,s,this.endLineNumber,this.endColumn)}collapseToStart(){return St.collapseToStart(this)}static collapseToStart(t){return new St(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)}collapseToEnd(){return St.collapseToEnd(this)}static collapseToEnd(t){return new St(t.endLineNumber,t.endColumn,t.endLineNumber,t.endColumn)}delta(t){return new St(this.startLineNumber+t,this.startColumn,this.endLineNumber+t,this.endColumn)}static fromPositions(t,s=t){return new St(t.lineNumber,t.column,s.lineNumber,s.column)}static lift(t){return t?new St(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null}static isIRange(t){return t&&typeof t.startLineNumber=="number"&&typeof t.startColumn=="number"&&typeof t.endLineNumber=="number"&&typeof t.endColumn=="number"}static areIntersectingOrTouching(t,s){return!(t.endLineNumber<s.startLineNumber||t.endLineNumber===s.startLineNumber&&t.endColumn<s.startColumn||s.endLineNumber<t.startLineNumber||s.endLineNumber===t.startLineNumber&&s.endColumn<t.startColumn)}static areIntersecting(t,s){return!(t.endLineNumber<s.startLineNumber||t.endLineNumber===s.startLineNumber&&t.endColumn<=s.startColumn||s.endLineNumber<t.startLineNumber||s.endLineNumber===t.startLineNumber&&s.endColumn<=t.startColumn)}static compareRangesUsingStarts(t,s){if(t&&s){const r=t.startLineNumber|0,o=s.startLineNumber|0;if(r===o){const a=t.startColumn|0,c=s.startColumn|0;if(a===c){const l=t.endLineNumber|0,u=s.endLineNumber|0;if(l===u){const h=t.endColumn|0,d=s.endColumn|0;return h-d}return l-u}return a-c}return r-o}return(t?1:0)-(s?1:0)}static compareRangesUsingEnds(t,s){return t.endLineNumber===s.endLineNumber?t.endColumn===s.endColumn?t.startLineNumber===s.startLineNumber?t.startColumn-s.startColumn:t.startLineNumber-s.startLineNumber:t.endColumn-s.endColumn:t.endLineNumber-s.endLineNumber}static spansMultipleLines(t){return t.endLineNumber>t.startLineNumber}toJSON(){return this}}}}),P_=v({"out-build/vs/editor/common/core/editOperation.js"(){"use strict";pa()}}),K0,v3,I_=v({"out-build/vs/editor/common/tokenizationRegistry.js"(){"use strict";ae(),H(),K0=class{constructor(){this.a=new Map,this.b=new Map,this.c=new D,this.onDidChange=this.c.event,this.d=null}handleChange(e){this.c.fire({changedLanguages:e,changedColorMap:!1})}register(e,t){return this.a.set(e,t),this.handleChange([e]),ve(()=>{this.a.get(e)===t&&(this.a.delete(e),this.handleChange([e]))})}get(e){return this.a.get(e)||null}registerFactory(e,t){this.b.get(e)?.dispose();const s=new v3(this,e,t);return this.b.set(e,s),ve(()=>{const i=this.b.get(e);!i||i!==s||(this.b.delete(e),i.dispose())})}async getOrCreate(e){const t=this.get(e);if(t)return t;const s=this.b.get(e);return!s||s.isResolved?null:(await s.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;const s=this.b.get(e);return!!(!s||s.isResolved)}setColorMap(e){this.d=e,this.c.fire({changedLanguages:Array.from(this.a.keys()),changedColorMap:!0})}getColorMap(){return this.d}getDefaultBackground(){return this.d&&this.d.length>2?this.d[2]:null}},v3=class extends J{get isResolved(){return this.c}constructor(e,t,s){super(),this.f=e,this.g=t,this.h=s,this.a=!1,this.b=null,this.c=!1}dispose(){this.a=!0,super.dispose()}async resolve(){return this.b||(this.b=this.j()),this.b}async j(){const e=await this.h.tokenizationSupport;this.c=!0,e&&!this.a&&this.B(this.f.register(this.g,e))}}}}),b3,y3,E3,x3,k3,$3,S3,P3,I3,A3,D3,N3,R3,A_,L3,O3,Br,C3,j3,ew,_3,T3,M3,U3,F3,B3,D_,N_,z3,H3,R_=v({"out-build/vs/editor/common/languages.js"(){"use strict";Qc(),te(),P_(),pa(),I_(),pe(),function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(b3||(b3={})),function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"}(y3||(y3={})),function(e){const t=new Map;t.set(0,T.symbolMethod),t.set(1,T.symbolFunction),t.set(2,T.symbolConstructor),t.set(3,T.symbolField),t.set(4,T.symbolVariable),t.set(5,T.symbolClass),t.set(6,T.symbolStruct),t.set(7,T.symbolInterface),t.set(8,T.symbolModule),t.set(9,T.symbolProperty),t.set(10,T.symbolEvent),t.set(11,T.symbolOperator),t.set(12,T.symbolUnit),t.set(13,T.symbolValue),t.set(15,T.symbolEnum),t.set(14,T.symbolConstant),t.set(15,T.symbolEnum),t.set(16,T.symbolEnumMember),t.set(17,T.symbolKeyword),t.set(27,T.symbolSnippet),t.set(18,T.symbolText),t.set(19,T.symbolColor),t.set(20,T.symbolFile),t.set(21,T.symbolReference),t.set(22,T.symbolCustomColor),t.set(23,T.symbolFolder),t.set(24,T.symbolTypeParameter),t.set(25,T.account),t.set(26,T.issues);function s(r){let o=t.get(r);return o||(console.info("No codicon found for CompletionItemKind "+r),o=T.symbolProperty),o}e.toIcon=s;const i=new Map;i.set("method",0),i.set("function",1),i.set("constructor",2),i.set("field",3),i.set("variable",4),i.set("class",5),i.set("struct",6),i.set("interface",7),i.set("module",8),i.set("property",9),i.set("event",10),i.set("operator",11),i.set("unit",12),i.set("value",13),i.set("constant",14),i.set("enum",15),i.set("enum-member",16),i.set("enumMember",16),i.set("keyword",17),i.set("snippet",27),i.set("text",18),i.set("color",19),i.set("file",20),i.set("reference",21),i.set("customcolor",22),i.set("folder",23),i.set("type-parameter",24),i.set("typeParameter",24),i.set("account",25),i.set("issue",26);function n(r,o){let a=i.get(r);return typeof a>"u"&&!o&&(a=9),a}e.fromString=n}(E3||(E3={})),function(e){e[e.Deprecated=1]="Deprecated"}(x3||(x3={})),function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(k3||(k3={})),function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"}($3||($3={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(S3||(S3={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(P3||(P3={})),function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"}(I3||(I3={})),function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"}(A3||(A3={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(D3||(D3={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(N3||(N3={})),function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"}(R3||(R3={})),A_={17:m(791,null),16:m(792,null),4:m(793,null),13:m(794,null),8:m(795,null),9:m(796,null),21:m(797,null),23:m(798,null),7:m(799,null),0:m(800,null),11:m(801,null),10:m(802,null),19:m(803,null),5:m(804,null),1:m(805,null),2:m(806,null),20:m(807,null),15:m(808,null),18:m(809,null),24:m(810,null),3:m(811,null),6:m(812,null),14:m(813,null),22:m(814,null),25:m(815,null),12:m(816,null)},function(e){e[e.Deprecated=1]="Deprecated"}(L3||(L3={})),function(e){const t=new Map;t.set(0,T.symbolFile),t.set(1,T.symbolModule),t.set(2,T.symbolNamespace),t.set(3,T.symbolPackage),t.set(4,T.symbolClass),t.set(5,T.symbolMethod),t.set(6,T.symbolProperty),t.set(7,T.symbolField),t.set(8,T.symbolConstructor),t.set(9,T.symbolEnum),t.set(10,T.symbolInterface),t.set(11,T.symbolFunction),t.set(12,T.symbolVariable),t.set(13,T.symbolConstant),t.set(14,T.symbolString),t.set(15,T.symbolNumber),t.set(16,T.symbolBoolean),t.set(17,T.symbolArray),t.set(18,T.symbolObject),t.set(19,T.symbolKey),t.set(20,T.symbolNull),t.set(21,T.symbolEnumMember),t.set(22,T.symbolStruct),t.set(23,T.symbolEvent),t.set(24,T.symbolOperator),t.set(25,T.symbolTypeParameter);function s(i){let n=t.get(i);return n||(console.info("No codicon found for SymbolKind "+i),n=T.symbolProperty),n}e.toIcon=s}(O3||(O3={})),Br=class ar{static{this.Comment=new ar("comment")}static{this.Imports=new ar("imports")}static{this.Region=new ar("region")}static fromValue(t){switch(t){case"comment":return ar.Comment;case"imports":return ar.Imports;case"region":return ar.Region}return new ar(t)}constructor(t){this.value=t}},function(e){e[e.AIGenerated=1]="AIGenerated"}(C3||(C3={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(j3||(j3={})),function(e){function t(s){return!s||typeof s!="object"?!1:typeof s.id=="string"&&typeof s.title=="string"}e.is=t}(ew||(ew={})),function(e){e[e.Collapsed=0]="Collapsed",e[e.Expanded=1]="Expanded"}(_3||(_3={})),function(e){e[e.Unresolved=0]="Unresolved",e[e.Resolved=1]="Resolved"}(T3||(T3={})),function(e){e[e.Current=0]="Current",e[e.Outdated=1]="Outdated"}(M3||(M3={})),function(e){e[e.Editing=0]="Editing",e[e.Preview=1]="Preview"}(U3||(U3={})),function(e){e[e.Published=0]="Published",e[e.Draft=1]="Draft"}(F3||(F3={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(B3||(B3={})),D_=new K0,N_=new K0,function(e){e[e.None=0]="None",e[e.Option=1]="Option",e[e.Default=2]="Default",e[e.Preferred=3]="Preferred"}(z3||(z3={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(H3||(H3={}))}}),V3,Rs,W3,L_,O_=v({"out-build/vs/platform/markers/common/markers.js"(){"use strict";Wu(),pe(),re(),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(V3||(V3={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(Rs||(Rs={})),function(e){function t(o,a){return a-o}e.compare=t;const s=Object.create(null);s[e.Error]=m(1977,null),s[e.Warning]=m(1978,null),s[e.Info]=m(1979,null);function i(o){return s[o]||""}e.toString=i;function n(o){switch(o){case Ze.Error:return e.Error;case Ze.Warning:return e.Warning;case Ze.Info:return e.Info;case Ze.Ignore:return e.Hint}}e.fromSeverity=n;function r(o){switch(o){case e.Error:return Ze.Error;case e.Warning:return Ze.Warning;case e.Info:return Ze.Info;case e.Hint:return Ze.Ignore}}e.toSeverity=r}(Rs||(Rs={})),function(e){const t="";function s(n){return i(n,!0)}e.makeKey=s;function i(n,r){const o=[t];return n.source?o.push(n.source.replace("\xA6","\\\xA6")):o.push(t),n.code?typeof n.code=="string"?o.push(n.code.replace("\xA6","\\\xA6")):o.push(n.code.value.replace("\xA6","\\\xA6")):o.push(t),n.severity!==void 0&&n.severity!==null?o.push(Rs.toString(n.severity)):o.push(t),n.message&&r?o.push(n.message.replace("\xA6","\\\xA6")):o.push(t),n.startLineNumber!==void 0&&n.startLineNumber!==null?o.push(n.startLineNumber.toString()):o.push(t),n.startColumn!==void 0&&n.startColumn!==null?o.push(n.startColumn.toString()):o.push(t),n.endLineNumber!==void 0&&n.endLineNumber!==null?o.push(n.endLineNumber.toString()):o.push(t),n.endColumn!==void 0&&n.endColumn!==null?o.push(n.endColumn.toString()):o.push(t),o.push(t),o.join("\xA6")}e.makeKeyOptionalMessage=i}(W3||(W3={})),L_=ie("markerService")}}),q3,C_,j_,__=v({"out-build/vs/base/common/actions.js"(){"use strict";ae(),H(),pe(),q3=class extends J{constructor(e,t="",s="",i=!0,n){super(),this.j=this.B(new D),this.onDidChange=this.j.event,this.z=!0,this.m=e,this.n=t,this.w=s,this.z=i,this.D=n}get id(){return this.m}get label(){return this.n}set label(e){this.F(e)}F(e){this.n!==e&&(this.n=e,this.j.fire({label:e}))}get tooltip(){return this.u||""}set tooltip(e){this.G(e)}G(e){this.u!==e&&(this.u=e,this.j.fire({tooltip:e}))}get class(){return this.w}set class(e){this.H(e)}H(e){this.w!==e&&(this.w=e,this.j.fire({class:e}))}get enabled(){return this.z}set enabled(e){this.I(e)}I(e){this.z!==e&&(this.z=e,this.j.fire({enabled:e}))}get checked(){return this.C}set checked(e){this.J(e)}J(e){this.C!==e&&(this.C=e,this.j.fire({checked:e}))}async run(e,t){this.D&&await this.D(e)}},C_=class xv{constructor(){this.id=xv.ID,this.label="",this.tooltip="",this.class="separator",this.enabled=!1,this.checked=!1}static join(...t){let s=[];for(const i of t)i.length&&(s.length?s=[...s,new xv,...i]:s=i);return s}static{this.ID="vs.actions.separator"}async run(){}},j_=class EI extends q3{static{this.ID="vs.actions.empty"}constructor(){super(EI.ID,m(42,null),void 0,!1)}}}});function Yf(e){if(er(e))return!1;const t=e;return t?.original!==void 0&&t.modified!==void 0}function G3(e){if(er(e))return!1;const t=e;return!t||t.resources&&!Array.isArray(t.resources)?!1:!!t.resources||!!t.multiDiffSource}function tw(e){if(er(e)||Yf(e))return!1;const t=e;return t?.primary!==void 0&&t.secondary!==void 0}function Qf(e){if(er(e))return!1;const t=e;return E.isUri(t?.base?.resource)&&E.isUri(t?.input1?.resource)&&E.isUri(t?.input2?.resource)&&E.isUri(t?.result?.resource)}function er(e){return e instanceof sk}function T_(e){const t=e;return E.isUri(t?.preferredResource)}function M_(e){const t=e;return er(t?.primary)&&er(t?.secondary)}function U_(e){const t=e;return er(t?.modified)&&er(t?.original)}var J3,X3,Y3,Q3,Z3,K3,ek,F_,tk,sk,ik,nk,wn,rk,ok,Zf,ak,ck,lk,sw=v({"out-build/vs/workbench/common/editor.js"(){"use strict";pe(),xe(),te(),H(),re(),rn(),et(),Ie(),br(),__(),Wu(),J3={EditorPane:"workbench.contributions.editors",EditorFactory:"workbench.contributions.editor.inputFactories"},X3={id:"default",displayName:m(4073,null),providerDisplayName:m(4074,null)},function(e){e[e.PROGRAMMATIC=1]="PROGRAMMATIC",e[e.USER=2]="USER",e[e.EDIT=3]="EDIT",e[e.NAVIGATION=4]="NAVIGATION",e[e.JUMP=5]="JUMP"}(Y3||(Y3={})),function(e){e[e.IDENTICAL=1]="IDENTICAL",e[e.SIMILAR=2]="SIMILAR",e[e.DIFFERENT=3]="DIFFERENT"}(Q3||(Q3={})),function(e){e[e.SHORT=0]="SHORT",e[e.MEDIUM=1]="MEDIUM",e[e.LONG=2]="LONG"}(Z3||(Z3={})),function(e){e[e.EXPLICIT=1]="EXPLICIT",e[e.AUTO=2]="AUTO",e[e.FOCUS_CHANGE=3]="FOCUS_CHANGE",e[e.WINDOW_CHANGE=4]="WINDOW_CHANGE"}(K3||(K3={})),ek=class{constructor(){this.a=new Map}registerSource(e,t){let s=this.a.get(e);return s||(s={source:e,label:t},this.a.set(e,s)),s.source}getSourceLabel(e){return this.a.get(e)?.label??e}},F_=new ek,function(e){e[e.None=0]="None",e[e.Readonly=2]="Readonly",e[e.Untitled=4]="Untitled",e[e.Singleton=8]="Singleton",e[e.RequiresTrust=16]="RequiresTrust",e[e.CanSplitInGroup=32]="CanSplitInGroup",e[e.ForceDescription=64]="ForceDescription",e[e.CanDropIntoEditor=128]="CanDropIntoEditor",e[e.MultipleEditors=256]="MultipleEditors",e[e.Scratchpad=512]="Scratchpad"}(tk||(tk={})),sk=class extends J{},function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.REPLACE=1]="REPLACE",e[e.MOVE=2]="MOVE",e[e.UNPIN=3]="UNPIN"}(ik||(ik={})),function(e){e[e.GROUP_ACTIVE=0]="GROUP_ACTIVE",e[e.GROUP_INDEX=1]="GROUP_INDEX",e[e.GROUP_LABEL=2]="GROUP_LABEL",e[e.GROUP_LOCKED=3]="GROUP_LOCKED",e[e.EDITORS_SELECTION=4]="EDITORS_SELECTION",e[e.EDITOR_OPEN=5]="EDITOR_OPEN",e[e.EDITOR_CLOSE=6]="EDITOR_CLOSE",e[e.EDITOR_MOVE=7]="EDITOR_MOVE",e[e.EDITOR_ACTIVE=8]="EDITOR_ACTIVE",e[e.EDITOR_LABEL=9]="EDITOR_LABEL",e[e.EDITOR_CAPABILITIES=10]="EDITOR_CAPABILITIES",e[e.EDITOR_PIN=11]="EDITOR_PIN",e[e.EDITOR_TRANSIENT=12]="EDITOR_TRANSIENT",e[e.EDITOR_STICKY=13]="EDITOR_STICKY",e[e.EDITOR_DIRTY=14]="EDITOR_DIRTY",e[e.EDITOR_WILL_DISPOSE=15]="EDITOR_WILL_DISPOSE"}(nk||(nk={})),function(e){e[e.PRIMARY=1]="PRIMARY",e[e.SECONDARY=2]="SECONDARY",e[e.BOTH=3]="BOTH",e[e.ANY=4]="ANY"}(wn||(wn={})),rk=class{getOriginalUri(e,t){if(!e)return;if(Qf(e))return Zf.getOriginalUri(e.result,t);if(t?.supportSideBySide){const{primary:i,secondary:n}=this.a(e);if(i&&n){if(t?.supportSideBySide===wn.BOTH)return{primary:this.getOriginalUri(i,{filterByScheme:t.filterByScheme}),secondary:this.getOriginalUri(n,{filterByScheme:t.filterByScheme})};if(t?.supportSideBySide===wn.ANY)return this.getOriginalUri(i,{filterByScheme:t.filterByScheme})??this.getOriginalUri(n,{filterByScheme:t.filterByScheme});e=t.supportSideBySide===wn.PRIMARY?i:n}}if(Yf(e)||G3(e)||tw(e)||Qf(e))return;const s=T_(e)?e.preferredResource:e.resource;return!s||!t||!t.filterByScheme?s:this.b(s,t.filterByScheme)}a(e){return M_(e)||tw(e)?{primary:e.primary,secondary:e.secondary}:U_(e)||Yf(e)?{primary:e.modified,secondary:e.original}:{primary:void 0,secondary:void 0}}getCanonicalUri(e,t){if(!e)return;if(Qf(e))return Zf.getCanonicalUri(e.result,t);if(t?.supportSideBySide){const{primary:i,secondary:n}=this.a(e);if(i&&n){if(t?.supportSideBySide===wn.BOTH)return{primary:this.getCanonicalUri(i,{filterByScheme:t.filterByScheme}),secondary:this.getCanonicalUri(n,{filterByScheme:t.filterByScheme})};if(t?.supportSideBySide===wn.ANY)return this.getCanonicalUri(i,{filterByScheme:t.filterByScheme})??this.getCanonicalUri(n,{filterByScheme:t.filterByScheme});e=t.supportSideBySide===wn.PRIMARY?i:n}}if(Yf(e)||G3(e)||tw(e)||Qf(e))return;const s=e.resource;return!s||!t||!t.filterByScheme?s:this.b(s,t.filterByScheme)}b(e,t){if(Array.isArray(t)){if(t.some(s=>e.scheme===s))return e}else if(t===e.scheme)return e}},function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.KEYBOARD=1]="KEYBOARD",e[e.MOUSE=2]="MOUSE"}(ok||(ok={})),Zf=new rk,function(e){e[e.LEFT=0]="LEFT",e[e.RIGHT=1]="RIGHT"}(ak||(ak={})),ck=class{constructor(){this.c=new Map,this.d=new Map}start(e){const t=this.a=e.get(yr);for(const[s,i]of this.c)this.e(s,i,t);this.c.clear()}e(e,t,s){const i=s.createInstance(t);this.d.set(e,i)}registerFileEditorFactory(e){if(this.b)throw new Error("Can only register one file editor factory.");this.b=e}getFileEditorFactory(){return Hp(this.b)}registerEditorSerializer(e,t){if(this.c.has(e)||this.d.has(e))throw new Error(`A editor serializer with type ID '${e}' was already registered.`);return this.a?this.e(e,t,this.a):this.c.set(e,t),ve(()=>{this.c.delete(e),this.d.delete(e)})}getEditorSerializer(e){return this.d.get(typeof e=="string"?e:e.typeId)}},_t.add(J3.EditorFactory,new ck),function(e){e[e.MOST_RECENTLY_ACTIVE=0]="MOST_RECENTLY_ACTIVE",e[e.SEQUENTIAL=1]="SEQUENTIAL"}(lk||(lk={}))}});function B_(e,t){const s=Kf.get(e);if(s)return s;const i=z_(e,t);if(i){let n=nw.get(i)??0;n++,nw.set(i,n);const r=n===1?i:`${i}#${n}`;return Kf.set(e,r),r}}function z_(e,t){const s=Kf.get(e);if(s)return s;const i=t.owner?V_(t.owner)+".":"";let n;const r=t.debugNameSource;if(r!==void 0)if(typeof r=="function"){if(n=r(),n!==void 0)return i+n}else return i+r;const o=t.referenceFn;if(o!==void 0&&(n=iw(o),n!==void 0))return i+n;if(t.owner!==void 0){const a=H_(t.owner,e);if(a!==void 0)return i+a}}function H_(e,t){for(const s in e)if(e[s]===t)return s}function V_(e){const t=ow.get(e);if(t)return t;const s=W_(e);let i=rw.get(s)??0;i++,rw.set(s,i);const n=i===1?s:`${s}#${i}`;return ow.set(e,n),n}function W_(e){const t=e.constructor;return t?t.name:"Object"}function iw(e){const t=e.toString(),i=/\/\*\*\s*@description\s*([^*]*)\*\//.exec(t);return(i?i[1]:void 0)?.trim()}var ma,nw,Kf,rw,ow,ga=v({"out-build/vs/base/common/observableInternal/debugName.js"(){"use strict";ma=class{constructor(e,t,s){this.owner=e,this.debugNameSource=t,this.referenceFn=s}getDebugName(e){return B_(e,this)}},nw=new Map,Kf=new WeakMap,rw=new Map,ow=new WeakMap}}),ed,q_=v({"out-build/vs/base/common/equals.js"(){"use strict";Et(),ed=(e,t)=>e===t}}),wa=v({"out-build/vs/base/common/observableInternal/commonFacade/deps.js"(){"use strict";$1(),q_(),de(),ae(),H()}});function G_(e){uk=e}function Oi(){return uk}function J_(e){const t=new Array,s=[];let i="";function n(o){if("length"in o)for(const a of o)a&&n(a);else"text"in o?(i+=`%c${o.text}`,t.push(o.style),o.data&&s.push(...o.data)):"data"in o&&s.push(...o.data)}n(e);const r=[i,...t];return r.push(...s),r}function va(e){return li(e,{color:"black"})}function El(e){return li(Z_(`${e}: `,10),{color:"black",bold:!0})}function li(e,t={color:"black"}){function s(n){return Object.entries(n).reduce((r,[o,a])=>`${r}${o}:${a};`,"")}const i={color:t.color};return t.strikeThrough&&(i["text-decoration"]="line-through"),t.bold&&(i["font-weight"]="bold"),{text:e,style:s(i)}}function xl(e,t){switch(typeof e){case"number":return""+e;case"string":return e.length+2<=t?`"${e}"`:`"${e.substr(0,t-7)}"+...`;case"boolean":return e?"true":"false";case"undefined":return"undefined";case"object":return e===null?"null":Array.isArray(e)?X_(e,t):Y_(e,t);case"symbol":return e.toString();case"function":return`[[Function${e.name?" "+e.name:""}]]`;default:return""+e}}function X_(e,t){let s="[ ",i=!0;for(const n of e){if(i||(s+=", "),s.length-5>t){s+="...";break}i=!1,s+=`${xl(n,t-s.length)}`}return s+=" ]",s}function Y_(e,t){let s="{ ",i=!0;for(const[n,r]of Object.entries(e)){if(i||(s+=", "),s.length-5>t){s+="...";break}i=!1,s+=`${n}: ${xl(r,t-s.length)}`}return s+=" }",s}function Q_(e,t){let s="";for(let i=1;i<=t;i++)s+=e;return s}function Z_(e,t){for(;e.length<t;)e+=" ";return e}var uk,hk,kl=v({"out-build/vs/base/common/observableInternal/logging.js"(){"use strict";hk=class{constructor(){this.a=0,this.d=new WeakMap}b(e){return J_([va(Q_("| ",this.a)),e])}c(e){return e.hadValue?e.didChange?[va(" "),li(xl(e.oldValue,70),{color:"red",strikeThrough:!0}),va(" "),li(xl(e.newValue,60),{color:"green"})]:[va(" (unchanged)")]:[va(" "),li(xl(e.newValue,60),{color:"green"}),va(" (initial)")]}handleObservableChanged(e,t){console.log(...this.b([El("observable value changed"),li(e.debugName,{color:"BlueViolet"}),...this.c(t)]))}formatChanges(e){if(e.size!==0)return li(" (changed deps: "+[...e].map(t=>t.debugName).join(", ")+")",{color:"gray"})}handleDerivedCreated(e){const t=e.handleChange;this.d.set(e,new Set),e.handleChange=(s,i)=>(this.d.get(e).add(s),t.apply(e,[s,i]))}handleDerivedRecomputed(e,t){const s=this.d.get(e);console.log(...this.b([El("derived recomputed"),li(e.debugName,{color:"BlueViolet"}),...this.c(t),this.formatChanges(s),{data:[{fn:e._debugNameData.referenceFn??e._computeFn}]}])),s.clear()}handleFromEventObservableTriggered(e,t){console.log(...this.b([El("observable from event triggered"),li(e.debugName,{color:"BlueViolet"}),...this.c(t),{data:[{fn:e._getValue}]}]))}handleAutorunCreated(e){const t=e.handleChange;this.d.set(e,new Set),e.handleChange=(s,i)=>(this.d.get(e).add(s),t.apply(e,[s,i]))}handleAutorunTriggered(e){const t=this.d.get(e);console.log(...this.b([El("autorun"),li(e.debugName,{color:"BlueViolet"}),this.formatChanges(t),{data:[{fn:e._debugNameData.referenceFn??e._runFn}]}])),t.clear(),this.a++}handleAutorunFinished(e){this.a--}handleBeginTransaction(e){let t=e.getDebugName();t===void 0&&(t=""),console.log(...this.b([El("transaction"),li(t,{color:"BlueViolet"}),{data:[{fn:e._fn}]}])),this.a++}handleEndTransaction(){this.a--}}}});function K_(e){fk=e}function eT(e){dk=e}function tT(e){aw=e}function sT(e,t){const s=new cw(e,t);try{e(s)}finally{s.finish()}}function iT(e,t,s){e?t(e):sT(t,s)}function nT(e,t){let s;return typeof e=="string"?s=new ma(void 0,e,void 0):s=new ma(e,void 0,void 0),new mk(s,t,ed)}var fk,dk,aw,pk,td,cw,mk,ba=v({"out-build/vs/base/common/observableInternal/base.js"(){"use strict";ga(),wa(),kl(),pk=class{get TChange(){return null}reportChanges(){this.get()}read(e){return e?e.readObservable(this):this.get()}map(e,t){const s=t===void 0?void 0:e,i=t===void 0?e:t;return aw({owner:s,debugName:()=>{const n=iw(i);if(n!==void 0)return n;const o=/^\s*\(?\s*([a-zA-Z_$][a-zA-Z_$0-9]*)\s*\)?\s*=>\s*\1(?:\??)\.([a-zA-Z_$][a-zA-Z_$0-9]*)\s*$/.exec(i.toString());if(o)return`${this.debugName}.${o[2]}`;if(!s)return`${this.debugName} (mapped)`},debugReferenceFn:i},n=>i(this.read(n),n))}flatten(){return aw({owner:void 0,debugName:()=>`${this.debugName} (flattened)`},e=>this.read(e).read(e))}recomputeInitiallyAndOnChange(e,t){return e.add(fk(this,t)),this}keepObserved(e){return e.add(dk(this)),this}get a(){return this.get()}},td=class extends pk{constructor(){super(...arguments),this.b=new Set}addObserver(e){const t=this.b.size;this.b.add(e),t===0&&this.c()}removeObserver(e){this.b.delete(e)&&this.b.size===0&&this.f()}c(){}f(){}},cw=class{constructor(e,t){this._fn=e,this.b=t,this.a=[],Oi()?.handleBeginTransaction(this)}getDebugName(){return this.b?this.b():iw(this._fn)}updateObserver(e,t){this.a.push({observer:e,observable:t}),e.beginUpdate(t)}finish(){const e=this.a;for(let t=0;t<e.length;t++){const{observer:s,observable:i}=e[t];s.endUpdate(i)}this.a=null,Oi()?.handleEndTransaction()}},mk=class extends td{get debugName(){return this.e.getDebugName(this)??"ObservableValue"}constructor(e,t,s){super(),this.e=e,this.g=s,this.d=t}get(){return this.d}set(e,t,s){if(s===void 0&&this.g(this.d,e))return;let i;t||(t=i=new cw(()=>{},()=>`Setting ${this.debugName}`));try{const n=this.d;this.h(e),Oi()?.handleObservableChanged(this,{oldValue:n,newValue:e,change:s,didChange:!0,hadValue:!0});for(const r of this.b)t.updateObserver(r,this),r.handleChange(this,s)}finally{i&&i.finish()}}toString(){return`${this.debugName}: ${this.d}`}h(e){this.d=e}}}}),rT=v({"out-build/vs/base/common/observableInternal/lazyObservableValue.js"(){"use strict";ba()}}),oT=v({"out-build/vs/base/common/observableInternal/api.js"(){"use strict";ba(),ga(),wa(),rT()}});function gk(e){return new lw(new ma(void 0,void 0,e),e,void 0,void 0)}var wk,lw,uw=v({"out-build/vs/base/common/observableInternal/autorun.js"(){"use strict";ga(),wa(),kl(),function(e){e[e.dependenciesMightHaveChanged=1]="dependenciesMightHaveChanged",e[e.stale=2]="stale",e[e.upToDate=3]="upToDate"}(wk||(wk={})),lw=class{get debugName(){return this._debugNameData.getDebugName(this)??"(anonymous)"}constructor(e,t,s,i){this._debugNameData=e,this._runFn=t,this.i=s,this.j=i,this.a=2,this.b=0,this.c=!1,this.f=new Set,this.g=new Set,this.l=!1,this.h=this.i?.(),Oi()?.handleAutorunCreated(this),this.k(),io(this)}dispose(){this.c=!0;for(const e of this.f)e.removeObserver(this);this.f.clear(),no(this)}k(){if(this.a===3)return;const e=this.g;this.g=this.f,this.f=e,this.a=3;const t=this.c;try{if(!t){Oi()?.handleAutorunTriggered(this);const s=this.h;try{this.h=this.i?.(),this.l=!0,this._runFn(this,s)}catch(i){Jl(i)}finally{this.l=!1}}}finally{t||Oi()?.handleAutorunFinished(this);for(const s of this.g)s.removeObserver(this);this.g.clear()}}toString(){return`Autorun<${this.debugName}>`}beginUpdate(){this.a===3&&(this.a=1),this.b++}endUpdate(){try{if(this.b===1)do{if(this.a===1){this.a=3;for(const e of this.f)if(e.reportChanges(),this.a===2)break}this.k()}while(this.a!==3)}finally{this.b--}A4(()=>this.b>=0)}handlePossibleChange(e){this.a===3&&this.f.has(e)&&!this.g.has(e)&&(this.a=1)}handleChange(e,t){if(this.f.has(e)&&!this.g.has(e))try{(this.j?this.j({changedObservable:e,change:t,didChange:i=>i===e},this.h):!0)&&(this.a=2)}catch(s){Jl(s)}}readObservable(e){if(!this.l)throw new Zr("The reader object cannot be used outside its compute function!");if(this.c)return e.get();e.addObserver(this);const t=e.get();return this.f.add(e),this.g.delete(e),t}},function(e){e.Observer=lw}(gk||(gk={}))}});function aT(e,t){return new bk(new ma(e.owner,e.debugName,e.debugReferenceFn),t,void 0,void 0,e.onLastObserverRemoved,e.equalsFn??ed)}var vk,bk,sd=v({"out-build/vs/base/common/observableInternal/derived.js"(){"use strict";ba(),ga(),wa(),kl(),tT(aT),function(e){e[e.initial=0]="initial",e[e.dependenciesMightHaveChanged=1]="dependenciesMightHaveChanged",e[e.stale=2]="stale",e[e.upToDate=3]="upToDate"}(vk||(vk={})),bk=class extends td{get debugName(){return this._debugNameData.getDebugName(this)??"(anonymous)"}constructor(e,t,s,i,n=void 0,r){super(),this._debugNameData=e,this._computeFn=t,this.q=s,this.s=i,this.t=n,this.u=r,this.g=0,this.h=void 0,this.j=0,this.k=new Set,this.l=new Set,this.m=void 0,this.n=!1,this.p=!1,this.x=!1,this.m=this.q?.(),Oi()?.handleDerivedCreated(this)}f(){this.g=0,this.h=void 0;for(const e of this.k)e.removeObserver(this);this.k.clear(),this.t?.()}get(){if(this.p)throw new Zr("Cyclic deriveds are not supported yet!");if(this.b.size===0){let e;try{this.x=!0,e=this._computeFn(this,this.q?.())}finally{this.x=!1}return this.f(),e}else{do{if(this.g===1){for(const e of this.k)if(e.reportChanges(),this.g===2)break}this.g===1&&(this.g=3),this.w()}while(this.g!==3);return this.h}}w(){if(this.g===3)return;const e=this.l;this.l=this.k,this.k=e;const t=this.g!==0,s=this.h;this.g=3;let i=!1;this.p=!1;try{const n=this.m;this.m=this.q?.();try{this.x=!0,this.h=this._computeFn(this,n)}finally{this.x=!1;for(const r of this.l)r.removeObserver(this);this.l.clear()}i=t&&!this.u(s,this.h),Oi()?.handleDerivedRecomputed(this,{oldValue:s,newValue:this.h,change:void 0,didChange:i,hadValue:t})}catch(n){Jl(n)}if(this.p=!1,i)for(const n of this.b)n.handleChange(this,void 0)}toString(){return`LazyDerived<${this.debugName}>`}beginUpdate(e){if(this.n)throw new Zr("Cyclic deriveds are not supported yet!");this.j++,this.n=!0;try{const t=this.j===1;if(this.g===3&&(this.g=1,!t))for(const s of this.b)s.handlePossibleChange(this);if(t)for(const s of this.b)s.beginUpdate(this)}finally{this.n=!1}}endUpdate(e){if(this.j--,this.j===0){const t=[...this.b];for(const s of t)s.endUpdate(this)}A4(()=>this.j>=0)}handlePossibleChange(e){if(this.g===3&&this.k.has(e)&&!this.l.has(e)){this.g=1;for(const t of this.b)t.handlePossibleChange(this)}}handleChange(e,t){if(this.k.has(e)&&!this.l.has(e)){let s=!1;try{s=this.s?this.s({changedObservable:e,change:t,didChange:n=>n===e},this.m):!0}catch(n){Jl(n)}const i=this.g===3;if(s&&(this.g===1||i)&&(this.g=2,i))for(const n of this.b)n.handlePossibleChange(this)}}readObservable(e){if(!this.x)throw new Zr("The reader object cannot be used outside its compute function!");e.addObserver(this);const t=e.get();return this.k.add(e),this.l.delete(e),t}addObserver(e){const t=!this.b.has(e)&&this.j>0;super.addObserver(e),t&&e.beginUpdate(this)}removeObserver(e){const t=this.b.has(e)&&this.j>0;super.removeObserver(e),t&&e.endUpdate(this)}}}}),cT=v({"out-build/vs/base/common/observableInternal/promise.js"(){"use strict";ba(),sd()}}),lT=v({"out-build/vs/base/common/observableInternal/commonFacade/cancellation.js"(){"use strict";de(),Dt()}}),uT=v({"out-build/vs/base/common/observableInternal/utilsCancellation.js"(){"use strict";ga(),lT(),sd(),wa(),uw()}});function yk(...e){let t,s,i;return e.length===3?[t,s,i]=e:[s,i]=e,new zr(new ma(t,void 0,i),s,i,()=>zr.globalTransaction,ed)}function hT(e){const t=new hw(!1,void 0);return e.addObserver(t),ve(()=>{e.removeObserver(t)})}function fT(e,t){const s=new hw(!0,t);return e.addObserver(s),t?t(e.get()):e.reportChanges(),ve(()=>{e.removeObserver(s)})}var zr,hw,dT=v({"out-build/vs/base/common/observableInternal/utils.js"(){"use strict";uw(),ba(),ga(),wa(),sd(),kl(),zr=class extends td{constructor(e,t,s,i,n){super(),this.k=e,this.l=t,this._getValue=s,this.n=i,this.p=n,this.h=!1,this.s=r=>{const o=this._getValue(r),a=this.g,c=!this.h||!this.p(a,o);let l=!1;c&&(this.g=o,this.h&&(l=!0,iT(this.n(),u=>{Oi()?.handleFromEventObservableTriggered(this,{oldValue:a,newValue:o,change:void 0,didChange:c,hadValue:this.h});for(const h of this.b)u.updateObserver(h,this),h.handleChange(this,void 0)},()=>{const u=this.q();return"Event fired"+(u?`: ${u}`:"")})),this.h=!0),l||Oi()?.handleFromEventObservableTriggered(this,{oldValue:a,newValue:o,change:void 0,didChange:c,hadValue:this.h})}}q(){return this.k.getDebugName(this)}get debugName(){const e=this.q();return"From Event"+(e?`: ${e}`:"")}c(){this.j=this.l(this.s)}f(){this.j.dispose(),this.j=void 0,this.h=!1,this.g=void 0}get(){return this.j?(this.h||this.s(void 0),this.g):this._getValue(void 0)}},function(e){e.Observer=zr;function t(s,i){let n=!1;zr.globalTransaction===void 0&&(zr.globalTransaction=s,n=!0);try{i()}finally{n&&(zr.globalTransaction=void 0)}}e.batchEventsGlobally=t}(yk||(yk={})),eT(hT),K_(fT),hw=class{constructor(e,t){this.b=e,this.c=t,this.a=0}beginUpdate(e){this.a++}endUpdate(e){this.a--,this.a===0&&this.b&&(this.c?this.c(e.get()):e.reportChanges())}handlePossibleChange(e){}handleChange(e,t){}}}}),Ek,pT=v({"out-build/vs/base/common/observableInternal/index.js"(){"use strict";oT(),uw(),ba(),sd(),cT(),uT(),dT(),kl(),Ek=!1,Ek&&G_(new hk)}}),mT=v({"out-build/vs/base/common/observable.js"(){"use strict";pT()}}),gT,wT,vT,bT,yT,ET,xT,kT,$T,ST,PT,IT,AT,DT,NT,xk,kk,$k,RT,LT,OT,CT,jT,_T,TT,MT,UT,FT,BT,zT=v({"out-build/vs/workbench/contrib/chat/common/chatContextKeys.js"(){"use strict";pe(),po(),gT=new Ae("chatSessionResponseVote","",{type:"string",description:m(4917,null)}),wT=new Ae("chatSessionResponseDetectedAgentOrCommand",!1,{type:"boolean",description:m(4918,null)}),vT=new Ae("chatResponseSupportsIssueReporting",!1,{type:"boolean",description:m(4919,null)}),bT=new Ae("chatSessionResponseFiltered",!1,{type:"boolean",description:m(4920,null)}),yT=new Ae("chatSessionResponseError",!1,{type:"boolean",description:m(4921,null)}),ET=new Ae("chatSessionRequestInProgress",!1,{type:"boolean",description:m(4922,null)}),xT=new Ae("chatResponse",!1,{type:"boolean",description:m(4923,null)}),kT=new Ae("chatRequest",!1,{type:"boolean",description:m(4924,null)}),$T=new Ae("chatItemId","",{type:"string",description:m(4925,null)}),ST=new Ae("chatLastItemId",[],{type:"string",description:m(4926,null)}),PT=new Ae("chatEditApplied",!1,{type:"boolean",description:m(4927,null)}),IT=new Ae("chatInputHasText",!1,{type:"boolean",description:m(4928,null)}),AT=new Ae("chatInputHasFocus",!1,{type:"boolean",description:m(4929,null)}),DT=new Ae("inChatInput",!1,{type:"boolean",description:m(4930,null)}),NT=new Ae("inChat",!1,{type:"boolean",description:m(4931,null)}),xk=new Ae("chatIsEnabled",!1,{type:"boolean",description:m(4932,null)}),kk=new Ae("chatPanelParticipantRegistered",!1,{type:"boolean",description:m(4933,null)}),$k=new Ae("chatEditingParticipantRegistered",!1,{type:"boolean",description:m(4934,null)}),RT=new Ae("chatEditingCanUndo",!1,{type:"boolean",description:m(4935,null)}),LT=new Ae("chatEditingCanRedo",!1,{type:"boolean",description:m(4936,null)}),OT=new Ae("chatExtensionInvalid",!1,{type:"boolean",description:m(4937,null)}),CT=new Ae("chatCursorAtTop",!1),jT=new Ae("chatInputHasAgent",!1),_T=new Ae("chatLocation",void 0),TT=new Ae("quickChatHasFocus",!1,{type:"boolean",description:m(4938,null)}),MT=new Ae("chatHasFileAttachments",!1,{type:"boolean",description:m(4939,null)}),UT=new Ae("chatModelsAreUserSelectable",!1,{type:"boolean",description:m(4940,null)}),FT=new Ae("chatInstallEntitled",!1,{type:"boolean",description:m(4941,null)}),BT=new Ae("chatShouldShowMovedViewWelcome",!1,{type:"boolean",description:m(4942,null)})}});function HT(e){return`${e.extensionId.value}.${e.id}`}var $l,ws,VT,fw,Sl,WT,dw,qT=v({"out-build/vs/workbench/contrib/chat/common/chatAgents.js"(){"use strict";cb(),Me(),Dt(),ae(),_g(),dr(),H(),Ro(),mT(),rt(),Fh(),po(),$i(),re(),De(),js(),Ir(),z6(),zT(),function(e){e.Panel="panel",e.Terminal="terminal",e.Notebook="notebook",e.Editor="editor",e.EditingSession="editing-session"}(ws||(ws={})),function(e){function t(s){switch(s){case"panel":return e.Panel;case"terminal":return e.Terminal;case"notebook":return e.Notebook;case"editor":return e.Editor;case"editing-session":return e.EditingSession}return e.Panel}e.fromRaw=t}(ws||(ws={})),VT=ie("chatAgentService"),fw=class extends J{static{this.AGENT_LEADER="@"}constructor(t){super(),this.n=t,this.b=new Map,this.f=new D,this.onDidChangeAgents=this.f.event,this.g=new Set,this.t=new Map,this.w=new Map,this.h=xk.bindTo(this.n),this.j=kk.bindTo(this.n),this.m=$k.bindTo(this.n),this.B(t.onDidChangeContext(s=>{s.affectsSome(this.g)&&this.s()}))}registerAgent(t,s){if(this.getAgent(t))throw new Error(`Agent already registered: ${JSON.stringify(t)}`);const n=this,r=s.slashCommands;s={...s,get slashCommands(){return r.filter(a=>!a.when||n.n.contextMatchesRules($t.deserialize(a.when)))}};const o={data:s};return this.b.set(t,o),this.r(),this.s(),this.f.fire(void 0),ve(()=>{this.b.delete(t),this.r(),this.s(),this.f.fire(void 0)})}r(){this.g.clear();for(const t of this.b.values())if(t.data.when){const s=$t.deserialize(t.data.when);for(const i of s?.keys()||[])this.g.add(i)}}s(){let t=!1,s=!1;for(const i of this.getAgents())i.isDefault&&i.locations.includes(ws.EditingSession)?t=!0:i.isDefault&&(s=!0);this.m.set(t),this.j.set(s)}registerAgentImplementation(t,s){const i=this.b.get(t);if(!i)throw new Error(`Unknown agent: ${JSON.stringify(t)}`);if(i.impl)throw new Error(`Agent already has implementation: ${JSON.stringify(t)}`);return i.data.isDefault&&this.h.set(!0),i.impl=s,this.f.fire(new Sl(i.data,s)),ve(()=>{i.impl=void 0,this.f.fire(void 0),i.data.isDefault&&this.h.set(!1)})}registerDynamicAgent(t,s){t.isDynamic=!0;const i={data:t,impl:s};return this.b.set(t.id,i),this.f.fire(new Sl(t,s)),ve(()=>{this.b.delete(t.id),this.f.fire(void 0)})}registerAgentCompletionProvider(t,s){return this.t.set(t,s),{dispose:()=>{this.t.delete(t)}}}async getAgentCompletionItems(t,s,i){return await this.t.get(t)?.(s,i)??[]}updateAgent(t,s){const i=this.b.get(t);if(!i?.impl)throw new Error(`No activated agent with id ${JSON.stringify(t)} registered`);i.data.metadata={...i.data.metadata,...s},this.f.fire(new Sl(i.data,i.impl))}getDefaultAgent(t){return GI(this.getActivatedAgents(),s=>!!s.isDefault&&s.locations.includes(t))}getContributedDefaultAgent(t){return this.getAgents().find(s=>!!s.isDefault&&s.locations.includes(t))}getSecondaryAgent(){return qi.find(this.b.values(),t=>!!t.data.metadata.isSecondary)?.data}getAgent(t,s=!1){if(!(!this.u(t)&&!s))return this.b.get(t)?.data}u(t){const s=this.b.get(t);return!s?.data.when||this.n.contextMatchesRules($t.deserialize(s.data.when))}getAgentByFullyQualifiedId(t){const s=qi.find(this.b.values(),i=>HT(i.data)===t)?.data;if(!(s&&!this.u(s.id)))return s}getAgents(){return Array.from(this.b.values()).map(t=>t.data).filter(t=>this.u(t.id))}getActivatedAgents(){return Array.from(this.b.values()).filter(t=>!!t.impl).filter(t=>this.u(t.data.id)).map(t=>new Sl(t.data,t.impl))}getAgentsByName(t){return this.getAgents().filter(s=>s.name===t)}agentHasDupeName(t){const s=this.getAgent(t);return s?this.getAgentsByName(s.name).filter(i=>i.extensionId.value!==s.extensionId.value).length>0:!1}async invokeAgent(t,s,i,n,r){const o=this.b.get(t);if(!o?.impl)throw new Error(`No activated agent with id "${t}"`);return await o.impl.invoke(s,i,n,r)}async getFollowups(t,s,i,n,r){const o=this.b.get(t);if(!o?.impl)throw new Error(`No activated agent with id "${t}"`);return o.impl?.provideFollowups?o.impl.provideFollowups(s,i,n,r):[]}async getChatTitle(t,s,i){const n=this.b.get(t);if(!n?.impl)throw new Error(`No activated agent with id "${t}"`);if(n.impl?.provideChatTitle)return n.impl.provideChatTitle(s,i)}registerChatParticipantDetectionProvider(t,s){return this.w.set(t,s),ve(()=>{this.w.delete(t)})}hasChatParticipantDetectionProviders(){return this.w.size>0}async detectAgentOrCommand(t,s,i,n){const r=qi.first(this.w.values());if(!r)return;const o=this.getAgents().reduce((u,h)=>{u.push({participant:h.id,disambiguation:h.disambiguation??[]});for(const d of h.slashCommands)u.push({participant:h.id,command:d.name,disambiguation:d.disambiguation??[]});return u},[]),a=await r.provideParticipantDetection(t,s,{...i,participants:o},n);if(!a)return;const c=this.getAgent(a.participant);if(!c)return;if(!a.command)return{agent:c};const l=c?.slashCommands.find(u=>u.name===a.command);if(l)return{agent:c,command:l}}},fw=__decorate([__param(0,Ky)],fw),Sl=class{constructor(e,t){this.b=e,this.d=t}get id(){return this.b.id}get name(){return this.b.name??""}get fullName(){return this.b.fullName??""}get description(){return this.b.description??""}get extensionId(){return this.b.extensionId}get extensionPublisherId(){return this.b.extensionPublisherId}get extensionPublisherDisplayName(){return this.b.publisherDisplayName}get extensionDisplayName(){return this.b.extensionDisplayName}get isDefault(){return this.b.isDefault}get metadata(){return this.b.metadata}get slashCommands(){return this.b.slashCommands}get locations(){return this.b.locations}get disambiguation(){return this.b.disambiguation}async invoke(e,t,s,i){return this.d.invoke(e,t,s,i)}async provideFollowups(e,t,s,i){return this.d.provideFollowups?this.d.provideFollowups(e,t,s,i):[]}provideWelcomeMessage(e){if(this.d.provideWelcomeMessage)return this.d.provideWelcomeMessage(e)}provideSampleQuestions(e,t){if(this.d.provideSampleQuestions)return this.d.provideSampleQuestions(e,t)}toJSON(){return this.b}},WT=ie("chatAgentNameService"),dw=class{static{$l=this}static{this.b="chat.participantNameRegistry"}constructor(t,s,i,n){if(this.h=s,this.i=i,this.j=n,this.f=nT(this,Object.create(null)),this.g=!1,!t.chatParticipantRegistry)return;this.d=t.chatParticipantRegistry;const r=n.get($l.b,-1);try{this.f.set(JSON.parse(r??"{}"),void 0)}catch{n.remove($l.b,-1)}this.k()}k(){this.g||this.l().catch(t=>this.i.warn("Failed to fetch chat participant registry",t)).then(()=>$r(5*60*1e3)).then(()=>this.k())}async l(){const t=await this.h.request({type:"GET",url:this.d},Re.None);if(t.res.statusCode!==200)throw new Error("Could not get extensions report.");const s=await Lu(t);if(!s||s.version!==1)throw new Error("Unexpected chat participant registry response.");const i=s.restrictedChatParticipants;this.f.set(i,void 0),this.j.store($l.b,JSON.stringify(i),-1,1)}getAgentNameRestriction(t){const s=this.m(t.name,t).get(),i=!t.fullName||this.m(t.fullName.replace(/\s/g,""),t).get();return s&&i}m(t,s){return this.f.map(n=>n[t.toLowerCase()]).map(n=>n?n.some(r=>Pn(r,r.includes(".")?s.extensionId.value:s.extensionPublisherId)):!0)}dispose(){this.g=!0}},dw=$l=__decorate([__param(0,Tt),__param(1,ki),__param(2,fe),__param(3,cm)],dw)}}),Sk,Pk,ya,id=v({"out-build/vs/workbench/contrib/testing/common/testId.js"(){"use strict";(function(e){e.Delimiter="\0"})(Sk||(Sk={})),function(e){e[e.IsSame=0]="IsSame",e[e.Disconnected=1]="Disconnected",e[e.IsChild=2]="IsChild",e[e.IsParent=3]="IsParent"}(Pk||(Pk={})),ya=class Qs{static fromExtHostTestItem(t,s,i=t.parent){if(t._isRoot)return new Qs([s]);const n=[t.id];for(let r=i;r&&r.id!==s;r=r.parent)n.push(r.id);return n.push(s),new Qs(n.reverse())}static isRoot(t){return!t.includes("\0")}static root(t){const s=t.indexOf("\0");return s===-1?t:t.slice(0,s)}static fromString(t){return new Qs(t.split("\0"))}static join(t,s){return new Qs([...t.path,s])}static joinToString(t,s){return t.toString()+"\0"+s}static parentId(t){const s=t.lastIndexOf("\0");return s===-1?void 0:t.slice(0,s)}static localId(t){const s=t.lastIndexOf("\0");return s===-1?t:t.slice(s+1)}static isChild(t,s){return s[t.length]==="\0"&&s.startsWith(t)}static compare(t,s){return t===s?0:Qs.isChild(t,s)?2:Qs.isChild(s,t)?3:1}static getLengthOfCommonPrefix(t,s){if(t===0)return 0;let i=0;for(;i<t-1;){for(let n=1;n<t;n++){const r=s(n-1),o=s(n);if(r.path[i]!==o.path[i])return i}i++}return i}constructor(t,s=t.length){if(this.path=t,this.d=s,t.length===0||s<1)throw new Error("cannot create test with empty path")}get rootId(){return new Qs(this.path,1)}get parentId(){return this.d>1?new Qs(this.path,this.d-1):void 0}get localId(){return this.path[this.d-1]}get controllerId(){return this.path[0]}get isRoot(){return this.d===1}*idsFromRoot(){for(let t=1;t<=this.d;t++)yield new Qs(this.path,t)}*idsToRoot(){for(let t=this.d;t>0;t--)yield new Qs(this.path,t)}compare(t){if(typeof t=="string")return Qs.compare(this.toString(),t);for(let s=0;s<t.d&&s<this.d;s++)if(t.path[s]!==this.path[s])return 1;return t.d>this.d?2:t.d<this.d?3:0}toJSON(){return this.toString()}toString(){if(!this.c){this.c=this.path[0];for(let t=1;t<this.d;t++)this.c+="\0",this.c+=this.path[t]}return this.c}}}});function pw(e){return{...e,location:e.location?.toJSON()}}function mw(e){return e.location=e.location?Fr.isIPosition(e.location)?Fr.lift(e.location):Li.lift(e.location):void 0,e}var Ik,Ak,Dk,Nk,Ea,Rk,nd,rd,od,ad,Pl,gw,Lk,Ok,cd,Ck,Hr,ld,jk,ww,_k,Tk,Mk,ud,hd,fd,Uk,Fk,vw=v({"out-build/vs/workbench/contrib/testing/common/testTypes.js"(){"use strict";te(),Z0(),pa(),id(),function(e){e[e.Unset=0]="Unset",e[e.Queued=1]="Queued",e[e.Running=2]="Running",e[e.Passed=3]="Passed",e[e.Failed=4]="Failed",e[e.Skipped=5]="Skipped",e[e.Errored=6]="Errored"}(Ik||(Ik={})),function(e){e[e.Run=1]="Run",e[e.Debug=2]="Debug",e[e.Coverage=3]="Coverage"}(Ak||(Ak={})),function(e){e[e.Refresh=2]="Refresh",e[e.CodeRelatedToTest=4]="CodeRelatedToTest",e[e.TestRelatedToCode=8]="TestRelatedToCode"}(Dk||(Dk={})),function(e){e[e.Run=2]="Run",e[e.Debug=4]="Debug",e[e.Coverage=8]="Coverage",e[e.HasNonDefaultProfile=16]="HasNonDefaultProfile",e[e.HasConfigurable=32]="HasConfigurable",e[e.SupportsContinuousRun=64]="SupportsContinuousRun"}(Nk||(Nk={})),function(e){e.serialize=t=>({range:t.range.toJSON(),uri:t.uri.toJSON()}),e.deserialize=(t,s)=>({range:Li.lift(s.range),uri:t.asCanonicalUri(E.revive(s.uri))})}(Ea||(Ea={})),function(e){e[e.Error=0]="Error",e[e.Output=1]="Output"}(Rk||(Rk={})),function(e){e.serialize=t=>({label:t.label,uri:t.uri?.toJSON(),position:t.position?.toJSON()}),e.deserialize=(t,s)=>({label:s.label,uri:s.uri?t.asCanonicalUri(E.revive(s.uri)):void 0,position:s.position?Fr.lift(s.position):void 0})}(nd||(nd={})),function(e){e.serialize=t=>({message:t.message,type:0,expected:t.expected,actual:t.actual,contextValue:t.contextValue,location:t.location&&Ea.serialize(t.location),stackTrace:t.stackTrace?.map(nd.serialize)}),e.deserialize=(t,s)=>({message:s.message,type:0,expected:s.expected,actual:s.actual,contextValue:s.contextValue,location:s.location&&Ea.deserialize(t,s.location),stackTrace:s.stackTrace&&s.stackTrace.map(i=>nd.deserialize(t,i))})}(rd||(rd={})),function(e){e.serialize=t=>({message:t.message,type:1,offset:t.offset,length:t.length,location:t.location&&Ea.serialize(t.location)}),e.deserialize=(t,s)=>({message:s.message,type:1,offset:s.offset,length:s.length,location:s.location&&Ea.deserialize(t,s.location)})}(od||(od={})),function(e){e.serialize=t=>t.type===0?rd.serialize(t):od.serialize(t),e.deserialize=(t,s)=>s.type===0?rd.deserialize(t,s):od.deserialize(t,s),e.isDiffable=t=>t.type===0&&t.actual!==void 0&&t.expected!==void 0}(ad||(ad={})),function(e){e.serializeWithoutMessages=t=>({state:t.state,duration:t.duration,messages:[]}),e.serialize=t=>({state:t.state,duration:t.duration,messages:t.messages.map(ad.serialize)}),e.deserialize=(t,s)=>({state:s.state,duration:s.duration,messages:s.messages.map(i=>ad.deserialize(t,i))})}(Pl||(Pl={})),gw="\0",Lk=(e,t)=>e+gw+t,Ok=e=>{const t=e.indexOf(gw);return{ctrlId:e.slice(0,t),tagId:e.slice(t+1)}},function(e){e.serialize=t=>({extId:t.extId,label:t.label,tags:t.tags,busy:t.busy,children:void 0,uri:t.uri?.toJSON(),range:t.range?.toJSON()||null,description:t.description,error:t.error,sortText:t.sortText}),e.deserialize=(t,s)=>({extId:s.extId,label:s.label,tags:s.tags,busy:s.busy,children:void 0,uri:s.uri?t.asCanonicalUri(E.revive(s.uri)):void 0,range:s.range?Li.lift(s.range):null,description:s.description,error:s.error,sortText:s.sortText})}(cd||(cd={})),function(e){e[e.NotExpandable=0]="NotExpandable",e[e.Expandable=1]="Expandable",e[e.BusyExpanding=2]="BusyExpanding",e[e.Expanded=3]="Expanded"}(Ck||(Ck={})),function(e){e.serialize=t=>({expand:t.expand,item:cd.serialize(t.item)}),e.deserialize=(t,s)=>({controllerId:ya.root(s.item.extId),expand:s.expand,item:cd.deserialize(t,s.item)})}(Hr||(Hr={})),function(e){e.serialize=t=>{let s;return t.item&&(s={},t.item.label!==void 0&&(s.label=t.item.label),t.item.tags!==void 0&&(s.tags=t.item.tags),t.item.busy!==void 0&&(s.busy=t.item.busy),t.item.uri!==void 0&&(s.uri=t.item.uri?.toJSON()),t.item.range!==void 0&&(s.range=t.item.range?.toJSON()),t.item.description!==void 0&&(s.description=t.item.description),t.item.error!==void 0&&(s.error=t.item.error),t.item.sortText!==void 0&&(s.sortText=t.item.sortText)),{extId:t.extId,expand:t.expand,item:s}},e.deserialize=t=>{let s;return t.item&&(s={},t.item.label!==void 0&&(s.label=t.item.label),t.item.tags!==void 0&&(s.tags=t.item.tags),t.item.busy!==void 0&&(s.busy=t.item.busy),t.item.range!==void 0&&(s.range=t.item.range?Li.lift(t.item.range):null),t.item.description!==void 0&&(s.description=t.item.description),t.item.error!==void 0&&(s.error=t.item.error),t.item.sortText!==void 0&&(s.sortText=t.item.sortText)),{extId:t.extId,expand:t.expand,item:s}}}(ld||(ld={})),function(e){e.serializeWithoutMessages=t=>({...Hr.serialize(t),ownComputedState:t.ownComputedState,computedState:t.computedState,tasks:t.tasks.map(Pl.serializeWithoutMessages)}),e.serialize=t=>({...Hr.serialize(t),ownComputedState:t.ownComputedState,computedState:t.computedState,tasks:t.tasks.map(Pl.serialize)}),e.deserialize=(t,s)=>({...Hr.deserialize(t,s),ownComputedState:s.ownComputedState,computedState:s.computedState,tasks:s.tasks.map(i=>Pl.deserialize(t,i)),retired:!0})}(jk||(jk={})),function(e){e.empty=()=>({covered:0,total:0}),e.sum=(t,s)=>{t.covered+=s.covered,t.total+=s.total}}(ww||(ww={})),function(e){e.serialize=t=>({id:t.id,statement:t.statement,branch:t.branch,declaration:t.declaration,testIds:t.testIds,uri:t.uri.toJSON()}),e.deserialize=(t,s)=>({id:s.id,statement:s.statement,branch:s.branch,declaration:s.declaration,testIds:s.testIds,uri:t.asCanonicalUri(E.revive(s.uri))}),e.empty=(t,s)=>({id:t,uri:s,statement:ww.empty()})}(_k||(_k={})),function(e){e[e.Declaration=0]="Declaration",e[e.Statement=1]="Statement",e[e.Branch=2]="Branch"}(Tk||(Tk={})),function(e){e.serialize=t=>t.type===0?hd.serialize(t):fd.serialize(t),e.deserialize=t=>t.type===0?hd.deserialize(t):fd.deserialize(t)}(Mk||(Mk={})),function(e){e.serialize=pw,e.deserialize=mw}(ud||(ud={})),function(e){e.serialize=pw,e.deserialize=mw}(hd||(hd={})),function(e){e.serialize=t=>({...pw(t),branches:t.branches?.map(ud.serialize)}),e.deserialize=t=>({...mw(t),branches:t.branches?.map(ud.deserialize)})}(fd||(fd={})),function(e){e[e.Add=0]="Add",e[e.Update=1]="Update",e[e.DocumentSynced=2]="DocumentSynced",e[e.Remove=3]="Remove",e[e.IncrementPendingExtHosts=4]="IncrementPendingExtHosts",e[e.Retire=5]="Retire",e[e.AddTag=6]="AddTag",e[e.RemoveTag=7]="RemoveTag"}(Uk||(Uk={})),function(e){e.deserialize=(t,s)=>s.op===0?{op:s.op,item:Hr.deserialize(t,s.item)}:s.op===1?{op:s.op,item:ld.deserialize(s.item)}:s.op===2?{op:s.op,uri:t.asCanonicalUri(E.revive(s.uri)),docv:s.docv}:s,e.serialize=t=>t.op===0?{op:t.op,item:Hr.serialize(t.item)}:t.op===1?{op:t.op,item:ld.serialize(t.item)}:t}(Fk||(Fk={}))}}),GT,Bk,zk,Hk,Vk,Wk,qk,Gk,JT=v({"out-build/vs/workbench/services/editor/common/editorGroupsService.js"(){"use strict";re(),sw(),GT=ie("editorGroupsService"),function(e){e[e.UP=0]="UP",e[e.DOWN=1]="DOWN",e[e.LEFT=2]="LEFT",e[e.RIGHT=3]="RIGHT"}(Bk||(Bk={})),function(e){e[e.HORIZONTAL=0]="HORIZONTAL",e[e.VERTICAL=1]="VERTICAL"}(zk||(zk={})),function(e){e[e.FIRST=0]="FIRST",e[e.LAST=1]="LAST",e[e.NEXT=2]="NEXT",e[e.PREVIOUS=3]="PREVIOUS"}(Hk||(Hk={})),function(e){e[e.MAXIMIZE=0]="MAXIMIZE",e[e.EXPAND=1]="EXPAND",e[e.EVEN=2]="EVEN"}(Vk||(Vk={})),function(e){e[e.COPY_EDITORS=0]="COPY_EDITORS",e[e.MOVE_EDITORS=1]="MOVE_EDITORS"}(Wk||(Wk={})),function(e){e[e.CREATION_TIME=0]="CREATION_TIME",e[e.MOST_RECENTLY_ACTIVE=1]="MOST_RECENTLY_ACTIVE",e[e.GRID_APPEARANCE=2]="GRID_APPEARANCE"}(qk||(qk={})),function(e){e[e.NEW_EDITOR=1]="NEW_EDITOR",e[e.MOVE_EDITOR=2]="MOVE_EDITOR",e[e.COPY_EDITOR=3]="COPY_EDITOR"}(Gk||(Gk={}))}}),Jk,Xk,Yk,Qk=v({"out-build/vs/workbench/services/editor/common/editorService.js"(){"use strict";re(),JT(),Jk=ie("editorService"),Xk=-1,Yk=-2}}),Zk,xa,Kk,XT,e$,dd,t$,s$,i$=v({"out-build/vs/workbench/contrib/testing/common/testItemCollection.js"(){"use strict";Me(),ae(),H(),$1(),vw(),id(),function(e){e[e.Upsert=0]="Upsert",e[e.SetTags=1]="SetTags",e[e.UpdateCanResolveChildren=2]="UpdateCanResolveChildren",e[e.RemoveChild=3]="RemoveChild",e[e.SetProp=4]="SetProp",e[e.Bulk=5]="Bulk",e[e.DocumentSynced=6]="DocumentSynced"}(Zk||(Zk={})),xa=(e,t)=>e===t,Kk={range:(e,t)=>e===t?!0:!e||!t?!1:e.equalsRange(t),busy:xa,label:xa,description:xa,error:xa,sortText:xa,tags:(e,t)=>!(e.length!==t.length||e.some(s=>!t.includes(s)))},XT=Object.entries(Kk),e$=class extends Error{constructor(e){super(`Attempted to insert a duplicate test item ID ${e}`)}},dd=class extends Error{constructor(e){super(`TestItem with ID "${e}" is invalid. Make sure to create it from the createTestItem method.`)}},t$=class extends Error{constructor(e,t,s){super(`TestItem with ID "${e}" is from controller "${t}" and cannot be added as a child of an item from controller "${s}".`)}},s$=(e,t,s)=>{let i=new Map;return{get size(){return i.size},forEach(n,r){for(const o of i.values())n.call(r,o,this)},[Symbol.iterator](){return i.entries()},replace(n){const r=new Map,o=new Set(i.keys()),a={op:5,ops:[]};for(const c of n){if(!(c instanceof s))throw new dd(c.id);const l=t(c).controllerId;if(l!==e.controllerId)throw new t$(c.id,l,e.controllerId);if(r.has(c.id))throw new e$(c.id);r.set(c.id,c),o.delete(c.id),a.ops.push({op:0,item:c})}for(const c of o.keys())a.ops.push({op:3,id:c});e.listener?.(a),i=r},add(n){if(!(n instanceof s))throw new dd(n.id);i.set(n.id,n),e.listener?.({op:0,item:n})},delete(n){i.delete(n)&&e.listener?.({op:3,id:n})},get(n){return i.get(n)},toJSON(){return Array.from(i.values())}}}}}),bw,n$,yw,r$=v({"out-build/vs/workbench/api/common/extHostTestingPrivateApi.js"(){"use strict";i$(),bw=new WeakMap,n$=(e,t)=>{const s={controllerId:t};return bw.set(e,s),s},yw=e=>{const t=bw.get(e);if(!t)throw new dd(e?.id||"<unknown>");return t}}});function Ew(e){return typeof e>"u"?e:typeof e=="string"?E.file(e):e}var xw,M,tr,o$,vn,a$,pd,c$,md,gd,l$,ct,ka,wd,kw,u$,ui,h$,Ci,sr,vd,f$,Il,d$,p$,ir,m$,g$,w$,v$,b$,bd,y$,$w,E$,Sw,Pw,x$,yd,Ed,k$,$$,Iw,Aw,S$,P$,I$,A$,D$,N$,xd,R$,L$,kd,O$,ji,C$,j$,Al,Dw,$d,_$,Sd,T$,Dl,Pd,Id,M$,U$,F$,B$,z$,Nw,nr,Ad,H$,V$,W$,Rw,q$,Dd,G$,Lw,Nd,J$,Rd,Ow,Cw,jw,_w,Ld,Od,Tw,Mw,Uw,X$,Y$,Cd,Fw,jd,Bw,Q$,Z$,zw,Hw,Vw,K$,_d,eS,tS,sS,Ww,iS,nS,rS,oS=v({"out-build/vs/workbench/api/common/extHostTypeConverters.js"(){"use strict";Et(),Ue(),p_(),Zl(),_g(),as(),$_(),Ro(),Kh(),Kt(),S_(),kt(),Fh(),xe(),te(),pa(),R_(),O_(),sw(),qT(),aE(),id(),vw(),Qk(),r$(),U0(),U0(),function(e){function t(i){const{selectionStartLineNumber:n,selectionStartColumn:r,positionLineNumber:o,positionColumn:a}=i,c=new Ne(n-1,r-1),l=new Ne(o-1,a-1);return new rl(c,l)}e.to=t;function s(i){const{anchor:n,active:r}=i;return{selectionStartLineNumber:n.line+1,selectionStartColumn:n.character+1,positionLineNumber:r.line+1,positionColumn:r.character+1}}e.from=s}(xw||(xw={})),function(e){function t(i){if(!i)return;const{start:n,end:r}=i;return{startLineNumber:n.line+1,startColumn:n.character+1,endLineNumber:r.line+1,endColumn:r.character+1}}e.from=t;function s(i){if(!i)return;const{startLineNumber:n,startColumn:r,endLineNumber:o,endColumn:a}=i;return new Ke(n-1,r-1,o-1,a-1)}e.to=s}(M||(M={})),function(e){function t(i){return{uri:i.uri,range:M.from(i.range)}}e.from=t;function s(i){return new mn(E.revive(i.uri),M.to(i.range))}e.to=s}(tr||(tr={})),function(e){function t(s){switch(s){case 1:return ca.Comment;case 0:return ca.Other;case 3:return ca.RegEx;case 2:return ca.String}}e.to=t}(o$||(o$={})),function(e){function t(i){return new Ne(i.lineNumber-1,i.column-1)}e.to=t;function s(i){return{lineNumber:i.line+1,column:i.character+1}}e.from=s}(vn||(vn={})),function(e){function t(n,r,o){return wi(hb(n).map(a=>s(a,r,o)))}e.from=t;function s(n,r,o){if(typeof n=="string")return{$serialized:!0,language:n,isBuiltin:o?.isBuiltin};if(n)return{$serialized:!0,language:n.language,scheme:i(n.scheme,r),pattern:ji.from(n.pattern)??void 0,exclusive:n.exclusive,notebookType:n.notebookType,isBuiltin:o?.isBuiltin}}function i(n,r){return r&&typeof n=="string"?r.transformOutgoingScheme(n):n}}(a$||(a$={})),function(e){function t(i){switch(i){case sa.Unnecessary:return 1;case sa.Deprecated:return 2}}e.from=t;function s(i){switch(i){case 1:return sa.Unnecessary;case 2:return sa.Deprecated;default:return}}e.to=s}(pd||(pd={})),function(e){function t(i){let n;return i.code&&(be(i.code)||An(i.code)?n=String(i.code):n={value:String(i.code.value),target:i.code.target}),{...M.from(i.range),message:i.message,source:i.source,code:n,severity:gd.from(i.severity),relatedInformation:i.relatedInformation&&i.relatedInformation.map(md.from),tags:Array.isArray(i.tags)?wi(i.tags.map(pd.from)):void 0}}e.from=t;function s(i){const n=new rf(M.to(i),i.message,gd.to(i.severity));return n.source=i.source,n.code=be(i.code)?i.code:i.code?.value,n.relatedInformation=i.relatedInformation&&i.relatedInformation.map(md.to),n.tags=i.tags&&wi(i.tags.map(pd.to)),n}e.to=s}(c$||(c$={})),function(e){function t(i){return{...M.from(i.location.range),message:i.message,resource:i.location.uri}}e.from=t;function s(i){return new al(new mn(i.resource,M.to(i)),i.message)}e.to=s}(md||(md={})),function(e){function t(i){switch(i){case _s.Error:return Rs.Error;case _s.Warning:return Rs.Warning;case _s.Information:return Rs.Info;case _s.Hint:return Rs.Hint}return Rs.Error}e.from=t;function s(i){switch(i){case Rs.Info:return _s.Information;case Rs.Warning:return _s.Warning;case Rs.Error:return _s.Error;case Rs.Hint:return _s.Hint;default:return _s.Error}}e.to=s}(gd||(gd={})),function(e){function t(i){return typeof i=="number"&&i>=yf.One?i-1:i===yf.Beside?Yk:Xk}e.from=t;function s(i){if(typeof i=="number"&&i>=0)return i+1;throw new Error("invalid 'EditorGroupColumn'")}e.to=s}(l$||(l$={})),function(e){function t(a){return a.map(e.from)}e.fromMany=t;function s(a){return a&&typeof a=="object"&&typeof a.language=="string"&&typeof a.value=="string"}function i(a){let c;if(s(a)){const{language:h,value:d}=a;c={value:"```"+h+` `+d+"\n```\n"}}else gn.isMarkdownString(a)?c={value:a.value,isTrusted:a.isTrusted,supportThemeIcons:a.supportThemeIcons,supportHtml:a.supportHtml,baseUri:a.baseUri}:typeof a=="string"?c={value:a}:c={value:""};const l=Object.create(null);c.uris=l;const u=({href:h})=>{try{let d=E.parse(h,!0);d=d.with({query:n(d.query,l)}),l[h]=d}catch{}return""};return Be.walkTokens(Be.lexer(c.value),h=>{h.type==="link"?u({href:h.href}):h.type==="image"&&typeof h.href=="string"&&u(Qj(h.href))}),c}e.from=i;function n(a,c){if(!a)return a;let l;try{l=L6(a)}catch{}if(!l)return a;let u=!1;return l=nn(l,h=>{if(E.isUri(h)){const d=`__uri_${Math.random().toString(16).slice(2,8)}`;return c[d]=h,u=!0,d}else return}),u?JSON.stringify(l):a}function r(a){const c=new gn(a.value,a.supportThemeIcons);return c.isTrusted=a.isTrusted,c.supportHtml=a.supportHtml,c.baseUri=a.baseUri?E.from(a.baseUri):void 0,c}e.to=r;function o(a){if(a)return typeof a=="string"?a:e.from(a)}e.fromStrict=o}(ct||(ct={})),function(e){function t(s){return typeof s>"u"?s:{contentText:s.contentText,contentIconPath:s.contentIconPath?Ew(s.contentIconPath):void 0,border:s.border,borderColor:s.borderColor,fontStyle:s.fontStyle,fontWeight:s.fontWeight,textDecoration:s.textDecoration,color:s.color,backgroundColor:s.backgroundColor,margin:s.margin,width:s.width,height:s.height}}e.from=t}(ka||(ka={})),function(e){function t(s){return typeof s>"u"?s:{backgroundColor:s.backgroundColor,outline:s.outline,outlineColor:s.outlineColor,outlineStyle:s.outlineStyle,outlineWidth:s.outlineWidth,border:s.border,borderColor:s.borderColor,borderRadius:s.borderRadius,borderSpacing:s.borderSpacing,borderStyle:s.borderStyle,borderWidth:s.borderWidth,fontStyle:s.fontStyle,fontWeight:s.fontWeight,textDecoration:s.textDecoration,cursor:s.cursor,color:s.color,opacity:s.opacity,letterSpacing:s.letterSpacing,gutterIconPath:s.gutterIconPath?Ew(s.gutterIconPath):void 0,gutterIconSize:s.gutterIconSize,overviewRulerColor:s.overviewRulerColor,before:s.before?ka.from(s.before):void 0,after:s.after?ka.from(s.after):void 0}}e.from=t}(wd||(wd={})),function(e){function t(s){if(typeof s>"u")return s;switch(s){case na.OpenOpen:return 0;case na.ClosedClosed:return 1;case na.OpenClosed:return 2;case na.ClosedOpen:return 3}}e.from=t}(kw||(kw={})),function(e){function t(s){return{isWholeLine:s.isWholeLine,rangeBehavior:s.rangeBehavior?kw.from(s.rangeBehavior):void 0,overviewRulerLane:s.overviewRulerLane,light:s.light?wd.from(s.light):void 0,dark:s.dark?wd.from(s.dark):void 0,backgroundColor:s.backgroundColor,outline:s.outline,outlineColor:s.outlineColor,outlineStyle:s.outlineStyle,outlineWidth:s.outlineWidth,border:s.border,borderColor:s.borderColor,borderRadius:s.borderRadius,borderSpacing:s.borderSpacing,borderStyle:s.borderStyle,borderWidth:s.borderWidth,fontStyle:s.fontStyle,fontWeight:s.fontWeight,textDecoration:s.textDecoration,cursor:s.cursor,color:s.color,opacity:s.opacity,letterSpacing:s.letterSpacing,gutterIconPath:s.gutterIconPath?Ew(s.gutterIconPath):void 0,gutterIconSize:s.gutterIconSize,overviewRulerColor:s.overviewRulerColor,before:s.before?ka.from(s.before):void 0,after:s.after?ka.from(s.after):void 0}}e.from=t}(u$||(u$={})),function(e){function t(i){return{text:i.newText,eol:i.newEol&&xd.from(i.newEol),range:M.from(i.range)}}e.from=t;function s(i){const n=new Mr(M.to(i.range),i.text);return n.newEol=typeof i.eol>"u"?void 0:xd.to(i.eol),n}e.to=s}(ui||(ui={})),function(e){function t(i,n){const r={edits:[]};if(i instanceof ol){const o=new eu;for(const a of i._allEntries())a._type===1&&E.isUri(a.to)&&a.from===void 0&&o.add(a.to);for(const a of i._allEntries())if(a._type===1){let c;a.options?.contents&&(ArrayBuffer.isView(a.options.contents)?c={type:"base64",value:Gp(O.wrap(a.options.contents))}:c={type:"dataTransferItem",id:a.options.contents._itemId}),r.edits.push({oldResource:a.from,newResource:a.to,options:{...a.options,contents:c},metadata:a.metadata})}else a._type===2?r.edits.push({resource:a.uri,textEdit:ui.from(a.edit),versionId:o.has(a.uri)?void 0:n?.getTextDocumentVersion(a.uri),metadata:a.metadata}):a._type===6?r.edits.push({resource:a.uri,textEdit:{range:M.from(a.range),text:a.edit.value,insertAsSnippet:!0},versionId:o.has(a.uri)?void 0:n?.getTextDocumentVersion(a.uri),metadata:a.metadata}):a._type===3?r.edits.push({metadata:a.metadata,resource:a.uri,cellEdit:a.edit,notebookVersionId:n?.getNotebookDocumentVersion(a.uri)}):a._type===5&&r.edits.push({metadata:a.metadata,resource:a.uri,notebookVersionId:n?.getNotebookDocumentVersion(a.uri),cellEdit:{editType:1,index:a.index,count:a.count,cells:a.cells.map(Dl.from)}})}return r}e.from=t;function s(i){const n=new ol,r=new At;for(const o of i.edits)if(o.textEdit){const a=o,c=E.revive(a.resource),l=M.to(a.textEdit.range),u=a.textEdit.text,h=a.textEdit.insertAsSnippet;let d;h?d=Wg.replace(l,new ta(u)):d=Mr.replace(l,u);const p=r.get(c);p?p.push(d):r.set(c,[d])}else n.renameFile(E.revive(o.oldResource),E.revive(o.newResource),o.options);for(const[o,a]of r)n.set(o,a);return n}e.to=s}(h$||(h$={})),function(e){const t=Object.create(null);t[Fe.File]=0,t[Fe.Module]=1,t[Fe.Namespace]=2,t[Fe.Package]=3,t[Fe.Class]=4,t[Fe.Method]=5,t[Fe.Property]=6,t[Fe.Field]=7,t[Fe.Constructor]=8,t[Fe.Enum]=9,t[Fe.Interface]=10,t[Fe.Function]=11,t[Fe.Variable]=12,t[Fe.Constant]=13,t[Fe.String]=14,t[Fe.Number]=15,t[Fe.Boolean]=16,t[Fe.Array]=17,t[Fe.Object]=18,t[Fe.Key]=19,t[Fe.Null]=20,t[Fe.EnumMember]=21,t[Fe.Struct]=22,t[Fe.Event]=23,t[Fe.Operator]=24,t[Fe.TypeParameter]=25;function s(n){return typeof t[n]=="number"?t[n]:6}e.from=s;function i(n){for(const r in t)if(t[r]===n)return Number(r);return Fe.Property}e.to=i}(Ci||(Ci={})),function(e){function t(i){switch(i){case hf.Deprecated:return 1}}e.from=t;function s(i){switch(i){case 1:return hf.Deprecated}}e.to=s}(sr||(sr={})),function(e){function t(i){return{name:i.name,kind:Ci.from(i.kind),tags:i.tags&&i.tags.map(sr.from),containerName:i.containerName,location:ir.from(i.location)}}e.from=t;function s(i){const n=new ff(i.name,Ci.to(i.kind),i.containerName,ir.to(i.location));return n.tags=i.tags&&i.tags.map(sr.to),n}e.to=s}(vd||(vd={})),function(e){function t(i){const n={name:i.name||"!!MISSING: name!!",detail:i.detail,range:M.from(i.range),selectionRange:M.from(i.selectionRange),kind:Ci.from(i.kind),tags:i.tags?.map(sr.from)??[]};return i.children&&(n.children=i.children.map(t)),n}e.from=t;function s(i){const n=new df(i.name,i.detail,Ci.to(i.kind),M.to(i.range),M.to(i.selectionRange));return Kl(i.tags)&&(n.tags=i.tags.map(sr.to)),i.children&&(n.children=i.children.map(s)),n}e.to=s}(f$||(f$={})),function(e){function t(i){const n=new Gg(Ci.to(i.kind),i.name,i.detail||"",E.revive(i.uri),M.to(i.range),M.to(i.selectionRange));return n._sessionId=i._sessionId,n._itemId=i._itemId,n}e.to=t;function s(i,n,r){if(n=n??i._sessionId,r=r??i._itemId,n===void 0||r===void 0)throw new Error("invalid item");return{_sessionId:n,_itemId:r,name:i.name,detail:i.detail,kind:Ci.from(i.kind),uri:i.uri,range:M.from(i.range),selectionRange:M.from(i.selectionRange),tags:i.tags?.map(sr.from)}}e.from=s}(Il||(Il={})),function(e){function t(s){return new mE(Il.to(s.from),s.fromRanges.map(i=>M.to(i)))}e.to=t}(d$||(d$={})),function(e){function t(s){return new gE(Il.to(s.to),s.fromRanges.map(i=>M.to(i)))}e.to=t}(p$||(p$={})),function(e){function t(i){return{range:i.range&&M.from(i.range),uri:i.uri}}e.from=t;function s(i){return new mn(E.revive(i.uri),M.to(i.range))}e.to=s}(ir||(ir={})),function(e){function t(i){const n=i,r=i;return{originSelectionRange:n.originSelectionRange?M.from(n.originSelectionRange):void 0,uri:n.targetUri?n.targetUri:r.uri,range:M.from(n.targetRange?n.targetRange:r.range),targetSelectionRange:n.targetSelectionRange?M.from(n.targetSelectionRange):void 0}}e.from=t;function s(i){return{targetUri:E.revive(i.uri),targetRange:M.to(i.range),targetSelectionRange:i.targetSelectionRange?M.to(i.targetSelectionRange):void 0,originSelectionRange:i.originSelectionRange?M.to(i.originSelectionRange):void 0}}e.to=s}(m$||(m$={})),function(e){function t(i){return{range:M.from(i.range),contents:ct.fromMany(i.contents),canIncreaseVerbosity:i.canIncreaseVerbosity,canDecreaseVerbosity:i.canDecreaseVerbosity}}e.from=t;function s(i){const n=i.contents.map(ct.to),r=M.to(i.range),o=i.canIncreaseVerbosity,a=i.canDecreaseVerbosity;return new af(n,r,o,a)}e.to=s}(g$||(g$={})),function(e){function t(i){return{range:M.from(i.range),expression:i.expression}}e.from=t;function s(i){return new Lf(M.to(i.range),i.expression)}e.to=s}(w$||(w$={})),function(e){function t(i){if(i instanceof Of)return{type:"text",range:M.from(i.range),text:i.text};if(i instanceof Cf)return{type:"variable",range:M.from(i.range),variableName:i.variableName,caseSensitiveLookup:i.caseSensitiveLookup};if(i instanceof jf)return{type:"expression",range:M.from(i.range),expression:i.expression};throw new Error("Unknown 'InlineValue' type")}e.from=t;function s(i){switch(i.type){case"text":return{range:M.to(i.range),text:i.text};case"variable":return{range:M.to(i.range),variableName:i.variableName,caseSensitiveLookup:i.caseSensitiveLookup};case"expression":return{range:M.to(i.range),expression:i.expression}}}e.to=s}(v$||(v$={})),function(e){function t(i){return{frameId:i.frameId,stoppedLocation:M.from(i.stoppedLocation)}}e.from=t;function s(i){return new _f(i.frameId,M.to(i.stoppedLocation))}e.to=s}(b$||(b$={})),function(e){function t(i){return{range:M.from(i.range),kind:i.kind}}e.from=t;function s(i){return new lf(M.to(i.range),i.kind)}e.to=s}(bd||(bd={})),function(e){function t(i){return{uri:i.uri,highlights:i.highlights.map(bd.from)}}e.from=t;function s(i){return new uf(E.revive(i.uri),i.highlights.map(bd.to))}e.to=s}(y$||(y$={})),function(e){function t(s){switch(s){case 1:return cl.TriggerCharacter;case 2:return cl.TriggerForIncompleteCompletions;case 0:default:return cl.Invoke}}e.to=t}($w||($w={})),function(e){function t(s){return{triggerKind:$w.to(s.triggerKind),triggerCharacter:s.triggerCharacter}}e.to=t}(E$||(E$={})),function(e){function t(i){switch(i){case vf.Deprecated:return 1}}e.from=t;function s(i){switch(i){case 1:return vf.Deprecated}}e.to=s}(Sw||(Sw={})),function(e){const t=new Map([[X.Method,0],[X.Function,1],[X.Constructor,2],[X.Field,3],[X.Variable,4],[X.Class,5],[X.Interface,7],[X.Struct,6],[X.Module,8],[X.Property,9],[X.Unit,12],[X.Value,13],[X.Constant,14],[X.Enum,15],[X.EnumMember,16],[X.Keyword,17],[X.Snippet,27],[X.Text,18],[X.Color,19],[X.File,20],[X.Reference,21],[X.Folder,23],[X.Event,10],[X.Operator,11],[X.TypeParameter,24],[X.Issue,26],[X.User,25]]);function s(r){return t.get(r)??9}e.from=s;const i=new Map([[0,X.Method],[1,X.Function],[2,X.Constructor],[3,X.Field],[4,X.Variable],[5,X.Class],[7,X.Interface],[6,X.Struct],[8,X.Module],[9,X.Property],[12,X.Unit],[13,X.Value],[14,X.Constant],[15,X.Enum],[16,X.EnumMember],[17,X.Keyword],[27,X.Snippet],[18,X.Text],[19,X.Color],[20,X.File],[21,X.Reference],[23,X.Folder],[10,X.Event],[11,X.Operator],[24,X.TypeParameter],[25,X.User],[26,X.Issue]]);function n(r){return i.get(r)??X.Property}e.to=n}(Pw||(Pw={})),function(e){function t(s,i){const n=new bf(s.label);return n.insertText=s.insertText,n.kind=Pw.to(s.kind),n.tags=s.tags?.map(Sw.to),n.detail=s.detail,n.documentation=tl(s.documentation)?ct.to(s.documentation):s.documentation,n.sortText=s.sortText,n.filterText=s.filterText,n.preselect=s.preselect,n.commitCharacters=s.commitCharacters,Li.isIRange(s.range)?n.range=M.to(s.range):typeof s.range=="object"&&(n.range={inserting:M.to(s.range.insert),replacing:M.to(s.range.replace)}),n.keepWhitespace=typeof s.insertTextRules>"u"?!1:!!(s.insertTextRules&1),typeof s.insertTextRules<"u"&&s.insertTextRules&4?n.insertText=new ta(s.insertText):(n.insertText=s.insertText,n.textEdit=n.range instanceof Ke?new Mr(n.range,n.insertText):void 0),s.additionalTextEdits&&s.additionalTextEdits.length>0&&(n.additionalTextEdits=s.additionalTextEdits.map(r=>ui.to(r))),n.command=i&&s.command?i.fromInternal(s.command):void 0,n}e.to=t}(x$||(x$={})),function(e){function t(i){if(typeof i.label!="string"&&!Array.isArray(i.label))throw new TypeError("Invalid label");return{label:i.label,documentation:ct.fromStrict(i.documentation)}}e.from=t;function s(i){return{label:i.label,documentation:tl(i.documentation)?ct.to(i.documentation):i.documentation}}e.to=s}(yd||(yd={})),function(e){function t(i){return{label:i.label,documentation:ct.fromStrict(i.documentation),parameters:Array.isArray(i.parameters)?i.parameters.map(yd.from):[],activeParameter:i.activeParameter}}e.from=t;function s(i){return{label:i.label,documentation:tl(i.documentation)?ct.to(i.documentation):i.documentation,parameters:Array.isArray(i.parameters)?i.parameters.map(yd.to):[],activeParameter:i.activeParameter}}e.to=s}(Ed||(Ed={})),function(e){function t(i){return{activeSignature:i.activeSignature,activeParameter:i.activeParameter,signatures:Array.isArray(i.signatures)?i.signatures.map(Ed.from):[]}}e.from=t;function s(i){return{activeSignature:i.activeSignature,activeParameter:i.activeParameter,signatures:Array.isArray(i.signatures)?i.signatures.map(Ed.to):[]}}e.to=s}(k$||(k$={})),function(e){function t(s,i){const n=new wf(vn.to(i.position),typeof i.label=="string"?i.label:i.label.map(Iw.to.bind(void 0,s)),i.kind&&Aw.to(i.kind));return n.textEdits=i.textEdits&&i.textEdits.map(ui.to),n.tooltip=tl(i.tooltip)?ct.to(i.tooltip):i.tooltip,n.paddingLeft=i.paddingLeft,n.paddingRight=i.paddingRight,n}e.to=t}($$||($$={})),function(e){function t(s,i){const n=new gf(i.label);return n.tooltip=tl(i.tooltip)?ct.to(i.tooltip):i.tooltip,ew.is(i.command)&&(n.command=s.fromInternal(i.command)),i.location&&(n.location=ir.to(i.location)),n}e.to=t}(Iw||(Iw={})),function(e){function t(i){return i}e.from=t;function s(i){return i}e.to=s}(Aw||(Aw={})),function(e){function t(i){return{range:M.from(i.range),url:i.target,tooltip:i.tooltip}}e.from=t;function s(i){let n;if(i.url)try{n=typeof i.url=="string"?E.parse(i.url,!0):E.revive(i.url)}catch{}const r=new kf(M.to(i.range),n);return r.tooltip=i.tooltip,r}e.to=s}(S$||(S$={})),function(e){function t(i){const n=new $f(i.label);return i.textEdit&&(n.textEdit=ui.to(i.textEdit)),i.additionalTextEdits&&(n.additionalTextEdits=i.additionalTextEdits.map(r=>ui.to(r))),n}e.to=t;function s(i){return{label:i.label,textEdit:i.textEdit?ui.from(i.textEdit):void 0,additionalTextEdits:i.additionalTextEdits?i.additionalTextEdits.map(n=>ui.from(n)):void 0}}e.from=s}(P$||(P$={})),function(e){function t(i){return new ul(i[0],i[1],i[2],i[3])}e.to=t;function s(i){return[i.red,i.green,i.blue,i.alpha]}e.from=s}(I$||(I$={})),function(e){function t(i){return{range:M.from(i.range)}}e.from=t;function s(i){return new mf(M.to(i.range))}e.to=s}(A$||(A$={})),function(e){function t(s){switch(s){case 2:return ll.AfterDelay;case 1:return ll.Manual;case 3:case 4:return ll.FocusOut}}e.to=t}(D$||(D$={})),function(e){function t(i){switch(i){case Ni.Off:return 0;case Ni.Relative:return 2;case Ni.Interval:return 3;case Ni.On:default:return 1}}e.from=t;function s(i){switch(i){case 0:return Ni.Off;case 2:return Ni.Relative;case 3:return Ni.Interval;case 1:default:return Ni.On}}e.to=s}(N$||(N$={})),function(e){function t(i){if(i===ea.CRLF)return 1;if(i===ea.LF)return 0}e.from=t;function s(i){if(i===1)return ea.CRLF;if(i===0)return ea.LF}e.to=s}(xd||(xd={})),function(e){function t(s){if(typeof s=="object")return s.viewId;switch(s){case hl.SourceControl:return 3;case hl.Window:return 10;case hl.Notification:return 15}throw new Error("Unknown 'ProgressLocation'")}e.from=t}(R$||(R$={})),function(e){function t(i){const n={start:i.start+1,end:i.end+1};return i.kind&&(n.kind=kd.from(i.kind)),n}e.from=t;function s(i){const n={start:i.start-1,end:i.end-1};return i.kind&&(n.kind=kd.to(i.kind)),n}e.to=s}(L$||(L$={})),function(e){function t(i){if(i)switch(i){case Xn.Comment:return Br.Comment;case Xn.Imports:return Br.Imports;case Xn.Region:return Br.Region}}e.from=t;function s(i){if(i)switch(i.value){case Br.Comment.value:return Xn.Comment;case Br.Imports.value:return Xn.Imports;case Br.Region.value:return Xn.Region}}e.to=s}(kd||(kd={})),function(e){function t(s){if(s)return{pinned:typeof s.preview=="boolean"?!s.preview:void 0,inactive:s.background,preserveFocus:s.preserveFocus,selection:typeof s.selection=="object"?M.from(s.selection):void 0,override:typeof s.override=="boolean"?X3.id:void 0}}e.from=t}(O$||(O$={})),function(e){function t(r){return r instanceof ra?r.toJSON():typeof r=="string"?r:s(r)||i(r)?new ra(r.baseUri??r.base,r.pattern).toJSON():r}e.from=t;function s(r){const o=r;return o?E.isUri(o.baseUri)&&typeof o.pattern=="string":!1}function i(r){const o=r;return o?typeof o.base=="string"&&typeof o.pattern=="string":!1}function n(r){return typeof r=="string"?r:new ra(E.revive(r.baseUri),r.pattern)}e.to=n}(ji||(ji={})),function(e){function t(s){if(s){if(Array.isArray(s))return s.map(t);if(typeof s=="string")return s;{const i=s;return{language:i.language,scheme:i.scheme,pattern:ji.from(i.pattern)??void 0,exclusive:i.exclusive,notebookType:i.notebookType}}}else return}e.from=t}(C$||(C$={})),function(e){function t(i){return!!i&&typeof i=="object"&&"documents"in i&&Array.isArray(i.documents)&&i.documents.every(n=>Array.isArray(n)&&n.every(Al.is))}e.is=t;function s(i){return{documents:i.documents.map(n=>n.map(Al.from)),conversation:i.conversation?.map(n=>n.type==="request"?{type:"request",message:n.message}:{type:"response",message:n.message,result:n.result?_d.from(n.result):void 0,references:n.references?.map(Al.from)})}}e.from=s}(j$||(j$={})),function(e){function t(n){return typeof n=="object"&&n!==null&&"uri"in n&&E.isUri(n.uri)&&"version"in n&&typeof n.version=="number"&&"ranges"in n&&Array.isArray(n.ranges)&&n.ranges.every(r=>r instanceof Ke)}e.is=t;function s(n){return{uri:n.uri,version:n.version,ranges:n.ranges.map(r=>M.from(r))}}e.from=s;function i(n){return{uri:E.revive(n.uri),version:n.version,ranges:n.ranges.map(r=>M.to(r))}}e.to=i}(Al||(Al={})),function(e){function t(i){return{start:i.start,end:i.end}}e.from=t;function s(i){return new Ur(i.start,i.end)}e.to=s}(Dw||(Dw={})),function(e){function t(i){return{timing:typeof i.runStartTime=="number"&&typeof i.runEndTime=="number"?{startTime:i.runStartTime,endTime:i.runEndTime}:void 0,executionOrder:i.executionOrder,success:i.lastRunSuccess}}e.to=t;function s(i){return{lastRunSuccess:i.success,runStartTime:i.timing?.startTime,runEndTime:i.timing?.endTime,executionOrder:i.executionOrder}}e.from=s}($d||($d={})),function(e){function t(s){if(s===sl.Unconfirmed)return Tf.Pending;if(s===sl.Pending)return;if(s===sl.Executing)return Tf.Executing;throw new Error(`Unknown state: ${s}`)}e.to=t}(_$||(_$={})),function(e){function t(i){switch(i){case aa.Markup:return Ko.Markup;case aa.Code:default:return Ko.Code}}e.from=t;function s(i){switch(i){case Ko.Markup:return aa.Markup;case Ko.Code:default:return aa.Code}}e.to=s}(Sd||(Sd={})),function(e){function t(i){const n={metadata:i.metadata??Object.create(null),cells:[]};for(const r of i.cells)b0.validate(r),n.cells.push(Dl.from(r));return n}e.from=t;function s(i){const n=new ex(i.cells.map(Dl.to));return du(i.metadata)||(n.metadata=i.metadata),n}e.to=s}(T$||(T$={})),function(e){function t(i){return{cellKind:Sd.from(i.kind),language:i.languageId,mime:i.mime,source:i.value,metadata:i.metadata,internalMetadata:$d.from(i.executionSummary??{}),outputs:i.outputs?i.outputs.map(Id.from):[]}}e.from=t;function s(i){return new b0(Sd.to(i.cellKind),i.source,i.language,i.mime,i.outputs?i.outputs.map(Id.to):void 0,i.metadata,i.internalMetadata?$d.to(i.internalMetadata):void 0)}e.to=s}(Dl||(Dl={})),function(e){function t(i){return{mime:i.mime,valueBytes:O.wrap(i.data)}}e.from=t;function s(i){return new tx(i.valueBytes.buffer,i.mime)}e.to=s}(Pd||(Pd={})),function(e){function t(i){return{outputId:i.id,items:i.items.map(Pd.from),metadata:i.metadata}}e.from=t;function s(i){const n=i.items.map(Pd.to);return new sx(n,i.outputId,i.metadata)}e.to=s}(Id||(Id={})),function(e){function t(n){return i(n)?{include:ji.from(n.include)??void 0,exclude:ji.from(n.exclude)??void 0}:ji.from(n)??void 0}e.from=t;function s(n){return i(n)?{include:ji.to(n.include),exclude:ji.to(n.exclude)}:ji.to(n)}e.to=s;function i(n){const r=n;return r?!xt(r.include)&&!xt(r.exclude):!1}}(M$||(M$={})),function(e){function t(s,i,n){const r=typeof s.command=="string"?{title:"",command:s.command}:s.command;return{alignment:s.alignment===y0.Left?1:2,command:i.toInternal(r,n),text:s.text,tooltip:s.tooltip,accessibilityInformation:s.accessibilityInformation,priority:s.priority}}e.from=t}(U$||(U$={})),function(e){function t(s,i,n){const r=typeof s.command=="string"?{title:"",command:s.command}:s.command;return{command:i.toInternal(r,n),label:s.label,description:s.description,detail:s.detail,documentation:s.documentation}}e.from=t}(F$||(F$={})),function(e){function t(s){return{transientOutputs:s?.transientOutputs??!1,transientCellMetadata:s?.transientCellMetadata??{},transientDocumentMetadata:s?.transientDocumentMetadata??{},cellContentMetadata:s?.cellContentMetadata??{}}}e.from=t}(B$||(B$={})),function(e){function t(i){return{uri:i.uri,provides:i.provides}}e.from=t;function s(i){return new ox(E.revive(i.uri),i.provides)}e.to=s}(z$||(z$={})),function(e){function t(i){return{message:ct.fromStrict(i.message)||"",type:0,expected:i.expectedOutput,actual:i.actualOutput,contextValue:i.contextValue,location:i.location&&{range:M.from(i.location.range),uri:i.location.uri},stackTrace:i.stackTrace?.map(n=>({label:n.label,position:n.position&&vn.from(n.position),uri:n.uri&&E.revive(n.uri).toJSON()}))}}e.from=t;function s(i){const n=new Mf(typeof i.message=="string"?i.message:ct.to(i.message));return n.actualOutput=i.actual,n.expectedOutput=i.expected,n.contextValue=i.contextValue,n.location=i.location?ir.to(i.location):void 0,n}e.to=s}(Nw||(Nw={})),function(e){e.namespace=Lk,e.denamespace=Ok}(nr||(nr={})),function(e){function t(i){const n=yw(i).controllerId;return{extId:ya.fromExtHostTestItem(i,n).toString(),label:i.label,uri:E.revive(i.uri),busy:i.busy,tags:i.tags.map(r=>nr.namespace(n,r.id)),range:Li.lift(M.from(i.range)),description:i.description||null,sortText:i.sortText||null,error:i.error&&ct.fromStrict(i.error)||null}}e.from=t;function s(i){return{parent:void 0,error:void 0,id:ya.fromString(i.extId).localId,label:i.label,uri:E.revive(i.uri),tags:(i.tags||[]).map(n=>{const{tagId:r}=nr.denamespace(n);return new dl(r)}),children:{add:()=>{},delete:()=>{},forEach:()=>{},*[Symbol.iterator](){},get:()=>{},replace:()=>{},size:0},range:M.to(i.range||void 0),canResolveChildren:!1,busy:i.busy,description:i.description||void 0,sortText:i.sortText||void 0}}e.toPlain=s}(Ad||(Ad={})),function(e){function t(i){return{id:i.id}}e.from=t;function s(i){return new dl(i.id)}e.to=s}(nr||(nr={})),function(e){const t=(i,n)=>{const r=i.value;if(!r)return;const o={...Ad.toPlain(r.item),parent:n,taskStates:r.tasks.map(a=>({state:a.state,duration:a.duration,messages:a.messages.filter(c=>c.type===0).map(Nw.to)})),children:[]};if(i.children)for(const a of i.children.values()){const c=t(a,o);c&&o.children.push(c)}return o};function s(i){const n=new w3;for(const a of i.items)n.insert(ya.fromString(a.item.extId).path,a);const r=[n.nodes],o=[];for(;r.length;)for(const a of r.pop())a.value?o.push(a):a.children&&r.push(a.children.values());return{completedAt:i.completedAt,results:o.map(a=>t(a)).filter(LA)}}e.to=s}(H$||(H$={})),function(e){function t(a){return{covered:a.covered,total:a.total}}function s(a){return"line"in a?vn.from(a):M.from(a)}function i(a){if(a)return"endLineNumber"in a?M.to(a):vn.to(a)}function n(a){if(a.type===1){const c=[];if(a.branches)for(const l of a.branches)c.push({executed:l.count,location:i(l.location),label:l.label});return new dx(a.count,i(a.location),a.branches?.map(l=>new px(l.count,i(l.location),l.label)))}else return new mx(a.name,a.count,i(a.location))}e.to=n;function r(a){if(typeof a.executed=="number"&&a.executed<0)throw new Error(`Invalid coverage count ${a.executed}`);return"branches"in a?{count:a.executed,location:s(a.location),type:1,branches:a.branches.length?a.branches.map(c=>({count:c.executed,location:c.location&&s(c.location),label:c.label})):void 0}:{type:0,name:a.name,count:a.executed,location:s(a.location)}}e.fromDetails=r;function o(a,c,l){return tf(l.statementCoverage),tf(l.branchCoverage),tf(l.declarationCoverage),{id:c,uri:l.uri,statement:t(l.statementCoverage),branch:l.branchCoverage&&t(l.branchCoverage),declaration:l.declarationCoverage&&t(l.declarationCoverage),testIds:l instanceof fx&&l.fromTests.length?l.fromTests.map(u=>ya.fromExtHostTestItem(u,a).toString()):void 0}}e.fromFile=o}(V$||(V$={})),function(e){function t(s){switch(s){case 1:return pf.Invoke;case 2:return pf.Automatic}}e.to=t}(W$||(W$={})),function(e){function t(i){const n=new k0(Ci.to(i.kind),i.name,i.detail||"",E.revive(i.uri),M.to(i.range),M.to(i.selectionRange));return n._sessionId=i._sessionId,n._itemId=i._itemId,n}e.to=t;function s(i,n,r){if(n=n??i._sessionId,r=r??i._itemId,n===void 0||r===void 0)throw new Error("invalid item");return{_sessionId:n,_itemId:r,kind:Ci.from(i.kind),name:i.name,detail:i.detail??"",uri:i.uri,range:M.from(i.range),selectionRange:M.from(i.selectionRange),tags:i.tags?.map(sr.from)}}e.from=s}(Rw||(Rw={})),function(e){function t(s){if(s)return{value:s.value,tooltip:s.tooltip}}e.from=t}(q$||(q$={})),function(e){function t(r,o,a){const c=o.fileData;return c?new OE(new CE(c.name,E.revive(c.uri),c.id,Ql(()=>a(c.id)))):r===Ii.uriList&&o.uriListData?new Nf(n(o.uriListData)):new Nf(o.asString)}e.to=t;async function s(r,o){const a=await o.asString();if(r===Ii.uriList)return{asString:a,fileData:void 0,uriListData:i(a)};const c=o.asFile();return{asString:a,fileData:c?{name:c.name,uri:c.uri,id:c._itemId??c.id}:void 0}}e.from=s;function i(r){return Bf.split(r).map(o=>{if(o.startsWith("#"))return o;try{return E.parse(o)}catch{}return o})}function n(r){return Bf.create(r.map(o=>typeof o=="string"?o:E.revive(o)))}}(Dd||(Dd={})),function(e){function t(i,n){const r=i.items.map(([o,a])=>[o,Dd.to(o,a,n)]);return new Rf(r)}e.toDataTransfer=t;async function s(i){const n={items:[]},r=[];for(const[o,a]of i)r.push((async()=>{n.items.push([o,await Dd.from(o,a)])})());return await Promise.all(r),n}e.from=s}(G$||(G$={})),function(e){function t(i,n){return{kind:"reply",agentId:i.participant??n?.agentId??"",subCommand:i.command??n?.command,message:i.prompt,title:i.label}}e.from=t;function s(i){return{prompt:i.message,label:i.title,participant:i.agentId,command:i.subCommand}}e.to=s}(Lw||(Lw={})),function(e){function t(i){switch(i){case 0:return Ri.System;case 1:return Ri.User;case 2:return Ri.Assistant}}e.to=t;function s(i){switch(i){case Ri.System:return 0;case Ri.User:return 1;case Ri.Assistant:return 2}return 1}e.from=s}(Nd||(Nd={})),function(e){function t(i){const n=i.content.map(a=>{if(a.type==="text")return new Xs(a.value);if(a.type==="tool_result"){const c=a.value.map(l=>l.type==="text"?new Xs(l.value):new la(l.value));return new _0(a.toolCallId,c,a.isError)}else return new T0(a.toolCallId,a.name,a.parameters)}),r=Nd.to(i.role);return new Ax(r,n,i.name)}e.to=t;function s(i){const n=Nd.from(i.role),r=i.name;let o=i.content;typeof o=="string"&&(o=[new Xs(o)]);const a=o.map(c=>{if(c instanceof _0)return{type:"tool_result",toolCallId:c.callId,value:wi(c.content.map(l=>l instanceof Xs?{type:"text",value:l.value}:l instanceof la?{type:"prompt_tsx",value:l.value}:void 0)),isError:c.isError};if(c instanceof T0)return{type:"tool_use",toolCallId:c.callId,name:c.name,parameters:c.input??c.parameters};if(c instanceof Xs)return{type:"text",value:c.value};if(typeof c!="string")throw new Error("Unexpected chat message content type");return{type:"text",value:c}});return{role:n,name:r,content:a}}e.from=s}(J$||(J$={})),function(e){function t(i){return{kind:"markdownContent",content:ct.from(i.value)}}e.from=t;function s(i){return new $0(ct.to(i.content))}e.to=s}(Rd||(Rd={})),function(e){function t(i){return{kind:"codeblockUri",uri:i.value}}e.from=t;function s(i){return new O0(E.revive(i.uri))}e.to=s}(Ow||(Ow={})),function(e){function t(i){return{kind:"markdownVuln",content:ct.from(i.value),vulnerabilities:i.vulnerabilities}}e.from=t;function s(i){return new S0(ct.to(i.content),i.vulnerabilities)}e.to=s}(Cw||(Cw={})),function(e){function t(i){return{kind:"agentDetection",agentId:i.participant,command:i.command}}e.from=t;function s(i){return new P0(i.agentId,i.command)}e.to=s}(jw||(jw={})),function(e){function t(s){return{kind:"confirmation",title:s.title,message:s.message,data:s.data,buttons:s.buttons}}e.from=t}(_w||(_w={})),function(e){function t(i){const{value:n,baseUri:r}=i;function o(a,c){return a.map(l=>{const u=E.joinPath(c,l.name);return{label:l.name,uri:u,children:l.children&&o(l.children,u)}})}return{kind:"treeData",treeData:{label:On(r),uri:r,children:o(n,r)}}}e.from=t;function s(i){const n=Ws(i.treeData);function r(c){return c.map(l=>({name:l.label,children:l.children&&r(l.children)}))}const o=n.uri,a=n.children?r(n.children):[];return new I0(a,o)}e.to=s}(Ld||(Ld={})),function(e){function t(i){const n=o=>E.isUri(o),r=o=>"name"in o;return{kind:"inlineReference",name:i.title,inlineReference:n(i.value)?i.value:r(i.value)?vd.from(i.value):tr.from(i.value)}}e.from=t;function s(i){const n=Ws(i);return new A0(E.isUri(n.inlineReference)?n.inlineReference:"location"in n.inlineReference?vd.to(n.inlineReference):tr.to(n.inlineReference),i.name)}e.to=s}(Od||(Od={})),function(e){function t(i){return{kind:"progressMessage",content:ct.from(i.value)}}e.from=t;function s(i){return new D0(i.content.value)}e.to=s}(Tw||(Tw={})),function(e){function t(i){return{kind:"warning",content:ct.from(i.value)}}e.from=t;function s(i){return new N0(i.content.value)}e.to=s}(Mw||(Mw={})),function(e){function t(i){return{kind:"move",uri:i.uri,range:M.from(i.range)}}e.from=t;function s(i){return new C0(E.revive(i.uri),M.to(i.range))}e.to=s}(Uw||(Uw={})),function(e){function t(s){return{kind:"progressTask",content:ct.from(s.value)}}e.from=t}(X$||(X$={})),function(e){function t(s){return{kind:"progressTaskResult",content:typeof s=="string"?ct.from(s):void 0}}e.from=t}(Y$||(Y$={})),function(e){function t(i,n,r){return{kind:"command",command:n.toInternal(i.value,r)??{command:i.value.command,title:i.value.title}}}e.from=t;function s(i,n){return new R0(n.fromInternal(i.command)??{command:i.command.id,title:i.command.title})}e.to=s}(Cd||(Cd={})),function(e){function t(i){return{kind:"textEdit",uri:i.uri,edits:i.edits.map(n=>ui.from(n))}}e.from=t;function s(i){return new j0(E.revive(i.uri),i.edits.map(n=>ui.to(n)))}e.to=s}(Fw||(Fw={})),function(e){function t(i){const n=Wn.isThemeIcon(i.iconPath)?i.iconPath:E.isUri(i.iconPath)?{light:E.revive(i.iconPath)}:i.iconPath&&"light"in i.iconPath&&"dark"in i.iconPath&&E.isUri(i.iconPath.light)&&E.isUri(i.iconPath.dark)?{light:E.revive(i.iconPath.light),dark:E.revive(i.iconPath.dark)}:void 0;return typeof i.value=="object"&&"variableName"in i.value?{kind:"reference",reference:{variableName:i.value.variableName,value:E.isUri(i.value.value)||!i.value.value?i.value.value:tr.from(i.value.value)},iconPath:n,options:i.options}:{kind:"reference",reference:E.isUri(i.value)||typeof i.value=="string"?i.value:tr.from(i.value),iconPath:n,options:i.options}}e.from=t;function s(i){const n=Ws(i),r=o=>E.isUri(o)?o:tr.to(o);return new L0(typeof n.reference=="string"?n.reference:"variableName"in n.reference?{variableName:n.reference.variableName,value:n.reference.value&&r(n.reference.value)}:r(n.reference))}e.to=s}(jd||(jd={})),function(e){function t(s){return{kind:"codeCitation",value:s.value,license:s.license,snippet:s.snippet}}e.from=t}(Bw||(Bw={})),function(e){function t(n,r,o){return n instanceof $0?Rd.from(n):n instanceof A0?Od.from(n):n instanceof L0?jd.from(n):n instanceof D0?Tw.from(n):n instanceof I0?Ld.from(n):n instanceof R0?Cd.from(n,r,o):n instanceof j0?Fw.from(n):n instanceof S0?Cw.from(n):n instanceof O0?Ow.from(n):n instanceof P0?jw.from(n):n instanceof N0?Mw.from(n):n instanceof $x?_w.from(n):n instanceof Sx?Bw.from(n):n instanceof C0?Uw.from(n):{kind:"markdownContent",content:ct.from("")}}e.from=t;function s(n,r){switch(n.kind){case"reference":return jd.to(n);case"markdownContent":case"inlineReference":case"progressMessage":case"treeData":case"command":return i(n,r)}}e.to=s;function i(n,r){switch(n.kind){case"markdownContent":return Rd.to(n);case"inlineReference":return Od.to(n);case"progressMessage":return;case"treeData":return Ld.to(n);case"command":return Cd.to(n,r)}}e.toContent=i}(Q$||(Q$={})),function(e){function t(s,i,n){const r=s.variables.variables.filter(a=>a.isTool),o=s.variables.variables.filter(a=>!a.isTool);return{prompt:s.message,command:s.command,attempt:s.attempt??0,enableCommandDetection:s.enableCommandDetection??!0,isParticipantDetected:s.isParticipantDetected??!1,references:o.map(Hw.to),toolReferences:r.map(Vw.to),location:zw.to(s.location),acceptedConfirmationData:s.acceptedConfirmationData,rejectedConfirmationData:s.rejectedConfirmationData,location2:i,toolInvocationToken:Object.freeze({sessionId:s.sessionId}),model:n}}e.to=t}(Z$||(Z$={})),function(e){function t(i){switch(i){case ws.Notebook:return Js.Notebook;case ws.Terminal:return Js.Terminal;case ws.Panel:return Js.Panel;case ws.Editor:return Js.Editor;case ws.EditingSession:return Js.EditingSession}}e.to=t;function s(i){switch(i){case Js.Notebook:return ws.Notebook;case Js.Terminal:return ws.Terminal;case Js.Panel:return ws.Panel;case Js.Editor:return ws.Editor;case Js.EditingSession:return ws.EditingSession}}e.from=s}(zw||(zw={})),function(e){function t(s){const i=s.value;if(!i)throw new Error("Invalid value reference");return{id:s.id,name:s.name,range:s.range&&[s.range.start,s.range.endExclusive],value:Yb(i)?E.revive(i):i&&typeof i=="object"&&"uri"in i&&"range"in i&&Yb(i.uri)?tr.to(Ws(i)):s.isImage?new Ix(s.mimeType??"image/png",()=>Promise.resolve(new Uint8Array(Object.values(i)))):i,modelDescription:s.modelDescription}}e.to=t}(Hw||(Hw={})),function(e){function t(s){if(s.value)throw new Error("Invalid tool reference");return{name:s.id,range:s.range&&[s.range.start,s.range.endExclusive]}}e.to=t}(Vw||(Vw={})),function(e){function t(s,i,n){return{id:s.id,label:s.label,fullName:s.fullName,icon:s.icon?.id,value:s.values[0].value,insertText:s.insertText,detail:s.detail,documentation:s.documentation,command:i.toInternal(s.command,n)}}e.from=t}(K$||(K$={})),function(e){function t(n){return{errorDetails:n.errorDetails,metadata:i(n.metadata),nextQuestion:n.nextQuestion}}e.to=t;function s(n){return{errorDetails:n.errorDetails,metadata:n.metadata,nextQuestion:n.nextQuestion}}e.from=s;function i(n){return nn(n,r=>{if(r.$mid===20)return new M0(nn(r.content,i));if(r.$mid===21)return new Xs(r.value);if(r.$mid===22)return new la(r.value)})}}(_d||(_d={})),function(e){function t(s,i,n){if(i.action.kind==="vote")return;const r=_d.to(s);if(i.action.kind==="command"){const o=i.action.commandButton.command;return{action:{kind:"command",commandButton:{command:n.fromInternal(o)??{command:o.id,title:o.title}}},result:r}}else return i.action.kind==="followUp"?{action:{kind:"followUp",followup:Lw.to(i.action.followup)},result:r}:i.action.kind==="inlineChat"?{action:{kind:"editor",accepted:i.action.action==="accepted"},result:r}:i.action.kind==="chatEditingSessionAction"?{action:{kind:"chatEditingSessionAction",outcome:i.action.outcome==="accepted"?Ff.Accepted:Ff.Rejected,uri:E.revive(i.action.uri),hasRemainingEdits:i.action.hasRemainingEdits},result:r}:{action:i.action,result:r}}e.to=t}(eS||(eS={})),function(e){function t(s,i,n){return"terminalCommand"in s?{terminalCommand:s.terminalCommand,shouldExecute:s.shouldExecute}:"uri"in s?{uri:s.uri}:i.toInternal(s,n)}e.from=t}(tS||(tS={})),function(e){function t(s){return{kind:Ww.to(s.kind)}}e.to=t}(sS||(sS={})),function(e){function t(s){switch(s){case 0:return ia.Word;case 1:return ia.Line;case 2:return ia.Suggest;default:return ia.Unknown}}e.to=t}(Ww||(Ww={})),function(e){function t(s,i){return{id:i,label:s.label,description:s.description,canEdit:s.canEdit,collapsibleState:s.collapsibleState||0,contextValue:s.contextValue}}e.from=t}(iS||(iS={})),function(e){function t(s){return{name:s.id,description:s.modelDescription,inputSchema:s.inputSchema,parametersSchema:s.inputSchema,tags:s.tags??[]}}e.to=t}(nS||(nS={})),function(e){function t(i){return new M0(i.content.map(n=>n.kind==="text"?new Xs(n.value):new la(n.value)))}e.to=t;function s(i){return{content:i.content.map(n=>{if(n instanceof Xs)return{kind:"text",value:n.value};if(n instanceof la)return{kind:"promptTsx",value:n.value};throw new Error("Unknown LanguageModelToolResult part type")})}}e.from=s}(rS||(rS={}))}});function S(e){const t=new aS(e);return cS[t.nid]=t,t}var aS,cS,lS,uS=v({"out-build/vs/workbench/services/extensions/common/proxyIdentifier.js"(){"use strict";aS=class xI{static{this.count=0}constructor(t){this._proxyIdentifierBrand=void 0,this.sid=t,this.nid=++xI.count}},cS=[],lS=class{constructor(e){this.value=e}}}}),hS,fS,dS,pS,mS,gS,wS,vS,YT,bS,yS,ES,qw,QT,ZT=v({"out-build/vs/workbench/api/common/extHost.protocol.js"(){"use strict";uS(),function(e){e[e.Default=0]="Default",e[e.InCenter=1]="InCenter",e[e.InCenterIfOutsideViewport=2]="InCenterIfOutsideViewport",e[e.AtTop=3]="AtTop"}(hS||(hS={})),function(e){e[e.UnknownInput=0]="UnknownInput",e[e.TextInput=1]="TextInput",e[e.TextDiffInput=2]="TextDiffInput",e[e.TextMergeInput=3]="TextMergeInput",e[e.NotebookInput=4]="NotebookInput",e[e.NotebookDiffInput=5]="NotebookDiffInput",e[e.CustomEditorInput=6]="CustomEditorInput",e[e.WebviewEditorInput=7]="WebviewEditorInput",e[e.TerminalEditorInput=8]="TerminalEditorInput",e[e.InteractiveEditorInput=9]="InteractiveEditorInput",e[e.ChatEditorInput=10]="ChatEditorInput",e[e.MultiDiffEditorInput=11]="MultiDiffEditorInput"}(fS||(fS={})),function(e){e[e.TAB_OPEN=0]="TAB_OPEN",e[e.TAB_CLOSE=1]="TAB_CLOSE",e[e.TAB_UPDATE=2]="TAB_UPDATE",e[e.TAB_MOVE=3]="TAB_MOVE"}(dS||(dS={})),function(e){e[e.Editable=0]="Editable",e[e.SupportsHotExit=1]="SupportsHotExit"}(pS||(pS={})),function(e){e[e.Int8Array=1]="Int8Array",e[e.Uint8Array=2]="Uint8Array",e[e.Uint8ClampedArray=3]="Uint8ClampedArray",e[e.Int16Array=4]="Int16Array",e[e.Uint16Array=5]="Uint16Array",e[e.Int32Array=6]="Int32Array",e[e.Uint32Array=7]="Uint32Array",e[e.Float32Array=8]="Float32Array",e[e.Float64Array=9]="Float64Array",e[e.BigInt64Array=10]="BigInt64Array",e[e.BigUint64Array=11]="BigUint64Array"}(mS||(mS={})),function(e){e[e.Text=1]="Text",e[e.Error=2]="Error",e[e.Rich=3]="Rich"}(gS||(gS={})),function(e){e[e.Default=0]="Default",e[e.InCenter=1]="InCenter",e[e.InCenterIfOutsideViewport=2]="InCenterIfOutsideViewport",e[e.AtTop=3]="AtTop"}(wS||(wS={})),function(e){e[e.None=0]="None",e[e.Process=1]="Process",e[e.Output=2]="Output",e[e.Hybrid=3]="Hybrid"}(vS||(vS={})),YT=class kI{static{this.a=0}static mixin(t){return t._id=kI.a++,t}},function(e){e.label="a",e.kind="b",e.detail="c",e.documentation="d",e.sortText="e",e.filterText="f",e.preselect="g",e.insertText="h",e.insertTextRules="i",e.range="j",e.commitCharacters="k",e.additionalTextEdits="l",e.kindModifier="m",e.commandIdent="n",e.commandId="o",e.commandArguments="p"}(bS||(bS={})),function(e){e.defaultRanges="a",e.completions="b",e.isIncomplete="c",e.duration="d"}(yS||(yS={})),function(e){e[e.Workspace=0]="Workspace",e[e.TextDocument=1]="TextDocument"}(ES||(ES={})),qw={MainThreadAuthentication:S("MainThreadAuthentication"),MainThreadBulkEdits:S("MainThreadBulkEdits"),MainThreadLanguageModels:S("MainThreadLanguageModels"),MainThreadEmbeddings:S("MainThreadEmbeddings"),MainThreadChatAgents2:S("MainThreadChatAgents2"),MainThreadCodeMapper:S("MainThreadCodeMapper"),MainThreadChatVariables:S("MainThreadChatVariables"),MainThreadLanguageModelTools:S("MainThreadChatSkills"),MainThreadClipboard:S("MainThreadClipboard"),MainThreadCommands:S("MainThreadCommands"),MainThreadComments:S("MainThreadComments"),MainThreadConfiguration:S("MainThreadConfiguration"),MainThreadConsole:S("MainThreadConsole"),MainThreadDebugService:S("MainThreadDebugService"),MainThreadDecorations:S("MainThreadDecorations"),MainThreadDiagnostics:S("MainThreadDiagnostics"),MainThreadDialogs:S("MainThreadDiaglogs"),MainThreadDocuments:S("MainThreadDocuments"),MainThreadDocumentContentProviders:S("MainThreadDocumentContentProviders"),MainThreadTextEditors:S("MainThreadTextEditors"),MainThreadEditorInsets:S("MainThreadEditorInsets"),MainThreadEditorTabs:S("MainThreadEditorTabs"),MainThreadErrors:S("MainThreadErrors"),MainThreadTreeViews:S("MainThreadTreeViews"),MainThreadDownloadService:S("MainThreadDownloadService"),MainThreadLanguageFeatures:S("MainThreadLanguageFeatures"),MainThreadLanguages:S("MainThreadLanguages"),MainThreadLogger:S("MainThreadLogger"),MainThreadMessageService:S("MainThreadMessageService"),MainThreadOutputService:S("MainThreadOutputService"),MainThreadProgress:S("MainThreadProgress"),MainThreadQuickDiff:S("MainThreadQuickDiff"),MainThreadQuickOpen:S("MainThreadQuickOpen"),MainThreadStatusBar:S("MainThreadStatusBar"),MainThreadSecretState:S("MainThreadSecretState"),MainThreadStorage:S("MainThreadStorage"),MainThreadSpeech:S("MainThreadSpeechProvider"),MainThreadTelemetry:S("MainThreadTelemetry"),MainThreadTerminalService:S("MainThreadTerminalService"),MainThreadTerminalShellIntegration:S("MainThreadTerminalShellIntegration"),MainThreadWebviews:S("MainThreadWebviews"),MainThreadWebviewPanels:S("MainThreadWebviewPanels"),MainThreadWebviewViews:S("MainThreadWebviewViews"),MainThreadCustomEditors:S("MainThreadCustomEditors"),MainThreadUrls:S("MainThreadUrls"),MainThreadUriOpeners:S("MainThreadUriOpeners"),MainThreadProfileContentHandlers:S("MainThreadProfileContentHandlers"),MainThreadWorkspace:S("MainThreadWorkspace"),MainThreadFileSystem:S("MainThreadFileSystem"),MainThreadFileSystemEventService:S("MainThreadFileSystemEventService"),MainThreadExtensionService:S("MainThreadExtensionService"),MainThreadSCM:S("MainThreadSCM"),MainThreadSearch:S("MainThreadSearch"),MainThreadShare:S("MainThreadShare"),MainThreadTask:S("MainThreadTask"),MainThreadWindow:S("MainThreadWindow"),MainThreadLabelService:S("MainThreadLabelService"),MainThreadNotebook:S("MainThreadNotebook"),MainThreadNotebookDocuments:S("MainThreadNotebookDocumentsShape"),MainThreadNotebookEditors:S("MainThreadNotebookEditorsShape"),MainThreadNotebookKernels:S("MainThreadNotebookKernels"),MainThreadNotebookRenderers:S("MainThreadNotebookRenderers"),MainThreadInteractive:S("MainThreadInteractive"),MainThreadTheming:S("MainThreadTheming"),MainThreadTunnelService:S("MainThreadTunnelService"),MainThreadManagedSockets:S("MainThreadManagedSockets"),MainThreadTimeline:S("MainThreadTimeline"),MainThreadTesting:S("MainThreadTesting"),MainThreadLocalization:S("MainThreadLocalizationShape"),MainThreadAiRelatedInformation:S("MainThreadAiRelatedInformation"),MainThreadAiEmbeddingVector:S("MainThreadAiEmbeddingVector")},QT={ExtHostCodeMapper:S("ExtHostCodeMapper"),ExtHostCommands:S("ExtHostCommands"),ExtHostConfiguration:S("ExtHostConfiguration"),ExtHostDiagnostics:S("ExtHostDiagnostics"),ExtHostDebugService:S("ExtHostDebugService"),ExtHostDecorations:S("ExtHostDecorations"),ExtHostDocumentsAndEditors:S("ExtHostDocumentsAndEditors"),ExtHostDocuments:S("ExtHostDocuments"),ExtHostDocumentContentProviders:S("ExtHostDocumentContentProviders"),ExtHostDocumentSaveParticipant:S("ExtHostDocumentSaveParticipant"),ExtHostEditors:S("ExtHostEditors"),ExtHostTreeViews:S("ExtHostTreeViews"),ExtHostFileSystem:S("ExtHostFileSystem"),ExtHostFileSystemInfo:S("ExtHostFileSystemInfo"),ExtHostFileSystemEventService:S("ExtHostFileSystemEventService"),ExtHostLanguages:S("ExtHostLanguages"),ExtHostLanguageFeatures:S("ExtHostLanguageFeatures"),ExtHostQuickOpen:S("ExtHostQuickOpen"),ExtHostQuickDiff:S("ExtHostQuickDiff"),ExtHostStatusBar:S("ExtHostStatusBar"),ExtHostShare:S("ExtHostShare"),ExtHostExtensionService:S("ExtHostExtensionService"),ExtHostLogLevelServiceShape:S("ExtHostLogLevelServiceShape"),ExtHostTerminalService:S("ExtHostTerminalService"),ExtHostTerminalShellIntegration:S("ExtHostTerminalShellIntegration"),ExtHostSCM:S("ExtHostSCM"),ExtHostSearch:S("ExtHostSearch"),ExtHostTask:S("ExtHostTask"),ExtHostWorkspace:S("ExtHostWorkspace"),ExtHostWindow:S("ExtHostWindow"),ExtHostWebviews:S("ExtHostWebviews"),ExtHostWebviewPanels:S("ExtHostWebviewPanels"),ExtHostCustomEditors:S("ExtHostCustomEditors"),ExtHostWebviewViews:S("ExtHostWebviewViews"),ExtHostEditorInsets:S("ExtHostEditorInsets"),ExtHostEditorTabs:S("ExtHostEditorTabs"),ExtHostProgress:S("ExtHostProgress"),ExtHostComments:S("ExtHostComments"),ExtHostSecretState:S("ExtHostSecretState"),ExtHostStorage:S("ExtHostStorage"),ExtHostUrls:S("ExtHostUrls"),ExtHostUriOpeners:S("ExtHostUriOpeners"),ExtHostProfileContentHandlers:S("ExtHostProfileContentHandlers"),ExtHostOutputService:S("ExtHostOutputService"),ExtHostLabelService:S("ExtHostLabelService"),ExtHostNotebook:S("ExtHostNotebook"),ExtHostNotebookDocuments:S("ExtHostNotebookDocuments"),ExtHostNotebookEditors:S("ExtHostNotebookEditors"),ExtHostNotebookKernels:S("ExtHostNotebookKernels"),ExtHostNotebookRenderers:S("ExtHostNotebookRenderers"),ExtHostNotebookDocumentSaveParticipant:S("ExtHostNotebookDocumentSaveParticipant"),ExtHostInteractive:S("ExtHostInteractive"),ExtHostChatAgents2:S("ExtHostChatAgents"),ExtHostChatVariables:S("ExtHostChatVariables"),ExtHostLanguageModelTools:S("ExtHostChatSkills"),ExtHostChatProvider:S("ExtHostChatProvider"),ExtHostSpeech:S("ExtHostSpeech"),ExtHostEmbeddings:S("ExtHostEmbeddings"),ExtHostAiRelatedInformation:S("ExtHostAiRelatedInformation"),ExtHostAiEmbeddingVector:S("ExtHostAiEmbeddingVector"),ExtHostTheming:S("ExtHostTheming"),ExtHostTunnelService:S("ExtHostTunnelService"),ExtHostManagedSockets:S("ExtHostManagedSockets"),ExtHostAuthentication:S("ExtHostAuthentication"),ExtHostTimeline:S("ExtHostTimeline"),ExtHostTesting:S("ExtHostTesting"),ExtHostTelemetry:S("ExtHostTelemetry"),ExtHostLocalization:S("ExtHostLocalization")}}}),xS,KT=v({"out-build/vs/workbench/api/common/extHostRpcService.js"(){"use strict";re(),xS=ie("IExtHostRpcService")}}),rr,Vr,bn,Wr,kS,Gw,$S,eM=v({"out-build/vs/workbench/api/common/extHostTestItem.js"(){"use strict";pa(),r$(),id(),i$(),vw(),oS(),te(),rr=(e,t,s,i)=>{let n=t;return{enumerable:!0,configurable:!1,get(){return n},set(r){if(!s(n,r)){const o=n;n=r,e.listener?.(i(r,o))}}}},Vr=(e,t)=>e===t,bn={range:(e,t)=>e===t?!0:!e||!t?!1:e.isEqual(t),label:Vr,description:Vr,sortText:Vr,busy:Vr,error:Vr,canResolveChildren:Vr,tags:(e,t)=>!(e.length!==t.length||e.some(s=>!t.find(i=>s.id===i.id)))},Wr=e=>t=>({op:4,update:e(t)}),kS=(e,t)=>({range:(()=>{let s;const i=Wr(n=>({range:Li.lift(M.from(n))}));return{enumerable:!0,configurable:!1,get(){return s},set(n){e.listener?.({op:6}),bn.range(s,n)||(s=n,e.listener?.(i(n)))}}})(),label:rr(e,t,bn.label,Wr(s=>({label:s}))),description:rr(e,void 0,bn.description,Wr(s=>({description:s}))),sortText:rr(e,void 0,bn.sortText,Wr(s=>({sortText:s}))),canResolveChildren:rr(e,!1,bn.canResolveChildren,s=>({op:2,state:s})),busy:rr(e,!1,bn.busy,Wr(s=>({busy:s}))),error:rr(e,void 0,bn.error,Wr(s=>({error:ct.fromStrict(s)||null}))),tags:rr(e,[],bn.tags,(s,i)=>({op:1,new:s.map(nr.from),old:i.map(nr.from)}))}),Gw=class $I{constructor(t,s,i,n){if(s.includes("\0"))throw new Error(`Test IDs may not include the ${JSON.stringify(s)} symbol`);const r=n$(this,t);Object.defineProperties(this,{id:{value:s,enumerable:!0,writable:!1},uri:{value:n,enumerable:!0,writable:!1},parent:{enumerable:!1,get(){return r.parent instanceof $S?void 0:r.parent}},children:{value:s$(r,yw,$I),enumerable:!0,writable:!1},...kS(r,i)})}},$S=class extends Gw{constructor(e,t){super(e,e,t,void 0),this._isRoot=!0}}}}),SS,tM=v({"out-build/vs/workbench/api/common/extHostInitDataService.js"(){"use strict";re(),SS=ie("IExtHostInitDataService")}}),Td,PS,IS,AS,sM=v({"out-build/vs/workbench/services/extensions/common/extensionHostProtocol.js"(){"use strict";Ue(),function(e){e[e.Desktop=1]="Desktop",e[e.Web=2]="Web"}(Td||(Td={})),function(e){e[e.VersionMismatch=55]="VersionMismatch",e[e.UnexpectedError=81]="UnexpectedError"}(PS||(PS={})),function(e){e[e.Initialized=0]="Initialized",e[e.Ready=1]="Ready",e[e.Terminate=2]="Terminate"}(IS||(IS={})),function(e){e.Start="START_NATIVE_LOG",e.End="END_NATIVE_LOG"}(AS||(AS={}))}});function iM(e){const t=Date.now()-new Date(e).getTime();return isNaN(t)?!1:t<1e3*60*60*24}var Jw,DS,NS,nM=v({"out-build/vs/workbench/api/common/extHostTelemetry.js"(){"use strict";re(),ae(),De(),tM(),sM(),U1(),on(),Kt(),te(),H(),pe(),Jw=class extends J{constructor(t,s){super(),this.s=t,this.t=s,this.a=this.B(new D),this.onDidChangeTelemetryEnabled=this.a.event,this.b=this.B(new D),this.onDidChangeTelemetryConfiguration=this.b.event,this.c={usage:!0,error:!0},this.f=0,this.g=!1,this.j=!1,this.r=new Map,this.m=E.revive(this.s.environment.extensionTelemetryLogResource),this.j=this.s.environment.isExtensionTelemetryLoggingOnly,this.n=s.createLogger(this.m,{id:_5,name:m(2726,null,this.j?" (Not Sent)":""),hidden:!0}),this.B(this.n),this.B(s.onDidChangeLogLevel(i=>{o1(i)&&this.u()})),this.n.info("Below are logs for extension telemetry events sent to the telemetry output channel API once the log level is set to trace."),this.n.info("===========================================================")}u(){this.t.setVisibility(this.m,this.g&&this.t.getLogLevel()===F.Trace)}getTelemetryConfiguration(){return this.f===3}getTelemetryDetails(){return{isCrashEnabled:this.f>=1,isErrorsEnabled:this.c.error?this.f>=2:!1,isUsageEnabled:this.c.usage?this.f>=3:!1}}instantiateLogger(t,s,i){const n=this.getTelemetryDetails(),r=new DS(s,i,t,this.n,this.j,this.getBuiltInCommonProperties(t),{isUsageEnabled:n.isUsageEnabled,isErrorsEnabled:n.isErrorsEnabled}),o=this.r.get(t.identifier.value)??[];return this.r.set(t.identifier.value,[...o,r]),r.apiTelemetryLogger}$initializeTelemetryLevel(t,s,i){this.f=t,this.g=s,this.c=i??{usage:!0,error:!0},this.u()}getBuiltInCommonProperties(t){const s=Object.create(null);switch(s["common.extname"]=`${t.publisher}.${t.name}`,s["common.extversion"]=t.version,s["common.vscodemachineid"]=this.s.telemetryInfo.machineId,s["common.vscodesessionid"]=this.s.telemetryInfo.sessionId,s["common.sqmid"]=this.s.telemetryInfo.sqmId,s["common.devDeviceId"]=this.s.telemetryInfo.devDeviceId,s["common.vscodeversion"]=this.s.version,s["common.isnewappinstall"]=iM(this.s.telemetryInfo.firstSessionDate),s["common.product"]=this.s.environment.appHost,this.s.uiKind){case Td.Web:s["common.uikind"]="web";break;case Td.Desktop:s["common.uikind"]="desktop";break;default:s["common.uikind"]="unknown"}return s["common.remotename"]=A5(MN(this.s.remote.authority)),s}$onDidChangeTelemetryLevel(t){this.h=this.getTelemetryConfiguration(),this.f=t;const s=this.getTelemetryDetails();this.r.forEach((i,n)=>{const r=i.filter(o=>!o.isDisposed);r.length===0?this.r.delete(n):this.r.set(n,r)}),this.r.forEach(i=>{for(const n of i)n.updateTelemetryEnablements(s.isUsageEnabled,s.isErrorsEnabled)}),this.h!==this.getTelemetryConfiguration()&&this.a.fire(this.getTelemetryConfiguration()),this.b.fire(this.getTelemetryDetails()),this.u()}onExtensionError(t,s){const n=this.r.get(t.value)?.filter(o=>!o.isDisposed);if(!n)return this.r.delete(t.value),!1;let r=!1;for(const o of n)o.ignoreUnhandledExtHostErrors||(o.logError(s),r=!0);return r}},Jw=__decorate([__param(0,SS),__param(1,Za)],Jw),DS=class{static validateSender(e){if(typeof e!="object")throw new TypeError("TelemetrySender argument is invalid");if(typeof e.sendEventData!="function")throw new TypeError("TelemetrySender.sendEventData must be a function");if(typeof e.sendErrorData!="function")throw new TypeError("TelemetrySender.sendErrorData must be a function");if(typeof e.flush<"u"&&typeof e.flush!="function")throw new TypeError("TelemetrySender.flush must be a function or undefined")}constructor(e,t,s,i,n,r,o){this.g=s,this.h=i,this.i=n,this.j=r,this.a=new D,this.ignoreUnhandledExtHostErrors=t?.ignoreUnhandledErrors??!1,this.b=t?.ignoreBuiltInCommonProperties??!1,this.c=t?.additionalCommonProperties,this.f=e,this.d={isUsageEnabled:o.isUsageEnabled,isErrorsEnabled:o.isErrorsEnabled}}updateTelemetryEnablements(e,t){this.e&&(this.d={isUsageEnabled:e,isErrorsEnabled:t},this.a.fire(this.e))}mixInCommonPropsAndCleanData(e){let t="properties"in e?e.properties??{}:e;return t=z1(t,[]),this.c&&(t=xo(t,this.c)),this.b||(t=xo(t,this.j)),"properties"in e?e.properties=t:e=t,e}k(e,t){this.f&&(this.g.publisher==="vscode"?e=this.g.name+"/"+e:e=this.g.identifier.value+"/"+e,t=this.mixInCommonPropsAndCleanData(t||{}),this.i||this.f?.sendEventData(e,t),this.h.trace(e,t))}logUsage(e,t){this.d.isUsageEnabled&&this.k(e,t)}logError(e,t){if(!(!this.d.isErrorsEnabled||!this.f))if(typeof e=="string")this.k(e,t);else{const s={name:e.name,message:e.message,stack:e.stack,cause:e.cause},i=z1(s,[]),n=new Error(i.message,{cause:i.cause});n.stack=i.stack,n.name=i.name,t=this.mixInCommonPropsAndCleanData(t||{}),this.i||this.f.sendErrorData(n,t),this.h.trace("exception",t)}}get apiTelemetryLogger(){if(!this.e){const e=this,t={logUsage:e.logUsage.bind(e),get isUsageEnabled(){return e.d.isUsageEnabled},get isErrorsEnabled(){return e.d.isErrorsEnabled},logError:e.logError.bind(e),dispose:e.dispose.bind(e),onDidChangeEnableStates:e.a.event.bind(e)};this.e=Object.freeze(t)}return this.e}get isDisposed(){return!this.f}dispose(){if(this.f?.flush){let e=this.f;this.f=void 0,Promise.resolve(e.flush()).then(e=void 0),this.e=void 0}else this.f=void 0}},NS=ie("IExtHostTelemetry")}}),Xw,RS,LS,rM,OS,oM=v({"out-build/vs/workbench/api/common/extHostCommands.js"(){"use strict";xe(),U0(),oS(),Kt(),ZT(),Et(),De(),Ro(),pa(),Z0(),te(),H(),re(),KT(),eM(),Ue(),uS(),br(),ro(),on(),nM(),Wt(),Xw=class{#e;#t;#s;constructor(t,s,i){this.b=new Map,this.c=new Map,this.#e=t.getProxy(qw.MainThreadCommands),this.d=s,this.#s=i,this.#t=t.getProxy(qw.MainThreadTelemetry),this.converter=new LS(this,n=>{const r=this.c.get(n);return r?.result===OS.Void?r:void 0},s),this.f=[{processArgument(n){return Ws(n)}},{processArgument(n){return nn(n,function(r){if(Li.isIRange(r))return M.to(r);if(Fr.isIPosition(r))return vn.to(r);if(Li.isIRange(r.range)&&E.isUri(r.uri))return ir.to(r);if(r instanceof O)return r.buffer.buffer;if(!Array.isArray(r))return r})}}]}registerArgumentProcessor(t){this.f.push(t)}registerApiCommand(t){const s=this.registerCommand(!1,t.id,async(...i)=>{const n=t.args.map((o,a)=>{if(!o.validate(i[a]))throw new Error(`Invalid argument '${o.name}' when running '${t.id}', received: ${typeof i[a]=="object"?JSON.stringify(i[a],null," "):i[a]} `);return o.convert(i[a])}),r=await this.executeCommand(t.internalId,...n);return t.result.convert(r,i,this.converter)},void 0,{description:t.description,args:t.args,returns:t.result.description});return this.c.set(t.id,t),new nl(()=>{s.dispose(),this.c.delete(t.id)})}registerCommand(t,s,i,n,r,o){if(this.d.trace("ExtHostCommands#registerCommand",s),!s.trim().length)throw new Error("invalid id");if(this.b.has(s))throw new Error(`command '${s}' already exists`);return this.b.set(s,{callback:i,thisArg:n,metadata:r,extension:o}),t&&this.#e.$registerCommand(s),new nl(()=>{this.b.delete(s)&&t&&this.#e.$unregisterCommand(s)})}executeCommand(t,...s){return this.d.trace("ExtHostCommands#executeCommand",t),this.g(t,s,!0)}async g(t,s,i){if(this.b.has(t))return this.#e.$fireCommandActivationEvent(t),this.h(t,s,!1);{let n=!1;const r=nn(s,function(o){if(o instanceof Ne)return vn.from(o);if(o instanceof Ke)return M.from(o);if(o instanceof mn)return ir.from(o);if(Ur.isNotebookRange(o))return Dw.from(o);if(o instanceof ArrayBuffer)return n=!0,O.wrap(new Uint8Array(o));if(o instanceof Uint8Array)return n=!0,O.wrap(o);if(o instanceof O)return n=!0,o;if(!Array.isArray(o))return o});try{const o=await this.#e.$executeCommand(t,n?new lS(r):r,i);return Ws(o)}catch(o){if(o instanceof Error&&o.message==="$executeCommand:retry")return this.g(t,s,!1);throw o}}}async h(t,s,i){const n=this.b.get(t);if(!n)throw new Error("Unknown command");const{callback:r,thisArg:o,metadata:a}=n;if(a?.args)for(let l=0;l<a.args.length;l++)try{OA(s[l],a.args[l].constraint)}catch{throw new Error(`Running the contributed command: '${t}' failed. Illegal argument '${a.args[l].name}' - ${a.args[l].description}`)}const c=$n.create();try{return await r.apply(o,s)}catch(l){if(t===this.converter.delegatingCommandId){const u=this.converter.getActualCommand(...s);u&&(t=u.command)}if(this.d.error(l,t,n.extension?.identifier),!i)throw l;if(n.extension?.identifier){const u=this.#s.onExtensionError(n.extension.identifier,l);this.d.trace("forwarded error to extension?",u,n.extension?.identifier)}throw new class extends Error{constructor(){super(Nn(l)),this.id=t,this.source=n.extension?.displayName??n.extension?.name}}}finally{this.j(n,t,c.elapsed())}}j(t,s,i){t.extension&&this.#t.$publicLog2("Extension:ActionExecuted",{extensionId:t.extension.identifier.value,id:new gc(s),duration:i})}$executeContributedCommand(t,...s){this.d.trace("ExtHostCommands#$executeContributedCommand",t);const i=this.b.get(t);return i?(s=s.map(n=>this.f.reduce((r,o)=>o.processArgument(r,i.extension?.identifier),n)),this.h(t,s,!0)):Promise.reject(new Error(`Contributed command '${t}' does not exist.`))}getCommands(t=!1){return this.d.trace("ExtHostCommands#getCommands",t),this.#e.$getCommands().then(s=>(t&&(s=s.filter(i=>i[0]!=="_")),s))}$getContributedCommandMetadata(){const t=Object.create(null);for(const[s,i]of this.b){const{metadata:n}=i;n&&(t[s]=n)}return Promise.resolve(t)}},Xw=__decorate([__param(0,xS),__param(1,fe),__param(2,NS)],Xw),RS=ie("IExtHostCommands"),LS=class{constructor(e,t,s){this.d=e,this.f=t,this.g=s,this.delegatingCommandId=`__vsc${He()}`,this.b=new Map,this.c=0,this.d.registerCommand(!0,this.delegatingCommandId,this.h,this)}toInternal(e,t){if(!e)return;const s={$ident:void 0,id:e.command,title:e.title,tooltip:e.tooltip};if(!e.command)return s;const i=this.f(e.command);if(i)s.id=i.internalId,s.arguments=i.args.map((n,r)=>n.convert(e.arguments&&e.arguments[r]));else if(Kl(e.arguments)){const n=`${e.command} /${++this.c}`;this.b.set(n,e),t.add(ve(()=>{this.b.delete(n),this.g.trace("CommandsConverter#DISPOSE",n)})),s.$ident=n,s.id=this.delegatingCommandId,s.arguments=[n],this.g.trace("CommandsConverter#CREATE",e.command,n)}return s}fromInternal(e){return typeof e.$ident=="string"?this.b.get(e.$ident):{command:e.id,title:e.title,arguments:e.arguments}}getActualCommand(...e){return this.b.get(e[0])}h(...e){const t=this.getActualCommand(...e);return this.g.trace("CommandsConverter#EXECUTE",e[0],t?t.command:"MISSING"),t?this.d.executeCommand(t.command,...t.arguments||[]):Promise.reject(`Actual command not found, wanted to execute ${e[0]}`)}},rM=class bs{static{this.Uri=new bs("uri","Uri of a text document",t=>E.isUri(t),t=>t)}static{this.Position=new bs("position","A position in a text document",t=>Ne.isPosition(t),vn.from)}static{this.Range=new bs("range","A range in a text document",t=>Ke.isRange(t),M.from)}static{this.Selection=new bs("selection","A selection in a text document",t=>rl.isSelection(t),xw.from)}static{this.Number=new bs("number","",t=>typeof t=="number",t=>t)}static{this.String=new bs("string","",t=>typeof t=="string",t=>t)}static{this.StringArray=bs.Arr(bs.String)}static Arr(t){return new bs(`${t.name}_array`,`Array of ${t.name}, ${t.description}`,s=>Array.isArray(s)&&s.every(i=>t.validate(i)),s=>s.map(i=>t.convert(i)))}static{this.CallHierarchyItem=new bs("item","A call hierarchy item",t=>t instanceof Gg,Il.from)}static{this.TypeHierarchyItem=new bs("item","A type hierarchy item",t=>t instanceof k0,Rw.from)}static{this.TestItem=new bs("testItem","A VS Code TestItem",t=>t instanceof Gw,Ad.from)}constructor(t,s,i,n){this.name=t,this.description=s,this.validate=i,this.convert=n}optional(){return new bs(this.name,`(optional) ${this.description}`,t=>t==null||this.validate(t),t=>t===void 0?void 0:t===null?null:this.convert(t))}with(t,s){return new bs(t??this.name,s??this.description,this.validate,this.convert)}},OS=class SI{static{this.Void=new SI("no result",t=>t)}constructor(t,s){this.description=t,this.convert=s}}}});import*as aM from"http";import*as CS from"fs";var Yw,Qw,cM=v({"out-build/vs/workbench/api/node/extHostCLIServer.js"(){"use strict";Ch(),oM(),te(),De(),am(),Yw=class{constructor(e,t,s){this.b=e,this.c=t,this.f=s,this.a=aM.createServer((i,n)=>this.h(i,n)),this.g().catch(i=>(t.error(i),""))}get ipcHandlePath(){return this.f}async g(){try{this.a.listen(this.ipcHandlePath),this.a.on("error",e=>this.c.error(e))}catch{this.c.error("Could not start open from terminal server.")}return this.f}h(e,t){const s=(n,r)=>{t.writeHead(n,{"content-type":"application/json"}),t.end(JSON.stringify(r||null),o=>o&&this.c.error(o))},i=[];e.setEncoding("utf8"),e.on("data",n=>i.push(n)),e.on("end",async()=>{try{const n=JSON.parse(i.join(""));let r;switch(n.type){case"open":r=await this.i(n);break;case"openExternal":r=await this.j(n);break;case"status":r=await this.l(n);break;case"extensionManagement":r=await this.k(n);break;default:s(404,`Unknown message type: ${n.type}`);break}s(200,r)}catch(n){const r=n instanceof Error?n.message:JSON.stringify(n);s(500,r),this.c.error("Error while processing pipe request",n)}})}async i(e){const{fileURIs:t,folderURIs:s,forceNewWindow:i,diffMode:n,mergeMode:r,addMode:o,forceReuseWindow:a,gotoLineMode:c,waitMarkerFilePath:l,remoteAuthority:u}=e,h=[];if(Array.isArray(s))for(const w of s)try{h.push({folderUri:E.parse(w)})}catch{}if(Array.isArray(t))for(const w of t)try{tL(w)?h.push({workspaceUri:E.parse(w)}):h.push({fileUri:E.parse(w)})}catch{}const d=l?E.file(l):void 0,g={forceNewWindow:i,diffMode:n,mergeMode:r,addMode:o,gotoLineMode:c,forceReuseWindow:a,preferNewWindow:!a&&!d&&!o,waitMarkerFileURI:d,remoteAuthority:u};this.b.executeCommand("_remoteCLI.windowOpen",h,g)}async j(e){for(const t of e.uris){const s=E.parse(t),i=s.scheme==="file"?s:t;await this.b.executeCommand("_remoteCLI.openExternal",i)}}async k(e){const t=i=>i?.map(n=>/\.vsix$/i.test(n)?E.parse(n):n),s={list:e.list,install:t(e.install),uninstall:t(e.uninstall),force:e.force};return await this.b.executeCommand("_remoteCLI.manageExtensions",s)}async l(e){return await this.b.executeCommand("_remoteCLI.getSystemStatus")}dispose(){this.a.close(),this.f&&process.platform!=="win32"&&CS.existsSync(this.f)&&CS.unlinkSync(this.f)}},Qw=class extends Yw{constructor(t,s){super(t,s,rg())}},Qw=__decorate([__param(0,RS),__param(1,fe)],Qw)}});function jS(e){return e.match(/^['"].*['"]$/)&&(e=e.substring(1,e.length-1)),fr===1&&e&&e[1]===":"?e[0].toUpperCase()+e.substring(1):e}function lM(e){return!e.strictEnv}var _S=v({"out-build/vs/platform/terminal/common/terminalEnvironment.js"(){"use strict";Q()}});function TS(e,t){if(t)if(me)for(const s in t){let i=s;for(const r in e)if(s.toLowerCase()===r.toLowerCase()){i=r;break}const n=t[s];n!==void 0&&MS(e,i,n)}else Object.keys(t).forEach(s=>{const i=t[s];i!==void 0&&MS(e,s,i)})}function MS(e,t,s){typeof s=="string"?e[t]=s:delete e[t]}function uM(e,t,s,i){e.TERM_PROGRAM="vscode",t&&(e.TERM_PROGRAM_VERSION=t),hM(e,i)&&(e.LANG=fM(s)),e.COLORTERM="truecolor"}function US(e,t){if(t)for(const s of Object.keys(t)){const i=t[s];i!=null&&(e[s]=i)}}async function FS(e,t){return await Promise.all(Object.entries(t).map(async([s,i])=>{if(typeof i=="string")try{t[s]=await e(i)}catch{t[s]=i}})),t}function hM(e,t){if(t==="on")return!0;if(t==="auto"){const s=e.LANG;return!s||s.search(/\.UTF\-8$/)===-1&&s.search(/\.utf8$/)===-1&&s.search(/\.euc.+/)===-1}return!1}function fM(e){const t=e?e.split("-"):[],s=t.length;if(s===0)return"en_US.UTF-8";if(s===1){const i={af:"ZA",am:"ET",be:"BY",bg:"BG",ca:"ES",cs:"CZ",da:"DK",de:"DE",el:"GR",en:"US",es:"ES",et:"EE",eu:"ES",fi:"FI",fr:"FR",he:"IL",hr:"HR",hu:"HU",hy:"AM",is:"IS",it:"IT",ja:"JP",kk:"KZ",ko:"KR",lt:"LT",nl:"NL",no:"NO",pl:"PL",pt:"BR",ro:"RO",ru:"RU",sk:"SK",sl:"SI",sr:"YU",sv:"SE",tr:"TR",uk:"UA",zh:"CN"};t[0]in i&&t.push(i[t[0]])}else t[1]=t[1].toUpperCase();return t.join("_")+".UTF-8"}async function dM(e,t,s,i,n,r){if(e.cwd){const a=typeof e.cwd=="object"?e.cwd.fsPath:e.cwd,c=await BS(a,s);return jS(c||a)}let o;return!e.ignoreConfigurationCwd&&n&&(s&&(n=await BS(n,s,r)),n&&(Xi(n)?o=n:i&&(o=j(i.fsPath,n)))),o||(o=i?i.fsPath:t||""),jS(o)}async function BS(e,t,s){if(t)try{return await t(e)}catch(i){s?.error("Could not resolve terminal cwd",i);return}return e}function pM(e,t,s){if(s)return i=>s.resolveWithEnvironment(t,e,i)}async function mM(e,t,s,i,n,r){const o={};if(e.strictEnv)US(o,e.env);else{US(o,r);const a={...t};s&&(a&&await FS(s,a),e.env&&await FS(s,e.env)),Os&&(o.VSCODE_NODE_OPTIONS&&(o.NODE_OPTIONS=o.VSCODE_NODE_OPTIONS,delete o.VSCODE_NODE_OPTIONS),o.VSCODE_NODE_REPL_EXTERNAL_MODULE&&(o.NODE_REPL_EXTERNAL_MODULE=o.VSCODE_NODE_REPL_EXTERNAL_MODULE,delete o.VSCODE_NODE_REPL_EXTERNAL_MODULE)),hN(o,"VSCODE_IPC_HOOK_CLI"),TS(o,a),TS(o,e.env),uM(o,i,ks,n)}return o}var gM=v({"out-build/vs/workbench/contrib/terminal/common/terminalEnvironment.js"(){"use strict";he(),te(),_u(),Q(),_S(),xe()}});function Nl(e,t=me){return Py(e,t)?e.charAt(0).toUpperCase()+e.slice(1):e}var zS,wM=v({"out-build/vs/base/common/labels.js"(){"use strict";yi(),he(),Q(),kt(),rt(),function(e){e[e.TEXT=0]="TEXT",e[e.VARIABLE=1]="VARIABLE",e[e.SEPARATOR=2]="SEPARATOR"}(zS||(zS={}))}}),HS,ze,rs,VS=v({"out-build/vs/workbench/services/configurationResolver/common/configurationResolver.js"(){"use strict";re(),de(),HS=ie("configurationResolverService"),function(e){e.Unknown="unknown",e.Env="env",e.Config="config",e.Command="command",e.Input="input",e.ExtensionInstallFolder="extensionInstallFolder",e.WorkspaceFolder="workspaceFolder",e.Cwd="cwd",e.WorkspaceFolderBasename="workspaceFolderBasename",e.UserHome="userHome",e.LineNumber="lineNumber",e.SelectedText="selectedText",e.File="file",e.FileWorkspaceFolder="fileWorkspaceFolder",e.FileWorkspaceFolderBasename="fileWorkspaceFolderBasename",e.RelativeFile="relativeFile",e.RelativeFileDirname="relativeFileDirname",e.FileDirname="fileDirname",e.FileExtname="fileExtname",e.FileBasename="fileBasename",e.FileBasenameNoExtension="fileBasenameNoExtension",e.FileDirnameBasename="fileDirnameBasename",e.ExecPath="execPath",e.ExecInstallFolder="execInstallFolder",e.PathSeparator="pathSeparator",e.PathSeparatorAlias="/"}(ze||(ze={})),rs=class extends Vi{constructor(e,t){super(t),this.variable=e}}}}),WS,vM=v({"out-build/vs/workbench/services/configurationResolver/common/variableResolver.js"(){"use strict";he(),ei(),xe(),Kt(),Q(),wM(),pe(),VS(),rt(),WS=class rp{static{this.VARIABLE_LHS="${"}static{this.VARIABLE_REGEXP=/\$\{(.*?)\}/g}constructor(t,s,i,n){this.h=new Map,this.a=t,this.b=s,this.g=i,n&&(this.c=n.then(r=>this.i(r)))}i(t){if(me){const s=Object.create(null);return Object.keys(t).forEach(i=>{s[i.toLowerCase()]=t[i]}),s}return t}resolveWithEnvironment(t,s,i){return this.l({env:this.i(t),userHome:void 0},s?s.uri:void 0,i)}async resolveAsync(t,s){const i={env:await this.c,userHome:await this.g};return this.l(i,t?t.uri:void 0,s)}async j(t,s,i,n){const r=sn(s);me&&r.windows?Object.keys(r.windows).forEach(a=>r[a]=r.windows[a]):Os&&r.osx?Object.keys(r.osx).forEach(a=>r[a]=r.osx[a]):it&&r.linux&&Object.keys(r.linux).forEach(a=>r[a]=r.linux[a]),delete r.windows,delete r.osx,delete r.linux;const o={env:await this.c,userHome:await this.g};return this.l(o,t?t.uri:void 0,r,i,n)}async resolveAnyAsync(t,s,i){return this.j(t,s,i)}async resolveAnyMap(t,s,i){const n=new Map;return{newConfig:await this.j(t,s,i,n),resolvedVariables:n}}resolveWithInteractionReplace(t,s,i,n){throw new Error("resolveWithInteractionReplace not implemented.")}resolveWithInteraction(t,s,i,n){throw new Error("resolveWithInteraction not implemented.")}contributeVariable(t,s){if(this.h.has(t))throw new Error("Variable "+t+" is contributed twice.");this.h.set(t,s)}async l(t,s,i,n,r){if(be(i))return this.m(t,s,i,n,r);if(Array.isArray(i))return Promise.all(i.map(o=>this.l(t,s,o,n,r)));if(ut(i)){const o=Object.create(null),a=await Promise.all(Object.keys(i).map(async c=>[await this.m(t,s,c,n,r),await this.l(t,s,i[c],n,r)]));for(const[c,l]of a)o[c]=l;return o}return i}m(t,s,i,n,r){return pA(i,rp.VARIABLE_REGEXP,async(o,a)=>{if(a.includes(rp.VARIABLE_LHS))return o;let c=await this.o(t,o,a,s,n);return r?.set(a,c),c!==o&&be(c)&&c.match(rp.VARIABLE_REGEXP)&&(c=await this.m(t,s,c,n,r)),c})}n(t){return this.b?this.b.getUriLabel(t,{noPrefix:!0}):t.fsPath}async o(t,s,i,n,r){let o;const a=i.split(":");a.length>1&&(i=a[0],o=a[1]);const c=h=>{const d=this.a.getFilePath();if(d)return Nl(d);throw new rs(h,m(12440,null,s))},l=h=>{const d=c(h);if(this.a.getWorkspaceFolderPathForFile){const p=this.a.getWorkspaceFolderPathForFile();if(p)return Nl(p)}throw new rs(h,m(12441,null,s,ot(d)))},u=h=>{if(o){const d=this.a.getFolderUri(o);if(d)return d;throw new rs(h,m(12442,null,s,o))}if(n)return n;throw this.a.getWorkspaceFolderCount()>1?new rs(h,m(12443,null,s)):new rs(h,m(12444,null,s))};switch(i){case"env":if(o){if(t.env){const h=t.env[me?o.toLowerCase():o];if(be(h))return h}return""}throw new rs(ze.Env,m(12445,null,s));case"config":if(o){const h=this.a.getConfigurationValue(n,o);if(xt(h))throw new rs(ze.Config,m(12446,null,s,o));if(ut(h))throw new rs(ze.Config,m(12447,null,s,o));return h}throw new rs(ze.Config,m(12448,null,s));case"command":return this.p(ze.Command,s,o,r,"command");case"input":return this.p(ze.Input,s,o,r,"input");case"extensionInstallFolder":if(o){const h=await this.a.getExtension(o);if(!h)throw new rs(ze.ExtensionInstallFolder,m(12449,null,s,o));return this.n(h.extensionLocation)}throw new rs(ze.ExtensionInstallFolder,m(12450,null,s));default:switch(i){case"workspaceRoot":case"workspaceFolder":return Nl(this.n(u(ze.WorkspaceFolder)));case"cwd":return n||o?Nl(this.n(u(ze.Cwd))):bi();case"workspaceRootFolderName":case"workspaceFolderBasename":return Nl(ot(this.n(u(ze.WorkspaceFolderBasename))));case"userHome":{if(t.userHome)return t.userHome;throw new rs(ze.UserHome,m(12451,null,s))}case"lineNumber":{const h=this.a.getLineNumber();if(h)return h;throw new rs(ze.LineNumber,m(12452,null,s))}case"selectedText":{const h=this.a.getSelectedText();if(h)return h;throw new rs(ze.SelectedText,m(12453,null,s))}case"file":return c(ze.File);case"fileWorkspaceFolder":return l(ze.FileWorkspaceFolder);case"fileWorkspaceFolderBasename":return ot(l(ze.FileWorkspaceFolderBasename));case"relativeFile":return n||o?Ba(this.n(u(ze.RelativeFile)),c(ze.RelativeFile)):c(ze.RelativeFile);case"relativeFileDirname":{const h=Lt(c(ze.RelativeFileDirname));if(n||o){const d=Ba(this.n(u(ze.RelativeFileDirname)),h);return d.length===0?".":d}return h}case"fileDirname":return Lt(c(ze.FileDirname));case"fileExtname":return wr(c(ze.FileExtname));case"fileBasename":return ot(c(ze.FileBasename));case"fileBasenameNoExtension":{const h=ot(c(ze.FileBasenameNoExtension));return h.slice(0,h.length-wr(h).length)}case"fileDirnameBasename":return ot(Lt(c(ze.FileDirnameBasename)));case"execPath":{const h=this.a.getExecPath();return h||s}case"execInstallFolder":{const h=this.a.getAppRoot();return h||s}case"pathSeparator":case"/":return Yt;default:try{const h=o?`${i}:${o}`:i;return this.p(ze.Unknown,s,h,r,void 0)}catch{return s}}}}p(t,s,i,n,r){if(i&&n){const o=r===void 0?n[i]:n[r+":"+i];if(typeof o=="string")return o;throw new rs(t,m(12454,null,s))}return s}}}});import*as qS from"os";var GS,JS,bM=v({"out-build/vs/server/node/remoteTerminalChannel.js"(){"use strict";ae(),Kt(),H(),he(),Q(),te(),Ch(),Wh(),cM(),n2(),xg(),gM(),vM(),a8(),Me(),_S(),GS=class extends WS{constructor(e,t,s,i,n){super({getFolderUri:r=>{const o=t.filter(a=>a.name===r);if(o&&o.length>0)return o[0].uri},getWorkspaceFolderCount:()=>t.length,getConfigurationValue:(r,o)=>i[`config:${o}`],getExecPath:()=>e.VSCODE_EXEC_PATH,getAppRoot:()=>e.VSCODE_CWD,getFilePath:()=>{if(s)return ti(s.fsPath)},getSelectedText:()=>i.selectedText,getLineNumber:()=>i.lineNumber,getExtension:async r=>{const a=(await n.getInstalled()).find(c=>c.identifier.id===r);return a&&{extensionLocation:a.location}}},void 0,Promise.resolve(qS.homedir()),Promise.resolve(e))}},JS=class extends J{constructor(e,t,s,i,n,r){super(),this.g=e,this.h=t,this.j=s,this.m=i,this.n=n,this.r=r,this.a=0,this.b=new Map,this.c=this.B(new D),this.onExecuteCommand=this.c.event}async call(e,t,s){switch(t){case"$restartPtyHost":return this.j.restartPtyHost.apply(this.j,s);case"$createProcess":{const i=Kc(e.remoteAuthority);return this.s(i,s)}case"$attachToProcess":return this.j.attachToProcess.apply(this.j,s);case"$detachFromProcess":return this.j.detachFromProcess.apply(this.j,s);case"$listProcesses":return this.j.listProcesses.apply(this.j,s);case"$getLatency":return this.j.getLatency.apply(this.j,s);case"$getPerformanceMarks":return this.j.getPerformanceMarks.apply(this.j,s);case"$orphanQuestionReply":return this.j.orphanQuestionReply.apply(this.j,s);case"$acceptPtyHostResolvedVariables":return this.j.acceptPtyHostResolvedVariables.apply(this.j,s);case"$start":return this.j.start.apply(this.j,s);case"$input":return this.j.input.apply(this.j,s);case"$acknowledgeDataEvent":return this.j.acknowledgeDataEvent.apply(this.j,s);case"$shutdown":return this.j.shutdown.apply(this.j,s);case"$resize":return this.j.resize.apply(this.j,s);case"$clearBuffer":return this.j.clearBuffer.apply(this.j,s);case"$getInitialCwd":return this.j.getInitialCwd.apply(this.j,s);case"$getCwd":return this.j.getCwd.apply(this.j,s);case"$processBinary":return this.j.processBinary.apply(this.j,s);case"$sendCommandResult":return this.u(s[0],s[1],s[2]);case"$installAutoReply":return this.j.installAutoReply.apply(this.j,s);case"$uninstallAllAutoReplies":return this.j.uninstallAllAutoReplies.apply(this.j,s);case"$getDefaultSystemShell":return this.w.apply(this,s);case"$getProfiles":return this.y.apply(this,s);case"$getEnvironment":return this.z();case"$getWslPath":return this.C(s[0],s[1]);case"$getTerminalLayoutInfo":return this.j.getTerminalLayoutInfo(s);case"$setTerminalLayoutInfo":return this.j.setTerminalLayoutInfo(s);case"$serializeTerminalState":return this.j.serializeTerminalState.apply(this.j,s);case"$reviveTerminalProcesses":return this.j.reviveTerminalProcesses.apply(this.j,s);case"$getRevivedPtyNewId":return this.j.getRevivedPtyNewId.apply(this.j,s);case"$setUnicodeVersion":return this.j.setUnicodeVersion.apply(this.j,s);case"$reduceConnectionGraceTime":return this.D();case"$updateIcon":return this.j.updateIcon.apply(this.j,s);case"$updateTitle":return this.j.updateTitle.apply(this.j,s);case"$updateProperty":return this.j.updateProperty.apply(this.j,s);case"$refreshProperty":return this.j.refreshProperty.apply(this.j,s);case"$requestDetachInstance":return this.j.requestDetachInstance(s[0],s[1]);case"$acceptDetachedInstance":return this.j.acceptDetachInstanceReply(s[0],s[1]);case"$freePortKillProcess":return this.j.freePortKillProcess.apply(this.j,s);case"$acceptDetachInstanceReply":return this.j.acceptDetachInstanceReply.apply(this.j,s)}throw new Error(`IPC Command ${t} not found`)}listen(e,t,s){switch(t){case"$onPtyHostExitEvent":return this.j.onPtyHostExit||z.None;case"$onPtyHostStartEvent":return this.j.onPtyHostStart||z.None;case"$onPtyHostUnresponsiveEvent":return this.j.onPtyHostUnresponsive||z.None;case"$onPtyHostResponsiveEvent":return this.j.onPtyHostResponsive||z.None;case"$onPtyHostRequestResolveVariablesEvent":return this.j.onPtyHostRequestResolveVariables||z.None;case"$onProcessDataEvent":return this.j.onProcessData;case"$onProcessReadyEvent":return this.j.onProcessReady;case"$onProcessExitEvent":return this.j.onProcessExit;case"$onProcessReplayEvent":return this.j.onProcessReplay;case"$onProcessOrphanQuestion":return this.j.onProcessOrphanQuestion;case"$onExecuteCommand":return this.onExecuteCommand;case"$onDidRequestDetach":return this.j.onDidRequestDetach||z.None;case"$onDidChangeProperty":return this.j.onDidChangeProperty}throw new Error(`IPC Command ${t} not found`)}async s(e,t){const s={name:t.shellLaunchConfig.name,executable:t.shellLaunchConfig.executable,args:t.shellLaunchConfig.args,cwd:typeof t.shellLaunchConfig.cwd=="string"||typeof t.shellLaunchConfig.cwd>"u"?t.shellLaunchConfig.cwd:E.revive(e.transformIncoming(t.shellLaunchConfig.cwd)),env:t.shellLaunchConfig.env,useShellEnvironment:t.shellLaunchConfig.useShellEnvironment,reconnectionProperties:t.shellLaunchConfig.reconnectionProperties,type:t.shellLaunchConfig.type,isFeatureTerminal:t.shellLaunchConfig.isFeatureTerminal},i=await o8(t.resolverEnv,!!t.shellLaunchConfig.useShellEnvironment,ks,this.g,this.h,this.r);this.h.trace("baseEnv",i);const n=k=>({uri:E.revive(e.transformIncoming(k.uri)),name:k.name,index:k.index,toResource:()=>{throw new Error("Not implemented")}}),r=t.workspaceFolders.map(n),o=t.activeWorkspaceFolder?n(t.activeWorkspaceFolder):void 0,a=t.activeFileResource?E.revive(e.transformIncoming(t.activeFileResource)):void 0,c=new GS(i,r,a,t.resolvedVariables,this.n),l=pM(o,process.env,c),u=await dM(s,qS.homedir(),l,o?.uri,t.configuration["terminal.integrated.cwd"],this.h);s.cwd=u;const h=me?"terminal.integrated.env.windows":Os?"terminal.integrated.env.osx":"terminal.integrated.env.linux",d=t.configuration[h],p=await mM(s,d,l,this.m.version,t.configuration["terminal.integrated.detectLocale"],i);if(lM(s)){const k=[];for(const[q,ee,V]of t.envVariableCollections)k.push([q,{map:FC(ee),descriptionMap:BC(V)}]);const A=new Map(k),I=new i2(A),R=o?o??void 0:void 0;await I.applyToProcessEnvironment(p,{workspaceFolder:R},l)}this.h.debug("Terminal process launching on remote agent",{shellLaunchConfig:s,initialCwd:u,cols:t.cols,rows:t.rows,env:p});const g=rg();p.VSCODE_IPC_HOOK_CLI=g;const w=await this.j.createProcess(s,u,t.cols,t.rows,t.unicodeVersion,p,i,t.options,t.shouldPersistTerminal,t.workspaceId,t.workspaceName),y={executeCommand:(k,...A)=>this.t(w,k,A,e)},x=new Yw(y,this.h,g);return this.j.onProcessExit(k=>k.id===w&&x.dispose()),{persistentTerminalId:w,resolvedShellLaunchConfig:s}}t(e,t,s,i){const{resolve:n,reject:r,promise:o}=gD(),a=++this.a;this.b.set(a,{resolve:n,reject:r,uriTransformer:i});const c=nn(s,l=>{if(l&&l.$mid===1)return i.transformOutgoing(l);if(l&&l instanceof E)return i.transformOutgoingURI(l)});return this.c.fire({reqId:a,persistentProcessId:e,commandId:t,commandArgs:c}),o}u(e,t,s){const i=this.b.get(e);if(!i)return;this.b.delete(e);const n=nn(s,r=>{if(r&&r.$mid===1)return i.uriTransformer.transformIncoming(r)});t?i.reject(n):i.resolve(n)}w(e){return this.j.getDefaultSystemShell(e)}async y(e,t,s,i){return this.j.getProfiles(e,t,s,i)||[]}z(){return{...process.env}}C(e,t){return this.j.getWslPath(e,t)}D(){return this.j.reduceConnectionGraceTime()}}}}),Md,XS,yM,YS,EM,Rl,Zw,Kw,QS,ZS,xM=v({"out-build/vs/workbench/services/configuration/common/configuration.js"(){"use strict";$s(),re(),Md=".vscode",XS="settings",yM=`${Md}/${XS}.json`,YS=[3,4,5],EM=[1,...YS],Rl="tasks",Zw="launch",Kw=Object.create(null),Kw[Rl]=`${Md}/${Rl}.json`,Kw[Zw]=`${Md}/${Zw}.json`,QS=Object.create(null),QS[Rl]=`${Rl}.json`,ZS=hs}}),KS,eP,kM=v({"out-build/vs/platform/label/common/label.js"(){"use strict";re(),KS=ie("labelService"),function(e){e[e.SHORT=0]="SHORT",e[e.MEDIUM=1]="MEDIUM",e[e.LONG=2]="LONG"}(eP||(eP={}))}}),tP,$M=v({"out-build/vs/workbench/contrib/terminal/common/environmentVariable.js"(){"use strict";re(),tP=ie("environmentVariableService")}}),sP,ev,SM=v({"out-build/vs/workbench/contrib/terminal/common/remote/remoteTerminalChannel.js"(){"use strict";xM(),H2(),am(),xg(),VS(),sw(),Qk(),Ie(),kM(),$M(),wg(),sP="remoteterminal",ev=class{get onPtyHostExit(){return this.b.listen("$onPtyHostExitEvent")}get onPtyHostStart(){return this.b.listen("$onPtyHostStartEvent")}get onPtyHostUnresponsive(){return this.b.listen("$onPtyHostUnresponsiveEvent")}get onPtyHostResponsive(){return this.b.listen("$onPtyHostResponsiveEvent")}get onPtyHostRequestResolveVariables(){return this.b.listen("$onPtyHostRequestResolveVariablesEvent")}get onProcessData(){return this.b.listen("$onProcessDataEvent")}get onProcessExit(){return this.b.listen("$onProcessExitEvent")}get onProcessReady(){return this.b.listen("$onProcessReadyEvent")}get onProcessReplay(){return this.b.listen("$onProcessReplayEvent")}get onProcessOrphanQuestion(){return this.b.listen("$onProcessOrphanQuestion")}get onExecuteCommand(){return this.b.listen("$onExecuteCommand")}get onDidRequestDetach(){return this.b.listen("$onDidRequestDetach")}get onDidChangeProperty(){return this.b.listen("$onDidChangeProperty")}constructor(t,s,i,n,r,o,a,c,l,u){this.a=t,this.b=s,this.c=i,this.d=n,this.e=r,this.f=o,this.g=a,this.h=c,this.i=l,this.j=u}restartPtyHost(){return this.b.call("$restartPtyHost",[])}async createProcess(t,s,i,n,r,o,a,c){await this.c.whenRemoteConfigurationLoaded();const l=Object.create(null),u=i?this.d.getWorkspaceFolder(i)??void 0:void 0;let h;try{h=(await this.e.resolveAnyMap(u,{shellLaunchConfig:t,configuration:s})).resolvedVariables}catch(I){this.h.error(I)}if(h)for(const[I,R]of h.entries())(/^config:/.test(I)||I==="selectedText"||I==="lineNumber")&&(l[I]=R);const d=[];for(const[I,R]of this.f.collections.entries())d.push([I,MC(R.map),UC(R.descriptionMap)]);const p=await this.g.resolveAuthority(this.a),g=p.options&&p.options.extensionHostEnv,w=this.d.getWorkspace(),y=w.folders,x=i?this.d.getWorkspaceFolder(i):null,k=Zf.getOriginalUri(this.i.activeEditor,{supportSideBySide:wn.PRIMARY,filterByScheme:[Z.file,Z.vscodeUserData,Z.vscodeRemote]}),A={configuration:s,resolvedVariables:l,envVariableCollections:d,shellLaunchConfig:t,workspaceId:w.id,workspaceName:this.j.getWorkspaceLabel(w),workspaceFolders:y,activeWorkspaceFolder:x,activeFileResource:k,shouldPersistTerminal:r,options:n,cols:o,rows:a,unicodeVersion:c,resolverEnv:g};return await this.b.call("$createProcess",A)}requestDetachInstance(t,s){return this.b.call("$requestDetachInstance",[t,s])}acceptDetachInstanceReply(t,s){return this.b.call("$acceptDetachInstanceReply",[t,s])}attachToProcess(t){return this.b.call("$attachToProcess",[t])}detachFromProcess(t,s){return this.b.call("$detachFromProcess",[t,s])}listProcesses(){return this.b.call("$listProcesses")}getLatency(){return this.b.call("$getLatency")}getPerformanceMarks(){return this.b.call("$getPerformanceMarks")}reduceConnectionGraceTime(){return this.b.call("$reduceConnectionGraceTime")}processBinary(t,s){return this.b.call("$processBinary",[t,s])}start(t){return this.b.call("$start",[t])}input(t,s){return this.b.call("$input",[t,s])}acknowledgeDataEvent(t,s){return this.b.call("$acknowledgeDataEvent",[t,s])}setUnicodeVersion(t,s){return this.b.call("$setUnicodeVersion",[t,s])}shutdown(t,s){return this.b.call("$shutdown",[t,s])}resize(t,s,i){return this.b.call("$resize",[t,s,i])}clearBuffer(t){return this.b.call("$clearBuffer",[t])}getInitialCwd(t){return this.b.call("$getInitialCwd",[t])}getCwd(t){return this.b.call("$getCwd",[t])}orphanQuestionReply(t){return this.b.call("$orphanQuestionReply",[t])}sendCommandResult(t,s,i){return this.b.call("$sendCommandResult",[t,s,i])}freePortKillProcess(t){return this.b.call("$freePortKillProcess",[t])}getDefaultSystemShell(t){return this.b.call("$getDefaultSystemShell",[t])}getProfiles(t,s,i){return this.b.call("$getProfiles",[this.d.getWorkspace().id,t,s,i])}acceptPtyHostResolvedVariables(t,s){return this.b.call("$acceptPtyHostResolvedVariables",[t,s])}getEnvironment(){return this.b.call("$getEnvironment")}getWslPath(t,s){return this.b.call("$getWslPath",[t,s])}setTerminalLayoutInfo(t){const i={workspaceId:this.d.getWorkspace().id,tabs:t?t.tabs:[]};return this.b.call("$setTerminalLayoutInfo",i)}updateTitle(t,s,i){return this.b.call("$updateTitle",[t,s,i])}updateIcon(t,s,i,n){return this.b.call("$updateIcon",[t,s,i,n])}refreshProperty(t,s){return this.b.call("$refreshProperty",[t,s])}updateProperty(t,s,i){return this.b.call("$updateProperty",[t,s,i])}getTerminalLayoutInfo(){const s={workspaceId:this.d.getWorkspace().id};return this.b.call("$getTerminalLayoutInfo",s)}reviveTerminalProcesses(t,s,i){return this.b.call("$reviveTerminalProcesses",[t,s,i])}getRevivedPtyNewId(t){return this.b.call("$getRevivedPtyNewId",[t])}serializeTerminalState(t){return this.b.call("$serializeTerminalState",[t])}installAutoReply(t,s){return this.b.call("$installAutoReply",[t,s])}uninstallAllAutoReplies(){return this.b.call("$uninstallAllAutoReplies",[])}},ev=__decorate([__param(2,ZS),__param(3,O6),__param(4,HS),__param(5,tP),__param(6,F2),__param(7,z8),__param(8,Jk),__param(9,KS)],ev)}}),PM=v({"out-build/vs/platform/files/common/diskFileSystemProviderClient.js"(){"use strict";Ue(),br(),de(),ae(),H(),za(),Wt(),et(),Mo()}}),iP,IM=v({"out-build/vs/workbench/services/remote/common/remoteFileSystemProviderClient.js"(){"use strict";de(),H(),Ie(),PM(),iP="remoteFilesystem"}});async function nP(e,t,s){s===void 0&&(s=!!(globalThis._VSCODE_PRODUCT_JSON??globalThis.vscode?.context?.configuration()?.product)?.commit);const i=t?`${e}/${t}`:e;if(Ud.has(i))return Ud.get(i);let n;if(/^\w[\w\d+.-]*:\/\//.test(i))n=i;else{const c=`${rP&&s&&!Bs?cy:ay}/${i}`;n=Ot.asBrowserUri(c).toString(!0)}const r=aP.INSTANCE.load(n);return Ud.set(i,r),r}var rP,oP,qr,aP,Ud,AM=v({"out-build/vs/amdX.js"(){"use strict";Ie(),Q(),te(),Wt(),rP=!1,oP=class{constructor(e,t,s){this.id=e,this.dependencies=t,this.callback=s}},function(e){e[e.Uninitialized=1]="Uninitialized",e[e.InitializedInternal=2]="InitializedInternal",e[e.InitializedExternal=3]="InitializedExternal"}(qr||(qr={})),aP=class PI{static{this.INSTANCE=new PI}constructor(){this.a=typeof self=="object"&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope",this.b=typeof document=="object",this.c=[],this.d=qr.Uninitialized}g(){if(this.d===qr.Uninitialized){if(globalThis.define){this.d=qr.InitializedExternal;return}}else return;this.d=qr.InitializedInternal,globalThis.define=(t,s,i)=>{typeof t!="string"&&(i=s,s=t,t=null),(typeof s!="object"||!Array.isArray(s))&&(i=s,s=null),this.c.push(new oP(t,s,i))},globalThis.define.amd=!0,this.b?this.f=globalThis._VSCODE_WEB_PACKAGE_TTP??window.trustedTypes?.createPolicy("amdLoader",{createScriptURL(t){if(t.startsWith(window.location.origin)||t.startsWith(`${Z.vscodeFileResource}://${Bp}`))return t;throw new Error(`[trusted_script_src] Invalid script url: ${t}`)}}):this.a&&(this.f=globalThis._VSCODE_WEB_PACKAGE_TTP??globalThis.trustedTypes?.createPolicy("amdLoader",{createScriptURL(t){return t}}))}async load(t){if(this.g(),this.d===qr.InitializedExternal)return new Promise(o=>{const a=He();globalThis.define(a,[t],function(c){o(c)})});const s=await(this.a?this.i(t):this.b?this.h(t):this.j(t));if(!s){console.warn(`Did not receive a define call from script ${t}`);return}const i={},n=[],r=[];if(Array.isArray(s.dependencies))for(const o of s.dependencies)o==="exports"?n.push(i):r.push(o);if(r.length>0)throw new Error(`Cannot resolve dependencies for script ${t}. The dependencies are: ${r.join(", ")}`);return typeof s.callback=="function"?s.callback(...n)??i:s.callback}h(t){return new Promise((s,i)=>{const n=document.createElement("script");n.setAttribute("async","async"),n.setAttribute("type","text/javascript");const r=()=>{n.removeEventListener("load",o),n.removeEventListener("error",a)},o=c=>{r(),s(this.c.pop())},a=c=>{r(),i(c)};n.addEventListener("load",o),n.addEventListener("error",a),this.f&&(t=this.f.createScriptURL(t)),n.setAttribute("src",t),window.document.getElementsByTagName("head")[0].appendChild(n)})}async i(t){return this.f&&(t=this.f.createScriptURL(t)),await import(t),this.c.pop()}async j(t){try{const s=(await import("fs")).default,i=(await import("vm")).default,n=(await import("module")).default,r=E.parse(t).fsPath,o=s.readFileSync(r).toString(),a=n.wrap(o.replace(/^#!.*/,""));return new i.Script(a).runInThisContext().apply(),this.c.pop()}catch(s){throw s}}},Ud=new Map}});async function DM(e,t,s){const i=Bs?await nP("@microsoft/1ds-core-js","bundle/ms.core.min.js"):await import("@microsoft/1ds-core-js"),n=Bs?await nP("@microsoft/1ds-post-js","bundle/ms.post.min.js"):await import("@microsoft/1ds-post-js"),r=new i.AppInsightsCore,o=new n.PostChannel,a={instrumentationKey:e,endpointUrl:tv,loggingLevelTelemetry:0,loggingLevelConsole:0,disableCookiesUsage:!0,disableDbgExt:!0,disableInstrumentationKeyValidation:!0,channels:[[o]]};if(s){a.extensionConfig={};const c={alwaysUseXhrOverride:!0,ignoreMc1Ms0CookieProcessing:!0,httpXHROverride:s};a.extensionConfig[o.identifier]=c}return r.initialize(a,[]),r.addTelemetryInitializer(c=>{c.ext=c.ext??{},c.ext.web=c.ext.web??{},c.ext.web.consentDetails='{"GPC_DataSharingOptIn":false}',t&&(c.ext.utc=c.ext.utc??{},c.ext.utc.flags=8462029)}),r}var tv,cP,lP,NM=v({"out-build/vs/platform/telemetry/common/1dsAppender.js"(){"use strict";AM(),de(),Kt(),Q(),on(),tv="https://mobile.events.data.microsoft.com/OneCollector/1.0",cP="https://mobile.events.data.microsoft.com/ping",lP=class{constructor(e,t,s,i,n){this.e=e,this.f=t,this.g=s,this.h=n,this.c=tv,this.d=cP,this.g||(this.g={}),typeof i=="function"?this.a=i():this.a=i,this.b=null}i(e){if(this.a){if(typeof this.a!="string"){e(this.a);return}this.b||(this.b=DM(this.a,this.e,this.h)),this.b.then(t=>{e(t)},t=>{Vt(t),console.error(t)})}}log(e,t){if(!this.a)return;t=xo(t,this.g),t=TN(t);const s=this.f+"/"+e;try{this.i(i=>{i.pluginVersionString=t?.properties.version??"Unknown",i.track({name:s,baseData:{name:s,properties:t?.properties,measurements:t?.measurements}})})}catch{}}flush(){return this.a?new Promise(e=>{this.i(t=>{t.unload(!0,()=>{this.a=void 0,e(void 0)})})}):Promise.resolve(void 0)}}}});import*as RM from"https";async function LM(e,t){const s=await t.request(e,Re.None),i=(await Zi(s.stream)).toString(),n=s.res.statusCode??200;return{headers:s.res.headers,statusCode:n,responseData:i}}async function OM(e){const t={method:e.type,headers:e.headers};return new Promise((i,n)=>{const r=RM.request(e.url??"",t,o=>{o.on("data",function(a){i({headers:o.headers,statusCode:o.statusCode??200,responseData:a.toString()})}),o.on("error",function(a){n(a)})});r.write(e.data,o=>{o&&n(o)}),r.end()})}async function CM(e,t,s){const i=typeof t.data=="string"?t.data:new TextDecoder().decode(t.data),n={type:"POST",headers:{...t.headers,"Content-Type":"application/json","Content-Length":Buffer.byteLength(t.data).toString()},url:t.urlString,data:i};try{const r=e?await LM(n,e):await OM(n);s(r.statusCode,r.headers,r.responseData)}catch{s(0,{})}}var uP,jM=v({"out-build/vs/platform/telemetry/node/1dsAppender.js"(){"use strict";Ue(),Dt(),NM(),uP=class extends lP{constructor(e,t,s,i,n){const r={sendPOST:(o,a)=>{CM(e,o,a)}};super(t,s,i,n,r)}}}});function _M(e,t,s,i,n){const r=new J1;return e.forEach(o=>{const a=r.get(o.identifier);a&&n.warn(m(12692,null,a.extensionLocation.fsPath,o.extensionLocation.fsPath)),r.set(o.identifier,o)}),t.forEach(o=>{const a=r.get(o.identifier);if(a)if(a.isBuiltin){if(l6(a.version,o.version)){n.warn(`Skipping extension ${o.extensionLocation.path} in favour of the builtin extension ${a.extensionLocation.path}.`);return}o.isBuiltin=!0}else n.warn(m(12693,null,a.extensionLocation.fsPath,o.extensionLocation.fsPath));else if(o.isBuiltin){n.warn(`Skipping obsolete builtin extension ${o.extensionLocation.path}`);return}r.set(o.identifier,o)}),s.forEach(o=>{const a=r.get(o.identifier);a&&n.warn(m(12694,null,a.extensionLocation.fsPath,o.extensionLocation.fsPath)),r.set(o.identifier,o)}),i.forEach(o=>{n.info(m(12695,null,o.extensionLocation.fsPath));const a=r.get(o.identifier);a&&a.isBuiltin&&(o.isBuiltin=!0),r.set(o.identifier,o)}),Array.from(r.values())}var TM=v({"out-build/vs/workbench/services/extensions/common/extensionsUtil.js"(){"use strict";$i(),pe(),Ao()}}),hP,fP,MM=v({"out-build/vs/server/node/remoteExtensionsScanner.js"(){"use strict";he(),Q(),ei(),te(),Hi(),Gc(),po(),Rc(),TM(),Ie(),hP=class{constructor(e,t,s,i,n,r,o){this.c=e,this.d=s,this.f=i,this.g=n,this.h=r,this.i=o,this.a=Promise.resolve(),this.b=Promise.resolve();const a=t.args["install-builtin-extension"];if(a){n.trace("Installing builtin extensions passed via args...");const l={isMachineScoped:!!t.args["do-not-sync"],installPreReleaseVersion:!!t.args["pre-release"]};Pt("code/server/willInstallBuiltinExtensions"),this.b=this.a=e.installExtensions([],this.j(a),l,!!t.args.force).then(()=>{Pt("code/server/didInstallBuiltinExtensions"),n.trace("Finished installing builtin extensions")},u=>{n.error(u)})}const c=t.args["install-extension"];c&&(n.trace("Installing extensions passed via args..."),this.b=this.a.then(()=>e.installExtensions(this.j(c),[],{isMachineScoped:!!t.args["do-not-sync"],installPreReleaseVersion:!!t.args["pre-release"],isApplicationScoped:!0},!!t.args.force)).then(()=>{n.trace("Finished installing extensions")},l=>{n.error(l)}))}j(e){return e.map(t=>/\.vsix$/i.test(t)?E.file(Xi(t)?t:j(bi(),t)):t)}whenExtensionsReady(){return this.b}async scanExtensions(e,t,s,i,n){Pt("code/server/willScanExtensions"),this.g.trace(`Scanning extensions using UI language: ${e}`),await this.a;const r=i?i.filter(a=>a.scheme===Z.file).map(a=>a.fsPath):void 0;t=t??this.d.defaultProfile.extensionsResource;const o=await this.k(t,e??ks,s,r,n);return this.g.trace("Scanned Extensions",o),this.r(o),Pt("code/server/didScanExtensions"),o}async k(e,t,s,i,n){await this.q(t,n);const[r,o,a,c]=await Promise.all([this.n(t),this.o(e,t),this.m(t,s),this.l(t,i)]);return _M(r,o,a,c,this.g)}async l(e,t){return t?(await Promise.all(t.map(s=>this.f.scanOneOrMultipleExtensions(E.file(Yi(s)),1,{language:e})))).flat().map(s=>ch(s,!0)):[]}async m(e,t){const s=[];if(t?.length){const i=await Promise.all(t.map(n=>this.f.scanExistingExtension(n,1,{language:e})));for(const n of i)n&&s.push(ch(n,!1))}return s}async n(e){return(await this.f.scanSystemExtensions({language:e,useCache:!0})).map(s=>ch(s,!1))}async o(e,t){return(await this.f.scanUserExtensions({profileLocation:e,language:t,useCache:!0})).map(i=>ch(i,!1))}async q(e,t){if(!(e===xn||!this.h.isEnabled())){try{if((await this.i.getInstalledLanguages()).find(i=>i.id===e)){this.g.trace(`Language Pack ${e} is already installed. Skipping language pack installation.`);return}}catch(s){this.g.error(s)}if(!t){this.g.trace(`No language pack id provided for language ${e}. Skipping language pack installation.`);return}this.g.trace(`Language Pack ${t} for language ${e} is not installed. It will be installed now.`);try{await this.c.installExtensions([t],[],{isMachineScoped:!0},!0)}catch(s){this.g.error(s)}}}r(e){const t=(a,c)=>a.replace(/file/g,"vscode-remote"),s=a=>{let c="";return c+=a.global?"g":"",c+=a.ignoreCase?"i":"",c+=a.multiline?"m":"",new RegExp(t(a.source,!0),c)},i=new class{mapDefined(a){return xr.create(a)}mapNot(a){return kr.create(a)}mapEquals(a,c){return a==="resourceScheme"&&typeof c=="string"?uo.create(a,t(c,!1)):uo.create(a,c)}mapNotEquals(a,c){return a==="resourceScheme"&&typeof c=="string"?ho.create(a,t(c,!1)):ho.create(a,c)}mapGreater(a,c){return Ja.create(a,c)}mapGreaterEquals(a,c){return Xa.create(a,c)}mapSmaller(a,c){return Ya.create(a,c)}mapSmallerEquals(a,c){return Qa.create(a,c)}mapRegex(a,c){return a==="resourceScheme"&&c?fo.create(a,s(c)):fo.create(a,c)}mapIn(a,c){return bu.create(a,c)}mapNotIn(a,c){return yu.create(a,c)}},n=a=>{if(!a||!a.when||!/resourceScheme/.test(a.when))return;const c=$t.deserialize(a.when);if(!c)return;const l=c.map(i);a.when=l.serialize()},r=a=>{if(Array.isArray(a))for(const c of a)n(c);else n(a)},o=a=>{for(const c in a)r(a[c])};e.forEach(a=>{a.contributes&&(a.contributes.menus&&o(a.contributes.menus),a.contributes.keybindings&&r(a.contributes.keybindings),a.contributes.views&&o(a.contributes.views))})}},fP=class{constructor(e,t){this.a=e,this.b=t}listen(e,t){throw new Error("Invalid listen")}async call(e,t,s){const i=this.b(e);switch(t){case"whenExtensionsReady":return this.a.whenExtensionsReady();case"scanExtensions":{const n=s[0],r=s[1]?E.revive(i.transformIncoming(s[1])):void 0,o=Array.isArray(s[2])?s[2].map(u=>E.revive(i.transformIncoming(u))):void 0,a=Array.isArray(s[3])?s[3].map(u=>E.revive(i.transformIncoming(u))):void 0,c=s[4];return(await this.a.scanExtensions(n,r,o,a,c)).map(u=>Vn(u,i))}}throw new Error("Invalid call")}}}}),UM,dP,FM=v({"out-build/vs/platform/remote/common/remoteExtensionsScanner.js"(){"use strict";re(),UM=ie("IRemoteExtensionsScannerService"),dP="remoteExtensionsScanner"}}),pP,BM=v({"out-build/vs/platform/userDataProfile/common/userDataProfileIpc.js"(){"use strict";ae(),H(),Gs(),Gc(),pP=class{constructor(e,t){this.a=e,this.b=t}listen(e,t){const s=this.b(e);switch(t){case"onDidChangeProfiles":return z.map(this.a.onDidChangeProfiles,i=>({all:i.all.map(n=>Vn({...n},s)),added:i.added.map(n=>Vn({...n},s)),removed:i.removed.map(n=>Vn({...n},s)),updated:i.updated.map(n=>Vn({...n},s))}))}throw new Error(`Invalid listen ${t}`)}async call(e,t,s){const i=this.b(e);switch(t){case"createProfile":{const n=await this.a.createProfile(s[0],s[1],s[2]);return Vn({...n},i)}case"updateProfile":{let n=_6(v8(s[0],i),this.a.profilesHome.scheme);return n=await this.a.updateProfile(n,s[1]),Vn({...n},i)}case"removeProfile":{const n=_6(v8(s[0],i),this.a.profilesHome.scheme);return this.a.removeProfile(n)}}throw new Error(`Invalid call ${t}`)}}}}),Fd,zM=v({"out-build/vs/platform/terminal/node/nodePtyHostStarter.js"(){"use strict";H(),Ie(),J9(),fs(),o7(),Fd=class extends J{constructor(t,s){super(),this.a=t,this.b=s}start(){const t={serverName:"Pty Host",args:["--type=ptyHost","--logsPath",this.b.logsHome.with({scheme:Z.file}).fsPath],env:{VSCODE_ESM_ENTRYPOINT:"vs/platform/terminal/node/ptyHostMain",VSCODE_PIPE_LOGGING:"true",VSCODE_VERBOSE_LOGGING:"true",VSCODE_RECONNECT_GRACE_TIME:this.a.graceTime,VSCODE_RECONNECT_SHORT_GRACE_TIME:this.a.shortGraceTime,VSCODE_RECONNECT_SCROLLBACK:this.a.scrollback}},s=SO(this.b.args,this.b.isBuilt);s&&(s.break&&s.port?t.debugBrk=s.port:!s.break&&s.port&&(t.debug=s.port));const i=new Bm(Ot.asFileUri("bootstrap-fork").fsPath,t),n=new lt;return n.add(i),{client:i,store:n,onDidProcessExit:i.onDidProcessExit}}},Fd=__decorate([__param(1,Ps)],Fd)}});import{spawn as HM}from"child_process";import{relative as VM}from"path";var sv,Bd,mP=v({"out-build/vs/platform/cssDev/node/cssDevService.js"(){"use strict";Ie(),ro(),fs(),re(),De(),sv=ie("ICSSDevelopmentService"),Bd=class{constructor(t,s){this.b=t,this.c=s}get isEnabled(){return!this.b.isBuilt}getCssModules(){return this.a??=this.d(),this.a}async d(){if(!this.isEnabled)return[];const t=await import("@vscode/ripgrep");return await new Promise(s=>{const i=$n.create(),n=[],r=new TextDecoder,o=Ot.asFileUri("").fsPath,a=HM(t.rgPath,["-g","**/*.css","--files","--no-ignore",o],{});a.stdout.on("data",c=>{const l=r.decode(c,{stream:!0});n.push(l.split(` `).filter(Boolean))}),a.on("error",c=>{this.c.error("[CSS_DEV] FAILED to compute CSS data",c),s([])}),a.on("close",()=>{const c=n.flat().map(l=>VM(o,l).replace(/\\/g,"/")).filter(Boolean).sort();s(c),this.c.info(`[CSS_DEV] DONE, ${c.length} css modules (${Math.round(i.elapsed())}ms)`)})})}},Bd=__decorate([__param(0,Ps),__param(1,fe)],Bd)}});import{hostname as WM,release as qM}from"os";async function GM(e,t,s,i){const n=new fu,r=new wP,o={_serviceBrand:void 0,...Bt};n.set(Tt,o);const a=new kh(t,o);n.set(Ps,a),n.set(Hs,a);const c=new Zm(a1(a),a.logsHome);n.set(Za,c),r.registerChannel("logger",new H8(c,ue=>Ll(ue.remoteAuthority)));const l=c.createLogger("remoteagent",{name:m(2530,null)}),u=new Qm(l,[new vP(a1(a))]);n.set(fe,u),setTimeout(()=>JM(a.logsHome.with({scheme:Z.file}).fsPath).then(null,ue=>u.error(ue)),1e4),u.onDidChangeLogLevel(ue=>fD(u,ue,`Log level changed to ${e4(u.getLevel())}`)),u.trace(`Remote configuration data at ${s}`),u.trace("process arguments:",a.args),Array.isArray(o.serverGreeting)&&u.info(` ${o.serverGreeting.join(` `)} `),r.registerChannel(dg.ChannelName,new dg);const h=new G9(ue=>ue.clientId==="renderer"),d=i.add(new jc(u));n.set(gt,d),d.registerProvider(Z.file,i.add(new Fc(u)));const p=new Go(d);n.set(Mt,p);const g=new D1(a.machineSettingsResource,d,new Du,u);n.set(hs,g);const w=new Wc(p,a,d,u);n.set(qs,w),r.registerChannel("userDataProfiles",new pP(w,ue=>Ll(ue.remoteAuthority))),n.set(sv,new at(Bd,void 0,!0));const[,,y,x,k]=await Promise.all([g.initialize(),w.init(),wC(u.error.bind(u)),bC(u.error.bind(u)),yC(u.error.bind(u))]),A=new t8;n.set(ag,A);const I=new pc(g,a,u);n.set(ki,I);let R=T5;const q=UN(o,g);if(L5(o,a)){!_N(o,a)&&o.aiConfig?.ariaKey&&(R=new uP(I,q,gP,null,o.aiConfig.ariaKey),i.add(ve(()=>R?.flush())));const ue={appenders:[R],commonProperties:ON(qM(),WM(),process.arch,o.commit,o.version+"-remote",y,x,k,q,"remoteAgent"),piiPaths:FN(a)},K=a.args["telemetry-level"];let ht=3;K==="all"?ht=3:K==="error"?ht=2:K==="crash"?ht=1:K!==void 0&&(ht=0),n.set(Yh,new at(Xh,[ue,ht]))}else n.set(Yh,E2);n.set(ii,new at(Pc));const ee=r.getChannel("download",h);n.set(rh,new m8(ee,()=>Ll("renderer"))),n.set(Pi,new at(qc)),n.set(Rr,new at(Vc)),n.set(uh,new at(Lc)),n.set(dh,new at(Oc));const V=new Dm(n);n.set($h,V.createInstance(Hc));const L=V.createInstance(Fd,{graceTime:108e5,shortGraceTime:3e5,scrollback:g.getValue("terminal.integrated.persistentSessionScrollback")??100}),le=V.createInstance(Vh,L);return n.set(L8,le),V.invokeFunction(ue=>{const K=ue.get(dh),ht=ue.get(Rr),C=ue.get(ii),N=ue.get($h),U=new m2(e,a,w,A);r.registerChannel("remoteextensionsenvironment",U);const _=new y2(ue.get(Yh),R);r.registerChannel("telemetry",_),r.registerChannel(sP,new JS(a,u,le,o,K,g));const G=new hP(V.createInstance(zc,u),a,w,ht,u,C,N);r.registerChannel(dP,new fP(G,Je=>Ll(Je.remoteAuthority)));const ce=i.add(new v2(u,a,g));r.registerChannel(iP,ce),r.registerChannel("request",new x8(ue.get(ki)));const $e=new E8(K,Je=>Ll(Je.remoteAuthority));return r.registerChannel("extensions",$e),G.whenExtensionsReady().then(()=>K.cleanUp()),i.add(new $8(ue.get(qt))),{telemetryService:ue.get(qt)}}),{socketServer:r,instantiationService:V}}function Ll(e){return zd[e]||(zd[e]=Kc(e)),zd[e]}function _i(){const e=new Date;return`${iv(e.getHours())}:${iv(e.getMinutes())}:${iv(e.getSeconds())}`}function iv(e){return e<10?`0${e}`:String(e)}async function JM(e){const t=ot(e),s=Lt(e),r=(await Le.readdir(s)).filter(a=>/^\d{8}T\d{6}$/.test(a)).sort().filter(a=>a!==t),o=r.slice(0,Math.max(0,r.length-9));await Promise.all(o.map(a=>Le.rm(j(s,a))))}var gP,zd,wP,vP,XM=v({"out-build/vs/server/node/serverServices.js"(){"use strict";ae(),H(),Ie(),he(),p8(),es(),Ho(),$s(),V4(),EC(),gm(),xC(),fs(),Y6(),As(),$m(),c7(),kC(),u9(),et(),w9(),Eh(),xu(),p9(),zp(),qm(),l7(),De(),Cc(),js(),Ir(),$C(),I5(),D5(),Is(),on(),PC(),wg(),oj(),ri(),g7(),dj(),mj(),gj(),bj(),bM(),Wh(),Wo(),SM(),IM(),s8(),Rc(),b7(),jo(),Gs(),Nu(),jM(),R7(),S7(),P7(),I7(),W8(),pe(),MM(),FM(),BM(),zM(),mP(),gP="monacoworkbench",zd=Object.create(null),wP=class extends q9{constructor(){const e=new D;super(e.event),this.b=e}acceptConnection(e,t){this.b.fire({protocol:e,onDidClientDisconnect:t})}},vP=class extends ec{constructor(e=Ka){super(),this.setLevel(e),this.g=!!process.stdout.isTTY}trace(e,...t){this.f(F.Trace)&&(this.g?console.log(`\x1B[90m[${_i()}]\x1B[0m`,e,...t):console.log(`[${_i()}]`,e,...t))}debug(e,...t){this.f(F.Debug)&&(this.g?console.log(`\x1B[90m[${_i()}]\x1B[0m`,e,...t):console.log(`[${_i()}]`,e,...t))}info(e,...t){this.f(F.Info)&&(this.g?console.log(`\x1B[90m[${_i()}]\x1B[0m`,e,...t):console.log(`[${_i()}]`,e,...t))}warn(e,...t){this.f(F.Warning)&&(this.g?console.warn(`\x1B[93m[${_i()}]\x1B[0m`,e,...t):console.warn(`[${_i()}]`,e,...t))}error(e,...t){this.f(F.Error)&&(this.g?console.error(`\x1B[91m[${_i()}]\x1B[0m`,e,...t):console.error(`[${_i()}]`,e,...t))}flush(){}}}});import{createReadStream as YM,promises as Ol}from"fs";import*as QM from"path";import*as ZM from"url";import*as nv from"cookie";import*as KM from"crypto";async function Ms(e,t,s,i){t.writeHead(s,{"Content-Type":"text/plain"}),t.end(i)}async function bP(e,t,s,i,n,r){try{const o=await Ol.stat(e);if(t===1){const a=`W/"${[o.ino,o.size,o.mtime.getTime()].join("-")}"`;if(i.headers["if-none-match"]===a)return n.writeHead(304),void n.end();r.Etag=a}else t===2?r["Cache-Control"]="public, max-age=31536000":t===0&&(r["Cache-Control"]="no-store");r["Content-Type"]=yP[wr(e)]||Zj(e)||"text/plain",n.writeHead(200,r),YM(e).pipe(n)}catch(o){return o.code!=="ENOENT"?(s.error(o),console.error(o.toString())):console.error(`File not found: ${e}`),n.writeHead(404,{"Content-Type":"text/plain"}),void n.end("Not found")}}var yP,EP,Hd,Vd,eU=v({"out-build/vs/server/node/webClientServer.js"(){"use strict";yi(),Kh(),Q(),De(),Wo(),he(),Ie(),Wt(),js(),Ir(),Dt(),te(),Ue(),xe(),mP(),yP={".html":"text/html",".js":"text/javascript",".json":"application/json",".css":"text/css",".svg":"image/svg+xml"},function(e){e[e.NO_CACHING=0]="NO_CACHING",e[e.ETAG=1]="ETAG",e[e.NO_EXPIRY=2]="NO_EXPIRY"}(EP||(EP={})),Hd=Lt(Ot.asFileUri("").fsPath),Vd=class{constructor(t,s,i,n,r,o,a,c){this.f=t,this.g=s,this.serverRootPath=i,this.h=n,this.i=r,this.j=o,this.k=a,this.l=c,this.a=this.k.extensionsGallery?.resourceUrlTemplate?E.parse(this.k.extensionsGallery.resourceUrlTemplate):void 0,this.b=`${i}/static`,this.c=`${i}/callback`,this.d=`${i}/web-extension-resource`}async handle(t,s,i){try{const n=i.pathname;return n.startsWith(this.b)&&n.charCodeAt(this.b.length)===47?this.m(t,s,i):n===this.g?this.p(t,s,i):n===this.c?this.r(s):n.startsWith(this.d)&&n.charCodeAt(this.d.length)===47?this.o(t,s,i):Ms(t,s,404,"Not found.")}catch(n){return this.i.error(n),console.error(n.toString()),Ms(t,s,500,"Internal Server Error.")}}async m(t,s,i){const n=Object.create(null),o=decodeURIComponent(i.pathname).substring(this.b.length+1),a=j(Hd,o);return Ln(a,Hd,!it)?bP(a,this.h.isBuilt?2:1,this.i,t,s,n):Ms(t,s,400,"Bad request.")}n(t){const s=t.authority.indexOf(".");return s!==-1?t.authority.substring(s+1):void 0}async o(t,s,i){if(!this.a)return Ms(t,s,500,"No extension gallery service configured.");const n=decodeURIComponent(i.pathname),r=ti(n.substring(this.d.length+1)),o=E.parse(r).with({scheme:this.a.scheme,authority:r.substring(0,r.indexOf("/")),path:r.substring(r.indexOf("/")+1)});if(this.n(this.a)!==this.n(o))return Ms(t,s,403,"Request Forbidden");const a={},c=g=>{const w=t.headers[g];w&&(be(w)||w[0])?a[g]=be(w)?w:w[0]:g!==g.toLowerCase()&&c(g.toLowerCase())};c("X-Client-Name"),c("X-Client-Version"),c("X-Machine-Id"),c("X-Client-Commit");const l=await this.j.request({type:"GET",url:o.toString(!0),headers:a},Re.None),u=l.res.statusCode||500;if(u!==200){let g=null;try{g=await Pr(l)}catch{}return Ms(t,s,u,g||`Request failed with status ${u}`)}const h=Object.create(null),d=g=>{const w=l.res.headers[g];w?h[g]=w:g!==g.toLowerCase()&&d(g.toLowerCase())};d("Cache-Control"),d("Content-Type"),s.writeHead(200,h);const p=await Zi(l.stream);return void s.end(p.buffer)}async p(t,s,i){const n=i.query[ao];if(typeof n=="string"){const V=Object.create(null);V["Set-Cookie"]=nv.serialize(hu,n,{sameSite:"lax",maxAge:60*60*24*7});const L=Object.create(null);for(const ue in i.query)ue!==ao&&(L[ue]=i.query[ue]);const le=ZM.format({pathname:i.pathname,query:L});return V.Location=le,s.writeHead(302,V),void s.end()}const r=V=>{const L=t.headers[V];return Array.isArray(L)?L[0]:L},o=!this.h.isBuilt&&this.h.args["use-test-resolver"],a=o?"test+test":r("x-original-host")||r("x-forwarded-host")||t.headers.host;if(!a)return Ms(t,s,400,"Bad request.");function c(V){return JSON.stringify(V).replace(/"/g,""")}let l;this.h.args["enable-smoke-test-driver"]&&(l=!1);const u=V=>V&&E.file(QM.resolve(V)).with({scheme:Z.vscodeRemote,authority:a}),h=Ot.asFileUri(`vs/code/browser/workbench/workbench${this.h.isBuilt?"":"-dev"}.html`).fsPath,d=!this.h.isBuilt&&this.h.args["github-auth"]?{id:He(),providerId:"github",accessToken:this.h.args["github-auth"],scopes:[["user:email"],["repo"]]}:void 0,p={embedderIdentifier:"server-distro",extensionsGallery:this.a&&this.k.extensionsGallery?{...this.k.extensionsGallery,resourceUrlTemplate:this.a.with({scheme:"http",authority:a,path:`${this.d}/${this.a.authority}${this.a.path}`}).toString(!0)}:void 0};if(!this.h.isBuilt)try{const V=JSON.parse((await Ol.readFile(j(Hd,"product.overrides.json"))).toString());Object.assign(p,V)}catch{}const g={remoteAuthority:a,serverBasePath:this.g,_wrapWebWorkerExtHostInIframe:l,developmentOptions:{enableSmokeTestDriver:this.h.args["enable-smoke-test-driver"]?!0:void 0,logLevel:this.i.getLevel()},settingsSyncOptions:!this.h.isBuilt&&this.h.args["enable-sync"]?{enabled:!0}:void 0,enableWorkspaceTrust:!this.h.args["disable-workspace-trust"],folderUri:u(this.h.args["default-folder"]),workspaceUri:u(this.h.args["default-workspace"]),productConfiguration:p,callbackRoute:this.c},y=nv.parse(t.headers.cookie||"")["vscode.nls.locale"]||t.headers["accept-language"]?.split(",")[0]?.toLowerCase()||"en";let x,k;!y.startsWith("en")&&this.k.nlsCoreBaseUrl?(x=this.k.nlsCoreBaseUrl,k=`${x}${this.k.commit}/${this.k.version}/${y}/nls.messages.js`):k="";const A={WORKBENCH_WEB_CONFIGURATION:c(g),WORKBENCH_AUTH_SESSION:d?c(d):"",WORKBENCH_WEB_BASE_URL:this.b,WORKBENCH_NLS_URL:k,WORKBENCH_NLS_FALLBACK_URL:`${this.b}/out/nls.messages.js`};if(this.l.isEnabled){const V=await this.l.getCssModules();A.WORKBENCH_DEV_CSS_MODULES=JSON.stringify(V)}if(o){const V=[];for(const L of["vscode-test-resolver","github-authentication"]){const le=JSON.parse((await Ol.readFile(Ot.asFileUri(`${oy}/${L}/package.json`).fsPath)).toString());V.push({extensionPath:L,packageJSON:le})}A.WORKBENCH_BUILTIN_EXTENSIONS=c(V)}let I;try{I=(await Ol.readFile(h)).toString().replace(/\{\{([^}]+)\}\}/g,(L,le)=>A[le]??"undefined")}catch{return s.writeHead(404,{"Content-Type":"text/plain"}),void s.end("Not found")}const ee={"Content-Type":"text/html","Content-Security-Policy":["default-src 'self';","img-src 'self' https: data: blob:;","media-src 'self';",`script-src 'self' 'unsafe-eval' ${x??""} blob: 'nonce-1nline-m4p' ${this.q(I).join(" ")} 'sha256-2Q+j4hfT09+1+imS46J2YlkCtHWQt0/BE79PXjJ0ZJ8=' 'sha256-/r7rqQ+yrxt57sxLuQ6AMYcy/lUpvAIzHjIJt/OeLWU=' ${o?"":`http://${a}`};`,"child-src 'self';","frame-src 'self' https://*.vscode-cdn.net data:;","worker-src 'self' data: blob:;","style-src 'self' 'unsafe-inline';","connect-src 'self' ws: wss: https:;","font-src 'self' blob:;","manifest-src 'self';"].join(" ")};return this.f.type!==0&&(ee["Set-Cookie"]=nv.serialize(hu,this.f.value,{sameSite:"lax",maxAge:60*60*24*7})),s.writeHead(200,ee),void s.end(I)}q(t){const s=/<script>([\s\S]+?)<\/script>/img,i=[];let n;for(;n=s.exec(t);){const r=KM.createHash("sha256"),o=n[1].replace(/\r\n/g,` `),a=r.update(Buffer.from(o)).digest().toString("base64");i.push(`'sha256-${a}'`)}return i}async r(t){const s=Ot.asFileUri("vs/code/browser/workbench/callback.html").fsPath,i=(await Ol.readFile(s)).toString(),n=["default-src 'self';","img-src 'self' https: data: blob:;","media-src 'none';",`script-src 'self' ${this.q(i).join(" ")};`,"style-src 'self' 'unsafe-inline';","font-src 'self' blob:;"].join(" ");return t.writeHead(200,{"Content-Type":"text/html","Content-Security-Policy":n}),void t.end(i)}},Vd=__decorate([__param(3,Bc),__param(4,fe),__param(5,ki),__param(6,Tt),__param(7,sv)],Vd)}});import*as tU from"crypto";import*as Wd from"fs";import*as sU from"net";import{performance as iU}from"perf_hooks";import*as xP from"url";import{createRequire as nU}from"node:module";async function rU(e,t,s){const i=await lC(t);i instanceof Or&&(console.warn(i.message),process.exit(1));function n(k){Lv(A=>{Ov(A)&&A.stack&&/unexpectedErrorHandler/.test(A.stack)||k(A)})}const r=[];n(k=>{r.push(k),console.error(k)});let o=!1;process.on("SIGPIPE",()=>{o||(o=!0,Vt(new Error("Unexpected SIGPIPE")))});const a=new lt,{socketServer:c,instantiationService:l}=await GM(i,t,s,a);l.invokeFunction(k=>{const A=k.get(fe);r.forEach(I=>A.error(I)),r.length=0,n(I=>A.error(I))}),l.invokeFunction(k=>{const A=k.get(hs);me&&(A.getValue("security.restrictUNCAccess")===!1?L7():Km(A.getValue("security.allowedUNCHosts")))}),l.invokeFunction(k=>{const A=k.get(fe);if(me&&process.env.HOMEDRIVE&&process.env.HOMEPATH){const I=j(process.env.HOMEDRIVE,"node_modules"),R=Lt(j(process.env.HOMEDRIVE,process.env.HOMEPATH)),q=j(R,"node_modules");if(Wd.existsSync(I)||Wd.existsSync(q)){const ee=` * * !!!! Server terminated due to presence of CVE-2020-1416 !!!! * * Please remove the following directories and re-try * ${I} * ${q} * * For more information on the vulnerability https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-1416 * `;A.warn(ee),console.warn(ee),process.exit(0)}}});const u=l.invokeFunction(k=>{const A=k.get(fe);if(Wd.existsSync(j(Ot.asFileUri("").fsPath,"../node_modules/vsda")))try{return kP("vsda")}catch(R){A.error(R)}return null});let h=t["server-base-path"];h&&!h.startsWith("/")&&(h=`/${h}`);const d=Wd.existsSync(Ot.asFileUri("vs/code/browser/workbench/workbench.html").fsPath);if(d&&e&&typeof e!="string"){const k=i.type!==0?`?${ao}=${i.value}`:"";console.log(`Web UI available at http://localhost${e.port===80?"":`:${e.port}`}${h??""}${k}`)}const p=l.createInstance(qd,c,i,u,d,h);Pt("code/server/ready");const g=iU.now(),w=global.vscodeServerStartTime,y=global.vscodeServerListenTime,x=global.vscodeServerCodeLoadedTime;if(l.invokeFunction(async k=>{const A=k.get(qt);if(A.publicLog2("serverStart",{startTime:w,startedTime:y,codeLoadedTime:x,readyTime:g}),it){const I=k.get(fe),R=await HO(I.error.bind(I));R&&A.publicLog2("serverPlatformInfo",{platformId:R.id,platformVersionId:R.version_id,platformIdLike:R.id_like})}}),t["print-startup-performance"]){let k="";k+=`Start-up time: ${y-w} `,k+=`Code loading time: ${x-w} `,k+=`Initialized time: ${g-w} `,k+=` `,console.log(k)}return p}var kP,$P,qd,SP,oU=v({"out-build/vs/server/node/remoteExtensionHostAgentServer.js"(){"use strict";Ue(),de(),yi(),H(),Ie(),he(),Hi(),Q(),rt(),te(),Wt(),VO(),GO(),O7(),q7(),Ch(),$s(),re(),De(),js(),Is(),a8(),oC(),hC(),Wo(),XM(),eU(),kP=nU(import.meta.url),$P=5*60*1e3,qd=class extends J{constructor(t,s,i,n,r,o,a,c,l){super(),this.n=t,this.r=s,this.s=i,this.t=o,this.u=a,this.w=c,this.y=l,this.h=SP.create(this.u),this.j=iy(a,r),this.a=Object.create(null),this.b=Object.create(null),this.f=new Set,this.g=n?this.y.createInstance(Vd,this.r,r??"/",this.j):null,this.w.info("Extension host agent started."),this.L(!0)}async handleRequest(t,s){if(t.method!=="GET")return Ms(t,s,405,`Unsupported method ${t.method}`);if(!t.url)return Ms(t,s,400,"Bad request.");const i=xP.parse(t.url,!0);let n=i.pathname;if(!n)return Ms(t,s,400,"Bad request.");if(n.startsWith(this.j)&&n.charCodeAt(this.j.length)===47&&(n=n.substring(this.j.length)),n==="/version")return s.writeHead(200,{"Content-Type":"text/plain"}),void s.end(this.u.commit||"");if(n==="/delay-shutdown")return this.N(),s.writeHead(200),void s.end("OK");if(!uC(this.r,t,i))return Ms(t,s,403,"Forbidden.");if(n==="/vscode-remote-resource"){const r=i.query.path;if(typeof r!="string")return Ms(t,s,400,"Bad request.");let o;try{o=E.from({scheme:Z.file,path:r}).fsPath}catch{return Ms(t,s,400,"Bad request.")}const a=Object.create(null);this.t.isBuilt&&(Ln(o,this.t.builtinExtensionsPath,!it)||Ln(o,this.t.extensionsPath,!it))&&(a["Cache-Control"]="public, max-age=31536000"),a.Vary="Origin";const c=t.headers.origin;return c&&this.h.matches(c)&&(a["Access-Control-Allow-Origin"]=c),bP(o,1,this.w,t,s,a)}if(this.g){this.g.handle(t,s,i);return}return s.writeHead(404,{"Content-Type":"text/plain"}),void s.end("Not found")}handleUpgrade(t,s){let i=He(),n=!1,r=!1;if(t.url){const h=xP.parse(t.url,!0).query;typeof h.reconnectionToken=="string"&&(i=h.reconnectionToken),h.reconnection==="true"&&(n=!0),h.skipWebSocketFrames==="true"&&(r=!0)}if(t.headers.upgrade===void 0||t.headers.upgrade.toLowerCase()!=="websocket"){s.end("HTTP/1.1 400 Bad Request");return}const o=t.headers["sec-websocket-key"],a=tU.createHash("sha1");a.update(o+"258EAFA5-E914-47DA-95CA-C5AB0DC85B11");const l=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${a.digest("base64")}`];let u=!1;if(!r&&!this.t.args["disable-websocket-compression"]&&t.headers["sec-websocket-extensions"]){const h=Array.isArray(t.headers["sec-websocket-extensions"])?t.headers["sec-websocket-extensions"]:[t.headers["sec-websocket-extensions"]];for(const d of h)if(!/\b((server_max_window_bits)|(server_no_context_takeover)|(client_no_context_takeover))\b/.test(d)){if(/\b(permessage-deflate)\b/.test(d)){u=!0,l.push("Sec-WebSocket-Extensions: permessage-deflate");break}if(/\b(x-webkit-deflate-frame)\b/.test(d)){u=!0,l.push("Sec-WebSocket-Extensions: x-webkit-deflate-frame");break}}}s.write(l.join(`\r `)+`\r \r `),s.setTimeout(0),s.setNoDelay(!0),r?this.D(new Yo(s,`server-connection-${i}`),n,i):this.D(new Y7(new Yo(s,`server-connection-${i}`),u,null,!0),n,i)}handleServerError(t){this.w.error("Error occurred in server"),this.w.error(t)}z(t){let s;return t instanceof Yo?s=t.socket:s=t.socket.socket,s.remoteAddress||"<unknown>"}async C(t,s,i){const n=s.getSocket();this.w.error(`${t} ${i}.`);const r={type:"error",reason:i};s.sendControl(O.fromString(JSON.stringify(r))),s.dispose(),await n.drain(),n.dispose()}D(t,s,i){const n=this.z(t),r=`[${n}][${i.substr(0,8)}]`,o=new W7({socket:t}),a=this.s?new this.s.validator:null,c=this.s?new this.s.signer:null;let l;(function(p){p[p.WaitingForAuth=0]="WaitingForAuth",p[p.WaitingForConnectionType=1]="WaitingForConnectionType",p[p.Done=2]="Done",p[p.Error=3]="Error"})(l||(l={}));let u=0;const h=p=>{u=3,d.dispose(),this.C(r,o,p)},d=o.onControlMessage(p=>{if(u===0){let g;try{g=JSON.parse(p.toString())}catch{return h("Malformed first message")}if(g.type!=="auth")return h("Invalid first message");if(this.r.type===2&&!this.r.validate(g.auth))return h("Unauthorized client refused: auth mismatch");let w=He();if(c)try{w=c.sign(g.data)}catch{}let y=He();if(a)try{y=a.createNewMessage(y)}catch{}const x={type:"sign",data:y,signedData:w};o.sendControl(O.fromString(JSON.stringify(x))),u=1}else if(u===1){let g;try{g=JSON.parse(p.toString())}catch{return h("Malformed second message")}if(g.type!=="connectionType")return h("Invalid second message");if(typeof g.signedData!="string")return h("Invalid second message field type");const w=g.commit,y=this.u.commit;if(w&&y&&w!==y)return h("Client refused: version mismatch");let x=!1;if(!a)x=!0;else if(this.r.validate(g.signedData))x=!0;else try{x=a.validate(g.signedData)==="ok"}catch{}if(!x){if(this.t.isBuilt)return h("Unauthorized client refused");this.w.error(`${r} Unauthorized client handshake failed but we proceed because of dev mode.`)}for(const k in this.b)this.b[k].shortenReconnectionGraceTimeIfNecessary();for(const k in this.a)this.a[k].shortenReconnectionGraceTimeIfNecessary();u=2,d.dispose(),this.F(n,r,o,t,s,i,g)}})}async F(t,s,i,n,r,o,a){const c=a.desiredConnectionType===1?`${s}[ManagementConnection]`:a.desiredConnectionType===2?`${s}[ExtensionHostConnection]`:s;if(a.desiredConnectionType===1)if(r){if(!this.b[o])return this.f.has(o)?this.C(c,i,"Unknown reconnection token (seen before)"):this.C(c,i,"Unknown reconnection token (never seen)");i.sendControl(O.fromString(JSON.stringify({type:"ok"})));const l=i.readEntireBuffer();i.dispose(),this.b[o].acceptReconnection(t,n,l)}else{if(this.b[o])return this.C(c,i,"Duplicate reconnection token");i.sendControl(O.fromString(JSON.stringify({type:"ok"})));const l=new c8(this.w,o,t,i);this.n.acceptConnection(l.protocol,l.onClose),this.b[o]=l,this.f.add(o),l.onClose(()=>{delete this.b[o]})}else if(a.desiredConnectionType===2){const l=a.args||{language:"en"},u=await this.I(l);if(u.port&&this.w.trace(`${c} - startParams debug port ${u.port}`),this.w.trace(`${c} - startParams language: ${u.language}`),this.w.trace(`${c} - startParams env: ${JSON.stringify(u.env)}`),r){if(!this.a[o])return this.f.has(o)?this.C(c,i,"Unknown reconnection token (seen before)"):this.C(c,i,"Unknown reconnection token (never seen)");i.sendPause(),i.sendControl(O.fromString(JSON.stringify(u.port?{debugPort:u.port}:{})));const h=i.readEntireBuffer();i.dispose(),this.a[o].acceptReconnection(t,n,h)}else{if(this.a[o])return this.C(c,i,"Duplicate reconnection token");i.sendPause(),i.sendControl(O.fromString(JSON.stringify(u.port?{debugPort:u.port}:{})));const h=i.readEntireBuffer();i.dispose();const d=this.y.createInstance(jh,o,t,n,h);this.a[o]=d,this.f.add(o),d.onClose(()=>{d.dispose(),delete this.a[o],this.J()}),d.start(u)}}else if(a.desiredConnectionType===3){const l=a.args;this.G(i,l)}else return this.C(c,i,"Unknown initial data received")}async G(t,s){const i=t.getSocket().socket,n=t.readEntireBuffer();t.dispose(),i.pause();const r=await this.H(s.host,s.port);n.byteLength>0&&r.write(n.buffer),r.on("end",()=>i.end()),r.on("close",()=>i.end()),r.on("error",()=>i.destroy()),i.on("end",()=>r.end()),i.on("close",()=>r.end()),i.on("error",()=>r.destroy()),r.pipe(i),i.pipe(r)}H(t,s){return new Promise((i,n)=>{const r=sU.createConnection({host:t,port:s,autoSelectFamily:!0},()=>{r.removeListener("error",n),r.pause(),i(r)});r.once("error",n)})}I(t){return typeof t.port=="number"?qO(t.port,10,5e3).then(s=>(t.port=s,t)):(t.debugId=void 0,t.port=void 0,t.break=void 0,Promise.resolve(t))}async J(){if(!this.t.args["enable-remote-auto-shutdown"])return;this.O(),!!Object.keys(this.a).length||(console.log("Last EH closed, waiting before shutting down"),this.w.info("Last EH closed, waiting before shutting down"),this.L())}L(t=!1){this.t.args["enable-remote-auto-shutdown"]&&(this.t.args["remote-auto-shutdown-without-delay"]&&!t?this.M():this.m=setTimeout(()=>{this.m=void 0,this.M()},$P))}M(){if(!!Object.keys(this.a).length){console.log("New EH opened, aborting shutdown"),this.w.info("New EH opened, aborting shutdown");return}else console.log("Last EH closed, shutting down"),this.w.info("Last EH closed, shutting down"),this.dispose(),process.exit(0)}N(){this.m&&(console.log("Got delay-shutdown request while in shutdown timeout, delaying"),this.w.info("Got delay-shutdown request while in shutdown timeout, delaying"),this.O(),this.L())}O(){this.m&&(console.log("Cancelling previous shutdown timeout"),this.w.info("Cancelling previous shutdown timeout"),clearTimeout(this.m),this.m=void 0)}},qd=__decorate([__param(5,Bc),__param(6,Tt),__param(7,fe),__param(8,yr)],qd),SP=class op{static create(t){const s=t.webEndpointUrlTemplate,i=t.commit,n=t.quality;if(!s||!i||!n)return new op(null);const r=He(),a=new URL(s.replace("{{uuid}}",r).replace("{{commit}}",i).replace("{{quality}}",n)).origin,c=Sn(a).replace(r,"[a-zA-Z0-9\\-]+");try{const l=dA(`^${c}$`,!0,{matchCase:!1});return new op(l)}catch{return new op(null)}}constructor(t){this.a=t}matches(t){return this.a?this.a.test(t):!1}}}}),PP={};_I(PP,{$1Y:()=>uU,$ZY:()=>lU});import*as aU from"os";import*as IP from"fs";import{performance as cU}from"perf_hooks";function lU(){MO(yn,$a,Vm)}function uU(e){return rU(e,yn,$a)}var AP,yn,$a,Cl,Gd,DP,NP,RP,LP,OP,hU=v({"out-build/vs/server/node/server.main.js"(){"use strict";Ie(),UO(),oU(),Uu(),he(),Wo(),Cc(),Hi(),Pt("code/server/codeLoaded"),global.vscodeServerCodeLoadedTime=cU.now(),AP={onMultipleValues:(e,t)=>{console.error(`Option '${e}' can only be defined once. Using value ${t}.`)},onEmptyValue:e=>{console.error(`Ignoring option '${e}': Value must not be empty.`)},onUnknownOption:e=>{console.error(`Ignoring option '${e}': not supported for server.`)},onDeprecatedOption:(e,t)=>{console.warn(`Option '${e}' is deprecated: ${t}`)}},yn=w5(process.argv.slice(2),Vm,AP),$a=yn["server-data-dir"]||process.env.VSCODE_AGENT_FOLDER||j(aU.homedir(),Bt.serverDataFolderName||".vscode-remote"),Cl=j($a,"data"),Gd=j(Cl,"User"),DP=j(Gd,"globalStorage"),NP=j(Gd,"History"),RP=j(Cl,"Machine"),yn["user-data-dir"]=Cl,LP=Lt(Ot.asFileUri("").fsPath),OP=j(LP,"extensions"),yn["builtin-extensions-dir"]=OP,yn["extensions-dir"]=yn["extensions-dir"]||j($a,"extensions"),[$a,yn["extensions-dir"],Cl,Gd,RP,DP,NP].forEach(e=>{try{IP.existsSync(e)||IP.mkdirSync(e,{mode:448})}catch(t){console.error(t)}})}});delete process.env.ELECTRON_RUN_AS_NODE;var fU=Iv(Av(),1);import*as CP from"path";import*as jP from"http";import*as dU from"os";import*as pU from"readline";import{performance as _P}from"perf_hooks";import{fileURLToPath as mU}from"url";import*as TP from"path";import"fs";import{fileURLToPath as gU}from"url";import{createRequire as wU}from"node:module";var vU=wU(import.meta.url),Tz=TP.dirname(gU(import.meta.url));if(Error.stackTraceLimit=100,!process.env.VSCODE_HANDLES_SIGPIPE){let e=!1;process.on("SIGPIPE",()=>{e||(e=!0,console.error(new Error("Unexpected SIGPIPE")))})}function bU(){try{typeof process.env.VSCODE_CWD!="string"&&(process.env.VSCODE_CWD=process.cwd()),process.platform==="win32"&&process.chdir(TP.dirname(process.execPath))}catch(e){console.error(e)}}bU();function yU(e){if(!process.env.VSCODE_DEV)return;if(!e)throw new Error("Missing injectPath");vU("node:module").register("./bootstrap-import.js",{parentURL:import.meta.url,data:e})}import*as EU from"path";import*as rv from"fs";import{fileURLToPath as xU}from"url";import{createRequire as kU,register as $U}from"node:module";import{createRequire as SU}from"node:module";var MP=SU(import.meta.url),ov={BUILD_INSERT_PRODUCT_CONFIGURATION:"BUILD_INSERT_PRODUCT_CONFIGURATION"};ov.BUILD_INSERT_PRODUCT_CONFIGURATION&&(ov=MP("../product.json"));var av={"name":"Code","version":"1.95.1","private":true,"overrides":{"node-gyp-build":"4.8.1","kerberos@2.1.1":{"node-addon-api":"7.1.0"},"@parcel/watcher@2.1.0":{"node-addon-api":"7.1.0"}},"type":"module"};av.BUILD_INSERT_PACKAGE_CONFIGURATION&&(av=MP("../package.json"));var Ti=ov,PU=av;Hi();var IU=kU(import.meta.url),AU=EU.dirname(xU(import.meta.url));if((process.env.ELECTRON_RUN_AS_NODE||process.versions.electron)&&$U(`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={...Ti},process.env.VSCODE_DEV)try{const e=IU("../product.overrides.json");globalThis._VSCODE_PRODUCT_JSON=Object.assign(globalThis._VSCODE_PRODUCT_JSON,e)}catch{}globalThis._VSCODE_PACKAGE_JSON={...PU},globalThis._VSCODE_FILE_ROOT=AU;var cv=void 0;function DU(){return cv||(cv=NU()),cv}async function NU(){Pt("code/willLoadNls");let e,t;if(process.env.VSCODE_NLS_CONFIG)try{e=JSON.parse(process.env.VSCODE_NLS_CONFIG),e?.languagePack?.messagesFile?t=e.languagePack.messagesFile:e?.defaultMessagesFile&&(t=e.defaultMessagesFile),globalThis._VSCODE_NLS_LANGUAGE=e?.resolvedLanguage}catch(s){console.error(`Error reading VSCODE_NLS_CONFIG from environment: ${s}`)}if(!(process.env.VSCODE_DEV||!t)){try{globalThis._VSCODE_NLS_MESSAGES=JSON.parse((await rv.promises.readFile(t)).toString())}catch(s){if(console.error(`Error reading NLS messages file ${t}: ${s}`),e?.languagePack?.corruptMarkerFile)try{await rv.promises.writeFile(e.languagePack.corruptMarkerFile,"corrupted")}catch(i){console.error(`Error writing corrupted NLS marker file: ${i}`)}if(e?.defaultMessagesFile&&e.defaultMessagesFile!==t)try{globalThis._VSCODE_NLS_MESSAGES=JSON.parse((await rv.promises.readFile(e.defaultMessagesFile)).toString())}catch(i){console.error(`Error reading default NLS messages file ${e.defaultMessagesFile}: ${i}`)}}return Pt("code/didLoadNls"),e}}async function RU(){await DU()}Rv(),Hi();var UP=CP.dirname(mU(import.meta.url));Pt("code/server/start"),globalThis.vscodeServerStartTime=_P.now();var Ls=(0,fU.default)(process.argv.slice(2),{boolean:["start-server","list-extensions","print-ip-address","help","version","accept-server-license-terms","update-extensions"],string:["install-extension","install-builtin-extension","uninstall-extension","locate-extension","socket-path","host","port","compatibility"],alias:{help:"h",version:"v"}});["host","port","accept-server-license-terms"].forEach(e=>{if(!Ls[e]){const t=process.env[`VSCODE_SERVER_${e.toUpperCase().replace("-","_")}`];t&&(Ls[e]=t)}});var LU=["list-extensions","locate-extension"],OU=["install-extension","install-builtin-extension","uninstall-extension","update-extensions"],CU=Ls.help||Ls.version||LU.some(e=>!!Ls[e])||OU.some(e=>!!Ls[e])&&!Ls["start-server"],FP=await Nv({userLocale:"en",osLocale:"en",commit:Ti.commit,userDataPath:"",nlsMetadataPath:UP});if(CU)BP(FP).then(e=>{e.$ZY()});else{let e=null,t=null;const s=()=>(t||(t=BP(FP).then(async l=>{const u=await l.$1Y(r);return e=u,u})),t);if(Array.isArray(Ti.serverLicense)&&Ti.serverLicense.length&&(console.log(Ti.serverLicense.join(` `)),Ti.serverLicensePrompt&&Ls["accept-server-license-terms"]!==!0)){MU()&&(console.log("To accept the license terms, start the server with --accept-server-license-terms"),process.exit(1));try{await zP(Ti.serverLicensePrompt)||process.exit(1)}catch(l){console.log(l),process.exit(1)}}let i=!0,n=!0,r=null;const o=jP.createServer(async(l,u)=>(i&&(i=!1,Pt("code/server/firstRequest")),(await s()).handleRequest(l,u)));o.on("upgrade",async(l,u)=>(n&&(n=!1,Pt("code/server/firstWebSocket")),(await s()).handleUpgrade(l,u))),o.on("error",async l=>(await s()).handleServerError(l));const a=lv(Ls.host)||(Ls.compatibility!=="1.63"?"localhost":void 0),c=Ls["socket-path"]?{path:lv(Ls["socket-path"])}:{host:a,port:await jU(a,lv(Ls.port))};o.listen(c,async()=>{let l=Array.isArray(Ti.serverGreeting)&&Ti.serverGreeting.length?` ${Ti.serverGreeting.join(` `)} `:"";if(typeof c.port=="number"&&Ls["print-ip-address"]){const u=dU.networkInterfaces();Object.keys(u).forEach(function(h){u[h]?.forEach(function(d){!d.internal&&d.family==="IPv4"&&(l+=`IP Address: ${d.address} `)})})}if(r=o.address(),r===null)throw new Error("Unexpected server address");l+=`Server bound to ${typeof r=="string"?r:`${r.address}:${r.port} (${r.family})`} `,l+=`Extension host agent listening on ${typeof r=="string"?r:r.port} `,console.log(l),Pt("code/server/started"),globalThis.vscodeServerListenTime=_P.now(),await s()}),process.on("exit",()=>{o.close(),e&&e.dispose()})}function lv(e){return Array.isArray(e)&&(e=e.pop()),typeof e=="string"?e:void 0}async function jU(e,t){if(t){let s;if(t.match(/^\d+$/))return parseInt(t,10);if(s=_U(t)){const i=await TU(e,s.start,s.end);if(i!==void 0)return i;console.warn(`--port: Could not find free port in range: ${s.start} - ${s.end} (inclusive).`),process.exit(1)}else console.warn(`--port "${t}" is not a valid number or range. Ranges must be in the form 'from-to' with 'from' an integer larger than 0 and not larger than 'end'.`),process.exit(1)}return 8e3}function _U(e){const t=e.match(/^(\d+)-(\d+)$/);if(t){const s=parseInt(t[1],10),i=parseInt(t[2],10);if(s>0&&s<=i&&i<=65535)return{start:s,end:i}}}async function TU(e,t,s){const i=n=>new Promise(r=>{const o=jP.createServer();o.listen(n,e,()=>{o.close(),r(!0)}).on("error",()=>{r(!1)})});for(let n=t;n<=s;n++)if(await i(n))return n}async function BP(e){return process.env.VSCODE_NLS_CONFIG=JSON.stringify(e),process.env.VSCODE_HANDLES_SIGPIPE="true",process.env.VSCODE_DEV?(process.env.VSCODE_DEV_INJECT_NODE_MODULE_LOOKUP_PATH=process.env.VSCODE_DEV_INJECT_NODE_MODULE_LOOKUP_PATH||CP.join(UP,"..","remote","node_modules"),yU(process.env.VSCODE_DEV_INJECT_NODE_MODULE_LOOKUP_PATH)):delete process.env.VSCODE_DEV_INJECT_NODE_MODULE_LOOKUP_PATH,await RU(),Promise.resolve().then(()=>(hU(),PP))}function MU(){try{return!process.stdin.isTTY}catch{}return!1}function zP(e){const t=pU.createInterface({input:process.stdin,output:process.stdout});return new Promise((s,i)=>{t.question(e+" ",async function(n){t.close();const r=n.toString().trim().toLowerCase();r===""||r==="y"||r==="yes"?s(!0):r==="n"||r==="no"?s(!1):(process.stdout.write(` Invalid Response. Answer either yes (y, yes) or no (n, no) `),s(await zP(e)))})})} //# sourceMappingURL=https://main.vscode-cdn.net/sourcemaps/65edc4939843c90c34d61f4ce11704f09d3e5cb6/core/server-main.js.map