(e3)
| 5810 | const n = i2(2585); |
| 5811 | let o = t2.OscLinkService = class { |
| 5812 | constructor(e3) { |
| 5813 | this._bufferService = e3, this._nextId = 1, this._entriesWithId = /* @__PURE__ */ new Map(), this._dataByLinkId = /* @__PURE__ */ new Map(); |
| 5814 | } |
| 5815 | registerLink(e3) { |
| 5816 | const t3 = this._bufferService.buffer; |
| 5817 | if (void 0 === e3.id) { |
| 5818 | const i4 = t3.addMarker(t3.ybase + t3.y), s4 = { data: e3, id: this._nextId++, lines: [i4] }; |
| 5819 | return i4.onDispose((() => this._removeMarkerFromLink(s4, i4))), this._dataByLinkId.set(s4.id, s4), s4.id; |
| 5820 | } |
| 5821 | const i3 = e3, s3 = this._getEntryIdKey(i3), r2 = this._entriesWithId.get(s3); |
| 5822 | if (r2) return this.addLineToLink(r2.id, t3.ybase + t3.y), r2.id; |
| 5823 | const n2 = t3.addMarker(t3.ybase + t3.y), o2 = { id: this._nextId++, key: this._getEntryIdKey(i3), data: i3, lines: [n2] }; |
| 5824 | return n2.onDispose((() => this._removeMarkerFromLink(o2, n2))), this._entriesWithId.set(o2.key, o2), this._dataByLinkId.set(o2.id, o2), o2.id; |
| 5825 | } |
no test coverage detected