-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathworkbench.js
6 lines (5 loc) · 42 KB
/
workbench.js
1
2
3
4
5
6
"use strict";(function(c,v){typeof exports=="object"?module.exports=v():c.MonacoBootstrap=v()})(this,function(){const c=typeof require=="function"?require("module"):void 0,v=typeof require=="function"?require("path"):void 0,y=typeof require=="function"?require("fs"):void 0,f=typeof require=="function"?require("util"):void 0;if(Error.stackTraceLimit=100,typeof process<"u"&&!process.env.VSCODE_HANDLES_SIGPIPE){let i=!1;process.on("SIGPIPE",()=>{i||(i=!0,console.error(new Error("Unexpected SIGPIPE")))})}function u(){if(!v||!c||typeof process>"u"){console.warn("enableASARSupport() is only available in node.js environments");return}const i=v.join(__dirname,"../node_modules"),s=`${i}.asar`,a=c._resolveLookupPaths;c._resolveLookupPaths=function(l,d){const p=a(l,d);if(Array.isArray(p)){for(let _=0,m=p.length;_<m;_++)if(p[_]===i){p.splice(_,0,s);break}}return p}}function o(i,s){let a=i.replace(/\\/g,"/");a.length>0&&a.charAt(0)!=="/"&&(a=`/${a}`);let l;return s.isWindows&&a.startsWith("//")?l=encodeURI(`${s.scheme||"file"}:${a}`):l=encodeURI(`${s.scheme||"file"}://${s.fallbackAuthority||""}${a}`),l.replace(/#/g,"%23")}function g(){const i=t();let s={availableLanguages:{}};if(i&&i.env.VSCODE_NLS_CONFIG)try{s=JSON.parse(i.env.VSCODE_NLS_CONFIG)}catch{}if(s._resolvedLanguagePackCoreLocation){const a=Object.create(null);s.loadBundle=function(l,d,p){const _=a[l];if(_){p(void 0,_);return}n(s._resolvedLanguagePackCoreLocation,`${l.replace(/\//g,"!")}.nls.json`).then(function(m){const b=JSON.parse(m);a[l]=b,p(void 0,b)}).catch(m=>{try{s._corruptedFile&&r(s._corruptedFile,"corrupted").catch(function(b){console.error(b)})}finally{p(m,void 0)}})}}return s}function h(){return(typeof self=="object"?self:typeof global=="object"?global:{}).vscode}function t(){const i=h();if(i)return i.process;if(typeof process<"u")return process}function e(){const i=h();if(i)return i.ipcRenderer}async function n(...i){const s=e();if(s)return s.invoke("vscode:readNlsFile",...i);if(y&&v&&f)return(await f.promisify(y.readFile)(v.join(...i))).toString();throw new Error("Unsupported operation (read NLS files)")}function r(i,s){const a=e();if(a)return a.invoke("vscode:writeNlsFile",i,s);if(y&&f)return f.promisify(y.writeFile)(i,s);throw new Error("Unsupported operation (write NLS files)")}return{enableASARSupport:u,setupNLS:g,fileUriFromPath:o}});const _amdLoaderGlobal=this,_commonjsGlobal=typeof global=="object"?global:{};var AMDLoader;(function(c){c.global=_amdLoaderGlobal;class v{get isWindows(){return this._detect(),this._isWindows}get isNode(){return this._detect(),this._isNode}get isElectronRenderer(){return this._detect(),this._isElectronRenderer}get isWebWorker(){return this._detect(),this._isWebWorker}get isElectronNodeIntegrationWebWorker(){return this._detect(),this._isElectronNodeIntegrationWebWorker}constructor(){this._detected=!1,this._isWindows=!1,this._isNode=!1,this._isElectronRenderer=!1,this._isWebWorker=!1,this._isElectronNodeIntegrationWebWorker=!1}_detect(){this._detected||(this._detected=!0,this._isWindows=v._isWindows(),this._isNode=typeof module<"u"&&!!module.exports,this._isElectronRenderer=typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.electron<"u"&&process.type==="renderer",this._isWebWorker=typeof c.global.importScripts=="function",this._isElectronNodeIntegrationWebWorker=this._isWebWorker&&typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.electron<"u"&&process.type==="worker")}static _isWindows(){return typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.indexOf("Windows")>=0?!0:typeof process<"u"?process.platform==="win32":!1}}c.Environment=v})(AMDLoader||(AMDLoader={}));var AMDLoader;(function(c){class v{constructor(o,g,h){this.type=o,this.detail=g,this.timestamp=h}}c.LoaderEvent=v;class y{constructor(o){this._events=[new v(1,"",o)]}record(o,g){this._events.push(new v(o,g,c.Utilities.getHighPerformanceTimestamp()))}getEvents(){return this._events}}c.LoaderEventRecorder=y;class f{record(o,g){}getEvents(){return[]}}f.INSTANCE=new f,c.NullLoaderEventRecorder=f})(AMDLoader||(AMDLoader={}));var AMDLoader;(function(c){class v{static fileUriToFilePath(f,u){if(u=decodeURI(u).replace(/%23/g,"#"),f){if(/^file:\/\/\//.test(u))return u.substr(8);if(/^file:\/\//.test(u))return u.substr(5)}else if(/^file:\/\//.test(u))return u.substr(7);return u}static startsWith(f,u){return f.length>=u.length&&f.substr(0,u.length)===u}static endsWith(f,u){return f.length>=u.length&&f.substr(f.length-u.length)===u}static containsQueryString(f){return/^[^\#]*\?/gi.test(f)}static isAbsolutePath(f){return/^((http:\/\/)|(https:\/\/)|(file:\/\/)|(\/))/.test(f)}static forEachProperty(f,u){if(f){let o;for(o in f)f.hasOwnProperty(o)&&u(o,f[o])}}static isEmpty(f){let u=!0;return v.forEachProperty(f,()=>{u=!1}),u}static recursiveClone(f){if(!f||typeof f!="object"||f instanceof RegExp||!Array.isArray(f)&&Object.getPrototypeOf(f)!==Object.prototype)return f;let u=Array.isArray(f)?[]:{};return v.forEachProperty(f,(o,g)=>{g&&typeof g=="object"?u[o]=v.recursiveClone(g):u[o]=g}),u}static generateAnonymousModule(){return"===anonymous"+v.NEXT_ANONYMOUS_ID+++"==="}static isAnonymousModule(f){return v.startsWith(f,"===anonymous")}static getHighPerformanceTimestamp(){return this.PERFORMANCE_NOW_PROBED||(this.PERFORMANCE_NOW_PROBED=!0,this.HAS_PERFORMANCE_NOW=c.global.performance&&typeof c.global.performance.now=="function"),this.HAS_PERFORMANCE_NOW?c.global.performance.now():Date.now()}}v.NEXT_ANONYMOUS_ID=1,v.PERFORMANCE_NOW_PROBED=!1,v.HAS_PERFORMANCE_NOW=!1,c.Utilities=v})(AMDLoader||(AMDLoader={}));var AMDLoader;(function(c){function v(u){if(u instanceof Error)return u;const o=new Error(u.message||String(u)||"Unknown Error");return u.stack&&(o.stack=u.stack),o}c.ensureError=v;class y{static validateConfigurationOptions(o){function g(h){if(h.phase==="loading"){console.error('Loading "'+h.moduleId+'" failed'),console.error(h),console.error("Here are the modules that depend on it:"),console.error(h.neededBy);return}if(h.phase==="factory"){console.error('The factory function of "'+h.moduleId+'" has thrown an exception'),console.error(h),console.error("Here are the modules that depend on it:"),console.error(h.neededBy);return}}if(o=o||{},typeof o.baseUrl!="string"&&(o.baseUrl=""),typeof o.isBuild!="boolean"&&(o.isBuild=!1),typeof o.paths!="object"&&(o.paths={}),typeof o.config!="object"&&(o.config={}),typeof o.catchError>"u"&&(o.catchError=!1),typeof o.recordStats>"u"&&(o.recordStats=!1),typeof o.urlArgs!="string"&&(o.urlArgs=""),typeof o.onError!="function"&&(o.onError=g),Array.isArray(o.ignoreDuplicateModules)||(o.ignoreDuplicateModules=[]),o.baseUrl.length>0&&(c.Utilities.endsWith(o.baseUrl,"/")||(o.baseUrl+="/")),typeof o.cspNonce!="string"&&(o.cspNonce=""),typeof o.preferScriptTags>"u"&&(o.preferScriptTags=!1),o.nodeCachedData&&typeof o.nodeCachedData=="object"&&(typeof o.nodeCachedData.seed!="string"&&(o.nodeCachedData.seed="seed"),(typeof o.nodeCachedData.writeDelay!="number"||o.nodeCachedData.writeDelay<0)&&(o.nodeCachedData.writeDelay=1e3*7),!o.nodeCachedData.path||typeof o.nodeCachedData.path!="string")){const h=v(new Error("INVALID cached data configuration, 'path' MUST be set"));h.phase="configuration",o.onError(h),o.nodeCachedData=void 0}return o}static mergeConfigurationOptions(o=null,g=null){let h=c.Utilities.recursiveClone(g||{});return c.Utilities.forEachProperty(o,(t,e)=>{t==="ignoreDuplicateModules"&&typeof h.ignoreDuplicateModules<"u"?h.ignoreDuplicateModules=h.ignoreDuplicateModules.concat(e):t==="paths"&&typeof h.paths<"u"?c.Utilities.forEachProperty(e,(n,r)=>h.paths[n]=r):t==="config"&&typeof h.config<"u"?c.Utilities.forEachProperty(e,(n,r)=>h.config[n]=r):h[t]=c.Utilities.recursiveClone(e)}),y.validateConfigurationOptions(h)}}c.ConfigurationOptionsUtil=y;class f{constructor(o,g){if(this._env=o,this.options=y.mergeConfigurationOptions(g),this._createIgnoreDuplicateModulesMap(),this._createSortedPathsRules(),this.options.baseUrl===""&&this.options.nodeRequire&&this.options.nodeRequire.main&&this.options.nodeRequire.main.filename&&this._env.isNode){let h=this.options.nodeRequire.main.filename,t=Math.max(h.lastIndexOf("/"),h.lastIndexOf("\\"));this.options.baseUrl=h.substring(0,t+1)}}_createIgnoreDuplicateModulesMap(){this.ignoreDuplicateModulesMap={};for(let o=0;o<this.options.ignoreDuplicateModules.length;o++)this.ignoreDuplicateModulesMap[this.options.ignoreDuplicateModules[o]]=!0}_createSortedPathsRules(){this.sortedPathsRules=[],c.Utilities.forEachProperty(this.options.paths,(o,g)=>{Array.isArray(g)?this.sortedPathsRules.push({from:o,to:g}):this.sortedPathsRules.push({from:o,to:[g]})}),this.sortedPathsRules.sort((o,g)=>g.from.length-o.from.length)}cloneAndMerge(o){return new f(this._env,y.mergeConfigurationOptions(o,this.options))}getOptionsLiteral(){return this.options}_applyPaths(o){let g;for(let h=0,t=this.sortedPathsRules.length;h<t;h++)if(g=this.sortedPathsRules[h],c.Utilities.startsWith(o,g.from)){let e=[];for(let n=0,r=g.to.length;n<r;n++)e.push(g.to[n]+o.substr(g.from.length));return e}return[o]}_addUrlArgsToUrl(o){return c.Utilities.containsQueryString(o)?o+"&"+this.options.urlArgs:o+"?"+this.options.urlArgs}_addUrlArgsIfNecessaryToUrl(o){return this.options.urlArgs?this._addUrlArgsToUrl(o):o}_addUrlArgsIfNecessaryToUrls(o){if(this.options.urlArgs)for(let g=0,h=o.length;g<h;g++)o[g]=this._addUrlArgsToUrl(o[g]);return o}moduleIdToPaths(o){if(this._env.isNode&&this.options.amdModulesPattern instanceof RegExp&&!this.options.amdModulesPattern.test(o))return this.isBuild()?["empty:"]:["node|"+o];let g=o,h;if(!c.Utilities.endsWith(g,".js")&&!c.Utilities.isAbsolutePath(g)){h=this._applyPaths(g);for(let t=0,e=h.length;t<e;t++)this.isBuild()&&h[t]==="empty:"||(c.Utilities.isAbsolutePath(h[t])||(h[t]=this.options.baseUrl+h[t]),!c.Utilities.endsWith(h[t],".js")&&!c.Utilities.containsQueryString(h[t])&&(h[t]=h[t]+".js"))}else!c.Utilities.endsWith(g,".js")&&!c.Utilities.containsQueryString(g)&&(g=g+".js"),h=[g];return this._addUrlArgsIfNecessaryToUrls(h)}requireToUrl(o){let g=o;return c.Utilities.isAbsolutePath(g)||(g=this._applyPaths(g)[0],c.Utilities.isAbsolutePath(g)||(g=this.options.baseUrl+g)),this._addUrlArgsIfNecessaryToUrl(g)}isBuild(){return this.options.isBuild}shouldInvokeFactory(o){return!!(!this.options.isBuild||c.Utilities.isAnonymousModule(o)||this.options.buildForceInvokeFactory&&this.options.buildForceInvokeFactory[o])}isDuplicateMessageIgnoredFor(o){return this.ignoreDuplicateModulesMap.hasOwnProperty(o)}getConfigForModule(o){if(this.options.config)return this.options.config[o]}shouldCatchError(){return this.options.catchError}shouldRecordStats(){return this.options.recordStats}onError(o){this.options.onError(o)}}c.Configuration=f})(AMDLoader||(AMDLoader={}));var AMDLoader;(function(c){class v{constructor(e){this._env=e,this._scriptLoader=null,this._callbackMap={}}load(e,n,r,i){if(!this._scriptLoader)if(this._env.isWebWorker)this._scriptLoader=new u;else if(this._env.isElectronRenderer){const{preferScriptTags:a}=e.getConfig().getOptionsLiteral();a?this._scriptLoader=new y:this._scriptLoader=new o(this._env)}else this._env.isNode?this._scriptLoader=new o(this._env):this._scriptLoader=new y;let s={callback:r,errorback:i};if(this._callbackMap.hasOwnProperty(n)){this._callbackMap[n].push(s);return}this._callbackMap[n]=[s],this._scriptLoader.load(e,n,()=>this.triggerCallback(n),a=>this.triggerErrorback(n,a))}triggerCallback(e){let n=this._callbackMap[e];delete this._callbackMap[e];for(let r=0;r<n.length;r++)n[r].callback()}triggerErrorback(e,n){let r=this._callbackMap[e];delete this._callbackMap[e];for(let i=0;i<r.length;i++)r[i].errorback(n)}}class y{attachListeners(e,n,r){let i=()=>{e.removeEventListener("load",s),e.removeEventListener("error",a)},s=l=>{i(),n()},a=l=>{i(),r(l)};e.addEventListener("load",s),e.addEventListener("error",a)}load(e,n,r,i){if(/^node\|/.test(n)){let s=e.getConfig().getOptionsLiteral(),a=g(e.getRecorder(),s.nodeRequire||c.global.nodeRequire),l=n.split("|"),d=null;try{d=a(l[1])}catch(p){i(p);return}e.enqueueDefineAnonymousModule([],()=>d),r()}else{let s=document.createElement("script");s.setAttribute("async","async"),s.setAttribute("type","text/javascript"),this.attachListeners(s,r,i);const{trustedTypesPolicy:a}=e.getConfig().getOptionsLiteral();a&&(n=a.createScriptURL(n)),s.setAttribute("src",n);const{cspNonce:l}=e.getConfig().getOptionsLiteral();l&&s.setAttribute("nonce",l),document.getElementsByTagName("head")[0].appendChild(s)}}}function f(t){const{trustedTypesPolicy:e}=t.getConfig().getOptionsLiteral();try{return(e?self.eval(e.createScript("","true")):new Function("true")).call(self),!0}catch{return!1}}class u{constructor(){this._cachedCanUseEval=null}_canUseEval(e){return this._cachedCanUseEval===null&&(this._cachedCanUseEval=f(e)),this._cachedCanUseEval}load(e,n,r,i){if(/^node\|/.test(n)){const s=e.getConfig().getOptionsLiteral(),a=g(e.getRecorder(),s.nodeRequire||c.global.nodeRequire),l=n.split("|");let d=null;try{d=a(l[1])}catch(p){i(p);return}e.enqueueDefineAnonymousModule([],function(){return d}),r()}else{const{trustedTypesPolicy:s}=e.getConfig().getOptionsLiteral();if(!(/^((http:)|(https:)|(file:))/.test(n)&&n.substring(0,self.origin.length)!==self.origin)&&this._canUseEval(e)){fetch(n).then(l=>{if(l.status!==200)throw new Error(l.statusText);return l.text()}).then(l=>{l=`${l}
//# sourceURL=${n}`,(s?self.eval(s.createScript("",l)):new Function(l)).call(self),r()}).then(void 0,i);return}try{s&&(n=s.createScriptURL(n)),importScripts(n),r()}catch(l){i(l)}}}}class o{constructor(e){this._env=e,this._didInitialize=!1,this._didPatchNodeRequire=!1}_init(e){this._didInitialize||(this._didInitialize=!0,this._fs=e("fs"),this._vm=e("vm"),this._path=e("path"),this._crypto=e("crypto"))}_initNodeRequire(e,n){const{nodeCachedData:r}=n.getConfig().getOptionsLiteral();if(!r||this._didPatchNodeRequire)return;this._didPatchNodeRequire=!0;const i=this,s=e("module");function a(l){const d=l.constructor;let p=function(m){try{return l.require(m)}finally{}};return p.resolve=function(m,b){return d._resolveFilename(m,l,!1,b)},p.resolve.paths=function(m){return d._resolveLookupPaths(m,l)},p.main=process.mainModule,p.extensions=d._extensions,p.cache=d._cache,p}s.prototype._compile=function(l,d){const p=s.wrap(l.replace(/^#!.*/,"")),_=n.getRecorder(),m=i._getCachedDataPath(r,d),b={filename:d};let C;try{const k=i._fs.readFileSync(m);C=k.slice(0,16),b.cachedData=k.slice(16),_.record(60,m)}catch{_.record(61,m)}const E=new i._vm.Script(p,b),R=E.runInThisContext(b),P=i._path.dirname(d),w=a(this),I=[this.exports,w,this,d,P,process,_commonjsGlobal,Buffer],D=R.apply(this.exports,I);return i._handleCachedData(E,p,m,!b.cachedData,n),i._verifyCachedData(E,p,m,C,n),D}}load(e,n,r,i){const s=e.getConfig().getOptionsLiteral(),a=g(e.getRecorder(),s.nodeRequire||c.global.nodeRequire),l=s.nodeInstrumenter||function(p){return p};this._init(a),this._initNodeRequire(a,e);let d=e.getRecorder();if(/^node\|/.test(n)){let p=n.split("|"),_=null;try{_=a(p[1])}catch(m){i(m);return}e.enqueueDefineAnonymousModule([],()=>_),r()}else{n=c.Utilities.fileUriToFilePath(this._env.isWindows,n);const p=this._path.normalize(n),_=this._getElectronRendererScriptPathOrUri(p),m=!!s.nodeCachedData,b=m?this._getCachedDataPath(s.nodeCachedData,n):void 0;this._readSourceAndCachedData(p,b,d,(C,E,R,P)=>{if(C){i(C);return}let w;E.charCodeAt(0)===o._BOM?w=o._PREFIX+E.substring(1)+o._SUFFIX:w=o._PREFIX+E+o._SUFFIX,w=l(w,p);const I={filename:_,cachedData:R},D=this._createAndEvalScript(e,w,I,r,i);this._handleCachedData(D,w,b,m&&!R,e),this._verifyCachedData(D,w,b,P,e)})}}_createAndEvalScript(e,n,r,i,s){const a=e.getRecorder();a.record(31,r.filename);const l=new this._vm.Script(n,r),d=l.runInThisContext(r),p=e.getGlobalAMDDefineFunc();let _=!1;const m=function(){return _=!0,p.apply(null,arguments)};return m.amd=p.amd,d.call(c.global,e.getGlobalAMDRequireFunc(),m,r.filename,this._path.dirname(r.filename)),a.record(32,r.filename),_?i():s(new Error(`Didn't receive define call in ${r.filename}!`)),l}_getElectronRendererScriptPathOrUri(e){if(!this._env.isElectronRenderer)return e;let n=e.match(/^([a-z])\:(.*)/i);return n?`file:///${(n[1].toUpperCase()+":"+n[2]).replace(/\\/g,"/")}`:`file://${e}`}_getCachedDataPath(e,n){const r=this._crypto.createHash("md5").update(n,"utf8").update(e.seed,"utf8").update(process.arch,"").digest("hex"),i=this._path.basename(n).replace(/\.js$/,"");return this._path.join(e.path,`${i}-${r}.code`)}_handleCachedData(e,n,r,i,s){e.cachedDataRejected?this._fs.unlink(r,a=>{s.getRecorder().record(62,r),this._createAndWriteCachedData(e,n,r,s),a&&s.getConfig().onError(a)}):i&&this._createAndWriteCachedData(e,n,r,s)}_createAndWriteCachedData(e,n,r,i){let s=Math.ceil(i.getConfig().getOptionsLiteral().nodeCachedData.writeDelay*(1+Math.random())),a=-1,l=0,d;const p=()=>{setTimeout(()=>{d||(d=this._crypto.createHash("md5").update(n,"utf8").digest());const _=e.createCachedData();if(!(_.length===0||_.length===a||l>=5)){if(_.length<a){p();return}a=_.length,this._fs.writeFile(r,Buffer.concat([d,_]),m=>{m&&i.getConfig().onError(m),i.getRecorder().record(63,r),p()})}},s*Math.pow(4,l++))};p()}_readSourceAndCachedData(e,n,r,i){if(!n)this._fs.readFile(e,{encoding:"utf8"},i);else{let s,a,l,d=2;const p=_=>{_?i(_):--d===0&&i(void 0,s,a,l)};this._fs.readFile(e,{encoding:"utf8"},(_,m)=>{s=m,p(_)}),this._fs.readFile(n,(_,m)=>{!_&&m&&m.length>0?(l=m.slice(0,16),a=m.slice(16),r.record(60,n)):r.record(61,n),p()})}}_verifyCachedData(e,n,r,i,s){i&&(e.cachedDataRejected||setTimeout(()=>{const a=this._crypto.createHash("md5").update(n,"utf8").digest();i.equals(a)||(s.getConfig().onError(new Error(`FAILED TO VERIFY CACHED DATA, deleting stale '${r}' now, but a RESTART IS REQUIRED`)),this._fs.unlink(r,l=>{l&&s.getConfig().onError(l)}))},Math.ceil(5e3*(1+Math.random()))))}}o._BOM=65279,o._PREFIX="(function (require, define, __filename, __dirname) { ",o._SUFFIX=`
});`;function g(t,e){if(e.__$__isRecorded)return e;const n=function(i){t.record(33,i);try{return e(i)}finally{t.record(34,i)}};return n.__$__isRecorded=!0,n}c.ensureRecordedNodeRequire=g;function h(t){return new v(t)}c.createScriptLoader=h})(AMDLoader||(AMDLoader={}));var AMDLoader;(function(c){class v{constructor(t){let e=t.lastIndexOf("/");e!==-1?this.fromModulePath=t.substr(0,e+1):this.fromModulePath=""}static _normalizeModuleId(t){let e=t,n;for(n=/\/\.\//;n.test(e);)e=e.replace(n,"/");for(e=e.replace(/^\.\//g,""),n=/\/(([^\/])|([^\/][^\/\.])|([^\/\.][^\/])|([^\/][^\/][^\/]+))\/\.\.\//;n.test(e);)e=e.replace(n,"/");return e=e.replace(/^(([^\/])|([^\/][^\/\.])|([^\/\.][^\/])|([^\/][^\/][^\/]+))\/\.\.\//,""),e}resolveModule(t){let e=t;return c.Utilities.isAbsolutePath(e)||(c.Utilities.startsWith(e,"./")||c.Utilities.startsWith(e,"../"))&&(e=v._normalizeModuleId(this.fromModulePath+e)),e}}v.ROOT=new v(""),c.ModuleIdResolver=v;class y{constructor(t,e,n,r,i,s){this.id=t,this.strId=e,this.dependencies=n,this._callback=r,this._errorback=i,this.moduleIdResolver=s,this.exports={},this.error=null,this.exportsPassedIn=!1,this.unresolvedDependenciesCount=this.dependencies.length,this._isComplete=!1}static _safeInvokeFunction(t,e){try{return{returnedValue:t.apply(c.global,e),producedError:null}}catch(n){return{returnedValue:null,producedError:n}}}static _invokeFactory(t,e,n,r){return t.shouldInvokeFactory(e)?t.shouldCatchError()?this._safeInvokeFunction(n,r):{returnedValue:n.apply(c.global,r),producedError:null}:{returnedValue:null,producedError:null}}complete(t,e,n,r){this._isComplete=!0;let i=null;if(this._callback)if(typeof this._callback=="function"){t.record(21,this.strId);let s=y._invokeFactory(e,this.strId,this._callback,n);i=s.producedError,t.record(22,this.strId),!i&&typeof s.returnedValue<"u"&&(!this.exportsPassedIn||c.Utilities.isEmpty(this.exports))&&(this.exports=s.returnedValue)}else this.exports=this._callback;if(i){let s=c.ensureError(i);s.phase="factory",s.moduleId=this.strId,s.neededBy=r(this.id),this.error=s,e.onError(s)}this.dependencies=null,this._callback=null,this._errorback=null,this.moduleIdResolver=null}onDependencyError(t){return this._isComplete=!0,this.error=t,this._errorback?(this._errorback(t),!0):!1}isComplete(){return this._isComplete}}c.Module=y;class f{constructor(){this._nextId=0,this._strModuleIdToIntModuleId=new Map,this._intModuleIdToStrModuleId=[],this.getModuleId("exports"),this.getModuleId("module"),this.getModuleId("require")}getMaxModuleId(){return this._nextId}getModuleId(t){let e=this._strModuleIdToIntModuleId.get(t);return typeof e>"u"&&(e=this._nextId++,this._strModuleIdToIntModuleId.set(t,e),this._intModuleIdToStrModuleId[e]=t),e}getStrModuleId(t){return this._intModuleIdToStrModuleId[t]}}class u{constructor(t){this.id=t}}u.EXPORTS=new u(0),u.MODULE=new u(1),u.REQUIRE=new u(2),c.RegularDependency=u;class o{constructor(t,e,n){this.id=t,this.pluginId=e,this.pluginParam=n}}c.PluginDependency=o;class g{constructor(t,e,n,r,i=0){this._env=t,this._scriptLoader=e,this._loaderAvailableTimestamp=i,this._defineFunc=n,this._requireFunc=r,this._moduleIdProvider=new f,this._config=new c.Configuration(this._env),this._hasDependencyCycle=!1,this._modules2=[],this._knownModules2=[],this._inverseDependencies2=[],this._inversePluginDependencies2=new Map,this._currentAnonymousDefineCall=null,this._recorder=null,this._buildInfoPath=[],this._buildInfoDefineStack=[],this._buildInfoDependencies=[],this._requireFunc.moduleManager=this}reset(){return new g(this._env,this._scriptLoader,this._defineFunc,this._requireFunc,this._loaderAvailableTimestamp)}getGlobalAMDDefineFunc(){return this._defineFunc}getGlobalAMDRequireFunc(){return this._requireFunc}static _findRelevantLocationInStack(t,e){let n=s=>s.replace(/\\/g,"/"),r=n(t),i=e.split(/\n/);for(let s=0;s<i.length;s++){let a=i[s].match(/(.*):(\d+):(\d+)\)?$/);if(a){let l=a[1],d=a[2],p=a[3],_=Math.max(l.lastIndexOf(" ")+1,l.lastIndexOf("(")+1);if(l=l.substr(_),l=n(l),l===r){let m={line:parseInt(d,10),col:parseInt(p,10)};return m.line===1&&(m.col-=53),m}}}throw new Error("Could not correlate define call site for needle "+t)}getBuildInfo(){if(!this._config.isBuild())return null;let t=[],e=0;for(let n=0,r=this._modules2.length;n<r;n++){let i=this._modules2[n];if(!i)continue;let s=this._buildInfoPath[i.id]||null,a=this._buildInfoDefineStack[i.id]||null,l=this._buildInfoDependencies[i.id];t[e++]={id:i.strId,path:s,defineLocation:s&&a?g._findRelevantLocationInStack(s,a):null,dependencies:l,shim:null,exports:i.exports}}return t}getRecorder(){return this._recorder||(this._config.shouldRecordStats()?this._recorder=new c.LoaderEventRecorder(this._loaderAvailableTimestamp):this._recorder=c.NullLoaderEventRecorder.INSTANCE),this._recorder}getLoaderEvents(){return this.getRecorder().getEvents()}enqueueDefineAnonymousModule(t,e){if(this._currentAnonymousDefineCall!==null)throw new Error("Can only have one anonymous define call per script file");let n=null;this._config.isBuild()&&(n=new Error("StackLocation").stack||null),this._currentAnonymousDefineCall={stack:n,dependencies:t,callback:e}}defineModule(t,e,n,r,i,s=new v(t)){let a=this._moduleIdProvider.getModuleId(t);if(this._modules2[a]){this._config.isDuplicateMessageIgnoredFor(t)||console.warn("Duplicate definition of module '"+t+"'");return}let l=new y(a,t,this._normalizeDependencies(e,s),n,r,s);this._modules2[a]=l,this._config.isBuild()&&(this._buildInfoDefineStack[a]=i,this._buildInfoDependencies[a]=(l.dependencies||[]).map(d=>this._moduleIdProvider.getStrModuleId(d.id))),this._resolve(l)}_normalizeDependency(t,e){if(t==="exports")return u.EXPORTS;if(t==="module")return u.MODULE;if(t==="require")return u.REQUIRE;let n=t.indexOf("!");if(n>=0){let r=e.resolveModule(t.substr(0,n)),i=e.resolveModule(t.substr(n+1)),s=this._moduleIdProvider.getModuleId(r+"!"+i),a=this._moduleIdProvider.getModuleId(r);return new o(s,a,i)}return new u(this._moduleIdProvider.getModuleId(e.resolveModule(t)))}_normalizeDependencies(t,e){let n=[],r=0;for(let i=0,s=t.length;i<s;i++)n[r++]=this._normalizeDependency(t[i],e);return n}_relativeRequire(t,e,n,r){if(typeof e=="string")return this.synchronousRequire(e,t);this.defineModule(c.Utilities.generateAnonymousModule(),e,n,r,null,t)}synchronousRequire(t,e=new v(t)){let n=this._normalizeDependency(t,e),r=this._modules2[n.id];if(!r)throw new Error("Check dependency list! Synchronous require cannot resolve module '"+t+"'. This is the first mention of this module!");if(!r.isComplete())throw new Error("Check dependency list! Synchronous require cannot resolve module '"+t+"'. This module has not been resolved completely yet.");if(r.error)throw r.error;return r.exports}configure(t,e){let n=this._config.shouldRecordStats();e?this._config=new c.Configuration(this._env,t):this._config=this._config.cloneAndMerge(t),this._config.shouldRecordStats()&&!n&&(this._recorder=null)}getConfig(){return this._config}_onLoad(t){if(this._currentAnonymousDefineCall!==null){let e=this._currentAnonymousDefineCall;this._currentAnonymousDefineCall=null,this.defineModule(this._moduleIdProvider.getStrModuleId(t),e.dependencies,e.callback,null,e.stack)}}_createLoadError(t,e){let n=this._moduleIdProvider.getStrModuleId(t),r=(this._inverseDependencies2[t]||[]).map(s=>this._moduleIdProvider.getStrModuleId(s));const i=c.ensureError(e);return i.phase="loading",i.moduleId=n,i.neededBy=r,i}_onLoadError(t,e){const n=this._createLoadError(t,e);this._modules2[t]||(this._modules2[t]=new y(t,this._moduleIdProvider.getStrModuleId(t),[],()=>{},null,null));let r=[];for(let a=0,l=this._moduleIdProvider.getMaxModuleId();a<l;a++)r[a]=!1;let i=!1,s=[];for(s.push(t),r[t]=!0;s.length>0;){let a=s.shift(),l=this._modules2[a];l&&(i=l.onDependencyError(n)||i);let d=this._inverseDependencies2[a];if(d)for(let p=0,_=d.length;p<_;p++){let m=d[p];r[m]||(s.push(m),r[m]=!0)}}i||this._config.onError(n)}_hasDependencyPath(t,e){let n=this._modules2[t];if(!n)return!1;let r=[];for(let s=0,a=this._moduleIdProvider.getMaxModuleId();s<a;s++)r[s]=!1;let i=[];for(i.push(n),r[t]=!0;i.length>0;){let a=i.shift().dependencies;if(a)for(let l=0,d=a.length;l<d;l++){let p=a[l];if(p.id===e)return!0;let _=this._modules2[p.id];_&&!r[p.id]&&(r[p.id]=!0,i.push(_))}}return!1}_findCyclePath(t,e,n){if(t===e||n===50)return[t];let r=this._modules2[t];if(!r)return null;let i=r.dependencies;if(i)for(let s=0,a=i.length;s<a;s++){let l=this._findCyclePath(i[s].id,e,n+1);if(l!==null)return l.push(t),l}return null}_createRequire(t){let e=(n,r,i)=>this._relativeRequire(t,n,r,i);return e.toUrl=n=>this._config.requireToUrl(t.resolveModule(n)),e.getStats=()=>this.getLoaderEvents(),e.hasDependencyCycle=()=>this._hasDependencyCycle,e.config=(n,r=!1)=>{this.configure(n,r)},e.__$__nodeRequire=c.global.nodeRequire,e}_loadModule(t){if(this._modules2[t]||this._knownModules2[t])return;this._knownModules2[t]=!0;let e=this._moduleIdProvider.getStrModuleId(t),n=this._config.moduleIdToPaths(e),r=/^@[^\/]+\/[^\/]+$/;this._env.isNode&&(e.indexOf("/")===-1||r.test(e))&&n.push("node|"+e);let i=-1,s=a=>{if(i++,i>=n.length)this._onLoadError(t,a);else{let l=n[i],d=this.getRecorder();if(this._config.isBuild()&&l==="empty:"){this._buildInfoPath[t]=l,this.defineModule(this._moduleIdProvider.getStrModuleId(t),[],null,null,null),this._onLoad(t);return}d.record(10,l),this._scriptLoader.load(this,l,()=>{this._config.isBuild()&&(this._buildInfoPath[t]=l),d.record(11,l),this._onLoad(t)},p=>{d.record(12,l),s(p)})}};s(null)}_loadPluginDependency(t,e){if(this._modules2[e.id]||this._knownModules2[e.id])return;this._knownModules2[e.id]=!0;let n=r=>{this.defineModule(this._moduleIdProvider.getStrModuleId(e.id),[],r,null,null)};n.error=r=>{this._config.onError(this._createLoadError(e.id,r))},t.load(e.pluginParam,this._createRequire(v.ROOT),n,this._config.getOptionsLiteral())}_resolve(t){let e=t.dependencies;if(e)for(let n=0,r=e.length;n<r;n++){let i=e[n];if(i===u.EXPORTS){t.exportsPassedIn=!0,t.unresolvedDependenciesCount--;continue}if(i===u.MODULE){t.unresolvedDependenciesCount--;continue}if(i===u.REQUIRE){t.unresolvedDependenciesCount--;continue}let s=this._modules2[i.id];if(s&&s.isComplete()){if(s.error){t.onDependencyError(s.error);return}t.unresolvedDependenciesCount--;continue}if(this._hasDependencyPath(i.id,t.id)){this._hasDependencyCycle=!0,console.warn("There is a dependency cycle between '"+this._moduleIdProvider.getStrModuleId(i.id)+"' and '"+this._moduleIdProvider.getStrModuleId(t.id)+"'. The cyclic path follows:");let a=this._findCyclePath(i.id,t.id,0)||[];a.reverse(),a.push(i.id),console.warn(a.map(l=>this._moduleIdProvider.getStrModuleId(l)).join(` =>
`)),t.unresolvedDependenciesCount--;continue}if(this._inverseDependencies2[i.id]=this._inverseDependencies2[i.id]||[],this._inverseDependencies2[i.id].push(t.id),i instanceof o){let a=this._modules2[i.pluginId];if(a&&a.isComplete()){this._loadPluginDependency(a.exports,i);continue}let l=this._inversePluginDependencies2.get(i.pluginId);l||(l=[],this._inversePluginDependencies2.set(i.pluginId,l)),l.push(i),this._loadModule(i.pluginId);continue}this._loadModule(i.id)}t.unresolvedDependenciesCount===0&&this._onModuleComplete(t)}_onModuleComplete(t){let e=this.getRecorder();if(t.isComplete())return;let n=t.dependencies,r=[];if(n)for(let l=0,d=n.length;l<d;l++){let p=n[l];if(p===u.EXPORTS){r[l]=t.exports;continue}if(p===u.MODULE){r[l]={id:t.strId,config:()=>this._config.getConfigForModule(t.strId)};continue}if(p===u.REQUIRE){r[l]=this._createRequire(t.moduleIdResolver);continue}let _=this._modules2[p.id];if(_){r[l]=_.exports;continue}r[l]=null}const i=l=>(this._inverseDependencies2[l]||[]).map(d=>this._moduleIdProvider.getStrModuleId(d));t.complete(e,this._config,r,i);let s=this._inverseDependencies2[t.id];if(this._inverseDependencies2[t.id]=null,s)for(let l=0,d=s.length;l<d;l++){let p=s[l],_=this._modules2[p];_.unresolvedDependenciesCount--,_.unresolvedDependenciesCount===0&&this._onModuleComplete(_)}let a=this._inversePluginDependencies2.get(t.id);if(a){this._inversePluginDependencies2.delete(t.id);for(let l=0,d=a.length;l<d;l++)this._loadPluginDependency(t.exports,a[l])}}}c.ModuleManager=g})(AMDLoader||(AMDLoader={}));var define,AMDLoader;(function(c){const v=new c.Environment;let y=null;const f=function(h,t,e){typeof h!="string"&&(e=t,t=h,h=null),(typeof t!="object"||!Array.isArray(t))&&(e=t,t=null),t||(t=["require","exports","module"]),h?y.defineModule(h,t,e,null,null):y.enqueueDefineAnonymousModule(t,e)};f.amd={jQuery:!0};const u=function(h,t=!1){y.configure(h,t)},o=function(){if(arguments.length===1){if(arguments[0]instanceof Object&&!Array.isArray(arguments[0])){u(arguments[0]);return}if(typeof arguments[0]=="string")return y.synchronousRequire(arguments[0])}if((arguments.length===2||arguments.length===3)&&Array.isArray(arguments[0])){y.defineModule(c.Utilities.generateAnonymousModule(),arguments[0],arguments[1],arguments[2],null);return}throw new Error("Unrecognized require call")};o.config=u,o.getConfig=function(){return y.getConfig().getOptionsLiteral()},o.reset=function(){y=y.reset()},o.getBuildInfo=function(){return y.getBuildInfo()},o.getStats=function(){return y.getLoaderEvents()},o.define=f;function g(){if(typeof c.global.require<"u"||typeof require<"u"){const h=c.global.require||require;if(typeof h=="function"&&typeof h.resolve=="function"){const t=c.ensureRecordedNodeRequire(y.getRecorder(),h);c.global.nodeRequire=t,o.nodeRequire=t,o.__$__nodeRequire=t}}v.isNode&&!v.isElectronRenderer&&!v.isElectronNodeIntegrationWebWorker?module.exports=o:(v.isElectronRenderer||(c.global.define=f),c.global.require=o)}c.init=g,(typeof c.global.define!="function"||!c.global.define.amd)&&(y=new c.ModuleManager(v,c.createScriptLoader(v),f,o,c.Utilities.getHighPerformanceTimestamp()),typeof c.global.require<"u"&&typeof c.global.require!="function"&&o.config(c.global.require),define=function(){return f.apply(null,arguments)},define.amd=f.amd,typeof doNotInitLoader>"u"&&g())})(AMDLoader||(AMDLoader={})),define("vs/css",["require","exports"],function(c,v){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.load=void 0;function y(h,t,e,n){if(n=n||{},(n["vs/css"]||{}).disabled){e({});return}const i=t.toUrl(h+".css");f(h,i,()=>{e({})},s=>{typeof e.error=="function"&&e.error("Could not find "+i+".")})}v.load=y;function f(h,t,e,n){if(u(h,t)){e();return}o(h,t,e,n)}function u(h,t){const e=window.document.getElementsByTagName("link");for(let n=0,r=e.length;n<r;n++){const i=e[n].getAttribute("data-name"),s=e[n].getAttribute("href");if(i===h||s===t)return!0}return!1}function o(h,t,e,n){const r=document.createElement("link");r.setAttribute("rel","stylesheet"),r.setAttribute("type","text/css"),r.setAttribute("data-name",h),g(h,r,e,n),r.setAttribute("href",t),(window.document.head||window.document.getElementsByTagName("head")[0]).appendChild(r)}function g(h,t,e,n){const r=()=>{t.removeEventListener("load",i),t.removeEventListener("error",s)},i=a=>{r(),e()},s=a=>{r(),n(a)};t.addEventListener("load",i),t.addEventListener("error",s)}}),define("vs/nls",["require","exports"],function(c,v){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.load=v.create=v.setPseudoTranslation=v.getConfiguredDefaultLocale=v.localize2=v.localize=void 0;let y=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;const f="i-default";function u(d,p){let _;return p.length===0?_=d:_=d.replace(/\{(\d+)\}/g,(m,b)=>{const C=b[0],E=p[C];let R=m;return typeof E=="string"?R=E:(typeof E=="number"||typeof E=="boolean"||E===void 0||E===null)&&(R=String(E)),R}),y&&(_="\uFF3B"+_.replace(/[aouei]/g,"$&$&")+"\uFF3D"),_}function o(d,p){let _=d[p];return _||(_=d["*"],_)?_:null}function g(d){return d.charAt(d.length-1)==="/"?d:d+"/"}async function h(d,p,_){const m=g(d)+g(p)+"vscode/"+g(_),b=await fetch(m);if(b.ok)return await b.json();throw new Error(`${b.status} - ${b.statusText}`)}function t(d){return function(p,_){const m=Array.prototype.slice.call(arguments,2);return u(d[p],m)}}function e(d){return(p,_,...m)=>({value:u(d[p],m),original:u(_,m)})}function n(d,p,..._){return u(p,_)}v.localize=n;function r(d,p,..._){const m=u(p,_);return{value:m,original:m}}v.localize2=r;function i(d){}v.getConfiguredDefaultLocale=i;function s(d){y=d}v.setPseudoTranslation=s;function a(d,p){return{localize:t(p[d]),localize2:e(p[d]),getConfiguredDefaultLocale:p.getConfiguredDefaultLocale??(_=>{})}}v.create=a;function l(d,p,_,m){const b=m["vs/nls"]??{};if(!d||d.length===0)return _({localize:n,localize2:r,getConfiguredDefaultLocale:()=>b.availableLanguages?.["*"]});const C=b.availableLanguages?o(b.availableLanguages,d):null,E=C===null||C===f;let R=".nls";E||(R=R+"."+C);const P=w=>{Array.isArray(w)?(w.localize=t(w),w.localize2=e(w)):(w.localize=t(w[d]),w.localize2=e(w[d])),w.getConfiguredDefaultLocale=()=>b.availableLanguages?.["*"],_(w)};typeof b.loadBundle=="function"?b.loadBundle(d,C,(w,I)=>{w?p([d+".nls"],P):P(I)}):b.translationServiceUrl&&!E?(async()=>{try{const w=await h(b.translationServiceUrl,C,d);return P(w)}catch(w){if(!C.includes("-"))return console.error(w),p([d+".nls"],P);try{const I=C.split("-")[0],D=await h(b.translationServiceUrl,I,d);return b.availableLanguages??={},b.availableLanguages["*"]=I,P(D)}catch(I){return console.error(I),p([d+".nls"],P)}}})():p([d+R],P,w=>{if(R===".nls"){console.error("Failed trying to load default language strings",w);return}console.error(`Failed to load message bundle for language ${C}. Falling back to the default language:`,w),p([d+".nls"],P)})}v.load=l}),function(c,v){typeof exports=="object"?module.exports=v():c.MonacoBootstrapWindow=v()}(this,function(){const c=g(),v=h(),y=v.process;async function f(t,e,n){const r=setTimeout(()=>{console.error("[resolve window config] Could not resolve window configuration within 10 seconds, but will continue to wait...")},1e4);performance.mark("code/willWaitForWindowConfig");const i=await v.context.resolveConfiguration();performance.mark("code/didWaitForWindowConfig"),clearTimeout(r),typeof n?.canModifyDOM=="function"&&n.canModifyDOM(i);const{forceEnableDeveloperKeybindings:s,disallowReloadKeybinding:a,removeDeveloperKeybindingsAfterLoad:l}=typeof n?.configureDeveloperSettings=="function"?n.configureDeveloperSettings(i):{forceEnableDeveloperKeybindings:!1,disallowReloadKeybinding:!1,removeDeveloperKeybindingsAfterLoad:!1},d=!!y.env.VSCODE_DEV,p=d||s;let _;p&&(_=u(a));const m=globalThis.MonacoBootstrap.setupNLS();let b=m.availableLanguages["*"]||"en";b==="zh-tw"?b="zh-Hant":b==="zh-cn"&&(b="zh-Hans"),window.document.documentElement.setAttribute("lang",b),window.MonacoEnvironment={};const C={baseUrl:`${c.fileUriFromPath(i.appRoot,{isWindows:y.platform==="win32",scheme:"vscode-file",fallbackAuthority:"vscode-app"})}/out`,"vs/nls":m,preferScriptTags:!0};C.trustedTypesPolicy=window.trustedTypes?.createPolicy("amdLoader",{createScriptURL(R){if(R.startsWith(window.location.origin))return R;throw new Error(`Invalid script url: ${R}`)}});const E=d?"../node_modules":"../node_modules.asar";C.paths={"vscode-textmate":`${E}/vscode-textmate/release/main.js`,"vscode-oniguruma":`${E}/vscode-oniguruma/release/main.js`,vsda:`${E}/vsda/index.js`,"@xterm/xterm":`${E}/@xterm/xterm/lib/xterm.js`,"@xterm/addon-canvas":`${E}/@xterm/addon-canvas/lib/addon-canvas.js`,"@xterm/addon-image":`${E}/@xterm/addon-image/lib/addon-image.js`,"@xterm/addon-search":`${E}/@xterm/addon-search/lib/addon-search.js`,"@xterm/addon-serialize":`${E}/@xterm/addon-serialize/lib/addon-serialize.js`,"@xterm/addon-unicode11":`${E}/@xterm/addon-unicode11/lib/addon-unicode11.js`,"@xterm/addon-webgl":`${E}/@xterm/addon-webgl/lib/addon-webgl.js`,"@vscode/iconv-lite-umd":`${E}/@vscode/iconv-lite-umd/lib/iconv-lite-umd.js`,jschardet:`${E}/jschardet/dist/jschardet.min.js`,"@vscode/vscode-languagedetection":`${E}/@vscode/vscode-languagedetection/dist/lib/index.js`,"vscode-regexp-languagedetection":`${E}/vscode-regexp-languagedetection/dist/index.js`,"tas-client-umd":`${E}/tas-client-umd/lib/tas-client-umd.js`},typeof n?.beforeLoaderConfig=="function"&&n.beforeLoaderConfig(C),require.config(C),m.pseudo&&require(["vs/nls"],function(R){R.setPseudoTranslation(m.pseudo)}),typeof n?.beforeRequire=="function"&&n.beforeRequire(i),require(t,async R=>{try{const P=e(R,i);P instanceof Promise&&(await P,_&&l&&_())}catch(P){o(P,p)}},o)}function u(t){const e=v.ipcRenderer,n=function(l){return[l.ctrlKey?"ctrl-":"",l.metaKey?"meta-":"",l.altKey?"alt-":"",l.shiftKey?"shift-":"",l.keyCode].join("")},r=y.platform==="darwin"?"meta-alt-73":"ctrl-shift-73",i="123",s=y.platform==="darwin"?"meta-82":"ctrl-82";let a=function(l){const d=n(l);d===r||d===i?e.send("vscode:toggleDevTools"):d===s&&!t&&e.send("vscode:reloadWindow")};return window.addEventListener("keydown",a),function(){a&&(window.removeEventListener("keydown",a),a=void 0)}}function o(t,e){e&&v.ipcRenderer.send("vscode:openDevTools"),console.error(`[uncaught exception]: ${t}`),t&&typeof t!="string"&&t.stack&&console.error(t.stack)}function g(){return window.MonacoBootstrap}function h(){return window.vscode}return{load:f}}),function(){"use strict";const c=v();performance.mark("code/didStartRenderer"),c.load(["vs/workbench/workbench.desktop.main","vs/nls!vs/workbench/workbench.desktop.main","vs/css!vs/workbench/workbench.desktop.main"],function(f,u){return performance.mark("code/didLoadWorkbenchMain"),f.main(u)},{configureDeveloperSettings:function(f){return{forceDisableShowDevtoolsOnError:typeof f.extensionTestsPath=="string"||f["enable-smoke-test-driver"]===!0,forceEnableDeveloperKeybindings:Array.isArray(f.extensionDevelopmentPath)&&f.extensionDevelopmentPath.length>0,removeDeveloperKeybindingsAfterLoad:!0}},canModifyDOM:function(f){y(f)},beforeLoaderConfig:function(f){f.recordStats=!0},beforeRequire:function(f){performance.mark("code/willLoadWorkbenchMain"),Object.defineProperty(window,"vscodeWindowId",{get:()=>f.windowId}),window.requestIdleCallback(()=>{const u=document.createElement("canvas");u.getContext("2d")?.clearRect(0,0,u.width,u.height),u.remove()},{timeout:50})}});function v(){return window.MonacoBootstrapWindow}function y(f){performance.mark("code/willShowPartsSplash");let u=f.partsSplash;u&&(f.autoDetectHighContrast&&f.colorScheme.highContrast?(f.colorScheme.dark&&u.baseTheme!=="hc-black"||!f.colorScheme.dark&&u.baseTheme!=="hc-light")&&(u=void 0):f.autoDetectColorScheme&&(f.colorScheme.dark&&u.baseTheme!=="vs-dark"||!f.colorScheme.dark&&u.baseTheme!=="vs")&&(u=void 0)),u&&f.extensionDevelopmentPath&&(u.layoutInfo=void 0);let o,g,h;u?(o=u.baseTheme,g=u.colorInfo.editorBackground,h=u.colorInfo.foreground):f.autoDetectHighContrast&&f.colorScheme.highContrast?f.colorScheme.dark?(o="hc-black",g="#000000",h="#FFFFFF"):(o="hc-light",g="#FFFFFF",h="#000000"):f.autoDetectColorScheme&&(f.colorScheme.dark?(o="vs-dark",g="#1E1E1E",h="#CCCCCC"):(o="vs",g="#FFFFFF",h="#000000"));const t=document.createElement("style");if(t.className="initialShellColors",document.head.appendChild(t),t.textContent=`body { background-color: ${g}; color: ${h}; margin: 0; padding: 0; }`,typeof u?.zoomLevel=="number"&&typeof globalThis.vscode?.webFrame?.setZoomLevel=="function"&&globalThis.vscode.webFrame.setZoomLevel(u.zoomLevel),u?.layoutInfo){const{layoutInfo:e,colorInfo:n}=u,r=document.createElement("div");r.id="monaco-parts-splash",r.className=o,e.windowBorder&&(r.style.position="relative",r.style.height="calc(100vh - 2px)",r.style.width="calc(100vw - 2px)",r.style.border="1px solid var(--window-border-color)",r.style.setProperty("--window-border-color",n.windowBorder),e.windowBorderRadius&&(r.style.borderRadius=e.windowBorderRadius)),e.sideBarWidth=Math.min(e.sideBarWidth,window.innerWidth-(e.activityBarWidth+e.editorPartMinWidth));const i=document.createElement("div");i.setAttribute("style",`position: absolute; width: 100%; left: 0; top: 0; height: ${e.titleBarHeight}px; background-color: ${n.titleBarBackground}; -webkit-app-region: drag;`),r.appendChild(i);const s=document.createElement("div");if(s.setAttribute("style",`position: absolute; height: calc(100% - ${e.titleBarHeight}px); top: ${e.titleBarHeight}px; ${e.sideBarSide}: 0; width: ${e.activityBarWidth}px; background-color: ${n.activityBarBackground};`),r.appendChild(s),f.workspace){const l=document.createElement("div");l.setAttribute("style",`position: absolute; height: calc(100% - ${e.titleBarHeight}px); top: ${e.titleBarHeight}px; ${e.sideBarSide}: ${e.activityBarWidth}px; width: ${e.sideBarWidth}px; background-color: ${n.sideBarBackground};`),r.appendChild(l)}const a=document.createElement("div");a.setAttribute("style",`position: absolute; width: 100%; bottom: 0; left: 0; height: ${e.statusBarHeight}px; background-color: ${f.workspace?n.statusBarBackground:n.statusBarNoFolderBackground};`),r.appendChild(a),document.body.appendChild(r)}performance.mark("code/didShowPartsSplash")}}();
//# sourceMappingURL=https://ticino.blob.core.windows.net/sourcemaps/903b1e9d8990623e3d7da1df3d33db3e42d80eda/core/vs/code/electron-sandbox/workbench/workbench.js.map