????

Your IP : 3.129.71.225


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

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

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