(t, e)
| 4617 | }); |
| 4618 | } |
| 4619 | function se(t, e) { |
| 4620 | return t.sort(function (t, n) { |
| 4621 | var i = e ? n : t, |
| 4622 | a = e ? t : n; |
| 4623 | return i.weight === a.weight ? i.index - a.index : i.weight - a.weight; |
| 4624 | }); |
| 4625 | } |
| 4626 | function le(t, e, n, i) { |
| 4627 | return Math.max(t[n], e[n]) + Math.max(t[i], e[i]); |
| 4628 | } |