import {
  G2 as G,
  J,
  hn,
  init_compat_module
} from "./chunk-chunk-E4NYPI5M.mjs";
import {
  __name,
  init_define_process
} from "./chunk-chunk-5RXWZEI4.mjs";

// ../../node_modules/preact/compat/client.mjs
init_define_process();
init_compat_module();
function createRoot(container) {
  return {
    render(children) {
      G(children, container);
    },
    unmount() {
      hn(container);
    }
  };
}
__name(createRoot, "createRoot");
function hydrateRoot(container, children) {
  J(children, container);
  return createRoot(container);
}
__name(hydrateRoot, "hydrateRoot");

export {
  createRoot,
  hydrateRoot
};
