//#region ../../node_modules/unist-util-position/lib/index.js
var e = n("end"), t = n("start");
function n(e) {
	return t;
	function t(t) {
		let n = t && t.position && t.position[e] || {};
		if (typeof n.line == "number" && n.line > 0 && typeof n.column == "number" && n.column > 0) return {
			line: n.line,
			column: n.column,
			offset: typeof n.offset == "number" && n.offset > -1 ? n.offset : void 0
		};
	}
}
function r(n) {
	let r = t(n), i = e(n);
	if (r && i) return {
		start: r,
		end: i
	};
}
//#endregion
export { e as pointEnd, t as pointStart, r as position };
