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

Function yr

resources/vega.min.js:2129–2167  ·  view source on GitHub ↗
(t, e, n, r, i)

Source from the content-addressed store, hash-verified

2127 return new Date(Date.UTC(t, e, n, r, i, o, a));
2128 }
2129 function yr(t, e, n, r, i) {
2130 const o = e || 1,
2131 a = F(t),
2132 s = (t, e, i) =>
2133 (function (t, e, n, r) {
2134 const i =
2135 n <= 1
2136 ? t
2137 : r
2138 ? (e, i) => r + n * Math.floor((t(e, i) - r) / n)
2139 : (e, r) => n * Math.floor(t(e, r) / n);
2140 return e ? (t, n) => e(i(t, n), n) : i;
2141 })(n[(i = i || t)], r[i], t === a && o, e),
2142 u = new Date(),
2143 l = Tt(t),
2144 c = l[Pn] ? s(Pn) : rt(2012),
2145 f = l[In] ? s(In) : l[jn] ? s(jn) : h,
2146 p =
2147 l[Wn] && l[Yn]
2148 ? s(Yn, 1, Wn + Yn)
2149 : l[Wn]
2150 ? s(Wn, 1)
2151 : l[Yn]
2152 ? s(Yn, 1)
2153 : l[Hn]
2154 ? s(Hn, 1)
2155 : l[Gn]
2156 ? s(Gn, 1)
2157 : d,
2158 g = l[Vn] ? s(Vn) : h,
2159 m = l[Xn] ? s(Xn) : h,
2160 y = l[Jn] ? s(Jn) : h,
2161 v = l[Zn] ? s(Zn) : h;
2162 return function (t) {
2163 u.setTime(+t);
2164 const e = c(u);
2165 return i(e, f(u), p(u, e), g(u), m(u), y(u), v(u));
2166 };
2167 }
2168 function vr(t, e, n) {
2169 return e + 7 * t - ((n + 6) % 7);
2170 }

Callers 2

brFunction · 0.85
ArFunction · 0.85

Calls 12

FFunction · 0.85
TtFunction · 0.85
sFunction · 0.70
rtFunction · 0.70
cFunction · 0.70
iFunction · 0.70
fFunction · 0.70
pFunction · 0.70
gFunction · 0.70
mFunction · 0.70
yFunction · 0.70
vFunction · 0.70

Tested by

no test coverage detected