pxt-core
Version:
Microsoft MakeCode provides Blocks / JavaScript / Python tools and editors
11 lines (10 loc) • 179 kB
JavaScript
/*!-----------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.24.0(89cdf8577cdd4881a366f9f7ef6abaa78453fd4b)
* Released under the MIT license
* https://github.com/microsoft/vscode/blob/main/LICENSE.txt
*-----------------------------------------------------------*/(function(){var z=["require","exports","vs/base/common/platform","vs/editor/common/core/position","vs/base/common/errors","vs/base/common/strings","vs/editor/common/core/range","vs/base/common/lifecycle","vs/base/common/stopwatch","vs/base/common/event","vs/base/common/diff/diff","vs/base/common/types","vs/base/common/uint","vs/base/common/uri","vs/base/common/diff/diffChange","vs/base/common/iterator","vs/base/common/keyCodes","vs/base/common/linkedList","vs/base/common/process","vs/base/common/path","vs/base/common/cancellation","vs/base/common/hash","vs/editor/common/core/characterClassifier","vs/editor/common/core/selection","vs/editor/common/core/token","vs/editor/common/diff/diffComputer","vs/editor/common/model/wordHelper","vs/editor/common/modes/linkComputer","vs/editor/common/modes/supports/inplaceReplaceSupport","vs/editor/common/standalone/standaloneEnums","vs/editor/common/standalone/standaloneBase","vs/editor/common/viewModel/prefixSumComputer","vs/editor/common/model/mirrorTextModel","vs/base/common/worker/simpleWorker","vs/editor/common/services/editorSimpleWorker"],G=function(I){for(var t=[],E=0,M=I.length;E<M;E++)t[E]=z[I[E]];return t};"use strict";var ce=this,fe=typeof global=="object"?global:{},X;(function(I){I.global=ce;var t=function(){function E(){this._detected=!1,this._isWindows=!1,this._isNode=!1,this._isElectronRenderer=!1,this._isWebWorker=!1}return Object.defineProperty(E.prototype,"isWindows",{get:function(){return this._detect(),this._isWindows},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"isNode",{get:function(){return this._detect(),this._isNode},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"isElectronRenderer",{get:function(){return this._detect(),this._isElectronRenderer},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"isWebWorker",{get:function(){return this._detect(),this._isWebWorker},enumerable:!1,configurable:!0}),E.prototype._detect=function(){this._detected||(this._detected=!0,this._isWindows=E._isWindows(),this._isNode=typeof module!="undefined"&&!!module.exports,this._isElectronRenderer=typeof process!="undefined"&&typeof process.versions!="undefined"&&typeof process.versions.electron!="undefined"&&process.type==="renderer",this._isWebWorker=typeof I.global.importScripts=="function")},E._isWindows=function(){return typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.indexOf("Windows")>=0?!0:typeof process!="undefined"?process.platform==="win32":!1},E}();I.Environment=t})(X||(X={}));var X;(function(I){var t=function(){function p(o,h,u){this.type=o,this.detail=h,this.timestamp=u}return p}();I.LoaderEvent=t;var E=function(){function p(o){this._events=[new t(1,"",o)]}return p.prototype.record=function(o,h){this._events.push(new t(o,h,I.Utilities.getHighPerformanceTimestamp()))},p.prototype.getEvents=function(){return this._events},p}();I.LoaderEventRecorder=E;var M=function(){function p(){}return p.prototype.record=function(o,h){},p.prototype.getEvents=function(){return[]},p.INSTANCE=new p,p}();I.NullLoaderEventRecorder=M})(X||(X={}));var X;(function(I){var t=function(){function E(){}return E.fileUriToFilePath=function(M,p){if(p=decodeURI(p).replace(/%23/g,"#"),M){if(/^file:\/\/\//.test(p))return p.substr(8);if(/^file:\/\//.test(p))return p.substr(5)}else if(/^file:\/\//.test(p))return p.substr(7);return p},E.startsWith=function(M,p){return M.length>=p.length&&M.substr(0,p.length)===p},E.endsWith=function(M,p){return M.length>=p.length&&M.substr(M.length-p.length)===p},E.containsQueryString=function(M){return/^[^\#]*\?/gi.test(M)},E.isAbsolutePath=function(M){return/^((http:\/\/)|(https:\/\/)|(file:\/\/)|(\/))/.test(M)},E.forEachProperty=function(M,p){if(M){var o=void 0;for(o in M)M.hasOwnProperty(o)&&p(o,M[o])}},E.isEmpty=function(M){var p=!0;return E.forEachProperty(M,function(){p=!1}),p},E.recursiveClone=function(M){if(!M||typeof M!="object"||M instanceof RegExp||!Array.isArray(M)&&Object.getPrototypeOf(M)!==Object.prototype)return M;var p=Array.isArray(M)?[]:{};return E.forEachProperty(M,function(o,h){h&&typeof h=="object"?p[o]=E.recursiveClone(h):p[o]=h}),p},E.generateAnonymousModule=function(){return"===anonymous"+E.NEXT_ANONYMOUS_ID+++"==="},E.isAnonymousModule=function(M){return E.startsWith(M,"===anonymous")},E.getHighPerformanceTimestamp=function(){return this.PERFORMANCE_NOW_PROBED||(this.PERFORMANCE_NOW_PROBED=!0,this.HAS_PERFORMANCE_NOW=I.global.performance&&typeof I.global.performance.now=="function"),this.HAS_PERFORMANCE_NOW?I.global.performance.now():Date.now()},E.NEXT_ANONYMOUS_ID=1,E.PERFORMANCE_NOW_PROBED=!1,E.HAS_PERFORMANCE_NOW=!1,E}();I.Utilities=t})(X||(X={}));var X;(function(I){function t(p){if(p instanceof Error)return p;var o=new Error(p.message||String(p)||"Unknown Error");return p.stack&&(o.stack=p.stack),o}I.ensureError=t;var E=function(){function p(){}return p.validateConfigurationOptions=function(o){function h(s){if(s.phase==="loading"){console.error('Loading "'+s.moduleId+'" failed'),console.error(s),console.error("Here are the modules that depend on it:"),console.error(s.neededBy);return}if(s.phase==="factory"){console.error('The factory method of "'+s.moduleId+'" has thrown an exception'),console.error(s);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=="undefined"&&(o.catchError=!1),typeof o.recordStats=="undefined"&&(o.recordStats=!1),typeof o.urlArgs!="string"&&(o.urlArgs=""),typeof o.onError!="function"&&(o.onError=h),Array.isArray(o.ignoreDuplicateModules)||(o.ignoreDuplicateModules=[]),o.baseUrl.length>0&&(I.Utilities.endsWith(o.baseUrl,"/")||(o.baseUrl+="/")),typeof o.cspNonce!="string"&&(o.cspNonce=""),typeof o.preferScriptTags=="undefined"&&(o.preferScriptTags=!1),Array.isArray(o.nodeModules)||(o.nodeModules=[]),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")){var u=t(new Error("INVALID cached data configuration, 'path' MUST be set"));u.phase="configuration",o.onError(u),o.nodeCachedData=void 0}return o},p.mergeConfigurationOptions=function(o,h){o===void 0&&(o=null),h===void 0&&(h=null);var u=I.Utilities.recursiveClone(h||{});return I.Utilities.forEachProperty(o,function(s,f){s==="ignoreDuplicateModules"&&typeof u.ignoreDuplicateModules!="undefined"?u.ignoreDuplicateModules=u.ignoreDuplicateModules.concat(f):s==="paths"&&typeof u.paths!="undefined"?I.Utilities.forEachProperty(f,function(S,a){return u.paths[S]=a}):s==="config"&&typeof u.config!="undefined"?I.Utilities.forEachProperty(f,function(S,a){return u.config[S]=a}):u[s]=I.Utilities.recursiveClone(f)}),p.validateConfigurationOptions(u)},p}();I.ConfigurationOptionsUtil=E;var M=function(){function p(o,h){if(this._env=o,this.options=E.mergeConfigurationOptions(h),this._createIgnoreDuplicateModulesMap(),this._createNodeModulesMap(),this._createSortedPathsRules(),this.options.baseUrl===""){if(this.options.nodeRequire&&this.options.nodeRequire.main&&this.options.nodeRequire.main.filename&&this._env.isNode){var u=this.options.nodeRequire.main.filename,s=Math.max(u.lastIndexOf("/"),u.lastIndexOf("\\"));this.options.baseUrl=u.substring(0,s+1)}if(this.options.nodeMain&&this._env.isNode){var u=this.options.nodeMain,s=Math.max(u.lastIndexOf("/"),u.lastIndexOf("\\"));this.options.baseUrl=u.substring(0,s+1)}}}return p.prototype._createIgnoreDuplicateModulesMap=function(){this.ignoreDuplicateModulesMap={};for(var o=0;o<this.options.ignoreDuplicateModules.length;o++)this.ignoreDuplicateModulesMap[this.options.ignoreDuplicateModules[o]]=!0},p.prototype._createNodeModulesMap=function(){this.nodeModulesMap=Object.create(null);for(var o=0,h=this.options.nodeModules;o<h.length;o++){var u=h[o];this.nodeModulesMap[u]=!0}},p.prototype._createSortedPathsRules=function(){var o=this;this.sortedPathsRules=[],I.Utilities.forEachProperty(this.options.paths,function(h,u){Array.isArray(u)?o.sortedPathsRules.push({from:h,to:u}):o.sortedPathsRules.push({from:h,to:[u]})}),this.sortedPathsRules.sort(function(h,u){return u.from.length-h.from.length})},p.prototype.cloneAndMerge=function(o){return new p(this._env,E.mergeConfigurationOptions(o,this.options))},p.prototype.getOptionsLiteral=function(){return this.options},p.prototype._applyPaths=function(o){for(var h,u=0,s=this.sortedPathsRules.length;u<s;u++)if(h=this.sortedPathsRules[u],I.Utilities.startsWith(o,h.from)){for(var f=[],S=0,a=h.to.length;S<a;S++)f.push(h.to[S]+o.substr(h.from.length));return f}return[o]},p.prototype._addUrlArgsToUrl=function(o){return I.Utilities.containsQueryString(o)?o+"&"+this.options.urlArgs:o+"?"+this.options.urlArgs},p.prototype._addUrlArgsIfNecessaryToUrl=function(o){return this.options.urlArgs?this._addUrlArgsToUrl(o):o},p.prototype._addUrlArgsIfNecessaryToUrls=function(o){if(this.options.urlArgs)for(var h=0,u=o.length;h<u;h++)o[h]=this._addUrlArgsToUrl(o[h]);return o},p.prototype.moduleIdToPaths=function(o){var h=this.nodeModulesMap[o]===!0||this.options.amdModulesPattern instanceof RegExp&&!this.options.amdModulesPattern.test(o);if(h)return this.isBuild()?["empty:"]:["node|"+o];var u=o,s;if(!I.Utilities.endsWith(u,".js")&&!I.Utilities.isAbsolutePath(u)){s=this._applyPaths(u);for(var f=0,S=s.length;f<S;f++)this.isBuild()&&s[f]==="empty:"||(I.Utilities.isAbsolutePath(s[f])||(s[f]=this.options.baseUrl+s[f]),!I.Utilities.endsWith(s[f],".js")&&!I.Utilities.containsQueryString(s[f])&&(s[f]=s[f]+".js"))}else!I.Utilities.endsWith(u,".js")&&!I.Utilities.containsQueryString(u)&&(u=u+".js"),s=[u];return this._addUrlArgsIfNecessaryToUrls(s)},p.prototype.requireToUrl=function(o){var h=o;return I.Utilities.isAbsolutePath(h)||(h=this._applyPaths(h)[0],I.Utilities.isAbsolutePath(h)||(h=this.options.baseUrl+h)),this._addUrlArgsIfNecessaryToUrl(h)},p.prototype.isBuild=function(){return this.options.isBuild},p.prototype.isDuplicateMessageIgnoredFor=function(o){return this.ignoreDuplicateModulesMap.hasOwnProperty(o)},p.prototype.getConfigForModule=function(o){if(this.options.config)return this.options.config[o]},p.prototype.shouldCatchError=function(){return this.options.catchError},p.prototype.shouldRecordStats=function(){return this.options.recordStats},p.prototype.onError=function(o){this.options.onError(o)},p}();I.Configuration=M})(X||(X={}));var X;(function(I){var t=function(){function u(s){this._env=s,this._scriptLoader=null,this._callbackMap={}}return u.prototype.load=function(s,f,S,a){var _=this;if(!this._scriptLoader)if(this._env.isWebWorker)this._scriptLoader=new M;else if(this._env.isElectronRenderer){var m=s.getConfig().getOptionsLiteral().preferScriptTags;m?this._scriptLoader=new E:this._scriptLoader=new p(this._env)}else this._env.isNode?this._scriptLoader=new p(this._env):this._scriptLoader=new E;var g={callback:S,errorback:a};if(this._callbackMap.hasOwnProperty(f)){this._callbackMap[f].push(g);return}this._callbackMap[f]=[g],this._scriptLoader.load(s,f,function(){return _.triggerCallback(f)},function(i){return _.triggerErrorback(f,i)})},u.prototype.triggerCallback=function(s){var f=this._callbackMap[s];delete this._callbackMap[s];for(var S=0;S<f.length;S++)f[S].callback()},u.prototype.triggerErrorback=function(s,f){var S=this._callbackMap[s];delete this._callbackMap[s];for(var a=0;a<S.length;a++)S[a].errorback(f)},u}(),E=function(){function u(){}return u.prototype.attachListeners=function(s,f,S){var a=function(){s.removeEventListener("load",_),s.removeEventListener("error",m)},_=function(g){a(),f()},m=function(g){a(),S(g)};s.addEventListener("load",_),s.addEventListener("error",m)},u.prototype.load=function(s,f,S,a){if(/^node\|/.test(f)){var _=s.getConfig().getOptionsLiteral(),m=o(s.getRecorder(),_.nodeRequire||I.global.nodeRequire),g=f.split("|"),i=null;try{i=m(g[1])}catch(n){a(n);return}s.enqueueDefineAnonymousModule([],function(){return i}),S()}else{var r=document.createElement("script");r.setAttribute("async","async"),r.setAttribute("type","text/javascript"),this.attachListeners(r,S,a);var d=s.getConfig().getOptionsLiteral().trustedTypesPolicy;d&&(f=d.createScriptURL(f)),r.setAttribute("src",f);var v=s.getConfig().getOptionsLiteral().cspNonce;v&&r.setAttribute("nonce",v),document.getElementsByTagName("head")[0].appendChild(r)}},u}(),M=function(){function u(){}return u.prototype.load=function(s,f,S,a){var _=s.getConfig().getOptionsLiteral().trustedTypesPolicy,m=/^((http:)|(https:)|(file:))/.test(f)&&f.substring(0,self.origin.length)!==self.origin;if(!m){fetch(f).then(function(g){if(g.status!==200)throw new Error(g.statusText);return g.text()}).then(function(g){g=g+`
//# sourceURL=`+f;var i=_?self.eval(_.createScript("",g)):new Function(g);i.call(self),S()}).then(void 0,a);return}try{_&&(f=_.createScriptURL(f)),importScripts(f),S()}catch(g){a(g)}},u}(),p=function(){function u(s){this._env=s,this._didInitialize=!1,this._didPatchNodeRequire=!1}return u.prototype._init=function(s){this._didInitialize||(this._didInitialize=!0,this._fs=s("fs"),this._vm=s("vm"),this._path=s("path"),this._crypto=s("crypto"))},u.prototype._initNodeRequire=function(s,f){var S=f.getConfig().getOptionsLiteral().nodeCachedData;if(!!S&&!this._didPatchNodeRequire){this._didPatchNodeRequire=!0;var a=this,_=s("module");function m(g){var i=g.constructor,r=function(v){try{return g.require(v)}finally{}};return r.resolve=function(v,n){return i._resolveFilename(v,g,!1,n)},r.resolve.paths=function(v){return i._resolveLookupPaths(v,g)},r.main=process.mainModule,r.extensions=i._extensions,r.cache=i._cache,r}_.prototype._compile=function(g,i){var r=_.wrap(g.replace(/^#!.*/,"")),d=f.getRecorder(),v=a._getCachedDataPath(S,i),n={filename:i},l;try{var c=a._fs.readFileSync(v);l=c.slice(0,16),n.cachedData=c.slice(16),d.record(60,v)}catch(R){d.record(61,v)}var b=new a._vm.Script(r,n),L=b.runInThisContext(n),C=a._path.dirname(i),w=m(this),N=[this.exports,w,this,i,C,process,fe,Buffer],y=L.apply(this.exports,N);return a._handleCachedData(b,r,v,!n.cachedData,f),a._verifyCachedData(b,r,v,l,f),y}}},u.prototype.load=function(s,f,S,a){var _=this,m=s.getConfig().getOptionsLiteral(),g=o(s.getRecorder(),m.nodeRequire||I.global.nodeRequire),i=m.nodeInstrumenter||function(L){return L};this._init(g),this._initNodeRequire(g,s);var r=s.getRecorder();if(/^node\|/.test(f)){var d=f.split("|"),v=null;try{v=g(d[1])}catch(L){a(L);return}s.enqueueDefineAnonymousModule([],function(){return v}),S()}else{f=I.Utilities.fileUriToFilePath(this._env.isWindows,f);var n=this._path.normalize(f),l=this._getElectronRendererScriptPathOrUri(n),c=Boolean(m.nodeCachedData),b=c?this._getCachedDataPath(m.nodeCachedData,f):void 0;this._readSourceAndCachedData(n,b,r,function(L,C,w,N){if(L){a(L);return}var y;C.charCodeAt(0)===u._BOM?y=u._PREFIX+C.substring(1)+u._SUFFIX:y=u._PREFIX+C+u._SUFFIX,y=i(y,n);var R={filename:l,cachedData:w},D=_._createAndEvalScript(s,y,R,S,a);_._handleCachedData(D,y,b,c&&!w,s),_._verifyCachedData(D,y,b,N,s)})}},u.prototype._createAndEvalScript=function(s,f,S,a,_){var m=s.getRecorder();m.record(31,S.filename);var g=new this._vm.Script(f,S),i=g.runInThisContext(S),r=s.getGlobalAMDDefineFunc(),d=!1,v=function(){return d=!0,r.apply(null,arguments)};return v.amd=r.amd,i.call(I.global,s.getGlobalAMDRequireFunc(),v,S.filename,this._path.dirname(S.filename)),m.record(32,S.filename),d?a():_(new Error("Didn't receive define call in "+S.filename+"!")),g},u.prototype._getElectronRendererScriptPathOrUri=function(s){if(!this._env.isElectronRenderer)return s;var f=s.match(/^([a-z])\:(.*)/i);return f?"file:///"+(f[1].toUpperCase()+":"+f[2]).replace(/\\/g,"/"):"file://"+s},u.prototype._getCachedDataPath=function(s,f){var S=this._crypto.createHash("md5").update(f,"utf8").update(s.seed,"utf8").update(process.arch,"").digest("hex"),a=this._path.basename(f).replace(/\.js$/,"");return this._path.join(s.path,a+"-"+S+".code")},u.prototype._handleCachedData=function(s,f,S,a,_){var m=this;s.cachedDataRejected?this._fs.unlink(S,function(g){_.getRecorder().record(62,S),m._createAndWriteCachedData(s,f,S,_),g&&_.getConfig().onError(g)}):a&&this._createAndWriteCachedData(s,f,S,_)},u.prototype._createAndWriteCachedData=function(s,f,S,a){var _=this,m=Math.ceil(a.getConfig().getOptionsLiteral().nodeCachedData.writeDelay*(1+Math.random())),g=-1,i=0,r=void 0,d=function(){setTimeout(function(){r||(r=_._crypto.createHash("md5").update(f,"utf8").digest());var v=s.createCachedData();if(!(v.length===0||v.length===g||i>=5)){if(v.length<g){d();return}g=v.length,_._fs.writeFile(S,Buffer.concat([r,v]),function(n){n&&a.getConfig().onError(n),a.getRecorder().record(63,S),d()})}},m*Math.pow(4,i++))};d()},u.prototype._readSourceAndCachedData=function(s,f,S,a){if(!f)this._fs.readFile(s,{encoding:"utf8"},a);else{var _=void 0,m=void 0,g=void 0,i=2,r=function(d){d?a(d):--i==0&&a(void 0,_,m,g)};this._fs.readFile(s,{encoding:"utf8"},function(d,v){_=v,r(d)}),this._fs.readFile(f,function(d,v){!d&&v&&v.length>0?(g=v.slice(0,16),m=v.slice(16),S.record(60,f)):S.record(61,f),r()})}},u.prototype._verifyCachedData=function(s,f,S,a,_){var m=this;!a||s.cachedDataRejected||setTimeout(function(){var g=m._crypto.createHash("md5").update(f,"utf8").digest();a.equals(g)||(_.getConfig().onError(new Error("FAILED TO VERIFY CACHED DATA, deleting stale '"+S+"' now, but a RESTART IS REQUIRED")),m._fs.unlink(S,function(i){i&&_.getConfig().onError(i)}))},Math.ceil(5e3*(1+Math.random())))},u._BOM=65279,u._PREFIX="(function (require, define, __filename, __dirname) { ",u._SUFFIX=`
});`,u}();function o(u,s){if(s.__$__isRecorded)return s;var f=function(a){u.record(33,a);try{return s(a)}finally{u.record(34,a)}};return f.__$__isRecorded=!0,f}I.ensureRecordedNodeRequire=o;function h(u){return new t(u)}I.createScriptLoader=h})(X||(X={}));var X;(function(I){var t=function(){function u(s){var f=s.lastIndexOf("/");f!==-1?this.fromModulePath=s.substr(0,f+1):this.fromModulePath=""}return u._normalizeModuleId=function(s){var f=s,S;for(S=/\/\.\//;S.test(f);)f=f.replace(S,"/");for(f=f.replace(/^\.\//g,""),S=/\/(([^\/])|([^\/][^\/\.])|([^\/\.][^\/])|([^\/][^\/][^\/]+))\/\.\.\//;S.test(f);)f=f.replace(S,"/");return f=f.replace(/^(([^\/])|([^\/][^\/\.])|([^\/\.][^\/])|([^\/][^\/][^\/]+))\/\.\.\//,""),f},u.prototype.resolveModule=function(s){var f=s;return I.Utilities.isAbsolutePath(f)||(I.Utilities.startsWith(f,"./")||I.Utilities.startsWith(f,"../"))&&(f=u._normalizeModuleId(this.fromModulePath+f)),f},u.ROOT=new u(""),u}();I.ModuleIdResolver=t;var E=function(){function u(s,f,S,a,_,m){this.id=s,this.strId=f,this.dependencies=S,this._callback=a,this._errorback=_,this.moduleIdResolver=m,this.exports={},this.error=null,this.exportsPassedIn=!1,this.unresolvedDependenciesCount=this.dependencies.length,this._isComplete=!1}return u._safeInvokeFunction=function(s,f){try{return{returnedValue:s.apply(I.global,f),producedError:null}}catch(S){return{returnedValue:null,producedError:S}}},u._invokeFactory=function(s,f,S,a){return s.isBuild()&&!I.Utilities.isAnonymousModule(f)?{returnedValue:null,producedError:null}:s.shouldCatchError()?this._safeInvokeFunction(S,a):{returnedValue:S.apply(I.global,a),producedError:null}},u.prototype.complete=function(s,f,S){this._isComplete=!0;var a=null;if(this._callback)if(typeof this._callback=="function"){s.record(21,this.strId);var _=u._invokeFactory(f,this.strId,this._callback,S);a=_.producedError,s.record(22,this.strId),!a&&typeof _.returnedValue!="undefined"&&(!this.exportsPassedIn||I.Utilities.isEmpty(this.exports))&&(this.exports=_.returnedValue)}else this.exports=this._callback;if(a){var m=I.ensureError(a);m.phase="factory",m.moduleId=this.strId,this.error=m,f.onError(m)}this.dependencies=null,this._callback=null,this._errorback=null,this.moduleIdResolver=null},u.prototype.onDependencyError=function(s){return this._isComplete=!0,this.error=s,this._errorback?(this._errorback(s),!0):!1},u.prototype.isComplete=function(){return this._isComplete},u}();I.Module=E;var M=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(s){var f=this._strModuleIdToIntModuleId.get(s);return typeof f=="undefined"&&(f=this._nextId++,this._strModuleIdToIntModuleId.set(s,f),this._intModuleIdToStrModuleId[f]=s),f},u.prototype.getStrModuleId=function(s){return this._intModuleIdToStrModuleId[s]},u}(),p=function(){function u(s){this.id=s}return u.EXPORTS=new u(0),u.MODULE=new u(1),u.REQUIRE=new u(2),u}();I.RegularDependency=p;var o=function(){function u(s,f,S){this.id=s,this.pluginId=f,this.pluginParam=S}return u}();I.PluginDependency=o;var h=function(){function u(s,f,S,a,_){_===void 0&&(_=0),this._env=s,this._scriptLoader=f,this._loaderAvailableTimestamp=_,this._defineFunc=S,this._requireFunc=a,this._moduleIdProvider=new M,this._config=new I.Configuration(this._env),this._hasDependencyCycle=!1,this._modules2=[],this._knownModules2=[],this._inverseDependencies2=[],this._inversePluginDependencies2=new Map,this._currentAnnonymousDefineCall=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(s,f){for(var S=function(l){return l.replace(/\\/g,"/")},a=S(s),_=f.split(/\n/),m=0;m<_.length;m++){var g=_[m].match(/(.*):(\d+):(\d+)\)?$/);if(g){var i=g[1],r=g[2],d=g[3],v=Math.max(i.lastIndexOf(" ")+1,i.lastIndexOf("(")+1);if(i=i.substr(v),i=S(i),i===a){var n={line:parseInt(r,10),col:parseInt(d,10)};return n.line===1&&(n.col-="(function (require, define, __filename, __dirname) { ".length),n}}}throw new Error("Could not correlate define call site for needle "+s)},u.prototype.getBuildInfo=function(){if(!this._config.isBuild())return null;for(var s=[],f=0,S=0,a=this._modules2.length;S<a;S++){var _=this._modules2[S];if(!!_){var m=this._buildInfoPath[_.id]||null,g=this._buildInfoDefineStack[_.id]||null,i=this._buildInfoDependencies[_.id];s[f++]={id:_.strId,path:m,defineLocation:m&&g?u._findRelevantLocationInStack(m,g):null,dependencies:i,shim:null,exports:_.exports}}}return s},u.prototype.getRecorder=function(){return this._recorder||(this._config.shouldRecordStats()?this._recorder=new I.LoaderEventRecorder(this._loaderAvailableTimestamp):this._recorder=I.NullLoaderEventRecorder.INSTANCE),this._recorder},u.prototype.getLoaderEvents=function(){return this.getRecorder().getEvents()},u.prototype.enqueueDefineAnonymousModule=function(s,f){if(this._currentAnnonymousDefineCall!==null)throw new Error("Can only have one anonymous define call per script file");var S=null;this._config.isBuild()&&(S=new Error("StackLocation").stack||null),this._currentAnnonymousDefineCall={stack:S,dependencies:s,callback:f}},u.prototype.defineModule=function(s,f,S,a,_,m){var g=this;m===void 0&&(m=new t(s));var i=this._moduleIdProvider.getModuleId(s);if(this._modules2[i]){this._config.isDuplicateMessageIgnoredFor(s)||console.warn("Duplicate definition of module '"+s+"'");return}var r=new E(i,s,this._normalizeDependencies(f,m),S,a,m);this._modules2[i]=r,this._config.isBuild()&&(this._buildInfoDefineStack[i]=_,this._buildInfoDependencies[i]=(r.dependencies||[]).map(function(d){return g._moduleIdProvider.getStrModuleId(d.id)})),this._resolve(r)},u.prototype._normalizeDependency=function(s,f){if(s==="exports")return p.EXPORTS;if(s==="module")return p.MODULE;if(s==="require")return p.REQUIRE;var S=s.indexOf("!");if(S>=0){var a=f.resolveModule(s.substr(0,S)),_=f.resolveModule(s.substr(S+1)),m=this._moduleIdProvider.getModuleId(a+"!"+_),g=this._moduleIdProvider.getModuleId(a);return new o(m,g,_)}return new p(this._moduleIdProvider.getModuleId(f.resolveModule(s)))},u.prototype._normalizeDependencies=function(s,f){for(var S=[],a=0,_=0,m=s.length;_<m;_++)S[a++]=this._normalizeDependency(s[_],f);return S},u.prototype._relativeRequire=function(s,f,S,a){if(typeof f=="string")return this.synchronousRequire(f,s);this.defineModule(I.Utilities.generateAnonymousModule(),f,S,a,null,s)},u.prototype.synchronousRequire=function(s,f){f===void 0&&(f=new t(s));var S=this._normalizeDependency(s,f),a=this._modules2[S.id];if(!a)throw new Error("Check dependency list! Synchronous require cannot resolve module '"+s+"'. This is the first mention of this module!");if(!a.isComplete())throw new Error("Check dependency list! Synchronous require cannot resolve module '"+s+"'. This module has not been resolved completely yet.");if(a.error)throw a.error;return a.exports},u.prototype.configure=function(s,f){var S=this._config.shouldRecordStats();f?this._config=new I.Configuration(this._env,s):this._config=this._config.cloneAndMerge(s),this._config.shouldRecordStats()&&!S&&(this._recorder=null)},u.prototype.getConfig=function(){return this._config},u.prototype._onLoad=function(s){if(this._currentAnnonymousDefineCall!==null){var f=this._currentAnnonymousDefineCall;this._currentAnnonymousDefineCall=null,this.defineModule(this._moduleIdProvider.getStrModuleId(s),f.dependencies,f.callback,null,f.stack)}},u.prototype._createLoadError=function(s,f){var S=this,a=this._moduleIdProvider.getStrModuleId(s),_=(this._inverseDependencies2[s]||[]).map(function(g){return S._moduleIdProvider.getStrModuleId(g)}),m=I.ensureError(f);return m.phase="loading",m.moduleId=a,m.neededBy=_,m},u.prototype._onLoadError=function(s,f){var S=this._createLoadError(s,f);this._modules2[s]||(this._modules2[s]=new E(s,this._moduleIdProvider.getStrModuleId(s),[],function(){},function(){},null));for(var a=[],_=0,m=this._moduleIdProvider.getMaxModuleId();_<m;_++)a[_]=!1;var g=!1,i=[];for(i.push(s),a[s]=!0;i.length>0;){var r=i.shift(),d=this._modules2[r];d&&(g=d.onDependencyError(S)||g);var v=this._inverseDependencies2[r];if(v)for(var _=0,m=v.length;_<m;_++){var n=v[_];a[n]||(i.push(n),a[n]=!0)}}g||this._config.onError(S)},u.prototype._hasDependencyPath=function(s,f){var S=this._modules2[s];if(!S)return!1;for(var a=[],_=0,m=this._moduleIdProvider.getMaxModuleId();_<m;_++)a[_]=!1;var g=[];for(g.push(S),a[s]=!0;g.length>0;){var i=g.shift(),r=i.dependencies;if(r)for(var _=0,m=r.length;_<m;_++){var d=r[_];if(d.id===f)return!0;var v=this._modules2[d.id];v&&!a[d.id]&&(a[d.id]=!0,g.push(v))}}return!1},u.prototype._findCyclePath=function(s,f,S){if(s===f||S===50)return[s];var a=this._modules2[s];if(!a)return null;var _=a.dependencies;if(_)for(var m=0,g=_.length;m<g;m++){var i=this._findCyclePath(_[m].id,f,S+1);if(i!==null)return i.push(s),i}return null},u.prototype._createRequire=function(s){var f=this,S=function(a,_,m){return f._relativeRequire(s,a,_,m)};return S.toUrl=function(a){return f._config.requireToUrl(s.resolveModule(a))},S.getStats=function(){return f.getLoaderEvents()},S.hasDependencyCycle=function(){return f._hasDependencyCycle},S.config=function(a,_){_===void 0&&(_=!1),f.configure(a,_)},S.__$__nodeRequire=I.global.nodeRequire,S},u.prototype._loadModule=function(s){var f=this;if(!(this._modules2[s]||this._knownModules2[s])){this._knownModules2[s]=!0;var S=this._moduleIdProvider.getStrModuleId(s),a=this._config.moduleIdToPaths(S),_=/^@[^\/]+\/[^\/]+$/;this._env.isNode&&(S.indexOf("/")===-1||_.test(S))&&a.push("node|"+S);var m=-1,g=function(i){if(m++,m>=a.length)f._onLoadError(s,i);else{var r=a[m],d=f.getRecorder();if(f._config.isBuild()&&r==="empty:"){f._buildInfoPath[s]=r,f.defineModule(f._moduleIdProvider.getStrModuleId(s),[],null,null,null),f._onLoad(s);return}d.record(10,r),f._scriptLoader.load(f,r,function(){f._config.isBuild()&&(f._buildInfoPath[s]=r),d.record(11,r),f._onLoad(s)},function(v){d.record(12,r),g(v)})}};g(null)}},u.prototype._loadPluginDependency=function(s,f){var S=this;if(!(this._modules2[f.id]||this._knownModules2[f.id])){this._knownModules2[f.id]=!0;var a=function(_){S.defineModule(S._moduleIdProvider.getStrModuleId(f.id),[],_,null,null)};a.error=function(_){S._config.onError(S._createLoadError(f.id,_))},s.load(f.pluginParam,this._createRequire(t.ROOT),a,this._config.getOptionsLiteral())}},u.prototype._resolve=function(s){var f=this,S=s.dependencies;if(S)for(var a=0,_=S.length;a<_;a++){var m=S[a];if(m===p.EXPORTS){s.exportsPassedIn=!0,s.unresolvedDependenciesCount--;continue}if(m===p.MODULE){s.unresolvedDependenciesCount--;continue}if(m===p.REQUIRE){s.unresolvedDependenciesCount--;continue}var g=this._modules2[m.id];if(g&&g.isComplete()){if(g.error){s.onDependencyError(g.error);return}s.unresolvedDependenciesCount--;continue}if(this._hasDependencyPath(m.id,s.id)){this._hasDependencyCycle=!0,console.warn("There is a dependency cycle between '"+this._moduleIdProvider.getStrModuleId(m.id)+"' and '"+this._moduleIdProvider.getStrModuleId(s.id)+"'. The cyclic path follows:");var i=this._findCyclePath(m.id,s.id,0)||[];i.reverse(),i.push(m.id),console.warn(i.map(function(v){return f._moduleIdProvider.getStrModuleId(v)}).join(` =>
`)),s.unresolvedDependenciesCount--;continue}if(this._inverseDependencies2[m.id]=this._inverseDependencies2[m.id]||[],this._inverseDependencies2[m.id].push(s.id),m instanceof o){var r=this._modules2[m.pluginId];if(r&&r.isComplete()){this._loadPluginDependency(r.exports,m);continue}var d=this._inversePluginDependencies2.get(m.pluginId);d||(d=[],this._inversePluginDependencies2.set(m.pluginId,d)),d.push(m),this._loadModule(m.pluginId);continue}this._loadModule(m.id)}s.unresolvedDependenciesCount===0&&this._onModuleComplete(s)},u.prototype._onModuleComplete=function(s){var f=this,S=this.getRecorder();if(!s.isComplete()){var a=s.dependencies,_=[];if(a)for(var m=0,g=a.length;m<g;m++){var i=a[m];if(i===p.EXPORTS){_[m]=s.exports;continue}if(i===p.MODULE){_[m]={id:s.strId,config:function(){return f._config.getConfigForModule(s.strId)}};continue}if(i===p.REQUIRE){_[m]=this._createRequire(s.moduleIdResolver);continue}var r=this._modules2[i.id];if(r){_[m]=r.exports;continue}_[m]=null}s.complete(S,this._config,_);var d=this._inverseDependencies2[s.id];if(this._inverseDependencies2[s.id]=null,d)for(var m=0,g=d.length;m<g;m++){var v=d[m],n=this._modules2[v];n.unresolvedDependenciesCount--,n.unresolvedDependenciesCount===0&&this._onModuleComplete(n)}var l=this._inversePluginDependencies2.get(s.id);if(l){this._inversePluginDependencies2.delete(s.id);for(var m=0,g=l.length;m<g;m++)this._loadPluginDependency(s.exports,l[m])}}},u}();I.ModuleManager=h})(X||(X={}));var V,X;(function(I){var t=new I.Environment,E=null,M=function(u,s,f){typeof u!="string"&&(f=s,s=u,u=null),(typeof s!="object"||!Array.isArray(s))&&(f=s,s=null),s||(s=["require","exports","module"]),u?E.defineModule(u,s,f,null,null):E.enqueueDefineAnonymousModule(s,f)};M.amd={jQuery:!0};var p=function(u,s){s===void 0&&(s=!1),E.configure(u,s)},o=function(){if(arguments.length===1){if(arguments[0]instanceof Object&&!Array.isArray(arguments[0])){p(arguments[0]);return}if(typeof arguments[0]=="string")return E.synchronousRequire(arguments[0])}if((arguments.length===2||arguments.length===3)&&Array.isArray(arguments[0])){E.defineModule(I.Utilities.generateAnonymousModule(),arguments[0],arguments[1],arguments[2],null);return}throw new Error("Unrecognized require call")};o.config=p,o.getConfig=function(){return E.getConfig().getOptionsLiteral()},o.reset=function(){E=E.reset()},o.getBuildInfo=function(){return E.getBuildInfo()},o.getStats=function(){return E.getLoaderEvents()},o.define=function(){return M.apply(null,arguments)};function h(){if(typeof I.global.require!="undefined"||typeof require!="undefined"){var u=I.global.require||require;if(typeof u=="function"&&typeof u.resolve=="function"){var s=I.ensureRecordedNodeRequire(E.getRecorder(),u);I.global.nodeRequire=s,o.nodeRequire=s,o.__$__nodeRequire=s}}t.isNode&&!t.isElectronRenderer?(module.exports=o,require=o):(t.isElectronRenderer||(I.global.define=M),I.global.require=o)}I.init=h,(typeof I.global.define!="function"||!I.global.define.amd)&&(E=new I.ModuleManager(t,I.createScriptLoader(t),M,o,I.Utilities.getHighPerformanceTimestamp()),typeof I.global.require!="undefined"&&typeof I.global.require!="function"&&o.config(I.global.require),V=function(){return M.apply(null,arguments)},V.amd=M.amd,typeof doNotInitLoader=="undefined"&&h())})(X||(X={})),V(z[14],G([0,1]),function(I,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DiffChange=void 0;class E{constructor(p,o,h,u){this.originalStart=p,this.originalLength=o,this.modifiedStart=h,this.modifiedLength=u}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}t.DiffChange=E}),V(z[4],G([0,1]),function(I,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.illegalState=t.illegalArgument=t.canceled=t.isPromiseCanceledError=t.transformErrorForSerialization=t.onUnexpectedExternalError=t.onUnexpectedError=t.errorHandler=t.ErrorHandler=void 0;class E{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(_){setTimeout(()=>{throw _.stack?new Error(_.message+`
`+_.stack):_},0)}}emit(_){this.listeners.forEach(m=>{m(_)})}onUnexpectedError(_){this.unexpectedErrorHandler(_),this.emit(_)}onUnexpectedExternalError(_){this.unexpectedErrorHandler(_)}}t.ErrorHandler=E,t.errorHandler=new E;function M(a){u(a)||t.errorHandler.onUnexpectedError(a)}t.onUnexpectedError=M;function p(a){u(a)||t.errorHandler.onUnexpectedExternalError(a)}t.onUnexpectedExternalError=p;function o(a){if(a instanceof Error){let{name:_,message:m}=a;const g=a.stacktrace||a.stack;return{$isError:!0,name:_,message:m,stack:g}}return a}t.transformErrorForSerialization=o;const h="Canceled";function u(a){return a instanceof Error&&a.name===h&&a.message===h}t.isPromiseCanceledError=u;function s(){const a=new Error(h);return a.name=a.message,a}t.canceled=s;function f(a){return a?new Error(`Illegal argument: ${a}`):new Error("Illegal argument")}t.illegalArgument=f;function S(a){return a?new Error(`Illegal state: ${a}`):new Error("Illegal state")}t.illegalState=S}),V(z[15],G([0,1]),function(I,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Iterable=void 0;var E;(function(M){function p(c){return c&&typeof c=="object"&&typeof c[Symbol.iterator]=="function"}M.is=p;const o=Object.freeze([]);function h(){return o}M.empty=h;function*u(c){yield c}M.single=u;function s(c){return c||o}M.from=s;function f(c){return!c||c[Symbol.iterator]().next().done===!0}M.isEmpty=f;function S(c){return c[Symbol.iterator]().next().value}M.first=S;function a(c,b){for(const L of c)if(b(L))return!0;return!1}M.some=a;function _(c,b){for(const L of c)if(b(L))return L}M.find=_;function*m(c,b){for(const L of c)b(L)&&(yield L)}M.filter=m;function*g(c,b){for(const L of c)yield b(L)}M.map=g;function*i(...c){for(const b of c)for(const L of b)yield L}M.concat=i;function*r(c){for(const b of c)for(const L of b)yield L}M.concatNested=r;function d(c,b,L){let C=L;for(const w of c)C=b(C,w);return C}M.reduce=d;function*v(c,b,L=c.length){for(b<0&&(b+=c.length),L<0?L+=c.length:L>c.length&&(L=c.length);b<L;b++)yield c[b]}M.slice=v;function n(c,b=Number.POSITIVE_INFINITY){const L=[];if(b===0)return[L,c];const C=c[Symbol.iterator]();for(let w=0;w<b;w++){const N=C.next();if(N.done)return[L,M.empty()];L.push(N.value)}return[L,{[Symbol.iterator](){return C}}]}M.consume=n;function l(c,b,L=(C,w)=>C===w){const C=c[Symbol.iterator](),w=b[Symbol.iterator]();for(;;){const N=C.next(),y=w.next();if(N.done!==y.done)return!1;if(N.done)return!0;if(!L(N.value,y.value))return!1}}M.equals=l})(E=t.Iterable||(t.Iterable={}))}),V(z[16],G([0,1,4]),function(I,t,E){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResolvedKeybinding=t.ResolvedKeybindingPart=t.ChordKeybinding=t.SimpleKeybinding=t.createSimpleKeybinding=t.createKeybinding=t.KeyChord=t.KeyCodeUtils=void 0;class M{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(r,d){this._keyCodeToStr[r]=d,this._strToKeyCode[d.toLowerCase()]=r}keyCodeToStr(r){return this._keyCodeToStr[r]}strToKeyCode(r){return this._strToKeyCode[r.toLowerCase()]||0}}const p=new M,o=new M,h=new M;(function(){function i(r,d,v=d,n=v){p.define(r,d),o.define(r,v),h.define(r,n)}i(0,"unknown"),i(1,"Backspace"),i(2,"Tab"),i(3,"Enter"),i(4,"Shift"),i(5,"Ctrl"),i(6,"Alt"),i(7,"PauseBreak"),i(8,"CapsLock"),i(9,"Escape"),i(10,"Space"),i(11,"PageUp"),i(12,"PageDown"),i(13,"End"),i(14,"Home"),i(15,"LeftArrow","Left"),i(16,"UpArrow","Up"),i(17,"RightArrow","Right"),i(18,"DownArrow","Down"),i(19,"Insert"),i(20,"Delete"),i(21,"0"),i(22,"1"),i(23,"2"),i(24,"3"),i(25,"4"),i(26,"5"),i(27,"6"),i(28,"7"),i(29,"8"),i(30,"9"),i(31,"A"),i(32,"B"),i(33,"C"),i(34,"D"),i(35,"E"),i(36,"F"),i(37,"G"),i(38,"H"),i(39,"I"),i(40,"J"),i(41,"K"),i(42,"L"),i(43,"M"),i(44,"N"),i(45,"O"),i(46,"P"),i(47,"Q"),i(48,"R"),i(49,"S"),i(50,"T"),i(51,"U"),i(52,"V"),i(53,"W"),i(54,"X"),i(55,"Y"),i(56,"Z"),i(57,"Meta"),i(58,"ContextMenu"),i(59,"F1"),i(60,"F2"),i(61,"F3"),i(62,"F4"),i(63,"F5"),i(64,"F6"),i(65,"F7"),i(66,"F8"),i(67,"F9"),i(68,"F10"),i(69,"F11"),i(70,"F12"),i(71,"F13"),i(72,"F14"),i(73,"F15"),i(74,"F16"),i(75,"F17"),i(76,"F18"),i(77,"F19"),i(78,"NumLock"),i(79,"ScrollLock"),i(80,";",";","OEM_1"),i(81,"=","=","OEM_PLUS"),i(82,",",",","OEM_COMMA"),i(83,"-","-","OEM_MINUS"),i(84,".",".","OEM_PERIOD"),i(85,"/","/","OEM_2"),i(86,"`","`","OEM_3"),i(110,"ABNT_C1"),i(111,"ABNT_C2"),i(87,"[","[","OEM_4"),i(88,"\\","\\","OEM_5"),i(89,"]","]","OEM_6"),i(90,"'","'","OEM_7"),i(91,"OEM_8"),i(92,"OEM_102"),i(93,"NumPad0"),i(94,"NumPad1"),i(95,"NumPad2"),i(96,"NumPad3"),i(97,"NumPad4"),i(98,"NumPad5"),i(99,"NumPad6"),i(100,"NumPad7"),i(101,"NumPad8"),i(102,"NumPad9"),i(103,"NumPad_Multiply"),i(104,"NumPad_Add"),i(105,"NumPad_Separator"),i(106,"NumPad_Subtract"),i(107,"NumPad_Decimal"),i(108,"NumPad_Divide")})();var u;(function(i){function r(c){return p.keyCodeToStr(c)}i.toString=r;function d(c){return p.strToKeyCode(c)}i.fromString=d;function v(c){return o.keyCodeToStr(c)}i.toUserSettingsUS=v;function n(c){return h.keyCodeToStr(c)}i.toUserSettingsGeneral=n;function l(c){return o.strToKeyCode(c)||h.strToKeyCode(c)}i.fromUserSettings=l})(u=t.KeyCodeUtils||(t.KeyCodeUtils={}));function s(i,r){const d=(r&65535)<<16>>>0;return(i|d)>>>0}t.KeyChord=s;function f(i,r){if(i===0)return null;const d=(i&65535)>>>0,v=(i&4294901760)>>>16;return v!==0?new _([S(d,r),S(v,r)]):new _([S(d,r)])}t.createKeybinding=f;function S(i,r){const d=!!(i&2048),v=!!(i&256),n=r===2?v:d,l=!!(i&1024),c=!!(i&512),b=r===2?d:v,L=i&255;return new a(n,l,c,b,L)}t.createSimpleKeybinding=S;class a{constructor(r,d,v,n,l){this.ctrlKey=r,this.shiftKey=d,this.altKey=v,this.metaKey=n,this.keyCode=l}equals(r){return this.ctrlKey===r.ctrlKey&&this.shiftKey===r.shiftKey&&this.altKey===r.altKey&&this.metaKey===r.metaKey&&this.keyCode===r.keyCode}isModifierKey(){return this.keyCode===0||this.keyCode===5||this.keyCode===57||this.keyCode===6||this.keyCode===4}toChord(){return new _([this])}isDuplicateModifierCase(){return this.ctrlKey&&this.keyCode===5||this.shiftKey&&this.keyCode===4||this.altKey&&this.keyCode===6||this.metaKey&&this.keyCode===57}}t.SimpleKeybinding=a;class _{constructor(r){if(r.length===0)throw(0,E.illegalArgument)("parts");this.parts=r}}t.ChordKeybinding=_;class m{constructor(r,d,v,n,l,c){this.ctrlKey=r,this.shiftKey=d,this.altKey=v,this.metaKey=n,this.keyLabel=l,this.keyAriaLabel=c}}t.ResolvedKeybindingPart=m;class g{}t.ResolvedKeybinding=g}),V(z[7],G([0,1,15]),function(I,t,E){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImmortalReference=t.MutableDisposable=t.Disposable=t.DisposableStore=t.toDisposable=t.combinedDisposable=t.dispose=t.isDisposable=t.MultiDisposeError=t.trackDisposable=void 0;const M=!1;let p=null;if(M){const r="__is_disposable_tracked__";p=new class{trackDisposable(d){const v=new Error("Potentially leaked disposable").stack;setTimeout(()=>{d[r]||console.log(v)},3e3)}markTracked(d){if(d&&d!==m.None)try{d[r]=!0}catch(v){}}}}function o(r){!p||p.markTracked(r)}function h(r){return p&&p.trackDisposable(r),r}t.trackDisposable=h;class u extends Error{constructor(d){super(`Encountered errors while disposing of store. Errors: [${d.join(", ")}]`);this.errors=d}}t.MultiDisposeError=u;function s(r){return typeof r.dispose=="function"&&r.dispose.length===0}t.isDisposable=s;function f(r){if(E.Iterable.is(r)){let d=[];for(const v of r)if(v){o(v);try{v.dispose()}catch(n){d.push(n)}}if(d.length===1)throw d[0];if(d.length>1)throw new u(d);return Array.isArray(r)?[]:r}else if(r)return o(r),r.dispose(),r}t.dispose=f;function S(...r){return r.forEach(o),a(()=>f(r))}t.combinedDisposable=S;function a(r){const d=h({dispose:()=>{o(d),r()}});return d}t.toDisposable=a;class _{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(o(this),this._isDisposed=!0,this.clear())}clear(){try{f(this._toDispose.values())}finally{this._toDispose.clear()}}add(d){if(!d)return d;if(d===this)throw new Error("Cannot register a disposable on itself!");return o(d),this._isDisposed?_.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(d),d}}t.DisposableStore=_,_.DISABLE_DISPOSED_WARNING=!1;class m{constructor(){this._store=new _,h(this)}dispose(){o(this),this._store.dispose()}_register(d){if(d===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(d)}}t.Disposable=m,m.None=Object.freeze({dispose(){}});class g{constructor(){this._isDisposed=!1,h(this)}get value(){return this._isDisposed?void 0:this._value}set value(d){var v;this._isDisposed||d===this._value||((v=this._value)===null||v===void 0||v.dispose(),d&&o(d),this._value=d)}clear(){this.value=void 0}dispose(){var d;this._isDisposed=!0,o(this),(d=this._value)===null||d===void 0||d.dispose(),this._value=void 0}}t.MutableDisposable=g;class i{constructor(d){this.object=d}dispose(){}}t.ImmortalReference=i}),V(z[17],G([0,1]),function(I,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LinkedList=void 0;class E{constructor(o){this.element=o,this.next=E.Undefined,this.prev=E.Undefined}}E.Undefined=new E(void 0);class M{constructor(){this._first=E.Undefined,this._last=E.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===E.Undefined}clear(){this._first=E.Undefined,this._last=E.Undefined,this._size=0}unshift(o){return this._insert(o,!1)}push(o){return this._insert(o,!0)}_insert(o,h){const u=new E(o);if(this._first===E.Undefined)this._first=u,this._last=u;else if(h){const f=this._last;this._last=u,u.prev=f,f.next=u}else{const f=this._first;this._first=u,u.next=f,f.prev=u}this._size+=1;let s=!1;return()=>{s||(s=!0,this._remove(u))}}shift(){if(this._first!==E.Undefined){const o=this._first.element;return this._remove(this._first),o}}pop(){if(this._last!==E.Undefined){const o=this._last.element;return this._remove(this._last),o}}_remove(o){if(o.prev!==E.Undefined&&o.next!==E.Undefined){const h=o.prev;h.next=o.next,o.next.prev=h}else o.prev===E.Undefined&&o.next===E.Undefined?(this._first=E.Undefined,this._last=E.Undefined):o.next===E.Undefined?(this._last=this._last.prev,this._last.next=E.Undefined):o.prev===E.Undefined&&(this._first=this._first.next,this._first.prev=E.Undefined);this._size-=1}*[Symbol.iterator](){let o=this._first;for(;o!==E.Undefined;)yield o.element,o=o.next}}t.LinkedList=M}),V(z[2],G([0,1]),function(I,t){"use strict";var E;Object.defineProperty(t,"__esModule",{value:!0}),t.isLittleEndian=t.OS=t.setImmediate=t.userAgent=t.isIOS=t.isWeb=t.isNative=t.isLinux=t.isMacintosh=t.isWindows=t.isPreferringBrowserCodeLoad=t.browserCodeLoadingCacheStrategy=t.isElectronSandboxed=t.globals=void 0;const M="en";let p=!1,o=!1,h=!1,u=!1,s=!1,f=!1,S=!1,a,_=M,m,g;t.globals=typeof self=="object"?self:typeof global=="object"?global:{};let i;typeof t.globals.vscode!="undefined"&&typeof t.globals.vscode.process!="undefined"?i=t.globals.vscode.process:typeof process!="undefined"&&(i=process);const r=typeof((E=i==null?void 0:i.versions)===null||E===void 0?void 0:E.electron)=="string"&&i.type==="renderer";if(t.isElectronSandboxed=r&&(i==null?void 0:i.sandboxed),t.browserCodeLoadingCacheStrategy=(()=>{if(t.isElectronSandboxed)return"bypassHeatCheck";const c=i==null?void 0:i.env.VSCODE_BROWSER_CODE_LOADING;if(typeof c=="string")return c==="none"||c==="code"||c==="bypassHeatCheck"||c==="bypassHeatCheckAndEagerCompile"?c:"bypassHeatCheck"})(),t.isPreferringBrowserCodeLoad=typeof t.browserCodeLoadingCacheStrategy=="string",typeof navigator=="object"&&!r)g=navigator.userAgent,p=g.indexOf("Windows")>=0,o=g.indexOf("Macintosh")>=0,S=(g.indexOf("Macintosh")>=0||g.indexOf("iPad")>=0||g.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,h=g.indexOf("Linux")>=0,f=!0,a=navigator.language,_=a;else if(typeof i=="object"){p=i.platform==="win32",o=i.platform==="darwin",h=i.platform==="linux",u=h&&!!i.env.SNAP&&!!i.env.SNAP_REVISION,a=M,_=M;const c=i.env.VSCODE_NLS_CONFIG;if(c)try{const b=JSON.parse(c),L=b.availableLanguages["*"];a=b.locale,_=L||M,m=b._translationsConfigFile}catch(b){}s=!0}else console.error("Unable to resolve platform.");let d=0;o?d=1:p?d=3:h&&(d=2),t.isWindows=p,t.isMacintosh=o,t.isLinux=h,t.isNative=s,t.isWeb=f,t.isIOS=S,t.userAgent=g,t.setImmediate=function(){if(t.globals.setImmediate)return t.globals.setImmediate.bind(t.globals);if(typeof t.globals.postMessage=="function"&&!t.globals.importScripts){let L=[];t.globals.addEventListener("message",w=>{if(w.data&&w.data.vscodeSetImmediateId)for(let N=0,y=L.length;N<y;N++){const R=L[N];if(R.id===w.data.vscodeSetImmediateId){L.splice(N,1),R.callback();return}}});let C=0;return w=>{const N=++C;L.push({id:N,callback:w}),t.globals.postMessage({vscodeSetImmediateId:N},"*")}}if(typeof(i==null?void 0:i.nextTick)=="function")return i.nextTick.bind(i);const b=Promise.resolve();return L=>b.then(L)}(),t.OS=o||S?2:p?1:3;let v=!0,n=!1;function l(){if(!n){n=!0;const c=new Uint8Array(2);c[0]=1,c[1]=2,v=new Uint16Array(c.buffer)[0]===(2<<8)+1}return v}t.isLittleEndian=l}),V(z[18],G([0,1,2]),function(I,t,E){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.platform=t.env=t.cwd=void 0;let M;if(typeof E.globals.vscode!="undefined"&&typeof E.globals.vscode.process!="undefined"){const p=E.globals.vscode.process;M={get platform(){return p.platform},get env(){return p.env},cwd(){return p.cwd()},nextTick(o){return(0,E.setImmediate)(o)}}}else typeof process!="undefined"?M={get platform(){return process.platform},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()},nextTick(p){return process.nextTick(p)}}:M={get platform(){return E.isWindows?"win32":E.isMacintosh?"darwin":"linux"},nextTick(p){return(0,E.setImmediate)(p)},get env(){return Object.create(null)},cwd(){return"/"}};t.cwd=M.cwd,t.env=M.env,t.platform=M.platform}),V(z[19],G([0,1,18]),function(I,t,E){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sep=t.extname=t.basename=t.dirname=t.relative=t.resolve=t.normalize=t.posix=t.win32=void 0;const M=65,p=97,o=90,h=122,u=46,s=47,f=92,S=58,a=63;class _ extends Error{constructor(l,c,b){let L;typeof c=="string"&&c.indexOf("not ")===0?(L="must not be",c=c.replace(/^not /,"")):L="must be";const C=l.indexOf(".")!==-1?"property":"argument";let w=`The "${l}" ${C} ${L} of type ${c}`;w+=`. Received type ${typeof b}`,super(w),this.code="ERR_INVALID_ARG_TYPE"}}function m(n,l){if(typeof n!="string")throw new _(l,"string",n)}function g(n){return n===s||n===f}function i(n){return n===s}function r(n){return n>=M&&n<=o||n>=p&&n<=h}function d(n,l,c,b){let L="",C=0,w=-1,N=0,y=0;for(let R=0;R<=n.length;++R){if(R<n.length)y=n.charCodeAt(R);else{if(b(y))break;y=s}if(b(y)){if(!(w===R-1||N===1))if(N===2){if(L.length<2||C!==2||L.charCodeAt(L.length-1)!==u||L.charCodeAt(L.length-2)!==u){if(L.length>2){const D=L.lastIndexOf(c);D===-1?(L="",C=0):(L=L.slice(0,D),C=L.length-1-L.lastIndexOf(c)),w=R,N=0;continue}else if(L.length!==0){L="",C=0,w=R,N=0;continue}}l&&(L+=L.length>0?`${c}..`:"..",C=2)}else L.length>0?L+=`${c}${n.slice(w+1,R)}`:L=n.slice(w+1,R),C=R-w-1;w=R,N=0}else y===u&&N!==-1?++N:N=-1}return L}function v(n,l){if(l===null||typeof l!="object")throw new _("pathObject","Object",l);const c=l.dir||l.root,b=l.base||`${l.name||""}${l.ext||""}`;return c?c===l.root?`${c}${b}`:`${c}${n}${b}`:b}t.win32={resolve(...n){let l="",c="",b=!1;for(let L=n.length-1;L>=-1;L--){let C;if(L>=0){if(C=n[L],m(C,"path"),C.length===0)continue}else l.length===0?C=E.cwd():(C=E.env[`=${l}`]||E.cwd(),(C===void 0||C.slice(0,2).toLowerCase()!==l.toLowerCase()&&C.charCodeAt(2)===f)&&(C=`${l}\\`));const w=C.length;let N=0,y="",R=!1;const D=C.charCodeAt(0);if(w===1)g(D)&&(N=1,R=!0);else if(g(D))if(R=!0,g(C.charCodeAt(1))){let P=2,W=P;for(;P<w&&!g(C.charCodeAt(P));)P++;if(P<w&&P!==W){const Y=C.slice(W,P);for(W=P;P<w&&g(C.charCodeAt(P));)P++;if(P<w&&P!==W){for(W=P;P<w&&!g(C.charCodeAt(P));)P++;(P===w||P!==W)&&(y=`\\\\${Y}\\${C.slice(W,P)}`,N=P)}}}else N=1;else r(D)&&C.charCodeAt(1)===S&&(y=C.slice(0,2),N=2,w>2&&g(C.charCodeAt(2))&&(R=!0,N=3));if(y.length>0)if(l.length>0){if(y.toLowerCase()!==l.to