const w = (t, d, u) => {
  let e = 1;
  const n = Object.values(u).filter((o) => o.areaId === t).filter((o) => o.moduleId === d);
  return n.sort((o, s) => (o?.moduleCount ?? 0) - (s?.moduleCount ?? 0)), n.forEach((o) => {
    o?.moduleCount === e && e++;
  }), e;
};
export {
  w as generateModuleCount
};
