import k from "../../../@babel/runtime/helpers/esm/slicedToArray.mjs";
import { conductCheck as l } from "../../../rc-tree/es/utils/conductUtil.mjs";
import * as p from "react";
import { toPathKeys as v } from "../utils/commonUtil.mjs";
function x(s, e, c, r, o) {
  return p.useMemo(function() {
    var a = o(e), t = k(a, 2), i = t[0], n = t[1];
    if (!s || !e.length)
      return [i, [], n];
    var f = v(i), h = c(), u = l(f, !0, h), m = u.checkedKeys, d = u.halfCheckedKeys;
    return [r(m), r(d), n];
  }, [s, e, c, r, o]);
}
export {
  x as default
};
