Repository URL to install this package:
|
Version:
1.76.2-1678817801 ▾
|
"use strict";var __getOwnPropNames=Object.getOwnPropertyNames,__commonJS=(h,g)=>function(){return g||(0,h[__getOwnPropNames(h)[0]])((g={exports:{}}).exports,g),g.exports},require_performance=__commonJS({"out-build/vs/base/common/performance.js"(h,g){"use strict";(function(){function w(u){const v=[];typeof u=="number"&&v.push("code/timeOrigin",u);function d(l){v.push(l,Date.now())}function _(){const l=[];for(let o=0;o<v.length;o+=2)l.push({name:v[o],startTime:v[o+1]});return l}return{mark:d,getMarks:_}}function P(){if(typeof performance=="object"&&typeof performance.mark=="function"&&!performance.nodeTiming)return typeof performance.timeOrigin!="number"&&!performance.timing?w():{mark(u){performance.mark(u)},getMarks(){let u=performance.timeOrigin;typeof u!="number"&&(u=performance.timing.navigationStart||performance.timing.redirectStart||performance.timing.fetchStart);const v=[{name:"code/timeOrigin",startTime:Math.round(u)}];for(const d of performance.getEntriesByType("mark"))v.push({name:d.name,startTime:Math.round(u+d.startTime)});return v}};if(typeof process=="object"){const u=performance?.timeOrigin??Math.round((require.__$__nodeRequire||require)("perf_hooks").performance.timeOrigin);return w(u)}else return console.trace("perf-util loaded in UNKNOWN environment"),w()}function S(u){return u.MonacoPerformanceMarks||(u.MonacoPerformanceMarks=P()),u.MonacoPerformanceMarks}var y;typeof global=="object"?y=global:typeof self=="object"?y=self:y={},typeof define=="function"?define([],function(){return S(y)}):typeof g=="object"&&typeof g.exports=="object"?g.exports=S(y):(console.trace("perf-util defined in UNKNOWN context (neither requirejs or commonjs)"),y.perf=S(y))})()}}),require_bootstrap=__commonJS({"out-build/bootstrap.js"(h,g){"use strict";(function(w,P){typeof h=="object"?g.exports=P():w.MonacoBootstrap=P()})(h,function(){const w=typeof require=="function"?require("module"):void 0,P=typeof require=="function"?require("path"):void 0,S=typeof require=="function"?require("fs"):void 0;if(Error.stackTraceLimit=100,typeof process<"u"&&!process.env.VSCODE_HANDLES_SIGPIPE){let n=!1;process.on("SIGPIPE",()=>{n||(n=!0,console.error(new Error("Unexpected SIGPIPE")))})}function y(n){if(!P||!w||typeof process>"u"){console.warn("enableASARSupport() is only available in node.js environments");return}const t=n?P.join(n,"node_modules"):P.join(__dirname,"../node_modules");let e;if(n&&process.platform==="win32"){const a=n.substr(0,1);let c;a.toLowerCase()!==a?c=a.toLowerCase():c=a.toUpperCase(),e=c+t.substr(1)}else e=void 0;const r=`${t}.asar`,s=e?`${e}.asar`:void 0,i=w._resolveLookupPaths;w._resolveLookupPaths=function(a,c){const f=i(a,c);if(Array.isArray(f)){let p=!1;for(let b=0,C=f.length;b<C;b++)if(f[b]===t){p=!0,f.splice(b,0,r);break}else if(f[b]===e){p=!0,f.splice(b,0,s);break}!p&&n&&f.push(r)}return f}}function u(n,t){let e=n.replace(/\\/g,"/");e.length>0&&e.charAt(0)!=="/"&&(e=`/${e}`);let r;return t.isWindows&&e.startsWith("//")?r=encodeURI(`${t.scheme||"file"}:${e}`):r=encodeURI(`${t.scheme||"file"}://${t.fallbackAuthority||""}${e}`),r.replace(/#/g,"%23")}function v(){const n=_();let t={availableLanguages:{}};if(n&&n.env.VSCODE_NLS_CONFIG)try{t=JSON.parse(n.env.VSCODE_NLS_CONFIG)}catch{}if(t._resolvedLanguagePackCoreLocation){const e=Object.create(null);t.loadBundle=function(r,s,i){const a=e[r];if(a){i(void 0,a);return}o(t._resolvedLanguagePackCoreLocation,`${r.replace(/\//g,"!")}.nls.json`).then(function(c){const f=JSON.parse(c);e[r]=f,i(void 0,f)}).catch(c=>{try{t._corruptedFile&&m(t._corruptedFile,"corrupted").catch(function(f){console.error(f)})}finally{i(c,void 0)}})}}return t}function d(){return(typeof self=="object"?self:typeof global=="object"?global:{}).vscode}function _(){const n=d();if(n)return n.process;if(typeof process<"u")return process}function l(){const n=d();if(n)return n.ipcRenderer}async function o(...n){const t=l();if(t)return t.invoke("vscode:readNlsFile",...n);if(S&&P)return(await S.promises.readFile(P.join(...n))).toString();throw new Error("Unsupported operation (read NLS files)")}function m(n,t){const e=l();if(e)return e.invoke("vscode:writeNlsFile",n,t);if(S)return S.promises.writeFile(n,t);throw new Error("Unsupported operation (write NLS files)")}return{enableASARSupport:y,setupNLS:v,fileUriFromPath:u}})}}),require_bootstrap_node=__commonJS({"out-build/bootstrap-node.js"(h){"use strict";function g(){const w=require("path");try{typeof process.env.VSCODE_CWD!="string"&&(process.env.VSCODE_CWD=process.cwd()),process.platform==="win32"&&process.chdir(w.dirname(process.execPath))}catch(P){console.error(P)}}g(),h.injectNodeModuleLookupPath=function(w){if(!w)throw new Error("Missing injectPath");const P=require("module"),y=require("path").join(__dirname,"../node_modules"),u=P._resolveLookupPaths;P._resolveLookupPaths=function(v,d){const _=u(v,d);if(Array.isArray(_)){for(let l=0,o=_.length;l<o;l++)if(_[l]===y){_.splice(l,0,w);break}}return _}},h.removeGlobalNodeModuleLookupPaths=function(){const w=require("module"),P=w.globalPaths,S=w._resolveLookupPaths;w._resolveLookupPaths=function(y,u){const v=S(y,u);if(Array.isArray(v)){let d=0;for(;d<v.length&&v[v.length-1-d]===P[P.length-1-d];)d++;return v.slice(0,v.length-d)}return v}},h.configurePortable=function(w){const P=require("fs"),S=require("path"),y=S.dirname(__dirname);function u(m){return process.env.VSCODE_DEV?y:process.platform==="darwin"?m.dirname(m.dirname(m.dirname(y))):m.dirname(m.dirname(y))}function v(m){if(process.env.VSCODE_PORTABLE)return process.env.VSCODE_PORTABLE;if(process.platform==="win32"||process.platform==="linux")return m.join(u(m),"data");const n=w.portable||`${w.applicationName}-portable-data`;return m.join(m.dirname(u(m)),n)}const d=v(S),_=!("target"in w)&&P.existsSync(d),l=S.join(d,"tmp"),o=_&&P.existsSync(l);return _?process.env.VSCODE_PORTABLE=d:delete process.env.VSCODE_PORTABLE,o&&(process.platform==="win32"?(process.env.TMP=l,process.env.TEMP=l):process.env.TMPDIR=l),{portableDataPath:d,isPortable:_}}}}),require_userDataPath=__commonJS({"out-build/vs/platform/environment/node/userDataPath.js"(h,g){"use strict";(function(){"use strict";function w(P,S,y){function u(d,_){const l=v(d,_),o=[l];return P.isAbsolute(l)||o.unshift(y),P.resolve(...o)}function v(d,_){process.env.VSCODE_DEV&&(_="code-oss-dev");const l=process.env.VSCODE_PORTABLE;if(l)return P.join(l,"user-data");let o=process.env.VSCODE_APPDATA;if(o)return P.join(o,_);const m=d["user-data-dir"];if(m)return m;switch(process.platform){case"win32":if(o=process.env.APPDATA,!o){const n=process.env.USERPROFILE;if(typeof n!="string")throw new Error("Windows: Unexpected undefined %USERPROFILE% environment variable");o=P.join(n,"AppData","Roaming")}break;case"darwin":o=P.join(S.homedir(),"Library","Application Support");break;case"linux":o=process.env.XDG_CONFIG_HOME||P.join(S.homedir(),".config");break;default:throw new Error("Platform not supported")}return P.join(o,_)}return{getUserDataPath:u}}if(typeof define=="function")define(["path","os","vs/base/common/process"],function(P,S,y){return w(P,S,y.cwd())});else if(typeof g=="object"&&typeof g.exports=="object"){const P=require("path"),S=require("os");g.exports=w(P,S,process.env.VSCODE_CWD||process.cwd())}else throw new Error("Unknown context")})()}}),require_stripComments=__commonJS({"out-build/vs/base/common/stripComments.js"(h,g){"use strict";(function(){function w(P,S,y,u){const v=/("[^"\\]*(?:\\.[^"\\]*)*")|('[^'\\]*(?:\\.[^'\\]*)*')|(\/\*[^\/\*]*(?:(?:\*|\/)[^\/\*]*)*?\*\/)|(\/{2,}.*?(?:(?:\r?\n)|$))|(,\s*[}\]])/g;function d(_){return _.replace(v,function(l,o,m,n,t,e){if(n)return"";if(t){const r=t.length;return t[r-1]===`
`?t[r-2]==="\r"?`\r
`:`
`:""}else return e?l.substring(1):l})}return{stripComments:d}}typeof define=="function"?define([],function(){return w()}):typeof g=="object"&&typeof g.exports=="object"?g.exports=w():console.trace("strip comments defined in UNKNOWN context (neither requirejs or commonjs)")})()}}),require_languagePacks=__commonJS({"out-build/vs/base/node/languagePacks.js"(h,g){"use strict";(function(){"use strict";function w(P,S,y){function u(e){return new Promise(r=>S.exists(e,r))}function v(e){return new Promise((r,s)=>{const i=new Date;S.utimes(e,i,i,a=>a?s(a):r())})}function d(e){return new Promise((r,s)=>S.mkdir(e,{recursive:!0},i=>i&&i.code!=="EEXIST"?s(i):r(e)))}function _(e){return new Promise((r,s)=>S.rm(e,{recursive:!0,force:!0,maxRetries:3},i=>i?s(i):r()))}function l(e){return new Promise((r,s)=>S.readFile(e,"utf8",(i,a)=>i?s(i):r(a)))}function o(e,r){return new Promise((s,i)=>S.writeFile(e,r,"utf8",a=>a?i(a):s()))}async function m(e){const r=P.join(e,"languagepacks.json");try{return JSON.parse(await l(r))}catch{}}function n(e,r){try{for(;r;){if(e[r])return r;{const s=r.lastIndexOf("-");if(s>0)r=r.substring(0,s);else return}}}catch(s){console.error("Resolving language pack configuration failed.",s)}}function t(e,r,s,i,a){const c=function(f){return y.mark("code/didGenerateNls"),Promise.resolve({locale:f,availableLanguages:{}})};if(y.mark("code/willGenerateNls"),process.env.VSCODE_DEV||!e||!a||a==="en"||a==="en-us")return c(i);try{return m(r).then(f=>{if(!f||(a=n(f,a),!a))return c(i);const p=f[a];let b;return!p||typeof p.hash!="string"||!p.translations||typeof(b=p.translations.vscode)!="string"?c(i):u(b).then(C=>{if(!C)return c(i);const E=p.hash+"."+a,O=P.join(r,"clp",E),D=P.join(O,e),I=P.join(O,"tcf.json"),R=P.join(O,"corrupted.info"),N={locale:i,availableLanguages:{"*":a},_languagePackId:E,_translationsConfigFile:I,_cacheRoot:O,_corruptedFile:R,_resolvedLanguagePackCoreLocation:D};return u(R).then(k=>{let L;return k?L=_(O):L=Promise.resolve(void 0),L.then(()=>u(D).then(A=>A?(v(D).catch(()=>{}),y.mark("code/didGenerateNls"),N):d(D).then(()=>Promise.all([l(s),l(b)])).then(U=>{const T=JSON.parse(U[0]),q=JSON.parse(U[1]).contents,X=Object.keys(T.bundles),j=[];for(const B of X){const J=T.bundles[B],$=Object.create(null);for(const x of J){const G=T.keys[x],H=T.messages[x],z=q[x];let F;if(z){F=[];for(let M=0;M<G.length;M++){const W=G[M],Q=typeof W=="string"?W:W.key;let V=z[Q];V===void 0&&(V=H[M]),F.push(V)}}else F=H;$[x]=F}j.push(o(P.join(D,B.replace(/\//g,"!")+".nls.json"),JSON.stringify($)))}return j.push(o(I,JSON.stringify(p.translations))),Promise.all(j)}).then(()=>(y.mark("code/didGenerateNls"),N)).catch(U=>(console.error("Generating translation files failed.",U),c(i)))))})})})}catch(f){return console.error("Generating translation files failed.",f),c(i)}}return{getNLSConfiguration:t}}if(typeof define=="function")define(["path","fs","vs/base/common/performance"],function(P,S,y){return w(P,S,y)});else if(typeof g=="object"&&typeof g.exports=="object"){const P=require("path"),S=require("fs"),y=require_performance();g.exports=w(P,S,y)}else throw new Error("Unknown context")})()}}),require_loader=__commonJS({"out-build/vs/loader.js"(h,g){"use strict";var w=h,P=typeof global=="object"?global:{},y;(function(u){u.global=w;var v=function(){function d(){this._detected=!1,this._isWindows=!1,this._isNode=!1,this._isElectronRenderer=!1,this._isWebWorker=!1,this._isElectronNodeIntegrationWebWorker=!1}return Object.defineProperty(d.prototype,"isWindows",{get:function(){return this._detect(),this._isWindows},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"isNode",{get:function(){return this._detect(),this._isNode},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"isElectronRenderer",{get:function(){return this._detect(),this._isElectronRenderer},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"isWebWorker",{get:function(){return this._detect(),this._isWebWorker},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"isElectronNodeIntegrationWebWorker",{get:function(){return this._detect(),this._isElectronNodeIntegrationWebWorker},enumerable:!1,configurable:!0}),d.prototype._detect=function(){this._detected||(this._detected=!0,this._isWindows=d._isWindows(),this._isNode=typeof g<"u"&&!!g.exports,this._isElectronRenderer=typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.electron<"u"&&process.type==="renderer",this._isWebWorker=typeof u.global.importScripts=="function",this._isElectronNodeIntegrationWebWorker=this._isWebWorker&&typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.electron<"u"&&process.type==="worker")},d._isWindows=function(){return typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.indexOf("Windows")>=0?!0:typeof process<"u"?process.platform==="win32":!1},d}();u.Environment=v})(y||(y={}));var y;(function(u){var v=function(){function l(o,m,n){this.type=o,this.detail=m,this.timestamp=n}return l}();u.LoaderEvent=v;var d=function(){function l(o){this._events=[new v(1,"",o)]}return l.prototype.record=function(o,m){this._events.push(new v(o,m,u.Utilities.getHighPerformanceTimestamp()))},l.prototype.getEvents=function(){return this._events},l}();u.LoaderEventRecorder=d;var _=function(){function l(){}return l.prototype.record=function(o,m){},l.prototype.getEvents=function(){return[]},l.INSTANCE=new l,l}();u.NullLoaderEventRecorder=_})(y||(y={}));var y;(function(u){var v=function(){function d(){}return d.fileUriToFilePath=function(_,l){if(l=decodeURI(l).replace(/%23/g,"#"),_){if(/^file:\/\/\//.test(l))return l.substr(8);if(/^file:\/\//.test(l))return l.substr(5)}else if(/^file:\/\//.test(l))return l.substr(7);return l},d.startsWith=function(_,l){return _.length>=l.length&&_.substr(0,l.length)===l},d.endsWith=function(_,l){return _.length>=l.length&&_.substr(_.length-l.length)===l},d.containsQueryString=function(_){return/^[^\#]*\?/gi.test(_)},d.isAbsolutePath=function(_){return/^((http:\/\/)|(https:\/\/)|(file:\/\/)|(\/))/.test(_)},d.forEachProperty=function(_,l){if(_){var o=void 0;for(o in _)_.hasOwnProperty(o)&&l(o,_[o])}},d.isEmpty=function(_){var l=!0;return d.forEachProperty(_,function(){l=!1}),l},d.recursiveClone=function(_){if(!_||typeof _!="object"||_ instanceof RegExp||!Array.isArray(_)&&Object.getPrototypeOf(_)!==Object.prototype)return _;var l=Array.isArray(_)?[]:{};return d.forEachProperty(_,function(o,m){m&&typeof m=="object"?l[o]=d.recursiveClone(m):l[o]=m}),l},d.generateAnonymousModule=function(){return"===anonymous"+d.NEXT_ANONYMOUS_ID+++"==="},d.isAnonymousModule=function(_){return d.startsWith(_,"===anonymous")},d.getHighPerformanceTimestamp=function(){return this.PERFORMANCE_NOW_PROBED||(this.PERFORMANCE_NOW_PROBED=!0,this.HAS_PERFORMANCE_NOW=u.global.performance&&typeof u.global.performance.now=="function"),this.HAS_PERFORMANCE_NOW?u.global.performance.now():Date.now()},d.NEXT_ANONYMOUS_ID=1,d.PERFORMANCE_NOW_PROBED=!1,d.HAS_PERFORMANCE_NOW=!1,d}();u.Utilities=v})(y||(y={}));var y;(function(u){function v(l){if(l instanceof Error)return l;var o=new Error(l.message||String(l)||"Unknown Error");return l.stack&&(o.stack=l.stack),o}u.ensureError=v;var d=function(){function l(){}return l.validateConfigurationOptions=function(o){function m(t){if(t.phase==="loading"){console.error('Loading "'+t.moduleId+'" failed'),console.error(t),console.error("Here are the modules that depend on it:"),console.error(t.neededBy);return}if(t.phase==="factory"){console.error('The factory function of "'+t.moduleId+'" has thrown an exception'),console.error(t),console.error("Here are the modules that depend on it:"),console.error(t.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=m),Array.isArray(o.ignoreDuplicateModules)||(o.ignoreDuplicateModules=[]),o.baseUrl.length>0&&(u.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")){var n=v(new Error("INVALID cached data configuration, 'path' MUST be set"));n.phase="configuration",o.onError(n),o.nodeCachedData=void 0}return o},l.mergeConfigurationOptions=function(o,m){o===void 0&&(o=null),m===void 0&&(m=null);var n=u.Utilities.recursiveClone(m||{});return u.Utilities.forEachProperty(o,function(t,e){t==="ignoreDuplicateModules"&&typeof n.ignoreDuplicateModules<"u"?n.ignoreDuplicateModules=n.ignoreDuplicateModules.concat(e):t==="paths"&&typeof n.paths<"u"?u.Utilities.forEachProperty(e,function(r,s){return n.paths[r]=s}):t==="config"&&typeof n.config<"u"?u.Utilities.forEachProperty(e,function(r,s){return n.config[r]=s}):n[t]=u.Utilities.recursiveClone(e)}),l.validateConfigurationOptions(n)},l}();u.ConfigurationOptionsUtil=d;var _=function(){function l(o,m){if(this._env=o,this.options=d.mergeConfigurationOptions(m),this._createIgnoreDuplicateModulesMap(),this._createSortedPathsRules(),this.options.baseUrl===""&&this.options.nodeRequire&&this.options.nodeRequire.main&&this.options.nodeRequire.main.filename&&this._env.isNode){var n=this.options.nodeRequire.main.filename,t=Math.max(n.lastIndexOf("/"),n.lastIndexOf("\\"));this.options.baseUrl=n.substring(0,t+1)}}return l.prototype._createIgnoreDuplicateModulesMap=function(){this.ignoreDuplicateModulesMap={};for(var o=0;o<this.options.ignoreDuplicateModules.length;o++)this.ignoreDuplicateModulesMap[this.options.ignoreDuplicateModules[o]]=!0},l.prototype._createSortedPathsRules=function(){var o=this;this.sortedPathsRules=[],u.Utilities.forEachProperty(this.options.paths,function(m,n){Array.isArray(n)?o.sortedPathsRules.push({from:m,to:n}):o.sortedPathsRules.push({from:m,to:[n]})}),this.sortedPathsRules.sort(function(m,n){return n.from.length-m.from.length})},l.prototype.cloneAndMerge=function(o){return new l(this._env,d.mergeConfigurationOptions(o,this.options))},l.prototype.getOptionsLiteral=function(){return this.options},l.prototype._applyPaths=function(o){for(var m,n=0,t=this.sortedPathsRules.length;n<t;n++)if(m=this.sortedPathsRules[n],u.Utilities.startsWith(o,m.from)){for(var e=[],r=0,s=m.to.length;r<s;r++)e.push(m.to[r]+o.substr(m.from.length));return e}return[o]},l.prototype._addUrlArgsToUrl=function(o){return u.Utilities.containsQueryString(o)?o+"&"+this.options.urlArgs:o+"?"+this.options.urlArgs},l.prototype._addUrlArgsIfNecessaryToUrl=function(o){return this.options.urlArgs?this._addUrlArgsToUrl(o):o},l.prototype._addUrlArgsIfNecessaryToUrls=function(o){if(this.options.urlArgs)for(var m=0,n=o.length;m<n;m++)o[m]=this._addUrlArgsToUrl(o[m]);return o},l.prototype.moduleIdToPaths=function(o){if(this._env.isNode){var m=this.options.amdModulesPattern instanceof RegExp&&!this.options.amdModulesPattern.test(o);if(m)return this.isBuild()?["empty:"]:["node|"+o]}var n=o,t;if(!u.Utilities.endsWith(n,".js")&&!u.Utilities.isAbsolutePath(n)){t=this._applyPaths(n);for(var e=0,r=t.length;e<r;e++)this.isBuild()&&t[e]==="empty:"||(u.Utilities.isAbsolutePath(t[e])||(t[e]=this.options.baseUrl+t[e]),!u.Utilities.endsWith(t[e],".js")&&!u.Utilities.containsQueryString(t[e])&&(t[e]=t[e]+".js"))}else!u.Utilities.endsWith(n,".js")&&!u.Utilities.containsQueryString(n)&&(n=n+".js"),t=[n];return this._addUrlArgsIfNecessaryToUrls(t)},l.prototype.requireToUrl=function(o){var m=o;return u.Utilities.isAbsolutePath(m)||(m=this._applyPaths(m)[0],u.Utilities.isAbsolutePath(m)||(m=this.options.baseUrl+m)),this._addUrlArgsIfNecessaryToUrl(m)},l.prototype.isBuild=function(){return this.options.isBuild},l.prototype.shouldInvokeFactory=function(o){return!!(!this.options.isBuild||u.Utilities.isAnonymousModule(o)||this.options.buildForceInvokeFactory&&this.options.buildForceInvokeFactory[o])},l.prototype.isDuplicateMessageIgnoredFor=function(o){return this.ignoreDuplicateModulesMap.hasOwnProperty(o)},l.prototype.getConfigForModule=function(o){if(this.options.config)return this.options.config[o]},l.prototype.shouldCatchError=function(){return this.options.catchError},l.prototype.shouldRecordStats=function(){return this.options.recordStats},l.prototype.onError=function(o){this.options.onError(o)},l}();u.Configuration=_})(y||(y={}));var y;(function(u){var v=function(){function t(e){this._env=e,this._scriptLoader=null,this._callbackMap={}}return t.prototype.load=function(e,r,s,i){var a=this;if(!this._scriptLoader)if(this._env.isWebWorker)this._scriptLoader=new l;else if(this._env.isElectronRenderer){var c=e.getConfig().getOptionsLiteral().preferScriptTags;c?this._scriptLoader=new d:this._scriptLoader=new o(this._env)}else this._env.isNode?this._scriptLoader=new o(this._env):this._scriptLoader=new d;var f={callback:s,errorback:i};if(this._callbackMap.hasOwnProperty(r)){this._callbackMap[r].push(f);return}this._callbackMap[r]=[f],this._scriptLoader.load(e,r,function(){return a.triggerCallback(r)},function(p){return a.triggerErrorback(r,p)})},t.prototype.triggerCallback=function(e){var r=this._callbackMap[e];delete this._callbackMap[e];for(var s=0;s<r.length;s++)r[s].callback()},t.prototype.triggerErrorback=function(e,r){var s=this._callbackMap[e];delete this._callbackMap[e];for(var i=0;i<s.length;i++)s[i].errorback(r)},t}(),d=function(){function t(){}return t.prototype.attachListeners=function(e,r,s){var i=function(){e.removeEventListener("load",a),e.removeEventListener("error",c)},a=function(f){i(),r()},c=function(f){i(),s(f)};e.addEventListener("load",a),e.addEventListener("error",c)},t.prototype.load=function(e,r,s,i){if(/^node\|/.test(r)){var a=e.getConfig().getOptionsLiteral(),c=m(e.getRecorder(),a.nodeRequire||u.global.nodeRequire),f=r.split("|"),p=null;try{p=c(f[1])}catch(O){i(O);return}e.enqueueDefineAnonymousModule([],function(){return p}),s()}else{var b=document.createElement("script");b.setAttribute("async","async"),b.setAttribute("type","text/javascript"),this.attachListeners(b,s,i);var C=e.getConfig().getOptionsLiteral().trustedTypesPolicy;C&&(r=C.createScriptURL(r)),b.setAttribute("src",r);var E=e.getConfig().getOptionsLiteral().cspNonce;E&&b.setAttribute("nonce",E),document.getElementsByTagName("head")[0].appendChild(b)}},t}();function _(t){var e=t.getConfig().getOptionsLiteral().trustedTypesPolicy;try{var r=e?self.eval(e.createScript("","true")):new Function("true");return r.call(self),!0}catch{return!1}}var l=function(){function t(){this._cachedCanUseEval=null}return t.prototype._canUseEval=function(e){return this._cachedCanUseEval===null&&(this._cachedCanUseEval=_(e)),this._cachedCanUseEval},t.prototype.load=function(e,r,s,i){if(/^node\|/.test(r)){var a=e.getConfig().getOptionsLiteral(),c=m(e.getRecorder(),a.nodeRequire||u.global.nodeRequire),f=r.split("|"),p=null;try{p=c(f[1])}catch(E){i(E);return}e.enqueueDefineAnonymousModule([],function(){return p}),s()}else{var b=e.getConfig().getOptionsLiteral().trustedTypesPolicy,C=/^((http:)|(https:)|(file:))/.test(r)&&r.substring(0,self.origin.length)!==self.origin;if(!C&&this._canUseEval(e)){fetch(r).then(function(E){if(E.status!==200)throw new Error(E.statusText);return E.text()}).then(function(E){E=E+`
//# sourceURL=`+r;var O=b?self.eval(b.createScript("",E)):new Function(E);O.call(self),s()}).then(void 0,i);return}try{b&&(r=b.createScriptURL(r)),importScripts(r),s()}catch(E){i(E)}}},t}(),o=function(){function t(e){this._env=e,this._didInitialize=!1,this._didPatchNodeRequire=!1}return t.prototype._init=function(e){this._didInitialize||(this._didInitialize=!0,this._fs=e("fs"),this._vm=e("vm"),this._path=e("path"),this._crypto=e("crypto"))},t.prototype._initNodeRequire=function(e,r){var s=r.getConfig().getOptionsLiteral().nodeCachedData;if(!s||this._didPatchNodeRequire)return;this._didPatchNodeRequire=!0;var i=this,a=e("module");function c(f){var p=f.constructor,b=function(E){try{return f.require(E)}finally{}};return b.resolve=function(E,O){return p._resolveFilename(E,f,!1,O)},b.resolve.paths=function(E){return p._resolveLookupPaths(E,f)},b.main=process.mainModule,b.extensions=p._extensions,b.cache=p._cache,b}a.prototype._compile=function(f,p){var b=a.wrap(f.replace(/^#!.*/,"")),C=r.getRecorder(),E=i._getCachedDataPath(s,p),O={filename:p},D;try{var I=i._fs.readFileSync(E);D=I.slice(0,16),O.cachedData=I.slice(16),C.record(60,E)}catch{C.record(61,E)}var R=new i._vm.Script(b,O),N=R.runInThisContext(O),k=i._path.dirname(p),L=c(this),A=[this.exports,L,this,p,k,process,P,Buffer],U=N.apply(this.exports,A);return i._handleCachedData(R,b,E,!O.cachedData,r),i._verifyCachedData(R,b,E,D,r),U}},t.prototype.load=function(e,r,s,i){var a=this,c=e.getConfig().getOptionsLiteral(),f=m(e.getRecorder(),c.nodeRequire||u.global.nodeRequire),p=c.nodeInstrumenter||function(N){return N};this._init(f),this._initNodeRequire(f,e);var b=e.getRecorder();if(/^node\|/.test(r)){var C=r.split("|"),E=null;try{E=f(C[1])}catch(N){i(N);return}e.enqueueDefineAnonymousModule([],function(){return E}),s()}else{r=u.Utilities.fileUriToFilePath(this._env.isWindows,r);var O=this._path.normalize(r),D=this._getElectronRendererScriptPathOrUri(O),I=Boolean(c.nodeCachedData),R=I?this._getCachedDataPath(c.nodeCachedData,r):void 0;this._readSourceAndCachedData(O,R,b,function(N,k,L,A){if(N){i(N);return}var U;k.charCodeAt(0)===t._BOM?U=t._PREFIX+k.substring(1)+t._SUFFIX:U=t._PREFIX+k+t._SUFFIX,U=p(U,O);var T={filename:D,cachedData:L},q=a._createAndEvalScript(e,U,T,s,i);a._handleCachedData(q,U,R,I&&!L,e),a._verifyCachedData(q,U,R,A,e)})}},t.prototype._createAndEvalScript=function(e,r,s,i,a){var c=e.getRecorder();c.record(31,s.filename);var f=new this._vm.Script(r,s),p=f.runInThisContext(s),b=e.getGlobalAMDDefineFunc(),C=!1,E=function(){return C=!0,b.apply(null,arguments)};return E.amd=b.amd,p.call(u.global,e.getGlobalAMDRequireFunc(),E,s.filename,this._path.dirname(s.filename)),c.record(32,s.filename),C?i():a(new Error("Didn't receive define call in "+s.filename+"!")),f},t.prototype._getElectronRendererScriptPathOrUri=function(e){if(!this._env.isElectronRenderer)return e;var r=e.match(/^([a-z])\:(.*)/i);return r?"file:///"+(r[1].toUpperCase()+":"+r[2]).replace(/\\/g,"/"):"file://"+e},t.prototype._getCachedDataPath=function(e,r){var s=this._crypto.createHash("md5").update(r,"utf8").update(e.seed,"utf8").update(process.arch,"").digest("hex"),i=this._path.basename(r).replace(/\.js$/,"");return this._path.join(e.path,i+"-"+s+".code")},t.prototype._handleCachedData=function(e,r,s,i,a){var c=this;e.cachedDataRejected?this._fs.unlink(s,function(f){a.getRecorder().record(62,s),c._createAndWriteCachedData(e,r,s,a),f&&a.getConfig().onError(f)}):i&&this._createAndWriteCachedData(e,r,s,a)},t.prototype._createAndWriteCachedData=function(e,r,s,i){var a=this,c=Math.ceil(i.getConfig().getOptionsLiteral().nodeCachedData.writeDelay*(1+Math.random())),f=-1,p=0,b=void 0,C=function(){setTimeout(function(){b||(b=a._crypto.createHash("md5").update(r,"utf8").digest());var E=e.createCachedData();if(!(E.length===0||E.length===f||p>=5)){if(E.length<f){C();return}f=E.length,a._fs.writeFile(s,Buffer.concat([b,E]),function(O){O&&i.getConfig().onError(O),i.getRecorder().record(63,s),C()})}},c*Math.pow(4,p++))};C()},t.prototype._readSourceAndCachedData=function(e,r,s,i){if(!r)this._fs.readFile(e,{encoding:"utf8"},i);else{var a=void 0,c=void 0,f=void 0,p=2,b=function(C){C?i(C):--p===0&&i(void 0,a,c,f)};this._fs.readFile(e,{encoding:"utf8"},function(C,E){a=E,b(C)}),this._fs.readFile(r,function(C,E){!C&&E&&E.length>0?(f=E.slice(0,16),c=E.slice(16),s.record(60,r)):s.record(61,r),b()})}},t.prototype._verifyCachedData=function(e,r,s,i,a){var c=this;!i||e.cachedDataRejected||setTimeout(function(){var f=c._crypto.createHash("md5").update(r,"utf8").digest();i.equals(f)||(a.getConfig().onError(new Error("FAILED TO VERIFY CACHED DATA, deleting stale '"+s+"' now, but a RESTART IS REQUIRED")),c._fs.unlink(s,function(p){p&&a.getConfig().onError(p)}))},Math.ceil(5e3*(1+Math.random())))},t._BOM=65279,t._PREFIX="(function (require, define, __filename, __dirname) { ",t._SUFFIX=`
});`,t}();function m(t,e){if(e.__$__isRecorded)return e;var r=function(i){t.record(33,i);try{return e(i)}finally{t.record(34,i)}};return r.__$__isRecorded=!0,r}u.ensureRecordedNodeRequire=m;function n(t){return new v(t)}u.createScriptLoader=n})(y||(y={}));var y;(function(u){var v=function(){function n(t){var e=t.lastIndexOf("/");e!==-1?this.fromModulePath=t.substr(0,e+1):this.fromModulePath=""}return n._normalizeModuleId=function(t){var e=t,r;for(r=/\/\.\//;r.test(e);)e=e.replace(r,"/");for(e=e.replace(/^\.\//g,""),r=/\/(([^\/])|([^\/][^\/\.])|([^\/\.][^\/])|([^\/][^\/][^\/]+))\/\.\.\//;r.test(e);)e=e.replace(r,"/");return e=e.replace(/^(([^\/])|([^\/][^\/\.])|([^\/\.][^\/])|([^\/][^\/][^\/]+))\/\.\.\//,""),e},n.prototype.resolveModule=function(t){var e=t;return u.Utilities.isAbsolutePath(e)||(u.Utilities.startsWith(e,"./")||u.Utilities.startsWith(e,"../"))&&(e=n._normalizeModuleId(this.fromModulePath+e)),e},n.ROOT=new n(""),n}();u.ModuleIdResolver=v;var d=function(){function n(t,e,r,s,i,a){this.id=t,this.strId=e,this.dependencies=r,this._callback=s,this._errorback=i,this.moduleIdResolver=a,this.exports={},this.error=null,this.exportsPassedIn=!1,this.unresolvedDependenciesCount=this.dependencies.length,this._isComplete=!1}return n._safeInvokeFunction=function(t,e){try{return{returnedValue:t.apply(u.global,e),producedError:null}}catch(r){return{returnedValue:null,producedError:r}}},n._invokeFactory=function(t,e,r,s){return t.shouldInvokeFactory(e)?t.shouldCatchError()?this._safeInvokeFunction(r,s):{returnedValue:r.apply(u.global,s),producedError:null}:{returnedValue:null,producedError:null}},n.prototype.complete=function(t,e,r,s){this._isComplete=!0;var i=null;if(this._callback)if(typeof this._callback=="function"){t.record(21,this.strId);var a=n._invokeFactory(e,this.strId,this._callback,r);i=a.producedError,t.record(22,this.strId),!i&&typeof a.returnedValue<"u"&&(!this.exportsPassedIn||u.Utilities.isEmpty(this.exports))&&(this.exports=a.returnedValue)}else this.exports=this._callback;if(i){var c=u.ensureError(i);c.phase="factory",c.moduleId=this.strId,c.neededBy=s(this.id),this.error=c,e.onError(c)}this.dependencies=null,this._callback=null,this._errorback=null,this.moduleIdResolver=null},n.prototype.onDependencyError=function(t){return this._isComplete=!0,this.error=t,this._errorback?(this._errorback(t),!0):!1},n.prototype.isComplete=function(){return this._isComplete},n}();u.Module=d;var _=function(){function n(){this._nextId=0,this._strModuleIdToIntModuleId=new Map,this._intModuleIdToStrModuleId=[],this.getModuleId("exports"),this.getModuleId("module"),this.getModuleId("require")}return n.prototype.getMaxModuleId=function(){return this._nextId},n.prototype.getModuleId=function(t){var e=this._strModuleIdToIntModuleId.get(t);return typeof e>"u"&&(e=this._nextId++,this._strModuleIdToIntModuleId.set(t,e),this._intModuleIdToStrModuleId[e]=t),e},n.prototype.getStrModuleId=function(t){return this._intModuleIdToStrModuleId[t]},n}(),l=function(){function n(t){this.id=t}return n.EXPORTS=new n(0),n.MODULE=new n(1),n.REQUIRE=new n(2),n}();u.RegularDependency=l;var o=function(){function n(t,e,r){this.id=t,this.pluginId=e,this.pluginParam=r}return n}();u.PluginDependency=o;var m=function(){function n(t,e,r,s,i){i===void 0&&(i=0),this._env=t,this._scriptLoader=e,this._loaderAvailableTimestamp=i,this._defineFunc=r,this._requireFunc=s,this._moduleIdProvider=new _,this._config=new u.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 n.prototype.reset=function(){return new n(this._env,this._scriptLoader,this._defineFunc,this._requireFunc,this._loaderAvailableTimestamp)},n.prototype.getGlobalAMDDefineFunc=function(){return this._defineFunc},n.prototype.getGlobalAMDRequireFunc=function(){return this._requireFunc},n._findRelevantLocationInStack=function(t,e){for(var r=function(O){return O.replace(/\\/g,"/")},s=r(t),i=e.split(/\n/),a=0;a<i.length;a++){var c=i[a].match(/(.*):(\d+):(\d+)\)?$/);if(c){var f=c[1],p=c[2],b=c[3],C=Math.max(f.lastIndexOf(" ")+1,f.lastIndexOf("(")+1);if(f=f.substr(C),f=r(f),f===s){var E={line:parseInt(p,10),col:parseInt(b,10)};return E.line===1&&(E.col-=53),E}}}throw new Error("Could not correlate define call site for needle "+t)},n.prototype.getBuildInfo=function(){if(!this._config.isBuild())return null;for(var t=[],e=0,r=0,s=this._modules2.length;r<s;r++){var i=this._modules2[r];if(!!i){var a=this._buildInfoPath[i.id]||null,c=this._buildInfoDefineStack[i.id]||null,f=this._buildInfoDependencies[i.id];t[e++]={id:i.strId,path:a,defineLocation:a&&c?n._findRelevantLocationInStack(a,c):null,dependencies:f,shim:null,exports:i.exports}}}return t},n.prototype.getRecorder=function(){return this._recorder||(this._config.shouldRecordStats()?this._recorder=new u.LoaderEventRecorder(this._loaderAvailableTimestamp):this._recorder=u.NullLoaderEventRecorder.INSTANCE),this._recorder},n.prototype.getLoaderEvents=function(){return this.getRecorder().getEvents()},n.prototype.enqueueDefineAnonymousModule=function(t,e){if(this._currentAnonymousDefineCall!==null)throw new Error("Can only have one anonymous define call per script file");var r=null;this._config.isBuild()&&(r=new Error("StackLocation").stack||null),this._currentAnonymousDefineCall={stack:r,dependencies:t,callback:e}},n.prototype.defineModule=function(t,e,r,s,i,a){var c=this;a===void 0&&(a=new v(t));var f=this._moduleIdProvider.getModuleId(t);if(this._modules2[f]){this._config.isDuplicateMessageIgnoredFor(t)||console.warn("Duplicate definition of module '"+t+"'");return}var p=new d(f,t,this._normalizeDependencies(e,a),r,s,a);this._modules2[f]=p,this._config.isBuild()&&(this._buildInfoDefineStack[f]=i,this._buildInfoDependencies[f]=(p.dependencies||[]).map(function(b){return c._moduleIdProvider.getStrModuleId(b.id)})),this._resolve(p)},n.prototype._normalizeDependency=function(t,e){if(t==="exports")return l.EXPORTS;if(t==="module")return l.MODULE;if(t==="require")return l.REQUIRE;var r=t.indexOf("!");if(r>=0){var s=e.resolveModule(t.substr(0,r)),i=e.resolveModule(t.substr(r+1)),a=this._moduleIdProvider.getModuleId(s+"!"+i),c=this._moduleIdProvider.getModuleId(s);return new o(a,c,i)}return new l(this._moduleIdProvider.getModuleId(e.resolveModule(t)))},n.prototype._normalizeDependencies=function(t,e){for(var r=[],s=0,i=0,a=t.length;i<a;i++)r[s++]=this._normalizeDependency(t[i],e);return r},n.prototype._relativeRequire=function(t,e,r,s){if(typeof e=="string")return this.synchronousRequire(e,t);this.defineModule(u.Utilities.generateAnonymousModule(),e,r,s,null,t)},n.prototype.synchronousRequire=function(t,e){e===void 0&&(e=new v(t));var r=this._normalizeDependency(t,e),s=this._modules2[r.id];if(!s)throw new Error("Check dependency list! Synchronous require cannot resolve module '"+t+"'. This is the first mention of this module!");if(!s.isComplete())throw new Error("Check dependency list! Synchronous require cannot resolve module '"+t+"'. This module has not been resolved completely yet.");if(s.error)throw s.error;return s.exports},n.prototype.configure=function(t,e){var r=this._config.shouldRecordStats();e?this._config=new u.Configuration(this._env,t):this._config=this._config.cloneAndMerge(t),this._config.shouldRecordStats()&&!r&&(this._recorder=null)},n.prototype.getConfig=function(){return this._config},n.prototype._onLoad=function(t){if(this._currentAnonymousDefineCall!==null){var e=this._currentAnonymousDefineCall;this._currentAnonymousDefineCall=null,this.defineModule(this._moduleIdProvider.getStrModuleId(t),e.dependencies,e.callback,null,e.stack)}},n.prototype._createLoadError=function(t,e){var r=this,s=this._moduleIdProvider.getStrModuleId(t),i=(this._inverseDependencies2[t]||[]).map(function(c){return r._moduleIdProvider.getStrModuleId(c)}),a=u.ensureError(e);return a.phase="loading",a.moduleId=s,a.neededBy=i,a},n.prototype._onLoadError=function(t,e){var r=this._createLoadError(t,e);this._modules2[t]||(this._modules2[t]=new d(t,this._moduleIdProvider.getStrModuleId(t),[],function(){},null,null));for(var s=[],i=0,a=this._moduleIdProvider.getMaxModuleId();i<a;i++)s[i]=!1;var c=!1,f=[];for(f.push(t),s[t]=!0;f.length>0;){var p=f.shift(),b=this._modules2[p];b&&(c=b.onDependencyError(r)||c);var C=this._inverseDependencies2[p];if(C)for(var i=0,a=C.length;i<a;i++){var E=C[i];s[E]||(f.push(E),s[E]=!0)}}c||this._config.onError(r)},n.prototype._hasDependencyPath=function(t,e){var r=this._modules2[t];if(!r)return!1;for(var s=[],i=0,a=this._moduleIdProvider.getMaxModuleId();i<a;i++)s[i]=!1;var c=[];for(c.push(r),s[t]=!0;c.length>0;){var f=c.shift(),p=f.dependencies;if(p)for(var i=0,a=p.length;i<a;i++){var b=p[i];if(b.id===e)return!0;var C=this._modules2[b.id];C&&!s[b.id]&&(s[b.id]=!0,c.push(C))}}return!1},n.prototype._findCyclePath=function(t,e,r){if(t===e||r===50)return[t];var s=this._modules2[t];if(!s)return null;var i=s.dependencies;if(i)for(var a=0,c=i.length;a<c;a++){var f=this._findCyclePath(i[a].id,e,r+1);if(f!==null)return f.push(t),f}return null},n.prototype._createRequire=function(t){var e=this,r=function(s,i,a){return e._relativeRequire(t,s,i,a)};return r.toUrl=function(s){return e._config.requireToUrl(t.resolveModule(s))},r.getStats=function(){return e.getLoaderEvents()},r.hasDependencyCycle=function(){return e._hasDependencyCycle},r.config=function(s,i){i===void 0&&(i=!1),e.configure(s,i)},r.__$__nodeRequire=u.global.nodeRequire,r},n.prototype._loadModule=function(t){var e=this;if(!(this._modules2[t]||this._knownModules2[t])){this._knownModules2[t]=!0;var r=this._moduleIdProvider.getStrModuleId(t),s=this._config.moduleIdToPaths(r),i=/^@[^\/]+\/[^\/]+$/;this._env.isNode&&(r.indexOf("/")===-1||i.test(r))&&s.push("node|"+r);var a=-1,c=function(f){if(a++,a>=s.length)e._onLoadError(t,f);else{var p=s[a],b=e.getRecorder();if(e._config.isBuild()&&p==="empty:"){e._buildInfoPath[t]=p,e.defineModule(e._moduleIdProvider.getStrModuleId(t),[],null,null,null),e._onLoad(t);return}b.record(10,p),e._scriptLoader.load(e,p,function(){e._config.isBuild()&&(e._buildInfoPath[t]=p),b.record(11,p),e._onLoad(t)},function(C){b.record(12,p),c(C)})}};c(null)}},n.prototype._loadPluginDependency=function(t,e){var r=this;if(!(this._modules2[e.id]||this._knownModules2[e.id])){this._knownModules2[e.id]=!0;var s=function(i){r.defineModule(r._moduleIdProvider.getStrModuleId(e.id),[],i,null,null)};s.error=function(i){r._config.onError(r._createLoadError(e.id,i))},t.load(e.pluginParam,this._createRequire(v.ROOT),s,this._config.getOptionsLiteral())}},n.prototype._resolve=function(t){var e=this,r=t.dependencies;if(r)for(var s=0,i=r.length;s<i;s++){var a=r[s];if(a===l.EXPORTS){t.exportsPassedIn=!0,t.unresolvedDependenciesCount--;continue}if(a===l.MODULE){t.unresolvedDependenciesCount--;continue}if(a===l.REQUIRE){t.unresolvedDependenciesCount--;continue}var c=this._modules2[a.id];if(c&&c.isComplete()){if(c.error){t.onDependencyError(c.error);return}t.unresolvedDependenciesCount--;continue}if(this._hasDependencyPath(a.id,t.id)){this._hasDependencyCycle=!0,console.warn("There is a dependency cycle between '"+this._moduleIdProvider.getStrModuleId(a.id)+"' and '"+this._moduleIdProvider.getStrModuleId(t.id)+"'. The cyclic path follows:");var f=this._findCyclePath(a.id,t.id,0)||[];f.reverse(),f.push(a.id),console.warn(f.map(function(C){return e._moduleIdProvider.getStrModuleId(C)}).join(` =>
`)),t.unresolvedDependenciesCount--;continue}if(this._inverseDependencies2[a.id]=this._inverseDependencies2[a.id]||[],this._inverseDependencies2[a.id].push(t.id),a instanceof o){var p=this._modules2[a.pluginId];if(p&&p.isComplete()){this._loadPluginDependency(p.exports,a);continue}var b=this._inversePluginDependencies2.get(a.pluginId);b||(b=[],this._inversePluginDependencies2.set(a.pluginId,b)),b.push(a),this._loadModule(a.pluginId);continue}this._loadModule(a.id)}t.unresolvedDependenciesCount===0&&this._onModuleComplete(t)},n.prototype._onModuleComplete=function(t){var e=this,r=this.getRecorder();if(!t.isComplete()){var s=t.dependencies,i=[];if(s)for(var a=0,c=s.length;a<c;a++){var f=s[a];if(f===l.EXPORTS){i[a]=t.exports;continue}if(f===l.MODULE){i[a]={id:t.strId,config:function(){return e._config.getConfigForModule(t.strId)}};continue}if(f===l.REQUIRE){i[a]=this._createRequire(t.moduleIdResolver);continue}var p=this._modules2[f.id];if(p){i[a]=p.exports;continue}i[a]=null}var b=function(I){return(e._inverseDependencies2[I]||[]).map(function(R){return e._moduleIdProvider.getStrModuleId(R)})};t.complete(r,this._config,i,b);var C=this._inverseDependencies2[t.id];if(this._inverseDependencies2[t.id]=null,C)for(var a=0,c=C.length;a<c;a++){var E=C[a],O=this._modules2[E];O.unresolvedDependenciesCount--,O.unresolvedDependenciesCount===0&&this._onModuleComplete(O)}var D=this._inversePluginDependencies2.get(t.id);if(D){this._inversePluginDependencies2.delete(t.id);for(var a=0,c=D.length;a<c;a++)this._loadPluginDependency(t.exports,D[a])}}},n}();u.ModuleManager=m})(y||(y={}));var S,y;(function(u){var v=new u.Environment,d=null,_=function(n,t,e){typeof n!="string"&&(e=t,t=n,n=null),(typeof t!="object"||!Array.isArray(t))&&(e=t,t=null),t||(t=["require","exports","module"]),n?d.defineModule(n,t,e,null,null):d.enqueueDefineAnonymousModule(t,e)};_.amd={jQuery:!0};var l=function(n,t){t===void 0&&(t=!1),d.configure(n,t)},o=function(){if(arguments.length===1){if(arguments[0]instanceof Object&&!Array.isArray(arguments[0])){l(arguments[0]);return}if(typeof arguments[0]=="string")return d.synchronousRequire(arguments[0])}if((arguments.length===2||arguments.length===3)&&Array.isArray(arguments[0])){d.defineModule(u.Utilities.generateAnonymousModule(),arguments[0],arguments[1],arguments[2],null);return}throw new Error("Unrecognized require call")};o.config=l,o.getConfig=function(){return d.getConfig().getOptionsLiteral()},o.reset=function(){d=d.reset()},o.getBuildInfo=function(){return d.getBuildInfo()},o.getStats=function(){return d.getLoaderEvents()},o.define=_;function m(){if(typeof u.global.require<"u"||typeof require<"u"){var n=u.global.require||require;if(typeof n=="function"&&typeof n.resolve=="function"){var t=u.ensureRecordedNodeRequire(d.getRecorder(),n);u.global.nodeRequire=t,o.nodeRequire=t,o.__$__nodeRequire=t}}v.isNode&&!v.isElectronRenderer&&!v.isElectronNodeIntegrationWebWorker?g.exports=o:(v.isElectronRenderer||(u.global.define=_),u.global.require=o)}u.init=m,(typeof u.global.define!="function"||!u.global.define.amd)&&(d=new u.ModuleManager(v,u.createScriptLoader(v),_,o,u.Utilities.getHighPerformanceTimestamp()),typeof u.global.require<"u"&&typeof u.global.require!="function"&&o.config(u.global.require),S=function(){return _.apply(null,arguments)},S.amd=_.amd,typeof doNotInitLoader>"u"&&m())})(y||(y={})),S("vs/css",["require","exports"],function(u,v){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.load=void 0;function d(n,t,e,r){if(r=r||{},(r["vs/css"]||{}).disabled){e({});return}const i=t.toUrl(n+".css");_(n,i,()=>{e({})},a=>{typeof e.error=="function"&&e.error("Could not find "+i+".")})}v.load=d;function _(n,t,e,r){if(l(n,t)){e();return}o(n,t,e,r)}function l(n,t){const e=document.getElementsByTagName("link");for(let r=0,s=e.length;r<s;r++){const i=e[r].getAttribute("data-name"),a=e[r].getAttribute("href");if(i===n||a===t)return!0}return!1}function o(n,t,e,r){const s=document.createElement("link");s.setAttribute("rel","stylesheet"),s.setAttribute("type","text/css"),s.setAttribute("data-name",n),m(n,s,e,r),s.setAttribute("href",t),(document.head||document.getElementsByTagName("head")[0]).appendChild(s)}function m(n,t,e,r){const s=()=>{t.removeEventListener("load",i),t.removeEventListener("error",a)},i=c=>{s(),e()},a=c=>{s(),r(c)};t.addEventListener("load",i),t.addEventListener("error",a)}}),S("vs/nls",["require","exports"],function(u,v){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.load=v.create=v.setPseudoTranslation=v.getConfiguredDefaultLocale=v.localize=void 0;let d=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;const _="i-default";function l(c,f){let p;return f.length===0?p=c:p=c.replace(/\{(\d+)\}/g,(b,C)=>{const E=C[0],O=f[E];let D=b;return typeof O=="string"?D=O:(typeof O=="number"||typeof O=="boolean"||O===void 0||O===null)&&(D=String(O)),D}),d&&(p="\uFF3B"+p.replace(/[aouei]/g,"$&$&")+"\uFF3D"),p}function o(c,f){let p=c[f];return p||(p=c["*"],p)?p:null}function m(c){return c.charAt(c.length-1)==="/"?c:c+"/"}async function n(c,f,p){const b=m(c)+m(f)+"vscode/"+m(p),C=await fetch(b);if(C.ok)return await C.json();throw new Error(`${C.status} - ${C.statusText}`)}function t(c){return function(f,p){const b=Array.prototype.slice.call(arguments,2);return l(c[f],b)}}function e(c,f,...p){return l(f,p)}v.localize=e;function r(c){}v.getConfiguredDefaultLocale=r;function s(c){d=c}v.setPseudoTranslation=s;function i(c,f){return{localize:t(f[c]),getConfiguredDefaultLocale:f.getConfiguredDefaultLocale??(p=>{})}}v.create=i;function a(c,f,p,b){const C=b["vs/nls"]??{};if(!c||c.length===0)return p({localize:e,getConfiguredDefaultLocale:()=>C.availableLanguages?.["*"]});const E=C.availableLanguages?o(C.availableLanguages,c):null,O=E===null||E===_;let D=".nls";O||(D=D+"."+E);const I=R=>{Array.isArray(R)?R.localize=t(R):R.localize=t(R[c]),R.getConfiguredDefaultLocale=()=>C.availableLanguages?.["*"],p(R)};typeof C.loadBundle=="function"?C.loadBundle(c,E,(R,N)=>{R?f([c+".nls"],I):I(N)}):C.translationServiceUrl&&!O?(async()=>{try{const R=await n(C.translationServiceUrl,E,c);return I(R)}catch(R){if(!E.includes("-"))return console.error(R),f([c+".nls"],I);try{const N=E.split("-")[0],k=await n(C.translationServiceUrl,N,c);return C.availableLanguages??={},C.availableLanguages["*"]=N,I(k)}catch(N){return console.error(N),f([c+".nls"],I)}}})():f([c+D],I,R=>{if(D===".nls"){console.error("Failed trying to load default language strings",R);return}console.error(`Failed to load message bundle for language ${E}. Falling back to the default language:`,R),f([c+".nls"],I)})}v.load=a})}}),require_bootstrap_amd=__commonJS({"out-build/bootstrap-amd.js"(h){"use strict";var g=require;globalThis._VSCODE_NODE_MODULES=new Proxy(Object.create(null),{get:(u,v)=>g(String(v))}),globalThis._VSCODE_PRODUCT_JSON=require("../product.json"),globalThis._VSCODE_PACKAGE_JSON=require("../package.json");var w=require_loader(),P=require_bootstrap(),S=require_performance(),y=P.setupNLS();w.config({baseUrl:P.fileUriFromPath(__dirname,{isWindows:process.platform==="win32"}),catchError:!0,nodeRequire:g,"vs/nls":y,amdModulesPattern:/^vs\//,recordStats:!0}),(process.env.ELECTRON_RUN_AS_NODE||process.versions.electron)&&w.define("fs",["original-fs"],function(u){return u}),y&&y.pseudo&&w(["vs/nls"],function(u){u.setPseudoTranslation(!!y.pseudo)}),h.load=function(u,v,d){!u||(process.env.VSCODE_CODE_CACHE_PATH&&w.config({nodeCachedData:{path:process.env.VSCODE_CODE_CACHE_PATH,seed:u}}),v=v||function(){},d=d||function(_){console.error(_)},S.mark("code/fork/willLoadCode"),w([u],v,d))}}}),perf=require_performance();perf.mark("code/didStartMain");var path=require("path"),fs=require("fs"),os=require("os"),bootstrap=require_bootstrap(),bootstrapNode=require_bootstrap_node(),{getUserDataPath}=require_userDataPath(),{stripComments}=require_stripComments(),product=require("../product.json"),{app,protocol,crashReporter,Menu}=require("electron"),portable=bootstrapNode.configurePortable(product);bootstrap.enableASARSupport();var args=parseCLIArgs(),userDataPath=getUserDataPath(args,product.nameShort??"code-oss-dev");app.setPath("userData",userDataPath);var codeCachePath=getCodeCachePath(),argvConfig=configureCommandlineSwitchesSync(args);Menu.setApplicationMenu(null),perf.mark("code/willStartCrashReporter"),(args["crash-reporter-directory"]||argvConfig["enable-crash-reporter"]&&!args["disable-crash-reporter"])&&configureCrashReporter(),perf.mark("code/didStartCrashReporter"),portable&&portable.isPortable&&app.setAppLogsPath(path.join(userDataPath,"logs")),protocol.registerSchemesAsPrivileged([{scheme:"vscode-webview",privileges:{standard:!0,secure:!0,supportFetchAPI:!0,corsEnabled:!0,allowServiceWorkers:!0}},{scheme:"vscode-file",privileges:{secure:!0,standard:!0,supportFetchAPI:!0,corsEnabled:!0}}]),registerListeners();var nlsConfigurationPromise=void 0,metaDataFile=path.join(__dirname,"nls.metadata.json"),language=getUserDefinedLocale(argvConfig),osLocale=void 0;if("getPreferredSystemLanguages"in app&&typeof app.getPreferredSystemLanguages=="function"&&(osLocale=app.getPreferredSystemLanguages()?.[0]??"en",osLocale&&(osLocale=processZhLocale(osLocale.toLowerCase()))),language&&osLocale){const{getNLSConfiguration:h}=require_languagePacks();nlsConfigurationPromise=h(product.commit,userDataPath,metaDataFile,osLocale,language)}if(process.platform==="win32"||process.platform==="linux"){const h=!language||language==="qps-ploc"?"en":language;app.commandLine.appendSwitch("lang",h)}app.once("ready",function(){if(args.trace){const h=require("electron").contentTracing,g={categoryFilter:args["trace-category-filter"]||"*",traceOptions:args["trace-options"]||"record-until-full,enable-sampling"};h.startRecording(g).finally(()=>onReady())}else onReady()});function startup(h,g){g._languagePackSupport=!0,process.env.VSCODE_NLS_CONFIG=JSON.stringify(g),process.env.VSCODE_CODE_CACHE_PATH=h||"",perf.mark("code/willLoadMainBundle"),require_bootstrap_amd().load("vs/code/electron-main/main",()=>{perf.mark("code/didLoadMainBundle")})}async function onReady(){perf.mark("code/mainAppReady");try{const[,h]=await Promise.all([mkdirpIgnoreError(codeCachePath),resolveNlsConfiguration()]);startup(codeCachePath,h)}catch(h){console.error(h)}}function configureCommandlineSwitchesSync(h){const g=["disable-hardware-acceleration","force-color-profile"];process.platform==="linux"&&g.push("force-renderer-accessibility");const w=["enable-proposed-api","log-level"],P=readArgvConfigSync();Object.keys(P).forEach(y=>{const u=P[y];if(g.indexOf(y)!==-1)y==="force-color-profile"?u&&app.commandLine.appendSwitch(y,u):(u===!0||u==="true")&&(y==="disable-hardware-acceleration"?app.disableHardwareAcceleration():app.commandLine.appendSwitch(y));else if(w.indexOf(y)!==-1)switch(y){case"enable-proposed-api":Array.isArray(u)?u.forEach(v=>v&&typeof v=="string"&&process.argv.push("--enable-proposed-api",v)):console.error("Unexpected value for `enable-proposed-api` in argv.json. Expected array of extension ids.");break;case"log-level":if(typeof u=="string")process.argv.push("--log",u);else if(Array.isArray(u))for(const v of u)process.argv.push("--log",v);break}}),app.commandLine.appendSwitch("disable-features","CalculateNativeWinOcclusion");const S=getJSFlags(h);return S&&app.commandLine.appendSwitch("js-flags",S),P}function readArgvConfigSync(){const h=getArgvConfigPath();let g;try{g=JSON.parse(stripComments(fs.readFileSync(h).toString()))}catch(w){w&&w.code==="ENOENT"?createDefaultArgvConfigSync(h):console.warn(`Unable to read argv.json configuration file in ${h}, falling back to defaults (${w})`)}return g||(g={}),g}function createDefaultArgvConfigSync(h){try{const g=path.dirname(h);fs.existsSync(g)||fs.mkdirSync(g);const w=["// This configuration file allows you to pass permanent command line arguments to VS Code.","// Only a subset of arguments is currently supported to reduce the likelihood of breaking","// the installation.","//","// PLEASE DO NOT CHANGE WITHOUT UNDERSTANDING THE IMPACT","//","// NOTE: Changing this file requires a restart of VS Code.","{"," // Use software rendering instead of hardware accelerated rendering."," // This can help in cases where you see rendering issues in VS Code.",' // "disable-hardware-acceleration": true',"}"];fs.writeFileSync(h,w.join(`
`))}catch(g){console.error(`Unable to create argv.json configuration file in ${h}, falling back to defaults (${g})`)}}function getArgvConfigPath(){const h=process.env.VSCODE_PORTABLE;if(h)return path.join(h,"argv.json");let g=product.dataFolderName;return process.env.VSCODE_DEV&&(g=`${g}-dev`),path.join(os.homedir(),g,"argv.json")}function configureCrashReporter(){let h=args["crash-reporter-directory"],g="";if(h){if(h=path.normalize(h),path.isAbsolute(h)||(console.error(`The path '${h}' specified for --crash-reporter-directory must be absolute.`),app.exit(1)),!fs.existsSync(h))try{fs.mkdirSync(h,{recursive:!0})}catch{console.error(`The path '${h}' specified for --crash-reporter-directory does not seem to exist or cannot be created.`),app.exit(1)}console.log(`Found --crash-reporter-directory argument. Setting crashDumps directory to be '${h}'`),app.setPath("crashDumps",h)}else{const y=product.appCenter;if(y){const u=process.platform==="win32",v=process.platform==="linux",d=process.platform==="darwin",_=argvConfig["crash-reporter-id"];if(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(_)){if(u)switch(process.arch){case"ia32":g=y["win32-ia32"];break;case"x64":g=y["win32-x64"];break;case"arm64":g=y["win32-arm64"];break}else if(d)if(product.darwinUniversalAssetId)g=y["darwin-universal"];else switch(process.arch){case"x64":g=y.darwin;break;case"arm64":g=y["darwin-arm64"];break}else v&&(g=y["linux-x64"]);g=g.concat("&uid=",_,"&iid=",_,"&sid=",_);const o=process.argv,m=o.indexOf("--");m===-1?o.push("--crash-reporter-id",_):o.splice(m,0,"--crash-reporter-id",_)}}}const w=(product.crashReporter?product.crashReporter.productName:void 0)||product.nameShort,P=(product.crashReporter?product.crashReporter.companyName:void 0)||"Microsoft",S=Boolean(!process.env.VSCODE_DEV&&g&&!h);crashReporter.start({companyName:P,productName:process.env.VSCODE_DEV?`${w} Dev`:w,submitURL:g,uploadToServer:S,compress:!0})}function getJSFlags(h){const g=[];return h["js-flags"]&&g.push(h["js-flags"]),h["max-memory"]&&!/max_old_space_size=(\d+)/g.exec(h["js-flags"]??"")&&g.push(`--max_old_space_size=${h["max-memory"]}`),g.length>0?g.join(" "):null}function parseCLIArgs(){return require("minimist")(process.argv,{string:["user-data-dir","locale","js-flags","max-memory","crash-reporter-directory"]})}function registerListeners(){const h=[];global.macOpenFiles=h,app.on("open-file",function(P,S){h.push(S)});const g=[],w=function(P,S){P.preventDefault(),g.push(S)};app.on("will-finish-launching",function(){app.on("open-url",w)}),global.getOpenUrls=function(){return app.removeListener("open-url",w),g}}function getCodeCachePath(){if(process.argv.indexOf("--no-cached-data")>0||process.env.VSCODE_DEV)return;const h=product.commit;if(!!h)return path.join(userDataPath,"CachedData",h)}function mkdirp(h){return new Promise((g,w)=>{fs.mkdir(h,{recursive:!0},P=>P&&P.code!=="EEXIST"?w(P):g(h))})}async function mkdirpIgnoreError(h){if(typeof h=="string")try{return await mkdirp(h),h}catch{}}function processZhLocale(h){if(h.startsWith("zh")){const g=h.split("-")[1];return["hans","cn","sg","my"].includes(g)?"zh-cn":"zh-tw"}return h}async function resolveNlsConfiguration(){let h=nlsConfigurationPromise?await nlsConfigurationPromise:void 0;if(!h){osLocale??=processZhLocale(app.getLocale().toLowerCase());const{getNLSConfiguration:g}=require_languagePacks();h=await g(product.commit,userDataPath,metaDataFile,osLocale,language),h||(h={locale:osLocale,availableLanguages:{}})}return h}function getUserDefinedLocale(h){const g=args.locale;return g?g.toLowerCase():h.locale&&typeof h.locale=="string"?h.locale.toLowerCase():void 0}
//# sourceMappingURL=https://ticino.blob.core.windows.net/sourcemaps/ee2b180d582a7f601fa6ecfdad8d9fd269ab1884/core/main.js.map