(s, o, i)
| 2981 | } |
| 2982 | } |
| 2983 | function setListBounds(s, o, i) { |
| 2984 | ;(void 0 !== o && (o |= 0), void 0 !== i && (i |= 0)) |
| 2985 | var a = s.__ownerID || new OwnerID(), |
| 2986 | u = s._origin, |
| 2987 | _ = s._capacity, |
| 2988 | x = u + o, |
| 2989 | j = void 0 === i ? _ : i < 0 ? _ + i : u + i |
| 2990 | if (x === u && j === _) return s |
| 2991 | if (x >= j) return s.clear() |
| 2992 | for (var L = s._level, B = s._root, $ = 0; x + $ < 0; ) |
| 2993 | ((B = new VNode(B && B.array.length ? [void 0, B] : [], a)), ($ += 1 << (L += w))) |
| 2994 | $ && ((x += $), (u += $), (j += $), (_ += $)) |
| 2995 | for (var U = getTailOffset(_), V = getTailOffset(j); V >= 1 << (L + w); ) |
| 2996 | ((B = new VNode(B && B.array.length ? [B] : [], a)), (L += w)) |
| 2997 | var z = s._tail, |
| 2998 | Y = V < U ? listNodeFor(s, j - 1) : V > U ? new VNode([], a) : z |
| 2999 | if (z && V > U && x < _ && z.array.length) { |
| 3000 | for (var Z = (B = editableVNode(B, a)), ee = L; ee > w; ee -= w) { |
| 3001 | var ie = (U >>> ee) & C |
| 3002 | Z = Z.array[ie] = editableVNode(Z.array[ie], a) |
| 3003 | } |
| 3004 | Z.array[(U >>> w) & C] = z |
| 3005 | } |
| 3006 | if ((j < _ && (Y = Y && Y.removeAfter(a, 0, j)), x >= V)) |
| 3007 | ((x -= V), (j -= V), (L = w), (B = null), (Y = Y && Y.removeBefore(a, 0, x))) |
| 3008 | else if (x > u || V < U) { |
| 3009 | for ($ = 0; B; ) { |
| 3010 | var ae = (x >>> L) & C |
| 3011 | if ((ae !== V >>> L) & C) break |
| 3012 | ;(ae && ($ += (1 << L) * ae), (L -= w), (B = B.array[ae])) |
| 3013 | } |
| 3014 | ;(B && x > u && (B = B.removeBefore(a, L, x - $)), |
| 3015 | B && V < U && (B = B.removeAfter(a, L, V - $)), |
| 3016 | $ && ((x -= $), (j -= $))) |
| 3017 | } |
| 3018 | return s.__ownerID |
| 3019 | ? ((s.size = j - x), |
| 3020 | (s._origin = x), |
| 3021 | (s._capacity = j), |
| 3022 | (s._level = L), |
| 3023 | (s._root = B), |
| 3024 | (s._tail = Y), |
| 3025 | (s.__hash = void 0), |
| 3026 | (s.__altered = !0), |
| 3027 | s) |
| 3028 | : makeList(x, j, L, B, Y) |
| 3029 | } |
| 3030 | function mergeIntoListWith(s, o, i) { |
| 3031 | for (var a = [], u = 0, _ = 0; _ < i.length; _++) { |
| 3032 | var w = i[_], |
no test coverage detected