(e3, t3 = [64, 126])
| 4844 | }, this._escHandlerFb = (e4) => { |
| 4845 | }, this._errorHandlerFb = (e4) => e4, this._printHandler = this._printHandlerFb, this._executeHandlers = /* @__PURE__ */ Object.create(null), this._csiHandlers = /* @__PURE__ */ Object.create(null), this._escHandlers = /* @__PURE__ */ Object.create(null), this.register((0, s2.toDisposable)((() => { |
| 4846 | this._csiHandlers = /* @__PURE__ */ Object.create(null), this._executeHandlers = /* @__PURE__ */ Object.create(null), this._escHandlers = /* @__PURE__ */ Object.create(null); |
| 4847 | }))), this._oscParser = this.register(new n.OscParser()), this._dcsParser = this.register(new o.DcsParser()), this._errorHandler = this._errorHandlerFb, this.registerEscHandler({ final: "\\" }, (() => true)); |
| 4848 | } |
| 4849 | _identifier(e3, t3 = [64, 126]) { |
| 4850 | let i3 = 0; |
| 4851 | if (e3.prefix) { |
| 4852 | if (e3.prefix.length > 1) throw new Error("only one byte as prefix supported"); |
| 4853 | if (i3 = e3.prefix.charCodeAt(0), i3 && 60 > i3 || i3 > 63) throw new Error("prefix must be in range 0x3c .. 0x3f"); |
| 4854 | } |
| 4855 | if (e3.intermediates) { |
| 4856 | if (e3.intermediates.length > 2) throw new Error("only two bytes as intermediates are supported"); |
| 4857 | for (let t4 = 0; t4 < e3.intermediates.length; ++t4) { |
| 4858 | const s4 = e3.intermediates.charCodeAt(t4); |
| 4859 | if (32 > s4 || s4 > 47) throw new Error("intermediate must be in range 0x20 .. 0x2f"); |
| 4860 | i3 <<= 8, i3 |= s4; |
| 4861 | } |
| 4862 | } |
| 4863 | if (1 !== e3.final.length) throw new Error("final must be a single byte"); |
| 4864 | const s3 = e3.final.charCodeAt(0); |
| 4865 | if (t3[0] > s3 || s3 > t3[1]) throw new Error(`final must be in range ${t3[0]} .. ${t3[1]}`); |
| 4866 | return i3 <<= 8, i3 |= s3, i3; |
| 4867 | } |
no outgoing calls
no test coverage detected