%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/nginx/.vscode-server/bin/6c3e3dba23e8fadc360aed75ce363ba185c49794/out/
Upload File :
Create Path :
Current File : //home/nginx/.vscode-server/bin/6c3e3dba23e8fadc360aed75ce363ba185c49794/out/server-main.js

"use strict";var __getOwnPropNames=Object.getOwnPropertyNames,__commonJS=(R,E)=>function(){return E||(0,R[__getOwnPropNames(R)[0]])((E={exports:{}}).exports,E),E.exports},require_performance=__commonJS({"out-build/vs/base/common/performance.js"(R,E){"use strict";(function(){function b(o){const f=[];typeof o=="number"&&f.push("code/timeOrigin",o);function _(h){f.push(h,Date.now())}function p(){const h=[];for(let n=0;n<f.length;n+=2)h.push({name:f[n],startTime:f[n+1]});return h}return{mark:_,getMarks:p}}function C(){if(typeof performance=="object"&&typeof performance.mark=="function"&&!performance.nodeTiming)return typeof performance.timeOrigin!="number"&&!performance.timing?b():{mark(o){performance.mark(o)},getMarks(){let o=performance.timeOrigin;typeof o!="number"&&(o=performance.timing.navigationStart||performance.timing.redirectStart||performance.timing.fetchStart);const f=[{name:"code/timeOrigin",startTime:Math.round(o)}];for(const _ of performance.getEntriesByType("mark"))f.push({name:_.name,startTime:Math.round(o+_.startTime)});return f}};if(typeof process=="object"){const o=performance?.timeOrigin??Math.round((require.__$__nodeRequire||require)("perf_hooks").performance.timeOrigin);return b(o)}else return console.trace("perf-util loaded in UNKNOWN environment"),b()}function O(o){return o.MonacoPerformanceMarks||(o.MonacoPerformanceMarks=C()),o.MonacoPerformanceMarks}var y;typeof global=="object"?y=global:typeof self=="object"?y=self:y={},typeof define=="function"?define([],function(){return O(y)}):typeof E=="object"&&typeof E.exports=="object"?E.exports=O(y):(console.trace("perf-util defined in UNKNOWN context (neither requirejs or commonjs)"),y.perf=O(y))})()}}),require_bootstrap_node=__commonJS({"out-build/bootstrap-node.js"(R){"use strict";function E(){const b=require("path");try{typeof process.env.VSCODE_CWD!="string"&&(process.env.VSCODE_CWD=process.cwd()),process.platform==="win32"&&process.chdir(b.dirname(process.execPath))}catch(C){console.error(C)}}E(),R.injectNodeModuleLookupPath=function(b){if(!b)throw new Error("Missing injectPath");const C=require("module"),y=require("path").join(__dirname,"../node_modules"),o=C._resolveLookupPaths;C._resolveLookupPaths=function(f,_){const p=o(f,_);if(Array.isArray(p)){for(let h=0,n=p.length;h<n;h++)if(p[h]===y){p.splice(h,0,b);break}}return p}},R.removeGlobalNodeModuleLookupPaths=function(){const b=require("module"),C=b.globalPaths,O=b._resolveLookupPaths;b._resolveLookupPaths=function(y,o){const f=O(y,o);if(Array.isArray(f)){let _=0;for(;_<f.length&&f[f.length-1-_]===C[C.length-1-_];)_++;return f.slice(0,f.length-_)}return f}},R.configurePortable=function(b){const C=require("fs"),O=require("path"),y=O.dirname(__dirname);function o(d){return process.env.VSCODE_DEV?y:process.platform==="darwin"?d.dirname(d.dirname(d.dirname(y))):d.dirname(d.dirname(y))}function f(d){if(process.env.VSCODE_PORTABLE)return process.env.VSCODE_PORTABLE;if(process.platform==="win32"||process.platform==="linux")return d.join(o(d),"data");const u=b.portable||`${b.applicationName}-portable-data`;return d.join(d.dirname(o(d)),u)}const _=f(O),p=!("target"in b)&&C.existsSync(_),h=O.join(_,"tmp"),n=p&&C.existsSync(h);return p?process.env.VSCODE_PORTABLE=_:delete process.env.VSCODE_PORTABLE,n&&(process.platform==="win32"?(process.env.TMP=h,process.env.TEMP=h):process.env.TMPDIR=h),{portableDataPath:_,isPortable:p}}}}),require_loader=__commonJS({"out-build/vs/loader.js"(R,E){"use strict";var b=R,C=typeof global=="object"?global:{},y;(function(o){o.global=b;class f{get isWindows(){return this._detect(),this._isWindows}get isNode(){return this._detect(),this._isNode}get isElectronRenderer(){return this._detect(),this._isElectronRenderer}get isWebWorker(){return this._detect(),this._isWebWorker}get isElectronNodeIntegrationWebWorker(){return this._detect(),this._isElectronNodeIntegrationWebWorker}constructor(){this._detected=!1,this._isWindows=!1,this._isNode=!1,this._isElectronRenderer=!1,this._isWebWorker=!1,this._isElectronNodeIntegrationWebWorker=!1}_detect(){this._detected||(this._detected=!0,this._isWindows=f._isWindows(),this._isNode=typeof E<"u"&&!!E.exports,this._isElectronRenderer=typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.electron<"u"&&process.type==="renderer",this._isWebWorker=typeof o.global.importScripts=="function",this._isElectronNodeIntegrationWebWorker=this._isWebWorker&&typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.electron<"u"&&process.type==="worker")}static _isWindows(){return typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.indexOf("Windows")>=0?!0:typeof process<"u"?process.platform==="win32":!1}}o.Environment=f})(y||(y={}));var y;(function(o){class f{constructor(n,d,u){this.type=n,this.detail=d,this.timestamp=u}}o.LoaderEvent=f;class _{constructor(n){this._events=[new f(1,"",n)]}record(n,d){this._events.push(new f(n,d,o.Utilities.getHighPerformanceTimestamp()))}getEvents(){return this._events}}o.LoaderEventRecorder=_;class p{record(n,d){}getEvents(){return[]}}p.INSTANCE=new p,o.NullLoaderEventRecorder=p})(y||(y={}));var y;(function(o){class f{static fileUriToFilePath(p,h){if(h=decodeURI(h).replace(/%23/g,"#"),p){if(/^file:\/\/\//.test(h))return h.substr(8);if(/^file:\/\//.test(h))return h.substr(5)}else if(/^file:\/\//.test(h))return h.substr(7);return h}static startsWith(p,h){return p.length>=h.length&&p.substr(0,h.length)===h}static endsWith(p,h){return p.length>=h.length&&p.substr(p.length-h.length)===h}static containsQueryString(p){return/^[^\#]*\?/gi.test(p)}static isAbsolutePath(p){return/^((http:\/\/)|(https:\/\/)|(file:\/\/)|(\/))/.test(p)}static forEachProperty(p,h){if(p){let n;for(n in p)p.hasOwnProperty(n)&&h(n,p[n])}}static isEmpty(p){let h=!0;return f.forEachProperty(p,()=>{h=!1}),h}static recursiveClone(p){if(!p||typeof p!="object"||p instanceof RegExp||!Array.isArray(p)&&Object.getPrototypeOf(p)!==Object.prototype)return p;let h=Array.isArray(p)?[]:{};return f.forEachProperty(p,(n,d)=>{d&&typeof d=="object"?h[n]=f.recursiveClone(d):h[n]=d}),h}static generateAnonymousModule(){return"===anonymous"+f.NEXT_ANONYMOUS_ID+++"==="}static isAnonymousModule(p){return f.startsWith(p,"===anonymous")}static getHighPerformanceTimestamp(){return this.PERFORMANCE_NOW_PROBED||(this.PERFORMANCE_NOW_PROBED=!0,this.HAS_PERFORMANCE_NOW=o.global.performance&&typeof o.global.performance.now=="function"),this.HAS_PERFORMANCE_NOW?o.global.performance.now():Date.now()}}f.NEXT_ANONYMOUS_ID=1,f.PERFORMANCE_NOW_PROBED=!1,f.HAS_PERFORMANCE_NOW=!1,o.Utilities=f})(y||(y={}));var y;(function(o){function f(h){if(h instanceof Error)return h;const n=new Error(h.message||String(h)||"Unknown Error");return h.stack&&(n.stack=h.stack),n}o.ensureError=f;class _{static validateConfigurationOptions(n){function d(u){if(u.phase==="loading"){console.error('Loading "'+u.moduleId+'" failed'),console.error(u),console.error("Here are the modules that depend on it:"),console.error(u.neededBy);return}if(u.phase==="factory"){console.error('The factory function of "'+u.moduleId+'" has thrown an exception'),console.error(u),console.error("Here are the modules that depend on it:"),console.error(u.neededBy);return}}if(n=n||{},typeof n.baseUrl!="string"&&(n.baseUrl=""),typeof n.isBuild!="boolean"&&(n.isBuild=!1),typeof n.paths!="object"&&(n.paths={}),typeof n.config!="object"&&(n.config={}),typeof n.catchError>"u"&&(n.catchError=!1),typeof n.recordStats>"u"&&(n.recordStats=!1),typeof n.urlArgs!="string"&&(n.urlArgs=""),typeof n.onError!="function"&&(n.onError=d),Array.isArray(n.ignoreDuplicateModules)||(n.ignoreDuplicateModules=[]),n.baseUrl.length>0&&(o.Utilities.endsWith(n.baseUrl,"/")||(n.baseUrl+="/")),typeof n.cspNonce!="string"&&(n.cspNonce=""),typeof n.preferScriptTags>"u"&&(n.preferScriptTags=!1),n.nodeCachedData&&typeof n.nodeCachedData=="object"&&(typeof n.nodeCachedData.seed!="string"&&(n.nodeCachedData.seed="seed"),(typeof n.nodeCachedData.writeDelay!="number"||n.nodeCachedData.writeDelay<0)&&(n.nodeCachedData.writeDelay=1e3*7),!n.nodeCachedData.path||typeof n.nodeCachedData.path!="string")){const u=f(new Error("INVALID cached data configuration, 'path' MUST be set"));u.phase="configuration",n.onError(u),n.nodeCachedData=void 0}return n}static mergeConfigurationOptions(n=null,d=null){let u=o.Utilities.recursiveClone(d||{});return o.Utilities.forEachProperty(n,(t,e)=>{t==="ignoreDuplicateModules"&&typeof u.ignoreDuplicateModules<"u"?u.ignoreDuplicateModules=u.ignoreDuplicateModules.concat(e):t==="paths"&&typeof u.paths<"u"?o.Utilities.forEachProperty(e,(r,i)=>u.paths[r]=i):t==="config"&&typeof u.config<"u"?o.Utilities.forEachProperty(e,(r,i)=>u.config[r]=i):u[t]=o.Utilities.recursiveClone(e)}),_.validateConfigurationOptions(u)}}o.ConfigurationOptionsUtil=_;class p{constructor(n,d){if(this._env=n,this.options=_.mergeConfigurationOptions(d),this._createIgnoreDuplicateModulesMap(),this._createSortedPathsRules(),this.options.baseUrl===""&&this.options.nodeRequire&&this.options.nodeRequire.main&&this.options.nodeRequire.main.filename&&this._env.isNode){let u=this.options.nodeRequire.main.filename,t=Math.max(u.lastIndexOf("/"),u.lastIndexOf("\\"));this.options.baseUrl=u.substring(0,t+1)}}_createIgnoreDuplicateModulesMap(){this.ignoreDuplicateModulesMap={};for(let n=0;n<this.options.ignoreDuplicateModules.length;n++)this.ignoreDuplicateModulesMap[this.options.ignoreDuplicateModules[n]]=!0}_createSortedPathsRules(){this.sortedPathsRules=[],o.Utilities.forEachProperty(this.options.paths,(n,d)=>{Array.isArray(d)?this.sortedPathsRules.push({from:n,to:d}):this.sortedPathsRules.push({from:n,to:[d]})}),this.sortedPathsRules.sort((n,d)=>d.from.length-n.from.length)}cloneAndMerge(n){return new p(this._env,_.mergeConfigurationOptions(n,this.options))}getOptionsLiteral(){return this.options}_applyPaths(n){let d;for(let u=0,t=this.sortedPathsRules.length;u<t;u++)if(d=this.sortedPathsRules[u],o.Utilities.startsWith(n,d.from)){let e=[];for(let r=0,i=d.to.length;r<i;r++)e.push(d.to[r]+n.substr(d.from.length));return e}return[n]}_addUrlArgsToUrl(n){return o.Utilities.containsQueryString(n)?n+"&"+this.options.urlArgs:n+"?"+this.options.urlArgs}_addUrlArgsIfNecessaryToUrl(n){return this.options.urlArgs?this._addUrlArgsToUrl(n):n}_addUrlArgsIfNecessaryToUrls(n){if(this.options.urlArgs)for(let d=0,u=n.length;d<u;d++)n[d]=this._addUrlArgsToUrl(n[d]);return n}moduleIdToPaths(n){if(this._env.isNode&&this.options.amdModulesPattern instanceof RegExp&&!this.options.amdModulesPattern.test(n))return this.isBuild()?["empty:"]:["node|"+n];let d=n,u;if(!o.Utilities.endsWith(d,".js")&&!o.Utilities.isAbsolutePath(d)){u=this._applyPaths(d);for(let t=0,e=u.length;t<e;t++)this.isBuild()&&u[t]==="empty:"||(o.Utilities.isAbsolutePath(u[t])||(u[t]=this.options.baseUrl+u[t]),!o.Utilities.endsWith(u[t],".js")&&!o.Utilities.containsQueryString(u[t])&&(u[t]=u[t]+".js"))}else!o.Utilities.endsWith(d,".js")&&!o.Utilities.containsQueryString(d)&&(d=d+".js"),u=[d];return this._addUrlArgsIfNecessaryToUrls(u)}requireToUrl(n){let d=n;return o.Utilities.isAbsolutePath(d)||(d=this._applyPaths(d)[0],o.Utilities.isAbsolutePath(d)||(d=this.options.baseUrl+d)),this._addUrlArgsIfNecessaryToUrl(d)}isBuild(){return this.options.isBuild}shouldInvokeFactory(n){return!!(!this.options.isBuild||o.Utilities.isAnonymousModule(n)||this.options.buildForceInvokeFactory&&this.options.buildForceInvokeFactory[n])}isDuplicateMessageIgnoredFor(n){return this.ignoreDuplicateModulesMap.hasOwnProperty(n)}getConfigForModule(n){if(this.options.config)return this.options.config[n]}shouldCatchError(){return this.options.catchError}shouldRecordStats(){return this.options.recordStats}onError(n){this.options.onError(n)}}o.Configuration=p})(y||(y={}));var y;(function(o){class f{constructor(e){this._env=e,this._scriptLoader=null,this._callbackMap={}}load(e,r,i,s){if(!this._scriptLoader)if(this._env.isWebWorker)this._scriptLoader=new h;else if(this._env.isElectronRenderer){const{preferScriptTags:a}=e.getConfig().getOptionsLiteral();a?this._scriptLoader=new _:this._scriptLoader=new n(this._env)}else this._env.isNode?this._scriptLoader=new n(this._env):this._scriptLoader=new _;let c={callback:i,errorback:s};if(this._callbackMap.hasOwnProperty(r)){this._callbackMap[r].push(c);return}this._callbackMap[r]=[c],this._scriptLoader.load(e,r,()=>this.triggerCallback(r),a=>this.triggerErrorback(r,a))}triggerCallback(e){let r=this._callbackMap[e];delete this._callbackMap[e];for(let i=0;i<r.length;i++)r[i].callback()}triggerErrorback(e,r){let i=this._callbackMap[e];delete this._callbackMap[e];for(let s=0;s<i.length;s++)i[s].errorback(r)}}class _{attachListeners(e,r,i){let s=()=>{e.removeEventListener("load",c),e.removeEventListener("error",a)},c=l=>{s(),r()},a=l=>{s(),i(l)};e.addEventListener("load",c),e.addEventListener("error",a)}load(e,r,i,s){if(/^node\|/.test(r)){let c=e.getConfig().getOptionsLiteral(),a=d(e.getRecorder(),c.nodeRequire||o.global.nodeRequire),l=r.split("|"),g=null;try{g=a(l[1])}catch(v){s(v);return}e.enqueueDefineAnonymousModule([],()=>g),i()}else{let c=document.createElement("script");c.setAttribute("async","async"),c.setAttribute("type","text/javascript"),this.attachListeners(c,i,s);const{trustedTypesPolicy:a}=e.getConfig().getOptionsLiteral();a&&(r=a.createScriptURL(r)),c.setAttribute("src",r);const{cspNonce:l}=e.getConfig().getOptionsLiteral();l&&c.setAttribute("nonce",l),document.getElementsByTagName("head")[0].appendChild(c)}}}function p(t){const{trustedTypesPolicy:e}=t.getConfig().getOptionsLiteral();try{return(e?self.eval(e.createScript("","true")):new Function("true")).call(self),!0}catch{return!1}}class h{constructor(){this._cachedCanUseEval=null}_canUseEval(e){return this._cachedCanUseEval===null&&(this._cachedCanUseEval=p(e)),this._cachedCanUseEval}load(e,r,i,s){if(/^node\|/.test(r)){const c=e.getConfig().getOptionsLiteral(),a=d(e.getRecorder(),c.nodeRequire||o.global.nodeRequire),l=r.split("|");let g=null;try{g=a(l[1])}catch(v){s(v);return}e.enqueueDefineAnonymousModule([],function(){return g}),i()}else{const{trustedTypesPolicy:c}=e.getConfig().getOptionsLiteral();if(!(/^((http:)|(https:)|(file:))/.test(r)&&r.substring(0,self.origin.length)!==self.origin)&&this._canUseEval(e)){fetch(r).then(l=>{if(l.status!==200)throw new Error(l.statusText);return l.text()}).then(l=>{l=`${l}
//# sourceURL=${r}`,(c?self.eval(c.createScript("",l)):new Function(l)).call(self),i()}).then(void 0,s);return}try{c&&(r=c.createScriptURL(r)),importScripts(r),i()}catch(l){s(l)}}}}class n{constructor(e){this._env=e,this._didInitialize=!1,this._didPatchNodeRequire=!1}_init(e){this._didInitialize||(this._didInitialize=!0,this._fs=e("fs"),this._vm=e("vm"),this._path=e("path"),this._crypto=e("crypto"))}_initNodeRequire(e,r){const{nodeCachedData:i}=r.getConfig().getOptionsLiteral();if(!i||this._didPatchNodeRequire)return;this._didPatchNodeRequire=!0;const s=this,c=e("module");function a(l){const g=l.constructor;let v=function(P){try{return l.require(P)}finally{}};return v.resolve=function(P,S){return g._resolveFilename(P,l,!1,S)},v.resolve.paths=function(P){return g._resolveLookupPaths(P,l)},v.main=process.mainModule,v.extensions=g._extensions,v.cache=g._cache,v}c.prototype._compile=function(l,g){const v=c.wrap(l.replace(/^#!.*/,"")),m=r.getRecorder(),P=s._getCachedDataPath(i,g),S={filename:g};let D;try{const N=s._fs.readFileSync(P);D=N.slice(0,16),S.cachedData=N.slice(16),m.record(60,P)}catch{m.record(61,P)}const w=new s._vm.Script(v,S),I=w.runInThisContext(S),T=s._path.dirname(g),U=a(this),q=[this.exports,U,this,g,T,process,C,Buffer],k=I.apply(this.exports,q);return s._handleCachedData(w,v,P,!S.cachedData,r),s._verifyCachedData(w,v,P,D,r),k}}load(e,r,i,s){const c=e.getConfig().getOptionsLiteral(),a=d(e.getRecorder(),c.nodeRequire||o.global.nodeRequire),l=c.nodeInstrumenter||function(v){return v};this._init(a),this._initNodeRequire(a,e);let g=e.getRecorder();if(/^node\|/.test(r)){let v=r.split("|"),m=null;try{m=a(v[1])}catch(P){s(P);return}e.enqueueDefineAnonymousModule([],()=>m),i()}else{r=o.Utilities.fileUriToFilePath(this._env.isWindows,r);const v=this._path.normalize(r),m=this._getElectronRendererScriptPathOrUri(v),P=!!c.nodeCachedData,S=P?this._getCachedDataPath(c.nodeCachedData,r):void 0;this._readSourceAndCachedData(v,S,g,(D,w,I,T)=>{if(D){s(D);return}let U;w.charCodeAt(0)===n._BOM?U=n._PREFIX+w.substring(1)+n._SUFFIX:U=n._PREFIX+w+n._SUFFIX,U=l(U,v);const q={filename:m,cachedData:I},k=this._createAndEvalScript(e,U,q,i,s);this._handleCachedData(k,U,S,P&&!I,e),this._verifyCachedData(k,U,S,T,e)})}}_createAndEvalScript(e,r,i,s,c){const a=e.getRecorder();a.record(31,i.filename);const l=new this._vm.Script(r,i),g=l.runInThisContext(i),v=e.getGlobalAMDDefineFunc();let m=!1;const P=function(){return m=!0,v.apply(null,arguments)};return P.amd=v.amd,g.call(o.global,e.getGlobalAMDRequireFunc(),P,i.filename,this._path.dirname(i.filename)),a.record(32,i.filename),m?s():c(new Error(`Didn't receive define call in ${i.filename}!`)),l}_getElectronRendererScriptPathOrUri(e){if(!this._env.isElectronRenderer)return e;let r=e.match(/^([a-z])\:(.*)/i);return r?`file:///${(r[1].toUpperCase()+":"+r[2]).replace(/\\/g,"/")}`:`file://${e}`}_getCachedDataPath(e,r){const i=this._crypto.createHash("md5").update(r,"utf8").update(e.seed,"utf8").update(process.arch,"").digest("hex"),s=this._path.basename(r).replace(/\.js$/,"");return this._path.join(e.path,`${s}-${i}.code`)}_handleCachedData(e,r,i,s,c){e.cachedDataRejected?this._fs.unlink(i,a=>{c.getRecorder().record(62,i),this._createAndWriteCachedData(e,r,i,c),a&&c.getConfig().onError(a)}):s&&this._createAndWriteCachedData(e,r,i,c)}_createAndWriteCachedData(e,r,i,s){let c=Math.ceil(s.getConfig().getOptionsLiteral().nodeCachedData.writeDelay*(1+Math.random())),a=-1,l=0,g;const v=()=>{setTimeout(()=>{g||(g=this._crypto.createHash("md5").update(r,"utf8").digest());const m=e.createCachedData();if(!(m.length===0||m.length===a||l>=5)){if(m.length<a){v();return}a=m.length,this._fs.writeFile(i,Buffer.concat([g,m]),P=>{P&&s.getConfig().onError(P),s.getRecorder().record(63,i),v()})}},c*Math.pow(4,l++))};v()}_readSourceAndCachedData(e,r,i,s){if(!r)this._fs.readFile(e,{encoding:"utf8"},s);else{let c,a,l,g=2;const v=m=>{m?s(m):--g===0&&s(void 0,c,a,l)};this._fs.readFile(e,{encoding:"utf8"},(m,P)=>{c=P,v(m)}),this._fs.readFile(r,(m,P)=>{!m&&P&&P.length>0?(l=P.slice(0,16),a=P.slice(16),i.record(60,r)):i.record(61,r),v()})}}_verifyCachedData(e,r,i,s,c){s&&(e.cachedDataRejected||setTimeout(()=>{const a=this._crypto.createHash("md5").update(r,"utf8").digest();s.equals(a)||(c.getConfig().onError(new Error(`FAILED TO VERIFY CACHED DATA, deleting stale '${i}' now, but a RESTART IS REQUIRED`)),this._fs.unlink(i,l=>{l&&c.getConfig().onError(l)}))},Math.ceil(5e3*(1+Math.random()))))}}n._BOM=65279,n._PREFIX="(function (require, define, __filename, __dirname) { ",n._SUFFIX=`
});`;function d(t,e){if(e.__$__isRecorded)return e;const r=function(s){t.record(33,s);try{return e(s)}finally{t.record(34,s)}};return r.__$__isRecorded=!0,r}o.ensureRecordedNodeRequire=d;function u(t){return new f(t)}o.createScriptLoader=u})(y||(y={}));var y;(function(o){class f{constructor(t){let e=t.lastIndexOf("/");e!==-1?this.fromModulePath=t.substr(0,e+1):this.fromModulePath=""}static _normalizeModuleId(t){let 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}resolveModule(t){let e=t;return o.Utilities.isAbsolutePath(e)||(o.Utilities.startsWith(e,"./")||o.Utilities.startsWith(e,"../"))&&(e=f._normalizeModuleId(this.fromModulePath+e)),e}}f.ROOT=new f(""),o.ModuleIdResolver=f;class _{constructor(t,e,r,i,s,c){this.id=t,this.strId=e,this.dependencies=r,this._callback=i,this._errorback=s,this.moduleIdResolver=c,this.exports={},this.error=null,this.exportsPassedIn=!1,this.unresolvedDependenciesCount=this.dependencies.length,this._isComplete=!1}static _safeInvokeFunction(t,e){try{return{returnedValue:t.apply(o.global,e),producedError:null}}catch(r){return{returnedValue:null,producedError:r}}}static _invokeFactory(t,e,r,i){return t.shouldInvokeFactory(e)?t.shouldCatchError()?this._safeInvokeFunction(r,i):{returnedValue:r.apply(o.global,i),producedError:null}:{returnedValue:null,producedError:null}}complete(t,e,r,i){this._isComplete=!0;let s=null;if(this._callback)if(typeof this._callback=="function"){t.record(21,this.strId);let c=_._invokeFactory(e,this.strId,this._callback,r);s=c.producedError,t.record(22,this.strId),!s&&typeof c.returnedValue<"u"&&(!this.exportsPassedIn||o.Utilities.isEmpty(this.exports))&&(this.exports=c.returnedValue)}else this.exports=this._callback;if(s){let c=o.ensureError(s);c.phase="factory",c.moduleId=this.strId,c.neededBy=i(this.id),this.error=c,e.onError(c)}this.dependencies=null,this._callback=null,this._errorback=null,this.moduleIdResolver=null}onDependencyError(t){return this._isComplete=!0,this.error=t,this._errorback?(this._errorback(t),!0):!1}isComplete(){return this._isComplete}}o.Module=_;class p{constructor(){this._nextId=0,this._strModuleIdToIntModuleId=new Map,this._intModuleIdToStrModuleId=[],this.getModuleId("exports"),this.getModuleId("module"),this.getModuleId("require")}getMaxModuleId(){return this._nextId}getModuleId(t){let e=this._strModuleIdToIntModuleId.get(t);return typeof e>"u"&&(e=this._nextId++,this._strModuleIdToIntModuleId.set(t,e),this._intModuleIdToStrModuleId[e]=t),e}getStrModuleId(t){return this._intModuleIdToStrModuleId[t]}}class h{constructor(t){this.id=t}}h.EXPORTS=new h(0),h.MODULE=new h(1),h.REQUIRE=new h(2),o.RegularDependency=h;class n{constructor(t,e,r){this.id=t,this.pluginId=e,this.pluginParam=r}}o.PluginDependency=n;class d{constructor(t,e,r,i,s=0){this._env=t,this._scriptLoader=e,this._loaderAvailableTimestamp=s,this._defineFunc=r,this._requireFunc=i,this._moduleIdProvider=new p,this._config=new o.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=[]}reset(){return new d(this._env,this._scriptLoader,this._defineFunc,this._requireFunc,this._loaderAvailableTimestamp)}getGlobalAMDDefineFunc(){return this._defineFunc}getGlobalAMDRequireFunc(){return this._requireFunc}static _findRelevantLocationInStack(t,e){let r=c=>c.replace(/\\/g,"/"),i=r(t),s=e.split(/\n/);for(let c=0;c<s.length;c++){let a=s[c].match(/(.*):(\d+):(\d+)\)?$/);if(a){let l=a[1],g=a[2],v=a[3],m=Math.max(l.lastIndexOf(" ")+1,l.lastIndexOf("(")+1);if(l=l.substr(m),l=r(l),l===i){let P={line:parseInt(g,10),col:parseInt(v,10)};return P.line===1&&(P.col-=53),P}}}throw new Error("Could not correlate define call site for needle "+t)}getBuildInfo(){if(!this._config.isBuild())return null;let t=[],e=0;for(let r=0,i=this._modules2.length;r<i;r++){let s=this._modules2[r];if(!s)continue;let c=this._buildInfoPath[s.id]||null,a=this._buildInfoDefineStack[s.id]||null,l=this._buildInfoDependencies[s.id];t[e++]={id:s.strId,path:c,defineLocation:c&&a?d._findRelevantLocationInStack(c,a):null,dependencies:l,shim:null,exports:s.exports}}return t}getRecorder(){return this._recorder||(this._config.shouldRecordStats()?this._recorder=new o.LoaderEventRecorder(this._loaderAvailableTimestamp):this._recorder=o.NullLoaderEventRecorder.INSTANCE),this._recorder}getLoaderEvents(){return this.getRecorder().getEvents()}enqueueDefineAnonymousModule(t,e){if(this._currentAnonymousDefineCall!==null)throw new Error("Can only have one anonymous define call per script file");let r=null;this._config.isBuild()&&(r=new Error("StackLocation").stack||null),this._currentAnonymousDefineCall={stack:r,dependencies:t,callback:e}}defineModule(t,e,r,i,s,c=new f(t)){let a=this._moduleIdProvider.getModuleId(t);if(this._modules2[a]){this._config.isDuplicateMessageIgnoredFor(t)||console.warn("Duplicate definition of module '"+t+"'");return}let l=new _(a,t,this._normalizeDependencies(e,c),r,i,c);this._modules2[a]=l,this._config.isBuild()&&(this._buildInfoDefineStack[a]=s,this._buildInfoDependencies[a]=(l.dependencies||[]).map(g=>this._moduleIdProvider.getStrModuleId(g.id))),this._resolve(l)}_normalizeDependency(t,e){if(t==="exports")return h.EXPORTS;if(t==="module")return h.MODULE;if(t==="require")return h.REQUIRE;let r=t.indexOf("!");if(r>=0){let i=e.resolveModule(t.substr(0,r)),s=e.resolveModule(t.substr(r+1)),c=this._moduleIdProvider.getModuleId(i+"!"+s),a=this._moduleIdProvider.getModuleId(i);return new n(c,a,s)}return new h(this._moduleIdProvider.getModuleId(e.resolveModule(t)))}_normalizeDependencies(t,e){let r=[],i=0;for(let s=0,c=t.length;s<c;s++)r[i++]=this._normalizeDependency(t[s],e);return r}_relativeRequire(t,e,r,i){if(typeof e=="string")return this.synchronousRequire(e,t);this.defineModule(o.Utilities.generateAnonymousModule(),e,r,i,null,t)}synchronousRequire(t,e=new f(t)){let r=this._normalizeDependency(t,e),i=this._modules2[r.id];if(!i)throw new Error("Check dependency list! Synchronous require cannot resolve module '"+t+"'. This is the first mention of this module!");if(!i.isComplete())throw new Error("Check dependency list! Synchronous require cannot resolve module '"+t+"'. This module has not been resolved completely yet.");if(i.error)throw i.error;return i.exports}configure(t,e){let r=this._config.shouldRecordStats();e?this._config=new o.Configuration(this._env,t):this._config=this._config.cloneAndMerge(t),this._config.shouldRecordStats()&&!r&&(this._recorder=null)}getConfig(){return this._config}_onLoad(t){if(this._currentAnonymousDefineCall!==null){let e=this._currentAnonymousDefineCall;this._currentAnonymousDefineCall=null,this.defineModule(this._moduleIdProvider.getStrModuleId(t),e.dependencies,e.callback,null,e.stack)}}_createLoadError(t,e){let r=this._moduleIdProvider.getStrModuleId(t),i=(this._inverseDependencies2[t]||[]).map(c=>this._moduleIdProvider.getStrModuleId(c));const s=o.ensureError(e);return s.phase="loading",s.moduleId=r,s.neededBy=i,s}_onLoadError(t,e){const r=this._createLoadError(t,e);this._modules2[t]||(this._modules2[t]=new _(t,this._moduleIdProvider.getStrModuleId(t),[],()=>{},null,null));let i=[];for(let a=0,l=this._moduleIdProvider.getMaxModuleId();a<l;a++)i[a]=!1;let s=!1,c=[];for(c.push(t),i[t]=!0;c.length>0;){let a=c.shift(),l=this._modules2[a];l&&(s=l.onDependencyError(r)||s);let g=this._inverseDependencies2[a];if(g)for(let v=0,m=g.length;v<m;v++){let P=g[v];i[P]||(c.push(P),i[P]=!0)}}s||this._config.onError(r)}_hasDependencyPath(t,e){let r=this._modules2[t];if(!r)return!1;let i=[];for(let c=0,a=this._moduleIdProvider.getMaxModuleId();c<a;c++)i[c]=!1;let s=[];for(s.push(r),i[t]=!0;s.length>0;){let a=s.shift().dependencies;if(a)for(let l=0,g=a.length;l<g;l++){let v=a[l];if(v.id===e)return!0;let m=this._modules2[v.id];m&&!i[v.id]&&(i[v.id]=!0,s.push(m))}}return!1}_findCyclePath(t,e,r){if(t===e||r===50)return[t];let i=this._modules2[t];if(!i)return null;let s=i.dependencies;if(s)for(let c=0,a=s.length;c<a;c++){let l=this._findCyclePath(s[c].id,e,r+1);if(l!==null)return l.push(t),l}return null}_createRequire(t){let e=(r,i,s)=>this._relativeRequire(t,r,i,s);return e.toUrl=r=>this._config.requireToUrl(t.resolveModule(r)),e.getStats=()=>this.getLoaderEvents(),e.hasDependencyCycle=()=>this._hasDependencyCycle,e.config=(r,i=!1)=>{this.configure(r,i)},e.__$__nodeRequire=o.global.nodeRequire,e}_loadModule(t){if(this._modules2[t]||this._knownModules2[t])return;this._knownModules2[t]=!0;let e=this._moduleIdProvider.getStrModuleId(t),r=this._config.moduleIdToPaths(e),i=/^@[^\/]+\/[^\/]+$/;this._env.isNode&&(e.indexOf("/")===-1||i.test(e))&&r.push("node|"+e);let s=-1,c=a=>{if(s++,s>=r.length)this._onLoadError(t,a);else{let l=r[s],g=this.getRecorder();if(this._config.isBuild()&&l==="empty:"){this._buildInfoPath[t]=l,this.defineModule(this._moduleIdProvider.getStrModuleId(t),[],null,null,null),this._onLoad(t);return}g.record(10,l),this._scriptLoader.load(this,l,()=>{this._config.isBuild()&&(this._buildInfoPath[t]=l),g.record(11,l),this._onLoad(t)},v=>{g.record(12,l),c(v)})}};c(null)}_loadPluginDependency(t,e){if(this._modules2[e.id]||this._knownModules2[e.id])return;this._knownModules2[e.id]=!0;let r=i=>{this.defineModule(this._moduleIdProvider.getStrModuleId(e.id),[],i,null,null)};r.error=i=>{this._config.onError(this._createLoadError(e.id,i))},t.load(e.pluginParam,this._createRequire(f.ROOT),r,this._config.getOptionsLiteral())}_resolve(t){let e=t.dependencies;if(e)for(let r=0,i=e.length;r<i;r++){let s=e[r];if(s===h.EXPORTS){t.exportsPassedIn=!0,t.unresolvedDependenciesCount--;continue}if(s===h.MODULE){t.unresolvedDependenciesCount--;continue}if(s===h.REQUIRE){t.unresolvedDependenciesCount--;continue}let c=this._modules2[s.id];if(c&&c.isComplete()){if(c.error){t.onDependencyError(c.error);return}t.unresolvedDependenciesCount--;continue}if(this._hasDependencyPath(s.id,t.id)){this._hasDependencyCycle=!0,console.warn("There is a dependency cycle between '"+this._moduleIdProvider.getStrModuleId(s.id)+"' and '"+this._moduleIdProvider.getStrModuleId(t.id)+"'. The cyclic path follows:");let a=this._findCyclePath(s.id,t.id,0)||[];a.reverse(),a.push(s.id),console.warn(a.map(l=>this._moduleIdProvider.getStrModuleId(l)).join(` => 
`)),t.unresolvedDependenciesCount--;continue}if(this._inverseDependencies2[s.id]=this._inverseDependencies2[s.id]||[],this._inverseDependencies2[s.id].push(t.id),s instanceof n){let a=this._modules2[s.pluginId];if(a&&a.isComplete()){this._loadPluginDependency(a.exports,s);continue}let l=this._inversePluginDependencies2.get(s.pluginId);l||(l=[],this._inversePluginDependencies2.set(s.pluginId,l)),l.push(s),this._loadModule(s.pluginId);continue}this._loadModule(s.id)}t.unresolvedDependenciesCount===0&&this._onModuleComplete(t)}_onModuleComplete(t){let e=this.getRecorder();if(t.isComplete())return;let r=t.dependencies,i=[];if(r)for(let l=0,g=r.length;l<g;l++){let v=r[l];if(v===h.EXPORTS){i[l]=t.exports;continue}if(v===h.MODULE){i[l]={id:t.strId,config:()=>this._config.getConfigForModule(t.strId)};continue}if(v===h.REQUIRE){i[l]=this._createRequire(t.moduleIdResolver);continue}let m=this._modules2[v.id];if(m){i[l]=m.exports;continue}i[l]=null}const s=l=>(this._inverseDependencies2[l]||[]).map(g=>this._moduleIdProvider.getStrModuleId(g));t.complete(e,this._config,i,s);let c=this._inverseDependencies2[t.id];if(this._inverseDependencies2[t.id]=null,c)for(let l=0,g=c.length;l<g;l++){let v=c[l],m=this._modules2[v];m.unresolvedDependenciesCount--,m.unresolvedDependenciesCount===0&&this._onModuleComplete(m)}let a=this._inversePluginDependencies2.get(t.id);if(a){this._inversePluginDependencies2.delete(t.id);for(let l=0,g=a.length;l<g;l++)this._loadPluginDependency(t.exports,a[l])}}}o.ModuleManager=d})(y||(y={}));var O,y;(function(o){const f=new o.Environment;let _=null;const p=function(u,t,e){typeof u!="string"&&(e=t,t=u,u=null),(typeof t!="object"||!Array.isArray(t))&&(e=t,t=null),t||(t=["require","exports","module"]),u?_.defineModule(u,t,e,null,null):_.enqueueDefineAnonymousModule(t,e)};p.amd={jQuery:!0};const h=function(u,t=!1){_.configure(u,t)},n=function(){if(arguments.length===1){if(arguments[0]instanceof Object&&!Array.isArray(arguments[0])){h(arguments[0]);return}if(typeof arguments[0]=="string")return _.synchronousRequire(arguments[0])}if((arguments.length===2||arguments.length===3)&&Array.isArray(arguments[0])){_.defineModule(o.Utilities.generateAnonymousModule(),arguments[0],arguments[1],arguments[2],null);return}throw new Error("Unrecognized require call")};n.config=h,n.getConfig=function(){return _.getConfig().getOptionsLiteral()},n.reset=function(){_=_.reset()},n.getBuildInfo=function(){return _.getBuildInfo()},n.getStats=function(){return _.getLoaderEvents()},n.define=p;function d(){if(typeof o.global.require<"u"||typeof require<"u"){const u=o.global.require||require;if(typeof u=="function"&&typeof u.resolve=="function"){const t=o.ensureRecordedNodeRequire(_.getRecorder(),u);o.global.nodeRequire=t,n.nodeRequire=t,n.__$__nodeRequire=t}}f.isNode&&!f.isElectronRenderer&&!f.isElectronNodeIntegrationWebWorker?E.exports=n:(f.isElectronRenderer||(o.global.define=p),o.global.require=n)}o.init=d,(typeof o.global.define!="function"||!o.global.define.amd)&&(_=new o.ModuleManager(f,o.createScriptLoader(f),p,n,o.Utilities.getHighPerformanceTimestamp()),typeof o.global.require<"u"&&typeof o.global.require!="function"&&n.config(o.global.require),O=function(){return p.apply(null,arguments)},O.amd=p.amd,typeof doNotInitLoader>"u"&&d())})(y||(y={})),O("vs/css",["require","exports"],function(o,f){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.load=void 0;function _(u,t,e,r){if(r=r||{},(r["vs/css"]||{}).disabled){e({});return}const s=t.toUrl(u+".css");p(u,s,()=>{e({})},c=>{typeof e.error=="function"&&e.error("Could not find "+s+".")})}f.load=_;function p(u,t,e,r){if(h(u,t)){e();return}n(u,t,e,r)}function h(u,t){const e=document.getElementsByTagName("link");for(let r=0,i=e.length;r<i;r++){const s=e[r].getAttribute("data-name"),c=e[r].getAttribute("href");if(s===u||c===t)return!0}return!1}function n(u,t,e,r){const i=document.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("type","text/css"),i.setAttribute("data-name",u),d(u,i,e,r),i.setAttribute("href",t),(document.head||document.getElementsByTagName("head")[0]).appendChild(i)}function d(u,t,e,r){const i=()=>{t.removeEventListener("load",s),t.removeEventListener("error",c)},s=a=>{i(),e()},c=a=>{i(),r(a)};t.addEventListener("load",s),t.addEventListener("error",c)}}),O("vs/nls",["require","exports"],function(o,f){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.load=f.create=f.setPseudoTranslation=f.getConfiguredDefaultLocale=f.localize=void 0;let _=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;const p="i-default";function h(a,l){let g;return l.length===0?g=a:g=a.replace(/\{(\d+)\}/g,(v,m)=>{const P=m[0],S=l[P];let D=v;return typeof S=="string"?D=S:(typeof S=="number"||typeof S=="boolean"||S===void 0||S===null)&&(D=String(S)),D}),_&&(g="\uFF3B"+g.replace(/[aouei]/g,"$&$&")+"\uFF3D"),g}function n(a,l){let g=a[l];return g||(g=a["*"],g)?g:null}function d(a){return a.charAt(a.length-1)==="/"?a:a+"/"}async function u(a,l,g){const v=d(a)+d(l)+"vscode/"+d(g),m=await fetch(v);if(m.ok)return await m.json();throw new Error(`${m.status} - ${m.statusText}`)}function t(a){return function(l,g){const v=Array.prototype.slice.call(arguments,2);return h(a[l],v)}}function e(a,l,...g){return h(l,g)}f.localize=e;function r(a){}f.getConfiguredDefaultLocale=r;function i(a){_=a}f.setPseudoTranslation=i;function s(a,l){return{localize:t(l[a]),getConfiguredDefaultLocale:l.getConfiguredDefaultLocale??(g=>{})}}f.create=s;function c(a,l,g,v){const m=v["vs/nls"]??{};if(!a||a.length===0)return g({localize:e,getConfiguredDefaultLocale:()=>m.availableLanguages?.["*"]});const P=m.availableLanguages?n(m.availableLanguages,a):null,S=P===null||P===p;let D=".nls";S||(D=D+"."+P);const w=I=>{Array.isArray(I)?I.localize=t(I):I.localize=t(I[a]),I.getConfiguredDefaultLocale=()=>m.availableLanguages?.["*"],g(I)};typeof m.loadBundle=="function"?m.loadBundle(a,P,(I,T)=>{I?l([a+".nls"],w):w(T)}):m.translationServiceUrl&&!S?(async()=>{try{const I=await u(m.translationServiceUrl,P,a);return w(I)}catch(I){if(!P.includes("-"))return console.error(I),l([a+".nls"],w);try{const T=P.split("-")[0],U=await u(m.translationServiceUrl,T,a);return m.availableLanguages??={},m.availableLanguages["*"]=T,w(U)}catch(T){return console.error(T),l([a+".nls"],w)}}})():l([a+D],w,I=>{if(D===".nls"){console.error("Failed trying to load default language strings",I);return}console.error(`Failed to load message bundle for language ${P}. Falling back to the default language:`,I),l([a+".nls"],w)})}f.load=c})}}),require_bootstrap=__commonJS({"out-build/bootstrap.js"(R,E){"use strict";(function(b,C){typeof R=="object"?E.exports=C():b.MonacoBootstrap=C()})(R,function(){const b=typeof require=="function"?require("module"):void 0,C=typeof require=="function"?require("path"):void 0,O=typeof require=="function"?require("fs"):void 0;if(Error.stackTraceLimit=100,typeof process<"u"&&!process.env.VSCODE_HANDLES_SIGPIPE){let u=!1;process.on("SIGPIPE",()=>{u||(u=!0,console.error(new Error("Unexpected SIGPIPE")))})}function y(){if(!C||!b||typeof process>"u"){console.warn("enableASARSupport() is only available in node.js environments");return}const u=C.join(__dirname,"../node_modules"),t=`${u}.asar`,e=b._resolveLookupPaths;b._resolveLookupPaths=function(r,i){const s=e(r,i);if(Array.isArray(s)){for(let c=0,a=s.length;c<a;c++)if(s[c]===u){s.splice(c,0,t);break}}return s}}function o(u,t){let e=u.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 f(){const u=p();let t={availableLanguages:{}};if(u&&u.env.VSCODE_NLS_CONFIG)try{t=JSON.parse(u.env.VSCODE_NLS_CONFIG)}catch{}if(t._resolvedLanguagePackCoreLocation){const e=Object.create(null);t.loadBundle=function(r,i,s){const c=e[r];if(c){s(void 0,c);return}n(t._resolvedLanguagePackCoreLocation,`${r.replace(/\//g,"!")}.nls.json`).then(function(a){const l=JSON.parse(a);e[r]=l,s(void 0,l)}).catch(a=>{try{t._corruptedFile&&d(t._corruptedFile,"corrupted").catch(function(l){console.error(l)})}finally{s(a,void 0)}})}}return t}function _(){return(typeof self=="object"?self:typeof global=="object"?global:{}).vscode}function p(){const u=_();if(u)return u.process;if(typeof process<"u")return process}function h(){const u=_();if(u)return u.ipcRenderer}async function n(...u){const t=h();if(t)return t.invoke("vscode:readNlsFile",...u);if(O&&C)return(await O.promises.readFile(C.join(...u))).toString();throw new Error("Unsupported operation (read NLS files)")}function d(u,t){const e=h();if(e)return e.invoke("vscode:writeNlsFile",u,t);if(O)return O.promises.writeFile(u,t);throw new Error("Unsupported operation (write NLS files)")}return{enableASARSupport:y,setupNLS:f,fileUriFromPath:o}})}}),require_bootstrap_amd=__commonJS({"out-build/bootstrap-amd.js"(R){"use strict";var E=require;if(globalThis._VSCODE_NODE_MODULES=new Proxy(Object.create(null),{get:(o,f)=>E(String(f))}),globalThis._VSCODE_PRODUCT_JSON=require("../product.json"),process.env.VSCODE_DEV)try{const o=require("../product.overrides.json");globalThis._VSCODE_PRODUCT_JSON=Object.assign(globalThis._VSCODE_PRODUCT_JSON,o)}catch{}globalThis._VSCODE_PACKAGE_JSON=require("../package.json");var b=require_loader(),C=require_bootstrap(),O=require_performance(),y=C.setupNLS();b.config({baseUrl:C.fileUriFromPath(__dirname,{isWindows:process.platform==="win32"}),catchError:!0,nodeRequire:E,"vs/nls":y,amdModulesPattern:/^vs\//,recordStats:!0}),(process.env.ELECTRON_RUN_AS_NODE||process.versions.electron)&&b.define("fs",["original-fs"],function(o){return o}),y&&y.pseudo&&b(["vs/nls"],function(o){o.setPseudoTranslation(!!y.pseudo)}),R.load=function(o,f,_){o&&(process.env.VSCODE_CODE_CACHE_PATH&&b.config({nodeCachedData:{path:process.env.VSCODE_CODE_CACHE_PATH,seed:o}}),f=f||function(){},_=_||function(p){console.error(p)},O.mark("code/fork/willLoadCode"),b([o],f,_))}}}),perf=require_performance(),performance2=require("perf_hooks").performance,product=require("../product.json"),readline=require("readline"),http=require("http");perf.mark("code/server/start"),global.vscodeServerStartTime=performance2.now();async function start(){const E=require("minimist")(process.argv.slice(2),{boolean:["start-server","list-extensions","print-ip-address","help","version","accept-server-license-terms"],string:["install-extension","install-builtin-extension","uninstall-extension","locate-extension","socket-path","host","port","compatibility"],alias:{help:"h",version:"v"}});["host","port","accept-server-license-terms"].forEach(r=>{if(!E[r]){const i=process.env[`VSCODE_SERVER_${r.toUpperCase().replace("-","_")}`];i&&(E[r]=i)}});const b=["list-extensions","locate-extension"],C=["install-extension","install-builtin-extension","uninstall-extension"];if(E.help||E.version||b.some(r=>!!E[r])||C.some(r=>!!E[r])&&!E["start-server"]){loadCode().then(r=>{r.spawnCli()});return}let y=null,o=null;const f=()=>(o||(o=loadCode().then(async r=>{const i=await r.createServer(d);return y=i,i})),o),_=require("http"),p=require("os");if(Array.isArray(product.serverLicense)&&product.serverLicense.length&&(console.log(product.serverLicense.join(`
`)),product.serverLicensePrompt&&E["accept-server-license-terms"]!==!0)){hasStdinWithoutTty()&&(console.log("To accept the license terms, start the server with --accept-server-license-terms"),process.exit(1));try{await prompt(product.serverLicensePrompt)||process.exit(1)}catch(r){console.log(r),process.exit(1)}}let h=!0,n=!0,d=null;const u=_.createServer(async(r,i)=>(h&&(h=!1,perf.mark("code/server/firstRequest")),(await f()).handleRequest(r,i)));u.on("upgrade",async(r,i)=>(n&&(n=!1,perf.mark("code/server/firstWebSocket")),(await f()).handleUpgrade(r,i))),u.on("error",async r=>(await f()).handleServerError(r));const t=sanitizeStringArg(E.host)||(E.compatibility!=="1.63"?"localhost":void 0),e=E["socket-path"]?{path:sanitizeStringArg(E["socket-path"])}:{host:t,port:await parsePort(t,sanitizeStringArg(E.port))};u.listen(e,async()=>{let r=Array.isArray(product.serverGreeting)&&product.serverGreeting.length?`

${product.serverGreeting.join(`
`)}

`:"";if(typeof e.port=="number"&&E["print-ip-address"]){const i=p.networkInterfaces();Object.keys(i).forEach(function(s){i[s]?.forEach(function(c){!c.internal&&c.family==="IPv4"&&(r+=`IP Address: ${c.address}
`)})})}if(d=u.address(),d===null)throw new Error("Unexpected server address");r+=`Server bound to ${typeof d=="string"?d:`${d.address}:${d.port} (${d.family})`}
`,r+=`Extension host agent listening on ${typeof d=="string"?d:d.port}
`,console.log(r),perf.mark("code/server/started"),global.vscodeServerListenTime=performance2.now(),await f()}),process.on("exit",()=>{u.close(),y&&y.dispose()})}function sanitizeStringArg(R){return Array.isArray(R)&&(R=R.pop()),typeof R=="string"?R:void 0}async function parsePort(R,E){if(E){let b;if(E.match(/^\d+$/))return parseInt(E,10);if(b=parseRange(E)){const C=await findFreePort(R,b.start,b.end);if(C!==void 0)return C;console.warn(`--port: Could not find free port in range: ${b.start} - ${b.end} (inclusive).`),process.exit(1)}else console.warn(`--port "${E}" is not a valid number or range. Ranges must be in the form 'from-to' with 'from' an integer larger than 0 and not larger than 'end'.`),process.exit(1)}return 8e3}function parseRange(R){const E=R.match(/^(\d+)-(\d+)$/);if(E){const b=parseInt(E[1],10),C=parseInt(E[2],10);if(b>0&&b<=C&&C<=65535)return{start:b,end:C}}}async function findFreePort(R,E,b){const C=O=>new Promise(y=>{const o=http.createServer();o.listen(O,R,()=>{o.close(),y(!0)}).on("error",()=>{y(!1)})});for(let O=E;O<=b;O++)if(await C(O))return O}function loadCode(){return new Promise((R,E)=>{const b=require("path");delete process.env.ELECTRON_RUN_AS_NODE,process.env.VSCODE_HANDLES_SIGPIPE="true",process.env.VSCODE_DEV?(process.env.VSCODE_INJECT_NODE_MODULE_LOOKUP_PATH=process.env.VSCODE_INJECT_NODE_MODULE_LOOKUP_PATH||b.join(__dirname,"..","remote","node_modules"),require_bootstrap_node().injectNodeModuleLookupPath(process.env.VSCODE_INJECT_NODE_MODULE_LOOKUP_PATH)):delete process.env.VSCODE_INJECT_NODE_MODULE_LOOKUP_PATH,require_bootstrap_amd().load("vs/server/node/server.main",R,E)})}function hasStdinWithoutTty(){try{return!process.stdin.isTTY}catch{}return!1}function prompt(R){const E=readline.createInterface({input:process.stdin,output:process.stdout});return new Promise((b,C)=>{E.question(R+" ",async function(O){E.close();const y=O.toString().trim().toLowerCase();y===""||y==="y"||y==="yes"?b(!0):y==="n"||y==="no"?b(!1):(process.stdout.write(`
Invalid Response. Answer either yes (y, yes) or no (n, no)
`),b(await prompt(R)))})})}start();

//# sourceMappingURL=https://ticino.blob.core.windows.net/sourcemaps/6c3e3dba23e8fadc360aed75ce363ba185c49794/core/server-main.js.map

Zerion Mini Shell 1.0