????

Your IP : 3.17.191.196


Current Path : C:/Program Files/Azure Data Studio/resources/app/out/vs/
Upload File :
Current File : C:/Program Files/Azure Data Studio/resources/app/out/vs/loader.js

"use strict";/*!--------------------------------------------------------
 * Copyright (C) Microsoft Corporation. All rights reserved.
 *--------------------------------------------------------*/const _amdLoaderGlobal=this,_commonjsGlobal=typeof global=="object"?global:{};var AMDLoader;(function(a){a.global=_amdLoaderGlobal;class _{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=_._isWindows(),this._isNode=typeof module<"u"&&!!module.exports,this._isElectronRenderer=typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.electron<"u"&&process.type==="renderer",this._isWebWorker=typeof a.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}}a.Environment=_})(AMDLoader||(AMDLoader={}));var AMDLoader;(function(a){class _{constructor(n,d,c){this.type=n,this.detail=d,this.timestamp=c}}a.LoaderEvent=_;class E{constructor(n){this._events=[new _(1,"",n)]}record(n,d){this._events.push(new _(n,d,a.Utilities.getHighPerformanceTimestamp()))}getEvents(){return this._events}}a.LoaderEventRecorder=E;class y{record(n,d){}getEvents(){return[]}}y.INSTANCE=new y,a.NullLoaderEventRecorder=y})(AMDLoader||(AMDLoader={}));var AMDLoader;(function(a){class _{static fileUriToFilePath(y,f){if(f=decodeURI(f).replace(/%23/g,"#"),y){if(/^file:\/\/\//.test(f))return f.substr(8);if(/^file:\/\//.test(f))return f.substr(5)}else if(/^file:\/\//.test(f))return f.substr(7);return f}static startsWith(y,f){return y.length>=f.length&&y.substr(0,f.length)===f}static endsWith(y,f){return y.length>=f.length&&y.substr(y.length-f.length)===f}static containsQueryString(y){return/^[^\#]*\?/gi.test(y)}static isAbsolutePath(y){return/^((http:\/\/)|(https:\/\/)|(file:\/\/)|(\/))/.test(y)}static forEachProperty(y,f){if(y){let n;for(n in y)y.hasOwnProperty(n)&&f(n,y[n])}}static isEmpty(y){let f=!0;return _.forEachProperty(y,()=>{f=!1}),f}static recursiveClone(y){if(!y||typeof y!="object"||y instanceof RegExp||!Array.isArray(y)&&Object.getPrototypeOf(y)!==Object.prototype)return y;let f=Array.isArray(y)?[]:{};return _.forEachProperty(y,(n,d)=>{d&&typeof d=="object"?f[n]=_.recursiveClone(d):f[n]=d}),f}static generateAnonymousModule(){return"===anonymous"+_.NEXT_ANONYMOUS_ID+++"==="}static isAnonymousModule(y){return _.startsWith(y,"===anonymous")}static getHighPerformanceTimestamp(){return this.PERFORMANCE_NOW_PROBED||(this.PERFORMANCE_NOW_PROBED=!0,this.HAS_PERFORMANCE_NOW=a.global.performance&&typeof a.global.performance.now=="function"),this.HAS_PERFORMANCE_NOW?a.global.performance.now():Date.now()}}_.NEXT_ANONYMOUS_ID=1,_.PERFORMANCE_NOW_PROBED=!1,_.HAS_PERFORMANCE_NOW=!1,a.Utilities=_})(AMDLoader||(AMDLoader={}));var AMDLoader;(function(a){function _(f){if(f instanceof Error)return f;const n=new Error(f.message||String(f)||"Unknown Error");return f.stack&&(n.stack=f.stack),n}a.ensureError=_;class E{static validateConfigurationOptions(n){function d(c){if(c.phase==="loading"){console.error('Loading "'+c.moduleId+'" failed'),console.error(c),console.error("Here are the modules that depend on it:"),console.error(c.neededBy);return}if(c.phase==="factory"){console.error('The factory function of "'+c.moduleId+'" has thrown an exception'),console.error(c),console.error("Here are the modules that depend on it:"),console.error(c.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&&(a.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 c=_(new Error("INVALID cached data configuration, 'path' MUST be set"));c.phase="configuration",n.onError(c),n.nodeCachedData=void 0}return n}static mergeConfigurationOptions(n=null,d=null){let c=a.Utilities.recursiveClone(d||{});return a.Utilities.forEachProperty(n,(t,e)=>{t==="ignoreDuplicateModules"&&typeof c.ignoreDuplicateModules<"u"?c.ignoreDuplicateModules=c.ignoreDuplicateModules.concat(e):t==="paths"&&typeof c.paths<"u"?a.Utilities.forEachProperty(e,(i,r)=>c.paths[i]=r):t==="config"&&typeof c.config<"u"?a.Utilities.forEachProperty(e,(i,r)=>c.config[i]=r):c[t]=a.Utilities.recursiveClone(e)}),E.validateConfigurationOptions(c)}}a.ConfigurationOptionsUtil=E;class y{constructor(n,d){if(this._env=n,this.options=E.mergeConfigurationOptions(d),this._createIgnoreDuplicateModulesMap(),this._createNodeModulesMap(),this._createSortedPathsRules(),this.options.baseUrl===""&&this.options.nodeRequire&&this.options.nodeRequire.main&&this.options.nodeRequire.main.filename&&this._env.isNode){let c=this.options.nodeRequire.main.filename,t=Math.max(c.lastIndexOf("/"),c.lastIndexOf("\\"));this.options.baseUrl=c.substring(0,t+1)}}_createIgnoreDuplicateModulesMap(){this.ignoreDuplicateModulesMap={};for(let n=0;n<this.options.ignoreDuplicateModules.length;n++)this.ignoreDuplicateModulesMap[this.options.ignoreDuplicateModules[n]]=!0}_createNodeModulesMap(){if(this.options.nodeModules){this.nodeModulesMap=Object.create(null);for(var n=0,d=this.options.nodeModules;n<d.length;n++){var c=d[n];this.nodeModulesMap[c]=!0}}}_createSortedPathsRules(){this.sortedPathsRules=[],a.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 y(this._env,E.mergeConfigurationOptions(n,this.options))}getOptionsLiteral(){return this.options}_applyPaths(n){let d;for(let c=0,t=this.sortedPathsRules.length;c<t;c++)if(d=this.sortedPathsRules[c],a.Utilities.startsWith(n,d.from)){let e=[];for(let i=0,r=d.to.length;i<r;i++)e.push(d.to[i]+n.substr(d.from.length));return e}return[n]}_addUrlArgsToUrl(n){return a.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,c=n.length;d<c;d++)n[d]=this._addUrlArgsToUrl(n[d]);return n}moduleIdToPaths(n){if(this._env.isNode&&(this.nodeModulesMap&&this.nodeModulesMap[n]===!0||this.options.amdModulesPattern instanceof RegExp&&!this.options.amdModulesPattern.test(n)))return this.isBuild()?["empty:"]:["node|"+n];let d=n,c;if((!a.Utilities.endsWith(d,".js")||d==="chart.js"||d==="mark.js")&&!a.Utilities.isAbsolutePath(d)){c=this._applyPaths(d);for(let t=0,e=c.length;t<e;t++)this.isBuild()&&c[t]==="empty:"||(a.Utilities.isAbsolutePath(c[t])||(c[t]=this.options.baseUrl+c[t]),!a.Utilities.endsWith(c[t],".js")&&!a.Utilities.containsQueryString(c[t])&&(c[t]=c[t]+".js"))}else!a.Utilities.endsWith(d,".js")&&!a.Utilities.containsQueryString(d)&&(d=d+".js"),c=[d];return this._addUrlArgsIfNecessaryToUrls(c)}requireToUrl(n){let d=n;return a.Utilities.isAbsolutePath(d)||(d=this._applyPaths(d)[0],a.Utilities.isAbsolutePath(d)||(d=this.options.baseUrl+d)),this._addUrlArgsIfNecessaryToUrl(d)}isBuild(){return this.options.isBuild}shouldInvokeFactory(n){return!!(!this.options.isBuild||a.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)}}a.Configuration=y})(AMDLoader||(AMDLoader={}));var AMDLoader;(function(a){class _{constructor(e){this._env=e,this._scriptLoader=null,this._callbackMap={}}load(e,i,r,s){if(!this._scriptLoader)if(this._env.isWebWorker)this._scriptLoader=new f;else if(this._env.isElectronRenderer){const{preferScriptTags:l}=e.getConfig().getOptionsLiteral();l?this._scriptLoader=new E:this._scriptLoader=new n(this._env)}else this._env.isNode?this._scriptLoader=new n(this._env):this._scriptLoader=new E;let u={callback:r,errorback:s};if(this._callbackMap.hasOwnProperty(i)){this._callbackMap[i].push(u);return}this._callbackMap[i]=[u],this._scriptLoader.load(e,i,()=>this.triggerCallback(i),l=>this.triggerErrorback(i,l))}triggerCallback(e){let i=this._callbackMap[e];delete this._callbackMap[e];for(let r=0;r<i.length;r++)i[r].callback()}triggerErrorback(e,i){let r=this._callbackMap[e];delete this._callbackMap[e];for(let s=0;s<r.length;s++)r[s].errorback(i)}}class E{attachListeners(e,i,r){let s=()=>{e.removeEventListener("load",u),e.removeEventListener("error",l)},u=o=>{s(),i()},l=o=>{s(),r(o)};e.addEventListener("load",u),e.addEventListener("error",l)}load(e,i,r,s){if(/^node\|/.test(i)){let u=e.getConfig().getOptionsLiteral(),l=d(e.getRecorder(),u.nodeRequire||a.global.nodeRequire),o=i.split("|"),h=null;try{h=l(o[1])}catch(g){s(g);return}e.enqueueDefineAnonymousModule([],()=>h),r()}else{let u=document.createElement("script");u.setAttribute("async","async"),u.setAttribute("type","text/javascript"),this.attachListeners(u,r,s);const{trustedTypesPolicy:l}=e.getConfig().getOptionsLiteral();l&&(i=l.createScriptURL(i)),u.setAttribute("src",i);const{cspNonce:o}=e.getConfig().getOptionsLiteral();o&&u.setAttribute("nonce",o),document.getElementsByTagName("head")[0].appendChild(u)}}}function y(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 f{constructor(){this._cachedCanUseEval=null}_canUseEval(e){return this._cachedCanUseEval===null&&(this._cachedCanUseEval=y(e)),this._cachedCanUseEval}load(e,i,r,s){if(/^node\|/.test(i)){const u=e.getConfig().getOptionsLiteral(),l=d(e.getRecorder(),u.nodeRequire||a.global.nodeRequire),o=i.split("|");let h=null;try{h=l(o[1])}catch(g){s(g);return}e.enqueueDefineAnonymousModule([],function(){return h}),r()}else{const{trustedTypesPolicy:u}=e.getConfig().getOptionsLiteral();if(!(/^((http:)|(https:)|(file:))/.test(i)&&i.substring(0,self.origin.length)!==self.origin)&&this._canUseEval(e)){fetch(i).then(o=>{if(o.status!==200)throw new Error(o.statusText);return o.text()}).then(o=>{o=`${o}
//# sourceURL=${i}`,(u?self.eval(u.createScript("",o)):new Function(o)).call(self),r()}).then(void 0,s);return}try{u&&(i=u.createScriptURL(i)),importScripts(i),r()}catch(o){s(o)}}}}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,i){const{nodeCachedData:r}=i.getConfig().getOptionsLiteral();if(!r||this._didPatchNodeRequire)return;this._didPatchNodeRequire=!0;const s=this,u=e("module");function l(o){const h=o.constructor;let g=function(v){try{return o.require(v)}finally{}};return g.resolve=function(v,m){return h._resolveFilename(v,o,!1,m)},g.resolve.paths=function(v){return h._resolveLookupPaths(v,o)},g.main=process.mainModule,g.extensions=h._extensions,g.cache=h._cache,g}u.prototype._compile=function(o,h){const g=u.wrap(o.replace(/^#!.*/,"")),p=i.getRecorder(),v=s._getCachedDataPath(r,h),m={filename:h};let R;try{const w=s._fs.readFileSync(v);R=w.slice(0,16),m.cachedData=w.slice(16),p.record(60,v)}catch{p.record(61,v)}var b;try{b=new s._vm.Script(g,m)}catch(w){throw new Error(`Error compiling ${h}. ${w}`)}const C=b.runInThisContext(m),P=s._path.dirname(h),I=l(this),D=[this.exports,I,this,h,P,process,_commonjsGlobal,Buffer],U=C.apply(this.exports,D);return s._handleCachedData(b,g,v,!m.cachedData,i),s._verifyCachedData(b,g,v,R,i),U}}load(e,i,r,s){const u=e.getConfig().getOptionsLiteral(),l=d(e.getRecorder(),u.nodeRequire||a.global.nodeRequire),o=u.nodeInstrumenter||function(g){return g};this._init(l),this._initNodeRequire(l,e);let h=e.getRecorder();if(/^node\|/.test(i)){let g=i.split("|"),p=null;try{p=l(g[1])}catch(v){s(v);return}e.enqueueDefineAnonymousModule([],()=>p),r()}else{i=a.Utilities.fileUriToFilePath(this._env.isWindows,i);const g=this._path.normalize(i),p=this._getElectronRendererScriptPathOrUri(g),v=!!u.nodeCachedData,m=v?this._getCachedDataPath(u.nodeCachedData,i):void 0;this._readSourceAndCachedData(g,m,h,(R,b,C,P)=>{if(R){s(R);return}let I;b.charCodeAt(0)===n._BOM?I=n._PREFIX+b.substring(1)+n._SUFFIX:I=n._PREFIX+b+n._SUFFIX,I=o(I,g);const D={filename:p,cachedData:C},U=this._createAndEvalScript(e,I,D,r,s);this._handleCachedData(U,I,m,v&&!C,e),this._verifyCachedData(U,I,m,P,e)})}}_createAndEvalScript(e,i,r,s,u){const l=e.getRecorder();l.record(31,r.filename);var o;try{o=new this._vm.Script(i,r)}catch(m){throw new Error(`Error compiling ${r.filename}. ${m}`)}const h=o.runInThisContext(r),g=e.getGlobalAMDDefineFunc();let p=!1;const v=function(){return p=!0,g.apply(null,arguments)};return v.amd=g.amd,h.call(a.global,e.getGlobalAMDRequireFunc(),v,r.filename,this._path.dirname(r.filename)),l.record(32,r.filename),p?s():u(new Error(`Didn't receive define call in ${r.filename}!`)),o}_getElectronRendererScriptPathOrUri(e){if(!this._env.isElectronRenderer)return e;let i=e.match(/^([a-z])\:(.*)/i);return i?`file:///${(i[1].toUpperCase()+":"+i[2]).replace(/\\/g,"/")}`:`file://${e}`}_getCachedDataPath(e,i){const r=this._crypto.createHash("md5").update(i,"utf8").update(e.seed,"utf8").update(process.arch,"").digest("hex"),s=this._path.basename(i).replace(/\.js$/,"");return this._path.join(e.path,`${s}-${r}.code`)}_handleCachedData(e,i,r,s,u){e.cachedDataRejected?this._fs.unlink(r,l=>{u.getRecorder().record(62,r),this._createAndWriteCachedData(e,i,r,u),l&&u.getConfig().onError(l)}):s&&this._createAndWriteCachedData(e,i,r,u)}_createAndWriteCachedData(e,i,r,s){let u=Math.ceil(s.getConfig().getOptionsLiteral().nodeCachedData.writeDelay*(1+Math.random())),l=-1,o=0,h;const g=()=>{setTimeout(()=>{h||(h=this._crypto.createHash("md5").update(i,"utf8").digest());const p=e.createCachedData();if(!(p.length===0||p.length===l||o>=5)){if(p.length<l){g();return}l=p.length,this._fs.writeFile(r,Buffer.concat([h,p]),v=>{v&&s.getConfig().onError(v),s.getRecorder().record(63,r),g()})}},u*Math.pow(4,o++))};g()}_readSourceAndCachedData(e,i,r,s){if(!i)this._fs.readFile(e,{encoding:"utf8"},s);else{let u,l,o,h=2;const g=p=>{p?s(p):--h===0&&s(void 0,u,l,o)};this._fs.readFile(e,{encoding:"utf8"},(p,v)=>{u=v,g(p)}),this._fs.readFile(i,(p,v)=>{!p&&v&&v.length>0?(o=v.slice(0,16),l=v.slice(16),r.record(60,i)):r.record(61,i),g()})}}_verifyCachedData(e,i,r,s,u){s&&(e.cachedDataRejected||setTimeout(()=>{const l=this._crypto.createHash("md5").update(i,"utf8").digest();s.equals(l)||(u.getConfig().onError(new Error(`FAILED TO VERIFY CACHED DATA, deleting stale '${r}' now, but a RESTART IS REQUIRED`)),this._fs.unlink(r,o=>{o&&u.getConfig().onError(o)}))},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 i=function(s){t.record(33,s);try{return e(s)}finally{t.record(34,s)}};return i.__$__isRecorded=!0,i}a.ensureRecordedNodeRequire=d;function c(t){return new _(t)}a.createScriptLoader=c})(AMDLoader||(AMDLoader={}));var AMDLoader;(function(a){class _{constructor(t){let e=t.lastIndexOf("/");e!==-1?this.fromModulePath=t.substr(0,e+1):this.fromModulePath=""}static _normalizeModuleId(t){let e=t,i;for(i=/\/\.\//;i.test(e);)e=e.replace(i,"/");for(e=e.replace(/^\.\//g,""),i=/\/(([^\/])|([^\/][^\/\.])|([^\/\.][^\/])|([^\/][^\/][^\/]+))\/\.\.\//;i.test(e);)e=e.replace(i,"/");return e=e.replace(/^(([^\/])|([^\/][^\/\.])|([^\/\.][^\/])|([^\/][^\/][^\/]+))\/\.\.\//,""),e}resolveModule(t){let e=t;return a.Utilities.isAbsolutePath(e)||(a.Utilities.startsWith(e,"./")||a.Utilities.startsWith(e,"../"))&&(e=_._normalizeModuleId(this.fromModulePath+e)),e}}_.ROOT=new _(""),a.ModuleIdResolver=_;class E{constructor(t,e,i,r,s,u){this.id=t,this.strId=e,this.dependencies=i,this._callback=r,this._errorback=s,this.moduleIdResolver=u,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(a.global,e),producedError:null}}catch(i){return{returnedValue:null,producedError:i}}}static _invokeFactory(t,e,i,r){return t.shouldInvokeFactory(e)?t.shouldCatchError()?this._safeInvokeFunction(i,r):{returnedValue:i.apply(a.global,r),producedError:null}:{returnedValue:null,producedError:null}}complete(t,e,i,r){this._isComplete=!0;let s=null;if(this._callback)if(typeof this._callback=="function"){t.record(21,this.strId);let u=E._invokeFactory(e,this.strId,this._callback,i);s=u.producedError,t.record(22,this.strId),!s&&typeof u.returnedValue<"u"&&(!this.exportsPassedIn||a.Utilities.isEmpty(this.exports))&&(this.exports=u.returnedValue)}else this.exports=this._callback;if(s){let u=a.ensureError(s);u.phase="factory",u.moduleId=this.strId,u.neededBy=r(this.id),this.error=u,e.onError(u)}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}}a.Module=E;class y{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 f{constructor(t){this.id=t}}f.EXPORTS=new f(0),f.MODULE=new f(1),f.REQUIRE=new f(2),a.RegularDependency=f;class n{constructor(t,e,i){this.id=t,this.pluginId=e,this.pluginParam=i}}a.PluginDependency=n;class d{constructor(t,e,i,r,s=0){this._env=t,this._scriptLoader=e,this._loaderAvailableTimestamp=s,this._defineFunc=i,this._requireFunc=r,this._moduleIdProvider=new y,this._config=new a.Configuration(this._env),this._hasDependencyCycle=!1,this._modules2=[],this._knownModules2=[],this._inverseDependencies2=[],this._inversePluginDependencies2=new Map,this._currentAnonymousDefineCall=null,this._recorder=null,this._buildInfoPath=[],this._buildInfoDefineStack=[],this._buildInfoDependencies=[],this._requireFunc.moduleManager=this}reset(){return new d(this._env,this._scriptLoader,this._defineFunc,this._requireFunc,this._loaderAvailableTimestamp)}getGlobalAMDDefineFunc(){return this._defineFunc}getGlobalAMDRequireFunc(){return this._requireFunc}static _findRelevantLocationInStack(t,e){let i=u=>u.replace(/\\/g,"/"),r=i(t),s=e.split(/\n/);for(let u=0;u<s.length;u++){let l=s[u].match(/(.*):(\d+):(\d+)\)?$/);if(l){let o=l[1],h=l[2],g=l[3],p=Math.max(o.lastIndexOf(" ")+1,o.lastIndexOf("(")+1);if(o=o.substr(p),o=i(o),o===r){let v={line:parseInt(h,10),col:parseInt(g,10)};return v.line===1&&(v.col-=53),v}}}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 i=0,r=this._modules2.length;i<r;i++){let s=this._modules2[i];if(!s)continue;let u=this._buildInfoPath[s.id]||null,l=this._buildInfoDefineStack[s.id]||null,o=this._buildInfoDependencies[s.id];t[e++]={id:s.strId,path:u,defineLocation:u&&l?d._findRelevantLocationInStack(u,l):null,dependencies:o,shim:null,exports:s.exports}}return t}getRecorder(){return this._recorder||(this._config.shouldRecordStats()?this._recorder=new a.LoaderEventRecorder(this._loaderAvailableTimestamp):this._recorder=a.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 i=null;this._config.isBuild()&&(i=new Error("StackLocation").stack||null),this._currentAnonymousDefineCall={stack:i,dependencies:t,callback:e}}defineModule(t,e,i,r,s,u=new _(t)){let l=this._moduleIdProvider.getModuleId(t);if(this._modules2[l]){this._config.isDuplicateMessageIgnoredFor(t)||console.warn("Duplicate definition of module '"+t+"'");return}let o=new E(l,t,this._normalizeDependencies(e,u),i,r,u);this._modules2[l]=o,this._config.isBuild()&&(this._buildInfoDefineStack[l]=s,this._buildInfoDependencies[l]=(o.dependencies||[]).map(h=>this._moduleIdProvider.getStrModuleId(h.id))),this._resolve(o)}_normalizeDependency(t,e){if(t==="exports")return f.EXPORTS;if(t==="module")return f.MODULE;if(t==="require")return f.REQUIRE;let i=t.indexOf("!");if(i>=0){let r=e.resolveModule(t.substr(0,i)),s=e.resolveModule(t.substr(i+1)),u=this._moduleIdProvider.getModuleId(r+"!"+s),l=this._moduleIdProvider.getModuleId(r);return new n(u,l,s)}return new f(this._moduleIdProvider.getModuleId(e.resolveModule(t)))}_normalizeDependencies(t,e){let i=[],r=0;for(let s=0,u=t.length;s<u;s++)i[r++]=this._normalizeDependency(t[s],e);return i}_relativeRequire(t,e,i,r){if(typeof e=="string")return this.synchronousRequire(e,t);this.defineModule(a.Utilities.generateAnonymousModule(),e,i,r,null,t)}synchronousRequire(t,e=new _(t)){let i=this._normalizeDependency(t,e),r=this._modules2[i.id];if(!r)throw new Error("Check dependency list! Synchronous require cannot resolve module '"+t+"'. This is the first mention of this module!");if(!r.isComplete())throw new Error("Check dependency list! Synchronous require cannot resolve module '"+t+"'. This module has not been resolved completely yet.");if(r.error)throw r.error;return r.exports}configure(t,e){let i=this._config.shouldRecordStats();e?this._config=new a.Configuration(this._env,t):this._config=this._config.cloneAndMerge(t),this._config.shouldRecordStats()&&!i&&(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 i=this._moduleIdProvider.getStrModuleId(t),r=(this._inverseDependencies2[t]||[]).map(u=>this._moduleIdProvider.getStrModuleId(u));const s=a.ensureError(e);return s.phase="loading",s.moduleId=i,s.neededBy=r,s}_onLoadError(t,e){const i=this._createLoadError(t,e);this._modules2[t]||(this._modules2[t]=new E(t,this._moduleIdProvider.getStrModuleId(t),[],()=>{},null,null));let r=[];for(let l=0,o=this._moduleIdProvider.getMaxModuleId();l<o;l++)r[l]=!1;let s=!1,u=[];for(u.push(t),r[t]=!0;u.length>0;){let l=u.shift(),o=this._modules2[l];o&&(s=o.onDependencyError(i)||s);let h=this._inverseDependencies2[l];if(h)for(let g=0,p=h.length;g<p;g++){let v=h[g];r[v]||(u.push(v),r[v]=!0)}}s||this._config.onError(i)}_hasDependencyPath(t,e){let i=this._modules2[t];if(!i)return!1;let r=[];for(let u=0,l=this._moduleIdProvider.getMaxModuleId();u<l;u++)r[u]=!1;let s=[];for(s.push(i),r[t]=!0;s.length>0;){let l=s.shift().dependencies;if(l)for(let o=0,h=l.length;o<h;o++){let g=l[o];if(g.id===e)return!0;let p=this._modules2[g.id];p&&!r[g.id]&&(r[g.id]=!0,s.push(p))}}return!1}_findCyclePath(t,e,i){if(t===e||i===50)return[t];let r=this._modules2[t];if(!r)return null;let s=r.dependencies;if(s)for(let u=0,l=s.length;u<l;u++){let o=this._findCyclePath(s[u].id,e,i+1);if(o!==null)return o.push(t),o}return null}_createRequire(t){let e=(i,r,s)=>this._relativeRequire(t,i,r,s);return e.toUrl=i=>this._config.requireToUrl(t.resolveModule(i)),e.getStats=()=>this.getLoaderEvents(),e.hasDependencyCycle=()=>this._hasDependencyCycle,e.config=(i,r=!1)=>{this.configure(i,r)},e.__$__nodeRequire=a.global.nodeRequire,e}_loadModule(t){if(this._modules2[t]||this._knownModules2[t])return;this._knownModules2[t]=!0;let e=this._moduleIdProvider.getStrModuleId(t),i=this._config.moduleIdToPaths(e),r=/^@[^\/]+\/[^\/]+$/;this._env.isNode&&(e.indexOf("/")===-1||r.test(e))&&i.push("node|"+e);let s=-1,u=l=>{if(s++,s>=i.length)this._onLoadError(t,l);else{let o=i[s],h=this.getRecorder();if(this._config.isBuild()&&o==="empty:"){this._buildInfoPath[t]=o,this.defineModule(this._moduleIdProvider.getStrModuleId(t),[],null,null,null),this._onLoad(t);return}h.record(10,o),this._scriptLoader.load(this,o,()=>{this._config.isBuild()&&(this._buildInfoPath[t]=o),h.record(11,o),this._onLoad(t)},g=>{h.record(12,o),u(g)})}};u(null)}_loadPluginDependency(t,e){if(this._modules2[e.id]||this._knownModules2[e.id])return;this._knownModules2[e.id]=!0;let i=r=>{this.defineModule(this._moduleIdProvider.getStrModuleId(e.id),[],r,null,null)};i.error=r=>{this._config.onError(this._createLoadError(e.id,r))},t.load(e.pluginParam,this._createRequire(_.ROOT),i,this._config.getOptionsLiteral())}_resolve(t){let e=t.dependencies;if(e)for(let i=0,r=e.length;i<r;i++){let s=e[i];if(s===f.EXPORTS){t.exportsPassedIn=!0,t.unresolvedDependenciesCount--;continue}if(s===f.MODULE){t.unresolvedDependenciesCount--;continue}if(s===f.REQUIRE){t.unresolvedDependenciesCount--;continue}let u=this._modules2[s.id];if(u&&u.isComplete()){if(u.error){t.onDependencyError(u.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 l=this._findCyclePath(s.id,t.id,0)||[];l.reverse(),l.push(s.id),console.warn(l.map(o=>this._moduleIdProvider.getStrModuleId(o)).join(` => 
`)),t.unresolvedDependenciesCount--;continue}if(this._inverseDependencies2[s.id]=this._inverseDependencies2[s.id]||[],this._inverseDependencies2[s.id].push(t.id),s instanceof n){let l=this._modules2[s.pluginId];if(l&&l.isComplete()){this._loadPluginDependency(l.exports,s);continue}let o=this._inversePluginDependencies2.get(s.pluginId);o||(o=[],this._inversePluginDependencies2.set(s.pluginId,o)),o.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 i=t.dependencies,r=[];if(i)for(let o=0,h=i.length;o<h;o++){let g=i[o];if(g===f.EXPORTS){r[o]=t.exports;continue}if(g===f.MODULE){r[o]={id:t.strId,config:()=>this._config.getConfigForModule(t.strId)};continue}if(g===f.REQUIRE){r[o]=this._createRequire(t.moduleIdResolver);continue}let p=this._modules2[g.id];if(p){r[o]=p.exports;continue}r[o]=null}const s=o=>(this._inverseDependencies2[o]||[]).map(h=>this._moduleIdProvider.getStrModuleId(h));t.complete(e,this._config,r,s);let u=this._inverseDependencies2[t.id];if(this._inverseDependencies2[t.id]=null,u)for(let o=0,h=u.length;o<h;o++){let g=u[o],p=this._modules2[g];p.unresolvedDependenciesCount--,p.unresolvedDependenciesCount===0&&this._onModuleComplete(p)}let l=this._inversePluginDependencies2.get(t.id);if(l){this._inversePluginDependencies2.delete(t.id);for(let o=0,h=l.length;o<h;o++)this._loadPluginDependency(t.exports,l[o])}}}a.ModuleManager=d})(AMDLoader||(AMDLoader={}));var define,AMDLoader;(function(a){const _=new a.Environment;let E=null;const y=function(c,t,e){typeof c!="string"&&(e=t,t=c,c=null),(typeof t!="object"||!Array.isArray(t))&&(e=t,t=null),t||(t=["require","exports","module"]),c?E.defineModule(c,t,e,null,null):E.enqueueDefineAnonymousModule(t,e)};y.amd={jQuery:!0};const f=function(c,t=!1){E.configure(c,t)},n=function(){if(arguments.length===1){if(arguments[0]instanceof Object&&!Array.isArray(arguments[0])){f(arguments[0]);return}if(typeof arguments[0]=="string")return E.synchronousRequire(arguments[0])}if((arguments.length===2||arguments.length===3)&&Array.isArray(arguments[0])){E.defineModule(a.Utilities.generateAnonymousModule(),arguments[0],arguments[1],arguments[2],null);return}throw new Error("Unrecognized require call")};n.config=f,n.getConfig=function(){return E.getConfig().getOptionsLiteral()},n.reset=function(){E=E.reset()},n.getBuildInfo=function(){return E.getBuildInfo()},n.getStats=function(){return E.getLoaderEvents()},n.define=y;function d(){if(typeof a.global.require<"u"||typeof require<"u"){const c=a.global.require||require;if(typeof c=="function"&&typeof c.resolve=="function"){const t=a.ensureRecordedNodeRequire(E.getRecorder(),c);a.global.nodeRequire=t,n.nodeRequire=t,n.__$__nodeRequire=t}}_.isNode&&!_.isElectronRenderer&&!_.isElectronNodeIntegrationWebWorker?module.exports=n:(_.isElectronRenderer||(a.global.define=y),a.global.require=n)}a.init=d,(typeof a.global.define!="function"||!a.global.define.amd)&&(E=new a.ModuleManager(_,a.createScriptLoader(_),y,n,a.Utilities.getHighPerformanceTimestamp()),typeof a.global.require<"u"&&typeof a.global.require!="function"&&n.config(a.global.require),define=function(){return y.apply(null,arguments)},define.amd=y.amd,typeof doNotInitLoader>"u"&&d())})(AMDLoader||(AMDLoader={})),define("vs/css",["require","exports"],function(a,_){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.load=void 0;function E(c,t,e,i){if(i=i||{},(i["vs/css"]||{}).disabled){e({});return}const s=t.toUrl(c+".css");y(c,s,()=>{e({})},u=>{typeof e.error=="function"&&e.error("Could not find "+s+".")})}_.load=E;function y(c,t,e,i){if(f(c,t)){e();return}n(c,t,e,i)}function f(c,t){const e=document.getElementsByTagName("link");for(let i=0,r=e.length;i<r;i++){const s=e[i].getAttribute("data-name"),u=e[i].getAttribute("href");if(s===c||u===t)return!0}return!1}function n(c,t,e,i){const r=document.createElement("link");r.setAttribute("rel","stylesheet"),r.setAttribute("type","text/css"),r.setAttribute("data-name",c),d(c,r,e,i),r.setAttribute("href",t),(document.head||document.getElementsByTagName("head")[0]).appendChild(r)}function d(c,t,e,i){const r=()=>{t.removeEventListener("load",s),t.removeEventListener("error",u)},s=l=>{r(),e()},u=l=>{r(),i(l)};t.addEventListener("load",s),t.addEventListener("error",u)}}),define("vs/nls",["require","exports"],function(a,_){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.load=_.create=_.setPseudoTranslation=_.getConfiguredDefaultLocale=_.localize=void 0;let E=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;const y="i-default";function f(l,o){let h;return o.length===0?h=l:h=l.replace(/\{(\d+)\}/g,(g,p)=>{const v=p[0],m=o[v];let R=g;return typeof m=="string"?R=m:(typeof m=="number"||typeof m=="boolean"||m===void 0||m===null)&&(R=String(m)),R}),E&&(h="\uFF3B"+h.replace(/[aouei]/g,"$&$&")+"\uFF3D"),h}function n(l,o){let h=l[o];return h||(h=l["*"],h)?h:null}function d(l){return l.charAt(l.length-1)==="/"?l:l+"/"}async function c(l,o,h){const g=d(l)+d(o)+"vscode/"+d(h),p=await fetch(g);if(p.ok)return await p.json();throw new Error(`${p.status} - ${p.statusText}`)}function t(l){return function(o,h){const g=Array.prototype.slice.call(arguments,2);return f(l[o],g)}}function e(l,o,...h){return f(o,h)}_.localize=e;function i(l){}_.getConfiguredDefaultLocale=i;function r(l){E=l}_.setPseudoTranslation=r;function s(l,o){return{localize:t(o[l]),getConfiguredDefaultLocale:o.getConfiguredDefaultLocale??(h=>{})}}_.create=s;function u(l,o,h,g){const p=g["vs/nls"]??{};if(!l||l.length===0)return h({localize:e,getConfiguredDefaultLocale:()=>p.availableLanguages?.["*"]});const v=p.availableLanguages?n(p.availableLanguages,l):null,m=v===null||v===y;let R=".nls";m||(R=R+"."+v);const b=C=>{Array.isArray(C)?C.localize=t(C):C.localize=t(C[l]),C.getConfiguredDefaultLocale=()=>p.availableLanguages?.["*"],h(C)};typeof p.loadBundle=="function"?p.loadBundle(l,v,(C,P)=>{C?o([l+".nls"],b):b(P)}):p.translationServiceUrl&&!m?(async()=>{try{const C=await c(p.translationServiceUrl,v,l);return b(C)}catch(C){if(!v.includes("-"))return console.error(C),o([l+".nls"],b);try{const P=v.split("-")[0],I=await c(p.translationServiceUrl,P,l);return p.availableLanguages??={},p.availableLanguages["*"]=P,b(I)}catch(P){return console.error(P),o([l+".nls"],b)}}})():o([l+R],b,C=>{if(R===".nls"){console.error("Failed trying to load default language strings",C);return}console.error(`Failed to load message bundle for language ${v}. Falling back to the default language:`,C),o([l+".nls"],b)})}_.load=u});

//# sourceMappingURL=https://sqlopsbuilds.blob.core.windows.net/sourcemaps/82e35eb142bf0f4567ff8c6dd4f16f33abfc2d50/core/vs/loader.js.map