import { REMOVE_TARGET as E, REMOVE_SOURCE as c, ADD_TARGET as u, ADD_SOURCE as R } from "../actions/registry.js";
function t(e = 0, r) {
  switch (r.type) {
    case R:
    case u:
      return e + 1;
    case c:
    case E:
      return e - 1;
    default:
      return e;
  }
}
export {
  t as reduce
};
//# sourceMappingURL=refCount.js.map
