"use strict";async function shouldInspectCompiler(){var o,l,e,r;if(global.__MINIPROGRAM_CI_TEST__)return!0;if(null===(o=global.localStorage)||void 0===o?void 0:o.getItemAsync){if(await(null===(e=null===(l=global.localStorage)||void 0===l?void 0:l.getItemAsync)||void 0===e?void 0:e.call(l,"inspectCompiler")))return!0}else if(null===(r=global.localStorage)||void 0===r?void 0:r.getItem("inspectCompiler"))return!0;return!1}async function shouldRunInMainProcess(){var o,l,e,r,n,i;if(null===(o=null===process||void 0===process?void 0:process.env)||void 0===o?void 0:o.BUILD_SERVER)return!0;if(null===(l=global.localStorage)||void 0===l?void 0:l.getItemAsync){if(await(null===(r=null===(e=global.localStorage)||void 0===e?void 0:e.getItemAsync)||void 0===r?void 0:r.call(e,"compilerInMainProcess")))return!0}else if(null===(n=global.localStorage)||void 0===n?void 0:n.getItem("compilerInMainProcess"))return!0;return!!(null===(i=null===process||void 0===process?void 0:process.versions)||void 0===i?void 0:i.electron)}async function shouldNotRunInWorker(){var o,l,e,r;if(null===(o=global.localStorage)||void 0===o?void 0:o.getItemAsync){if(await(null===(e=null===(l=global.localStorage)||void 0===l?void 0:l.getItemAsync)||void 0===e?void 0:e.call(l,"compilerNotInWorker")))return!0}else if(null===(r=global.localStorage)||void 0===r?void 0:r.getItem("compilerNotInWorker"))return!0;return!1}Object.defineProperty(exports,"__esModule",{value:!0}),exports.shouldInspectCompiler=shouldInspectCompiler,exports.shouldRunInMainProcess=shouldRunInMainProcess,exports.shouldNotRunInWorker=shouldNotRunInWorker;