//#region ../../node_modules/dagre-d3-es/src/dagre/data/list.js
var e = class {
	constructor() {
		var e = {};
		e._next = e._prev = e, this._sentinel = e;
	}
	dequeue() {
		var e = this._sentinel, n = e._prev;
		if (n !== e) return t(n), n;
	}
	enqueue(e) {
		var n = this._sentinel;
		e._prev && e._next && t(e), e._next = n._next, n._next._prev = e, n._next = e, e._prev = n;
	}
	toString() {
		for (var e = [], t = this._sentinel, r = t._prev; r !== t;) e.push(JSON.stringify(r, n)), r = r._prev;
		return "[" + e.join(", ") + "]";
	}
};
function t(e) {
	e._prev._next = e._next, e._next._prev = e._prev, delete e._next, delete e._prev;
}
function n(e, t) {
	if (e !== "_next" && e !== "_prev") return t;
}
//#endregion
export { e as List };
