11 lines
32 KiB
JavaScript
11 lines
32 KiB
JavaScript
|
"use strict";/*!-----------------------------------------------------------
|
||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||
|
* Version: 0.36.1(6c56744c3419458f0dd48864520b759d1a3a1ca8)
|
||
|
* Released under the MIT license
|
||
|
* https://github.com/microsoft/vscode/blob/main/LICENSE.txt
|
||
|
*-----------------------------------------------------------*/var _amdLoaderGlobal=this,_commonjsGlobal=typeof global=="object"?global:{},AMDLoader;(function(l){l.global=_amdLoaderGlobal;var E=function(){function p(){this._detected=!1,this._isWindows=!1,this._isNode=!1,this._isElectronRenderer=!1,this._isWebWorker=!1,this._isElectronNodeIntegrationWebWorker=!1}return Object.defineProperty(p.prototype,"isWindows",{get:function(){return this._detect(),this._isWindows},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"isNode",{get:function(){return this._detect(),this._isNode},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"isElectronRenderer",{get:function(){return this._detect(),this._isElectronRenderer},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"isWebWorker",{get:function(){return this._detect(),this._isWebWorker},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"isElectronNodeIntegrationWebWorker",{get:function(){return this._detect(),this._isElectronNodeIntegrationWebWorker},enumerable:!1,configurable:!0}),p.prototype._detect=function(){this._detected||(this._detected=!0,this._isWindows=p._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 l.global.importScripts=="function",this._isElectronNodeIntegrationWebWorker=this._isWebWorker&&typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.electron<"u"&&process.type==="worker")},p._isWindows=function(){return typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.indexOf("Windows")>=0?!0:typeof process<"u"?process.platform==="win32":!1},p}();l.Environment=E})(AMDLoader||(AMDLoader={}));var AMDLoader;(function(l){var E=function(){function a(n,_,u){this.type=n,this.detail=_,this.timestamp=u}return a}();l.LoaderEvent=E;var p=function(){function a(n){this._events=[new E(1,"",n)]}return a.prototype.record=function(n,_){this._events.push(new E(n,_,l.Utilities.getHighPerformanceTimestamp()))},a.prototype.getEvents=function(){return this._events},a}();l.LoaderEventRecorder=p;var g=function(){function a(){}return a.prototype.record=function(n,_){},a.prototype.getEvents=function(){return[]},a.INSTANCE=new a,a}();l.NullLoaderEventRecorder=g})(AMDLoader||(AMDLoader={}));var AMDLoader;(function(l){var E=function(){function p(){}return p.fileUriToFilePath=function(g,a){if(a=decodeURI(a).replace(/%23/g,"#"),g){if(/^file:\/\/\//.test(a))return a.substr(8);if(/^file:\/\//.test(a))return a.substr(5)}else if(/^file:\/\//.test(a))return a.substr(7);return a},p.startsWith=function(g,a){return g.length>=a.length&&g.substr(0,a.length)===a},p.endsWith=function(g,a){return g.length>=a.length&&g.substr(g.length-a.length)===a},p.containsQueryString=function(g){return/^[^\#]*\?/gi.test(g)},p.isAbsolutePath=function(g){return/^((http:\/\/)|(https:\/\/)|(file:\/\/)|(\/))/.test(g)},p.forEachProperty=function(g,a){if(g){var n=void 0;for(n in g)g.hasOwnProperty(n)&&a(n,g[n])}},p.isEmpty=function(g){var a=!0;return p.forEachProperty(g,function(){a=!1}),a},p.recursiveClone=function(g){if(!g||typeof g!="object"||g instanceof RegExp||!Array.isArray(g)&&Object.getPrototypeOf(g)!==Object.prototype)return g;var a=Array.isArray(g)?[]:{};return p.forEachProperty(g,function(n,_){_&&typeof _=="object"?a[n]=p.recursiveClone(_):a[n]=_}),a},p.generateAnonymousModule=function(){return"===anonymous"+p.NEXT_ANONYMOUS_ID+++"==="},p.isAnonymousModule=function(g){return p.startsWith(g,"===anonymous")},p.getHighPerformanceTimestamp=function(){return this.PERFORMANCE_NOW_PROBED||(this.PERFORMANCE_NOW_PROBED=!0,this.HAS_PERFORMANCE_NOW=l.global.performance&&typeof l.global.performance.now=="function"),this.HAS_PERFORMANCE_NOW?l.global.performance.now():Date.now()},p.NEXT_ANONYMOUS_ID=1,p.PERFORMANCE_NOW_PROBED=!1,p.HAS_PERFORMANCE_NOW=!1,p}();l.Utilities=E})(AMDLoader||(AMDLoader={}));var AMDLoader;(function(l){function E(a){if(a instanceof Error)return
|
||
|
//# sourceURL=`+r;var m=h?self.eval(h.createScript("",v)):new Function(v);m.call(self),o()}).then(void 0,i);return}try{h&&(r=h.createScriptURL(r)),importScripts(r),o()}catch(v){i(v)}}},e}(),n=function(){function e(t){this._env=t,this._didInitialize=!1,this._didPatchNodeRequire=!1}return e.prototype._init=function(t){this._didInitialize||(this._didInitialize=!0,this._fs=t("fs"),this._vm=t("vm"),this._path=t("path"),this._crypto=t("crypto"))},e.prototype._initNodeRequire=function(t,r){var o=r.getConfig().getOptionsLiteral().nodeCachedData;if(!o||this._didPatchNodeRequire)return;this._didPatchNodeRequire=!0;var i=this,s=t("module");function f(c){var d=c.constructor,h=function(v){try{return c.require(v)}finally{}};return h.resolve=function(v,m){return d._resolveFilename(v,c,!1,m)},h.resolve.paths=function(v){return d._resolveLookupPaths(v,c)},h.main=process.mainModule,h.extensions=d._extensions,h.cache=d._cache,h}s.prototype._compile=function(c,d){var h=s.wrap(c.replace(/^#!.*/,"")),y=r.getRecorder(),v=i._getCachedDataPath(o,d),m={filename:d},b;try{var P=i._fs.readFileSync(v);b=P.slice(0,16),m.cachedData=P.slice(16),y.record(60,v)}catch{y.record(61,v)}var C=new i._vm.Script(h,m),I=C.runInThisContext(m),U=i._path.dirname(d),w=f(this),O=[this.exports,w,this,d,U,process,_commonjsGlobal,Buffer],R=I.apply(this.exports,O);return i._handleCachedData(C,h,v,!m.cachedData,r),i._verifyCachedData(C,h,v,b,r),R}},e.prototype.load=function(t,r,o,i){var s=this,f=t.getConfig().getOptionsLiteral(),c=_(t.getRecorder(),f.nodeRequire||l.global.nodeRequire),d=f.nodeInstrumenter||function(I){return I};this._init(c),this._initNodeRequire(c,t);var h=t.getRecorder();if(/^node\|/.test(r)){var y=r.split("|"),v=null;try{v=c(y[1])}catch(I){i(I);return}t.enqueueDefineAnonymousModule([],function(){return v}),o()}else{r=l.Utilities.fileUriToFilePath(this._env.isWindows,r);var m=this._path.normalize(r),b=this._getElectronRendererScriptPathOrUri(m),P=Boolean(f.nodeCachedData),C=P?this._getCachedDataPath(f.nodeCachedData,r):void 0;this._readSourceAndCachedData(m,C,h,function(I,U,w,O){if(I){i(I);return}var R;U.charCodeAt(0)===e._BOM?R=e._PREFIX+U.substring(1)+e._SUFFIX:R=e._PREFIX+U+e._SUFFIX,R=d(R,m);var q={filename:b,cachedData:w},N=s._createAndEvalScript(t,R,q,o,i);s._handleCachedData(N,R,C,P&&!w,t),s._verifyCachedData(N,R,C,O,t)})}},e.prototype._createAndEvalScript=function(t,r,o,i,s){var f=t.getRecorder();f.record(31,o.filename);var c=new this._vm.Script(r,o),d=c.runInThisContext(o),h=t.getGlobalAMDDefineFunc(),y=!1,v=function(){return y=!0,h.apply(null,arguments)};return v.amd=h.amd,d.call(l.global,t.getGlobalAMDRequireFunc(),v,o.filename,this._path.dirname(o.filename)),f.record(32,o.filename),y?i():s(new Error("Didn't receive define call in "+o.filename+"!")),c},e.prototype._getElectronRendererScriptPathOrUri=function(t){if(!this._env.isElectronRenderer)return t;var r=t.match(/^([a-z])\:(.*)/i);return r?"file:///"+(r[1].toUpperCase()+":"+r[2]).replace(/\\/g,"/"):"file://"+t},e.prototype._getCachedDataPath=function(t,r){var o=this._crypto.createHash("md5").update(r,"utf8").update(t.seed,"utf8").update(process.arch,"").digest("hex"),i=this._path.basename(r).replace(/\.js$/,"");return this._path.join(t.path,i+"-"+o+".code")},e.prototype._handleCachedData=function(t,r,o,i,s){var f=this;t.cachedDataRejected?this._fs.unlink(o,function(c){s.getRecorder().record(62,o),f._createAndWriteCachedData(t,r,o,s),c&&s.getConfig().onError(c)}):i&&this._createAndWriteCachedData(t,r,o,s)},e.prototype._createAndWriteCachedData=function(t,r,o,i){var s=this,f=Math.ceil(i.getConfig().getOptionsLiteral().nodeCachedData.writeDelay*(1+Math.random())),c=-1,d=0,h=void 0,y=function(){setTimeout(function(){h||(h=s._crypto.createHash("md5").update(r,"utf8").digest());var v=t.createCachedData();if(!(v.length===0||v.length===c||d>=5)){if(v.length<c){y();return}c=v.length,s._fs.writeFile(o,Buffer.concat([h,v]),function(m){m&&i.getConfig().onError(m),i.getRecorder().record(63,o),y()})}},f*Math.pow(4,d++))};y()},e.prototype._readSourceAndCachedData=function(t,r,o,i){if(!r)this._fs.readFile
|
||
|
});`,e}();function _(e,t){if(t.__$__isRecorded)return t;var r=function(i){e.record(33,i);try{return t(i)}finally{e.record(34,i)}};return r.__$__isRecorded=!0,r}l.ensureRecordedNodeRequire=_;function u(e){return new E(e)}l.createScriptLoader=u})(AMDLoader||(AMDLoader={}));var AMDLoader;(function(l){var E=function(){function u(e){var t=e.lastIndexOf("/");t!==-1?this.fromModulePath=e.substr(0,t+1):this.fromModulePath=""}return u._normalizeModuleId=function(e){var t=e,r;for(r=/\/\.\//;r.test(t);)t=t.replace(r,"/");for(t=t.replace(/^\.\//g,""),r=/\/(([^\/])|([^\/][^\/\.])|([^\/\.][^\/])|([^\/][^\/][^\/]+))\/\.\.\//;r.test(t);)t=t.replace(r,"/");return t=t.replace(/^(([^\/])|([^\/][^\/\.])|([^\/\.][^\/])|([^\/][^\/][^\/]+))\/\.\.\//,""),t},u.prototype.resolveModule=function(e){var t=e;return l.Utilities.isAbsolutePath(t)||(l.Utilities.startsWith(t,"./")||l.Utilities.startsWith(t,"../"))&&(t=u._normalizeModuleId(this.fromModulePath+t)),t},u.ROOT=new u(""),u}();l.ModuleIdResolver=E;var p=function(){function u(e,t,r,o,i,s){this.id=e,this.strId=t,this.dependencies=r,this._callback=o,this._errorback=i,this.moduleIdResolver=s,this.exports={},this.error=null,this.exportsPassedIn=!1,this.unresolvedDependenciesCount=this.dependencies.length,this._isComplete=!1}return u._safeInvokeFunction=function(e,t){try{return{returnedValue:e.apply(l.global,t),producedError:null}}catch(r){return{returnedValue:null,producedError:r}}},u._invokeFactory=function(e,t,r,o){return e.shouldInvokeFactory(t)?e.shouldCatchError()?this._safeInvokeFunction(r,o):{returnedValue:r.apply(l.global,o),producedError:null}:{returnedValue:null,producedError:null}},u.prototype.complete=function(e,t,r,o){this._isComplete=!0;var i=null;if(this._callback)if(typeof this._callback=="function"){e.record(21,this.strId);var s=u._invokeFactory(t,this.strId,this._callback,r);i=s.producedError,e.record(22,this.strId),!i&&typeof s.returnedValue<"u"&&(!this.exportsPassedIn||l.Utilities.isEmpty(this.exports))&&(this.exports=s.returnedValue)}else this.exports=this._callback;if(i){var f=l.ensureError(i);f.phase="factory",f.moduleId=this.strId,f.neededBy=o(this.id),this.error=f,t.onError(f)}this.dependencies=null,this._callback=null,this._errorback=null,this.moduleIdResolver=null},u.prototype.onDependencyError=function(e){return this._isComplete=!0,this.error=e,this._errorback?(this._errorback(e),!0):!1},u.prototype.isComplete=function(){return this._isComplete},u}();l.Module=p;var g=function(){function u(){this._nextId=0,this._strModuleIdToIntModuleId=new Map,this._intModuleIdToStrModuleId=[],this.getModuleId("exports"),this.getModuleId("module"),this.getModuleId("require")}return u.prototype.getMaxModuleId=function(){return this._nextId},u.prototype.getModuleId=function(e){var t=this._strModuleIdToIntModuleId.get(e);return typeof t>"u"&&(t=this._nextId++,this._strModuleIdToIntModuleId.set(e,t),this._intModuleIdToStrModuleId[t]=e),t},u.prototype.getStrModuleId=function(e){return this._intModuleIdToStrModuleId[e]},u}(),a=function(){function u(e){this.id=e}return u.EXPORTS=new u(0),u.MODULE=new u(1),u.REQUIRE=new u(2),u}();l.RegularDependency=a;var n=function(){function u(e,t,r){this.id=e,this.pluginId=t,this.pluginParam=r}return u}();l.PluginDependency=n;var _=function(){function u(e,t,r,o,i){i===void 0&&(i=0),this._env=e,this._scriptLoader=t,this._loaderAvailableTimestamp=i,this._defineFunc=r,this._requireFunc=o,this._moduleIdProvider=new g,this._config=new l.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=[]}return u.prototype.reset=function(){return new u(this._env,this._scriptLoader,this._defineFunc,this._requireFunc,this._loaderAvailableTimestamp)},u.prototype.getGlobalAMDDefineFunc=function(){return this._defineFunc},u.prototype.getGlobalAMDRequireFunc=function(){return this._requireFunc},u._findRelevantLocationInStack=function(e,
|
||
|
`)),e.unresolvedDependenciesCount--;continue}if(this._inverseDependencies2[s.id]=this._inverseDependencies2[s.id]||[],this._inverseDependencies2[s.id].push(e.id),s instanceof n){var d=this._modules2[s.pluginId];if(d&&d.isComplete()){this._loadPluginDependency(d.exports,s);continue}var h=this._inversePluginDependencies2.get(s.pluginId);h||(h=[],this._inversePluginDependencies2.set(s.pluginId,h)),h.push(s),this._loadModule(s.pluginId);continue}this._loadModule(s.id)}e.unresolvedDependenciesCount===0&&this._onModuleComplete(e)},u.prototype._onModuleComplete=function(e){var t=this,r=this.getRecorder();if(!e.isComplete()){var o=e.dependencies,i=[];if(o)for(var s=0,f=o.length;s<f;s++){var c=o[s];if(c===a.EXPORTS){i[s]=e.exports;continue}if(c===a.MODULE){i[s]={id:e.strId,config:function(){return t._config.getConfigForModule(e.strId)}};continue}if(c===a.REQUIRE){i[s]=this._createRequire(e.moduleIdResolver);continue}var d=this._modules2[c.id];if(d){i[s]=d.exports;continue}i[s]=null}var h=function(P){return(t._inverseDependencies2[P]||[]).map(function(C){return t._moduleIdProvider.getStrModuleId(C)})};e.complete(r,this._config,i,h);var y=this._inverseDependencies2[e.id];if(this._inverseDependencies2[e.id]=null,y)for(var s=0,f=y.length;s<f;s++){var v=y[s],m=this._modules2[v];m.unresolvedDependenciesCount--,m.unresolvedDependenciesCount===0&&this._onModuleComplete(m)}var b=this._inversePluginDependencies2.get(e.id);if(b){this._inversePluginDependencies2.delete(e.id);for(var s=0,f=b.length;s<f;s++)this._loadPluginDependency(e.exports,b[s])}}},u}();l.ModuleManager=_})(AMDLoader||(AMDLoader={}));var define,AMDLoader;(function(l){var E=new l.Environment,p=null,g=function(u,e,t){typeof u!="string"&&(t=e,e=u,u=null),(typeof e!="object"||!Array.isArray(e))&&(t=e,e=null),e||(e=["require","exports","module"]),u?p.defineModule(u,e,t,null,null):p.enqueueDefineAnonymousModule(e,t)};g.amd={jQuery:!0};var a=function(u,e){e===void 0&&(e=!1),p.configure(u,e)},n=function(){if(arguments.length===1){if(arguments[0]instanceof Object&&!Array.isArray(arguments[0])){a(arguments[0]);return}if(typeof arguments[0]=="string")return p.synchronousRequire(arguments[0])}if((arguments.length===2||arguments.length===3)&&Array.isArray(arguments[0])){p.defineModule(l.Utilities.generateAnonymousModule(),arguments[0],arguments[1],arguments[2],null);return}throw new Error("Unrecognized require call")};n.config=a,n.getConfig=function(){return p.getConfig().getOptionsLiteral()},n.reset=function(){p=p.reset()},n.getBuildInfo=function(){return p.getBuildInfo()},n.getStats=function(){return p.getLoaderEvents()},n.define=g;function _(){if(typeof l.global.require<"u"||typeof require<"u"){var u=l.global.require||require;if(typeof u=="function"&&typeof u.resolve=="function"){var e=l.ensureRecordedNodeRequire(p.getRecorder(),u);l.global.nodeRequire=e,n.nodeRequire=e,n.__$__nodeRequire=e}}E.isNode&&!E.isElectronRenderer&&!E.isElectronNodeIntegrationWebWorker?module.exports=n:(E.isElectronRenderer||(l.global.define=g),l.global.require=n)}l.init=_,(typeof l.global.define!="function"||!l.global.define.amd)&&(p=new l.ModuleManager(E,l.createScriptLoader(E),g,n,l.Utilities.getHighPerformanceTimestamp()),typeof l.global.require<"u"&&typeof l.global.require!="function"&&n.config(l.global.require),define=function(){return g.apply(null,arguments)},define.amd=g.amd,typeof doNotInitLoader>"u"&&_())})(AMDLoader||(AMDLoader={}));
|
||
|
|
||
|
//# sourceMappingURL=../../min-maps/vs/loader.js.map
|