"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var worker_threads_1=require("worker_threads"),net_1=require("net");function getWorkerPipeName(e){return e+"-worker"}var conoutPipeName=worker_threads_1.workerData.conoutPipeName,conoutSocket=new net_1.Socket;conoutSocket.setEncoding("utf8"),conoutSocket.connect(conoutPipeName,function(){if(net_1.createServer(function(e){conoutSocket.pipe(e)}).listen(getWorkerPipeName(conoutPipeName)),!worker_threads_1.parentPort)throw Error("worker_threads parentPort is null");worker_threads_1.parentPort.postMessage(1)});