var TimegroupController = class {
	constructor(host, child) {
		this.host = host;
		this.child = child;
		this.host.addController(this);
	}
	remove() {
		this.host.removeController(this);
	}
	hostDisconnected() {
		this.host.removeController(this);
	}
	hostUpdated() {
		this.child.requestUpdate();
		this.child.currentTimeMs = this.host.currentTimeMs - (this.child.startTimeMs ?? 0);
	}
};
export { TimegroupController };
