import { __exports as r } from "./index-getSelectedNode2.js";
import { __require as i } from "./index-LexicalSelection.js";
var c;
function _() {
  if (c) return r;
  c = 1, Object.defineProperty(r, "__esModule", { value: !0 }), r.getSelectedNode = void 0;
  const d = i();
  function n(e) {
    const s = e.anchor, u = e.focus, o = e.anchor.getNode(), t = e.focus.getNode();
    return o === t ? o : e.isBackward() ? (0, d.$isAtNodeEnd)(u) ? o : t : (0, d.$isAtNodeEnd)(s) ? o : t;
  }
  return r.getSelectedNode = n, r;
}
export {
  _ as __require
};
