import e from "../window.js";
//#region ../../node_modules/d3-selection/src/selection/dispatch.js
function t(t, n, r) {
	var i = e(t), a = i.CustomEvent;
	typeof a == "function" ? a = new a(n, r) : (a = i.document.createEvent("Event"), r ? (a.initEvent(n, r.bubbles, r.cancelable), a.detail = r.detail) : a.initEvent(n, !1, !1)), t.dispatchEvent(a);
}
function n(e, n) {
	return function() {
		return t(this, e, n);
	};
}
function r(e, n) {
	return function() {
		return t(this, e, n.apply(this, arguments));
	};
}
function i(e, t) {
	return this.each((typeof t == "function" ? r : n)(e, t));
}
//#endregion
export { i as default };
