/*!--------------------------------------------------------
 * Copyright (C) Microsoft Corporation. All rights reserved.
 *--------------------------------------------------------*/(function(){const a=window.vscode,d=a.process;async function p(t,e){const o=await f();e?.beforeImport?.(o);const{enableDeveloperKeybindings:i,removeDeveloperKeybindingsAfterLoad:l,developerDeveloperKeybindingsDisposable:c,forceDisableShowDevtoolsOnError:r}=u(o,e);m(o);const n=new URL(`${b(o.appRoot,{isWindows:d.platform==="win32",scheme:"vscode-file",fallbackAuthority:"vscode-app"})}/out/`);globalThis._VSCODE_FILE_ROOT=n.toString(),v(o,n);try{const s=await import(new URL(`${t}.js`,n).href);return c&&l&&c(),{result:s,configuration:o}}catch(s){throw g(s,i&&!r),s}}async function f(){const t=setTimeout(()=>{console.error("[resolve window config] Could not resolve window configuration within 10 seconds, but will continue to wait...")},1e4);performance.mark("code/willWaitForWindowConfig");const e=await a.context.resolveConfiguration();return performance.mark("code/didWaitForWindowConfig"),clearTimeout(t),e}function u(t,e){const{forceEnableDeveloperKeybindings:o,disallowReloadKeybinding:i,removeDeveloperKeybindingsAfterLoad:l,forceDisableShowDevtoolsOnError:c}=typeof e?.configureDeveloperSettings=="function"?e.configureDeveloperSettings(t):{forceEnableDeveloperKeybindings:!1,disallowReloadKeybinding:!1,removeDeveloperKeybindingsAfterLoad:!1,forceDisableShowDevtoolsOnError:!1},n=!!(!!d.env.VSCODE_DEV||o);let s;return n&&(s=w(i)),{enableDeveloperKeybindings:n,removeDeveloperKeybindingsAfterLoad:l,developerDeveloperKeybindingsDisposable:s,forceDisableShowDevtoolsOnError:c}}function w(t){const e=a.ipcRenderer,o=function(n){return[n.ctrlKey?"ctrl-":"",n.metaKey?"meta-":"",n.altKey?"alt-":"",n.shiftKey?"shift-":"",n.keyCode].join("")},i=d.platform==="darwin"?"meta-alt-73":"ctrl-shift-73",l="123",c=d.platform==="darwin"?"meta-82":"ctrl-82";let r=function(n){const s=o(n);s===i||s===l?e.send("vscode:toggleDevTools"):s===c&&!t&&e.send("vscode:reloadWindow")};return window.addEventListener("keydown",r),function(){r&&(window.removeEventListener("keydown",r),r=void 0)}}function m(t){globalThis._VSCODE_NLS_MESSAGES=t.nls.messages,globalThis._VSCODE_NLS_LANGUAGE=t.nls.language;let e=t.nls.language||"en";e==="zh-tw"?e="zh-Hant":e==="zh-cn"&&(e="zh-Hans"),window.document.documentElement.setAttribute("lang",e)}function g(t,e){e&&a.ipcRenderer.send("vscode:openDevTools"),console.error(`[uncaught exception]: ${t}`),t&&typeof t!="string"&&t.stack&&console.error(t.stack)}function b(t,e){let o=t.replace(/\\/g,"/");o.length>0&&o.charAt(0)!=="/"&&(o=`/${o}`);let i;return e.isWindows&&o.startsWith("//")?i=encodeURI(`${e.scheme||"file"}:${o}`):i=encodeURI(`${e.scheme||"file"}://${e.fallbackAuthority||""}${o}`),i.replace(/#/g,"%23")}function v(t,e){if(Array.isArray(t.cssModules)&&t.cssModules.length>0){performance.mark("code/willAddCssLoader");const o=document.createElement("style");o.type="text/css",o.media="screen",o.id="vscode-css-loading",document.head.appendChild(o),globalThis._VSCODE_CSS_LOAD=function(n){o.textContent+=`@import url(${n});
`};const i={imports:{}};for(const n of t.cssModules){const s=new URL(n,e).href,y=`globalThis._VSCODE_CSS_LOAD('${s}');
`,D=new Blob([y],{type:"application/javascript"});i.imports[s]=URL.createObjectURL(D)}const l=window.trustedTypes?.createPolicy("vscode-bootstrapImportMap",{createScript(n){return n}}),c=JSON.stringify(i,void 0,2),r=document.createElement("script");r.type="importmap",r.setAttribute("nonce","0c6a828f1297"),r.textContent=l?.createScript(c)??c,document.head.appendChild(r),performance.mark("code/didAddCssLoader")}}globalThis.MonacoBootstrapWindow={load:p}})(),async function(){const a=window.MonacoBootstrapWindow,{result:d,configuration:p}=await a.load("vs/workbench/contrib/issue/electron-sandbox/issueReporterMain",{configureDeveloperSettings:function(){return{forceEnableDeveloperKeybindings:!0,disallowReloadKeybinding:!0}}});d.startup(p)}();

//# sourceMappingURL=https://main.vscode-cdn.net/sourcemaps/8798508b6fcf62248291cdf7a7e870bd84f7257d/core/vs/workbench/contrib/issue/electron-sandbox/issueReporter.js.map
