import { set as e } from "./schedule.js";
//#region ../../node_modules/d3-transition/src/transition/end.js
function t() {
	var t, n, r = this, i = r._id, a = r.size();
	return new Promise(function(o, s) {
		var c = { value: s }, l = { value: function() {
			--a === 0 && o();
		} };
		r.each(function() {
			var r = e(this, i), a = r.on;
			a !== t && (n = (t = a).copy(), n._.cancel.push(c), n._.interrupt.push(c), n._.end.push(l)), r.on = n;
		}), a === 0 && o();
	});
}
//#endregion
export { t as default };
