(e3)
| 4632 | if (this.version = "6", !o) { |
| 4633 | o = new Uint8Array(65536), o.fill(1), o[0] = 0, o.fill(0, 1, 32), o.fill(0, 127, 160), o.fill(2, 4352, 4448), o[9001] = 2, o[9002] = 2, o.fill(2, 11904, 42192), o[12351] = 1, o.fill(2, 44032, 55204), o.fill(2, 63744, 64256), o.fill(2, 65040, 65050), o.fill(2, 65072, 65136), o.fill(2, 65280, 65377), o.fill(2, 65504, 65511); |
| 4634 | for (let e3 = 0; e3 < r.length; ++e3) o.fill(0, r[e3][0], r[e3][1] + 1); |
| 4635 | } |
| 4636 | } |
| 4637 | wcwidth(e3) { |
| 4638 | return e3 < 32 ? 0 : e3 < 127 ? 1 : e3 < 65536 ? o[e3] : (function(e4, t3) { |
| 4639 | let i3, s3 = 0, r2 = t3.length - 1; |
| 4640 | if (e4 < t3[0][0] || e4 > t3[r2][1]) return false; |
| 4641 | for (; r2 >= s3; ) if (i3 = s3 + r2 >> 1, e4 > t3[i3][1]) s3 = i3 + 1; |
| 4642 | else { |
| 4643 | if (!(e4 < t3[i3][0])) return true; |
| 4644 | r2 = i3 - 1; |
| 4645 | } |
| 4646 | return false; |
| 4647 | })(e3, n) ? 0 : e3 >= 131072 && e3 <= 196605 || e3 >= 196608 && e3 <= 262141 ? 2 : 1; |
| 4648 | } |
no test coverage detected