function y(t, e) {
  let l = t.length;
  Array.isArray(t[0]) || (t = [t]), Array.isArray(e[0]) || (e = e.map((r) => [r]));
  let m = e[0].length, n = e[0].map((r, p) => e.map((a) => a[p])), i = t.map(
    (r) => n.map((p) => Array.isArray(r) ? r.reduce((a, u, f) => a + u * (p[f] || 0), 0) : p.reduce((a, u) => a + u * r, 0))
  );
  return l === 1 && (i = i[0]), m === 1 ? i.map((r) => r[0]) : i;
}
export {
  y as default
};
//# sourceMappingURL=multiply-matrices.js.map
