@bp1222/stats-api 0.6.0 → 0.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -0
- package/dist/index.d.ts +1204 -305
- package/dist/index.js +1549 -1019
- package/package.json +5 -4
package/dist/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
const
|
|
5
|
-
class
|
|
6
|
-
constructor(
|
|
7
|
-
this.configuration =
|
|
1
|
+
var re = Object.defineProperty;
|
|
2
|
+
var ae = (e, t, i) => t in e ? re(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i;
|
|
3
|
+
var d = (e, t, i) => ae(e, typeof t != "symbol" ? t + "" : t, i);
|
|
4
|
+
const se = "https://statsapi.mlb.com/api".replace(/\/+$/, "");
|
|
5
|
+
class oe {
|
|
6
|
+
constructor(t = {}) {
|
|
7
|
+
this.configuration = t;
|
|
8
8
|
}
|
|
9
|
-
set config(
|
|
10
|
-
this.configuration =
|
|
9
|
+
set config(t) {
|
|
10
|
+
this.configuration = t;
|
|
11
11
|
}
|
|
12
12
|
get basePath() {
|
|
13
|
-
return this.configuration.basePath != null ? this.configuration.basePath :
|
|
13
|
+
return this.configuration.basePath != null ? this.configuration.basePath : se;
|
|
14
14
|
}
|
|
15
15
|
get fetchApi() {
|
|
16
16
|
return this.configuration.fetchApi;
|
|
@@ -19,7 +19,7 @@ class Z {
|
|
|
19
19
|
return this.configuration.middleware || [];
|
|
20
20
|
}
|
|
21
21
|
get queryParamsStringify() {
|
|
22
|
-
return this.configuration.queryParamsStringify ||
|
|
22
|
+
return this.configuration.queryParamsStringify || Y;
|
|
23
23
|
}
|
|
24
24
|
get username() {
|
|
25
25
|
return this.configuration.username;
|
|
@@ -28,14 +28,14 @@ class Z {
|
|
|
28
28
|
return this.configuration.password;
|
|
29
29
|
}
|
|
30
30
|
get apiKey() {
|
|
31
|
-
const
|
|
32
|
-
if (
|
|
33
|
-
return typeof
|
|
31
|
+
const t = this.configuration.apiKey;
|
|
32
|
+
if (t)
|
|
33
|
+
return typeof t == "function" ? t : () => t;
|
|
34
34
|
}
|
|
35
35
|
get accessToken() {
|
|
36
|
-
const
|
|
37
|
-
if (
|
|
38
|
-
return typeof
|
|
36
|
+
const t = this.configuration.accessToken;
|
|
37
|
+
if (t)
|
|
38
|
+
return typeof t == "function" ? t : async () => t;
|
|
39
39
|
}
|
|
40
40
|
get headers() {
|
|
41
41
|
return this.configuration.headers;
|
|
@@ -44,53 +44,53 @@ class Z {
|
|
|
44
44
|
return this.configuration.credentials;
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
const
|
|
48
|
-
constructor(
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
let
|
|
47
|
+
const le = new oe(), T = class T {
|
|
48
|
+
constructor(t = le) {
|
|
49
|
+
d(this, "middleware");
|
|
50
|
+
d(this, "fetchApi", async (t, i) => {
|
|
51
|
+
let n = { url: t, init: i };
|
|
52
52
|
for (const a of this.middleware)
|
|
53
|
-
a.pre && (
|
|
53
|
+
a.pre && (n = await a.pre({
|
|
54
54
|
fetch: this.fetchApi,
|
|
55
|
-
...
|
|
56
|
-
}) ||
|
|
55
|
+
...n
|
|
56
|
+
}) || n);
|
|
57
57
|
let r;
|
|
58
58
|
try {
|
|
59
|
-
r = await (this.configuration.fetchApi || fetch)(
|
|
59
|
+
r = await (this.configuration.fetchApi || fetch)(n.url, n.init);
|
|
60
60
|
} catch (a) {
|
|
61
|
-
for (const
|
|
62
|
-
|
|
61
|
+
for (const g of this.middleware)
|
|
62
|
+
g.onError && (r = await g.onError({
|
|
63
63
|
fetch: this.fetchApi,
|
|
64
|
-
url:
|
|
65
|
-
init:
|
|
64
|
+
url: n.url,
|
|
65
|
+
init: n.init,
|
|
66
66
|
error: a,
|
|
67
67
|
response: r ? r.clone() : void 0
|
|
68
68
|
}) || r);
|
|
69
69
|
if (r === void 0)
|
|
70
|
-
throw a instanceof Error ? new
|
|
70
|
+
throw a instanceof Error ? new fe(a, "The request failed and the interceptors did not return an alternative response") : a;
|
|
71
71
|
}
|
|
72
72
|
for (const a of this.middleware)
|
|
73
73
|
a.post && (r = await a.post({
|
|
74
74
|
fetch: this.fetchApi,
|
|
75
|
-
url:
|
|
76
|
-
init:
|
|
75
|
+
url: n.url,
|
|
76
|
+
init: n.init,
|
|
77
77
|
response: r.clone()
|
|
78
78
|
}) || r);
|
|
79
79
|
return r;
|
|
80
80
|
});
|
|
81
|
-
this.configuration =
|
|
81
|
+
this.configuration = t, this.middleware = t.middleware;
|
|
82
82
|
}
|
|
83
|
-
withMiddleware(...
|
|
84
|
-
const
|
|
85
|
-
return
|
|
83
|
+
withMiddleware(...t) {
|
|
84
|
+
const i = this.clone();
|
|
85
|
+
return i.middleware = i.middleware.concat(...t), i;
|
|
86
86
|
}
|
|
87
|
-
withPreMiddleware(...
|
|
88
|
-
const
|
|
89
|
-
return this.withMiddleware(...
|
|
87
|
+
withPreMiddleware(...t) {
|
|
88
|
+
const i = t.map((n) => ({ pre: n }));
|
|
89
|
+
return this.withMiddleware(...i);
|
|
90
90
|
}
|
|
91
|
-
withPostMiddleware(...
|
|
92
|
-
const
|
|
93
|
-
return this.withMiddleware(...
|
|
91
|
+
withPostMiddleware(...t) {
|
|
92
|
+
const i = t.map((n) => ({ post: n }));
|
|
93
|
+
return this.withMiddleware(...i);
|
|
94
94
|
}
|
|
95
95
|
/**
|
|
96
96
|
* Check if the given MIME is a JSON MIME.
|
|
@@ -102,153 +102,153 @@ const _ = new Z(), y = class y {
|
|
|
102
102
|
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
103
103
|
* @return True if the given MIME is JSON, false otherwise.
|
|
104
104
|
*/
|
|
105
|
-
isJsonMime(
|
|
106
|
-
return
|
|
105
|
+
isJsonMime(t) {
|
|
106
|
+
return t ? T.jsonRegex.test(t) : !1;
|
|
107
107
|
}
|
|
108
|
-
async request(
|
|
109
|
-
const { url:
|
|
108
|
+
async request(t, i) {
|
|
109
|
+
const { url: n, init: r } = await this.createFetchParams(t, i), a = await this.fetchApi(n, r);
|
|
110
110
|
if (a && a.status >= 200 && a.status < 300)
|
|
111
111
|
return a;
|
|
112
|
-
throw new
|
|
113
|
-
}
|
|
114
|
-
async createFetchParams(
|
|
115
|
-
let
|
|
116
|
-
|
|
117
|
-
const r = Object.assign({}, this.configuration.headers,
|
|
118
|
-
Object.keys(r).forEach((
|
|
119
|
-
const a = typeof
|
|
120
|
-
method:
|
|
112
|
+
throw new ce(a, "Response returned an error code");
|
|
113
|
+
}
|
|
114
|
+
async createFetchParams(t, i) {
|
|
115
|
+
let n = this.configuration.basePath + t.path;
|
|
116
|
+
t.query !== void 0 && Object.keys(t.query).length !== 0 && (n += "?" + this.configuration.queryParamsStringify(t.query));
|
|
117
|
+
const r = Object.assign({}, this.configuration.headers, t.headers);
|
|
118
|
+
Object.keys(r).forEach((A) => r[A] === void 0 ? delete r[A] : {});
|
|
119
|
+
const a = typeof i == "function" ? i : async () => i, g = {
|
|
120
|
+
method: t.method,
|
|
121
121
|
headers: r,
|
|
122
|
-
body:
|
|
122
|
+
body: t.body,
|
|
123
123
|
credentials: this.configuration.credentials
|
|
124
|
-
},
|
|
125
|
-
...
|
|
124
|
+
}, l = {
|
|
125
|
+
...g,
|
|
126
126
|
...await a({
|
|
127
|
-
init:
|
|
128
|
-
context:
|
|
127
|
+
init: g,
|
|
128
|
+
context: t
|
|
129
129
|
})
|
|
130
130
|
};
|
|
131
|
-
let
|
|
132
|
-
|
|
133
|
-
const
|
|
134
|
-
...
|
|
135
|
-
body:
|
|
131
|
+
let S;
|
|
132
|
+
ue(l.body) || l.body instanceof URLSearchParams || de(l.body) ? S = l.body : this.isJsonMime(r["Content-Type"]) ? S = JSON.stringify(l.body) : S = l.body;
|
|
133
|
+
const ne = {
|
|
134
|
+
...l,
|
|
135
|
+
body: S
|
|
136
136
|
};
|
|
137
|
-
return { url:
|
|
137
|
+
return { url: n, init: ne };
|
|
138
138
|
}
|
|
139
139
|
/**
|
|
140
140
|
* Create a shallow clone of `this` by constructing a new instance
|
|
141
141
|
* and then shallow cloning data members.
|
|
142
142
|
*/
|
|
143
143
|
clone() {
|
|
144
|
-
const
|
|
145
|
-
return
|
|
144
|
+
const t = this.constructor, i = new t(this.configuration);
|
|
145
|
+
return i.middleware = this.middleware.slice(), i;
|
|
146
146
|
}
|
|
147
147
|
};
|
|
148
|
-
|
|
149
|
-
let
|
|
150
|
-
function
|
|
148
|
+
d(T, "jsonRegex", new RegExp("^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$", "i"));
|
|
149
|
+
let u = T;
|
|
150
|
+
function de(e) {
|
|
151
151
|
return typeof Blob < "u" && e instanceof Blob;
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function ue(e) {
|
|
154
154
|
return typeof FormData < "u" && e instanceof FormData;
|
|
155
155
|
}
|
|
156
|
-
class
|
|
157
|
-
constructor(
|
|
158
|
-
super(
|
|
159
|
-
|
|
160
|
-
this.response =
|
|
156
|
+
class ce extends Error {
|
|
157
|
+
constructor(i, n) {
|
|
158
|
+
super(n);
|
|
159
|
+
d(this, "name", "ResponseError");
|
|
160
|
+
this.response = i;
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
|
-
class
|
|
164
|
-
constructor(
|
|
165
|
-
super(
|
|
166
|
-
|
|
167
|
-
this.cause =
|
|
163
|
+
class fe extends Error {
|
|
164
|
+
constructor(i, n) {
|
|
165
|
+
super(n);
|
|
166
|
+
d(this, "name", "FetchError");
|
|
167
|
+
this.cause = i;
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
|
-
class
|
|
171
|
-
constructor(
|
|
172
|
-
super(
|
|
173
|
-
|
|
174
|
-
this.field =
|
|
170
|
+
class s extends Error {
|
|
171
|
+
constructor(i, n) {
|
|
172
|
+
super(n);
|
|
173
|
+
d(this, "name", "RequiredError");
|
|
174
|
+
this.field = i;
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
|
-
const
|
|
177
|
+
const bn = {
|
|
178
178
|
csv: ",",
|
|
179
179
|
ssv: " ",
|
|
180
180
|
tsv: " ",
|
|
181
181
|
pipes: "|"
|
|
182
182
|
};
|
|
183
|
-
function
|
|
184
|
-
return Object.keys(e).map((
|
|
185
|
-
}
|
|
186
|
-
function
|
|
187
|
-
const
|
|
188
|
-
if (
|
|
189
|
-
const r =
|
|
190
|
-
return `${encodeURIComponent(
|
|
191
|
-
}
|
|
192
|
-
if (
|
|
193
|
-
const r = Array.from(
|
|
194
|
-
return
|
|
195
|
-
}
|
|
196
|
-
return
|
|
197
|
-
}
|
|
198
|
-
function
|
|
199
|
-
const
|
|
200
|
-
return
|
|
201
|
-
}
|
|
202
|
-
function
|
|
203
|
-
const
|
|
204
|
-
for (const
|
|
205
|
-
n
|
|
206
|
-
return
|
|
207
|
-
}
|
|
208
|
-
function
|
|
209
|
-
for (const
|
|
210
|
-
if (
|
|
183
|
+
function Y(e, t = "") {
|
|
184
|
+
return Object.keys(e).map((i) => Z(i, e[i], t)).filter((i) => i.length > 0).join("&");
|
|
185
|
+
}
|
|
186
|
+
function Z(e, t, i = "") {
|
|
187
|
+
const n = i + (i.length ? `[${e}]` : e);
|
|
188
|
+
if (t instanceof Array) {
|
|
189
|
+
const r = t.map((a) => encodeURIComponent(String(a))).join(`&${encodeURIComponent(n)}=`);
|
|
190
|
+
return `${encodeURIComponent(n)}=${r}`;
|
|
191
|
+
}
|
|
192
|
+
if (t instanceof Set) {
|
|
193
|
+
const r = Array.from(t);
|
|
194
|
+
return Z(e, r, i);
|
|
195
|
+
}
|
|
196
|
+
return t instanceof Date ? `${encodeURIComponent(n)}=${encodeURIComponent(t.toISOString())}` : t instanceof Object ? Y(t, n) : `${encodeURIComponent(n)}=${encodeURIComponent(String(t))}`;
|
|
197
|
+
}
|
|
198
|
+
function Pn(e, t) {
|
|
199
|
+
const i = e[t];
|
|
200
|
+
return i != null;
|
|
201
|
+
}
|
|
202
|
+
function K(e, t) {
|
|
203
|
+
const i = {};
|
|
204
|
+
for (const n of Object.keys(e))
|
|
205
|
+
i[n] = t(e[n]);
|
|
206
|
+
return i;
|
|
207
|
+
}
|
|
208
|
+
function wn(e) {
|
|
209
|
+
for (const t of e)
|
|
210
|
+
if (t.contentType === "multipart/form-data")
|
|
211
211
|
return !0;
|
|
212
212
|
return !1;
|
|
213
213
|
}
|
|
214
|
-
class
|
|
215
|
-
constructor(
|
|
216
|
-
this.raw =
|
|
214
|
+
class o {
|
|
215
|
+
constructor(t, i = (n) => n) {
|
|
216
|
+
this.raw = t, this.transformer = i;
|
|
217
217
|
}
|
|
218
218
|
async value() {
|
|
219
219
|
return this.transformer(await this.raw.json());
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
|
-
class
|
|
223
|
-
constructor(
|
|
224
|
-
this.raw =
|
|
222
|
+
class kn {
|
|
223
|
+
constructor(t) {
|
|
224
|
+
this.raw = t;
|
|
225
225
|
}
|
|
226
226
|
async value() {
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
|
-
class
|
|
230
|
-
constructor(
|
|
231
|
-
this.raw =
|
|
229
|
+
class Jn {
|
|
230
|
+
constructor(t) {
|
|
231
|
+
this.raw = t;
|
|
232
232
|
}
|
|
233
233
|
async value() {
|
|
234
234
|
return await this.raw.blob();
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
|
-
class
|
|
238
|
-
constructor(
|
|
239
|
-
this.raw =
|
|
237
|
+
class In {
|
|
238
|
+
constructor(t) {
|
|
239
|
+
this.raw = t;
|
|
240
240
|
}
|
|
241
241
|
async value() {
|
|
242
242
|
return await this.raw.text();
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
|
-
function
|
|
245
|
+
function Bn(e) {
|
|
246
246
|
return !0;
|
|
247
247
|
}
|
|
248
|
-
function
|
|
249
|
-
return
|
|
248
|
+
function k(e) {
|
|
249
|
+
return me(e);
|
|
250
250
|
}
|
|
251
|
-
function
|
|
251
|
+
function me(e, t) {
|
|
252
252
|
return e == null ? e : {
|
|
253
253
|
flyOuts: e.flyOuts == null ? void 0 : e.flyOuts,
|
|
254
254
|
groundOuts: e.groundOuts == null ? void 0 : e.groundOuts,
|
|
@@ -285,10 +285,10 @@ function ne(e, i) {
|
|
|
285
285
|
lineOuts: e.lineOuts == null ? void 0 : e.lineOuts
|
|
286
286
|
};
|
|
287
287
|
}
|
|
288
|
-
function
|
|
289
|
-
return
|
|
288
|
+
function J(e) {
|
|
289
|
+
return pe(e, !1);
|
|
290
290
|
}
|
|
291
|
-
function
|
|
291
|
+
function pe(e, t = !1) {
|
|
292
292
|
return e == null ? e : {
|
|
293
293
|
flyOuts: e.flyOuts,
|
|
294
294
|
groundOuts: e.groundOuts,
|
|
@@ -325,57 +325,57 @@ function re(e, i = !1) {
|
|
|
325
325
|
lineOuts: e.lineOuts
|
|
326
326
|
};
|
|
327
327
|
}
|
|
328
|
-
function
|
|
328
|
+
function Rn(e) {
|
|
329
329
|
return !0;
|
|
330
330
|
}
|
|
331
|
-
function
|
|
332
|
-
return
|
|
331
|
+
function ge(e) {
|
|
332
|
+
return Se(e);
|
|
333
333
|
}
|
|
334
|
-
function
|
|
334
|
+
function Se(e, t) {
|
|
335
335
|
return e == null ? e : {
|
|
336
336
|
id: e.id == null ? void 0 : e.id,
|
|
337
337
|
fullName: e.fullName == null ? void 0 : e.fullName,
|
|
338
338
|
link: e.link == null ? void 0 : e.link
|
|
339
339
|
};
|
|
340
340
|
}
|
|
341
|
-
function
|
|
342
|
-
return
|
|
341
|
+
function he(e) {
|
|
342
|
+
return ye(e, !1);
|
|
343
343
|
}
|
|
344
|
-
function
|
|
344
|
+
function ye(e, t = !1) {
|
|
345
345
|
return e == null ? e : {
|
|
346
346
|
id: e.id,
|
|
347
347
|
fullName: e.fullName,
|
|
348
348
|
link: e.link
|
|
349
349
|
};
|
|
350
350
|
}
|
|
351
|
-
function
|
|
351
|
+
function Fn(e) {
|
|
352
352
|
return !0;
|
|
353
353
|
}
|
|
354
|
-
function
|
|
355
|
-
return
|
|
354
|
+
function Oe(e) {
|
|
355
|
+
return Ne(e);
|
|
356
356
|
}
|
|
357
|
-
function
|
|
357
|
+
function Ne(e, t) {
|
|
358
358
|
return e == null ? e : {
|
|
359
|
-
official: e.official == null ? void 0 :
|
|
359
|
+
official: e.official == null ? void 0 : ge(e.official),
|
|
360
360
|
officialType: e.officialType == null ? void 0 : e.officialType
|
|
361
361
|
};
|
|
362
362
|
}
|
|
363
|
-
function
|
|
364
|
-
return
|
|
363
|
+
function Te(e) {
|
|
364
|
+
return De(e, !1);
|
|
365
365
|
}
|
|
366
|
-
function
|
|
366
|
+
function De(e, t = !1) {
|
|
367
367
|
return e == null ? e : {
|
|
368
|
-
official:
|
|
368
|
+
official: he(e.official),
|
|
369
369
|
officialType: e.officialType
|
|
370
370
|
};
|
|
371
371
|
}
|
|
372
|
-
function
|
|
372
|
+
function Gn(e) {
|
|
373
373
|
return !0;
|
|
374
374
|
}
|
|
375
|
-
function
|
|
376
|
-
return
|
|
375
|
+
function I(e) {
|
|
376
|
+
return be(e);
|
|
377
377
|
}
|
|
378
|
-
function
|
|
378
|
+
function be(e, t) {
|
|
379
379
|
return e == null ? e : {
|
|
380
380
|
caughtStealing: e.caughtStealing == null ? void 0 : e.caughtStealing,
|
|
381
381
|
stolenBases: e.stolenBases == null ? void 0 : e.stolenBases,
|
|
@@ -388,10 +388,10 @@ function me(e, i) {
|
|
|
388
388
|
pickoffs: e.pickoffs == null ? void 0 : e.pickoffs
|
|
389
389
|
};
|
|
390
390
|
}
|
|
391
|
-
function
|
|
392
|
-
return
|
|
391
|
+
function B(e) {
|
|
392
|
+
return Pe(e, !1);
|
|
393
393
|
}
|
|
394
|
-
function
|
|
394
|
+
function Pe(e, t = !1) {
|
|
395
395
|
return e == null ? e : {
|
|
396
396
|
caughtStealing: e.caughtStealing,
|
|
397
397
|
stolenBases: e.stolenBases,
|
|
@@ -404,13 +404,13 @@ function ge(e, i = !1) {
|
|
|
404
404
|
pickoffs: e.pickoffs
|
|
405
405
|
};
|
|
406
406
|
}
|
|
407
|
-
function
|
|
407
|
+
function Ln(e) {
|
|
408
408
|
return !0;
|
|
409
409
|
}
|
|
410
|
-
function
|
|
411
|
-
return
|
|
410
|
+
function R(e) {
|
|
411
|
+
return we(e);
|
|
412
412
|
}
|
|
413
|
-
function
|
|
413
|
+
function we(e, t) {
|
|
414
414
|
return e == null ? e : {
|
|
415
415
|
flyOuts: e.flyOuts == null ? void 0 : e.flyOuts,
|
|
416
416
|
groundOuts: e.groundOuts == null ? void 0 : e.groundOuts,
|
|
@@ -462,10 +462,10 @@ function pe(e, i) {
|
|
|
462
462
|
lineOuts: e.lineOuts == null ? void 0 : e.lineOuts
|
|
463
463
|
};
|
|
464
464
|
}
|
|
465
|
-
function
|
|
466
|
-
return
|
|
465
|
+
function F(e) {
|
|
466
|
+
return ke(e, !1);
|
|
467
467
|
}
|
|
468
|
-
function
|
|
468
|
+
function ke(e, t = !1) {
|
|
469
469
|
return e == null ? e : {
|
|
470
470
|
flyOuts: e.flyOuts,
|
|
471
471
|
groundOuts: e.groundOuts,
|
|
@@ -517,36 +517,36 @@ function Se(e, i = !1) {
|
|
|
517
517
|
lineOuts: e.lineOuts
|
|
518
518
|
};
|
|
519
519
|
}
|
|
520
|
-
function
|
|
520
|
+
function En(e) {
|
|
521
521
|
return !(!("batting" in e) || e.batting === void 0 || !("pitching" in e) || e.pitching === void 0 || !("fielding" in e) || e.fielding === void 0);
|
|
522
522
|
}
|
|
523
|
-
function
|
|
524
|
-
return
|
|
523
|
+
function Je(e) {
|
|
524
|
+
return Ie(e);
|
|
525
525
|
}
|
|
526
|
-
function
|
|
526
|
+
function Ie(e, t) {
|
|
527
527
|
return e == null ? e : {
|
|
528
|
-
batting:
|
|
529
|
-
pitching:
|
|
530
|
-
fielding:
|
|
528
|
+
batting: k(e.batting),
|
|
529
|
+
pitching: R(e.pitching),
|
|
530
|
+
fielding: I(e.fielding)
|
|
531
531
|
};
|
|
532
532
|
}
|
|
533
|
-
function
|
|
534
|
-
return
|
|
533
|
+
function Be(e) {
|
|
534
|
+
return Re(e, !1);
|
|
535
535
|
}
|
|
536
|
-
function
|
|
536
|
+
function Re(e, t = !1) {
|
|
537
537
|
return e == null ? e : {
|
|
538
|
-
batting:
|
|
539
|
-
pitching:
|
|
540
|
-
fielding:
|
|
538
|
+
batting: J(e.batting),
|
|
539
|
+
pitching: F(e.pitching),
|
|
540
|
+
fielding: B(e.fielding)
|
|
541
541
|
};
|
|
542
542
|
}
|
|
543
|
-
function
|
|
543
|
+
function Cn(e) {
|
|
544
544
|
return !0;
|
|
545
545
|
}
|
|
546
|
-
function
|
|
547
|
-
return
|
|
546
|
+
function Fe(e) {
|
|
547
|
+
return Ge(e);
|
|
548
548
|
}
|
|
549
|
-
function
|
|
549
|
+
function Ge(e, t) {
|
|
550
550
|
return e == null ? e : {
|
|
551
551
|
isCurrentBatter: e.isCurrentBatter == null ? void 0 : e.isCurrentBatter,
|
|
552
552
|
isCurrentPitcher: e.isCurrentPitcher == null ? void 0 : e.isCurrentPitcher,
|
|
@@ -554,10 +554,10 @@ function Ne(e, i) {
|
|
|
554
554
|
isSubstitute: e.isSubstitute == null ? void 0 : e.isSubstitute
|
|
555
555
|
};
|
|
556
556
|
}
|
|
557
|
-
function
|
|
558
|
-
return
|
|
557
|
+
function Le(e) {
|
|
558
|
+
return Ee(e, !1);
|
|
559
559
|
}
|
|
560
|
-
function
|
|
560
|
+
function Ee(e, t = !1) {
|
|
561
561
|
return e == null ? e : {
|
|
562
562
|
isCurrentBatter: e.isCurrentBatter,
|
|
563
563
|
isCurrentPitcher: e.isCurrentPitcher,
|
|
@@ -565,13 +565,13 @@ function we(e, i = !1) {
|
|
|
565
565
|
isSubstitute: e.isSubstitute
|
|
566
566
|
};
|
|
567
567
|
}
|
|
568
|
-
function
|
|
568
|
+
function An(e) {
|
|
569
569
|
return !0;
|
|
570
570
|
}
|
|
571
|
-
function
|
|
572
|
-
return
|
|
571
|
+
function G(e) {
|
|
572
|
+
return Ce(e);
|
|
573
573
|
}
|
|
574
|
-
function
|
|
574
|
+
function Ce(e, t) {
|
|
575
575
|
return e == null ? e : {
|
|
576
576
|
code: e.code == null ? void 0 : e.code,
|
|
577
577
|
name: e.name == null ? void 0 : e.name,
|
|
@@ -579,10 +579,10 @@ function ke(e, i) {
|
|
|
579
579
|
abbreviation: e.abbreviation == null ? void 0 : e.abbreviation
|
|
580
580
|
};
|
|
581
581
|
}
|
|
582
|
-
function
|
|
583
|
-
return
|
|
582
|
+
function L(e) {
|
|
583
|
+
return Ae(e, !1);
|
|
584
584
|
}
|
|
585
|
-
function
|
|
585
|
+
function Ae(e, t = !1) {
|
|
586
586
|
return e == null ? e : {
|
|
587
587
|
code: e.code,
|
|
588
588
|
name: e.name,
|
|
@@ -590,13 +590,13 @@ function Be(e, i = !1) {
|
|
|
590
590
|
abbreviation: e.abbreviation
|
|
591
591
|
};
|
|
592
592
|
}
|
|
593
|
-
function
|
|
593
|
+
function Hn(e) {
|
|
594
594
|
return !(!("id" in e) || e.id === void 0 || !("fullName" in e) || e.fullName === void 0 || !("link" in e) || e.link === void 0 || !("boxscoreName" in e) || e.boxscoreName === void 0);
|
|
595
595
|
}
|
|
596
|
-
function
|
|
597
|
-
return
|
|
596
|
+
function He(e) {
|
|
597
|
+
return We(e);
|
|
598
598
|
}
|
|
599
|
-
function
|
|
599
|
+
function We(e, t) {
|
|
600
600
|
return e == null ? e : {
|
|
601
601
|
id: e.id,
|
|
602
602
|
fullName: e.fullName,
|
|
@@ -604,10 +604,10 @@ function Ge(e, i) {
|
|
|
604
604
|
boxscoreName: e.boxscoreName
|
|
605
605
|
};
|
|
606
606
|
}
|
|
607
|
-
function
|
|
608
|
-
return
|
|
607
|
+
function xe(e) {
|
|
608
|
+
return qe(e, !1);
|
|
609
609
|
}
|
|
610
|
-
function
|
|
610
|
+
function qe(e, t = !1) {
|
|
611
611
|
return e == null ? e : {
|
|
612
612
|
id: e.id,
|
|
613
613
|
fullName: e.fullName,
|
|
@@ -615,13 +615,13 @@ function Re(e, i = !1) {
|
|
|
615
615
|
boxscoreName: e.boxscoreName
|
|
616
616
|
};
|
|
617
617
|
}
|
|
618
|
-
function
|
|
618
|
+
function Wn(e) {
|
|
619
619
|
return !0;
|
|
620
620
|
}
|
|
621
|
-
function
|
|
622
|
-
return
|
|
621
|
+
function ve(e) {
|
|
622
|
+
return Ue(e);
|
|
623
623
|
}
|
|
624
|
-
function
|
|
624
|
+
function Ue(e, t) {
|
|
625
625
|
return e == null ? e : {
|
|
626
626
|
code: e.code == null ? void 0 : e.code,
|
|
627
627
|
name: e.name == null ? void 0 : e.name,
|
|
@@ -629,10 +629,10 @@ function Ee(e, i) {
|
|
|
629
629
|
abbreviation: e.abbreviation == null ? void 0 : e.abbreviation
|
|
630
630
|
};
|
|
631
631
|
}
|
|
632
|
-
function
|
|
633
|
-
return
|
|
632
|
+
function Me(e) {
|
|
633
|
+
return Ve(e, !1);
|
|
634
634
|
}
|
|
635
|
-
function
|
|
635
|
+
function Ve(e, t = !1) {
|
|
636
636
|
return e == null ? e : {
|
|
637
637
|
code: e.code,
|
|
638
638
|
name: e.name,
|
|
@@ -640,100 +640,100 @@ function Ae(e, i = !1) {
|
|
|
640
640
|
abbreviation: e.abbreviation
|
|
641
641
|
};
|
|
642
642
|
}
|
|
643
|
-
function
|
|
643
|
+
function xn(e) {
|
|
644
644
|
return !0;
|
|
645
645
|
}
|
|
646
|
-
function
|
|
647
|
-
return
|
|
646
|
+
function $e(e) {
|
|
647
|
+
return Ye(e);
|
|
648
648
|
}
|
|
649
|
-
function
|
|
649
|
+
function Ye(e, t) {
|
|
650
650
|
return e == null ? e : {
|
|
651
651
|
code: e.code == null ? void 0 : e.code,
|
|
652
652
|
description: e.description == null ? void 0 : e.description
|
|
653
653
|
};
|
|
654
654
|
}
|
|
655
|
-
function
|
|
656
|
-
return
|
|
655
|
+
function Ze(e) {
|
|
656
|
+
return Ke(e, !1);
|
|
657
657
|
}
|
|
658
|
-
function
|
|
658
|
+
function Ke(e, t = !1) {
|
|
659
659
|
return e == null ? e : {
|
|
660
660
|
code: e.code,
|
|
661
661
|
description: e.description
|
|
662
662
|
};
|
|
663
663
|
}
|
|
664
|
-
function
|
|
664
|
+
function qn(e) {
|
|
665
665
|
return !(!("batting" in e) || e.batting === void 0 || !("pitching" in e) || e.pitching === void 0 || !("fielding" in e) || e.fielding === void 0);
|
|
666
666
|
}
|
|
667
|
-
function
|
|
668
|
-
return
|
|
667
|
+
function ze(e) {
|
|
668
|
+
return Qe(e);
|
|
669
669
|
}
|
|
670
|
-
function
|
|
670
|
+
function Qe(e, t) {
|
|
671
671
|
return e == null ? e : {
|
|
672
|
-
batting:
|
|
673
|
-
pitching:
|
|
674
|
-
fielding:
|
|
672
|
+
batting: k(e.batting),
|
|
673
|
+
pitching: R(e.pitching),
|
|
674
|
+
fielding: I(e.fielding)
|
|
675
675
|
};
|
|
676
676
|
}
|
|
677
|
-
function
|
|
678
|
-
return
|
|
677
|
+
function Xe(e) {
|
|
678
|
+
return _e(e, !1);
|
|
679
679
|
}
|
|
680
|
-
function
|
|
680
|
+
function _e(e, t = !1) {
|
|
681
681
|
return e == null ? e : {
|
|
682
|
-
batting:
|
|
683
|
-
pitching:
|
|
684
|
-
fielding:
|
|
682
|
+
batting: J(e.batting),
|
|
683
|
+
pitching: F(e.pitching),
|
|
684
|
+
fielding: B(e.fielding)
|
|
685
685
|
};
|
|
686
686
|
}
|
|
687
|
-
function
|
|
687
|
+
function vn(e) {
|
|
688
688
|
return !(!("person" in e) || e.person === void 0 || !("position" in e) || e.position === void 0 || !("stats" in e) || e.stats === void 0 || !("seasonStats" in e) || e.seasonStats === void 0);
|
|
689
689
|
}
|
|
690
|
-
function
|
|
691
|
-
return
|
|
690
|
+
function je(e) {
|
|
691
|
+
return et(e);
|
|
692
692
|
}
|
|
693
|
-
function
|
|
693
|
+
function et(e, t) {
|
|
694
694
|
return e == null ? e : {
|
|
695
|
-
person:
|
|
695
|
+
person: He(e.person),
|
|
696
696
|
jerseyNumber: e.jerseyNumber == null ? void 0 : e.jerseyNumber,
|
|
697
|
-
position:
|
|
698
|
-
status: e.status == null ? void 0 :
|
|
697
|
+
position: ve(e.position),
|
|
698
|
+
status: e.status == null ? void 0 : $e(e.status),
|
|
699
699
|
parentTeamId: e.parentTeamId == null ? void 0 : e.parentTeamId,
|
|
700
700
|
battingOrder: e.battingOrder == null ? void 0 : e.battingOrder,
|
|
701
|
-
stats:
|
|
702
|
-
seasonStats:
|
|
703
|
-
gameStatus: e.gameStatus == null ? void 0 :
|
|
704
|
-
allPositions: e.allPositions == null ? void 0 : e.allPositions.map(
|
|
701
|
+
stats: ze(e.stats),
|
|
702
|
+
seasonStats: Je(e.seasonStats),
|
|
703
|
+
gameStatus: e.gameStatus == null ? void 0 : Fe(e.gameStatus),
|
|
704
|
+
allPositions: e.allPositions == null ? void 0 : e.allPositions.map(G),
|
|
705
705
|
type: e.type == null ? void 0 : e.type,
|
|
706
706
|
gameScore: e.gameScore == null ? void 0 : e.gameScore,
|
|
707
707
|
hittingGameScore: e.hittingGameScore == null ? void 0 : e.hittingGameScore
|
|
708
708
|
};
|
|
709
709
|
}
|
|
710
|
-
function
|
|
711
|
-
return
|
|
710
|
+
function tt(e) {
|
|
711
|
+
return it(e, !1);
|
|
712
712
|
}
|
|
713
|
-
function
|
|
713
|
+
function it(e, t = !1) {
|
|
714
714
|
return e == null ? e : {
|
|
715
|
-
person:
|
|
715
|
+
person: xe(e.person),
|
|
716
716
|
jerseyNumber: e.jerseyNumber,
|
|
717
|
-
position:
|
|
718
|
-
status:
|
|
717
|
+
position: Me(e.position),
|
|
718
|
+
status: Ze(e.status),
|
|
719
719
|
parentTeamId: e.parentTeamId,
|
|
720
720
|
battingOrder: e.battingOrder,
|
|
721
|
-
stats:
|
|
722
|
-
seasonStats:
|
|
723
|
-
gameStatus:
|
|
724
|
-
allPositions: e.allPositions == null ? void 0 : e.allPositions.map(
|
|
721
|
+
stats: Xe(e.stats),
|
|
722
|
+
seasonStats: Be(e.seasonStats),
|
|
723
|
+
gameStatus: Le(e.gameStatus),
|
|
724
|
+
allPositions: e.allPositions == null ? void 0 : e.allPositions.map(L),
|
|
725
725
|
type: e.type,
|
|
726
726
|
gameScore: e.gameScore,
|
|
727
727
|
hittingGameScore: e.hittingGameScore
|
|
728
728
|
};
|
|
729
729
|
}
|
|
730
|
-
function
|
|
730
|
+
function Un(e) {
|
|
731
731
|
return !0;
|
|
732
732
|
}
|
|
733
|
-
function
|
|
734
|
-
return
|
|
733
|
+
function nt(e) {
|
|
734
|
+
return rt(e);
|
|
735
735
|
}
|
|
736
|
-
function
|
|
736
|
+
function rt(e, t) {
|
|
737
737
|
return e == null ? e : {
|
|
738
738
|
seasonId: e.seasonId == null ? void 0 : e.seasonId,
|
|
739
739
|
preSeasonStartDate: e.preSeasonStartDate == null ? void 0 : e.preSeasonStartDate,
|
|
@@ -741,16 +741,26 @@ function Xe(e, i) {
|
|
|
741
741
|
seasonStartDate: e.seasonStartDate == null ? void 0 : e.seasonStartDate,
|
|
742
742
|
springStartDate: e.springStartDate == null ? void 0 : e.springStartDate,
|
|
743
743
|
springEndDate: e.springEndDate == null ? void 0 : e.springEndDate,
|
|
744
|
+
regularSeasonStartDate: e.regularSeasonStartDate == null ? void 0 : e.regularSeasonStartDate,
|
|
745
|
+
lastDate1stHalf: e.lastDate1stHalf == null ? void 0 : e.lastDate1stHalf,
|
|
746
|
+
allStarDate: e.allStarDate == null ? void 0 : e.allStarDate,
|
|
747
|
+
firstDate2ndHalf: e.firstDate2ndHalf == null ? void 0 : e.firstDate2ndHalf,
|
|
748
|
+
regularSeasonEndDate: e.regularSeasonEndDate == null ? void 0 : e.regularSeasonEndDate,
|
|
749
|
+
postSeasonStartDate: e.postSeasonStartDate == null ? void 0 : e.postSeasonStartDate,
|
|
750
|
+
postSeasonEndDate: e.postSeasonEndDate == null ? void 0 : e.postSeasonEndDate,
|
|
751
|
+
seasonEndDate: e.seasonEndDate == null ? void 0 : e.seasonEndDate,
|
|
744
752
|
offseasonStartDate: e.offseasonStartDate == null ? void 0 : e.offseasonStartDate,
|
|
745
|
-
|
|
753
|
+
offSeasonEndDate: e.offSeasonEndDate == null ? void 0 : e.offSeasonEndDate,
|
|
754
|
+
qualifierPlateAppearances: e.qualifierPlateAppearances == null ? void 0 : e.qualifierPlateAppearances,
|
|
755
|
+
qualifierOutsPitched: e.qualifierOutsPitched == null ? void 0 : e.qualifierOutsPitched,
|
|
746
756
|
seasonLevelGamedayType: e.seasonLevelGamedayType == null ? void 0 : e.seasonLevelGamedayType,
|
|
747
757
|
gameLevelGamedayType: e.gameLevelGamedayType == null ? void 0 : e.gameLevelGamedayType
|
|
748
758
|
};
|
|
749
759
|
}
|
|
750
|
-
function
|
|
751
|
-
return
|
|
760
|
+
function at(e) {
|
|
761
|
+
return st(e, !1);
|
|
752
762
|
}
|
|
753
|
-
function
|
|
763
|
+
function st(e, t = !1) {
|
|
754
764
|
return e == null ? e : {
|
|
755
765
|
seasonId: e.seasonId,
|
|
756
766
|
preSeasonStartDate: e.preSeasonStartDate,
|
|
@@ -758,22 +768,32 @@ function _e(e, i = !1) {
|
|
|
758
768
|
seasonStartDate: e.seasonStartDate,
|
|
759
769
|
springStartDate: e.springStartDate,
|
|
760
770
|
springEndDate: e.springEndDate,
|
|
771
|
+
regularSeasonStartDate: e.regularSeasonStartDate,
|
|
772
|
+
lastDate1stHalf: e.lastDate1stHalf,
|
|
773
|
+
allStarDate: e.allStarDate,
|
|
774
|
+
firstDate2ndHalf: e.firstDate2ndHalf,
|
|
775
|
+
regularSeasonEndDate: e.regularSeasonEndDate,
|
|
776
|
+
postSeasonStartDate: e.postSeasonStartDate,
|
|
777
|
+
postSeasonEndDate: e.postSeasonEndDate,
|
|
778
|
+
seasonEndDate: e.seasonEndDate,
|
|
761
779
|
offseasonStartDate: e.offseasonStartDate,
|
|
762
|
-
|
|
780
|
+
offSeasonEndDate: e.offSeasonEndDate,
|
|
781
|
+
qualifierPlateAppearances: e.qualifierPlateAppearances,
|
|
782
|
+
qualifierOutsPitched: e.qualifierOutsPitched,
|
|
763
783
|
seasonLevelGamedayType: e.seasonLevelGamedayType,
|
|
764
784
|
gameLevelGamedayType: e.gameLevelGamedayType
|
|
765
785
|
};
|
|
766
786
|
}
|
|
767
|
-
function
|
|
768
|
-
return !(!("id" in e) || e.id === void 0
|
|
787
|
+
function Mn(e) {
|
|
788
|
+
return !(!("id" in e) || e.id === void 0);
|
|
769
789
|
}
|
|
770
|
-
function
|
|
771
|
-
return
|
|
790
|
+
function m(e) {
|
|
791
|
+
return ot(e);
|
|
772
792
|
}
|
|
773
|
-
function
|
|
793
|
+
function ot(e, t) {
|
|
774
794
|
return e == null ? e : {
|
|
795
|
+
name: e.name == null ? void 0 : e.name,
|
|
775
796
|
id: e.id,
|
|
776
|
-
name: e.name,
|
|
777
797
|
link: e.link == null ? void 0 : e.link,
|
|
778
798
|
abbreviation: e.abbreviation == null ? void 0 : e.abbreviation,
|
|
779
799
|
nameShort: e.nameShort == null ? void 0 : e.nameShort,
|
|
@@ -781,7 +801,10 @@ function je(e, i) {
|
|
|
781
801
|
hasWildCard: e.hasWildCard == null ? void 0 : e.hasWildCard,
|
|
782
802
|
hasSplitSeason: e.hasSplitSeason == null ? void 0 : e.hasSplitSeason,
|
|
783
803
|
hasPlayoffPoints: e.hasPlayoffPoints == null ? void 0 : e.hasPlayoffPoints,
|
|
784
|
-
|
|
804
|
+
numGames: e.numGames == null ? void 0 : e.numGames,
|
|
805
|
+
numTeams: e.numTeams == null ? void 0 : e.numTeams,
|
|
806
|
+
numWildcardTeams: e.numWildcardTeams == null ? void 0 : e.numWildcardTeams,
|
|
807
|
+
seasonDateInfo: e.seasonDateInfo == null ? void 0 : nt(e.seasonDateInfo),
|
|
785
808
|
season: e.season == null ? void 0 : e.season,
|
|
786
809
|
orgCode: e.orgCode == null ? void 0 : e.orgCode,
|
|
787
810
|
conferencesInUse: e.conferencesInUse == null ? void 0 : e.conferencesInUse,
|
|
@@ -790,13 +813,13 @@ function je(e, i) {
|
|
|
790
813
|
active: e.active == null ? void 0 : e.active
|
|
791
814
|
};
|
|
792
815
|
}
|
|
793
|
-
function
|
|
794
|
-
return
|
|
816
|
+
function p(e) {
|
|
817
|
+
return lt(e, !1);
|
|
795
818
|
}
|
|
796
|
-
function
|
|
819
|
+
function lt(e, t = !1) {
|
|
797
820
|
return e == null ? e : {
|
|
798
|
-
id: e.id,
|
|
799
821
|
name: e.name,
|
|
822
|
+
id: e.id,
|
|
800
823
|
link: e.link,
|
|
801
824
|
abbreviation: e.abbreviation,
|
|
802
825
|
nameShort: e.nameShort,
|
|
@@ -804,7 +827,10 @@ function ei(e, i = !1) {
|
|
|
804
827
|
hasWildCard: e.hasWildCard,
|
|
805
828
|
hasSplitSeason: e.hasSplitSeason,
|
|
806
829
|
hasPlayoffPoints: e.hasPlayoffPoints,
|
|
807
|
-
|
|
830
|
+
numGames: e.numGames,
|
|
831
|
+
numTeams: e.numTeams,
|
|
832
|
+
numWildcardTeams: e.numWildcardTeams,
|
|
833
|
+
seasonDateInfo: at(e.seasonDateInfo),
|
|
808
834
|
season: e.season,
|
|
809
835
|
orgCode: e.orgCode,
|
|
810
836
|
conferencesInUse: e.conferencesInUse,
|
|
@@ -813,13 +839,13 @@ function ei(e, i = !1) {
|
|
|
813
839
|
active: e.active
|
|
814
840
|
};
|
|
815
841
|
}
|
|
816
|
-
function
|
|
842
|
+
function Vn(e) {
|
|
817
843
|
return !(!("id" in e) || e.id === void 0);
|
|
818
844
|
}
|
|
819
|
-
function
|
|
820
|
-
return
|
|
845
|
+
function D(e) {
|
|
846
|
+
return dt(e);
|
|
821
847
|
}
|
|
822
|
-
function
|
|
848
|
+
function dt(e, t) {
|
|
823
849
|
return e == null ? e : {
|
|
824
850
|
id: e.id,
|
|
825
851
|
code: e.code == null ? void 0 : e.code,
|
|
@@ -830,10 +856,10 @@ function ii(e, i) {
|
|
|
830
856
|
activeStatus: e.activeStatus == null ? void 0 : e.activeStatus
|
|
831
857
|
};
|
|
832
858
|
}
|
|
833
|
-
function
|
|
834
|
-
return
|
|
859
|
+
function b(e) {
|
|
860
|
+
return ut(e, !1);
|
|
835
861
|
}
|
|
836
|
-
function
|
|
862
|
+
function ut(e, t = !1) {
|
|
837
863
|
return e == null ? e : {
|
|
838
864
|
id: e.id,
|
|
839
865
|
code: e.code,
|
|
@@ -844,25 +870,25 @@ function ti(e, i = !1) {
|
|
|
844
870
|
activeStatus: e.activeStatus
|
|
845
871
|
};
|
|
846
872
|
}
|
|
847
|
-
function
|
|
848
|
-
return !(!("id" in e) || e.id === void 0
|
|
873
|
+
function $n(e) {
|
|
874
|
+
return !(!("id" in e) || e.id === void 0);
|
|
849
875
|
}
|
|
850
|
-
function
|
|
851
|
-
return
|
|
876
|
+
function P(e) {
|
|
877
|
+
return ct(e);
|
|
852
878
|
}
|
|
853
|
-
function
|
|
879
|
+
function ct(e, t) {
|
|
854
880
|
return e == null ? e : {
|
|
855
881
|
id: e.id,
|
|
856
|
-
name: e.name,
|
|
882
|
+
name: e.name == null ? void 0 : e.name,
|
|
857
883
|
link: e.link == null ? void 0 : e.link,
|
|
858
884
|
active: e.active == null ? void 0 : e.active,
|
|
859
885
|
season: e.season == null ? void 0 : e.season
|
|
860
886
|
};
|
|
861
887
|
}
|
|
862
|
-
function
|
|
863
|
-
return
|
|
888
|
+
function w(e) {
|
|
889
|
+
return ft(e, !1);
|
|
864
890
|
}
|
|
865
|
-
function
|
|
891
|
+
function ft(e, t = !1) {
|
|
866
892
|
return e == null ? e : {
|
|
867
893
|
id: e.id,
|
|
868
894
|
name: e.name,
|
|
@@ -871,13 +897,13 @@ function ri(e, i = !1) {
|
|
|
871
897
|
season: e.season
|
|
872
898
|
};
|
|
873
899
|
}
|
|
874
|
-
function
|
|
900
|
+
function Yn(e) {
|
|
875
901
|
return !(!("id" in e) || e.id === void 0 || !("name" in e) || e.name === void 0);
|
|
876
902
|
}
|
|
877
|
-
function
|
|
878
|
-
return
|
|
903
|
+
function E(e) {
|
|
904
|
+
return mt(e);
|
|
879
905
|
}
|
|
880
|
-
function
|
|
906
|
+
function mt(e, t) {
|
|
881
907
|
return e == null ? e : {
|
|
882
908
|
id: e.id,
|
|
883
909
|
name: e.name,
|
|
@@ -885,18 +911,18 @@ function ai(e, i) {
|
|
|
885
911
|
nameShort: e.nameShort == null ? void 0 : e.nameShort,
|
|
886
912
|
link: e.link == null ? void 0 : e.link,
|
|
887
913
|
abbreviation: e.abbreviation == null ? void 0 : e.abbreviation,
|
|
888
|
-
league: e.league == null ? void 0 :
|
|
889
|
-
sport: e.sport == null ? void 0 :
|
|
914
|
+
league: e.league == null ? void 0 : m(e.league),
|
|
915
|
+
sport: e.sport == null ? void 0 : D(e.sport),
|
|
890
916
|
hasWildcard: e.hasWildcard == null ? void 0 : e.hasWildcard,
|
|
891
917
|
sortOrder: e.sortOrder == null ? void 0 : e.sortOrder,
|
|
892
918
|
numPlayoffTeams: e.numPlayoffTeams == null ? void 0 : e.numPlayoffTeams,
|
|
893
919
|
active: e.active == null ? void 0 : e.active
|
|
894
920
|
};
|
|
895
921
|
}
|
|
896
|
-
function
|
|
897
|
-
return
|
|
922
|
+
function C(e) {
|
|
923
|
+
return pt(e, !1);
|
|
898
924
|
}
|
|
899
|
-
function
|
|
925
|
+
function pt(e, t = !1) {
|
|
900
926
|
return e == null ? e : {
|
|
901
927
|
id: e.id,
|
|
902
928
|
name: e.name,
|
|
@@ -904,41 +930,41 @@ function si(e, i = !1) {
|
|
|
904
930
|
nameShort: e.nameShort,
|
|
905
931
|
link: e.link,
|
|
906
932
|
abbreviation: e.abbreviation,
|
|
907
|
-
league:
|
|
908
|
-
sport:
|
|
933
|
+
league: p(e.league),
|
|
934
|
+
sport: b(e.sport),
|
|
909
935
|
hasWildcard: e.hasWildcard,
|
|
910
936
|
sortOrder: e.sortOrder,
|
|
911
937
|
numPlayoffTeams: e.numPlayoffTeams,
|
|
912
938
|
active: e.active
|
|
913
939
|
};
|
|
914
940
|
}
|
|
915
|
-
var
|
|
916
|
-
function
|
|
941
|
+
var gt = /* @__PURE__ */ ((e) => (e.Losing = "losses", e.Winning = "wins", e))(gt || {});
|
|
942
|
+
function Zn(e) {
|
|
917
943
|
return !0;
|
|
918
944
|
}
|
|
919
|
-
function
|
|
920
|
-
return
|
|
945
|
+
function St(e) {
|
|
946
|
+
return ht(e);
|
|
921
947
|
}
|
|
922
|
-
function
|
|
948
|
+
function ht(e, t) {
|
|
923
949
|
return e == null ? e : {
|
|
924
950
|
streakType: e.streakType == null ? void 0 : e.streakType
|
|
925
951
|
};
|
|
926
952
|
}
|
|
927
|
-
function
|
|
928
|
-
return
|
|
953
|
+
function yt(e) {
|
|
954
|
+
return Ot(e, !1);
|
|
929
955
|
}
|
|
930
|
-
function
|
|
956
|
+
function Ot(e, t = !1) {
|
|
931
957
|
return e == null ? e : {
|
|
932
958
|
streakType: e.streakType
|
|
933
959
|
};
|
|
934
960
|
}
|
|
935
|
-
function
|
|
961
|
+
function Kn(e) {
|
|
936
962
|
return !(!("wins" in e) || e.wins === void 0 || !("losses" in e) || e.losses === void 0 || !("pct" in e) || e.pct === void 0);
|
|
937
963
|
}
|
|
938
|
-
function
|
|
939
|
-
return
|
|
964
|
+
function z(e) {
|
|
965
|
+
return Nt(e);
|
|
940
966
|
}
|
|
941
|
-
function
|
|
967
|
+
function Nt(e, t) {
|
|
942
968
|
return e == null ? e : {
|
|
943
969
|
wins: e.wins,
|
|
944
970
|
losses: e.losses,
|
|
@@ -946,10 +972,10 @@ function fi(e, i) {
|
|
|
946
972
|
pct: e.pct
|
|
947
973
|
};
|
|
948
974
|
}
|
|
949
|
-
function
|
|
950
|
-
return
|
|
975
|
+
function Q(e) {
|
|
976
|
+
return Tt(e, !1);
|
|
951
977
|
}
|
|
952
|
-
function
|
|
978
|
+
function Tt(e, t = !1) {
|
|
953
979
|
return e == null ? e : {
|
|
954
980
|
wins: e.wins,
|
|
955
981
|
losses: e.losses,
|
|
@@ -957,17 +983,17 @@ function mi(e, i = !1) {
|
|
|
957
983
|
pct: e.pct
|
|
958
984
|
};
|
|
959
985
|
}
|
|
960
|
-
function
|
|
986
|
+
function zn(e) {
|
|
961
987
|
return !(!("team" in e) || e.team === void 0 || !("season" in e) || e.season === void 0 || !("streak" in e) || e.streak === void 0 || !("divisionRank" in e) || e.divisionRank === void 0 || !("leagueRank" in e) || e.leagueRank === void 0 || !("gamesBack" in e) || e.gamesBack === void 0 || !("leagueRecord" in e) || e.leagueRecord === void 0 || !("wins" in e) || e.wins === void 0 || !("losses" in e) || e.losses === void 0);
|
|
962
988
|
}
|
|
963
|
-
function
|
|
964
|
-
return
|
|
989
|
+
function X(e) {
|
|
990
|
+
return Dt(e);
|
|
965
991
|
}
|
|
966
|
-
function
|
|
992
|
+
function Dt(e, t) {
|
|
967
993
|
return e == null ? e : {
|
|
968
|
-
team:
|
|
994
|
+
team: c(e.team),
|
|
969
995
|
season: e.season,
|
|
970
|
-
streak:
|
|
996
|
+
streak: St(e.streak),
|
|
971
997
|
divisionRank: e.divisionRank,
|
|
972
998
|
leagueRank: e.leagueRank,
|
|
973
999
|
sportRank: e.sportRank == null ? void 0 : e.sportRank,
|
|
@@ -978,7 +1004,7 @@ function gi(e, i) {
|
|
|
978
1004
|
sportGamesBack: e.sportGamesBack == null ? void 0 : e.sportGamesBack,
|
|
979
1005
|
divisionGamesBack: e.divisionGamesBack == null ? void 0 : e.divisionGamesBack,
|
|
980
1006
|
conferenceGamesBack: e.conferenceGamesBack == null ? void 0 : e.conferenceGamesBack,
|
|
981
|
-
leagueRecord:
|
|
1007
|
+
leagueRecord: z(e.leagueRecord),
|
|
982
1008
|
lastUpdated: e.lastUpdated == null ? void 0 : e.lastUpdated,
|
|
983
1009
|
runsAllowed: e.runsAllowed == null ? void 0 : e.runsAllowed,
|
|
984
1010
|
runsScored: e.runsScored == null ? void 0 : e.runsScored,
|
|
@@ -999,14 +1025,14 @@ function gi(e, i) {
|
|
|
999
1025
|
winningPercentage: e.winningPercentage == null ? void 0 : e.winningPercentage
|
|
1000
1026
|
};
|
|
1001
1027
|
}
|
|
1002
|
-
function
|
|
1003
|
-
return
|
|
1028
|
+
function _(e) {
|
|
1029
|
+
return bt(e, !1);
|
|
1004
1030
|
}
|
|
1005
|
-
function
|
|
1031
|
+
function bt(e, t = !1) {
|
|
1006
1032
|
return e == null ? e : {
|
|
1007
|
-
team:
|
|
1033
|
+
team: f(e.team),
|
|
1008
1034
|
season: e.season,
|
|
1009
|
-
streak:
|
|
1035
|
+
streak: yt(e.streak),
|
|
1010
1036
|
divisionRank: e.divisionRank,
|
|
1011
1037
|
leagueRank: e.leagueRank,
|
|
1012
1038
|
sportRank: e.sportRank,
|
|
@@ -1017,7 +1043,7 @@ function pi(e, i = !1) {
|
|
|
1017
1043
|
sportGamesBack: e.sportGamesBack,
|
|
1018
1044
|
divisionGamesBack: e.divisionGamesBack,
|
|
1019
1045
|
conferenceGamesBack: e.conferenceGamesBack,
|
|
1020
|
-
leagueRecord:
|
|
1046
|
+
leagueRecord: Q(e.leagueRecord),
|
|
1021
1047
|
lastUpdated: e.lastUpdated,
|
|
1022
1048
|
runsAllowed: e.runsAllowed,
|
|
1023
1049
|
runsScored: e.runsScored,
|
|
@@ -1038,269 +1064,309 @@ function pi(e, i = !1) {
|
|
|
1038
1064
|
winningPercentage: e.winningPercentage
|
|
1039
1065
|
};
|
|
1040
1066
|
}
|
|
1041
|
-
function
|
|
1067
|
+
function Qn(e) {
|
|
1042
1068
|
return !(!("id" in e) || e.id === void 0 || !("name" in e) || e.name === void 0);
|
|
1043
1069
|
}
|
|
1044
|
-
function
|
|
1045
|
-
return
|
|
1070
|
+
function c(e) {
|
|
1071
|
+
return Pt(e);
|
|
1046
1072
|
}
|
|
1047
|
-
function
|
|
1073
|
+
function Pt(e, t) {
|
|
1048
1074
|
return e == null ? e : {
|
|
1049
1075
|
id: e.id,
|
|
1050
1076
|
name: e.name,
|
|
1051
1077
|
link: e.link == null ? void 0 : e.link,
|
|
1052
1078
|
allStarStatus: e.allStarStatus == null ? void 0 : e.allStarStatus,
|
|
1053
1079
|
season: e.season == null ? void 0 : e.season,
|
|
1054
|
-
venue: e.venue == null ? void 0 :
|
|
1055
|
-
springVenue: e.springVenue == null ? void 0 :
|
|
1080
|
+
venue: e.venue == null ? void 0 : P(e.venue),
|
|
1081
|
+
springVenue: e.springVenue == null ? void 0 : P(e.springVenue),
|
|
1056
1082
|
teamCode: e.teamCode == null ? void 0 : e.teamCode,
|
|
1057
1083
|
fileCode: e.fileCode == null ? void 0 : e.fileCode,
|
|
1058
1084
|
abbreviation: e.abbreviation == null ? void 0 : e.abbreviation,
|
|
1059
1085
|
teamName: e.teamName == null ? void 0 : e.teamName,
|
|
1060
1086
|
locationName: e.locationName == null ? void 0 : e.locationName,
|
|
1061
1087
|
firstYearOfPlay: e.firstYearOfPlay == null ? void 0 : e.firstYearOfPlay,
|
|
1062
|
-
league: e.league == null ? void 0 :
|
|
1063
|
-
springLeague: e.springLeague == null ? void 0 :
|
|
1064
|
-
division: e.division == null ? void 0 :
|
|
1065
|
-
sport: e.sport == null ? void 0 :
|
|
1066
|
-
record: e.record == null ? void 0 :
|
|
1088
|
+
league: e.league == null ? void 0 : m(e.league),
|
|
1089
|
+
springLeague: e.springLeague == null ? void 0 : m(e.springLeague),
|
|
1090
|
+
division: e.division == null ? void 0 : E(e.division),
|
|
1091
|
+
sport: e.sport == null ? void 0 : D(e.sport),
|
|
1092
|
+
record: e.record == null ? void 0 : X(e.record),
|
|
1067
1093
|
shortName: e.shortName == null ? void 0 : e.shortName,
|
|
1068
1094
|
franchiseName: e.franchiseName == null ? void 0 : e.franchiseName,
|
|
1069
1095
|
clubName: e.clubName == null ? void 0 : e.clubName,
|
|
1070
1096
|
active: e.active == null ? void 0 : e.active
|
|
1071
1097
|
};
|
|
1072
1098
|
}
|
|
1073
|
-
function
|
|
1074
|
-
return
|
|
1099
|
+
function f(e) {
|
|
1100
|
+
return wt(e, !1);
|
|
1075
1101
|
}
|
|
1076
|
-
function
|
|
1102
|
+
function wt(e, t = !1) {
|
|
1077
1103
|
return e == null ? e : {
|
|
1078
1104
|
id: e.id,
|
|
1079
1105
|
name: e.name,
|
|
1080
1106
|
link: e.link,
|
|
1081
1107
|
allStarStatus: e.allStarStatus,
|
|
1082
1108
|
season: e.season,
|
|
1083
|
-
venue:
|
|
1084
|
-
springVenue:
|
|
1109
|
+
venue: w(e.venue),
|
|
1110
|
+
springVenue: w(e.springVenue),
|
|
1085
1111
|
teamCode: e.teamCode,
|
|
1086
1112
|
fileCode: e.fileCode,
|
|
1087
1113
|
abbreviation: e.abbreviation,
|
|
1088
1114
|
teamName: e.teamName,
|
|
1089
1115
|
locationName: e.locationName,
|
|
1090
1116
|
firstYearOfPlay: e.firstYearOfPlay,
|
|
1091
|
-
league:
|
|
1092
|
-
springLeague:
|
|
1093
|
-
division:
|
|
1094
|
-
sport:
|
|
1095
|
-
record:
|
|
1117
|
+
league: p(e.league),
|
|
1118
|
+
springLeague: p(e.springLeague),
|
|
1119
|
+
division: C(e.division),
|
|
1120
|
+
sport: b(e.sport),
|
|
1121
|
+
record: _(e.record),
|
|
1096
1122
|
shortName: e.shortName,
|
|
1097
1123
|
franchiseName: e.franchiseName,
|
|
1098
1124
|
clubName: e.clubName,
|
|
1099
1125
|
active: e.active
|
|
1100
1126
|
};
|
|
1101
1127
|
}
|
|
1102
|
-
function
|
|
1128
|
+
function Xn(e) {
|
|
1103
1129
|
return !(!("batting" in e) || e.batting === void 0 || !("pitching" in e) || e.pitching === void 0 || !("fielding" in e) || e.fielding === void 0);
|
|
1104
1130
|
}
|
|
1105
|
-
function
|
|
1106
|
-
return
|
|
1131
|
+
function kt(e) {
|
|
1132
|
+
return Jt(e);
|
|
1107
1133
|
}
|
|
1108
|
-
function
|
|
1134
|
+
function Jt(e, t) {
|
|
1109
1135
|
return e == null ? e : {
|
|
1110
|
-
batting:
|
|
1111
|
-
pitching:
|
|
1112
|
-
fielding:
|
|
1136
|
+
batting: k(e.batting),
|
|
1137
|
+
pitching: R(e.pitching),
|
|
1138
|
+
fielding: I(e.fielding)
|
|
1113
1139
|
};
|
|
1114
1140
|
}
|
|
1115
|
-
function
|
|
1116
|
-
return
|
|
1141
|
+
function It(e) {
|
|
1142
|
+
return Bt(e, !1);
|
|
1117
1143
|
}
|
|
1118
|
-
function
|
|
1144
|
+
function Bt(e, t = !1) {
|
|
1119
1145
|
return e == null ? e : {
|
|
1120
|
-
batting:
|
|
1121
|
-
pitching:
|
|
1122
|
-
fielding:
|
|
1146
|
+
batting: J(e.batting),
|
|
1147
|
+
pitching: F(e.pitching),
|
|
1148
|
+
fielding: B(e.fielding)
|
|
1123
1149
|
};
|
|
1124
1150
|
}
|
|
1125
|
-
function
|
|
1151
|
+
function _n(e) {
|
|
1126
1152
|
return !(!("team" in e) || e.team === void 0 || !("teamStats" in e) || e.teamStats === void 0 || !("batters" in e) || e.batters === void 0 || !("pitchers" in e) || e.pitchers === void 0 || !("bullpen" in e) || e.bullpen === void 0 || !("bench" in e) || e.bench === void 0 || !("players" in e) || e.players === void 0);
|
|
1127
1153
|
}
|
|
1128
|
-
function
|
|
1129
|
-
return
|
|
1154
|
+
function H(e) {
|
|
1155
|
+
return Rt(e);
|
|
1130
1156
|
}
|
|
1131
|
-
function
|
|
1157
|
+
function Rt(e, t) {
|
|
1132
1158
|
return e == null ? e : {
|
|
1133
|
-
team:
|
|
1134
|
-
teamStats:
|
|
1159
|
+
team: c(e.team),
|
|
1160
|
+
teamStats: kt(e.teamStats),
|
|
1135
1161
|
batters: e.batters,
|
|
1136
1162
|
pitchers: e.pitchers,
|
|
1137
1163
|
bullpen: e.bullpen,
|
|
1138
1164
|
bench: e.bench,
|
|
1139
|
-
players:
|
|
1165
|
+
players: K(e.players, je)
|
|
1140
1166
|
};
|
|
1141
1167
|
}
|
|
1142
|
-
function
|
|
1143
|
-
return
|
|
1168
|
+
function W(e) {
|
|
1169
|
+
return Ft(e, !1);
|
|
1144
1170
|
}
|
|
1145
|
-
function
|
|
1171
|
+
function Ft(e, t = !1) {
|
|
1146
1172
|
return e == null ? e : {
|
|
1147
|
-
team:
|
|
1148
|
-
teamStats:
|
|
1173
|
+
team: f(e.team),
|
|
1174
|
+
teamStats: It(e.teamStats),
|
|
1149
1175
|
batters: e.batters,
|
|
1150
1176
|
pitchers: e.pitchers,
|
|
1151
1177
|
bullpen: e.bullpen,
|
|
1152
1178
|
bench: e.bench,
|
|
1153
|
-
players:
|
|
1179
|
+
players: K(e.players, tt)
|
|
1154
1180
|
};
|
|
1155
1181
|
}
|
|
1156
|
-
function
|
|
1182
|
+
function jn(e) {
|
|
1157
1183
|
return !(!("away" in e) || e.away === void 0 || !("home" in e) || e.home === void 0);
|
|
1158
1184
|
}
|
|
1159
|
-
function
|
|
1160
|
-
return
|
|
1185
|
+
function Gt(e) {
|
|
1186
|
+
return Lt(e);
|
|
1161
1187
|
}
|
|
1162
|
-
function
|
|
1188
|
+
function Lt(e, t) {
|
|
1163
1189
|
return e == null ? e : {
|
|
1164
|
-
away:
|
|
1165
|
-
home:
|
|
1190
|
+
away: H(e.away),
|
|
1191
|
+
home: H(e.home)
|
|
1166
1192
|
};
|
|
1167
1193
|
}
|
|
1168
|
-
function
|
|
1169
|
-
return
|
|
1194
|
+
function Et(e) {
|
|
1195
|
+
return Ct(e, !1);
|
|
1170
1196
|
}
|
|
1171
|
-
function
|
|
1197
|
+
function Ct(e, t = !1) {
|
|
1172
1198
|
return e == null ? e : {
|
|
1173
|
-
away:
|
|
1174
|
-
home:
|
|
1199
|
+
away: W(e.away),
|
|
1200
|
+
home: W(e.home)
|
|
1175
1201
|
};
|
|
1176
1202
|
}
|
|
1177
|
-
function
|
|
1203
|
+
function er(e) {
|
|
1178
1204
|
return !(!("teams" in e) || e.teams === void 0 || !("officials" in e) || e.officials === void 0);
|
|
1179
1205
|
}
|
|
1180
|
-
function
|
|
1181
|
-
return
|
|
1206
|
+
function At(e) {
|
|
1207
|
+
return Ht(e);
|
|
1182
1208
|
}
|
|
1183
|
-
function
|
|
1209
|
+
function Ht(e, t) {
|
|
1184
1210
|
return e == null ? e : {
|
|
1185
|
-
teams:
|
|
1186
|
-
officials: e.officials.map(
|
|
1211
|
+
teams: Gt(e.teams),
|
|
1212
|
+
officials: e.officials.map(Oe)
|
|
1187
1213
|
};
|
|
1188
1214
|
}
|
|
1189
|
-
function
|
|
1190
|
-
return
|
|
1215
|
+
function tr(e) {
|
|
1216
|
+
return Wt(e, !1);
|
|
1191
1217
|
}
|
|
1192
|
-
function
|
|
1218
|
+
function Wt(e, t = !1) {
|
|
1193
1219
|
return e == null ? e : {
|
|
1194
|
-
teams:
|
|
1195
|
-
officials: e.officials.map(
|
|
1220
|
+
teams: Et(e.teams),
|
|
1221
|
+
officials: e.officials.map(Te)
|
|
1222
|
+
};
|
|
1223
|
+
}
|
|
1224
|
+
function ir(e) {
|
|
1225
|
+
return !0;
|
|
1226
|
+
}
|
|
1227
|
+
function x(e) {
|
|
1228
|
+
return xt(e);
|
|
1229
|
+
}
|
|
1230
|
+
function xt(e, t) {
|
|
1231
|
+
return e == null ? e : {
|
|
1232
|
+
code: e.code == null ? void 0 : e.code,
|
|
1233
|
+
description: e.description == null ? void 0 : e.description
|
|
1234
|
+
};
|
|
1235
|
+
}
|
|
1236
|
+
function q(e) {
|
|
1237
|
+
return qt(e, !1);
|
|
1238
|
+
}
|
|
1239
|
+
function qt(e, t = !1) {
|
|
1240
|
+
return e == null ? e : {
|
|
1241
|
+
code: e.code,
|
|
1242
|
+
description: e.description
|
|
1243
|
+
};
|
|
1244
|
+
}
|
|
1245
|
+
function nr(e) {
|
|
1246
|
+
return !0;
|
|
1247
|
+
}
|
|
1248
|
+
function j(e) {
|
|
1249
|
+
return vt(e);
|
|
1250
|
+
}
|
|
1251
|
+
function vt(e, t) {
|
|
1252
|
+
return e == null ? e : {
|
|
1253
|
+
link: e.link == null ? void 0 : e.link
|
|
1254
|
+
};
|
|
1255
|
+
}
|
|
1256
|
+
function ee(e) {
|
|
1257
|
+
return Ut(e, !1);
|
|
1258
|
+
}
|
|
1259
|
+
function Ut(e, t = !1) {
|
|
1260
|
+
return e == null ? e : {
|
|
1261
|
+
link: e.link
|
|
1196
1262
|
};
|
|
1197
1263
|
}
|
|
1198
|
-
function
|
|
1264
|
+
function rr(e) {
|
|
1199
1265
|
return !(!("league" in e) || e.league === void 0 || !("division" in e) || e.division === void 0 || !("sport" in e) || e.sport === void 0 || !("teamRecords" in e) || e.teamRecords === void 0);
|
|
1200
1266
|
}
|
|
1201
|
-
function
|
|
1202
|
-
return
|
|
1267
|
+
function Mt(e) {
|
|
1268
|
+
return Vt(e);
|
|
1203
1269
|
}
|
|
1204
|
-
function
|
|
1270
|
+
function Vt(e, t) {
|
|
1205
1271
|
return e == null ? e : {
|
|
1206
1272
|
standingsType: e.standingsType == null ? void 0 : e.standingsType,
|
|
1207
|
-
league:
|
|
1208
|
-
division:
|
|
1209
|
-
sport:
|
|
1273
|
+
league: m(e.league),
|
|
1274
|
+
division: E(e.division),
|
|
1275
|
+
sport: D(e.sport),
|
|
1210
1276
|
lastUpdated: e.lastUpdated == null ? void 0 : e.lastUpdated,
|
|
1211
|
-
teamRecords: e.teamRecords.map(
|
|
1277
|
+
teamRecords: e.teamRecords.map(X)
|
|
1212
1278
|
};
|
|
1213
1279
|
}
|
|
1214
|
-
function
|
|
1215
|
-
return
|
|
1280
|
+
function $t(e) {
|
|
1281
|
+
return Yt(e, !1);
|
|
1216
1282
|
}
|
|
1217
|
-
function
|
|
1283
|
+
function Yt(e, t = !1) {
|
|
1218
1284
|
return e == null ? e : {
|
|
1219
1285
|
standingsType: e.standingsType,
|
|
1220
|
-
league:
|
|
1221
|
-
division:
|
|
1222
|
-
sport:
|
|
1286
|
+
league: p(e.league),
|
|
1287
|
+
division: C(e.division),
|
|
1288
|
+
sport: b(e.sport),
|
|
1223
1289
|
lastUpdated: e.lastUpdated,
|
|
1224
|
-
teamRecords: e.teamRecords.map(
|
|
1290
|
+
teamRecords: e.teamRecords.map(_)
|
|
1225
1291
|
};
|
|
1226
1292
|
}
|
|
1227
|
-
function
|
|
1293
|
+
function ar(e) {
|
|
1228
1294
|
return !(!("records" in e) || e.records === void 0);
|
|
1229
1295
|
}
|
|
1230
|
-
function
|
|
1231
|
-
return
|
|
1296
|
+
function Zt(e) {
|
|
1297
|
+
return Kt(e);
|
|
1232
1298
|
}
|
|
1233
|
-
function
|
|
1299
|
+
function Kt(e, t) {
|
|
1234
1300
|
return e == null ? e : {
|
|
1235
|
-
records: e.records.map(
|
|
1301
|
+
records: e.records.map(Mt)
|
|
1236
1302
|
};
|
|
1237
1303
|
}
|
|
1238
|
-
function
|
|
1239
|
-
return
|
|
1304
|
+
function sr(e) {
|
|
1305
|
+
return zt(e, !1);
|
|
1240
1306
|
}
|
|
1241
|
-
function
|
|
1307
|
+
function zt(e, t = !1) {
|
|
1242
1308
|
return e == null ? e : {
|
|
1243
|
-
records: e.records.map(
|
|
1309
|
+
records: e.records.map($t)
|
|
1244
1310
|
};
|
|
1245
1311
|
}
|
|
1246
|
-
function
|
|
1312
|
+
function or(e) {
|
|
1247
1313
|
return !(!("divisions" in e) || e.divisions === void 0);
|
|
1248
1314
|
}
|
|
1249
|
-
function
|
|
1250
|
-
return
|
|
1315
|
+
function Qt(e) {
|
|
1316
|
+
return Xt(e);
|
|
1251
1317
|
}
|
|
1252
|
-
function
|
|
1318
|
+
function Xt(e, t) {
|
|
1253
1319
|
return e == null ? e : {
|
|
1254
|
-
divisions: e.divisions.map(
|
|
1320
|
+
divisions: e.divisions.map(E)
|
|
1255
1321
|
};
|
|
1256
1322
|
}
|
|
1257
|
-
function
|
|
1258
|
-
return
|
|
1323
|
+
function lr(e) {
|
|
1324
|
+
return _t(e, !1);
|
|
1259
1325
|
}
|
|
1260
|
-
function
|
|
1326
|
+
function _t(e, t = !1) {
|
|
1261
1327
|
return e == null ? e : {
|
|
1262
|
-
divisions: e.divisions.map(
|
|
1328
|
+
divisions: e.divisions.map(C)
|
|
1263
1329
|
};
|
|
1264
1330
|
}
|
|
1265
|
-
var
|
|
1266
|
-
function
|
|
1267
|
-
for (const
|
|
1268
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
1331
|
+
var h = /* @__PURE__ */ ((e) => (e.Final = "F", e.Postponed = "D", e.Scheduled = "S", e.InProgress = "I", e.Challenge = "M", e.Pregame = "P", e.GameOver = "O", e.Canceled = "C", e))(h || {});
|
|
1332
|
+
function dr(e) {
|
|
1333
|
+
for (const t in h)
|
|
1334
|
+
if (Object.prototype.hasOwnProperty.call(h, t) && h[t] === e)
|
|
1269
1335
|
return !0;
|
|
1270
1336
|
return !1;
|
|
1271
1337
|
}
|
|
1272
|
-
function
|
|
1273
|
-
return
|
|
1338
|
+
function jt(e) {
|
|
1339
|
+
return ei(e);
|
|
1274
1340
|
}
|
|
1275
|
-
function
|
|
1341
|
+
function ei(e, t) {
|
|
1276
1342
|
return e;
|
|
1277
1343
|
}
|
|
1278
|
-
function
|
|
1344
|
+
function ur(e) {
|
|
1279
1345
|
return e;
|
|
1280
1346
|
}
|
|
1281
|
-
function
|
|
1347
|
+
function cr(e, t) {
|
|
1282
1348
|
return e;
|
|
1283
1349
|
}
|
|
1284
|
-
function
|
|
1350
|
+
function fr(e) {
|
|
1285
1351
|
return !0;
|
|
1286
1352
|
}
|
|
1287
|
-
function
|
|
1288
|
-
return
|
|
1353
|
+
function ti(e) {
|
|
1354
|
+
return ii(e);
|
|
1289
1355
|
}
|
|
1290
|
-
function
|
|
1356
|
+
function ii(e, t) {
|
|
1291
1357
|
return e == null ? e : {
|
|
1292
1358
|
abstractGameState: e.abstractGameState == null ? void 0 : e.abstractGameState,
|
|
1293
|
-
codedGameState: e.codedGameState == null ? void 0 :
|
|
1359
|
+
codedGameState: e.codedGameState == null ? void 0 : jt(e.codedGameState),
|
|
1294
1360
|
detailedState: e.detailedState == null ? void 0 : e.detailedState,
|
|
1295
1361
|
statusCode: e.statusCode == null ? void 0 : e.statusCode,
|
|
1296
1362
|
startTimeTBD: e.startTimeTBD == null ? void 0 : e.startTimeTBD,
|
|
1297
1363
|
abstractGameCode: e.abstractGameCode == null ? void 0 : e.abstractGameCode
|
|
1298
1364
|
};
|
|
1299
1365
|
}
|
|
1300
|
-
function
|
|
1301
|
-
return
|
|
1366
|
+
function ni(e) {
|
|
1367
|
+
return ri(e, !1);
|
|
1302
1368
|
}
|
|
1303
|
-
function
|
|
1369
|
+
function ri(e, t = !1) {
|
|
1304
1370
|
return e == null ? e : {
|
|
1305
1371
|
abstractGameState: e.abstractGameState,
|
|
1306
1372
|
codedGameState: e.codedGameState,
|
|
@@ -1310,87 +1376,87 @@ function Yi(e, i = !1) {
|
|
|
1310
1376
|
abstractGameCode: e.abstractGameCode
|
|
1311
1377
|
};
|
|
1312
1378
|
}
|
|
1313
|
-
function
|
|
1379
|
+
function mr(e) {
|
|
1314
1380
|
return !(!("leagueRecord" in e) || e.leagueRecord === void 0 || !("score" in e) || e.score === void 0 || !("team" in e) || e.team === void 0 || !("isWinner" in e) || e.isWinner === void 0);
|
|
1315
1381
|
}
|
|
1316
|
-
function
|
|
1317
|
-
return
|
|
1382
|
+
function v(e) {
|
|
1383
|
+
return ai(e);
|
|
1318
1384
|
}
|
|
1319
|
-
function
|
|
1385
|
+
function ai(e, t) {
|
|
1320
1386
|
return e == null ? e : {
|
|
1321
|
-
leagueRecord:
|
|
1387
|
+
leagueRecord: z(e.leagueRecord),
|
|
1322
1388
|
score: e.score,
|
|
1323
|
-
team:
|
|
1389
|
+
team: c(e.team),
|
|
1324
1390
|
isWinner: e.isWinner,
|
|
1325
1391
|
splitSquad: e.splitSquad == null ? void 0 : e.splitSquad,
|
|
1326
1392
|
seriesNumber: e.seriesNumber == null ? void 0 : e.seriesNumber
|
|
1327
1393
|
};
|
|
1328
1394
|
}
|
|
1329
|
-
function
|
|
1330
|
-
return
|
|
1395
|
+
function U(e) {
|
|
1396
|
+
return si(e, !1);
|
|
1331
1397
|
}
|
|
1332
|
-
function
|
|
1398
|
+
function si(e, t = !1) {
|
|
1333
1399
|
return e == null ? e : {
|
|
1334
|
-
leagueRecord:
|
|
1400
|
+
leagueRecord: Q(e.leagueRecord),
|
|
1335
1401
|
score: e.score,
|
|
1336
|
-
team:
|
|
1402
|
+
team: f(e.team),
|
|
1337
1403
|
isWinner: e.isWinner,
|
|
1338
1404
|
splitSquad: e.splitSquad,
|
|
1339
1405
|
seriesNumber: e.seriesNumber
|
|
1340
1406
|
};
|
|
1341
1407
|
}
|
|
1342
|
-
function
|
|
1408
|
+
function pr(e) {
|
|
1343
1409
|
return !(!("away" in e) || e.away === void 0 || !("home" in e) || e.home === void 0);
|
|
1344
1410
|
}
|
|
1345
|
-
function
|
|
1346
|
-
return
|
|
1411
|
+
function oi(e) {
|
|
1412
|
+
return li(e);
|
|
1347
1413
|
}
|
|
1348
|
-
function
|
|
1414
|
+
function li(e, t) {
|
|
1349
1415
|
return e == null ? e : {
|
|
1350
|
-
away:
|
|
1351
|
-
home:
|
|
1416
|
+
away: v(e.away),
|
|
1417
|
+
home: v(e.home)
|
|
1352
1418
|
};
|
|
1353
1419
|
}
|
|
1354
|
-
function
|
|
1355
|
-
return
|
|
1420
|
+
function di(e) {
|
|
1421
|
+
return ui(e, !1);
|
|
1356
1422
|
}
|
|
1357
|
-
function
|
|
1423
|
+
function ui(e, t = !1) {
|
|
1358
1424
|
return e == null ? e : {
|
|
1359
|
-
away:
|
|
1360
|
-
home:
|
|
1425
|
+
away: U(e.away),
|
|
1426
|
+
home: U(e.home)
|
|
1361
1427
|
};
|
|
1362
1428
|
}
|
|
1363
|
-
var
|
|
1364
|
-
function
|
|
1365
|
-
for (const
|
|
1366
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
1429
|
+
var y = /* @__PURE__ */ ((e) => (e.Exhibition = "E", e.SpringTraining = "S", e.Regular = "R", e.WildCardSeries = "F", e.DivisionSeries = "D", e.LeagueChampionshipSeries = "L", e.WorldSeries = "W", e))(y || {});
|
|
1430
|
+
function gr(e) {
|
|
1431
|
+
for (const t in y)
|
|
1432
|
+
if (Object.prototype.hasOwnProperty.call(y, t) && y[t] === e)
|
|
1367
1433
|
return !0;
|
|
1368
1434
|
return !1;
|
|
1369
1435
|
}
|
|
1370
|
-
function
|
|
1371
|
-
return
|
|
1436
|
+
function ci(e) {
|
|
1437
|
+
return fi(e);
|
|
1372
1438
|
}
|
|
1373
|
-
function
|
|
1439
|
+
function fi(e, t) {
|
|
1374
1440
|
return e;
|
|
1375
1441
|
}
|
|
1376
|
-
function
|
|
1442
|
+
function Sr(e) {
|
|
1377
1443
|
return e;
|
|
1378
1444
|
}
|
|
1379
|
-
function
|
|
1445
|
+
function hr(e, t) {
|
|
1380
1446
|
return e;
|
|
1381
1447
|
}
|
|
1382
|
-
function
|
|
1383
|
-
return !(!("gamePk" in e) || e.gamePk === void 0 || !("gameGuid" in e) || e.gameGuid === void 0 || !("gameType" in e) || e.gameType === void 0 || !("season" in e) || e.season === void 0 || !("gameDate" in e) || e.gameDate === void 0 || !("officialDate" in e) || e.officialDate === void 0 || !("status" in e) || e.status === void 0 || !("teams" in e) || e.teams === void 0
|
|
1448
|
+
function yr(e) {
|
|
1449
|
+
return !(!("gamePk" in e) || e.gamePk === void 0 || !("gameGuid" in e) || e.gameGuid === void 0 || !("gameType" in e) || e.gameType === void 0 || !("season" in e) || e.season === void 0 || !("gameDate" in e) || e.gameDate === void 0 || !("officialDate" in e) || e.officialDate === void 0 || !("status" in e) || e.status === void 0 || !("teams" in e) || e.teams === void 0);
|
|
1384
1450
|
}
|
|
1385
|
-
function
|
|
1386
|
-
return
|
|
1451
|
+
function mi(e) {
|
|
1452
|
+
return pi(e);
|
|
1387
1453
|
}
|
|
1388
|
-
function
|
|
1454
|
+
function pi(e, t) {
|
|
1389
1455
|
return e == null ? e : {
|
|
1390
1456
|
gamePk: e.gamePk,
|
|
1391
1457
|
gameGuid: e.gameGuid,
|
|
1392
1458
|
link: e.link == null ? void 0 : e.link,
|
|
1393
|
-
gameType:
|
|
1459
|
+
gameType: ci(e.gameType),
|
|
1394
1460
|
season: e.season,
|
|
1395
1461
|
gameDate: e.gameDate,
|
|
1396
1462
|
officialDate: e.officialDate,
|
|
@@ -1398,11 +1464,12 @@ function tt(e, i) {
|
|
|
1398
1464
|
rescheduledToDate: e.rescheduledToDate == null ? void 0 : e.rescheduledToDate,
|
|
1399
1465
|
rescheduledFrom: e.rescheduledFrom == null ? void 0 : e.rescheduledFrom,
|
|
1400
1466
|
rescheduledFromDate: e.rescheduledFromDate == null ? void 0 : e.rescheduledFromDate,
|
|
1401
|
-
status:
|
|
1402
|
-
teams:
|
|
1403
|
-
venue: e.venue == null ? void 0 :
|
|
1467
|
+
status: ti(e.status),
|
|
1468
|
+
teams: oi(e.teams),
|
|
1469
|
+
venue: e.venue == null ? void 0 : P(e.venue),
|
|
1470
|
+
content: e.content == null ? void 0 : j(e.content),
|
|
1404
1471
|
isTie: e.isTie == null ? void 0 : e.isTie,
|
|
1405
|
-
gameNumber: e.gameNumber,
|
|
1472
|
+
gameNumber: e.gameNumber == null ? void 0 : e.gameNumber,
|
|
1406
1473
|
publicFacing: e.publicFacing == null ? void 0 : e.publicFacing,
|
|
1407
1474
|
doubleHeader: e.doubleHeader == null ? void 0 : e.doubleHeader,
|
|
1408
1475
|
gamedayType: e.gamedayType == null ? void 0 : e.gamedayType,
|
|
@@ -1414,18 +1481,18 @@ function tt(e, i) {
|
|
|
1414
1481
|
scheduledInnings: e.scheduledInnings == null ? void 0 : e.scheduledInnings,
|
|
1415
1482
|
reverseHomeAwayStatus: e.reverseHomeAwayStatus == null ? void 0 : e.reverseHomeAwayStatus,
|
|
1416
1483
|
inningBreakLength: e.inningBreakLength == null ? void 0 : e.inningBreakLength,
|
|
1417
|
-
gamesInSeries: e.gamesInSeries,
|
|
1418
|
-
seriesGameNumber: e.seriesGameNumber,
|
|
1484
|
+
gamesInSeries: e.gamesInSeries == null ? void 0 : e.gamesInSeries,
|
|
1485
|
+
seriesGameNumber: e.seriesGameNumber == null ? void 0 : e.seriesGameNumber,
|
|
1419
1486
|
seriesDescription: e.seriesDescription == null ? void 0 : e.seriesDescription,
|
|
1420
1487
|
recordSource: e.recordSource == null ? void 0 : e.recordSource,
|
|
1421
1488
|
ifNecessary: e.ifNecessary == null ? void 0 : e.ifNecessary,
|
|
1422
1489
|
ifNecessaryDescription: e.ifNecessaryDescription == null ? void 0 : e.ifNecessaryDescription
|
|
1423
1490
|
};
|
|
1424
1491
|
}
|
|
1425
|
-
function
|
|
1426
|
-
return
|
|
1492
|
+
function gi(e) {
|
|
1493
|
+
return Si(e, !1);
|
|
1427
1494
|
}
|
|
1428
|
-
function
|
|
1495
|
+
function Si(e, t = !1) {
|
|
1429
1496
|
return e == null ? e : {
|
|
1430
1497
|
gamePk: e.gamePk,
|
|
1431
1498
|
gameGuid: e.gameGuid,
|
|
@@ -1438,9 +1505,10 @@ function rt(e, i = !1) {
|
|
|
1438
1505
|
rescheduledToDate: e.rescheduledToDate,
|
|
1439
1506
|
rescheduledFrom: e.rescheduledFrom,
|
|
1440
1507
|
rescheduledFromDate: e.rescheduledFromDate,
|
|
1441
|
-
status:
|
|
1442
|
-
teams:
|
|
1443
|
-
venue:
|
|
1508
|
+
status: ni(e.status),
|
|
1509
|
+
teams: di(e.teams),
|
|
1510
|
+
venue: w(e.venue),
|
|
1511
|
+
content: ee(e.content),
|
|
1444
1512
|
isTie: e.isTie,
|
|
1445
1513
|
gameNumber: e.gameNumber,
|
|
1446
1514
|
publicFacing: e.publicFacing,
|
|
@@ -1462,13 +1530,13 @@ function rt(e, i = !1) {
|
|
|
1462
1530
|
ifNecessaryDescription: e.ifNecessaryDescription
|
|
1463
1531
|
};
|
|
1464
1532
|
}
|
|
1465
|
-
function
|
|
1533
|
+
function Or(e) {
|
|
1466
1534
|
return !(!("runs" in e) || e.runs === void 0 || !("hits" in e) || e.hits === void 0 || !("errors" in e) || e.errors === void 0 || !("leftOnBase" in e) || e.leftOnBase === void 0);
|
|
1467
1535
|
}
|
|
1468
|
-
function
|
|
1469
|
-
return
|
|
1536
|
+
function O(e) {
|
|
1537
|
+
return hi(e);
|
|
1470
1538
|
}
|
|
1471
|
-
function
|
|
1539
|
+
function hi(e, t) {
|
|
1472
1540
|
return e == null ? e : {
|
|
1473
1541
|
runs: e.runs,
|
|
1474
1542
|
hits: e.hits,
|
|
@@ -1476,10 +1544,10 @@ function at(e, i) {
|
|
|
1476
1544
|
leftOnBase: e.leftOnBase
|
|
1477
1545
|
};
|
|
1478
1546
|
}
|
|
1479
|
-
function
|
|
1480
|
-
return
|
|
1547
|
+
function N(e) {
|
|
1548
|
+
return yi(e, !1);
|
|
1481
1549
|
}
|
|
1482
|
-
function
|
|
1550
|
+
function yi(e, t = !1) {
|
|
1483
1551
|
return e == null ? e : {
|
|
1484
1552
|
runs: e.runs,
|
|
1485
1553
|
hits: e.hits,
|
|
@@ -1487,78 +1555,78 @@ function st(e, i = !1) {
|
|
|
1487
1555
|
leftOnBase: e.leftOnBase
|
|
1488
1556
|
};
|
|
1489
1557
|
}
|
|
1490
|
-
function
|
|
1558
|
+
function Nr(e) {
|
|
1491
1559
|
return !(!("num" in e) || e.num === void 0 || !("ordinalNum" in e) || e.ordinalNum === void 0 || !("home" in e) || e.home === void 0 || !("away" in e) || e.away === void 0);
|
|
1492
1560
|
}
|
|
1493
|
-
function
|
|
1494
|
-
return
|
|
1561
|
+
function Oi(e) {
|
|
1562
|
+
return Ni(e);
|
|
1495
1563
|
}
|
|
1496
|
-
function
|
|
1564
|
+
function Ni(e, t) {
|
|
1497
1565
|
return e == null ? e : {
|
|
1498
1566
|
num: e.num,
|
|
1499
1567
|
ordinalNum: e.ordinalNum,
|
|
1500
|
-
home:
|
|
1501
|
-
away:
|
|
1568
|
+
home: O(e.home),
|
|
1569
|
+
away: O(e.away)
|
|
1502
1570
|
};
|
|
1503
1571
|
}
|
|
1504
|
-
function
|
|
1505
|
-
return
|
|
1572
|
+
function Ti(e) {
|
|
1573
|
+
return Di(e, !1);
|
|
1506
1574
|
}
|
|
1507
|
-
function
|
|
1575
|
+
function Di(e, t = !1) {
|
|
1508
1576
|
return e == null ? e : {
|
|
1509
1577
|
num: e.num,
|
|
1510
1578
|
ordinalNum: e.ordinalNum,
|
|
1511
|
-
home:
|
|
1512
|
-
away:
|
|
1579
|
+
home: N(e.home),
|
|
1580
|
+
away: N(e.away)
|
|
1513
1581
|
};
|
|
1514
1582
|
}
|
|
1515
|
-
function
|
|
1583
|
+
function Tr(e) {
|
|
1516
1584
|
return !(!("leagues" in e) || e.leagues === void 0);
|
|
1517
1585
|
}
|
|
1518
|
-
function
|
|
1519
|
-
return
|
|
1586
|
+
function bi(e) {
|
|
1587
|
+
return Pi(e);
|
|
1520
1588
|
}
|
|
1521
|
-
function
|
|
1589
|
+
function Pi(e, t) {
|
|
1522
1590
|
return e == null ? e : {
|
|
1523
|
-
leagues: e.leagues.map(
|
|
1591
|
+
leagues: e.leagues.map(m)
|
|
1524
1592
|
};
|
|
1525
1593
|
}
|
|
1526
|
-
function
|
|
1527
|
-
return
|
|
1594
|
+
function Dr(e) {
|
|
1595
|
+
return wi(e, !1);
|
|
1528
1596
|
}
|
|
1529
|
-
function
|
|
1597
|
+
function wi(e, t = !1) {
|
|
1530
1598
|
return e == null ? e : {
|
|
1531
|
-
leagues: e.leagues.map(
|
|
1599
|
+
leagues: e.leagues.map(p)
|
|
1532
1600
|
};
|
|
1533
1601
|
}
|
|
1534
|
-
function
|
|
1602
|
+
function br(e) {
|
|
1535
1603
|
return !(!("away" in e) || e.away === void 0 || !("home" in e) || e.home === void 0);
|
|
1536
1604
|
}
|
|
1537
|
-
function
|
|
1538
|
-
return
|
|
1605
|
+
function ki(e) {
|
|
1606
|
+
return Ji(e);
|
|
1539
1607
|
}
|
|
1540
|
-
function
|
|
1608
|
+
function Ji(e, t) {
|
|
1541
1609
|
return e == null ? e : {
|
|
1542
|
-
away:
|
|
1543
|
-
home:
|
|
1610
|
+
away: O(e.away),
|
|
1611
|
+
home: O(e.home)
|
|
1544
1612
|
};
|
|
1545
1613
|
}
|
|
1546
|
-
function
|
|
1547
|
-
return
|
|
1614
|
+
function Ii(e) {
|
|
1615
|
+
return Bi(e, !1);
|
|
1548
1616
|
}
|
|
1549
|
-
function
|
|
1617
|
+
function Bi(e, t = !1) {
|
|
1550
1618
|
return e == null ? e : {
|
|
1551
|
-
away:
|
|
1552
|
-
home:
|
|
1619
|
+
away: N(e.away),
|
|
1620
|
+
home: N(e.home)
|
|
1553
1621
|
};
|
|
1554
1622
|
}
|
|
1555
|
-
function
|
|
1623
|
+
function Pr(e) {
|
|
1556
1624
|
return !(!("teams" in e) || e.teams === void 0 || !("balls" in e) || e.balls === void 0 || !("strikes" in e) || e.strikes === void 0 || !("outs" in e) || e.outs === void 0);
|
|
1557
1625
|
}
|
|
1558
|
-
function
|
|
1559
|
-
return
|
|
1626
|
+
function Ri(e) {
|
|
1627
|
+
return Fi(e);
|
|
1560
1628
|
}
|
|
1561
|
-
function
|
|
1629
|
+
function Fi(e, t) {
|
|
1562
1630
|
return e == null ? e : {
|
|
1563
1631
|
currentInning: e.currentInning == null ? void 0 : e.currentInning,
|
|
1564
1632
|
currentInningOrdinal: e.currentInningOrdinal == null ? void 0 : e.currentInningOrdinal,
|
|
@@ -1566,17 +1634,17 @@ function Ot(e, i) {
|
|
|
1566
1634
|
inningHalf: e.inningHalf == null ? void 0 : e.inningHalf,
|
|
1567
1635
|
isTopInning: e.isTopInning == null ? void 0 : e.isTopInning,
|
|
1568
1636
|
scheduledInnings: e.scheduledInnings == null ? void 0 : e.scheduledInnings,
|
|
1569
|
-
innings: e.innings == null ? void 0 : e.innings.map(
|
|
1570
|
-
teams:
|
|
1637
|
+
innings: e.innings == null ? void 0 : e.innings.map(Oi),
|
|
1638
|
+
teams: ki(e.teams),
|
|
1571
1639
|
balls: e.balls,
|
|
1572
1640
|
strikes: e.strikes,
|
|
1573
1641
|
outs: e.outs
|
|
1574
1642
|
};
|
|
1575
1643
|
}
|
|
1576
|
-
function
|
|
1577
|
-
return
|
|
1644
|
+
function wr(e) {
|
|
1645
|
+
return Gi(e, !1);
|
|
1578
1646
|
}
|
|
1579
|
-
function
|
|
1647
|
+
function Gi(e, t = !1) {
|
|
1580
1648
|
return e == null ? e : {
|
|
1581
1649
|
currentInning: e.currentInning,
|
|
1582
1650
|
currentInningOrdinal: e.currentInningOrdinal,
|
|
@@ -1584,76 +1652,356 @@ function Tt(e, i = !1) {
|
|
|
1584
1652
|
inningHalf: e.inningHalf,
|
|
1585
1653
|
isTopInning: e.isTopInning,
|
|
1586
1654
|
scheduledInnings: e.scheduledInnings,
|
|
1587
|
-
innings: e.innings == null ? void 0 : e.innings.map(
|
|
1588
|
-
teams:
|
|
1655
|
+
innings: e.innings == null ? void 0 : e.innings.map(Ti),
|
|
1656
|
+
teams: Ii(e.teams),
|
|
1589
1657
|
balls: e.balls,
|
|
1590
1658
|
strikes: e.strikes,
|
|
1591
1659
|
outs: e.outs
|
|
1592
1660
|
};
|
|
1593
1661
|
}
|
|
1594
|
-
function
|
|
1595
|
-
return !
|
|
1662
|
+
function kr(e) {
|
|
1663
|
+
return !0;
|
|
1596
1664
|
}
|
|
1597
|
-
function
|
|
1598
|
-
return
|
|
1665
|
+
function Li(e) {
|
|
1666
|
+
return Ei(e);
|
|
1599
1667
|
}
|
|
1600
|
-
function
|
|
1668
|
+
function Ei(e, t) {
|
|
1601
1669
|
return e == null ? e : {
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
totalGamesInProgress: e.totalGamesInProgress == null ? void 0 : e.totalGamesInProgress,
|
|
1607
|
-
games: e.games.map(it)
|
|
1608
|
-
};
|
|
1670
|
+
id: e.id == null ? void 0 : e.id,
|
|
1671
|
+
fullName: e.fullName == null ? void 0 : e.fullName,
|
|
1672
|
+
link: e.link == null ? void 0 : e.link
|
|
1673
|
+
};
|
|
1609
1674
|
}
|
|
1610
|
-
function
|
|
1611
|
-
return
|
|
1675
|
+
function Ci(e) {
|
|
1676
|
+
return Ai(e, !1);
|
|
1677
|
+
}
|
|
1678
|
+
function Ai(e, t = !1) {
|
|
1679
|
+
return e == null ? e : {
|
|
1680
|
+
id: e.id,
|
|
1681
|
+
fullName: e.fullName,
|
|
1682
|
+
link: e.link
|
|
1683
|
+
};
|
|
1684
|
+
}
|
|
1685
|
+
function Jr(e) {
|
|
1686
|
+
return !0;
|
|
1687
|
+
}
|
|
1688
|
+
function Hi(e) {
|
|
1689
|
+
return Wi(e);
|
|
1612
1690
|
}
|
|
1613
|
-
function
|
|
1691
|
+
function Wi(e, t) {
|
|
1692
|
+
return e == null ? e : {
|
|
1693
|
+
gamePk: e.gamePk == null ? void 0 : e.gamePk,
|
|
1694
|
+
link: e.link == null ? void 0 : e.link,
|
|
1695
|
+
content: e.content == null ? void 0 : j(e.content),
|
|
1696
|
+
gameNumber: e.gameNumber == null ? void 0 : e.gameNumber,
|
|
1697
|
+
dayNight: e.dayNight == null ? void 0 : e.dayNight
|
|
1698
|
+
};
|
|
1699
|
+
}
|
|
1700
|
+
function xi(e) {
|
|
1701
|
+
return qi(e, !1);
|
|
1702
|
+
}
|
|
1703
|
+
function qi(e, t = !1) {
|
|
1704
|
+
return e == null ? e : {
|
|
1705
|
+
gamePk: e.gamePk,
|
|
1706
|
+
link: e.link,
|
|
1707
|
+
content: ee(e.content),
|
|
1708
|
+
gameNumber: e.gameNumber,
|
|
1709
|
+
dayNight: e.dayNight
|
|
1710
|
+
};
|
|
1711
|
+
}
|
|
1712
|
+
function Ir(e) {
|
|
1713
|
+
return !0;
|
|
1714
|
+
}
|
|
1715
|
+
function vi(e) {
|
|
1716
|
+
return Ui(e);
|
|
1717
|
+
}
|
|
1718
|
+
function Ui(e, t) {
|
|
1719
|
+
return e == null ? e : {
|
|
1720
|
+
season: e.season == null ? void 0 : e.season,
|
|
1721
|
+
stat: e.stat == null ? void 0 : e.stat,
|
|
1722
|
+
team: e.team == null ? void 0 : c(e.team),
|
|
1723
|
+
player: e.player == null ? void 0 : Li(e.player),
|
|
1724
|
+
league: e.league == null ? void 0 : m(e.league),
|
|
1725
|
+
sport: e.sport == null ? void 0 : D(e.sport),
|
|
1726
|
+
gameType: e.gameType == null ? void 0 : e.gameType,
|
|
1727
|
+
type: e.type == null ? void 0 : e.type,
|
|
1728
|
+
group: e.group == null ? void 0 : e.group,
|
|
1729
|
+
opponent: e.opponent == null ? void 0 : c(e.opponent),
|
|
1730
|
+
date: e.date == null ? void 0 : e.date,
|
|
1731
|
+
isHome: e.isHome == null ? void 0 : e.isHome,
|
|
1732
|
+
isWin: e.isWin == null ? void 0 : e.isWin,
|
|
1733
|
+
positionsPlayed: e.positionsPlayed == null ? void 0 : e.positionsPlayed.map(G),
|
|
1734
|
+
game: e.game == null ? void 0 : Hi(e.game),
|
|
1735
|
+
numTeams: e.numTeams == null ? void 0 : e.numTeams,
|
|
1736
|
+
numLeagues: e.numLeagues == null ? void 0 : e.numLeagues
|
|
1737
|
+
};
|
|
1738
|
+
}
|
|
1739
|
+
function Mi(e) {
|
|
1740
|
+
return Vi(e, !1);
|
|
1741
|
+
}
|
|
1742
|
+
function Vi(e, t = !1) {
|
|
1743
|
+
return e == null ? e : {
|
|
1744
|
+
season: e.season,
|
|
1745
|
+
stat: e.stat,
|
|
1746
|
+
team: f(e.team),
|
|
1747
|
+
player: Ci(e.player),
|
|
1748
|
+
league: p(e.league),
|
|
1749
|
+
sport: b(e.sport),
|
|
1750
|
+
gameType: e.gameType,
|
|
1751
|
+
type: e.type,
|
|
1752
|
+
group: e.group,
|
|
1753
|
+
opponent: f(e.opponent),
|
|
1754
|
+
date: e.date,
|
|
1755
|
+
isHome: e.isHome,
|
|
1756
|
+
isWin: e.isWin,
|
|
1757
|
+
positionsPlayed: e.positionsPlayed == null ? void 0 : e.positionsPlayed.map(L),
|
|
1758
|
+
game: xi(e.game),
|
|
1759
|
+
numTeams: e.numTeams,
|
|
1760
|
+
numLeagues: e.numLeagues
|
|
1761
|
+
};
|
|
1762
|
+
}
|
|
1763
|
+
function Br(e) {
|
|
1764
|
+
return !0;
|
|
1765
|
+
}
|
|
1766
|
+
function M(e) {
|
|
1767
|
+
return $i(e);
|
|
1768
|
+
}
|
|
1769
|
+
function $i(e, t) {
|
|
1770
|
+
return e == null ? e : {
|
|
1771
|
+
displayName: e.displayName == null ? void 0 : e.displayName
|
|
1772
|
+
};
|
|
1773
|
+
}
|
|
1774
|
+
function V(e) {
|
|
1775
|
+
return Yi(e, !1);
|
|
1776
|
+
}
|
|
1777
|
+
function Yi(e, t = !1) {
|
|
1778
|
+
return e == null ? e : {
|
|
1779
|
+
displayName: e.displayName
|
|
1780
|
+
};
|
|
1781
|
+
}
|
|
1782
|
+
function Rr(e) {
|
|
1783
|
+
return !0;
|
|
1784
|
+
}
|
|
1785
|
+
function te(e) {
|
|
1786
|
+
return Zi(e);
|
|
1787
|
+
}
|
|
1788
|
+
function Zi(e, t) {
|
|
1789
|
+
return e == null ? e : {
|
|
1790
|
+
type: e.type == null ? void 0 : M(e.type),
|
|
1791
|
+
group: e.group == null ? void 0 : M(e.group),
|
|
1792
|
+
exemptions: e.exemptions == null ? void 0 : e.exemptions,
|
|
1793
|
+
splits: e.splits == null ? void 0 : e.splits.map(vi)
|
|
1794
|
+
};
|
|
1795
|
+
}
|
|
1796
|
+
function ie(e) {
|
|
1797
|
+
return Ki(e, !1);
|
|
1798
|
+
}
|
|
1799
|
+
function Ki(e, t = !1) {
|
|
1800
|
+
return e == null ? e : {
|
|
1801
|
+
type: V(e.type),
|
|
1802
|
+
group: V(e.group),
|
|
1803
|
+
exemptions: e.exemptions,
|
|
1804
|
+
splits: e.splits == null ? void 0 : e.splits.map(Mi)
|
|
1805
|
+
};
|
|
1806
|
+
}
|
|
1807
|
+
function Fr(e) {
|
|
1808
|
+
return !(!("id" in e) || e.id === void 0 || !("fullName" in e) || e.fullName === void 0 || !("link" in e) || e.link === void 0);
|
|
1809
|
+
}
|
|
1810
|
+
function zi(e) {
|
|
1811
|
+
return Qi(e);
|
|
1812
|
+
}
|
|
1813
|
+
function Qi(e, t) {
|
|
1814
|
+
return e == null ? e : {
|
|
1815
|
+
id: e.id,
|
|
1816
|
+
fullName: e.fullName,
|
|
1817
|
+
link: e.link,
|
|
1818
|
+
firstName: e.firstName == null ? void 0 : e.firstName,
|
|
1819
|
+
lastName: e.lastName == null ? void 0 : e.lastName,
|
|
1820
|
+
primaryNumber: e.primaryNumber == null ? void 0 : e.primaryNumber,
|
|
1821
|
+
birthDate: e.birthDate == null ? void 0 : e.birthDate,
|
|
1822
|
+
currentAge: e.currentAge == null ? void 0 : e.currentAge,
|
|
1823
|
+
birthCity: e.birthCity == null ? void 0 : e.birthCity,
|
|
1824
|
+
birthStateProvince: e.birthStateProvince == null ? void 0 : e.birthStateProvince,
|
|
1825
|
+
birthCountry: e.birthCountry == null ? void 0 : e.birthCountry,
|
|
1826
|
+
height: e.height == null ? void 0 : e.height,
|
|
1827
|
+
weight: e.weight == null ? void 0 : e.weight,
|
|
1828
|
+
active: e.active == null ? void 0 : e.active,
|
|
1829
|
+
currentTeam: e.currentTeam == null ? void 0 : c(e.currentTeam),
|
|
1830
|
+
primaryPosition: e.primaryPosition == null ? void 0 : G(e.primaryPosition),
|
|
1831
|
+
useName: e.useName == null ? void 0 : e.useName,
|
|
1832
|
+
useLastName: e.useLastName == null ? void 0 : e.useLastName,
|
|
1833
|
+
middleName: e.middleName == null ? void 0 : e.middleName,
|
|
1834
|
+
boxscoreName: e.boxscoreName == null ? void 0 : e.boxscoreName,
|
|
1835
|
+
gender: e.gender == null ? void 0 : e.gender,
|
|
1836
|
+
isPlayer: e.isPlayer == null ? void 0 : e.isPlayer,
|
|
1837
|
+
isVerified: e.isVerified == null ? void 0 : e.isVerified,
|
|
1838
|
+
draftYear: e.draftYear == null ? void 0 : e.draftYear,
|
|
1839
|
+
pronunciation: e.pronunciation == null ? void 0 : e.pronunciation,
|
|
1840
|
+
stats: e.stats == null ? void 0 : e.stats.map(te),
|
|
1841
|
+
mlbDebutDate: e.mlbDebutDate == null ? void 0 : e.mlbDebutDate,
|
|
1842
|
+
batSide: e.batSide == null ? void 0 : x(e.batSide),
|
|
1843
|
+
pitchHand: e.pitchHand == null ? void 0 : x(e.pitchHand),
|
|
1844
|
+
nameFirstLast: e.nameFirstLast == null ? void 0 : e.nameFirstLast,
|
|
1845
|
+
nameSlug: e.nameSlug == null ? void 0 : e.nameSlug,
|
|
1846
|
+
firstLastName: e.firstLastName == null ? void 0 : e.firstLastName,
|
|
1847
|
+
lastFirstName: e.lastFirstName == null ? void 0 : e.lastFirstName,
|
|
1848
|
+
lastInitName: e.lastInitName == null ? void 0 : e.lastInitName,
|
|
1849
|
+
initLastName: e.initLastName == null ? void 0 : e.initLastName,
|
|
1850
|
+
fullFMLName: e.fullFMLName == null ? void 0 : e.fullFMLName,
|
|
1851
|
+
fullLFMName: e.fullLFMName == null ? void 0 : e.fullLFMName,
|
|
1852
|
+
strikeZoneTop: e.strikeZoneTop == null ? void 0 : e.strikeZoneTop,
|
|
1853
|
+
strikeZoneBottom: e.strikeZoneBottom == null ? void 0 : e.strikeZoneBottom
|
|
1854
|
+
};
|
|
1855
|
+
}
|
|
1856
|
+
function Xi(e) {
|
|
1857
|
+
return _i(e, !1);
|
|
1858
|
+
}
|
|
1859
|
+
function _i(e, t = !1) {
|
|
1860
|
+
return e == null ? e : {
|
|
1861
|
+
id: e.id,
|
|
1862
|
+
fullName: e.fullName,
|
|
1863
|
+
link: e.link,
|
|
1864
|
+
firstName: e.firstName,
|
|
1865
|
+
lastName: e.lastName,
|
|
1866
|
+
primaryNumber: e.primaryNumber,
|
|
1867
|
+
birthDate: e.birthDate,
|
|
1868
|
+
currentAge: e.currentAge,
|
|
1869
|
+
birthCity: e.birthCity,
|
|
1870
|
+
birthStateProvince: e.birthStateProvince,
|
|
1871
|
+
birthCountry: e.birthCountry,
|
|
1872
|
+
height: e.height,
|
|
1873
|
+
weight: e.weight,
|
|
1874
|
+
active: e.active,
|
|
1875
|
+
currentTeam: f(e.currentTeam),
|
|
1876
|
+
primaryPosition: L(e.primaryPosition),
|
|
1877
|
+
useName: e.useName,
|
|
1878
|
+
useLastName: e.useLastName,
|
|
1879
|
+
middleName: e.middleName,
|
|
1880
|
+
boxscoreName: e.boxscoreName,
|
|
1881
|
+
gender: e.gender,
|
|
1882
|
+
isPlayer: e.isPlayer,
|
|
1883
|
+
isVerified: e.isVerified,
|
|
1884
|
+
draftYear: e.draftYear,
|
|
1885
|
+
pronunciation: e.pronunciation,
|
|
1886
|
+
stats: e.stats == null ? void 0 : e.stats.map(ie),
|
|
1887
|
+
mlbDebutDate: e.mlbDebutDate,
|
|
1888
|
+
batSide: q(e.batSide),
|
|
1889
|
+
pitchHand: q(e.pitchHand),
|
|
1890
|
+
nameFirstLast: e.nameFirstLast,
|
|
1891
|
+
nameSlug: e.nameSlug,
|
|
1892
|
+
firstLastName: e.firstLastName,
|
|
1893
|
+
lastFirstName: e.lastFirstName,
|
|
1894
|
+
lastInitName: e.lastInitName,
|
|
1895
|
+
initLastName: e.initLastName,
|
|
1896
|
+
fullFMLName: e.fullFMLName,
|
|
1897
|
+
fullLFMName: e.fullLFMName,
|
|
1898
|
+
strikeZoneTop: e.strikeZoneTop,
|
|
1899
|
+
strikeZoneBottom: e.strikeZoneBottom
|
|
1900
|
+
};
|
|
1901
|
+
}
|
|
1902
|
+
function Gr(e) {
|
|
1903
|
+
return !(!("people" in e) || e.people === void 0);
|
|
1904
|
+
}
|
|
1905
|
+
function ji(e) {
|
|
1906
|
+
return en(e);
|
|
1907
|
+
}
|
|
1908
|
+
function en(e, t) {
|
|
1909
|
+
return e == null ? e : {
|
|
1910
|
+
people: e.people.map(zi)
|
|
1911
|
+
};
|
|
1912
|
+
}
|
|
1913
|
+
function Lr(e) {
|
|
1914
|
+
return tn(e, !1);
|
|
1915
|
+
}
|
|
1916
|
+
function tn(e, t = !1) {
|
|
1917
|
+
return e == null ? e : {
|
|
1918
|
+
people: e.people.map(Xi)
|
|
1919
|
+
};
|
|
1920
|
+
}
|
|
1921
|
+
function Er(e) {
|
|
1922
|
+
return !(!("stats" in e) || e.stats === void 0);
|
|
1923
|
+
}
|
|
1924
|
+
function nn(e) {
|
|
1925
|
+
return rn(e);
|
|
1926
|
+
}
|
|
1927
|
+
function rn(e, t) {
|
|
1928
|
+
return e == null ? e : {
|
|
1929
|
+
copyright: e.copyright == null ? void 0 : e.copyright,
|
|
1930
|
+
stats: e.stats.map(te)
|
|
1931
|
+
};
|
|
1932
|
+
}
|
|
1933
|
+
function Cr(e) {
|
|
1934
|
+
return an(e, !1);
|
|
1935
|
+
}
|
|
1936
|
+
function an(e, t = !1) {
|
|
1937
|
+
return e == null ? e : {
|
|
1938
|
+
copyright: e.copyright,
|
|
1939
|
+
stats: e.stats.map(ie)
|
|
1940
|
+
};
|
|
1941
|
+
}
|
|
1942
|
+
function Ar(e) {
|
|
1943
|
+
return !(!("date" in e) || e.date === void 0 || !("games" in e) || e.games === void 0);
|
|
1944
|
+
}
|
|
1945
|
+
function sn(e) {
|
|
1946
|
+
return on(e);
|
|
1947
|
+
}
|
|
1948
|
+
function on(e, t) {
|
|
1949
|
+
return e == null ? e : {
|
|
1950
|
+
date: e.date,
|
|
1951
|
+
totalItems: e.totalItems == null ? void 0 : e.totalItems,
|
|
1952
|
+
totalEvents: e.totalEvents == null ? void 0 : e.totalEvents,
|
|
1953
|
+
totalGames: e.totalGames == null ? void 0 : e.totalGames,
|
|
1954
|
+
totalGamesInProgress: e.totalGamesInProgress == null ? void 0 : e.totalGamesInProgress,
|
|
1955
|
+
games: e.games.map(mi)
|
|
1956
|
+
};
|
|
1957
|
+
}
|
|
1958
|
+
function ln(e) {
|
|
1959
|
+
return dn(e, !1);
|
|
1960
|
+
}
|
|
1961
|
+
function dn(e, t = !1) {
|
|
1614
1962
|
return e == null ? e : {
|
|
1615
1963
|
date: e.date,
|
|
1616
1964
|
totalItems: e.totalItems,
|
|
1617
1965
|
totalEvents: e.totalEvents,
|
|
1618
1966
|
totalGames: e.totalGames,
|
|
1619
1967
|
totalGamesInProgress: e.totalGamesInProgress,
|
|
1620
|
-
games: e.games.map(
|
|
1968
|
+
games: e.games.map(gi)
|
|
1621
1969
|
};
|
|
1622
1970
|
}
|
|
1623
|
-
function
|
|
1971
|
+
function Hr(e) {
|
|
1624
1972
|
return !(!("totalItems" in e) || e.totalItems === void 0 || !("totalEvents" in e) || e.totalEvents === void 0 || !("totalGames" in e) || e.totalGames === void 0 || !("totalGamesInProgress" in e) || e.totalGamesInProgress === void 0 || !("dates" in e) || e.dates === void 0);
|
|
1625
1973
|
}
|
|
1626
|
-
function
|
|
1627
|
-
return
|
|
1974
|
+
function un(e) {
|
|
1975
|
+
return cn(e);
|
|
1628
1976
|
}
|
|
1629
|
-
function
|
|
1977
|
+
function cn(e, t) {
|
|
1630
1978
|
return e == null ? e : {
|
|
1631
1979
|
totalItems: e.totalItems,
|
|
1632
1980
|
totalEvents: e.totalEvents,
|
|
1633
1981
|
totalGames: e.totalGames,
|
|
1634
1982
|
totalGamesInProgress: e.totalGamesInProgress,
|
|
1635
|
-
dates: e.dates.map(
|
|
1983
|
+
dates: e.dates.map(sn)
|
|
1636
1984
|
};
|
|
1637
1985
|
}
|
|
1638
|
-
function
|
|
1639
|
-
return
|
|
1986
|
+
function Wr(e) {
|
|
1987
|
+
return fn(e, !1);
|
|
1640
1988
|
}
|
|
1641
|
-
function
|
|
1989
|
+
function fn(e, t = !1) {
|
|
1642
1990
|
return e == null ? e : {
|
|
1643
1991
|
totalItems: e.totalItems,
|
|
1644
1992
|
totalEvents: e.totalEvents,
|
|
1645
1993
|
totalGames: e.totalGames,
|
|
1646
1994
|
totalGamesInProgress: e.totalGamesInProgress,
|
|
1647
|
-
dates: e.dates.map(
|
|
1995
|
+
dates: e.dates.map(ln)
|
|
1648
1996
|
};
|
|
1649
1997
|
}
|
|
1650
|
-
function
|
|
1998
|
+
function xr(e) {
|
|
1651
1999
|
return !(!("seasonId" in e) || e.seasonId === void 0 || !("seasonStartDate" in e) || e.seasonStartDate === void 0 || !("seasonEndDate" in e) || e.seasonEndDate === void 0 || !("regularSeasonStartDate" in e) || e.regularSeasonStartDate === void 0 || !("regularSeasonEndDate" in e) || e.regularSeasonEndDate === void 0);
|
|
1652
2000
|
}
|
|
1653
|
-
function
|
|
1654
|
-
return
|
|
2001
|
+
function mn(e) {
|
|
2002
|
+
return pn(e);
|
|
1655
2003
|
}
|
|
1656
|
-
function
|
|
2004
|
+
function pn(e, t) {
|
|
1657
2005
|
return e == null ? e : {
|
|
1658
2006
|
seasonId: e.seasonId,
|
|
1659
2007
|
hasWildcard: e.hasWildcard == null ? void 0 : e.hasWildcard,
|
|
@@ -1665,12 +2013,12 @@ function Jt(e, i) {
|
|
|
1665
2013
|
springEndDate: e.springEndDate == null ? void 0 : e.springEndDate,
|
|
1666
2014
|
regularSeasonStartDate: e.regularSeasonStartDate,
|
|
1667
2015
|
lastDate1stHalf: e.lastDate1stHalf == null ? void 0 : e.lastDate1stHalf,
|
|
1668
|
-
|
|
2016
|
+
allStarDate: e.allStarDate == null ? void 0 : e.allStarDate,
|
|
1669
2017
|
firstDate2ndHalf: e.firstDate2ndHalf == null ? void 0 : e.firstDate2ndHalf,
|
|
1670
2018
|
regularSeasonEndDate: e.regularSeasonEndDate,
|
|
1671
2019
|
postSeasonStartDate: e.postSeasonStartDate == null ? void 0 : e.postSeasonStartDate,
|
|
1672
2020
|
postSeasonEndDate: e.postSeasonEndDate == null ? void 0 : e.postSeasonEndDate,
|
|
1673
|
-
|
|
2021
|
+
offseasonStartDate: e.offseasonStartDate == null ? void 0 : e.offseasonStartDate,
|
|
1674
2022
|
offSeasonEndDate: e.offSeasonEndDate == null ? void 0 : e.offSeasonEndDate,
|
|
1675
2023
|
seasonLevelGamedayType: e.seasonLevelGamedayType == null ? void 0 : e.seasonLevelGamedayType,
|
|
1676
2024
|
gameLevelGamedayType: e.gameLevelGamedayType == null ? void 0 : e.gameLevelGamedayType,
|
|
@@ -1678,10 +2026,10 @@ function Jt(e, i) {
|
|
|
1678
2026
|
qualifierOutsPitched: e.qualifierOutsPitched == null ? void 0 : e.qualifierOutsPitched
|
|
1679
2027
|
};
|
|
1680
2028
|
}
|
|
1681
|
-
function
|
|
1682
|
-
return
|
|
2029
|
+
function gn(e) {
|
|
2030
|
+
return Sn(e, !1);
|
|
1683
2031
|
}
|
|
1684
|
-
function
|
|
2032
|
+
function Sn(e, t = !1) {
|
|
1685
2033
|
return e == null ? e : {
|
|
1686
2034
|
seasonId: e.seasonId,
|
|
1687
2035
|
hasWildcard: e.hasWildcard,
|
|
@@ -1693,12 +2041,12 @@ function Ft(e, i = !1) {
|
|
|
1693
2041
|
springEndDate: e.springEndDate,
|
|
1694
2042
|
regularSeasonStartDate: e.regularSeasonStartDate,
|
|
1695
2043
|
lastDate1stHalf: e.lastDate1stHalf,
|
|
1696
|
-
|
|
2044
|
+
allStarDate: e.allStarDate,
|
|
1697
2045
|
firstDate2ndHalf: e.firstDate2ndHalf,
|
|
1698
2046
|
regularSeasonEndDate: e.regularSeasonEndDate,
|
|
1699
2047
|
postSeasonStartDate: e.postSeasonStartDate,
|
|
1700
2048
|
postSeasonEndDate: e.postSeasonEndDate,
|
|
1701
|
-
|
|
2049
|
+
offseasonStartDate: e.offseasonStartDate,
|
|
1702
2050
|
offSeasonEndDate: e.offSeasonEndDate,
|
|
1703
2051
|
seasonLevelGamedayType: e.seasonLevelGamedayType,
|
|
1704
2052
|
gameLevelGamedayType: e.gameLevelGamedayType,
|
|
@@ -1706,564 +2054,746 @@ function Ft(e, i = !1) {
|
|
|
1706
2054
|
qualifierOutsPitched: e.qualifierOutsPitched
|
|
1707
2055
|
};
|
|
1708
2056
|
}
|
|
1709
|
-
function
|
|
2057
|
+
function qr(e) {
|
|
1710
2058
|
return !(!("seasons" in e) || e.seasons === void 0);
|
|
1711
2059
|
}
|
|
1712
|
-
function
|
|
1713
|
-
return
|
|
2060
|
+
function $(e) {
|
|
2061
|
+
return hn(e);
|
|
1714
2062
|
}
|
|
1715
|
-
function
|
|
2063
|
+
function hn(e, t) {
|
|
1716
2064
|
return e == null ? e : {
|
|
1717
|
-
seasons: e.seasons.map(
|
|
2065
|
+
seasons: e.seasons.map(mn)
|
|
1718
2066
|
};
|
|
1719
2067
|
}
|
|
1720
|
-
function
|
|
1721
|
-
return
|
|
2068
|
+
function vr(e) {
|
|
2069
|
+
return yn(e, !1);
|
|
1722
2070
|
}
|
|
1723
|
-
function
|
|
2071
|
+
function yn(e, t = !1) {
|
|
1724
2072
|
return e == null ? e : {
|
|
1725
|
-
seasons: e.seasons.map(
|
|
2073
|
+
seasons: e.seasons.map(gn)
|
|
1726
2074
|
};
|
|
1727
2075
|
}
|
|
1728
|
-
function
|
|
2076
|
+
function Ur(e) {
|
|
1729
2077
|
return !(!("teams" in e) || e.teams === void 0);
|
|
1730
2078
|
}
|
|
1731
|
-
function
|
|
1732
|
-
return
|
|
2079
|
+
function On(e) {
|
|
2080
|
+
return Nn(e);
|
|
1733
2081
|
}
|
|
1734
|
-
function
|
|
2082
|
+
function Nn(e, t) {
|
|
1735
2083
|
return e == null ? e : {
|
|
1736
|
-
teams: e.teams.map(
|
|
2084
|
+
teams: e.teams.map(c)
|
|
1737
2085
|
};
|
|
1738
2086
|
}
|
|
1739
|
-
function
|
|
1740
|
-
return
|
|
2087
|
+
function Mr(e) {
|
|
2088
|
+
return Tn(e, !1);
|
|
1741
2089
|
}
|
|
1742
|
-
function
|
|
2090
|
+
function Tn(e, t = !1) {
|
|
1743
2091
|
return e == null ? e : {
|
|
1744
|
-
teams: e.teams.map(
|
|
2092
|
+
teams: e.teams.map(f)
|
|
1745
2093
|
};
|
|
1746
2094
|
}
|
|
1747
|
-
class
|
|
2095
|
+
class Vr extends u {
|
|
1748
2096
|
/**
|
|
1749
|
-
*
|
|
1750
|
-
* Retrieves All Seasons over time
|
|
2097
|
+
* Creates request options for getBoxscore without sending the request
|
|
1751
2098
|
*/
|
|
1752
|
-
async
|
|
1753
|
-
if (
|
|
1754
|
-
throw new
|
|
1755
|
-
"
|
|
1756
|
-
'Required parameter "
|
|
2099
|
+
async getBoxscoreRequestOpts(t) {
|
|
2100
|
+
if (t.gamePk == null)
|
|
2101
|
+
throw new s(
|
|
2102
|
+
"gamePk",
|
|
2103
|
+
'Required parameter "gamePk" was null or undefined when calling getBoxscore().'
|
|
1757
2104
|
);
|
|
1758
|
-
const
|
|
1759
|
-
|
|
1760
|
-
const
|
|
1761
|
-
|
|
2105
|
+
const i = {};
|
|
2106
|
+
t.fields != null && (i.fields = t.fields);
|
|
2107
|
+
const n = {};
|
|
2108
|
+
let r = "/v1/game/{gamePk}/boxscore";
|
|
2109
|
+
return r = r.replace("{gamePk}", encodeURIComponent(String(t.gamePk))), {
|
|
2110
|
+
path: r,
|
|
1762
2111
|
method: "GET",
|
|
1763
|
-
headers:
|
|
1764
|
-
query:
|
|
1765
|
-
}
|
|
1766
|
-
return new d(o, (s) => H(s));
|
|
2112
|
+
headers: n,
|
|
2113
|
+
query: i
|
|
2114
|
+
};
|
|
1767
2115
|
}
|
|
1768
2116
|
/**
|
|
1769
|
-
* Returns
|
|
1770
|
-
* Retrieves
|
|
2117
|
+
* Returns Boxscore
|
|
2118
|
+
* Retrieves boxscore
|
|
1771
2119
|
*/
|
|
1772
|
-
async
|
|
1773
|
-
|
|
2120
|
+
async getBoxscoreRaw(t, i) {
|
|
2121
|
+
const n = await this.getBoxscoreRequestOpts(t), r = await this.request(n, i);
|
|
2122
|
+
return new o(r, (a) => At(a));
|
|
1774
2123
|
}
|
|
1775
2124
|
/**
|
|
1776
2125
|
* Returns Boxscore
|
|
1777
2126
|
* Retrieves boxscore
|
|
1778
2127
|
*/
|
|
1779
|
-
async
|
|
1780
|
-
|
|
1781
|
-
|
|
2128
|
+
async getBoxscore(t, i) {
|
|
2129
|
+
return await (await this.getBoxscoreRaw(t, i)).value();
|
|
2130
|
+
}
|
|
2131
|
+
/**
|
|
2132
|
+
* Creates request options for getLinescore without sending the request
|
|
2133
|
+
*/
|
|
2134
|
+
async getLinescoreRequestOpts(t) {
|
|
2135
|
+
if (t.gamePk == null)
|
|
2136
|
+
throw new s(
|
|
1782
2137
|
"gamePk",
|
|
1783
|
-
'Required parameter "gamePk" was null or undefined when calling
|
|
2138
|
+
'Required parameter "gamePk" was null or undefined when calling getLinescore().'
|
|
1784
2139
|
);
|
|
1785
|
-
const
|
|
1786
|
-
|
|
1787
|
-
const
|
|
1788
|
-
let
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
path: a,
|
|
2140
|
+
const i = {};
|
|
2141
|
+
t.fields != null && (i.fields = t.fields);
|
|
2142
|
+
const n = {};
|
|
2143
|
+
let r = "/v1/game/{gamePk}/linescore";
|
|
2144
|
+
return r = r.replace("{gamePk}", encodeURIComponent(String(t.gamePk))), {
|
|
2145
|
+
path: r,
|
|
1792
2146
|
method: "GET",
|
|
1793
|
-
headers:
|
|
1794
|
-
query:
|
|
1795
|
-
}
|
|
1796
|
-
return new d(o, (s) => Bi(s));
|
|
2147
|
+
headers: n,
|
|
2148
|
+
query: i
|
|
2149
|
+
};
|
|
1797
2150
|
}
|
|
1798
2151
|
/**
|
|
1799
|
-
* Returns
|
|
1800
|
-
* Retrieves
|
|
2152
|
+
* Returns Linescore
|
|
2153
|
+
* Retrieves linescore
|
|
1801
2154
|
*/
|
|
1802
|
-
async
|
|
1803
|
-
|
|
2155
|
+
async getLinescoreRaw(t, i) {
|
|
2156
|
+
const n = await this.getLinescoreRequestOpts(t), r = await this.request(n, i);
|
|
2157
|
+
return new o(r, (a) => Ri(a));
|
|
1804
2158
|
}
|
|
1805
2159
|
/**
|
|
1806
|
-
* Returns
|
|
1807
|
-
* Retrieves
|
|
2160
|
+
* Returns Linescore
|
|
2161
|
+
* Retrieves linescore
|
|
2162
|
+
*/
|
|
2163
|
+
async getLinescore(t, i) {
|
|
2164
|
+
return await (await this.getLinescoreRaw(t, i)).value();
|
|
2165
|
+
}
|
|
2166
|
+
}
|
|
2167
|
+
class $r extends u {
|
|
2168
|
+
/**
|
|
2169
|
+
* Creates request options for getPerson without sending the request
|
|
2170
|
+
*/
|
|
2171
|
+
async getPersonRequestOpts(t) {
|
|
2172
|
+
if (t.personId == null)
|
|
2173
|
+
throw new s(
|
|
2174
|
+
"personId",
|
|
2175
|
+
'Required parameter "personId" was null or undefined when calling getPerson().'
|
|
2176
|
+
);
|
|
2177
|
+
const i = {};
|
|
2178
|
+
t.fields != null && (i.fields = t.fields), t.hydrate != null && (i.hydrate = t.hydrate);
|
|
2179
|
+
const n = {};
|
|
2180
|
+
let r = "/v1/people/{personId}";
|
|
2181
|
+
return r = r.replace("{personId}", encodeURIComponent(String(t.personId))), {
|
|
2182
|
+
path: r,
|
|
2183
|
+
method: "GET",
|
|
2184
|
+
headers: n,
|
|
2185
|
+
query: i
|
|
2186
|
+
};
|
|
2187
|
+
}
|
|
2188
|
+
/**
|
|
2189
|
+
* Returns a single person by ID. Use the hydrate query parameter to expand related resources (e.g. hydrate=currentTeam,team,stats(group=[hitting],type=[yearByYear],...) includes currentTeam, team on stats, and hitting stats by year).
|
|
2190
|
+
* Retrieves a person (player)
|
|
2191
|
+
*/
|
|
2192
|
+
async getPersonRaw(t, i) {
|
|
2193
|
+
const n = await this.getPersonRequestOpts(t), r = await this.request(n, i);
|
|
2194
|
+
return new o(r, (a) => ji(a));
|
|
2195
|
+
}
|
|
2196
|
+
/**
|
|
2197
|
+
* Returns a single person by ID. Use the hydrate query parameter to expand related resources (e.g. hydrate=currentTeam,team,stats(group=[hitting],type=[yearByYear],...) includes currentTeam, team on stats, and hitting stats by year).
|
|
2198
|
+
* Retrieves a person (player)
|
|
1808
2199
|
*/
|
|
1809
|
-
async
|
|
1810
|
-
|
|
1811
|
-
|
|
2200
|
+
async getPerson(t, i) {
|
|
2201
|
+
return await (await this.getPersonRaw(t, i)).value();
|
|
2202
|
+
}
|
|
2203
|
+
/**
|
|
2204
|
+
* Creates request options for getPersonStats without sending the request
|
|
2205
|
+
*/
|
|
2206
|
+
async getPersonStatsRequestOpts(t) {
|
|
2207
|
+
if (t.personId == null)
|
|
2208
|
+
throw new s(
|
|
2209
|
+
"personId",
|
|
2210
|
+
'Required parameter "personId" was null or undefined when calling getPersonStats().'
|
|
2211
|
+
);
|
|
2212
|
+
if (t.season == null)
|
|
2213
|
+
throw new s(
|
|
2214
|
+
"season",
|
|
2215
|
+
'Required parameter "season" was null or undefined when calling getPersonStats().'
|
|
2216
|
+
);
|
|
2217
|
+
const i = {};
|
|
2218
|
+
t.stats != null && (i.stats = t.stats), t.group != null && (i.group = t.group), t.season != null && (i.season = t.season);
|
|
2219
|
+
const n = {};
|
|
2220
|
+
let r = "/v1/people/{personId}/stats";
|
|
2221
|
+
return r = r.replace("{personId}", encodeURIComponent(String(t.personId))), {
|
|
2222
|
+
path: r,
|
|
2223
|
+
method: "GET",
|
|
2224
|
+
headers: n,
|
|
2225
|
+
query: i
|
|
2226
|
+
};
|
|
2227
|
+
}
|
|
2228
|
+
/**
|
|
2229
|
+
* Returns stats for a person (player) by ID. Use query parameters to request stat types (stats=gameLog,statSplits,statsSingleSeason), group (e.g. group=hitting for batting stats, group=pitching for pitching stats), and season (e.g. season=2022). Splits and stat keys vary by group (hitting vs pitching).
|
|
2230
|
+
* Retrieves a person\'s stats
|
|
2231
|
+
*/
|
|
2232
|
+
async getPersonStatsRaw(t, i) {
|
|
2233
|
+
const n = await this.getPersonStatsRequestOpts(t), r = await this.request(n, i);
|
|
2234
|
+
return new o(r, (a) => nn(a));
|
|
2235
|
+
}
|
|
2236
|
+
/**
|
|
2237
|
+
* Returns stats for a person (player) by ID. Use query parameters to request stat types (stats=gameLog,statSplits,statsSingleSeason), group (e.g. group=hitting for batting stats, group=pitching for pitching stats), and season (e.g. season=2022). Splits and stat keys vary by group (hitting vs pitching).
|
|
2238
|
+
* Retrieves a person\'s stats
|
|
2239
|
+
*/
|
|
2240
|
+
async getPersonStats(t, i) {
|
|
2241
|
+
return await (await this.getPersonStatsRaw(t, i)).value();
|
|
2242
|
+
}
|
|
2243
|
+
}
|
|
2244
|
+
class Yr extends u {
|
|
2245
|
+
/**
|
|
2246
|
+
* Creates request options for getAllSeasons without sending the request
|
|
2247
|
+
*/
|
|
2248
|
+
async getAllSeasonsRequestOpts(t) {
|
|
2249
|
+
if (t.sportId == null)
|
|
2250
|
+
throw new s(
|
|
2251
|
+
"sportId",
|
|
2252
|
+
'Required parameter "sportId" was null or undefined when calling getAllSeasons().'
|
|
2253
|
+
);
|
|
2254
|
+
const i = {};
|
|
2255
|
+
return t.sportId != null && (i.sportId = t.sportId), {
|
|
2256
|
+
path: "/v1/seasons/all",
|
|
2257
|
+
method: "GET",
|
|
2258
|
+
headers: {},
|
|
2259
|
+
query: i
|
|
2260
|
+
};
|
|
2261
|
+
}
|
|
2262
|
+
/**
|
|
2263
|
+
* Returns All Seasons
|
|
2264
|
+
* Retrieves All Seasons over time
|
|
2265
|
+
*/
|
|
2266
|
+
async getAllSeasonsRaw(t, i) {
|
|
2267
|
+
const n = await this.getAllSeasonsRequestOpts(t), r = await this.request(n, i);
|
|
2268
|
+
return new o(r, (a) => $(a));
|
|
2269
|
+
}
|
|
2270
|
+
/**
|
|
2271
|
+
* Returns All Seasons
|
|
2272
|
+
* Retrieves All Seasons over time
|
|
2273
|
+
*/
|
|
2274
|
+
async getAllSeasons(t, i) {
|
|
2275
|
+
return await (await this.getAllSeasonsRaw(t, i)).value();
|
|
2276
|
+
}
|
|
2277
|
+
/**
|
|
2278
|
+
* Creates request options for getDivisions without sending the request
|
|
2279
|
+
*/
|
|
2280
|
+
async getDivisionsRequestOpts(t) {
|
|
2281
|
+
if (t.sportId == null)
|
|
2282
|
+
throw new s(
|
|
1812
2283
|
"sportId",
|
|
1813
2284
|
'Required parameter "sportId" was null or undefined when calling getDivisions().'
|
|
1814
2285
|
);
|
|
1815
|
-
if (
|
|
1816
|
-
throw new
|
|
2286
|
+
if (t.season == null)
|
|
2287
|
+
throw new s(
|
|
1817
2288
|
"season",
|
|
1818
2289
|
'Required parameter "season" was null or undefined when calling getDivisions().'
|
|
1819
2290
|
);
|
|
1820
|
-
const
|
|
1821
|
-
|
|
1822
|
-
const r = {}, o = await this.request({
|
|
2291
|
+
const i = {};
|
|
2292
|
+
return t.sportId != null && (i.sportId = t.sportId), t.season != null && (i.season = t.season), {
|
|
1823
2293
|
path: "/v1/divisions",
|
|
1824
2294
|
method: "GET",
|
|
1825
|
-
headers:
|
|
1826
|
-
query:
|
|
1827
|
-
}
|
|
1828
|
-
return new d(o, (s) => xi(s));
|
|
2295
|
+
headers: {},
|
|
2296
|
+
query: i
|
|
2297
|
+
};
|
|
1829
2298
|
}
|
|
1830
2299
|
/**
|
|
1831
2300
|
* Returns Divisions
|
|
1832
2301
|
* Retrieves Divisions
|
|
1833
2302
|
*/
|
|
1834
|
-
async
|
|
1835
|
-
|
|
2303
|
+
async getDivisionsRaw(t, i) {
|
|
2304
|
+
const n = await this.getDivisionsRequestOpts(t), r = await this.request(n, i);
|
|
2305
|
+
return new o(r, (a) => Qt(a));
|
|
1836
2306
|
}
|
|
1837
2307
|
/**
|
|
1838
|
-
* Returns
|
|
1839
|
-
* Retrieves
|
|
2308
|
+
* Returns Divisions
|
|
2309
|
+
* Retrieves Divisions
|
|
1840
2310
|
*/
|
|
1841
|
-
async
|
|
1842
|
-
|
|
1843
|
-
|
|
2311
|
+
async getDivisions(t, i) {
|
|
2312
|
+
return await (await this.getDivisionsRaw(t, i)).value();
|
|
2313
|
+
}
|
|
2314
|
+
/**
|
|
2315
|
+
* Creates request options for getLeagues without sending the request
|
|
2316
|
+
*/
|
|
2317
|
+
async getLeaguesRequestOpts(t) {
|
|
2318
|
+
if (t.sportId == null)
|
|
2319
|
+
throw new s(
|
|
1844
2320
|
"sportId",
|
|
1845
2321
|
'Required parameter "sportId" was null or undefined when calling getLeagues().'
|
|
1846
2322
|
);
|
|
1847
|
-
if (
|
|
1848
|
-
throw new
|
|
2323
|
+
if (t.season == null)
|
|
2324
|
+
throw new s(
|
|
1849
2325
|
"season",
|
|
1850
2326
|
'Required parameter "season" was null or undefined when calling getLeagues().'
|
|
1851
2327
|
);
|
|
1852
|
-
const
|
|
1853
|
-
|
|
1854
|
-
const r = {}, o = await this.request({
|
|
2328
|
+
const i = {};
|
|
2329
|
+
return t.sportId != null && (i.sportId = t.sportId), t.season != null && (i.season = t.season), {
|
|
1855
2330
|
path: "/v1/leagues",
|
|
1856
2331
|
method: "GET",
|
|
1857
|
-
headers:
|
|
1858
|
-
query:
|
|
1859
|
-
}
|
|
1860
|
-
return new d(o, (s) => ct(s));
|
|
2332
|
+
headers: {},
|
|
2333
|
+
query: i
|
|
2334
|
+
};
|
|
1861
2335
|
}
|
|
1862
2336
|
/**
|
|
1863
2337
|
* Returns Leagues
|
|
1864
2338
|
* Retrieves Leagues
|
|
1865
2339
|
*/
|
|
1866
|
-
async
|
|
1867
|
-
|
|
2340
|
+
async getLeaguesRaw(t, i) {
|
|
2341
|
+
const n = await this.getLeaguesRequestOpts(t), r = await this.request(n, i);
|
|
2342
|
+
return new o(r, (a) => bi(a));
|
|
1868
2343
|
}
|
|
1869
2344
|
/**
|
|
1870
|
-
* Returns
|
|
1871
|
-
* Retrieves
|
|
2345
|
+
* Returns Leagues
|
|
2346
|
+
* Retrieves Leagues
|
|
1872
2347
|
*/
|
|
1873
|
-
async
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
2348
|
+
async getLeagues(t, i) {
|
|
2349
|
+
return await (await this.getLeaguesRaw(t, i)).value();
|
|
2350
|
+
}
|
|
2351
|
+
/**
|
|
2352
|
+
* Creates request options for getSeason without sending the request
|
|
2353
|
+
*/
|
|
2354
|
+
async getSeasonRequestOpts(t) {
|
|
2355
|
+
if (t.sportId == null)
|
|
2356
|
+
throw new s(
|
|
2357
|
+
"sportId",
|
|
2358
|
+
'Required parameter "sportId" was null or undefined when calling getSeason().'
|
|
2359
|
+
);
|
|
2360
|
+
if (t.season == null)
|
|
2361
|
+
throw new s(
|
|
2362
|
+
"season",
|
|
2363
|
+
'Required parameter "season" was null or undefined when calling getSeason().'
|
|
1878
2364
|
);
|
|
1879
|
-
const
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
let a = "/v1/game/{gamePk}/linescore";
|
|
1883
|
-
a = a.replace("{gamePk}", encodeURIComponent(String(i.gamePk)));
|
|
1884
|
-
const o = await this.request({
|
|
1885
|
-
path: a,
|
|
2365
|
+
const i = {};
|
|
2366
|
+
return t.sportId != null && (i.sportId = t.sportId), t.season != null && (i.season = t.season), {
|
|
2367
|
+
path: "/v1/seasons",
|
|
1886
2368
|
method: "GET",
|
|
1887
|
-
headers:
|
|
1888
|
-
query:
|
|
1889
|
-
}
|
|
1890
|
-
return new d(o, (s) => yt(s));
|
|
2369
|
+
headers: {},
|
|
2370
|
+
query: i
|
|
2371
|
+
};
|
|
1891
2372
|
}
|
|
1892
2373
|
/**
|
|
1893
|
-
* Returns
|
|
1894
|
-
* Retrieves
|
|
2374
|
+
* Returns Season
|
|
2375
|
+
* Retrieves season
|
|
1895
2376
|
*/
|
|
1896
|
-
async
|
|
1897
|
-
|
|
2377
|
+
async getSeasonRaw(t, i) {
|
|
2378
|
+
const n = await this.getSeasonRequestOpts(t), r = await this.request(n, i);
|
|
2379
|
+
return new o(r, (a) => $(a));
|
|
1898
2380
|
}
|
|
1899
2381
|
/**
|
|
1900
|
-
* Returns
|
|
1901
|
-
* Retrieves
|
|
2382
|
+
* Returns Season
|
|
2383
|
+
* Retrieves season
|
|
1902
2384
|
*/
|
|
1903
|
-
async
|
|
1904
|
-
|
|
1905
|
-
|
|
2385
|
+
async getSeason(t, i) {
|
|
2386
|
+
return await (await this.getSeasonRaw(t, i)).value();
|
|
2387
|
+
}
|
|
2388
|
+
/**
|
|
2389
|
+
* Creates request options for getTeams without sending the request
|
|
2390
|
+
*/
|
|
2391
|
+
async getTeamsRequestOpts(t) {
|
|
2392
|
+
if (t.sportId == null)
|
|
2393
|
+
throw new s(
|
|
1906
2394
|
"sportId",
|
|
1907
|
-
'Required parameter "sportId" was null or undefined when calling
|
|
2395
|
+
'Required parameter "sportId" was null or undefined when calling getTeams().'
|
|
1908
2396
|
);
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
2397
|
+
if (t.season == null)
|
|
2398
|
+
throw new s(
|
|
2399
|
+
"season",
|
|
2400
|
+
'Required parameter "season" was null or undefined when calling getTeams().'
|
|
2401
|
+
);
|
|
2402
|
+
const i = {};
|
|
2403
|
+
return t.sportId != null && (i.sportId = t.sportId), t.season != null && (i.season = t.season), t.leagueIds != null && (i.leagueIds = t.leagueIds), t.teamId != null && (i.teamId = t.teamId), t.fields != null && (i.fields = t.fields), t.hydrate != null && (i.hydrate = t.hydrate), {
|
|
2404
|
+
path: "/v1/teams",
|
|
1913
2405
|
method: "GET",
|
|
1914
|
-
headers:
|
|
1915
|
-
query:
|
|
1916
|
-
}
|
|
1917
|
-
return new d(o, (s) => Pt(s));
|
|
2406
|
+
headers: {},
|
|
2407
|
+
query: i
|
|
2408
|
+
};
|
|
1918
2409
|
}
|
|
1919
2410
|
/**
|
|
1920
|
-
* Returns
|
|
1921
|
-
* Retrieves
|
|
2411
|
+
* Returns teams for the given sport and season. Use the hydrate query parameter to expand related resources (e.g. hydrate=division includes full division, league, and sport objects on each team).
|
|
2412
|
+
* Retrieves Teams
|
|
1922
2413
|
*/
|
|
1923
|
-
async
|
|
1924
|
-
|
|
2414
|
+
async getTeamsRaw(t, i) {
|
|
2415
|
+
const n = await this.getTeamsRequestOpts(t), r = await this.request(n, i);
|
|
2416
|
+
return new o(r, (a) => On(a));
|
|
1925
2417
|
}
|
|
1926
2418
|
/**
|
|
1927
|
-
* Returns
|
|
1928
|
-
* Retrieves
|
|
2419
|
+
* Returns teams for the given sport and season. Use the hydrate query parameter to expand related resources (e.g. hydrate=division includes full division, league, and sport objects on each team).
|
|
2420
|
+
* Retrieves Teams
|
|
1929
2421
|
*/
|
|
1930
|
-
async
|
|
1931
|
-
|
|
1932
|
-
|
|
2422
|
+
async getTeams(t, i) {
|
|
2423
|
+
return await (await this.getTeamsRaw(t, i)).value();
|
|
2424
|
+
}
|
|
2425
|
+
}
|
|
2426
|
+
class Zr extends u {
|
|
2427
|
+
/**
|
|
2428
|
+
* Creates request options for getSchedule without sending the request
|
|
2429
|
+
*/
|
|
2430
|
+
async getScheduleRequestOpts(t) {
|
|
2431
|
+
if (t.sportId == null)
|
|
2432
|
+
throw new s(
|
|
1933
2433
|
"sportId",
|
|
1934
|
-
'Required parameter "sportId" was null or undefined when calling
|
|
1935
|
-
);
|
|
1936
|
-
if (i.season == null)
|
|
1937
|
-
throw new l(
|
|
1938
|
-
"season",
|
|
1939
|
-
'Required parameter "season" was null or undefined when calling getSeason().'
|
|
2434
|
+
'Required parameter "sportId" was null or undefined when calling getSchedule().'
|
|
1940
2435
|
);
|
|
1941
|
-
const
|
|
1942
|
-
i.sportId != null && (t.sportId = i.
|
|
1943
|
-
|
|
1944
|
-
path: "/v1/seasons",
|
|
2436
|
+
const i = {};
|
|
2437
|
+
return t.gamePk != null && (i.gamePk = t.gamePk), t.sportId != null && (i.sportId = t.sportId), t.gameTypes != null && (i.gameTypes = t.gameTypes), t.startDate != null && (i.startDate = t.startDate), t.endDate != null && (i.endDate = t.endDate), t.fields != null && (i.fields = t.fields), t.hydrate != null && (i.hydrate = t.hydrate), t.leagueIds != null && (i.leagueIds = t.leagueIds), t.teamId != null && (i.teamId = t.teamId), {
|
|
2438
|
+
path: "/v1/schedule",
|
|
1945
2439
|
method: "GET",
|
|
1946
|
-
headers:
|
|
1947
|
-
query:
|
|
1948
|
-
}
|
|
1949
|
-
return new d(o, (s) => H(s));
|
|
2440
|
+
headers: {},
|
|
2441
|
+
query: i
|
|
2442
|
+
};
|
|
1950
2443
|
}
|
|
1951
2444
|
/**
|
|
1952
|
-
* Returns
|
|
1953
|
-
* Retrieves
|
|
2445
|
+
* Returns Schedule
|
|
2446
|
+
* Retrieves schedule
|
|
1954
2447
|
*/
|
|
1955
|
-
async
|
|
1956
|
-
|
|
2448
|
+
async getScheduleRaw(t, i) {
|
|
2449
|
+
const n = await this.getScheduleRequestOpts(t), r = await this.request(n, i);
|
|
2450
|
+
return new o(r, (a) => un(a));
|
|
1957
2451
|
}
|
|
1958
2452
|
/**
|
|
1959
|
-
* Returns
|
|
1960
|
-
* Retrieves
|
|
2453
|
+
* Returns Schedule
|
|
2454
|
+
* Retrieves schedule
|
|
2455
|
+
*/
|
|
2456
|
+
async getSchedule(t, i) {
|
|
2457
|
+
return await (await this.getScheduleRaw(t, i)).value();
|
|
2458
|
+
}
|
|
2459
|
+
}
|
|
2460
|
+
class Kr extends u {
|
|
2461
|
+
/**
|
|
2462
|
+
* Creates request options for getStandings without sending the request
|
|
1961
2463
|
*/
|
|
1962
|
-
async
|
|
1963
|
-
if (
|
|
1964
|
-
throw new
|
|
2464
|
+
async getStandingsRequestOpts(t) {
|
|
2465
|
+
if (t.leagueId == null)
|
|
2466
|
+
throw new s(
|
|
1965
2467
|
"leagueId",
|
|
1966
2468
|
'Required parameter "leagueId" was null or undefined when calling getStandings().'
|
|
1967
2469
|
);
|
|
1968
|
-
if (
|
|
1969
|
-
throw new
|
|
2470
|
+
if (t.season == null)
|
|
2471
|
+
throw new s(
|
|
1970
2472
|
"season",
|
|
1971
2473
|
'Required parameter "season" was null or undefined when calling getStandings().'
|
|
1972
2474
|
);
|
|
1973
|
-
const
|
|
1974
|
-
|
|
1975
|
-
const r = {}, o = await this.request({
|
|
2475
|
+
const i = {};
|
|
2476
|
+
return t.leagueId != null && (i.leagueId = t.leagueId), t.season != null && (i.season = t.season), t.date != null && (i.date = t.date), t.fields != null && (i.fields = t.fields), t.hydrate != null && (i.hydrate = t.hydrate), {
|
|
1976
2477
|
path: "/v1/standings",
|
|
1977
2478
|
method: "GET",
|
|
1978
|
-
headers:
|
|
1979
|
-
query:
|
|
1980
|
-
}
|
|
1981
|
-
return new d(o, (s) => Ci(s));
|
|
2479
|
+
headers: {},
|
|
2480
|
+
query: i
|
|
2481
|
+
};
|
|
1982
2482
|
}
|
|
1983
2483
|
/**
|
|
1984
2484
|
* Returns Standing
|
|
1985
2485
|
* Retrieves Standings
|
|
1986
2486
|
*/
|
|
1987
|
-
async
|
|
1988
|
-
|
|
2487
|
+
async getStandingsRaw(t, i) {
|
|
2488
|
+
const n = await this.getStandingsRequestOpts(t), r = await this.request(n, i);
|
|
2489
|
+
return new o(r, (a) => Zt(a));
|
|
1989
2490
|
}
|
|
1990
2491
|
/**
|
|
1991
|
-
* Returns
|
|
1992
|
-
* Retrieves
|
|
1993
|
-
*/
|
|
1994
|
-
async getTeamsRaw(i, n) {
|
|
1995
|
-
if (i.sportId == null)
|
|
1996
|
-
throw new l(
|
|
1997
|
-
"sportId",
|
|
1998
|
-
'Required parameter "sportId" was null or undefined when calling getTeams().'
|
|
1999
|
-
);
|
|
2000
|
-
if (i.season == null)
|
|
2001
|
-
throw new l(
|
|
2002
|
-
"season",
|
|
2003
|
-
'Required parameter "season" was null or undefined when calling getTeams().'
|
|
2004
|
-
);
|
|
2005
|
-
const t = {};
|
|
2006
|
-
i.sportId != null && (t.sportId = i.sportId), i.season != null && (t.season = i.season), i.leagueIds != null && (t.leagueIds = i.leagueIds), i.teamId != null && (t.teamId = i.teamId), i.fields != null && (t.fields = i.fields), i.hydrate != null && (t.hydrate = i.hydrate);
|
|
2007
|
-
const r = {}, o = await this.request({
|
|
2008
|
-
path: "/v1/teams",
|
|
2009
|
-
method: "GET",
|
|
2010
|
-
headers: r,
|
|
2011
|
-
query: t
|
|
2012
|
-
}, n);
|
|
2013
|
-
return new d(o, (s) => Et(s));
|
|
2014
|
-
}
|
|
2015
|
-
/**
|
|
2016
|
-
* Returns Teams
|
|
2017
|
-
* Retrieves Teams
|
|
2492
|
+
* Returns Standing
|
|
2493
|
+
* Retrieves Standings
|
|
2018
2494
|
*/
|
|
2019
|
-
async
|
|
2020
|
-
return await (await this.
|
|
2495
|
+
async getStandings(t, i) {
|
|
2496
|
+
return await (await this.getStandingsRaw(t, i)).value();
|
|
2021
2497
|
}
|
|
2022
2498
|
}
|
|
2023
2499
|
export {
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2500
|
+
se as BASE_PATH,
|
|
2501
|
+
u as BaseAPI,
|
|
2502
|
+
k as BattingStatsFromJSON,
|
|
2503
|
+
me as BattingStatsFromJSONTyped,
|
|
2504
|
+
J as BattingStatsToJSON,
|
|
2505
|
+
pe as BattingStatsToJSONTyped,
|
|
2506
|
+
Jn as BlobApiResponse,
|
|
2507
|
+
At as BoxscoreFromJSON,
|
|
2508
|
+
Ht as BoxscoreFromJSONTyped,
|
|
2509
|
+
H as BoxscoreTeamFromJSON,
|
|
2510
|
+
Rt as BoxscoreTeamFromJSONTyped,
|
|
2511
|
+
W as BoxscoreTeamToJSON,
|
|
2512
|
+
Ft as BoxscoreTeamToJSONTyped,
|
|
2513
|
+
Gt as BoxscoreTeamsFromJSON,
|
|
2514
|
+
Lt as BoxscoreTeamsFromJSONTyped,
|
|
2515
|
+
Et as BoxscoreTeamsToJSON,
|
|
2516
|
+
Ct as BoxscoreTeamsToJSONTyped,
|
|
2517
|
+
tr as BoxscoreToJSON,
|
|
2518
|
+
Wt as BoxscoreToJSONTyped,
|
|
2519
|
+
bn as COLLECTION_FORMATS,
|
|
2520
|
+
x as CodeDescriptionFromJSON,
|
|
2521
|
+
xt as CodeDescriptionFromJSONTyped,
|
|
2522
|
+
q as CodeDescriptionToJSON,
|
|
2523
|
+
qt as CodeDescriptionToJSONTyped,
|
|
2524
|
+
oe as Configuration,
|
|
2525
|
+
j as ContentFromJSON,
|
|
2526
|
+
vt as ContentFromJSONTyped,
|
|
2527
|
+
ee as ContentToJSON,
|
|
2528
|
+
Ut as ContentToJSONTyped,
|
|
2529
|
+
le as DefaultConfig,
|
|
2530
|
+
E as DivisionFromJSON,
|
|
2531
|
+
mt as DivisionFromJSONTyped,
|
|
2532
|
+
Mt as DivisionStandingsFromJSON,
|
|
2533
|
+
Vt as DivisionStandingsFromJSONTyped,
|
|
2534
|
+
Zt as DivisionStandingsListFromJSON,
|
|
2535
|
+
Kt as DivisionStandingsListFromJSONTyped,
|
|
2536
|
+
sr as DivisionStandingsListToJSON,
|
|
2537
|
+
zt as DivisionStandingsListToJSONTyped,
|
|
2538
|
+
$t as DivisionStandingsToJSON,
|
|
2539
|
+
Yt as DivisionStandingsToJSONTyped,
|
|
2540
|
+
C as DivisionToJSON,
|
|
2541
|
+
pt as DivisionToJSONTyped,
|
|
2542
|
+
Qt as DivisionsFromJSON,
|
|
2543
|
+
Xt as DivisionsFromJSONTyped,
|
|
2544
|
+
lr as DivisionsToJSON,
|
|
2545
|
+
_t as DivisionsToJSONTyped,
|
|
2546
|
+
fe as FetchError,
|
|
2547
|
+
I as FieldingStatsFromJSON,
|
|
2548
|
+
be as FieldingStatsFromJSONTyped,
|
|
2549
|
+
B as FieldingStatsToJSON,
|
|
2550
|
+
Pe as FieldingStatsToJSONTyped,
|
|
2551
|
+
mi as GameFromJSON,
|
|
2552
|
+
pi as GameFromJSONTyped,
|
|
2553
|
+
Oe as GameOfficialFromJSON,
|
|
2554
|
+
Ne as GameOfficialFromJSONTyped,
|
|
2555
|
+
Te as GameOfficialToJSON,
|
|
2556
|
+
De as GameOfficialToJSONTyped,
|
|
2557
|
+
h as GameStatusCode,
|
|
2558
|
+
jt as GameStatusCodeFromJSON,
|
|
2559
|
+
ei as GameStatusCodeFromJSONTyped,
|
|
2560
|
+
ur as GameStatusCodeToJSON,
|
|
2561
|
+
cr as GameStatusCodeToJSONTyped,
|
|
2562
|
+
ti as GameStatusFromJSON,
|
|
2563
|
+
ii as GameStatusFromJSONTyped,
|
|
2564
|
+
ni as GameStatusToJSON,
|
|
2565
|
+
ri as GameStatusToJSONTyped,
|
|
2566
|
+
v as GameTeamFromJSON,
|
|
2567
|
+
ai as GameTeamFromJSONTyped,
|
|
2568
|
+
U as GameTeamToJSON,
|
|
2569
|
+
si as GameTeamToJSONTyped,
|
|
2570
|
+
oi as GameTeamsFromJSON,
|
|
2571
|
+
li as GameTeamsFromJSONTyped,
|
|
2572
|
+
di as GameTeamsToJSON,
|
|
2573
|
+
ui as GameTeamsToJSONTyped,
|
|
2574
|
+
gi as GameToJSON,
|
|
2575
|
+
Si as GameToJSONTyped,
|
|
2576
|
+
y as GameType,
|
|
2577
|
+
ci as GameTypeFromJSON,
|
|
2578
|
+
fi as GameTypeFromJSONTyped,
|
|
2579
|
+
Sr as GameTypeToJSON,
|
|
2580
|
+
hr as GameTypeToJSONTyped,
|
|
2581
|
+
Vr as GamesApi,
|
|
2582
|
+
Oi as InningFromJSON,
|
|
2583
|
+
Ni as InningFromJSONTyped,
|
|
2584
|
+
Ti as InningToJSON,
|
|
2585
|
+
Di as InningToJSONTyped,
|
|
2586
|
+
o as JSONApiResponse,
|
|
2587
|
+
nt as LeagueDatesFromJSON,
|
|
2588
|
+
rt as LeagueDatesFromJSONTyped,
|
|
2589
|
+
at as LeagueDatesToJSON,
|
|
2590
|
+
st as LeagueDatesToJSONTyped,
|
|
2591
|
+
m as LeagueFromJSON,
|
|
2592
|
+
ot as LeagueFromJSONTyped,
|
|
2593
|
+
z as LeagueRecordFromJSON,
|
|
2594
|
+
Nt as LeagueRecordFromJSONTyped,
|
|
2595
|
+
Q as LeagueRecordToJSON,
|
|
2596
|
+
Tt as LeagueRecordToJSONTyped,
|
|
2597
|
+
p as LeagueToJSON,
|
|
2598
|
+
lt as LeagueToJSONTyped,
|
|
2599
|
+
bi as LeaguesFromJSON,
|
|
2600
|
+
Pi as LeaguesFromJSONTyped,
|
|
2601
|
+
Dr as LeaguesToJSON,
|
|
2602
|
+
wi as LeaguesToJSONTyped,
|
|
2603
|
+
Ri as LinescoreFromJSON,
|
|
2604
|
+
Fi as LinescoreFromJSONTyped,
|
|
2605
|
+
O as LinescoreTeamFromJSON,
|
|
2606
|
+
hi as LinescoreTeamFromJSONTyped,
|
|
2607
|
+
N as LinescoreTeamToJSON,
|
|
2608
|
+
yi as LinescoreTeamToJSONTyped,
|
|
2609
|
+
ki as LinescoreTeamsFromJSON,
|
|
2610
|
+
Ji as LinescoreTeamsFromJSONTyped,
|
|
2611
|
+
Ii as LinescoreTeamsToJSON,
|
|
2612
|
+
Bi as LinescoreTeamsToJSONTyped,
|
|
2613
|
+
wr as LinescoreToJSON,
|
|
2614
|
+
Gi as LinescoreToJSONTyped,
|
|
2615
|
+
X as ModelRecordFromJSON,
|
|
2616
|
+
Dt as ModelRecordFromJSONTyped,
|
|
2617
|
+
_ as ModelRecordToJSON,
|
|
2618
|
+
bt as ModelRecordToJSONTyped,
|
|
2619
|
+
ge as OfficialFromJSON,
|
|
2620
|
+
Se as OfficialFromJSONTyped,
|
|
2621
|
+
he as OfficialToJSON,
|
|
2622
|
+
ye as OfficialToJSONTyped,
|
|
2623
|
+
$r as PeopleApi,
|
|
2624
|
+
ji as PeopleResponseFromJSON,
|
|
2625
|
+
en as PeopleResponseFromJSONTyped,
|
|
2626
|
+
Lr as PeopleResponseToJSON,
|
|
2627
|
+
tn as PeopleResponseToJSONTyped,
|
|
2628
|
+
zi as PersonFromJSON,
|
|
2629
|
+
Qi as PersonFromJSONTyped,
|
|
2630
|
+
vi as PersonStatSplitFromJSON,
|
|
2631
|
+
Ui as PersonStatSplitFromJSONTyped,
|
|
2632
|
+
Hi as PersonStatSplitGameFromJSON,
|
|
2633
|
+
Wi as PersonStatSplitGameFromJSONTyped,
|
|
2634
|
+
xi as PersonStatSplitGameToJSON,
|
|
2635
|
+
qi as PersonStatSplitGameToJSONTyped,
|
|
2636
|
+
Li as PersonStatSplitPlayerFromJSON,
|
|
2637
|
+
Ei as PersonStatSplitPlayerFromJSONTyped,
|
|
2638
|
+
Ci as PersonStatSplitPlayerToJSON,
|
|
2639
|
+
Ai as PersonStatSplitPlayerToJSONTyped,
|
|
2640
|
+
Mi as PersonStatSplitToJSON,
|
|
2641
|
+
Vi as PersonStatSplitToJSONTyped,
|
|
2642
|
+
te as PersonStatsItemFromJSON,
|
|
2643
|
+
Zi as PersonStatsItemFromJSONTyped,
|
|
2644
|
+
ie as PersonStatsItemToJSON,
|
|
2645
|
+
Ki as PersonStatsItemToJSONTyped,
|
|
2646
|
+
M as PersonStatsItemTypeFromJSON,
|
|
2647
|
+
$i as PersonStatsItemTypeFromJSONTyped,
|
|
2648
|
+
V as PersonStatsItemTypeToJSON,
|
|
2649
|
+
Yi as PersonStatsItemTypeToJSONTyped,
|
|
2650
|
+
nn as PersonStatsResponseFromJSON,
|
|
2651
|
+
rn as PersonStatsResponseFromJSONTyped,
|
|
2652
|
+
Cr as PersonStatsResponseToJSON,
|
|
2653
|
+
an as PersonStatsResponseToJSONTyped,
|
|
2654
|
+
Xi as PersonToJSON,
|
|
2655
|
+
_i as PersonToJSONTyped,
|
|
2656
|
+
R as PitchingStatsFromJSON,
|
|
2657
|
+
we as PitchingStatsFromJSONTyped,
|
|
2658
|
+
F as PitchingStatsToJSON,
|
|
2659
|
+
ke as PitchingStatsToJSONTyped,
|
|
2660
|
+
je as PlayerFromJSON,
|
|
2661
|
+
et as PlayerFromJSONTyped,
|
|
2662
|
+
Fe as PlayerGameStatusFromJSON,
|
|
2663
|
+
Ge as PlayerGameStatusFromJSONTyped,
|
|
2664
|
+
Le as PlayerGameStatusToJSON,
|
|
2665
|
+
Ee as PlayerGameStatusToJSONTyped,
|
|
2666
|
+
He as PlayerPersonFromJSON,
|
|
2667
|
+
We as PlayerPersonFromJSONTyped,
|
|
2668
|
+
xe as PlayerPersonToJSON,
|
|
2669
|
+
qe as PlayerPersonToJSONTyped,
|
|
2670
|
+
ve as PlayerPositionFromJSON,
|
|
2671
|
+
Ue as PlayerPositionFromJSONTyped,
|
|
2672
|
+
Me as PlayerPositionToJSON,
|
|
2673
|
+
Ve as PlayerPositionToJSONTyped,
|
|
2674
|
+
Je as PlayerSeasonStatsFromJSON,
|
|
2675
|
+
Ie as PlayerSeasonStatsFromJSONTyped,
|
|
2676
|
+
Be as PlayerSeasonStatsToJSON,
|
|
2677
|
+
Re as PlayerSeasonStatsToJSONTyped,
|
|
2678
|
+
ze as PlayerStatsFromJSON,
|
|
2679
|
+
Qe as PlayerStatsFromJSONTyped,
|
|
2680
|
+
Xe as PlayerStatsToJSON,
|
|
2681
|
+
_e as PlayerStatsToJSONTyped,
|
|
2682
|
+
$e as PlayerStatusFromJSON,
|
|
2683
|
+
Ye as PlayerStatusFromJSONTyped,
|
|
2684
|
+
Ze as PlayerStatusToJSON,
|
|
2685
|
+
Ke as PlayerStatusToJSONTyped,
|
|
2686
|
+
tt as PlayerToJSON,
|
|
2687
|
+
it as PlayerToJSONTyped,
|
|
2688
|
+
G as PositionFromJSON,
|
|
2689
|
+
Ce as PositionFromJSONTyped,
|
|
2690
|
+
L as PositionToJSON,
|
|
2691
|
+
Ae as PositionToJSONTyped,
|
|
2692
|
+
Yr as ReferenceApi,
|
|
2693
|
+
s as RequiredError,
|
|
2694
|
+
ce as ResponseError,
|
|
2695
|
+
Zr as ScheduleApi,
|
|
2696
|
+
sn as ScheduleDayFromJSON,
|
|
2697
|
+
on as ScheduleDayFromJSONTyped,
|
|
2698
|
+
ln as ScheduleDayToJSON,
|
|
2699
|
+
dn as ScheduleDayToJSONTyped,
|
|
2700
|
+
un as ScheduleFromJSON,
|
|
2701
|
+
cn as ScheduleFromJSONTyped,
|
|
2702
|
+
Wr as ScheduleToJSON,
|
|
2703
|
+
fn as ScheduleToJSONTyped,
|
|
2704
|
+
mn as SeasonFromJSON,
|
|
2705
|
+
pn as SeasonFromJSONTyped,
|
|
2706
|
+
gn as SeasonToJSON,
|
|
2707
|
+
Sn as SeasonToJSONTyped,
|
|
2708
|
+
$ as SeasonsFromJSON,
|
|
2709
|
+
hn as SeasonsFromJSONTyped,
|
|
2710
|
+
vr as SeasonsToJSON,
|
|
2711
|
+
yn as SeasonsToJSONTyped,
|
|
2712
|
+
D as SportFromJSON,
|
|
2713
|
+
dt as SportFromJSONTyped,
|
|
2714
|
+
b as SportToJSON,
|
|
2715
|
+
ut as SportToJSONTyped,
|
|
2716
|
+
Kr as StandingsApi,
|
|
2717
|
+
St as StreakFromJSON,
|
|
2718
|
+
ht as StreakFromJSONTyped,
|
|
2719
|
+
gt as StreakStreakTypeEnum,
|
|
2720
|
+
yt as StreakToJSON,
|
|
2721
|
+
Ot as StreakToJSONTyped,
|
|
2722
|
+
c as TeamFromJSON,
|
|
2723
|
+
Pt as TeamFromJSONTyped,
|
|
2724
|
+
kt as TeamStatsFromJSON,
|
|
2725
|
+
Jt as TeamStatsFromJSONTyped,
|
|
2726
|
+
It as TeamStatsToJSON,
|
|
2727
|
+
Bt as TeamStatsToJSONTyped,
|
|
2728
|
+
f as TeamToJSON,
|
|
2729
|
+
wt as TeamToJSONTyped,
|
|
2730
|
+
On as TeamsFromJSON,
|
|
2731
|
+
Nn as TeamsFromJSONTyped,
|
|
2732
|
+
Mr as TeamsToJSON,
|
|
2733
|
+
Tn as TeamsToJSONTyped,
|
|
2734
|
+
In as TextApiResponse,
|
|
2735
|
+
P as VenueFromJSON,
|
|
2736
|
+
ct as VenueFromJSONTyped,
|
|
2737
|
+
w as VenueToJSON,
|
|
2738
|
+
ft as VenueToJSONTyped,
|
|
2739
|
+
kn as VoidApiResponse,
|
|
2740
|
+
wn as canConsumeForm,
|
|
2741
|
+
Pn as exists,
|
|
2742
|
+
Bn as instanceOfBattingStats,
|
|
2743
|
+
er as instanceOfBoxscore,
|
|
2744
|
+
_n as instanceOfBoxscoreTeam,
|
|
2745
|
+
jn as instanceOfBoxscoreTeams,
|
|
2746
|
+
ir as instanceOfCodeDescription,
|
|
2747
|
+
nr as instanceOfContent,
|
|
2748
|
+
Yn as instanceOfDivision,
|
|
2749
|
+
rr as instanceOfDivisionStandings,
|
|
2750
|
+
ar as instanceOfDivisionStandingsList,
|
|
2751
|
+
or as instanceOfDivisions,
|
|
2752
|
+
Gn as instanceOfFieldingStats,
|
|
2753
|
+
yr as instanceOfGame,
|
|
2754
|
+
Fn as instanceOfGameOfficial,
|
|
2755
|
+
fr as instanceOfGameStatus,
|
|
2756
|
+
dr as instanceOfGameStatusCode,
|
|
2757
|
+
mr as instanceOfGameTeam,
|
|
2758
|
+
pr as instanceOfGameTeams,
|
|
2759
|
+
gr as instanceOfGameType,
|
|
2760
|
+
Nr as instanceOfInning,
|
|
2761
|
+
Mn as instanceOfLeague,
|
|
2762
|
+
Un as instanceOfLeagueDates,
|
|
2763
|
+
Kn as instanceOfLeagueRecord,
|
|
2764
|
+
Tr as instanceOfLeagues,
|
|
2765
|
+
Pr as instanceOfLinescore,
|
|
2766
|
+
Or as instanceOfLinescoreTeam,
|
|
2767
|
+
br as instanceOfLinescoreTeams,
|
|
2768
|
+
zn as instanceOfModelRecord,
|
|
2769
|
+
Rn as instanceOfOfficial,
|
|
2770
|
+
Gr as instanceOfPeopleResponse,
|
|
2771
|
+
Fr as instanceOfPerson,
|
|
2772
|
+
Ir as instanceOfPersonStatSplit,
|
|
2773
|
+
Jr as instanceOfPersonStatSplitGame,
|
|
2774
|
+
kr as instanceOfPersonStatSplitPlayer,
|
|
2775
|
+
Rr as instanceOfPersonStatsItem,
|
|
2776
|
+
Br as instanceOfPersonStatsItemType,
|
|
2777
|
+
Er as instanceOfPersonStatsResponse,
|
|
2778
|
+
Ln as instanceOfPitchingStats,
|
|
2779
|
+
vn as instanceOfPlayer,
|
|
2780
|
+
Cn as instanceOfPlayerGameStatus,
|
|
2781
|
+
Hn as instanceOfPlayerPerson,
|
|
2782
|
+
Wn as instanceOfPlayerPosition,
|
|
2783
|
+
En as instanceOfPlayerSeasonStats,
|
|
2784
|
+
qn as instanceOfPlayerStats,
|
|
2785
|
+
xn as instanceOfPlayerStatus,
|
|
2786
|
+
An as instanceOfPosition,
|
|
2787
|
+
Hr as instanceOfSchedule,
|
|
2788
|
+
Ar as instanceOfScheduleDay,
|
|
2789
|
+
xr as instanceOfSeason,
|
|
2790
|
+
qr as instanceOfSeasons,
|
|
2791
|
+
Vn as instanceOfSport,
|
|
2792
|
+
Zn as instanceOfStreak,
|
|
2793
|
+
Qn as instanceOfTeam,
|
|
2794
|
+
Xn as instanceOfTeamStats,
|
|
2795
|
+
Ur as instanceOfTeams,
|
|
2796
|
+
$n as instanceOfVenue,
|
|
2797
|
+
K as mapValues,
|
|
2798
|
+
Y as querystring
|
|
2269
2799
|
};
|