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

Function la

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

Source from the content-addressed store, hash-verified

3229 return (e && e.responseType) || "text";
3230 }
3231 function la(t, e, n, r) {
3232 const i = sa((e = e || {}).type || "json");
3233 return (
3234 i || s("Unknown data format type: " + e.type),
3235 (t = i(t, e)),
3236 e.parse &&
3237 (function (t, e, n, r) {
3238 if (!t.length) return;
3239 const i = zo();
3240 ((n = n || i.timeParse), (r = r || i.utcParse));
3241 let o,
3242 a,
3243 s,
3244 u,
3245 l,
3246 c,
3247 f = t.columns || Object.keys(t[0]);
3248 "auto" === e && (e = ta(t, f));
3249 f = Object.keys(e);
3250 const h = f.map((t) => {
3251 const i = e[t];
3252 let o, a;
3253 if (i && (i.startsWith("date:") || i.startsWith("utc:"))) {
3254 ((o = i.split(/:(.+)?/, 2)),
3255 (a = o[1]),
3256 (("'" === a[0] && "'" === a[a.length - 1]) ||
3257 ('"' === a[0] && '"' === a[a.length - 1])) &&
3258 (a = a.slice(1, -1)));
3259 return ("utc" === o[0] ? r : n)(a);
3260 }
3261 if (!Jo[i]) throw Error("Illegal format pattern: " + t + ":" + i);
3262 return Jo[i];
3263 });
3264 for (s = 0, l = t.length, c = f.length; s < l; ++s)
3265 for (o = t[s], u = 0; u < c; ++u) ((a = f[u]), (o[a] = h[u](o[a])));
3266 })(t, e.parse, n, r),
3267 ut(t, "columns") && delete t.columns,
3268 t
3269 );
3270 }
3271 const ca = (function (t, e) {
3272 return (e) => ({
3273 options: e || {},

Callers 1

vega.min.jsFile · 0.70

Calls 7

saFunction · 0.70
sFunction · 0.70
iFunction · 0.70
zoFunction · 0.70
taFunction · 0.70
utFunction · 0.70
mapMethod · 0.45

Tested by

no test coverage detected