function u(o, i) {
  const s = o.icons, e = o.aliases || /* @__PURE__ */ Object.create(null), t = /* @__PURE__ */ Object.create(null);
  function r(c) {
    if (s[c]) return t[c] = [];
    if (!(c in t)) {
      t[c] = null;
      const n = e[c] && e[c].parent, l = n && r(n);
      l && (t[c] = [n].concat(l));
    }
    return t[c];
  }
  return (i || Object.keys(s).concat(Object.keys(e))).forEach(r), t;
}
export {
  u as getIconsTree
};
