@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.
Files changed (4) hide show
  1. package/README.md +37 -0
  2. package/dist/index.d.ts +1204 -305
  3. package/dist/index.js +1549 -1019
  4. package/package.json +5 -4
package/dist/index.js CHANGED
@@ -1,16 +1,16 @@
1
- var z = Object.defineProperty;
2
- var Q = (e, i, n) => i in e ? z(e, i, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[i] = n;
3
- var u = (e, i, n) => Q(e, typeof i != "symbol" ? i + "" : i, n);
4
- const X = "https://statsapi.mlb.com/api".replace(/\/+$/, "");
5
- class Z {
6
- constructor(i = {}) {
7
- this.configuration = i;
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(i) {
10
- this.configuration = i;
9
+ set config(t) {
10
+ this.configuration = t;
11
11
  }
12
12
  get basePath() {
13
- return this.configuration.basePath != null ? this.configuration.basePath : X;
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 || U;
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 i = this.configuration.apiKey;
32
- if (i)
33
- return typeof i == "function" ? i : () => i;
31
+ const t = this.configuration.apiKey;
32
+ if (t)
33
+ return typeof t == "function" ? t : () => t;
34
34
  }
35
35
  get accessToken() {
36
- const i = this.configuration.accessToken;
37
- if (i)
38
- return typeof i == "function" ? i : async () => i;
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 _ = new Z(), y = class y {
48
- constructor(i = _) {
49
- u(this, "middleware");
50
- u(this, "fetchApi", async (i, n) => {
51
- let t = { url: i, init: n };
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 && (t = await a.pre({
53
+ a.pre && (n = await a.pre({
54
54
  fetch: this.fetchApi,
55
- ...t
56
- }) || t);
55
+ ...n
56
+ }) || n);
57
57
  let r;
58
58
  try {
59
- r = await (this.configuration.fetchApi || fetch)(t.url, t.init);
59
+ r = await (this.configuration.fetchApi || fetch)(n.url, n.init);
60
60
  } catch (a) {
61
- for (const o of this.middleware)
62
- o.onError && (r = await o.onError({
61
+ for (const g of this.middleware)
62
+ g.onError && (r = await g.onError({
63
63
  fetch: this.fetchApi,
64
- url: t.url,
65
- init: t.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 te(a, "The request failed and the interceptors did not return an alternative response") : a;
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: t.url,
76
- init: t.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 = i, this.middleware = i.middleware;
81
+ this.configuration = t, this.middleware = t.middleware;
82
82
  }
83
- withMiddleware(...i) {
84
- const n = this.clone();
85
- return n.middleware = n.middleware.concat(...i), n;
83
+ withMiddleware(...t) {
84
+ const i = this.clone();
85
+ return i.middleware = i.middleware.concat(...t), i;
86
86
  }
87
- withPreMiddleware(...i) {
88
- const n = i.map((t) => ({ pre: t }));
89
- return this.withMiddleware(...n);
87
+ withPreMiddleware(...t) {
88
+ const i = t.map((n) => ({ pre: n }));
89
+ return this.withMiddleware(...i);
90
90
  }
91
- withPostMiddleware(...i) {
92
- const n = i.map((t) => ({ post: t }));
93
- return this.withMiddleware(...n);
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(i) {
106
- return i ? y.jsonRegex.test(i) : !1;
105
+ isJsonMime(t) {
106
+ return t ? T.jsonRegex.test(t) : !1;
107
107
  }
108
- async request(i, n) {
109
- const { url: t, init: r } = await this.createFetchParams(i, n), a = await this.fetchApi(t, r);
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 ie(a, "Response returned an error code");
113
- }
114
- async createFetchParams(i, n) {
115
- let t = this.configuration.basePath + i.path;
116
- i.query !== void 0 && Object.keys(i.query).length !== 0 && (t += "?" + this.configuration.queryParamsStringify(i.query));
117
- const r = Object.assign({}, this.configuration.headers, i.headers);
118
- Object.keys(r).forEach((E) => r[E] === void 0 ? delete r[E] : {});
119
- const a = typeof n == "function" ? n : async () => n, o = {
120
- method: i.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: i.body,
122
+ body: t.body,
123
123
  credentials: this.configuration.credentials
124
- }, s = {
125
- ...o,
124
+ }, l = {
125
+ ...g,
126
126
  ...await a({
127
- init: o,
128
- context: i
127
+ init: g,
128
+ context: t
129
129
  })
130
130
  };
131
- let m;
132
- ee(s.body) || s.body instanceof URLSearchParams || j(s.body) ? m = s.body : this.isJsonMime(r["Content-Type"]) ? m = JSON.stringify(s.body) : m = s.body;
133
- const q = {
134
- ...s,
135
- body: m
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: t, init: q };
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 i = this.constructor, n = new i(this.configuration);
145
- return n.middleware = this.middleware.slice(), n;
144
+ const t = this.constructor, i = new t(this.configuration);
145
+ return i.middleware = this.middleware.slice(), i;
146
146
  }
147
147
  };
148
- u(y, "jsonRegex", new RegExp("^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$", "i"));
149
- let D = y;
150
- function j(e) {
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 ee(e) {
153
+ function ue(e) {
154
154
  return typeof FormData < "u" && e instanceof FormData;
155
155
  }
156
- class ie extends Error {
157
- constructor(n, t) {
158
- super(t);
159
- u(this, "name", "ResponseError");
160
- this.response = n;
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 te extends Error {
164
- constructor(n, t) {
165
- super(t);
166
- u(this, "name", "FetchError");
167
- this.cause = n;
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 l extends Error {
171
- constructor(n, t) {
172
- super(t);
173
- u(this, "name", "RequiredError");
174
- this.field = n;
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 xt = {
177
+ const bn = {
178
178
  csv: ",",
179
179
  ssv: " ",
180
180
  tsv: " ",
181
181
  pipes: "|"
182
182
  };
183
- function U(e, i = "") {
184
- return Object.keys(e).map((n) => v(n, e[n], i)).filter((n) => n.length > 0).join("&");
185
- }
186
- function v(e, i, n = "") {
187
- const t = n + (n.length ? `[${e}]` : e);
188
- if (i instanceof Array) {
189
- const r = i.map((a) => encodeURIComponent(String(a))).join(`&${encodeURIComponent(t)}=`);
190
- return `${encodeURIComponent(t)}=${r}`;
191
- }
192
- if (i instanceof Set) {
193
- const r = Array.from(i);
194
- return v(e, r, n);
195
- }
196
- return i instanceof Date ? `${encodeURIComponent(t)}=${encodeURIComponent(i.toISOString())}` : i instanceof Object ? U(i, t) : `${encodeURIComponent(t)}=${encodeURIComponent(String(i))}`;
197
- }
198
- function Ht(e, i) {
199
- const n = e[i];
200
- return n != null;
201
- }
202
- function V(e, i) {
203
- const n = {};
204
- for (const t of Object.keys(e))
205
- n[t] = i(e[t]);
206
- return n;
207
- }
208
- function Ut(e) {
209
- for (const i of e)
210
- if (i.contentType === "multipart/form-data")
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 d {
215
- constructor(i, n = (t) => t) {
216
- this.raw = i, this.transformer = n;
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 vt {
223
- constructor(i) {
224
- this.raw = i;
222
+ class kn {
223
+ constructor(t) {
224
+ this.raw = t;
225
225
  }
226
226
  async value() {
227
227
  }
228
228
  }
229
- class Vt {
230
- constructor(i) {
231
- this.raw = i;
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 $t {
238
- constructor(i) {
239
- this.raw = i;
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 Mt(e) {
245
+ function Bn(e) {
246
246
  return !0;
247
247
  }
248
- function w(e) {
249
- return ne(e);
248
+ function k(e) {
249
+ return me(e);
250
250
  }
251
- function ne(e, i) {
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 P(e) {
289
- return re(e, !1);
288
+ function J(e) {
289
+ return pe(e, !1);
290
290
  }
291
- function re(e, i = !1) {
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 Kt(e) {
328
+ function Rn(e) {
329
329
  return !0;
330
330
  }
331
- function ae(e) {
332
- return se(e);
331
+ function ge(e) {
332
+ return Se(e);
333
333
  }
334
- function se(e, i) {
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 oe(e) {
342
- return le(e, !1);
341
+ function he(e) {
342
+ return ye(e, !1);
343
343
  }
344
- function le(e, i = !1) {
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 Yt(e) {
351
+ function Fn(e) {
352
352
  return !0;
353
353
  }
354
- function de(e) {
355
- return ue(e);
354
+ function Oe(e) {
355
+ return Ne(e);
356
356
  }
357
- function ue(e, i) {
357
+ function Ne(e, t) {
358
358
  return e == null ? e : {
359
- official: e.official == null ? void 0 : ae(e.official),
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 ce(e) {
364
- return fe(e, !1);
363
+ function Te(e) {
364
+ return De(e, !1);
365
365
  }
366
- function fe(e, i = !1) {
366
+ function De(e, t = !1) {
367
367
  return e == null ? e : {
368
- official: oe(e.official),
368
+ official: he(e.official),
369
369
  officialType: e.officialType
370
370
  };
371
371
  }
372
- function qt(e) {
372
+ function Gn(e) {
373
373
  return !0;
374
374
  }
375
- function k(e) {
376
- return me(e);
375
+ function I(e) {
376
+ return be(e);
377
377
  }
378
- function me(e, i) {
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 I(e) {
392
- return ge(e, !1);
391
+ function B(e) {
392
+ return Pe(e, !1);
393
393
  }
394
- function ge(e, i = !1) {
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 zt(e) {
407
+ function Ln(e) {
408
408
  return !0;
409
409
  }
410
- function B(e) {
411
- return pe(e);
410
+ function R(e) {
411
+ return we(e);
412
412
  }
413
- function pe(e, i) {
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 J(e) {
466
- return Se(e, !1);
465
+ function F(e) {
466
+ return ke(e, !1);
467
467
  }
468
- function Se(e, i = !1) {
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 Qt(e) {
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 he(e) {
524
- return ye(e);
523
+ function Je(e) {
524
+ return Ie(e);
525
525
  }
526
- function ye(e, i) {
526
+ function Ie(e, t) {
527
527
  return e == null ? e : {
528
- batting: w(e.batting),
529
- pitching: B(e.pitching),
530
- fielding: k(e.fielding)
528
+ batting: k(e.batting),
529
+ pitching: R(e.pitching),
530
+ fielding: I(e.fielding)
531
531
  };
532
532
  }
533
- function Oe(e) {
534
- return Te(e, !1);
533
+ function Be(e) {
534
+ return Re(e, !1);
535
535
  }
536
- function Te(e, i = !1) {
536
+ function Re(e, t = !1) {
537
537
  return e == null ? e : {
538
- batting: P(e.batting),
539
- pitching: J(e.pitching),
540
- fielding: I(e.fielding)
538
+ batting: J(e.batting),
539
+ pitching: F(e.pitching),
540
+ fielding: B(e.fielding)
541
541
  };
542
542
  }
543
- function Xt(e) {
543
+ function Cn(e) {
544
544
  return !0;
545
545
  }
546
- function De(e) {
547
- return Ne(e);
546
+ function Fe(e) {
547
+ return Ge(e);
548
548
  }
549
- function Ne(e, i) {
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 be(e) {
558
- return we(e, !1);
557
+ function Le(e) {
558
+ return Ee(e, !1);
559
559
  }
560
- function we(e, i = !1) {
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 Zt(e) {
568
+ function An(e) {
569
569
  return !0;
570
570
  }
571
- function Pe(e) {
572
- return ke(e);
571
+ function G(e) {
572
+ return Ce(e);
573
573
  }
574
- function ke(e, i) {
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 Ie(e) {
583
- return Be(e, !1);
582
+ function L(e) {
583
+ return Ae(e, !1);
584
584
  }
585
- function Be(e, i = !1) {
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 _t(e) {
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 Je(e) {
597
- return Ge(e);
596
+ function He(e) {
597
+ return We(e);
598
598
  }
599
- function Ge(e, i) {
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 Fe(e) {
608
- return Re(e, !1);
607
+ function xe(e) {
608
+ return qe(e, !1);
609
609
  }
610
- function Re(e, i = !1) {
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 jt(e) {
618
+ function Wn(e) {
619
619
  return !0;
620
620
  }
621
- function Le(e) {
622
- return Ee(e);
621
+ function ve(e) {
622
+ return Ue(e);
623
623
  }
624
- function Ee(e, i) {
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 Ce(e) {
633
- return Ae(e, !1);
632
+ function Me(e) {
633
+ return Ve(e, !1);
634
634
  }
635
- function Ae(e, i = !1) {
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 en(e) {
643
+ function xn(e) {
644
644
  return !0;
645
645
  }
646
- function We(e) {
647
- return xe(e);
646
+ function $e(e) {
647
+ return Ye(e);
648
648
  }
649
- function xe(e, i) {
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 He(e) {
656
- return Ue(e, !1);
655
+ function Ze(e) {
656
+ return Ke(e, !1);
657
657
  }
658
- function Ue(e, i = !1) {
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 tn(e) {
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 ve(e) {
668
- return Ve(e);
667
+ function ze(e) {
668
+ return Qe(e);
669
669
  }
670
- function Ve(e, i) {
670
+ function Qe(e, t) {
671
671
  return e == null ? e : {
672
- batting: w(e.batting),
673
- pitching: B(e.pitching),
674
- fielding: k(e.fielding)
672
+ batting: k(e.batting),
673
+ pitching: R(e.pitching),
674
+ fielding: I(e.fielding)
675
675
  };
676
676
  }
677
- function $e(e) {
678
- return Me(e, !1);
677
+ function Xe(e) {
678
+ return _e(e, !1);
679
679
  }
680
- function Me(e, i = !1) {
680
+ function _e(e, t = !1) {
681
681
  return e == null ? e : {
682
- batting: P(e.batting),
683
- pitching: J(e.pitching),
684
- fielding: I(e.fielding)
682
+ batting: J(e.batting),
683
+ pitching: F(e.pitching),
684
+ fielding: B(e.fielding)
685
685
  };
686
686
  }
687
- function nn(e) {
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 Ke(e) {
691
- return Ye(e);
690
+ function je(e) {
691
+ return et(e);
692
692
  }
693
- function Ye(e, i) {
693
+ function et(e, t) {
694
694
  return e == null ? e : {
695
- person: Je(e.person),
695
+ person: He(e.person),
696
696
  jerseyNumber: e.jerseyNumber == null ? void 0 : e.jerseyNumber,
697
- position: Le(e.position),
698
- status: e.status == null ? void 0 : We(e.status),
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: ve(e.stats),
702
- seasonStats: he(e.seasonStats),
703
- gameStatus: e.gameStatus == null ? void 0 : De(e.gameStatus),
704
- allPositions: e.allPositions == null ? void 0 : e.allPositions.map(Pe),
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 qe(e) {
711
- return ze(e, !1);
710
+ function tt(e) {
711
+ return it(e, !1);
712
712
  }
713
- function ze(e, i = !1) {
713
+ function it(e, t = !1) {
714
714
  return e == null ? e : {
715
- person: Fe(e.person),
715
+ person: xe(e.person),
716
716
  jerseyNumber: e.jerseyNumber,
717
- position: Ce(e.position),
718
- status: He(e.status),
717
+ position: Me(e.position),
718
+ status: Ze(e.status),
719
719
  parentTeamId: e.parentTeamId,
720
720
  battingOrder: e.battingOrder,
721
- stats: $e(e.stats),
722
- seasonStats: Oe(e.seasonStats),
723
- gameStatus: be(e.gameStatus),
724
- allPositions: e.allPositions == null ? void 0 : e.allPositions.map(Ie),
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 rn(e) {
730
+ function Un(e) {
731
731
  return !0;
732
732
  }
733
- function Qe(e) {
734
- return Xe(e);
733
+ function nt(e) {
734
+ return rt(e);
735
735
  }
736
- function Xe(e, i) {
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
- offseasonEndDate: e.offseasonEndDate == null ? void 0 : e.offseasonEndDate,
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 Ze(e) {
751
- return _e(e, !1);
760
+ function at(e) {
761
+ return st(e, !1);
752
762
  }
753
- function _e(e, i = !1) {
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
- offseasonEndDate: e.offseasonEndDate,
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 an(e) {
768
- return !(!("id" in e) || e.id === void 0 || !("name" in e) || e.name === void 0);
787
+ function Mn(e) {
788
+ return !(!("id" in e) || e.id === void 0);
769
789
  }
770
- function c(e) {
771
- return je(e);
790
+ function m(e) {
791
+ return ot(e);
772
792
  }
773
- function je(e, i) {
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
- seasonDateInfo: e.seasonDateInfo == null ? void 0 : Qe(e.seasonDateInfo),
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 f(e) {
794
- return ei(e, !1);
816
+ function p(e) {
817
+ return lt(e, !1);
795
818
  }
796
- function ei(e, i = !1) {
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
- seasonDateInfo: Ze(e.seasonDateInfo),
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 sn(e) {
842
+ function Vn(e) {
817
843
  return !(!("id" in e) || e.id === void 0);
818
844
  }
819
- function G(e) {
820
- return ii(e);
845
+ function D(e) {
846
+ return dt(e);
821
847
  }
822
- function ii(e, i) {
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 F(e) {
834
- return ti(e, !1);
859
+ function b(e) {
860
+ return ut(e, !1);
835
861
  }
836
- function ti(e, i = !1) {
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 on(e) {
848
- return !(!("id" in e) || e.id === void 0 || !("name" in e) || e.name === void 0);
873
+ function $n(e) {
874
+ return !(!("id" in e) || e.id === void 0);
849
875
  }
850
- function N(e) {
851
- return ni(e);
876
+ function P(e) {
877
+ return ct(e);
852
878
  }
853
- function ni(e, i) {
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 b(e) {
863
- return ri(e, !1);
888
+ function w(e) {
889
+ return ft(e, !1);
864
890
  }
865
- function ri(e, i = !1) {
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 ln(e) {
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 R(e) {
878
- return ai(e);
903
+ function E(e) {
904
+ return mt(e);
879
905
  }
880
- function ai(e, i) {
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 : c(e.league),
889
- sport: e.sport == null ? void 0 : G(e.sport),
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 L(e) {
897
- return si(e, !1);
922
+ function C(e) {
923
+ return pt(e, !1);
898
924
  }
899
- function si(e, i = !1) {
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: f(e.league),
908
- sport: F(e.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 oi = /* @__PURE__ */ ((e) => (e.Losing = "losses", e.Winning = "wins", e))(oi || {});
916
- function dn(e) {
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 li(e) {
920
- return di(e);
945
+ function St(e) {
946
+ return ht(e);
921
947
  }
922
- function di(e, i) {
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 ui(e) {
928
- return ci(e, !1);
953
+ function yt(e) {
954
+ return Ot(e, !1);
929
955
  }
930
- function ci(e, i = !1) {
956
+ function Ot(e, t = !1) {
931
957
  return e == null ? e : {
932
958
  streakType: e.streakType
933
959
  };
934
960
  }
935
- function un(e) {
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 $(e) {
939
- return fi(e);
964
+ function z(e) {
965
+ return Nt(e);
940
966
  }
941
- function fi(e, i) {
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 M(e) {
950
- return mi(e, !1);
975
+ function Q(e) {
976
+ return Tt(e, !1);
951
977
  }
952
- function mi(e, i = !1) {
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 cn(e) {
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 K(e) {
964
- return gi(e);
989
+ function X(e) {
990
+ return Dt(e);
965
991
  }
966
- function gi(e, i) {
992
+ function Dt(e, t) {
967
993
  return e == null ? e : {
968
- team: O(e.team),
994
+ team: c(e.team),
969
995
  season: e.season,
970
- streak: li(e.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: $(e.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 Y(e) {
1003
- return pi(e, !1);
1028
+ function _(e) {
1029
+ return bt(e, !1);
1004
1030
  }
1005
- function pi(e, i = !1) {
1031
+ function bt(e, t = !1) {
1006
1032
  return e == null ? e : {
1007
- team: T(e.team),
1033
+ team: f(e.team),
1008
1034
  season: e.season,
1009
- streak: ui(e.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: M(e.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 fn(e) {
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 O(e) {
1045
- return Si(e);
1070
+ function c(e) {
1071
+ return Pt(e);
1046
1072
  }
1047
- function Si(e, i) {
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 : N(e.venue),
1055
- springVenue: e.springVenue == null ? void 0 : N(e.springVenue),
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 : c(e.league),
1063
- springLeague: e.springLeague == null ? void 0 : c(e.springLeague),
1064
- division: e.division == null ? void 0 : R(e.division),
1065
- sport: e.sport == null ? void 0 : G(e.sport),
1066
- record: e.record == null ? void 0 : K(e.record),
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 T(e) {
1074
- return hi(e, !1);
1099
+ function f(e) {
1100
+ return wt(e, !1);
1075
1101
  }
1076
- function hi(e, i = !1) {
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: b(e.venue),
1084
- springVenue: b(e.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: f(e.league),
1092
- springLeague: f(e.springLeague),
1093
- division: L(e.division),
1094
- sport: F(e.sport),
1095
- record: Y(e.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 mn(e) {
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 yi(e) {
1106
- return Oi(e);
1131
+ function kt(e) {
1132
+ return Jt(e);
1107
1133
  }
1108
- function Oi(e, i) {
1134
+ function Jt(e, t) {
1109
1135
  return e == null ? e : {
1110
- batting: w(e.batting),
1111
- pitching: B(e.pitching),
1112
- fielding: k(e.fielding)
1136
+ batting: k(e.batting),
1137
+ pitching: R(e.pitching),
1138
+ fielding: I(e.fielding)
1113
1139
  };
1114
1140
  }
1115
- function Ti(e) {
1116
- return Di(e, !1);
1141
+ function It(e) {
1142
+ return Bt(e, !1);
1117
1143
  }
1118
- function Di(e, i = !1) {
1144
+ function Bt(e, t = !1) {
1119
1145
  return e == null ? e : {
1120
- batting: P(e.batting),
1121
- pitching: J(e.pitching),
1122
- fielding: I(e.fielding)
1146
+ batting: J(e.batting),
1147
+ pitching: F(e.pitching),
1148
+ fielding: B(e.fielding)
1123
1149
  };
1124
1150
  }
1125
- function gn(e) {
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 C(e) {
1129
- return Ni(e);
1154
+ function H(e) {
1155
+ return Rt(e);
1130
1156
  }
1131
- function Ni(e, i) {
1157
+ function Rt(e, t) {
1132
1158
  return e == null ? e : {
1133
- team: O(e.team),
1134
- teamStats: yi(e.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: V(e.players, Ke)
1165
+ players: K(e.players, je)
1140
1166
  };
1141
1167
  }
1142
- function A(e) {
1143
- return bi(e, !1);
1168
+ function W(e) {
1169
+ return Ft(e, !1);
1144
1170
  }
1145
- function bi(e, i = !1) {
1171
+ function Ft(e, t = !1) {
1146
1172
  return e == null ? e : {
1147
- team: T(e.team),
1148
- teamStats: Ti(e.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: V(e.players, qe)
1179
+ players: K(e.players, tt)
1154
1180
  };
1155
1181
  }
1156
- function pn(e) {
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 wi(e) {
1160
- return Pi(e);
1185
+ function Gt(e) {
1186
+ return Lt(e);
1161
1187
  }
1162
- function Pi(e, i) {
1188
+ function Lt(e, t) {
1163
1189
  return e == null ? e : {
1164
- away: C(e.away),
1165
- home: C(e.home)
1190
+ away: H(e.away),
1191
+ home: H(e.home)
1166
1192
  };
1167
1193
  }
1168
- function ki(e) {
1169
- return Ii(e, !1);
1194
+ function Et(e) {
1195
+ return Ct(e, !1);
1170
1196
  }
1171
- function Ii(e, i = !1) {
1197
+ function Ct(e, t = !1) {
1172
1198
  return e == null ? e : {
1173
- away: A(e.away),
1174
- home: A(e.home)
1199
+ away: W(e.away),
1200
+ home: W(e.home)
1175
1201
  };
1176
1202
  }
1177
- function Sn(e) {
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 Bi(e) {
1181
- return Ji(e);
1206
+ function At(e) {
1207
+ return Ht(e);
1182
1208
  }
1183
- function Ji(e, i) {
1209
+ function Ht(e, t) {
1184
1210
  return e == null ? e : {
1185
- teams: wi(e.teams),
1186
- officials: e.officials.map(de)
1211
+ teams: Gt(e.teams),
1212
+ officials: e.officials.map(Oe)
1187
1213
  };
1188
1214
  }
1189
- function hn(e) {
1190
- return Gi(e, !1);
1215
+ function tr(e) {
1216
+ return Wt(e, !1);
1191
1217
  }
1192
- function Gi(e, i = !1) {
1218
+ function Wt(e, t = !1) {
1193
1219
  return e == null ? e : {
1194
- teams: ki(e.teams),
1195
- officials: e.officials.map(ce)
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 yn(e) {
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 Fi(e) {
1202
- return Ri(e);
1267
+ function Mt(e) {
1268
+ return Vt(e);
1203
1269
  }
1204
- function Ri(e, i) {
1270
+ function Vt(e, t) {
1205
1271
  return e == null ? e : {
1206
1272
  standingsType: e.standingsType == null ? void 0 : e.standingsType,
1207
- league: c(e.league),
1208
- division: R(e.division),
1209
- sport: G(e.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(K)
1277
+ teamRecords: e.teamRecords.map(X)
1212
1278
  };
1213
1279
  }
1214
- function Li(e) {
1215
- return Ei(e, !1);
1280
+ function $t(e) {
1281
+ return Yt(e, !1);
1216
1282
  }
1217
- function Ei(e, i = !1) {
1283
+ function Yt(e, t = !1) {
1218
1284
  return e == null ? e : {
1219
1285
  standingsType: e.standingsType,
1220
- league: f(e.league),
1221
- division: L(e.division),
1222
- sport: F(e.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(Y)
1290
+ teamRecords: e.teamRecords.map(_)
1225
1291
  };
1226
1292
  }
1227
- function On(e) {
1293
+ function ar(e) {
1228
1294
  return !(!("records" in e) || e.records === void 0);
1229
1295
  }
1230
- function Ci(e) {
1231
- return Ai(e);
1296
+ function Zt(e) {
1297
+ return Kt(e);
1232
1298
  }
1233
- function Ai(e, i) {
1299
+ function Kt(e, t) {
1234
1300
  return e == null ? e : {
1235
- records: e.records.map(Fi)
1301
+ records: e.records.map(Mt)
1236
1302
  };
1237
1303
  }
1238
- function Tn(e) {
1239
- return Wi(e, !1);
1304
+ function sr(e) {
1305
+ return zt(e, !1);
1240
1306
  }
1241
- function Wi(e, i = !1) {
1307
+ function zt(e, t = !1) {
1242
1308
  return e == null ? e : {
1243
- records: e.records.map(Li)
1309
+ records: e.records.map($t)
1244
1310
  };
1245
1311
  }
1246
- function Dn(e) {
1312
+ function or(e) {
1247
1313
  return !(!("divisions" in e) || e.divisions === void 0);
1248
1314
  }
1249
- function xi(e) {
1250
- return Hi(e);
1315
+ function Qt(e) {
1316
+ return Xt(e);
1251
1317
  }
1252
- function Hi(e, i) {
1318
+ function Xt(e, t) {
1253
1319
  return e == null ? e : {
1254
- divisions: e.divisions.map(R)
1320
+ divisions: e.divisions.map(E)
1255
1321
  };
1256
1322
  }
1257
- function Nn(e) {
1258
- return Ui(e, !1);
1323
+ function lr(e) {
1324
+ return _t(e, !1);
1259
1325
  }
1260
- function Ui(e, i = !1) {
1326
+ function _t(e, t = !1) {
1261
1327
  return e == null ? e : {
1262
- divisions: e.divisions.map(L)
1328
+ divisions: e.divisions.map(C)
1263
1329
  };
1264
1330
  }
1265
- var g = /* @__PURE__ */ ((e) => (e.Final = "F", e.Postponed = "D", e.Scheduled = "S", e.InProgress = "I", e.Pregame = "P", e.GameOver = "O", e.Canceled = "C", e))(g || {});
1266
- function bn(e) {
1267
- for (const i in g)
1268
- if (Object.prototype.hasOwnProperty.call(g, i) && g[i] === e)
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 vi(e) {
1273
- return Vi(e);
1338
+ function jt(e) {
1339
+ return ei(e);
1274
1340
  }
1275
- function Vi(e, i) {
1341
+ function ei(e, t) {
1276
1342
  return e;
1277
1343
  }
1278
- function wn(e) {
1344
+ function ur(e) {
1279
1345
  return e;
1280
1346
  }
1281
- function Pn(e, i) {
1347
+ function cr(e, t) {
1282
1348
  return e;
1283
1349
  }
1284
- function kn(e) {
1350
+ function fr(e) {
1285
1351
  return !0;
1286
1352
  }
1287
- function $i(e) {
1288
- return Mi(e);
1353
+ function ti(e) {
1354
+ return ii(e);
1289
1355
  }
1290
- function Mi(e, i) {
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 : vi(e.codedGameState),
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 Ki(e) {
1301
- return Yi(e, !1);
1366
+ function ni(e) {
1367
+ return ri(e, !1);
1302
1368
  }
1303
- function Yi(e, i = !1) {
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 In(e) {
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 W(e) {
1317
- return qi(e);
1382
+ function v(e) {
1383
+ return ai(e);
1318
1384
  }
1319
- function qi(e, i) {
1385
+ function ai(e, t) {
1320
1386
  return e == null ? e : {
1321
- leagueRecord: $(e.leagueRecord),
1387
+ leagueRecord: z(e.leagueRecord),
1322
1388
  score: e.score,
1323
- team: O(e.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 x(e) {
1330
- return zi(e, !1);
1395
+ function U(e) {
1396
+ return si(e, !1);
1331
1397
  }
1332
- function zi(e, i = !1) {
1398
+ function si(e, t = !1) {
1333
1399
  return e == null ? e : {
1334
- leagueRecord: M(e.leagueRecord),
1400
+ leagueRecord: Q(e.leagueRecord),
1335
1401
  score: e.score,
1336
- team: T(e.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 Bn(e) {
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 Qi(e) {
1346
- return Xi(e);
1411
+ function oi(e) {
1412
+ return li(e);
1347
1413
  }
1348
- function Xi(e, i) {
1414
+ function li(e, t) {
1349
1415
  return e == null ? e : {
1350
- away: W(e.away),
1351
- home: W(e.home)
1416
+ away: v(e.away),
1417
+ home: v(e.home)
1352
1418
  };
1353
1419
  }
1354
- function Zi(e) {
1355
- return _i(e, !1);
1420
+ function di(e) {
1421
+ return ui(e, !1);
1356
1422
  }
1357
- function _i(e, i = !1) {
1423
+ function ui(e, t = !1) {
1358
1424
  return e == null ? e : {
1359
- away: x(e.away),
1360
- home: x(e.home)
1425
+ away: U(e.away),
1426
+ home: U(e.home)
1361
1427
  };
1362
1428
  }
1363
- var p = /* @__PURE__ */ ((e) => (e.Exhibition = "E", e.SpringTraining = "S", e.Regular = "R", e.WildCardSeries = "F", e.DivisionSeries = "D", e.LeagueChampionshipSeries = "L", e.WorldSeries = "W", e))(p || {});
1364
- function Jn(e) {
1365
- for (const i in p)
1366
- if (Object.prototype.hasOwnProperty.call(p, i) && p[i] === e)
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 ji(e) {
1371
- return et(e);
1436
+ function ci(e) {
1437
+ return fi(e);
1372
1438
  }
1373
- function et(e, i) {
1439
+ function fi(e, t) {
1374
1440
  return e;
1375
1441
  }
1376
- function Gn(e) {
1442
+ function Sr(e) {
1377
1443
  return e;
1378
1444
  }
1379
- function Fn(e, i) {
1445
+ function hr(e, t) {
1380
1446
  return e;
1381
1447
  }
1382
- function Rn(e) {
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 || !("gameNumber" in e) || e.gameNumber === void 0 || !("gamesInSeries" in e) || e.gamesInSeries === void 0 || !("seriesGameNumber" in e) || e.seriesGameNumber === 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 it(e) {
1386
- return tt(e);
1451
+ function mi(e) {
1452
+ return pi(e);
1387
1453
  }
1388
- function tt(e, i) {
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: ji(e.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: $i(e.status),
1402
- teams: Qi(e.teams),
1403
- venue: e.venue == null ? void 0 : N(e.venue),
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 nt(e) {
1426
- return rt(e, !1);
1492
+ function gi(e) {
1493
+ return Si(e, !1);
1427
1494
  }
1428
- function rt(e, i = !1) {
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: Ki(e.status),
1442
- teams: Zi(e.teams),
1443
- venue: b(e.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 Ln(e) {
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 S(e) {
1469
- return at(e);
1536
+ function O(e) {
1537
+ return hi(e);
1470
1538
  }
1471
- function at(e, i) {
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 h(e) {
1480
- return st(e, !1);
1547
+ function N(e) {
1548
+ return yi(e, !1);
1481
1549
  }
1482
- function st(e, i = !1) {
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 En(e) {
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 ot(e) {
1494
- return lt(e);
1561
+ function Oi(e) {
1562
+ return Ni(e);
1495
1563
  }
1496
- function lt(e, i) {
1564
+ function Ni(e, t) {
1497
1565
  return e == null ? e : {
1498
1566
  num: e.num,
1499
1567
  ordinalNum: e.ordinalNum,
1500
- home: S(e.home),
1501
- away: S(e.away)
1568
+ home: O(e.home),
1569
+ away: O(e.away)
1502
1570
  };
1503
1571
  }
1504
- function dt(e) {
1505
- return ut(e, !1);
1572
+ function Ti(e) {
1573
+ return Di(e, !1);
1506
1574
  }
1507
- function ut(e, i = !1) {
1575
+ function Di(e, t = !1) {
1508
1576
  return e == null ? e : {
1509
1577
  num: e.num,
1510
1578
  ordinalNum: e.ordinalNum,
1511
- home: h(e.home),
1512
- away: h(e.away)
1579
+ home: N(e.home),
1580
+ away: N(e.away)
1513
1581
  };
1514
1582
  }
1515
- function Cn(e) {
1583
+ function Tr(e) {
1516
1584
  return !(!("leagues" in e) || e.leagues === void 0);
1517
1585
  }
1518
- function ct(e) {
1519
- return ft(e);
1586
+ function bi(e) {
1587
+ return Pi(e);
1520
1588
  }
1521
- function ft(e, i) {
1589
+ function Pi(e, t) {
1522
1590
  return e == null ? e : {
1523
- leagues: e.leagues.map(c)
1591
+ leagues: e.leagues.map(m)
1524
1592
  };
1525
1593
  }
1526
- function An(e) {
1527
- return mt(e, !1);
1594
+ function Dr(e) {
1595
+ return wi(e, !1);
1528
1596
  }
1529
- function mt(e, i = !1) {
1597
+ function wi(e, t = !1) {
1530
1598
  return e == null ? e : {
1531
- leagues: e.leagues.map(f)
1599
+ leagues: e.leagues.map(p)
1532
1600
  };
1533
1601
  }
1534
- function Wn(e) {
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 gt(e) {
1538
- return pt(e);
1605
+ function ki(e) {
1606
+ return Ji(e);
1539
1607
  }
1540
- function pt(e, i) {
1608
+ function Ji(e, t) {
1541
1609
  return e == null ? e : {
1542
- away: S(e.away),
1543
- home: S(e.home)
1610
+ away: O(e.away),
1611
+ home: O(e.home)
1544
1612
  };
1545
1613
  }
1546
- function St(e) {
1547
- return ht(e, !1);
1614
+ function Ii(e) {
1615
+ return Bi(e, !1);
1548
1616
  }
1549
- function ht(e, i = !1) {
1617
+ function Bi(e, t = !1) {
1550
1618
  return e == null ? e : {
1551
- away: h(e.away),
1552
- home: h(e.home)
1619
+ away: N(e.away),
1620
+ home: N(e.home)
1553
1621
  };
1554
1622
  }
1555
- function xn(e) {
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 yt(e) {
1559
- return Ot(e);
1626
+ function Ri(e) {
1627
+ return Fi(e);
1560
1628
  }
1561
- function Ot(e, i) {
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(ot),
1570
- teams: gt(e.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 Hn(e) {
1577
- return Tt(e, !1);
1644
+ function wr(e) {
1645
+ return Gi(e, !1);
1578
1646
  }
1579
- function Tt(e, i = !1) {
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(dt),
1588
- teams: St(e.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 Un(e) {
1595
- return !(!("games" in e) || e.games === void 0);
1662
+ function kr(e) {
1663
+ return !0;
1596
1664
  }
1597
- function Dt(e) {
1598
- return Nt(e);
1665
+ function Li(e) {
1666
+ return Ei(e);
1599
1667
  }
1600
- function Nt(e, i) {
1668
+ function Ei(e, t) {
1601
1669
  return e == null ? e : {
1602
- date: e.date == null ? void 0 : e.date,
1603
- totalItems: e.totalItems == null ? void 0 : e.totalItems,
1604
- totalEvents: e.totalEvents == null ? void 0 : e.totalEvents,
1605
- totalGames: e.totalGames == null ? void 0 : e.totalGames,
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 bt(e) {
1611
- return wt(e, !1);
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 wt(e, i = !1) {
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(nt)
1968
+ games: e.games.map(gi)
1621
1969
  };
1622
1970
  }
1623
- function vn(e) {
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 Pt(e) {
1627
- return kt(e);
1974
+ function un(e) {
1975
+ return cn(e);
1628
1976
  }
1629
- function kt(e, i) {
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(Dt)
1983
+ dates: e.dates.map(sn)
1636
1984
  };
1637
1985
  }
1638
- function Vn(e) {
1639
- return It(e, !1);
1986
+ function Wr(e) {
1987
+ return fn(e, !1);
1640
1988
  }
1641
- function It(e, i = !1) {
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(bt)
1995
+ dates: e.dates.map(ln)
1648
1996
  };
1649
1997
  }
1650
- function $n(e) {
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 Bt(e) {
1654
- return Jt(e);
2001
+ function mn(e) {
2002
+ return pn(e);
1655
2003
  }
1656
- function Jt(e, i) {
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
- allStartDate: e.allStartDate == null ? void 0 : e.allStartDate,
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
- offSeasonStartDate: e.offSeasonStartDate == null ? void 0 : e.offSeasonStartDate,
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 Gt(e) {
1682
- return Ft(e, !1);
2029
+ function gn(e) {
2030
+ return Sn(e, !1);
1683
2031
  }
1684
- function Ft(e, i = !1) {
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
- allStartDate: e.allStartDate,
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
- offSeasonStartDate: e.offSeasonStartDate,
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 Mn(e) {
2057
+ function qr(e) {
1710
2058
  return !(!("seasons" in e) || e.seasons === void 0);
1711
2059
  }
1712
- function H(e) {
1713
- return Rt(e);
2060
+ function $(e) {
2061
+ return hn(e);
1714
2062
  }
1715
- function Rt(e, i) {
2063
+ function hn(e, t) {
1716
2064
  return e == null ? e : {
1717
- seasons: e.seasons.map(Bt)
2065
+ seasons: e.seasons.map(mn)
1718
2066
  };
1719
2067
  }
1720
- function Kn(e) {
1721
- return Lt(e, !1);
2068
+ function vr(e) {
2069
+ return yn(e, !1);
1722
2070
  }
1723
- function Lt(e, i = !1) {
2071
+ function yn(e, t = !1) {
1724
2072
  return e == null ? e : {
1725
- seasons: e.seasons.map(Gt)
2073
+ seasons: e.seasons.map(gn)
1726
2074
  };
1727
2075
  }
1728
- function Yn(e) {
2076
+ function Ur(e) {
1729
2077
  return !(!("teams" in e) || e.teams === void 0);
1730
2078
  }
1731
- function Et(e) {
1732
- return Ct(e);
2079
+ function On(e) {
2080
+ return Nn(e);
1733
2081
  }
1734
- function Ct(e, i) {
2082
+ function Nn(e, t) {
1735
2083
  return e == null ? e : {
1736
- teams: e.teams.map(O)
2084
+ teams: e.teams.map(c)
1737
2085
  };
1738
2086
  }
1739
- function qn(e) {
1740
- return At(e, !1);
2087
+ function Mr(e) {
2088
+ return Tn(e, !1);
1741
2089
  }
1742
- function At(e, i = !1) {
2090
+ function Tn(e, t = !1) {
1743
2091
  return e == null ? e : {
1744
- teams: e.teams.map(T)
2092
+ teams: e.teams.map(f)
1745
2093
  };
1746
2094
  }
1747
- class zn extends D {
2095
+ class Vr extends u {
1748
2096
  /**
1749
- * Returns All Seasons
1750
- * Retrieves All Seasons over time
2097
+ * Creates request options for getBoxscore without sending the request
1751
2098
  */
1752
- async getAllSeasonsRaw(i, n) {
1753
- if (i.sportId == null)
1754
- throw new l(
1755
- "sportId",
1756
- 'Required parameter "sportId" was null or undefined when calling getAllSeasons().'
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 t = {};
1759
- i.sportId != null && (t.sportId = i.sportId);
1760
- const r = {}, o = await this.request({
1761
- path: "/v1/seasons/all",
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: r,
1764
- query: t
1765
- }, n);
1766
- return new d(o, (s) => H(s));
2112
+ headers: n,
2113
+ query: i
2114
+ };
1767
2115
  }
1768
2116
  /**
1769
- * Returns All Seasons
1770
- * Retrieves All Seasons over time
2117
+ * Returns Boxscore
2118
+ * Retrieves boxscore
1771
2119
  */
1772
- async getAllSeasons(i, n) {
1773
- return await (await this.getAllSeasonsRaw(i, n)).value();
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 getBoxscoreRaw(i, n) {
1780
- if (i.gamePk == null)
1781
- throw new l(
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 getBoxscore().'
2138
+ 'Required parameter "gamePk" was null or undefined when calling getLinescore().'
1784
2139
  );
1785
- const t = {};
1786
- i.fields != null && (t.fields = i.fields);
1787
- const r = {};
1788
- let a = "/v1/game/{gamePk}/boxscore";
1789
- a = a.replace("{gamePk}", encodeURIComponent(String(i.gamePk)));
1790
- const o = await this.request({
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: r,
1794
- query: t
1795
- }, n);
1796
- return new d(o, (s) => Bi(s));
2147
+ headers: n,
2148
+ query: i
2149
+ };
1797
2150
  }
1798
2151
  /**
1799
- * Returns Boxscore
1800
- * Retrieves boxscore
2152
+ * Returns Linescore
2153
+ * Retrieves linescore
1801
2154
  */
1802
- async getBoxscore(i, n) {
1803
- return await (await this.getBoxscoreRaw(i, n)).value();
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 Divisions
1807
- * Retrieves Divisions
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 getDivisionsRaw(i, n) {
1810
- if (i.sportId == null)
1811
- throw new l(
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 (i.season == null)
1816
- throw new l(
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 t = {};
1821
- i.sportId != null && (t.sportId = i.sportId), i.season != null && (t.season = i.season);
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: r,
1826
- query: t
1827
- }, n);
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 getDivisions(i, n) {
1835
- return await (await this.getDivisionsRaw(i, n)).value();
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 Leagues
1839
- * Retrieves Leagues
2308
+ * Returns Divisions
2309
+ * Retrieves Divisions
1840
2310
  */
1841
- async getLeaguesRaw(i, n) {
1842
- if (i.sportId == null)
1843
- throw new l(
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 (i.season == null)
1848
- throw new l(
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 t = {};
1853
- i.sportId != null && (t.sportId = i.sportId), i.season != null && (t.season = i.season);
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: r,
1858
- query: t
1859
- }, n);
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 getLeagues(i, n) {
1867
- return await (await this.getLeaguesRaw(i, n)).value();
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 Linescore
1871
- * Retrieves linescore
2345
+ * Returns Leagues
2346
+ * Retrieves Leagues
1872
2347
  */
1873
- async getLinescoreRaw(i, n) {
1874
- if (i.gamePk == null)
1875
- throw new l(
1876
- "gamePk",
1877
- 'Required parameter "gamePk" was null or undefined when calling getLinescore().'
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 t = {};
1880
- i.fields != null && (t.fields = i.fields);
1881
- const r = {};
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: r,
1888
- query: t
1889
- }, n);
1890
- return new d(o, (s) => yt(s));
2369
+ headers: {},
2370
+ query: i
2371
+ };
1891
2372
  }
1892
2373
  /**
1893
- * Returns Linescore
1894
- * Retrieves linescore
2374
+ * Returns Season
2375
+ * Retrieves season
1895
2376
  */
1896
- async getLinescore(i, n) {
1897
- return await (await this.getLinescoreRaw(i, n)).value();
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 Schedule
1901
- * Retrieves schedule
2382
+ * Returns Season
2383
+ * Retrieves season
1902
2384
  */
1903
- async getScheduleRaw(i, n) {
1904
- if (i.sportId == null)
1905
- throw new l(
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 getSchedule().'
2395
+ 'Required parameter "sportId" was null or undefined when calling getTeams().'
1908
2396
  );
1909
- const t = {};
1910
- i.gamePk != null && (t.gamePk = i.gamePk), i.sportId != null && (t.sportId = i.sportId), i.gameTypes != null && (t.gameTypes = i.gameTypes), i.startDate != null && (t.startDate = i.startDate), i.endDate != null && (t.endDate = i.endDate), i.fields != null && (t.fields = i.fields), i.hydrate != null && (t.hydrate = i.hydrate), i.leagueIds != null && (t.leagueIds = i.leagueIds), i.teamId != null && (t.teamId = i.teamId);
1911
- const r = {}, o = await this.request({
1912
- path: "/v1/schedule",
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: r,
1915
- query: t
1916
- }, n);
1917
- return new d(o, (s) => Pt(s));
2406
+ headers: {},
2407
+ query: i
2408
+ };
1918
2409
  }
1919
2410
  /**
1920
- * Returns Schedule
1921
- * Retrieves schedule
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 getSchedule(i, n) {
1924
- return await (await this.getScheduleRaw(i, n)).value();
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 Season
1928
- * Retrieves season
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 getSeasonRaw(i, n) {
1931
- if (i.sportId == null)
1932
- throw new l(
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 getSeason().'
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 t = {};
1942
- i.sportId != null && (t.sportId = i.sportId), i.season != null && (t.season = i.season);
1943
- const r = {}, o = await this.request({
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: r,
1947
- query: t
1948
- }, n);
1949
- return new d(o, (s) => H(s));
2440
+ headers: {},
2441
+ query: i
2442
+ };
1950
2443
  }
1951
2444
  /**
1952
- * Returns Season
1953
- * Retrieves season
2445
+ * Returns Schedule
2446
+ * Retrieves schedule
1954
2447
  */
1955
- async getSeason(i, n) {
1956
- return await (await this.getSeasonRaw(i, n)).value();
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 Standing
1960
- * Retrieves Standings
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 getStandingsRaw(i, n) {
1963
- if (i.leagueId == null)
1964
- throw new l(
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 (i.season == null)
1969
- throw new l(
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 t = {};
1974
- i.leagueId != null && (t.leagueId = i.leagueId), i.season != null && (t.season = i.season), i.date != null && (t.date = i.date), i.fields != null && (t.fields = i.fields), i.hydrate != null && (t.hydrate = i.hydrate);
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: r,
1979
- query: t
1980
- }, n);
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 getStandings(i, n) {
1988
- return await (await this.getStandingsRaw(i, n)).value();
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 Teams
1992
- * Retrieves Teams
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 getTeams(i, n) {
2020
- return await (await this.getTeamsRaw(i, n)).value();
2495
+ async getStandings(t, i) {
2496
+ return await (await this.getStandingsRaw(t, i)).value();
2021
2497
  }
2022
2498
  }
2023
2499
  export {
2024
- X as BASE_PATH,
2025
- D as BaseAPI,
2026
- w as BattingStatsFromJSON,
2027
- ne as BattingStatsFromJSONTyped,
2028
- P as BattingStatsToJSON,
2029
- re as BattingStatsToJSONTyped,
2030
- Vt as BlobApiResponse,
2031
- Bi as BoxscoreFromJSON,
2032
- Ji as BoxscoreFromJSONTyped,
2033
- C as BoxscoreTeamFromJSON,
2034
- Ni as BoxscoreTeamFromJSONTyped,
2035
- A as BoxscoreTeamToJSON,
2036
- bi as BoxscoreTeamToJSONTyped,
2037
- wi as BoxscoreTeamsFromJSON,
2038
- Pi as BoxscoreTeamsFromJSONTyped,
2039
- ki as BoxscoreTeamsToJSON,
2040
- Ii as BoxscoreTeamsToJSONTyped,
2041
- hn as BoxscoreToJSON,
2042
- Gi as BoxscoreToJSONTyped,
2043
- xt as COLLECTION_FORMATS,
2044
- Z as Configuration,
2045
- _ as DefaultConfig,
2046
- R as DivisionFromJSON,
2047
- ai as DivisionFromJSONTyped,
2048
- Fi as DivisionStandingsFromJSON,
2049
- Ri as DivisionStandingsFromJSONTyped,
2050
- Ci as DivisionStandingsListFromJSON,
2051
- Ai as DivisionStandingsListFromJSONTyped,
2052
- Tn as DivisionStandingsListToJSON,
2053
- Wi as DivisionStandingsListToJSONTyped,
2054
- Li as DivisionStandingsToJSON,
2055
- Ei as DivisionStandingsToJSONTyped,
2056
- L as DivisionToJSON,
2057
- si as DivisionToJSONTyped,
2058
- xi as DivisionsFromJSON,
2059
- Hi as DivisionsFromJSONTyped,
2060
- Nn as DivisionsToJSON,
2061
- Ui as DivisionsToJSONTyped,
2062
- te as FetchError,
2063
- k as FieldingStatsFromJSON,
2064
- me as FieldingStatsFromJSONTyped,
2065
- I as FieldingStatsToJSON,
2066
- ge as FieldingStatsToJSONTyped,
2067
- it as GameFromJSON,
2068
- tt as GameFromJSONTyped,
2069
- de as GameOfficialFromJSON,
2070
- ue as GameOfficialFromJSONTyped,
2071
- ce as GameOfficialToJSON,
2072
- fe as GameOfficialToJSONTyped,
2073
- g as GameStatusCode,
2074
- vi as GameStatusCodeFromJSON,
2075
- Vi as GameStatusCodeFromJSONTyped,
2076
- wn as GameStatusCodeToJSON,
2077
- Pn as GameStatusCodeToJSONTyped,
2078
- $i as GameStatusFromJSON,
2079
- Mi as GameStatusFromJSONTyped,
2080
- Ki as GameStatusToJSON,
2081
- Yi as GameStatusToJSONTyped,
2082
- W as GameTeamFromJSON,
2083
- qi as GameTeamFromJSONTyped,
2084
- x as GameTeamToJSON,
2085
- zi as GameTeamToJSONTyped,
2086
- Qi as GameTeamsFromJSON,
2087
- Xi as GameTeamsFromJSONTyped,
2088
- Zi as GameTeamsToJSON,
2089
- _i as GameTeamsToJSONTyped,
2090
- nt as GameToJSON,
2091
- rt as GameToJSONTyped,
2092
- p as GameType,
2093
- ji as GameTypeFromJSON,
2094
- et as GameTypeFromJSONTyped,
2095
- Gn as GameTypeToJSON,
2096
- Fn as GameTypeToJSONTyped,
2097
- ot as InningFromJSON,
2098
- lt as InningFromJSONTyped,
2099
- dt as InningToJSON,
2100
- ut as InningToJSONTyped,
2101
- d as JSONApiResponse,
2102
- Qe as LeagueDatesFromJSON,
2103
- Xe as LeagueDatesFromJSONTyped,
2104
- Ze as LeagueDatesToJSON,
2105
- _e as LeagueDatesToJSONTyped,
2106
- c as LeagueFromJSON,
2107
- je as LeagueFromJSONTyped,
2108
- $ as LeagueRecordFromJSON,
2109
- fi as LeagueRecordFromJSONTyped,
2110
- M as LeagueRecordToJSON,
2111
- mi as LeagueRecordToJSONTyped,
2112
- f as LeagueToJSON,
2113
- ei as LeagueToJSONTyped,
2114
- ct as LeaguesFromJSON,
2115
- ft as LeaguesFromJSONTyped,
2116
- An as LeaguesToJSON,
2117
- mt as LeaguesToJSONTyped,
2118
- yt as LinescoreFromJSON,
2119
- Ot as LinescoreFromJSONTyped,
2120
- S as LinescoreTeamFromJSON,
2121
- at as LinescoreTeamFromJSONTyped,
2122
- h as LinescoreTeamToJSON,
2123
- st as LinescoreTeamToJSONTyped,
2124
- gt as LinescoreTeamsFromJSON,
2125
- pt as LinescoreTeamsFromJSONTyped,
2126
- St as LinescoreTeamsToJSON,
2127
- ht as LinescoreTeamsToJSONTyped,
2128
- Hn as LinescoreToJSON,
2129
- Tt as LinescoreToJSONTyped,
2130
- zn as MlbApi,
2131
- ae as OfficialFromJSON,
2132
- se as OfficialFromJSONTyped,
2133
- oe as OfficialToJSON,
2134
- le as OfficialToJSONTyped,
2135
- B as PitchingStatsFromJSON,
2136
- pe as PitchingStatsFromJSONTyped,
2137
- J as PitchingStatsToJSON,
2138
- Se as PitchingStatsToJSONTyped,
2139
- Ke as PlayerFromJSON,
2140
- Ye as PlayerFromJSONTyped,
2141
- De as PlayerGameStatusFromJSON,
2142
- Ne as PlayerGameStatusFromJSONTyped,
2143
- be as PlayerGameStatusToJSON,
2144
- we as PlayerGameStatusToJSONTyped,
2145
- Je as PlayerPersonFromJSON,
2146
- Ge as PlayerPersonFromJSONTyped,
2147
- Fe as PlayerPersonToJSON,
2148
- Re as PlayerPersonToJSONTyped,
2149
- Le as PlayerPositionFromJSON,
2150
- Ee as PlayerPositionFromJSONTyped,
2151
- Ce as PlayerPositionToJSON,
2152
- Ae as PlayerPositionToJSONTyped,
2153
- he as PlayerSeasonStatsFromJSON,
2154
- ye as PlayerSeasonStatsFromJSONTyped,
2155
- Oe as PlayerSeasonStatsToJSON,
2156
- Te as PlayerSeasonStatsToJSONTyped,
2157
- ve as PlayerStatsFromJSON,
2158
- Ve as PlayerStatsFromJSONTyped,
2159
- $e as PlayerStatsToJSON,
2160
- Me as PlayerStatsToJSONTyped,
2161
- We as PlayerStatusFromJSON,
2162
- xe as PlayerStatusFromJSONTyped,
2163
- He as PlayerStatusToJSON,
2164
- Ue as PlayerStatusToJSONTyped,
2165
- qe as PlayerToJSON,
2166
- ze as PlayerToJSONTyped,
2167
- Pe as PositionFromJSON,
2168
- ke as PositionFromJSONTyped,
2169
- Ie as PositionToJSON,
2170
- Be as PositionToJSONTyped,
2171
- K as RecordFromJSON,
2172
- gi as RecordFromJSONTyped,
2173
- Y as RecordToJSON,
2174
- pi as RecordToJSONTyped,
2175
- l as RequiredError,
2176
- ie as ResponseError,
2177
- Dt as ScheduleDayFromJSON,
2178
- Nt as ScheduleDayFromJSONTyped,
2179
- bt as ScheduleDayToJSON,
2180
- wt as ScheduleDayToJSONTyped,
2181
- Pt as ScheduleFromJSON,
2182
- kt as ScheduleFromJSONTyped,
2183
- Vn as ScheduleToJSON,
2184
- It as ScheduleToJSONTyped,
2185
- Bt as SeasonFromJSON,
2186
- Jt as SeasonFromJSONTyped,
2187
- Gt as SeasonToJSON,
2188
- Ft as SeasonToJSONTyped,
2189
- H as SeasonsFromJSON,
2190
- Rt as SeasonsFromJSONTyped,
2191
- Kn as SeasonsToJSON,
2192
- Lt as SeasonsToJSONTyped,
2193
- G as SportFromJSON,
2194
- ii as SportFromJSONTyped,
2195
- F as SportToJSON,
2196
- ti as SportToJSONTyped,
2197
- li as StreakFromJSON,
2198
- di as StreakFromJSONTyped,
2199
- oi as StreakStreakTypeEnum,
2200
- ui as StreakToJSON,
2201
- ci as StreakToJSONTyped,
2202
- O as TeamFromJSON,
2203
- Si as TeamFromJSONTyped,
2204
- yi as TeamStatsFromJSON,
2205
- Oi as TeamStatsFromJSONTyped,
2206
- Ti as TeamStatsToJSON,
2207
- Di as TeamStatsToJSONTyped,
2208
- T as TeamToJSON,
2209
- hi as TeamToJSONTyped,
2210
- Et as TeamsFromJSON,
2211
- Ct as TeamsFromJSONTyped,
2212
- qn as TeamsToJSON,
2213
- At as TeamsToJSONTyped,
2214
- $t as TextApiResponse,
2215
- N as VenueFromJSON,
2216
- ni as VenueFromJSONTyped,
2217
- b as VenueToJSON,
2218
- ri as VenueToJSONTyped,
2219
- vt as VoidApiResponse,
2220
- Ut as canConsumeForm,
2221
- Ht as exists,
2222
- Mt as instanceOfBattingStats,
2223
- Sn as instanceOfBoxscore,
2224
- gn as instanceOfBoxscoreTeam,
2225
- pn as instanceOfBoxscoreTeams,
2226
- ln as instanceOfDivision,
2227
- yn as instanceOfDivisionStandings,
2228
- On as instanceOfDivisionStandingsList,
2229
- Dn as instanceOfDivisions,
2230
- qt as instanceOfFieldingStats,
2231
- Rn as instanceOfGame,
2232
- Yt as instanceOfGameOfficial,
2233
- kn as instanceOfGameStatus,
2234
- bn as instanceOfGameStatusCode,
2235
- In as instanceOfGameTeam,
2236
- Bn as instanceOfGameTeams,
2237
- Jn as instanceOfGameType,
2238
- En as instanceOfInning,
2239
- an as instanceOfLeague,
2240
- rn as instanceOfLeagueDates,
2241
- un as instanceOfLeagueRecord,
2242
- Cn as instanceOfLeagues,
2243
- xn as instanceOfLinescore,
2244
- Ln as instanceOfLinescoreTeam,
2245
- Wn as instanceOfLinescoreTeams,
2246
- Kt as instanceOfOfficial,
2247
- zt as instanceOfPitchingStats,
2248
- nn as instanceOfPlayer,
2249
- Xt as instanceOfPlayerGameStatus,
2250
- _t as instanceOfPlayerPerson,
2251
- jt as instanceOfPlayerPosition,
2252
- Qt as instanceOfPlayerSeasonStats,
2253
- tn as instanceOfPlayerStats,
2254
- en as instanceOfPlayerStatus,
2255
- Zt as instanceOfPosition,
2256
- cn as instanceOfRecord,
2257
- vn as instanceOfSchedule,
2258
- Un as instanceOfScheduleDay,
2259
- $n as instanceOfSeason,
2260
- Mn as instanceOfSeasons,
2261
- sn as instanceOfSport,
2262
- dn as instanceOfStreak,
2263
- fn as instanceOfTeam,
2264
- mn as instanceOfTeamStats,
2265
- Yn as instanceOfTeams,
2266
- on as instanceOfVenue,
2267
- V as mapValues,
2268
- U as querystring
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
  };