/*!
 * Copyright (c) 2026 Vertex Software LLC. All rights reserved.
 */
import{E as t,o as e}from"./p-BuOEMGyM.js";class s{constructor(){this.entities=new Set;this.results=new Set;this.entitiesChanged=new t;this.outcomeChanged=new t}addEntity(t){if(!this.entities.has(t)){this.entities.add(t);this.entitiesChanged.emit(this.getEntities());return true}else{return false}}clearEntities(){this.entities.forEach((t=>this.removeEntity(t)))}clearOutcome(){this.setOutcome(undefined)}setOutcome(t){if(!e.isEqual(this.outcome,t)){this.outcome=t;this.outcomeChanged.emit(t)}}getEntities(){return Array.from(this.entities)}getOutcome(){return this.outcome}getResults(){return Array.from(this.results)}removeEntity(t){if(this.entities.has(t)){this.entities.delete(t);this.entitiesChanged.emit(this.getEntities());return true}else{return false}}setEntities(t){this.entities.clear();t.forEach((t=>this.entities.add(t)));this.entitiesChanged.emit(this.getEntities());return true}onOutcomeChanged(t){return this.outcomeChanged.on(t)}onEntitiesChanged(t){return this.entitiesChanged.on(t)}}export{s as M};
//# sourceMappingURL=p-BpnIh2g8.js.map