MCPcopy Create free account
hub / github.com/alignoth/alignoth / Ha

Function Ha

resources/vega.min.js:3912–3944  ·  view source on GitHub ↗
(t)

Source from the content-addressed store, hash-verified

3910 }));
3911 const Wa = { skip: !1, force: !1 };
3912 function Ha(t) {
3913 let e = [];
3914 return {
3915 clear: () => (e = []),
3916 size: () => e.length,
3917 peek: () => e[0],
3918 push: (n) => (e.push(n), Ya(e, 0, e.length - 1, t)),
3919 pop: () => {
3920 const n = e.pop();
3921 let r;
3922 return (
3923 e.length
3924 ? ((r = e[0]),
3925 (e[0] = n),
3926 (function (t, e, n) {
3927 const r = e,
3928 i = t.length,
3929 o = t[e];
3930 let a,
3931 s = 1 + (e << 1);
3932 for (; s < i; )
3933 ((a = s + 1),
3934 a < i && n(t[s], t[a]) >= 0 && (s = a),
3935 (t[e] = t[s]),
3936 (s = 1 + ((e = s) << 1)));
3937 ((t[e] = o), Ya(t, r, e, n));
3938 })(e, 0, t))
3939 : (r = n),
3940 r
3941 );
3942 },
3943 };
3944 }
3945 function Ya(t, e, n, r) {
3946 let i, o;
3947 const a = t[n];

Callers 1

GaFunction · 0.70

Calls 2

YaFunction · 0.70
nFunction · 0.70

Tested by

no test coverage detected