import { t as createBrowserRouteDispatcher } from "./dispatcher-BPh64j8j.js";
import { n as createBrowserControlContext } from "./plugin-enabled-BcP1W0UY.js";
import { t as startBrowserControlServiceFromConfig } from "./control-service-DOlLmodK.js";
//#region extensions/browser/src/browser/local-dispatch.runtime.ts
async function dispatchBrowserControlRequest(req) {
	if (!await startBrowserControlServiceFromConfig()) throw new Error("browser control disabled");
	return await createBrowserRouteDispatcher(createBrowserControlContext()).dispatch(req);
}
//#endregion
export { dispatchBrowserControlRequest };
