(function(){"use strict";const{ipcRenderer:o,webFrame:f,crashReporter:v,contextBridge:p}=require("electron"),d={ipcRenderer:{send(e,...r){t(e)&&o.send(e,...r)},invoke(e,...r){if(t(e))return o.invoke(e,...r)},on(e,r){t(e)&&o.on(e,r)},once(e,r){t(e)&&o.once(e,r)},removeListener(e,r){t(e)&&o.removeListener(e,r)}},ipcMessagePort:{connect(e,r,s){if(t(e)&&t(r)){const n=(g,m)=>{s===m&&(o.off(r,n),window.postMessage(s,"*",g.ports))};o.on(r,n),o.send(e,s)}}},webFrame:{setZoomLevel(e){typeof e=="number"&&f.setZoomLevel(e)}},crashReporter:{addExtraParameter(e,r){v.addExtraParameter(e,r)}},process:{get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},get versions(){return process.versions},get type(){return"renderer"},get execPath(){return process.execPath},resolveEnv(e){return u(e)},getProcessMemoryInfo(){return process.getProcessMemoryInfo()},on(e,r){a(e)&&process.on(e,r)}},context:{get sandbox(){return process.sandboxed}}};let c=process.argv.includes("--context-isolation");if(c)try{p.exposeInMainWorld("vscode",d)}catch(e){console.error(e),c=!1}c||(window.vscode=d);function t(e){if(!e||!e.startsWith("vscode:"))throw new Error(`Unsupported event IPC channel '${e}'`);return!0}function a(e){if(e!=="uncaughtException")throw new Error(`Unsupported process event '${e}'`);return!0}let i;function u(e){return i||(Object.assign(process.env,e),i=new Promise(function(r){o.once("vscode:acceptShellEnv",function(s,n){Object.assign(process.env,n,e),r()}),o.send("vscode:fetchShellEnv")})),i}})();

//# sourceMappingURL=https://ticino.blob.core.windows.net/sourcemaps/2b9aebd5354a3629c3aba0a5f5df49f43d6689f8/core/vs/base/parts/sandbox/electron-browser/preload.js.map
