"use strict";(function(a,l){typeof exports=="object"?module.exports=l():a.MonacoBootstrap=l()})(this,function(){const a=typeof require=="function"?require("module"):void 0,l=typeof require=="function"?require("path"):void 0,f=typeof require=="function"?require("fs"):void 0,d=typeof require=="function"?require("util"):void 0;if(Error.stackTraceLimit=100,typeof process<"u"&&!process.env.VSCODE_HANDLES_SIGPIPE){let e=!1;process.on("SIGPIPE",()=>{e||(e=!0,console.error(new Error("Unexpected SIGPIPE")))})}function E(e){if(!l||!a||typeof process>"u"){console.warn("enableASARSupport() is only available in node.js environments");return}const r=e?l.join(e,"node_modules"):l.join(__dirname,"../node_modules");let n;if(e&&process.platform==="win32"){const s=e.substr(0,1);let i;s.toLowerCase()!==s?i=s.toLowerCase():i=s.toUpperCase(),n=i+r.substr(1)}else n=void 0;const t=`${r}.asar`,S=n?`${n}.asar`:void 0,c=a._resolveLookupPaths;a._resolveLookupPaths=function(s,i){const o=c(s,i);if(Array.isArray(o)){let p=!1;for(let u=0,v=o.length;u<v;u++)if(o[u]===r){p=!0,o.splice(u,0,t);break}else if(o[u]===n){p=!0,o.splice(u,0,S);break}!p&&e&&o.push(t)}return o}}function A(e,r){let n=e.replace(/\\/g,"/");n.length>0&&n.charAt(0)!=="/"&&(n=`/${n}`);let t;return r.isWindows&&n.startsWith("//")?t=encodeURI(`${r.scheme||"file"}:${n}`):t=encodeURI(`${r.scheme||"file"}://${r.fallbackAuthority||""}${n}`),t.replace(/#/g,"%23")}function h(){const e=b();let r={availableLanguages:{}};if(e&&e.env.VSCODE_NLS_CONFIG)try{r=JSON.parse(e.env.VSCODE_NLS_CONFIG)}catch{}if(r._resolvedLanguagePackCoreLocation){const n=Object.create(null);r.loadBundle=function(t,S,c){const s=n[t];if(s){c(void 0,s);return}N(r._resolvedLanguagePackCoreLocation,`${t.replace(/\//g,"!")}.nls.json`).then(function(i){const o=JSON.parse(i);n[t]=o,c(void 0,o)}).catch(i=>{try{r._corruptedFile&&P(r._corruptedFile,"corrupted").catch(function(o){console.error(o)})}finally{c(i,void 0)}})}}return r}function _(){return(typeof self=="object"?self:typeof global=="object"?global:{}).vscode}function b(){const e=_();if(e)return e.process;if(typeof process<"u")return process}function L(){const e=_();if(e)return e.ipcRenderer}async function N(...e){const r=L();if(r)return r.invoke("vscode:readNlsFile",...e);if(f&&l&&d)return(await d.promisify(f.readFile)(l.join(...e))).toString();throw new Error("Unsupported operation (read NLS files)")}function P(e,r){const n=L();if(n)return n.invoke("vscode:writeNlsFile",e,r);if(f&&d)return d.promisify(f.writeFile)(e,r);throw new Error("Unsupported operation (write NLS files)")}return{enableASARSupport:E,setupNLS:h,fileUriFromPath:A}});

//# sourceMappingURL=https://sqlopsbuilds.blob.core.windows.net/sourcemaps/2456f20f53a71b39191908aea4f3e7b3aec8e0b1/core/bootstrap.js.map
