import e from "../selector.js";
import { Selection as t } from "./index.js";
//#region ../../node_modules/d3-selection/src/selection/select.js
function n(n) {
	typeof n != "function" && (n = e(n));
	for (var r = this._groups, i = r.length, a = Array(i), o = 0; o < i; ++o) for (var s = r[o], c = s.length, l = a[o] = Array(c), u, d, f = 0; f < c; ++f) (u = s[f]) && (d = n.call(u, u.__data__, f, s)) && ("__data__" in u && (d.__data__ = u.__data__), l[f] = d);
	return new t(a, this._parents);
}
//#endregion
export { n as default };
