/* Copyright © 2024 Melbet - All Rights Reserved */ const y=(h,...t)=>{const k=t.pop();return h.reduce((e,n,s,u)=>{var l;let r=e;t.forEach(v=>{var c;const o=v(n,s,u);r[o]=(c=r[o])!=null?c:{},r=r[o]});const p=k(n,s,u),a=(l=r[p])!=null?l:[];return a.push(n),r[p]=a,e},{})};export{y as groupBy};