"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.devtoolsGenTempFile=void 0;const tslib_1=require("tslib"),fs=tslib_1.__importStar(require("fs")),path=tslib_1.__importStar(require("path")),appDirService_1=require("../../app/common/appDirService"),getservice_1=tslib_1.__importDefault(require("../../common/getservice")),common_1=require("../../../utils/common"),os=require("os");class devtoolsGenTempFile{async genPath(){if(fs.existsSync(os.tmpdir()))return path.join(os.tmpdir(),(0,common_1.random)());const e=await(0,getservice_1.default)(appDirService_1.IAppDirService).get("WeappCompileCache");return path.join(e,(0,common_1.random)())}}exports.devtoolsGenTempFile=devtoolsGenTempFile;